diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-09 05:16:27 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-09 05:16:27 +0000 |
commit | e5f795ad9952b8bba6993ee3e324b22a0f104816 (patch) | |
tree | 1602ac0f74865135eae5acf935b0a285a8e918c2 /src/monster.cpp | |
parent | 7593d6c71e2331c3e43c732db60ad03ee4d5385d (diff) | |
download | mana-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.gz mana-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.bz2 mana-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.xz mana-e5f795ad9952b8bba6993ee3e324b22a0f104816.zip |
Made all class members named like mClassMember.
Diffstat (limited to 'src/monster.cpp')
-rw-r--r-- | src/monster.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/monster.cpp b/src/monster.cpp index 299940c5..6416c716 100644 --- a/src/monster.cpp +++ b/src/monster.cpp @@ -57,11 +57,11 @@ Monster::Monster(Uint32 id, Uint16 job, Map *map): void Monster::logic() { - if (action != STAND) + if (mAction != STAND) { - mFrame = (get_elapsed_time(walk_time) * 4) / mWalkSpeed; + mFrame = (get_elapsed_time(mWalkTime) * 4) / mWalkSpeed; - if (mFrame >= 4 && action != MONSTER_DEAD) + if (mFrame >= 4 && mAction != MONSTER_DEAD) { nextStep(); } @@ -82,13 +82,13 @@ void Monster::draw(Graphics *graphics, int offsetX, int offsetY) mFrame = 3; } - mSpriteFrame = action; - if (action != MONSTER_DEAD) { + mSpriteFrame = mAction; + if (mAction != MONSTER_DEAD) { mSpriteFrame += mFrame; } unsigned char dir = 0; - while (!(direction & (1 << dir))) dir++; + while (!(mDirection & (1 << dir))) dir++; mSpriteFrame = dir + 4 * mSpriteFrame; |