- Timestamp:
- Oct 10, 2005, 9:15:05 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 32 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/defs/debug.h
r5300 r5357 70 70 #define DEBUG_MODULE_GRAPHICS 2 71 71 #define DEBUG_MODULE_EVENT 2 72 #define DEBUG_MODULE_FONT 273 #define DEBUG_MODULE_PARTICLE 274 72 #define DEBUG_MODULE_PHYSICS 2 75 73 #define DEBUG_MODULE_GARBAGE_COLLECTOR 2 … … 82 80 #define DEBUG_MODULE_TRACK_MANAGER 2 83 81 #define DEBUG_MODULE_MATH 2 84 #define DEBUG_MODULE_LIGHT 285 82 86 83 #define DEBUG_MODULE_PNODE 2 87 84 #define DEBUG_MODULE_WORLD_ENTITY 2 88 85 89 #define DEBUG_MODULE_PLAYER 290 86 #define DEBUG_MODULE_WEAPON 2 91 87 -
trunk/src/lib/graphics/light.cc
r5212 r5357 16 16 */ 17 17 18 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ LIGHT18 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GRAPHICS 19 19 20 20 #include "light.h" -
trunk/src/lib/graphics/text_engine/font.cc
r5347 r5357 14 14 */ 15 15 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ FONT16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GRAPHICS 17 17 18 18 #include "font.h" -
trunk/src/lib/graphics/text_engine/text.cc
r5345 r5357 14 14 */ 15 15 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ FONT16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GRAPHICS 17 17 18 18 #include "text.h" -
trunk/src/lib/graphics/text_engine/text_engine.cc
r5347 r5357 20 20 */ 21 21 22 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ FONT22 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GRAPHICS 23 23 24 24 #include "text_engine.h" -
trunk/src/lib/particles/particle_emitter.cc
r4836 r5357 14 14 */ 15 15 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ PARTICLE16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GRAPHICS 17 17 18 18 #include "particle_emitter.h" -
trunk/src/lib/particles/particle_engine.cc
r5115 r5357 14 14 */ 15 15 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ PARTICLE16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GRAPHICS 17 17 18 18 #include "particle_engine.h" -
trunk/src/lib/particles/particle_system.cc
r5155 r5357 14 14 */ 15 15 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ PARTICLE16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GRAPHICS 17 17 18 18 #include "particle_system.h" -
trunk/src/lib/physics/fields/field.cc
r4836 r5357 14 14 */ 15 15 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_PHYSICS 17 17 18 18 #include "field.h" -
trunk/src/lib/physics/fields/gravity.cc
r4836 r5357 14 14 */ 15 15 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_PHYSICS 17 17 18 18 #include "gravity.h" -
trunk/src/lib/physics/fields/point_gravity.cc
r4836 r5357 14 14 */ 15 15 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_PHYSICS 17 17 18 18 #include "point_gravity.h" -
trunk/src/lib/physics/fields/twirl.cc
r4836 r5357 14 14 */ 15 15 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_PHYSICS 17 17 18 18 #include "twirl.h" -
trunk/src/lib/physics/physics_connection.cc
r5155 r5357 14 14 */ 15 15 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_PHYSICS 17 17 18 18 #include "physics_connection.h" -
trunk/src/util/fast_factory.h
r5355 r5357 139 139 tFastFactory<T>* tFastFactory<T>::getFastFactory(ClassID classID, const char* fastFactoryName) 140 140 { 141 printf("cool\n");142 141 tFastFactory<T>* tmpFac = NULL; 143 142 if (FastFactory::getFirst() != NULL) -
trunk/src/util/loading/factory.h
r5356 r5357 84 84 tFactory<T>::tFactory(const char* factoryName) : Factory(factoryName) 85 85 { 86 printf("Class: %s loadable\n", this->getName());86 PRINTF(4)("Class: %s loadable\n", this->getName()); 87 87 } 88 88 -
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.