Changeset 9709 in orxonox.OLD for branches/new_class_id/src/story_entities/menu/game_menu.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/menu/game_menu.cc
r9656 r9709 22 22 23 23 #include "state.h" 24 #include "class_list.h"25 24 26 25 #include "util/loading/load_param.h" … … 43 42 #include "preferences.h" 44 43 44 #include "class_id.h" 45 45 //! This creates a Factory to fabricate a GameMenu 46 CREATE_FACTORY(GameMenu, CL_GAME_MENU);47 46 NewObjectListDefinitionID(GameMenu, CL_GAME_MENU); 47 CREATE_FACTORY(GameMenu); 48 48 49 49 … … 51 51 : GameWorld() 52 52 { 53 this-> setClassID(CL_GAME_MENU, "GameMenu");53 this->registerObject(this, GameMenu::_objectList); 54 54 this->setName("GameMenu uninitialized"); 55 55 … … 191 191 image->setForegroundColor(Color( 1,1,1,.6)); 192 192 193 const std::list<BaseObject*>* storyEntities = ClassList::getList(CL_STORY_ENTITY);194 std::list<BaseObject*>::const_iterator it;195 193 bool first = true; 196 for( it = storyEntities->begin(); it != storyEntities->end(); it++) 194 for(NewObjectList<StoryEntity>::const_iterator it = StoryEntity::objectList().begin(); 195 it != StoryEntity::objectList().end(); 196 ++it) 197 197 { 198 StoryEntity* se = dynamic_cast<StoryEntity*>(*it);198 StoryEntity* se = *it; 199 199 if( se->isContainedInMenu()) 200 200 {
Note: See TracChangeset
for help on using the changeset viewer.