diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2007-03-02 23:29:28 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2007-03-02 23:29:28 +0000 |
commit | 58771baadb7529b0b20ca85566ab2790ca5dcd90 (patch) | |
tree | 526b458712f46fc6b9cfdcffc98e0a625f656eb6 /src/net/gameserver | |
parent | 3ce08687bb879054f5fa93f456677246cb51afdd (diff) | |
download | mana-58771baadb7529b0b20ca85566ab2790ca5dcd90.tar.gz mana-58771baadb7529b0b20ca85566ab2790ca5dcd90.tar.bz2 mana-58771baadb7529b0b20ca85566ab2790ca5dcd90.tar.xz mana-58771baadb7529b0b20ca85566ab2790ca5dcd90.zip |
Implemented communication of being action changes.
Diffstat (limited to 'src/net/gameserver')
-rw-r--r-- | src/net/gameserver/player.cpp | 7 | ||||
-rw-r--r-- | src/net/gameserver/player.h | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/net/gameserver/player.cpp b/src/net/gameserver/player.cpp index 033327c9..9af0c238 100644 --- a/src/net/gameserver/player.cpp +++ b/src/net/gameserver/player.cpp @@ -73,3 +73,10 @@ void Net::GameServer::Player::attack(unsigned char direction) msg.writeByte(direction); Net::GameServer::connection->send(msg); } + +void Net::GameServer::Player::changeAction(Being::Action action) +{ + MessageOut msg(PGMSG_ACTION_CHANGE); + msg.writeByte(action); + Net::GameServer::connection->send(msg); +} diff --git a/src/net/gameserver/player.h b/src/net/gameserver/player.h index 73a533d5..7cc45486 100644 --- a/src/net/gameserver/player.h +++ b/src/net/gameserver/player.h @@ -24,6 +24,8 @@ #ifndef _TMW_NET_GAMESERVER_PLAYER_H #define _TMW_NET_GAMESERVER_PLAYER_H +#include "../../being.h" + #include <iosfwd> namespace Net @@ -38,6 +40,7 @@ namespace Net void drop(int slot, int amount); void equip(int slot); void attack(unsigned char direction); + void changeAction(Being::Action action); } } } |