summaryrefslogtreecommitdiff
path: root/src/resources/monsterinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/monsterinfo.h')
-rw-r--r--src/resources/monsterinfo.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/resources/monsterinfo.h b/src/resources/monsterinfo.h
index 05d4c014..d2a0a2c8 100644
--- a/src/resources/monsterinfo.h
+++ b/src/resources/monsterinfo.h
@@ -28,6 +28,9 @@
#include <string>
#include <vector>
+#include "../being.h"
+
+
enum SoundEvent
{
EVENT_HIT,
@@ -62,7 +65,11 @@ class MonsterInfo
setSprite(std::string filename) { mSprite = filename; }
void
- addSound (SoundEvent event, std::string filename);
+ setTargetCursorSize(Being::TargetCursorSize targetCursorSize)
+ { mTargetCursorSize = targetCursorSize; }
+
+ void
+ addSound(SoundEvent event, std::string filename);
const std::string&
getName () const { return mName; };
@@ -70,13 +77,16 @@ class MonsterInfo
const std::string&
getSprite () const { return mSprite; };
+ const Being::TargetCursorSize
+ getTargetCursorSize() const { return mTargetCursorSize; }
+
std::string
getSound (SoundEvent event) const;
private:
std::string mName;
std::string mSprite;
-
+ Being::TargetCursorSize mTargetCursorSize;
std::map<SoundEvent, std::vector<std::string>* > mSounds;
};