#include <SpellList.h>
Public Member Functions | |
template<class CasterClass, class SpellClass> int | getLevel () const |
Determine the spell level for a class of spell and caster. | |
template<class CasterClass, class SpellClass> int | getLevel (const SpellClass &spell) const |
Determine the spell level for a spell and a class of caster. | |
Protected Types | |
typedef std::map< Class, int > | SpellMap |
A spell maps map spells (derived classes of Spell) to the equivalent spell level. | |
typedef std::map< Class, SpellMap > | CasterMap |
A caster map maps casters (derived classes of CClass or Domain) to a map of spells. | |
Protected Member Functions | |
SpellList () | |
Create an empty spell list. | |
Protected Attributes | |
CasterMap | casterMap |
A spell list is implemented with a map of maps. |
|
This function takes into account any metamagic feats that are attached to the spell. If the spell has any metamagic feats, the total slots from the metamagic feats are added to the spell's normal level. The class of caster may be a class derived from
|
|
The class of spell must be a class dervied from the
|
|
The first map is the caster map. Derived classes must build the caster map and spell maps. |