summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.h
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-03-02 19:10:40 -0700
committerIra Rice <irarice@gmail.com>2009-03-02 19:10:40 -0700
commit1d7b4c4640635c809feca83e76b1aa62109c0707 (patch)
tree0d715bfc941e72a6df3779d53c6c2e53729366e3 /src/resources/iteminfo.h
parent4adee3cfbafee155ab9223e94162c6055ef0a412 (diff)
downloadmana-1d7b4c4640635c809feca83e76b1aa62109c0707.tar.gz
mana-1d7b4c4640635c809feca83e76b1aa62109c0707.tar.bz2
mana-1d7b4c4640635c809feca83e76b1aa62109c0707.tar.xz
mana-1d7b4c4640635c809feca83e76b1aa62109c0707.zip
Added particle attacks back on to the players. However, instead of being
constant, particle attacks are now weapon specific, so that different weapons can have different attacks. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/resources/iteminfo.h')
-rw-r--r--src/resources/iteminfo.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h
index d3dd4908..0ea59050 100644
--- a/src/resources/iteminfo.h
+++ b/src/resources/iteminfo.h
@@ -67,6 +67,11 @@ class ItemInfo
const std::string& getName() const
{ return mName; }
+ void setParticleEffect(const std::string &particleEffect)
+ { mParticle = particleEffect; }
+
+ std::string getParticleEffect() const { return mParticle; }
+
void setImageName(const std::string &imageName)
{ mImageName = imageName; }
@@ -113,17 +118,18 @@ class ItemInfo
const std::string& getSound(EquipmentSoundEvent event) const;
protected:
- std::string mImageName; /**< The filename of the icon image. */
+ std::string mImageName; /**< The filename of the icon image. */
std::string mName;
- std::string mDescription; /**< Short description. */
- std::string mEffect; /**< Description of effects. */
- std::string mType; /**< Item type. */
- short mWeight; /**< Weight in grams. */
- int mView; /**< Item ID of how this item looks. */
- int mId; /**< Item ID */
+ std::string mDescription; /**< Short description. */
+ std::string mEffect; /**< Description of effects. */
+ std::string mType; /**< Item type. */
+ std::string mParticle; /**< Particle effect used with this item */
+ short mWeight; /**< Weight in grams. */
+ int mView; /**< Item ID of how this item looks. */
+ int mId; /**< Item ID */
// Equipment related members
- SpriteAction mAttackType; /**< Attack type, in case of weapon. */
+ SpriteAction mAttackType; /**< Attack type, in case of weapon. */
/** Maps gender to sprite filenames. */
std::map<int, std::string> mAnimationFiles;