From 814e88e5ca69bc54837be27429dbf42dd41f7ac6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 12 May 2014 19:12:15 +0300 Subject: Move being action into separate file. --- src/net/tmwa/playerhandler.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/net/tmwa/playerhandler.cpp') diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp index f9a8580df..550d0e89d 100644 --- a/src/net/tmwa/playerhandler.cpp +++ b/src/net/tmwa/playerhandler.cpp @@ -201,23 +201,23 @@ void PlayerHandler::setDestination(const int x, const int y, static_cast(direction)); } -void PlayerHandler::changeAction(const Being::Action &action) const +void PlayerHandler::changeAction(const BeingAction::Action &action) const { char type; switch (action) { - case Being::SIT: + case BeingAction::SIT: type = 2; break; - case Being::STAND: + case BeingAction::STAND: type = 3; break; default: - case Being::MOVE: - case Being::ATTACK: - case Being::DEAD: - case Being::HURT: - case Being::SPAWN: + case BeingAction::MOVE: + case BeingAction::ATTACK: + case BeingAction::DEAD: + case BeingAction::HURT: + case BeingAction::SPAWN: return; } -- cgit v1.2.3-60-g2f50