Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
Player.cpp File Reference
#include "AccountMgr.h"
#include "AchievementMgr.h"
#include "ArenaTeam.h"
#include "ArenaTeamMgr.h"
#include "Battlefield.h"
#include "BattlefieldMgr.h"
#include "BattlefieldWG.h"
#include "Battleground.h"
#include "BattlegroundMgr.h"
#include "BattlePetMgr.h"
#include "CellImpl.h"
#include "Channel.h"
#include "ChannelMgr.h"
#include "CharacterDatabaseCleaner.h"
#include "Chat.h"
#include "Common.h"
#include "ConditionMgr.h"
#include "CreatureAI.h"
#include "DatabaseEnv.h"
#include "Player.h"
#include "DB2Stores.h"
#include "DisableMgr.h"
#include "Formulas.h"
#include "GameEventMgr.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 "LFGMgr.h"
#include "Language.h"
#include "Log.h"
#include "MapInstanced.h"
#include "MapManager.h"
#include "ObjectAccessor.h"
#include "ObjectMgr.h"
#include "Opcodes.h"
#include "Platform/TimeUtils.h"
#include "OutdoorPvP.h"
#include "OutdoorPvPMgr.h"
#include "Pet.h"
#include "PetTransportController.h"
#include "PetTransportSupport.h"
#include "QuestDef.h"
#include "ReputationMgr.h"
#include "PlayerPackets.h"
#include "PlayerRestState.h"
#include "SkillDiscovery.h"
#include "SocialMgr.h"
#include "Spell.h"
#include "SpellAuraEffects.h"
#include "SpellAuras.h"
#include "SpellBookPackets.h"
#include "SpellMgr.h"
#include "Transport.h"
#include "UpdateData.h"
#include "UpdateFieldFlags.h"
#include "UpdateMask.h"
#include "Util.h"
#include "Vehicle.h"
#include "Weather.h"
#include "WeatherMgr.h"
#include "World.h"
#include "WorldPacket.h"
#include "WorldSession.h"
#include "WorldStateBuilder.h"
#include "MovementStructures.h"
#include "Config.h"
Include dependency graph for Player.cpp:

Go to the source code of this file.

Macros

#define DEATH_EXPIRE_STEP   (5*MINUTE)
#define MAX_DEATH_COUNT   3
#define RelocateToHomebind()
#define REMOVE_VIOLATING_FLAGS(check, maskToRemove)
#define ZONE_UPDATE_INTERVAL   (1*IN_MILLISECONDS)

Enumerations

enum  CharacterCustomizeFlags { CHAR_CUSTOMIZE_FLAG_NONE = 0x00000000 , CHAR_CUSTOMIZE_FLAG_CUSTOMIZE = 0x00000001 , CHAR_CUSTOMIZE_FLAG_FACTION = 0x00010000 , CHAR_CUSTOMIZE_FLAG_RACE = 0x00100000 }
enum  CharacterFlags {
  CHARACTER_FLAG_NONE = 0x00000000 , CHARACTER_FLAG_UNK1 = 0x00000001 , CHARACTER_FLAG_UNK2 = 0x00000002 , CHARACTER_LOCKED_FOR_TRANSFER = 0x00000004 ,
  CHARACTER_FLAG_UNK4 = 0x00000008 , CHARACTER_FLAG_UNK5 = 0x00000010 , CHARACTER_FLAG_UNK6 = 0x00000020 , CHARACTER_FLAG_UNK7 = 0x00000040 ,
  CHARACTER_FLAG_UNK8 = 0x00000080 , CHARACTER_FLAG_UNK9 = 0x00000100 , CHARACTER_FLAG_UNK10 = 0x00000200 , CHARACTER_FLAG_HIDE_HELM = 0x00000400 ,
  CHARACTER_FLAG_HIDE_CLOAK = 0x00000800 , CHARACTER_FLAG_UNK13 = 0x00001000 , CHARACTER_FLAG_GHOST = 0x00002000 , CHARACTER_FLAG_RENAME = 0x00004000 ,
  CHARACTER_FLAG_UNK16 = 0x00008000 , CHARACTER_FLAG_UNK17 = 0x00010000 , CHARACTER_FLAG_UNK18 = 0x00020000 , CHARACTER_FLAG_UNK19 = 0x00040000 ,
  CHARACTER_FLAG_UNK20 = 0x00080000 , CHARACTER_FLAG_UNK21 = 0x00100000 , CHARACTER_FLAG_UNK22 = 0x00200000 , CHARACTER_FLAG_UNK23 = 0x00400000 ,
  CHARACTER_FLAG_UNK24 = 0x00800000 , CHARACTER_FLAG_LOCKED_BY_BILLING = 0x01000000 , CHARACTER_FLAG_DECLINED = 0x02000000 , CHARACTER_FLAG_UNK27 = 0x04000000 ,
  CHARACTER_FLAG_UNK28 = 0x08000000 , CHARACTER_FLAG_UNK29 = 0x10000000 , CHARACTER_FLAG_UNK30 = 0x20000000 , CHARACTER_FLAG_UNK31 = 0x40000000 ,
  CHARACTER_FLAG_UNK32 = 0x80000000
}

