Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7370 in orxonox.OLD for trunk/src/world_entities


Ignore:
Timestamp:
Apr 26, 2006, 1:31:01 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: drawLists/tickLists are used, and made some TiXmlElement to const TiXmlElement, also fixed some bugs in the loadWorldEntities-functions from Gameworld and SipleGameMenu

Location:
trunk/src/world_entities
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/environments/water.cc

    r7198 r7370  
    211211void Water::tick(float dt)
    212212{
    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();
    215215  while (entity != entityList.end())
    216216  {
  • trunk/src/world_entities/power_ups/weapon_power_up.cc

    r7221 r7370  
    8888  this->weapon = dynamic_cast<Weapon*>((weaponXML == NULL)
    8989      ? 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")));
    9191  this->model = this->weapon->getModel(0);
    9292}
  • trunk/src/world_entities/spawning_point.h

    r7357 r7370  
    7070    ClassID                   classID;                        //!< the classid of the entity to spawn
    7171    SpawningPointMode         mode;                           //!< the mode of the spawning point
    72     std::list<WorldEntity*>   queue;                          //!< queue of waiting WorldEntities to be spawned
     72    ObjectManager::EntityList   queue;                          //!< queue of waiting WorldEntities to be spawned
    7373    bool                      bSpawning;                      //!< flag to indicate if this spawning point is active or not
    7474};
  • trunk/src/world_entities/weapons/aim.cc

    r7221 r7370  
    107107void Aim::searchTarget()
    108108{
    109   std::list<WorldEntity*>::iterator entity;
     109  ObjectManager::EntityList::iterator entity;
    110110
    111111  for (entity = State::getObjectManager()->getObjectList(group).begin();
  • trunk/src/world_entities/world_entity.h

    r7221 r7370  
    8282  OM_LIST& getOMListNumber() { return this->objectListNumber; }
    8383  /** @returns a Reference to the Iterator */
    84   std::list<WorldEntity*>::iterator& getEntityIterator() { return this->objectListIterator; }
     84  ObjectManager::EntityList::iterator& getEntityIterator() { return this->objectListIterator; }
    8585
    8686  int       writeState(const byte* data, int length, int sender);
     
    121121
    122122  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.
    124124
    125125  float                   scaling;
Note: See TracChangeset for help on using the changeset viewer.