#include <Spell.h>
Inheritance diagram for ogs::magic::Spell:
Public Types | |
typedef std::list< Component > | Components |
A list of spell components. | |
Public Member Functions | |
virtual const School & | getSchool () const=0 |
Determine the school (and subschool if applicable) that this spell belongs to. | |
virtual Descriptors | getDescriptors () const |
Determine descriptors for this spell. | |
virtual Components | getComponents () const=0 |
Determine the components needed to cast this spell. | |
virtual Range | getRange () const=0 |
Determine the range of this spell. | |
virtual bool | attachMetamagicFeat (MetamagicFeat &metamagicFeat) |
Attach a metamagic feat to this spell. | |
Protected Member Functions | |
Spell () | |
Create a new spell. |
|
This constructor is protected so only this class and derived classes can use it. All it does is create an empty array of metamagic feats. |
|
|
|
The components of a spell may vary from plain versions of the spell due to metamagic feats.
Implemented in ogs::spells::conjurations::CureWounds. |
|
Many spells have no descriptors. Therefore, this function returns an empty set of descriptors by default. Derived classes must override this function if the spell has any descriptors.
|
|
The range of a spell may vary from normal versions of the spell due to metamagic feats.
Implemented in ogs::spells::conjurations::CureWounds. |
|
Implemented in ogs::spells::Abjuration, ogs::spells::Conjuration, ogs::spells::Divination, ogs::spells::Enchantment, ogs::spells::Evocation, ogs::spells::Illusion, ogs::spells::Necromancy, ogs::spells::Transmutation, ogs::spells::Universal, and ogs::spells::conjurations::CureWounds. |