From 66d2c83cf1197b0c22be070ff2c594a0a37ecfac Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 17 Feb 2009 15:41:47 +0000 Subject: Reduce NpcTextDialog to one action This allows external classes (like game.cpp) to send actions to it without them having to know about it's internal state. --- src/gui/npc_text.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gui/npc_text.h') diff --git a/src/gui/npc_text.h b/src/gui/npc_text.h index 604212d2..a1373830 100644 --- a/src/gui/npc_text.h +++ b/src/gui/npc_text.h @@ -87,6 +87,13 @@ class NpcTextDialog : public Window, public gcn::ActionListener gcn::Button *mButton; std::string mText; + + enum NPCTextState { + NPC_TEXT_STATE_WAITING, + NPC_TEXT_STATE_NEXT, + NPC_TEXT_STATE_CLOSE + }; + int mState; }; #endif // NPC_TEXT_H -- cgit v1.2.3-70-g09d2