Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 26, 2008, 4:26:04 PM (16 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/core/input/InputManager.h

    r1659 r1670  
    127127        }
    128128
    129         bool destroyState          (const std::string& name);
    130129        InputState* getState       (const std::string& name);
    131130        InputState* getCurrentState();
     131        bool requestDestroyState   (const std::string& name);
    132132        bool requestEnterState     (const std::string& name);
    133133        bool requestLeaveState     (const std::string& name);
     134
     135        void tick(float dt);
    134136
    135137        static InputManager& getInstance()    { assert(singletonRef_s); return *singletonRef_s; }
     
    167169        void _updateActiveStates();
    168170        bool _configureInputState(InputState* state, const std::string& name, int priority);
    169 
    170         void tick(float dt);
    171171
    172172        // input events
     
    204204        std::map<int, InputState*>          inputStatesByPriority_;
    205205
    206         std::vector<InputState*>            stateEnterRequests_;   //!< Request to enter a new state
    207         std::vector<InputState*>            stateLeaveRequests_;   //!< Request to leave the current state
     206        std::set<InputState*>               stateEnterRequests_;   //!< Request to enter a new state
     207        std::set<InputState*>               stateLeaveRequests_;   //!< Request to leave a running state
     208        std::set<InputState*>               stateDestroyRequests_; //!< Request to destroy a state
    208209
    209210        std::map<int, InputState*>          activeStates_;
Note: See TracChangeset for help on using the changeset viewer.