Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 27, 2005, 4:07:22 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: moved old world_entites branche out of the way

Location:
branches/old.we
Files:
1 edited
1 copied
1 moved

Legend:

Unmodified
Added
Removed
  • branches/old.we/src/world_entities/weapons/bomb.cc

    r5744 r5796  
    2121#include "vector.h"
    2222#include "fast_factory.h"
     23
     24#include "object_manager.h"
    2325
    2426
     
    105107  Vector v = this->velocity * (time);
    106108  this->shiftCoor(v);
     109  /////////////////////////////////////////////////////////////////////////////////////////
     110  // TESTING THE OBJECT MANAGER  //////////////////////////////////////////////////////////
     111  /////////////////////////////////////////////////////////////////////////////////////////
     112
     113  std::list<WorldEntity*>* objList = ObjectManager::distanceFromObject(*this, 100, CL_NPC);
     114  std::list<WorldEntity*>::const_iterator detonator;
     115  for (detonator = objList->begin(); detonator != objList->end(); ++detonator)
     116  {
     117//    printf("%d\n", strlen((*detonator)->getName()));
     118    (*detonator)->collidesWith(this, Vector(0,0,0));
     119
     120  }
     121  /////////////////////////////////////////////////////////////////////////////////////////
    107122
    108123  this->lifeCycle += time/this->lifeSpan;
     
    146161void Bomb::collidesWith (WorldEntity* entity, const Vector& location)
    147162{
    148         this->detonate();
     163        this->detonate();
    149164}
    150165
     
    168183  while(lm != NULL)
    169184  {
    170    
     185
    171186    lm = it->nextElement();
    172187  }
Note: See TracChangeset for help on using the changeset viewer.