diff options
author | Chuck Miller <shadowmil@gmail.com> | 2009-09-16 21:11:34 -0400 |
---|---|---|
committer | Chuck Miller <shadowmil@gmail.com> | 2009-09-16 21:11:34 -0400 |
commit | 1702f4fe35a59d6fbeb6864902da168e2138a592 (patch) | |
tree | 933da76597552d52e730de23ac8dff32d9551c89 /src/game-server/monster.hpp | |
parent | b529177f03fffbe98b478672122ff87d25d74d3f (diff) | |
download | manaserv-1702f4fe35a59d6fbeb6864902da168e2138a592.tar.gz manaserv-1702f4fe35a59d6fbeb6864902da168e2138a592.tar.bz2 manaserv-1702f4fe35a59d6fbeb6864902da168e2138a592.tar.xz manaserv-1702f4fe35a59d6fbeb6864902da168e2138a592.zip |
Allow for basic scripted monsters
Diffstat (limited to 'src/game-server/monster.hpp')
-rw-r--r-- | src/game-server/monster.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/game-server/monster.hpp b/src/game-server/monster.hpp index 21b6cf2c..8dc2102b 100644 --- a/src/game-server/monster.hpp +++ b/src/game-server/monster.hpp @@ -23,11 +23,13 @@ #include <map> #include <vector> +#include <string> #include "game-server/being.hpp" #include "game-server/eventlistener.hpp" class ItemClass; +class Script; /** * Structure containing an item class and its probability to be dropped @@ -235,6 +237,11 @@ class Monster : public Being void perform(); /** + * Loads a script file for this monster + */ + void loadScript(std::string &scriptName); + + /** * */ virtual int getAttackType() const @@ -276,6 +283,11 @@ class Monster : public Being MonsterClass *mSpecy; + /** + * Stores script for the monster, null if no script exist + */ + Script *mScript; + /** Count down till next random movement (temporary). */ int mCountDown; |