diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-07-23 15:01:45 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-07-23 15:01:45 +0000 |
commit | 091a57aca17453b08e2a912a6ed19c09131e2123 (patch) | |
tree | fdd3d71241cb02ffd72bba32de43c0012b150425 /src/game-server/monster.hpp | |
parent | 2c0a5ba8f1334b9ea3c0935ed16c7c580bb33243 (diff) | |
download | manaserv-091a57aca17453b08e2a912a6ed19c09131e2123.tar.gz manaserv-091a57aca17453b08e2a912a6ed19c09131e2123.tar.bz2 manaserv-091a57aca17453b08e2a912a6ed19c09131e2123.tar.xz manaserv-091a57aca17453b08e2a912a6ed19c09131e2123.zip |
Sent proper monster identifiers.
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 f9614ecd..19625f56 100644 --- a/src/game-server/monster.hpp +++ b/src/game-server/monster.hpp @@ -52,6 +52,12 @@ class MonsterClass MonsterClass(int id): mID(id) {} /** + * Gets monster type. + */ + int getType() const + { return mID; } + + /** * Sets monster drops. */ void setDrops(MonsterDrops const &v) @@ -102,6 +108,12 @@ class Monster : public Being, public DeathListener ~Monster(); /** + * Gets monster specy. + */ + MonsterClass *getSpecy() + { return mSpecy; } + + /** * Performs one step of controller logic. */ void update(); |