summaryrefslogtreecommitdiff
path: root/src/actionmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-12 17:17:53 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-12 17:17:53 +0300
commit81f319af0c6321474282de8928378366bbb6e44d (patch)
tree7250047bc275bd3ad399d28cfe954a48bafbd92a /src/actionmanager.cpp
parentdb6b712e4169d80f8f2c84a0efbc553d2058c191 (diff)
downloadmanaplus-81f319af0c6321474282de8928378366bbb6e44d.tar.gz
manaplus-81f319af0c6321474282de8928378366bbb6e44d.tar.bz2
manaplus-81f319af0c6321474282de8928378366bbb6e44d.tar.xz
manaplus-81f319af0c6321474282de8928378366bbb6e44d.zip
Move being directions into separate file.
Diffstat (limited to 'src/actionmanager.cpp')
-rw-r--r--src/actionmanager.cpp33
1 files changed, 21 insertions, 12 deletions
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp
index e02014781..ffb26799e 100644
--- a/src/actionmanager.cpp
+++ b/src/actionmanager.cpp
@@ -919,13 +919,13 @@ impHandler0(directUp)
{
if (player_node)
{
- if (player_node->getDirection() != Being::UP)
+ if (player_node->getDirection() != BeingDirection::UP)
{
// if (client->limitPackets(PACKET_DIRECTION))
{
- player_node->setDirection(Being::UP);
+ player_node->setDirection(BeingDirection::UP);
if (Net::getPlayerHandler())
- Net::getPlayerHandler()->setDirection(Being::UP);
+ Net::getPlayerHandler()->setDirection(BeingDirection::UP);
}
}
return true;
@@ -937,13 +937,16 @@ impHandler0(directDown)
{
if (player_node)
{
- if (player_node->getDirection() != Being::DOWN)
+ if (player_node->getDirection() != BeingDirection::DOWN)
{
// if (client->limitPackets(PACKET_DIRECTION))
{
- player_node->setDirection(Being::DOWN);
+ player_node->setDirection(BeingDirection::DOWN);
if (Net::getPlayerHandler())
- Net::getPlayerHandler()->setDirection(Being::DOWN);
+ {
+ Net::getPlayerHandler()->setDirection(
+ BeingDirection::DOWN);
+ }
}
}
return true;
@@ -955,13 +958,16 @@ impHandler0(directLeft)
{
if (player_node)
{
- if (player_node->getDirection() != Being::LEFT)
+ if (player_node->getDirection() != BeingDirection::LEFT)
{
// if (client->limitPackets(PACKET_DIRECTION))
{
- player_node->setDirection(Being::LEFT);
+ player_node->setDirection(BeingDirection::LEFT);
if (Net::getPlayerHandler())
- Net::getPlayerHandler()->setDirection(Being::LEFT);
+ {
+ Net::getPlayerHandler()->setDirection(
+ BeingDirection::LEFT);
+ }
}
}
return true;
@@ -973,13 +979,16 @@ impHandler0(directRight)
{
if (player_node)
{
- if (player_node->getDirection() != Being::RIGHT)
+ if (player_node->getDirection() != BeingDirection::RIGHT)
{
// if (client->limitPackets(PACKET_DIRECTION))
{
- player_node->setDirection(Being::RIGHT);
+ player_node->setDirection(BeingDirection::RIGHT);
if (Net::getPlayerHandler())
- Net::getPlayerHandler()->setDirection(Being::RIGHT);
+ {
+ Net::getPlayerHandler()->setDirection(
+ BeingDirection::RIGHT);
+ }
}
}
return true;