Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 31, 2006, 10:51:08 PM (18 years ago)
Author:
bensch
Message:

orxonox/branches/new_class_id: new_class ID working, adapdet many classes, and reinvented some of the ClassID stuff

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  
    2222
    2323#include "state.h"
    24 #include "class_list.h"
    2524
    2625#include "util/loading/load_param.h"
     
    4342#include "preferences.h"
    4443
     44#include "class_id.h"
    4545//! This creates a Factory to fabricate a GameMenu
    46 CREATE_FACTORY(GameMenu, CL_GAME_MENU);
    47 
     46NewObjectListDefinitionID(GameMenu, CL_GAME_MENU);
     47CREATE_FACTORY(GameMenu);
    4848
    4949
     
    5151    : GameWorld()
    5252{
    53   this->setClassID(CL_GAME_MENU, "GameMenu");
     53  this->registerObject(this, GameMenu::_objectList);
    5454  this->setName("GameMenu uninitialized");
    5555
     
    191191      image->setForegroundColor(Color( 1,1,1,.6));
    192192
    193       const std::list<BaseObject*>* storyEntities = ClassList::getList(CL_STORY_ENTITY);
    194       std::list<BaseObject*>::const_iterator it;
    195193      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)
    197197      {
    198         StoryEntity* se = dynamic_cast<StoryEntity*>(*it);
     198        StoryEntity* se = *it;
    199199        if( se->isContainedInMenu())
    200200        {
  • branches/new_class_id/src/story_entities/menu/game_menu.h

    r9406 r9709  
    2222class GameMenu : virtual public GameWorld, virtual public EventListener
    2323{
    24 
     24  NewObjectListDeclaration(GameMenu);
    2525  public:
    2626    GameMenu(const TiXmlElement* root = NULL);
     
    4545    void showMultiPlayer();
    4646    void showOptionsMenu();
    47    
     47
    4848    void showClientMenu();
    4949    void connectToServer();
    50    
     50
    5151    void showServerMenu();
    5252    void createMasterServer();
     
    6969    void setSelectorSound(const std::string& selectorSound);
    7070
    71    
     71
    7272
    7373
     
    7676    OrxGui::GLGuiBox*                 levelsBox;
    7777    OrxGui::GLGuiBox*                 networkBox;
    78    
     78
    7979    OrxGui::GLGuiBox*                 clientNetworkBox;
    8080    OrxGui::GLGuiInputLine*           ipInputLine;
    81    
     81
    8282    OrxGui::GLGuiBox*                 serverNetworkBox;
    8383
Note: See TracChangeset for help on using the changeset viewer.