summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-10 14:57:39 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-10 14:57:39 +0300
commit3efda43abd11979adfd048fc62fe4f09e702f772 (patch)
tree80f8d0f65bf7648ae78e12badc11f13b4481b87a /src/net/ea
parenta0c7a0e2d34a13f2c3e86f662e352977ebe2ae73 (diff)
downloadmv-3efda43abd11979adfd048fc62fe4f09e702f772.tar.gz
mv-3efda43abd11979adfd048fc62fe4f09e702f772.tar.bz2
mv-3efda43abd11979adfd048fc62fe4f09e702f772.tar.xz
mv-3efda43abd11979adfd048fc62fe4f09e702f772.zip
improve npchandler class.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/npchandler.cpp8
-rw-r--r--src/net/ea/npchandler.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/net/ea/npchandler.cpp b/src/net/ea/npchandler.cpp
index 1640d3650..9f8e5b87f 100644
--- a/src/net/ea/npchandler.cpp
+++ b/src/net/ea/npchandler.cpp
@@ -34,19 +34,19 @@ NpcHandler::NpcHandler() :
{
}
-void NpcHandler::sendLetter(int npcId A_UNUSED,
+void NpcHandler::sendLetter(const int npcId A_UNUSED,
const std::string &recipient A_UNUSED,
- const std::string &text A_UNUSED)
+ const std::string &text A_UNUSED) const
{
// TODO
}
-void NpcHandler::startShopping(int beingId A_UNUSED)
+void NpcHandler::startShopping(const int beingId A_UNUSED) const
{
// TODO
}
-void NpcHandler::endShopping(int beingId A_UNUSED)
+void NpcHandler::endShopping(const int beingId A_UNUSED) const
{
// TODO
}
diff --git a/src/net/ea/npchandler.h b/src/net/ea/npchandler.h
index ea5bad135..526ced9f0 100644
--- a/src/net/ea/npchandler.h
+++ b/src/net/ea/npchandler.h
@@ -42,13 +42,13 @@ class NpcHandler : public Net::NpcHandler
A_DELETE_COPY(NpcHandler)
void sendLetter(int npcId, const std::string &recipient,
- const std::string &text);
+ const std::string &text) const override;
- void startShopping(int beingId);
+ void startShopping(int beingId) const override;
- void endShopping(int beingId);
+ void endShopping(int beingId) const override;
- void clearDialogs();
+ void clearDialogs() override;
virtual int getNpc(Net::MessageIn &msg,
bool haveLength) A_WARN_UNUSED = 0;