TrinityCore
Loading...
Searching...
No Matches
Player.cpp File Reference
#include "Player.h"
#include "AccountMgr.h"
#include "AchievementMgr.h"
#include "ArenaTeam.h"
#include "ArenaTeamMgr.h"
#include "Bag.h"
#include "Battlefield.h"
#include "BattlefieldMgr.h"
#include "Battleground.h"
#include "BattlegroundMgr.h"
#include "BattlegroundPackets.h"
#include "BattlegroundScore.h"
#include "CellImpl.h"
#include "Channel.h"
#include "ChannelMgr.h"
#include "CharacterCache.h"
#include "CharacterDatabaseCleaner.h"
#include "CharacterPackets.h"
#include "Chat.h"
#include "CinematicMgr.h"
#include "CombatLogPackets.h"
#include "CombatPackets.h"
#include "Common.h"
#include "ConditionMgr.h"
#include "Containers.h"
#include "CreatureAI.h"
#include "DatabaseEnv.h"
#include "DisableMgr.h"
#include "Formulas.h"
#include "GameClient.h"
#include "GameEventMgr.h"
#include "GameObjectAI.h"
#include "GameTime.h"
#include "GitRevision.h"
#include "GossipDef.h"
#include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "Group.h"
#include "GroupMgr.h"
#include "Guild.h"
#include "GuildMgr.h"
#include "InstanceSaveMgr.h"
#include "InstanceScript.h"
#include "Item.h"
#include "KillRewarder.h"
#include "Language.h"
#include "LFGMgr.h"
#include "Log.h"
#include "LootItemStorage.h"
#include "LootMgr.h"
#include "Mail.h"
#include "MailPackets.h"
#include "MapManager.h"
#include "MiscPackets.h"
#include "MotionMaster.h"
#include "ObjectAccessor.h"
#include "ObjectMgr.h"
#include "Opcodes.h"
#include "OutdoorPvP.h"
#include "OutdoorPvPMgr.h"
#include "Pet.h"
#include "PetitionMgr.h"
#include "PoolMgr.h"
#include "QueryHolder.h"
#include "QuestDef.h"
#include "QuestPools.h"
#include "Realm.h"
#include "ReputationMgr.h"
#include "SkillDiscovery.h"
#include "SocialMgr.h"
#include "Spell.h"
#include "SpellAuraEffects.h"
#include "SpellAuras.h"
#include "SpellHistory.h"
#include "SpellMgr.h"
#include "SpellPackets.h"
#include "StringConvert.h"
#include "TalentPackets.h"
#include "TicketMgr.h"
#include "TradeData.h"
#include "Trainer.h"
#include "Transport.h"
#include "UpdateData.h"
#include "UpdateFieldFlags.h"
#include "UpdateMask.h"
#include "Util.h"
#include "Weather.h"
#include "WeatherMgr.h"
#include "World.h"
#include "WorldPacket.h"
#include "WorldSession.h"
#include "WorldStatePackets.h"
+ Include dependency graph for Player.cpp:

Go to the source code of this file.

Macros

#define ZONE_UPDATE_INTERVAL   (1*IN_MILLISECONDS)
 
#define DEATH_EXPIRE_STEP   (5*MINUTE)
 
#define MAX_DEATH_COUNT   3
 

Functions

void DeleteSpellFromAllPlayers (uint32 spellId)
 
static bool IsUnlearnSpellsPacketNeededForSpell (uint32 spellId)
 
int SkillGainChance (uint32 SkillValue, uint32 GrayLevel, uint32 GreenLevel, uint32 YellowLevel)
 
uint8 GetFishingStepsNeededToLevelUp (uint32 SkillValue)
 
template<class T >
void UpdateVisibilityOf_helper (GuidUnorderedSet &s64, T *target, std::set< Unit * > &)
 
template<>
void UpdateVisibilityOf_helper (GuidUnorderedSet &s64, GameObject *target, std::set< Unit * > &)
 
template<>
void UpdateVisibilityOf_helper (GuidUnorderedSet &s64, Creature *target, std::set< Unit * > &v)
 
template<>
void UpdateVisibilityOf_helper (GuidUnorderedSet &s64, Player *target, std::set< Unit * > &v)
 
