Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
Player Class Reference

#include <Player.h>

Inheritance diagram for Player:
Collaboration diagram for Player:

Classes

struct  BgBattlegroundQueueID_Rec

Public Member Functions

bool ActivateTaxiPathTo (std::vector< uint32 > const &nodes, Creature *npcnpc=NULL, uint32 spellid=0)
bool ActivateTaxiPathTo (uint32 taxi_path_id, uint32 spellid=0)
void AddRefundReference (uint32 it)
void AddToWorld () override
void AutoStoreLoot (uint32 loot_id, LootStore const &store, bool broadcast=false)
void AutoStoreLoot (uint8 bag, uint8 slot, uint32 loot_id, LootStore const &store, bool broadcast=false)
void AutoUnequipOffhandIfNeed (bool force=false)
InventoryResult CanBankItem (uint8 bag, uint8 slot, ItemPosCountVec &dest, Item *pItem, bool swap, bool not_loading=true) const
InventoryResult CanEquipItem (uint8 slot, uint16 &dest, Item *pItem, bool swap, bool not_loading=true) const
InventoryResult CanEquipNewItem (uint8 slot, uint16 &dest, uint32 item, bool swap) const
InventoryResult CanEquipUniqueItem (Item *pItem, uint8 except_slot=NULL_SLOT, uint32 limit_count=1) const
InventoryResult CanEquipUniqueItem (ItemTemplate const *itemProto, uint8 except_slot=NULL_SLOT, uint32 limit_count=1) const
bool CanInteractWithQuestGiver (Object *questGiver)
bool CanNoReagentCast (SpellInfo const *spellInfo) const
InventoryResult CanRollForItemInLFG (ItemTemplate const *item, WorldObject const *lootedObject) const
InventoryResult CanStoreItem (uint8 bag, uint8 slot, ItemPosCountVec &dest, Item *pItem, bool swap=false) const
InventoryResult CanStoreItem (uint8 bag, uint8 slot, ItemPosCountVec &dest, uint32 entry, uint32 count, Item *pItem=NULL, bool swap=false, uint32 *no_space_count=NULL) const
InventoryResult CanStoreItems (Item **pItem, int count) const
InventoryResult CanStoreNewItem (uint8 bag, uint8 slot, ItemPosCountVec &dest, uint32 item, uint32 count, uint32 *no_space_count=NULL) const
InventoryResult CanTakeMoreSimilarItems (Item *pItem) const
InventoryResult CanTakeMoreSimilarItems (uint32 entry, uint32 count) const
InventoryResult CanTakeMoreSimilarItems (uint32 entry, uint32 count, Item *pItem, uint32 *no_space_count=NULL) const
InventoryResult CanUnequipItem (uint16 src, bool swap) const
InventoryResult CanUnequipItems (uint32 item, uint32 count) const
InventoryResult CanUseItem (Item *pItem, bool not_loading=true) const
InventoryResult CanUseItem (ItemTemplate const *pItem) const
void CleanupAfterTaxiFlight ()
void CleanupsBeforeDelete (bool finalCleanup=true) override
void ContinueTaxiFlight ()
bool Create (uint32 guidlow, CharacterCreateInfo *createInfo)
void DeleteRefundReference (uint32 it)
ItemEquipItem (uint16 pos, Item *pItem, bool update)
ItemEquipNewItem (uint16 pos, uint32 item, bool update)
uint8 FindEquipSlot (ItemTemplate const *proto, uint32 slot, bool swap) const
BagGetBagByPos (uint8 slot) const
uint8 GetBankBagSlotCount () const
uint32 GetBarberShopCost (uint8 newhairstyle, uint8 newhaircolor, uint8 newfacialhair, BarberShopStyleEntry const *newSkin=NULL)
uint8 GetChatTag () const
bool GetCommandStatus (uint32 command) const
uint32 GetCurrency (uint32 id, bool usePrecision) const
 return count of currency witch has plr
uint32 GetCurrencyOnWeek (uint32 id, bool usePrecision) const
 return count of currency gaind on current week
uint32 GetCurrencyWeekCap (uint32 id, bool usePrecision) const
 return week cap by currency id
GameObjectGetGameObjectIfCanInteractWith (uint64 guid, GameobjectTypes type) const
float GetInnAreaBoxOrientation () const
float GetInnAreaBoxX () const
float GetInnAreaBoxY () const
float GetInnAreaBoxZ () const
float GetInnAreaRadius () const
uint32 GetInnPosMapId () const
float GetInnPosX () const
float GetInnPosY () const
float GetInnPosZ () const
ItemGetItemByEntry (uint32 entry) const
ItemGetItemByGuid (uint64 guid) const
ItemGetItemByPos (uint16 pos) const
ItemGetItemByPos (uint8 bag, uint8 slot) const
uint32 GetItemCount (uint32 item, bool inBankAlso=false, Item *skipItem=NULL) const
uint32 GetItemCountWithLimitCategory (uint32 limitCategory, Item *skipItem=NULL) const
std::vector< Item * > & GetItemUpdateQueue ()
uint32 GetLevelPlayedTime () const
uint32 GetLootSpecialization () const
uint32 GetLootSpecOrClassSpec () const
CreatureGetNPCIfCanInteractWith (uint64 guid, uint32 npcflagmask)
PetGetPet () const
float GetRestBonus () const
RestType GetRestType () const
ItemGetShield (bool useable=false) const
PlayerSocialGetSocial ()
time_t GetTimeInnEnter () const
uint32 GetTotalPlayedTime () const
ItemGetUseableItemByPos (uint8 bag, uint8 slot) const
ItemGetWeaponForAttack (WeaponAttackType attackType, bool useable=false) const
void GiveLevel (uint8 level)
void GiveXP (uint32 xp, Unit *victim, float group_rate=1.0f)
bool HasCurrency (uint32 id, uint32 count) const
 return presence related currency
bool HasItemCount (uint32 item, uint32 count=1, bool inBankAlso=false) const
bool HasItemFitToSpellRequirements (SpellInfo const *spellInfo, Item const *ignoreItem=NULL) const
bool HasItemOrGemWithIdEquipped (uint32 item, uint32 count, uint8 except_slot=NULL_SLOT) const
bool HasItemOrGemWithLimitCategoryEquipped (uint32 limitCategory, uint32 count, uint8 except_slot=NULL_SLOT) const
void InitStatsForLevel (bool reapplyMods=false)
void InitTaxiNodesForLevel ()
void InnEnter (time_t time, uint32 mapid, float x, float y, float z, float radius=0.0f, float boxX=0.0f, float boxY=0.0f, float boxZ=0.0f, float boxOrientation=0.0f)
bool isAcceptWhispers () const
bool isAFK () const
bool isDND () const
bool IsGameMaster () const
bool isGMChat () const
bool isGMVisible () const
bool IsInCurrentInnArea (float padding=0.0f) const
bool IsInWater () const override
bool isTaxiCheater () const
bool IsUnderWater () const override
bool IsValidPos (uint16 pos, bool explicit_pos)
bool IsValidPos (uint8 bag, uint8 slot, bool explicit_pos)
void ModifyCurrencyFlag (uint32 id, uint8 flag)
 Player (WorldSession *session)
void RemoveFromWorld () override
void RemovePet (Pet *pet, PetSaveMode mode, bool returnreagent=false)
void ResetCurrencyWeekCap ()
void Say (std::string const &text, const Language language)
 Handles said message in regular chat based on declared language and in config pre-defined Range.
void SendCurrencies () const
 send full data about all currencies to client
void SendInitialPacketsAfterAddToMap ()
void SendInitialPacketsBeforeAddToMap ()
void SendInstanceResetWarning (uint32 mapid, DifficultyID difficulty, uint32 time)
void SendNewCurrency (uint32 id) const
 send initialization of new currency for client
void SendPvpRewards () const
 send conquest currency points and their cap week/arena
void SendTransferAborted (uint32 mapid, TransferAbortReason reason, uint8 arg=0)
void SetAcceptWhispers (bool on)
void SetBankBagSlotCount (uint8 count)
void SetCommandStatusOff (uint32 command)
void SetCommandStatusOn (uint32 command)
void SetCurrency (uint32 id, uint32 count, bool printLog=true)
 initialize currency count for custom initialization at create character
void setDeathState (DeathState s) override
void SetGameMaster (bool on)
void SetGMChat (bool on)
void SetGMVisible (bool on)
void SetInWater (bool apply)
void SetLootSpecialization (uint32 specialization)
void SetObjectScale (float scale) override
void SetPvPDeath (bool on)
void SetRestBonus (float rest_bonus_new)
void SetRestType (RestType n_r_type)
void SetSheath (SheathState sheathed) override
void SetSummonPoint (uint32 mapid, float x, float y, float z)
void SetTaxiCheater (bool on)
void SetVirtualItemSlot (uint8 i, Item *item)
ItemStoreItem (ItemPosCountVec const &pos, Item *pItem, bool update)
void StoreLootItem (uint8 lootSlot, Loot *loot, uint64 lootGuid=0)
ItemStoreNewItem (ItemPosCountVec const &pos, uint32 item, bool update, int32 randomPropertyId=0, AllowedLooterSet const &allowedLooters=AllowedLooterSet())
bool StoreNewItemInBestSlots (uint32 item_id, uint32 item_count)
void SummonIfPossible (bool agree)
PetSummonPet (uint32 entry, float x, float y, float z, float ang, PetType petType, uint32 despwtime)
bool TeleportTo (uint32 mapid, float x, float y, float z, float orientation, uint32 options=0)
bool TeleportTo (WorldLocation const &loc, uint32 options=0)
bool TeleportToBGEntryPoint ()
void TextEmote (std::string const &text)
 Outputs an universal text which is supposed to be an action.
void ToggleAFK ()
void ToggleDND ()
void Update (uint32 time) override
void UpdateInnerTime (time_t time)
void UpdateRestAreaState ()
void Whisper (std::string const &text, const Language language, uint64 receiver)
 Handles whispers from Addons and players based on sender, receiver's guid and language.
void WhisperAddon (std::string const &text, std::string const &prefix, Player *receiver)
void Yell (std::string const &text, const Language language)
 Handles yelled message in regular chat based on declared language and in config pre-defined Range.
 ~Player ()
Public Member Functions inherited from Unit
void _addAttacker (Unit *pAttacker)
void _AddAura (UnitAura *aura, Unit *caster)
void _ApplyAllAuraStatMods ()
void _ApplyAura (AuraApplication *aurApp, uint32 effMask)
void _ApplyAuraEffect (Aura *aura, uint8 effIndex)
AuraApplication_CreateAuraApplication (Aura *aura, uint32 effMask)
void _EnterVehicle (Vehicle *vehicle, int8 seatId, AuraApplication const *aurApp=NULL)
void _ExitVehicle (Position const *exitPosition=NULL)
bool _IsValidAssistTarget (Unit const *target, SpellInfo const *bySpell) const
bool _IsValidAttackTarget (Unit const *target, SpellInfo const *bySpell, WorldObject const *obj=NULL) const
void _RegisterAuraEffect (AuraEffect *aurEff, bool apply)
void _RegisterDynObject (DynamicObject *dynObj)
void _RemoveAllAuraStatMods ()
void _removeAttacker (Unit *pAttacker)
void _RemoveNoStackAurasDueToAura (Aura *aura)
Aura_TryStackingOrRefreshingExistingAura (SpellInfo const *newAura, uint32 effMask, Unit *caster, int32 *baseAmount=NULL, Item *castItem=NULL, uint64 casterGUID=0)
void _UnapplyAura (AuraApplication *aurApp, AuraRemoveMode removeMode)
void _UnapplyAura (AuraApplicationMap::iterator &i, AuraRemoveMode removeMode)
void _UnregisterDynObject (DynamicObject *dynObj)
AuraAddAura (SpellInfo const *spellInfo, uint32 effMask, Unit *target)
AuraAddAura (uint32 spellId, Unit *target)
void AddComboPointHolder (uint32 lowguid)
void AddExtraUnitMovementFlag (uint16 f)
void addFollower (FollowerReference *pRef)
void AddGameObject (GameObject *gameObj)
void addHatedBy (HostileReference *pHostileReference)
void AddInterruptMask (uint32 mask)
void AddPetAura (PetAura const *petSpell)
void AddPlayerToVision (Player *player)
void AddThreat (Unit *victim, float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *threatSpell=NULL)
void AddToWorld () override
void AddUnitMovementFlag (uint32 f)
void AddUnitState (uint32 f)
void AddUnitTypeMask (uint32 mask)
void ApplyAttackTimePercentMod (WeaponAttackType att, float val, bool apply)
void ApplyCastTimePercentMod (float val, bool apply)
void ApplyDiminishingAura (DiminishingGroup group, bool apply)
float ApplyDiminishingToDuration (DiminishingGroup group, int32 &duration, Unit *caster, DiminishingLevels Level, int32 limitduration)
float ApplyEffectModifiers (SpellInfo const *spellProto, uint8 effect_index, float value) const
void ApplyResilience (Unit const *victim, int32 *damage, bool isCrit) const
void ApplyResistanceBuffModsMod (SpellSchools school, bool positive, float val, bool apply)
void ApplyResistanceBuffModsPercentMod (SpellSchools school, bool positive, float val, bool apply)
void ApplySpellDispelImmunity (const SpellInfo *spellProto, DispelType type, bool apply)
void ApplySpellImmune (uint32 spellId, uint32 op, uint32 type, bool apply)
void ApplyStatBuffMod (Stats stat, float val, bool apply)
void ApplyStatPercentBuffMod (Stats stat, float val, bool apply)
float ApplyTotalThreatModifier (float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL)
bool Attack (Unit *victim, bool meleeAttack)
void AttackerStateUpdate (Unit *victim, WeaponAttackType attType=WeaponAttackType::BASE_ATTACK, bool extra=false)
bool AttackStop ()
uint32 BuildAuraStateUpdateForTarget (Unit *target) const
void CalcAbsorbResist (Unit *victim, SpellSchoolMask schoolMask, DamageEffectType damagetype, uint32 const damage, uint32 *absorb, uint32 *resist, SpellInfo const *spellInfo=NULL)
uint32 CalcArmorReducedDamage (Unit *victim, const uint32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=WeaponAttackType::MAX_ATTACK)
void CalcHealAbsorb (Unit *victim, SpellInfo const *spellInfo, uint32 &healAmount, uint32 &absorb)
int32 CalcSpellDuration (SpellInfo const *spellProto)
uint32 CalcSpellResistance (Unit *victim, SpellSchoolMask schoolMask, SpellInfo const *spellInfo) const
uint32 CalculateDamage (WeaponAttackType attType, bool normalized, bool addTotalPct)
float CalculateDefaultCoefficient (SpellInfo const *spellInfo, DamageEffectType damagetype) const
float CalculateLevelPenalty (SpellInfo const *spellProto) const
void CalculateMeleeDamage (Unit *victim, uint32 damage, CalcDamageInfo *damageInfo, WeaponAttackType attackType=WeaponAttackType::BASE_ATTACK)
int32 CalculateSpellDamage (Unit const *target, SpellInfo const *spellProto, uint8 effect_index, int32 const *basePoints=NULL) const
void CalculateSpellDamageTaken (SpellNonMeleeDamage *damageInfo, int32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=WeaponAttackType::BASE_ATTACK, bool crit=false)
bool CanDualWield () const
bool CanFreeMove () const
bool CanHaveThreatList () const
bool CanModifyStats () const
bool CanProc () const
bool CanUseAttackType (WeaponAttackType attacktype) const
void CastCustomSpell (uint32 spellId, CustomSpellValues const &value, Unit *victim=NULL, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void CastCustomSpell (uint32 spellId, SpellValueMod mod, int32 value, Unit *victim, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void CastCustomSpell (uint32 spellId, SpellValueMod mod, int32 value, Unit *victim=NULL, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void CastCustomSpell (Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void CastSpell (float x, float y, float z, uint32 spellId, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void CastSpell (GameObject *go, uint32 spellId, bool triggered, Item *castItem=NULL, AuraEffect *triggeredByAura=NULL, uint64 originalCaster=0)
void CastSpell (SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void CastSpell (Unit *victim, SpellInfo const *spellInfo, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void CastSpell (Unit *victim, SpellInfo const *spellInfo, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void CastSpell (Unit *victim, uint32 spellId, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void CastSpell (Unit *victim, uint32 spellId, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void CastStop (uint32 except_spellid=0)
void ChangeSeat (int8 seatId, bool next=true)
void CleanupBeforeRemoveFromMap (bool finalCleanup)
void CleanupsBeforeDelete (bool finalCleanup=true) override
void ClearAllReactives ()
void ClearComboPointHolders ()
void ClearDiminishings ()
void ClearInCombat ()
void ClearPhases (bool update=false)
void ClearUnitState (uint32 f)
void CombatStart (Unit *target, bool initialAggro=true)
void CombatStop (bool includingCast=false)
void CombatStopWithPets (bool includingCast=false)
uint32 CountPctFromCurHealth (int32 pct) const
uint32 CountPctFromMaxHealth (int32 pct) const
int32 CountPctFromMaxPower (Powers power, int32 pct) const
PetCreateTamedPetFrom (Creature *creatureTarget, uint32 spell_id=0)
PetCreateTamedPetFrom (uint32 creatureEntry, uint32 spell_id=0)
bool CreateVehicleKit (uint32 id, uint32 creatureEntry, bool loading=false)
uint32 DealDamage (Unit *victim, uint32 damage, CleanDamage const *cleanDamage=NULL, DamageEffectType damagetype=DIRECT_DAMAGE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *spellProto=NULL, bool durabilityLoss=true)
void DealDamageMods (Unit *victim, uint32 &damage, uint32 *absorb)
int32 DealHeal (Unit *victim, uint32 addhealth)
void DealMeleeDamage (CalcDamageInfo *damageInfo, bool durabilityLoss)
void DealSpellDamage (SpellNonMeleeDamage *damageInfo, bool durabilityLoss)
void DelayOwnedAuras (uint32 spellId, uint64 caster, int32 delaytime)
void DeleteCharmInfo ()
void DeleteThreatList ()
void DeMorph ()
void Dismount ()
void EnergizeBySpell (Unit *victim, uint32 SpellID, int32 Damage, Powers powertype)
void EnterVehicle (Unit *base, int8 seatId=-1)
void ExitVehicle (Position const *exitPosition=NULL)
SpellFindCurrentSpellBySpellId (uint32 spell_id) const
void FinishSpell (CurrentSpellTypes spellType, bool ok=true)
PlayerGetAffectingPlayer () const
UnitAIGetAI ()
void GetAllMinionsByEntry (std::list< Creature * > &Minions, uint32 entry)
float GetAPMultiplier (WeaponAttackType attType, bool normalized)
AuraApplicationMapGetAppliedAuras ()
AuraApplicationMap const & GetAppliedAuras () const
uint32 GetArmor () const
void GetAttackableUnitListInRange (std::list< Unit * > &list, float fMaxSearchRange) const
UnitgetAttackerForHelper () const
AttackerSet const & getAttackers () const
uint32 GetAttackTime (WeaponAttackType att) const
uint32 getAttackTimer (WeaponAttackType type) const
AuraGetAura (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0) const
AuraApplicationGetAuraApplication (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0, AuraApplication *except=NULL) const
AuraApplicationGetAuraApplicationOfRankedSpell (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0, AuraApplication *except=NULL) const
uint32 GetAuraCount (uint32 spellId) const
AuraEffectGetAuraEffect (AuraType type, SpellFamilyNames family, uint32 familyFlag1, uint32 familyFlag2, uint32 familyFlag3, uint64 casterGUID=0) const
AuraEffectGetAuraEffect (AuraType type, SpellFamilyNames name, uint32 iconId, uint8 effIndex) const
AuraEffectGetAuraEffect (uint32 spellId, uint8 effIndex, uint64 casterGUID=0) const
AuraEffectGetAuraEffectOfRankedSpell (uint32 spellId, uint8 effIndex, uint64 casterGUID=0) const
AuraEffectList const & GetAuraEffectsByType (AuraType type) const
AuraGetAuraOfRankedSpell (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0) const
uint32 GetCastingTimeForBonus (SpellInfo const *spellProto, DamageEffectType damagetype, uint32 CastingTime) const
UnitGetCharm () const
UnitGetCharmer () const
uint64 GetCharmerGUID () const
UnitGetCharmerOrOwner () const
uint64 GetCharmerOrOwnerGUID () const
uint64 GetCharmerOrOwnerOrOwnGUID () const
UnitGetCharmerOrOwnerOrSelf () const
PlayerGetCharmerOrOwnerPlayerOrPlayerItself () const
uint64 GetCharmGUID () const
CharmInfoGetCharmInfo ()
uint8 getClass () const
uint32 getClassMask () const
float GetCombatReach () const
uint32 GetCombatTimer () const
uint32 GetCreateHealth () const
uint32 GetCreateMana () const
int32 GetCreatePowers (Powers power) const
float GetCreateStat (Stats stat) const
uint64 GetCreatorGUID () const
uint32 GetCreatureType () const
uint32 GetCreatureTypeMask () const
uint32 GetCritDamageReduction (uint32 damage) const
uint64 GetCritterGUID () const
SpellGetCurrentSpell (CurrentSpellTypes spellType) const
SpellGetCurrentSpell (uint32 spellType) const
int32 GetCurrentSpellCastTime (uint32 spell_id) const
uint32 GetDamageReduction (uint32 damage) const
DeathState getDeathState () const
DiminishingLevels GetDiminishing (DiminishingGroup group)
TransportBaseGetDirectTransport () const
 Returns the transport this unit is on directly (if on vehicle and transport, return vehicle).
uint32 GetDiseasesByCaster (uint64 casterGUID, bool remove=false)
void GetDispellableAuraList (Unit *caster, uint32 dispelMask, DispelChargesList &dispelList)
uint32 GetDisplayId () const
uint32 GetDoTsByCaster (uint64 casterGUID) const
AuraEffectGetDummyAuraEffect (SpellFamilyNames name, uint32 iconId, uint8 effIndex) const
DynamicObjectGetDynObject (uint32 spellId)
uint16 GetExtraUnitMovementFlags () const
uint32 getFaction () const
FactionTemplateEntry const * GetFactionTemplateEntry () const
UnitGetFirstControlled () const
MinionGetFirstMinion () const
virtual float GetFollowAngle () const
GameObjectGetGameObject (uint32 spellId) const
uint8 getGender () const
GuardianGetGuardianPet () const
uint32 GetHealth () const
int32 GetHealthGain (int32 dVal)
float GetHealthPct () const
HostileRefManagergetHostileRefManager ()
uint32 GetInterruptMask () const
time_t GetLastDamagedTime () const
uint8 getLevel () const
uint8 getLevelForTarget (WorldObject const *) const override
UnitGetMagicHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo)
uint32 GetMaxHealth () const
int32 GetMaxNegativeAuraModifier (AuraType auratype) const
int32 GetMaxNegativeAuraModifierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const
int32 GetMaxNegativeAuraModifierByMiscMask (AuraType auratype, uint32 misc_mask) const
int32 GetMaxNegativeAuraModifierByMiscValue (AuraType auratype, int32 misc_value) const
int32 GetMaxPositiveAuraModifier (AuraType auratype) const
int32 GetMaxPositiveAuraModifierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const
int32 GetMaxPositiveAuraModifierByMiscMask (AuraType auratype, uint32 misc_mask, const AuraEffect *except=NULL) const
int32 GetMaxPositiveAuraModifierByMiscValue (AuraType auratype, int32 misc_value) const
int32 GetMaxPower (Powers power) const
uint16 GetMaxSkillValueForLevel (Unit const *target=NULL) const
uint32 GetMechanicImmunityMask () const
int32 GetMechanicResistChance (SpellInfo const *spellInfo) const
UnitGetMeleeHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo=NULL)
float GetMeleeReach () const
uint64 GetMinionGUID () const
int32 GetMinPower (Powers power) const
uint32 GetModelForForm (ShapeshiftForm form) const
uint32 GetModelForTotem (uint32 totemType) const
float GetModifierValue (UnitMods unitMod, UnitModifierType modifierType) const
MotionMasterGetMotionMaster ()
const MotionMasterGetMotionMaster () const
MountCapabilityEntry const * GetMountCapability (uint32 mountType) const
uint32 GetMountID () const
uint32 GetMovementCounter () const
uint32 GetNativeDisplayId () const
float GetNegStat (Stats stat) const
UnitGetNextRandomRaidMemberOrPet (float radius)
AuraGetOwnedAura (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0, Aura *except=NULL) const
AuraMapGetOwnedAuras ()
AuraMap const & GetOwnedAuras () const
UnitGetOwner () const
uint64 GetOwnerGUID () const
void GetPartyMembers (std::list< Unit * > &units)
uint64 GetPetGUID () const
float GetPositionZMinusOffset () const
float GetPosStat (Stats stat) const
int32 GetPower (Powers power) const
uint32 GetPowerIndex (uint32 powerType) const
Powers getPowerType () const
Powers GetPowerTypeByAuraGroup (UnitMods unitMod) const
float GetPPMProcChance (uint32 WeaponSpeed, float PPM, const SpellInfo *spellProto) const
void GetProcAurasTriggeredOnEvent (AuraApplicationList &aurasTriggeringProc, AuraApplicationList *procAuras, ProcEventInfo eventInfo)
uint8 getRace () const
uint32 getRaceMask () const
void GetRandomContactPoint (const Unit *target, float &x, float &y, float &z, float distance2dMin, float distance2dMax) const
ReputationRank GetReactionTo (Unit const *target) const
uint32 GetRedirectThreatPercent () const
UnitGetRedirectThreatTarget ()
uint32 GetRemainingPeriodicAmount (uint64 caster, uint32 spellId, AuraType auraType, uint8 effectIndex=0) const
uint32 GetResistance (SpellSchoolMask mask) const
uint32 GetResistance (SpellSchools school) const
float GetResistanceBuffMods (SpellSchools school, bool positive) const
uint32 GetSchoolImmunityMask () const
ShapeshiftForm GetShapeshiftForm () const
SharedVisionList const & GetSharedVisionList ()
SheathState GetSheath () const
AuraListGetSingleCastAuras ()
AuraList const & GetSingleCastAuras () const
float GetSpeed (UnitMoveType mtype) const
float GetSpeedRate (UnitMoveType mtype) const
float GetSpellMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const
float GetSpellMinRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const
PlayerGetSpellModOwner () const
SpellSchools GetSpellSchoolByAuraGroup (UnitMods unitMod) const
uint8 getStandState () const
float GetStat (Stats stat) const
Stats GetStatByAuraGroup (UnitMods unitMod) const
uint64 GetTarget () const
ThreatManagergetThreatManager ()
float GetTotalAttackPowerValue (WeaponAttackType attType) const
int32 GetTotalAuraModifier (AuraType auratype) const
int32 GetTotalAuraModifierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const
int32 GetTotalAuraModifierByMiscMask (AuraType auratype, uint32 misc_mask) const
int32 GetTotalAuraModifierByMiscValue (AuraType auratype, int32 misc_value) const
float GetTotalAuraModValue (UnitMods unitMod) const
float GetTotalAuraMultiplier (AuraType auratype) const
float GetTotalAuraMultiplierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const
float GetTotalAuraMultiplierByMiscMask (AuraType auratype, uint32 misc_mask) const
float GetTotalAuraMultiplierByMiscValue (AuraType auratype, int32 misc_value) const
float GetTotalStatValue (Stats stat) const
uint32 getTransForm () const
uint64 GetTransGUID () const override
float GetUnitBlockChance () const
float GetUnitCriticalChance (WeaponAttackType attackType, const Unit *victim) const
float GetUnitDodgeChance () const
uint32 GetUnitMeleeSkill (Unit const *target=NULL) const
float GetUnitMissChance (WeaponAttackType attType) const
uint32 GetUnitMovementFlags () const
float GetUnitParryChance () const
VehicleGetVehicle () const
UnitGetVehicleBase () const
CreatureGetVehicleCreatureBase () const
VehicleGetVehicleKit () const
UnitGetVictim () const
uint32 getVirtualRealm () const
AuraApplicationGetVisibleAura (uint8 slot) const
VisibleAuraMap const * GetVisibleAuras ()
float GetWeaponDamageRange (WeaponAttackType attType, WeaponDamageRange type) const
float GetWeaponProcChance () const
void HandleEmoteCommand (uint32 anim_id)
void HandleProcExtraAttackFor (Unit *victim)
bool HandleSpellClick (Unit *clicker, int8 seatId=-1)
bool HandleStatModifier (UnitMods unitMod, UnitModifierType modifierType, float amount, bool apply)
bool HasAura (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0) const
bool HasAuraEffect (uint32 spellId, uint8 effIndex, uint64 caster=0) const
bool HasAuraState (AuraStateType flag, SpellInfo const *spellProto=NULL, Unit const *Caster=NULL) const
bool HasAuraType (AuraType auraType) const
bool HasAuraTypeWithAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const
bool HasAuraTypeWithCaster (AuraType auratype, uint64 caster) const
bool HasAuraTypeWithFamilyFlags (AuraType auraType, uint32 familyName, uint32 familyFlags) const
bool HasAuraTypeWithMiscvalue (AuraType auratype, int32 miscvalue) const
bool HasAuraTypeWithValue (AuraType auratype, int32 value) const
bool HasAuraWithMechanic (uint32 mechanicMask) const
bool HasBreakableByDamageAuraType (AuraType type, uint32 excludeAura=0) const
bool HasBreakableByDamageCrowdControlAura (Unit *excludeCasterChannel=NULL) const
uint16 HasExtraUnitMovementFlag (uint16 f) const
bool HasInvisibilityAura () const
bool HasNegativeAuraWithAttribute (uint32 flag, uint64 guid=0) const
bool HasNegativeAuraWithInterruptFlag (uint32 flag, uint64 guid=0) const
bool HasSharedVision () const
bool HasStealthAura () const
bool HasUnitMovementFlag (uint32 f) const
bool HasUnitState (const uint32 f) const
uint32 HasUnitTypeMask (uint32 mask) const
bool HasVisionObscured (Unit const *target) const
bool haveOffhandWeapon () const
int32 HealBySpell (Unit *victim, SpellInfo const *spellInfo, uint32 addHealth, bool critical=false)
bool HealthAbovePct (int32 pct) const
bool HealthAbovePctHealed (int32 pct, uint32 heal) const
bool HealthBelowPct (int32 pct) const
bool HealthBelowPctDamaged (int32 pct, uint32 damage) const
void IncrDiminishing (DiminishingGroup group)
CharmInfoInitCharmInfo ()
void InitStatBuffMods ()
bool InitTamedPet (Pet *pet, uint8 level, uint32 spell_id) const
void InterruptNonMeleeSpells (bool withDelayed, uint32 spellid=0, bool withInstant=true)
void InterruptSpell (CurrentSpellTypes spellType, bool withDelayed=true, bool withInstant=true)
bool IsAlive () const
bool IsArmorer () const
bool isAttackingPlayer () const
bool isAttackReady (WeaponAttackType type=WeaponAttackType::BASE_ATTACK) const
bool IsAuctioner () const
bool IsBanker () const
bool IsBattleMaster () const
bool isBlockCritical ()
bool IsBMAuctioner () const
bool IsCharmed () const
bool IsCharmedOwnedByPlayerOrPlayer () const
bool IsContestedGuard () const
bool IsControlledByPlayer () const
bool isDead () const
bool IsDuringRemoveFromWorld () const
bool isDying () const
bool IsFalling () const
bool isFeared () const
bool IsFlying () const
bool IsFriendlyTo (Unit const *unit) const
bool isFrozen () const
bool IsFullHealth () const
bool IsGossip () const
bool IsGuardian () const
bool IsGuildMaster () const
bool IsHostileTo (Unit const *unit) const
bool IsHostileToPlayers () const
bool IsHunterPet () const
bool IsImmunedToDamage (SpellInfo const *spellInfo) const
bool IsImmunedToDamage (SpellSchoolMask meleeSchoolMask) const
virtual bool IsImmunedToSpell (SpellInfo const *spellInfo) const
virtual bool IsImmunedToSpellEffect (SpellInfo const *spellInfo, uint32 index) const
bool isInAccessiblePlaceFor (Creature const *c) const
bool isInBackInMap (Unit const *target, float distance, float arc=M_PI) const
bool IsInCombat () const
bool IsInDisallowedMountForm () const
bool IsInFeralForm () const
bool IsInFlight () const
bool isInFrontInMap (Unit const *target, float distance, float arc=M_PI) const
bool IsInnkeeper () const
bool IsInPartyWith (Unit const *unit) const
bool IsInRaidWith (Unit const *unit) const
bool isInRoots () const
bool IsLevitating () const
bool IsMounted () const
bool isMoving () const
bool IsNeutralToAll () const
bool IsNonMeleeSpellCasted (bool withDelayed, bool skipChanneled=false, bool skipAutorepeat=false, bool isAutoshoot=false, bool skipInstant=true) const
bool IsOnVehicle (const Unit *vehicle) const
bool IsPet () const
bool IsPolymorphed () const
bool isPossessed () const
bool isPossessedByPlayer () const
bool isPossessing () const
bool isPossessing (Unit *u) const
bool IsPvP () const
bool IsQuestGiver () const
AuraEffectIsScriptOverriden (SpellInfo const *spell, int32 script) const
bool IsServiceProvider () const
bool IsSitState () const
bool isSpellBlocked (Unit *victim, SpellInfo const *spellProto, WeaponAttackType attackType=WeaponAttackType::BASE_ATTACK)
bool isSpellCrit (Unit *victim, SpellInfo const *spellProto, SpellSchoolMask schoolMask, WeaponAttackType attackType=WeaponAttackType::BASE_ATTACK) const
bool IsSpiritGuide () const
bool IsSpiritHealer () const
bool IsSpiritService () const
bool IsSplineEnabled () const
bool IsStandState () const
bool IsStopped () const
bool IsSummon () const
bool IsTabardDesigner () const
bool isTargetableForAttack (bool checkFakeDeath=true) const
bool IsTaxi () const
bool IsTotem () const
bool IsTrainer () const
bool isTurning () const
bool IsValidAssistTarget (Unit const *target) const
bool IsValidAttackTarget (Unit const *target) const
bool IsVehicle () const
bool IsVendor () const
bool IsVisible () const
bool IsWalking () const
bool IsWithinCombatRange (const Unit *obj, float dist2compare) const
bool IsWithinMeleeRange (const Unit *obj, float dist=MELEE_RANGE) const
void JumpTo (float speedXY, float speedZ, bool forward=true)
void JumpTo (WorldObject *obj, float speedZ)
void Kill (Unit *victim, bool durabilityLoss=true)
void KnockbackFrom (float x, float y, float speedXY, float speedZ)
SpellMissInfo MagicSpellHitResult (Unit *victim, SpellInfo const *spellInfo)
uint32 MeleeDamageBonusDone (Unit *pVictim, uint32 damage, WeaponAttackType attType, SpellInfo const *spellProto=NULL)
uint32 MeleeDamageBonusTaken (Unit *attacker, uint32 pdamage, WeaponAttackType attType, SpellInfo const *spellProto=NULL)
SpellMissInfo MeleeSpellHitResult (Unit *victim, SpellInfo const *spellInfo)
float MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, uint32 spellId) const
void ModifyAuraState (AuraStateType flag, bool apply)
int32 ModifyHealth (int32 val)
int32 ModifyPower (Powers power, int32 val)
int32 ModifyPowerPct (Powers power, float pct, bool apply=true)
void ModifyRedirectThreat (int32 amount)
void ModSpellCastTime (SpellInfo const *spellProto, int32 &castTime, Spell *spell=NULL)
int32 ModSpellDuration (SpellInfo const *spellProto, Unit const *target, int32 duration, bool positive, uint32 effectMask)
void MonsterMoveWithSpeed (float x, float y, float z, float speed, bool generatePath=false, bool forceDestination=false)
void Mount (uint32 mount, uint32 vehicleId=0, uint32 creatureEntry=0)
void NearTeleportTo (float x, float y, float z, float orientation, bool casting=false)
void OutDebugInfo () const
void PlayOneShotAnimKit (uint32 id)
void ProcDamageAndSpell (Unit *victim, uint32 procAttacker, uint32 procVictim, uint32 procEx, uint32 amount, WeaponAttackType attType=WeaponAttackType::BASE_ATTACK, SpellInfo const *procSpell=NULL, SpellInfo const *procAura=NULL)
void ProcDamageAndSpellFor (bool isVictim, Unit *target, uint32 procFlag, uint32 procExtra, WeaponAttackType attType, SpellInfo const *procSpell, uint32 damage, SpellInfo const *procAura=NULL)
void propagateSpeedChange ()
 -------—End of Pet responses methods-------—
void RemoveAllAttackers ()
void RemoveAllAuras ()
void RemoveAllAurasExceptType (AuraType type)
void RemoveAllAurasExceptType (AuraType type1, AuraType type2)
void RemoveAllAurasOnDeath ()
void RemoveAllAurasRequiringDeadTarget ()
void RemoveAllControlled ()
void RemoveAllDynObjects ()
void RemoveAllGameObjects ()
void RemoveAllMinionsByEntry (uint32 entry)
void RemoveAreaAurasDueToLeaveWorld ()
void RemoveArenaAuras ()
void RemoveAura (Aura *aur, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
void RemoveAura (AuraApplication *aurApp, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
void RemoveAura (AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
void RemoveAura (uint32 spellId, uint64 casterGUID=0, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
void RemoveAuraFromStack (uint32 spellId, uint64 casterGUID=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
void RemoveAurasByType (AuraType auraType, uint64 casterGUID=0, Aura *except=NULL, bool negative=true, bool positive=true)
void RemoveAurasDueToItemSpell (uint32 spellId, uint64 castItemGuid)
void RemoveAurasDueToSpell (uint32 spellId, uint64 casterGUID=0, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
void RemoveAurasDueToSpellByDispel (uint32 spellId, uint32 dispellerSpellId, uint64 casterGUID, Unit *dispeller, uint8 chargesRemoved=1)
void RemoveAurasDueToSpellBySteal (uint32 spellId, uint64 casterGUID, Unit *stealer)
void RemoveAurasWithAttribute (uint32 flags)
void RemoveAurasWithFamily (SpellFamilyNames family, uint32 familyFlag1, uint32 familyFlag2, uint32 familyFlag3, uint64 casterGUID)
void RemoveAurasWithInterruptFlags (uint32 flag, uint32 except=0)
void RemoveAurasWithMechanic (uint32 mechanic_mask, AuraRemoveMode removemode=AURA_REMOVE_BY_DEFAULT, uint32 except=0)
void RemoveBindSightAuras ()
void RemoveCharmAuras ()
void RemoveCharmedBy (Unit *charmer)
void RemoveComboPointHolder (uint32 lowguid)
void RemoveDynObject (uint32 spellId)
void RemoveExtraUnitMovementFlag (uint16 f)
void removeFollower (FollowerReference *)
void RemoveFromWorld () override
void RemoveGameObject (GameObject *gameObj, bool del)
void RemoveGameObject (uint32 spellid, bool del)
void removeHatedBy (HostileReference *)
void RemoveMovementImpairingAuras ()
void RemoveNotOwnSingleTargetAuras (uint32 newPhase=0, bool phaseid=false)
void RemoveOwnedAura (Aura *aura, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
void RemoveOwnedAura (AuraMap::iterator &i, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
void RemoveOwnedAura (uint32 spellId, uint64 casterGUID=0, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
void RemovePetAura (PetAura const *petSpell)
void RemovePlayerFromVision (Player *player)
void RemoveStandFlags (uint8 flags)
void RemoveUnitMovementFlag (uint32 f)
void RemoveVehicleKit (bool remove=false)
void RemoveVisibleAura (uint8 slot)
void resetAttackTimer (WeaponAttackType type=WeaponAttackType::BASE_ATTACK)
void ResetRedirectThreat ()
void RestoreDisplayId ()
void RestoreFaction ()
void RewardRage (uint32 baseRage, bool attacker)
MeleeHitOutcome RollMeleeOutcomeAgainst (const Unit *victim, WeaponAttackType attType) const
MeleeHitOutcome RollMeleeOutcomeAgainst (const Unit *victim, WeaponAttackType attType, int32 crit_chance, int32 miss_chance, int32 dodge_chance, int32 parry_chance, int32 block_chance) const
UnitSelectNearbyTarget (Unit *exclude=NULL, float dist=NOMINAL_MELEE_RANGE) const
void SendAttackStateUpdate (CalcDamageInfo *damageInfo)
void SendAttackStateUpdate (uint32 HitInfoHitInfo, Unit *target, uint8 SwingType, SpellSchoolMask damageSchoolMask, uint32 Damage, uint32 AbsorbDamage, uint32 Resist, VictimState TargetState, uint32 BlockedAmount)
void SendChangeCurrentVictimOpcode (HostileReference *pHostileReference)
void SendClearTarget ()
void SendClearThreatListOpcode (ObjectGuid UnitGUID)
void SendDurabilityLoss (Player *receiver, uint32 percent)
void SendEnergizeSpellLog (Unit *victim, uint32 spellID, int32 damage, Powers powertype)
void SendHealSpellLog (ObjectGuid CasterGUID, ObjectGuid TargetGUID, uint32 SpellID, uint32 Damage, uint32 OverHeal, uint32 Absorb, bool critical=false)
void SendMeleeAttackStart (Unit *victim)
void SendMeleeAttackStop (Unit *victim=NULL)
void SendMoveKnockBack (Player *player, float speedXY, float speedZ, float vcos, float vsin)
void SendPeriodicAuraLog (SpellPeriodicAuraLogInfo *pInfo)
void SendPetActionFeedback (uint8 msg) const
 -------—Pet responses methods--------------—
void SendPetAIReaction (ObjectGuid UnitGUID) const
void SendPetTalk (uint32 pettalk) const
void SendPlaySpellVisual (uint32 SpellVisualId, float x, float y, float z, float orientation, uint8 SpeedTime, uint16 MissReason, uint16 ReflectStatus)
void SendPlaySpellVisualKit (uint32 SpellVisualId, uint32 Duration, int32 Type)
void SendRemoveFromThreatListOpcode (HostileReference *pHostileReference)
void SendSetVehicleRecId (uint32 vehicleId)
void SendSpellDamageImmune (Unit *target, uint32 spellId)
void SendSpellDamageResist (Unit *target, uint32 spellId)
void SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo)
void SendSpellNonMeleeDamageLog (SpellNonMeleeDamage *log)
void SendSpellNonMeleeDamageLog (Unit *target, uint32 SpellID, uint32 Damage, SpellSchoolMask damageSchoolMask, uint32 AbsorbedDamage, uint32 Resist, bool PhysicalDamage, uint32 Blocked, bool CriticalHit=false)
void SendTeleportPacket (Position &pos)
void SendThreatListUpdate ()
void SetAI (UnitAI *newAI)
void SetAnimTier (AnimTier tier)
void SetArmor (int32 val)
void SetAttackTime (WeaponAttackType att, uint32 val)
void setAttackTimer (WeaponAttackType type, uint32 time)
void SetAuraStack (uint32 spellId, Unit *target, uint32 stack)
void SetAutoattackOverrideRange (uint32 range)
void SetAutoattackOverrideSpell (SpellInfo const *spellInfo)
void SetBaseWeaponDamage (WeaponAttackType attType, WeaponDamageRange damageRange, float value)
void SetCanDualWield (bool value)
bool SetCanFly (bool enable)
void SetCanModifyStats (bool modifyStats)
void SetCantProc (bool apply)
void SetCharm (Unit *target, bool apply)
bool SetCharmedBy (Unit *charmer, CharmType type, AuraApplication const *aurApp=NULL)
void SetCharmerGUID (uint64 owner)
void SetClass (uint8 newClass)
void SetContestedPvP (Player *attackedPlayer=NULL)
void SetControlled (bool apply, UnitState state)
void SetCreateHealth (uint32 val)
void SetCreateMana (uint32 val)
void SetCreateStat (Stats stat, float val)
void SetCreatorGUID (uint64 creator)
void SetCritterGUID (uint64 guid)
void SetCurrentCastedSpell (Spell *pSpell)
bool SetDisableGravity (bool disable, bool packetOnly=false)
virtual void SetDisplayId (uint32 modelId)
void SetExtraUnitMovementFlags (uint16 f)
void SetFacingTo (float ori)
void SetFacingToObject (WorldObject *object)
void setFaction (uint32 faction)
bool SetFall (bool enable)
bool SetFeatherFall (bool enable, bool packetOnly=false)
void SetFieldPowerType (uint32 powerType)
void SetFullHealth ()
void SetGender (uint8 gender)
void SetHealth (uint32 val)
bool SetHover (bool enable, bool packetOnly=false)
void SetInCombatState (bool PvP, Unit *enemy=NULL)
void SetInCombatWith (Unit *enemy)
void SetInFront (WorldObject const *target)
void SetLastDamagedTime (time_t val)
void SetLevel (uint8 lvl)
void SetMaxHealth (uint32 val)
void SetMaxPower (Powers power, int32 val)
void SetMinion (Minion *minion, bool apply)
void SetMinionGUID (uint64 guid)
void SetModifierValue (UnitMods unitMod, UnitModifierType modifierType, float value)
void SetNativeDisplayId (uint32 modelId)
void SetOwnerGUID (uint64 owner)
void SetPetGUID (uint64 guid)
bool SetPhased (uint32 id, bool update, bool apply) OVERRIDE
void SetPhaseMask (uint32 newPhaseMask, bool update) override
void SetPower (Powers power, int32 val)
void setPowerType (Powers power)
void SetPvP (bool state)
void SetRace (uint8 race)
void SetRedirectThreat (uint64 guid, uint32 pct)
void SetResistance (SpellSchools school, int32 val)
void SetResistanceBuffMods (SpellSchools school, bool positive, float val)
void SetShapeshiftForm (ShapeshiftForm form)
void SetSpeed (UnitMoveType mtype, float rate, bool forced=false)
void SetStandFlags (uint8 flags)
void SetStandState (uint8 state)
void SetStat (Stats stat, int32 val)
bool SetSwim (bool enable)
void setTransForm (uint32 spellid)
void SetUnitMovementFlags (uint32 f)
void SetVehicle (Vehicle *vehicle)
void SetVisible (bool x)
void SetVisibleAura (uint8 slot, AuraApplication *aur)
bool SetWalk (bool enable)
bool SetWaterWalking (bool enable, bool packetOnly=false)
int32 SpellBaseDamageBonusDone (SpellSchoolMask schoolMask) const
int32 SpellBaseDamageBonusTaken (SpellSchoolMask schoolMask) const
int32 SpellBaseHealingBonusDone (SpellSchoolMask schoolMask) const
int32 SpellBaseHealingBonusTaken (SpellSchoolMask schoolMask) const
uint32 SpellCriticalDamageBonus (SpellInfo const *spellProto, uint32 damage, Unit *victim)
uint32 SpellCriticalHealingBonus (SpellInfo const *spellProto, uint32 damage, Unit *victim)
uint32 SpellDamageBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, uint32 stack=1) const
uint32 SpellDamageBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, uint32 stack=1) const
uint32 SpellHealingBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype, uint32 stack=1) const
uint32 SpellHealingBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype, uint32 stack=1) const
SpellMissInfo SpellHitResult (Unit *victim, SpellInfo const *spellInfo, bool canReflect=false)
uint32 SpellNonMeleeDamageLog (Unit *victim, uint32 spellID, uint32 damage)
void StartReactiveTimer (ReactiveType reactive)
void StopAttackFaction (uint32 faction_id)
void StopMoving ()
 -------—End of Pet responses methods-------—
void TauntApply (Unit *victim)
void TauntFadeOut (Unit *taunter)
PetToPet ()
Pet const * ToPet () const
TempSummonToTempSummon ()
TempSummon const * ToTempSummon () const
TotemToTotem ()
Totem const * ToTotem () const
void TrackGameObject (GameObject *gameObj)
void TriggerAurasProcOnEvent (AuraApplicationList *myProcAuras, AuraApplicationList *targetProcAuras, Unit *actionTarget, uint32 typeMaskActor, uint32 typeMaskActionTarget, uint32 spellTypeMask, uint32 spellPhaseMask, uint32 hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo)
void TriggerAurasProcOnEvent (CalcDamageInfo &damageInfo)
void TriggerAurasProcOnEvent (ProcEventInfo &eventInfo, AuraApplicationList &procAuras)
void UnsummonAllTotems ()
void Update (uint32 time) OVERRIDE
void UpdateAuraForGroup (uint8 slot)
void UpdateCharmAI ()
void UpdateHeight (float newZ)
 Only server-side height update, does not broadcast to client.
void UpdateInterruptMask ()
void UpdateObjectVisibility (bool forced=true) override
void UpdateOrientation (float orientation)
 Only server-side orientation update, does not broadcast to client.
bool UpdatePosition (const Position &pos, bool teleport=false)
void UpdateReactives (uint32 p_time)
void UpdateSpeed (UnitMoveType mtype, bool forced)
void WriteMovementInfo (WorldPacket &data, Movement::ExtraMovementStatusElement *extras=NULL)
virtual ~Unit ()
Public Member Functions inherited from WorldObject
void _Create (uint32 guidlow, HighGuid guidhigh, uint32 phaseMask)
void AddObjectToRemoveList ()
void AddToNotify (uint16 f)
void BuildUpdate (UpdateDataMapType &)
bool CanSeeOrDetect (WorldObject const *obj, bool ignoreStealth=false, bool distanceCheck=false) const
void ClearPhases (bool update=false)
void DestroyForNearbyPlayers ()
MapFindMap () const
CreatureFindNearestCreature (uint32 entry, float range, bool alive=true) const
GameObjectFindNearestGameObject (uint32 entry, float range) const
GameObjectFindNearestGameObjectOfType (GameobjectTypes type, float range) const
uint32 GetAreaId () const
Map const * GetBaseMap () const
void GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float angle=0) const
void GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const
void GetCreatureListWithEntryInGrid (std::list< Creature * > &lList, uint32 uiEntry, float fMaxSearchRange) const
float GetDistance (float x, float y, float z) const
float GetDistance (Position const &pos) const
float GetDistance (WorldObject const *obj) const
float GetDistance2d (float x, float y) const
float GetDistance2d (WorldObject const *obj) const
bool GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const
float GetDistanceZ (WorldObject const *obj) const
void GetFirstCollisionPosition (Position &pos, float dist, float angle)
void GetGameObjectListWithEntryInGrid (std::list< GameObject * > &lList, uint32 uiEntry, float fMaxSearchRange) const
float GetGridActivationRange () const
uint32 GetInstanceId () const
InstanceScriptGetInstanceScript ()
MapGetMap () const
std::string const & GetName () const
virtual std::string const & GetNameForLocaleIdx (LocaleConstant) const
void GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float searcher_size, float distance2d, float absAngle) const
void GetNearPoint2D (float &x, float &y, float distance, float absAngle) const
void GetNearPosition (Position &pos, float dist, float angle)
uint16 GetNotifyFlags () const
float GetObjectSize () const
uint32 GetPhaseMask () const
std::set< uint32 > const & GetPhases () const
void GetPlayerListInGrid (std::list< Player * > &lList, float fMaxSearchRange) const
void GetRandomNearPosition (Position &pos, float radius)
void GetRandomPoint (Position const &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const
void GetRandomPoint (Position const &srcPos, float distance, Position &pos) const
float GetSightRange (WorldObject const *target=NULL) const
virtual float GetStationaryO () const
virtual float GetStationaryX () const
virtual float GetStationaryY () const
virtual float GetStationaryZ () const
std::set< uint32 > const & GetTerrainSwaps () const
float GetTransOffsetO () const
float GetTransOffsetX () const
float GetTransOffsetY () const
float GetTransOffsetZ () const
TransportGetTransport () const
int8 GetTransSeat () const
uint32 GetTransTime () const
float GetVisibilityRange () const
std::set< uint32 > const & GetWorldMapSwaps () const
void GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const
uint32 GetZoneId () const
ZoneScriptGetZoneScript () const
bool HasPhaseList (uint32 phase)
bool InSamePhase (uint32 phasemask) const
bool InSamePhase (WorldObject const *obj) const
bool isActiveObject () const
bool isInBack (WorldObject const *target, float arc=M_PI) const
bool IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const
bool isInFront (WorldObject const *target, float arc=M_PI) const
bool IsInMap (WorldObject const *obj) const
bool IsInRange (WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const
bool IsInRange2d (float x, float y, float minRange, float maxRange) const
bool IsInRange3d (float x, float y, float z, float minRange, float maxRange) const
bool isNeedNotify (uint16 f) const
bool IsPermanentWorldObject () const
bool IsPhased (uint32 phase) const
bool IsPhased (WorldObject const *obj) const
bool IsSelfOrInSameMap (WorldObject const *obj) const
bool IsTerrainSwaped (uint32 terrainSwap) const
bool IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true) const
bool IsWithinDist2d (float x, float y, float dist) const
bool IsWithinDist2d (Position const *pos, float dist) const
bool IsWithinDist3d (float x, float y, float z, float dist) const
bool IsWithinDist3d (Position const *pos, float dist) const
bool IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true) const
bool IsWithinLOS (float x, float y, float z) const
bool IsWithinLOSInMap (WorldObject const *obj) const
bool IsWorldObject () const
void MonsterSay (const char *text, Language language, WorldObject const *target)
void MonsterSay (int32 textId, Language language, WorldObject const *target)
void MonsterTextEmote (const char *text, WorldObject const *target, bool IsBossEmote=false)
void MonsterTextEmote (int32 textId, WorldObject const *target, bool IsBossEmote=false)
void MonsterWhisper (const char *text, Player const *target, bool IsBossWhisper=false)
void MonsterWhisper (int32 textId, Player const *target, bool IsBossWhisper=false)
void MonsterYell (const char *text, Language language, WorldObject const *target)
void MonsterYell (int32 textId, Language language, WorldObject const *target)
void MovePosition (Position &pos, float dist, float angle)
void MovePositionToFirstCollision (Position &pos, float dist, float angle)
bool NotifyExecuted (uint16 f) const
void PlayDirectSound (uint32 sound_id, Player *target=NULL)
void PlayDistanceSound (uint32 sound_id, Player *target)
void RebuildTerrainSwaps ()
void RebuildWorldMapAreaSwaps ()
void ResetAllNotifies ()
virtual void SaveRespawnTime ()
void SendObjectDeSpawnAnim (uint64 guid)
void SendPlaySound (uint32 SoundSound, bool OnlySelf)
void setActive (bool isActiveObject)
void SetName (std::string const &newname)
void SetNotified (uint16 f)
void SetTransport (Transport *t)
void SetWorldObject (bool apply)
void SetZoneScript ()
TempSummonSummonCreature (uint32 id, float x, float y, float z, float ang=0, TempSummonType spwtype=TempSummonType::TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0) const
TempSummonSummonCreature (uint32 id, Position const &pos, TempSummonType spwtype=TempSummonType::TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const
void SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=NULL)
GameObjectSummonGameObject (uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime)
CreatureSummonTrigger (float x, float y, float z, float ang, uint32 dur, CreatureAI *(*GetAI)(Creature *)=NULL)
void UpdateAllowedPositionZ (float x, float y, float &z) const
void UpdateAreaPhase ()
void UpdateGroundPositionZ (float x, float y, float &z) const
template<class NOTIFIER>
void VisitNearbyGridObject (float const &radius, NOTIFIER &notifier) const
template<class NOTIFIER>
void VisitNearbyObject (float const &radius, NOTIFIER &notifier) const
template<class NOTIFIER>
void VisitNearbyWorldObject (float const &radius, NOTIFIER &notifier) const
virtual ~WorldObject ()
Public Member Functions inherited from Object
bool AddUInt64Value (uint16 index, uint64 value)
void ApplyModFlag (uint16 index, uint32 flag, bool apply)
void ApplyModFlag64 (uint16 index, uint64 flag, bool apply)
void ApplyModInt32Value (uint16 index, int32 val, bool apply)
void ApplyModPositiveFloatValue (uint16 index, float val, bool apply)
void ApplyModSignedFloatValue (uint16 index, float val, bool apply)
void ApplyModUInt32Value (uint16 index, int32 val, bool apply)
void ApplyPercentModFloatValue (uint16 index, float val, bool apply)
void BuildFieldsUpdate (Player *, UpdateDataMapType &) const
void BuildOutOfRangeUpdateBlock (UpdateData *data) const
void BuildValuesUpdateBlockForPlayer (UpdateData *data, Player *target) const
void ClearUpdateMask (bool remove)
void ForceValuesUpdateAtIndex (uint32)
uint8 GetByteValue (uint16 index, uint8 offset) const
uint32 GetDynamicUInt32Value (uint32 tab, uint16 index) const
uint32 GetEntry () const
float GetFloatValue (uint16 index) const
uint64 GetGUID () const
uint32 GetGUIDHigh () const
uint32 GetGUIDLow () const
uint32 GetGUIDMid () const
int32 GetInt32Value (uint16 index) const
ObjectGuid GetObjectGUID () const
float GetObjectScale () const
const ByteBufferGetPackGUID () const
TypeID GetTypeId () const
uint16 GetUInt16Value (uint16 index, uint8 offset) const
uint32 GetUInt32Value (uint16 index) const
uint64 GetUInt64Value (uint16 index) const
uint16 GetValuesCount () const
bool HasByteFlag (uint16 index, uint8 offset, uint8 flag) const
bool HasFlag (uint16 index, uint32 flag) const
bool HasFlag64 (uint16 index, uint64 flag) const
virtual bool hasInvolvedQuest (uint32) const
virtual bool hasQuest (uint32) const
bool IsInWorld () const
bool isType (uint16 mask) const
void RemoveByteFlag (uint16 index, uint8 offset, uint8 newFlag)
void RemoveFieldNotifyFlag (uint16 flag)
void RemoveFlag (uint16 index, uint32 oldFlag)
void RemoveFlag64 (uint16 index, uint64 oldFlag)
bool RemoveUInt64Value (uint16 index, uint64 value)
void SendDestroyObject (Player *target, ObjectGuid Guid, bool onDeath=false) const
void SendUpdateToPlayer (Player *player)
void SetByteFlag (uint16 index, uint8 offset, uint8 newFlag)
void SetByteValue (uint16 index, uint8 offset, uint8 value)
void SetDynamicUInt32Value (uint32 tab, uint16 index, uint32 value)
void SetEntry (uint32 entry)
void SetFieldNotifyFlag (uint16 flag)
void SetFlag (uint16 index, uint32 newFlag)
void SetFlag64 (uint16 index, uint64 newFlag)
void SetFloatValue (uint16 index, float value)
void SetInt16Value (uint16 index, uint8 offset, int16 value)
void SetInt32Value (uint16 index, int32 value)
void SetStatFloatValue (uint16 index, float value)
void SetStatInt32Value (uint16 index, int32 value)
void SetUInt16Value (uint16 index, uint8 offset, uint16 value)
void SetUInt32Value (uint16 index, uint32 value)
void SetUInt64Value (uint16 index, uint64 value)
AreaTriggerToAreaTrigger ()
AreaTrigger const * ToAreaTrigger () const
CorpseToCorpse ()
Corpse const * ToCorpse () const
CreatureToCreature ()
Creature const * ToCreature () const
DynamicObjectToDynObject ()
DynamicObject const * ToDynObject () const
GameObjectToGameObject ()
GameObject const * ToGameObject () const
void ToggleByteFlag (uint16 index, uint8 offset, uint8 flag)
void ToggleFlag (uint16 index, uint32 flag)
void ToggleFlag64 (uint16 index, uint64 flag)
PlayerToPlayer ()
Player const * ToPlayer () const
UnitToUnit ()
Unit const * ToUnit () const
void UpdateUInt32Value (uint16 index, uint32 value)
virtual ~Object ()
Public Member Functions inherited from WorldLocation
uint32 GetMapId () const
 WorldLocation (const WorldLocation &loc)
 WorldLocation (uint32 _mapid=MAPID_INVALID, float _x=0, float _y=0, float _z=0, float _o=0)
void WorldRelocate (const WorldLocation &loc)
Public Member Functions inherited from Position
float GetAngle (float x, float y) const
float GetAngle (Position const *pos) const
float GetExactDist (float x, float y, float z) const
float GetExactDist (Position const *pos) const
float GetExactDist2d (const float x, const float y) const
float GetExactDist2d (Position const *pos) const
float GetExactDist2dSq (float x, float y) const
float GetExactDist2dSq (Position const *pos) const
float GetExactDistSq (float x, float y, float z) const
float GetExactDistSq (Position const *pos) const
float GetOrientation () const
void GetPosition (float &x, float &y) const
void GetPosition (float &x, float &y, float &z) const
void GetPosition (float &x, float &y, float &z, float &o) const
void GetPosition (Position *pos) const
void GetPositionOffsetTo (Position const &endPos, Position &retOffset) const
float GetPositionX () const
float GetPositionY () const
float GetPositionZ () const
float GetRelativeAngle (float x, float y) const
float GetRelativeAngle (Position const *pos) const
void GetSinCos (float x, float y, float &vsin, float &vcos) const
bool HasInArc (float arcangle, Position const *pos, float border=2.0f) const
bool HasInLine (WorldObject const *target, float width) const
bool IsInDist (float x, float y, float z, float dist) const
bool IsInDist (Position const *pos, float dist) const
bool IsInDist2d (float x, float y, float dist) const
bool IsInDist2d (Position const *pos, float dist) const
bool IsPositionValid () const
bool operator!= (Position const &a)
bool operator== (Position const &a)
Position::PositionXYZOStreamer PositionXYZOStream ()
Position::PositionXYZStreamer PositionXYZStream ()
void Relocate (float x, float y)
void Relocate (float x, float y, float z)
void Relocate (float x, float y, float z, float orientation)
void Relocate (Position const &pos)
void Relocate (Position const *pos)
void RelocateOffset (Position const &offset)
void SetOrientation (float orientation)
std::string ToString () const
Public Member Functions inherited from GridObject< Player >
void AddToGrid (GridRefManager< Player > &m)
bool IsInGrid () const
void RemoveFromGrid ()
virtual ~GridObject ()

Static Public Member Functions

static bool BuildEnumData (PreparedQueryResult result, ByteBuffer *dataBuffer, ByteBuffer *bitBuffer, bool boosted=false)
static WeaponAttackType GetAttackBySlot (uint8 slot)
static bool IsBagPos (uint16 pos)
static bool IsBankPos (uint16 pos)
static bool IsBankPos (uint8 bag, uint8 slot)
static bool IsEquipmentPos (uint16 pos)
static bool IsEquipmentPos (uint8 bag, uint8 slot)
static bool IsInventoryPos (uint16 pos)
static bool IsInventoryPos (uint8 bag, uint8 slot)
Static Public Member Functions inherited from Unit
static CreatureGetCreature (WorldObject &object, uint64 guid)
static ReputationRank GetFactionReactionTo (FactionTemplateEntry const *factionTemplateEntry, Unit const *target)
static PlayerGetPlayer (WorldObject &object, uint64 guid)
static UnitGetUnit (WorldObject &object, uint64 guid)
static bool IsDamageReducedByArmor (SpellSchoolMask damageSchoolMask, SpellInfo const *spellInfo=NULL, uint8 effIndex=MAX_SPELL_EFFECTS)
Static Public Member Functions inherited from Position
static float NormalizeOrientation (float o)

Public Attributes

std::string autoReplyMsg
time_t m_Last_tick
time_t m_logintime
uint32 m_Played_time [MAX_PLAYED_TIME_INDEX]
PlayerTaxi m_taxi
Public Attributes inherited from Unit
bool IsAIEnabled
uint64 LastCharmerGUID
int32 m_baseSpellCritChance
bool m_canDualWield
ControlList m_Controlled
bool m_ControlledByPlayer
EventProcessor m_Events
uint32 m_extraAttacks
uint32 m_lastSanctuaryTime
float m_modAttackSpeedPct [3]
float m_modMeleeHitChance
float m_modRangedHitChance
float m_modSpellHitChance
Playerm_movedPlayer
uint64 m_ObjectSlot [MAX_GAMEOBJECT_SLOT]
PetAuraSet m_petAuras
SpellImmuneList m_spellImmune [MAX_SPELL_IMMUNITY]
uint64 m_SummonSlot [MAX_SUMMON_SLOT]
float m_threatModifier [MAX_SPELL_SCHOOL]
std::unique_ptr< Movement::MoveSplinemovespline
bool NeedChangeAI
Public Attributes inherited from WorldObject
uint32 LastUsedScriptID
FlaggedValuesArray32< int32, uint32, InvisibilityType, TOTAL_INVISIBILITY_TYPESm_invisibility
FlaggedValuesArray32< int32, uint32, InvisibilityType, TOTAL_INVISIBILITY_TYPESm_invisibilityDetect
MovementInfo m_movementInfo
FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPESm_serverSideVisibility
FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPESm_serverSideVisibilityDetect
FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPESm_stealth
FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPESm_stealthDetect
Public Attributes inherited from WorldLocation
uint32 m_mapId
Public Attributes inherited from Position
float m_orientation
float m_positionX
float m_positionY
float m_positionZ

Friends

void Item::AddToUpdateQueueOf (Player *player)
void Item::RemoveFromUpdateQueueOf (Player *player)
class WorldSession

ModifyCurrency

Change specific currency and send result to client

Parameters
idcurrency entry from CurrencyTypes.dbc
countinteger value for adding/removing curent currency
printLogused on SMSG_UPDATE_CURRENCY
ignoregain multipliers
typedef UNORDERED_MAP< uint32, Item * > ItemMap
typedef std::set< uint64ClientGUIDs
typedef std::set< uint32DFQuestsDoneList
typedef UNORDERED_MAP< uint32, InstancePlayerBindBoundInstancesMap
typedef std::set< uint32QuestSet
typedef std::set< uint32SeasonalQuestSet
typedef UNORDERED_MAP< uint32, SeasonalQuestSetSeasonalEventQuestMap
typedef std::list< Channel * > JoinedChannelsList
uint32 m_stableSlots
bool m_mailsLoaded
bool m_mailsUpdated
uint8 unReadMails
time_t m_nextMailDelivereTime
ItemMap mMitems
PvPInfo pvpInfo
DuelInfoduel
PlayerMenuPlayerTalkClass
std::vector< ItemSetEffect * > ItemSetEff
Unitm_mover
WorldObjectm_seer
uint32 m_recallMap
float m_recallX
float m_recallY
float m_recallZ
float m_recallO
uint32 m_homebindMapId
uint16 m_homebindAreaId
float m_homebindX
float m_homebindY
float m_homebindZ
ClientGUIDs m_clientGUIDs
uint8 m_forced_speed_changes [MAX_MOVE_TYPE]
DFQuestsDoneList m_DFQuests
uint32 m_HomebindTimer
bool m_InstanceValid
bool m_forcedTeleportFar
bool m_forcedTeleportFarSemaphore
BoundInstancesMap m_boundInstances [15]
Spellm_spellModTakingSpell
bool isDebugAreaTriggers
static uint32 const infinityCooldownDelay = MONTH
static uint32 const infinityCooldownDelayCheck = MONTH / 2
WhisperListContainer WhisperList
uint32 m_regenTimerCount
uint32 m_holyPowerRegenTimerCount
uint32 m_chiPowerDegenTimerCount
uint32 m_focusRegenTimerCount
float m_powerFraction [MAX_POWERS_PER_CLASS]
uint32 m_contestedPvPTimer
BgBattlegroundQueueID_Rec m_bgBattlegroundQueueID [PLAYER_MAX_BATTLEGROUND_QUEUES]
BGData m_bgData
bool m_IsBGRandomWinner
QuestSet m_timedquests
QuestSet m_weeklyquests
QuestSet m_monthlyquests
SeasonalEventQuestMap m_seasonalquests
uint64 m_divider
uint32 m_ingametime
time_t m_lastHonorUpdateTime
uint64 m_lootGuid
std::set< uint64m_lootView
uint32 m_team
uint32 m_nextSave
time_t m_speakTime
uint32 m_speakCount
DifficultyID m_dungeonDifficulty
DifficultyID m_raidDifficulty
DifficultyID m_raidMapDifficulty
uint32 m_atLoginFlags
Itemm_items [PLAYER_SLOTS_COUNT]
uint32 m_currentBuybackSlot
PlayerCurrenciesMap _currencyStorage
VoidStorageItem_voidStorageItems [VOID_STORAGE_MAX_SLOT]
std::vector< Item * > m_itemUpdateQueue
bool m_itemUpdateQueueBlocked
uint32 m_ExtraFlags
uint64 m_comboTarget
int8 m_comboPoints
QuestStatusMap m_QuestStatus
QuestObjectiveStatusMap m_questObjectiveStatus
QuestStatusSaveMap m_QuestStatusSave
QuestObjectiveStatusSaveMap m_questObjectiveStatusSave
RewardedQuestSet m_RewardedQuests
QuestStatusSaveMap m_RewardedQuestsSave
SkillStatusMap mSkillStatus
uint32 m_GuildIdInvited
PlayerMails m_mail
PlayerSpellMap m_spells
uint32 m_lastPotionId
GlobalCooldownMgr m_GlobalCooldownMgr
PlayerTalentInfo_talentMgr
ActionButtonList m_actionButtons
float m_auraBaseMod [BASEMOD_END][MOD_END]
int16 m_baseRatingValue [MAX_COMBAT_RATING]
uint32 m_baseSpellPower
uint32 m_baseManaRegen
uint32 m_baseHealthRegen
int32 m_spellPenetrationItemMod
SpellModList m_spellMods [MAX_SPELLMOD]
EnchantDurationList m_enchantDuration
ItemDurationList m_itemDuration
ItemDurationList m_itemSoulboundTradeable
ResurrectionData_resurrectionData
WorldSessionm_session
JoinedChannelsList m_channels
uint8 m_cinematic
TradeDatam_trade
bool m_DailyQuestChanged
bool m_WeeklyQuestChanged
bool m_MonthlyQuestChanged
bool m_SeasonalQuestChanged
time_t m_lastDailyQuestTime
uint32 m_drunkTimer
uint32 m_weaponChangeTimer
uint32 _readyCheckTimer
uint32 m_zoneUpdateId
uint32 m_zoneUpdateTimer
uint32 m_areaUpdateId
uint32 m_deathTimer
time_t m_deathExpireTime
uint32 m_restTime
uint32 m_WeaponProficiency
uint32 m_ArmorProficiency
bool m_canDodge
bool m_canParry
bool m_canBlock
bool m_canTitanGrip
uint8 m_swingErrorMsg
time_t time_inn_enter
uint32 inn_pos_mapid
float inn_pos_x
float inn_pos_y
float inn_pos_z
float inn_area_radius
float inn_area_box_x
float inn_area_box_y
float inn_area_box_z
float inn_area_box_orientation
float m_rest_bonus
RestType rest_type
PlayerSocialm_social
GroupReference m_group
GroupReference m_originalGroup
Groupm_groupInvite
uint32 m_groupUpdateMask
uint64 m_auraRaidUpdateMask
bool m_bPassOnGroupLoot
uint32 m_lastpetnumber
time_t m_summon_expire
uint32 m_summon_mapid
float m_summon_x
float m_summon_y
float m_summon_z
DeclinedNamem_declinedname
Runesm_runes
EquipmentSets m_EquipmentSets
uint8 m_grantableLevels
CUFProfile_CUFProfiles [MAX_CUF_PROFILES]
ResearchDigsite_researchDigsites [RESEARCH_CONTINENT_COUNT][MAX_DIGSITES_PER_CONTINENT]
ResearchProjectMap _researchProjects
ResearchHistoryMap _researchHistory
std::set< uint32m_refundableItems
MapReference m_mapRef
uint32 m_lastFallTime
float m_lastFallZ
int32 m_MirrorTimer [MAX_TIMERS]
uint8 m_MirrorTimerFlags
uint8 m_MirrorTimerFlagsLast
bool m_isInWater
uint64 m_lastGuildInviterGUID
WorldLocation m_teleport_dest
uint32 m_teleport_options
bool mSemaphoreTeleport_Near
bool mSemaphoreTeleport_Far
uint32 m_DelayedOperations
bool m_bCanDelayTeleport
bool m_bHasDelayedTeleport
uint32 m_temporaryUnsummonedPetNumber
uint32 m_oldpetspell
AchievementMgr< Player > * m_achievementMgr
ReputationMgrm_reputationMgr
SpellCooldowns m_spellCooldowns
uint32 m_ChampioningFaction
uint8 m_ChampioningType
std::queue< uint32m_timeSyncQueue
uint32 m_timeSyncTimer
uint32 m_timeSyncClient
uint32 m_timeSyncServer
InstanceTimeMap _instanceResetTimes
uint32 _pendingBindId
uint32 _pendingBindTimer
uint32 _activeCheats
uint32 _maxPersonalArenaRate
uint32 _ConquestCurrencytotalWeekCap
CinematicSequencecinematicSequence
bool inCinematic
uint32 cinematicClientStartTime
uint32 cinematicVisibilityTimer
float cinematicStartX
float cinematicStartY
float cinematicStartZ
float cinematicStartO
bool m_FlyingBeforeCinematic
BattlePetMgrm_battlePetMgr
void ModifyCurrency (uint32 id, int32 count, bool printLog=true, bool ignoreMultipliers=false)
void ApplyEquipCooldown (Item *pItem)
void QuickEquipItem (uint16 pos, Item *pItem)
void VisualizeItem (uint8 slot, Item *pItem)
void SetVisibleItemSlot (uint8 slot, Item *pItem)
ItemBankItem (ItemPosCountVec const &dest, Item *pItem, bool update)
void RemoveItem (uint8 bag, uint8 slot, bool update)
void MoveItemFromInventory (uint8 bag, uint8 slot, bool update)
void MoveItemToInventory (ItemPosCountVec const &dest, Item *pItem, bool update, bool in_characterInventoryDB=false)
void RemoveItemDependentAurasAndCasts (Item *pItem)
void DestroyItem (uint8 bag, uint8 slot, bool update)
void DestroyItemCount (uint32 item, uint32 count, bool update, bool unequip_check=false)
void DestroyItemCount (Item *item, uint32 &count, bool update)
void DestroyConjuredItems (bool update)
void DestroyZoneLimitedItem (bool update, uint32 new_zone)
void SplitItem (uint16 src, uint16 dst, uint32 count)
void SwapItem (uint16 src, uint16 dst)
void AddItemToBuyBackSlot (Item *pItem)
ItemGetItemFromBuyBackSlot (uint32 slot)
void RemoveItemFromBuyBackSlot (uint32 slot, bool del)
void SendEquipError (InventoryResult msg, Item *pItem, Item *pItem2=NULL, uint32 itemid=0)
void SendGameError (GameError error, uint32 arg1=0, uint32 arg2=0)
void SendBuyFailed (BuyResult msg, ObjectGuid VendorGUID, uint32 item)
void SendSellResponse (SellResult msg, ObjectGuid VendorGUID, ObjectGuid ItemGUID)
void AddWeaponProficiency (uint32 newflag)
void AddArmorProficiency (uint32 newflag)
uint32 GetWeaponProficiency () const
uint32 GetArmorProficiency () const
bool IsUseEquipedWeapon (bool mainhand) const
bool IsTwoHandUsed () const
void SendNewItem (Item *item, uint32 count, bool received, bool created, bool broadcast=false)
bool BuyItemFromVendorSlot (uint64 vendorguid, uint32 vendorslot, uint32 item, uint8 count, uint8 bag, uint8 slot)
bool BuyCurrencyFromVendorSlot (ObjectGuid VendorGUID, uint32 vendorSlot, uint32 currency, uint32 count)
bool _StoreOrEquipNewItem (uint32 vendorslot, uint32 item, uint8 count, uint8 bag, uint8 slot, int32 price, ItemTemplate const *pProto, Creature *pVendor, VendorItem const *crItem, bool bStore)
float GetReputationPriceDiscount (Creature const *creature) const
PlayerGetTrader () const
TradeDataGetTradeData () const
void TradeCancel (bool sendback, TradeStatus status=TRADE_STATUS_CANCELLED)
void UpdateEnchantTime (uint32 time)
void UpdateSoulboundTradeItems ()
void AddTradeableItem (Item *item)
void RemoveTradeableItem (Item *item)
void UpdateItemDuration (uint32 time, bool realtimeonly=false)
void AddEnchantmentDurations (Item *item)
void RemoveEnchantmentDurations (Item *item)
void RemoveArenaEnchantments (EnchantmentSlot slot)
void AddEnchantmentDuration (Item *item, EnchantmentSlot slot, uint32 duration)
void ApplyEnchantment (Item *item, EnchantmentSlot slot, bool apply, bool apply_dur=true, bool ignore_condition=false)
void ApplyEnchantment (Item *item, bool apply)
void ApplyReforgeEnchantment (Item *item, bool apply)
void UpdateSkillEnchantments (uint16 skill_id, uint16 curr_value, uint16 new_value)
void SendEnchantmentDurations ()
void BuildEnchantmentsInfoData (WorldPacket *data)
void AddItemDurations (Item *item)
void RemoveItemDurations (Item *item)
void SendItemDurations ()
void LoadCorpse ()
void LoadPet ()
bool AddItem (uint32 itemId, uint32 count)
void PrepareGossipMenu (WorldObject *source, uint32 menuId=0, bool showQuests=false)
void SendPreparedGossip (WorldObject *source)
void OnGossipSelect (WorldObject *source, uint32 gossipListId, uint32 menuId)
uint32 GetGossipTextId (uint32 menuId, WorldObject *source)
uint32 GetGossipTextId (WorldObject *source)
int32 GetQuestLevel (Quest const *quest) const
void PrepareQuestMenu (uint64 guid)
void SendPreparedQuest (uint64 guid)
bool IsActiveQuest (uint32 quest_id) const
Quest const * GetNextQuest (uint64 guid, Quest const *quest)
bool CanSeeStartQuest (Quest const *quest)
bool CanTakeQuest (Quest const *quest, bool msg)
bool CanAddQuest (Quest const *quest, bool msg)
bool CanCompleteQuest (uint32 quest_id)
bool CanCompleteRepeatableQuest (Quest const *quest)
bool CanRewardQuest (Quest const *quest, bool msg)
bool CanRewardQuest (Quest const *quest, uint32 reward, bool msg)
void AddQuest (Quest const *quest, Object *questGiver)
void CompleteQuest (uint32 quest_id)
void IncompleteQuest (uint32 quest_id)
void RewardQuest (Quest const *quest, uint32 reward, Object *questGiver, bool announce=true)
void FailQuest (uint32 quest_id)
bool SatisfyQuestSkill (Quest const *qInfo, bool msg) const
bool SatisfyQuestLevel (Quest const *qInfo, bool msg)
bool SatisfyQuestLog (bool msg)
bool SatisfyQuestPreviousQuest (Quest const *qInfo, bool msg)
bool SatisfyQuestClass (Quest const *qInfo, bool msg) const
bool SatisfyQuestRace (Quest const *qInfo, bool msg)
bool SatisfyQuestReputation (Quest const *qInfo, bool msg)
bool SatisfyQuestStatus (Quest const *qInfo, bool msg)
bool SatisfyQuestConditions (Quest const *qInfo, bool msg)
bool SatisfyQuestTimed (Quest const *qInfo, bool msg)
bool SatisfyQuestExclusiveGroup (Quest const *qInfo, bool msg)
bool SatisfyQuestNextChain (Quest const *qInfo, bool msg)
bool SatisfyQuestPrevChain (Quest const *qInfo, bool msg)
bool SatisfyQuestDay (Quest const *qInfo, bool msg)
bool SatisfyQuestWeek (Quest const *qInfo, bool msg)
bool SatisfyQuestMonth (Quest const *qInfo, bool msg)
bool SatisfyQuestSeasonal (Quest const *qInfo, bool msg)
bool GiveQuestSourceItem (Quest const *quest)
bool TakeQuestSourceItem (uint32 questId, bool msg)
bool GetQuestRewardStatus (uint32 quest_id) const
QuestStatus GetQuestStatus (uint32 quest_id) const
void SetQuestStatus (uint32 quest_id, QuestStatus status)
void RemoveActiveQuest (uint32 quest_id)
void RemoveRewardedQuest (uint32 quest_id)
void SetDailyQuestStatus (uint32 quest_id)
void SetWeeklyQuestStatus (uint32 quest_id)
void SetMonthlyQuestStatus (uint32 quest_id)
void SetSeasonalQuestStatus (uint32 quest_id)
void ResetDailyQuestStatus ()
void ResetWeeklyQuestStatus ()
void ResetMonthlyQuestStatus ()
void ResetSeasonalQuestStatus (uint16 event_id)
uint16 FindQuestSlot (uint32 quest_id) const
uint32 GetQuestSlotQuestId (uint16 slot) const
uint32 GetQuestSlotState (uint16 slot) const
uint16 GetQuestSlotCounter (uint16 slot, uint8 counter) const
uint32 GetQuestSlotTime (uint16 slot) const
void SetQuestSlot (uint16 slot, uint32 quest_id, uint32 timer=0)
void SetQuestSlotCounter (uint16 slot, uint8 counter, uint16 count)
void SetQuestSlotState (uint16 slot, uint32 state)
void RemoveQuestSlotState (uint16 slot, uint32 state)
void SetQuestSlotTimer (uint16 slot, uint32 timer)
void SwapQuestSlot (uint16 slot1, uint16 slot2)
uint16 GetReqKillOrCastCurrentCount (uint32 quest_id, int32 entry)
void AreaExploredOrEventHappens (uint32 questId)
void GroupEventHappens (uint32 questId, WorldObject const *pEventObject)
void ItemAddedQuestCheck (uint32 entry, uint32 count)
void ItemRemovedQuestCheck (uint32 entry, uint32 count)
void KilledMonster (CreatureTemplate const *cInfo, uint64 guid)
void KilledMonsterCredit (uint32 entry, uint64 guid=0)
void KilledPlayerCredit ()
void KillCreditGO (uint32 entry, uint64 guid=0)
void TalkedToCreature (uint32 entry, uint64 guid)
void MoneyChanged (uint32 value)
void ReputationChanged (FactionEntry const *factionEntry)
void ReputationChanged2 (FactionEntry const *factionEntry)
void ReputationChangedQuestCheck (FactionEntry const *factionEntry)
bool HasQuestForItem (uint32 itemId) const
bool HasQuestForGO (int32 goId) const
void UpdateForQuestWorldObjects ()
bool CanShareQuest (uint32 questId) const
void QuestObjectiveSatisfy (uint32 objectId, uint32 amount, uint8 type=0u, uint64 guid=0u)
void SendQuestComplete (Quest const *quest)
void SendQuestReward (Quest const *quest, uint32 XP)
void SendQuestFailed (uint32 questId, InventoryResult reason=EQUIP_ERR_OK)
void SendQuestTimerFailed (uint32 questId)
void SendCanTakeQuestResponse (QuestFailedReason msg) const
void SendQuestConfirmAccept (Quest const *quest, Player *pReceiver)
void SendPushToPartyResponse (Player *player, uint8 msg)
void SendQuestUpdateAddCredit (Quest const *quest, QuestObjective const *objective, ObjectGuid guid, uint16 oldCount, uint16 addCount)
void SendQuestUpdateAddPlayer (Quest const *quest, QuestObjective const *objective, uint16 oldCount, uint16 addCount)
uint64 GetDivider () const
void SetDivider (uint64 guid)
uint32 GetInGameTime () const
void SetInGameTime (uint32 time)
void AddTimedQuest (uint32 questId)
void RemoveTimedQuest (uint32 questId)
void SaveCUFProfile (uint8 id, CUFProfile *profile)
CUFProfileGetCUFProfile (uint8 id) const
uint8 GetCUFProfilesCount () const
bool HasPvPForcingQuest () const
bool LoadFromDB (uint32 guid, SQLQueryHolder *holder)
bool isBeingLoaded () const override
void Initialize (uint32 guid)
void SaveToDB (bool create=false)
void SaveInventoryAndGoldToDB (SQLTransaction &trans)
void SaveGoldToDB (SQLTransaction &trans)
void SetBindPoint (uint64 guid)
void SendTalentWipeConfirm (ObjectGuid guid, bool resetType)
void ResetPetTalents ()
void RegenerateAll ()
void Regenerate (Powers power)
void RegenerateHealth ()
void setRegenTimerCount (uint32 time)
void setWeaponChangeTimer (uint32 time)
uint64 GetMoney () const
bool ModifyMoney (int64 amount, bool sendError=true)
bool HasEnoughMoney (uint64 amount) const
bool HasEnoughMoney (int64 amount) const
void SetMoney (uint64 value)
RewardedQuestSet const & getRewardedQuests () const
QuestStatusMapgetQuestStatusMap ()
size_t GetRewardedQuestCount () const
bool IsQuestRewarded (uint32 quest_id) const
UnitGetSelectedUnit () const
PlayerGetSelectedPlayer () const
void SetTarget (uint64) OVERRIDE
void SetSelection (uint64 guid)
 Used for serverside target changes, does not apply to players.
void SetComboPoints (int8 cp)
int8 GetComboPoints () const
uint64 GetComboTarget () const
void AddComboPoints (Unit *target, int8 count, Spell *spell=NULL)
void GainSpellComboPoints (int8 count)
void ClearComboPoints ()
void SendComboPoints ()
void SendMailResult (uint32 mailId, MailResponseType mailAction, MailResponseResult mailError, uint32 equipError=0, uint32 item_guid=0, uint32 item_count=0)
void SendNewMail ()
void UpdateNextMailTimeAndUnreads ()
void AddNewMailDeliverTime (time_t deliver_time)
bool IsMailsLoaded () const
void RemoveMail (uint32 id)
void AddMail (Mail *mail)
uint32 GetMailSize ()
MailGetMail (uint32 id)
PlayerMails::iterator GetMailBegin ()
PlayerMails::iterator GetMailEnd ()
ItemGetMItem (uint32 id)
void AddMItem (Item *it)
bool RemoveMItem (uint32 id)
void SendOnCancelExpectedVehicleRideAura ()
void PetSpellInitialize ()
void CharmSpellInitialize ()
void PossessSpellInitialize ()
void VehicleSpellInitialize ()
void SendRemoveControlBar ()
bool HasSpell (uint32 spell) const override
bool HasActiveSpell (uint32 spell) const
TrainerSpellState GetTrainerSpellState (TrainerSpell const *trainer_spell) const
bool IsSpellFitByClassAndRace (uint32 spell_id) const
bool IsNeedCastPassiveSpellAtLearn (SpellInfo const *spellInfo) const
bool IsCurrentSpecMasterySpell (SpellInfo const *spellInfo) const
void SendProficiency (ItemClass itemClass, uint32 itemSubclassMask)
void SendInitialSpells ()
bool addSpell (uint32 spellId, bool active, bool learning, bool dependent, bool disabled, bool loading=false)
void learnSpell (uint32 spell_id, bool dependent)
void removeSpell (uint32 spell_id, bool disabled=false, bool learn_low_rank=true)
void resetSpells (bool myClassOnly=false)
void learnDefaultSpells ()
void learnQuestRewardedSpells ()
void learnQuestRewardedSpells (Quest const *quest)
void learnSpellHighRank (uint32 spellid)
void AddTemporarySpell (uint32 spellId)
void RemoveTemporarySpell (uint32 spellId)
void SetReputation (uint32 factionentry, uint32 value)
uint32 GetReputation (uint32 factionentry) const
std::string GetGuildName ()
uint32 GetUsedTalentCount () const
void SetUsedTalentCount (uint32 talents)
uint32 GetTalentResetCost () const
void SetTalentResetCost (uint32 cost)
uint32 GetSpecializationResetCost () const
void SetSpecializationResetCost (uint32 cost)
uint32 GetSpecializationResetTime () const
void SetSpecializationResetTime (time_t time_)
uint32 GetTalentResetTime () const
void SetTalentResetTime (time_t time_)
uint32 GetTalentSpecialization (uint8 spec) const
void SetTalentSpecialization (uint8 spec, uint32 tree)
uint8 GetActiveSpec () const
void SetActiveSpec (uint8 spec)
uint8 GetSpecsCount () const
void SetSpecsCount (uint8 count)
void SendInspectResult (Player const *player)
bool ResetTalents (bool noCost=false, bool resetTalents=true, bool resetSpecialization=true)
bool RemoveTalent (uint32 talentId)
uint32 GetNextResetTalentsCost () const
uint32 GetNextResetSpecializationCost () const
void InitTalentForLevel ()
void BuildPlayerTalentsInfoData (WorldPacket *data)
void BuildPetTalentsInfoData (WorldPacket *data)
void SendTalentsInfoData ()
bool LearnTalent (uint16 talentId)
bool AddTalent (uint32 spellId, uint8 spec, bool learning)
bool HasTalent (uint32 spell_id, uint8 spec) const
uint32 CalculateTalentsPoints () const
void UpdateSpecCount (uint8 count)
void ActivateSpec (uint8 spec)
void InitGlyphsForLevel ()
void SetGlyphSlot (uint8 slot, uint32 slottype)
uint32 GetGlyphSlot (uint8 slot) const
void SetGlyph (uint8 slot, uint32 glyph)
uint32 GetGlyph (uint8 spec, uint8 slot) const
PlayerTalentMap const * GetTalentMap (uint8 spec) const
PlayerTalentMapGetTalentMap (uint8 spec)
ActionButtonList const & GetActionButtons () const
uint32 GetFreePrimaryProfessionPoints () const
void SetFreePrimaryProfessions (uint16 profs)
void InitPrimaryProfessions ()
PlayerSpellMap const & GetSpellMap () const
PlayerSpellMapGetSpellMap ()
SpellCooldowns const & GetSpellCooldownMap () const
void AddSpellMod (SpellModifier *mod, bool apply)
bool IsAffectedBySpellmod (SpellInfo const *spellInfo, SpellModifier *mod, Spell *spell=NULL)
template<class T>
ApplySpellMod (uint32 spellId, SpellModOp op, T &basevalue, Spell *spell=NULL)
void RemoveSpellMods (Spell *spell)
void RestoreSpellMods (Spell *spell, uint32 ownerAuraId=0, Aura *aura=NULL)
void RestoreAllSpellMods (uint32 ownerAuraId=0, Aura *aura=NULL)
void DropModCharge (SpellModifier *mod, Spell *spell)
void SetSpellModTakingSpell (Spell *spell, bool apply)
bool HasSpellCooldown (uint32 spell_id) const
uint32 GetSpellCooldownDelay (uint32 spell_id) const
void AddSpellAndCategoryCooldowns (SpellInfo const *spellInfo, uint32 itemId, Spell *spell=NULL, bool infinityCooldown=false)
void AddSpellCooldown (uint32 spell_id, uint32 itemid, time_t end_time)
void ModifySpellCooldown (uint32 spellId, int32 cooldown)
void SendSpellCooldown (uint32 spellId, uint32 cooldown)
void SendSpellCooldowns ()
void SendCooldownEvent (SpellInfo const *spellInfo, uint32 itemId=0, Spell *spell=NULL, bool setCooldown=true)
void ProhibitSpellSchool (SpellSchoolMask idSchoolMask, uint32 unTimeMs) override
void RemoveSpellCooldown (uint32 spell_id, bool update=false)
void RemoveSpellCategoryCooldown (uint32 cat, bool update=false)
void SendClearCooldown (uint32 spell_id, Unit *target)
void SendClearAllCooldowns (Unit *target)
GlobalCooldownMgrGetGlobalCooldownMgr ()
void RemoveCategoryCooldown (uint32 cat)
void RemoveArenaSpellCooldowns (bool removeActivePetCooldowns=false)
void RemoveAllSpellCooldown ()
void _LoadSpellCooldowns (PreparedQueryResult result)
void _SaveSpellCooldowns (SQLTransaction &trans)
void SetLastPotionId (uint32 item_id)
void UpdatePotionCooldown (Spell *spell=NULL)
void SetResurrectRequestData (Unit *caster, uint32 health, uint32 mana, uint32 appliedAura)
void ClearResurrectRequestData ()
bool IsRessurectRequestedBy (uint64 guid) const
bool IsRessurectRequested () const
void ResurectUsingRequestData ()
uint8 getCinematic () const
void setCinematic (uint8 cine)
ActionButtonaddActionButton (uint8 button, uint32 action, ActionButtonType type)
void removeActionButton (uint8 button)
ActionButton const * GetActionButton (uint8 button)
void SendInitialActionButtons () const
void SendActionButtons (uint32 state) const
bool IsActionButtonDataValid (uint8 button, uint32 action, ActionButtonType type)
void UpdatePvPState (bool onlyFFA=false)
void SetPvP (bool state)
void UpdatePvP (bool state, bool override=false)
void UpdateZone (uint32 newZone, uint32 newArea)
void UpdateArea (uint32 newArea)
void UpdateZoneDependentAuras (uint32 zone_id)
void UpdateAreaDependentAuras (uint32 area_id)
void UpdateAfkReport (time_t currTime)
 checks the 15 afk reports per 5 minutes limit
void UpdatePvPFlag (time_t currTime)
void UpdateContestedPvP (uint32 currTime)
void SetContestedPvPTimer (uint32 newTime)
void ResetContestedPvP ()
void UpdateDuelFlag (time_t currTime)
void CheckDuelDistance (time_t currTime)
void DuelComplete (DuelCompleteType type)
void SendDuelCountdown (uint32 counter)
bool IsGroupVisibleFor (Player const *p) const
bool IsInSameGroupWith (Player const *p) const
bool IsInSameRaidWith (Player const *p) const
void UninviteFromGroup ()
void RemoveFromGroup (RemoveMethod method=GROUP_REMOVEMETHOD_DEFAULT)
void SendUpdateToOutOfRangeGroupMembers ()
void SetInGuild (uint32 guildId)
void SetRank (uint8 rankId)
uint8 GetRank () const
void SetGuildLevel (uint32 level)
uint32 GetGuildLevel () const
void SetGuildIdInvited (uint32 GuildId)
uint32 GetGuildId () const
GuildGetGuild ()
int GetGuildIdInvited () const
void SetLastGuildInviterGUID (uint64 guid)
uint64 GetLastGuildInviterGUID () const
void SendDeclineGuildInvitation (std::string declinerName, bool autoDecline=false)
uint32 GetArenaPersonalRating (uint8) const
uint32 GetRBGPersonalRating () const
DifficultyID GetDifficulty (MapEntry const *mapEntry) const
DifficultyID GetDungeonDifficulty () const
DifficultyID GetRaidDifficulty () const
void SetDungeonDifficulty (DifficultyID dungeon_difficulty)
void SetRaidDifficulty (DifficultyID raid_difficulty)
bool UpdateSkill (uint32 skill_id, uint32 step)
bool UpdateSkillPro (uint16 skillId, int32 chance, uint32 step)
bool UpdateCraftSkill (uint32 spellid)
bool UpdateGatherSkill (uint32 SkillId, uint32 SkillValue, uint32 RedLevel, uint32 Multiplicator=1)
bool UpdateFishingSkill ()
float GetHealthBonusFromStamina ()
void UpdateTalentSpecializationManaBonus ()
float GetManaSpecializationMultiplier ()
bool UpdateStats (Stats stat) override
bool UpdateAllStats () override
void ApplySpellPenetrationBonus (int32 amount, bool apply)
void UpdateResistances (uint32 school) override
void UpdateArmor () override
void UpdateMaxHealth () override
void UpdateMaxPower (Powers power) override
void UpdateAttackPowerAndDamage (bool ranged=false) override
void UpdateDamagePhysical (WeaponAttackType attType) override
void ApplySpellPowerBonus (int32 amount, bool apply)
void UpdateSpellDamageAndHealingBonus ()
void ApplyRatingMod (CombatRating cr, int32 value, bool apply)
void UpdateRating (CombatRating cr)
void UpdateAllRatings ()
void UpdateMastery ()
void UpdatePvpPower ()
void CalculateMinMaxDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, float &min_damage, float &max_damage)
void RecalculateRating (CombatRating cr)
float GetMeleeCritFromAgility ()
void GetDodgeFromAgility (float &diminishing, float &nondiminishing)
float GetSpellCritFromIntellect ()
float OCTRegenMPPerSpirit ()
float GetRatingMultiplier (CombatRating cr) const
float GetRatingBonusValue (CombatRating cr) const
uint32 GetBaseSpellPowerBonus () const
 Returns base spellpower bonus from spellpower stat on items, without spellpower from intellect stat.
int32 GetSpellPenetrationItemMod () const
float GetExpertiseDodgeOrParryReduction (WeaponAttackType attType) const
void UpdateBlockPercentage ()
void UpdateCritPercentage (WeaponAttackType attType)
void UpdateAllCritPercentages ()
void UpdateParryPercentage ()
void UpdateDodgePercentage ()
void UpdateMeleeHitChances ()
void UpdateRangedHitChances ()
void UpdateSpellHitChances ()
void UpdateAllSpellCritChances ()
void UpdateSpellCritChance (uint32 school)
void UpdateArmorPenetration (int32 amount)
void UpdateExpertise (WeaponAttackType attType)
void ApplyManaRegenBonus (int32 amount, bool apply)
void ApplyHealthRegenBonus (int32 amount, bool apply)
void UpdateManaRegen ()
void UpdateRuneRegen (RuneType rune)
void UpdateAllRunesRegen ()
uint64 GetLootGUID () const
void SetLootGUID (uint64 guid)
std::set< uint64 > const & GetLootView () const
bool IsLootingObject (uint64 guid) const
void AddLootedObject (uint64 guid)
void RemoveLootedObject (uint64 guid)
void RemovedInsignia (Player *looterPlr)
WorldSessionGetSession () const
void BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const override
void DestroyForPlayer (Player *target, bool onDeath=false) const override
void SendLogXPGain (uint32 GivenXP, Unit *victim, uint32 BonusXP, bool recruitAFriend=false, float group_rate=1.0f)
void SendAttackSwingCancelAttack ()
void SendAttackSwingError (AttackSwingError error)
void SendAutoRepeatCancel (Unit *target)
void SendExplorationExperience (uint32 Area, uint32 Experience)
void SendDungeonDifficulty ()
void SendRaidDifficulty (int32 forcedDifficulty=-1)
void ResetInstances (InstanceResetMethod method, bool isRaid)
 Reset all solo instances and optionally send a message on success for each.
void SendResetInstanceSuccess (uint32 MapId)
void SendResetInstanceFailed (uint32 reason, uint32 MapId)
void SendResetFailedNotify (uint32 mapid)
bool UpdatePosition (float x, float y, float z, float orientation, bool teleport=false) override
bool UpdatePosition (const Position &pos, bool teleport=false)
void UpdateUnderwaterState (Map *m, float x, float y, float z) override
void SendMessageToSet (WorldPacket *data, bool self) override
void SendMessageToSetInRange (WorldPacket *data, float fist, bool self) override
void SendMessageToSetInRange (WorldPacket *data, float dist, bool self, bool own_team_only)
void SendMessageToSet (WorldPacket *data, Player const *skipped_rcvr) override
CorpseGetCorpse () const
void SpawnCorpseBones ()
void CreateCorpse ()
void KillPlayer ()
uint32 GetResurrectionSpellId ()
void ResurrectPlayer (float restore_percent, bool applySickness=false)
void BuildPlayerRepop ()
void RepopAtGraveyard ()
void DurabilityLossAll (double percent, bool inventory)
void DurabilityLoss (Item *item, double percent)
void DurabilityPointsLossAll (int32 points, bool inventory)
void DurabilityPointsLoss (Item *item, int32 points)
void DurabilityPointLossForEquipSlot (EquipmentSlots slot)
uint32 DurabilityRepairAll (bool cost, float discountMod, bool guildBank)
uint32 DurabilityRepair (uint16 pos, bool cost, float discountMod, bool guildBank)
void UpdateMirrorTimers ()
void StopMirrorTimers ()
bool IsMirrorTimerActive (MirrorTimerType type)
bool CanJoinConstantChannelInZone (ChatChannelsEntry const *channel, AreaTableEntry const *zone)
void JoinedChannel (Channel *c)
void LeftChannel (Channel *c)
void CleanupChannels ()
void UpdateLocalChannels (uint32 newZone)
void LeaveLFGChannel ()
void SetSkill (uint16 id, uint16 step, uint16 currVal, uint16 maxVal)
uint16 GetMaxSkillValue (uint32 skill) const
uint16 GetPureMaxSkillValue (uint32 skill) const
uint16 GetSkillValue (uint32 skill) const
uint16 GetBaseSkillValue (uint32 skill) const
uint16 GetPureSkillValue (uint32 skill) const
int16 GetSkillPermBonusValue (uint32 skill) const
int16 GetSkillTempBonusValue (uint32 skill) const
uint16 GetSkillStep (uint16 skill) const
bool HasSkill (uint32 skill) const
void learnSkillRewardedSpells (uint32 id, uint32 value)
WorldLocationGetTeleportDest ()
bool IsBeingTeleported () const
bool IsBeingTeleportedNear () const
bool IsBeingTeleportedFar () const
void SetSemaphoreTeleportNear (bool semphsetting)
void SetSemaphoreTeleportFar (bool semphsetting)
bool IsForcedTeleportFar () const
void SetForcedTeleportFar (bool forced)
bool IsBeingForcedTeleportFar () const
void SetSemaphoreTeleportForcedFar (bool semphsetting)
void ProcessDelayedOperations ()
void CheckAreaExploreAndOutdoor (void)
uint32 GetTeam () const
TeamId GetTeamId () const
void setFactionForRace (uint8 race)
void InitDisplayIds ()
bool IsAtGroupRewardDistance (WorldObject const *pRewardSource) const
bool IsAtRecruitAFriendDistance (WorldObject const *pOther) const
void RewardPlayerAndGroupAtKill (Unit *victim, bool isBattleGround)
void RewardPlayerAndGroupAtEvent (uint32 creature_id, WorldObject *pRewardSource)
bool isHonorOrXPTarget (Unit const *victim)
bool GetsRecruitAFriendBonus (bool forXP)
uint8 GetGrantableLevels () const
void SetGrantableLevels (uint8 val)
ReputationMgrGetReputationMgr ()
ReputationMgr const & GetReputationMgr () const
ReputationRank GetReputationRank (uint32 faction_id) const
void RewardReputation (Unit *victim, float rate)
void RewardReputation (Quest const *quest)
int32 CalculateReputationGain (ReputationSource source, uint32 creatureOrQuestLevel, int32 rep, int32 faction, bool noQuestBonus=false)
void UpdateSkillsForLevel ()
void UpdateSkillsToMaxSkillsForLevel ()
void ModifySkillBonus (uint32 skillid, int32 val, bool talent)
BattlePetMgrGetBattlePetMgr ()
void UpdateHonorFields ()
bool RewardHonor (Unit *victim, uint32 groupsize, int32 honor=-1, bool pvptoken=false)
uint32 GetMaxPersonalArenaRatingRequirement (uint32 minarenaslot) const
SpellCooldowns GetSpellCooldowns () const
void SetDrunkValue (uint8 newDrunkValue, uint32 itemId=0)
uint8 GetDrunkValue () const
uint32 GetDeathTimer () const
uint32 GetCorpseReclaimDelay (bool pvp) const
void UpdateCorpseReclaimDelay ()
void SendCorpseReclaimDelay (bool load=false)
uint32 GetBlockPercent () const override
bool CanDodge () const
void SetCanDodge (bool value)
bool CanParry () const
void SetCanParry (bool value)
bool CanBlock () const
void SetCanBlock (bool value)
bool CanTitanGrip () const
void SetCanTitanGrip (bool value)
bool CanTameExoticPets () const
void SetRegularAttackTime ()
void SetBaseModValue (BaseModGroup modGroup, BaseModType modType, float value)
void HandleBaseModValue (BaseModGroup modGroup, BaseModType modType, float amount, bool apply)
float GetBaseModValue (BaseModGroup modGroup, BaseModType modType) const
float GetTotalBaseModValue (BaseModGroup modGroup) const
float GetTotalPercentageModValue (BaseModGroup modGroup) const
void _ApplyAllStatBonuses ()
void _RemoveAllStatBonuses ()
void ResetAllPowers ()
void _ApplyWeaponDependentAuraMods (Item *item, WeaponAttackType attackType, bool apply)
void _ApplyWeaponDependentAuraCritMod (Item *item, WeaponAttackType attackType, AuraEffect const *aura, bool apply)
void _ApplyWeaponDependentAuraDamageMod (Item *item, WeaponAttackType attackType, AuraEffect const *aura, bool apply)
void _ApplyItemMods (Item *item, uint8 slot, bool apply)
void _RemoveAllItemMods ()
void _ApplyAllItemMods ()
void _ApplyAllLevelScaleItemMods (bool apply)
void _ApplyItemBonuses (ItemTemplate const *proto, uint8 slot, bool apply, bool only_level_scale=false)
void _ApplyWeaponDamage (uint8 slot, ItemTemplate const *proto, ScalingStatValuesEntry const *ssv, bool apply)
bool EnchantmentFitsRequirements (uint32 enchantmentcondition, int8 slot)
void ToggleMetaGemsActive (uint8 exceptslot, bool apply)
void CorrectMetaGemEnchants (uint8 slot, bool apply)
void InitDataForForm (bool reapplyMods=false)
void ApplyItemEquipSpell (Item *item, bool apply, bool form_change=false)
void ApplyEquipSpell (SpellInfo const *spellInfo, Item *item, bool apply, bool form_change=false)
void UpdateEquipSpellsAtFormChange ()
void CastItemCombatSpell (Unit *target, WeaponAttackType attType, uint32 procVictim, uint32 procEx)
void CastItemUseSpell (Item *item, SpellCastTargets const &targets, uint8 cast_count, uint32 glyphIndex, SpellResearchData const *researchData=NULL)
void CastItemCombatSpell (Unit *target, WeaponAttackType attType, uint32 procVictim, uint32 procEx, Item *item, ItemTemplate const *proto)
void SendEquipmentSetList ()
void SetEquipmentSet (uint32 index, EquipmentSet const &eqset)
void DeleteEquipmentSet (uint64 setGuid)
void SendInitWorldStates (uint32 zone, uint32 area)
void SendUpdateWorldState (uint32 Field, uint32 Value)
void SendDirectMessage (WorldPacket *data)
void SendBGWeekendWorldStates ()
void SendBattlefieldWorldStates ()
void SendAurasForTarget (Unit *target)
void SendLoot (uint64 guid, LootType loot_type, bool isAoE=false)
void SendLootRelease (ObjectGuid guid)
void SendNotifyLootItemRemoved (uint8 lootSlot, ObjectGuid guid)
void SendNotifyLootMoneyRemoved (ObjectGuid guid)
bool InBattleground () const
bool InArena () const
uint32 GetBattlegroundId () const
BattlegroundTypeId GetBattlegroundTypeId () const
BattlegroundGetBattleground () const
uint32 GetBattlegroundQueueJoinTime (BattlegroundTypeId bgTypeId) const
void AddBattlegroundQueueJoinTime (BattlegroundTypeId bgTypeId, uint32 joinTime)
void RemoveBattlegroundQueueJoinTime (BattlegroundTypeId bgTypeId)
bool InBattlegroundQueue () const
BattlegroundQueueTypeId GetBattlegroundQueueTypeId (uint32 index) const
uint32 GetBattlegroundQueueIndex (BattlegroundQueueTypeId bgQueueTypeId) const
bool IsInvitedForBattlegroundQueueType (BattlegroundQueueTypeId bgQueueTypeId) const
bool InBattlegroundQueueForBattlegroundQueueType (BattlegroundQueueTypeId bgQueueTypeId) const
void SetBattlegroundId (uint32 val, BattlegroundTypeId bgTypeId)
uint32 AddBattlegroundQueueId (BattlegroundQueueTypeId val)
bool HasFreeBattlegroundQueueId ()
void RemoveBattlegroundQueueId (BattlegroundQueueTypeId val)
void SetInviteForBattlegroundQueueType (BattlegroundQueueTypeId bgQueueTypeId, uint32 instanceId)
bool IsInvitedForBattlegroundInstance (uint32 instanceId) const
WorldLocation const & GetBattlegroundEntryPoint () const
void SetBattlegroundEntryPoint ()
void SetBGTeam (uint32 team)
uint32 GetBGTeam () const
void LeaveBattleground (bool teleportToEntryPoint=true)
bool CanJoinToBattleground (Battleground const *bg) const
bool CanReportAfkDueToLimit ()
void ReportedAfkBy (Player *reporter)
 This player has been blamed to be inactive in a battleground.
void ClearAfkReports ()
bool GetBGAccessByLevel (BattlegroundTypeId bgTypeId) const
bool isTotalImmunity ()
bool CanUseBattlegroundObject (GameObject *gameobject)
bool isTotalImmune ()
bool CanCaptureTowerPoint ()
bool GetRandomWinner () const
void SetRandomWinner (bool isWinner)
OutdoorPvPGetOutdoorPvP () const
bool IsOutdoorPvPActive ()
bool isRested () const
uint32 GetXPRestBonus (uint32 xp)
uint32 GetRestTime () const
void SetRestTime (uint32 v)
bool IsImmuneToEnvironmentalDamage ()
uint32 EnvironmentalDamage (EnviromentalDamage type, uint32 damage)
void UpdateSpeakTime ()
bool CanSpeak () const
void UpdateFallInformationIfNeed (MovementInfo const &minfo, uint16 opcode)
void SetFallInformation (uint32 time, float z)
void HandleFall (MovementInfo const &movementInfo)
bool IsKnowHowFlyIn (uint32 mapid, uint32 zone) const
void SetClientControl (Unit *target, uint8 allowMove)
void SetMover (Unit *target)
void SetSeer (WorldObject *target)
void SetViewpoint (WorldObject *target, bool apply)
WorldObjectGetViewpoint () const
void StopCastingCharm ()
void StopCastingBindSight ()
uint32 GetSaveTimer () const
void SetSaveTimer (uint32 timer)
void SaveRecallPosition ()
void SetHomebind (WorldLocation const &loc, uint32 areaId)
WorldLocation GetStartPosition () const
bool HaveAtClient (WorldObject const *u) const
bool IsNeverVisible () const override
bool IsVisibleGloballyFor (Player const *player) const
void SendInitialVisiblePackets (Unit *target)
void UpdateObjectVisibility (bool forced=true) override
void UpdateVisibilityForPlayer ()
void UpdateVisibilityOf (WorldObject *target)
void UpdateTriggerVisibility ()
template<class T>
void UpdateVisibilityOf (T *target, UpdateData &data, std::set< Unit * > &visibleNow)
void UpdatePhasing ()
bool HasAtLoginFlag (AtLoginFlags f) const
void SetAtLoginFlag (AtLoginFlags f)
void RemoveAtLoginFlag (AtLoginFlags flags, bool persist=false)
bool isUsingLfg ()
bool inRandomLfgDungeon ()
uint32 GetTemporaryUnsummonedPetNumber () const
void SetTemporaryUnsummonedPetNumber (uint32 petnumber)
void UnsummonPetTemporaryIfAny ()
void ResummonPetTemporaryUnSummonedIfAny ()
bool IsPetNeedBeTemporaryUnsummoned () const
void StopCinematic ()
void SendCinematicStart (uint32 CinematicSequenceId)
bool IsInCinematic () const
bool GetCinematicPosition (float &x, float &y, float &z) const
void UpdateCinematicVisibility ()
void SendMovieStart (uint32 MovieId)
void UpdateHomebindTime (uint32 time)
InstancePlayerBindGetBoundInstance (uint32 mapid, DifficultyID difficulty)
BoundInstancesMapGetBoundInstances (DifficultyID difficulty)
InstanceSaveGetInstanceSave (uint32 mapid)
void UnbindInstance (uint32 mapid, DifficultyID difficulty, bool unload=false)
void UnbindInstance (BoundInstancesMap::iterator &itr, DifficultyID difficulty, bool unload=false)
InstancePlayerBindBindToInstance (InstanceSave *save, bool permanent, bool load=false)
void BindToInstance ()
void SetPendingBind (uint32 instanceId, uint32 bindTimer)
bool HasPendingBind () const
void SendRaidInfo ()
void SendSavedInstances ()
bool Satisfy (AccessRequirement const *ar, uint32 target_map, bool report=false)
bool CheckInstanceLoginValid ()
bool CheckInstanceCount (uint32 instanceId) const
void AddInstanceEnterTime (uint32 instanceId, time_t enterTime)
uint32 GetLastPetNumber () const
void SetLastPetNumber (uint32 petnumber)
GroupGetGroupInvite ()
void SetGroupInvite (Group *group)
GroupGetGroup ()
const GroupGetGroup () const
GroupReferenceGetGroupRef ()
void SetGroup (Group *group, int8 subgroup=-1)
uint8 GetSubGroup () const
uint32 GetGroupUpdateFlag () const
void SetGroupUpdateFlag (uint32 flag)
uint64 GetAuraUpdateMaskForRaid () const
void SetAuraUpdateMaskForRaid (uint8 slot)
PlayerGetNextRandomRaidMember (float radius)
PartyResult CanUninviteFromGroup () const
void SetReadyCheckTimer (uint32 timer)
void SetBattlegroundOrBattlefieldRaid (Group *group, int8 subgroup=-1)
void RemoveFromBattlegroundOrBattlefieldRaid ()
GroupGetOriginalGroup ()
GroupReferenceGetOriginalGroupRef ()
uint8 GetOriginalSubGroup () const
void SetOriginalGroup (Group *group, int8 subgroup=-1)
void SetPassOnGroupLoot (bool bPassOnGroupLoot)
bool GetPassOnGroupLoot () const
MapReferenceGetMapRef ()
void SetMap (Map *map) override
void ResetMap () override
bool isAllowedToLoot (const Creature *creature)
DeclinedName const * GetDeclinedNames () const
uint8 GetRunesState () const
RuneType GetBaseRune (uint8 index) const
RuneType GetCurrentRune (uint8 index) const
uint32 GetRuneCooldown (uint8 index) const
uint32 GetRuneBaseCooldown (uint8 index) const
uint32 GetRuneTypeBaseCooldown (RuneType runeType) const
bool IsBaseRuneSlotsOnCooldown (RuneType runeType) const
RuneType GetLastUsedRune ()
void SetLastUsedRune (RuneType type)
void SetBaseRune (uint8 index, RuneType baseRune)
void SetCurrentRune (uint8 index, RuneType currentRune)
void SetRuneCooldown (uint8 index, uint32 cooldown)
void SetRuneConvertAura (uint8 index, AuraEffect const *aura)
void AddRuneByAuraEffect (uint8 index, RuneType newType, AuraEffect const *aura)
void RemoveRunesByAuraEffect (AuraEffect const *aura)
void RestoreBaseRune (uint8 index)
void ConvertRune (uint8 index, RuneType newType)
void ResyncRunes (uint8 count)
void AddRunePower (uint8 index)
void InitRunes ()
void SendRespondInspectAchievements (Player *player) const
uint32 GetAchievementPoints () const
bool HasAchieved (uint32 achievementId) const
void ResetAchievements ()
void ResetAchievementCriteria (AchievementCriteriaTypes type, uint64 miscValue1=0, uint64 miscValue2=0, bool evenIfCriteriaComplete=false)
void UpdateAchievementCriteria (AchievementCriteriaTypes type, uint64 miscValue1=0, uint64 miscValue2=0, uint64 miscValue3=0, Unit *unit=NULL)
void StartTimedAchievement (AchievementCriteriaTimedTypes type, uint32 entry, uint32 timeLost=0)
void RemoveTimedAchievement (AchievementCriteriaTimedTypes type, uint32 entry)
void CompletedAchievement (AchievementEntry const *entry)
bool HasTitle (uint32 bitIndex)
bool HasTitle (CharTitlesEntry const *title)
void SetTitle (CharTitlesEntry const *title, bool lost=false)
bool CanSeeSpellClickOn (Creature const *creature) const
uint32 GetChampioningFaction () const
void SetChampioningFaction (uint32 faction)
uint32 GetChampioningType () const
void SetChampioningType (uint8 type)
float GetAverageItemLevel ()
void ClearWhisperWhiteList ()
void AddWhisperWhiteList (uint64 guid)
bool IsInWhisperWhiteList (uint64 guid)
void RemoveFromWhisperWhiteList (uint64 guid)
void ReadMovementInfo (WorldPacket &data, MovementInfo *mi, Movement::ExtraMovementStatusElement *extras=NULL)
void SendMovementSetCanTransitionBetweenSwimAndFly (bool apply)
void SendMovementSetCollisionHeight (float height)
bool CanFly () const override
float GetCollisionHeight (bool mounted) const
 Return collision height sent to client.
std::string GetMapAreaAndZoneString ()
std::string GetCoordsMapAreaAndZoneString ()
bool IsVoidStorageUnlocked () const
void UnlockVoidStorage ()
void LockVoidStorage ()
uint8 GetNextVoidStorageFreeSlot () const
uint8 GetNumOfVoidStorageFreeSlots () const
uint8 AddVoidStorageItem (const VoidStorageItem &item)
void AddVoidStorageItemAtSlot (uint8 slot, const VoidStorageItem &item)
void DeleteVoidStorageItem (uint8 slot)
bool SwapVoidStorageItem (uint8 oldSlot, uint8 newSlot)
VoidStorageItemGetVoidStorageItem (uint8 slot) const
VoidStorageItemGetVoidStorageItem (uint64 id, uint8 &slot) const
void ReadyCheckComplete ()
void ShowNeutralPlayerFactionSelectUI ()
uint32 GetQuestObjectiveCounter (uint32 objectiveId) const
void SaveResearchDigsiteToDB (ResearchDigsite *digsite)
void DeleteResearchDigsite (ResearchDigsite *digsite)
void UpdateResearchDigsites ()
bool IsWithinResearchDigsite (ResearchDigsite *digsite) const
ResearchDigsiteGetCurrentResearchDigsite ()
ResearchDigsiteGetResearchDigsiteForFind (GameObject const *go) const
ResearchDigsiteTryToSpawnResearchDigsiteOnContinent (uint32 mapId)
ResearchDigsiteInfo const * GetRandomResearchDigsiteForContinent (uint32 mapId)
bool IsResearchDigsiteAvailable (ResearchDigsiteInfo const *digsiteInfo) const
void SendResearchHistory ()
void SolveResearchProject (Spell *spell)
bool HasCompletedResearchProject (uint32 projectId) const
bool HasResearchingProject (uint32 projectId) const
bool HasCompletedAllRareProjectsForRace (uint32 researchBranchId) const
bool HasCompletedAllCommonProjectsForRace (uint32 researchBranchId, bool onlyAvailable) const
bool IsResearchBranchUnlocked (uint32 researchBranchId) const
uint32 GetRandomResearchProjectForRace (uint32 researchBranchId)
void UpdateResearchProjects ()
void SendSurveyCastInfo (ResearchDigsite *digsite, bool success)
bool OnArchaeologyFindUsed (GameObject *go)
static uint32 GetDefaultGossipMenuForSource (WorldObject *source)
static uint32 GetUInt32ValueFromArray (Tokenizer const &data, uint16 index)
static float GetFloatValueFromArray (Tokenizer const &data, uint16 index)
static uint32 GetZoneIdFromDB (uint64 guid)
static uint32 GetLevelFromDB (uint64 guid)
static bool LoadPositionFromDB (uint32 &mapid, float &x, float &y, float &z, float &o, bool &in_flight, uint64 guid)
static bool IsValidGender (uint8 GenderGender)
static bool IsValidClass (uint8 Class)
static bool IsValidRace (uint8 Race)
static void SetUInt32ValueInArray (Tokenizer &data, uint16 index, uint32 value)
static void Customize (uint64 guid, uint8 gender, uint8 skin, uint8 face, uint8 hairStyle, uint8 hairColor, uint8 facialHair)
static void SavePositionInDB (uint32 mapid, float x, float y, float z, float o, uint32 zone, uint64 guid)
static void DeleteFromDB (uint64 playerguid, uint32 accountId, bool updateRealmChars=true, bool deleteFinally=false)
static void DeleteOldCharacters ()
static void DeleteOldCharacters (uint32 keepDays)
static void RemoveFromGroup (Group *group, uint64 guid, RemoveMethod method=GROUP_REMOVEMETHOD_DEFAULT, uint64 kicker=0, const char *reason=NULL)
static uint32 GetGuildIdFromDB (uint64 guid)
static uint8 GetRankFromDB (uint64 guid)
static void RemovePetitionsAndSigns (uint64 guid, uint32 type)
static DifficultyID CheckLoadedDungeonDifficultyID (DifficultyID difficulty)
static DifficultyID CheckLoadedRaidDifficultyID (DifficultyID difficulty)
static uint32 TeamForRace (uint8 race)
static DrunkenState GetDrunkenstateByValue (uint8 value)
static void ConvertInstancesToGroup (Player *player, Group *group, bool switchLeader)
 convert the player's binds to the group
void _LoadActions (PreparedQueryResult result)
void _LoadAuras (PreparedQueryResult result, uint32 timediff)
void _LoadGlyphAuras ()
void _LoadBoundInstances (PreparedQueryResult result)
void _LoadInventory (PreparedQueryResult result, uint32 timeDiff)
void _LoadVoidStorage (PreparedQueryResult result)
void _LoadMailInit (PreparedQueryResult resultUnread, PreparedQueryResult resultDelivery)
void _LoadMail ()
void _LoadMailedItems (Mail *mail)
void _LoadQuestStatus (PreparedQueryResult result)
void _LoadQuestObjectiveStatus (PreparedQueryResult result)
void _LoadQuestStatusRewarded (PreparedQueryResult result)
void _LoadDailyQuestStatus (PreparedQueryResult result)
void _LoadWeeklyQuestStatus (PreparedQueryResult result)
void _LoadMonthlyQuestStatus (PreparedQueryResult result)
void _LoadSeasonalQuestStatus (PreparedQueryResult result)
void _LoadRandomBGStatus (PreparedQueryResult result)
void _LoadGroup (PreparedQueryResult result)
void _LoadSkills (PreparedQueryResult result)
void _LoadSpells (PreparedQueryResult result)
bool _LoadHomeBind (PreparedQueryResult result)
void _LoadDeclinedNames (PreparedQueryResult result)
void _LoadEquipmentSets (PreparedQueryResult result)
void _LoadBGData (PreparedQueryResult result)
void _LoadGlyphs (PreparedQueryResult result)
void _LoadTalents (PreparedQueryResult result)
void _LoadInstanceTimeRestrictions (PreparedQueryResult result)
void _LoadCurrency (PreparedQueryResult result)
void _LoadCUFProfiles (PreparedQueryResult result)
void _LoadResearchHistory (PreparedQueryResult result)
void _LoadResearchProjects (PreparedQueryResult result)
void _LoadResearchDigsites (PreparedQueryResult result)
void _SaveActions (SQLTransaction &trans)
void _SaveAuras (SQLTransaction &trans)
void _SaveInventory (SQLTransaction &trans)
void _SaveVoidStorage (SQLTransaction &trans)
void _SaveMail (SQLTransaction &trans)
void _SaveQuestStatus (SQLTransaction &trans)
void _SaveQuestObjectiveStatus (SQLTransaction &trans)
void _SaveDailyQuestStatus (SQLTransaction &trans)
void _SaveWeeklyQuestStatus (SQLTransaction &trans)
void _SaveMonthlyQuestStatus (SQLTransaction &trans)
void _SaveSeasonalQuestStatus (SQLTransaction &trans)
void _SaveSkills (SQLTransaction &trans)
void _SaveSpells (SQLTransaction &trans)
void _SaveEquipmentSets (SQLTransaction &trans)
void _SaveBGData (SQLTransaction &trans)
void _SaveGlyphs (SQLTransaction &trans)
void _SaveTalents (SQLTransaction &trans)
void _SaveStats (SQLTransaction &trans)
void _SaveInstanceTimeRestrictions (SQLTransaction &trans)
void _SaveCurrency (SQLTransaction &trans)
void _SaveCUFProfiles (SQLTransaction &trans)
void _SaveResearchHistory (SQLTransaction &trans)
void _SaveResearchProjects (SQLTransaction &trans)
void HandleSobering ()
 The player sobers by 1% every 9 seconds.
void SendMirrorTimer (MirrorTimerType Type, uint32 MaxValue, uint32 CurrentValue, int32 Regen)
void StopMirrorTimer (MirrorTimerType Type)
void HandleDrowning (uint32 time_diff)
int32 getMaxTimer (MirrorTimerType timer)
void outDebugValues () const
uint32 _GetCurrencyWeekCap (const CurrencyTypesEntry *currency) const
uint32 GetCurrencyWeekCap (CurrencyTypesEntry const *currency) const
uint32 GetCurrencyTotalCap (CurrencyTypesEntry const *currency) const
void UpdateConquestCurrencyCap (uint32 currency)
 Updates weekly conquest point cap (dynamic cap).
void ResetTimeSync ()
void SendTimeSync ()
bool CanAlwaysSee (WorldObject const *obj) const override
bool IsAlwaysDetectableFor (WorldObject const *seer) const override
InventoryResult CanStoreItem_InSpecificSlot (uint8 bag, uint8 slot, ItemPosCountVec &dest, ItemTemplate const *pProto, uint32 &count, bool swap, Item *pSrcItem) const
InventoryResult CanStoreItem_InBag (uint8 bag, ItemPosCountVec &dest, ItemTemplate const *pProto, uint32 &count, bool merge, bool non_specialized, Item *pSrcItem, uint8 skip_bag, uint8 skip_slot) const
InventoryResult CanStoreItem_InInventorySlots (uint8 slot_begin, uint8 slot_end, ItemPosCountVec &dest, ItemTemplate const *pProto, uint32 &count, bool merge, Item *pSrcItem, uint8 skip_bag, uint8 skip_slot) const
Item_StoreItem (uint16 pos, Item *pItem, uint32 count, bool clone, bool update)
Item_LoadItem (SQLTransaction &trans, uint32 zoneId, uint32 timeDiff, Field *fields)
void SendRefundInfo (Item *item)
void RefundItem (Item *item)
void SendItemRefundResult (Item *item, ItemExtendedCostEntry const *iece, uint8 error)
void AddKnownCurrency (uint32 itemId)
void AdjustQuestReqItemCount (Quest const *quest, QuestStatusData &questStatusData)
bool IsCanDelayTeleport () const
void SetCanDelayTeleport (bool setting)
bool IsHasDelayedTeleport () const
void SetDelayedTeleportFlag (bool setting)
void ScheduleDelayedOperation (uint32 operation)
void UpdateCharmedAI ()

Additional Inherited Members

Public Types inherited from Unit
typedef std::set< Unit * > AttackerSet
typedef std::list< AuraApplication * > AuraApplicationList
typedef std::multimap< uint32, AuraApplication * > AuraApplicationMap
typedef std::pair< AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator > AuraApplicationMapBounds
typedef std::pair< AuraApplicationMap::iterator, AuraApplicationMap::iterator > AuraApplicationMapBoundsNonConst
typedef std::list< AuraEffect * > AuraEffectList
typedef std::list< Aura * > AuraList
typedef std::multimap< uint32, Aura * > AuraMap
typedef std::pair< AuraMap::const_iterator, AuraMap::const_iterator > AuraMapBounds
typedef std::pair< AuraMap::iterator, AuraMap::iterator > AuraMapBoundsNonConst
typedef std::multimap< AuraStateType, AuraApplication * > AuraStateAurasMap
typedef std::pair< AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator > AuraStateAurasMapBounds
typedef std::set< uint32ComboPointHolderSet
typedef std::set< Unit * > ControlList
typedef std::list< DiminishingReturnDiminishing
typedef std::set< PetAura const * > PetAuraSet
typedef std::map< uint8, AuraApplication * > VisibleAuraMap
Protected Types inherited from Unit
typedef std::list< DynamicObject * > DynObjectList
typedef std::list< GameObject * > GameObjectList
Protected Member Functions inherited from Unit
void _DeleteRemovedAuras ()
void _UpdateAutoRepeatSpell ()
void _UpdateSpells (uint32 time)
void BuildValuesUpdate (uint8 updatetype, ByteBuffer *data, Player *target) const override
void DisableSpline ()
virtual SpellSchoolMask GetMeleeDamageSchoolMask () const
bool IsAlwaysDetectableFor (WorldObject const *seer) const override
bool IsAlwaysVisibleFor (WorldObject const *seer) const override
void SendMissileCancel (uint32 spellId, bool cancel=true)
void SetConfused (bool apply)
void SetFeared (bool apply)
void SetRooted (bool apply, bool packetOnly=false)
void SetStunned (bool apply)
 Unit (bool isWorldObject)
Protected Member Functions inherited from WorldObject
virtual bool IsInvisibleDueToDespawn () const
void SetLocationInstanceId (uint32 _instanceId)
void SetLocationMapId (uint32 _mapId)
 WorldObject (bool isWorldObject)
Protected Member Functions inherited from Object
std::string _ConcatFields (uint16 startIndex, uint16 size) const
void _Create (uint32 guidlow, uint32 entry, HighGuid guidhigh)
void _InitValues ()
void _LoadIntoDataField (std::string const &data, uint32 startOffset, uint32 count)
void BuildDynamicValuesUpdate (uint8 updateType, ByteBuffer *data, Player *target) const
void BuildMovementUpdate (ByteBuffer *data, uint16 flags) const
uint32 GetUpdateFieldData (Player const *target, uint32 *&flags) const
 Object ()
Protected Attributes inherited from Unit
LiquidTypeEntry const * _lastLiquid
UnitAIi_AI
UnitAIi_disabledAI
MotionMaster i_motionMaster
AuraApplicationMap m_appliedAuras
AttackerSet m_attackers
Unitm_attacking
uint32 m_attackTimer [uint8(WeaponAttackType::MAX_ATTACK)]
float m_auraModifiersGroup [UNIT_MOD_END][MODIFIER_TYPE_END]
AuraStateAurasMap m_auraStateAuras
AuraMap::iterator m_auraUpdateIterator
bool m_AutoRepeatFirstCast
bool m_canModifyStats
CharmInfom_charmInfo
float m_createStats [MAX_STATS]
Spellm_currentSpells [CURRENT_MAX_SPELL]
DeathState m_deathState
DynObjectList m_dynObj
GameObjectList m_gameObj
AuraApplicationList m_interruptableAuras
uint32 m_interruptMask
bool m_isSorted
AuraEffectList m_modAuras [TOTAL_AURAS]
uint32 m_movementCounter
 Incrementing counter used in movement packets.
uint32 m_overrideAutoattackRange
SpellInfo const * m_overrideAutoattackSpellInfo
AuraMap m_ownedAuras
int32 m_procDeep
uint32 m_reactiveTimer [MAX_REACTIVE]
uint32 m_regenTimer
AuraList m_removedAuras
uint32 m_removedAurasCount
AuraList m_scAuras
SharedVisionList m_sharedVision
float m_speed_rate [MAX_MOVE_TYPE]
ThreatManager m_ThreatManager
uint32 m_transform
uint32 m_unitTypeMask
Vehiclem_vehicle
Vehiclem_vehicleKit
VisibleAuraMap m_visibleAuras
float m_weaponDamage [uint8(WeaponAttackType::MAX_ATTACK)][2]
Protected Attributes inherited from WorldObject
bool m_isActive
const bool m_isWorldObject
std::string m_name
Transportm_transport
ZoneScriptm_zoneScript
Protected Attributes inherited from Object
union { 
   float *   m_floatValues 
   int32 *   m_int32Values 
   uint32 *   m_uint32Values 
}; 
UpdateMask _changesMask
std::vector< bool * > m_dynamicChange
std::vector< uint32 * > m_dynamicTab
uint16 m_fieldNotifyFlags
uint16 m_objectType
TypeID m_objectTypeId
bool m_objectUpdated
uint16 m_updateFlag
uint16 m_valuesCount

Detailed Description

Definition at line 1288 of file Player.h.

Member Typedef Documentation

◆ BoundInstancesMap

◆ ClientGUIDs

typedef std::set<uint64> Player::ClientGUIDs

Definition at line 2856 of file Player.h.

◆ DFQuestsDoneList

typedef std::set<uint32> Player::DFQuestsDoneList

Definition at line 2889 of file Player.h.

◆ ItemMap

Definition at line 2027 of file Player.h.

◆ JoinedChannelsList

typedef std::list<Channel*> Player::JoinedChannelsList
protected

Definition at line 3432 of file Player.h.

◆ QuestSet

typedef std::set<uint32> Player::QuestSet
protected

Definition at line 3263 of file Player.h.

◆ SeasonalEventQuestMap

Definition at line 3265 of file Player.h.

◆ SeasonalQuestSet

typedef std::set<uint32> Player::SeasonalQuestSet
protected

Definition at line 3264 of file Player.h.

Constructor & Destructor Documentation

◆ Player()

Player::Player ( WorldSession * session)
explicit

Definition at line 507 of file Player.cpp.

References _activeCheats, _ConquestCurrencytotalWeekCap, _CUFProfiles, _maxPersonalArenaRate, _readyCheckTimer, _researchDigsites, _resurrectionData, _talentMgr, _voidStorageItems, AT_LOGIN_NONE, BASEMOD_END, BATTLEGROUND_QUEUE_NONE, BUYBACK_SLOT_START, CHEAT_NONE, cinematicClientStartTime, cinematicSequence, cinematicVisibilityTimer, CONFIG_INTERVAL_SAVE, DIFFICULTY_10MAN_NORMAL, DIFFICULTY_NORMAL, DISABLED_MIRROR_TIMER, duel, FLAT_MOD, GetSession(), inCinematic, inn_area_box_orientation, inn_area_box_x, inn_area_box_y, inn_area_box_z, inn_area_radius, inn_pos_mapid, inn_pos_x, inn_pos_y, inn_pos_z, isDebugAreaTriggers, m_achievementMgr, m_areaUpdateId, m_ArmorProficiency, m_atLoginFlags, m_auraBaseMod, m_auraRaidUpdateMask, m_baseHealthRegen, m_baseManaRegen, m_baseRatingValue, m_baseSpellPower, m_battlePetMgr, m_bCanDelayTeleport, m_bgBattlegroundQueueID, m_bHasDelayedTeleport, m_bPassOnGroupLoot, m_canBlock, m_canDodge, Unit::m_canDualWield, m_canParry, m_canTitanGrip, m_ChampioningFaction, m_ChampioningType, m_chiPowerDegenTimerCount, m_cinematic, m_comboPoints, m_comboTarget, m_contestedPvPTimer, Unit::m_ControlledByPlayer, m_currentBuybackSlot, m_DailyQuestChanged, m_deathExpireTime, m_deathTimer, m_declinedname, m_DelayedOperations, m_divider, m_drunkTimer, m_dungeonDifficulty, Object::m_dynamicChange, Object::m_dynamicTab, m_ExtraFlags, m_focusRegenTimerCount, m_forced_speed_changes, m_forcedTeleportFar, m_forcedTeleportFarSemaphore, m_grantableLevels, m_groupUpdateMask, m_GuildIdInvited, m_holyPowerRegenTimerCount, m_HomebindTimer, m_InstanceValid, WorldObject::m_isActive, m_IsBGRandomWinner, m_isInWater, m_items, m_itemUpdateQueueBlocked, m_Last_tick, m_lastDailyQuestTime, m_lastFallTime, m_lastFallZ, m_lastHonorUpdateTime, m_lastpetnumber, m_lastPotionId, m_logintime, m_lootGuid, m_mailsLoaded, m_mailsUpdated, m_MirrorTimer, m_MirrorTimerFlags, m_MirrorTimerFlagsLast, m_MonthlyQuestChanged, Unit::m_movedPlayer, m_mover, m_nextMailDelivereTime, m_nextSave, Object::m_objectType, Object::m_objectTypeId, m_oldpetspell, m_powerFraction, m_raidDifficulty, Unit::m_regenTimer, m_regenTimerCount, m_reputationMgr, m_rest_bonus, m_restTime, m_runes, m_SeasonalQuestChanged, m_seer, m_session, m_social, m_speakCount, m_speakTime, m_spellModTakingSpell, m_spellPenetrationItemMod, m_stableSlots, m_summon_expire, m_summon_mapid, m_summon_x, m_summon_y, m_summon_z, m_swingErrorMsg, m_teleport_options, m_temporaryUnsummonedPetNumber, m_trade, Object::m_valuesCount, m_weaponChangeTimer, m_WeaponProficiency, m_WeeklyQuestChanged, m_zoneUpdateId, m_zoneUpdateTimer, MAX_COMBAT_RATING, MAX_CUF_PROFILES, MAX_MOVE_TYPE, MAX_POWERS_PER_CLASS, MAX_TIMERS, mSemaphoreTeleport_Far, mSemaphoreTeleport_Near, PCT_MOD, PLAYER_DYNAMIC_END, PLAYER_END, PLAYER_MAX_BATTLEGROUND_QUEUES, PLAYER_SLOTS_COUNT, PlayerTalkClass, rbac::RBAC_PERM_CAN_FILTER_WHISPERS, rest_type, REST_TYPE_NO, SetAcceptWhispers(), SetGroupInvite(), SetPendingBind(), sWorld, time_inn_enter, TYPEID_PLAYER, TYPEMASK_PLAYER, UNDERWATER_NONE, Unit::Unit(), unReadMails, VOID_STORAGE_MAX_SLOT, and WorldSession.

Referenced by BuildCreateUpdateBlockForPlayer(), CanSeeSpellClickOn(), ConvertInstancesToGroup(), DeleteFromDB(), DestroyForPlayer(), FindEquipSlot(), GetNextRandomRaidMember(), GetSelectedPlayer(), GetsRecruitAFriendBonus(), GetTrader(), GroupEventHappens(), IsAlwaysDetectableFor(), IsGroupVisibleFor(), IsInSameGroupWith(), IsInSameRaidWith(), IsVisibleGloballyFor(), Item::AddToUpdateQueueOf, Item::RemoveFromUpdateQueueOf, RemovedInsignia(), RemovePetitionsAndSigns(), ReportedAfkBy(), RewardHonor(), RewardPlayerAndGroupAtEvent(), Satisfy(), SendActionButtons(), SendInspectResult(), SendLoot(), SendMessageToSet(), SendPushToPartyResponse(), SendQuestConfirmAccept(), SendRespondInspectAchievements(), TradeCancel(), Whisper(), and WhisperAddon().

◆ ~Player()

Member Function Documentation

◆ _ApplyAllItemMods()

◆ _ApplyAllLevelScaleItemMods()

void Player::_ApplyAllLevelScaleItemMods ( bool apply)

◆ _ApplyAllStatBonuses()

void Player::_ApplyAllStatBonuses ( )

◆ _ApplyItemBonuses()

void Player::_ApplyItemBonuses ( ItemTemplate const * proto,
uint8 slot,
bool apply,
bool only_level_scale = false )

Definition at line 8430 of file Player.cpp.

References _ApplyWeaponDamage(), ApplyHealthRegenBonus(), ApplyManaRegenBonus(), ApplyRatingMod(), ApplySpellPenetrationBonus(), ApplySpellPowerBonus(), Unit::ApplyStatBuffMod(), ItemTemplate::ArmorDamageModifier, BASE_ATTACK, BASE_VALUE, Unit::CanUseAttackType(), ItemTemplate::Class, CR_ARMOR_PENETRATION, CR_BLOCK, CR_CRIT_MELEE, CR_CRIT_RANGED, CR_CRIT_SPELL, CR_DEFENSE_SKILL, CR_DODGE, CR_EXPERTISE, CR_HASTE_MELEE, CR_HASTE_RANGED, CR_HASTE_SPELL, CR_HIT_MELEE, CR_HIT_RANGED, CR_HIT_SPELL, CR_MASTERY, CR_PARRY, CR_PVP_POWER, CR_RESILIENCE_PLAYER_DAMAGE_TAKEN, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, ItemTemplate::Flags2, ItemTemplate::GetArmor(), ScalingStatValuesEntry::GetArmor(), Unit::getLevel(), ScalingStatValuesEntry::GetStatMultiplier(), Unit::HandleStatModifier(), INVENTORY_SLOT_BAG_END, ItemTemplate::InventoryType, ItemTemplate::IsRangedInventoryType(), ITEM_CLASS_ARMOR, ITEM_FLAGS_EXTRA_CASTER_WEAPON, ITEM_MOD_AGILITY, ITEM_MOD_ARCANE_RESISTANCE, ITEM_MOD_ARMOR_PENETRATION_RATING, ITEM_MOD_ATTACK_POWER, ITEM_MOD_BLOCK_RATING, ITEM_MOD_CRIT_MELEE_RATING, ITEM_MOD_CRIT_RANGED_RATING, ITEM_MOD_CRIT_RATING, ITEM_MOD_CRIT_SPELL_RATING, ITEM_MOD_CRIT_TAKEN_RANGED_RATING, ITEM_MOD_DEFENSE_SKILL_RATING, ITEM_MOD_DODGE_RATING, ITEM_MOD_EXPERTISE_RATING, ITEM_MOD_FIRE_RESISTANCE, ITEM_MOD_FROST_RESISTANCE, ITEM_MOD_HASTE_MELEE_RATING, ITEM_MOD_HASTE_RANGED_RATING, ITEM_MOD_HASTE_RATING, ITEM_MOD_HASTE_SPELL_RATING, ITEM_MOD_HEALTH, ITEM_MOD_HEALTH_REGEN, ITEM_MOD_HIT_MELEE_RATING, ITEM_MOD_HIT_RANGED_RATING, ITEM_MOD_HIT_RATING, ITEM_MOD_HIT_SPELL_RATING, ITEM_MOD_HOLY_RESISTANCE, ITEM_MOD_INTELLECT, ITEM_MOD_MANA, ITEM_MOD_MANA_REGENERATION, ITEM_MOD_MASTERY_RATING, ITEM_MOD_NATURE_RESISTANCE, ITEM_MOD_PARRY_RATING, ITEM_MOD_PVP_POWER, ITEM_MOD_RANGED_ATTACK_POWER, ITEM_MOD_RESILIENCE_RATING, ITEM_MOD_SHADOW_RESISTANCE, ITEM_MOD_SPELL_PENETRATION, ITEM_MOD_SPELL_POWER, ITEM_MOD_SPIRIT, ITEM_MOD_STAMINA, ITEM_MOD_STRENGTH, ITEM_SUBCLASS_ARMOR_CLOTH, ITEM_SUBCLASS_ARMOR_LEATHER, ITEM_SUBCLASS_ARMOR_MAIL, ITEM_SUBCLASS_ARMOR_PLATE, ITEM_SUBCLASS_ARMOR_SHIELD, ItemTemplate::ItemStat, _ItemStat::ItemStatType, _ItemStat::ItemStatValue, MAX_ITEM_PROTO_STATS, ScalingStatDistributionEntry::MaxLevel, ScalingStatDistributionEntry::Modifier, OFF_ATTACK, RANGED_ATTACK, ItemTemplate::ScalingStatDistribution, ScalingStatValuesEntry::Spellpower, sScalingStatDistributionStore, sScalingStatValuesStore, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, ScalingStatDistributionEntry::StatMod, ItemTemplate::SubClass, TOTAL_VALUE, UNIT_MOD_ARMOR, UNIT_MOD_ATTACK_POWER, UNIT_MOD_ATTACK_POWER_RANGED, UNIT_MOD_HEALTH, UNIT_MOD_MANA, UNIT_MOD_RESISTANCE_ARCANE, UNIT_MOD_RESISTANCE_FIRE, UNIT_MOD_RESISTANCE_FROST, UNIT_MOD_RESISTANCE_HOLY, UNIT_MOD_RESISTANCE_NATURE, UNIT_MOD_RESISTANCE_SHADOW, UNIT_MOD_STAT_AGILITY, UNIT_MOD_STAT_INTELLECT, UNIT_MOD_STAT_SPIRIT, UNIT_MOD_STAT_STAMINA, and UNIT_MOD_STAT_STRENGTH.

Referenced by _ApplyAllItemMods(), _ApplyAllLevelScaleItemMods(), _ApplyItemMods(), and _RemoveAllItemMods().

◆ _ApplyItemMods()

◆ _ApplyWeaponDamage()

◆ _ApplyWeaponDependentAuraCritMod()

◆ _ApplyWeaponDependentAuraDamageMod()

◆ _ApplyWeaponDependentAuraMods()

◆ _GetCurrencyWeekCap()

◆ _LoadActions()

void Player::_LoadActions ( PreparedQueryResult result)
protected

◆ _LoadAuras()

◆ _LoadBGData()

void Player::_LoadBGData ( PreparedQueryResult result)
protected

Definition at line 12098 of file Player.cpp.

References Field::GetUInt16(), Field::GetUInt32(), m_bgData, and WorldLocation::WorldLocation().

Referenced by LoadFromDB().

◆ _LoadBoundInstances()

◆ _LoadCUFProfiles()

◆ _LoadCurrency()

◆ _LoadDailyQuestStatus()

void Player::_LoadDailyQuestStatus ( PreparedQueryResult result)
protected

◆ _LoadDeclinedNames()

void Player::_LoadDeclinedNames ( PreparedQueryResult result)
protected

Definition at line 12056 of file Player.cpp.

References m_declinedname, and MAX_DECLINED_NAME_CASES.

Referenced by LoadFromDB().

◆ _LoadEquipmentSets()

◆ _LoadGlyphAuras()

void Player::_LoadGlyphAuras ( )
protected

◆ _LoadGlyphs()

void Player::_LoadGlyphs ( PreparedQueryResult result)
protected

Definition at line 21661 of file Player.cpp.

References _talentMgr, GetSpecsCount(), Field::GetUInt16(), Field::GetUInt8(), and MAX_GLYPH_SLOT_INDEX.

Referenced by LoadFromDB().

◆ _LoadGroup()

void Player::_LoadGroup ( PreparedQueryResult result)
protected

◆ _LoadHomeBind()

◆ _LoadInstanceTimeRestrictions()

void Player::_LoadInstanceTimeRestrictions ( PreparedQueryResult result)
protected

Definition at line 22448 of file Player.cpp.

References _instanceResetTimes.

Referenced by LoadFromDB().

◆ _LoadInventory()

◆ _LoadItem()

◆ _LoadMail()

◆ _LoadMailedItems()

◆ _LoadMailInit()

void Player::_LoadMailInit ( PreparedQueryResult resultUnread,
PreparedQueryResult resultDelivery )
protected

Definition at line 13434 of file Player.cpp.

References m_nextMailDelivereTime, and unReadMails.

Referenced by LoadFromDB().

◆ _LoadMonthlyQuestStatus()

void Player::_LoadMonthlyQuestStatus ( PreparedQueryResult result)
protected

◆ _LoadQuestObjectiveStatus()

◆ _LoadQuestStatus()

◆ _LoadQuestStatusRewarded()

void Player::_LoadQuestStatusRewarded ( PreparedQueryResult result)
protected

◆ _LoadRandomBGStatus()

void Player::_LoadRandomBGStatus ( PreparedQueryResult result)
protected

Definition at line 22420 of file Player.cpp.

References m_IsBGRandomWinner.

Referenced by LoadFromDB().

◆ _LoadResearchDigsites()

◆ _LoadResearchHistory()

◆ _LoadResearchProjects()

◆ _LoadSeasonalQuestStatus()

void Player::_LoadSeasonalQuestStatus ( PreparedQueryResult result)
protected

◆ _LoadSkills()

◆ _LoadSpellCooldowns()

void Player::_LoadSpellCooldowns ( PreparedQueryResult result)

◆ _LoadSpells()

void Player::_LoadSpells ( PreparedQueryResult result)
protected

◆ _LoadTalents()

void Player::_LoadTalents ( PreparedQueryResult result)
protected

Definition at line 21703 of file Player.cpp.

References AddTalent().

Referenced by LoadFromDB().

◆ _LoadVoidStorage()

◆ _LoadWeeklyQuestStatus()

void Player::_LoadWeeklyQuestStatus ( PreparedQueryResult result)
protected

◆ _RemoveAllItemMods()

◆ _RemoveAllStatBonuses()

void Player::_RemoveAllStatBonuses ( )

◆ _SaveActions()

◆ _SaveAuras()

◆ _SaveBGData()

◆ _SaveCUFProfiles()

◆ _SaveCurrency()

◆ _SaveDailyQuestStatus()

◆ _SaveEquipmentSets()

◆ _SaveGlyphs()

◆ _SaveInstanceTimeRestrictions()

◆ _SaveInventory()

◆ _SaveMail()

◆ _SaveMonthlyQuestStatus()

◆ _SaveQuestObjectiveStatus()

◆ _SaveQuestStatus()

◆ _SaveResearchHistory()

void Player::_SaveResearchHistory ( SQLTransaction & trans)
protected

◆ _SaveResearchProjects()

void Player::_SaveResearchProjects ( SQLTransaction & trans)
protected

◆ _SaveSeasonalQuestStatus()

◆ _SaveSkills()

◆ _SaveSpellCooldowns()

void Player::_SaveSpellCooldowns ( SQLTransaction & trans)

◆ _SaveSpells()

◆ _SaveStats()

◆ _SaveTalents()

◆ _SaveVoidStorage()

◆ _SaveWeeklyQuestStatus()

◆ _StoreItem()

◆ _StoreOrEquipNewItem()

◆ ActivateSpec()

◆ ActivateTaxiPathTo() [1/2]

bool Player::ActivateTaxiPathTo ( std::vector< uint32 > const & nodes,
Creature * npc = NULL,
uint32 spellid = 0 )

Definition at line 16547 of file Player.cpp.

References ACHIEVEMENT_CRITERIA_TYPE_FLIGHT_PATHS_TAKEN, ACHIEVEMENT_CRITERIA_TYPE_GOLD_SPENT_FOR_TRAVELLING, CLASS_DEATH_KNIGHT, Unit::CombatStop(), CONFIG_INSTANT_TAXI, CURRENT_AUTOREPEAT_SPELL, CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, ERR_TAXI_NO_SUCH_PATH, ERR_TAXI_NOT_ENOUGH_MONEY, ERR_TAXI_OK, ERR_TAXI_PLAYER_ALREADY_MOUNTED, ERR_TAXI_PLAYER_BUSY, ERR_TAXI_PLAYER_SHAPESHIFTED, ERR_TAXI_TOO_FAR_AWAY, ERR_TAXI_UNSPECIFIED_SERVER_ERROR, Unit::ExitVehicle(), Unit::getClass(), Unit::GetCurrentSpell(), WorldLocation::GetMapId(), GetMoney(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetReputationPriceDiscount(), GetSession(), GetTeam(), Object::HasFlag(), Unit::HasUnitState(), INTERACTION_DISTANCE, Unit::InterruptSpell(), Unit::IsInCombat(), Unit::IsInDisallowedMountForm(), Unit::IsMounted(), Unit::IsNonMeleeSpellCasted(), m_taxi, TaxiNodesEntry::map_id, ModifyMoney(), Unit::RemoveAurasByType(), WorldSession::SendActivateTaxiReply(), WorldSession::SendDoFlight(), sObjectMgr, SPELL_AURA_MOD_SHAPESHIFT, SPELL_AURA_MOUNTED, sTaxiNodesStore, StopCastingBindSight(), StopCastingCharm(), sWorld, TeleportTo(), TradeCancel(), UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE, UNIT_STATE_ROOT, UNIT_STATE_STUNNED, UpdateAchievementCriteria(), TaxiNodesEntry::x, TaxiNodesEntry::y, and TaxiNodesEntry::z.

Referenced by ActivateTaxiPathTo(), WorldSession::HandleActivateTaxiExpressOpcode(), WorldSession::HandleActivateTaxiOpcode(), Aura::HandleAuraSpecificMods(), OPvPCapturePointNA::HandleCustomSpell(), and LuaTaxiMgr::StartTaxi().

◆ ActivateTaxiPathTo() [2/2]

bool Player::ActivateTaxiPathTo ( uint32 taxi_path_id,
uint32 spellid = 0 )

◆ addActionButton()

◆ AddArmorProficiency()

void Player::AddArmorProficiency ( uint32 newflag)
inline

Definition at line 1669 of file Player.h.

References m_ArmorProficiency.

Referenced by Spell::EffectProficiency().

◆ AddBattlegroundQueueId()

◆ AddBattlegroundQueueJoinTime()

void Player::AddBattlegroundQueueJoinTime ( BattlegroundTypeId bgTypeId,
uint32 joinTime )
inline

◆ AddComboPoints()

◆ AddEnchantmentDuration()

void Player::AddEnchantmentDuration ( Item * item,
EnchantmentSlot slot,
uint32 duration )

◆ AddEnchantmentDurations()

◆ AddInstanceEnterTime()

void Player::AddInstanceEnterTime ( uint32 instanceId,
time_t enterTime )

Definition at line 14230 of file Player.cpp.

References _instanceResetTimes, and HOUR.

Referenced by InstanceMap::AddPlayerToMap().

◆ AddItem()

◆ AddItemDurations()

void Player::AddItemDurations ( Item * item)

◆ AddItemToBuyBackSlot()

◆ AddKnownCurrency()

void Player::AddKnownCurrency ( uint32 itemId)
private

Definition at line 21101 of file Player.cpp.

References sCurrencyTypesStore, and Object::SetFlag64().

◆ AddLootedObject()

void Player::AddLootedObject ( uint64 guid)
inline

Definition at line 2409 of file Player.h.

References m_lootView.

Referenced by SendLoot().

◆ AddMail()

void Player::AddMail ( Mail * mail)
inline

Definition at line 2001 of file Player.h.

References m_mail.

Referenced by MailDraft::SendMailTo().

◆ AddMItem()

void Player::AddMItem ( Item * it)

Definition at line 94 of file PlayerMail.cpp.

References ASSERT, Object::GetGUIDLow(), and mMitems.

Referenced by _LoadMailedItems(), and MailDraft::SendMailTo().

◆ AddNewMailDeliverTime()

void Player::AddNewMailDeliverTime ( time_t deliver_time)

Definition at line 65 of file PlayerMail.cpp.

References m_nextMailDelivereTime, SendNewMail(), and unReadMails.

Referenced by MailDraft::SendMailTo().

◆ AddQuest()

void Player::AddQuest ( Quest const * quest,
Object * questGiver )

Definition at line 479 of file PlayerQuestState.cpp.

References ACHIEVEMENT_TIMED_TYPE_QUEST, AddTimedQuest(), AdjustQuestReqItemCount(), Creature::AI(), CanCompleteQuest(), CompleteQuest(), QuestStatusData::Explored, FindQuestSlot(), Quest::GetLimitTime(), Quest::GetQuestId(), getQuestStatusMap(), GetReputationMgr(), Object::GetTypeId(), WorldObject::GetZoneAndAreaId(), GiveQuestSourceItem(), Quest::HasFlag(), Quest::HasSpecialFlag(), QuestObjective::Id, IN_MILLISECONDS, Quest::m_questObjectives, m_questObjectiveStatus, m_questObjectiveStatusSave, m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, Object::Object(), QuestObjective::ObjectId, pvpInfo, QUEST_FLAGS_FLAGS_PVP, QUEST_OBJECTIVE_TYPE_CURRENCY, QUEST_OBJECTIVE_TYPE_DUMMY, QUEST_OBJECTIVE_TYPE_FACTION_REP, QUEST_OBJECTIVE_TYPE_FACTION_REP2, QUEST_OBJECTIVE_TYPE_MONEY, QUEST_OBJECTIVE_TYPE_SPELL, QUEST_SPECIAL_FLAGS_TIMED, QUEST_STATUS_INCOMPLETE, SetQuestSlot(), ReputationMgr::SetVisible(), sFactionStore, UnitAI::sQuestAccept(), sScriptMgr, StartTimedAchievement(), QuestStatusData::Status, QuestStatusData::Timer, Object::ToCreature(), Object::ToGameObject(), Object::ToPlayer(), QuestObjective::Type, TYPEID_CONTAINER, TYPEID_GAMEOBJECT, TYPEID_ITEM, TYPEID_PLAYER, TYPEID_UNIT, UpdateAreaDependentAuras(), UpdateForQuestWorldObjects(), UpdateObjectVisibility(), UpdatePhasing(), UpdatePvPState(), and UpdateZoneDependentAuras().

Referenced by Spell::EffectQuestStart(), WorldSession::HandlePushQuestToParty(), quest_commandscript::HandleQuestAdd(), and SendPreparedQuest().

◆ AddRefundReference()

void Player::AddRefundReference ( uint32 it)

Definition at line 22149 of file Player.cpp.

References m_refundableItems.

Referenced by _LoadItem(), and _StoreOrEquipNewItem().

◆ AddRuneByAuraEffect()

void Player::AddRuneByAuraEffect ( uint8 index,
RuneType newType,
AuraEffect const * aura )

Definition at line 20547 of file Player.cpp.

References ConvertRune(), and SetRuneConvertAura().

Referenced by AuraEffect::HandleAuraConvertRune().

◆ AddRunePower()

void Player::AddRunePower ( uint8 index)

Definition at line 20605 of file Player.cpp.

References GetSession(), WorldSession::SendPacket(), and SMSG_ADD_RUNE_POWER.

◆ addSpell()

bool Player::addSpell ( uint32 spellId,
bool active,
bool learning,
bool dependent,
bool disabled,
bool loading = false )

Definition at line 3634 of file Player.cpp.

References ABILITY_LEARNED_ON_GET_RACE_OR_CLASS_SKILL, ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILL_LINE, ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILLLINE_SPELLS, ACHIEVEMENT_CRITERIA_TYPE_LEARN_SPELL, PlayerSpell::active, addSpell(), Skyfire::SpellBook::BuildSupercededSpellPacket(), Unit::CastSpell(), DeleteSpellFromAllPlayers(), PlayerSpell::dependent, PlayerSpell::disabled, GetFreePrimaryProfessionPoints(), Unit::GetMaxSkillValueForLevel(), GetPureMaxSkillValue(), GetPureSkillValue(), GetSession(), GetSkillRangeType(), GetSkillStep(), GetTalentSpellCost(), GetUsedTalentCount(), SpellInfo::HasEffect(), HasSkill(), HasSpell(), SkillLineEntry::id, SpellInfo::IsDifferentRankOf(), SpellInfo::IsHighRankOf(), Object::IsInWorld(), IsNeedCastPassiveSpellAtLearn(), SpellInfo::IsPassive(), SpellInfo::IsPrimaryProfessionFirstRank(), SpellInfo::IsRanked(), SpellMgr::IsSpellValid(), SpellInfo::IsStackableWithRanks(), learnSpell(), m_spells, SpellLearnSkillNode::maxvalue, PLAYERSPELL_CHANGED, PLAYERSPELL_NEW, PLAYERSPELL_REMOVED, PLAYERSPELL_TEMPORARY, PLAYERSPELL_UNCHANGED, RemoveTemporarySpell(), WorldSession::SendPacket(), SetFreePrimaryProfessions(), SetSkill(), SetUsedTalentCount(), SF_LOG_ERROR, SpellLearnSkillNode::skill, SKILL_RANGE_LANGUAGE, SKILL_RANGE_LEVEL, SKILL_RANGE_MONO, SKILL_RUNEFORGING, SMSG_REMOVED_SPELL, SPELL_EFFECT_LEARN_SPELL, SPELL_EFFECT_SKILL_STEP, sSkillLineStore, sSpellMgr, PlayerSpell::state, SpellLearnSkillNode::step, UpdateAchievementCriteria(), SpellLearnSkillNode::value, and ByteBuffer::WriteBits().

Referenced by _LoadSpells(), addSpell(), learnDefaultSpells(), learnSkillRewardedSpells(), learnSpell(), AchievementMgr< Guild >::LoadFromDB(), and removeSpell().

◆ AddSpellAndCategoryCooldowns()

◆ AddSpellCooldown()

◆ AddSpellMod()

◆ AddTalent()

◆ AddTemporarySpell()

◆ AddTimedQuest()

void Player::AddTimedQuest ( uint32 questId)
inline

Definition at line 1856 of file Player.h.

References m_timedquests.

Referenced by _LoadQuestStatus(), and AddQuest().

◆ AddToWorld()

void Player::AddToWorld ( )
overridevirtual
  • Do not add/remove the player from the object storage
  • It will crash when updating the ObjectAccessor
  • The player should only be added when logging in

Reimplemented from Object.

Definition at line 2418 of file Player.cpp.

References Unit::AddToWorld(), m_items, PLAYER_SLOT_END, and PLAYER_SLOT_START.

Referenced by Map::AddPlayerToMap().

◆ AddTradeableItem()

void Player::AddTradeableItem ( Item * item)

Definition at line 53 of file PlayerTrade.cpp.

References m_itemSoulboundTradeable.

Referenced by _LoadItem(), MoveItemToInventory(), and StoreNewItem().

◆ AddVoidStorageItem()

◆ AddVoidStorageItemAtSlot()

◆ AddWeaponProficiency()

void Player::AddWeaponProficiency ( uint32 newflag)
inline

Definition at line 1665 of file Player.h.

References m_WeaponProficiency.

Referenced by Spell::EffectProficiency().

◆ AddWhisperWhiteList()

void Player::AddWhisperWhiteList ( uint64 guid)
inline

Definition at line 3148 of file Player.h.

References WhisperList.

Referenced by WorldSession::HandleMessagechatOpcode().

◆ AdjustQuestReqItemCount()

◆ ApplyEnchantment() [1/2]

void Player::ApplyEnchantment ( Item * item,
bool apply )

Definition at line 11158 of file Player.cpp.

References ApplyEnchantment(), ApplyReforgeEnchantment(), and MAX_ENCHANTMENT_SLOT.

◆ ApplyEnchantment() [2/2]

void Player::ApplyEnchantment ( Item * item,
EnchantmentSlot slot,
bool apply,
bool apply_dur = true,
bool ignore_condition = false )

Definition at line 11168 of file Player.cpp.

References AddEnchantmentDuration(), SpellItemEnchantmentEntry::amount, ApplyHealthRegenBonus(), ApplyManaRegenBonus(), ApplyRatingMod(), ApplySpellPenetrationBonus(), ApplySpellPowerBonus(), Unit::ApplyStatBuffMod(), BASE_VALUE, Unit::CastCustomSpell(), Unit::CastSpell(), CLASS_SHAMAN, _Socket::Color, CR_ARMOR_PENETRATION, CR_BLOCK, CR_CRIT_MELEE, CR_CRIT_RANGED, CR_CRIT_SPELL, CR_DEFENSE_SKILL, CR_DODGE, CR_EXPERTISE, CR_HASTE_MELEE, CR_HASTE_RANGED, CR_HASTE_SPELL, CR_HIT_MELEE, CR_HIT_RANGED, CR_HIT_SPELL, CR_MASTERY, CR_PARRY, CR_PVP_POWER, CR_RESILIENCE_PLAYER_DAMAGE_TAKEN, ItemTemplate::Delay, ItemRandomSuffixEntry::enchant_id, SpellItemEnchantmentEntry::EnchantmentCondition, EnchantmentFitsRequirements(), EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, FLAT_MOD, SpellItemEnchantmentEntry::GemID, Unit::getClass(), Item::GetEnchantmentDuration(), Item::GetEnchantmentId(), Object::GetGUID(), Item::GetItemRandomPropertyId(), Item::GetItemSuffixFactor(), Unit::getLevel(), GetSkillValue(), Item::GetSlot(), Item::GetTemplate(), HandleBaseModValue(), Unit::HandleStatModifier(), Item::IsBroken(), Item::IsEquipped(), ITEM_ENCHANTMENT_TYPE_COMBAT_SPELL, ITEM_ENCHANTMENT_TYPE_DAMAGE, ITEM_ENCHANTMENT_TYPE_EQUIP_SPELL, ITEM_ENCHANTMENT_TYPE_NONE, ITEM_ENCHANTMENT_TYPE_PRISMATIC_SOCKET, ITEM_ENCHANTMENT_TYPE_RESISTANCE, ITEM_ENCHANTMENT_TYPE_STAT, ITEM_ENCHANTMENT_TYPE_TOTEM, ITEM_ENCHANTMENT_TYPE_USE_SPELL, ITEM_MOD_AGILITY, ITEM_MOD_ARMOR_PENETRATION_RATING, ITEM_MOD_ATTACK_POWER, ITEM_MOD_BLOCK_RATING, ITEM_MOD_BLOCK_VALUE, ITEM_MOD_CRIT_MELEE_RATING, ITEM_MOD_CRIT_RANGED_RATING, ITEM_MOD_CRIT_RATING, ITEM_MOD_CRIT_SPELL_RATING, ITEM_MOD_DEFENSE_SKILL_RATING, ITEM_MOD_DODGE_RATING, ITEM_MOD_EXPERTISE_RATING, ITEM_MOD_HASTE_RATING, ITEM_MOD_HASTE_SPELL_RATING, ITEM_MOD_HEALTH, ITEM_MOD_HEALTH_REGEN, ITEM_MOD_HIT_MELEE_RATING, ITEM_MOD_HIT_RANGED_RATING, ITEM_MOD_HIT_RATING, ITEM_MOD_HIT_SPELL_RATING, ITEM_MOD_INTELLECT, ITEM_MOD_MANA, ITEM_MOD_MANA_REGENERATION, ITEM_MOD_MASTERY_RATING, ITEM_MOD_PARRY_RATING, ITEM_MOD_PVP_POWER, ITEM_MOD_RANGED_ATTACK_POWER, ITEM_MOD_RESILIENCE_RATING, ITEM_MOD_SPELL_PENETRATION, ITEM_MOD_SPELL_POWER, ITEM_MOD_SPIRIT, ITEM_MOD_STAMINA, ITEM_MOD_STRENGTH, MAX_ENCHANTMENT_SLOT, MAX_ITEM_ENCHANTMENT_EFFECTS, PERM_ENCHANTMENT_SLOT, PLAYER_FIELD_VISIBLE_ITEMS, ItemRandomSuffixEntry::prefix, PRISMATIC_ENCHANTMENT_SLOT, Unit::RemoveAurasDueToItemSpell(), SpellItemEnchantmentEntry::requiredMaxLevel, SpellItemEnchantmentEntry::requiredMinLevel, SpellItemEnchantmentEntry::requiredSkill, SpellItemEnchantmentEntry::requiredSkillValue, Object::SetUInt16Value(), SF_LOG_DEBUG, SF_LOG_ERROR, SHIELD_BLOCK_VALUE, sItemRandomSuffixStore, sObjectMgr, SOCK_ENCHANTMENT_SLOT, SOCK_ENCHANTMENT_SLOT_2, SOCK_ENCHANTMENT_SLOT_3, ItemTemplate::Socket, SpellItemEnchantmentEntry::spellid, sSpellItemEnchantmentStore, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, TEMP_ENCHANTMENT_SLOT, TOTAL_VALUE, SpellItemEnchantmentEntry::type, UNIT_MOD_ATTACK_POWER, UNIT_MOD_ATTACK_POWER_RANGED, UNIT_MOD_DAMAGE_MAINHAND, UNIT_MOD_DAMAGE_OFFHAND, UNIT_MOD_DAMAGE_RANGED, UNIT_MOD_HEALTH, UNIT_MOD_MANA, UNIT_MOD_RESISTANCE_START, UNIT_MOD_STAT_AGILITY, UNIT_MOD_STAT_INTELLECT, UNIT_MOD_STAT_SPIRIT, UNIT_MOD_STAT_STAMINA, and UNIT_MOD_STAT_STRENGTH.

Referenced by _ApplyAllItemMods(), _ApplyItemMods(), _RemoveAllItemMods(), ApplyEnchantment(), LuaItem::ClearEnchantment(), CorrectMetaGemEnchants(), Spell::EffectEnchantHeldItem(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), Spell::EffectEnchantItemTmp(), WorldSession::HandleCancelTempEnchantmentOpcode(), RemoveArenaEnchantments(), LuaItem::SetEnchantment(), SetVirtualItemSlot(), ToggleMetaGemsActive(), UpdateEnchantTime(), and UpdateSkillEnchantments().

◆ ApplyEquipCooldown()

◆ ApplyEquipSpell()

◆ ApplyHealthRegenBonus()

void Player::ApplyHealthRegenBonus ( int32 amount,
bool apply )

Definition at line 729 of file StatSystem.cpp.

References _ModifyUInt32(), and m_baseHealthRegen.

Referenced by _ApplyItemBonuses(), ApplyEnchantment(), and ApplyReforgeEnchantment().

◆ ApplyItemEquipSpell()

void Player::ApplyItemEquipSpell ( Item * item,
bool apply,
bool form_change = false )

◆ ApplyManaRegenBonus()

void Player::ApplyManaRegenBonus ( int32 amount,
bool apply )

◆ ApplyRatingMod()

◆ ApplyReforgeEnchantment()

void Player::ApplyReforgeEnchantment ( Item * item,
bool apply )

Definition at line 10919 of file Player.cpp.

References ApplyHealthRegenBonus(), ApplyManaRegenBonus(), Object::ApplyModInt32Value(), ApplyRatingMod(), ApplySpellPowerBonus(), Unit::ApplyStatBuffMod(), BASE_VALUE, CR_ARMOR_PENETRATION, CR_BLOCK, CR_CRIT_MELEE, CR_CRIT_RANGED, CR_CRIT_SPELL, CR_DEFENSE_SKILL, CR_DODGE, CR_EXPERTISE, CR_HASTE_MELEE, CR_HASTE_RANGED, CR_HASTE_SPELL, CR_HIT_MELEE, CR_HIT_RANGED, CR_HIT_SPELL, CR_MASTERY, CR_PARRY, CR_RESILIENCE_PLAYER_DAMAGE_TAKEN, ItemReforgeEntry::FinalMultiplier, ItemReforgeEntry::FinalStat, FLAT_MOD, Object::GetDynamicUInt32Value(), Item::GetReforgableStat(), HandleBaseModValue(), Unit::HandleStatModifier(), ITEM_DYNAMIC_MODIFIERS, ITEM_MOD_AGILITY, ITEM_MOD_ARMOR_PENETRATION_RATING, ITEM_MOD_ATTACK_POWER, ITEM_MOD_BLOCK_RATING, ITEM_MOD_BLOCK_VALUE, ITEM_MOD_CRIT_MELEE_RATING, ITEM_MOD_CRIT_RANGED_RATING, ITEM_MOD_CRIT_RATING, ITEM_MOD_CRIT_SPELL_RATING, ITEM_MOD_DEFENSE_SKILL_RATING, ITEM_MOD_DODGE_RATING, ITEM_MOD_EXPERTISE_RATING, ITEM_MOD_HASTE_RATING, ITEM_MOD_HASTE_SPELL_RATING, ITEM_MOD_HEALTH, ITEM_MOD_HEALTH_REGEN, ITEM_MOD_HIT_MELEE_RATING, ITEM_MOD_HIT_RANGED_RATING, ITEM_MOD_HIT_RATING, ITEM_MOD_HIT_SPELL_RATING, ITEM_MOD_INTELLECT, ITEM_MOD_MANA, ITEM_MOD_MANA_REGENERATION, ITEM_MOD_MASTERY_RATING, ITEM_MOD_PARRY_RATING, ITEM_MOD_RANGED_ATTACK_POWER, ITEM_MOD_RESILIENCE_RATING, ITEM_MOD_SPELL_PENETRATION, ITEM_MOD_SPELL_POWER, ITEM_MOD_SPIRIT, ITEM_MOD_STAMINA, ITEM_MOD_STRENGTH, m_spellPenetrationItemMod, PLAYER_FIELD_MOD_TARGET_RESISTANCE, SHIELD_BLOCK_VALUE, sItemReforgeStore, ItemReforgeEntry::SourceMultiplier, ItemReforgeEntry::SourceStat, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, TOTAL_VALUE, UNIT_MOD_ATTACK_POWER, UNIT_MOD_ATTACK_POWER_RANGED, UNIT_MOD_HEALTH, UNIT_MOD_MANA, UNIT_MOD_STAT_AGILITY, UNIT_MOD_STAT_INTELLECT, UNIT_MOD_STAT_SPIRIT, UNIT_MOD_STAT_STAMINA, and UNIT_MOD_STAT_STRENGTH.

Referenced by ApplyEnchantment(), and WorldSession::HandleReforgeItemOpcode().

◆ ApplySpellMod()

◆ ApplySpellPenetrationBonus()

void Player::ApplySpellPenetrationBonus ( int32 amount,
bool apply )

◆ ApplySpellPowerBonus()

◆ AreaExploredOrEventHappens()

◆ AutoStoreLoot() [1/2]

void Player::AutoStoreLoot ( uint32 loot_id,
LootStore const & store,
bool broadcast = false )
inline

Definition at line 1594 of file Player.h.

References AutoStoreLoot(), NULL_BAG, and NULL_SLOT.

◆ AutoStoreLoot() [2/2]

◆ AutoUnequipOffhandIfNeed()

◆ BankItem()

Item * Player::BankItem ( ItemPosCountVec const & dest,
Item * pItem,
bool update )

Definition at line 2212 of file PlayerStorage.cpp.

References StoreItem().

Referenced by _LoadInventory(), Spell::EffectSummonChangeItem(), SplitItem(), and SwapItem().

◆ BindToInstance() [1/2]

◆ BindToInstance() [2/2]

◆ BuildCreateUpdateBlockForPlayer()

void Player::BuildCreateUpdateBlockForPlayer ( UpdateData * data,
Player * target ) const
overridevirtual

◆ BuildEnchantmentsInfoData()

◆ BuildEnumData()

◆ BuildPetTalentsInfoData()

◆ BuildPlayerRepop()

◆ BuildPlayerTalentsInfoData()

◆ BuyCurrencyFromVendorSlot()

bool Player::BuyCurrencyFromVendorSlot ( ObjectGuid VendorGUID,
uint32 vendorSlot,
uint32 currency,
uint32 count )

◆ BuyItemFromVendorSlot()

bool Player::BuyItemFromVendorSlot ( uint64 vendorguid,
uint32 vendorslot,
uint32 item,
uint8 count,
uint8 bag,
uint8 slot )

Definition at line 17183 of file Player.cpp.

References _StoreOrEquipNewItem(), ItemTemplate::BuyCount, ItemTemplate::BuyPrice, CalculatePct(), CONFIG_EXPANSION, VendorItemData::Empty(), EQUIP_ERR_CANT_BUY_QUANTITY, EQUIP_ERR_CANT_EQUIP_RANK, EQUIP_ERR_CANT_EQUIP_REPUTATION, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_NOT_ENOUGH_MONEY, EQUIP_ERR_NOT_EQUIPPABLE, EQUIP_ERR_OUT_OF_RANGE, EQUIP_ERR_VENDOR_MISSING_TURNINS, EQUIP_ERR_VENDOR_SOLD_OUT, EQUIP_ERR_WRONG_SLOT, VendorItem::ExtendedCost, Object::GetGUID(), GetGuild(), GetGuildId(), GetGuildLevel(), VendorItemData::GetItem(), VendorItemData::GetItemCount(), GetMaxPersonalArenaRatingRequirement(), WorldObject::GetName(), GetNPCIfCanInteractWith(), GetReputationPriceDiscount(), GetReputationRank(), Unit::GetTotalAuraModifier(), Creature::GetVendorItemCurrentCount(), Creature::GetVendorItems(), GUID_LOPART(), GUILD_NEWS_ITEM_PURCHASED, HasAchieved(), HasCurrency(), HasEnoughMoney(), HasItemCount(), Unit::IsAlive(), IsEquipmentPos(), VendorItem::IsGoldRequired(), IsInventoryPos(), VendorItem::item, ITEM_EXT_COST_CURRENCY_REQ_IS_SEASON_EARNED_1, ITEM_EXT_COST_FLAG_REQUIRE_GUILD, ITEM_QUALITY_EPIC, ItemTemplate::ItemId, ItemTemplate::ItemLevel, MAX_BAG_SIZE, MAX_ITEM_EXT_COST_CURRENCIES, MAX_ITEM_EXT_COST_ITEMS, MAX_MONEY_AMOUNT, VendorItem::maxcount, MinNewsItemLevel, NULL_BAG, NULL_SLOT, ItemTemplate::Quality, ItemExtendedCostEntry::RequiredAchievement, ItemExtendedCostEntry::RequiredArenaSlot, ItemExtendedCostEntry::RequiredCurrency, ItemExtendedCostEntry::RequiredCurrencyCount, ItemExtendedCostEntry::RequiredFactionId, ItemExtendedCostEntry::RequiredFactionStanding, ItemExtendedCostEntry::RequiredGuildLevel, ItemExtendedCostEntry::RequiredItem, ItemExtendedCostEntry::RequiredItemCount, ItemExtendedCostEntry::RequiredPersonalArenaRating, ItemTemplate::RequiredReputationFaction, ItemTemplate::RequiredReputationRank, ItemExtendedCostEntry::RequirementFlags, sCurrencyTypesStore, SendEquipError(), SF_LOG_DEBUG, SF_LOG_ERROR, sItemExtendedCostStore, sObjectMgr, SPELL_AURA_MOD_VENDOR_ITEMS_PRICES, sWorld, and UNIT_NPC_FLAG_VENDOR.

Referenced by WorldSession::HandleBuyItemInSlotOpcode(), and WorldSession::HandleBuyItemOpcode().

◆ CalculateMinMaxDamage()

◆ CalculateReputationGain()

◆ CalculateTalentsPoints()

uint32 Player::CalculateTalentsPoints ( ) const

Definition at line 20794 of file Player.cpp.

References Unit::getLevel().

Referenced by InitTalentForLevel().

◆ CanAddQuest()

◆ CanAlwaysSee()

bool Player::CanAlwaysSee ( WorldObject const * obj) const
overrideprotectedvirtual

◆ CanBankItem()

◆ CanBlock()

bool Player::CanBlock ( ) const
inline

Definition at line 2613 of file Player.h.

References m_canBlock.

Referenced by LuaPlayer::CanBlock(), and UpdateBlockPercentage().

◆ CanCaptureTowerPoint()

bool Player::CanCaptureTowerPoint ( )

◆ CanCompleteQuest()

◆ CanCompleteRepeatableQuest()

bool Player::CanCompleteRepeatableQuest ( Quest const * quest)

◆ CanDodge()

bool Player::CanDodge ( ) const
inline

Definition at line 2609 of file Player.h.

References m_canDodge.

◆ CanEquipItem()

InventoryResult Player::CanEquipItem ( uint8 slot,
uint16 & dest,
Item * pItem,
bool swap,
bool not_loading = true ) const

Definition at line 1265 of file PlayerStorage.cpp.

References ItemTemplate::CanChangeEquipStateInCombat(), Unit::CanDualWield(), CanEquipUniqueItem(), CanStoreItem(), CanTakeMoreSimilarItems(), CanTitanGrip(), CanUnequipItem(), CanUseItem(), ItemTemplate::Class, DEFAULT_MAX_LEVEL, EQUIP_ERR_2HANDED_EQUIPPED, EQUIP_ERR_2HSKILLNOTFOUND, EQUIP_ERR_CANT_SWAP, EQUIP_ERR_CLIENT_LOCKED_OUT, EQUIP_ERR_GENERIC_STUNNED, EQUIP_ERR_INV_FULL, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_LOOT_GONE, EQUIP_ERR_NO_SLOT_AVAILABLE, EQUIP_ERR_NOT_DURING_ARENA_MATCH, EQUIP_ERR_NOT_EQUIPPABLE, EQUIP_ERR_NOT_IN_COMBAT, EQUIP_ERR_NOT_OWNER, EQUIP_ERR_OK, EQUIP_ERR_ONLY_ONE_AMMO, EQUIP_ERR_ONLY_ONE_QUIVER, EQUIPMENT_SLOT_FINGER1, EQUIPMENT_SLOT_FINGER2, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_TRINKET1, EQUIPMENT_SLOT_TRINKET2, FindEquipSlot(), GetBattleground(), Item::GetCount(), Object::GetEntry(), GetItemByPos(), Unit::getLevel(), Item::GetTemplate(), Unit::HasUnitState(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, ItemTemplate::InventoryType, INVTYPE_2HWEAPON, INVTYPE_RELIC, INVTYPE_WEAPON, INVTYPE_WEAPONOFFHAND, Item::IsBindedNotWith(), Unit::IsInCombat(), Unit::IsNonMeleeSpellCasted(), IsTwoHandUsed(), ITEM_CLASS_QUIVER, ITEM_CLASS_WEAPON, ITEM_SUBCLASS_AMMO_POUCH, ITEM_SUBCLASS_WEAPON_POLEARM, Item::m_lootGenerated, m_weaponChangeTimer, ScalingStatDistributionEntry::MaxLevel, NULL_BAG, NULL_SLOT, ItemTemplate::ScalingStatDistribution, SF_LOG_DEBUG, sScalingStatDistributionStore, STATUS_IN_PROGRESS, ItemTemplate::SubClass, and UNIT_STATE_STUNNED.

Referenced by _LoadInventory(), LuaPlayer::CanEquipItem(), CanEquipNewItem(), Create(), Spell::EffectSummonChangeItem(), LuaPlayer::EquipItem(), SplitItem(), and SwapItem().

◆ CanEquipNewItem()

InventoryResult Player::CanEquipNewItem ( uint8 slot,
uint16 & dest,
uint32 item,
bool swap ) const

◆ CanEquipUniqueItem() [1/2]

◆ CanEquipUniqueItem() [2/2]

◆ CanFly()

bool Player::CanFly ( ) const
inlineoverridevirtual

Implements Unit.

Definition at line 3166 of file Player.h.

References WorldObject::m_movementInfo, and MOVEMENTFLAG_CAN_FLY.

Referenced by LuaPlayer::CanFly().

◆ CanInteractWithQuestGiver()

◆ CanJoinConstantChannelInZone()

◆ CanJoinToBattleground()

◆ CanNoReagentCast()

◆ CanParry()

bool Player::CanParry ( ) const
inline

Definition at line 2611 of file Player.h.

References m_canParry.

Referenced by LuaPlayer::CanParry(), and UpdateParryPercentage().

◆ CanReportAfkDueToLimit()

bool Player::CanReportAfkDueToLimit ( )

Definition at line 18026 of file Player.cpp.

References m_bgData.

Referenced by ReportedAfkBy().

◆ CanRewardQuest() [1/2]

◆ CanRewardQuest() [2/2]

◆ CanRollForItemInLFG()

◆ CanSeeSpellClickOn()

bool Player::CanSeeSpellClickOn ( Creature const * creature) const

◆ CanSeeStartQuest()

◆ CanShareQuest()

bool Player::CanShareQuest ( uint32 questId) const

◆ CanSpeak()

bool Player::CanSpeak ( ) const

◆ CanStoreItem() [1/2]

◆ CanStoreItem() [2/2]

◆ CanStoreItem_InBag()

◆ CanStoreItem_InInventorySlots()

InventoryResult Player::CanStoreItem_InInventorySlots ( uint8 slot_begin,
uint8 slot_end,
ItemPosCountVec & dest,
ItemTemplate const * pProto,
uint32 & count,
bool merge,
Item * pSrcItem,
uint8 skip_bag,
uint8 skip_slot ) const
private

◆ CanStoreItem_InSpecificSlot()

◆ CanStoreItems()

◆ CanStoreNewItem()

◆ CanTakeMoreSimilarItems() [1/3]

InventoryResult Player::CanTakeMoreSimilarItems ( Item * pItem) const
inline

◆ CanTakeMoreSimilarItems() [2/3]

InventoryResult Player::CanTakeMoreSimilarItems ( uint32 entry,
uint32 count ) const
inline

Definition at line 1569 of file Player.h.

References CanTakeMoreSimilarItems().

◆ CanTakeMoreSimilarItems() [3/3]

◆ CanTakeQuest()

◆ CanTameExoticPets()

◆ CanTitanGrip()

bool Player::CanTitanGrip ( ) const
inline

◆ CanUnequipItem()

◆ CanUnequipItems()

◆ CanUninviteFromGroup()

◆ CanUseBattlegroundObject()

◆ CanUseItem() [1/2]

◆ CanUseItem() [2/2]

◆ CastItemCombatSpell() [1/2]

◆ CastItemCombatSpell() [2/2]

◆ CastItemUseSpell()

◆ CharmSpellInitialize()

◆ CheckAreaExploreAndOutdoor()

◆ CheckDuelDistance()

◆ CheckInstanceCount()

bool Player::CheckInstanceCount ( uint32 instanceId) const

Definition at line 14223 of file Player.cpp.

References _instanceResetTimes, CONFIG_MAX_INSTANCES_PER_HOUR, and sWorld.

Referenced by MapManager::CanPlayerEnter().

◆ CheckInstanceLoginValid()

bool Player::CheckInstanceLoginValid ( )

◆ CheckLoadedDungeonDifficultyID()

DifficultyID Player::CheckLoadedDungeonDifficultyID ( DifficultyID difficulty)
static

◆ CheckLoadedRaidDifficultyID()

DifficultyID Player::CheckLoadedRaidDifficultyID ( DifficultyID difficulty)
static

◆ CleanupAfterTaxiFlight()

◆ CleanupChannels()

void Player::CleanupChannels ( )

◆ CleanupsBeforeDelete()

void Player::CleanupsBeforeDelete ( bool finalCleanup = true)
overridevirtual

◆ ClearAfkReports()

void Player::ClearAfkReports ( )
inline

Definition at line 2746 of file Player.h.

References m_bgData.

Referenced by Battleground::RemovePlayerAtLeave().

◆ ClearComboPoints()

◆ ClearResurrectRequestData()

void Player::ClearResurrectRequestData ( )
inline

Definition at line 2197 of file Player.h.

References _resurrectionData.

Referenced by WorldSession::HandleResurrectResponseOpcode(), setDeathState(), and ~Player().

◆ ClearWhisperWhiteList()

void Player::ClearWhisperWhiteList ( )
inline

Definition at line 3144 of file Player.h.

References WhisperList.

Referenced by message_commandscript::HandleWhispersCommand().

◆ CompletedAchievement()

void Player::CompletedAchievement ( AchievementEntry const * entry)

◆ CompleteQuest()

◆ ContinueTaxiFlight()

◆ ConvertInstancesToGroup()

void Player::ConvertInstancesToGroup ( Player * player,
Group * group,
bool switchLeader )
static

convert the player's binds to the group

Definition at line 14099 of file Player.cpp.

References Group::BindToInstance(), Group::GetBoundInstance(), m_boundInstances, Player(), and UnbindInstance().

Referenced by Group::ChangeLeader(), and Group::Create().

◆ ConvertRune()

void Player::ConvertRune ( uint8 index,
RuneType newType )

◆ CorrectMetaGemEnchants()

◆ Create()

bool Player::Create ( uint32 guidlow,
CharacterCreateInfo * createInfo )
Todo
need more checks against packet modifications

Definition at line 815 of file Player.cpp.

References Object::_Create(), PlayerInfo::action, addActionButton(), ALLIANCE, ItemTemplate::BuyCount, CanEquipItem(), CanStoreItem(), CharacterCreateInfo::Class, ItemTemplate::Class, CLASS_DEATH_KNIGHT, CONFIG_CURRENCY_START_CONQUEST_POINTS, CONFIG_CURRENCY_START_HONOR_POINTS, CONFIG_CURRENCY_START_JUSTICE_POINTS, CONFIG_GAME_TYPE, CONFIG_START_ALL_EXPLORED, CONFIG_START_ALL_REP, CONFIG_START_GM_LEVEL, CONFIG_START_HEROIC_PLAYER_LEVEL, CONFIG_START_PLAYER_LEVEL, CONFIG_START_PLAYER_MONEY, CURRENCY_TYPE_CONQUEST_POINTS, CURRENCY_TYPE_HONOR_POINTS, CURRENCY_TYPE_JUSTICE_POINTS, EQUIP_ERR_OK, EquipItem(), CharacterCreateInfo::Face, CharacterCreateInfo::FacialHair, CharacterCreateInfo::Gender, GetCharStartOutfitEntry(), Unit::getClass(), GetItemByPos(), Unit::GetMaxPower(), ItemTemplate::GetMaxStackSize(), Unit::getPowerType(), GetReputationMgr(), GetSession(), GetTeam(), CharacterCreateInfo::HairColor, CharacterCreateInfo::HairStyle, HIGHGUID_PLAYER, HORDE, InitDisplayIds(), InitGlyphsForLevel(), InitPrimaryProfessions(), InitRunes(), InitStatsForLevel(), InitTalentForLevel(), InitTaxiNodesForLevel(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, IsValidGender(), PlayerInfo::item, ITEM_CLASS_CONSUMABLE, ITEM_SUBCLASS_FOOD_DRINK, KNOWN_TITLES_SIZE, learnDefaultSpells(), m_items, m_Last_tick, WorldObject::m_name, m_Played_time, m_session, PlayerInfo::mapId, MAX_OUTFIT_ITEMS, CharacterCreateInfo::Name, NULL_BAG, NULL_SLOT, OBJECT_FIELD_DATA, PlayerInfo::orientation, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_EXPLORED_ZONES_SIZE, PLAYER_FIELD_ARENA_FACTION, PLAYER_FIELD_COINAGE, PLAYER_FIELD_EXPLORED_ZONES, PLAYER_FIELD_GUILD_DELETE_DATE, PLAYER_FIELD_GUILD_RANK_ID, PLAYER_FIELD_HAIR_COLOR_ID, PLAYER_FIELD_KNOWN_TITLES, PLAYER_FIELD_LFG_BONUS_FACTION_ID, PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, PLAYER_FIELD_PLAYER_TITLE, PLAYER_FIELD_REST_STATE, PLAYER_FIELD_VIRTUAL_PLAYER_REALM, PLAYER_FIELD_WATCHED_FACTION_INDEX, PLAYER_FIELD_YESTERDAY_HONORABLE_KILLS, PLAYER_SLOTS_COUNT, PlayerInfo::positionX, PlayerInfo::positionY, PlayerInfo::positionZ, POWER_MANA, POWER_RUNES, POWER_RUNIC_POWER, ChrClassesEntry::powerType, CharacterCreateInfo::Race, rbac::RBAC_PERM_USE_START_GM_LEVEL, REALM_TYPE_PVP, REALM_TYPE_RPPVP, Position::Relocate(), RemoveItem(), REST_STATE_NOT_RAF_LINKED, REST_STATE_RAF_LINKED, sChrClassesStore, Object::SetByteFlag(), Object::SetByteValue(), Unit::SetClass(), SetCurrency(), setFactionForRace(), Unit::SetFieldPowerType(), Object::SetFlag(), Object::SetFloatValue(), Unit::SetFullHealth(), Unit::SetGender(), SetGuildLevel(), Object::SetInt32Value(), SetMap(), Unit::SetMaxPower(), SetObjectScale(), Unit::SetPower(), Unit::SetRace(), ReputationMgr::SetReputation(), Object::SetUInt32Value(), Object::SetUInt64Value(), SF_LOG_ERROR, sFactionStore, CharacterCreateInfo::Skin, sMapMgr, sObjectMgr, SPELL_CATEGORY_DRINK, SPELL_CATEGORY_FOOD, _Spell::SpellCategory, ItemTemplate::Spells, StoreItem(), StoreNewItemInBestSlots(), ItemTemplate::SubClass, sWorld, UNIT_BYTE2_FLAG_PVP, UNIT_FIELD_FLAGS, UNIT_FIELD_FLAGS2, UNIT_FIELD_HOVER_HEIGHT, UNIT_FIELD_LEVEL, UNIT_FIELD_SHAPESHIFT_FORM, UNIT_FLAG2_REGENERATE_POWER, UNIT_FLAG_PVP_ATTACKABLE, UpdateMaxHealth(), and UpdateMaxPower().

Referenced by WorldSession::HandleCharCreateCallback().

◆ CreateCorpse()

◆ Customize()

◆ DeleteEquipmentSet()

void Player::DeleteEquipmentSet ( uint64 setGuid)

Definition at line 21566 of file Player.cpp.

References EQUIPMENT_SET_DELETED, EQUIPMENT_SET_NEW, and m_EquipmentSets.

◆ DeleteFromDB()

void Player::DeleteFromDB ( uint64 playerguid,
uint32 accountId,
bool updateRealmChars = true,
bool deleteFinally = false )
static

Deletes a character from the database

The way characters will be deleted is decided based on the config option.

See also
Player::DeleteOldCharacters
Parameters
playerguidthe low-GUID from the player which should be deleted
accountIdthe account id from the player
updateRealmCharswhen this flag is set, the amount of characters on that realm will be updated in the realmlist
deleteFinallyif this flag is set, the config option will be ignored and the character will be permanently removed from the database

Definition at line 4775 of file Player.cpp.

References MailDraft::AddItem(), MailDraft::AddMoney(), CHAR_DEL_CHAR_ACHIEVEMENT_PROGRESS, CHAR_DEL_CHAR_ACHIEVEMENTS, CHAR_DEL_CHAR_ACTION, CHAR_DEL_CHAR_AURA, CHAR_DEL_CHAR_DECLINED_NAME, CHAR_DEL_CHAR_EQUIPMENTSETS, CHAR_DEL_CHAR_GIFT, CHAR_DEL_CHAR_GLYPHS, CHAR_DEL_CHAR_INSTANCE, CHAR_DEL_CHAR_INVENTORY, CHAR_DEL_CHAR_PET_BY_OWNER, CHAR_DEL_CHAR_PET_DECLINEDNAME_BY_OWNER, CHAR_DEL_CHAR_QUESTSTATUS, CHAR_DEL_CHAR_QUESTSTATUS_DAILY, CHAR_DEL_CHAR_QUESTSTATUS_OBJECTIVE_ALL, CHAR_DEL_CHAR_QUESTSTATUS_REWARDED, CHAR_DEL_CHAR_REPUTATION, CHAR_DEL_CHAR_SKILLS, CHAR_DEL_CHAR_SOCIAL_BY_FRIEND, CHAR_DEL_CHAR_SOCIAL_BY_GUID, CHAR_DEL_CHAR_SPELL, CHAR_DEL_CHAR_SPELL_COOLDOWN, CHAR_DEL_CHAR_TALENT, CHAR_DEL_CHARACTER, CHAR_DEL_GUILD_BANK_EVENTLOG_BY_PLAYER, CHAR_DEL_GUILD_EVENTLOG_BY_PLAYER, CHAR_DEL_ITEM_INSTANCE, CHAR_DEL_ITEM_INSTANCE_BY_OWNER, CHAR_DEL_ITEM_INSTANCE_TRANSMOG_BY_OWNER, CHAR_DEL_MAIL, CHAR_DEL_MAIL_BY_ID, CHAR_DEL_MAIL_ITEM_BY_ID, CHAR_DEL_MAIL_ITEMS, CHAR_DEL_PLAYER_ACCOUNT_DATA, CHAR_DEL_PLAYER_BGDATA, CHAR_DEL_PLAYER_GM_TICKETS, CHAR_DEL_PLAYER_HOMEBIND, CHAR_DELETE_REMOVE, CHAR_DELETE_UNLINK, CHAR_SEL_CHAR_COD_ITEM_MAIL, CHAR_SEL_CHAR_PETS, CHAR_SEL_CHAR_SOCIAL, CHAR_SEL_GROUP_MEMBER, CHAR_SEL_MAILITEMS, CHAR_UPD_DELETE_INFO, CharacterDatabase, CLASS_DEATH_KNIGHT, CONFIG_CHARDELETE_HEROIC_MIN_LEVEL, CONFIG_CHARDELETE_METHOD, CONFIG_CHARDELETE_MIN_LEVEL, Pet::DeleteFromDB(), ObjectAccessor::FindPlayer(), FRIEND_REMOVED, Item::FSetState(), Field::GetBool(), GetGuildIdFromDB(), Field::GetString(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt64(), Field::GetUInt8(), GUID_LOPART(), HIGHGUID_PLAYER, ITEM_REMOVED, Item::LoadFromDB(), MAIL_NORMAL, MAKE_NEW_GUID(), NewItemOrBag(), Player(), RemoveFromGroup(), RemovePetitionsAndSigns(), Item::SaveToDB(), MailDraft::SendReturnToSender(), PreparedStatement::setUInt32(), SF_LOG_ERROR, sGroupMgr, sGuildMgr, sObjectAccessor, sObjectMgr, sSocialMgr, and sWorld.

Referenced by AccountMgr::DeleteAccount(), DeleteOldCharacters(), character_commandscript::HandleCharacterDeletedDeleteCommand(), character_commandscript::HandleCharacterEraseCommand(), and WorldSession::HandleCharDeleteOpcode().

◆ DeleteOldCharacters() [1/2]

void Player::DeleteOldCharacters ( )
static

Characters which were kept back in the database after being deleted and are now too old (see config option "CharDelete.KeepDays"), will be completely deleted.

See also
Player::DeleteFromDB

Definition at line 5113 of file Player.cpp.

References CONFIG_CHARDELETE_KEEP_DAYS, DeleteOldCharacters(), and sWorld.

Referenced by DeleteOldCharacters(), character_commandscript::HandleCharacterDeletedOldCommand(), World::SetInitialWorldSettings(), and World::Update().

◆ DeleteOldCharacters() [2/2]

void Player::DeleteOldCharacters ( uint32 keepDays)
static

Characters which were kept back in the database after being deleted and are older than the specified amount of days, will be completely deleted.

See also
Player::DeleteFromDB
Parameters
keepDaysoverrite the config option by another amount of days

Definition at line 5129 of file Player.cpp.

References CHAR_SEL_CHAR_OLD_CHARS, CharacterDatabase, DAY, DeleteFromDB(), PreparedStatement::setUInt32(), SF_LOG_DEBUG, SF_LOG_INFO, and UI64FMTD.

◆ DeleteRefundReference()

void Player::DeleteRefundReference ( uint32 it)

Definition at line 22154 of file Player.cpp.

References m_refundableItems.

Referenced by _SaveInventory(), Item::SetNotRefundable(), and Item::SetState().

◆ DeleteResearchDigsite()

◆ DeleteVoidStorageItem()

◆ DestroyConjuredItems()

◆ DestroyForPlayer()

void Player::DestroyForPlayer ( Player * target,
bool onDeath = false ) const
overridevirtual

◆ DestroyItem()

void Player::DestroyItem ( uint8 bag,
uint8 slot,
bool update )

Definition at line 2343 of file PlayerStorage.cpp.

References _ApplyItemMods(), BASE_ATTACK, CHAR_DEL_GIFT, CharacterDatabase, Item::ClearSoulboundTradeable(), CR_ARMOR_PENETRATION, Object::DestroyForPlayer(), DestroyItem(), EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, GetBagByPos(), Item::GetCount(), Object::GetEntry(), Object::GetGUIDLow(), GetItemByPos(), Item::GetTemplate(), Object::HasFlag(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, Object::IsInWorld(), Item::IsNotEmptyBag(), ITEM_FIELD_CONTAINED_IN, ITEM_FIELD_DYNAMIC_FLAGS, ITEM_FLAG_WRAPPED, ITEM_PROTO_FLAG_OPENABLE, ITEM_REMOVED, ITEM_SPELLTRIGGER_ON_NO_DELAY_USE, Item::ItemContainerDeleteLootMoneyAndLootItemsFromDB(), ItemRemovedQuestCheck(), ItemTemplate::ItemSet, m_items, MAX_BAG_SIZE, MAX_ITEM_PROTO_SPELLS, NULL_SLOT, OFF_ATTACK, PLAYER_FIELD_INV_SLOTS, RecalculateRating(), Unit::RemoveAurasDueToSpell(), RemoveEnchantmentDurations(), Object::RemoveFromWorld(), RemoveItemDependentAurasAndCasts(), RemoveItemDurations(), RemoveItemsSetItem(), RemoveTradeableItem(), Item::SetNotRefundable(), Item::SetSlot(), Item::SetState(), PreparedStatement::setUInt32(), Object::SetUInt64Value(), SetVisibleItemSlot(), SF_LOG_DEBUG, _Spell::SpellId, ItemTemplate::Spells, _Spell::SpellTrigger, and UpdateExpertise().

Referenced by DestroyConjuredItems(), DestroyItem(), DestroyItemCount(), DestroyItemCount(), DestroyZoneLimitedItem(), WorldSession::DoLootRelease(), Spell::EffectDestroyItem(), Spell::EffectSummonChangeItem(), WorldSession::HandleBattlePetLearn(), debug_commandscript::HandleDebugItemExpireCommand(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandleVoidStorageTransfer(), RefundItem(), and Item::UpdateDuration().

◆ DestroyItemCount() [1/2]

◆ DestroyItemCount() [2/2]

◆ DestroyZoneLimitedItem()

◆ DropModCharge()

void Player::DropModCharge ( SpellModifier * mod,
Spell * spell )

◆ DuelComplete()

◆ DurabilityLoss()

◆ DurabilityLossAll()

◆ DurabilityPointLossForEquipSlot()

void Player::DurabilityPointLossForEquipSlot ( EquipmentSlots slot)

◆ DurabilityPointsLoss()

◆ DurabilityPointsLossAll()

◆ DurabilityRepair()

◆ DurabilityRepairAll()

uint32 Player::DurabilityRepairAll ( bool cost,
float discountMod,
bool guildBank )

◆ EnchantmentFitsRequirements()

◆ EnvironmentalDamage()

◆ EquipItem()

Item * Player::EquipItem ( uint16 pos,
Item * pItem,
bool update )

◆ EquipNewItem()

◆ FailQuest()

◆ FindEquipSlot()

◆ FindQuestSlot()

◆ GainSpellComboPoints()

void Player::GainSpellComboPoints ( int8 count)

Definition at line 18476 of file Player.cpp.

References m_comboPoints, and SendComboPoints().

◆ GetAchievementPoints()

uint32 Player::GetAchievementPoints ( ) const

Definition at line 21008 of file Player.cpp.

References m_achievementMgr.

Referenced by Guild::Member::SetStats().

◆ GetActionButton()

ActionButton const * Player::GetActionButton ( uint8 button)

Definition at line 6834 of file Player.cpp.

References ACTIONBUTTON_DELETED, and m_actionButtons.

Referenced by Spell::EffectCastButtons().

◆ GetActionButtons()

ActionButtonList const & Player::GetActionButtons ( ) const
inline

Definition at line 2126 of file Player.h.

References m_actionButtons.

◆ GetActiveSpec()

◆ GetArenaPersonalRating()

uint32 Player::GetArenaPersonalRating ( uint8 ) const
inline

◆ GetArmorProficiency()

uint32 Player::GetArmorProficiency ( ) const
inline

Definition at line 1677 of file Player.h.

References m_ArmorProficiency.

Referenced by Spell::EffectProficiency().

◆ GetAttackBySlot()

◆ GetAuraUpdateMaskForRaid()

uint64 Player::GetAuraUpdateMaskForRaid ( ) const
inline

Definition at line 2997 of file Player.h.

References m_auraRaidUpdateMask.

◆ GetAverageItemLevel()

◆ GetBagByPos()

◆ GetBankBagSlotCount()

uint8 Player::GetBankBagSlotCount ( ) const
inline

◆ GetBarberShopCost()

uint32 Player::GetBarberShopCost ( uint8 newhairstyle,
uint8 newhaircolor,
uint8 newfacialhair,
BarberShopStyleEntry const * newSkin = NULL )

◆ GetBaseModValue()

float Player::GetBaseModValue ( BaseModGroup modGroup,
BaseModType modType ) const

Definition at line 5792 of file Player.cpp.

References BASEMOD_END, m_auraBaseMod, MOD_END, PCT_MOD, and SF_LOG_ERROR.

◆ GetBaseRune()

RuneType Player::GetBaseRune ( uint8 index) const
inline

◆ GetBaseSkillValue()

◆ GetBaseSpellPowerBonus()

uint32 Player::GetBaseSpellPowerBonus ( ) const
inline

Returns base spellpower bonus from spellpower stat on items, without spellpower from intellect stat.

Definition at line 2364 of file Player.h.

References m_baseSpellPower.

Referenced by _SaveStats(), Unit::SpellBaseDamageBonusDone(), and Unit::SpellBaseHealingBonusDone().

◆ GetBattleground()

◆ GetBattlegroundEntryPoint()

WorldLocation const & Player::GetBattlegroundEntryPoint ( ) const
inline

Definition at line 2733 of file Player.h.

References m_bgData, and WorldLocation::WorldLocation().

Referenced by LoadFromDB().

◆ GetBattlegroundId()

◆ GetBattlegroundQueueIndex()

◆ GetBattlegroundQueueJoinTime()

◆ GetBattlegroundQueueTypeId()

BattlegroundQueueTypeId Player::GetBattlegroundQueueTypeId ( uint32 index) const

Definition at line 19228 of file Player.cpp.

References m_bgBattlegroundQueueID.

◆ GetBattlegroundTypeId()

BattlegroundTypeId Player::GetBattlegroundTypeId ( ) const
inline

◆ GetBattlePetMgr()

◆ GetBGAccessByLevel()

bool Player::GetBGAccessByLevel ( BattlegroundTypeId bgTypeId) const

◆ GetBGTeam()

◆ GetBlockPercent()

uint32 Player::GetBlockPercent ( ) const
inlineoverridevirtual

Reimplemented from Unit.

Definition at line 2608 of file Player.h.

References Object::GetUInt32Value(), and PLAYER_FIELD_SHIELD_BLOCK.

◆ GetBoundInstance()

◆ GetBoundInstances()

◆ GetChampioningFaction()

uint32 Player::GetChampioningFaction ( ) const
inline

Definition at line 3122 of file Player.h.

References m_ChampioningFaction.

Referenced by LuaPlayer::GetChampioningFaction(), and RewardReputation().

◆ GetChampioningType()

uint32 Player::GetChampioningType ( ) const
inline

Definition at line 3130 of file Player.h.

References m_ChampioningType.

Referenced by RewardReputation().

◆ GetChatTag()

◆ getCinematic()

uint8 Player::getCinematic ( ) const
inline

Definition at line 2217 of file Player.h.

References m_cinematic.

Referenced by WorldSession::HandlePlayerLogin().

◆ GetCinematicPosition()

bool Player::GetCinematicPosition ( float & x,
float & y,
float & z ) const

◆ GetCollisionHeight()

float Player::GetCollisionHeight ( bool mounted) const

◆ GetComboPoints()

int8 Player::GetComboPoints ( ) const
inline

Definition at line 1982 of file Player.h.

References m_comboPoints.

Referenced by AddComboPoints(), SpellEffectInfo::CalcValue(), and LuaPlayer::GetComboPoints().

◆ GetComboTarget()

◆ GetCommandStatus()

bool Player::GetCommandStatus ( uint32 command) const
inline

◆ GetCoordsMapAreaAndZoneString()

std::string Player::GetCoordsMapAreaAndZoneString ( )

Definition at line 22655 of file Player.cpp.

References GetMapAreaAndZoneString(), and Position::ToString().

◆ GetCorpse()

◆ GetCorpseReclaimDelay()

uint32 Player::GetCorpseReclaimDelay ( bool pvp) const

◆ GetCUFProfile()

CUFProfile * Player::GetCUFProfile ( uint8 id) const
inline

Replaces a CUF profile at position 0-4

Definition at line 1869 of file Player.h.

References _CUFProfiles.

Referenced by WorldSession::SendLoadCUFProfiles().

◆ GetCUFProfilesCount()

uint8 Player::GetCUFProfilesCount ( ) const
inline

Retrieves a CUF profile at position 0-4

Definition at line 1873 of file Player.h.

References _CUFProfiles, and MAX_CUF_PROFILES.

Referenced by WorldSession::SendLoadCUFProfiles().

◆ GetCurrency()

uint32 Player::GetCurrency ( uint32 id,
bool usePrecision ) const

◆ GetCurrencyOnWeek()

uint32 Player::GetCurrencyOnWeek ( uint32 id,
bool usePrecision ) const

return count of currency gaind on current week

Definition at line 7660 of file Player.cpp.

References _currencyStorage, CURRENCY_FLAG_HIGH_PRECISION, CURRENCY_PRECISION, CurrencyTypesEntry::Flags, and sCurrencyTypesStore.

Referenced by SendPvpRewards().

◆ GetCurrencyTotalCap()

◆ GetCurrencyWeekCap() [1/2]

◆ GetCurrencyWeekCap() [2/2]

uint32 Player::GetCurrencyWeekCap ( uint32 id,
bool usePrecision ) const

◆ GetCurrentResearchDigsite()

◆ GetCurrentRune()

RuneType Player::GetCurrentRune ( uint8 index) const
inline

◆ GetDeathTimer()

uint32 Player::GetDeathTimer ( ) const
inline

Definition at line 2600 of file Player.h.

References m_deathTimer.

◆ GetDeclinedNames()

DeclinedName const * Player::GetDeclinedNames ( ) const
inline

Definition at line 3049 of file Player.h.

References m_declinedname.

Referenced by WorldSession::SendNameQueryOpcode().

◆ GetDefaultGossipMenuForSource()

◆ GetDifficulty()

◆ GetDivider()

uint64 Player::GetDivider ( ) const
inline

Definition at line 1838 of file Player.h.

References m_divider.

Referenced by WorldSession::HandlePushQuestToParty().

◆ GetDodgeFromAgility()

◆ GetDrunkenstateByValue()

DrunkenState Player::GetDrunkenstateByValue ( uint8 value)
static

◆ GetDrunkValue()

◆ GetDungeonDifficulty()

◆ GetExpertiseDodgeOrParryReduction()

float Player::GetExpertiseDodgeOrParryReduction ( WeaponAttackType attType) const

◆ GetFloatValueFromArray()

float Player::GetFloatValueFromArray ( Tokenizer const & data,
uint16 index )
static

Definition at line 12166 of file Player.cpp.

References GetUInt32ValueFromArray().

◆ GetFreePrimaryProfessionPoints()

uint32 Player::GetFreePrimaryProfessionPoints ( ) const
inline

Definition at line 2131 of file Player.h.

References Object::GetUInt32Value(), and PLAYER_FIELD_CHARACTER_POINTS.

Referenced by addSpell(), GetTrainerSpellState(), and removeSpell().

◆ GetGameObjectIfCanInteractWith()

GameObject * Player::GetGameObjectIfCanInteractWith ( uint64 guid,
GameobjectTypes type ) const

◆ GetGlobalCooldownMgr()

GlobalCooldownMgr & Player::GetGlobalCooldownMgr ( )
inline

Definition at line 2180 of file Player.h.

References m_GlobalCooldownMgr.

Referenced by EquipItem().

◆ GetGlyph()

◆ GetGlyphSlot()

uint32 Player::GetGlyphSlot ( uint8 slot) const
inline

Definition at line 2108 of file Player.h.

References Object::GetUInt32Value(), and PLAYER_FIELD_GLYPH_SLOTS.

Referenced by _LoadGlyphAuras(), and Spell::EffectApplyGlyph().

◆ GetGossipTextId() [1/2]

◆ GetGossipTextId() [2/2]

uint32 Player::GetGossipTextId ( WorldObject * source)

◆ GetGrantableLevels()

uint8 Player::GetGrantableLevels ( ) const
inline

Definition at line 2546 of file Player.h.

References m_grantableLevels.

Referenced by WorldSession::HandleAcceptGrantLevel().

◆ GetGroup() [1/2]

Group * Player::GetGroup ( )
inline

Definition at line 2972 of file Player.h.

References m_group.

Referenced by _LoadBoundInstances(), Group::AddInvite(), AchievementMgr< T >::AdditionalRequirementsSatisfied(), Group::AddMember(), Battlefield::AddOrSetPlayerToCorrectBfGroup(), InstanceMap::AddPlayerToMap(), Group::BroadcastAddonMessagePacket(), Group::BroadcastPacket(), ChatHandler::BuildChatPacket(), InstanceMap::CanEnter(), MapManager::CanPlayerEnter(), CanRollForItemInLFG(), CanUninviteFromGroup(), npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::CheckEventFail(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::CheckEventFail(), CheckInstanceLoginValid(), AchievementMgr< Guild >::CompletedAchievement(), MapInstanced::CreateInstanceForPlayer(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DamageTaken(), Group::Disband(), WorldSession::DoLootRelease(), SmartAI::EndPath(), Loot::FillLoot(), Loot::FillNonQuestNonFFAConditionalLoot(), Loot::FillQuestLoot(), LuaPlayer::GetGroup(), GetInstanceSave(), GetNextRandomRaidMember(), Unit::GetNextRandomRaidMemberOrPet(), Unit::GetPartyMembers(), ChatHandler::GetPlayerGroupAndGUIDByName(), GetsRecruitAFriendBonus(), GroupEventHappens(), WorldSession::HandleAddonMessagechatOpcode(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), debug_commandscript::HandleDebugLfgGroupCommand(), Unit::HandleDummyAuraProc(), WorldSession::HandleGrantLevel(), WorldSession::HandleGroupAssistantLeaderOpcode(), WorldSession::HandleGroupChangeSubGroupOpcode(), WorldSession::HandleGroupDisbandOpcode(), WorldSession::HandleGroupEveryoneIsAssistantOpcode(), WorldSession::HandleGroupInviteOpcode(), group_commandscript::HandleGroupJoinCommand(), group_commandscript::HandleGroupListCommand(), WorldSession::HandleGroupRaidConvertOpcode(), WorldSession::HandleGroupSetLeaderOpcode(), WorldSession::HandleGroupSetRolesOpcode(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleGroupUninviteGuidOpcode(), Guild::HandleGuildPartyRequest(), instance_commandscript::HandleInstanceListBindsCommand(), OutdoorPvP::HandleKill(), lfg_commandscript::HandleLfgGroupInfoCommand(), WorldSession::HandleLfgLeaveOpcode(), WorldSession::HandleLfgSetRolesOpcode(), WorldSession::HandleLootMethodOpcode(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleLootRoll(), WorldSession::HandleMessagechatOpcode(), WorldSession::HandleMinimapPingOpcode(), Battlefield::HandlePlayerLeaveZone(), WorldSession::HandlePlayerLogin(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleRaidReadyCheckConfirmOpcode(), WorldSession::HandleRaidReadyCheckOpcode(), WorldSession::HandleRaidTargetUpdateOpcode(), WorldSession::HandleRandomRollOpcode(), WorldSession::HandleSetPartyAssignmentOpcode(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleGroupCommand(), HasQuestForGO(), HasQuestForItem(), isAllowedToLoot(), SmartAI::IsEscortInvokerInRange(), LuaPlayer::IsInGroup(), IsInSameGroupWith(), IsInSameRaidWith(), GameObject::IsLootAllowedFor(), Creature::isTappedBy(), Channel::JoinChannel(), lfg::LFGMgr::JoinLfg(), boss_headless_horseman::boss_headless_horsemanAI::JustDied(), Unit::Kill(), KillCreditGO(), KilledMonsterCredit(), KilledPlayerCredit(), Pet::LoadPetFromDB(), lfg::LFGMgr::MakeNewGroup(), lfg::LFGPlayerScript::OnLogin(), lfg::LFGPlayerScript::OnLogout(), lfg::LFGPlayerScript::OnMapChanged(), InstanceMap::PermBindAllPlayers(), ProcessDelayedOperations(), ReadyCheckComplete(), LuaPlayer::RemoveFromGroup(), RemoveFromGroup(), RemovePet(), Group::ResetInstances(), RewardPlayerAndGroupAtEvent(), Group::SameSubGroup(), Satisfy(), SendInitialPacketsBeforeAddToMap(), WorldSession::SendLfgPartyLockInfo(), WorldSession::SendLfgPlayerLockInfo(), SendLoot(), SendNewItem(), LuaPlayer::SendPacketToGroup(), WorldSession::SendRolePollInform(), SendUpdateToOutOfRangeGroupMembers(), Group::SendUpdateToPlayer(), SetBattlegroundOrBattlefieldRaid(), Unit::SetHealth(), Creature::SetLootRecipient(), GameObject::SetLootRecipient(), Unit::SetMaxHealth(), Unit::SetMaxPower(), Unit::SetPower(), Unit::setPowerType(), lfg::LFGMgr::TeleportPlayer(), Unit::UpdateAuraForGroup(), UpdatePosition(), and UpdateZone().

◆ GetGroup() [2/2]

const Group * Player::GetGroup ( ) const
inline

Definition at line 2976 of file Player.h.

References m_group.

◆ GetGroupInvite()

◆ GetGroupRef()

GroupReference & Player::GetGroupRef ( )
inline

Definition at line 2980 of file Player.h.

References m_group.

◆ GetGroupUpdateFlag()

uint32 Player::GetGroupUpdateFlag ( ) const
inline

Definition at line 2989 of file Player.h.

References m_groupUpdateMask.

Referenced by WorldSession::BuildPartyMemberStatsChangedPacket().

◆ GetGuild()

◆ GetGuildId()

◆ GetGuildIdFromDB()

◆ GetGuildIdInvited()

int Player::GetGuildIdInvited ( ) const
inline

Definition at line 2298 of file Player.h.

References m_GuildIdInvited.

Referenced by Guild::HandleInviteMember(), and WorldSession::HandleOfferPetitionOpcode().

◆ GetGuildLevel()

uint32 Player::GetGuildLevel ( ) const
inline

◆ GetGuildName()

std::string Player::GetGuildName ( )

Definition at line 21986 of file Player.cpp.

References GetGuildId(), and sGuildMgr.

Referenced by Guild::HandleInviteMember().

◆ GetHealthBonusFromStamina()

float Player::GetHealthBonusFromStamina ( )

◆ GetInGameTime()

uint32 Player::GetInGameTime ( ) const
inline

Definition at line 1847 of file Player.h.

References m_ingametime.

Referenced by LuaPlayer::GetInGameTime().

◆ GetInnAreaBoxOrientation()

float Player::GetInnAreaBoxOrientation ( ) const
inline

Definition at line 1481 of file Player.h.

References inn_area_box_orientation.

Referenced by debug_commandscript::BuildInnAreaBounds().

◆ GetInnAreaBoxX()

float Player::GetInnAreaBoxX ( ) const
inline

Definition at line 1469 of file Player.h.

References inn_area_box_x.

Referenced by debug_commandscript::BuildInnAreaBounds().

◆ GetInnAreaBoxY()

float Player::GetInnAreaBoxY ( ) const
inline

Definition at line 1473 of file Player.h.

References inn_area_box_y.

Referenced by debug_commandscript::BuildInnAreaBounds().

◆ GetInnAreaBoxZ()

float Player::GetInnAreaBoxZ ( ) const
inline

Definition at line 1477 of file Player.h.

References inn_area_box_z.

Referenced by debug_commandscript::BuildInnAreaBounds().

◆ GetInnAreaRadius()

float Player::GetInnAreaRadius ( ) const
inline

Definition at line 1465 of file Player.h.

References inn_area_radius.

Referenced by debug_commandscript::BuildInnAreaBounds().

◆ GetInnPosMapId()

uint32 Player::GetInnPosMapId ( ) const
inline

Definition at line 1449 of file Player.h.

References inn_pos_mapid.

Referenced by debug_commandscript::BuildInnAreaBounds().

◆ GetInnPosX()

float Player::GetInnPosX ( ) const
inline

Definition at line 1453 of file Player.h.

References inn_pos_x.

Referenced by debug_commandscript::BuildInnAreaBounds().

◆ GetInnPosY()

float Player::GetInnPosY ( ) const
inline

Definition at line 1457 of file Player.h.

References inn_pos_y.

Referenced by debug_commandscript::BuildInnAreaBounds().

◆ GetInnPosZ()

float Player::GetInnPosZ ( ) const
inline

Definition at line 1461 of file Player.h.

References inn_pos_z.

Referenced by debug_commandscript::BuildInnAreaBounds().

◆ GetInstanceSave()

InstanceSave * Player::GetInstanceSave ( uint32 mapid)

◆ GetItemByEntry()

◆ GetItemByGuid()

◆ GetItemByPos() [1/2]

Item * Player::GetItemByPos ( uint16 pos) const

Definition at line 124 of file PlayerStorage.cpp.

References GetItemByPos().

Referenced by _SaveInventory(), _StoreItem(), AutoUnequipOffhandIfNeed(), BuildEnchantmentsInfoData(), CanEquipItem(), CanStoreItem_InBag(), CanStoreItem_InInventorySlots(), CanStoreItem_InSpecificSlot(), CanStoreItems(), CanUnequipItem(), CanUnequipItems(), CastItemCombatSpell(), CorrectMetaGemEnchants(), Create(), DestroyConjuredItems(), DestroyItem(), DestroyItemCount(), DestroyZoneLimitedItem(), DurabilityLossAll(), DurabilityPointLossForEquipSlot(), DurabilityPointsLossAll(), DurabilityRepair(), Spell::EffectEnchantHeldItem(), EnchantmentFitsRequirements(), EquipItem(), EquippedOk(), FindEquipSlot(), GetBagByPos(), LuaPlayer::GetEquippedItemBySlot(), GetItemByEntry(), GetItemByGuid(), LuaPlayer::GetItemByPos(), GetItemByPos(), GetItemCount(), GetItemCountWithLimitCategory(), GetShield(), GetUseableItemByPos(), GetWeaponForAttack(), misc_commandscript::HandleAddItemCommand(), spell_rog_deadly_poison::spell_rog_deadly_poison_SpellScript::HandleAfterHit(), AuraEffect::HandleAuraModDisarm(), AuraEffect::HandleAuraModShapeshift(), WorldSession::HandleCancelTempEnchantmentOpcode(), debug_commandscript::HandleDebugGetItemStateCommand(), WorldSession::HandleMirrorImageDataRequest(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandleReforgeItemOpcode(), WorldSession::HandleTransmogrifyItems(), WorldSession::HandleVoidStorageTransfer(), HasItemCount(), HasItemOrGemWithIdEquipped(), HasItemOrGemWithLimitCategoryEquipped(), IsTwoHandUsed(), MoveItemFromInventory(), spell_monk_grapple_weapon::spell_monk_grapple_weapon_SpellScript::PrepareSpellScript(), RemoveArenaEnchantments(), RemoveItem(), SaveToDB(), SendInspectResult(), SplitItem(), SwapItem(), and ToggleMetaGemsActive().

◆ GetItemByPos() [2/2]

Item * Player::GetItemByPos ( uint8 bag,
uint8 slot ) const

Definition at line 131 of file PlayerStorage.cpp.

References BANK_SLOT_BAG_END, GetBagByPos(), INVENTORY_SLOT_BAG_0, and m_items.

◆ GetItemCount()

◆ GetItemCountWithLimitCategory()

◆ GetItemFromBuyBackSlot()

Item * Player::GetItemFromBuyBackSlot ( uint32 slot)

Definition at line 3232 of file PlayerStorage.cpp.

References BUYBACK_SLOT_END, BUYBACK_SLOT_START, m_items, and SF_LOG_DEBUG.

◆ GetItemUpdateQueue()

std::vector< Item * > & Player::GetItemUpdateQueue ( )
inline

Definition at line 1527 of file Player.h.

References m_itemUpdateQueue.

Referenced by debug_commandscript::HandleDebugGetItemStateCommand().

◆ GetLastGuildInviterGUID()

uint64 Player::GetLastGuildInviterGUID ( ) const
inline

Definition at line 2300 of file Player.h.

References m_lastGuildInviterGUID.

◆ GetLastPetNumber()

uint32 Player::GetLastPetNumber ( ) const
inline

◆ GetLastUsedRune()

RuneType Player::GetLastUsedRune ( )
inline

Definition at line 3075 of file Player.h.

References m_runes.

Referenced by Unit::HandleAuraProc().

◆ GetLevelFromDB()

◆ GetLevelPlayedTime()

uint32 Player::GetLevelPlayedTime ( ) const
inline

Definition at line 1425 of file Player.h.

References m_Played_time, and PLAYED_TIME_LEVEL.

Referenced by LuaPlayer::GetLevelPlayedTime().

◆ GetLootGUID()

uint64 Player::GetLootGUID ( ) const
inline

◆ GetLootSpecialization()

uint32 Player::GetLootSpecialization ( ) const
inline

Definition at line 1607 of file Player.h.

References Object::GetUInt32Value(), and PLAYER_FIELD_LOOT_SPEC_ID.

Referenced by SetLootSpecialization().

◆ GetLootSpecOrClassSpec()

uint32 Player::GetLootSpecOrClassSpec ( ) const

◆ GetLootView()

std::set< uint64 > const & Player::GetLootView ( ) const
inline

◆ GetMail()

Mail * Player::GetMail ( uint32 id)

Definition at line 79 of file PlayerMail.cpp.

References m_mail.

◆ GetMailBegin()

PlayerMails::iterator Player::GetMailBegin ( )
inline

Definition at line 2011 of file Player.h.

References m_mail.

Referenced by WorldSession::HandleGetMailList().

◆ GetMailEnd()

PlayerMails::iterator Player::GetMailEnd ( )
inline

Definition at line 2015 of file Player.h.

References m_mail.

Referenced by WorldSession::HandleGetMailList().

◆ GetMailSize()

uint32 Player::GetMailSize ( )
inline

Definition at line 2005 of file Player.h.

References m_mail.

Referenced by WorldSession::HandleSendMail().

◆ GetManaSpecializationMultiplier()

float Player::GetManaSpecializationMultiplier ( )

◆ GetMapAreaAndZoneString()

◆ GetMapRef()

MapReference & Player::GetMapRef ( )
inline

Definition at line 3038 of file Player.h.

References m_mapRef.

Referenced by BattlegroundMap::CanEnter(), InstanceMap::CanEnter(), ResetMap(), and Map::UpdateIteratorBack().

◆ GetMaxPersonalArenaRatingRequirement()

uint32 Player::GetMaxPersonalArenaRatingRequirement ( uint32 minarenaslot) const

Definition at line 17387 of file Player.cpp.

References GetArenaPersonalRating(), and MAX_ARENA_SLOT.

Referenced by BuyCurrencyFromVendorSlot(), and BuyItemFromVendorSlot().

◆ GetMaxSkillValue()

◆ getMaxTimer()

◆ GetMeleeCritFromAgility()

◆ GetMItem()

Item * Player::GetMItem ( uint32 id)

◆ GetMoney()

◆ GetNextQuest()

◆ GetNextRandomRaidMember()

◆ GetNextResetSpecializationCost()

uint32 Player::GetNextResetSpecializationCost ( ) const

Definition at line 4431 of file Player.cpp.

References GetSpecializationResetCost(), GetSpecializationResetTime(), GOLD, MONTH, and sWorld.

Referenced by SendTalentWipeConfirm().

◆ GetNextResetTalentsCost()

uint32 Player::GetNextResetTalentsCost ( ) const

Definition at line 4464 of file Player.cpp.

References GetTalentResetCost(), GetTalentResetTime(), GOLD, MONTH, and sWorld.

Referenced by ResetTalents(), and SendTalentWipeConfirm().

◆ GetNextVoidStorageFreeSlot()

uint8 Player::GetNextVoidStorageFreeSlot ( ) const

Definition at line 22488 of file Player.cpp.

References _voidStorageItems, and VOID_STORAGE_MAX_SLOT.

Referenced by AddVoidStorageItem().

◆ GetNPCIfCanInteractWith()

Creature * Player::GetNPCIfCanInteractWith ( uint64 guid,
uint32 npcflagmask )

Definition at line 2836 of file Player.cpp.

References CREATURE_TYPEFLAGS_DEAD_INTERACT, CREATURE_TYPEFLAGS_GHOST, Unit::GetCharmerGUID(), ObjectAccessor::GetCreatureOrPetOrVehicle(), Creature::GetCreatureTemplate(), Unit::getFaction(), GetRank(), GetReputationMgr(), Object::HasFlag(), INTERACTION_DISTANCE, Unit::IsAlive(), Unit::IsHostileTo(), Unit::IsInFlight(), Object::IsInWorld(), WorldObject::IsWithinDistInMap(), REP_UNFRIENDLY, sFactionStore, sFactionTemplateStore, CreatureTemplate::type_flags, and UNIT_FIELD_NPC_FLAGS.

Referenced by BuyCurrencyFromVendorSlot(), BuyItemFromVendorSlot(), CanInteractWithQuestGiver(), WorldSession::HandleActivateTaxiExpressOpcode(), WorldSession::HandleActivateTaxiOpcode(), WorldSession::HandleAuctionHelloOpcode(), WorldSession::HandleAuctionListBidderItems(), WorldSession::HandleAuctionListItems(), WorldSession::HandleAuctionListOwnerItems(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleBankerActivateOpcode(), WorldSession::HandleBinderActivateOpcode(), WorldSession::HandleBuybackItem(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleGossipSelectOptionOpcode(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandlePetitionShowListOpcode(), WorldSession::HandleQuestgiverHelloOpcode(), WorldSession::HandleReforgeItemOpcode(), WorldSession::HandleRepairItemOpcode(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSpiritHealerActivateOpcode(), WorldSession::HandleTaxiQueryAvailableNodes(), WorldSession::HandleTrainerBuySpellOpcode(), WorldSession::HandleTransmogrifyItems(), WorldSession::HandleVoidStorageQuery(), WorldSession::HandleVoidStorageTransfer(), WorldSession::HandleVoidStorageUnlock(), WorldSession::HandleVoidSwapItem(), WorldSession::SendListInventory(), WorldSession::SendPetitionShowList(), and WorldSession::SendTrainerList().

◆ GetNumOfVoidStorageFreeSlots()

uint8 Player::GetNumOfVoidStorageFreeSlots ( ) const

Definition at line 22497 of file Player.cpp.

References _voidStorageItems, and VOID_STORAGE_MAX_SLOT.

Referenced by WorldSession::HandleVoidStorageTransfer().

◆ GetOriginalGroup()

◆ GetOriginalGroupRef()

GroupReference & Player::GetOriginalGroupRef ( )
inline

Definition at line 3019 of file Player.h.

References m_originalGroup.

◆ GetOriginalSubGroup()

uint8 Player::GetOriginalSubGroup ( ) const
inline

◆ GetOutdoorPvP()

OutdoorPvP * Player::GetOutdoorPvP ( ) const

Definition at line 19552 of file Player.cpp.

References WorldObject::GetZoneId(), and sOutdoorPvPMgr.

Referenced by WorldSession::HandleAreaTriggerOpcode(), and Unit::Kill().

◆ GetPassOnGroupLoot()

bool Player::GetPassOnGroupLoot ( ) const
inline

Definition at line 3033 of file Player.h.

References m_bPassOnGroupLoot.

Referenced by Group::GroupLoot(), and Group::NeedBeforeGreed().

◆ GetPet()

◆ GetPureMaxSkillValue()

◆ GetPureSkillValue()

◆ GetQuestLevel()

int32 Player::GetQuestLevel ( Quest const * quest) const
inline

◆ GetQuestObjectiveCounter()

◆ GetQuestRewardStatus()

◆ GetQuestSlotCounter()

uint16 Player::GetQuestSlotCounter ( uint16 slot,
uint8 counter ) const

◆ GetQuestSlotQuestId()

◆ GetQuestSlotState()

uint32 Player::GetQuestSlotState ( uint16 slot) const

◆ GetQuestSlotTime()

uint32 Player::GetQuestSlotTime ( uint16 slot) const

◆ GetQuestStatus()

QuestStatus Player::GetQuestStatus ( uint32 quest_id) const

Definition at line 1375 of file PlayerQuestState.cpp.

References m_QuestStatus, m_RewardedQuests, QUEST_STATUS_NONE, QUEST_STATUS_REWARDED, and sObjectMgr.

Referenced by GameObject::ActivateToQuest(), LootItem::AllowedForPlayer(), CanRewardQuest(), npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::CheckEventFail(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::CheckEventFail(), spell_item_demon_broiled_surprise::spell_item_demon_broiled_surprise_SpellScript::CheckRequirement(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DamageTaken(), npc_mist::npc_mistAI::DoComplete(), Spell::EffectQuestClear(), SmartAI::EndPath(), WorldSession::getDialogStatus(), LuaPlayer::GetQuestStatus(), WorldSession::HandleAreaTriggerOpcode(), spell_item_chicken_cover::spell_item_chicken_cover_SpellScript::HandleDummy(), spell_sindragosa_frost_breath::spell_sindragosa_frost_breath_SpellScript::HandleInfusion(), lookup_commandscript::HandleLookupQuestCommand(), WorldSession::HandlePushQuestToParty(), quest_commandscript::HandleQuestComplete(), quest_commandscript::HandleQuestReward(), SpellArea::IsFitToRequirements(), npc_magmoth_crusher::npc_magmoth_crusherAI::JustDied(), npc_nerubar_victim::npc_nerubar_victimAI::JustDied(), npc_netherweb_victim::npc_netherweb_victimAI::JustDied(), npc_stinky::npc_stinkyAI::JustDied(), npc_a_special_surprise::npc_a_special_surpriseAI::MeetQuestCondition(), npc_creditmarker_visit_with_ancestors::npc_creditmarker_visit_with_ancestorsAI::MoveInLineOfSight(), npc_jaomin_ro::npc_jaomin_roAI::MoveInLineOfSight(), npc_kservant::npc_kservantAI::MoveInLineOfSight(), npc_master_shang_xi_temple::npc_master_shang_xi_templeAI::MoveInLineOfSight(), npc_shu_pool_of_reflection::npc_shu_pool_of_reflectionAI::MoveInLineOfSight(), npc_skywing::npc_skywingAI::MoveInLineOfSight(), npc_tooga::npc_toogaAI::MoveInLineOfSight(), npc_transient::npc_transientAI::MoveInLineOfSight(), go_demon_portal::OnGossipHello(), go_gauntlet_gate::OnGossipHello(), npc_marshal_dughan::OnGossipHello(), npc_Spirit_of_Master_Shang_Xi::OnGossipHello(), at_bring_your_orphan_to::OnTrigger(), npc_doctor::npc_doctorAI::PatientDied(), npc_doctor::npc_doctorAI::PatientSaved(), PlayerHasActiveQuest(), PrepareQuestMenu(), SatisfyQuestExclusiveGroup(), SatisfyQuestNextChain(), SatisfyQuestPreviousQuest(), SatisfyQuestStatus(), npc_drakuru_shackles::npc_drakuru_shacklesAI::SpellHit(), npc_greengill_slave::npc_greengill_slaveAI::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), npc_lazy_peon::npc_lazy_peonAI::SpellHit(), npc_restless_soul::npc_restless_soulAI::SpellHit(), npc_sinkhole_kill_credit::npc_sinkhole_kill_creditAI::SpellHit(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::UpdateAI(), npc_dragonmaw_peon::npc_dragonmaw_peonAI::UpdateAI(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::UpdateAI(), npc_seaforium_depth_charge::npc_seaforium_depth_chargeAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), GameObject::Use(), and npc_stinky::npc_stinkyAI::WaypointReached().

◆ getQuestStatusMap()

QuestStatusMap & Player::getQuestStatusMap ( )
inline

Definition at line 1961 of file Player.h.

References m_QuestStatus.

Referenced by AddQuest(), and npc_jungle_punch_target::npc_jungle_punch_targetAI::SpellHit().

◆ GetRaidDifficulty()

◆ GetRandomResearchDigsiteForContinent()

◆ GetRandomResearchProjectForRace()

◆ GetRandomWinner()

bool Player::GetRandomWinner ( ) const
inline

◆ GetRank()

uint8 Player::GetRank ( ) const
inline

◆ GetRankFromDB()

uint8 Player::GetRankFromDB ( uint64 guid)
static

◆ GetRatingBonusValue()

◆ GetRatingMultiplier()

◆ GetRBGPersonalRating()

uint32 Player::GetRBGPersonalRating ( ) const
inline

Definition at line 2309 of file Player.h.

Referenced by GetCurrencyWeekCap().

◆ GetReputation()

uint32 Player::GetReputation ( uint32 factionentry) const

◆ GetReputationMgr() [1/2]

◆ GetReputationMgr() [2/2]

ReputationMgr const & Player::GetReputationMgr ( ) const
inline

Definition at line 2559 of file Player.h.

References m_reputationMgr.

◆ GetReputationPriceDiscount()

float Player::GetReputationPriceDiscount ( Creature const * creature) const

◆ GetReputationRank()

◆ GetReqKillOrCastCurrentCount()

◆ GetResearchDigsiteForFind()

◆ GetRestBonus()

float Player::GetRestBonus ( ) const
inline

◆ GetRestTime()

uint32 Player::GetRestTime ( ) const
inline

Definition at line 2780 of file Player.h.

References m_restTime.

Referenced by LuaPlayer::GetRestTime(), and isRested().

◆ GetRestType()

RestType Player::GetRestType ( ) const
inline

◆ GetResurrectionSpellId()

uint32 Player::GetResurrectionSpellId ( )

◆ GetRewardedQuestCount()

size_t Player::GetRewardedQuestCount ( ) const
inline

Definition at line 1966 of file Player.h.

References m_RewardedQuests.

Referenced by AchievementMgr< T >::UpdateAchievementCriteria().

◆ getRewardedQuests()

RewardedQuestSet const & Player::getRewardedQuests ( ) const
inline

Definition at line 1957 of file Player.h.

References m_RewardedQuests.

Referenced by AchievementMgr< T >::UpdateAchievementCriteria().

◆ GetRuneBaseCooldown()

uint32 Player::GetRuneBaseCooldown ( uint8 index) const
inline

Definition at line 3069 of file Player.h.

References GetBaseRune(), and GetRuneTypeBaseCooldown().

Referenced by Spell::TakeRunePower(), and UpdateRuneRegen().

◆ GetRuneCooldown()

◆ GetRunesState()

uint8 Player::GetRunesState ( ) const
inline

Definition at line 3053 of file Player.h.

References m_runes.

Referenced by Spell::TakeRunePower().

◆ GetRuneTypeBaseCooldown()

◆ GetSaveTimer()

uint32 Player::GetSaveTimer ( ) const
inline

Definition at line 2827 of file Player.h.

References m_nextSave.

Referenced by misc_commandscript::HandleSaveCommand().

◆ GetSelectedPlayer()

◆ GetSelectedUnit()

◆ GetSession()

WorldSession * Player::GetSession ( ) const
inline

Definition at line 2417 of file Player.h.

References m_session, and WorldSession.

Referenced by _GetCurrencyWeekCap(), _LoadHomeBind(), _LoadInventory(), Pet::_LoadSpellCooldowns(), _SaveInstanceTimeRestrictions(), _StoreOrEquipNewItem(), ActivateTaxiPathTo(), AddEnchantmentDuration(), BattlegroundQueue::AddGroup(), LuaPlayer::AddItem(), AddItem(), Guild::AddMember(), Battleground::AddPlayer(), InstanceMap::AddPlayerToMap(), AddRunePower(), addSpell(), AddVoidStorageItem(), AddVoidStorageItemAtSlot(), Channel::Announce(), ApplyEquipCooldown(), AutoUnequipOffhandIfNeed(), World::BanCharacter(), BindToInstance(), Group::BroadcastAddonMessagePacket(), Group::BroadcastPacket(), Group::BroadcastReadyCheck(), SocialMgr::BroadcastToFriendListers(), AuctionHouseObject::BuildListAuctionItems(), BuildPlayerRepop(), CanJoinToBattleground(), MapManager::CanPlayerEnter(), CanSpeak(), CharmSpellInitialize(), Spell::CheckCast(), CheckDuelDistance(), ContinueTaxiFlight(), ConvertRune(), Group::CountTheRoll(), Guild::Create(), Create(), DeleteVoidStorageItem(), Object::DestroyForPlayer(), Group::Disband(), DuelComplete(), DurabilityRepair(), Spell::EffectDuel(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), Spell::EffectEnchantItemTmp(), Spell::EffectUnlockGuildVaultTab(), EquipItem(), BGQueueInviteEvent::Execute(), BGQueueRemoveEvent::Execute(), lfg::LFGMgr::FinishDungeon(), LuaPlayer::GetAccountId(), LuaPlayer::GetAccountName(), ChannelMgr::GetChannel(), LuaPlayer::GetDbcLocale(), LuaPlayer::GetDbLocaleIndex(), SocialMgr::GetFriendInfo(), LuaPlayer::GetGMRank(), LuaPlayer::GetLatency(), lfg::LFGMgr::GetLockedDungeons(), GetMapAreaAndZoneString(), getMaxTimer(), LuaGroup::GetMembers(), LuaPlayer::GetNearbyGameObject(), LuaPlayer::GetPlayerIP(), LuaGlobalFunctions::GetPlayersInMap(), LuaPlayer::GetRecruiterId(), GetsRecruitAFriendBonus(), GetVoidStorageItem(), GiveLevel(), Guild::GiveXP(), LuaPlayer::GossipSendPOI(), Group::GroupLoot(), WorldSession::HandleAcceptGrantLevel(), WorldSession::HandleAcceptTradeOpcode(), account_commandscript::HandleAccountSetAddonCommand(), account_commandscript::HandleAccountSetGmLevelCommand(), BattlegroundAB::HandleAreaTrigger(), BattlegroundAV::HandleAreaTrigger(), WorldSession::HandleAreaTriggerOpcode(), AuraEffect::HandleAuraForceWeather(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleBeginTradeOpcode(), character_commandscript::HandleCharacterEraseCommand(), character_commandscript::HandleCharacterLevel(), character_commandscript::HandleCharacterRenameCommand(), WorldSession::HandleChatIgnoredOpcode(), spell_gen_spirit_healer_res::spell_gen_spirit_healer_res_SpellScript::HandleDummy(), Unit::HandleDummyAuraProc(), cheat_commandscript::HandleExploreCheatCommand(), ticket_commandscript::HandleGMTicketUnAssignCommand(), WorldSession::HandleGrantLevel(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleGroupInviteResponseOpcode(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleInitiateTradeOpcode(), Guild::HandleInviteMember(), misc_commandscript::HandleKickPlayerCommand(), lookup_commandscript::HandleLookupPlayerIpCommand(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleMailTakeItem(), Guild::HandleMemberDepositMoney(), WorldSession::HandleMessagechatOpcode(), modify_commandscript::HandleModifyASpeedCommand(), modify_commandscript::HandleModifyBWalkCommand(), modify_commandscript::HandleModifyEnergyCommand(), modify_commandscript::HandleModifyFlyCommand(), modify_commandscript::HandleModifyGenderCommand(), modify_commandscript::HandleModifyHPCommand(), modify_commandscript::HandleModifyManaCommand(), modify_commandscript::HandleModifyMoneyCommand(), modify_commandscript::HandleModifyMountCommand(), modify_commandscript::HandleModifyRageCommand(), modify_commandscript::HandleModifyRunicPowerCommand(), modify_commandscript::HandleModifySpeedCommand(), modify_commandscript::HandleModifySpellCommand(), modify_commandscript::HandleModifySwimCommand(), misc_commandscript::HandleMuteCommand(), WorldSession::HandleOfferPetitionOpcode(), WorldSession::HandlePetitionDeclineOpcode(), misc_commandscript::HandlePInfoCommand(), Battlefield::HandlePlayerLeaveZone(), OutdoorPvP::HandlePlayerLeaveZone(), WorldSession::HandlePlayerLogin(), AuraEffect::HandlePlayScene(), misc_commandscript::HandleRepairitemsCommand(), reset_commandscript::HandleResetSpellsCommand(), reset_commandscript::HandleResetTalentsCommand(), misc_commandscript::HandleReviveCommand(), WorldSession::HandleSendMail(), send_commandscript::HandleSendMessageCommand(), misc_commandscript::HandleSummonCommand(), cheat_commandscript::HandleTaxiCheatCommand(), tele_commandscript::HandleTeleGroupCommand(), tele_commandscript::HandleTeleNameCommand(), ticket_commandscript::HandleTicketUnAssignCommand(), misc_commandscript::HandleUnmuteCommand(), WorldSession::HandleWhoisOpcode(), WorldSession::HandleWhoOpcode(), ChatHandler::HasLowerSecurity(), Totem::InitStats(), InitTalentForLevel(), Channel::Invite(), BattlegroundQueue::InviteGroupToBG(), Battlefield::InvitePlayerToQueue(), Battlefield::InvitePlayerToWar(), LuaPlayer::IsARecruiter(), isBeingLoaded(), IsNeverVisible(), SpellMgr::IsSpellValid(), ObjectMgr::IsVendorItemValid(), IsVisibleGloballyFor(), Channel::JoinChannel(), lfg::LFGMgr::JoinLfg(), LuaGlobalFunctions::Kick(), Channel::KickOrBan(), LuaPlayer::KickPlayer(), Pet::learnSpell(), learnSpell(), Channel::LeaveChannel(), Channel::List(), LoadFromDB(), BattlegroundSA::LogBoatDebugMarker(), LuaPlayer::LogoutPlayer(), Group::MasterLoot(), ModifyCurrency(), ModifySpellCooldown(), WorldObject::MonsterWhisper(), WorldObject::MonsterWhisper(), WorldSession::moveItems(), Group::NeedBeforeGreed(), Group::OfflineReadyCheck(), OnArchaeologyFindUsed(), OnGossipSelect(), lfg::LFGPlayerScript::OnLogin(), lfg::LFGPlayerScript::OnLogout(), lfg::LFGPlayerScript::OnMapChanged(), BattlefieldWG::OnPlayerLeaveWar(), lfg::LFGGroupScript::OnRemoveMember(), CreatureTextLocalizer< Builder >::operator()(), Skyfire::LocalizedPacketDo< Builder >::operator()(), Skyfire::LocalizedPacketListDo< Builder >::operator()(), Channel::Password(), InstanceMap::PermBindAllPlayers(), PetSpellInitialize(), Player(), Battlefield::PlayerAcceptInviteToQueue(), Battlefield::PlayerAcceptInviteToWar(), PossessSpellInitialize(), PrepareGossipMenu(), ProhibitSpellSchool(), ReadMovementInfo(), rbac_commandscript::ReadParams(), Group::RemoveMember(), RemovePet(), RemovePetitionsAndSigns(), removeSpell(), RepopAtGraveyard(), ResurrectPlayer(), ResyncRunes(), RewardHonor(), Satisfy(), SatisfyQuestLog(), SaveToDB(), AchievementMgr< Guild >::SendAchievementInfo(), SendActionButtons(), npc_prof_alchemy::SendActionMenu(), npc_prof_blacksmith::SendActionMenu(), npc_prof_leather::SendActionMenu(), npc_prof_tailor::SendActionMenu(), AchievementMgr< Guild >::SendAllAchievementData(), Battlefield::SendAreaSpiritHealerQueryOpcode(), BattlegroundMgr::SendAreaSpiritHealerQueryOpcode(), SendAttackSwingCancelAttack(), SendAttackSwingError(), AuctionHouseMgr::SendAuctionCancelledToBidderMail(), AuctionHouseMgr::SendAuctionExpiredMail(), LuaPlayer::SendAuctionMenu(), BlackMarketMgr::SendAuctionOutbidded(), AuctionHouseMgr::SendAuctionOutbiddedMail(), AuctionHouseMgr::SendAuctionSuccessfulMail(), BlackMarketMgr::SendAuctionWon(), AuctionHouseMgr::SendAuctionWonMail(), SendAurasForTarget(), SendAutoRepeatCancel(), LuaPlayer::SendBroadcastMessage(), SendBuyFailed(), SendCanTakeQuestResponse(), Spell::SendCastResult(), SendCinematicStart(), SendComboPoints(), SendCorpseReclaimDelay(), SendCurrencies(), SendDeclineGuildInvitation(), Object::SendDestroyObject(), SendDuelCountdown(), SendDungeonDifficulty(), Unit::SendDurabilityLoss(), SendEnchantmentDurations(), SendEquipError(), SendEquipmentSetList(), SendExplorationExperience(), WeatherMgr::SendFineWeatherUpdateToPlayer(), SocialMgr::SendFriendStatus(), SendGameError(), TicketMgr::SendGmTicketUpdate(), LuaPlayer::SendGuildInvite(), SendInitialPacketsAfterAddToMap(), SendInitialPacketsBeforeAddToMap(), SendInitialSpells(), Map::SendInitSelf(), Map::SendInitTransports(), SendInitWorldStates(), BattlefieldWG::SendInitWorldStatesTo(), SendInstanceResetWarning(), SendItemRefundResult(), LuaPlayer::SendListInventory(), SendLogXPGain(), Group::SendLootAllPassed(), Group::SendLootRoll(), Group::SendLootRollWon(), Group::SendLootStartRoll(), Group::SendLootStartRollToPlayer(), SendMailResult(), SendMessageToSet(), SendMessageToSetInRange(), SendMessageToSetInRange(), SendMirrorTimer(), Unit::SendMoveKnockBack(), SendNewCurrency(), SendNewItem(), SendNewMail(), CreatureTextMgr::SendNonChatPacket(), LuaPlayer::SendNotification(), SendNotifyLootItemRemoved(), SendNotifyLootMoneyRemoved(), SendOnCancelExpectedVehicleRideAura(), Skyfire::MessageDistDeliverer::SendPacket(), LuaPlayer::SendPacketToPlayer(), Unit::SendPetActionFeedback(), Unit::SendPetAIReaction(), Unit::SendPetTalk(), WorldObject::SendPlaySound(), SendPreparedQuest(), SendProficiency(), SendPushToPartyResponse(), SendPvpRewards(), SendQuestComplete(), SendQuestConfirmAccept(), SendQuestFailed(), SendQuestReward(), SendQuestTimerFailed(), SendQuestUpdateAddCredit(), SendQuestUpdateAddPlayer(), SendRaidDifficulty(), SendRaidInfo(), SendRefundInfo(), SendRemoveControlBar(), Map::SendRemoveTransports(), SendResearchHistory(), SendResetFailedNotify(), SendResetInstanceFailed(), SendResetInstanceSuccess(), Spell::SendResurrectRequest(), SendSavedInstances(), SendSellResponse(), World::SendServerMessage(), LuaPlayer::SendShowBank(), PlayerSocial::SendSocialList(), LuaPlayer::SendSpiritResurrect(), SendSurveyCastInfo(), LuaPlayer::SendTabardVendorActivate(), SendTalentsInfoData(), SendTalentWipeConfirm(), LuaPlayer::SendTaxiMenu(), SendTimeSync(), Item::SendTimeUpdate(), LuaPlayer::SendTrainerList(), SendTransferAborted(), Group::SendUpdateToPlayer(), Object::SendUpdateToPlayer(), SendUpdateWorldState(), LuaPlayer::SendVendorWindow(), Weather::SendWeatherUpdateToPlayer(), SetBindPoint(), SetClientControl(), SetDrunkValue(), Group::SetDungeonDifficulty(), Item::SetEnchantment(), SetEquipmentSet(), SetGameMaster(), SetGMVisible(), Channel::SetMode(), Channel::SetOwner(), Group::SetRaidDifficulty(), SetRestBonus(), SetSkill(), Unit::SetStandState(), Guild::Member::SetStats(), SetTitle(), ShowNeutralPlayerFactionSelectUI(), SolveResearchProject(), SpawnCorpseBones(), StopCinematic(), StopMirrorTimer(), LuaPlayer::SummonPlayer(), lfg::LFGMgr::TeleportPlayer(), TeleportTo(), TextEmote(), TradeCancel(), Channel::UnBan(), UnbindInstance(), Pet::unlearnSpell(), Map::Update(), Update(), WorldObject::UpdateAreaPhase(), UpdateConquestCurrencyCap(), UpdateForQuestWorldObjects(), UpdateHomebindTime(), UpdateLocalChannels(), UpdatePhasing(), Group::UpdatePlayerOutOfRange(), UpdatePosition(), UpdateSpeakTime(), UpdateTriggerVisibility(), GameObject::Use(), VehicleSpellInitialize(), Whisper(), and WhisperAddon().

◆ GetShield()

◆ GetSkillPermBonusValue()

int16 Player::GetSkillPermBonusValue ( uint32 skill) const

◆ GetSkillStep()

◆ GetSkillTempBonusValue()

int16 Player::GetSkillTempBonusValue ( uint32 skill) const

◆ GetSkillValue()

◆ GetSocial()

◆ GetSpecializationResetCost()

uint32 Player::GetSpecializationResetCost ( ) const
inline

Definition at line 2069 of file Player.h.

References _talentMgr.

Referenced by GetNextResetSpecializationCost().

◆ GetSpecializationResetTime()

uint32 Player::GetSpecializationResetTime ( ) const
inline

Definition at line 2071 of file Player.h.

References _talentMgr.

Referenced by GetNextResetSpecializationCost().

◆ GetSpecsCount()

◆ GetSpellCooldownDelay()

◆ GetSpellCooldownMap()

SpellCooldowns const & Player::GetSpellCooldownMap ( ) const
inline

◆ GetSpellCooldowns()

SpellCooldowns Player::GetSpellCooldowns ( ) const
inline

Definition at line 2588 of file Player.h.

References m_spellCooldowns.

◆ GetSpellCritFromIntellect()

◆ GetSpellMap() [1/2]

PlayerSpellMap & Player::GetSpellMap ( )
inline

Definition at line 2145 of file Player.h.

References m_spells.

◆ GetSpellMap() [2/2]

PlayerSpellMap const & Player::GetSpellMap ( ) const
inline

◆ GetSpellPenetrationItemMod()

int32 Player::GetSpellPenetrationItemMod ( ) const
inline

Definition at line 2368 of file Player.h.

References m_spellPenetrationItemMod.

◆ GetsRecruitAFriendBonus()

◆ GetStartPosition()

◆ GetSubGroup()

uint8 Player::GetSubGroup ( ) const
inline

◆ GetTalentMap() [1/2]

PlayerTalentMap * Player::GetTalentMap ( uint8 spec)
inline

Definition at line 2122 of file Player.h.

References _talentMgr.

◆ GetTalentMap() [2/2]

PlayerTalentMap const * Player::GetTalentMap ( uint8 spec) const
inline

Definition at line 2118 of file Player.h.

References _talentMgr.

Referenced by _SaveTalents(), AddTalent(), HasTalent(), RemoveTalent(), and ResetTalents().

◆ GetTalentResetCost()

uint32 Player::GetTalentResetCost ( ) const
inline

Definition at line 2067 of file Player.h.

References _talentMgr.

Referenced by GetNextResetTalentsCost(), and SaveToDB().

◆ GetTalentResetTime()

uint32 Player::GetTalentResetTime ( ) const
inline

Definition at line 2073 of file Player.h.

References _talentMgr.

Referenced by GetNextResetTalentsCost(), and SaveToDB().

◆ GetTalentSpecialization()

◆ GetTeam()

uint32 Player::GetTeam ( ) const
inline

Definition at line 2527 of file Player.h.

References m_team.

Referenced by Battleground::_GetPlayerForTeam(), ActivateTaxiPathTo(), GameObject::ActivateToQuest(), BattlegroundQueue::AddGroup(), Battleground::AddPlayer(), LootItem::AllowedForPlayer(), SocialMgr::BroadcastToFriendListers(), Group::CanJoinBattlegroundQueue(), OPvPCapturePointZM_GraveYard::CanTalkTo(), AchievementMgr< T >::CanUpdateCriteria(), CanUseItem(), BattlegroundAB::CheckAchievementCriteriaMeet(), BattlegroundAV::CheckAchievementCriteriaMeet(), BattlegroundBFG::CheckAchievementCriteriaMeet(), BattlegroundSA::CheckAchievementCriteriaMeet(), BattlegroundWS::CheckAchievementCriteriaMeet(), BattlegroundEY::CheckSomeoneLeftPoint(), CleanupChannels(), ContinueTaxiFlight(), Create(), Battleground::EndBattleground(), BattlegroundAV::EventPlayerAssaultsPoint(), BattlegroundEY::EventPlayerCapturedFlag(), BattlegroundTP::EventPlayerCapturedFlag(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundAB::EventPlayerClickedOnFlag(), BattlegroundBFG::EventPlayerClickedOnFlag(), BattlegroundEY::EventPlayerClickedOnFlag(), BattlegroundTP::EventPlayerClickedOnFlag(), BattlegroundWS::EventPlayerClickedOnFlag(), BattlegroundAV::EventPlayerDefendsPoint(), BattlegroundEY::EventPlayerDroppedFlag(), BattlegroundTP::EventPlayerDroppedFlag(), BattlegroundWS::EventPlayerDroppedFlag(), BattlegroundEY::EventTeamCapturedPoint(), GetBGTeam(), Battleground::GetClosestGraveYard(), BattlegroundAB::GetClosestGraveYard(), BattlegroundAV::GetClosestGraveYard(), BattlegroundBFG::GetClosestGraveYard(), BattlegroundEY::GetClosestGraveYard(), BattlegroundIC::GetClosestGraveYard(), BattlegroundTP::GetClosestGraveYard(), BattlegroundVOP::GetClosestGraveYard(), BattlegroundWS::GetClosestGraveYard(), SocialMgr::GetFriendInfo(), lfg::LFGMgr::GetLockedDungeons(), Guild::HandleAcceptMember(), BattlegroundAB::HandleAreaTrigger(), BattlegroundAV::HandleAreaTrigger(), BattlegroundEY::HandleAreaTrigger(), OutdoorPvPSI::HandleAreaTrigger(), WorldSession::HandleCalendarEventInvite(), message_commandscript::HandleChannelSetOwnership(), debug_commandscript::HandleDebugSpawnVehicleCommand(), OutdoorPvPSI::HandleDropFlag(), spell_item_brewfest_mount_transformation::spell_item_brewfest_mount_transformation_SpellScript::HandleDummy(), spell_item_teach_language::spell_item_teach_language_SpellScript::HandleDummy(), spell_q6124_6129_apply_salve::spell_q6124_6129_apply_salve_SpellScript::HandleDummy(), WorldSession::HandleGroupInviteOpcode(), Guild::HandleGuildPartyRequest(), WorldSession::HandleInitiateTradeOpcode(), Guild::HandleInviteMember(), OutdoorPvPHP::HandleKillImpl(), OutdoorPvPNA::HandleKillImpl(), OutdoorPvPZM::HandleKillImpl(), Battleground::HandleKillPlayer(), BattlegroundAV::HandleKillPlayer(), BattlegroundIC::HandleKillPlayer(), BattlegroundAV::HandleKillUnit(), WorldSession::HandleMessagechatOpcode(), WorldSession::HandleOfferPetitionOpcode(), OutdoorPvPHP::HandlePlayerEnterZone(), OutdoorPvPNA::HandlePlayerEnterZone(), OutdoorPvPSI::HandlePlayerEnterZone(), OutdoorPvPTF::HandlePlayerEnterZone(), OutdoorPvPZM::HandlePlayerEnterZone(), OutdoorPvPHP::HandlePlayerLeaveZone(), BattlegroundAV::HandleQuestComplete(), WorldSession::HandleSendMail(), WorldSession::HandleWhoOpcode(), Channel::Invite(), LuaPlayer::IsAlliance(), IsGroupVisibleFor(), LuaPlayer::IsHorde(), LoadFromDB(), AchievementCriteriaData::Meets(), npc_mageguard_dalaran::npc_mageguard_dalaranAI::MoveInLineOfSight(), lfg::LFGPlayerScript::OnLogin(), at_bring_your_orphan_to::OnTrigger(), PrepareGossipMenu(), npc_pet_gen_mojo::npc_pet_gen_mojoAI::ReceiveEmote(), Battleground::RemovePlayerAtLeave(), RepopAtGraveyard(), ReportedAfkBy(), RewardHonor(), RewardReputation(), Satisfy(), World::SendGlobalGMMessage(), SendLoot(), Skyfire::MessageDistDeliverer::SendPacket(), Creature::SendZoneUnderAttackMessage(), SetBattlegroundEntryPoint(), Channel::SetMode(), Channel::SetOwner(), Map::SummonCreature(), UpdateLocalChannels(), BattlegroundEY::UpdatePointStatuses(), UpdateZone(), and npc_isla_starmane::npc_isla_starmaneAI::WaypointReached().

◆ GetTeamId()

TeamId Player::GetTeamId ( ) const
inline

Definition at line 2531 of file Player.h.

References ALLIANCE, m_team, TEAM_ALLIANCE, and TEAM_HORDE.

Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup(), BattlegroundIC::AddPlayer(), BattlegroundSA::AddPlayer(), Battlefield::AskToLeaveQueue(), BattlegroundSA::CaptureGraveyard(), BattlegroundSA::CheckAchievementCriteriaMeet(), BattlegroundIC::DestroyGate(), BattlegroundIC::DoAction(), BattlegroundTP::EventPlayerCapturedFlag(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundIC::EventPlayerClickedOnFlag(), BattlegroundSA::EventPlayerUsedGO(), Battlefield::GetClosestGraveYard(), BattlegroundIC::GetClosestGraveYard(), BattlegroundSA::GetClosestGraveYard(), LuaGlobalFunctions::GetPlayersInMap(), LuaPlayer::GetTeam(), BattlegroundIC::HandleAreaTrigger(), WorldSession::HandleGrantLevel(), WorldSession::HandleGuildFinderBrowse(), WorldSession::HandleGuildFinderSetGuildPost(), BattlefieldWG::HandleKill(), BattlegroundIC::HandleKillPlayer(), BfCapturePoint::HandlePlayerEnter(), OPvPCapturePoint::HandlePlayerEnter(), Battlefield::HandlePlayerEnterZone(), OutdoorPvP::HandlePlayerEnterZone(), BfCapturePoint::HandlePlayerLeave(), OPvPCapturePoint::HandlePlayerLeave(), Battlefield::HandlePlayerLeaveZone(), OutdoorPvP::HandlePlayerLeaveZone(), BattlegroundIC::HandlePlayerResurrect(), Battlefield::HasPlayer(), OutdoorPvP::HasPlayer(), Battlefield::InvitePlayerToQueue(), Battlefield::InvitePlayerToWar(), SpellArea::IsFitToRequirements(), BfCapturePoint::IsInsideObjective(), OPvPCapturePoint::IsInsideObjective(), BattlegroundIC::IsSpellAllowed(), AchievementCriteriaData::Meets(), BattlefieldWG::OnCreatureCreate(), BattlefieldWG::OnPlayerJoinWar(), Battlefield::PlayerAcceptInviteToQueue(), Battlefield::PlayerAcceptInviteToWar(), and OPvPCapturePoint::Update().

◆ GetTeleportDest()

WorldLocation & Player::GetTeleportDest ( )
inline

◆ GetTemporaryUnsummonedPetNumber()

uint32 Player::GetTemporaryUnsummonedPetNumber ( ) const
inline

Definition at line 2893 of file Player.h.

References m_temporaryUnsummonedPetNumber.

Referenced by Pet::SavePetToDB().

◆ GetTimeInnEnter()

time_t Player::GetTimeInnEnter ( ) const
inline

Definition at line 1486 of file Player.h.

References time_inn_enter.

Referenced by Update().

◆ GetTotalBaseModValue()

float Player::GetTotalBaseModValue ( BaseModGroup modGroup) const

Definition at line 5806 of file Player.cpp.

References BASEMOD_END, FLAT_MOD, m_auraBaseMod, PCT_MOD, and SF_LOG_ERROR.

◆ GetTotalPercentageModValue()

float Player::GetTotalPercentageModValue ( BaseModGroup modGroup) const
inline

Definition at line 2637 of file Player.h.

References FLAT_MOD, m_auraBaseMod, and PCT_MOD.

Referenced by UpdateCritPercentage().

◆ GetTotalPlayedTime()

uint32 Player::GetTotalPlayedTime ( ) const
inline

◆ GetTradeData()

TradeData * Player::GetTradeData ( ) const
inline

Definition at line 1694 of file Player.h.

References m_trade.

Referenced by SplitItem(), and SpellCastTargets::Update().

◆ GetTrader()

Player * Player::GetTrader ( ) const
inline

Definition at line 1690 of file Player.h.

References m_trade, and Player().

Referenced by UpdatePosition().

◆ GetTrainerSpellState()

◆ GetUInt32ValueFromArray()

uint32 Player::GetUInt32ValueFromArray ( Tokenizer const & data,
uint16 index )
static

Definition at line 12158 of file Player.cpp.

References Tokenizer::size().

Referenced by BuildEnumData(), and GetFloatValueFromArray().

◆ GetUseableItemByPos()

◆ GetUsedTalentCount()

uint32 Player::GetUsedTalentCount ( ) const
inline

Definition at line 2065 of file Player.h.

References _talentMgr.

Referenced by addSpell(), InitTalentForLevel(), and removeSpell().

◆ GetViewpoint()

◆ GetVoidStorageItem() [1/2]

VoidStorageItem * Player::GetVoidStorageItem ( uint64 id,
uint8 & slot ) const

Definition at line 22574 of file Player.cpp.

References _voidStorageItems, and VOID_STORAGE_MAX_SLOT.

◆ GetVoidStorageItem() [2/2]

◆ GetWeaponForAttack()

◆ GetWeaponProficiency()

uint32 Player::GetWeaponProficiency ( ) const
inline

Definition at line 1673 of file Player.h.

References m_WeaponProficiency.

Referenced by Spell::EffectProficiency().

◆ GetXPRestBonus()

uint32 Player::GetXPRestBonus ( uint32 xp)

Definition at line 10370 of file Player.cpp.

References GetRestBonus(), SetRestBonus(), and SF_LOG_INFO.

Referenced by LuaPlayer::GetXPRestBonus(), LuaPlayer::GiveXP(), and GiveXP().

◆ GetZoneIdFromDB()

◆ GiveLevel()

void Player::GiveLevel ( uint8 level)

◆ GiveQuestSourceItem()

bool Player::GiveQuestSourceItem ( Quest const * quest)

◆ GiveXP()

◆ GroupEventHappens()

void Player::GroupEventHappens ( uint32 questId,
WorldObject const * pEventObject )

Definition at line 1593 of file PlayerQuestState.cpp.

References AreaExploredOrEventHappens(), GetCorpse(), GetGroup(), IsAtGroupRewardDistance(), GroupReference::next(), Player(), and WorldObject::WorldObject().

Referenced by npc_mist::npc_mistAI::DoComplete(), SmartAI::EndPath(), LuaPlayer::GroupEventHappens(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), npc_tooga::npc_toogaAI::MoveInLineOfSight(), npc_overlord_morghor::npc_overlord_morghorAI::NextStep(), npc_jungle_punch_target::npc_jungle_punch_targetAI::proceedCwEvent(), SmartScript::ProcessAction(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), npc_crusade_persuaded::npc_crusade_persuadedAI::UpdateAI(), npc_elder_kekek::npc_elder_kekekAI::UpdateAI(), npc_high_oracle_soo_roo::npc_high_oracle_soo_rooAI::UpdateAI(), npc_professor_phizzlethorpe::npc_professor_phizzlethorpeAI::UpdateAI(), npc_snowfall_glade_playmate::npc_snowfall_glade_playmateAI::UpdateAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::UpdateAI(), npc_the_etymidian::npc_the_etymidianAI::UpdateAI(), npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI(), npc_brann_hos::npc_brann_hosAI::UpdateEscortAI(), npc_akuno::npc_akunoAI::WaypointReached(), npc_apothecary_hanes::npc_Apothecary_HanesAI::WaypointReached(), npc_bessy::npc_bessyAI::WaypointReached(), npc_bonker_togglevolt::npc_bonker_togglevoltAI::WaypointReached(), npc_deathstalker_erland::npc_deathstalker_erlandAI::WaypointReached(), npc_earthmender_wilda::npc_earthmender_wildaAI::WaypointReached(), npc_emily::npc_emilyAI::WaypointReached(), npc_engineer_helice::npc_engineer_heliceAI::WaypointReached(), npc_gilthares::npc_giltharesAI::WaypointReached(), npc_injured_goblin::npc_injured_goblinAI::WaypointReached(), npc_injured_rainspeaker_oracle::npc_injured_rainspeaker_oracleAI::WaypointReached(), npc_isla_starmane::npc_isla_starmaneAI::WaypointReached(), npc_kayra_longmane::npc_kayra_longmaneAI::WaypointReached(), npc_kservant::npc_kservantAI::WaypointReached(), npc_mootoo_the_younger::npc_mootoo_the_youngerAI::WaypointReached(), npc_ranger_lilatha::npc_ranger_lilathaAI::WaypointReached(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::WaypointReached(), npc_stinky::npc_stinkyAI::WaypointReached(), npc_willix::npc_willixAI::WaypointReached(), and npc_wounded_blood_elf::npc_wounded_blood_elfAI::WaypointReached().

◆ HandleBaseModValue()

◆ HandleDrowning()

◆ HandleFall()

◆ HandleSobering()

void Player::HandleSobering ( )
protected

The player sobers by 1% every 9 seconds.

Definition at line 1337 of file Player.cpp.

References GetDrunkValue(), m_drunkTimer, and SetDrunkValue().

Referenced by Update().

◆ HasAchieved()

◆ HasActiveSpell()

bool Player::HasActiveSpell ( uint32 spell) const

Definition at line 4687 of file Player.cpp.

References m_spells, and PLAYERSPELL_REMOVED.

Referenced by WorldSession::HandleCastSpellOpcode().

◆ HasAtLoginFlag()

bool Player::HasAtLoginFlag ( AtLoginFlags f) const
inline

◆ HasCompletedAllCommonProjectsForRace()

bool Player::HasCompletedAllCommonProjectsForRace ( uint32 researchBranchId,
bool onlyAvailable ) const

◆ HasCompletedAllRareProjectsForRace()

bool Player::HasCompletedAllRareProjectsForRace ( uint32 researchBranchId) const

◆ HasCompletedResearchProject()

bool Player::HasCompletedResearchProject ( uint32 projectId) const
inline

◆ HasCurrency()

bool Player::HasCurrency ( uint32 id,
uint32 count ) const

return presence related currency

Definition at line 7672 of file Player.cpp.

References _currencyStorage.

Referenced by BuyCurrencyFromVendorSlot(), BuyItemFromVendorSlot(), and CanRewardQuest().

◆ HasEnoughMoney() [1/2]

bool Player::HasEnoughMoney ( int64 amount) const

Definition at line 18366 of file Player.cpp.

References GetMoney().

◆ HasEnoughMoney() [2/2]

◆ HasFreeBattlegroundQueueId()

bool Player::HasFreeBattlegroundQueueId ( )

◆ HasItemCount()

◆ HasItemFitToSpellRequirements()

◆ HasItemOrGemWithIdEquipped()

◆ HasItemOrGemWithLimitCategoryEquipped()

◆ HasPendingBind()

bool Player::HasPendingBind ( ) const
inline

Definition at line 2938 of file Player.h.

References _pendingBindId.

Referenced by LuaPlayer::HasPendingBind(), isAllowedToLoot(), and Update().

◆ HasPvPForcingQuest()

◆ HasQuestForGO()

◆ HasQuestForItem()

◆ HasResearchingProject()

bool Player::HasResearchingProject ( uint32 projectId) const
inline

Definition at line 3215 of file Player.h.

References _researchProjects.

◆ HasSkill()

◆ HasSpell()

◆ HasSpellCooldown()

◆ HasTalent()

bool Player::HasTalent ( uint32 spell_id,
uint8 spec ) const

◆ HasTitle() [1/2]

bool Player::HasTitle ( CharTitlesEntry const * title)
inline

Definition at line 3113 of file Player.h.

References CharTitlesEntry::bit_index, and HasTitle().

◆ HasTitle() [2/2]

◆ HaveAtClient()

◆ InArena()

◆ InBattleground()

◆ InBattlegroundQueue()

bool Player::InBattlegroundQueue ( ) const

◆ InBattlegroundQueueForBattlegroundQueueType()

bool Player::InBattlegroundQueueForBattlegroundQueueType ( BattlegroundQueueTypeId bgQueueTypeId) const

◆ IncompleteQuest()

◆ InitDataForForm()

◆ InitDisplayIds()

◆ InitGlyphsForLevel()

◆ Initialize()

void Player::Initialize ( uint32 guid)

Definition at line 12051 of file Player.cpp.

References Object::_Create(), and HIGHGUID_PLAYER.

◆ InitPrimaryProfessions()

void Player::InitPrimaryProfessions ( )

Definition at line 18337 of file Player.cpp.

References CONFIG_MAX_PRIMARY_TRADE_SKILL, SetFreePrimaryProfessions(), and sWorld.

Referenced by Create(), and LoadFromDB().

◆ InitRunes()

◆ InitStatsForLevel()

void Player::InitStatsForLevel ( bool reapplyMods = false)

Definition at line 3323 of file Player.cpp.

References _ApplyAllStatBonuses(), _RemoveAllStatBonuses(), CONFIG_MAX_PLAYER_LEVEL, Unit::getClass(), Unit::GetCreatePowers(), Unit::getLevel(), Unit::GetMaxPower(), GetPet(), Unit::GetPower(), Unit::getRace(), InitDataForForm(), Unit::InitStatBuffMods(), MAX_COMBAT_RATING, MAX_POWERS, MAX_SPELL_SCHOOL, MAX_STATS, PLAYER_FIELD_BLOCK_PERCENTAGE, PLAYER_FIELD_COMBAT_RATINGS, PLAYER_FIELD_CRIT_PERCENTAGE, PLAYER_FIELD_DODGE_PERCENTAGE, PLAYER_FIELD_MASTERY, PLAYER_FIELD_MAX_LEVEL, PLAYER_FIELD_MOD_DAMAGE_DONE_NEG, PLAYER_FIELD_MOD_DAMAGE_DONE_PERCENT, PLAYER_FIELD_MOD_DAMAGE_DONE_POS, PLAYER_FIELD_MOD_HEALING_DONE_PERCENT, PLAYER_FIELD_MOD_HEALING_DONE_POS, PLAYER_FIELD_MOD_HEALING_PERCENT, PLAYER_FIELD_MOD_SPELL_POWER_PERCENT, PLAYER_FIELD_MOD_TARGET_PHYSICAL_RESISTANCE, PLAYER_FIELD_MOD_TARGET_RESISTANCE, PLAYER_FIELD_NEXT_LEVEL_XP, PLAYER_FIELD_NO_REAGENT_COST_MASK, PLAYER_FIELD_OFFHAND_CRIT_PERCENTAGE, PLAYER_FIELD_PARRY_PERCENTAGE, PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FIELD_PVP_POWER_DAMAGE, PLAYER_FIELD_PVP_POWER_HEALING, PLAYER_FIELD_RANGED_CRIT_PERCENTAGE, PLAYER_FIELD_SHIELD_BLOCK, PLAYER_FIELD_SPELL_CRIT_PERCENTAGE, PLAYER_FIELD_WEAPON_DMG_MULTIPLIERS, PLAYER_FLAGS_AFK, PLAYER_FLAGS_ALLOW_ONLY_ABILITY, PLAYER_FLAGS_DND, PLAYER_FLAGS_GHOST, PLAYER_FLAGS_GM, POWER_DEMONIC_FURY, POWER_ENERGY, POWER_FOCUS, POWER_MANA, POWER_RAGE, POWER_RUNIC_POWER, Object::RemoveByteFlag(), Object::RemoveFlag(), Unit::RemoveStandFlags(), Unit::SetArmor(), Unit::SetCreateHealth(), Unit::SetCreateMana(), Unit::SetCreateStat(), Object::SetFlag(), Object::SetFloatValue(), Unit::SetFullHealth(), Object::SetInt32Value(), Unit::SetMaxHealth(), Unit::SetMaxPower(), SetObjectScale(), Unit::SetPower(), Unit::SetResistance(), Unit::SetResistanceBuffMods(), Unit::SetStat(), Object::SetUInt32Value(), sObjectMgr, STAT_STRENGTH, PlayerLevelInfo::stats, sWorld, UNIT_BYTE2_FLAG_FFA_PVP, UNIT_BYTE2_FLAG_SANCTUARY, UNIT_FIELD_ATTACK_POWER, UNIT_FIELD_ATTACK_POWER_MULTIPLIER, UNIT_FIELD_ATTACK_ROUND_BASE_TIME, UNIT_FIELD_AURA_STATE, UNIT_FIELD_FLAGS, UNIT_FIELD_FLAGS2, UNIT_FIELD_MAX_DAMAGE, UNIT_FIELD_MAX_OFF_HAND_DAMAGE, UNIT_FIELD_MAX_RANGED_DAMAGE, UNIT_FIELD_MIN_DAMAGE, UNIT_FIELD_MIN_OFF_HAND_DAMAGE, UNIT_FIELD_MIN_RANGED_DAMAGE, UNIT_FIELD_MOD_CASTING_SPEED, UNIT_FIELD_MOD_HASTE, UNIT_FIELD_MOD_RANGED_HASTE, UNIT_FIELD_MOD_SPELL_HASTE, UNIT_FIELD_MOUNT_DISPLAY_ID, UNIT_FIELD_POWER_COST_MODIFIER, UNIT_FIELD_POWER_COST_MULTIPLIER, UNIT_FIELD_RANGED_ATTACK_POWER, UNIT_FIELD_RANGED_ATTACK_POWER_MULTIPLIER, UNIT_FIELD_RANGED_ATTACK_ROUND_BASE_TIME, UNIT_FIELD_SHAPESHIFT_FORM, UNIT_FLAG2_REGENERATE_POWER, UNIT_FLAG_CONFUSED, UNIT_FLAG_DISABLE_MOVE, UNIT_FLAG_DISARMED, UNIT_FLAG_FLEEING, UNIT_FLAG_IMMUNE_TO_NPC, UNIT_FLAG_IMMUNE_TO_PC, UNIT_FLAG_IN_COMBAT, UNIT_FLAG_LOOTING, UNIT_FLAG_MOUNT, UNIT_FLAG_NON_ATTACKABLE, UNIT_FLAG_NOT_ATTACKABLE_1, UNIT_FLAG_NOT_SELECTABLE, UNIT_FLAG_PACIFIED, UNIT_FLAG_PET_IN_COMBAT, UNIT_FLAG_PVP_ATTACKABLE, UNIT_FLAG_SILENCED, UNIT_FLAG_SKINNABLE, UNIT_FLAG_STUNNED, UNIT_FLAG_TAXI_FLIGHT, UNIT_STAND_FLAGS_ALL, and UpdateSkillsForLevel().

Referenced by Create(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsCommand(), and LoadFromDB().

◆ InitTalentForLevel()

◆ InitTaxiNodesForLevel()

void Player::InitTaxiNodesForLevel ( )
inline

◆ InnEnter()

void Player::InnEnter ( time_t time,
uint32 mapid,
float x,
float y,
float z,
float radius = 0.0f,
float boxX = 0.0f,
float boxY = 0.0f,
float boxZ = 0.0f,
float boxOrientation = 0.0f )

◆ inRandomLfgDungeon()

bool Player::inRandomLfgDungeon ( )

◆ isAcceptWhispers()

bool Player::isAcceptWhispers ( ) const
inline

◆ IsActionButtonDataValid()

◆ IsActiveQuest()

bool Player::IsActiveQuest ( uint32 quest_id) const

Definition at line 178 of file PlayerQuestState.cpp.

References m_QuestStatus.

Referenced by LuaPlayer::HasQuest(), and LuaPlayer::IsActiveQuest().

◆ IsAffectedBySpellmod()

bool Player::IsAffectedBySpellmod ( SpellInfo const * spellInfo,
SpellModifier * mod,
Spell * spell = NULL )

◆ isAFK()

◆ isAllowedToLoot()

◆ IsAlwaysDetectableFor()

bool Player::IsAlwaysDetectableFor ( WorldObject const * seer) const
overrideprotectedvirtual

◆ IsAtGroupRewardDistance()

◆ IsAtRecruitAFriendDistance()

◆ IsBagPos()

◆ IsBankPos() [1/2]

bool Player::IsBankPos ( uint16 pos)
inlinestatic

◆ IsBankPos() [2/2]

bool Player::IsBankPos ( uint8 bag,
uint8 slot )
static

◆ IsBaseRuneSlotsOnCooldown()

bool Player::IsBaseRuneSlotsOnCooldown ( RuneType runeType) const

Definition at line 20645 of file Player.cpp.

References GetBaseRune(), GetRuneCooldown(), and MAX_RUNES.

◆ IsBeingForcedTeleportFar()

bool Player::IsBeingForcedTeleportFar ( ) const
inline

Definition at line 2520 of file Player.h.

References m_forcedTeleportFarSemaphore.

Referenced by InstanceMap::CanEnter().

◆ isBeingLoaded()

bool Player::isBeingLoaded ( ) const
overridevirtual

Reimplemented from Unit.

Definition at line 12175 of file Player.cpp.

References GetSession(), and WorldSession::PlayerLoading().

◆ IsBeingTeleported()

◆ IsBeingTeleportedFar()

bool Player::IsBeingTeleportedFar ( ) const
inline

◆ IsBeingTeleportedNear()

bool Player::IsBeingTeleportedNear ( ) const
inline

Definition at line 2497 of file Player.h.

References mSemaphoreTeleport_Near.

◆ IsCanDelayTeleport()

bool Player::IsCanDelayTeleport ( ) const
inlineprivate

Definition at line 3537 of file Player.h.

References m_bCanDelayTeleport.

Referenced by TeleportTo().

◆ IsCurrentSpecMasterySpell()

bool Player::IsCurrentSpecMasterySpell ( SpellInfo const * spellInfo) const

◆ isDND()

◆ IsEquipmentPos() [1/2]

◆ IsEquipmentPos() [2/2]

bool Player::IsEquipmentPos ( uint8 bag,
uint8 slot )
static

◆ IsForcedTeleportFar()

bool Player::IsForcedTeleportFar ( ) const
inline

Definition at line 2513 of file Player.h.

References m_forcedTeleportFar.

Referenced by TeleportTo().

◆ IsGameMaster()

bool Player::IsGameMaster ( ) const
inline

Definition at line 1369 of file Player.h.

References m_ExtraFlags, and PLAYER_EXTRA_GM_ON.

Referenced by ThreatManager::_addThreat(), Group::_homebindIfInstance(), Unit::_IsValidAssistTarget(), Unit::_IsValidAttackTarget(), Unit::Attack(), BindToInstance(), GameObject::BuildValuesUpdate(), Unit::BuildValuesUpdate(), InstanceMap::CanEnter(), MapManager::CanPlayerEnter(), CanTameExoticPets(), CheckInstanceLoginValid(), SpellInfo::CheckTarget(), instance_violet_hold::instance_violet_hold_InstanceMapScript::CheckWipe(), misc_commandscript::HandleAppearCommand(), HandleFall(), gm_commandscript::HandleGMCommand(), WorldSession::HandleGroupInviteOpcode(), group_commandscript::HandleGroupListCommand(), WorldSession::HandleMessagechatOpcode(), mmaps_commandscript::HandleMmapPathCommand(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLogin(), misc_commandscript::HandleSummonCommand(), LuaPlayer::IsGM(), ThreatCalcHelper::isValidProcess(), LeaveBattleground(), MailSender::MailSender(), npc_mageguard_dalaran::npc_mageguard_dalaranAI::MoveInLineOfSight(), spell_malygos_vortex_visual::spell_malygos_vortex_visual_AuraScript::OnRemove(), Skyfire::PlayerAtMinimumRangeAway::operator()(), InstanceMap::PermBindAllPlayers(), Satisfy(), Spell::SendLoot(), MailDraft::SendMailTo(), Unit::TauntApply(), Unit::TauntFadeOut(), TeleportTo(), Creature::Update(), AchievementMgr< T >::UpdateAchievementCriteria(), boss_hunter_toc5::boss_hunter_toc5AI::UpdateAI(), boss_warrior_toc5::boss_warrior_toc5AI::UpdateAI(), generic_vehicleAI_toc5::generic_vehicleAI_toc5AI::UpdateAI(), UpdateHomebindTime(), UpdatePvPState(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::VortexHandling(), and Whisper().

◆ isGMChat()

bool Player::isGMChat ( ) const
inline

Definition at line 1374 of file Player.h.

References m_ExtraFlags, and PLAYER_EXTRA_GM_CHAT.

Referenced by GetChatTag(), and LuaPlayer::IsGMChat().

◆ isGMVisible()

bool Player::isGMVisible ( ) const
inline

◆ IsGroupVisibleFor()

bool Player::IsGroupVisibleFor ( Player const * p) const

◆ IsHasDelayedTeleport()

bool Player::IsHasDelayedTeleport ( ) const
inlineprivate

Definition at line 3545 of file Player.h.

References m_bHasDelayedTeleport.

Referenced by TeleportTo(), and Update().

◆ isHonorOrXPTarget()

◆ IsImmuneToEnvironmentalDamage()

bool Player::IsImmuneToEnvironmentalDamage ( )

◆ IsInCinematic()

bool Player::IsInCinematic ( ) const
inline

Definition at line 2907 of file Player.h.

References cinematicSequence, and inCinematic.

Referenced by WorldSession::HandleMovementOpcodes().

◆ IsInCurrentInnArea()

◆ IsInSameGroupWith()

bool Player::IsInSameGroupWith ( Player const * p) const

◆ IsInSameRaidWith()

bool Player::IsInSameRaidWith ( Player const * p) const

◆ IsInventoryPos() [1/2]

◆ IsInventoryPos() [2/2]

bool Player::IsInventoryPos ( uint8 bag,
uint8 slot )
static

◆ IsInvitedForBattlegroundInstance()

bool Player::IsInvitedForBattlegroundInstance ( uint32 instanceId) const

Definition at line 19302 of file Player.cpp.

References m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.

◆ IsInvitedForBattlegroundQueueType()

bool Player::IsInvitedForBattlegroundQueueType ( BattlegroundQueueTypeId bgQueueTypeId) const

Definition at line 19241 of file Player.cpp.

References m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.

◆ IsInWater()

bool Player::IsInWater ( ) const
inlineoverridevirtual

Reimplemented from Unit.

Definition at line 1319 of file Player.h.

References m_isInWater.

Referenced by WorldSession::HandleMovementOpcodes(), LuaPlayer::IsInWater(), and IsUnderWater().

◆ IsInWhisperWhiteList()

bool Player::IsInWhisperWhiteList ( uint64 guid)

Definition at line 22479 of file Player.cpp.

References WhisperList.

Referenced by WorldSession::HandleMessagechatOpcode().

◆ IsKnowHowFlyIn()

bool Player::IsKnowHowFlyIn ( uint32 mapid,
uint32 zone ) const

Definition at line 20800 of file Player.cpp.

References GetVirtualMapForMapAndZone(), and HasSpell().

Referenced by LuaPlayer::CanFlyInZone(), and SpellInfo::CheckLocation().

◆ IsLootingObject()

bool Player::IsLootingObject ( uint64 guid) const
inline

Definition at line 2405 of file Player.h.

References m_lootView.

Referenced by WorldSession::HandleAutostoreLootItemOpcode().

◆ IsMailsLoaded()

bool Player::IsMailsLoaded ( ) const
inline

Definition at line 1994 of file Player.h.

References m_mailsLoaded.

Referenced by MailDraft::SendMailTo().

◆ IsMirrorTimerActive()

bool Player::IsMirrorTimerActive ( MirrorTimerType type)

Definition at line 1215 of file Player.cpp.

References getMaxTimer(), and m_MirrorTimer.

Referenced by lfg::LFGMgr::TeleportPlayer().

◆ IsNeedCastPassiveSpellAtLearn()

◆ IsNeverVisible()

bool Player::IsNeverVisible ( ) const
overridevirtual

Reimplemented from WorldObject.

Definition at line 18071 of file Player.cpp.

References GetSession(), and WorldObject::IsNeverVisible().

◆ IsOutdoorPvPActive()

◆ IsPetNeedBeTemporaryUnsummoned()

◆ IsQuestRewarded()

bool Player::IsQuestRewarded ( uint32 quest_id) const

Definition at line 18380 of file Player.cpp.

References m_RewardedQuests.

Referenced by WorldSession::getDialogStatus(), and LuaPlayer::HasReceivedQuestReward().

◆ IsResearchBranchUnlocked()

bool Player::IsResearchBranchUnlocked ( uint32 researchBranchId) const

◆ IsResearchDigsiteAvailable()

◆ IsRessurectRequested()

◆ IsRessurectRequestedBy()

bool Player::IsRessurectRequestedBy ( uint64 guid) const
inline

Definition at line 2203 of file Player.h.

References _resurrectionData, and IsRessurectRequested().

◆ isRested()

bool Player::isRested ( ) const
inline

Definition at line 2775 of file Player.h.

References GetRestTime(), and IN_MILLISECONDS.

Referenced by LuaPlayer::IsRested().

◆ IsSpellFitByClassAndRace()

bool Player::IsSpellFitByClassAndRace ( uint32 spell_id) const

◆ isTaxiCheater()

bool Player::isTaxiCheater ( ) const
inline

Definition at line 1382 of file Player.h.

References m_ExtraFlags, and PLAYER_EXTRA_TAXICHEAT.

Referenced by LuaPlayer::IsTaxiCheater(), and WorldSession::SendTaxiMenu().

◆ isTotalImmune()

bool Player::isTotalImmune ( )

◆ isTotalImmunity()

◆ IsTwoHandUsed()

◆ IsUnderWater()

bool Player::IsUnderWater ( ) const
overridevirtual

◆ IsUseEquipedWeapon()

bool Player::IsUseEquipedWeapon ( bool mainhand) const

◆ isUsingLfg()

bool Player::isUsingLfg ( )

◆ IsValidClass()

bool Player::IsValidClass ( uint8 Class)
inlinestatic

Definition at line 1902 of file Player.h.

References CLASSMASK_ALL_PLAYABLE.

◆ IsValidGender()

bool Player::IsValidGender ( uint8 Gender)
inlinestatic

◆ IsValidPos() [1/2]

bool Player::IsValidPos ( uint16 pos,
bool explicit_pos )
inline

Definition at line 1547 of file Player.h.

References IsValidPos().

Referenced by misc_commandscript::HandleItemMoveCommand(), and IsValidPos().

◆ IsValidPos() [2/2]

◆ IsValidRace()

bool Player::IsValidRace ( uint8 Race)
inlinestatic

Definition at line 1906 of file Player.h.

References RACEMASK_ALL_PLAYABLE.

Referenced by WorldSession::HandleRandomizeCharNameOpcode().

◆ IsVisibleGloballyFor()

◆ IsVoidStorageUnlocked()

◆ IsWithinResearchDigsite()

bool Player::IsWithinResearchDigsite ( ResearchDigsite * digsite) const

◆ ItemAddedQuestCheck()

◆ ItemRemovedQuestCheck()

◆ JoinedChannel()

void Player::JoinedChannel ( Channel * c)

Definition at line 5649 of file Player.cpp.

References m_channels.

Referenced by Channel::JoinChannel().

◆ KillCreditGO()

◆ KilledMonster()

◆ KilledMonsterCredit()

void Player::KilledMonsterCredit ( uint32 entry,
uint64 guid = 0 )

Definition at line 1715 of file PlayerQuestState.cpp.

References ACHIEVEMENT_CRITERIA_TYPE_KILL_CREATURE, ACHIEVEMENT_TIMED_TYPE_CREATURE, QuestObjective::Amount, CanCompleteQuest(), CompleteQuest(), Map::GetCreature(), GetDifficulty(), Object::GetEntry(), GetGroup(), WorldObject::GetMap(), GetQuestObjectiveCounter(), Quest::GetQuestObjectiveCountType(), GetQuestSlotQuestId(), QuestObjective::Id, Quest::IsAllowedInRaid(), Quest::m_questObjectives, m_questObjectiveStatus, m_questObjectiveStatusSave, m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, QuestObjective::ObjectId, QUEST_OBJECTIVE_TYPE_NPC, QUEST_STATUS_INCOMPLETE, SendQuestUpdateAddCredit(), sObjectMgr, StartTimedAchievement(), QuestStatusData::Status, QuestObjective::Type, and UpdateAchievementCriteria().

Referenced by npc_transient::npc_transientAI::GiveClueCredit(), OutdoorPvPSI::HandleAreaTrigger(), spell_q12659_ahunaes_knife::spell_q12659_ahunaes_knife_SpellScript::HandleDummy(), spell_q12937_relief_for_the_fallen::spell_q12937_relief_for_the_fallen_SpellScript::HandleDummy(), spell_q9874_liquid_fire::spell_q9874_liquid_fire_SpellScript::HandleDummy(), OutdoorPvPNA::HandleKillImpl(), spell_q12805_lifeblood_dummy::spell_q12805_lifeblood_dummy_SpellScript::HandleScript(), npc_magmoth_crusher::npc_magmoth_crusherAI::JustDied(), npc_nerubar_victim::npc_nerubar_victimAI::JustDied(), npc_netherweb_victim::npc_netherweb_victimAI::JustDied(), KilledMonster(), LuaPlayer::KilledMonsterCredit(), npc_creditmarker_visit_with_ancestors::npc_creditmarker_visit_with_ancestorsAI::MoveInLineOfSight(), spell_gen_rice_pudding::spell_gen_rice_pudding_SpellScript::PrepareSpellScript(), RewardPlayerAndGroupAtEvent(), npc_jungle_punch_target::npc_jungle_punch_targetAI::SpellHit(), npc_lazy_peon::npc_lazy_peonAI::SpellHit(), TryApplyHarrisAmpule(), npc_dragonmaw_peon::npc_dragonmaw_peonAI::UpdateAI(), and npc_seaforium_depth_charge::npc_seaforium_depth_chargeAI::UpdateAI().

◆ KilledPlayerCredit()

◆ KillPlayer()

◆ learnDefaultSpells()

◆ learnQuestRewardedSpells() [1/2]

◆ learnQuestRewardedSpells() [2/2]

◆ learnSkillRewardedSpells()

◆ learnSpell()

◆ learnSpellHighRank()

void Player::learnSpellHighRank ( uint32 spellid)

◆ LearnTalent()

◆ LeaveBattleground()

◆ LeaveLFGChannel()

void Player::LeaveLFGChannel ( )

Definition at line 5755 of file Player.cpp.

References m_channels.

◆ LeftChannel()

void Player::LeftChannel ( Channel * c)

Definition at line 5654 of file Player.cpp.

References m_channels.

Referenced by Channel::KickOrBan(), Channel::LeaveChannel(), and UpdateLocalChannels().

◆ LoadCorpse()

◆ LoadFromDB()

bool Player::LoadFromDB ( uint32 guid,
SQLQueryHolder * holder )

Definition at line 12180 of file Player.cpp.

References Object::_Create(), _LoadActions(), _LoadAuras(), _LoadBGData(), _LoadBoundInstances(), _LoadCUFProfiles(), _LoadCurrency(), _LoadDailyQuestStatus(), _LoadDeclinedNames(), _LoadEquipmentSets(), _LoadGlyphAuras(), _LoadGlyphs(), _LoadGroup(), _LoadHomeBind(), _LoadInstanceTimeRestrictions(), Object::_LoadIntoDataField(), _LoadInventory(), _LoadMailInit(), _LoadMonthlyQuestStatus(), _LoadQuestObjectiveStatus(), _LoadQuestStatus(), _LoadQuestStatusRewarded(), _LoadRandomBGStatus(), _LoadResearchDigsites(), _LoadResearchHistory(), _LoadResearchProjects(), _LoadSeasonalQuestStatus(), _LoadSkills(), _LoadSpellCooldowns(), _LoadSpells(), _LoadTalents(), _LoadVoidStorage(), _LoadWeeklyQuestStatus(), AddBattlegroundQueueId(), Battleground::AddOrSetPlayerToCorrectBgGroup(), ASSERT, AT_LOGIN_RENAME, AT_LOGIN_RESET_TALENTS, BATTLEGROUND_TYPE_NONE, CHAR_NAME_SUCCESS, CHAR_UPD_ADD_AT_LOGIN_FLAG, CharacterDatabase, CheckLoadedDungeonDifficultyID(), CheckLoadedRaidDifficultyID(), ObjectMgr::CheckPlayerName(), Unit::ClearInCombat(), CONFIG_GM_CHAT, CONFIG_GM_LOGIN_STATE, CONFIG_GM_VISIBLE_STATE, CONFIG_GM_WHISPERING_TO, DEAD, DEATH_EXPIRE_STEP, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Battleground::EventPlayerLoggedIn(), MapEntry::Expansion(), HashMapHolder< T >::Find(), GetActiveSpec(), Battleground::GetArenaType(), GetBattlegroundEntryPoint(), Unit::getClass(), GetDrunkValue(), Field::GetFloat(), Object::GetGUID(), Object::GetGUIDLow(), Battleground::GetInstanceID(), GetInstanceSave(), WorldLocation::GetMapId(), Unit::GetMaxHealth(), WorldObject::GetName(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::GetPowerIndex(), SQLQueryHolder::GetPreparedResult(), Unit::getRace(), GetRestBonus(), GetSession(), GetSpecsCount(), Battleground::GetStatus(), Field::GetString(), GetTalentSpecialization(), GetTeam(), Battleground::GetTypeID(), Field::GetUInt16(), Field::GetUInt32(), Object::GetUInt32Value(), Field::GetUInt64(), Field::GetUInt8(), Object::HasFlag(), HasSkill(), HasTitle(), HIGHGUID_MO_TRANSPORT, HIGHGUID_PLAYER, InitDisplayIds(), InitGlyphsForLevel(), InitPrimaryProfessions(), InitRunes(), InitStatsForLevel(), InitTalentForLevel(), InitTaxiNodesForLevel(), Unit::IsAlive(), Map::IsBattlegroundOrArena(), MapEntry::IsBattlegroundOrArena(), Battleground::IsPlayerInBattleground(), Position::IsPositionValid(), IsValidGender(), Skyfire::IsValidMapCoord(), IsVoidStorageUnlocked(), KNOWN_TITLES_SIZE, learnDefaultSpells(), m_achievementMgr, m_atLoginFlags, m_battlePetMgr, m_bgData, m_cinematic, m_deathExpireTime, Unit::m_deathState, m_grantableLevels, m_items, m_lastHonorUpdateTime, WorldObject::m_movementInfo, WorldObject::m_name, m_nextSave, m_Played_time, m_reputationMgr, m_rest_bonus, m_social, m_stableSlots, m_taxi, WorldObject::m_transport, MAKE_NEW_GUID(), TaxiNodesEntry::map_id, PlayerInfo::mapId, MAX_DEATH_COUNT, MAX_MONEY_AMOUNT, MAX_PET_STABLES, MAX_POWERS, MAX_POWERS_PER_CLASS, MAX_TALENT_SPEC, MAX_TALENT_SPECS, MIN_TALENT_SPECS, OBJECT_FIELD_DYNAMIC_FLAGS, OBJECT_FIELD_GUID, outDebugValues(), PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_EXPLORED_ZONES_SIZE, PLAYER_EXTRA_ACCEPT_WHISPERS, PLAYER_EXTRA_GM_CHAT, PLAYER_EXTRA_GM_INVISIBLE, PLAYER_EXTRA_GM_ON, PLAYER_FIELD_ARENA_FACTION, PLAYER_FIELD_CURRENT_SPEC_ID, PLAYER_FIELD_DUEL_ARBITER, PLAYER_FIELD_DUEL_TEAM, PLAYER_FIELD_EXPLORED_ZONES, PLAYER_FIELD_FARSIGHT_OBJECT, PLAYER_FIELD_HAIR_COLOR_ID, PLAYER_FIELD_INV_SLOTS, PLAYER_FIELD_KNOWN_TITLES, PLAYER_FIELD_LFG_BONUS_FACTION_ID, PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, PLAYER_FIELD_LIFETIME_MAX_RANK, PLAYER_FIELD_NEXT_LEVEL_XP, PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FIELD_PLAYER_TITLE, PLAYER_FIELD_REST_STATE, PLAYER_FIELD_TRACK_CREATURE_MASK, PLAYER_FIELD_TRACK_RESOURCE_MASK, PLAYER_FIELD_VIRTUAL_PLAYER_REALM, PLAYER_FIELD_WATCHED_FACTION_INDEX, PLAYER_FIELD_XP, PLAYER_FIELD_YESTERDAY_HONORABLE_KILLS, PLAYER_FLAGS_GHOST, PLAYER_LOGIN_QUERY_LOAD_ACHIEVEMENTS, PLAYER_LOGIN_QUERY_LOAD_ACTIONS, PLAYER_LOGIN_QUERY_LOAD_AURAS, PLAYER_LOGIN_QUERY_LOAD_BANNED, PLAYER_LOGIN_QUERY_LOAD_BATTLE_PET_SLOTS, PLAYER_LOGIN_QUERY_LOAD_BATTLE_PETS, PLAYER_LOGIN_QUERY_LOAD_BG_DATA, PLAYER_LOGIN_QUERY_LOAD_BOUND_INSTANCES, PLAYER_LOGIN_QUERY_LOAD_CRITERIA_PROGRESS, PLAYER_LOGIN_QUERY_LOAD_CUF_PROFILES, PLAYER_LOGIN_QUERY_LOAD_CURRENCY, PLAYER_LOGIN_QUERY_LOAD_DAILY_QUEST_STATUS, PLAYER_LOGIN_QUERY_LOAD_DECLINED_NAMES, PLAYER_LOGIN_QUERY_LOAD_EQUIPMENT_SETS, PLAYER_LOGIN_QUERY_LOAD_FROM, PLAYER_LOGIN_QUERY_LOAD_GLYPHS, PLAYER_LOGIN_QUERY_LOAD_GROUP, PLAYER_LOGIN_QUERY_LOAD_HOME_BIND, PLAYER_LOGIN_QUERY_LOAD_INSTANCE_LOCK_TIMES, PLAYER_LOGIN_QUERY_LOAD_INVENTORY, PLAYER_LOGIN_QUERY_LOAD_MAIL_COUNT, PLAYER_LOGIN_QUERY_LOAD_MAIL_DATE, PLAYER_LOGIN_QUERY_LOAD_MONTHLY_QUEST_STATUS, PLAYER_LOGIN_QUERY_LOAD_QUEST_OBJECTIVE_STATUS, PLAYER_LOGIN_QUERY_LOAD_QUEST_STATUS, PLAYER_LOGIN_QUERY_LOAD_QUEST_STATUS_REW, PLAYER_LOGIN_QUERY_LOAD_RANDOM_BG, PLAYER_LOGIN_QUERY_LOAD_REPUTATION, PLAYER_LOGIN_QUERY_LOAD_RESEARCH_DIGSITES, PLAYER_LOGIN_QUERY_LOAD_RESEARCH_HISTORY, PLAYER_LOGIN_QUERY_LOAD_RESEARCH_PROJECTS, PLAYER_LOGIN_QUERY_LOAD_SEASONAL_QUEST_STATUS, PLAYER_LOGIN_QUERY_LOAD_SKILLS, PLAYER_LOGIN_QUERY_LOAD_SOCIAL_LIST, PLAYER_LOGIN_QUERY_LOAD_SPELL_COOLDOWNS, PLAYER_LOGIN_QUERY_LOAD_SPELLS, PLAYER_LOGIN_QUERY_LOAD_TALENTS, PLAYER_LOGIN_QUERY_LOAD_VOID_STORAGE, PLAYER_LOGIN_QUERY_LOAD_WEEKLY_QUEST_STATUS, PlayerInfo::positionX, PlayerInfo::positionY, PlayerInfo::positionZ, POWER_ECLIPSE, RATE_REST_OFFLINE_IN_TAVERN_OR_CITY, RATE_REST_OFFLINE_IN_WILDERNESS, rbac::RBAC_PERM_RESTORE_SAVED_GM_STATE, rbac::RBAC_PERM_SKIP_CHECK_CHARACTER_CREATION_RESERVEDNAME, Position::Relocate(), RelocateToHomebind, Unit::RemoveAllAurasOnDeath(), Unit::RemoveAllAurasRequiringDeadTarget(), Object::RemoveFlag(), Battleground::RemovePlayerAtLeave(), SaveRecallPosition(), sBattlegroundMgr, sChrSpecializationStore, SetAcceptWhispers(), SetActiveSpec(), SetAtLoginFlag(), Object::SetByteValue(), Unit::SetCanModifyStats(), Unit::SetClass(), Unit::SetCreatorGUID(), SetDrunkValue(), SetDungeonDifficulty(), setFactionForRace(), SetFallInformation(), Object::SetFlag(), Object::SetFloatValue(), SetGameMaster(), Unit::SetGender(), SetGMChat(), SetGMVisible(), Unit::SetHealth(), Object::SetInt32Value(), SetInviteForBattlegroundQueueType(), SetMap(), SetMoney(), SetObjectScale(), Unit::SetOwnerGUID(), WorldSession::SetPlayer(), Unit::SetPower(), Unit::SetRace(), SetRaidDifficulty(), SetRestBonus(), SetSpecsCount(), SetTalentResetCost(), SetTalentResetTime(), SetTalentSpecialization(), PreparedStatement::setUInt16(), Object::SetUInt16Value(), PreparedStatement::setUInt32(), Object::SetUInt32Value(), Object::SetUInt64Value(), SetVisibleItemSlot(), SF_LOG_DEBUG, SF_LOG_ERROR, sInstanceSaveMgr, Tokenizer::size(), SKILL_ARCHAEOLOGY, sMapMgr, sMapStore, sObjectMgr, sSocialMgr, STATUS_WAIT_LEAVE, sTaxiNodesStore, sWorld, AreaTriggerStruct::target_mapId, AreaTriggerStruct::target_Orientation, AreaTriggerStruct::target_X, AreaTriggerStruct::target_Y, AreaTriggerStruct::target_Z, UNIT_DYNFLAG_REFER_A_FRIEND, UNIT_FIELD_CHANNEL_OBJECT, UNIT_FIELD_CHANNEL_SPELL, UNIT_FIELD_CHARM, UNIT_FIELD_CHARMED_BY, UNIT_FIELD_FLAGS2, UNIT_FIELD_HOVER_HEIGHT, UNIT_FIELD_LEVEL, UNIT_FIELD_MAX_POWER, UNIT_FIELD_POWER, UNIT_FIELD_SUMMON, UNIT_FLAG2_FORCE_MOVEMENT, UpdateAllStats(), UpdateHonorFields(), UpdateItemDuration(), UpdateResearchDigsites(), UpdateResearchProjects(), UpdateSkillsForLevel(), WorldLocation::WorldLocation(), TaxiNodesEntry::x, TaxiNodesEntry::y, and TaxiNodesEntry::z.

Referenced by WorldSession::HandlePlayerLogin().

◆ LoadPet()

void Player::LoadPet ( )

Definition at line 13494 of file Player.cpp.

References Object::IsInWorld(), and Pet::LoadPetFromDB().

Referenced by WorldSession::HandlePlayerLogin().

◆ LoadPositionFromDB()

bool Player::LoadPositionFromDB ( uint32 & mapid,
float & x,
float & y,
float & z,
float & o,
bool & in_flight,
uint64 guid )
static

◆ LockVoidStorage()

void Player::LockVoidStorage ( )
inline

◆ ModifyCurrency()

◆ ModifyCurrencyFlag()

void Player::ModifyCurrencyFlag ( uint32 id,
uint8 flag )

◆ ModifyMoney()

◆ ModifySkillBonus()

void Player::ModifySkillBonus ( uint32 skillid,
int32 val,
bool talent )

◆ ModifySpellCooldown()

◆ MoneyChanged()

◆ MoveItemFromInventory()

void Player::MoveItemFromInventory ( uint8 bag,
uint8 slot,
bool update )

◆ MoveItemToInventory()

◆ OCTRegenMPPerSpirit()

float Player::OCTRegenMPPerSpirit ( )

◆ OnArchaeologyFindUsed()

◆ OnGossipSelect()

void Player::OnGossipSelect ( WorldObject * source,
uint32 gossipListId,
uint32 menuId )

Definition at line 11859 of file Player.cpp.

References BATTLEGROUND_TYPE_NONE, GossipMenuItem::BoxMoney, BUY_ERR_NOT_ENOUGHT_MONEY, Unit::CastSpell(), CONFIG_MIN_DUALSPEC_LEVEL, Object::GetEntry(), Object::GetGUID(), Object::GetGUIDLow(), GossipMenu::GetItem(), GossipMenu::GetItemData(), Unit::getLevel(), GossipMenu::GetMenuId(), GetSession(), GetSpecsCount(), Object::GetTypeId(), GOSSIP_OPTION_ARMORER, GOSSIP_OPTION_AUCTIONEER, GOSSIP_OPTION_BANKER, GOSSIP_OPTION_BATTLEFIELD, GOSSIP_OPTION_GOSSIP, GOSSIP_OPTION_INNKEEPER, GOSSIP_OPTION_LEARNDUALSPEC, GOSSIP_OPTION_OUTDOORPVP, GOSSIP_OPTION_PETITIONER, GOSSIP_OPTION_QUESTGIVER, GOSSIP_OPTION_SPIRITGUIDE, GOSSIP_OPTION_SPIRITHEALER, GOSSIP_OPTION_STABLEPET, GOSSIP_OPTION_TABARDDESIGNER, GOSSIP_OPTION_TAXIVENDOR, GOSSIP_OPTION_TRAINER, GOSSIP_OPTION_UNLEARN_SPEC, GOSSIP_OPTION_UNLEARNPETTALENTS, GOSSIP_OPTION_UNLEARNTALENTS, GOSSIP_OPTION_VENDOR, GossipMenuItemData::GossipActionMenuId, GossipMenuItemData::GossipActionPoi, HasEnoughMoney(), Unit::isDead(), ModifyMoney(), GossipMenuItem::OptionType, PlayerTalkClass, PrepareGossipMenu(), PrepareQuestMenu(), ResetPetTalents(), sBattlegroundMgr, WorldSession::SendAuctionHello(), WorldSession::SendBattleGroundList(), SendBuyFailed(), WorldSession::SendListInventory(), WorldSession::SendPetitionShowList(), SendPreparedGossip(), SendPreparedQuest(), WorldSession::SendShowBank(), WorldSession::SendStablePet(), WorldSession::SendTabardVendorActivate(), SendTalentWipeConfirm(), WorldSession::SendTaxiMenu(), WorldSession::SendTrainerList(), SetBindPoint(), SF_LOG_ERROR, sOutdoorPvPMgr, sWorld, Object::ToCreature(), TYPEID_GAMEOBJECT, and WorldObject::WorldObject().

◆ outDebugValues()

◆ PetSpellInitialize()

◆ PossessSpellInitialize()

◆ PrepareGossipMenu()

void Player::PrepareGossipMenu ( WorldObject * source,
uint32 menuId = 0,
bool showQuests = false )

Definition at line 11668 of file Player.cpp.

References GossipMenu::AddGossipMenuItemData(), GossipMenu::AddMenuItem(), CLASS_HUNTER, PlayerMenu::ClearMenus(), CONFIG_MIN_DUALSPEC_LEVEL, VendorItemData::Empty(), GAMEOBJECT_TYPE_GOOBER, GAMEOBJECT_TYPE_QUESTGIVER, Unit::getClass(), GetDefaultGossipMenuForSource(), PlayerMenu::GetGossipMenu(), GameObject::GetGoType(), Object::GetGUID(), Object::GetGUIDLow(), Unit::getLevel(), ObjectMgr::GetLocaleString(), GossipMenu::GetMenuId(), WorldObject::GetName(), GetPet(), GetSession(), WorldSession::GetSessionDbLocaleIndex(), GetSpecsCount(), GetTeam(), Object::GetTypeId(), Object::GetUInt32Value(), GOSSIP_OPTION_ARMORER, GOSSIP_OPTION_AUCTIONEER, GOSSIP_OPTION_BANKER, GOSSIP_OPTION_BATTLEFIELD, GOSSIP_OPTION_GOSSIP, GOSSIP_OPTION_INNKEEPER, GOSSIP_OPTION_LEARNDUALSPEC, GOSSIP_OPTION_OUTDOORPVP, GOSSIP_OPTION_PETITIONER, GOSSIP_OPTION_QUESTGIVER, GOSSIP_OPTION_SPIRITGUIDE, GOSSIP_OPTION_SPIRITHEALER, GOSSIP_OPTION_STABLEPET, GOSSIP_OPTION_TABARDDESIGNER, GOSSIP_OPTION_TAXIVENDOR, GOSSIP_OPTION_TRAINER, GOSSIP_OPTION_UNLEARN_SPEC, GOSSIP_OPTION_UNLEARNPETTALENTS, GOSSIP_OPTION_UNLEARNTALENTS, GOSSIP_OPTION_VENDOR, HUNTER_PET, Unit::isDead(), m_spells, MAKE_PAIR32(), PlayerTalkClass, PrepareQuestMenu(), sConditionMgr, WorldSession::SendLearnNewTaxiNode(), GossipMenu::SetMenuId(), SF_LOG_ERROR, sObjectMgr, sOutdoorPvPMgr, sWorld, Object::ToCreature(), Object::ToGameObject(), TRAINER_TYPE_CLASS, TRAINER_TYPE_PETS, TYPEID_GAMEOBJECT, TYPEID_UNIT, UNIT_FIELD_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER, and WorldObject::WorldObject().

Referenced by npc_marshal_dughan::OnGossipHello(), OnGossipSelect(), Spell::SendLoot(), and GameObject::Use().

◆ PrepareQuestMenu()

◆ ProcessDelayedOperations()

◆ ProhibitSpellSchool()

◆ QuestObjectiveSatisfy()

◆ QuickEquipItem()

◆ ReadMovementInfo()

void Player::ReadMovementInfo ( WorldPacket & data,
MovementInfo * mi,
Movement::ExtraMovementStatusElement * extras = NULL )

Anti-cheat checks. Please keep them in seperate if () blocks to maintain a clear overview. Might be subject to latency, so just remove improper flags.

This must be a packet spoofing attempt. MOVEMENTFLAG_ROOT sent from the client is not valid in conjunction with any of the moving movement flags such as MOVEMENTFLAG_FORWARD. It will freeze clients that receive this player's movement info.

Cannot hover without SPELL_AURA_HOVER

Cannot ascend and descend at the same time

Cannot move left and right at the same time

Cannot strafe left and right at the same time

Cannot pitch up and down at the same time

Cannot move forwards and backwards at the same time

Cannot walk on water without SPELL_AURA_WATER_WALK

Cannot feather fall without SPELL_AURA_FEATHER_FALL

Cannot fly if no fly auras present. Exception is being a GM. Note that we check for account level instead of Player::IsGameMaster() because in some situations it may be feasable to use .gm fly on as a GM without having .gm on, e.g. aerial combat.

Definition at line 22773 of file Player.cpp.

References MovementInfo::AddMovementFlag(), ASSERT, MovementInfo::JumpInfo::cosAngle, MovementInfo::JumpInfo::fallTime, MovementInfo::flags, MovementInfo::flags2, GetMovementStatusElementsSequence(), WorldPacket::GetOpcode(), GetOpcodeNameForLogging(), GetSession(), MovementInfo::guid, MovementInfo::TransportInfo::guid, Unit::HasAuraType(), MovementInfo::HasMovementFlag(), MovementInfo::jump, m_mover, M_PI, Position::m_positionX, Position::m_positionY, Position::m_positionZ, MOVEMENTFLAG_ASCENDING, MOVEMENTFLAG_BACKWARD, MOVEMENTFLAG_CAN_FLY, MOVEMENTFLAG_DESCENDING, MOVEMENTFLAG_DISABLE_GRAVITY, MOVEMENTFLAG_FALLING, MOVEMENTFLAG_FALLING_SLOW, MOVEMENTFLAG_FLYING, MOVEMENTFLAG_FORWARD, MOVEMENTFLAG_HOVER, MOVEMENTFLAG_LEFT, MOVEMENTFLAG_PITCH_DOWN, MOVEMENTFLAG_PITCH_UP, MOVEMENTFLAG_RIGHT, MOVEMENTFLAG_ROOT, MOVEMENTFLAG_SPLINE_ELEVATION, MOVEMENTFLAG_STRAFE_LEFT, MOVEMENTFLAG_STRAFE_RIGHT, MOVEMENTFLAG_WATERWALKING, MSECount, MSECounter, MSEEnd, MSEExtraElement, MSEFallCosAngle, MSEFallHorizontalSpeed, MSEFallSinAngle, MSEFallTime, MSEFallVerticalSpeed, MSEForces, MSEForcesCount, MSEGuidByte0, MSEGuidByte1, MSEGuidByte2, MSEGuidByte3, MSEGuidByte4, MSEGuidByte5, MSEGuidByte6, MSEGuidByte7, MSEHasCounter, MSEHasFallData, MSEHasFallDirection, MSEHasGuidByte0, MSEHasGuidByte1, MSEHasGuidByte2, MSEHasGuidByte3, MSEHasGuidByte4, MSEHasGuidByte5, MSEHasGuidByte6, MSEHasGuidByte7, MSEHasMountDisplayId, MSEHasMovementFlags, MSEHasMovementFlags2, MSEHasOrientation, MSEHasPitch, MSEHasSpline, MSEHasSplineElevation, MSEHasTimestamp, MSEHasTransportData, MSEHasTransportGuidByte0, MSEHasTransportGuidByte1, MSEHasTransportGuidByte2, MSEHasTransportGuidByte3, MSEHasTransportGuidByte4, MSEHasTransportGuidByte5, MSEHasTransportGuidByte6, MSEHasTransportGuidByte7, MSEHasTransportTime2, MSEHasTransportTime3, MSEMountDisplayIdWithCheck, MSEMountDisplayIdWithoutCheck, MSEMovementFlags, MSEMovementFlags2, MSEOneBit, MSEOrientation, MSEOrientationWithoutCheck, MSEPitch, MSEPositionX, MSEPositionY, MSEPositionZ, MSESplineElevation, MSETimestamp, MSETransportGuidByte0, MSETransportGuidByte1, MSETransportGuidByte2, MSETransportGuidByte3, MSETransportGuidByte4, MSETransportGuidByte5, MSETransportGuidByte6, MSETransportGuidByte7, MSETransportOrientation, MSETransportPositionX, MSETransportPositionY, MSETransportPositionZ, MSETransportSeat, MSETransportTime, MSETransportTime2, MSETransportTime3, MSEZeroBit, MovementInfo::pitch, MovementInfo::pos, MovementInfo::TransportInfo::pos, Movement::PrintInvalidSequenceElement(), ByteBuffer::read(), ByteBuffer::read_skip(), ByteBuffer::ReadBit(), ByteBuffer::ReadBits(), ByteBuffer::ReadByteSeq(), Movement::ExtraMovementStatusElement::ReadNextElement(), REMOVE_VIOLATING_FLAGS, MovementInfo::TransportInfo::seat, SEC_PLAYER, Position::SetOrientation(), Object::SetUInt32Value(), SF_LOG_ERROR, MovementInfo::JumpInfo::sinAngle, SPELL_AURA_FEATHER_FALL, SPELL_AURA_FLY, SPELL_AURA_HOVER, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, SPELL_AURA_WATER_WALK, MovementInfo::splineElevation, MovementInfo::time, MovementInfo::TransportInfo::time, MovementInfo::TransportInfo::time2, MovementInfo::TransportInfo::time3, Object::ToPlayer(), MovementInfo::transport, UNIT_FIELD_MOUNT_DISPLAY_ID, MovementInfo::JumpInfo::xyspeed, and MovementInfo::JumpInfo::zspeed.

Referenced by WorldSession::HandleChangeSeatsOnControlledVehicle(), and WorldSession::HandleMoveSetVehicleRecAck().

◆ ReadyCheckComplete()

◆ RecalculateRating()

void Player::RecalculateRating ( CombatRating cr)
inline

Definition at line 2352 of file Player.h.

References ApplyRatingMod().

Referenced by DestroyItem(), EquipItem(), RemoveItem(), and UpdateAllStats().

◆ RefundItem()

◆ Regenerate()

◆ RegenerateAll()

◆ RegenerateHealth()

◆ removeActionButton()

void Player::removeActionButton ( uint8 button)

◆ RemoveActiveQuest()

◆ RemoveAllSpellCooldown()

void Player::RemoveAllSpellCooldown ( )

◆ RemoveArenaEnchantments()

◆ RemoveArenaSpellCooldowns()

void Player::RemoveArenaSpellCooldowns ( bool removeActivePetCooldowns = false)

◆ RemoveAtLoginFlag()

◆ RemoveBattlegroundQueueId()

void Player::RemoveBattlegroundQueueId ( BattlegroundQueueTypeId val)

◆ RemoveBattlegroundQueueJoinTime()

void Player::RemoveBattlegroundQueueJoinTime ( BattlegroundTypeId bgTypeId)
inline

Definition at line 2715 of file Player.h.

References m_bgData.

Referenced by Battleground::RemovePlayerAtLeave().

◆ RemoveCategoryCooldown()

void Player::RemoveCategoryCooldown ( uint32 cat)

Definition at line 4293 of file Player.cpp.

References RemoveSpellCooldown(), and sSpellsByCategoryStore.

◆ RemovedInsignia()

◆ RemoveEnchantmentDurations()

void Player::RemoveEnchantmentDurations ( Item * item)

Definition at line 10834 of file Player.cpp.

References m_enchantDuration, and Item::SetEnchantmentDuration().

Referenced by _StoreItem(), DestroyItem(), EquipItem(), and RemoveItem().

◆ RemoveFromBattlegroundOrBattlefieldRaid()

void Player::RemoveFromBattlegroundOrBattlefieldRaid ( )

◆ RemoveFromGroup() [1/2]

void Player::RemoveFromGroup ( Group * group,
uint64 guid,
RemoveMethod method = GROUP_REMOVEMETHOD_DEFAULT,
uint64 kicker = 0,
const char * reason = NULL )
static

◆ RemoveFromGroup() [2/2]

void Player::RemoveFromGroup ( RemoveMethod method = GROUP_REMOVEMETHOD_DEFAULT)
inline

◆ RemoveFromWhisperWhiteList()

void Player::RemoveFromWhisperWhiteList ( uint64 guid)
inline

Definition at line 3153 of file Player.h.

References WhisperList.

Referenced by message_commandscript::HandleWhispersCommand().

◆ RemoveFromWorld()

void Player::RemoveFromWorld ( )
overridevirtual
  • Release charmed creatures, unsummon totems and remove pets/guardians
  • Do not add/remove the player from the object storage
  • It will crash when updating the ObjectAccessor
  • The player should only be removed when logging out

Reimplemented from WorldObject.

Definition at line 2430 of file Player.cpp.

References GetBattlePetMgr(), WorldObject::GetName(), GetViewpoint(), Object::IsInWorld(), m_items, Object::m_uint32Values, m_zoneUpdateId, mMitems, PLAYER_SLOT_END, PLAYER_SLOT_START, Unit::RemoveFromWorld(), sBattlefieldMgr, SetViewpoint(), SF_LOG_ERROR, sOutdoorPvPMgr, StopCastingBindSight(), StopCastingCharm(), BattlePetMgr::UnSummonCurrentBattlePet(), UnsummonPetTemporaryIfAny(), and WorldObject::WorldObject().

Referenced by Map::RemovePlayerFromMap().

◆ RemoveItem()

◆ RemoveItemDependentAurasAndCasts()

◆ RemoveItemDurations()

void Player::RemoveItemDurations ( Item * item)

Definition at line 19496 of file Player.cpp.

References m_itemDuration.

Referenced by _StoreItem(), DestroyItem(), EquipItem(), and RemoveItem().

◆ RemoveItemFromBuyBackSlot()

◆ RemoveLootedObject()

void Player::RemoveLootedObject ( uint64 guid)

Definition at line 9341 of file Player.cpp.

References m_lootView.

Referenced by WorldSession::DoLootRelease().

◆ RemoveMail()

void Player::RemoveMail ( uint32 id)

Definition at line 12 of file PlayerMail.cpp.

References m_mail.

Referenced by WorldSession::HandleMailReturnToSender().

◆ RemoveMItem()

bool Player::RemoveMItem ( uint32 id)

Definition at line 101 of file PlayerMail.cpp.

References mMitems.

Referenced by WorldSession::HandleMailReturnToSender(), and WorldSession::HandleMailTakeItem().

◆ RemovePet()

◆ RemovePetitionsAndSigns()

◆ RemoveQuestSlotState()

void Player::RemoveQuestSlotState ( uint16 slot,
uint32 state )

◆ RemoveRewardedQuest()

void Player::RemoveRewardedQuest ( uint32 quest_id)

◆ RemoveRunesByAuraEffect()

void Player::RemoveRunesByAuraEffect ( AuraEffect const * aura)

◆ removeSpell()

void Player::removeSpell ( uint32 spell_id,
bool disabled = false,
bool learn_low_rank = true )

Definition at line 4073 of file Player.cpp.

References ABILITY_LEARNED_ON_GET_RACE_OR_CLASS_SKILL, addSpell(), AutoUnequipOffhandIfNeed(), Skyfire::SpellBook::BuildSupercededSpellPacket(), SkillLineEntry::categoryId, CONFIG_MAX_PRIMARY_TRADE_SKILL, CONFIG_OFFHAND_CHECK_AT_SPELL_UNLEARN, SpellEffectInfo::Effect, SpellInfo::Effects, GetFreePrimaryProfessionPoints(), Object::GetGUID(), Unit::GetMaxSkillValueForLevel(), GetPureMaxSkillValue(), GetPureSkillValue(), GetSession(), GetSkillStep(), GetTalentSpellCost(), GetTalentSpellPos(), GetUsedTalentCount(), HasSpell(), SkillLineEntry::id, SpellInfo::IsPassive(), SpellInfo::IsPrimaryProfessionFirstRank(), IsProfessionSkill(), SpellInfo::IsRanked(), SpellInfo::IsStackableWithRanks(), Unit::m_canDualWield, m_canTitanGrip, m_spells, MAX_SPELL_EFFECTS, SpellLearnSkillNode::maxvalue, PLAYERSPELL_CHANGED, PLAYERSPELL_NEW, PLAYERSPELL_REMOVED, PLAYERSPELL_TEMPORARY, Unit::RemoveOwnedAura(), Unit::RemovePetAura(), removeSpell(), WorldSession::SendPacket(), Unit::SetCanDualWield(), SetCanTitanGrip(), SetFreePrimaryProfessions(), SetSkill(), SetUsedTalentCount(), SpellLearnSkillNode::skill, SKILL_CATEGORY_CLASS, SKILL_CATEGORY_PROFESSION, SKILL_CATEGORY_SECONDARY, SKILL_RUNEFORGING, SMSG_REMOVED_SPELL, SPELL_EFFECT_DUAL_WIELD, sSkillLineStore, sSpellMgr, SpellLearnSkillNode::step, sWorld, SpellLearnSkillNode::value, and ByteBuffer::WriteBits().

Referenced by Guild::DeleteMember(), Spell::EffectUnlearnSpecialization(), learn_commandscript::HandleUnLearnCommand(), learnSkillRewardedSpells(), ProfessionUnlearnSpells(), LuaPlayer::RemoveSpell(), removeSpell(), RemoveTalent(), resetSpells(), ResetTalents(), and SetSkill().

◆ RemoveSpellCategoryCooldown()

void Player::RemoveSpellCategoryCooldown ( uint32 cat,
bool update = false )

Definition at line 4301 of file Player.cpp.

References m_spellCooldowns, RemoveSpellCooldown(), and sSpellsByCategoryStore.

◆ RemoveSpellCooldown()

◆ RemoveSpellMods()

void Player::RemoveSpellMods ( Spell * spell)

◆ RemoveTalent()

◆ RemoveTemporarySpell()

void Player::RemoveTemporarySpell ( uint32 spellId)

◆ RemoveTimedAchievement()

void Player::RemoveTimedAchievement ( AchievementCriteriaTimedTypes type,
uint32 entry )

Definition at line 21023 of file Player.cpp.

References m_achievementMgr.

◆ RemoveTimedQuest()

void Player::RemoveTimedQuest ( uint32 questId)
inline

Definition at line 1860 of file Player.h.

References m_timedquests.

Referenced by FailQuest(), and RewardQuest().

◆ RemoveTradeableItem()

void Player::RemoveTradeableItem ( Item * item)
Todo
should never allow an item to be added to m_itemSoulboundTradeable twice

Definition at line 59 of file PlayerTrade.cpp.

References m_itemSoulboundTradeable.

Referenced by _StoreItem(), DestroyItem(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), EquipItem(), and RemoveItem().

◆ RepopAtGraveyard()

◆ ReportedAfkBy()

void Player::ReportedAfkBy ( Player * reporter)

This player has been blamed to be inactive in a battleground.

Definition at line 18036 of file Player.cpp.

References CanReportAfkDueToLimit(), Unit::CastSpell(), GetBattleground(), Object::GetGUIDLow(), Battleground::GetStatus(), GetTeam(), Unit::HasAura(), m_bgData, Player(), and STATUS_IN_PROGRESS.

Referenced by WorldSession::HandleReportPvPAFK().

◆ ReputationChanged()

void Player::ReputationChanged ( FactionEntry const * factionEntry)

Definition at line 1952 of file PlayerQuestState.cpp.

References ReputationChangedQuestCheck().

◆ ReputationChanged2()

void Player::ReputationChanged2 ( FactionEntry const * factionEntry)

Definition at line 1957 of file PlayerQuestState.cpp.

References ReputationChangedQuestCheck().

◆ ReputationChangedQuestCheck()

◆ ResetAchievementCriteria()

void Player::ResetAchievementCriteria ( AchievementCriteriaTypes type,
uint64 miscValue1 = 0,
uint64 miscValue2 = 0,
bool evenIfCriteriaComplete = false )

◆ ResetAchievements()

void Player::ResetAchievements ( )

◆ ResetAllPowers()

◆ ResetContestedPvP()

◆ ResetCurrencyWeekCap()

void Player::ResetCurrencyWeekCap ( )

◆ ResetDailyQuestStatus()

void Player::ResetDailyQuestStatus ( )

Definition at line 19170 of file Player.cpp.

References m_DailyQuestChanged, m_DFQuests, and m_lastDailyQuestTime.

◆ ResetInstances()

◆ ResetMap()

void Player::ResetMap ( )
overridevirtual

◆ ResetMonthlyQuestStatus()

void Player::ResetMonthlyQuestStatus ( )

Definition at line 19202 of file Player.cpp.

References m_MonthlyQuestChanged, and m_monthlyquests.

◆ ResetPetTalents()

◆ ResetSeasonalQuestStatus()

void Player::ResetSeasonalQuestStatus ( uint16 event_id)

Definition at line 19192 of file Player.cpp.

References m_SeasonalQuestChanged, and m_seasonalquests.

◆ resetSpells()

◆ ResetTalents()

◆ ResetTimeSync()

void Player::ResetTimeSync ( )
protected

◆ ResetWeeklyQuestStatus()

void Player::ResetWeeklyQuestStatus ( )

Definition at line 19182 of file Player.cpp.

References m_WeeklyQuestChanged, and m_weeklyquests.

◆ RestoreAllSpellMods()

void Player::RestoreAllSpellMods ( uint32 ownerAuraId = 0,
Aura * aura = NULL )

Definition at line 16370 of file Player.cpp.

References CURRENT_MAX_SPELL, Unit::m_currentSpells, and RestoreSpellMods().

◆ RestoreBaseRune()

◆ RestoreSpellMods()

void Player::RestoreSpellMods ( Spell * spell,
uint32 ownerAuraId = 0,
Aura * aura = NULL )

◆ ResummonPetTemporaryUnSummonedIfAny()

◆ ResurectUsingRequestData()

void Player::ResurectUsingRequestData ( )

◆ ResurrectPlayer()

◆ ResyncRunes()

void Player::ResyncRunes ( uint8 count)

◆ RewardHonor()

bool Player::RewardHonor ( Unit * victim,
uint32 groupsize,
int32 honor = -1,
bool pvptoken = false )

Calculate the amount of honor gained based on the victim and the size of the group for which the honor is divided An exact honor value can also be given (overriding the calcs)

Definition at line 7316 of file Player.cpp.

References ACHIEVEMENT_CRITERIA_TYPE_EARN_HONORABLE_KILL, ACHIEVEMENT_CRITERIA_TYPE_HK_CLASS, ACHIEVEMENT_CRITERIA_TYPE_HK_RACE, ACHIEVEMENT_CRITERIA_TYPE_HONORABLE_KILL, ACHIEVEMENT_CRITERIA_TYPE_HONORABLE_KILL_AT_AREA, AddItem(), AddPct(), Object::ApplyModUInt32Value(), CONFIG_PVP_TOKEN_COUNT, CONFIG_PVP_TOKEN_ENABLE, CONFIG_PVP_TOKEN_ID, CONFIG_PVP_TOKEN_MAP_TYPE, CURRENCY_TYPE_HONOR_POINTS, WorldObject::GetAreaId(), GetBattleground(), GetBGTeam(), Unit::getClass(), Skyfire::XP::GetGrayLevel(), Object::GetGUID(), Unit::getLevel(), Unit::GetMaxPositiveAuraModifier(), Unit::getRace(), GetSession(), GetTeam(), Object::GetTypeId(), Object::GetUInt32Value(), Unit::HasAura(), Unit::HasAuraType(), Object::HasByteFlag(), Skyfire::Honor::hk_honor_at_level_f(), InArena(), InBattleground(), Creature::IsRacialLeader(), ModifyCurrency(), Player(), PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, PLAYER_FIELD_PLAYER_TITLE, PLAYER_FIELD_YESTERDAY_HONORABLE_KILLS, ChatHandler::PSendSysMessage(), RATE_HONOR, SCORE_BONUS_HONOR, WorldSession::SendPacket(), SMSG_PVP_CREDIT, SPELL_AURA_MOD_HONOR_GAIN_PCT, SPELL_AURA_NO_PVP_CREDIT, SPELL_AURA_PLAYER_INACTIVE, sWorld, Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, Unit::Unit(), UNIT_BYTE2_FLAG_FFA_PVP, UNIT_FIELD_SHAPESHIFT_FORM, UpdateAchievementCriteria(), UpdateHonorFields(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().

Referenced by KillRewarder::_RewardHonor(), OutdoorPvPSI::HandleAreaTrigger(), honor_commandscript::HandleHonorAddCommand(), honor_commandscript::HandleHonorAddKillCommand(), RewardQuest(), and Battleground::UpdatePlayerScore().

◆ RewardPlayerAndGroupAtEvent()

void Player::RewardPlayerAndGroupAtEvent ( uint32 creature_id,
WorldObject * pRewardSource )

◆ RewardPlayerAndGroupAtKill()

void Player::RewardPlayerAndGroupAtKill ( Unit * victim,
bool isBattleGround )

Definition at line 19757 of file Player.cpp.

References KillRewarder::Reward(), and Unit::Unit().

Referenced by Unit::Kill(), and Battleground::RewardXPAtKill().

◆ RewardQuest()

void Player::RewardQuest ( Quest const * quest,
uint32 reward,
Object * questGiver,
bool announce = true )
Todo
Poor design of mail system

Definition at line 624 of file PlayerQuestState.cpp.

References _SaveQuestStatus(), ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_DAILY_QUEST, ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_DAILY_QUEST_DAILY, ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST, ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST_COUNT, ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUESTS_IN_ZONE, ACHIEVEMENT_CRITERIA_TYPE_MONEY_FROM_QUEST_REWARD, AddPct(), QuestObjective::Amount, Quest::CalculateHonorGain(), CanStoreNewItem(), Unit::CastSpell(), CharacterDatabase, CONFIG_MAX_PLAYER_LEVEL, DestroyItemCount(), EQUIP_ERR_OK, FindQuestSlot(), Item::GenerateItemRandomPropertyId(), Unit::GetAuraEffectsByType(), Quest::GetCharTitleId(), GetGuildId(), Unit::getLevel(), Quest::GetQuestId(), Quest::GetRewardPackageItemId(), Quest::GetRewardSkillId(), Quest::GetRewardSkillPoints(), Quest::GetRewChoiceItemCount(), Quest::GetRewChoiceItemsCount(), Quest::GetRewItemsCount(), Quest::GetRewMailDelaySecs(), Quest::GetRewMailTemplateId(), Quest::GetRewMoney(), Quest::GetRewMoneyMaxLevel(), Quest::GetRewSpell(), Quest::GetRewSpellCast(), Quest::GetZoneOrSort(), GiveXP(), Quest::HasFlag(), HasPvPForcingQuest(), Quest::IsDaily(), Quest::IsDFQuest(), Quest::IsMonthly(), Quest::IsSeasonal(), Quest::IsWeekly(), Quest::m_questObjectives, m_RewardedQuests, m_RewardedQuestsSave, MAIL_CHECK_MASK_HAS_BODY, MAX_QUEST_LOG_SIZE, ModifyCurrency(), ModifyMoney(), NULL_BAG, NULL_SLOT, Object::Object(), QuestObjective::ObjectId, pvpInfo, QUEST_FLAGS_FLAGS_PVP, QUEST_OBJECTIVE_TYPE_CURRENCY, QUEST_OBJECTIVE_TYPE_ITEM, QUEST_OBJECTIVE_TYPE_MONEY, QUEST_REWARD_CURRENCY_COUNT, QUEST_SOURCE_ITEM_IDS_COUNT, RATE_DROP_MONEY, RATE_XP_GUILD_MODIFIER, RATE_XP_QUEST, RemoveActiveQuest(), RemoveTimedQuest(), Quest::RequiredSourceItemCount, Quest::RequiredSourceItemId, Quest::RewardCurrencyCount, Quest::RewardCurrencyId, RewardHonor(), Quest::RewardItemId, Quest::RewardItemIdCount, RewardReputation(), sCharTitlesStore, MailDraft::SendMailTo(), SendNewItem(), SendQuestReward(), SetCanDelayTeleport(), SetDailyQuestStatus(), SetMonthlyQuestStatus(), SetQuestSlot(), SetSeasonalQuestStatus(), SetTitle(), SetWeeklyQuestStatus(), sGuildMgr, SPELL_AURA_MOD_XP_QUEST_PCT, StoreNewItem(), sWorld, QuestObjective::Type, UpdateAchievementCriteria(), UpdatePvPState(), UpdateSkillPro(), and Quest::XPValue().

Referenced by CompleteQuest(), lfg::LFGMgr::FinishDungeon(), quest_commandscript::HandleQuestReward(), and LuaPlayer::RewardQuest().

◆ RewardReputation() [1/2]

◆ RewardReputation() [2/2]

◆ Satisfy()

◆ SatisfyQuestClass()

bool Player::SatisfyQuestClass ( Quest const * qInfo,
bool msg ) const

◆ SatisfyQuestConditions()

bool Player::SatisfyQuestConditions ( Quest const * qInfo,
bool msg )

◆ SatisfyQuestDay()

◆ SatisfyQuestExclusiveGroup()

◆ SatisfyQuestLevel()

◆ SatisfyQuestLog()

bool Player::SatisfyQuestLog ( bool msg)

◆ SatisfyQuestMonth()

bool Player::SatisfyQuestMonth ( Quest const * qInfo,
bool msg )

◆ SatisfyQuestNextChain()

bool Player::SatisfyQuestNextChain ( Quest const * qInfo,
bool msg )

◆ SatisfyQuestPrevChain()

bool Player::SatisfyQuestPrevChain ( Quest const * qInfo,
bool msg )

◆ SatisfyQuestPreviousQuest()

◆ SatisfyQuestRace()

bool Player::SatisfyQuestRace ( Quest const * qInfo,
bool msg )

◆ SatisfyQuestReputation()

◆ SatisfyQuestSeasonal()

bool Player::SatisfyQuestSeasonal ( Quest const * qInfo,
bool msg )

◆ SatisfyQuestSkill()

bool Player::SatisfyQuestSkill ( Quest const * qInfo,
bool msg ) const

◆ SatisfyQuestStatus()

bool Player::SatisfyQuestStatus ( Quest const * qInfo,
bool msg )

◆ SatisfyQuestTimed()

bool Player::SatisfyQuestTimed ( Quest const * qInfo,
bool msg )

◆ SatisfyQuestWeek()

bool Player::SatisfyQuestWeek ( Quest const * qInfo,
bool msg )

◆ SaveCUFProfile()

void Player::SaveCUFProfile ( uint8 id,
CUFProfile * profile )
inline

Definition at line 1865 of file Player.h.

References _CUFProfiles.

Referenced by WorldSession::HandleSaveCUFProfiles().

◆ SaveGoldToDB()

◆ SaveInventoryAndGoldToDB()

◆ SavePositionInDB()

◆ SaveRecallPosition()

◆ SaveResearchDigsiteToDB()

◆ SaveToDB()

void Player::SaveToDB ( bool create = false)

Insert query

Todo
: Filter out more redundant fields that can take their default value at player create

Definition at line 14300 of file Player.cpp.

References _SaveActions(), _SaveAuras(), _SaveBGData(), _SaveCUFProfiles(), _SaveCurrency(), _SaveDailyQuestStatus(), _SaveEquipmentSets(), _SaveGlyphs(), _SaveInstanceTimeRestrictions(), _SaveInventory(), _SaveMail(), _SaveMonthlyQuestStatus(), _SaveQuestObjectiveStatus(), _SaveQuestStatus(), _SaveResearchHistory(), _SaveResearchProjects(), _SaveSeasonalQuestStatus(), _SaveSkills(), _SaveSpellCooldowns(), _SaveSpells(), _SaveStats(), _SaveTalents(), _SaveVoidStorage(), _SaveWeeklyQuestStatus(), CHAR_INS_CHARACTER, CHAR_UPD_CHARACTER, CharacterDatabase, CONFIG_INTERVAL_SAVE, CONFIG_STATS_SAVE_ONLY_ON_LOGOUT, DELAYED_SAVE_PLAYER, EQUIPMENT_SLOT_END, finiteAlways(), GetActiveSpec(), Object::GetByteValue(), Unit::getClass(), GetDrunkValue(), GetDungeonDifficulty(), Unit::getGender(), Object::GetGUIDLow(), Unit::GetHealth(), WorldObject::GetInstanceId(), GetItemByPos(), Unit::getLevel(), WorldLocation::GetMapId(), GetMoney(), WorldObject::GetName(), Position::GetOrientation(), GetPet(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::GetPowerIndex(), Unit::getRace(), GetRaidDifficulty(), GetSession(), GetSpecsCount(), GetTalentResetCost(), GetTalentResetTime(), GetTalentSpecialization(), GetTeleportDest(), Object::GetUInt16Value(), Object::GetUInt32Value(), WorldObject::GetZoneId(), Object::HasFlag(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, IsBeingTeleported(), IsBeingTeleportedFar(), Object::IsInWorld(), KNOWN_TITLES_SIZE, m_achievementMgr, m_atLoginFlags, m_battlePetMgr, m_cinematic, m_deathExpireTime, m_ExtraFlags, m_grantableLevels, m_mailsUpdated, WorldObject::m_name, m_nextSave, m_Played_time, m_reputationMgr, m_rest_bonus, m_session, m_stableSlots, m_taxi, MAX_POWERS, MAX_POWERS_PER_CLASS, MAX_TALENT_SPECS, outDebugValues(), PET_SAVE_AS_CURRENT, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_EXPLORED_ZONES_SIZE, PLAYER_FIELD_EXPLORED_ZONES, PLAYER_FIELD_HAIR_COLOR_ID, PLAYER_FIELD_KNOWN_TITLES, PLAYER_FIELD_LFG_BONUS_FACTION_ID, PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, PLAYER_FIELD_LIFETIME_MAX_RANK, PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FIELD_PLAYER_TITLE, PLAYER_FIELD_REST_STATE, PLAYER_FIELD_VISIBLE_ITEMS, PLAYER_FIELD_WATCHED_FACTION_INDEX, PLAYER_FIELD_XP, PLAYER_FIELD_YESTERDAY_HONORABLE_KILLS, PLAYER_FLAGS_RESTING, WorldSession::SaveTutorialsData(), ScheduleDelayedOperation(), PreparedStatement::setFloat(), PreparedStatement::setString(), PreparedStatement::setUInt16(), PreparedStatement::setUInt32(), PreparedStatement::setUInt64(), PreparedStatement::setUInt8(), SF_LOG_DEBUG, sWorld, UNIT_FIELD_POWER, and UpdateHonorFields().

Referenced by WorldSession::HandleCharCreateCallback(), misc_commandscript::HandleFreezeCommand(), misc_commandscript::HandleReviveCommand(), misc_commandscript::HandleSaveCommand(), misc_commandscript::HandleUnFreezeCommand(), ProcessDelayedOperations(), LuaPlayer::SaveToDB(), SpawnCorpseBones(), and Update().

◆ Say()

void Player::Say ( std::string const & text,
const Language language )

◆ ScheduleDelayedOperation()

void Player::ScheduleDelayedOperation ( uint32 operation)
inlineprivate

◆ SendActionButtons()

◆ SendAttackSwingCancelAttack()

◆ SendAttackSwingError()

void Player::SendAttackSwingError ( AttackSwingError error)

◆ SendAurasForTarget()

◆ SendAutoRepeatCancel()

◆ SendBattlefieldWorldStates()

void Player::SendBattlefieldWorldStates ( )

Send misc stuff that needs to be sent on every login, like the battle timers.

Definition at line 10352 of file Player.cpp.

References BATTLEFIELD_BATTLEID_WG, ClockWorldState, CONFIG_WINTERGRASP_ENABLE, sBattlefieldMgr, SendUpdateWorldState(), and sWorld.

Referenced by SendInitWorldStates().

◆ SendBGWeekendWorldStates()

◆ SendBuyFailed()

◆ SendCanTakeQuestResponse()

◆ SendCinematicStart()

◆ SendClearAllCooldowns()

◆ SendClearCooldown()

◆ SendComboPoints()

◆ SendCooldownEvent()

void Player::SendCooldownEvent ( SpellInfo const * spellInfo,
uint32 itemId = 0,
Spell * spell = NULL,
bool setCooldown = true )

◆ SendCorpseReclaimDelay()

◆ SendCurrencies()

◆ SendDeclineGuildInvitation()

void Player::SendDeclineGuildInvitation ( std::string declinerName,
bool autoDecline = false )

◆ SendDirectMessage()

void Player::SendDirectMessage ( WorldPacket * data)

◆ SendDuelCountdown()

void Player::SendDuelCountdown ( uint32 counter)

◆ SendDungeonDifficulty()

◆ SendEnchantmentDurations()

void Player::SendEnchantmentDurations ( )

◆ SendEquipError()

◆ SendEquipmentSetList()

◆ SendExplorationExperience()

void Player::SendExplorationExperience ( uint32 Area,
uint32 Experience )

◆ SendGameError()

void Player::SendGameError ( GameError error,
uint32 arg1 = 0,
uint32 arg2 = 0 )

◆ SendInitialActionButtons()

void Player::SendInitialActionButtons ( ) const
inline

Definition at line 2226 of file Player.h.

References SendActionButtons().

Referenced by SendInitialPacketsBeforeAddToMap().

◆ SendInitialPacketsAfterAddToMap()

◆ SendInitialPacketsBeforeAddToMap()

◆ SendInitialSpells()

◆ SendInitialVisiblePackets()

void Player::SendInitialVisiblePackets ( Unit * target)

◆ SendInitWorldStates()

◆ SendInspectResult()

◆ SendInstanceResetWarning()

◆ SendItemDurations()

void Player::SendItemDurations ( )

Definition at line 11598 of file Player.cpp.

References m_itemDuration.

Referenced by SendInitialPacketsAfterAddToMap().

◆ SendItemRefundResult()

◆ SendLogXPGain()

void Player::SendLogXPGain ( uint32 GivenXP,
Unit * victim,
uint32 BonusXP,
bool recruitAFriend = false,
float group_rate = 1.0f )

◆ SendLoot()

void Player::SendLoot ( uint64 guid,
LootType loot_type,
bool isAoE = false )

Definition at line 9346 of file Player.cpp.

References AddLootedObject(), Loot::AddLooter(), ALL_PERMISSION, BATTLEGROUND_AV, GameObjectTemplate::chest, Loot::clear(), CORPSE_BONES, ItemTemplate::DisenchantID, Loot::FillLoot(), FREE_FOR_ALL, GAMEOBJECT_TYPE_CHEST, Loot::generateMoneyLoot(), GetBattleground(), ObjectAccessor::GetCorpse(), Map::GetCreature(), Creature::GetCreatureTemplate(), Object::GetEntry(), GameObject::getFishLoot(), Map::GetGameObject(), GameObject::GetGOInfo(), GetGroup(), Object::GetGUID(), GetItemByGuid(), Unit::getLevel(), GetLootGUID(), GameObjectTemplate::GetLootId(), GameObject::GetLootMode(), Creature::GetLootRecipient(), GameObject::getLootState(), WorldObject::GetMap(), GameObject::GetOwnerGUID(), GameObject::GetRespawnTime(), GetTeam(), Item::GetTemplate(), Corpse::GetType(), GO_ACTIVATED, GO_READY, Loot::gold, GROUP_LOOT, GROUP_PERMISSION, GameObjectTemplate::groupLootRules, INTERACTION_DISTANCE, IS_CORPSE_GUID(), IS_GAMEOBJECT_GUID(), IS_ITEM_GUID(), Unit::IsAlive(), Unit::IsFriendlyTo(), GameObject::isSpawnedByDefault(), WorldObject::IsWithinDistInMap(), Item::ItemContainerLoadLootFromDB(), Item::ItemContainerSaveLootToDB(), Corpse::loot, Creature::loot, GameObject::loot, Item::loot, LOOT_CORPSE, LOOT_DISENCHANTING, LOOT_FISHING, LOOT_FISHINGHOLE, LOOT_INSIGNIA, LOOT_MILLING, LOOT_PICKPOCKETING, LOOT_PROSPECTING, LOOT_SKINNING, Loot::loot_type, Corpse::lootForBody, Creature::lootForBody, Creature::lootForPickPocketed, Corpse::lootRecipient, LootTemplates_Creature, LootTemplates_Disenchant, LootTemplates_Gameobject, LootTemplates_Item, LootTemplates_Milling, LootTemplates_Pickpocketing, LootTemplates_Prospecting, LootTemplates_Skinning, Item::m_lootGenerated, m_lootView, m_session, MASTER_LOOT, MASTER_PERMISSION, ItemTemplate::MaxMoneyLoot, ItemTemplate::MinMoneyLoot, NEED_BEFORE_GREED, NONE_PERMISSION, OnArchaeologyFindUsed(), OWNER_PERMISSION, CreatureTemplate::pickpocketLootId, Player(), RATE_DROP_MONEY, ROUND_ROBIN, ROUND_ROBIN_PERMISSION, SendDirectMessage(), SendLootRelease(), Object::SetFlag(), SetLootGUID(), GameObject::SetLootState(), SF_LOG_DEBUG, CreatureTemplate::SkinLootId, SMSG_LOOT_RESPONSE, sWorld, GameObjectTemplate::type, UNIT_FIELD_FLAGS, UNIT_FLAG_LOOTING, Loot::unlootedCount, Group::UpdateLooterGuid(), and LootView::WriteData().

Referenced by Spell::EffectMilling(), Spell::EffectProspecting(), WorldSession::HandleLootOpcode(), WorldSession::HandleOpenItemOpcode(), RemovedInsignia(), Spell::SendLoot(), and GameObject::Use().

◆ SendLootRelease()

◆ SendMailResult()

◆ SendMessageToSet() [1/2]

◆ SendMessageToSet() [2/2]

void Player::SendMessageToSet ( WorldPacket * data,
Player const * skipped_rcvr )
overridevirtual

◆ SendMessageToSetInRange() [1/2]

void Player::SendMessageToSetInRange ( WorldPacket * data,
float dist,
bool self,
bool own_team_only )

◆ SendMessageToSetInRange() [2/2]

void Player::SendMessageToSetInRange ( WorldPacket * data,
float fist,
bool self )
overridevirtual

Reimplemented from WorldObject.

Definition at line 6875 of file Player.cpp.

References GetSession(), WorldSession::SendPacket(), and WorldObject::VisitNearbyWorldObject().

Referenced by Say(), SendMessageToSet(), TextEmote(), and Yell().

◆ SendMirrorTimer()

void Player::SendMirrorTimer ( MirrorTimerType Type,
uint32 MaxValue,
uint32 CurrentValue,
int32 Regen )
protected

◆ SendMovementSetCanTransitionBetweenSwimAndFly()

void Player::SendMovementSetCanTransitionBetweenSwimAndFly ( bool apply)

These methods send different packets to the client in apply and unapply case. These methods are only sent to the current unit.

Definition at line 22588 of file Player.cpp.

References NULL_OPCODE, Movement::PacketSender::Send(), SMSG_MOVE_SET_CAN_TRANSITION_BETWEEN_SWIM_AND_FLY, and SMSG_MOVE_UNSET_CAN_TRANSITION_BETWEEN_SWIM_AND_FLY.

◆ SendMovementSetCollisionHeight()

◆ SendMovieStart()

void Player::SendMovieStart ( uint32 MovieId)

◆ SendNewCurrency()

◆ SendNewItem()

◆ SendNewMail()

void Player::SendNewMail ( )

Definition at line 38 of file PlayerMail.cpp.

References GetSession(), WorldSession::SendPacket(), and SMSG_RECEIVED_MAIL.

Referenced by AddNewMailDeliverTime(), and Update().

◆ SendNotifyLootItemRemoved()

void Player::SendNotifyLootItemRemoved ( uint8 lootSlot,
ObjectGuid guid )

◆ SendNotifyLootMoneyRemoved()

void Player::SendNotifyLootMoneyRemoved ( ObjectGuid guid)

◆ SendOnCancelExpectedVehicleRideAura()

void Player::SendOnCancelExpectedVehicleRideAura ( )

◆ SendPreparedGossip()

◆ SendPreparedQuest()

◆ SendProficiency()

void Player::SendProficiency ( ItemClass itemClass,
uint32 itemSubclassMask )

Definition at line 16438 of file Player.cpp.

References GetSession(), WorldSession::SendPacket(), and SMSG_SET_PROFICIENCY.

Referenced by Spell::EffectProficiency().

◆ SendPushToPartyResponse()

◆ SendPvpRewards()

void Player::SendPvpRewards ( ) const

◆ SendQuestComplete()

void Player::SendQuestComplete ( Quest const * quest)

◆ SendQuestConfirmAccept()

◆ SendQuestFailed()

void Player::SendQuestFailed ( uint32 questId,
InventoryResult reason = EQUIP_ERR_OK )

◆ SendQuestReward()

◆ SendQuestTimerFailed()

void Player::SendQuestTimerFailed ( uint32 questId)

◆ SendQuestUpdateAddCredit()

◆ SendQuestUpdateAddPlayer()

void Player::SendQuestUpdateAddPlayer ( Quest const * quest,
QuestObjective const * objective,
uint16 oldCount,
uint16 addCount )

◆ SendRaidDifficulty()

void Player::SendRaidDifficulty ( int32 forcedDifficulty = -1)

◆ SendRaidInfo()

◆ SendRefundInfo()

◆ SendRemoveControlBar()

◆ SendResearchHistory()

void Player::SendResearchHistory ( )

◆ SendResetFailedNotify()

void Player::SendResetFailedNotify ( uint32 mapid)

Definition at line 15503 of file Player.cpp.

References GetSession(), WorldSession::SendPacket(), and SMSG_RESET_FAILED_NOTIFY.

◆ SendResetInstanceFailed()

void Player::SendResetInstanceFailed ( uint32 reason,
uint32 MapId )

◆ SendResetInstanceSuccess()

void Player::SendResetInstanceSuccess ( uint32 MapId)

Definition at line 15560 of file Player.cpp.

References GetSession(), WorldSession::SendPacket(), and SMSG_INSTANCE_RESET.

Referenced by Group::ResetInstances(), and ResetInstances().

◆ SendRespondInspectAchievements()

void Player::SendRespondInspectAchievements ( Player * player) const

Definition at line 21003 of file Player.cpp.

References m_achievementMgr, and Player().

Referenced by WorldSession::HandleQueryInspectAchievements().

◆ SendSavedInstances()

void Player::SendSavedInstances ( )

◆ SendSellResponse()

◆ SendSpellCooldown()

◆ SendSpellCooldowns()

◆ SendSurveyCastInfo()

◆ SendTalentsInfoData()

◆ SendTalentWipeConfirm()

◆ SendTimeSync()

◆ SendTransferAborted()

◆ SendUpdateToOutOfRangeGroupMembers()

void Player::SendUpdateToOutOfRangeGroupMembers ( )

Definition at line 18702 of file Player.cpp.

References GetGroup(), GetPet(), GROUP_UPDATE_FLAG_NONE, m_auraRaidUpdateMask, and m_groupUpdateMask.

Referenced by Update().

◆ SendUpdateWorldState()

◆ SetAcceptWhispers()

void Player::SetAcceptWhispers ( bool on)
inline

◆ SetActiveSpec()

void Player::SetActiveSpec ( uint8 spec)
inline

Definition at line 2078 of file Player.h.

References _talentMgr.

Referenced by ActivateSpec(), InitTalentForLevel(), and LoadFromDB().

◆ SetAtLoginFlag()

◆ SetAuraUpdateMaskForRaid()

void Player::SetAuraUpdateMaskForRaid ( uint8 slot)
inline

Definition at line 3001 of file Player.h.

References m_auraRaidUpdateMask.

◆ SetBankBagSlotCount()

void Player::SetBankBagSlotCount ( uint8 count)
inline

Definition at line 1556 of file Player.h.

References PLAYER_FIELD_REST_STATE, and Object::SetByteValue().

◆ SetBaseModValue()

void Player::SetBaseModValue ( BaseModGroup modGroup,
BaseModType modType,
float value )
inline

Definition at line 2630 of file Player.h.

References m_auraBaseMod.

Referenced by UpdateAllCritPercentages().

◆ SetBaseRune()

void Player::SetBaseRune ( uint8 index,
RuneType baseRune )
inline

Definition at line 3083 of file Player.h.

References m_runes.

Referenced by InitRunes().

◆ SetBattlegroundEntryPoint()

◆ SetBattlegroundId()

void Player::SetBattlegroundId ( uint32 val,
BattlegroundTypeId bgTypeId )

◆ SetBattlegroundOrBattlefieldRaid()

void Player::SetBattlegroundOrBattlefieldRaid ( Group * group,
int8 subgroup = -1 )

◆ SetBGTeam()

void Player::SetBGTeam ( uint32 team)

◆ SetBindPoint()

◆ SetCanBlock()

void Player::SetCanBlock ( bool value)

Definition at line 20245 of file Player.cpp.

References m_canBlock, and UpdateBlockPercentage().

◆ SetCanDelayTeleport()

void Player::SetCanDelayTeleport ( bool setting)
inlineprivate

Definition at line 3541 of file Player.h.

References m_bCanDelayTeleport.

Referenced by RewardQuest(), and Update().

◆ SetCanDodge()

void Player::SetCanDodge ( bool value)

Definition at line 20227 of file Player.cpp.

References m_canDodge, and UpdateDodgePercentage().

◆ SetCanParry()

void Player::SetCanParry ( bool value)

Definition at line 20236 of file Player.cpp.

References m_canParry, and UpdateParryPercentage().

◆ SetCanTitanGrip()

void Player::SetCanTitanGrip ( bool value)
inline

Definition at line 2620 of file Player.h.

References m_canTitanGrip.

Referenced by removeSpell().

◆ SetChampioningFaction()

void Player::SetChampioningFaction ( uint32 faction)
inline

Definition at line 3126 of file Player.h.

References m_ChampioningFaction.

Referenced by AuraEffect::HandleAuraDummy().

◆ SetChampioningType()

void Player::SetChampioningType ( uint8 type)
inline

Definition at line 3134 of file Player.h.

References m_ChampioningType.

Referenced by AuraEffect::HandleAuraDummy().

◆ setCinematic()

void Player::setCinematic ( uint8 cine)
inline

Definition at line 2218 of file Player.h.

References m_cinematic.

Referenced by WorldSession::HandleCharCreateCallback(), and WorldSession::HandlePlayerLogin().

◆ SetClientControl()

◆ SetComboPoints()

void Player::SetComboPoints ( int8 cp)
inline

Definition at line 1981 of file Player.h.

References m_comboPoints.

Referenced by AddComboPoints().

◆ SetCommandStatusOff()

◆ SetCommandStatusOn()

◆ SetContestedPvPTimer()

void Player::SetContestedPvPTimer ( uint32 newTime)
inline

Definition at line 2246 of file Player.h.

References m_contestedPvPTimer.

Referenced by Unit::SetContestedPvP().

◆ SetCurrency()

void Player::SetCurrency ( uint32 id,
uint32 count,
bool printLog = true )

initialize currency count for custom initialization at create character

Definition at line 7842 of file Player.cpp.

References _currencyStorage, PLAYERCURRENCY_NEW, PlayerCurrency::Quantity, and PlayerCurrency::state.

Referenced by Create().

◆ SetCurrentRune()

void Player::SetCurrentRune ( uint8 index,
RuneType currentRune )
inline

Definition at line 3087 of file Player.h.

References m_runes.

Referenced by ConvertRune(), and InitRunes().

◆ SetDailyQuestStatus()

void Player::SetDailyQuestStatus ( uint32 quest_id)

◆ setDeathState()

◆ SetDelayedTeleportFlag()

void Player::SetDelayedTeleportFlag ( bool setting)
inlineprivate

Definition at line 3549 of file Player.h.

References m_bHasDelayedTeleport.

Referenced by TeleportTo().

◆ SetDivider()

void Player::SetDivider ( uint64 guid)
inline

◆ SetDrunkValue()

◆ SetDungeonDifficulty()

void Player::SetDungeonDifficulty ( DifficultyID dungeon_difficulty)
inline

◆ SetEquipmentSet()

◆ setFactionForRace()

◆ SetFallInformation()

void Player::SetFallInformation ( uint32 time,
float z )

◆ SetForcedTeleportFar()

void Player::SetForcedTeleportFar ( bool forced)
inline

Definition at line 2514 of file Player.h.

References m_forcedTeleportFar, and SetSemaphoreTeleportForcedFar().

Referenced by lfg::LFGMgr::TeleportPlayer().

◆ SetFreePrimaryProfessions()

void Player::SetFreePrimaryProfessions ( uint16 profs)
inline

◆ SetGameMaster()

◆ SetGlyph()

void Player::SetGlyph ( uint8 slot,
uint32 glyph )

◆ SetGlyphSlot()

void Player::SetGlyphSlot ( uint8 slot,
uint32 slottype )
inline

Definition at line 2103 of file Player.h.

References PLAYER_FIELD_GLYPH_SLOTS, and Object::SetUInt32Value().

Referenced by InitGlyphsForLevel().

◆ SetGMChat()

void Player::SetGMChat ( bool on)
inline

Definition at line 1378 of file Player.h.

References m_ExtraFlags, and PLAYER_EXTRA_GM_CHAT.

Referenced by LoadFromDB(), and LuaPlayer::SetGMChat().

◆ SetGMVisible()

◆ SetGrantableLevels()

void Player::SetGrantableLevels ( uint8 val)
inline

Definition at line 2550 of file Player.h.

References m_grantableLevels.

Referenced by WorldSession::HandleAcceptGrantLevel().

◆ SetGroup()

void Player::SetGroup ( Group * group,
int8 subgroup = -1 )

◆ SetGroupInvite()

void Player::SetGroupInvite ( Group * group)
inline

Definition at line 2968 of file Player.h.

References m_groupInvite.

Referenced by Group::AddInvite(), Group::AddMember(), Player(), and Group::RemoveInvite().

◆ SetGroupUpdateFlag()

◆ SetGuildIdInvited()

void Player::SetGuildIdInvited ( uint32 GuildId)
inline

◆ SetGuildLevel()

void Player::SetGuildLevel ( uint32 level)
inline

◆ SetHomebind()

◆ SetInGameTime()

void Player::SetInGameTime ( uint32 time)
inline

Definition at line 1851 of file Player.h.

References m_ingametime.

Referenced by WorldSession::HandlePlayerLogin().

◆ SetInGuild()

◆ SetInviteForBattlegroundQueueType()

void Player::SetInviteForBattlegroundQueueType ( BattlegroundQueueTypeId bgQueueTypeId,
uint32 instanceId )

◆ SetInWater()

void Player::SetInWater ( bool apply)

◆ SetLastGuildInviterGUID()

void Player::SetLastGuildInviterGUID ( uint64 guid)
inline

◆ SetLastPetNumber()

void Player::SetLastPetNumber ( uint32 petnumber)
inline

Definition at line 2955 of file Player.h.

References m_lastpetnumber.

Referenced by Pet::LoadPetFromDB().

◆ SetLastPotionId()

void Player::SetLastPotionId ( uint32 item_id)
inline

Definition at line 2190 of file Player.h.

References m_lastPotionId.

Referenced by Spell::SendSpellCooldown().

◆ SetLastUsedRune()

void Player::SetLastUsedRune ( RuneType type)
inline

Definition at line 3079 of file Player.h.

References m_runes.

Referenced by Spell::TakeRunePower().

◆ SetLootGUID()

void Player::SetLootGUID ( uint64 guid)
inline

Definition at line 2397 of file Player.h.

References m_lootGuid.

Referenced by WorldSession::DoLootRelease(), and SendLoot().

◆ SetLootSpecialization()

void Player::SetLootSpecialization ( uint32 specialization)

◆ SetMap()

void Player::SetMap ( Map * map)
overridevirtual

Reimplemented from WorldObject.

Definition at line 21655 of file Player.cpp.

References m_mapRef, and WorldObject::SetMap().

Referenced by Map::AddPlayerToMap(), Create(), WorldSession::HandleMoveWorldportAckOpcode(), and LoadFromDB().

◆ SetMoney()

◆ SetMonthlyQuestStatus()

void Player::SetMonthlyQuestStatus ( uint32 quest_id)

Definition at line 19164 of file Player.cpp.

References m_MonthlyQuestChanged, and m_monthlyquests.

Referenced by RewardQuest().

◆ SetMover()

◆ SetObjectScale()

◆ SetOriginalGroup()

void Player::SetOriginalGroup ( Group * group,
int8 subgroup = -1 )

◆ SetPassOnGroupLoot()

void Player::SetPassOnGroupLoot ( bool bPassOnGroupLoot)
inline

Definition at line 3029 of file Player.h.

References m_bPassOnGroupLoot.

Referenced by WorldSession::HandleOptOutOfLootOpcode().

◆ SetPendingBind()

void Player::SetPendingBind ( uint32 instanceId,
uint32 bindTimer )

Definition at line 14002 of file Player.cpp.

References _pendingBindId, and _pendingBindTimer.

Referenced by InstanceMap::AddPlayerToMap(), Player(), and Update().

◆ SetPvP()

void Player::SetPvP ( bool state)

Definition at line 17477 of file Player.cpp.

References Unit::m_Controlled, and Unit::SetPvP().

Referenced by UpdatePvP().

◆ SetPvPDeath()

void Player::SetPvPDeath ( bool on)
inline

Definition at line 1395 of file Player.h.

References m_ExtraFlags, and PLAYER_EXTRA_PVP_DEATH.

Referenced by CreateCorpse(), and LuaPlayer::SetPvPDeath().

◆ SetQuestSlot()

◆ SetQuestSlotCounter()

◆ SetQuestSlotState()

void Player::SetQuestSlotState ( uint16 slot,
uint32 state )

◆ SetQuestSlotTimer()

void Player::SetQuestSlotTimer ( uint16 slot,
uint32 timer )

◆ SetQuestStatus()

◆ SetRaidDifficulty()

void Player::SetRaidDifficulty ( DifficultyID raid_difficulty)
inline

◆ SetRandomWinner()

void Player::SetRandomWinner ( bool isWinner)

◆ SetRank()

void Player::SetRank ( uint8 rankId)
inline

◆ SetReadyCheckTimer()

void Player::SetReadyCheckTimer ( uint32 timer)
inline

◆ setRegenTimerCount()

void Player::setRegenTimerCount ( uint32 time)
inline

Definition at line 1936 of file Player.h.

References m_regenTimerCount.

Referenced by AuraEffect::HandleAuraTransform().

◆ SetRegularAttackTime()

void Player::SetRegularAttackTime ( )

◆ SetReputation()

void Player::SetReputation ( uint32 factionentry,
uint32 value )

Definition at line 21977 of file Player.cpp.

References GetReputationMgr(), ReputationMgr::SetReputation(), and sFactionStore.

◆ SetRestBonus()

◆ SetRestTime()

void Player::SetRestTime ( uint32 v)
inline

Definition at line 2784 of file Player.h.

References m_restTime.

Referenced by LuaPlayer::SetRestTime().

◆ SetRestType()

void Player::SetRestType ( RestType n_r_type)
inline

Definition at line 1444 of file Player.h.

References rest_type.

Referenced by WorldSession::HandleAreaTriggerOpcode(), UpdateRestAreaState(), and UpdateZone().

◆ SetResurrectRequestData()

void Player::SetResurrectRequestData ( Unit * caster,
uint32 health,
uint32 mana,
uint32 appliedAura )

◆ SetRuneConvertAura()

void Player::SetRuneConvertAura ( uint8 index,
AuraEffect const * aura )

Definition at line 20542 of file Player.cpp.

References m_runes.

Referenced by AddRuneByAuraEffect(), InitRunes(), RemoveRunesByAuraEffect(), and RestoreBaseRune().

◆ SetRuneCooldown()

void Player::SetRuneCooldown ( uint8 index,
uint32 cooldown )

Definition at line 20536 of file Player.cpp.

References m_runes.

Referenced by Spell::EffectActivateRune(), InitRunes(), RegenerateAll(), and Spell::TakeRunePower().

◆ SetSaveTimer()

void Player::SetSaveTimer ( uint32 timer)
inline

Definition at line 2831 of file Player.h.

References m_nextSave.

◆ SetSeasonalQuestStatus()

void Player::SetSeasonalQuestStatus ( uint32 quest_id)

Definition at line 19154 of file Player.cpp.

References m_SeasonalQuestChanged, m_seasonalquests, sGameEventMgr, and sObjectMgr.

Referenced by RewardQuest().

◆ SetSeer()

void Player::SetSeer ( WorldObject * target)
inline

Definition at line 2818 of file Player.h.

References m_seer, and WorldObject::WorldObject().

◆ SetSelection()

void Player::SetSelection ( uint64 guid)
inline

Used for serverside target changes, does not apply to players.

Definition at line 1976 of file Player.h.

References Object::SetUInt64Value(), and UNIT_FIELD_TARGET.

Referenced by TeleportTo().

◆ SetSemaphoreTeleportFar()

void Player::SetSemaphoreTeleportFar ( bool semphsetting)
inline

Definition at line 2509 of file Player.h.

References mSemaphoreTeleport_Far.

Referenced by WorldSession::HandleMoveWorldportAckOpcode(), and TeleportTo().

◆ SetSemaphoreTeleportForcedFar()

void Player::SetSemaphoreTeleportForcedFar ( bool semphsetting)
inline

◆ SetSemaphoreTeleportNear()

void Player::SetSemaphoreTeleportNear ( bool semphsetting)
inline

Definition at line 2505 of file Player.h.

References mSemaphoreTeleport_Near.

Referenced by WorldSession::HandleMoveTeleportAck(), and TeleportTo().

◆ SetSheath()

◆ SetSkill()

◆ SetSpecializationResetCost()

void Player::SetSpecializationResetCost ( uint32 cost)
inline

Definition at line 2070 of file Player.h.

References _talentMgr.

◆ SetSpecializationResetTime()

void Player::SetSpecializationResetTime ( time_t time_)
inline

Definition at line 2072 of file Player.h.

References _talentMgr.

◆ SetSpecsCount()

void Player::SetSpecsCount ( uint8 count)
inline

Definition at line 2080 of file Player.h.

References _talentMgr.

Referenced by InitTalentForLevel(), LoadFromDB(), and UpdateSpecCount().

◆ SetSpellModTakingSpell()

void Player::SetSpellModTakingSpell ( Spell * spell,
bool apply )

Definition at line 16426 of file Player.cpp.

References Spell::getState(), m_spellModTakingSpell, and SPELL_STATE_FINISHED.

Referenced by Aura::UpdateOwner().

◆ SetSummonPoint()

void Player::SetSummonPoint ( uint32 mapid,
float x,
float y,
float z )

◆ SetTalentResetCost()

void Player::SetTalentResetCost ( uint32 cost)
inline

Definition at line 2068 of file Player.h.

References _talentMgr.

Referenced by LoadFromDB(), and ResetTalents().

◆ SetTalentResetTime()

void Player::SetTalentResetTime ( time_t time_)
inline

Definition at line 2074 of file Player.h.

References _talentMgr.

Referenced by LoadFromDB(), and ResetTalents().

◆ SetTalentSpecialization()

void Player::SetTalentSpecialization ( uint8 spec,
uint32 tree )
inline

Definition at line 2076 of file Player.h.

References _talentMgr.

Referenced by LoadFromDB(), and ResetTalents().

◆ SetTarget()

void Player::SetTarget ( uint64 )
inlinevirtual

Implements Unit.

Definition at line 1975 of file Player.h.

References OVERRIDE.

◆ SetTaxiCheater()

void Player::SetTaxiCheater ( bool on)
inline

◆ SetTemporaryUnsummonedPetNumber()

void Player::SetTemporaryUnsummonedPetNumber ( uint32 petnumber)
inline

Definition at line 2897 of file Player.h.

References m_temporaryUnsummonedPetNumber.

Referenced by Pet::LoadPetFromDB().

◆ SetTitle()

◆ SetUInt32ValueInArray()

void Player::SetUInt32ValueInArray ( Tokenizer & data,
uint16 index,
uint32 value )
static

Definition at line 15421 of file Player.cpp.

References Tokenizer::size().

◆ SetUsedTalentCount()

void Player::SetUsedTalentCount ( uint32 talents)
inline

Definition at line 2066 of file Player.h.

References _talentMgr.

Referenced by ActivateSpec(), addSpell(), and removeSpell().

◆ SetViewpoint()

◆ SetVirtualItemSlot()

void Player::SetVirtualItemSlot ( uint8 i,
Item * item )

◆ SetVisibleItemSlot()

◆ setWeaponChangeTimer()

void Player::setWeaponChangeTimer ( uint32 time)
inline

Definition at line 1940 of file Player.h.

References m_weaponChangeTimer.

◆ SetWeeklyQuestStatus()

void Player::SetWeeklyQuestStatus ( uint32 quest_id)

Definition at line 19148 of file Player.cpp.

References m_WeeklyQuestChanged, and m_weeklyquests.

Referenced by RewardQuest().

◆ ShowNeutralPlayerFactionSelectUI()

void Player::ShowNeutralPlayerFactionSelectUI ( )

◆ SolveResearchProject()

◆ SpawnCorpseBones()

◆ SplitItem()

◆ StartTimedAchievement()

void Player::StartTimedAchievement ( AchievementCriteriaTimedTypes type,
uint32 entry,
uint32 timeLost = 0 )

◆ StopCastingBindSight()

◆ StopCastingCharm()

◆ StopCinematic()

◆ StopMirrorTimer()

void Player::StopMirrorTimer ( MirrorTimerType Type)
protected

◆ StopMirrorTimers()

void Player::StopMirrorTimers ( )

◆ StoreItem()

◆ StoreLootItem()

◆ StoreNewItem()

◆ StoreNewItemInBestSlots()

◆ SummonIfPossible()

◆ SummonPet()

◆ SwapItem()

◆ SwapQuestSlot()

void Player::SwapQuestSlot ( uint16 slot1,
uint16 slot2 )

◆ SwapVoidStorageItem()

bool Player::SwapVoidStorageItem ( uint8 oldSlot,
uint8 newSlot )

Definition at line 22554 of file Player.cpp.

References _voidStorageItems, and VOID_STORAGE_MAX_SLOT.

Referenced by WorldSession::HandleVoidSwapItem().

◆ TakeQuestSourceItem()

◆ TalkedToCreature()

◆ TeamForRace()

◆ TeleportTo() [1/2]

bool Player::TeleportTo ( uint32 mapid,
float x,
float y,
float z,
float orientation,
uint32 options = 0 )

Definition at line 2090 of file Player.cpp.

References AURA_INTERRUPT_FLAG_CHANGE_MAP, AURA_INTERRUPT_FLAG_MOVE, AURA_INTERRUPT_FLAG_TURNING, CLASS_DEATH_KNIGHT, Unit::CombatStop(), DISABLE_TYPE_MAP, Unit::DisableSpline(), duel, DUEL_FLED, DuelComplete(), Unit::ExitVehicle(), MapEntry::Expansion(), GetBattleground(), GetBattlePetMgr(), Unit::getClass(), Unit::GetGameObject(), Object::GetGUIDLow(), WorldObject::GetMap(), WorldLocation::GetMapId(), WorldObject::GetName(), Position::GetOrientation(), GetPet(), Position::GetPosition(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetSession(), WorldObject::GetTransport(), Object::GetUInt64Value(), Unit::GetUnitMovementFlags(), WorldObject::GetVisibilityRange(), HasSpell(), InBattleground(), Unit::InterruptNonMeleeSpells(), MapEntry::IsBattleArena(), MapEntry::IsBattlegroundOrArena(), IsCanDelayTeleport(), DisableMgr::IsDisabledFor(), IsForcedTeleportFar(), IsGameMaster(), IsHasDelayedTeleport(), Object::IsInWorld(), Unit::IsNonMeleeSpellCasted(), MapManager::IsValidMapCoord(), WorldObject::IsWithinDist3d(), LeaveBattleground(), WorldObject::m_movementInfo, m_teleport_dest, m_teleport_options, WorldObject::m_transport, Unit::m_vehicle, MOVEMENTFLAG_MASK_HAS_PLAYER_STATUS_OPCODE, PLAYER_FIELD_DUEL_ARBITER, rbac::RBAC_PERM_SKIP_CHECK_DISABLE_MAP, Position::Relocate(), Unit::RemoveAllDynObjects(), Unit::RemoveArenaAuras(), RemoveArenaSpellCooldowns(), Unit::RemoveAurasWithInterruptFlags(), Map::RemovePlayerFromMap(), RepopAtGraveyard(), ResetContestedPvP(), WorldSession::SendPacket(), SendSavedInstances(), Unit::SendTeleportPacket(), SendTransferAborted(), SetDelayedTeleportFlag(), SetFallInformation(), SetSelection(), SetSemaphoreTeleportFar(), SetSemaphoreTeleportNear(), Unit::SetUnitMovementFlags(), SF_LOG_DEBUG, SF_LOG_ERROR, sMapMgr, sMapStore, SMSG_NEW_WORLD, SMSG_TRANSFER_PENDING, TELE_TO_NOT_LEAVE_COMBAT, TELE_TO_NOT_LEAVE_TRANSPORT, TELE_TO_NOT_UNSUMMON_PET, TELE_TO_SPELL, TRANSFER_ABORT_INSUF_EXPAN_LVL, TRANSFER_ABORT_MAP_NOT_ALLOWED, BattlePetMgr::UnSummonCurrentBattlePet(), UnsummonPetTemporaryIfAny(), WorldLocation::WorldLocation(), and ByteBuffer::WriteBit().

Referenced by ActivateTaxiPathTo(), BattlegroundSA::AddPlayer(), BattlegroundIC::DoAction(), Spell::EffectStuck(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), go_commandscript::HandleGoCreatureCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoObjectCommand(), go_commandscript::HandleGoTaxinodeCommand(), go_commandscript::HandleGoTriggerCommand(), go_commandscript::HandleGoXYZCommand(), go_commandscript::HandleGoZoneXYCommand(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleMoveSplineDoneOpcode(), WorldSession::HandleMoveWorldportAckOpcode(), WorldSession::HandlePlayerLogin(), misc_commandscript::HandleRecallCommand(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleCommand(), tele_commandscript::HandleTeleGroupCommand(), tele_commandscript::HandleTeleNameCommand(), misc_commandscript::HandleUnstuckCommand(), WorldSession::HandleWorldTeleportOpcode(), Unit::NearTeleportTo(), lfg::LFGPlayerScript::OnMapChanged(), BattlefieldWG::OnPlayerJoinWar(), Battleground::RelocateDeadPlayers(), BfGraveyard::RelocateDeadPlayers(), Map::RemoveAllPlayers(), RepopAtGraveyard(), ResurectUsingRequestData(), BattlegroundMgr::SendToBattleground(), SummonIfPossible(), LuaPlayer::Teleport(), lfg::LFGMgr::TeleportPlayer(), TeleportTo(), TicketInfo::TeleportTo(), TeleportToBGEntryPoint(), Transport::TeleportTransport(), Update(), and GameObject::Use().

◆ TeleportTo() [2/2]

◆ TeleportToBGEntryPoint()

◆ TextEmote()

void Player::TextEmote ( std::string const & text)

◆ ToggleAFK()

◆ ToggleDND()

void Player::ToggleDND ( )

Definition at line 2069 of file Player.cpp.

References PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FLAGS_DND, and Object::ToggleFlag().

Referenced by LuaPlayer::ToggleDND().

◆ ToggleMetaGemsActive()

◆ TradeCancel()

void Player::TradeCancel ( bool sendback,
TradeStatus status = TRADE_STATUS_CANCELLED )

◆ TryToSpawnResearchDigsiteOnContinent()

ResearchDigsite * Player::TryToSpawnResearchDigsiteOnContinent ( uint32 mapId)

◆ UnbindInstance() [1/2]

void Player::UnbindInstance ( BoundInstancesMap::iterator & itr,
DifficultyID difficulty,
bool unload = false )

◆ UnbindInstance() [2/2]

◆ UninviteFromGroup()

void Player::UninviteFromGroup ( )
  • If the player is invited, remove him. If the group if then only 1 person, disband the group.
Todo
Shouldn't we also check if there is no other invitees before disbanding the group?

Definition at line 3037 of file Player.cpp.

References Group::Disband(), GetGroupInvite(), Group::GetMembersCount(), Group::IsCreated(), Group::RemoveAllInvites(), and Group::RemoveInvite().

Referenced by WorldSession::HandleGroupInviteResponseOpcode().

◆ UnlockVoidStorage()

void Player::UnlockVoidStorage ( )
inline

◆ UnsummonPetTemporaryIfAny()

◆ Update()

void Player::Update ( uint32 time)
overridevirtual
Todo
add weapon, skill check

Reimplemented from WorldObject.

Definition at line 1387 of file Player.cpp.

References _instanceResetTimes, _pendingBindId, _pendingBindTimer, _readyCheckTimer, ATTACK_DISPLAY_DELAY, Unit::AttackerStateUpdate(), ATTACKSWINGERR_BADFACING, ATTACKSWINGERR_DEADTARGET, ATTACKSWINGERR_NOTINRANGE, BASE_ATTACK, BindToInstance(), Skyfire::PetTransport::BoardOwnerHunterPet(), BuildPlayerRepop(), CheckDuelDistance(), cinematicClientStartTime, cinematicSequence, cinematicVisibilityTimer, FailQuest(), Unit::getAttackTimer(), WorldObject::GetBaseMap(), Unit::GetCharmer(), GetDrunkValue(), Object::GetGUIDLow(), WorldObject::GetInstanceId(), WorldObject::GetMap(), getMSTime(), WorldObject::GetName(), GetPet(), GetRestBonus(), GetSession(), GetTimeInnEnter(), WorldObject::GetTransport(), Object::GetUInt32Value(), Unit::GetVictim(), WorldObject::GetVisibilityRange(), WorldObject::GetZoneAndAreaId(), HandleDrowning(), HandleSobering(), Unit::HasAuraType(), Object::HasFlag(), Position::HasInArc(), HasPendingBind(), Pet::HasTransportExitGrace(), Unit::HasUnitState(), Unit::haveOffhandWeapon(), IN_MILLISECONDS, inCinematic, Unit::IsAlive(), Unit::isAttackReady(), Unit::IsCharmed(), IsHasDelayedTeleport(), Object::IsInWorld(), Unit::isPossessed(), WorldObject::IsWithinDistInMap(), Unit::IsWithinMeleeRange(), JUST_DIED, KillPlayer(), LOGIN_UPD_MUTE_TIME, LoginDatabase, m_achievementMgr, m_areaUpdateId, Unit::m_deathState, m_deathTimer, m_drunkTimer, m_Last_tick, WorldSession::m_muteTime, m_nextMailDelivereTime, m_nextSave, Unit::m_overrideAutoattackRange, Unit::m_overrideAutoattackSpellInfo, M_PI, m_Played_time, m_QuestStatus, m_QuestStatusSave, Unit::m_regenTimer, m_spellModTakingSpell, m_swingErrorMsg, m_teleport_dest, m_teleport_options, m_timedquests, m_timeSyncTimer, m_weaponChangeTimer, m_zoneUpdateId, m_zoneUpdateTimer, OFF_ATTACK, PET_SAVE_NOT_IN_SLOT, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_FIELD_NEXT_LEVEL_XP, PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FLAGS_RESTING, RATE_REST_INGAME, ReadyCheckComplete(), RegenerateAll(), RemovePet(), RepopAtGraveyard(), Unit::resetAttackTimer(), roll_chance_i(), SaveToDB(), SendAttackSwingError(), SendNewMail(), SendTimeSync(), SendUpdateToOutOfRangeGroupMembers(), Unit::setAttackTimer(), SetCanDelayTeleport(), PreparedStatement::setInt64(), SetPendingBind(), SetRestBonus(), PreparedStatement::setString(), PreparedStatement::setUInt32(), SF_LOG_DEBUG, SF_LOG_FATAL, Skyfire::PetTransport::ShouldRemovePetForOwnerRange(), Skyfire::PetTransport::ShouldTryBoardPetBeforeOwnerRangeRemoval(), SPELL_AURA_PREVENT_RESURRECTION, sScriptMgr, StopCinematic(), sWorld, TeleportTo(), QuestStatusData::Timer, TYPEID_UNIT, Unit::Unit(), UNIT_STATE_CASTING, UNIT_STATE_MELEE_ATTACKING, unReadMails, Unit::Update(), UpdateAfkReport(), UpdateArea(), UpdateCharmedAI(), UpdateCinematicVisibility(), UpdateContestedPvP(), UpdateDuelFlag(), UpdateEnchantTime(), UpdateHomebindTime(), UpdateInnerTime(), UpdateItemDuration(), UpdatePvPFlag(), UpdateRestAreaState(), UpdateSoulboundTradeItems(), UpdateZone(), and ZONE_UPDATE_INTERVAL.

Referenced by Map::Update().

◆ UpdateAchievementCriteria()

void Player::UpdateAchievementCriteria ( AchievementCriteriaTypes type,
uint64 miscValue1 = 0,
uint64 miscValue2 = 0,
uint64 miscValue3 = 0,
Unit * unit = NULL )

◆ UpdateAfkReport()

void Player::UpdateAfkReport ( time_t currTime)

checks the 15 afk reports per 5 minutes limit

Definition at line 15585 of file Player.cpp.

References m_bgData, and MINUTE.

Referenced by Update().

◆ UpdateAllCritPercentages()

◆ UpdateAllRatings()

void Player::UpdateAllRatings ( )

Definition at line 6088 of file Player.cpp.

References MAX_COMBAT_RATING, and UpdateRating().

Referenced by UpdateAllStats().

◆ UpdateAllRunesRegen()

void Player::UpdateAllRunesRegen ( )

◆ UpdateAllSpellCritChances()

◆ UpdateAllStats()

◆ UpdateArea()

◆ UpdateAreaDependentAuras()

◆ UpdateArmor()

void Player::UpdateArmor ( )
overridevirtual

◆ UpdateArmorPenetration()

void Player::UpdateArmorPenetration ( int32 amount)

Definition at line 664 of file StatSystem.cpp.

References CR_ARMOR_PENETRATION, PLAYER_FIELD_COMBAT_RATINGS, and Object::SetUInt32Value().

Referenced by UpdateRating().

◆ UpdateAttackPowerAndDamage()

void Player::UpdateAttackPowerAndDamage ( bool ranged = false)
overridevirtual

Implements Unit.

Definition at line 300 of file StatSystem.cpp.

References ChrClassesEntry::APPerAgility, ChrClassesEntry::APPerStrenth, BASE_ATTACK, BASE_PCT, BASE_VALUE, CalculatePct(), Unit::CanDualWield(), SpellShapeshiftFormEntry::flags1, Unit::getClass(), Object::GetFloatValue(), Unit::GetGuardianPet(), Object::GetInt32Value(), Unit::getLevel(), Unit::GetModifierValue(), GetPet(), Unit::GetShapeshiftForm(), Unit::GetStat(), Unit::HasAuraType(), Unit::haveOffhandWeapon(), Unit::IsHunterPet(), Minion::IsPetGhoul(), Minion::IsSpiritWolf(), MAX_SPELL_SCHOOL, OFF_ATTACK, PLAYER_FIELD_MOD_DAMAGE_DONE_POS, PLAYER_FIELD_MOD_HEALING_DONE_POS, PLAYER_FIELD_OVERRIDE_APBY_SPELL_POWER_PERCENT, RANGED_ATTACK, ChrClassesEntry::RAPPerAgility, sChrClassesStore, Object::SetFloatValue(), Object::SetInt32Value(), Unit::SetModifierValue(), SPELL_AURA_OVERRIDE_AP_BY_SPELL_POWER_PCT, SPELL_AURA_OVERRIDE_SPELL_POWER_BY_AP_PCT, SPELL_SCHOOL_HOLY, sSpellShapeshiftFormStore, STAT_AGILITY, STAT_STRENGTH, TOTAL_PCT, TOTAL_VALUE, UNIT_FIELD_ATTACK_POWER, UNIT_FIELD_ATTACK_POWER_MOD_POS, UNIT_FIELD_ATTACK_POWER_MULTIPLIER, UNIT_FIELD_RANGED_ATTACK_POWER, UNIT_FIELD_RANGED_ATTACK_POWER_MOD_POS, UNIT_FIELD_RANGED_ATTACK_POWER_MULTIPLIER, UNIT_MOD_ATTACK_POWER, UNIT_MOD_ATTACK_POWER_RANGED, Guardian::UpdateAttackPowerAndDamage(), UpdateDamagePhysical(), and UpdateSpellDamageAndHealingBonus().

Referenced by ApplySpellPowerBonus(), AuraEffect::HandleOverrideAttackPowerBySpellPower(), InitDataForForm(), UpdateAllStats(), UpdateArmor(), UpdateSpellDamageAndHealingBonus(), and UpdateStats().

◆ UpdateBlockPercentage()

◆ UpdateCharmedAI()

◆ UpdateCinematicVisibility()

void Player::UpdateCinematicVisibility ( )

◆ UpdateConquestCurrencyCap()

void Player::UpdateConquestCurrencyCap ( uint32 currency)
protected

◆ UpdateContestedPvP()

void Player::UpdateContestedPvP ( uint32 currTime)

Definition at line 15594 of file Player.cpp.

References Unit::IsInCombat(), m_contestedPvPTimer, and ResetContestedPvP().

Referenced by Update().

◆ UpdateCorpseReclaimDelay()

◆ UpdateCraftSkill()

◆ UpdateCritPercentage()

◆ UpdateDamagePhysical()

◆ UpdateDodgePercentage()

◆ UpdateDuelFlag()

void Player::UpdateDuelFlag ( time_t currTime)

Definition at line 15624 of file Player.cpp.

References duel, PLAYER_FIELD_DUEL_TEAM, Object::SetUInt32Value(), and sScriptMgr.

Referenced by Update().

◆ UpdateEnchantTime()

void Player::UpdateEnchantTime ( uint32 time)

Definition at line 10794 of file Player.cpp.

References ApplyEnchantment(), ASSERT, and m_enchantDuration.

Referenced by Update().

◆ UpdateEquipSpellsAtFormChange()

void Player::UpdateEquipSpellsAtFormChange ( )

◆ UpdateExpertise()

◆ UpdateFallInformationIfNeed()

◆ UpdateFishingSkill()

bool Player::UpdateFishingSkill ( )

◆ UpdateForQuestWorldObjects()

◆ UpdateGatherSkill()

◆ UpdateHomebindTime()

◆ UpdateHonorFields()

void Player::UpdateHonorFields ( )

◆ UpdateInnerTime()

void Player::UpdateInnerTime ( time_t time)
inline

Definition at line 1490 of file Player.h.

References time_inn_enter.

Referenced by Update().

◆ UpdateItemDuration()

void Player::UpdateItemDuration ( uint32 time,
bool realtimeonly = false )

◆ UpdateLocalChannels()

◆ UpdateManaRegen()

◆ UpdateMastery()

◆ UpdateMaxHealth()

void Player::UpdateMaxHealth ( )
overridevirtual

◆ UpdateMaxPower()

◆ UpdateMeleeHitChances()

void Player::UpdateMeleeHitChances ( )

◆ UpdateMirrorTimers()

void Player::UpdateMirrorTimers ( )

Definition at line 1201 of file Player.cpp.

References m_MirrorTimerFlags, and m_MirrorTimerFlagsLast.

Referenced by AuraEffect::HandleWaterBreathing().

◆ UpdateNextMailTimeAndUnreads()

void Player::UpdateNextMailTimeAndUnreads ( )

Definition at line 46 of file PlayerMail.cpp.

References m_mail, m_nextMailDelivereTime, MAIL_CHECK_MASK_READ, and unReadMails.

◆ UpdateObjectVisibility()

◆ UpdateParryPercentage()

◆ UpdatePhasing()

◆ UpdatePosition() [1/2]

bool Player::UpdatePosition ( const Position & pos,
bool teleport = false )
inline

◆ UpdatePosition() [2/2]

bool Player::UpdatePosition ( float x,
float y,
float z,
float orientation,
bool teleport = false )
overridevirtual

◆ UpdatePotionCooldown()

void Player::UpdatePotionCooldown ( Spell * spell = NULL)

◆ UpdatePvP()

◆ UpdatePvPFlag()

void Player::UpdatePvPFlag ( time_t currTime)

Definition at line 15613 of file Player.cpp.

References Unit::IsPvP(), pvpInfo, and UpdatePvP().

Referenced by Update().

◆ UpdatePvpPower()

◆ UpdatePvPState()

◆ UpdateRangedHitChances()

void Player::UpdateRangedHitChances ( )

◆ UpdateRating()

◆ UpdateResearchDigsites()

◆ UpdateResearchProjects()

◆ UpdateResistances()

void Player::UpdateResistances ( uint32 school)
overridevirtual

◆ UpdateRestAreaState()

◆ UpdateRuneRegen()

◆ UpdateSkill()

◆ UpdateSkillEnchantments()

◆ UpdateSkillPro()

◆ UpdateSkillsForLevel()

◆ UpdateSkillsToMaxSkillsForLevel()

◆ UpdateSoulboundTradeItems()

void Player::UpdateSoulboundTradeItems ( )

Definition at line 30 of file PlayerTrade.cpp.

References ASSERT, Object::GetGUID(), and m_itemSoulboundTradeable.

Referenced by Update().

◆ UpdateSpeakTime()

◆ UpdateSpecCount()

◆ UpdateSpellCritChance()

◆ UpdateSpellDamageAndHealingBonus()

◆ UpdateSpellHitChances()

◆ UpdateStats()

◆ UpdateTalentSpecializationManaBonus()

void Player::UpdateTalentSpecializationManaBonus ( )

Definition at line 251 of file StatSystem.cpp.

References Unit::getPowerType(), POWER_MANA, and UpdateMaxPower().

Referenced by ResetTalents().

◆ UpdateTriggerVisibility()

◆ UpdateUnderwaterState()

◆ UpdateVisibilityForPlayer()

◆ UpdateVisibilityOf() [1/2]

template<class T>
void Player::UpdateVisibilityOf ( T * target,
UpdateData & data,
std::set< Unit * > & visibleNow )

◆ UpdateVisibilityOf() [2/2]

◆ UpdateZone()

◆ UpdateZoneDependentAuras()

void Player::UpdateZoneDependentAuras ( uint32 zone_id)

Definition at line 19890 of file Player.cpp.

References Unit::CastSpell(), Unit::HasAura(), and sSpellMgr.

Referenced by AddQuest(), CompleteQuest(), and UpdateZone().

◆ VehicleSpellInitialize()

◆ VisualizeItem()

◆ Whisper()

◆ WhisperAddon()

void Player::WhisperAddon ( std::string const & text,
std::string const & prefix,
Player * receiver )

◆ Yell()

void Player::Yell ( std::string const & text,
const Language language )

Handles yelled message in regular chat based on declared language and in config pre-defined Range.

Definition at line 15807 of file Player.cpp.

References ChatHandler::BuildChatPacket(), CHAT_MSG_YELL, CONFIG_LISTEN_RANGE_YELL, SendMessageToSetInRange(), sScriptMgr, and sWorld.

Referenced by WorldSession::HandleMessagechatOpcode(), LuaUnit::SendUnitYell(), and LuaPlayer::Yell().

◆ Item::AddToUpdateQueueOf

void Item::AddToUpdateQueueOf ( Player * player)
friend

References Player().

◆ Item::RemoveFromUpdateQueueOf

◆ WorldSession

friend class WorldSession
friend

Definition at line 1290 of file Player.h.

References WorldSession.

Referenced by GetSession(), Item::RemoveFromUpdateQueueOf, learnSpell(), Player(), SetSkill(), and WorldSession.

Member Data Documentation

◆ _activeCheats

uint32 Player::_activeCheats
private

Definition at line 3604 of file Player.h.

Referenced by GetCommandStatus(), Player(), SetCommandStatusOff(), and SetCommandStatusOn().

◆ _ConquestCurrencytotalWeekCap

uint32 Player::_ConquestCurrencytotalWeekCap
private

Definition at line 3607 of file Player.h.

Referenced by _GetCurrencyWeekCap(), _LoadCurrency(), ModifyCurrency(), and Player().

◆ _CUFProfiles

CUFProfile* Player::_CUFProfiles[MAX_CUF_PROFILES]
protected

◆ _currencyStorage

◆ _instanceResetTimes

InstanceTimeMap Player::_instanceResetTimes
private

◆ _maxPersonalArenaRate

uint32 Player::_maxPersonalArenaRate
private

Definition at line 3605 of file Player.h.

Referenced by GetCurrencyWeekCap(), and Player().

◆ _pendingBindId

uint32 Player::_pendingBindId
private

Definition at line 3601 of file Player.h.

Referenced by BindToInstance(), HasPendingBind(), SetPendingBind(), and Update().

◆ _pendingBindTimer

uint32 Player::_pendingBindTimer
private

Definition at line 3602 of file Player.h.

Referenced by SetPendingBind(), and Update().

◆ _readyCheckTimer

uint32 Player::_readyCheckTimer
protected

Definition at line 3447 of file Player.h.

Referenced by Player(), ReadyCheckComplete(), SetReadyCheckTimer(), and Update().

◆ _researchDigsites

◆ _researchHistory

◆ _researchProjects

◆ _resurrectionData

◆ _talentMgr

◆ _voidStorageItems

◆ autoReplyMsg

std::string Player::autoReplyMsg

Definition at line 1342 of file Player.h.

Referenced by Whisper().

◆ cinematicClientStartTime

uint32 Player::cinematicClientStartTime
private

Definition at line 3611 of file Player.h.

Referenced by GetCinematicPosition(), Player(), SendCinematicStart(), StopCinematic(), and Update().

◆ cinematicSequence

CinematicSequence* Player::cinematicSequence
private

◆ cinematicStartO

float Player::cinematicStartO
private

Definition at line 3613 of file Player.h.

Referenced by SendCinematicStart(), and StopCinematic().

◆ cinematicStartX

float Player::cinematicStartX
private

Definition at line 3613 of file Player.h.

Referenced by SendCinematicStart(), and StopCinematic().

◆ cinematicStartY

float Player::cinematicStartY
private

Definition at line 3613 of file Player.h.

Referenced by SendCinematicStart(), and StopCinematic().

◆ cinematicStartZ

float Player::cinematicStartZ
private

Definition at line 3613 of file Player.h.

Referenced by SendCinematicStart(), and StopCinematic().

◆ cinematicVisibilityTimer

uint32 Player::cinematicVisibilityTimer
private

Definition at line 3612 of file Player.h.

Referenced by Player(), SendCinematicStart(), StopCinematic(), and Update().

◆ duel

◆ inCinematic

bool Player::inCinematic
private

◆ infinityCooldownDelay

uint32 const Player::infinityCooldownDelay = MONTH
static

Definition at line 2164 of file Player.h.

Referenced by AddSpellAndCategoryCooldowns().

◆ infinityCooldownDelayCheck

uint32 const Player::infinityCooldownDelayCheck = MONTH / 2
static

Definition at line 2165 of file Player.h.

Referenced by _SaveSpellCooldowns(), and SendInitialSpells().

◆ inn_area_box_orientation

float Player::inn_area_box_orientation
protected

Definition at line 3476 of file Player.h.

Referenced by GetInnAreaBoxOrientation(), InnEnter(), IsInCurrentInnArea(), and Player().

◆ inn_area_box_x

float Player::inn_area_box_x
protected

Definition at line 3473 of file Player.h.

Referenced by GetInnAreaBoxX(), InnEnter(), IsInCurrentInnArea(), Player(), and UpdateRestAreaState().

◆ inn_area_box_y

float Player::inn_area_box_y
protected

Definition at line 3474 of file Player.h.

Referenced by GetInnAreaBoxY(), InnEnter(), IsInCurrentInnArea(), Player(), and UpdateRestAreaState().

◆ inn_area_box_z

float Player::inn_area_box_z
protected

Definition at line 3475 of file Player.h.

Referenced by GetInnAreaBoxZ(), InnEnter(), IsInCurrentInnArea(), Player(), and UpdateRestAreaState().

◆ inn_area_radius

float Player::inn_area_radius
protected

◆ inn_pos_mapid

uint32 Player::inn_pos_mapid
protected

Definition at line 3468 of file Player.h.

Referenced by GetInnPosMapId(), InnEnter(), IsInCurrentInnArea(), Player(), and UpdateRestAreaState().

◆ inn_pos_x

float Player::inn_pos_x
protected

Definition at line 3469 of file Player.h.

Referenced by GetInnPosX(), InnEnter(), IsInCurrentInnArea(), and Player().

◆ inn_pos_y

float Player::inn_pos_y
protected

Definition at line 3470 of file Player.h.

Referenced by GetInnPosY(), InnEnter(), IsInCurrentInnArea(), and Player().

◆ inn_pos_z

float Player::inn_pos_z
protected

Definition at line 3471 of file Player.h.

Referenced by GetInnPosZ(), InnEnter(), IsInCurrentInnArea(), and Player().

◆ isDebugAreaTriggers

bool Player::isDebugAreaTriggers

◆ ItemSetEff

std::vector<ItemSetEffect*> Player::ItemSetEff

◆ m_achievementMgr

◆ m_actionButtons

ActionButtonList Player::m_actionButtons
protected

◆ m_areaUpdateId

uint32 Player::m_areaUpdateId
protected

Definition at line 3451 of file Player.h.

Referenced by Player(), SetGameMaster(), Update(), and UpdateArea().

◆ m_ArmorProficiency

uint32 Player::m_ArmorProficiency
protected

Definition at line 3459 of file Player.h.

Referenced by AddArmorProficiency(), GetArmorProficiency(), and Player().

◆ m_atLoginFlags

uint32 Player::m_atLoginFlags
protected

◆ m_auraBaseMod

float Player::m_auraBaseMod[BASEMOD_END][MOD_END]
protected

◆ m_auraRaidUpdateMask

uint64 Player::m_auraRaidUpdateMask
protected

◆ m_baseHealthRegen

uint32 Player::m_baseHealthRegen
protected

Definition at line 3416 of file Player.h.

Referenced by ApplyHealthRegenBonus(), Player(), RegenerateAll(), and RegenerateHealth().

◆ m_baseManaRegen

uint32 Player::m_baseManaRegen
protected

Definition at line 3415 of file Player.h.

Referenced by ApplyManaRegenBonus(), and Player().

◆ m_baseRatingValue

int16 Player::m_baseRatingValue[MAX_COMBAT_RATING]
protected

Definition at line 3413 of file Player.h.

Referenced by ApplyRatingMod(), Player(), and UpdateRating().

◆ m_baseSpellPower

uint32 Player::m_baseSpellPower
protected

Definition at line 3414 of file Player.h.

Referenced by ApplySpellPowerBonus(), GetBaseSpellPowerBonus(), and Player().

◆ m_battlePetMgr

BattlePetMgr* Player::m_battlePetMgr
private

◆ m_bCanDelayTeleport

bool Player::m_bCanDelayTeleport
private

Definition at line 3580 of file Player.h.

Referenced by IsCanDelayTeleport(), Player(), and SetCanDelayTeleport().

◆ m_bgBattlegroundQueueID

◆ m_bgData

◆ m_bHasDelayedTeleport

bool Player::m_bHasDelayedTeleport
private

Definition at line 3581 of file Player.h.

Referenced by IsHasDelayedTeleport(), Player(), and SetDelayedTeleportFlag().

◆ m_boundInstances

◆ m_bPassOnGroupLoot

bool Player::m_bPassOnGroupLoot
protected

Definition at line 3490 of file Player.h.

Referenced by GetPassOnGroupLoot(), Player(), and SetPassOnGroupLoot().

◆ m_canBlock

bool Player::m_canBlock
protected

Definition at line 3462 of file Player.h.

Referenced by CanBlock(), Player(), and SetCanBlock().

◆ m_canDodge

bool Player::m_canDodge
protected

Definition at line 3460 of file Player.h.

Referenced by CanDodge(), Player(), and SetCanDodge().

◆ m_canParry

bool Player::m_canParry
protected

Definition at line 3461 of file Player.h.

Referenced by CanParry(), Player(), and SetCanParry().

◆ m_canTitanGrip

bool Player::m_canTitanGrip
protected

Definition at line 3463 of file Player.h.

Referenced by CanTitanGrip(), Player(), removeSpell(), and SetCanTitanGrip().

◆ m_ChampioningFaction

uint32 Player::m_ChampioningFaction
private

Definition at line 3592 of file Player.h.

Referenced by GetChampioningFaction(), Player(), and SetChampioningFaction().

◆ m_ChampioningType

uint8 Player::m_ChampioningType
private

Definition at line 3593 of file Player.h.

Referenced by GetChampioningType(), Player(), and SetChampioningType().

◆ m_channels

JoinedChannelsList Player::m_channels
protected

◆ m_chiPowerDegenTimerCount

uint32 Player::m_chiPowerDegenTimerCount
protected

Definition at line 3235 of file Player.h.

Referenced by Player(), Regenerate(), and RegenerateAll().

◆ m_cinematic

uint8 Player::m_cinematic
protected

Definition at line 3435 of file Player.h.

Referenced by getCinematic(), LoadFromDB(), Player(), SaveToDB(), and setCinematic().

◆ m_clientGUIDs

◆ m_comboPoints

int8 Player::m_comboPoints
protected

◆ m_comboTarget

uint64 Player::m_comboTarget
protected

Definition at line 3387 of file Player.h.

Referenced by AddComboPoints(), ClearComboPoints(), GetComboTarget(), Player(), and SendComboPoints().

◆ m_contestedPvPTimer

uint32 Player::m_contestedPvPTimer
protected

Definition at line 3238 of file Player.h.

Referenced by Player(), ResetContestedPvP(), SetContestedPvPTimer(), and UpdateContestedPvP().

◆ m_currentBuybackSlot

uint32 Player::m_currentBuybackSlot
protected

Definition at line 3368 of file Player.h.

Referenced by AddItemToBuyBackSlot(), Player(), and RemoveItemFromBuyBackSlot().

◆ m_DailyQuestChanged

bool Player::m_DailyQuestChanged
protected

◆ m_deathExpireTime

time_t Player::m_deathExpireTime
protected

◆ m_deathTimer

uint32 Player::m_deathTimer
protected

◆ m_declinedname

DeclinedName* Player::m_declinedname
protected

Definition at line 3502 of file Player.h.

Referenced by _LoadDeclinedNames(), GetDeclinedNames(), Player(), and ~Player().

◆ m_DelayedOperations

uint32 Player::m_DelayedOperations
private

Definition at line 3579 of file Player.h.

Referenced by Player(), ProcessDelayedOperations(), and ScheduleDelayedOperation().

◆ m_DFQuests

◆ m_divider

uint64 Player::m_divider
protected

Definition at line 3271 of file Player.h.

Referenced by GetDivider(), Player(), and SetDivider().

◆ m_drunkTimer

uint32 Player::m_drunkTimer
protected

Definition at line 3445 of file Player.h.

Referenced by HandleSobering(), Player(), SetDrunkValue(), and Update().

◆ m_dungeonDifficulty

DifficultyID Player::m_dungeonDifficulty
protected

Definition at line 3361 of file Player.h.

Referenced by GetDifficulty(), GetDungeonDifficulty(), Player(), and SetDungeonDifficulty().

◆ m_enchantDuration

◆ m_EquipmentSets

EquipmentSets Player::m_EquipmentSets
protected

◆ m_ExtraFlags

◆ m_FlyingBeforeCinematic

bool Player::m_FlyingBeforeCinematic
private

Definition at line 3614 of file Player.h.

◆ m_focusRegenTimerCount

uint32 Player::m_focusRegenTimerCount
protected

Definition at line 3236 of file Player.h.

Referenced by Player(), and RegenerateAll().

◆ m_forced_speed_changes

uint8 Player::m_forced_speed_changes[MAX_MOVE_TYPE]

Definition at line 2874 of file Player.h.

Referenced by Player(), and Unit::SetSpeed().

◆ m_forcedTeleportFar

bool Player::m_forcedTeleportFar

Definition at line 2923 of file Player.h.

Referenced by IsForcedTeleportFar(), Player(), and SetForcedTeleportFar().

◆ m_forcedTeleportFarSemaphore

bool Player::m_forcedTeleportFarSemaphore

Definition at line 2924 of file Player.h.

Referenced by IsBeingForcedTeleportFar(), Player(), and SetSemaphoreTeleportForcedFar().

◆ m_GlobalCooldownMgr

GlobalCooldownMgr Player::m_GlobalCooldownMgr
protected

Definition at line 3406 of file Player.h.

Referenced by GetGlobalCooldownMgr().

◆ m_grantableLevels

uint8 Player::m_grantableLevels
protected

◆ m_group

◆ m_groupInvite

Group* Player::m_groupInvite
protected

Definition at line 3487 of file Player.h.

Referenced by GetGroupInvite(), and SetGroupInvite().

◆ m_groupUpdateMask

uint32 Player::m_groupUpdateMask
protected

◆ m_GuildIdInvited

uint32 Player::m_GuildIdInvited
protected

Definition at line 3400 of file Player.h.

Referenced by GetGuildIdInvited(), Player(), and SetGuildIdInvited().

◆ m_holyPowerRegenTimerCount

uint32 Player::m_holyPowerRegenTimerCount
protected

Definition at line 3234 of file Player.h.

Referenced by Player(), and RegenerateAll().

◆ m_homebindAreaId

uint16 Player::m_homebindAreaId

Definition at line 2848 of file Player.h.

Referenced by _LoadHomeBind(), SendInitialPacketsBeforeAddToMap(), and SetHomebind().

◆ m_homebindMapId

◆ m_HomebindTimer

uint32 Player::m_HomebindTimer

Definition at line 2921 of file Player.h.

Referenced by Player(), and UpdateHomebindTime().

◆ m_homebindX

◆ m_homebindY

◆ m_homebindZ

◆ m_ingametime

uint32 Player::m_ingametime
protected

Definition at line 3272 of file Player.h.

Referenced by GetInGameTime(), and SetInGameTime().

◆ m_InstanceValid

◆ m_IsBGRandomWinner

bool Player::m_IsBGRandomWinner
protected

Definition at line 3256 of file Player.h.

Referenced by _LoadRandomBGStatus(), GetRandomWinner(), Player(), and SetRandomWinner().

◆ m_isInWater

bool Player::m_isInWater
private

Definition at line 3568 of file Player.h.

Referenced by IsInWater(), Player(), and SetInWater().

◆ m_itemDuration

ItemDurationList Player::m_itemDuration
protected

◆ m_items

◆ m_itemSoulboundTradeable

ItemDurationList Player::m_itemSoulboundTradeable
protected

Definition at line 3423 of file Player.h.

Referenced by AddTradeableItem(), RemoveTradeableItem(), and UpdateSoulboundTradeItems().

◆ m_itemUpdateQueue

std::vector<Item*> Player::m_itemUpdateQueue
protected

◆ m_itemUpdateQueueBlocked

bool Player::m_itemUpdateQueueBlocked
protected

◆ m_Last_tick

time_t Player::m_Last_tick

Definition at line 1422 of file Player.h.

Referenced by Create(), Player(), and Update().

◆ m_lastDailyQuestTime

time_t Player::m_lastDailyQuestTime
protected

◆ m_lastFallTime

uint32 Player::m_lastFallTime
private

Definition at line 3562 of file Player.h.

Referenced by Player(), SetFallInformation(), and UpdateFallInformationIfNeed().

◆ m_lastFallZ

float Player::m_lastFallZ
private

Definition at line 3563 of file Player.h.

Referenced by HandleFall(), Player(), SetFallInformation(), and UpdateFallInformationIfNeed().

◆ m_lastGuildInviterGUID

uint64 Player::m_lastGuildInviterGUID
private

Definition at line 3571 of file Player.h.

Referenced by GetLastGuildInviterGUID(), and SetLastGuildInviterGUID().

◆ m_lastHonorUpdateTime

time_t Player::m_lastHonorUpdateTime
protected

Definition at line 3351 of file Player.h.

Referenced by LoadFromDB(), Player(), and UpdateHonorFields().

◆ m_lastpetnumber

uint32 Player::m_lastpetnumber
protected

Definition at line 3493 of file Player.h.

Referenced by GetLastPetNumber(), Player(), and SetLastPetNumber().

◆ m_lastPotionId

uint32 Player::m_lastPotionId
protected

Definition at line 3404 of file Player.h.

Referenced by Player(), SetLastPotionId(), and UpdatePotionCooldown().

◆ m_logintime

time_t Player::m_logintime

Definition at line 1421 of file Player.h.

Referenced by AddItemToBuyBackSlot(), and Player().

◆ m_lootGuid

uint64 Player::m_lootGuid
protected

Definition at line 3354 of file Player.h.

Referenced by GetLootGUID(), Player(), and SetLootGUID().

◆ m_lootView

std::set<uint64> Player::m_lootView
protected

◆ m_mail

◆ m_mailsLoaded

bool Player::m_mailsLoaded

◆ m_mailsUpdated

◆ m_mapRef

MapReference Player::m_mapRef
private

Definition at line 3558 of file Player.h.

Referenced by GetMapRef(), and SetMap().

◆ m_MirrorTimer

int32 Player::m_MirrorTimer[MAX_TIMERS]
private

Definition at line 3565 of file Player.h.

Referenced by HandleDrowning(), IsMirrorTimerActive(), Player(), and StopMirrorTimer().

◆ m_MirrorTimerFlags

uint8 Player::m_MirrorTimerFlags
private

Definition at line 3566 of file Player.h.

Referenced by HandleDrowning(), Player(), UpdateMirrorTimers(), and UpdateUnderwaterState().

◆ m_MirrorTimerFlagsLast

uint8 Player::m_MirrorTimerFlagsLast
private

Definition at line 3567 of file Player.h.

Referenced by HandleDrowning(), Player(), and UpdateMirrorTimers().

◆ m_MonthlyQuestChanged

bool Player::m_MonthlyQuestChanged
protected

◆ m_monthlyquests

QuestSet Player::m_monthlyquests
protected

◆ m_mover

◆ m_nextMailDelivereTime

time_t Player::m_nextMailDelivereTime

◆ m_nextSave

uint32 Player::m_nextSave
protected

Definition at line 3358 of file Player.h.

Referenced by GetSaveTimer(), LoadFromDB(), Player(), SaveToDB(), SetSaveTimer(), and Update().

◆ m_oldpetspell

uint32 Player::m_oldpetspell
private

Definition at line 3585 of file Player.h.

Referenced by Player(), RemovePet(), and UnsummonPetTemporaryIfAny().

◆ m_originalGroup

GroupReference Player::m_originalGroup
protected

◆ m_Played_time

uint32 Player::m_Played_time[MAX_PLAYED_TIME_INDEX]

◆ m_powerFraction

float Player::m_powerFraction[MAX_POWERS_PER_CLASS]
protected

Definition at line 3237 of file Player.h.

Referenced by Player(), and Regenerate().

◆ m_questObjectiveStatus

◆ m_questObjectiveStatusSave

◆ m_QuestStatus

◆ m_QuestStatusSave

◆ m_raidDifficulty

DifficultyID Player::m_raidDifficulty
protected

Definition at line 3362 of file Player.h.

Referenced by GetDifficulty(), GetRaidDifficulty(), Player(), and SetRaidDifficulty().

◆ m_raidMapDifficulty

DifficultyID Player::m_raidMapDifficulty
protected

Definition at line 3363 of file Player.h.

◆ m_recallMap

uint32 Player::m_recallMap

Definition at line 2837 of file Player.h.

Referenced by misc_commandscript::HandleRecallCommand(), and SaveRecallPosition().

◆ m_recallO

float Player::m_recallO

Definition at line 2841 of file Player.h.

Referenced by misc_commandscript::HandleRecallCommand(), and SaveRecallPosition().

◆ m_recallX

float Player::m_recallX

Definition at line 2838 of file Player.h.

Referenced by misc_commandscript::HandleRecallCommand(), and SaveRecallPosition().

◆ m_recallY

float Player::m_recallY

Definition at line 2839 of file Player.h.

Referenced by misc_commandscript::HandleRecallCommand(), and SaveRecallPosition().

◆ m_recallZ

float Player::m_recallZ

Definition at line 2840 of file Player.h.

Referenced by misc_commandscript::HandleRecallCommand(), and SaveRecallPosition().

◆ m_refundableItems

std::set<uint32> Player::m_refundableItems
private

Definition at line 3527 of file Player.h.

Referenced by _SaveInventory(), AddRefundReference(), and DeleteRefundReference().

◆ m_regenTimerCount

uint32 Player::m_regenTimerCount
protected

Definition at line 3233 of file Player.h.

Referenced by Player(), Regenerate(), RegenerateAll(), and setRegenTimerCount().

◆ m_reputationMgr

ReputationMgr* Player::m_reputationMgr
private

◆ m_rest_bonus

float Player::m_rest_bonus
protected

Definition at line 3477 of file Player.h.

Referenced by GetRestBonus(), LoadFromDB(), Player(), SaveToDB(), and SetRestBonus().

◆ m_restTime

uint32 Player::m_restTime
protected

Definition at line 3456 of file Player.h.

Referenced by GetRestTime(), Player(), and SetRestTime().

◆ m_RewardedQuests

◆ m_RewardedQuestsSave

QuestStatusSaveMap Player::m_RewardedQuestsSave
protected

Definition at line 3396 of file Player.h.

Referenced by _SaveQuestStatus(), RemoveRewardedQuest(), and RewardQuest().

◆ m_runes

◆ m_SeasonalQuestChanged

bool Player::m_SeasonalQuestChanged
protected

◆ m_seasonalquests

◆ m_seer

◆ m_session

WorldSession* Player::m_session
protected

Definition at line 3430 of file Player.h.

Referenced by Create(), GetSession(), Player(), SaveToDB(), SendDirectMessage(), SendLoot(), and SwapItem().

◆ m_social

PlayerSocial* Player::m_social
protected

Definition at line 3482 of file Player.h.

Referenced by GetSocial(), LoadFromDB(), and Player().

◆ m_speakCount

uint32 Player::m_speakCount
protected

Definition at line 3360 of file Player.h.

Referenced by Player(), and UpdateSpeakTime().

◆ m_speakTime

time_t Player::m_speakTime
protected

Definition at line 3359 of file Player.h.

Referenced by Player(), and UpdateSpeakTime().

◆ m_spellCooldowns

◆ m_spellMods

SpellModList Player::m_spellMods[MAX_SPELLMOD]
protected

Definition at line 3419 of file Player.h.

Referenced by AddSpellMod(), ApplySpellMod(), RemoveSpellMods(), and RestoreSpellMods().

◆ m_spellModTakingSpell

Spell* Player::m_spellModTakingSpell

Definition at line 3139 of file Player.h.

Referenced by ApplySpellMod(), Player(), SetSpellModTakingSpell(), and Update().

◆ m_spellPenetrationItemMod

int32 Player::m_spellPenetrationItemMod
protected

◆ m_spells

◆ m_stableSlots

uint32 Player::m_stableSlots

Definition at line 1723 of file Player.h.

Referenced by LoadFromDB(), Player(), and SaveToDB().

◆ m_summon_expire

time_t Player::m_summon_expire
protected

Definition at line 3496 of file Player.h.

Referenced by Player(), SetSummonPoint(), and SummonIfPossible().

◆ m_summon_mapid

uint32 Player::m_summon_mapid
protected

Definition at line 3497 of file Player.h.

Referenced by Player(), SetSummonPoint(), and SummonIfPossible().

◆ m_summon_x

float Player::m_summon_x
protected

Definition at line 3498 of file Player.h.

Referenced by Player(), SetSummonPoint(), and SummonIfPossible().

◆ m_summon_y

float Player::m_summon_y
protected

Definition at line 3499 of file Player.h.

Referenced by Player(), SetSummonPoint(), and SummonIfPossible().

◆ m_summon_z

float Player::m_summon_z
protected

Definition at line 3500 of file Player.h.

Referenced by Player(), SetSummonPoint(), and SummonIfPossible().

◆ m_swingErrorMsg

uint8 Player::m_swingErrorMsg
protected

Definition at line 3464 of file Player.h.

Referenced by Player(), and Update().

◆ m_taxi

◆ m_team

uint32 Player::m_team
protected

Definition at line 3357 of file Player.h.

Referenced by GetTeam(), GetTeamId(), and setFactionForRace().

◆ m_teleport_dest

WorldLocation Player::m_teleport_dest
private

Definition at line 3574 of file Player.h.

Referenced by GetTeleportDest(), TeleportTo(), and Update().

◆ m_teleport_options

uint32 Player::m_teleport_options
private

Definition at line 3575 of file Player.h.

Referenced by Player(), TeleportTo(), and Update().

◆ m_temporaryUnsummonedPetNumber

◆ m_timedquests

QuestSet Player::m_timedquests
protected

Definition at line 3266 of file Player.h.

Referenced by AddTimedQuest(), RemoveTimedQuest(), SatisfyQuestTimed(), and Update().

◆ m_timeSyncClient

uint32 Player::m_timeSyncClient
private

Definition at line 3597 of file Player.h.

Referenced by ResetTimeSync().

◆ m_timeSyncQueue

std::queue<uint32> Player::m_timeSyncQueue
private

Definition at line 3595 of file Player.h.

Referenced by SendTimeSync().

◆ m_timeSyncServer

uint32 Player::m_timeSyncServer
private

Definition at line 3598 of file Player.h.

Referenced by ResetTimeSync(), and SendTimeSync().

◆ m_timeSyncTimer

uint32 Player::m_timeSyncTimer
private

Definition at line 3596 of file Player.h.

Referenced by ResetTimeSync(), SendTimeSync(), and Update().

◆ m_trade

◆ m_weaponChangeTimer

uint32 Player::m_weaponChangeTimer
protected

Definition at line 3446 of file Player.h.

Referenced by CanEquipItem(), EquipItem(), Player(), setWeaponChangeTimer(), and Update().

◆ m_WeaponProficiency

uint32 Player::m_WeaponProficiency
protected

Definition at line 3458 of file Player.h.

Referenced by AddWeaponProficiency(), GetWeaponProficiency(), and Player().

◆ m_WeeklyQuestChanged

bool Player::m_WeeklyQuestChanged
protected

◆ m_weeklyquests

QuestSet Player::m_weeklyquests
protected

◆ m_zoneUpdateId

uint32 Player::m_zoneUpdateId
protected

Definition at line 3449 of file Player.h.

Referenced by Player(), RemoveFromWorld(), Update(), UpdateAreaDependentAuras(), and UpdateZone().

◆ m_zoneUpdateTimer

uint32 Player::m_zoneUpdateTimer
protected

Definition at line 3450 of file Player.h.

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

◆ mMitems

ItemMap Player::mMitems

Definition at line 2029 of file Player.h.

Referenced by AddMItem(), GetMItem(), RemoveFromWorld(), RemoveMItem(), and ~Player().

◆ mSemaphoreTeleport_Far

bool Player::mSemaphoreTeleport_Far
private

◆ mSemaphoreTeleport_Near

bool Player::mSemaphoreTeleport_Near
private

◆ mSkillStatus

◆ PlayerTalkClass

◆ pvpInfo

◆ rest_type

RestType Player::rest_type
protected

Definition at line 3478 of file Player.h.

Referenced by GetRestType(), Player(), and SetRestType().

◆ time_inn_enter

time_t Player::time_inn_enter
protected

Definition at line 3467 of file Player.h.

Referenced by GetTimeInnEnter(), InnEnter(), Player(), and UpdateInnerTime().

◆ unReadMails

uint8 Player::unReadMails

◆ WhisperList

WhisperListContainer Player::WhisperList
protected

The documentation for this class was generated from the following files: