summaryrefslogtreecommitdiff
path: root/src/player.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2006-08-27 16:23:36 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2006-08-27 16:23:36 +0000
commit1554a6749f2dbcd9b44aae1df3e320a06b049d4f (patch)
tree08efd4ca4dc8a81bb53894d138cf702fd1d40c55 /src/player.cpp
parent8ca48faeb472bb6645ec18c7b2e0480e8e20435e (diff)
downloadmana-1554a6749f2dbcd9b44aae1df3e320a06b049d4f.tar.gz
mana-1554a6749f2dbcd9b44aae1df3e320a06b049d4f.tar.bz2
mana-1554a6749f2dbcd9b44aae1df3e320a06b049d4f.tar.xz
mana-1554a6749f2dbcd9b44aae1df3e320a06b049d4f.zip
Cleaned the logic members.
Diffstat (limited to 'src/player.cpp')
-rw-r--r--src/player.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/player.cpp b/src/player.cpp
index 52f2cdb0..b635397e 100644
--- a/src/player.cpp
+++ b/src/player.cpp
@@ -42,26 +42,6 @@ Player::Player(Uint32 id, Uint16 job, Map *map):
new AnimatedSprite("graphics/sprites/weapons.xml", 0);
}
-void
-Player::logic()
-{
- switch (mAction) {
- case WALK:
- if (get_elapsed_time(mWalkTime) >= mWalkSpeed)
- {
- nextStep();
- }
- break;
- case ATTACK:
- if (get_elapsed_time(mWalkTime) >= mAttackSpeed)
- {
- nextStep();
- }
- break;
- }
- Being::logic();
-}
-
Being::Type
Player::getType() const
{