summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2010-02-10 23:46:49 -0500
committerChuck Miller <shadowmil@gmail.com>2010-02-10 23:50:23 -0500
commit85e7f2a79477712bf3082cb82e6a73c51361abb0 (patch)
treec8a42adb06e0c5ba416bd30fcd1808c1e4f26ddc /src/being.h
parent3a761a242436e521c7fa8ef3746551ac7b746308 (diff)
downloadmana-85e7f2a79477712bf3082cb82e6a73c51361abb0.tar.gz
mana-85e7f2a79477712bf3082cb82e6a73c51361abb0.tar.bz2
mana-85e7f2a79477712bf3082cb82e6a73c51361abb0.tar.xz
mana-85e7f2a79477712bf3082cb82e6a73c51361abb0.zip
Adds missile-particle attribute to items and monster attacks
To use simply add something like: missile-particle="graphics/particles/arrow.particle.xml" to the item's or monster's xml entry This will only work on equipped weapons, and on specified monster attacks. This patch also fixes a memory leak with target particles
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/being.h b/src/being.h
index 79ab1df2..404bd8e6 100644
--- a/src/being.h
+++ b/src/being.h
@@ -442,6 +442,11 @@ class Being : public Sprite, public ConfigListener
void controlParticle(Particle *particle);
/**
+ * Shoots a missile particle from this being, to target being
+ */
+ void fireMissile(Being *target, const std::string &particle);
+
+ /**
* Gets the way the object is blocked by other objects.
*/
virtual unsigned char getWalkMask() const