Changeset 9869 in orxonox.OLD for trunk/src/story_entities/multi_player_world_data.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/multi_player_world_data.cc
r9494 r9869 18 18 #include "multi_player_world_data.h" 19 19 20 #include "util/loading/resource_manager.h"21 20 #include "state.h" 22 #include "class_list.h"23 21 #include "substring.h" 24 22 … … 40 38 41 39 #include "util/loading/factory.h" 42 #include " fast_factory.h"40 #include "loading/fast_factory.h" 43 41 #include "util/loading/load_param.h" 44 42 … … 50 48 51 49 #include "glmenu_imagescreen.h" 52 53 54 55 56 50 57 51 … … 313 307 { 314 308 PRINT(0)("==================================================\n"); 309 315 310 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; 325 317 PRINTF(0)("Got a playable, class: %s, name: %s, uid: %i\n", (*entity)->getClassCName(), (*entity)->getCName(), p->getUniqueID()); 326 318 } … … 329 321 if( this->toggle) 330 322 { 331 playable = dynamic_cast<Playable*>(playableList->front());323 playable = Playable::objectList().front(); 332 324 this->localPlayer->setPlayable(playable); 333 325 this->toggle = !this->toggle; … … 335 327 else 336 328 { 337 playable = dynamic_cast<Playable*>(playableList->back());329 playable = Playable::objectList().back(); 338 330 this->localPlayer->setPlayable(playable); 339 331 this->toggle = !this->toggle;
Note: See TracChangeset
for help on using the changeset viewer.