From 58771baadb7529b0b20ca85566ab2790ca5dcd90 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Fri, 2 Mar 2007 23:29:28 +0000 Subject: Implemented communication of being action changes. --- src/net/gameserver/player.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/net/gameserver/player.cpp') 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); +} -- cgit v1.2.3-70-g09d2