summaryrefslogtreecommitdiff
path: root/src/resources/monsterinfo.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-12-28 18:36:58 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-12-28 18:36:58 +0000
commitdf2d513ba368f24cbec3ece3ff0084093a568e86 (patch)
tree2488c1733a083a873fd6aaaf3acbeb434ee52c1d /src/resources/monsterinfo.cpp
parent805f3a89953eada8eb6186715ac3169e5ed5e845 (diff)
downloadmana-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.cpp')
-rw-r--r--src/resources/monsterinfo.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/resources/monsterinfo.cpp b/src/resources/monsterinfo.cpp
index c4c9ce10..8238dc3e 100644
--- a/src/resources/monsterinfo.cpp
+++ b/src/resources/monsterinfo.cpp
@@ -70,3 +70,8 @@ MonsterInfo::getSound(MonsterSoundEvent event) const
return i->second->at(rand()%i->second->size());
}
}
+
+void MonsterInfo::addParticleEffect(std::string filename)
+{
+ mParticleEffects.push_back(filename);
+}