Changeset 5357 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Oct 10, 2005, 9:15:05 PM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/camera.cc
r5354 r5357 15 15 co-programmer: ... 16 16 */ 17 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY 17 18 18 19 #include "camera.h" -
trunk/src/world_entities/environment.cc
r5308 r5357 15 15 co-programmer: 16 16 */ 17 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY 17 18 18 19 -
trunk/src/world_entities/npc.cc
r5266 r5357 15 15 co-programmer: 16 16 */ 17 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY 17 18 18 19 -
trunk/src/world_entities/npc2.cc
r5333 r5357 15 15 co-programmer: 16 16 */ 17 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY 17 18 18 19 -
trunk/src/world_entities/player.cc
r5355 r5357 14 14 */ 15 15 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ PLAYER16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY 17 17 18 18 #include "player.h" -
trunk/src/world_entities/satellite.cc
r5302 r5357 15 15 co-programmer: 16 16 */ 17 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY 17 18 18 19 -
trunk/src/world_entities/skybox.cc
r5356 r5357 1 2 1 /* 3 2 orxonox - the future of 3D-vertical-scrollers … … 17 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY 18 17 19 20 18 #include "skybox.h" 21 19 22 20 #include "load_param.h" 23 21 #include "factory.h" 24 #include "list.h"25 22 26 23 using namespace std; 24 27 25 CREATE_FACTORY(SkyBox); 28 26 29 27 /** 30 * 28 * Constructs a SkyBox and takes fileName as a map. 31 29 * @param fileName the file to take as input for the SkyBox 32 30 */ -
trunk/src/world_entities/skybox.h
r5039 r5357 1 1 /*! 2 2 * @file skybox.h 3 4 5 6 3 * Definition of the SkyBox, that handles the Display of an atmosphere for orxonox. 4 * 5 * A SkyBox is always centered at the current working Camera, and will only obey the cameras 6 * movment but not its rotation. 7 7 */ 8 8 … … 14 14 15 15 /* FORWARD DEFINITION */ 16 class Material;17 class Vector;18 16 19 17 //! A Class to handle a SkyBox … … 26 24 virtual ~SkyBox(); 27 25 26 void init(); 28 27 void preInit(); 29 28 … … 35 34 void setSize(float size); 36 35 /** assumes jpg as input-format */ 37 void setTexture(const char* name) { setTextureAndType (name, "jpg"); };36 void setTexture(const char* name) { this->setTextureAndType (name, "jpg"); }; 38 37 39 38 void setTextureAndType(const char* name, const char* extension); -
trunk/src/world_entities/terrain.cc
r5356 r5357 13 13 co-programmer: ... 14 14 */ 15 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY 15 16 16 17 … … 27 28 /** 28 29 * standard constructor 29 30 */ 30 */ 31 31 Terrain::Terrain (const TiXmlElement* root) 32 32 { -
trunk/src/world_entities/terrain.h
r5308 r5357 13 13 #include "world_entity.h" 14 14 15 // FORWARD DEFINITION \\ 16 class TiXmlElement; 15 // FORWARD DEFINITION 17 16 class SpatialSeparation; 18 17 -
trunk/src/world_entities/test_entity.cc
r5285 r5357 15 15 co-programmer: 16 16 */ 17 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY 17 18 18 19 -
trunk/src/world_entities/weapons/crosshair.cc
r5280 r5357 14 14 */ 15 15 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WEAPON 17 17 18 18 #include "crosshair.h" -
trunk/src/world_entities/weapons/projectile.cc
r5063 r5357 15 15 co-programmer: 16 16 */ 17 17 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WEAPON 18 18 19 19 #include "projectile.h" -
trunk/src/world_entities/weapons/test_bullet.cc
r5257 r5357 15 15 co-programmer: 16 16 */ 17 17 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WEAPON 18 18 19 19 #include "test_bullet.h" -
trunk/src/world_entities/weapons/test_gun.cc
r5356 r5357 19 19 @todo: a target to set/hit 20 20 */ 21 21 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WEAPON 22 22 23 23 #include "test_gun.h" -
trunk/src/world_entities/weapons/turret.cc
r5356 r5357 13 13 co-programmer: 14 14 */ 15 15 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WEAPON 16 16 17 17 #include "turret.h" -
trunk/src/world_entities/weapons/weapon.cc
r5356 r5357 169 169 void Weapon::prepareProjectiles(unsigned int count) 170 170 { 171 if ( this->projectileFactory != NULL)171 if (likely(this->projectileFactory != NULL)) 172 172 projectileFactory->prepare(count); 173 173 else 174 PRINTF(2)("unable to create %d projectile for Weapon %s \n", count, this->getName());174 PRINTF(2)("unable to create %d projectile for Weapon %s (%s)\n", count, this->getName(), this->getClassName()); 175 175 } 176 176 … … 181 181 Projectile* Weapon::getProjectile() 182 182 { 183 if ( this->projectileFactory)183 if (likely (this->projectileFactory != NULL)) 184 184 return dynamic_cast<Projectile*>(this->projectileFactory->resurrect()); 185 185 else 186 186 { 187 PRINTF(2)("No projectile defined for Weapon %s cant return any\n", this->getName());187 PRINTF(2)("No projectile defined for Weapon %s(%s) cant return any\n", this->getName(), this->getClassName()); 188 188 return NULL; 189 189 }
Note: See TracChangeset
for help on using the changeset viewer.