Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 3, 2006, 12:19:30 AM (18 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/story_entities/multi_player_world_data.cc

    r9494 r9869  
    1818#include "multi_player_world_data.h"
    1919
    20 #include "util/loading/resource_manager.h"
    2120#include "state.h"
    22 #include "class_list.h"
    2321#include "substring.h"
    2422
     
    4038
    4139#include "util/loading/factory.h"
    42 #include "fast_factory.h"
     40#include "loading/fast_factory.h"
    4341#include "util/loading/load_param.h"
    4442
     
    5048
    5149#include "glmenu_imagescreen.h"
    52 
    53 
    54 
    55 
    5650
    5751
     
    313307{
    314308  PRINT(0)("==================================================\n");
     309
    315310  Playable* playable;
    316   const std::list<BaseObject*>* playableList = ClassList::getList(CL_PLAYABLE);
    317   assert(playableList != NULL);
    318   std::list<BaseObject*>::const_iterator entity;
    319 
    320 
    321 
    322   for (entity = playableList->begin(); entity != playableList->end(); entity++)
    323   {
    324     Playable* p = dynamic_cast<Playable*>(*entity);
     311
     312  for (ObjectList<Playable>::const_iterator entity = Playable::objectList().begin();
     313       entity != Playable::objectList().end();
     314      ++entity)
     315  {
     316    Playable* p = *entity;
    325317    PRINTF(0)("Got a playable, class: %s, name: %s, uid: %i\n", (*entity)->getClassCName(), (*entity)->getCName(), p->getUniqueID());
    326318  }
     
    329321  if( this->toggle)
    330322  {
    331     playable = dynamic_cast<Playable*>(playableList->front());
     323    playable = Playable::objectList().front();
    332324    this->localPlayer->setPlayable(playable);
    333325    this->toggle = !this->toggle;
     
    335327  else
    336328  {
    337     playable = dynamic_cast<Playable*>(playableList->back());
     329    playable = Playable::objectList().back();
    338330    this->localPlayer->setPlayable(playable);
    339331    this->toggle = !this->toggle;
Note: See TracChangeset for help on using the changeset viewer.