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

#include <Creature.h>

Public Member Functions

 TrainerSpellData ()
 
 ~TrainerSpellData ()
 
TrainerSpell constFind (uint32 spell_id) const
 

Public Attributes

TrainerSpellMap spellList
 
uint32 trainerType
 

Constructor & Destructor Documentation

TrainerSpellData::TrainerSpellData ( )
inline
447 : trainerType(0) { }
uint32 trainerType
Definition: Creature.h:451
TrainerSpellData::~TrainerSpellData ( )
inline
448 { spellList.clear(); }
TrainerSpellMap spellList
Definition: Creature.h:450

Member Function Documentation

TrainerSpell const * TrainerSpellData::Find ( uint32  spell_id) const
54 {
55  TrainerSpellMap::const_iterator itr = spellList.find(spell_id);
56  if (itr != spellList.end())
57  return &itr->second;
58 
59  return NULL;
60 }
arena_t NULL
Definition: jemalloc_internal.h:624
TrainerSpellMap spellList
Definition: Creature.h:450

+ Here is the caller graph for this function:

Member Data Documentation

TrainerSpellMap TrainerSpellData::spellList
uint32 TrainerSpellData::trainerType

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