summaryrefslogtreecommitdiff
path: root/src/game-server/monster.hpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-01-07 23:01:46 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-01-07 23:01:46 +0000
commitd1f105c21573bb98bf88628849bf71ecd71935d5 (patch)
treede6a626ee4557f7573bd9a2aad8087da5c542978 /src/game-server/monster.hpp
parentc1d99cc23ca3108c74ad897c9a3485701aae1220 (diff)
downloadmanaserv-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.hpp2
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 */