diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-02 22:37:35 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-02 22:37:35 -0600 |
commit | d13b3eaca82e3547c84f60b9b135464ff3a51cf0 (patch) | |
tree | e4ede7c58a991b85ff208a7155d0b74236f23bac /src/localplayer.cpp | |
parent | 4916370e6130bfee7eb9ae486f03391d2214ecf4 (diff) | |
download | mana-d13b3eaca82e3547c84f60b9b135464ff3a51cf0.tar.gz mana-d13b3eaca82e3547c84f60b9b135464ff3a51cf0.tar.bz2 mana-d13b3eaca82e3547c84f60b9b135464ff3a51cf0.tar.xz mana-d13b3eaca82e3547c84f60b9b135464ff3a51cf0.zip |
Start TMWServ's PlayerHandler and InventoryHandler
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index a154e6a0..031ff342 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -354,7 +354,7 @@ void LocalPlayer::moveInvItem(Item *item, int newIndex) void LocalPlayer::equipItem(Item *item) { // Net::getInventoryHandler()->equipItem(item); -#ifdef TMWSERV_SUPPORT +#ifdef TMWSERV_SUPPORT // Ready for replacement Net::GameServer::Player::equip(item->getInvIndex()); #else inventoryHandler->equipItem(item); @@ -376,7 +376,7 @@ void LocalPlayer::unequipItem(int slot) void LocalPlayer::unequipItem(Item *item) { // Net::getInventoryHandler()->unequipItem(item); -#ifdef TMWSERV_SUPPORT +#ifdef TMWSERV_SUPPORT // Ready for replacement Net::GameServer::Player::unequip(item->getInvIndex()); #else inventoryHandler->unequipItem(item); @@ -391,7 +391,7 @@ void LocalPlayer::unequipItem(Item *item) void LocalPlayer::useItem(Item *item) { // Net::getInventoryHandler()->useItem(item); -#ifdef TMWSERV_SUPPORT +#ifdef TMWSERV_SUPPORT // Ready for replacement Net::GameServer::Player::useItem(item->getInvIndex()); #else inventoryHandler->useItem(item); @@ -401,7 +401,7 @@ void LocalPlayer::useItem(Item *item) void LocalPlayer::dropItem(Item *item, int quantity) { // Net::getInventoryHandler()->dropItem(item, quantity); -#ifdef TMWSERV_SUPPORT +#ifdef TMWSERV_SUPPORT // Ready for replacement Net::GameServer::Player::drop(item->getInvIndex(), quantity); #else inventoryHandler->dropItem(item, quantity); @@ -433,7 +433,7 @@ void LocalPlayer::pickUp(FloorItem *item) if (dx * dx + dy * dy < 4) { // Net::getPlayerHandler()->pickUp(item); -#ifdef TMWSERV_SUPPORT +#ifdef TMWSERV_SUPPORT // Ready for replacement int id = item->getId(); Net::GameServer::Player::pickUp(id >> 16, id & 0xFFFF); #else @@ -550,7 +550,8 @@ void LocalPlayer::walk(unsigned char dir) else if (dir) { // If the being can't move, just change direction -#ifdef TMWSERV_SUPPORT + // Net::getPlayerHandler()->setDirection(dir); +#ifdef TMWSERV_SUPPORT // Ready for replacement Net::GameServer::Player::changeDir(dir); #else // TODO: Communicate this to the server @@ -631,7 +632,7 @@ void LocalPlayer::setDestination(Uint16 x, Uint16 y) mDestY = y; // Net::getPlayerHandler()->setDestination(x, y, mDirection); -#ifdef TMWSERV_SUPPORT +#ifdef TMWSERV_SUPPORT // Ready for replacement Net::GameServer::Player::walk(x, y); //Debugging fire burst effectManager->trigger(15,x,y); @@ -701,8 +702,7 @@ void LocalPlayer::toggleSit() } // Net::getPlayerHandler()->changeAction(newAction); - -#ifdef TMWSERV_SUPPORT +#ifdef TMWSERV_SUPPORT // Ready for replacement setAction(newAction); Net::GameServer::Player::changeAction(newAction); #else @@ -717,7 +717,7 @@ void LocalPlayer::emote(Uint8 emotion) mLastAction = tick_time; // Net::getPlayerHandler()->emote(emotion); -#ifdef EATHENA_SUPPORT +#ifdef EATHENA_SUPPORT // Ready for replacement playerHandler->emote(emotion); #endif } @@ -884,7 +884,7 @@ void LocalPlayer::stopAttack() void LocalPlayer::revive() { // Net::getPlayerHandler()->respawn(); -#ifdef EATHENA_SUPPORT +#ifdef EATHENA_SUPPORT // Ready for replacement playerHandler->respawn(); #endif } |