diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-01-07 23:01:46 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-01-07 23:01:46 +0000 |
commit | d1f105c21573bb98bf88628849bf71ecd71935d5 (patch) | |
tree | de6a626ee4557f7573bd9a2aad8087da5c542978 /src/game-server/monster.hpp | |
parent | c1d99cc23ca3108c74ad897c9a3485701aae1220 (diff) | |
download | manaserv-d1f105c21573bb98bf88628849bf71ecd71935d5.tar.gz manaserv-d1f105c21573bb98bf88628849bf71ecd71935d5.tar.bz2 manaserv-d1f105c21573bb98bf88628849bf71ecd71935d5.tar.xz manaserv-d1f105c21573bb98bf88628849bf71ecd71935d5.zip |
Player characters and monsters now attack with different ranges and angles (preparation for getting attack zone from weapon properties or monster database).
Diffstat (limited to 'src/game-server/monster.hpp')
-rw-r--r-- | src/game-server/monster.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game-server/monster.hpp b/src/game-server/monster.hpp index 40ab2047..af1d241e 100644 --- a/src/game-server/monster.hpp +++ b/src/game-server/monster.hpp @@ -151,6 +151,8 @@ class Monster : public Being // to save memory. int mAttackPreDelay; /**< time between decision to make an attack and performing the attack */ int mAttackAftDelay; /**< time it takes to perform an attack */ + int mAttackRange; /**< range of the monsters attacks in pixel */ + int mAttackAngle; /**< angle of the monsters attacks in degree */ bool mAgressive; /**< Does the monster attack without being provoked? */ unsigned mAgressionRange; /**< Distance the monster tracks enemies in */ std::list<AttackPosition> mAttackPositions; /**< set positions relative to target from which the monster can attack */ |