]> git.localhorst.tv Git - blank.git/blob - src/app/MessageState.hpp
basic message state
[blank.git] / src / app / MessageState.hpp
1 #ifndef BLANK_APP_MESSAGESTATE_HPP_
2 #define BLANK_APP_MESSAGESTATE_HPP_
3
4 #include "State.hpp"
5
6 #include "../ui/FixedText.hpp"
7
8
9 namespace blank {
10
11 class Environment;
12
13 class MessageState
14 : public State {
15
16 public:
17         explicit MessageState(Environment &);
18
19         void SetMessage(const char *);
20         void ClearMessage();
21
22         void Handle(const SDL_Event &) override;
23         void Update(int dt) override;
24         void Render(Viewport &) override;
25
26 private:
27         Environment &env;
28         FixedText message;
29         FixedText press_key;
30
31 };
32
33 }
34
35 #endif