summaryrefslogtreecommitdiff
path: root/src/game-server/monster.hpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-12-05 18:38:28 +0100
committerPhilipp Sehmisch <crush@themanaworld.org>2009-12-05 19:01:54 +0100
commitef1c2e60facf32f9f55a7bf8dcfb59f7654f18cc (patch)
treed16da8b202681e721276dd899c4d3f4c65fbc026 /src/game-server/monster.hpp
parent6f0a9c556b099c0658fb3a826593a81194efae27 (diff)
downloadmanaserv-ef1c2e60facf32f9f55a7bf8dcfb59f7654f18cc.tar.gz
manaserv-ef1c2e60facf32f9f55a7bf8dcfb59f7654f18cc.tar.bz2
manaserv-ef1c2e60facf32f9f55a7bf8dcfb59f7654f18cc.tar.xz
manaserv-ef1c2e60facf32f9f55a7bf8dcfb59f7654f18cc.zip
(refactoring) Replaced various differen tick counting constructs in the being classes with a common timer infrastructure
Diffstat (limited to 'src/game-server/monster.hpp')
-rw-r--r--src/game-server/monster.hpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/game-server/monster.hpp b/src/game-server/monster.hpp
index 1d7e958b..f6194e97 100644
--- a/src/game-server/monster.hpp
+++ b/src/game-server/monster.hpp
@@ -302,6 +302,8 @@ class Monster : public Being
{ return Map::BLOCKTYPE_MONSTER; }
private:
+ static const int DECAY_TIME = 50;
+
int calculatePositionPriority(Point position, int targetPriority);
MonsterClass *mSpecy;
@@ -312,9 +314,6 @@ class Monster : public Being
*/
Script *mScript;
- /** Count down till next random movement (temporary). */
- int mCountDown;
-
/** Aggression towards other beings. */
std::map<Being *, int> mAnger;
@@ -326,12 +325,6 @@ class Monster : public Being
*/
Character *mOwner;
- /**
- * Time until someone else can claim this monster (killsteal
- * protection).
- */
- int mOwnerTimer;
-
/** List of characters and their skills that attacked this monster. */
std::map<Character *, std::set <size_t> > mExpReceivers;
@@ -341,9 +334,6 @@ class Monster : public Being
*/
std::set<Character *> mLegalExpReceivers;
- /** Delay until monster can attack. */
- int mAttackTime;
-
/** Attack the monster is currently performing. */
MonsterAttack *mCurrentAttack;