Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 8, 2009, 12:58:47 AM (16 years ago)
Author:
dafrick
Message:

Reverted to revision 2906 (because I'm too stupid to merge correctly, 2nd try will follow shortly. ;))

Location:
code/branches/questsystem5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem5

  • code/branches/questsystem5/src/orxonox/gamestates/GSStandalone.cc

    r2907 r2908  
    3030#include "GSStandalone.h"
    3131
    32 #include <OgreViewport.h>
    33 #include <OgreCamera.h>
    34 #include "core/Game.h"
    35 #include "core/GameMode.h"
    36 #include "core/ConsoleCommand.h"
    37 #include "gui/GUIManager.h"
    38 #include "GraphicsManager.h"
     32#include "core/Core.h"
    3933
    4034namespace orxonox
    4135{
    42     AddGameState(GSStandalone, "standalone");
    43 
    44     GSStandalone::GSStandalone(const std::string& name)
    45         : GameState(name)
     36    GSStandalone::GSStandalone()
     37        : GameState<GSGraphics>("standalone")
    4638    {
    4739    }
     
    5143    }
    5244
     45    void GSStandalone::enter()
     46    {
     47        Core::setIsStandalone(true);
    5348
    54     void GSStandalone::activate()
    55     {
    56         GameMode::setIsStandalone(true);
     49        GSLevel::enter(this->getParent()->getViewport());
    5750    }
    5851
    59     void GSStandalone::deactivate()
     52    void GSStandalone::leave()
    6053    {
    61         GameMode::setIsStandalone(false);
     54        GSLevel::leave();
     55
     56        Core::setIsStandalone(false);
    6257    }
    6358
    64     void GSStandalone::update(const Clock& time)
     59    void GSStandalone::ticked(const Clock& time)
    6560    {
     61        GSLevel::ticked(time);
     62        this->tickChild(time);
    6663    }
    6764}
Note: See TracChangeset for help on using the changeset viewer.