Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 31, 2008, 5:50:42 PM (16 years ago)
Author:
rgrieder
Message:

Modified the GameState hierarchy so that you can get the parent with the actual type by calling getParent().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/orxonox/gamestates/GSGraphics.h

    r1686 r1688  
    3535#include "core/GameState.h"
    3636#include "core/OrxonoxClass.h"
     37#include "GSRoot.h"
    3738
    3839namespace orxonox
    3940{
    40     class _OrxonoxExport GSGraphics : public GameState, public OrxonoxClass, public Ogre::WindowEventListener
     41    class _OrxonoxExport GSGraphics : public GameStateTyped<GSRoot>, public OrxonoxClass, public Ogre::WindowEventListener
    4142    {
    4243        friend class ClassIdentifier<GSGraphics>;
     
    4445        GSGraphics();
    4546        ~GSGraphics();
     47
     48        Ogre::Viewport* getViewport() { return this->viewport_; }
     49        GUIManager* getGUIManager() { return this->guiManager_; }
    4650
    4751    private:
Note: See TracChangeset for help on using the changeset viewer.