template<class T >
void BeforeVisibilityDestroy (T *, Player *)
 
template<>
void BeforeVisibilityDestroy< Creature > (Creature *t, Player *p)
 

Variables

static uint32 corpseReclaimDelay [MAX_DEATH_COUNT] = { 30, 60, 120 }
 
uint32 const MAX_MONEY_AMOUNT = static_cast<uint32>(std::numeric_limits<int32>::max())
 
static RuneType runeSlotTypes [MAX_RUNES]
 

Macro Definition Documentation

◆ DEATH_EXPIRE_STEP

#define DEATH_EXPIRE_STEP   (5*MINUTE)

Definition at line 114 of file Player.cpp.

◆ MAX_DEATH_COUNT

#define MAX_DEATH_COUNT   3

Definition at line 115 of file Player.cpp.

◆ ZONE_UPDATE_INTERVAL

#define ZONE_UPDATE_INTERVAL   (1*IN_MILLISECONDS)

Definition at line 111 of file Player.cpp.

Function Documentation

◆ BeforeVisibilityDestroy()

template<class T >
void BeforeVisibilityDestroy ( T *  ,
Player  
)
inline

Definition at line 22163 of file Player.cpp.

◆ BeforeVisibilityDestroy< Creature >()

template<>
void BeforeVisibilityDestroy< Creature > ( Creature t,
Player p 
)
inline

Definition at line 22166 of file Player.cpp.

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

◆ DeleteSpellFromAllPlayers()

void DeleteSpellFromAllPlayers ( uint32  spellId)

Definition at line 2854 of file Player.cpp.

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

◆ GetFishingStepsNeededToLevelUp()

uint8 GetFishingStepsNeededToLevelUp ( uint32  SkillValue)

Definition at line 5511 of file Player.cpp.

+ Here is the caller graph for this function:

◆ IsUnlearnSpellsPacketNeededForSpell()

static bool IsUnlearnSpellsPacketNeededForSpell ( uint32  spellId)
static

Definition at line 2926 of file Player.cpp.

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

◆ SkillGainChance()

int SkillGainChance ( uint32  SkillValue,
uint32  GrayLevel,
uint32  GreenLevel,
uint32  YellowLevel 
)
inline

Definition at line 5438 of file Player.cpp.

+ Here is the caller graph for this function:

◆ UpdateVisibilityOf_helper() [1/4]

template<>
void UpdateVisibilityOf_helper ( GuidUnorderedSet s64,
Creature target,
std::set< Unit * > &  v 
)
inline

Definition at line 22149 of file Player.cpp.

+ Here is the call graph for this function:

◆ UpdateVisibilityOf_helper() [2/4]

template<>
void UpdateVisibilityOf_helper ( GuidUnorderedSet s64,
GameObject target,
std::set< Unit * > &   
)
inline

Definition at line 22141 of file Player.cpp.

+ Here is the call graph for this function:

◆ UpdateVisibilityOf_helper() [3/4]

template<>
void UpdateVisibilityOf_helper ( GuidUnorderedSet s64,
Player target,
std::set< Unit * > &  v 
)
inline

Definition at line 22156 of file Player.cpp.

+ Here is the call graph for this function:

◆ UpdateVisibilityOf_helper() [4/4]

template<class T >
void UpdateVisibilityOf_helper ( GuidUnorderedSet s64,
T *  target,
std::set< Unit * > &   
)
inline

Definition at line 22135 of file Player.cpp.

+ Here is the caller graph for this function:

Variable Documentation

◆ corpseReclaimDelay

uint32 corpseReclaimDelay[MAX_DEATH_COUNT] = { 30, 60, 120 }
static

Definition at line 117 of file Player.cpp.

◆ MAX_MONEY_AMOUNT

uint32 const MAX_MONEY_AMOUNT = static_cast<uint32>(std::numeric_limits<int32>::max())

Definition at line 119 of file Player.cpp.

◆ runeSlotTypes

RuneType runeSlotTypes[MAX_RUNES]
static
Initial value:
=
{
}
@ RUNE_UNHOLY
Definition Player.h:289
@ RUNE_FROST
Definition Player.h:290
@ RUNE_BLOOD
Definition Player.h:288

Definition at line 24485 of file Player.cpp.