TrinityCore
Loading...
Searching...
No Matches
GameTables.h File Reference
#include "SharedDefines.h"
#include "Common.h"
#include <vector>
+ Include dependency graph for GameTables.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GtArtifactKnowledgeMultiplierEntry
 
struct  GtArtifactLevelXPEntry
 
struct  GtBarberShopCostBaseEntry
 
struct  GtBaseMPEntry
 
struct  GtBattlePetXPEntry
 
struct  GtCombatRatingsEntry
 
struct  GtCombatRatingsMultByILvl
 
struct  GtHpPerStaEntry
 
struct  GtItemSocketCostPerLevelEntry
 
struct  GtItemLevelByLevelEntry
 
struct  GtNpcManaCostScalerEntry
 
struct  GtSpellScalingEntry
 
struct  GtStaminaMultByILvl
 
struct  GtXpEntry
 
class  GameTable< T >
 

Functions

TC_GAME_API void LoadGameTables (std::string const &dataPath)
 
template<class T >
float GetGameTableColumnForClass (T const *row, int32 class_)
 
float GetSpellScalingColumnForClass (GtSpellScalingEntry const *row, int32 class_)
 
float GetBattlePetXPPerLevel (GtBattlePetXPEntry const *row)
 
template<class T >
float GetIlvlStatMultiplier (T const *row, InventoryType invType)
 

Variables

TC_GAME_API GameTable< GtArtifactKnowledgeMultiplierEntry > sArtifactKnowledgeMultiplierGameTable
 
TC_GAME_API GameTable< GtArtifactLevelXPEntry > sArtifactLevelXPGameTable
 
TC_GAME_API GameTable< GtBarberShopCostBaseEntry > sBarberShopCostBaseGameTable
 
TC_GAME_API GameTable< GtBaseMPEntry > sBaseMPGameTable
 
TC_GAME_API GameTable< GtBattlePetXPEntry > sBattlePetXPGameTable
 
TC_GAME_API GameTable< GtCombatRatingsEntry > sCombatRatingsGameTable
 
TC_GAME_API GameTable< GtCombatRatingsMultByILvl > sCombatRatingsMultByILvlGameTable
 
TC_GAME_API GameTable< GtHpPerStaEntry > sHpPerStaGameTable
 
TC_GAME_API GameTable< GtItemLevelByLevelEntry > sItemLevelByLevelTable
 
TC_GAME_API GameTable< GtItemSocketCostPerLevelEntry > sItemSocketCostPerLevelGameTable
 
TC_GAME_API GameTable< GtNpcManaCostScalerEntry > sNpcManaCostScalerGameTable
 
TC_GAME_API GameTable< GtSpellScalingEntry > sSpellScalingGameTable
 
TC_GAME_API GameTable< GtStaminaMultByILvl > sStaminaMultByILvlGameTable
 
TC_GAME_API GameTable< GtXpEntry > sXpGameTable
 

Function Documentation

◆ GetBattlePetXPPerLevel()

float GetBattlePetXPPerLevel ( GtBattlePetXPEntry const *  row)
inline

◆ GetGameTableColumnForClass()

template<class T >
float GetGameTableColumnForClass ( T const *  row,
int32  class_ 
)
inline

◆ GetIlvlStatMultiplier()

◆ GetSpellScalingColumnForClass()

◆ LoadGameTables()

Variable Documentation

◆ sArtifactKnowledgeMultiplierGameTable

TC_GAME_API GameTable<GtArtifactKnowledgeMultiplierEntry> sArtifactKnowledgeMultiplierGameTable
extern

Definition at line 28 of file GameTables.cpp.

Referenced by Item::GiveArtifactXp(), and LoadGameTables().

◆ sArtifactLevelXPGameTable

◆ sBarberShopCostBaseGameTable

TC_GAME_API GameTable<GtBarberShopCostBaseEntry> sBarberShopCostBaseGameTable
extern

Definition at line 30 of file GameTables.cpp.

Referenced by Player::GetBarberShopCost(), and LoadGameTables().

◆ sBaseMPGameTable

TC_GAME_API GameTable<GtBaseMPEntry> sBaseMPGameTable
extern

Definition at line 31 of file GameTables.cpp.

Referenced by ObjectMgr::GetPlayerClassLevelInfo(), and LoadGameTables().

◆ sBattlePetXPGameTable

TC_GAME_API GameTable<GtBattlePetXPEntry> sBattlePetXPGameTable
extern

◆ sCombatRatingsGameTable

TC_GAME_API GameTable<GtCombatRatingsEntry> sCombatRatingsGameTable
extern

Definition at line 33 of file GameTables.cpp.

Referenced by Player::GetRatingMultiplier(), and LoadGameTables().

◆ sCombatRatingsMultByILvlGameTable

TC_GAME_API GameTable<GtCombatRatingsMultByILvl> sCombatRatingsMultByILvlGameTable
extern

◆ sHpPerStaGameTable

TC_GAME_API GameTable<GtHpPerStaEntry> sHpPerStaGameTable
extern

Definition at line 35 of file GameTables.cpp.

Referenced by Player::GetHealthBonusFromStamina(), and LoadGameTables().

◆ sItemLevelByLevelTable

TC_GAME_API GameTable<GtItemLevelByLevelEntry> sItemLevelByLevelTable
extern

Definition at line 36 of file GameTables.cpp.

Referenced by Unit::CalcArmorReducedDamage(), and LoadGameTables().

◆ sItemSocketCostPerLevelGameTable

TC_GAME_API GameTable<GtItemSocketCostPerLevelEntry> sItemSocketCostPerLevelGameTable
extern

Definition at line 37 of file GameTables.cpp.

Referenced by Item::GetItemStatValue(), and LoadGameTables().

◆ sNpcManaCostScalerGameTable

TC_GAME_API GameTable<GtNpcManaCostScalerEntry> sNpcManaCostScalerGameTable
extern

Definition at line 38 of file GameTables.cpp.

Referenced by SpellInfo::CalcPowerCost(), and LoadGameTables().

◆ sSpellScalingGameTable

TC_GAME_API GameTable<GtSpellScalingEntry> sSpellScalingGameTable
extern

◆ sStaminaMultByILvlGameTable

TC_GAME_API GameTable<GtStaminaMultByILvl> sStaminaMultByILvlGameTable
extern

◆ sXpGameTable

TC_GAME_API GameTable<GtXpEntry> sXpGameTable
extern

Definition at line 41 of file GameTables.cpp.

Referenced by Trinity::XP::BaseGain(), LoadGameTables(), and ObjectMgr::LoadPlayerInfo().