Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 18, 2008, 9:17:30 PM (16 years ago)
Author:
rgrieder
Message:

started implementing the GameStates. Not much for now, but most of the Orxonox.cc code has been copied to GSRoot, GSGraphics and GSLevel.
There is no level currently, but the main menu is shown. This is more of an svn save because I would really like to have Member ConsoleCommands.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/orxonox/Main.cc

    r1660 r1661  
    4545#include "Settings.h"
    4646#include "Orxonox.h"
     47
     48#include "gamestates/GSRoot.h"
     49#include "gamestates/GSGraphics.h"
     50#include "gamestates/GSLevel.h"
     51#include "gamestates/GSGUI.h"
    4752
    4853using namespace orxonox;
     
    140145    state2->addChild(state3);
    141146    state2->addChild(state5);
    142     state3->addChild(state1);
    143147    state6->addChild(state2);
     148
     149    state6->removeChild("state2");
    144150
    145151    state5->requestState("state3");
     
    160166    COUT(2) << std::endl;*/
    161167
     168
     169    GSRoot root;
     170    GSGraphics graphics;
     171    GSLevel level;
     172    GSGUI gui;
     173
     174    root.addChild(&graphics);
     175    graphics.addChild(&level);
     176    graphics.addChild(&gui);
     177
     178    root.requestState("gui");
     179    root.tick(0.0f);
     180    root.requestState("");
    162181
    163182
     
    169188        orxonoxInstance.start(macBundlePath());
    170189#else
    171         orxonoxInstance.start();
     190        //orxonoxInstance.start();
    172191#endif
    173192    }
Note: See TracChangeset for help on using the changeset viewer.