Changeset 9709 in orxonox.OLD for branches/new_class_id/src/story_entities/menu
- Timestamp:
- Aug 31, 2006, 10:51:08 PM (18 years ago)
- Location:
- branches/new_class_id/src/story_entities/menu
- Files:
-
- 2 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 { -
branches/new_class_id/src/story_entities/menu/game_menu.h
r9406 r9709 22 22 class GameMenu : virtual public GameWorld, virtual public EventListener 23 23 { 24 24 NewObjectListDeclaration(GameMenu); 25 25 public: 26 26 GameMenu(const TiXmlElement* root = NULL); … … 45 45 void showMultiPlayer(); 46 46 void showOptionsMenu(); 47 47 48 48 void showClientMenu(); 49 49 void connectToServer(); 50 50 51 51 void showServerMenu(); 52 52 void createMasterServer(); … … 69 69 void setSelectorSound(const std::string& selectorSound); 70 70 71 71 72 72 73 73 … … 76 76 OrxGui::GLGuiBox* levelsBox; 77 77 OrxGui::GLGuiBox* networkBox; 78 78 79 79 OrxGui::GLGuiBox* clientNetworkBox; 80 80 OrxGui::GLGuiInputLine* ipInputLine; 81 81 82 82 OrxGui::GLGuiBox* serverNetworkBox; 83 83
Note: See TracChangeset
for help on using the changeset viewer.