Changeset 7370 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Apr 26, 2006, 1:31:01 AM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/environments/water.cc
r7198 r7370 211 211 void Water::tick(float dt) 212 212 { 213 std::list<WorldEntity*>entityList = State::getObjectManager()->getObjectList(OM_GROUP_01_PROJ);214 std::list<WorldEntity*>::iterator entity = entityList.begin();213 ObjectManager::EntityList entityList = State::getObjectManager()->getObjectList(OM_GROUP_01_PROJ); 214 ObjectManager::EntityList::iterator entity = entityList.begin(); 215 215 while (entity != entityList.end()) 216 216 { -
trunk/src/world_entities/power_ups/weapon_power_up.cc
r7221 r7370 88 88 this->weapon = dynamic_cast<Weapon*>((weaponXML == NULL) 89 89 ? Factory::fabricate(static_cast<ClassID>(this->weapon->getLeafClassID())) 90 : Factory::fabricate(( TiXmlElement*)this->getXmlElem()->FirstChildElement("weapon")));90 : Factory::fabricate((const TiXmlElement*)this->getXmlElem()->FirstChildElement("weapon"))); 91 91 this->model = this->weapon->getModel(0); 92 92 } -
trunk/src/world_entities/spawning_point.h
r7357 r7370 70 70 ClassID classID; //!< the classid of the entity to spawn 71 71 SpawningPointMode mode; //!< the mode of the spawning point 72 std::list<WorldEntity*>queue; //!< queue of waiting WorldEntities to be spawned72 ObjectManager::EntityList queue; //!< queue of waiting WorldEntities to be spawned 73 73 bool bSpawning; //!< flag to indicate if this spawning point is active or not 74 74 }; -
trunk/src/world_entities/weapons/aim.cc
r7221 r7370 107 107 void Aim::searchTarget() 108 108 { 109 std::list<WorldEntity*>::iterator entity;109 ObjectManager::EntityList::iterator entity; 110 110 111 111 for (entity = State::getObjectManager()->getObjectList(group).begin(); -
trunk/src/world_entities/world_entity.h
r7221 r7370 82 82 OM_LIST& getOMListNumber() { return this->objectListNumber; } 83 83 /** @returns a Reference to the Iterator */ 84 std::list<WorldEntity*>::iterator& getEntityIterator() { return this->objectListIterator; }84 ObjectManager::EntityList::iterator& getEntityIterator() { return this->objectListIterator; } 85 85 86 86 int writeState(const byte* data, int length, int sender); … … 121 121 122 122 OM_LIST objectListNumber; //!< The ObjectList from ObjectManager this Entity is in. 123 std::list<WorldEntity*>::iterator objectListIterator; //!< The iterator position of this Entity in the given list of the ObjectManager.123 ObjectManager::EntityList::iterator objectListIterator; //!< The iterator position of this Entity in the given list of the ObjectManager. 124 124 125 125 float scaling;
Note: See TracChangeset
for help on using the changeset viewer.