Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 26, 2008, 4:26:04 PM (17 years ago)
Author:
rgrieder
Message:

Still working on the GameStates, but I have to save the work because of some major changes.

  • Exported InputManager- and TclThreadManager-tick to GSGraphics instead of Core
  • Fixed a few bugs in GameState by adding an internal state variable as bitfield (quite practical)
  • Fixed a bug in InputManager that occurred when destroying an active InputState
  • Added GSIO and GSIOConsole (3 lines of loop code with std::cin, but works ;))
  • Added more boost thread includes to OrxonoxStableHeaders.h
  • Many changes in all GameState derived classes
File:
1 edited

Legend:

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

    r1662 r1670  
    3838    {
    3939    public:
    40         GSLevel();
    41         ~GSLevel();
     40        GSLevel(const std::string& name);
     41        virtual ~GSLevel();
    4242
    43         bool tick(float dt);
     43        // this has to be public because proteced triggers a bug in msvc
     44        // when taking the function address.
     45        void setTimeFactor(float factor);
     46        float getTimeFactor() { return this->timefactor_; }
     47
     48    protected:
     49        virtual void enter();
     50        virtual void leave();
     51        virtual void ticked(float dt);
     52
     53        void loadLevel();
     54        void unloadLevel();
    4455
    4556    private:
    46         void enter();
    47         void leave();
    48 
    49         void setTimeFactor(float factor);
    5057
    5158        float timefactor_;       //!< A factor to change the gamespeed
    5259
    5360        KeyBinder*            keyBinder_;        //!< tool that loads and manages the input bindings
     61        SimpleInputState*     inputState_;
    5462        Radar*                radar_;            //!< represents the Radar (not the HUD part)
    5563        Level*                startLevel_;       //!< current hard coded default level
Note: See TracChangeset for help on using the changeset viewer.