#include <CureWounds.h>
Inheritance diagram for ogs::spells::conjurations::CureWounds:
Public Types | |
typedef ogs::core::XP::Level | CasterLevel |
Level of caster. | |
typedef ogs::core::Entity * | Target |
Target of cure wounds spell. | |
enum | Degree { MINOR, LIGHT, MODERATE, SERIOUS, CRITICAL } |
Determines how much damage is healed (or dealt). More... | |
Public Member Functions | |
const ogs::magic::School & | getSchool () const |
Determine the school (or subschool) for this type of spell. | |
ogs::magic::Spell::Components | getComponents () const |
Determine the components needed to cast this spell. | |
ogs::magic::Range | getRange () const |
Determine the range of this spell. | |
Degree | getDegree () const |
Determine the degree of this cure wounds spell. | |
Target | getTarget () const |
Determine the target of this spell. | |
void | setTarget (Target target) |
Change the target of this spell. | |
bool | inflictsWounds () const |
Determine if this spell inflicts wounds instead of curing wounds. | |
void | castSpell () |
Cast this spell. | |
Static Public Member Functions | |
CureWounds * | createMinor (CasterLevel casterLevel, bool inflict=false) |
Create a new Cure Minor Wounds spell. | |
CureWounds * | createLight (CasterLevel casterLevel, bool inflict=false) |
Create a new Cure Light Wounds spell. | |
CureWounds * | createModerate (CasterLevel casterLevel, bool inflict=false) |
Create a new Cure Moderate Wounds spell. | |
CureWounds * | createSerious (CasterLevel casterLevel, bool inflict=false) |
Create a new Cure Serious Wounds spell. | |
CureWounds * | createCritical (CasterLevel casterLevel, bool inflict=false) |
Create a new Cure Critical Wounds spell. | |
Protected Member Functions | |
CureWounds (CasterLevel casterLevel, Degree degree, bool inflict=false) | |
Create a new cure wounds spell. |
The opposite version of this spell inflicts wounds instead of curing damage to living creatures and heals undead creatures.
|
|
|
|
When a cure wounds spell is cast, this function first checks to see if there is a target. If there is not target, nothing happens. (In other words, this function does nothing). Otherwise, the target is checked to see if it is a creature. If the target is not a creature, nothing happens. If the target is a creature, this function rolls a random number of hit points according to the degree of spell. Next, the creature is checked to see if it is undead. If it is, a Will save is rolled for the undead creature. If the save fails, the points are subtracted from the current hit points of the undead creature. If the creature is not undead, the points are added to the current hit points of the creature (up to its maximum points).
|
|
|
|
|
|
|
|
|
|
|
|
The components of a cure wounds spell are normally verbal and somantic. Silence Spell and Still spell feats however may negate one or both of these components.
Implements ogs::magic::Spell. |
|
#return Degree of cure wounds spell. |
|
Cure wounds spells always have touch range.
Implements ogs::magic::Spell. |
|
All cure wounds spells are in the Healing subschool of the Conjuration school.
Reimplemented from ogs::spells::Conjuration. |
|
The target of this spell is the entity that will be healed (or damaged). If the entity is not a creature, the spell does nothing. If the spell does not yet have a target, the function returns NULL.
|
|
|
|
|