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