From 5f0ebee0d4d75fa91d417f4f352abdbc7502c2f0 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Thu, 2 Nov 2006 12:43:49 +0000 Subject: Network layer refactoring. --- src/npc.cpp | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'src/npc.cpp') diff --git a/src/npc.cpp b/src/npc.cpp index b2b426dd..3bd4371b 100644 --- a/src/npc.cpp +++ b/src/npc.cpp @@ -25,9 +25,6 @@ #include "animatedsprite.h" -#include "net/messageout.h" -#include "net/protocol.h" - class Spriteset; extern Spriteset *npcset; @@ -48,25 +45,34 @@ NPC::getType() const void NPC::talk() { + // XXX Convert for new server + /* MessageOut outMsg(CMSG_NPC_TALK); outMsg.writeLong(mId); outMsg.writeByte(0); current_npc = this; + */ } void NPC::nextDialog() { + // XXX Convert for new server + /* MessageOut outMsg(CMSG_NPC_NEXT_REQUEST); outMsg.writeLong(mId); + */ } void NPC::dialogChoice(char choice) { + // XXX Convert for new server + /* MessageOut outMsg(CMSG_NPC_LIST_CHOICE); outMsg.writeLong(mId); outMsg.writeByte(choice); + */ } /* @@ -76,15 +82,21 @@ NPC::dialogChoice(char choice) void NPC::buy() { + // XXX Convert for new server + /* MessageOut outMsg(CMSG_NPC_BUY_SELL_REQUEST); outMsg.writeLong(mId); outMsg.writeByte(0); + */ } void NPC::sell() { + // XXX Convert for new server + /* MessageOut outMsg(CMSG_NPC_BUY_SELL_REQUEST); outMsg.writeLong(mId); outMsg.writeByte(1); + */ } -- cgit v1.2.3-70-g09d2