summaryrefslogtreecommitdiff
path: root/src/net/tmwserv/playerhandler.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-02 22:37:35 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-02 22:37:35 -0600
commitd13b3eaca82e3547c84f60b9b135464ff3a51cf0 (patch)
treee4ede7c58a991b85ff208a7155d0b74236f23bac /src/net/tmwserv/playerhandler.cpp
parent4916370e6130bfee7eb9ae486f03391d2214ecf4 (diff)
downloadmana-d13b3eaca82e3547c84f60b9b135464ff3a51cf0.tar.gz
mana-d13b3eaca82e3547c84f60b9b135464ff3a51cf0.tar.bz2
mana-d13b3eaca82e3547c84f60b9b135464ff3a51cf0.tar.xz
mana-d13b3eaca82e3547c84f60b9b135464ff3a51cf0.zip
Start TMWServ's PlayerHandler and InventoryHandler
Diffstat (limited to 'src/net/tmwserv/playerhandler.cpp')
-rw-r--r--src/net/tmwserv/playerhandler.cpp63
1 files changed, 63 insertions, 0 deletions
diff --git a/src/net/tmwserv/playerhandler.cpp b/src/net/tmwserv/playerhandler.cpp
index 106894a1..4643dd8a 100644
--- a/src/net/tmwserv/playerhandler.cpp
+++ b/src/net/tmwserv/playerhandler.cpp
@@ -23,8 +23,11 @@
#include "net/tmwserv/protocol.h"
+#include "net/tmwserv/gameserver/player.h"
+
#include "net/messagein.h"
+#include "effectmanager.h"
#include "engine.h"
#include "localplayer.h"
#include "log.h"
@@ -325,3 +328,63 @@ void PlayerHandler::handleMapChangeMessage(MessageIn &msg)
(int) scrollOffsetY);
viewport->scrollBy(scrollOffsetX, scrollOffsetY);
}
+
+void PlayerHandler::attack(Being *being)
+{
+ // TODO
+}
+
+void PlayerHandler::emote(int emoteId)
+{
+ // TODO
+}
+
+void PlayerHandler::increaseStat(LocalPlayer::Attribute attr)
+{
+ // TODO
+}
+
+void PlayerHandler::decreaseStat(LocalPlayer::Attribute attr)
+{
+ // TODO
+}
+
+void PlayerHandler::pickUp(FloorItem *floorItem)
+{
+ int id = floorItem->getId();
+ Net::GameServer::Player::pickUp(id >> 16, id & 0xFFFF);
+}
+
+void PlayerHandler::setDirection(char direction)
+{
+ Net::GameServer::Player::changeDir(direction);
+}
+
+void PlayerHandler::setDestination(int x, int y, int direction)
+{
+ Net::GameServer::Player::walk(x, y);
+ //Debugging fire burst
+ effectManager->trigger(15, x, y);
+}
+
+void PlayerHandler::changeAction(Being::Action action)
+{
+ if (action == Being::SIT)
+ player_node->setAction(action);
+ Net::GameServer::Player::changeAction(action);
+}
+
+void PlayerHandler::respawn()
+{
+ // TODO
+}
+
+void PlayerHandler::ingorePlayer(const std::string &player, bool ignore)
+{
+ // TODO
+}
+
+void PlayerHandler::ingoreAll(bool ignore)
+{
+ // TODO
+}