summaryrefslogtreecommitdiff
path: root/src/resources/spritedef.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-03-09 22:52:34 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-03-09 22:52:34 +0000
commit16e99dc852affbc8b149d35037694dcdd25948e6 (patch)
tree2fed35187b803d595559b11b89118f7ef335d359 /src/resources/spritedef.h
parent4e2ced304a2013808b2481cceb7622848b073e5b (diff)
downloadMana-16e99dc852affbc8b149d35037694dcdd25948e6.tar.gz
Mana-16e99dc852affbc8b149d35037694dcdd25948e6.tar.bz2
Mana-16e99dc852affbc8b149d35037694dcdd25948e6.tar.xz
Mana-16e99dc852affbc8b149d35037694dcdd25948e6.zip
Actions and particle effect for monster attacks are now obtained from the monster database. Added new tail attack animation to scorpion monster sprite.
Diffstat (limited to 'src/resources/spritedef.h')
-rw-r--r--src/resources/spritedef.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/resources/spritedef.h b/src/resources/spritedef.h
index 5eeaf744..65105973 100644
--- a/src/resources/spritedef.h
+++ b/src/resources/spritedef.h
@@ -45,6 +45,16 @@ enum SpriteAction
ACTION_ATTACK_STAB,
ACTION_ATTACK_BOW,
ACTION_ATTACK_THROW,
+ ACTION_SPECIAL_0,
+ ACTION_SPECIAL_1,
+ ACTION_SPECIAL_2,
+ ACTION_SPECIAL_3,
+ ACTION_SPECIAL_4,
+ ACTION_SPECIAL_5,
+ ACTION_SPECIAL_6,
+ ACTION_SPECIAL_7,
+ ACTION_SPECIAL_8,
+ ACTION_SPECIAL_9,
ACTION_CAST_MAGIC,
ACTION_USE_ITEM,
ACTION_SIT,
@@ -80,6 +90,12 @@ class SpriteDef : public Resource
*/
Action *getAction(SpriteAction action) const;
+ /**
+ * Converts a string into a SpriteAction enum.
+ */
+ static SpriteAction
+ makeSpriteAction(const std::string &action);
+
private:
/**
@@ -130,12 +146,6 @@ class SpriteDef : public Resource
substituteAction(SpriteAction complete, SpriteAction with);
/**
- * Converts a string into a SpriteAction enum.
- */
- static SpriteAction
- makeSpriteAction(const std::string &action);
-
- /**
* Converts a string into a SpriteDirection enum.
*/
static SpriteDirection