Changeset 4318 in orxonox.OLD
- Timestamp:
- May 27, 2005, 12:53:34 AM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/class_list.h
r4315 r4318 6 6 */ 7 7 8 #ifndef _CLASS_LIST_H 9 #define _CLASS_LIST_H 10 8 11 9 12 //! list of all classes to be loadable in via the ObjectManager 10 13 typedef enum classList 11 14 { 15 CL_PARENT, 16 CL_HELPER_PARENT, 17 CL_NULL_PARENT, 12 18 CL_CAMERA, 19 CL_CAMERA_TARGET, 20 21 CL_WORLD_ENTITY, 13 22 CL_ENVIRONEMENT, 14 23 CL_NPC, … … 24 33 CL_TEST_GUN, 25 34 CL_WEAPON, 26 CL_WORLD_ENTITY, 35 CL_CHARACTER_ATTRIBUTES, 36 37 CL_STORY_ENTITY, 38 CL_CAMPAIGN, 39 CL_WORLD, 40 CL_TRACK_MANAGER, 41 CL_TRACK_NODE, 27 42 28 43 CL_ANIMATION, … … 32 47 CL_ARRAY, 33 48 CL_BASE_OBJECT, 34 CL_BASE, 49 CL_CURVE, 50 CL_VECTOR, 51 CL_FACTORY, 52 CL_INI_PARSER, 53 CL_LIST, 54 CL_SUBSTRING, 55 CL_LOAD_PARAM, 56 57 CL_OBJECT_MANAGER, 58 CL_RESOURCE_MANAGER, 59 CL_GARBAGE_COLLECTOR, 60 CL_GAME_LOADER, 61 CL_COMMAND_NODE, 62 63 CL_GRAPHICS_ENGINE, 64 CL_TEXT_ENGINE, 65 CL_TEXT, 66 CL_GLMENU_IMAGE_SCREEN, 67 CL_LIGHT, 68 CL_LIGHT_MANAGER, 69 CL_MATERIAL, 70 CL_MD2Model, 71 CL_MODEL, 72 CL_OBJMODEL, 73 CL_PROMITIVE_MODEL, 74 75 CL_PARTICLE_EMITTER, 76 CL_PARTICLE_ENGINE, 77 CL_PARTICLE_SYSTEM, 78 35 79 36 80 CL_NUMBER 37 81 }; 38 82 39 /* 40 animation.o 41 animation3d.o 42 animation_player.o 43 array.o 44 base_entity.o 45 base_object.o 46 benchmark.o 47 camera.o 48 campaign.o 49 character_attributes.o 50 command_node.o 51 curve.o 52 environment.o 53 factory.o 54 game_loader.o 55 garbage_collector.o 56 glmenu_imagescreen.o 57 graphics_engine.o 58 helper_parent.o 59 ini_parser.o 60 keynames.o 61 light.o 62 list.o 63 load_param.o 64 material.o 65 md2Model.o 66 model.o 67 null_parent.o 68 objModel.o 69 object_manager.o 70 orxonox.o 71 p_node.o 72 particle_emitter.o 73 particle_engine.o 74 particle_system.o 75 player.o 76 primitive_model.o 77 projectile.o 78 resource_manager.o 79 satellite.o 80 skybox.o 81 skysphere.o 82 story_entity.o 83 substring.o 84 terrain.o 85 test_bullet.o 86 test_entity.o 87 test_gun.o 88 text_engine.o 89 texture.o 90 track_manager.o 91 track_node.o 92 vector.o 93 weapon.o 94 world.o 95 world_entity.o 96 */ 83 84 #endif /* _CLASS_LIST_H */ -
orxonox/trunk/src/glmenu/glmenu_imagescreen.cc
r4261 r4318 88 88 void GLMenuImageScreen::init () 89 89 { 90 this->setClass Name ("GLMenuImageScreen");90 this->setClassID(CL_GLMENU_IMAGE_SCREEN); 91 91 92 92 // Select Our VU Meter Background Texture -
orxonox/trunk/src/lib/coord/helper_parent.cc
r3544 r4318 30 30 HelperParent::HelperParent () 31 31 { 32 this->setClass Name ("HelperParent");32 this->setClassID(CL_HELPER_PARENT); 33 33 } 34 34 -
orxonox/trunk/src/lib/graphics/graphics_engine.cc
r4245 r4318 34 34 this->minFPS = 9999; 35 35 this->maxFPS = 0; 36 this->setClass Name ("GraphicsEngine");36 this->setClassID(CL_GRAPHICS_ENGINE); 37 37 38 38 this->fullscreen = false; -
orxonox/trunk/src/lib/graphics/light.cc
r3809 r4318 34 34 Light::Light(int lightNumber) 35 35 { 36 this->setClass Name("Light");36 this->setClassID(CL_LIGHT); 37 37 char tmpName[7]; 38 38 sprintf(tmpName, "Light%d", lightNumber); … … 205 205 LightManager::LightManager () 206 206 { 207 this->setClass Name ("LightManager");207 this->setClassID(CL_LIGHT_MANAGER); 208 208 209 209 glEnable (GL_LIGHTING); -
orxonox/trunk/src/lib/graphics/particles/particle_emitter.cc
r4176 r4318 30 30 float velocity) 31 31 { 32 this->setClass Name ("ParticleEmitter");32 this->setClassID(CL_PARTICLE_EMITTER); 33 33 this->direction = direction; 34 34 this->setSpread(angle); -
orxonox/trunk/src/lib/graphics/particles/particle_engine.cc
r4176 r4318 30 30 ParticleEngine::ParticleEngine () 31 31 { 32 this->setClass Name ("ParticleEngine");32 this->setClassID(CL_PARTICLE_ENGINE); 33 33 34 34 this->systemList = new tList<ParticleSystem>; -
orxonox/trunk/src/lib/graphics/particles/particle_system.cc
r4176 r4318 34 34 ParticleSystem::ParticleSystem (unsigned int maxCount, PARTICLE_TYPE type) 35 35 { 36 this->setClass Name ("ParticleSystem");36 this->setClassID(CL_PARTICLE_SYSTEM); 37 37 this->material = NULL; 38 38 this->name = NULL; -
orxonox/trunk/src/lib/graphics/text_engine.cc
r3911 r4318 51 51 Text::Text(Font* font, int type) 52 52 { 53 this->setClass Name("Text");53 this->setClassID(CL_TEXT); 54 54 55 55 // initialize this Text … … 802 802 TextEngine::TextEngine () 803 803 { 804 this->setClass Name ("TextEngine");804 this->setClassID(CL_TEXT_ENGINE); 805 805 this->enableFonts(); 806 806 -
orxonox/trunk/src/lib/lang/base_object.cc
r4261 r4318 42 42 } 43 43 44 void BaseObject::setClassName (const char* className) 44 45 void BaseObject::setClassID (int id) 45 46 { 46 this-> className = className;47 this->id = id; 47 48 } 49 50 48 51 49 52 bool BaseObject::isA (char* className) -
orxonox/trunk/src/lib/lang/base_object.h
r4261 r4318 9 9 10 10 #include "stdincl.h" 11 11 #include "class_list.h" 12 12 13 13 class BaseObject { … … 17 17 virtual ~BaseObject (); 18 18 19 void setClassName (const char* className); 20 inline const char* getClassName(void) const { return this->className;}; 19 //void setClassName (const char* className); 20 void setClassID(int id); 21 22 inline const char* getClassName(void) const { return "";}; 23 inline int getClassID(void) const { return this->id; } 21 24 bool isA (char* className); 22 25 … … 26 29 private: 27 30 const char* className; 31 int id; 28 32 bool finalized; 29 33 }; -
orxonox/trunk/src/story_entities/world.cc
r4287 r4318 196 196 void World::constuctorInit(char* name, int worldID) 197 197 { 198 this->setClass Name ("World");198 this->setClassID(CL_WORLD); 199 199 200 200 //this->worldName = name; -
orxonox/trunk/src/util/animation/animation_player.cc
r3868 r4318 28 28 AnimationPlayer::AnimationPlayer () 29 29 { 30 this->setClass Name ("AnimationPlayer");30 this->setClassID(CL_ANIMATION_PLAYER); 31 31 32 32 this->animationList = new tList<Animation>(); -
orxonox/trunk/src/util/garbage_collector.cc
r4311 r4318 38 38 GarbageCollector::GarbageCollector () 39 39 { 40 this->setClass Name ("GarbageCollection");40 this->setClassID(CL_GARBAGE_COLLECTOR); 41 41 this->time = 0; 42 42 this->delay = 1.5f; /* clean up all 5.0 seconds */ -
orxonox/trunk/src/util/loading/load_param.h
r4299 r4318 180 180 static LoadClassDescription* addClass(const char* className); 181 181 LoadParamDescription* addParam(const char* paramName); 182 182 183 183 184 static void printAll(const char* fileName = NULL); -
orxonox/trunk/src/util/object_manager.cc
r4313 r4318 29 29 ObjectManager::ObjectManager () 30 30 { 31 this->setClass Name ("ObjectManager");31 this->setClassID(CL_OBJECT_MANAGER); 32 32 33 33 this->managedObjectList = new tList<BaseObject>*[CL_NUMBER]; 34 for(int i = 0; i < CL_NUMBER; ++i) 35 { 36 this->managedObjectList[i] = NULL; 37 } 34 38 35 39 this->garbageCollector = GarbageCollector::getInstance(); … … 91 95 for(int i = 0; i < CL_NUMBER; ++i) 92 96 { 93 if( this->managedObjectList[i] != NULL)97 if( this->managedObjectList[i] != NULL) 94 98 PRINT(0)("= o Class Nr. %i has cached %i object(s)\n", i, this->managedObjectList[i]->getSize()); 95 99 else -
orxonox/trunk/src/util/resource_manager.cc
r4216 r4318 38 38 ResourceManager::ResourceManager () 39 39 { 40 this->setClass Name ("ResourceManager");40 this->setClassID(CL_RESOURCE_MANAGER); 41 41 this->dataDir = NULL; 42 42 this->setDataDir("./"); -
orxonox/trunk/src/util/track/track_manager.cc
r4262 r4318 370 370 TrackManager::TrackManager(void) 371 371 { 372 this->setClassName("TrackManager"); 372 this->setClassID(CL_TRACK_MANAGER); 373 373 374 374 375 TrackManager::singletonRef = this; // do this because otherwise the TrackNode cannot get The instance of the TrackManager -
orxonox/trunk/src/util/track/track_node.cc
r4262 r4318 32 32 TrackNode::TrackNode () 33 33 { 34 this->setClass Name("TrackNode");34 this->setClassID(CL_TRACK_NODE); 35 35 this->setName("TrackNode"); /* absolete but still used... */ 36 36 -
orxonox/trunk/src/world_entities/camera.cc
r3966 r4318 33 33 Camera::Camera(void) 34 34 { 35 this->setClass Name("Camera");35 this->setClassID(CL_CAMERA); 36 36 this->target = new CameraTarget(); 37 37 … … 190 190 CameraTarget::CameraTarget() 191 191 { 192 this->setClass Name("CameraTarget");192 this->setClassID(CL_CAMERA_TARGET); 193 193 this->setMode(PNODE_MOVEMENT); 194 194 } -
orxonox/trunk/src/world_entities/character_attributes.cc
r3583 r4318 29 29 CharacterAttributes::CharacterAttributes () 30 30 { 31 this->setClass Name ("CharacterAttributes");31 this->setClassID(CL_CHARACTER_ATTRIBUTES); 32 32 } 33 33 -
orxonox/trunk/src/world_entities/satellite.cc
r3750 r4318 31 31 Satellite::Satellite (Vector axis, float speed) 32 32 { 33 this->setClass Name ("Satellite");33 this->setClassID(CL_SATELLITE); 34 34 this->model = (Model*) ResourceManager::getInstance()->load("cube", RP_LEVEL); 35 35 this->speed = speed; -
orxonox/trunk/src/world_entities/skybox.cc
r4261 r4318 62 62 void SkyBox::preInit(void) 63 63 { 64 this->setClass Name("SkyBox");64 this->setClassID(CL_SKYBOX); 65 65 this->skyModel = NULL; 66 66 this->material = new Material*[6]; -
orxonox/trunk/src/world_entities/terrain.cc
r4136 r4318 77 77 void Terrain::init(void) 78 78 { 79 this->setClassName ("Terrain"); 80 79 this->setClassID(CL_TERRAIN); 81 80 this->objectList = 0; 82 81 } -
orxonox/trunk/src/world_entities/world_entity.cc
r4261 r4318 30 30 WorldEntity::WorldEntity(const TiXmlElement* root) 31 31 { 32 this->setClass Name ("WorldEntity");32 this->setClassID(CL_WORLD_ENTITY); 33 33 this->model = NULL; 34 34
Note: See TracChangeset
for help on using the changeset viewer.