diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-09-27 03:55:19 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-09-27 03:55:19 +0000 |
commit | 29ae6d3f42ac55e7bc8c5ad0b044c7b0e662d358 (patch) | |
tree | 41ca7bb0f8b557e096a2b783f6c94ea4d3e5006a /src/game-server/monster.hpp | |
parent | c27d73abc52bdc463a029a5f6a95e1db5df5abf6 (diff) | |
download | manaserv-29ae6d3f42ac55e7bc8c5ad0b044c7b0e662d358.tar.gz manaserv-29ae6d3f42ac55e7bc8c5ad0b044c7b0e662d358.tar.bz2 manaserv-29ae6d3f42ac55e7bc8c5ad0b044c7b0e662d358.tar.xz manaserv-29ae6d3f42ac55e7bc8c5ad0b044c7b0e662d358.zip |
Implemented getting the attack zone of weapons from the item database and implemented single target attacks useful for projectile weapons like bows.
Diffstat (limited to 'src/game-server/monster.hpp')
-rw-r--r-- | src/game-server/monster.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game-server/monster.hpp b/src/game-server/monster.hpp index 0a614081..c17dfb7e 100644 --- a/src/game-server/monster.hpp +++ b/src/game-server/monster.hpp @@ -26,9 +26,11 @@ #include <map> #include <vector> +#include "game-server/attackzone.hpp" #include "game-server/being.hpp" #include "game-server/eventlistener.hpp" +class attackZone; class ItemClass; class MapComposite; @@ -55,8 +57,7 @@ struct MonsterAttack int type; int preDelay; int aftDelay; - int range; - int angle; + AttackZone attackZone; }; typedef std::vector< MonsterAttack *> MonsterAttacks; |