TrinityCore
Loading...
Searching...
No Matches
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< SkillDiscoveryEntry > SkillDiscoveryList
 
typedef std::unordered_map< int32, SkillDiscoveryList > SkillDiscoveryMap
 

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()

◆ GetSkillDiscoverySpell()

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

◆ HasDiscoveredAllSpells()

bool HasDiscoveredAllSpells ( uint32  spellId,
Player *  player 
)

◆ HasDiscoveredAnySpell()

bool HasDiscoveredAnySpell ( uint32  spellId,
Player *  player 
)

◆ LoadSkillDiscoveryTable()

Variable Documentation

◆ SkillDiscoveryStore