diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2006-12-29 12:22:33 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2006-12-29 12:22:33 +0000 |
commit | f50453791d237120f1ded69323fb914d6069f6be (patch) | |
tree | 2610258aeaec84a04978a92774794774b66ac9d5 /src/net/gameserver | |
parent | b2ef30efb59c8aa4df3bbaab376d46c583a40d98 (diff) | |
download | mana-client-f50453791d237120f1ded69323fb914d6069f6be.tar.gz mana-client-f50453791d237120f1ded69323fb914d6069f6be.tar.bz2 mana-client-f50453791d237120f1ded69323fb914d6069f6be.tar.xz mana-client-f50453791d237120f1ded69323fb914d6069f6be.zip |
Implemented catching and displaying of damage notifications.
Diffstat (limited to 'src/net/gameserver')
-rw-r--r-- | src/net/gameserver/player.cpp | 4 | ||||
-rw-r--r-- | src/net/gameserver/player.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/net/gameserver/player.cpp b/src/net/gameserver/player.cpp index 46cee230..0a47a6bc 100644 --- a/src/net/gameserver/player.cpp +++ b/src/net/gameserver/player.cpp @@ -67,9 +67,9 @@ void Net::GameServer::Player::equip(int itemId, char slot) Net::GameServer::connection->send(msg); } -void Net::GameServer::Player::attack() +void Net::GameServer::Player::attack(unsigned char direction) { MessageOut msg(PGMSG_ATTACK); - + msg.writeByte(direction); Net::GameServer::connection->send(msg); } diff --git a/src/net/gameserver/player.h b/src/net/gameserver/player.h index 3fb21516..d8f572ae 100644 --- a/src/net/gameserver/player.h +++ b/src/net/gameserver/player.h @@ -39,7 +39,7 @@ namespace Net // void pickUp(...); void useItem(int itemId); void equip(int itemId, char slot); - void attack(); + void attack(unsigned char direction); } } } |