diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-02-17 15:41:47 +0000 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-02-17 15:41:47 +0000 |
commit | 66d2c83cf1197b0c22be070ff2c594a0a37ecfac (patch) | |
tree | 5a8e5ea093c7b567ddeda10084b70b5de1cdaebc /src/gui/npc_text.h | |
parent | 366e0b120624cb382fd3b233b8ec7a75c31a2da4 (diff) | |
download | mana-66d2c83cf1197b0c22be070ff2c594a0a37ecfac.tar.gz mana-66d2c83cf1197b0c22be070ff2c594a0a37ecfac.tar.bz2 mana-66d2c83cf1197b0c22be070ff2c594a0a37ecfac.tar.xz mana-66d2c83cf1197b0c22be070ff2c594a0a37ecfac.zip |
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.
Diffstat (limited to 'src/gui/npc_text.h')
-rw-r--r-- | src/gui/npc_text.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 |