summaryrefslogtreecommitdiff
path: root/src/gui/npc_text.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-02-17 15:41:47 +0000
committerJared Adams <jaxad0127@gmail.com>2009-02-17 15:41:47 +0000
commit66d2c83cf1197b0c22be070ff2c594a0a37ecfac (patch)
tree5a8e5ea093c7b567ddeda10084b70b5de1cdaebc /src/gui/npc_text.h
parent366e0b120624cb382fd3b233b8ec7a75c31a2da4 (diff)
downloadMana-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.h7
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