Changeset 9709 in orxonox.OLD for branches/new_class_id/src/world_entities/npcs/network_turret.cc
- Timestamp:
- Aug 31, 2006, 10:51:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/world_entities/npcs/network_turret.cc
r9656 r9709 31 31 #include "weapons/aiming_turret.h" 32 32 33 CREATE_FACTORY(NetworkTurret, CL_NETWORK_TURRET); 34 35 33 #include "class_id.h" 34 NewObjectListDefinitionID(NetworkTurret, CL_NETWORK_TURRET); 35 CREATE_FACTORY(NetworkTurret); 36 36 37 37 … … 62 62 void NetworkTurret::init() 63 63 { 64 this-> setClassID(CL_NETWORK_TURRET, "NetworkTurret");64 this->registerObject(this, NetworkTurret::_objectList); 65 65 this->loadModel("models/ground_turret_#.obj", 5); 66 66 … … 111 111 ObjectManager::EntityList::iterator entity; 112 112 Vector diffVec; 113 for (entity = State::getObjectManager()->get ObjectList((OM_LIST)this->targetGroup).begin();114 entity != State::getObjectManager()->get ObjectList((OM_LIST)this->targetGroup).end();113 for (entity = State::getObjectManager()->getEntityList((OM_LIST)this->targetGroup).begin(); 114 entity != State::getObjectManager()->getEntityList((OM_LIST)this->targetGroup).end(); 115 115 entity ++) 116 116 {
Note: See TracChangeset
for help on using the changeset viewer.