X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FMessageState.hpp;fp=src%2Fapp%2FMessageState.hpp;h=29c8cb68f317dea46fd0079f4d816a01377c6100;hb=78a290bd642c5578c9dd17481c8164ff50889ca2;hp=0000000000000000000000000000000000000000;hpb=1a3912b055be2f9143d4f5c7f01678ca5661ab53;p=blank.git diff --git a/src/app/MessageState.hpp b/src/app/MessageState.hpp new file mode 100644 index 0000000..29c8cb6 --- /dev/null +++ b/src/app/MessageState.hpp @@ -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