TrinityCore
Loading...
Searching...
No Matches
GameTables.cpp File Reference
#include "GameTables.h"
#include "ItemTemplate.h"
#include "Timer.h"
#include "Log.h"
#include "StringConvert.h"
#include "Util.h"
#include <boost/filesystem/path.hpp>
#include <fstream>
#include <sstream>
+ Include dependency graph for GameTables.cpp:

Go to the source code of this file.

Functions

template<class T >
uint32 LoadGameTable (std::vector< std::string > &errors, GameTable< T > &storage, boost::filesystem::path const &path)
 
void LoadGameTables (std::string const &dataPath)
 
template<class T >
float GetIlvlStatMultiplier (T const *row, InventoryType invType)
 
template float GetIlvlStatMultiplier (GtCombatRatingsMultByILvl const *row, InventoryType invType)
 
template float GetIlvlStatMultiplier (GtStaminaMultByILvl const *row, InventoryType invType)
 

Variables

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

Function Documentation

◆ GetIlvlStatMultiplier() [1/3]

template float GetIlvlStatMultiplier ( GtCombatRatingsMultByILvl const *  row,
InventoryType  invType 
)

◆ GetIlvlStatMultiplier() [2/3]

template float GetIlvlStatMultiplier ( GtStaminaMultByILvl const *  row,
InventoryType  invType 
)

◆ GetIlvlStatMultiplier() [3/3]

◆ LoadGameTable()

template<class T >
uint32 LoadGameTable ( std::vector< std::string > &  errors,
GameTable< T > &  storage,
boost::filesystem::path const &  path 
)
inline

◆ LoadGameTables()

Variable Documentation

◆ sArtifactKnowledgeMultiplierGameTable

GameTable<GtArtifactKnowledgeMultiplierEntry> sArtifactKnowledgeMultiplierGameTable

Definition at line 28 of file GameTables.cpp.

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

◆ sArtifactLevelXPGameTable

◆ sBarberShopCostBaseGameTable

GameTable<GtBarberShopCostBaseEntry> sBarberShopCostBaseGameTable

Definition at line 30 of file GameTables.cpp.

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

◆ sBaseMPGameTable

GameTable<GtBaseMPEntry> sBaseMPGameTable

Definition at line 31 of file GameTables.cpp.

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

◆ sBattlePetXPGameTable

GameTable<GtBattlePetXPEntry> sBattlePetXPGameTable

◆ sCombatRatingsGameTable

GameTable<GtCombatRatingsEntry> sCombatRatingsGameTable

Definition at line 33 of file GameTables.cpp.

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

◆ sCombatRatingsMultByILvlGameTable

GameTable<GtCombatRatingsMultByILvl> sCombatRatingsMultByILvlGameTable

◆ sHpPerStaGameTable

GameTable<GtHpPerStaEntry> sHpPerStaGameTable

Definition at line 35 of file GameTables.cpp.

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

◆ sItemLevelByLevelTable

GameTable<GtItemLevelByLevelEntry> sItemLevelByLevelTable

Definition at line 36 of file GameTables.cpp.

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

◆ sItemSocketCostPerLevelGameTable

GameTable<GtItemSocketCostPerLevelEntry> sItemSocketCostPerLevelGameTable

Definition at line 37 of file GameTables.cpp.

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

◆ sNpcManaCostScalerGameTable

GameTable<GtNpcManaCostScalerEntry> sNpcManaCostScalerGameTable

Definition at line 38 of file GameTables.cpp.

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

◆ sSpellScalingGameTable

GameTable<GtSpellScalingEntry> sSpellScalingGameTable

◆ sStaminaMultByILvlGameTable

GameTable<GtStaminaMultByILvl> sStaminaMultByILvlGameTable

◆ sXpGameTable

GameTable<GtXpEntry> sXpGameTable

Definition at line 41 of file GameTables.cpp.

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