1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-26 04:12:41 +01:00
openrw/rwgame/states/MenuState.hpp
Daniel Evans 6a7802de87 Overhaul State and StateManager to remove pointers
Removed raw State pointers in favour of unique_ptrs
Avoid allowing control flow to re-enter States that have exited
Defer releasing states until the end of the frame
2016-10-24 21:29:40 +01:00

22 lines
383 B
C++

#ifndef MENUSTATE_HPP
#define MENUSTATE_HPP
#include "StateManager.hpp"
class MenuState : public State {
public:
MenuState(RWGame* game);
virtual void enter();
virtual void exit();
virtual void tick(float dt);
virtual void enterMainMenu();
virtual void enterLoadMenu();
virtual void handleEvent(const SDL_Event& event);
};
#endif // MENUSTATE_HPP