summaryrefslogtreecommitdiff
path: root/src/gui/npc_text.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-05 19:17:33 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-05 19:17:33 -0600
commita0c7d1f61783e77e552896824855377e4bb43f8d (patch)
treee952181b83482abeffbd8ad9c62789b8f72e42e5 /src/gui/npc_text.cpp
parent9113afb868f6c1da5911437d3ddabdcf169cbec2 (diff)
downloadmana-client-a0c7d1f61783e77e552896824855377e4bb43f8d.tar.gz
mana-client-a0c7d1f61783e77e552896824855377e4bb43f8d.tar.bz2
mana-client-a0c7d1f61783e77e552896824855377e4bb43f8d.tar.xz
mana-client-a0c7d1f61783e77e552896824855377e4bb43f8d.zip
Implement TMWServ's NpcHandler
Diffstat (limited to 'src/gui/npc_text.cpp')
-rw-r--r--src/gui/npc_text.cpp34
1 files changed, 12 insertions, 22 deletions
diff --git a/src/gui/npc_text.cpp b/src/gui/npc_text.cpp
index b33b9970..2d4a5891 100644
--- a/src/gui/npc_text.cpp
+++ b/src/gui/npc_text.cpp
@@ -19,22 +19,20 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "button.h"
-#include "npc_text.h"
-#include "scrollarea.h"
-#include "textbox.h"
+#include "gui/npc_text.h"
-#include "widgets/layout.h"
+#include "gui/button.h"
+#include "gui/scrollarea.h"
+#include "gui/textbox.h"
-#include "../npc.h"
+#include "gui/widgets/layout.h"
-#ifdef TMWSERV_SUPPORT
-#include "../net/tmwserv/gameserver/player.h"
-#else
-#include "../net/ea/npchandler.h"
-#endif
+#include "npc.h"
-#include "../utils/gettext.h"
+#include "net/net.h"
+#include "net/npchandler.h"
+
+#include "utils/gettext.h"
NpcTextDialog::NpcTextDialog()
: Window(_("NPC"))
@@ -125,20 +123,12 @@ void NpcTextDialog::action(const gcn::ActionEvent &event)
void NpcTextDialog::nextDialog(int npcID)
{
- // Net::getNpcHandler()->nextDialog(npcID);
-#ifdef TMWSERV_SUPPORT
- Net::GameServer::Player::talkToNPC(npcID, false);
-#else
- npcHandler->nextDialog(npcID);
-#endif
+ Net::getNpcHandler()->nextDialog(npcID);
}
void NpcTextDialog::closeDialog(int npcID)
{
- // Net::getNpcHandler()->closeDialog(npcID);
-#ifdef EATHENA_SUPPORT
- npcHandler->closeDialog(npcID);
-#endif
+ Net::getNpcHandler()->closeDialog(npcID);
}
void NpcTextDialog::widgetResized(const gcn::Event &event)