#include <MetamagicFeat.h>
Inheritance diagram for ogs::magic::MetamagicFeat:
Public Types | |
typedef SpellLevel | Cost |
The number of spell levels added by a metamagic feat. | |
Public Member Functions | |
Cost | getCost () const |
Determine the cost of this metamagic feat. | |
virtual bool | attachSpell (Spell &spell) |
Attach this metamagic feat to a spell. | |
virtual bool | detachSpell () |
Detach this metamagic feat from a spell. | |
Spell * | getSpell () const |
Detemine the spell that this feat is attached to. | |
Protected Member Functions | |
MetamagicFeat (Cost cost) | |
Create a new metamagic feat. | |
virtual bool | canAttachSpell (Spell &spell) const |
Determine if this metamagic feat can be attached to a spell. | |
virtual bool | canDetachSpell () const |
Determine if this metamagic feat can be detached from a spell. |
|
|
|
This method should always be called first by derived objects that override this function.
Reimplemented in ogs::magic::feats::EmpowerSpell, ogs::magic::feats::EnlargeSpell, ogs::magic::feats::ExtendSpell, ogs::magic::feats::HeightenSpell, ogs::magic::feats::MaximizeSpell, ogs::magic::feats::QuickenSpell, ogs::magic::feats::SilentSpell, and ogs::magic::feats::StillSpell. |
|
A metamagic feat can only be attached to a spell if it is not already attached. |
|
Metamagic feats can not be detached from spells by default.
|
|
This function resets the spell pointer to null. Derived classes that override this function should therefore call the getObject() function before calling this function.
|
|
|
|
|