TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
TrainerSpell Struct Reference

#include <Creature.h>

Public Member Functions

 TrainerSpell ()
 
bool IsCastable () const
 

Public Attributes

uint32 SpellID
 
uint32 MoneyCost
 
uint32 ReqSkillLine
 
uint32 ReqSkillRank
 
uint32 ReqLevel
 
uint32 ReqAbility [MAX_TRAINERSPELL_ABILITY_REQS]
 

Constructor & Destructor Documentation

TrainerSpell::TrainerSpell ( )
inline
426  : SpellID(0), MoneyCost(0), ReqSkillLine(0), ReqSkillRank(0), ReqLevel(0)
427  {
428  for (uint8 i = 0; i < MAX_TRAINERSPELL_ABILITY_REQS; ++i)
429  ReqAbility[i] = 0;
430  }
uint32 ReqSkillRank
Definition: Creature.h:435
#define MAX_TRAINERSPELL_ABILITY_REQS
Definition: Creature.h:422
uint32 ReqSkillLine
Definition: Creature.h:434
uint32 ReqAbility[MAX_TRAINERSPELL_ABILITY_REQS]
Definition: Creature.h:437
uint32 ReqLevel
Definition: Creature.h:436
uint32 SpellID
Definition: Creature.h:432
uint8_t uint8
Definition: Define.h:152
uint32 MoneyCost
Definition: Creature.h:433

Member Function Documentation

bool TrainerSpell::IsCastable ( ) const
inline
440 { return ReqAbility[0] != SpellID; }
uint32 ReqAbility[MAX_TRAINERSPELL_ABILITY_REQS]
Definition: Creature.h:437
uint32 SpellID
Definition: Creature.h:432

+ Here is the caller graph for this function:

Member Data Documentation

uint32 TrainerSpell::MoneyCost
uint32 TrainerSpell::ReqAbility[MAX_TRAINERSPELL_ABILITY_REQS]
uint32 TrainerSpell::ReqLevel
uint32 TrainerSpell::ReqSkillLine
uint32 TrainerSpell::ReqSkillRank
uint32 TrainerSpell::SpellID

The documentation for this struct was generated from the following file: