Changeset 4320 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- May 27, 2005, 1:13:42 AM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/glmenu/glmenu_imagescreen.cc
r4318 r4320 88 88 void GLMenuImageScreen::init () 89 89 { 90 this->setClassID(CL_GLMENU_IMAGE_SCREEN );90 this->setClassID(CL_GLMENU_IMAGE_SCREEN, "GLMenuImageScreen"); 91 91 92 92 // Select Our VU Meter Background Texture -
orxonox/trunk/src/lib/coord/helper_parent.cc
r4318 r4320 30 30 HelperParent::HelperParent () 31 31 { 32 this->setClassID(CL_HELPER_PARENT );32 this->setClassID(CL_HELPER_PARENT, "HelperParent"); 33 33 } 34 34 -
orxonox/trunk/src/lib/graphics/graphics_engine.cc
r4318 r4320 34 34 this->minFPS = 9999; 35 35 this->maxFPS = 0; 36 this->setClassID(CL_GRAPHICS_ENGINE );36 this->setClassID(CL_GRAPHICS_ENGINE, "GraphicsEngine"); 37 37 38 38 this->fullscreen = false; -
orxonox/trunk/src/lib/graphics/light.cc
r4318 r4320 34 34 Light::Light(int lightNumber) 35 35 { 36 this->setClassID(CL_LIGHT );36 this->setClassID(CL_LIGHT, "Light"); 37 37 char tmpName[7]; 38 38 sprintf(tmpName, "Light%d", lightNumber); … … 205 205 LightManager::LightManager () 206 206 { 207 this->setClassID(CL_LIGHT_MANAGER );207 this->setClassID(CL_LIGHT_MANAGER, "LightManager"); 208 208 209 209 glEnable (GL_LIGHTING); -
orxonox/trunk/src/lib/graphics/particles/particle_emitter.cc
r4318 r4320 30 30 float velocity) 31 31 { 32 this->setClassID(CL_PARTICLE_EMITTER );32 this->setClassID(CL_PARTICLE_EMITTER, "ParticleEmitter"); 33 33 this->direction = direction; 34 34 this->setSpread(angle); -
orxonox/trunk/src/lib/graphics/particles/particle_engine.cc
r4318 r4320 30 30 ParticleEngine::ParticleEngine () 31 31 { 32 this->setClassID(CL_PARTICLE_ENGINE );32 this->setClassID(CL_PARTICLE_ENGINE, "ParticleEngine"); 33 33 34 34 this->systemList = new tList<ParticleSystem>; -
orxonox/trunk/src/lib/graphics/particles/particle_system.cc
r4318 r4320 34 34 ParticleSystem::ParticleSystem (unsigned int maxCount, PARTICLE_TYPE type) 35 35 { 36 this->setClassID(CL_PARTICLE_SYSTEM );36 this->setClassID(CL_PARTICLE_SYSTEM, "ParticleSystem"); 37 37 this->material = NULL; 38 38 this->name = NULL; -
orxonox/trunk/src/lib/graphics/text_engine.cc
r4318 r4320 51 51 Text::Text(Font* font, int type) 52 52 { 53 this->setClassID(CL_TEXT );53 this->setClassID(CL_TEXT, "Text"); 54 54 55 55 // initialize this Text … … 802 802 TextEngine::TextEngine () 803 803 { 804 this->setClassID(CL_TEXT_ENGINE );804 this->setClassID(CL_TEXT_ENGINE, "TextEngine"); 805 805 this->enableFonts(); 806 806 -
orxonox/trunk/src/lib/lang/base_object.cc
r4318 r4320 42 42 } 43 43 44 void BaseObject::setClassID(int id, const char* className) 45 { 46 this->id = id; 47 this->className = className; 48 } 49 44 50 45 51 void BaseObject::setClassID (int id) … … 48 54 } 49 55 56 void BaseObject::setClassName(const char* className) 57 { 58 this->className = className; 59 } 50 60 51 61 -
orxonox/trunk/src/lib/lang/base_object.h
r4318 r4320 17 17 virtual ~BaseObject (); 18 18 19 //void setClassName (const char* className);20 19 void setClassID(int id); 20 void setClassName(const char* className); 21 void setClassID(int id, const char* className); 21 22 22 inline const char* getClassName(void) const { return "";};23 inline const char* getClassName(void) const { return this->className;}; 23 24 inline int getClassID(void) const { return this->id; } 24 25 bool isA (char* className); -
orxonox/trunk/src/proto/proto_class.cc
r3955 r4320 27 27 ProtoClass::ProtoClass () 28 28 { 29 this->setClassName ("ProtoClass"); 29 this->setClassID(CL_PROTO_ID, "ProtoClass"); 30 31 /* If you make a new class, what is most probably the case when you write this file 32 don't forget to: 33 1. Add the new file new_class.cc to the ./src/Makefile.am 34 2. Add the class identifier to ./src/class_list.h eg. CL_NEW_CLASS 35 36 Advanced Topics: 37 - if you want to let your object be managed via the ObjectManager make sure to read 38 the object_manager.h header comments. You will use this most certanly only if you 39 make many objects of your class, like a weapon bullet. 40 */ 30 41 } 31 42 -
orxonox/trunk/src/proto/proto_singleton.cc
r3655 r4320 26 26 ProtoSingleton::ProtoSingleton () 27 27 { 28 this->setClassName ("ProtoSingleton"); 28 this->setClassName("ProtoSingleton"); 29 this->setClassID(CL_PROTO_ID, "ProtoSingleton"); 29 30 31 /* If you make a new class, what is most probably the case when you write this file 32 don't forget to: 33 1. Add the new file new_class.cc to the ./src/Makefile.am 34 2. Add the class identifier to ./src/class_list.h eg. CL_NEW_CLASS 35 36 Advanced Topics: 37 - if you want to let your object be managed via the ObjectManager make sure to read 38 the object_manager.h header comments. You will use this most certanly only if you 39 make many objects of your class, like a weapon bullet. 40 */ 30 41 } 31 42 -
orxonox/trunk/src/story_entities/world.cc
r4318 r4320 196 196 void World::constuctorInit(char* name, int worldID) 197 197 { 198 this->setClassID(CL_WORLD );198 this->setClassID(CL_WORLD, "World"); 199 199 200 200 //this->worldName = name; -
orxonox/trunk/src/util/animation/animation_player.cc
r4318 r4320 28 28 AnimationPlayer::AnimationPlayer () 29 29 { 30 this->setClassID(CL_ANIMATION_PLAYER );30 this->setClassID(CL_ANIMATION_PLAYER, "AnimationPlayer"); 31 31 32 32 this->animationList = new tList<Animation>(); -
orxonox/trunk/src/util/garbage_collector.cc
r4318 r4320 38 38 GarbageCollector::GarbageCollector () 39 39 { 40 this->setClassID(CL_GARBAGE_COLLECTOR );40 this->setClassID(CL_GARBAGE_COLLECTOR, "GarbageCollector"); 41 41 this->time = 0; 42 42 this->delay = 1.5f; /* clean up all 5.0 seconds */ -
orxonox/trunk/src/util/object_manager.cc
r4318 r4320 29 29 ObjectManager::ObjectManager () 30 30 { 31 this->setClassID(CL_OBJECT_MANAGER );31 this->setClassID(CL_OBJECT_MANAGER, "ObjectManager"); 32 32 33 33 this->managedObjectList = new tList<BaseObject>*[CL_NUMBER]; -
orxonox/trunk/src/util/resource_manager.cc
r4318 r4320 38 38 ResourceManager::ResourceManager () 39 39 { 40 this->setClassID(CL_RESOURCE_MANAGER );40 this->setClassID(CL_RESOURCE_MANAGER, "ResourceManager"); 41 41 this->dataDir = NULL; 42 42 this->setDataDir("./"); -
orxonox/trunk/src/util/track/track_manager.cc
r4318 r4320 370 370 TrackManager::TrackManager(void) 371 371 { 372 this->setClassID(CL_TRACK_MANAGER); 373 372 this->setClassID(CL_TRACK_MANAGER, "TrackManager"); 374 373 375 374 TrackManager::singletonRef = this; // do this because otherwise the TrackNode cannot get The instance of the TrackManager -
orxonox/trunk/src/util/track/track_node.cc
r4318 r4320 32 32 TrackNode::TrackNode () 33 33 { 34 this->setClassID(CL_TRACK_NODE );34 this->setClassID(CL_TRACK_NODE, "TrackNode"); 35 35 this->setName("TrackNode"); /* absolete but still used... */ 36 36 -
orxonox/trunk/src/world_entities/camera.cc
r4318 r4320 33 33 Camera::Camera(void) 34 34 { 35 this->setClassID(CL_CAMERA );35 this->setClassID(CL_CAMERA, "Camera"); 36 36 this->target = new CameraTarget(); 37 37 … … 190 190 CameraTarget::CameraTarget() 191 191 { 192 this->setClassID(CL_CAMERA_TARGET );192 this->setClassID(CL_CAMERA_TARGET, "CameraTarget"); 193 193 this->setMode(PNODE_MOVEMENT); 194 194 } -
orxonox/trunk/src/world_entities/character_attributes.cc
r4318 r4320 29 29 CharacterAttributes::CharacterAttributes () 30 30 { 31 this->setClassID(CL_CHARACTER_ATTRIBUTES );31 this->setClassID(CL_CHARACTER_ATTRIBUTES, "CharacterAttributes"); 32 32 } 33 33 -
orxonox/trunk/src/world_entities/satellite.cc
r4318 r4320 31 31 Satellite::Satellite (Vector axis, float speed) 32 32 { 33 this->setClassID(CL_SATELLITE );33 this->setClassID(CL_SATELLITE, "Satellite"); 34 34 this->model = (Model*) ResourceManager::getInstance()->load("cube", RP_LEVEL); 35 35 this->speed = speed; -
orxonox/trunk/src/world_entities/skybox.cc
r4318 r4320 62 62 void SkyBox::preInit(void) 63 63 { 64 this->setClassID(CL_SKYBOX );64 this->setClassID(CL_SKYBOX, "SkyBox"); 65 65 this->skyModel = NULL; 66 66 this->material = new Material*[6]; -
orxonox/trunk/src/world_entities/terrain.cc
r4318 r4320 77 77 void Terrain::init(void) 78 78 { 79 this->setClassID(CL_TERRAIN );79 this->setClassID(CL_TERRAIN, "Terrain"); 80 80 this->objectList = 0; 81 81 } -
orxonox/trunk/src/world_entities/test_entity.cc
r4276 r4320 28 28 TestEntity::TestEntity () : WorldEntity() 29 29 { 30 this->setClassID(CL_TEST_ENTITY, "TestEntity"); 30 31 this->md2Model = new MD2Model(); 31 32 this->md2Model->loadModel(ResourceManager::getFullName("models/tris.md2")); -
orxonox/trunk/src/world_entities/test_gun.cc
r4311 r4320 45 45 : Weapon (parent, coordinate, direction) 46 46 { 47 this->setClassID(CL_TEST_GUN, "TestGun"); 47 48 this->model = (Model*)ResourceManager::getInstance()->load("models/test_gun.obj", OBJ, RP_CAMPAIGN); 48 49 this->idleTime = 0.2f; -
orxonox/trunk/src/world_entities/world_entity.cc
r4318 r4320 30 30 WorldEntity::WorldEntity(const TiXmlElement* root) 31 31 { 32 this->setClassID(CL_WORLD_ENTITY );32 this->setClassID(CL_WORLD_ENTITY, "WorldEntity"); 33 33 this->model = NULL; 34 34
Note: See TracChangeset
for help on using the changeset viewer.