Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7368 in orxonox.OLD for trunk/src/world_entities/projectiles


Ignore:
Timestamp:
Apr 25, 2006, 11:37:59 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: some renamings, and GameWorldData now has lists for what EntityLists should be drawed/ticked/collided(not yet implemented).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/projectiles/bomb.cc

    r7193 r7368  
    183183void Bomb::detonate(float size)
    184184{
    185   std::list<WorldEntity*>* detonationList = ObjectManager::distanceFromObject(*this, size, CL_NPC);
    186   if (detonationList != NULL)
    187   {
    188     while( !detonationList->empty() )
     185  ObjectManager::EntityList detonationList;
     186  ObjectManager::distanceFromObject(detonationList, *this, size, CL_NPC);
     187    while( !detonationList.empty() )
    189188    {
    190       detonationList->front()->collidesWith(this, Vector(0,0,0));
    191       detonationList->pop_front();
     189      detonationList.front()->collidesWith(this, Vector(0,0,0));
     190      detonationList.pop_front();
    192191    }
    193     delete detonationList;
    194   }
    195192}
Note: See TracChangeset for help on using the changeset viewer.