]> git.localhorst.tv Git - blank.git/blobdiff - src/app/MessageState.hpp
basic message state
[blank.git] / src / app / MessageState.hpp
diff --git a/src/app/MessageState.hpp b/src/app/MessageState.hpp
new file mode 100644 (file)
index 0000000..29c8cb6
--- /dev/null
@@ -0,0 +1,35 @@
+#ifndef BLANK_APP_MESSAGESTATE_HPP_
+#define BLANK_APP_MESSAGESTATE_HPP_
+
+#include "State.hpp"
+
+#include "../ui/FixedText.hpp"
+
+
+namespace blank {
+
+class Environment;
+
+class MessageState
+: public State {
+
+public:
+       explicit MessageState(Environment &);
+
+       void SetMessage(const char *);
+       void ClearMessage();
+
+       void Handle(const SDL_Event &) override;
+       void Update(int dt) override;
+       void Render(Viewport &) override;
+
+private:
+       Environment &env;
+       FixedText message;
+       FixedText press_key;
+
+};
+
+}
+
+#endif