Functions

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

Variables

static uint32 copseReclaimDelay [MAX_DEATH_COUNT] = { 30, 60, 120 }
static RuneType runeSlotTypes [MAX_RUNES]

Macro Definition Documentation

◆ DEATH_EXPIRE_STEP

#define DEATH_EXPIRE_STEP   (5*MINUTE)

◆ MAX_DEATH_COUNT

#define MAX_DEATH_COUNT   3

◆ RelocateToHomebind

#define RelocateToHomebind ( )
Value:
{ mapId = m_homebindMapId; instanceId = 0; Relocate(m_homebindX, m_homebindY, m_homebindZ); }

Referenced by Player::LoadFromDB().

◆ REMOVE_VIOLATING_FLAGS

#define REMOVE_VIOLATING_FLAGS ( check,
maskToRemove )
Value:
if (check) \
mi->RemoveMovementFlag((maskToRemove));

Referenced by Player::ReadMovementInfo().

◆ ZONE_UPDATE_INTERVAL

#define ZONE_UPDATE_INTERVAL   (1*IN_MILLISECONDS)

Definition at line 80 of file Player.cpp.

Referenced by Player::Update(), and Player::UpdateZone().

Enumeration Type Documentation

◆ CharacterCustomizeFlags

Enumerator
CHAR_CUSTOMIZE_FLAG_NONE 
CHAR_CUSTOMIZE_FLAG_CUSTOMIZE 
CHAR_CUSTOMIZE_FLAG_FACTION 
CHAR_CUSTOMIZE_FLAG_RACE 

Definition at line 119 of file Player.cpp.

◆ CharacterFlags

Enumerator
CHARACTER_FLAG_NONE 
CHARACTER_FLAG_UNK1 
CHARACTER_FLAG_UNK2 
CHARACTER_LOCKED_FOR_TRANSFER 
CHARACTER_FLAG_UNK4 
CHARACTER_FLAG_UNK5 
CHARACTER_FLAG_UNK6 
CHARACTER_FLAG_UNK7 
CHARACTER_FLAG_UNK8 
CHARACTER_FLAG_UNK9 
CHARACTER_FLAG_UNK10 
CHARACTER_FLAG_HIDE_HELM 
CHARACTER_FLAG_HIDE_CLOAK 
CHARACTER_FLAG_UNK13 
CHARACTER_FLAG_GHOST 
CHARACTER_FLAG_RENAME 
CHARACTER_FLAG_UNK16 
CHARACTER_FLAG_UNK17 
CHARACTER_FLAG_UNK18 
CHARACTER_FLAG_UNK19 
CHARACTER_FLAG_UNK20 
CHARACTER_FLAG_UNK21 
CHARACTER_FLAG_UNK22 
CHARACTER_FLAG_UNK23 
CHARACTER_FLAG_UNK24 
CHARACTER_FLAG_LOCKED_BY_BILLING 
CHARACTER_FLAG_DECLINED 
CHARACTER_FLAG_UNK27 
CHARACTER_FLAG_UNK28 
CHARACTER_FLAG_UNK29 
CHARACTER_FLAG_UNK30 
CHARACTER_FLAG_UNK31 
CHARACTER_FLAG_UNK32 

Definition at line 82 of file Player.cpp.

Function Documentation

◆ BeforeVisibilityDestroy()

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

Definition at line 18161 of file Player.cpp.

Referenced by Player::UpdateVisibilityOf().

◆ BeforeVisibilityDestroy< Creature >()

◆ DeleteSpellFromAllPlayers()

void DeleteSpellFromAllPlayers ( uint32 spellId)

◆ SkillGainChance()

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

◆ UpdateVisibilityOf_helper() [1/4]

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

Definition at line 18147 of file Player.cpp.

References Object::GetGUID().

◆ UpdateVisibilityOf_helper() [2/4]

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

◆ UpdateVisibilityOf_helper() [3/4]

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

Definition at line 18154 of file Player.cpp.

References Object::GetGUID().

◆ UpdateVisibilityOf_helper() [4/4]

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

Definition at line 18133 of file Player.cpp.

Referenced by Player::UpdateVisibilityOf().

Variable Documentation

◆ copseReclaimDelay

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

Definition at line 131 of file Player.cpp.

Referenced by Player::GetCorpseReclaimDelay(), and Player::SendCorpseReclaimDelay().

◆ runeSlotTypes