diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2007-12-28 18:36:58 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2007-12-28 18:36:58 +0000 |
commit | df2d513ba368f24cbec3ece3ff0084093a568e86 (patch) | |
tree | 2488c1733a083a873fd6aaaf3acbeb434ee52c1d /src/resources/monsterinfo.h | |
parent | 805f3a89953eada8eb6186715ac3169e5ed5e845 (diff) | |
download | mana-df2d513ba368f24cbec3ece3ff0084093a568e86.tar.gz mana-df2d513ba368f24cbec3ece3ff0084093a568e86.tar.bz2 mana-df2d513ba368f24cbec3ece3ff0084093a568e86.tar.xz mana-df2d513ba368f24cbec3ece3ff0084093a568e86.zip |
Added the possibility to assign particle effects to monsters in the monster database. Added flame particle effect to fire goblin as a proof of concept.
Diffstat (limited to 'src/resources/monsterinfo.h')
-rw-r--r-- | src/resources/monsterinfo.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/resources/monsterinfo.h b/src/resources/monsterinfo.h index 7d49db1a..d9d17510 100644 --- a/src/resources/monsterinfo.h +++ b/src/resources/monsterinfo.h @@ -27,6 +27,7 @@ #include <map> #include <string> #include <vector> +#include <list> #include "../being.h" @@ -71,6 +72,9 @@ class MonsterInfo void addSound(MonsterSoundEvent event, std::string filename); + void + addParticleEffect(std::string filename); + const std::string& getName() const { return mName; } @@ -83,11 +87,15 @@ class MonsterInfo std::string getSound(MonsterSoundEvent event) const; + const std::list<std::string>& + getParticleEffects() const { return mParticleEffects; } + private: std::string mName; std::string mSprite; Being::TargetCursorSize mTargetCursorSize; std::map<MonsterSoundEvent, std::vector<std::string>* > mSounds; + std::list<std::string> mParticleEffects; }; #endif |