Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6222 in orxonox.OLD for trunk/src/world_entities/weapons/aim.cc


Ignore:
Timestamp:
Dec 21, 2005, 1:49:06 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the christmas branche to the trunk
merged with command:
svn merge -r6165:HEAD christmas_branche/ ../trunk/
no conflicts

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore set to
      Makefile.in
      Makefile
      configure
      *.kdevelop
      Doxyfile
      config.log
      config.h
      config.status
      stamp-h1
      autom4te.cache
      aclocal.m4
  • trunk/src

    • Property svn:ignore set to
      .deps
      orxonox
      Makefile
      Makefile.in

  • trunk/src/world_entities/weapons/aim.cc

    r6142 r6222  
    2121#include "graphics_engine.h"
    2222#include "state.h"
    23 #include "list.h"
    2423#include "material.h"
    2524#include "t_animation.h"
     
    104103void Aim::searchTarget(float range)
    105104{
    106   //FIXME//
    107 /*  tIterator<WorldEntity>* iterator = State::getWorldEntityList()->getIterator();
    108   WorldEntity* entity = iterator->firstElement();
    109   while (likely(entity != NULL))
     105  std::list<WorldEntity*>::iterator entity;
     106
     107  for (entity = State::getObjectManager()->getObjectList(OM_GROUP_00).begin();
     108       entity != State::getObjectManager()->getObjectList(OM_GROUP_00).end();
     109       entity ++)
    110110  {
    111     if (entity->isA(CL_NPC) && this->source->getAbsCoor().x < entity->getAbsCoor().x && (this->source->getAbsCoor() - entity->getAbsCoor()).len() < range)
     111    if (this->source->getAbsCoor().x < (*entity)->getAbsCoor().x && (this->source->getAbsCoor() - (*entity)->getAbsCoor()).len() < range)
    112112    {
    113       if (this->getParent() != entity)
     113      if (this->getParent() != (*entity))
    114114      {
    115115        this->anim->replay();
    116         this->setParentSoft(entity, 5);
     116        this->setParentSoft(*entity, 5);
     117        return;
    117118      }
    118       delete iterator;
    119       return;
    120119    }
    121     entity = iterator->nextElement();
    122120  }
    123 
    124   delete iterator;*/
    125121}
    126122
Note: See TracChangeset for help on using the changeset viewer.