summaryrefslogtreecommitdiff
path: root/src/game-server/monster.hpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-06-06 15:45:38 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-06-06 15:45:38 +0200
commitde81e609cfff934fbae1b45968e7418ab714c70f (patch)
treeb99d291f34111ecd195a7847c5e666a0367bb065 /src/game-server/monster.hpp
parentada6a81353f0ae36002f03c0620dc6545b56366a (diff)
downloadmanaserv-de81e609cfff934fbae1b45968e7418ab714c70f.tar.gz
manaserv-de81e609cfff934fbae1b45968e7418ab714c70f.tar.bz2
manaserv-de81e609cfff934fbae1b45968e7418ab714c70f.tar.xz
manaserv-de81e609cfff934fbae1b45968e7418ab714c70f.zip
More const correctness and small code cleanups
Diffstat (limited to 'src/game-server/monster.hpp')
-rw-r--r--src/game-server/monster.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game-server/monster.hpp b/src/game-server/monster.hpp
index 6d145fc8..e1737da7 100644
--- a/src/game-server/monster.hpp
+++ b/src/game-server/monster.hpp
@@ -174,10 +174,10 @@ class MonsterClass
const MonsterAttacks &getAttacks() const { return mAttacks; }
/** sets the script file for the monster */
- void setScript(std::string& filename) { mScript = filename; }
+ void setScript(const std::string &filename) { mScript = filename; }
/** Returns script filename */
- std::string &getScript() { return mScript; }
+ const std::string &getScript() const { return mScript; }
/**
* Randomly selects a monster drop (may return NULL).
@@ -241,7 +241,7 @@ class Monster : public Being
/**
* Returns monster specy.
*/
- MonsterClass *getSpecy()
+ MonsterClass *getSpecy() const
{ return mSpecy; }
/**
@@ -257,7 +257,7 @@ class Monster : public Being
/**
* Loads a script file for this monster
*/
- void loadScript(std::string &scriptName);
+ void loadScript(const std::string &scriptName);
/**
*