Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 3, 2006, 12:19:30 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/npcs/network_turret.cc

    r9656 r9869  
    3030
    3131#include "weapons/aiming_turret.h"
     32#include "debug.h"
    3233
    33 CREATE_FACTORY(NetworkTurret, CL_NETWORK_TURRET);
    34 
    35 
     34#include "class_id_DEPRECATED.h"
     35ObjectListDefinitionID(NetworkTurret, CL_NETWORK_TURRET);
     36CREATE_FACTORY(NetworkTurret);
    3637
    3738
     
    6263void NetworkTurret::init()
    6364{
    64   this->setClassID(CL_NETWORK_TURRET, "NetworkTurret");
     65  this->registerObject(this, NetworkTurret::_objectList);
    6566  this->loadModel("models/ground_turret_#.obj", 5);
    6667
     
    111112  ObjectManager::EntityList::iterator entity;
    112113  Vector diffVec;
    113   for (entity = State::getObjectManager()->getObjectList((OM_LIST)this->targetGroup).begin();
    114        entity != State::getObjectManager()->getObjectList((OM_LIST)this->targetGroup).end();
     114  for (entity = State::getObjectManager()->getEntityList((OM_LIST)this->targetGroup).begin();
     115       entity != State::getObjectManager()->getEntityList((OM_LIST)this->targetGroup).end();
    115116       entity ++)
    116117  {
Note: See TracChangeset for help on using the changeset viewer.