Changeset 6121 in orxonox.OLD for branches/objectmanager/src/world_entities
- Timestamp:
- Dec 15, 2005, 1:34:32 AM (19 years ago)
- Location:
- branches/objectmanager/src/world_entities
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/objectmanager/src/world_entities/npcs/npc.cc
r6054 r6121 33 33 { 34 34 this->setClassID(CL_NPC, "NPC"); 35 35 this->toList(OM_GROUP_00); 36 36 } 37 37 -
branches/objectmanager/src/world_entities/playable.cc
r5915 r6121 46 46 PRINTF(4)("PLAYABLE INIT\n"); 47 47 48 this->toList(OM_GROUP_01); 48 49 this->weaponMan = new WeaponManager(this); 49 50 -
branches/objectmanager/src/world_entities/power_ups/power_up.cc
r5439 r6121 27 27 { 28 28 this->setClassID(CL_POWER_UP, "PowerUp"); 29 this->toList(OM_COMMON); 29 30 30 31 } -
branches/objectmanager/src/world_entities/skybox.cc
r6022 r6121 65 65 { 66 66 this->setClassID(CL_SKYBOX, "SkyBox"); 67 67 this->toList(OM_ENVIRON_NOTICK); 68 68 this->size = 100.0; 69 69 -
branches/objectmanager/src/world_entities/world_entity.cc
r6089 r6121 57 57 this->objectListIterator = NULL; 58 58 59 ObjectManager::getInstance()->toList(this,OM_NULL);59 this->toList(OM_NULL); 60 60 } 61 61 … … 73 73 this->setModel(NULL, i); 74 74 75 ObjectManager::getInstance()->toList(this, OM_INIT);75 State::getObjectManager()->toList(this, OM_INIT); 76 76 } 77 77 … … 106 106 if (strchr(fileName, '#') != NULL) 107 107 { 108 109 110 111 112 113 114 115 116 117 118 119 108 PRINTF(4)("Found # in %s... searching for LOD's\n", fileName); 109 char* lodFile = new char[strlen(fileName)+1]; 110 strcpy(lodFile, fileName); 111 char* depth = strchr(lodFile, '#'); 112 for (unsigned int i = 0; i < 5; i++) 113 { 114 *depth = 48+(int)i; 115 printf("-------%s\n", lodFile); 116 if (ResourceManager::isInDataDir(lodFile)) 117 this->loadModel(lodFile, scaling, i); 118 } 119 return; 120 120 } 121 121 … … 181 181 } 182 182 } 183 184 /** 185 * @brief moves this entity to the List OM_List 186 * @param list the list to set this Entity to. 187 * 188 * this is the same as a call to State::getObjectManager()->toList(entity , list); 189 * directly, but with an easier interface. 190 */ 191 void WorldEntity::toList(OM_LIST list) 192 { 193 State::getObjectManager()->toList(this, list); 194 } 195 183 196 184 197 -
branches/objectmanager/src/world_entities/world_entity.h
r6089 r6121 66 66 // CharacterAttributes* getCharacterAttributes(); 67 67 68 void toList(OM_LIST list); 69 68 70 /** @returns a Reference to the objectListNumber to set. */ 69 71 OM_LIST& getOMListNumber() { return this->objectListNumber; }
Note: See TracChangeset
for help on using the changeset viewer.