OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Functions
SpellEnumFunctions.h File Reference
#include <cassert>
#include "Utility/Segment.h"
#include "SpellEnums.h"

Functions

Segment< SpellIdallRegularSpells ()
 
bool isSpellTargetsItem (SpellId uSpellID)
 
bool isRegularSpell (SpellId uSpellID)
 
Segment< MagicSchoolallMagicSchools ()
 
Segment< SpellIdspellsForMagicSchool (MagicSchool school)
 
MagicSchool magicSchoolForSpell (SpellId spell)
 
int spellIndexInMagicSchool (SpellId spell)
 

Function Documentation

◆ allMagicSchools()

Segment< MagicSchool > allMagicSchools ( )
inline

◆ allRegularSpells()

Segment< SpellId > allRegularSpells ( )
inline
Returns
All regular spell types.

◆ isRegularSpell()

bool isRegularSpell ( SpellId  uSpellID)
inline

Is spell ID references any regular spell?

◆ isSpellTargetsItem()

bool isSpellTargetsItem ( SpellId  uSpellID)
inline

Is spell target is item in inventory?

◆ magicSchoolForSpell()

MagicSchool magicSchoolForSpell ( SpellId  spell)
inline

◆ spellIndexInMagicSchool()

int spellIndexInMagicSchool ( SpellId  spell)
inline

◆ spellsForMagicSchool()

Segment< SpellId > spellsForMagicSchool ( MagicSchool  school)
inline