aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/spells.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/xeen/spells.h')
-rw-r--r--engines/xeen/spells.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/engines/xeen/spells.h b/engines/xeen/spells.h
index 1af4fb222f..a05e81c56d 100644
--- a/engines/xeen/spells.h
+++ b/engines/xeen/spells.h
@@ -69,6 +69,9 @@ private:
void executeSpell(MagicSpell spellId);
+ /**
+ * Spell being cast failed
+ */
void spellFailed();
// Spell list
@@ -160,12 +163,26 @@ public:
int calcSpellPoints(int spellId, int expenseFactor) const;
+ /**
+ * Cast a spell associated with an item
+ */
void castItemSpell(int itemSpellId);
+ /**
+ * Cast a given spell
+ */
int castSpell(Character *c, MagicSpell spellId);
+ /**
+ * Subtract the requirements for a given spell if available, returning
+ * true if there was sufficient
+ */
int subSpellCost(Character &c, int spellId);
+ /**
+ * Add the SP and gem requirements for a given spell to the given
+ * character and party
+ */
void addSpellCost(Character &c, int spellId);
};