TrinityCore
SkillDiscovery.cpp File Reference
#include "SkillDiscovery.h"
#include "DatabaseEnv.h"
#include "DB2Stores.h"
#include "Log.h"
#include "Player.h"
#include "Random.h"
#include "SpellMgr.h"
#include "SpellInfo.h"
#include "World.h"
#include <map>
#include <sstream>
+ Include dependency graph for SkillDiscovery.cpp:

Go to the source code of this file.

Classes

struct  SkillDiscoveryEntry
 

Typedefs

typedef std::list< SkillDiscoveryEntrySkillDiscoveryList
 
typedef std::unordered_map< int32, SkillDiscoveryListSkillDiscoveryMap
 

Functions

void LoadSkillDiscoveryTable ()
 
uint32 GetExplicitDiscoverySpell (uint32 spellId, Player *player)
 
bool HasDiscoveredAllSpells (uint32 spellId, Player *player)
 
bool HasDiscoveredAnySpell (uint32 spellId, Player *player)
 
uint32 GetSkillDiscoverySpell (uint32 skillId, uint32 spellId, Player *player)
 

Variables

static SkillDiscoveryMap SkillDiscoveryStore
 

Typedef Documentation

◆ SkillDiscoveryList

Definition at line 43 of file SkillDiscovery.cpp.

◆ SkillDiscoveryMap

typedef std::unordered_map<int32, SkillDiscoveryList> SkillDiscoveryMap

Definition at line 44 of file SkillDiscovery.cpp.

Function Documentation

◆ GetExplicitDiscoverySpell()

uint32 GetExplicitDiscoverySpell ( uint32  spellId,
Player player 
)

Definition at line 159 of file SkillDiscovery.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetSkillDiscoverySpell()

uint32 GetSkillDiscoverySpell ( uint32  skillId,
uint32  spellId,
Player player 
)

Definition at line 222 of file SkillDiscovery.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HasDiscoveredAllSpells()

bool HasDiscoveredAllSpells ( uint32  spellId,
Player player 
)

Definition at line 196 of file SkillDiscovery.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HasDiscoveredAnySpell()

bool HasDiscoveredAnySpell ( uint32  spellId,
Player player 
)

Definition at line 209 of file SkillDiscovery.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadSkillDiscoveryTable()

void LoadSkillDiscoveryTable ( )

Definition at line 48 of file SkillDiscovery.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ SkillDiscoveryStore

SkillDiscoveryMap SkillDiscoveryStore
static

Definition at line 46 of file SkillDiscovery.cpp.