X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FChatState.hpp;fp=src%2Fapp%2FChatState.hpp;h=0000000000000000000000000000000000000000;hb=69e4d6c0a86a27f9b3f1297e46c55b36059a24b9;hp=56f853873b497ed5b1e2321034b066cf46acb23c;hpb=916cba3b7b9dea6459febb90d24565cf4c0a8b2a;p=blank.git diff --git a/src/app/ChatState.hpp b/src/app/ChatState.hpp deleted file mode 100644 index 56f8538..0000000 --- a/src/app/ChatState.hpp +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef BLANK_APP_CHATSTATE_HPP_ -#define BLANK_APP_CHATSTATE_HPP_ - -#include "State.hpp" - -#include "../ui/TextInput.hpp" - -#include - - -namespace blank { - -class Environment; - -class ChatState -: public State { - -public: - struct Responder { - virtual void OnLineSubmit(const std::string &) = 0; - }; - -public: - ChatState(Environment &env, State &parent, Responder &); - - void OnResume() override; - void OnPause() override; - - void OnResize(Viewport &) override; - - void Handle(const SDL_Event &) override; - void Update(int dt) override; - void Render(Viewport &) override; - - void Quit(); - -private: - Environment &env; - State &parent; - Responder &responder; - - TextInput input; - -}; - -} - -#endif