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