TrinityCore
Loading...
Searching...
No Matches
Player Class Reference

#include <Player.h>

+ Inheritance diagram for Player:

Classes

struct  BgBattlegroundQueueID_Rec
 
struct  ChatFloodThrottle
 

Public Types

typedef std::unordered_map< ObjectGuid::LowType, Item * > ItemMap
 
typedef std::list< Channel * > JoinedChannelsList
 
typedef std::set< uint32 > DFQuestsDoneList
 
typedef std::unordered_map< uint32, InstancePlayerBind > BoundInstancesMap
 
- Public Types inherited from Unit
typedef std::set< Unit * > AttackerSet
 
typedef std::set< Unit * > ControlList
 
typedef std::vector< Unit * > UnitVector
 
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< uint32, AuraApplication * > AuraApplicationMap
 
typedef std::pair< AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator > AuraApplicationMapBounds
 
typedef std::pair< AuraApplicationMap::iterator, AuraApplicationMap::iterator > AuraApplicationMapBoundsNonConst
 
typedef std::multimap< AuraStateType, AuraApplication * > AuraStateAurasMap
 
typedef std::pair< AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator > AuraStateAurasMapBounds
 
typedef std::list< AuraEffect * > AuraEffectList
 
typedef std::list< Aura * > AuraList
 
typedef std::list< AuraApplication * > AuraApplicationList
 
typedef std::array< DiminishingReturn, DIMINISHING_MAX > Diminishing
 
typedef std::vector< std::pair< uint8, AuraApplication * > > AuraApplicationProcContainer
 
typedef std::map< uint8, AuraApplication * > VisibleAuraMap
 

Public Member Functions

 Player (WorldSession *session)
 
 ~Player ()
 
PlayerAI * AI () const
 
void CleanupsBeforeDelete (bool finalCleanup=true) override
 
void AddToWorld () override
 
void RemoveFromWorld () override
 
void SetObjectScale (float scale) override
 
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 ()
 
bool HasSummonPending () const
 
void SendSummonRequestFrom (Unit *summoner)
 
void SummonIfPossible (bool agree)
 
bool Create (ObjectGuid::LowType guidlow, WorldPackets::Character::CharacterCreateInfo const *createInfo)
 
void Update (uint32 time) override
 
void Heartbeat () override
 
bool IsImmunedToSpellEffect (SpellInfo const *spellInfo, SpellEffectInfo const &spellEffectInfo, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const override
 
bool IsInAreaTriggerRadius (AreaTriggerEntry const *trigger) const
 
void SendInitialPacketsBeforeAddToMap ()
 
void SendInitialPacketsAfterAddToMap ()
 
void SendSupercededSpell (uint32 oldSpell, uint32 newSpell) const
 
void SendTransferAborted (uint32 mapid, TransferAbortReason reason, uint8 arg=0) const
 
void SendInstanceResetWarning (uint32 mapid, Difficulty difficulty, uint32 time, bool welcome) const
 
bool CanInteractWithQuestGiver (Object *questGiver) const
 
Creature * GetNPCIfCanInteractWith (ObjectGuid const &guid, NPCFlags npcFlags) const
 
GameObject * GetGameObjectIfCanInteractWith (ObjectGuid const &guid) const
 
GameObject * GetGameObjectIfCanInteractWith (ObjectGuid const &guid, GameobjectTypes type) const
 
void ToggleAFK ()
 
void ToggleDND ()
 
bool isAFK () const
 
bool isDND () const
 
uint8 GetChatTag () const
 
uint32 GetBarberShopCost (uint8 newhairstyle, uint8 newhaircolor, uint8 newfacialhair, BarberShopStyleEntry const *newSkin=nullptr) const
 
PlayerSocial * GetSocial ()
 
void RemoveSocial ()
 
void InitTaxiNodesForLevel ()
 
bool ActivateTaxiPathTo (std::vector< uint32 > const &nodes, Creature *npc=nullptr, uint32 spellid=0)
 
bool ActivateTaxiPathTo (uint32 taxi_path_id, uint32 spellid=0)
 
void FinishTaxiFlight ()
 
void CleanupAfterTaxiFlight ()
 
void ContinueTaxiFlight () const
 
void SendTaxiNodeStatusMultiple ()
 
bool IsDeveloper () const
 
void SetDeveloper (bool on)
 
bool isAcceptWhispers () const
 
void SetAcceptWhispers (bool on)
 
bool IsGameMaster () const
 
bool IsGameMasterAcceptingWhispers () const
 
bool CanBeGameMaster () const
 
void SetGameMaster (bool on)
 
bool isGMChat () const
 
void SetGMChat (bool on)
 
bool isTaxiCheater () const
 
void SetTaxiCheater (bool on)
 
bool isGMVisible () const
 
void SetGMVisible (bool on)
 
bool Has310Flyer (bool checkAllSpells, uint32 excludeSpellId=0)
 
void SetHas310Flyer (bool on)
 
void SetPvPDeath (bool on)
 
bool HasRaceChanged () const
 
void SetHasRaceChanged ()
 
bool HasBeenGrantedLevelsFromRaF () const
 
void SetBeenGrantedLevelsFromRaF ()
 
bool HasLevelBoosted () const
 
void SetHasLevelBoosted ()
 
uint32 GetXP () const
 
uint32 GetXPForNextLevel () const
 
void SetXP (uint32 xp)
 
void GiveXP (uint32 xp, Unit *victim, float group_rate=1.0f)
 
void GiveLevel (uint8 level)
 
bool IsMaxLevel () const
 
void InitStatsForLevel (bool reapplyMods=false)
 
bool GetCommandStatus (uint32 command) const
 
void SetCommandStatusOn (uint32 command)
 
void SetCommandStatusOff (uint32 command)
 
uint32 GetTotalPlayedTime () const
 
uint32 GetLevelPlayedTime () const
 
Gender GetNativeGender () const override
 
void SetNativeGender (Gender gender) override
 
uint8 GetSkinId () const
 
void SetSkinId (uint8 skin)
 
uint8 GetFaceId () const
 
void SetFaceId (uint8 face)
 
uint8 GetHairStyleId () const
 
void SetHairStyleId (uint8 hairStyle)
 
uint8 GetHairColorId () const
 
void SetHairColorId (uint8 hairColor)
 
uint8 GetFacialStyle () const
 
void SetFacialStyle (uint8 facialStyle)
 
void setDeathState (DeathState s) override
 
float GetRestBonus () const
 
void SetRestBonus (float rest_bonus_new)
 
uint8 GetRestState () const
 
void SetRestState (uint8 restState)
 
bool HasRestFlag (RestFlag restFlag) const
 
void SetRestFlag (RestFlag restFlag, uint32 triggerId=0)
 
void RemoveRestFlag (RestFlag restFlag)
 
uint32 GetXPRestBonus (uint32 xp)
 
uint32 GetInnTriggerId () const
 
PetStable * GetPetStable ()
 
PetStable & GetOrInitPetStable ()
 
PetStable const * GetPetStable () const
 
Pet * GetPet () const
 
Pet * SummonPet (uint32 entry, float x, float y, float z, float ang, PetType petType, uint32 despwtime)
 
void RemovePet (Pet *pet, PetSaveMode mode, bool returnreagent=false)
 
uint32 GetPhaseMaskForSpawn () const
 
void AddPetAura (PetAura const *petSpell)
 
void RemovePetAura (PetAura const *petSpell)
 
void Say (std::string_view text, Language language, WorldObject const *=nullptr) override
 Handles said message in regular chat based on declared language and in config pre-defined Range.
 
void Say (uint32 textId, WorldObject const *target=nullptr) override
 
void Yell (std::string_view text, Language language, WorldObject const *=nullptr) override
 Handles yelled message in regular chat based on declared language and in config pre-defined Range.
 
void Yell (uint32 textId, WorldObject const *target=nullptr) override
 
void TextEmote (std::string_view text, WorldObject const *=nullptr, bool=false) override
 Outputs an universal text which is supposed to be an action.
 
void TextEmote (uint32 textId, WorldObject const *target=nullptr, bool isBossEmote=false) override
 
void Whisper (std::string_view text, Language language, Player *receiver, bool=false) override
 Handles whispers from Addons and players based on sender, receiver's guid and language.
 
void Whisper (uint32 textId, Player *target, bool isBossWhisper=false) override
 
void WhisperAddon (std::string const &text, Player *receiver)
 
void SetVirtualItemSlot (uint8 i, Item *item)
 
void SetSheath (SheathState sheathed) override
 
uint8 FindEquipSlot (Item const *item, uint32 slot, bool swap) const
 
uint32 GetItemCount (uint32 item, bool inBankAlso=false, Item *skipItem=nullptr) const
 
uint32 GetItemCountWithLimitCategory (uint32 limitCategory, Item *skipItem=nullptr) const
 
Item * GetItemByGuid (ObjectGuid guid) const
 
Item * GetItemByEntry (uint32 entry) const
 
Item * GetItemByPos (uint16 pos) const
 
Item * GetItemByPos (uint8 bag, uint8 slot) const
 
Item * GetUseableItemByPos (uint8 bag, uint8 slot) const
 
Bag * GetBagByPos (uint8 slot) const
 
uint32 GetFreeInventorySpace () const
 
Item * GetWeaponForAttack (WeaponAttackType attackType, bool useable=false) const
 
Item * GetShield (bool useable=false) const
 
std::vector< Item * > & GetItemUpdateQueue ()
 
bool IsValidPos (uint16 pos, bool explicit_pos) const
 
bool IsValidPos (uint8 bag, uint8 slot, bool explicit_pos) const
 
uint8 GetBankBagSlotCount () const
 
void SetBankBagSlotCount (uint8 count)
 
bool HasItemCount (uint32 item, uint32 count=1, bool inBankAlso=false) const
 
bool HasItemFitToSpellRequirements (SpellInfo const *spellInfo, Item const *ignoreItem=nullptr) const
 
bool CanNoReagentCast (SpellInfo const *spellInfo) const
 
void SetNoRegentCostMask (flag96 mask)
 
bool HasItemOrGemWithIdEquipped (uint32 item, uint32 count, uint8 except_slot=NULL_SLOT) const
 
bool HasItemWithLimitCategoryEquipped (uint32 limitCategory, uint32 count, uint8 except_slot=NULL_SLOT) const
 
bool HasGemWithLimitCategoryEquipped (uint32 limitCategory, uint32 count, uint8 except_slot=NULL_SLOT) const
 
InventoryResult CanTakeMoreSimilarItems (Item *pItem, uint32 *itemLimitCategory=nullptr) const
 
InventoryResult CanTakeMoreSimilarItems (uint32 entry, uint32 count, uint32 *itemLimitCategory=nullptr) const
 
InventoryResult CanStoreNewItem (uint8 bag, uint8 slot, ItemPosCountVec &dest, uint32 item, uint32 count, uint32 *no_space_count=nullptr) const
 
InventoryResult CanStoreItem (uint8 bag, uint8 slot, ItemPosCountVec &dest, Item *pItem, bool swap=false) const
 
InventoryResult CanStoreItems (Item **items, int count, uint32 *itemLimitCategory) const
 
InventoryResult CanEquipNewItem (uint8 slot, uint16 &dest, uint32 item, bool swap) const
 
InventoryResult CanEquipItem (uint8 slot, uint16 &dest, Item *pItem, bool swap, bool not_loading=true) 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
 
InventoryResult CanUnequipItems (uint32 item, uint32 count) const
 
InventoryResult CanUnequipItem (uint16 src, bool swap) const
 
InventoryResult CanBankItem (uint8 bag, uint8 slot, ItemPosCountVec &dest, Item *pItem, bool swap, bool not_loading=true) const
 
InventoryResult CanUseItem (Item *pItem, bool not_loading=true) const
 
bool HasItemTotemCategory (uint32 TotemCategory) const
 
InventoryResult CanUseItem (ItemTemplate const *pItem) const
 
InventoryResult CanUseAmmo (uint32 item) const
 
InventoryResult CanRollForItemInLFG (ItemTemplate const *item, WorldObject const *lootedObject) const
 
Item * StoreNewItem (ItemPosCountVec const &pos, uint32 itemId, bool update, int32 randomPropertyId=0, GuidSet const &allowedLooters=GuidSet())
 
Item * StoreItem (ItemPosCountVec const &pos, Item *pItem, bool update)
 
Item * EquipNewItem (uint16 pos, uint32 item, bool update)
 
Item * EquipItem (uint16 pos, Item *pItem, bool update)
 
void AutoUnequipOffhandIfNeed (bool force=false)
 
bool StoreNewItemInBestSlots (uint32 item_id, uint32 item_count)
 
void AutoStoreLoot (uint8 bag, uint8 slot, uint32 loot_id, LootStore const &store, bool broadcast=false, bool createdByPlayer=false)
 
void AutoStoreLoot (uint32 loot_id, LootStore const &store, bool broadcast=false, bool createdByPlayer=false)
 
void StoreLootItem (uint8 lootSlot, Loot *loot)
 
InventoryResult CanTakeMoreSimilarItems (uint32 entry, uint32 count, Item *pItem, uint32 *no_space_count=nullptr, uint32 *itemLimitCategory=nullptr) const
 
InventoryResult CanStoreItem (uint8 bag, uint8 slot, ItemPosCountVec &dest, uint32 entry, uint32 count, Item *pItem=nullptr, bool swap=false, uint32 *no_space_count=nullptr) const
 
void AddRefundReference (ObjectGuid it)
 
void DeleteRefundReference (ObjectGuid it)
 
void ApplyEquipCooldown (Item *pItem)
 
void SetAmmo (uint32 item)
 
void RemoveAmmo ()
 
float GetAmmoDPS () const
 
bool CheckAmmoCompatibility (ItemTemplate const *ammo_proto) const
 
void QuickEquipItem (uint16 pos, Item *pItem)
 
void VisualizeItem (uint8 slot, Item *pItem)
 
void SetVisibleItemSlot (uint8 slot, Item *pItem)
 
Item * BankItem (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)
 
uint32 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)
 
Item * GetItemFromBuyBackSlot (uint32 slot)
 
void RemoveItemFromBuyBackSlot (uint32 slot, bool del)
 
uint32 GetMaxKeyringSize () const
 
void SendEquipError (InventoryResult msg, Item const *item1=nullptr, Item const *item2=nullptr, uint32 itemId=0) const
 
void SendBuyError (BuyResult msg, Creature *creature, uint32 item, uint32 param) const
 
void SendSellError (SellResult msg, Creature *creature, ObjectGuid guid, uint32 param) const
 
void AddWeaponProficiency (uint32 newflag)
 
void AddArmorProficiency (uint32 newflag)
 
uint32 GetWeaponProficiency () const
 
uint32 GetArmorProficiency () const
 
bool IsUseEquipedWeapon (bool mainhand) const
 
bool IsTwoHandUsed () const
 
bool IsUsingTwoHandedWeaponInOneHand () const
 
void SendNewItem (Item *item, uint32 count, bool received, bool created, bool broadcast=false, bool sendChatMessage=true)
 
bool BuyItemFromVendorSlot (ObjectGuid vendorguid, uint32 vendorslot, uint32 item, uint32 count, uint8 bag, uint8 slot)
 
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
 
float GetReputationPriceDiscount (FactionTemplateEntry const *factionTemplate) const
 
Player * GetTrader () const
 
TradeData * GetTradeData () const
 
void TradeCancel (bool sendback, TradeStatus status=TRADE_STATUS_TRADE_CANCELED)
 
CinematicMgr * GetCinematicMgr () const
 
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 RemoveEnchantmentDurationsReferences (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 UpdateSkillEnchantments (uint16 skill_id, uint16 curr_value, uint16 new_value)
 
void SendEnchantmentDurations ()
 
void AddItemDurations (Item *item)
 
void RemoveItemDurations (Item *item)
 
void SendItemDurations ()
 
void LoadCorpse (PreparedQueryResult result)
 
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 (ObjectGuid guid)
 
void SendPreparedQuest (ObjectGuid guid)
 
bool IsActiveQuest (uint32 quest_id) const
 
Quest const * GetNextQuest (Object const *questGiver, Quest const *quest) const
 
bool CanSeeStartQuest (Quest const *quest) const
 
bool CanTakeQuest (Quest const *quest, bool msg) const
 
bool CanAddQuest (Quest const *quest, bool msg) const
 
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 AddQuestAndCheckCompletion (Quest const *quest, Object *questGiver)
 
void AddQuest (Quest const *quest, Object *questGiver)
 
void AbandonQuest (uint32 quest_id)
 
void CompleteQuest (uint32 quest_id)
 
void IncompleteQuest (uint32 quest_id)
 
uint32 GetQuestXPReward (Quest const *quest)
 
void RewardQuest (Quest const *quest, uint32 reward, Object *questGiver, bool announce=true)
 
void SetRewardedQuest (uint32 quest_id)
 
void FailQuest (uint32 quest_id)
 
bool SatisfyQuestSkill (Quest const *qInfo, bool msg) const
 
bool SatisfyQuestLevel (Quest const *qInfo, bool msg) const
 
bool SatisfyQuestLog (bool msg) const
 
bool SatisfyQuestDependentQuests (Quest const *qInfo, bool msg) const
 
bool SatisfyQuestPreviousQuest (Quest const *qInfo, bool msg) const
 
bool SatisfyQuestDependentPreviousQuests (Quest const *qInfo, bool msg) const
 
bool SatisfyQuestBreadcrumbQuest (Quest const *qInfo, bool msg) const
 
bool SatisfyQuestDependentBreadcrumbQuests (Quest const *qInfo, bool msg) const
 
bool SatisfyQuestClass (Quest const *qInfo, bool msg) const
 
bool SatisfyQuestRace (Quest const *qInfo, bool msg) const
 
bool SatisfyQuestReputation (Quest const *qInfo, bool msg) const
 
bool SatisfyQuestStatus (Quest const *qInfo, bool msg) const
 
bool SatisfyQuestConditions (Quest const *qInfo, bool msg) const
 
bool SatisfyQuestTimed (Quest const *qInfo, bool msg) const
 
bool SatisfyQuestExclusiveGroup (Quest const *qInfo, bool msg) const
 
bool SatisfyQuestDay (Quest const *qInfo, bool msg) const
 
bool SatisfyQuestWeek (Quest const *qInfo, bool msg) const
 
bool SatisfyQuestMonth (Quest const *qInfo, bool msg) const
 
bool SatisfyQuestSeasonal (Quest const *qInfo, bool msg) const
 
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 questId, QuestStatus status, bool update=true)
 
void RemoveActiveQuest (uint32 questId, bool update=true)
 
void RemoveRewardedQuest (uint32 questId, bool update=true)
 
void SendQuestUpdate (uint32 questId)
 
QuestGiverStatus GetQuestDialogStatus (Object *questGiver)
 
void SetDailyQuestStatus (uint32 quest_id)
 
bool IsDailyQuestDone (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, time_t eventStartTime)
 
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) const
 
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, ObjectGuid guid)
 
void KilledMonsterCredit (uint32 entry, ObjectGuid guid=ObjectGuid::Empty)
 
void KilledPlayerCredit (uint16 count=1)
 
void KilledPlayerCreditForQuest (uint16 count, Quest const *quest)
 
void KillCreditGO (uint32 entry, ObjectGuid guid=ObjectGuid::Empty)
 
void TalkedToCreature (uint32 entry, ObjectGuid guid)
 
void MoneyChanged (uint32 value)
 
void ReputationChanged (FactionEntry const *factionEntry)
 
void ReputationChanged2 (FactionEntry const *factionEntry)
 
bool HasQuestForItem (uint32 itemId, uint32 excludeQuestId=0, bool turnIn=false) const
 
bool HasQuestForGO (int32 goId) const
 
void UpdateVisibleGameobjectsOrSpellClicks ()
 
bool CanShareQuest (uint32 questId) const
 
void SendQuestComplete (uint32 questId) const
 
void SendQuestReward (Quest const *quest, uint32 XP) const
 
void SendQuestFailed (uint32 questId, InventoryResult reason=EQUIP_ERR_OK) const
 
void SendQuestTimerFailed (uint32 questId) const
 
void SendCanTakeQuestResponse (QuestFailedReason msg) const
 
void SendQuestConfirmAccept (Quest const *quest, Player *pReceiver) const
 
void SendPushToPartyResponse (Player const *player, QuestShareMessages msg) const
 
void SendQuestUpdateAddItem (Quest const *quest, uint32 itemIdx, uint16 count) const
 
void SendQuestUpdateAddCreatureOrGo (Quest const *quest, ObjectGuid guid, uint32 creatureOrGOIdx, uint16 oldCount, uint16 addCount)
 
void SendQuestUpdateAddPlayer (Quest const *quest, uint16 oldCount, uint16 addCount)
 
void SendQuestGiverStatusMultiple ()
 
uint32 GetSharedQuestID () const
 
ObjectGuid GetPlayerSharingQuest () const
 
void SetQuestSharingInfo (ObjectGuid guid, uint32 id)
 
void ClearQuestSharingInfo ()
 
uint32 GetInGameTime () const
 
void SetInGameTime (uint32 time)
 
void AddTimedQuest (uint32 questId)
 
void RemoveTimedQuest (uint32 questId)
 
bool HasPvPForcingQuest () const
 
bool LoadFromDB (ObjectGuid guid, CharacterDatabaseQueryHolder const &holder)
 
bool IsLoading () const override
 
void SaveToDB (bool create=false)
 
void SaveToDB (CharacterDatabaseTransaction trans, bool create=false)
 
void SaveInventoryAndGoldToDB (CharacterDatabaseTransaction trans)
 
void SaveGoldToDB (CharacterDatabaseTransaction trans) const
 
void SetBindPoint (ObjectGuid guid) const
 
void SendRespecWipeConfirm (ObjectGuid const &guid, uint32 cost) const
 
void ResetPetTalents ()
 
void RegenerateAll ()
 
void Regenerate (Powers power)
 
void RegenerateHealth ()
 
void setRegenTimerCount (uint32 time)
 
void setWeaponChangeTimer (uint32 time)
 
uint32 GetMoney () const
 
bool ModifyMoney (int32 amount, bool sendError=true)
 
bool HasEnoughMoney (uint32 amount) const
 
bool HasEnoughMoney (int32 amount) const
 
void SetMoney (uint32 value)
 
RewardedQuestSet const & getRewardedQuests () const
 
QuestStatusMap & getQuestStatusMap ()
 
size_t GetRewardedQuestCount () const
 
bool IsQuestRewarded (uint32 quest_id) const
 
Unit * GetSelectedUnit () const
 
Player * GetSelectedPlayer () const
 
void SetTarget (ObjectGuid const &) override
 
void SetSelection (ObjectGuid const &guid)
 Used for serverside target changes, does not apply to players.
 
void SendMailResult (uint32 mailId, MailResponseType mailAction, MailResponseResult mailError, uint32 equipError=0, ObjectGuid::LowType item_guid=0, uint32 item_count=0) const
 
void SendNewMail () const
 
void UpdateNextMailTimeAndUnreads ()
 
void AddNewMailDeliverTime (time_t deliver_time)
 
void RemoveMail (uint32 id)
 
void AddMail (Mail *mail)
 
uint32 GetMailSize ()
 
Mail * GetMail (uint32 id)
 
PlayerMails const & GetMails () const
 
void SendItemRetrievalMail (uint32 itemEntry, uint32 count)
 
Item * GetMItem (ObjectGuid::LowType id)
 
void AddMItem (Item *it)
 
bool RemoveMItem (ObjectGuid::LowType id)
 
void SendOnCancelExpectedVehicleRideAura () const
 
void PetSpellInitialize ()
 
void CharmSpellInitialize ()
 
void PossessSpellInitialize ()
 
void VehicleSpellInitialize ()
 
void SendRemoveControlBar () const
 
bool HasSpell (uint32 spell) const override
 
bool HasActiveSpell (uint32 spell) const
 
bool IsSpellFitByClassAndRace (uint32 spell_id) const
 
bool HandlePassiveSpellLearn (SpellInfo const *spellInfo)
 
void SendProficiency (ItemClass itemClass, uint32 itemSubclassMask) const
 
void SendInitialSpells ()
 
void SendUnlearnSpells ()
 
bool AddSpell (uint32 spellId, bool active, bool learning, bool dependent, bool disabled, bool loading=false, uint32 fromSkill=0)
 
void LearnSpell (uint32 spell_id, bool dependent, uint32 fromSkill=0)
 
void RemoveSpell (uint32 spell_id, bool disabled=false, bool learn_low_rank=true)
 
void ResetSpells (bool myClassOnly=false)
 
void LearnCustomSpells ()
 
void LearnDefaultSkills ()
 
void LearnDefaultSkill (uint32 skillId, uint16 rank)
 
void LearnQuestRewardedSpells ()
 
void LearnQuestRewardedSpells (Quest const *quest)
 
void AddTemporarySpell (uint32 spellId)
 
void RemoveTemporarySpell (uint32 spellId)
 
void SetReputation (uint32 factionentry, uint32 value)
 
uint32 GetReputation (uint32 factionentry) const
 
std::string GetGuildName () const
 
uint32 GetFreeTalentPoints () const
 
void SetFreeTalentPoints (uint32 points)
 
uint32 GetUsedTalentCount () const
 
void SetUsedTalentCount (uint32 talents)
 
uint32 GetQuestRewardedTalentCount () const
 
void AddQuestRewardedTalentCount (uint32 points)
 
uint32 GetTalentResetCost () const
 
void SetTalentResetCost (uint32 cost)
 
time_t GetTalentResetTime () const
 
void SetTalentResetTime (time_t time_)
 
uint8 GetActiveTalentGroup () const
 
void SetActiveTalentGroup (uint8 group)
 
uint8 GetTalentGroupsCount () const
 
void SetTalentGroupsCount (uint8 count)
 
bool ResetTalents (bool involuntarily=false)
 
uint32 GetNextResetTalentsCost () const
 
void IncreaseResetTalentsCostAndCounters (uint32 lastResetTalentsCost)
 
void InitTalentForLevel ()
 
void BuildPlayerTalentsInfoData (WorldPackets::Talent::TalentInfoUpdate &talentInfo)
 
void BuildPetTalentsInfoData (WorldPackets::Talent::PetTalentInfoUpdate &petTalentInfo) const
 
void SendTalentsInfoData (bool pet)
 
bool LearnTalent (uint32 talentId, uint32 talentRank)
 
void LearnPetTalent (ObjectGuid petGuid, uint32 talentId, uint32 talentRank)
 
void SendTameFailure (uint8 result)
 
bool AddTalent (uint32 spellId, uint8 spec, bool learning)
 
bool HasTalent (uint32 spell_id, uint8 spec) const
 
uint32 CalculateTalentsPoints () const
 
void UpdateTalentGroupCount (uint8 count)
 
void ActivateTalentGroup (uint8 group)
 
void LoadActions (PreparedQueryResult result)
 
void InitGlyphsForLevel ()
 
void SetGlyphSlot (uint8 slot, uint32 slottype)
 
uint32 GetGlyphSlot (uint8 slot) const
 
void SetGlyph (uint8 slot, uint32 glyph)
 
uint32 GetGlyph (uint8 group, uint8 slot) const
 
PlayerTalentMap const * GetTalentMap (uint8 group) const
 
PlayerTalentMap * GetTalentMap (uint8 group)
 
ActionButtonList const & GetActionButtons () const
 
uint32 GetFreePrimaryProfessionPoints () const
 
void SetFreePrimaryProfessions (uint16 profs)
 
void InitPrimaryProfessions ()
 
PlayerSpellMap const & GetSpellMap () const
 
PlayerSpellMap & GetSpellMap ()
 
void AddSpellMod (SpellModifier *mod, bool apply)
 
template<class T >
void ApplySpellMod (uint32 spellId, SpellModOp op, T &basevalue, Spell *spell=nullptr) const
 
void SetSpellModTakingSpell (Spell *spell, bool apply)
 
void RemoveArenaSpellCooldowns (bool removeActivePetCooldowns=false)
 
uint32 GetLastPotionId () const
 
void SetLastPotionId (uint32 item_id)
 
void UpdatePotionCooldown (Spell *spell=nullptr)
 
void SetResurrectRequestData (WorldObject const *caster, uint32 health, uint32 mana, uint32 appliedAura)
 
void ClearResurrectRequestData ()
 
bool IsResurrectRequestedBy (ObjectGuid const &guid) const
 
bool IsResurrectRequested () const
 
void ResurrectUsingRequestData ()
 
void ResurrectUsingRequestDataImpl ()
 
uint8 getCinematic () const
 
void setCinematic (uint8 cine)
 
uint32 GetMovie () const
 
void SetMovie (uint32 movie)
 
ActionButton * AddActionButton (uint8 button, uint32 action, uint8 type)
 
void RemoveActionButton (uint8 button)
 
ActionButton const * GetActionButton (uint8 button)
 
void SendInitialActionButtons () const
 
void SendActionButtons (uint32 state) const
 
bool IsActionButtonDataValid (uint8 button, uint32 action, uint8 type) const
 
void SetMultiActionBars (uint8 mask)
 
void InitPvP ()
 
void UpdatePvPState (bool onlyFFA=false)
 
void SetPvP (bool state) override
 
void UpdatePvP (bool state, bool override=false)
 
void UpdateZone (uint32 newZone, uint32 newArea)
 
void UpdateArea (uint32 newArea)
 
void SetNeedsZoneUpdate (bool needsUpdate)
 
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 SetContestedPvP (Player *attackedPlayer=nullptr)
 
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 (ObjectGuid::LowType guildId)
 
void SetGuildRank (uint8 rankId)
 
uint8 GetGuildRank () const
 
void SetGuildIdInvited (ObjectGuid::LowType GuildId)
 
ObjectGuid::LowType GetGuildId () const
 
Guild * GetGuild ()
 
Guild const * GetGuild () const
 
ObjectGuid::LowType GetGuildIdInvited () const
 
void SetInArenaTeam (uint32 ArenaTeamId, uint8 slot, uint8 type)
 
void SetArenaTeamInfoField (uint8 slot, ArenaTeamInfoType type, uint32 value)
 
uint32 GetArenaTeamId (uint8 slot) const
 
uint32 GetArenaPersonalRating (uint8 slot) const
 
void SetArenaTeamIdInvited (uint32 ArenaTeamId)
 
uint32 GetArenaTeamIdInvited () const
 
Difficulty GetDifficultyID (MapEntry const *mapEntry) const
 
Difficulty GetDungeonDifficultyID () const
 
Difficulty GetRaidDifficultyID () const
 
void SetDungeonDifficultyID (Difficulty dungeon_difficulty)
 
void SetRaidDifficultyID (Difficulty 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 ()
 
uint32 GetBaseDefenseSkillValue () const
 
uint32 GetBaseWeaponSkillValue (WeaponAttackType attType) const
 
float GetHealthBonusFromStamina ()
 
float GetManaBonusFromIntellect ()
 
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 ApplyFeralAPBonus (int32 amount, bool apply)
 
void UpdateAttackPowerAndDamage (bool ranged=false) override
 
void UpdateShieldBlockValue ()
 
void ApplySpellPowerBonus (int32 amount, bool apply)
 
void UpdateSpellDamageAndHealingBonus ()
 
void ApplyRatingMod (CombatRating cr, int32 value, bool apply)
 
void UpdateRating (CombatRating cr)
 
void UpdateAllRatings ()
 
void CalculateMinMaxDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, float &minDamage, float &maxDamage, uint8 damageIndex) const override
 
void UpdateDefenseBonusesMod ()
 
void RecalculateRating (CombatRating cr)
 
float GetMeleeCritFromAgility () const
 
void GetDodgeFromAgility (float &diminishing, float &nondiminishing) const
 
float GetMissPercentageFromDefense () const
 
float GetSpellCritFromIntellect () const
 
float OCTRegenHPPerSpirit () const
 
float OCTRegenMPPerSpirit () const
 
float GetRatingMultiplier (CombatRating cr) const
 
float GetRatingBonusValue (CombatRating cr) const
 
uint32 GetBaseSpellPowerBonus () const
 Returns base spellpower bonus from spellpower stat on items.
 
int32 GetSpellPenetrationItemMod () const
 
bool CanApplyResilience () const override
 
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 UpdatePowerRegen (Powers power)
 
void UpdateRuneRegen (RuneType rune)
 
float GetPowerRegen (Powers power) const
 
uint32 GetRuneTimer (uint8 index) const
 
void SetRuneTimer (uint8 index, uint32 timer)
 
uint32 GetLastRuneGraceTimer (uint8 index) const
 
void SetLastRuneGraceTimer (uint8 index, uint32 timer)
 
ObjectGuid GetLootGUID () const
 
void SetLootGUID (ObjectGuid guid)
 
void RemovedInsignia (Player *looterPlr)
 
WorldSession * GetSession () const
 
GameClient * GetGameClient () 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) const
 
void SendAttackSwingCantAttack () const
 
void SendAttackSwingCancelAttack () const
 
void SendAttackSwingDeadTarget () const
 
void SendAttackSwingNotInRange () const
 
void SendAttackSwingBadFacingAttack () const
 
void SendAutoRepeatCancel (Unit *target)
 
void SendExplorationExperience (uint32 Area, uint32 Experience) const
 
void SendDungeonDifficulty (bool changeCurrentDifficuly, bool changeGroupDifficuly) const
 
void SendRaidDifficulty (bool changeCurrentDifficuly, bool changeGroupDifficuly) const
 
void ResetInstances (uint8 method, bool isRaid)
 Reset all solo instances and optionally send a message on success for each.
 
void SendResetInstanceSuccess (uint32 MapId) const
 
void SendResetInstanceFailed (uint32 reason, uint32 MapId) const
 
void SendResetFailedNotify (uint32 mapid) const
 
bool UpdatePosition (float x, float y, float z, float orientation, bool teleport=false) override
 
bool UpdatePosition (Position const &pos, bool teleport=false) override
 
void ProcessTerrainStatusUpdate (ZLiquidStatus oldLiquidStatus, Optional< LiquidData > const &newLiquidData) override
 
void AtExitCombat () override
 
void SendMessageToSet (WorldPacket const *data, bool self) const override
 
void SendMessageToSetInRange (WorldPacket const *data, float dist, bool self) const override
 
void SendMessageToSetInRange (WorldPacket const *data, float dist, bool self, bool own_team_only, bool required3dDist=false) const
 
void SendMessageToSet (WorldPacket const *data, Player const *skipped_rcvr) const override
 
Corpse * GetCorpse () const
 
void SpawnCorpseBones (bool triggerSave=true)
 
Corpse * CreateCorpse ()
 
void KillPlayer ()
 
bool HasCorpse () const
 
WorldLocation const & GetCorpseLocation () const
 
uint32 GetResurrectionSpellId ()
 
void ResurrectPlayer (float restore_percent, bool applySickness=false)
 
void BuildPlayerRepop ()
 
void RepopAtGraveyard ()
 
void RemoveGhoul ()
 
void SendDurabilityLoss ()
 
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)
 
void DurabilityRepairAll (bool takeCost, float discountMod, bool guildBank)
 
void DurabilityRepair (uint16 pos, bool takeCost, float discountMod)
 
void UpdateMirrorTimers ()
 
void StopMirrorTimers ()
 
bool IsMirrorTimerActive (MirrorTimerType type) const
 
bool CanJoinConstantChannelInZone (ChatChannelsEntry const *channel, AreaTableEntry const *zone) const
 
void JoinedChannel (Channel *c)
 
void LeftChannel (Channel *c)
 
void CleanupChannels ()
 
void UpdateLocalChannels (uint32 newZone)
 
void LeaveLFGChannel ()
 
JoinedChannelsList const & GetJoinedChannels () const
 
void UpdateDefense ()
 
void UpdateWeaponSkill (Unit *victim, WeaponAttackType attType)
 
void UpdateCombatSkills (Unit *victim, WeaponAttackType attType, bool defense)
 
void SetSkill (uint32 id, uint16 step, uint16 newVal, 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 (uint32 skill) const
 
bool HasSkill (uint32 skill) const
 
void LearnSkillRewardedSpells (uint32 skillId, uint32 skillValue)
 
uint16 GetSkillLineIdByPos (uint32 pos) const
 
void SetSkillLineId (uint32 pos, uint16 skillLineId)
 
uint16 GetSkillStepByPos (uint32 pos) const
 
void SetSkillStep (uint32 pos, uint16 step)
 
uint16 GetSkillRankByPos (uint32 pos) const
 
void SetSkillRank (uint32 pos, uint16 rank)
 
uint16 GetSkillMaxRankByPos (uint32 pos) const
 
void SetSkillMaxRank (uint32 pos, uint16 max)
 
int16 GetSkillTempBonusByPos (uint32 pos) const
 
void SetSkillTempBonus (uint32 pos, int16 bonus)
 
uint16 GetSkillPermBonusByPos (uint32 pos) const
 
void SetSkillPermBonus (uint32 pos, uint16 bonus)
 
WorldLocation & GetTeleportDest ()
 
uint32 GetTeleportOptions () const
 
bool IsBeingTeleported () const
 
bool IsBeingTeleportedNear () const
 
bool IsBeingTeleportedFar () const
 
void SetSemaphoreTeleportNear (bool semphsetting)
 
void SetSemaphoreTeleportFar (bool semphsetting)
 
void ProcessDelayedOperations ()
 
void CheckAreaExplore ()
 
void CheckOutdoorsAuraRequirements ()
 
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) const
 
bool GetsRecruitAFriendBonus (bool forXP)
 
uint8 GetGrantableLevels () const
 
void SetGrantableLevels (uint8 val)
 
ReputationMgr & GetReputationMgr ()
 
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 UpdateWeaponsSkillsToMaxSkillsForLevel ()
 
void ModifySkillBonus (uint32 skillid, int32 val, bool talent)
 
void SetArenaFaction (uint8 arenaFaction)
 
void UpdateHonorFields ()
 
bool RewardHonor (Unit *victim, uint32 groupsize, int32 honor=-1, bool pvptoken=false)
 
uint32 GetHonorPoints () const
 
uint32 GetArenaPoints () const
 
void ModifyHonorPoints (int32 value, CharacterDatabaseTransaction trans=CharacterDatabaseTransaction(nullptr))
 
void ModifyArenaPoints (int32 value, CharacterDatabaseTransaction trans=CharacterDatabaseTransaction(nullptr))
 If trans is specified, honor save query will be added to trans.
 
uint32 GetMaxPersonalArenaRatingRequirement (uint32 minarenaslot) const
 If trans is specified, arena point save query will be added to trans.
 
void SetHonorPoints (uint32 value)
 
void SetArenaPoints (uint32 value)
 
void SaveHealthBeforeDuel ()
 
void SaveManaBeforeDuel ()
 
void RestoreHealthAfterDuel ()
 
void RestoreManaAfterDuel ()
 
void SetDrunkValue (uint8 newDrunkValue, uint32 itemId=0)
 
uint8 GetDrunkValue () const
 
void ApplyModFakeDrunkValue (int32 mod, bool apply)
 
int32 GetFakeDrunkValue () const
 
void UpdateInvisibilityDrunkDetect ()
 
uint32 GetDeathTimer () const
 
uint32 GetCorpseReclaimDelay (bool pvp) const
 
void UpdateCorpseReclaimDelay ()
 
int32 CalculateCorpseReclaimDelay (bool load=false) const
 
void SendCorpseReclaimDelay (uint32 delay) const
 
uint32 GetShieldBlockValue () const override
 
bool CanParry () const
 
void SetCanParry (bool value)
 
bool CanBlock () const
 
void SetCanBlock (bool value)
 
bool CanTitanGrip (Item const *item) const
 
void SetCanTitanGrip (bool value, uint32 penaltySpellId=0, int32 allowedItemClass=0, int32 allowedItemSubClassMask=0)
 
void CheckTitanGripPenalty ()
 
bool CanTameExoticPets () const
 
void SetRegularAttackTime ()
 
void HandleBaseModFlatValue (BaseModGroup modGroup, float amount, bool apply)
 
void ApplyBaseModPctValue (BaseModGroup modGroup, float pct)
 
void SetBaseModFlatValue (BaseModGroup modGroup, float val)
 
void SetBaseModPctValue (BaseModGroup modGroup, float val)
 
void UpdateDamageDoneMods (WeaponAttackType attackType, int32 skipEnchantSlot=-1) override
 
void UpdateBaseModGroup (BaseModGroup modGroup)
 
float GetBaseModValue (BaseModGroup modGroup, BaseModType modType) const
 
float GetTotalBaseModValue (BaseModGroup modGroup) const
 
void _ApplyAllStatBonuses ()
 
void _RemoveAllStatBonuses ()
 
void ResetAllPowers ()
 
SpellSchoolMask GetMeleeDamageSchoolMask (WeaponAttackType attackType=BASE_ATTACK, uint8 damageIndex=0) const override
 
void CastAllObtainSpells ()
 
void ApplyItemObtainSpells (Item *item, bool apply)
 
void UpdateWeaponDependentCritAuras (WeaponAttackType attackType)
 
void UpdateAllWeaponDependentCritAuras ()
 
void UpdateWeaponDependentAuras (WeaponAttackType attackType)
 
void ApplyItemDependentAuras (Item *item, bool apply)
 
bool CheckAttackFitToAuraRequirement (WeaponAttackType attackType, AuraEffect const *aurEff) const override
 
void _ApplyItemMods (Item *item, uint8 slot, bool apply, bool updateItemAuras=true)
 
void _RemoveAllItemMods ()
 
void _ApplyAllItemMods ()
 
void _ApplyAllLevelScaleItemMods (bool apply)
 
ScalingStatDistributionEntry const * GetScalingStatDistributionFor (ItemTemplate const &itemTemplate) const
 
ScalingStatValuesEntry const * GetScalingStatValuesFor (ItemTemplate const &itemTemplate) const
 
void _ApplyItemBonuses (ItemTemplate const *proto, uint8 slot, bool apply, bool only_level_scale=false)
 
void _ApplyWeaponDamage (uint8 slot, ItemTemplate const *proto, bool apply)
 
void _ApplyAmmoBonuses ()
 
bool EnchantmentFitsRequirements (uint32 enchantmentcondition, int8 slot) const
 
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 (DamageInfo const &damageInfo)
 
void CastItemCombatSpell (DamageInfo const &damageInfo, Item *item, ItemTemplate const *proto)
 
void CastItemUseSpell (Item *item, uint32 spellId, SpellCastTargets const &targets, uint8 cast_count, uint32 misc)
 
void SendEquipmentSetList ()
 
void SetEquipmentSet (EquipmentSetInfo::EquipmentSetData const &eqset)
 
void DeleteEquipmentSet (uint64 id)
 
void SendInitWorldStates (uint32 zoneId, uint32 areaId)
 
void SendUpdateWorldState (uint32 variable, uint32 value) const
 
void SendDirectMessage (WorldPacket const *data) const
 
void SendBGWeekendWorldStates () const
 
void SendBattlefieldWorldStates () const
 
void SendAurasForTarget (Unit *target, bool force=false) const
 
void SendLoot (ObjectGuid guid, LootType loot_type)
 
void SendLootError (ObjectGuid const &owner, LootError error) const
 
void SendLootRelease (ObjectGuid guid) const
 
void SendNotifyLootItemRemoved (uint8 lootListId) const
 
void SendNotifyLootMoneyRemoved () const
 
bool InBattleground () const
 
bool InArena () const
 
uint32 GetBattlegroundId () const
 
BattlegroundTypeId GetBattlegroundTypeId () const
 
Battleground * GetBattleground () const
 
bool InBattlegroundQueue (bool ignoreArena=false) const
 
bool IsDeserter () 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 () const
 
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 withoutDeserterDebuff=false)
 
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 CanUseBattlegroundObject (GameObject *gameobject) const
 
bool isTotalImmune () const
 
bool CanCaptureTowerPoint () const
 
bool GetRandomWinner () const
 
void SetRandomWinner (bool isWinner)
 
OutdoorPvP * GetOutdoorPvP () const
 
bool IsOutdoorPvPActive () const
 
bool IsImmuneToEnvironmentalDamage () const
 
uint32 EnvironmentalDamage (EnviromentalDamage type, uint32 damage)
 
void UpdateSpeakTime (ChatFloodThrottle::Index index)
 
void UpdateFallInformationIfNeed (MovementInfo const &minfo, uint16 opcode)
 
void SetFallInformation (uint32 time, float z)
 
void HandleFall ()
 
bool CanFlyInZone (uint32 mapid, uint32 zone, SpellInfo const *bySpell) const
 
void SetClientControl (Unit *target, bool allowMove)
 
void SetSeer (WorldObject *target)
 
void SetViewpoint (WorldObject *target, bool apply)
 
WorldObject * GetViewpoint () const
 
void StopCastingCharm ()
 
void StopCastingBindSight () const
 
uint32 GetSaveTimer () const
 
void SetSaveTimer (uint32 timer)
 
void SaveRecallPosition ()
 
void Recall ()
 
void SetHomebind (WorldLocation const &loc, uint32 areaId)
 
void SendBindPointUpdate ()
 
void SendPlayerBound (ObjectGuid const &binderGuid, uint32 areaId) const
 
uint8 GetStartLevel (uint8 playerClass) const
 
WorldLocation GetStartPosition () const
 
bool HaveAtClient (Object const *u) const
 
bool IsNeverVisible (bool allowServersideObjects) const override
 
bool IsVisibleGloballyFor (Player const *player) const
 
void SendInitialVisiblePackets (Unit *target) const
 
void UpdateObjectVisibility (bool forced=true) override
 
void UpdateVisibilityForPlayer ()
 
void UpdateVisibilityOf (WorldObject *target)
 
void UpdateTriggerVisibility ()
 
void SetPhaseMask (uint32 newPhaseMask, bool update) override
 
template<class T >
void UpdateVisibilityOf (T *target, UpdateData &data, std::set< Unit * > &visibleNow)
 
bool HasAtLoginFlag (AtLoginFlags f) const
 
void SetAtLoginFlag (AtLoginFlags f)
 
void RemoveAtLoginFlag (AtLoginFlags flags, bool persist=false)
 
bool isUsingLfg () const
 
bool inRandomLfgDungeon () const
 
uint32 GetTemporaryUnsummonedPetNumber () const
 
void SetTemporaryUnsummonedPetNumber (uint32 petnumber)
 
void UnsummonPetTemporaryIfAny ()
 
void ResummonPetTemporaryUnSummonedIfAny ()
 
bool IsPetNeedBeTemporaryUnsummoned () const
 
void SendCinematicStart (uint32 CinematicSequenceId) const
 
void SendMovieStart (uint32 movieId)
 
uint32 DoRandomRoll (uint32 minimum, uint32 maximum)
 
void UpdateHomebindTime (uint32 time)
 
InstancePlayerBind * GetBoundInstance (uint32 mapid, Difficulty difficulty, bool withExpired=false)
 
BoundInstancesMap & GetBoundInstances (Difficulty difficulty)
 
InstanceSave * GetInstanceSave (uint32 mapid)
 
void UnbindInstance (uint32 mapid, Difficulty difficulty, bool unload=false)
 
void UnbindInstance (BoundInstancesMap::iterator &itr, Difficulty difficulty, bool unload=false)
 
InstancePlayerBind * BindToInstance (InstanceSave *save, bool permanent, BindExtensionState extendState=EXTEND_STATE_NORMAL, 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 CheckInstanceValidity (bool)
 
uint32 GetLastPetNumber () const
 
void SetLastPetNumber (uint32 petnumber)
 
Group * GetGroupInvite () const
 
void SetGroupInvite (Group *group)
 
Group * GetGroup ()
 
Group const * GetGroup () const
 
GroupReference & GetGroupRef ()
 
void SetGroup (Group *group, int8 subgroup=-1)
 
uint8 GetSubGroup () const
 
uint32 GetGroupUpdateFlag () const
 
void SetGroupUpdateFlag (uint32 flag)
 
uint64 GetAuraUpdateMaskForRaid () const
 
void SetAuraUpdateMaskForRaid (uint8 slot)
 
Player * GetNextRandomRaidMember (float radius)
 
PartyResult CanUninviteFromGroup (ObjectGuid guidMember=ObjectGuid::Empty) const
 
void SetBattlegroundOrBattlefieldRaid (Group *group, int8 subgroup=-1)
 
void RemoveFromBattlegroundOrBattlefieldRaid ()
 
Group * GetOriginalGroup () const
 
GroupReference & GetOriginalGroupRef ()
 
uint8 GetOriginalSubGroup () const
 
void SetOriginalGroup (Group *group, int8 subgroup=-1)
 
void SetPassOnGroupLoot (bool bPassOnGroupLoot)
 
bool GetPassOnGroupLoot () const
 
MapReference & GetMapRef ()
 
void SetMap (Map *map) override
 
void ResetMap () override
 
bool isAllowedToLoot (Creature const *creature) const
 
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 () const
 
void SetLastUsedRune (RuneType type)
 
void SetBaseRune (uint8 index, RuneType baseRune)
 
void SetCurrentRune (uint8 index, RuneType currentRune)
 
void SetRuneCooldown (uint8 index, uint32 cooldown, bool casted=false)
 
void SetRuneConvertAura (uint8 index, AuraEffect const *aura)
 
void RemoveRuneConvertAura (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 () const
 
void AddRunePower (uint8 index) const
 
void InitRunes ()
 
void SendRespondInspectAchievements (Player *player) const
 
bool HasAchieved (uint32 achievementId) const
 
void ResetAchievements ()
 
void ResetAchievementCriteria (AchievementCriteriaCondition condition, uint32 value, bool evenIfCriteriaComplete=false)
 
void UpdateAchievementCriteria (AchievementCriteriaTypes type, uint32 miscValue1=0, uint32 miscValue2=0, WorldObject *ref=nullptr)
 
void StartTimedAchievement (AchievementCriteriaTimedTypes type, uint32 entry, uint32 timeLost=0)
 
void RemoveTimedAchievement (AchievementCriteriaTimedTypes type, uint32 entry)
 
void CompletedAchievement (AchievementEntry const *entry)
 
bool HasTitle (uint32 bitIndex) const
 
bool HasTitle (CharTitlesEntry const *title) const
 
void SetTitle (CharTitlesEntry const *title, bool lost=false)
 
bool CanSeeSpellClickOn (Creature const *creature) const
 
uint32 GetChampioningFaction () const
 
void SetChampioningFaction (uint32 faction)
 
float GetAverageItemLevel () const
 
void ClearWhisperWhiteList ()
 
void AddWhisperWhiteList (ObjectGuid guid)
 
bool IsInWhisperWhiteList (ObjectGuid guid)
 
void RemoveFromWhisperWhiteList (ObjectGuid guid)
 
void SendMovementSetCollisionHeight (float height)
 
bool CanFly () const override
 
bool CanEnterWater () const override
 
std::string GetMapAreaAndZoneString () const
 
std::string GetCoordsMapAreaAndZoneString () const
 
std::string GetDebugInfo () const override
 
- Public Member Functions inherited from Unit
virtual ~Unit ()
 
bool IsAIEnabled () const
 
void AIUpdateTick (uint32 diff)
 
UnitAI * GetAI () const
 
void ScheduleAIChange ()
 
void PushAI (UnitAI *newAI)
 
bool PopAI ()
 
void AddToWorld () override
 
void RemoveFromWorld () override
 
void CleanupBeforeRemoveFromMap (bool finalCleanup)
 
void CleanupsBeforeDelete (bool finalCleanup=true) override
 
uint32 GetDynamicFlags () const override
 
void ReplaceAllDynamicFlags (uint32 flag) override
 
virtual bool IsAffectedByDiminishingReturns () const
 
DiminishingLevels GetDiminishing (DiminishingGroup group) const
 
void IncrDiminishing (SpellInfo const *auraSpellInfo, bool triggered)
 
bool ApplyDiminishingToDuration (SpellInfo const *auraSpellInfo, bool triggered, int32 &duration, WorldObject *caster, DiminishingLevels previousLevel) const
 
void ApplyDiminishingAura (DiminishingGroup group, bool apply)
 
void ClearDiminishings ()
 
void Heartbeat () override
 
void setAttackTimer (WeaponAttackType type, uint32 time)
 
void resetAttackTimer (WeaponAttackType type=BASE_ATTACK)
 
uint32 getAttackTimer (WeaponAttackType type) const
 
bool isAttackReady (WeaponAttackType type=BASE_ATTACK) const
 
bool haveOffhandWeapon () const
 
bool CanDualWield () const
 
virtual void SetCanDualWield (bool value)
 
float GetCombatReach () const override
 
void SetCombatReach (float combatReach)
 
float GetBoundingRadius () const
 
void SetBoundingRadius (float boundingRadius)
 
bool IsWithinCombatRange (Unit const *obj, float dist2compare) const
 
bool IsWithinMeleeRange (Unit const *obj) const
 
bool IsWithinMeleeRangeAt (Position const &pos, Unit const *obj) const
 
float GetMeleeRange (Unit const *target) const
 
void _addAttacker (Unit *pAttacker)
 
void _removeAttacker (Unit *pAttacker)
 
Unit * getAttackerForHelper () const
 
bool Attack (Unit *victim, bool meleeAttack)
 
void CastStop (uint32 except_spellid=0)
 
bool AttackStop ()
 
void RemoveAllAttackers ()
 
AttackerSet const & getAttackers () const
 
bool isAttackingPlayer () const
 
Unit * GetVictim () const
 
Unit * EnsureVictim () const
 
void ValidateAttackersAndOwnTarget ()
 
void CombatStop (bool includingCast=false, bool mutualPvP=true)
 
void CombatStopWithPets (bool includingCast=false)
 
void StopAttackFaction (uint32 faction_id)
 
Unit * SelectNearbyTarget (Unit *exclude=nullptr, float dist=NOMINAL_MELEE_RANGE) const
 
void SendMeleeAttackStop (Unit const *victim=nullptr) const
 
void SendMeleeAttackStart (Unit *victim)
 
void AddUnitState (uint32 f)
 
bool HasUnitState (const uint32 f) const
 
void ClearUnitState (uint32 f)
 
bool CanFreeMove () const
 
uint32 HasUnitTypeMask (uint32 mask) const
 
void AddUnitTypeMask (uint32 mask)
 
bool IsSummon () const
 
bool IsGuardian () const
 
bool IsPet () const
 
bool IsHunterPet () const
 
bool IsTotem () const
 
bool IsVehicle () const
 
uint8 GetLevel () const
 
uint8 GetLevelForTarget (WorldObject const *) const override
 
void SetLevel (uint8 lvl, bool sendUpdate=true)
 
uint8 GetRace () const
 
void SetRace (uint8 race)
 
uint32 GetRaceMask () const
 
uint8 GetClass () const
 
void SetClass (uint8 classId)
 
uint32 GetClassMask () const
 
Gender GetGender () const
 
void SetGender (Gender gender)
 
float GetStat (Stats stat) const
 
void SetStat (Stats stat, int32 val)
 
uint32 GetArmor () const
 
void SetArmor (int32 val)
 
int32 GetResistance (SpellSchools school) const
 
int32 GetResistance (SpellSchoolMask mask) const
 
void SetResistance (SpellSchools school, int32 val)
 
uint32 GetHealth () const
 
uint32 GetMaxHealth () const
 
bool IsFullHealth () const
 
bool HealthBelowPct (int32 pct) const
 
bool HealthBelowPctDamaged (int32 pct, uint32 damage) const
 
bool HealthAbovePct (int32 pct) const
 
bool HealthAbovePctHealed (int32 pct, uint32 heal) const
 
float GetHealthPct () const
 
uint32 CountPctFromMaxHealth (int32 pct) const
 
uint32 CountPctFromCurHealth (int32 pct) const
 
void SetHealth (uint32 val)
 
void SetMaxHealth (uint32 val)
 
void SetFullHealth ()
 
int32 ModifyHealth (int32 val)
 
int32 GetHealthGain (int32 dVal)
 
Powers GetPowerType () const
 
void SetPowerType (Powers power, bool sendUpdate=true)
 
void UpdateDisplayPower ()
 
uint32 GetPower (Powers power) const
 
int32 GetMinPower (Powers) const
 
uint32 GetMaxPower (Powers power) const
 
float GetPowerPct (Powers power) const
 
int32 CountPctFromMaxPower (Powers power, int32 pct) const
 
void SetPower (Powers power, uint32 val, bool withPowerUpdate=true, bool force=false)
 
void SetMaxPower (Powers power, uint32 val)
 
void SetFullPower (Powers power)
 
int32 ModifyPower (Powers power, int32 val, bool withPowerUpdate=true)
 
uint32 GetAttackTime (WeaponAttackType att) const
 
void SetAttackTime (WeaponAttackType att, uint32 val)
 
void ApplyAttackTimePercentMod (WeaponAttackType att, float val, bool apply)
 
void ApplyCastTimePercentMod (float val, bool apply)
 
void SetModCastingSpeed (float castingSpeed)
 
UnitFlags GetUnitFlags () const
 
bool HasUnitFlag (UnitFlags flags) const
 
void SetUnitFlag (UnitFlags flags)
 
void RemoveUnitFlag (UnitFlags flags)
 
void ReplaceAllUnitFlags (UnitFlags flags)
 
UnitFlags2 GetUnitFlags2 () const
 
bool HasUnitFlag2 (UnitFlags2 flags) const
 
void SetUnitFlag2 (UnitFlags2 flags)
 
void RemoveUnitFlag2 (UnitFlags2 flags)
 
void ReplaceAllUnitFlags2 (UnitFlags2 flags)
 
void SetCreatedBySpell (int32 spellId)
 
Emote GetEmoteState () const
 
void SetEmoteState (Emote emote)
 
SheathState GetSheath () const
 
uint32 GetFaction () const override
 
void SetFaction (uint32 faction) override
 
bool IsInPartyWith (Unit const *unit) const
 
bool IsInRaidWith (Unit const *unit) const
 
void GetPartyMembers (std::list< Unit * > &units)
 
bool IsContestedGuard () const
 
UnitPVPStateFlags GetPvpFlags () const
 
bool HasPvpFlag (UnitPVPStateFlags flags) const
 
void SetPvpFlag (UnitPVPStateFlags flags)
 
void RemovePvpFlag (UnitPVPStateFlags flags)
 
void ReplaceAllPvpFlags (UnitPVPStateFlags flags)
 
bool IsInSanctuary () const
 
bool IsPvP () const
 
bool IsFFAPvP () const
 
UnitPetFlag GetPetFlags () const
 
bool HasPetFlag (UnitPetFlag flags) const
 
void SetPetFlag (UnitPetFlag flags)
 
void RemovePetFlag (UnitPetFlag flags)
 
void ReplaceAllPetFlags (UnitPetFlag flags)
 
uint32 GetCreatureType () const
 
uint32 GetCreatureTypeMask () const
 
UnitStandStateType GetStandState () const
 
bool IsSitState () const
 
bool IsStandState () const
 
void SetStandState (UnitStandStateType state)
 
void SetVisFlag (UnitVisFlags flags)
 
void RemoveVisFlag (UnitVisFlags flags)
 
void ReplaceAllVisFlags (UnitVisFlags flags)
 
AnimTier GetAnimTier () const
 
void SetAnimTier (AnimTier animTier)
 
bool IsMounted () const
 
uint32 GetMountDisplayId () const
 
void SetMountDisplayId (uint32 mountDisplayId)
 
void Mount (uint32 mount, uint32 vehicleId=0, uint32 creatureEntry=0)
 
void Dismount ()
 
uint32 GetMaxSkillValueForLevel (Unit const *target=nullptr) const
 
void KillSelf (bool durabilityLoss=true)
 
void GetProcAurasTriggeredOnEvent (AuraApplicationProcContainer &aurasTriggeringProc, AuraApplicationList *procAuras, ProcEventInfo &eventInfo)
 
void TriggerAurasProcOnEvent (Unit *actionTarget, uint32 typeMaskActor, uint32 typeMaskActionTarget, uint32 spellTypeMask, uint32 spellPhaseMask, uint32 hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo)
 
void TriggerAurasProcOnEvent (ProcEventInfo &eventInfo, AuraApplicationProcContainer &procAuras)
 
void HandleEmoteCommand (Emote emoteId)
 
void AttackerStateUpdate (Unit *victim, WeaponAttackType attType=BASE_ATTACK, bool extra=false)
 
void CalculateMeleeDamage (Unit *victim, CalcDamageInfo *damageInfo, WeaponAttackType attackType=BASE_ATTACK)
 
void DealMeleeDamage (CalcDamageInfo *damageInfo, bool durabilityLoss)
 
void HandleProcExtraAttackFor (Unit *victim, uint32 count)
 
void SetLastExtraAttackSpell (uint32 spellId)
 
uint32 GetLastExtraAttackSpell () const
 
void AddExtraAttacks (uint32 count)
 
void SetLastDamagedTargetGuid (ObjectGuid guid)
 
ObjectGuid GetLastDamagedTargetGuid () const
 
void CalculateSpellDamageTaken (SpellNonMeleeDamage *damageInfo, int32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=BASE_ATTACK, bool crit=false, bool blocked=false, Spell *spell=nullptr)
 
void DealSpellDamage (SpellNonMeleeDamage const *damageInfo, bool durabilityLoss)
 
float GetMeleeCritChanceReduction () const
 
float GetRangedCritChanceReduction () const
 
float GetSpellCritChanceReduction () const
 
uint32 GetMeleeCritDamageReduction (uint32 damage) const
 
uint32 GetRangedCritDamageReduction (uint32 damage) const
 
uint32 GetSpellCritDamageReduction (uint32 damage) const
 
uint32 GetMeleeDamageReduction (uint32 damage) const
 
uint32 GetRangedDamageReduction (uint32 damage) const
 
uint32 GetSpellDamageReduction (uint32 damage) const
 
int32 CalculateAOEAvoidance (int32 damage, uint32 schoolMask, ObjectGuid const &casterGuid) const
 
float MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, int32 skillDiff, uint32 spellId) const override
 
SpellMissInfo MeleeSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const override
 
float GetUnitDodgeChance (WeaponAttackType attType, Unit const *victim) const
 
float GetUnitParryChance (WeaponAttackType attType, Unit const *victim) const
 
float GetUnitBlockChance (WeaponAttackType attType, Unit const *victim) const
 
float GetUnitMissChance () const
 
float GetUnitCriticalChanceDone (WeaponAttackType attackType) const
 
float GetUnitCriticalChanceTaken (Unit const *attacker, WeaponAttackType attackType, float critDone) const
 
float GetUnitCriticalChanceAgainst (WeaponAttackType attackType, Unit const *victim) const
 
int32 GetMechanicResistChance (SpellInfo const *spellInfo) const
 
bool CanUseAttackType (uint8 attacktype) const
 
uint32 GetShieldBlockValue (uint32 soft_cap, uint32 hard_cap) const
 
uint32 GetDefenseSkillValue (Unit const *target=nullptr) const
 
uint32 GetWeaponSkillValue (WeaponAttackType attType, Unit const *target=nullptr) const
 
float GetWeaponProcChance () const
 
float GetPPMProcChance (uint32 WeaponSpeed, float PPM, SpellInfo const *spellProto) const
 
MeleeHitOutcome RollMeleeOutcomeAgainst (Unit const *victim, WeaponAttackType attType) const
 
NPCFlags GetNpcFlags () const
 
bool HasNpcFlag (NPCFlags flags) const
 
void SetNpcFlag (NPCFlags flags)
 
void RemoveNpcFlag (NPCFlags flags)
 
void ReplaceAllNpcFlags (NPCFlags flags)
 
bool IsVendor () const
 
bool IsTrainer () const
 
bool IsQuestGiver () const
 
bool IsGossip () const
 
bool IsTaxi () const
 
bool IsGuildMaster () const
 
bool IsBattleMaster () const
 
bool IsBanker () const
 
bool IsInnkeeper () const
 
bool IsSpiritHealer () const
 
bool IsSpiritGuide () const
 
bool IsTabardDesigner () const
 
bool IsAuctioner () const
 
bool IsArmorer () const
 
bool IsServiceProvider () const
 
bool IsSpiritService () const
 
bool IsCritter () const
 
bool IsInFlight () const
 
bool CanHaveThreatList () const
 ====================== THREAT & COMBAT ====================
 
virtual bool IsEngaged () const
 
bool IsEngagedBy (Unit const *who) const
 
void EngageWithTarget (Unit *who)
 
CombatManager & GetCombatManager ()
 
CombatManager const & GetCombatManager () const
 
void AtTargetAttacked (Unit *target, bool canInitialAggro)
 
bool IsImmuneToAll () const
 
void SetImmuneToAll (bool apply, bool keepCombat)
 
virtual void SetImmuneToAll (bool apply)
 
bool IsImmuneToPC () const
 
void SetImmuneToPC (bool apply, bool keepCombat)
 
virtual void SetImmuneToPC (bool apply)
 
bool IsImmuneToNPC () const
 
void SetImmuneToNPC (bool apply, bool keepCombat)
 
virtual void SetImmuneToNPC (bool apply)
 
bool IsInCombat () const
 
bool IsInCombatWith (Unit const *who) const
 
void SetInCombatWith (Unit *enemy, bool addSecondUnitSuppressed=false)
 
void ClearInCombat ()
 
void UpdatePetCombatState ()
 
bool IsThreatened () const
 
bool IsThreatenedBy (Unit const *who) const
 
ThreatManager & GetThreatManager ()
 
ThreatManager const & GetThreatManager () const
 
void SendClearTarget ()
 
bool HasAuraTypeWithFamilyFlags (AuraType auraType, uint32 familyName, flag96 familyFlags) const
 
bool HasBreakableByDamageAuraType (AuraType type, uint32 excludeAura=0) const
 
bool HasBreakableByDamageCrowdControlAura (Unit *excludeCasterChannel=nullptr) const
 
bool HasStealthAura () const
 
bool HasInvisibilityAura () const
 
bool IsFeared () const
 
bool IsRooted () const
 
bool IsPolymorphed () const
 
bool IsFrozen () const
 
bool isTargetableForAttack (bool checkFakeDeath=true) const
 
bool IsInWater () const
 
bool IsUnderWater () const
 
bool isInAccessiblePlaceFor (Creature const *c) const
 
void SendHealSpellLog (HealInfo &healInfo, bool critical=false)
 
int32 HealBySpell (HealInfo &healInfo, bool critical=false)
 
void SendEnergizeSpellLog (Unit *victim, uint32 spellId, int32 damage, Powers powerType)
 
void EnergizeBySpell (Unit *victim, uint32 spellId, int32 damage, Powers powerType)
 
void EnergizeBySpell (Unit *victim, SpellInfo const *spellInfo, int32 damage, Powers powerType)
 
Aura * AddAura (uint32 spellId, Unit *target)
 
Aura * AddAura (SpellInfo const *spellInfo, uint8 effMask, Unit *target)
 
void SetAuraStack (uint32 spellId, Unit *target, uint32 stack)
 
void SendPlaySpellVisualKit (uint32 id, uint32 type) const
 
void DeMorph ()
 
void SendAttackStateUpdate (CalcDamageInfo *damageInfo)
 
void SendAttackStateUpdate (uint32 HitInfo, Unit *target, uint8 SwingType, SpellSchoolMask damageSchoolMask, uint32 Damage, uint32 AbsorbDamage, uint32 Resist, VictimState TargetState, uint32 BlockedAmount)
 
void SendSpellNonMeleeDamageLog (SpellNonMeleeDamage const *log)
 
void SendPeriodicAuraLog (SpellPeriodicAuraLogInfo *pInfo)
 
void SendSpellDamageResist (Unit *target, uint32 spellId)
 
void SendSpellDamageImmune (Unit *target, uint32 spellId)
 
void NearTeleportTo (Position const &pos, bool casting=false)
 
void NearTeleportTo (float x, float y, float z, float orientation, bool casting=false)
 
void SendTeleportPacket (Position const &pos, bool teleportingTransport=false)
 
void UpdateOrientation (float orientation)
 Only server-side orientation update, does not broadcast to client.
 
void UpdateHeight (float newZ)
 Only server-side height update, does not broadcast to client.
 
void SendMoveKnockBack (Player *player, float speedXY, float speedZ, float vcos, float vsin)
 
void KnockbackFrom (float x, float y, float speedXY, float speedZ)
 
void JumpTo (float speedXY, float speedZ, bool forward=true, Optional< Position > dest={})
 
void JumpTo (WorldObject *obj, float speedZ, bool withOrientation=false)
 
void MonsterMoveWithSpeed (float x, float y, float z, float speed, bool generatePath=false, bool forceDestination=false)
 
void SetHoverHeight (float hoverHeight)
 
bool IsGravityDisabled () const
 
bool IsWalking () const
 
bool IsHovering () const
 
bool SetWalk (bool enable)
 
bool SetDisableGravity (bool disable, bool updateAnimTier=true)
 
bool SetFall (bool enable)
 
bool SetSwim (bool enable)
 
bool SetCanFly (bool enable, bool packetOnly=false)
 
bool SetWaterWalking (bool enable)
 
bool SetFeatherFall (bool enable)
 
bool SetHover (bool enable, bool updateAnimTier=true)
 
void SetInFront (WorldObject const *target)
 
void SetFacingTo (float ori, bool force=true, uint32 movementId=EVENT_FACE)
 
void SetFacingToObject (WorldObject const *object, bool force=true, uint32 movementId=EVENT_FACE)
 
bool IsAlive () const
 
bool isDying () const
 
bool isDead () const
 
bool IsGhouled () const
 
DeathState getDeathState () const
 
ObjectGuid GetOwnerGUID () const override
 
void SetOwnerGUID (ObjectGuid owner)
 
ObjectGuid GetCreatorGUID () const
 
void SetCreatorGUID (ObjectGuid creator)
 
ObjectGuid GetMinionGUID () const
 
void SetMinionGUID (ObjectGuid guid)
 
ObjectGuid GetPetGUID () const
 
void SetPetGUID (ObjectGuid guid)
 
ObjectGuid GetCritterGUID () const
 
void SetCritterGUID (ObjectGuid guid)
 
ObjectGuid GetCharmerGUID () const
 
Unit * GetCharmer () const
 
ObjectGuid GetCharmedGUID () const
 
Unit * GetCharmed () const
 
bool IsControlledByPlayer () const
 
Player * GetControllingPlayer () const
 
ObjectGuid GetCharmerOrOwnerGUID () const override
 
bool IsCharmedOwnedByPlayerOrPlayer () const
 
Guardian * GetGuardianPet () const
 
Minion * GetFirstMinion () const
 
Unit * GetCharmerOrOwner () const
 
void SetMinion (Minion *minion, bool apply)
 
void GetAllMinionsByEntry (std::list< TempSummon * > &Minions, uint32 entry)
 
void RemoveAllMinionsByEntry (uint32 entry)
 
void SetCharm (Unit *target, bool apply)
 
Unit * GetNextRandomRaidMemberOrPet (float radius)
 
bool SetCharmedBy (Unit *charmer, CharmType type, AuraApplication const *aurApp=nullptr)
 
void RemoveCharmedBy (Unit *charmer)
 
void RestoreFaction ()
 
Unit * GetFirstControlled () const
 
void RemoveAllControlled ()
 
bool IsCharmed () const
 
bool IsCharming () const
 
bool isPossessed () const
 
bool isPossessedByPlayer () const
 
bool isPossessing () const
 
bool isPossessing (Unit *u) const
 
CharmInfo * GetCharmInfo ()
 
CharmInfo * InitCharmInfo ()
 
void DeleteCharmInfo ()
 
void SetPetNumberForClient (uint32 petNumber)
 
void SetPetNameTimestamp (uint32 timestamp)
 
bool IsCharmerOrSelfPlayer () const
 
Unit * GetCharmerOrSelf () const
 
Player * GetCharmerOrSelfPlayer () const
 
Unit * GetCharmedOrSelf () const
 
bool IsMovedByClient () const
 
bool IsMovedByServer () const
 
GameClient * GetGameClientMovingMe () const
 
void SetGameClientMovingMe (GameClient *gameClientMovingMe)
 
SharedVisionList const & GetSharedVisionList ()
 
void AddPlayerToVision (Player *player)
 
void RemovePlayerFromVision (Player *player)
 
bool HasSharedVision () const
 
void RemoveBindSightAuras ()
 
void RemoveCharmAuras ()
 
Pet * CreateTamedPetFrom (Creature *creatureTarget, uint32 spell_id=0)
 
Pet * CreateTamedPetFrom (uint32 creatureEntry, uint32 spell_id=0)
 
bool InitTamedPet (Pet *pet, uint8 level, uint32 spell_id)
 
Aura * _TryStackingOrRefreshingExistingAura (AuraCreateInfo &createInfo)
 
void _AddAura (UnitAura *aura, Unit *caster)
 
AuraApplication * _CreateAuraApplication (Aura *aura, uint8 effMask)
 
void _ApplyAuraEffect (Aura *aura, uint8 effIndex)
 
void _ApplyAura (AuraApplication *aurApp, uint8 effMask)
 
void _UnapplyAura (AuraApplicationMap::iterator &i, AuraRemoveMode removeMode)
 
void _UnapplyAura (AuraApplication *aurApp, AuraRemoveMode removeMode)
 
void _RemoveNoStackAurasDueToAura (Aura *aura, bool owned)
 
void _RegisterAuraEffect (AuraEffect *aurEff, bool apply)
 
AuraMap & GetOwnedAuras ()
 
AuraMap const & GetOwnedAuras () const
 
void RemoveOwnedAura (AuraMap::iterator &i, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveOwnedAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveOwnedAura (Aura *aura, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
Aura * GetOwnedAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, Aura *except=nullptr) const
 
AuraApplicationMap & GetAppliedAuras ()
 
AuraApplicationMap const & GetAppliedAuras () const
 
void RemoveAura (AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAura (AuraApplication *aurApp, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAura (Aura *aur, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAppliedAuras (std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveOwnedAuras (std::function< bool(Aura const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAppliedAuras (uint32 spellId, std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveOwnedAuras (uint32 spellId, std::function< bool(Aura const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAurasByType (AuraType auraType, std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAurasDueToSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAuraFromStack (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAurasDueToSpellByDispel (uint32 spellId, uint32 dispellerSpellId, ObjectGuid casterGUID, WorldObject *dispeller, uint8 chargesRemoved=1)
 
void RemoveAurasDueToSpellBySteal (uint32 spellId, ObjectGuid casterGUID, WorldObject *stealer)
 
void RemoveAurasDueToItemSpell (uint32 spellId, ObjectGuid castItemGuid)
 
void RemoveAurasByType (AuraType auraType, ObjectGuid casterGUID=ObjectGuid::Empty, Aura *except=nullptr, bool negative=true, bool positive=true)
 
void RemoveNotOwnSingleTargetAuras (uint32 newPhase=0x0)
 
void RemoveAurasWithInterruptFlags (uint32 flag, uint32 except=0)
 
void RemoveAurasWithAttribute (SpellAttr0 flags)
 
void RemoveAurasWithFamily (SpellFamilyNames family, flag96 const &familyFlag, ObjectGuid casterGUID)
 
void RemoveAurasWithMechanic (uint32 mechanicMaskToRemove, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, uint32 exceptSpellId=0, bool withEffectMechanics=false)
 
void RemoveMovementImpairingAuras (bool withRoot)
 
void RemoveAurasByShapeShift ()
 
void RemoveAreaAurasDueToLeaveWorld ()
 
void RemoveAllAuras ()
 
void RemoveArenaAuras ()
 
void RemoveAurasOnEvade ()
 
void RemoveAllAurasOnDeath ()
 
void RemoveAllAurasRequiringDeadTarget ()
 
void RemoveAllAurasExceptType (AuraType type)
 
void RemoveAllAurasExceptType (AuraType type1, AuraType type2)
 
void RemoveAllGroupBuffsFromCaster (ObjectGuid casterGUID)
 
void DelayOwnedAuras (uint32 spellId, ObjectGuid caster, int32 delaytime)
 
void _RemoveAllAuraStatMods ()
 
void _ApplyAllAuraStatMods ()
 
AuraEffectList const & GetAuraEffectsByType (AuraType type) const
 
AuraEffectList & GetAuraEffectsByType (AuraType type)
 
AuraList & GetSingleCastAuras ()
 
AuraList const & GetSingleCastAuras () const
 
AuraEffect * GetAuraEffect (uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
 
AuraEffect * GetAuraEffectOfRankedSpell (uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
 
AuraEffect * GetAuraEffect (AuraType type, SpellFamilyNames name, uint32 iconId, uint8 effIndex) const
 
AuraEffect * GetAuraEffect (AuraType type, SpellFamilyNames family, uint32 familyFlag1, uint32 familyFlag2, uint32 familyFlag3, ObjectGuid casterGUID=ObjectGuid::Empty) const
 
AuraEffect * GetDummyAuraEffect (SpellFamilyNames name, uint32 iconId, uint8 effIndex) const
 
AuraApplication * GetAuraApplication (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraApplication *except=nullptr) const
 
Aura * GetAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
 
AuraApplication * GetAuraApplicationOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraApplication *except=nullptr) const
 
Aura * GetAuraOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
 
void GetDispellableAuraList (WorldObject const *caster, uint32 dispelMask, DispelChargesList &dispelList, bool isReflect=false) const
 
bool HasAuraEffect (uint32 spellId, uint8 effIndex, ObjectGuid caster=ObjectGuid::Empty) const
 
uint32 GetAuraCount (uint32 spellId) const
 
bool HasAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
 
bool HasAuraType (AuraType auraType) const
 
bool HasAuraTypeWithCaster (AuraType auraType, ObjectGuid caster) const
 
bool HasAuraTypeWithMiscvalue (AuraType auraType, int32 miscValue) const
 
bool HasAuraTypeWithAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
bool HasAuraTypeWithValue (AuraType auraType, int32 value) const
 
bool HasAuraTypeWithTriggerSpell (AuraType auratype, uint32 triggerSpell) const
 
bool HasNegativeAuraWithInterruptFlag (uint32 flag, ObjectGuid guid=ObjectGuid::Empty) const
 
bool HasAuraWithMechanic (uint32 mechanicMask) const
 
bool HasStrongerAuraWithDR (SpellInfo const *auraSpellInfo, Unit *caster, bool triggered) const
 
AuraEffect * IsScriptOverriden (SpellInfo const *spell, int32 script) const
 
uint32 GetDiseasesByCaster (ObjectGuid casterGUID, bool remove=false)
 
uint32 GetDoTsByCaster (ObjectGuid casterGUID) const
 
int32 GetTotalAuraModifier (AuraType auraType) const
 
float GetTotalAuraMultiplier (AuraType auraType) const
 
int32 GetMaxPositiveAuraModifier (AuraType auraType) const
 
int32 GetMaxNegativeAuraModifier (AuraType auraType) const
 
int32 GetTotalAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
float GetTotalAuraMultiplier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
int32 GetMaxPositiveAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
int32 GetMaxNegativeAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
int32 GetTotalAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
float GetTotalAuraMultiplierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
int32 GetMaxPositiveAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask, AuraEffect const *except=nullptr) const
 
int32 GetMaxNegativeAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
int32 GetTotalAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
float GetTotalAuraMultiplierByMiscValue (AuraType auraType, int32 misc_value) const
 
int32 GetMaxPositiveAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
int32 GetMaxNegativeAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
int32 GetTotalAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
float GetTotalAuraMultiplierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
int32 GetMaxPositiveAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
int32 GetMaxNegativeAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
void UpdateResistanceBuffModsMod (SpellSchools school)
 
void InitStatBuffMods ()
 
void UpdateStatBuffMod (Stats stat)
 
void SetCreateStat (Stats stat, float val)
 
void SetCreateHealth (uint32 val)
 
uint32 GetCreateHealth () const
 
void SetCreateMana (uint32 val)
 
uint32 GetCreateMana () const
 
uint32 GetCreatePowerValue (Powers power) const
 
float GetPosStat (Stats stat) const
 
float GetNegStat (Stats stat) const
 
float GetCreateStat (Stats stat) const
 
uint32 GetChannelSpellId () const
 
void SetChannelSpellId (uint32 channelSpellId)
 
ObjectGuid GetChannelObjectGuid () const
 
void SetChannelObjectGuid (ObjectGuid guid)
 
void SetCurrentCastSpell (Spell *pSpell)
 
void InterruptSpell (CurrentSpellTypes spellType, bool withDelayed=true, bool withInstant=true, SpellCastResult result=SPELL_FAILED_INTERRUPTED, Optional< SpellCastResult > resultOther={})
 
void FinishSpell (CurrentSpellTypes spellType, bool ok=true)
 
bool IsNonMeleeSpellCast (bool withDelayed, bool skipChanneled=false, bool skipAutorepeat=false, bool isAutoshoot=false, bool skipInstant=true) const
 
void InterruptNonMeleeSpells (bool withDelayed, uint32 spellid=0, bool withInstant=true)
 
Spell * GetCurrentSpell (CurrentSpellTypes spellType) const
 
Spell * GetCurrentSpell (uint32 spellType) const
 
Spell * FindCurrentSpellBySpellId (uint32 spell_id) const
 
int32 GetCurrentSpellCastTime (uint32 spell_id) const
 
virtual bool HasSpellFocus (Spell const *=nullptr) const
 
virtual bool IsMovementPreventedByCasting () const
 
SpellHistory * GetSpellHistory ()
 
SpellHistory const * GetSpellHistory () const
 
ShapeshiftForm GetShapeshiftForm () const
 
void SetShapeshiftForm (ShapeshiftForm form)
 
bool IsInFeralForm () const
 
bool IsInDisallowedMountForm () const
 
void HandleStatFlatModifier (UnitMods unitMod, UnitModifierFlatType modifierType, float amount, bool apply)
 
void ApplyStatPctModifier (UnitMods unitMod, UnitModifierPctType modifierType, float amount)
 
void SetStatFlatModifier (UnitMods unitMod, UnitModifierFlatType modifierType, float val)
 
void SetStatPctModifier (UnitMods unitMod, UnitModifierPctType modifierType, float val)
 
float GetFlatModifierValue (UnitMods unitMod, UnitModifierFlatType modifierType) const
 
float GetPctModifierValue (UnitMods unitMod, UnitModifierPctType modifierType) const
 
void UpdateUnitMod (UnitMods unitMod)
 
void HandleAttackPowerModifier (AttackPowerModIndex index, AttackPowerModType modifierType, float amount, bool apply)
 
float GetAttackPowerModifierValue (AttackPowerModIndex index, AttackPowerModType modifierType) const
 
void UpdateAllDamageDoneMods ()
 
void UpdateDamagePctDoneMods (WeaponAttackType attackType)
 
void UpdateAllDamagePctDoneMods ()
 
float GetTotalStatValue (Stats stat) const
 
float GetTotalAuraModValue (UnitMods unitMod) const
 
SpellSchools GetSpellSchoolByAuraGroup (UnitMods unitMod) const
 
Stats GetStatByAuraGroup (UnitMods unitMod) const
 
Powers GetPowerTypeByAuraGroup (UnitMods unitMod) const
 
bool CanModifyStats () const
 
void SetCanModifyStats (bool modifyStats)
 
virtual void UpdateAllResistances ()
 
void SetAttackPower (int32 attackPower)
 
void SetAttackPowerModPos (int32 attackPowerMod)
 
void SetAttackPowerModNeg (int32 attackPowerMod)
 
void SetAttackPowerMultiplier (float attackPowerMult)
 
void SetRangedAttackPower (int32 attackPower)
 
void SetRangedAttackPowerModPos (int32 attackPowerMod)
 
void SetRangedAttackPowerModNeg (int32 attackPowerMod)
 
void SetRangedAttackPowerMultiplier (float attackPowerMult)
 
virtual void UpdateDamagePhysical (WeaponAttackType attType)
 
float GetTotalAttackPowerValue (WeaponAttackType attType) const
 
float GetWeaponDamageRange (WeaponAttackType attType, WeaponDamageRange type, uint8 damageIndex=0) const
 
void SetBaseWeaponDamage (WeaponAttackType attType, WeaponDamageRange damageRange, float value, uint8 damageIndex=0)
 
uint32 CalculateDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, uint8 itemDamagesMask=0) const
 
float GetAPMultiplier (WeaponAttackType attType, bool normalized) const
 
bool isInFrontInMap (Unit const *target, float distance, float arc=float(M_PI)) const
 
bool isInBackInMap (Unit const *target, float distance, float arc=float(M_PI)) const
 
bool IsVisible () const
 
void SetVisible (bool x)
 
void SetPhaseMask (uint32 newPhaseMask, bool update) override
 
void UpdateObjectVisibility (bool forced=true) override
 
VisibleAuraMap const & GetVisibleAuras () const
 
AuraApplication * GetVisibleAura (uint8 slot) const
 
void SetVisibleAura (uint8 slot, AuraApplication *aurApp)
 
void RemoveVisibleAura (uint8 slot)
 
bool HasInterruptFlag (uint32 flags) const
 
void AddInterruptMask (uint32 flags)
 
void UpdateInterruptMask ()
 
virtual float GetNativeObjectScale () const
 
virtual void RecalculateObjectScale ()
 
uint32 GetDisplayId () const
 
virtual void SetDisplayId (uint32 modelId)
 
uint32 GetNativeDisplayId () const
 
void RestoreDisplayId ()
 
void SetNativeDisplayId (uint32 displayId)
 
void SetTransformSpell (uint32 spellid)
 
uint32 GetTransformSpell () const
 
void _RegisterDynObject (DynamicObject *dynObj)
 
void _UnregisterDynObject (DynamicObject *dynObj)
 
DynamicObject * GetDynObject (uint32 spellId) const
 
std::vector< DynamicObject * > GetDynObjects (uint32 spellId) const
 
void RemoveDynObject (uint32 spellId)
 
void RemoveAllDynObjects ()
 
GameObject * GetGameObject (uint32 spellId) const
 
std::vector< GameObject * > GetGameObjects (uint32 spellId) const
 
void AddGameObject (GameObject *gameObj)
 
void RemoveGameObject (GameObject *gameObj, bool del)
 
void RemoveGameObject (uint32 spellid, bool del)
 
void RemoveAllGameObjects ()
 
void ModifyAuraState (AuraStateType flag, bool apply)
 
uint32 BuildAuraStateUpdateForTarget (Unit const *target) const
 
bool HasAuraState (AuraStateType flag, SpellInfo const *spellProto=nullptr, Unit const *Caster=nullptr) const
 
void UnsummonAllTotems ()
 
bool IsMagnet () const
 
Unit * GetMeleeHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo=nullptr)
 
int32 SpellBaseDamageBonusDone (SpellSchoolMask schoolMask) const
 
uint32 SpellDamageBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, Optional< float > const &donePctTotal, uint32 stack=1) const
 
float SpellDamagePctDone (Unit *victim, SpellInfo const *spellProto, DamageEffectType damagetype) const
 
uint32 SpellDamageBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype) const
 
int32 SpellBaseHealingBonusDone (SpellSchoolMask schoolMask) const
 
uint32 SpellHealingBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, Optional< float > const &donePctTotal, uint32 stack=1) const
 
float SpellHealingPctDone (Unit *victim, SpellInfo const *spellProto) const
 
uint32 SpellHealingBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype) const
 
uint32 MeleeDamageBonusDone (Unit *pVictim, uint32 damage, WeaponAttackType attType, SpellInfo const *spellProto=nullptr, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL)
 
uint32 MeleeDamageBonusTaken (Unit *attacker, uint32 pdamage, WeaponAttackType attType, SpellInfo const *spellProto=nullptr, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL)
 
bool IsBlockCritical ()
 
float SpellCritChanceDone (SpellInfo const *spellInfo, SpellSchoolMask schoolMask, WeaponAttackType attackType=BASE_ATTACK, bool isPeriodic=false) const
 
float SpellCritChanceTaken (Unit const *caster, SpellInfo const *spellInfo, SpellSchoolMask schoolMask, float doneChance, WeaponAttackType attackType=BASE_ATTACK, bool isPeriodic=false) const
 
void SetLastManaUse (uint32 spellCastTime)
 
bool IsUnderLastManaUseEffect () const
 
uint32 GetCastingTimeForBonus (SpellInfo const *spellProto, DamageEffectType damagetype, uint32 CastingTime) const
 
float CalculateDefaultCoefficient (SpellInfo const *spellInfo, DamageEffectType damagetype) const
 
void ApplySpellImmune (uint32 spellId, uint32 op, uint32 type, bool apply)
 
virtual bool IsImmunedToSpell (SpellInfo const *spellInfo, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const
 
uint32 GetSchoolImmunityMask () const
 
uint32 GetDamageImmunityMask () const
 
uint32 GetMechanicImmunityMask () const
 
bool IsImmunedToDamage (SpellSchoolMask meleeSchoolMask) const
 
bool IsImmunedToDamage (SpellInfo const *spellInfo) const
 
void UpdateSpeed (UnitMoveType mtype)
 
float GetSpeed (UnitMoveType mtype) const
 
float GetSpeedRate (UnitMoveType mtype) const
 
void SetSpeed (UnitMoveType mtype, float newValue)
 
void SetSpeedRate (UnitMoveType mtype, float rate)
 
float CalculateSpellpowerCoefficientLevelPenalty (SpellInfo const *spellInfo) const
 
void FollowerAdded (AbstractFollower *f)
 
void FollowerRemoved (AbstractFollower *f)
 
void RemoveAllFollowers ()
 
MotionMaster * GetMotionMaster ()
 
MotionMaster const * GetMotionMaster () const
 
virtual MovementGeneratorType GetDefaultMovementType () const
 
bool IsStopped () const
 
void StopMoving (bool force=false)
 
void PauseMovement (uint32 timer=0, uint8 slot=0, bool forced=true)
 
void ResumeMovement (uint32 timer=0, uint8 slot=0)
 
void AddUnitMovementFlag (uint32 f)
 
void RemoveUnitMovementFlag (uint32 f)
 
bool HasUnitMovementFlag (uint32 f) const
 
uint32 GetUnitMovementFlags () const
 
void SetUnitMovementFlags (uint32 f)
 
void AddExtraUnitMovementFlag (uint32 f)
 
void RemoveExtraUnitMovementFlag (uint32 f)
 
bool HasExtraUnitMovementFlag (uint32 f) const
 
uint32 GetExtraUnitMovementFlags () const
 
void SetExtraUnitMovementFlags (uint32 f)
 
bool IsSplineEnabled () const
 
void SetControlled (bool apply, UnitState state)
 
void ApplyControlStatesIfNeeded ()
 
uint8 GetComboPoints (Unit const *who=nullptr) const
 --------—Combo point system----------------—
 
uint8 GetComboPoints (ObjectGuid const &guid) const
 
Unit * GetComboTarget () const
 
ObjectGuid GetComboTargetGUID () const
 
void AddComboPoints (Unit *target, int8 count)
 
void AddComboPoints (int8 count)
 
void ClearComboPoints ()
 
void SendComboPoints ()
 
void AddComboPointHolder (Unit *unit)
 
void RemoveComboPointHolder (Unit *unit)
 
void ClearComboPointHolders ()
 
void SendPetActionFeedback (PetActionFeedback msg, uint32 spellId) const
 -------—Pet responses methods--------------—
 
void SendPetActionSound (PetAction action) const
 
void SendPetDismissSound () const
 
void SendPetAIReaction (ObjectGuid guid) const
 
void PropagateSpeedChange ()
 -------—End of Pet responses methods-------—
 
void ClearAllReactives ()
 
void StartReactiveTimer (ReactiveType reactive)
 
void UpdateReactives (uint32 p_time)
 
void UpdateAuraForGroup (uint8 slot)
 
bool CanProc () const
 
void SetCantProc (bool apply)
 
uint32 GetModelForForm (ShapeshiftForm form, uint32 spellId) const
 
bool CreateVehicleKit (uint32 id, uint32 creatureEntry)
 
void RemoveVehicleKit ()
 
Vehicle * GetVehicleKit () const
 
Trinity::unique_weak_ptr< Vehicle > GetVehicleKitWeakPtr () const
 
Vehicle * GetVehicle () const
 
void SetVehicle (Vehicle *vehicle)
 
bool IsOnVehicle (Unit const *vehicle) const
 
Unit * GetVehicleBase () const
 
Unit * GetVehicleRoot () const
 
Creature * GetVehicleCreatureBase () const
 
ObjectGuid GetTransGUID () const override
 
TransportBase * GetDirectTransport () const
 Returns the transport this unit is on directly (if on vehicle and transport, return vehicle)
 
void HandleSpellClick (Unit *clicker, int8 seatId=-1)
 
void EnterVehicle (Unit *base, int8 seatId=-1)
 
virtual void ExitVehicle (Position const *exitPosition=nullptr)
 
void ChangeSeat (int8 seatId, bool next=true)
 
void _ExitVehicle (Position const *exitPosition=nullptr)
 
void _EnterVehicle (Vehicle *vehicle, int8 seatId, AuraApplication const *aurApp=nullptr)
 
void BuildMovementPacket (ByteBuffer *data) const
 
bool isMoving () const
 
bool isTurning () const
 
bool IsFlying () const
 
bool IsFalling () const
 
virtual bool CanSwim () const
 
float GetHoverOffset () const
 
uint32 GetMovementCounterAndInc ()
 
PlayerMovementPendingChange & PeakFirstPendingMovementChange ()
 
PlayerMovementPendingChange PopPendingMovementChange ()
 
void PushPendingMovementChange (PlayerMovementPendingChange newChange)
 
bool HasPendingMovementChange () const
 
bool HasPendingMovementChange (MovementChangeType changeType) const
 
void PurgeAndApplyPendingMovementChanges (bool informObservers=true)
 
void RewardRage (uint32 damage, uint32 weaponSpeedHitFactor, bool attacker)
 
virtual float GetFollowAngle () const
 
void OutDebugInfo () const
 
bool IsDuringRemoveFromWorld () const
 
Pet * ToPet ()
 
Pet const * ToPet () const
 
Totem * ToTotem ()
 
Totem const * ToTotem () const
 
TempSummon * ToTempSummon ()
 
TempSummon const * ToTempSummon () const
 
ObjectGuid GetTarget () const
 
void SetInstantCast (bool set)
 
bool CanInstantCast () const
 
int32 GetHighestExclusiveSameEffectSpellGroupValue (AuraEffect const *aurEff, AuraType auraType, bool checkMiscValue=false, int32 miscValue=0) const
 
bool IsHighestExclusiveAura (Aura const *aura, bool removeOtherAuraApplications=false)
 
bool IsHighestExclusiveAuraEffect (SpellInfo const *spellInfo, AuraType auraType, int32 effectAmount, uint8 auraEffectMask, bool removeOtherAuraApplications=false)
 
virtual void Talk (std::string_view text, ChatMsg msgType, Language language, float textRange, WorldObject const *target)
 
virtual void Talk (uint32 textId, ChatMsg msgType, float textRange, WorldObject const *target)
 
float GetCollisionHeight () const override
 
uint32 GetVirtualItemId (uint32 slot) const
 
void SetVirtualItem (uint32 slot, uint32 itemId)
 
bool IsCombatDisallowed () const
 
void SetIsCombatDisallowed (bool apply)
 
std::string GetDebugInfo () const override
 
- Public Member Functions inherited from WorldObject
virtual ~WorldObject ()
 
void AddToWorld () override
 
void RemoveFromWorld () override
 
void GetNearPoint2D (WorldObject const *searcher, float &x, float &y, float distance, float absAngle) const
 
void GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float distance2d, float absAngle) const
 
void GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float relAngle=0) const
 
void MovePosition (Position &pos, float dist, float angle)
 
Position GetNearPosition (float dist, float angle)
 
void MovePositionToFirstCollision (Position &pos, float dist, float angle)
 
Position GetFirstCollisionPosition (float dist, float angle)
 
Position GetRandomNearPosition (float radius)
 
void GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const
 
void UpdateGroundPositionZ (float x, float y, float &z) const
 
void UpdateAllowedPositionZ (float x, float y, float &z, float *groundZ=nullptr) const
 
void GetRandomPoint (Position const &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const
 
Position GetRandomPoint (Position const &srcPos, float distance) const
 
uint32 GetInstanceId () const
 
uint32 GetPhaseMask () const
 
bool InSamePhase (uint32 phasemask) const
 
bool InSamePhase (WorldObject const *obj) const
 
uint32 GetZoneId () const
 
uint32 GetAreaId () const
 
void GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const
 
bool IsInWorldPvpZone () const
 
bool IsOutdoors () const
 
ZLiquidStatus GetLiquidStatus () const
 
InstanceScript * GetInstanceScript () const
 
std::string const & GetName () const
 
void SetName (std::string newname)
 
std::string const & GetNameForLocaleIdx (LocaleConstant) const override
 
float GetDistance (WorldObject const *obj) const
 
float GetDistance (Position const &pos) const
 
float GetDistance (float x, float y, float z) const
 
float GetDistance2d (WorldObject const *obj) const
 
float GetDistance2d (float x, float y) const
 
float GetDistanceZ (WorldObject const *obj) const
 
bool IsSelfOrInSameMap (WorldObject const *obj) const
 
bool IsInMap (WorldObject const *obj) const
 
bool IsWithinDist3d (float x, float y, float z, float dist) const
 
bool IsWithinDist3d (Position const *pos, float dist) const
 
bool IsWithinDist2d (float x, float y, float dist) const
 
bool IsWithinDist2d (Position const *pos, float dist) const
 
bool IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true) const
 
bool IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const
 
bool IsWithinLOS (float x, float y, float z, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const
 
bool IsWithinLOSInMap (WorldObject const *obj, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const
 
Position GetHitSpherePointFor (Position const &dest) const
 
void GetHitSpherePointFor (Position const &dest, float &x, float &y, float &z) const
 
bool GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) 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 isInFront (WorldObject const *target, float arc=float(M_PI)) const
 
bool isInBack (WorldObject const *target, float arc=float(M_PI)) const
 
bool IsInBetween (Position const &pos1, Position const &pos2, float size=0) const
 
bool IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const
 
void PlayDistanceSound (uint32 soundId, Player *target=nullptr)
 
void PlayDirectSound (uint32 soundId, Player *target=nullptr)
 
void PlayDirectMusic (uint32 musicId, Player *target=nullptr)
 
void SendObjectDeSpawnAnim (ObjectGuid guid)
 
void AddObjectToRemoveList ()
 
float GetGridActivationRange () const
 
float GetVisibilityRange () const
 
float GetSightRange (WorldObject const *target=nullptr) const
 
bool CanSeeOrDetect (WorldObject const *obj, bool implicitDetect=false, bool distanceCheck=false, bool checkAlert=false) const
 
Map * GetMap () const
 
Map * FindMap () const
 
void SetZoneScript ()
 
void ClearZoneScript ()
 
ZoneScript * GetZoneScript () const
 
TempSummon * SummonCreature (uint32 entry, Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty)
 
TempSummon * SummonCreature (uint32 entry, float x, float y, float z, float o=0, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, ObjectGuid privateObjectOwner=ObjectGuid::Empty)
 
GameObject * SummonGameObject (uint32 entry, Position const &pos, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN)
 
GameObject * SummonGameObject (uint32 entry, float x, float y, float z, float ang, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN)
 
Creature * SummonTrigger (float x, float y, float z, float ang, Milliseconds despawnTime, CreatureAI *(*GetAI)(Creature *)=nullptr)
 
void SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=nullptr)
 
Creature * FindNearestCreature (uint32 entry, float range, bool alive=true) const
 
Creature * FindNearestCreatureWithOptions (float range, FindCreatureOptions const &options) const
 
GameObject * FindNearestGameObject (uint32 entry, float range, bool spawnedOnly=true) const
 
GameObject * FindNearestGameObjectWithOptions (float range, FindGameObjectOptions const &options) const
 
GameObject * FindNearestUnspawnedGameObject (uint32 entry, float range) const
 
GameObject * FindNearestGameObjectOfType (GameobjectTypes type, float range) const
 
Player * SelectNearestPlayer (float distance) const
 
ObjectGuid GetCharmerOrOwnerOrOwnGUID () const
 
Unit * GetOwner () const
 
Unit * GetCharmerOrOwner () const
 
Unit * GetCharmerOrOwnerOrSelf () const
 
Player * GetCharmerOrOwnerPlayerOrPlayerItself () const
 
Player * GetAffectingPlayer () const
 
Player * GetSpellModOwner () const
 
int32 CalculateSpellDamage (SpellEffectInfo const &spellEffectInfo, int32 const *basePoints=nullptr) const
 
float GetSpellMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const
 
float GetSpellMinRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const
 
float ApplyEffectModifiers (SpellInfo const *spellInfo, uint8 effIndex, float value) const
 
int32 CalcSpellDuration (SpellInfo const *spellInfo) const
 
int32 ModSpellDuration (SpellInfo const *spellInfo, WorldObject const *target, int32 duration, bool positive, uint32 effectMask) const
 
void ModSpellCastTime (SpellInfo const *spellInfo, int32 &castTime, Spell *spell=nullptr) const
 
void ModSpellDurationTime (SpellInfo const *spellInfo, int32 &durationTime, Spell *spell=nullptr) const
 
SpellMissInfo MagicSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const
 
SpellMissInfo SpellHitResult (Unit *victim, SpellInfo const *spellInfo, bool canReflect=false) const
 
void SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo)
 
FactionTemplateEntry const * GetFactionTemplateEntry () const
 
ReputationRank GetReactionTo (WorldObject const *target) const
 
bool IsHostileTo (WorldObject const *target) const
 
bool IsHostileToPlayers () const
 
bool IsFriendlyTo (WorldObject const *target) const
 
bool IsNeutralToAll () const
 
SpellCastResult CastSpell (CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
 
bool IsValidAttackTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const
 
bool IsValidAssistTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const
 
Unit * GetMagicHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo)
 
template<typename Container >
void GetGameObjectListWithEntryInGrid (Container &gameObjectContainer, uint32 entry, float maxSearchRange=250.0f) const
 
template<typename Container >
void GetGameObjectListWithOptionsInGrid (Container &gameObjectContainer, float maxSearchRange, FindGameObjectOptions const &options) const
 
template<typename Container >
void GetCreatureListWithEntryInGrid (Container &creatureContainer, uint32 entry, float maxSearchRange=250.0f) const
 
template<typename Container >
void GetCreatureListWithOptionsInGrid (Container &creatureContainer, float maxSearchRange, FindCreatureOptions const &options) const
 
template<typename Container >
void GetPlayerListInGrid (Container &playerContainer, float maxSearchRange, bool alive=true) const
 
void DestroyForNearbyPlayers ()
 
virtual void UpdateObjectVisibilityOnCreate ()
 
void UpdatePositionData ()
 
void BuildUpdate (UpdateDataMapType &) override
 
bool AddToObjectUpdate () override
 
void RemoveFromObjectUpdate () override
 
void AddToNotify (uint16 f)
 
bool isNeedNotify (uint16 f) const
 
uint16 GetNotifyFlags () const
 
void ResetAllNotifies ()
 
bool isActiveObject () const
 
void setActive (bool isActiveObject)
 
bool IsFarVisible () const
 
void SetFarVisible (bool on)
 
bool IsVisibilityOverridden () const
 
void SetVisibilityDistanceOverride (VisibilityDistanceType type)
 
void SetIsStoredInWorldObjectGridContainer (bool apply)
 
bool IsAlwaysStoredInWorldObjectGridContainer () const
 
bool IsStoredInWorldObjectGridContainer () const
 
Transport * GetTransport () const
 
float GetTransOffsetX () const
 
float GetTransOffsetY () const
 
float GetTransOffsetZ () const
 
float GetTransOffsetO () const
 
Position const & GetTransOffset () const
 
uint32 GetTransTime () const
 
int8 GetTransSeat () const
 
void SetTransport (Transport *t)
 
virtual float GetStationaryX () const
 
virtual float GetStationaryY () const
 
virtual float GetStationaryZ () const
 
virtual float GetStationaryO () const
 
float GetFloorZ () const
 
float GetMapWaterOrGroundLevel (float x, float y, float z, float *ground=nullptr) const
 
float GetMapHeight (float x, float y, float z, bool vmap=true, float distanceToSearch=50.0f) const
 
std::string GetDebugInfo () const override
 
bool IsPrivateObject () const
 
ObjectGuid GetPrivateObjectOwner () const
 
void SetPrivateObjectOwner (ObjectGuid const &owner)
 
bool CheckPrivateObjectOwnerVisibility (WorldObject const *seer) const
 
- Public Member Functions inherited from Object
virtual ~Object ()
 
bool IsInWorld () const
 
ObjectGuid GetGUID () const
 
PackedGuid const & GetPackGUID () const
 
uint32 GetEntry () const
 
void SetEntry (uint32 entry)
 
float GetObjectScale () const
 
bool HasDynamicFlag (uint32 flag) const
 
virtual void SetDynamicFlag (uint32 flag)
 
virtual void RemoveDynamicFlag (uint32 flag)
 
TypeID GetTypeId () const
 
bool isType (uint16 mask) const
 
void SendUpdateToPlayer (Player *player)
 
void BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const
 
void BuildOutOfRangeUpdateBlock (UpdateData *data) const
 
void BuildMovementUpdateBlock (UpdateData *data, uint32 flags=0) const
 
int32 GetInt32Value (uint16 index) const
 
uint32 GetUInt32Value (uint16 index) const
 
uint64 GetUInt64Value (uint16 index) const
 
float GetFloatValue (uint16 index) const
 
uint8 GetByteValue (uint16 index, uint8 offset) const
 
uint16 GetUInt16Value (uint16 index, uint8 offset) const
 
ObjectGuid GetGuidValue (uint16 index) const
 
void SetInt32Value (uint16 index, int32 value)
 
void SetUInt32Value (uint16 index, uint32 value)
 
void UpdateUInt32Value (uint16 index, uint32 value)
 
void SetUInt64Value (uint16 index, uint64 value)
 
void SetFloatValue (uint16 index, float value)
 
void SetByteValue (uint16 index, uint8 offset, uint8 value)
 
void SetUInt16Value (uint16 index, uint8 offset, uint16 value)
 
void SetInt16Value (uint16 index, uint8 offset, int16 value)
 
void SetGuidValue (uint16 index, ObjectGuid value)
 
void SetStatFloatValue (uint16 index, float value)
 
void SetStatInt32Value (uint16 index, int32 value)
 
bool AddGuidValue (uint16 index, ObjectGuid value)
 
bool RemoveGuidValue (uint16 index, ObjectGuid value)
 
void ApplyModUInt32Value (uint16 index, int32 val, bool apply)
 
void ApplyModInt32Value (uint16 index, int32 val, bool apply)
 
void ApplyModUInt16Value (uint16 index, uint8 offset, int16 val, bool apply)
 
void ApplyModPositiveFloatValue (uint16 index, float val, bool apply)
 
void ApplyModSignedFloatValue (uint16 index, float val, bool apply)
 
void SetFlag (uint16 index, uint32 newFlag)
 
void RemoveFlag (uint16 index, uint32 oldFlag)
 
void ToggleFlag (uint16 index, uint32 flag)
 
bool HasFlag (uint16 index, uint32 flag) const
 
void ApplyModFlag (uint16 index, uint32 flag, bool apply)
 
void SetByteFlag (uint16 index, uint8 offset, uint8 newFlag)
 
void RemoveByteFlag (uint16 index, uint8 offset, uint8 newFlag)
 
void ToggleByteFlag (uint16 index, uint8 offset, uint8 flag)
 
bool HasByteFlag (uint16 index, uint8 offset, uint8 flag) const
 
void ApplyModByteFlag (uint16 index, uint8 offset, uint8 flag, bool apply)
 
void SetFlag64 (uint16 index, uint64 newFlag)
 
void RemoveFlag64 (uint16 index, uint64 oldFlag)
 
void ToggleFlag64 (uint16 index, uint64 flag)
 
bool HasFlag64 (uint16 index, uint64 flag) const
 
void ApplyModFlag64 (uint16 index, uint64 flag, bool apply)
 
void ClearUpdateMask (bool remove)
 
uint16 GetValuesCount () const
 
virtual bool hasQuest (uint32) const
 
virtual bool hasInvolvedQuest (uint32) const
 
void SetIsNewObject (bool enable)
 
void BuildFieldsUpdate (Player *, UpdateDataMapType &) const
 
void SetFieldNotifyFlag (uint16 flag)
 
void RemoveFieldNotifyFlag (uint16 flag)
 
void ForceValuesUpdateAtIndex (uint32)
 
bool IsWorldObject () const
 
WorldObject * ToWorldObject ()
 
WorldObject const * ToWorldObject () const
 
bool IsItem () const
 
Item * ToItem ()
 
Item const * ToItem () const
 
bool IsPlayer () const
 
Player * ToPlayer ()
 
Player const * ToPlayer () const
 
bool IsCreature () const
 
Creature * ToCreature ()
 
Creature const * ToCreature () const
 
bool IsUnit () const
 
Unit * ToUnit ()
 
Unit const * ToUnit () const
 
bool IsGameObject () const
 
GameObject * ToGameObject ()
 
GameObject const * ToGameObject () const
 
bool IsCorpse () const
 
Corpse * ToCorpse ()
 
Corpse const * ToCorpse () const
 
bool IsDynObject () const
 
DynamicObject * ToDynObject ()
 
DynamicObject const * ToDynObject () const
 
Trinity::unique_weak_ptr< Object > GetWeakPtr () const
 
- Public Member Functions inherited from WorldLocation
 WorldLocation ()
 
 WorldLocation (uint32 _mapId, float x, float y, float z=0.0f, float o=0.0f)
 
 WorldLocation (uint32 mapId, Position const &position)
 
void WorldRelocate (WorldLocation const &loc)
 
void WorldRelocate (WorldLocation const *loc)
 
void WorldRelocate (uint32 mapId, Position const &pos)
 
void WorldRelocate (uint32 mapId=MAPID_INVALID, float x=0.f, float y=0.f, float z=0.f, float o=0.f)
 
WorldLocation GetWorldLocation () const
 
uint32 GetMapId () const
 
std::string GetDebugInfo () const
 
- Public Member Functions inherited from Position
 Position ()
 
 Position (float x, float y, float z=0.0f, float o=0.0f)
 
bool operator== (Position const &a) const
 
void Relocate (float x, float y)
 
void Relocate (float x, float y, float z)
 
void Relocate (float x, float y, float z, float o)
 
void Relocate (Position const &pos)
 
void Relocate (Position const *pos)
 
void RelocateOffset (Position const &offset)
 
void SetOrientation (float orientation)
 
float GetPositionX () const
 
float GetPositionY () const
 
float GetPositionZ () 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
 
Position GetPosition () const
 
Streamer< XY > PositionXYStream ()
 
ConstStreamer< XY > PositionXYStream () const
 
Streamer< XYZ > PositionXYZStream ()
 
ConstStreamer< XYZ > PositionXYZStream () const
 
Streamer< XYZO > PositionXYZOStream ()
 
ConstStreamer< XYZO > PositionXYZOStream () const
 
Streamer< PackedXYZ > PositionPackedXYZStream ()
 
ConstStreamer< PackedXYZ > PositionPackedXYZStream () const
 
bool IsPositionValid () const
 
float GetExactDist2dSq (const float x, const float y) const
 
float GetExactDist2dSq (Position const &pos) const
 
float GetExactDist2dSq (Position const *pos) const
 
float GetExactDist2d (const float x, const float y) const
 
float GetExactDist2d (Position const &pos) const
 
float GetExactDist2d (Position const *pos) const
 
float GetExactDistSq (float x, float y, float z) const
 
float GetExactDistSq (Position const &pos) const
 
float GetExactDistSq (Position const *pos) const
 
float GetExactDist (float x, float y, float z) const
 
float GetExactDist (Position const &pos) const
 
float GetExactDist (Position const *pos) const
 
void GetPositionOffsetTo (Position const &endPos, Position &retOffset) const
 
Position GetPositionWithOffset (Position const &offset) const
 
float GetAbsoluteAngle (float x, float y) const
 
float GetAbsoluteAngle (Position const &pos) const
 
float GetAbsoluteAngle (Position const *pos) const
 
float ToAbsoluteAngle (float relAngle) const
 
float ToRelativeAngle (float absAngle) const
 
float GetRelativeAngle (float x, float y) const
 
float GetRelativeAngle (Position const &pos) const
 
float GetRelativeAngle (Position const *pos) const
 
void GetSinCos (float x, float y, float &vsin, float &vcos) const
 
bool IsInDist2d (float x, float y, float dist) const
 
bool IsInDist2d (Position const *pos, float dist) const
 
bool IsInDist (float x, float y, float z, float dist) const
 
bool IsInDist (Position const &pos, float dist) const
 
bool IsInDist (Position const *pos, float dist) const
 
bool IsWithinBox (Position const &center, float xradius, float yradius, float zradius) const
 
bool IsWithinDoubleVerticalCylinder (Position const *center, float radius, float height) const
 
bool HasInArc (float arcangle, Position const *pos, float border=2.0f) const
 
bool HasInLine (Position const *pos, float objSize, float width) const
 
std::string ToString () const
 
- Public Member Functions inherited from GridObject< Player >
virtual ~GridObject ()
 
bool IsInGrid () const
 
void AddToGrid (GridRefManager< Player > &m)
 
void RemoveFromGrid ()
 

Static Public Member Functions

static bool BuildEnumData (PreparedQueryResult result, WorldPacket *data)
 
static WeaponAttackType GetAttackBySlot (uint8 slot)
 
static bool IsInventoryPos (uint16 pos)
 
static bool IsInventoryPos (uint8 bag, uint8 slot)
 
static bool IsEquipmentPos (uint16 pos)
 
static bool IsEquipmentPos (uint8 bag, uint8 slot)
 
static bool IsBagPos (uint16 pos)
 
static bool IsBankPos (uint16 pos)
 
static bool IsBankPos (uint8 bag, uint8 slot)
 
static uint32 GetDefaultGossipMenuForSource (WorldObject *source)
 
static uint32 GetZoneIdFromDB (ObjectGuid guid)
 
static bool LoadPositionFromDB (uint32 &mapid, float &x, float &y, float &z, float &o, bool &in_flight, ObjectGuid guid)
 
static bool IsValidGender (uint8 Gender)
 
static bool ValidateAppearance (uint8 race, uint8 class_, uint8 gender, uint8 hairID, uint8 hairColor, uint8 faceID, uint8 facialHair, uint8 skinColor, bool create=false)
 
static void SavePositionInDB (WorldLocation const &loc, uint16 zoneId, ObjectGuid guid, CharacterDatabaseTransaction trans)
 
static void DeleteFromDB (ObjectGuid playerguid, uint32 accountId, bool updateRealmChars=true, bool deleteFinally=false)
 
static void DeleteOldCharacters ()
 
static void DeleteOldCharacters (uint32 keepDays)
 
static bool IsAffectedBySpellmod (SpellInfo const *spellInfo, SpellModifier *mod, Spell *spell=nullptr)
 
static void ApplyModToSpell (SpellModifier *mod, Spell *spell)
 
static bool HasSpellModApplied (SpellModifier *mod, Spell *spell)
 
static void RemoveFromGroup (Group *group, ObjectGuid guid, RemoveMethod method=GROUP_REMOVEMETHOD_DEFAULT, ObjectGuid kicker=ObjectGuid::Empty, char const *reason=nullptr)
 
static void RemovePetitionsAndSigns (ObjectGuid guid, CharterTypes type)
 
static void LeaveAllArenaTeams (ObjectGuid guid)
 
static Difficulty CheckLoadedDungeonDifficultyID (Difficulty difficulty)
 
static Difficulty CheckLoadedRaidDifficultyID (Difficulty difficulty)
 
static void OfflineResurrect (ObjectGuid const &guid, CharacterDatabaseTransaction trans)
 
static uint32 TeamForRace (uint8 race)
 
static TeamId TeamIdForRace (uint8 race)
 
static DrunkenState GetDrunkenstateByValue (uint8 value)
 
- Static Public Member Functions inherited from Unit
static float CalculateAverageResistReduction (WorldObject const *caster, SpellSchoolMask schoolMask, Unit const *victim, SpellInfo const *spellInfo=nullptr)
 
static void DealDamageMods (Unit const *victim, uint32 &damage, uint32 *absorb)
 
static uint32 DealDamage (Unit *attacker, Unit *victim, uint32 damage, CleanDamage const *cleanDamage=nullptr, DamageEffectType damagetype=DIRECT_DAMAGE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *spellProto=nullptr, bool durabilityLoss=true)
 
static void Kill (Unit *attacker, Unit *victim, bool durabilityLoss=true)
 
static void DealHeal (HealInfo &healInfo)
 
static void ProcSkillsAndAuras (Unit *actor, Unit *actionTarget, uint32 typeMaskActor, uint32 typeMaskActionTarget, uint32 spellTypeMask, uint32 spellPhaseMask, uint32 hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo)
 
static void ApplyResilience (Unit const *victim, float *crit, int32 *damage, bool isCrit, CombatRating type)
 
static uint32 SpellCriticalDamageBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit *victim)
 
static uint32 SpellCriticalHealingBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit *victim)
 
static bool IsDamageReducedByArmor (SpellSchoolMask damageSchoolMask, SpellInfo const *spellInfo=nullptr)
 
static uint32 CalcArmorReducedDamage (Unit const *attacker, Unit *victim, uint32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=MAX_ATTACK, uint8 attackerLevel=0)
 
static uint32 CalcSpellResistedDamage (Unit const *attacker, Unit *victim, uint32 damage, SpellSchoolMask schoolMask, SpellInfo const *spellInfo)
 
static void CalcAbsorbResist (DamageInfo &damageInfo, Spell *spell=nullptr)
 
static void CalcHealAbsorb (HealInfo &healInfo)
 
static void BuildMovementPacket (Position const &pos, Position const &transportPos, MovementInfo const &movementInfo, ByteBuffer *data)
 
- Static Public Member Functions inherited from WorldObject
static bool InSamePhase (WorldObject const *a, WorldObject const *b)
 
static ReputationRank GetFactionReactionTo (FactionTemplateEntry const *factionTemplateEntry, WorldObject const *target)
 
- Static Public Member Functions inherited from Object
static ObjectGuid GetGUID (Object const *o)
 
static WorldObject * ToWorldObject (Object *o)
 
static WorldObject const * ToWorldObject (Object const *o)
 
static Item * ToItem (Object *o)
 
static Item const * ToItem (Object const *o)
 
static Player * ToPlayer (Object *o)
 
static Player const * ToPlayer (Object const *o)
 
static Creature * ToCreature (Object *o)
 
static Creature const * ToCreature (Object const *o)
 
static Unit * ToUnit (Object *o)
 
static Unit const * ToUnit (Object const *o)
 
static GameObject * ToGameObject (Object *o)
 
static GameObject const * ToGameObject (Object const *o)
 
static Corpse * ToCorpse (Object *o)
 
static Corpse const * ToCorpse (Object const *o)
 
static DynamicObject * ToDynObject (Object *o)
 
static DynamicObject const * ToDynObject (Object const *o)
 
- Static Public Member Functions inherited from Position
static float NormalizeOrientation (float o)
 

Public Attributes

std::string autoReplyMsg
 
PlayerTaxi m_taxi
 
time_t m_logintime
 
time_t m_Last_tick
 
uint32 m_Played_time [MAX_PLAYED_TIME_INDEX]
 
std::unordered_set< PetAura const * > m_petAuras
 
bool m_mailsUpdated
 
uint8 unReadMails
 
time_t m_nextMailDelivereTime
 
ItemMap mMitems
 
PvPInfo pvpInfo
 
std::unique_ptr< DuelInfo > duel
 
PlayerMenu * PlayerTalkClass
 
std::vector< ItemSetEffect * > ItemSetEff
 
WorldObject * m_seer
 
uint32 m_homebindMapId
 
uint16 m_homebindAreaId
 
float m_homebindX
 
float m_homebindY
 
float m_homebindZ
 
GuidUnorderedSet m_clientGUIDs
 
DFQuestsDoneList m_DFQuests
 
uint32 m_HomebindTimer
 
bool m_InstanceValid
 
BoundInstancesMap m_boundInstances [MAX_DIFFICULTY]
 
Spell * m_spellModTakingSpell
 
bool isDebugAreaTriggers
 
- Public Attributes inherited from Unit
bool m_canDualWield
 
ControlList m_Controlled
 
ObjectGuid m_SummonSlot [MAX_SUMMON_SLOT]
 
ObjectGuid m_ObjectSlot [MAX_GAMEOBJECT_SLOT]
 
float m_modMeleeHitChance
 
float m_modRangedHitChance
 
float m_modSpellHitChance
 
float m_baseSpellCritChance
 
float m_modAttackSpeedPct [MAX_ATTACK]
 
uint32 m_attackTimer [MAX_ATTACK]
 
SpellImmuneContainer m_spellImmune [MAX_SPELL_IMMUNITY]
 
uint32 m_lastSanctuaryTime
 
ObjectGuid LastCharmerGUID
 
Movement::MoveSpline * movespline
 
- Public Attributes inherited from WorldObject
FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPES > m_stealth
 
FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPES > m_stealthDetect
 
FlaggedValuesArray32< int32, uint32, InvisibilityType, TOTAL_INVISIBILITY_TYPES > m_invisibility
 
FlaggedValuesArray32< int32, uint32, InvisibilityType, TOTAL_INVISIBILITY_TYPES > m_invisibilityDetect
 
FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPES > m_serverSideVisibility
 
FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPES > m_serverSideVisibilityDetect
 
uint32 LastUsedScriptID
 
MovementInfo m_movementInfo
 
EventProcessor m_Events
 
- Public Attributes inherited from WorldLocation
uint32 m_mapId
 
- Public Attributes inherited from Position
float m_positionX
 
float m_positionY
 
float m_positionZ
 

Protected Types

typedef std::set< uint32 > QuestSet
 
typedef std::unordered_map< uint32, time_t > SeasonalQuestMapByQuest
 
typedef std::unordered_map< uint32, SeasonalQuestMapByQuest > SeasonalQuestMapByEvent
 
- Protected Types inherited from Unit
typedef std::list< DynamicObject * > DynObjectList
 
typedef std::list< GameObject * > GameObjectList
 

Protected Member Functions

void _LoadActions (PreparedQueryResult result)
 
void _LoadAuras (PreparedQueryResult auraResult, uint32 timediff)
 
void _LoadGlyphAuras ()
 
void _LoadBoundInstances (PreparedQueryResult result)
 
void _LoadInventory (PreparedQueryResult result, uint32 timeDiff)
 
void _LoadMail (PreparedQueryResult mailsResult, PreparedQueryResult mailItemsResult)
 
void _LoadQuestStatus (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 _LoadArenaTeamInfo (PreparedQueryResult result)
 
void _LoadEquipmentSets (PreparedQueryResult result)
 
void _LoadBGData (PreparedQueryResult result)
 
void _LoadGlyphs (PreparedQueryResult result)
 
void _LoadTalents (PreparedQueryResult result)
 
void _LoadPetStable (uint8 petStableSlots, PreparedQueryResult result)
 
void _SaveActions (CharacterDatabaseTransaction trans)
 
void _SaveAuras (CharacterDatabaseTransaction trans)
 
void _SaveInventory (CharacterDatabaseTransaction trans)
 
void _SaveMail (CharacterDatabaseTransaction trans)
 
void _SaveQuestStatus (CharacterDatabaseTransaction trans)
 
void _SaveDailyQuestStatus (CharacterDatabaseTransaction trans)
 
void _SaveWeeklyQuestStatus (CharacterDatabaseTransaction trans)
 
void _SaveMonthlyQuestStatus (CharacterDatabaseTransaction trans)
 
void _SaveSeasonalQuestStatus (CharacterDatabaseTransaction trans)
 
void _SaveSkills (CharacterDatabaseTransaction trans)
 
void _SaveSpells (CharacterDatabaseTransaction trans)
 
void _SaveEquipmentSets (CharacterDatabaseTransaction trans)
 
void _SaveBGData (CharacterDatabaseTransaction trans)
 
void _SaveGlyphs (CharacterDatabaseTransaction trans) const
 
void _SaveTalents (CharacterDatabaseTransaction trans)
 
void _SaveStats (CharacterDatabaseTransaction trans) const
 
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) const
 
void outDebugValues () const
 
bool CanAlwaysSee (WorldObject const *obj) const override
 
bool IsAlwaysDetectableFor (WorldObject const *seer) const override
 
- Protected Member Functions inherited from Unit
void SetAI (UnitAI *newAI)
 
UnitAI * GetTopAI () const
 
void RefreshAI ()
 
UnitAI * GetScheduledChangeAI ()
 
bool HasScheduledAIChange () const
 
 Unit (bool isWorldObject)
 
void BuildValuesUpdate (uint8 updatetype, ByteBuffer *data, Player const *target) const override
 
void DestroyForPlayer (Player *target, bool onDeath) const override
 
void _UpdateSpells (uint32 time)
 
void _DeleteRemovedAuras ()
 
void _UpdateAutoRepeatSpell ()
 
void RemoveGameObjectImpl (GameObject *gameObj, bool del)
 
bool IsAlwaysVisibleFor (WorldObject const *seer) const override
 
bool IsAlwaysDetectableFor (WorldObject const *seer) const override
 
void DisableSpline ()
 
void ProcessPositionDataChanged (PositionFullTerrainStatus const &data) override
 
virtual void AtEnterCombat ()
 
virtual void AtEngage (Unit *target)
 
virtual void AtDisengage ()
 
void SetFeared (bool apply)
 
void SetConfused (bool apply)
 
void SetStunned (bool apply)
 
void SetRooted (bool apply)
 
- Protected Member Functions inherited from WorldObject
 WorldObject (bool isWorldObject)
 
void SetLocationMapId (uint32 _mapId)
 
void SetLocationInstanceId (uint32 _instanceId)
 
virtual bool IsInvisibleDueToDespawn () const
 
- Protected Member Functions inherited from Object
 Object ()
 
void _InitValues ()
 
void _Create (ObjectGuid const &guid)
 
bool _LoadIntoDataField (std::string const &data, uint32 startOffset, uint32 count)
 
uint32 GetUpdateFieldData (Player const *target, uint32 *&flags) const
 
void BuildMovementUpdate (ByteBuffer *data, uint16 flags) const
 
void AddToObjectUpdateIfNeeded ()
 

Static Protected Member Functions

static Item * _LoadMailedItem (ObjectGuid const &playerGuid, Player *player, uint32 mailId, Mail *mail, Field *fields)
 

Protected Attributes

GuidList WhisperList
 
uint32 m_regenTimerCount
 
uint32 m_foodEmoteTimerCount
 
float m_healthFraction
 
float m_powerFraction [MAX_POWERS]
 
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
 
SeasonalQuestMapByEvent m_seasonalquests
 
ObjectGuid m_playerSharingQuest
 
uint32 m_sharedQuestId
 
uint32 m_ingametime
 
time_t m_lastHonorUpdateTime
 
ObjectGuid m_lootGuid
 
uint32 m_team
 
uint32 m_nextSave
 
std::array< ChatFloodThrottle, ChatFloodThrottle::MAX > m_chatFloodData
 
Difficulty m_dungeonDifficulty
 
Difficulty m_raidDifficulty
 
uint32 m_atLoginFlags
 
Item * m_items [PLAYER_SLOTS_COUNT]
 
uint32 m_currentBuybackSlot
 
std::vector< Item * > m_itemUpdateQueue
 
bool m_itemUpdateQueueBlocked
 
uint32 m_ExtraFlags
 
QuestStatusMap m_QuestStatus
 
QuestStatusSaveMap m_QuestStatusSave
 
RewardedQuestSet m_RewardedQuests
 
QuestStatusSaveMap m_RewardedQuestsSave
 
SkillStatusMap mSkillStatus
 
ObjectGuid::LowType m_GuildIdInvited
 
uint32 m_ArenaTeamIdInvited
 
PlayerMails m_mail
 
PlayerSpellMap m_spells
 
uint32 m_lastPotionId
 
PlayerTalentInfo * _talentMgr
 
ActionButtonList m_actionButtons
 
float m_auraBaseFlatMod [BASEMOD_END]
 
float m_auraBasePctMod [BASEMOD_END]
 
int16 m_baseRatingValue [MAX_COMBAT_RATING]
 
uint32 m_baseSpellPower
 
uint32 m_baseFeralAP
 
uint32 m_baseManaRegen
 
uint32 m_baseHealthRegen
 
int32 m_spellPenetrationItemMod
 
SpellModContainer m_spellMods [MAX_SPELLMOD]
 
EnchantDurationList m_enchantDuration
 
ItemDurationList m_itemDuration
 
GuidUnorderedSet m_itemSoulboundTradeable
 
std::unique_ptr< ResurrectionData > _resurrectionData
 
WorldSession * m_session
 
JoinedChannelsList m_channels
 
uint8 m_cinematic
 
uint32 m_movie
 
TradeData * m_trade
 
bool m_DailyQuestChanged
 
bool m_WeeklyQuestChanged
 
bool m_MonthlyQuestChanged
 
bool m_SeasonalQuestChanged
 
time_t m_lastDailyQuestTime
 
uint32 m_hostileReferenceCheckTimer
 
uint32 m_drunkTimer
 
uint32 m_weaponChangeTimer
 
uint32 m_zoneUpdateId
 
uint32 m_zoneUpdateTimer
 
uint32 m_areaUpdateId
 
uint32 m_deathTimer
 
time_t m_deathExpireTime
 
uint32 m_WeaponProficiency
 
uint32 m_ArmorProficiency
 
bool m_canParry
 
bool m_canBlock
 
bool m_canTitanGrip
 
uint32 m_titanGripWeaponSubclasses
 
uint32 m_titanGripArmorSubclasses
 
uint32 m_titanGripPenaltySpellId
 
uint8 m_swingErrorMsg
 
float m_ammoDPS
 
time_t _restTime
 
uint32 inn_triggerId
 
float m_rest_bonus
 
uint32 _restFlagMask
 
PlayerSocial * m_social
 
GroupReference m_group
 
GroupReference m_originalGroup
 
Group * m_groupInvite
 
uint32 m_groupUpdateMask
 
uint64 m_auraRaidUpdateMask
 
bool m_bPassOnGroupLoot
 
uint32 m_lastpetnumber
 
time_t m_summon_expire
 
WorldLocation m_summon_location
 
WorldLocation m_recall_location
 
DeclinedName * m_declinedname
 
Runes * m_runes
 
EquipmentSetContainer _equipmentSets
 
uint8 m_grantableLevels
 
uint8 m_fishingSteps
 
bool m_needsZoneUpdate
 
- Protected Attributes inherited from Unit
bool m_ControlledByPlayer
 
bool m_AutoRepeatFirstCast
 
float m_createStats [MAX_STATS]
 
AttackerSet m_attackers
 
Unit * m_attacking
 
DeathState m_deathState
 
int32 m_procDeep
 
DynObjectList m_dynObj
 
GameObjectList m_gameObj
 
uint32 m_transformSpell
 
Spell * m_currentSpells [CURRENT_MAX_SPELL]
 
AuraMap m_ownedAuras
 
AuraApplicationMap m_appliedAuras
 
AuraList m_removedAuras
 
AuraMap::iterator m_auraUpdateIterator
 
uint32 m_removedAurasCount
 
AuraEffectList m_modAuras [TOTAL_AURAS]
 
AuraList m_scAuras
 
AuraApplicationList m_interruptableAuras
 
AuraStateAurasMap m_auraStateAuras
 
uint32 m_interruptMask
 
float m_auraFlatModifiersGroup [UNIT_MOD_END][MODIFIER_TYPE_FLAT_END]
 
float m_auraPctModifiersGroup [UNIT_MOD_END][MODIFIER_TYPE_PCT_END]
 
float m_attackPowerMods [uint32(AttackPowerModIndex::End)][uint32(AttackPowerModType::End)]
 
float m_weaponDamage [MAX_ATTACK][2][2]
 
bool m_canModifyStats
 
VisibleAuraMap m_visibleAuras
 
float m_speed_rate [MAX_MOVE_TYPE]
 
Unit * m_charmer
 
Unit * m_charmed
 
CharmInfo * m_charmInfo
 
SharedVisionList m_sharedVision
 
GameClient * _gameClientMovingMe
 
MotionMaster * i_motionMaster
 
uint32 m_reactiveTimer [MAX_REACTIVE]
 
uint32 m_regenTimer
 
Vehicle * m_vehicle
 
Trinity::unique_trackable_ptr< Vehicle > m_vehicleKit
 
uint32 m_unitTypeMask
 
LiquidTypeEntry const * _lastLiquid
 
- Protected Attributes inherited from WorldObject
std::string m_name
 
bool m_isActive
 
bool m_isFarVisible
 
Optional< float > m_visibilityDistanceOverride
 
bool const m_isStoredInWorldObjectGridContainer
 
ZoneScript * m_zoneScript
 
Transport * m_transport
 
uint32 m_zoneId
 
uint32 m_areaId
 
float m_staticFloorZ
 
bool m_outdoors
 
ZLiquidStatus m_liquidStatus
 
- Protected Attributes inherited from Object
uint16 m_objectType
 
TypeID m_objectTypeId
 
uint16 m_updateFlag
 
union { 
 
   int32 *   m_int32Values 
 
   uint32 *   m_uint32Values 
 
   float *   m_floatValues 
 
};  
 
UpdateMask _changesMask
 
uint16 m_valuesCount
 
uint16 _fieldNotifyFlags
 
bool m_objectUpdated
 

Private Member Functions

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 (CharacterDatabaseTransaction trans, uint32 zoneId, uint32 timeDiff, Field *fields)
 
void SendRefundInfo (Item *item)
 
void RefundItem (Item *item)
 
void SendItemRefundResult (Item *item, ItemExtendedCostEntry const *iece, uint8 error) const
 
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)
 
bool IsInstanceLoginGameMasterException () const
 

Private Attributes

CinematicMgr * _cinematicMgr
 
GuidSet m_refundableItems
 
MapReference m_mapRef
 
uint32 m_lastFallTime
 
float m_lastFallZ
 
int32 m_MirrorTimer [MAX_TIMERS]
 
uint8 m_MirrorTimerFlags
 
uint8 m_MirrorTimerFlagsLast
 
uint32 m_runeGraceCooldown [MAX_RUNES]
 
uint32 m_lastRuneGraceTimers [MAX_RUNES]
 
WorldLocation m_teleport_dest
 
uint32 m_teleport_options
 
bool mSemaphoreTeleport_Near
 
bool mSemaphoreTeleport_Far
 
uint32 m_DelayedOperations
 
bool m_bCanDelayTeleport
 
bool m_bHasDelayedTeleport
 
std::unique_ptr< PetStable > m_petStable
 
uint32 m_temporaryUnsummonedPetNumber
 
uint32 m_oldpetspell
 
AchievementMgr * m_achievementMgr
 
ReputationMgr * m_reputationMgr
 
uint32 m_ChampioningFaction
 
uint32 _pendingBindId
 
uint32 _pendingBindTimer
 
uint32 _activeCheats
 
uint32 healthBeforeDuel
 
uint32 manaBeforeDuel
 
WorldLocation _corpseLocation
 

Friends

class WorldSession
 
class CinematicMgr
 
void AddItemToUpdateQueueOf (Item *item, Player *player)
 
void RemoveItemFromUpdateQueueOf (Item *item, Player *player)
 

Detailed Description

Definition at line 901 of file Player.h.

Member Typedef Documentation

◆ BoundInstancesMap

typedef std::unordered_map< uint32 , InstancePlayerBind > Player::BoundInstancesMap

Definition at line 2127 of file Player.h.

◆ DFQuestsDoneList

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

Definition at line 2108 of file Player.h.

◆ ItemMap

typedef std::unordered_map<ObjectGuid::LowType, Item*> Player::ItemMap

Definition at line 1432 of file Player.h.

◆ JoinedChannelsList

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

Definition at line 1773 of file Player.h.

◆ QuestSet

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

Definition at line 2283 of file Player.h.

◆ SeasonalQuestMapByEvent

typedef std::unordered_map<uint32, SeasonalQuestMapByQuest> Player::SeasonalQuestMapByEvent
protected

Definition at line 2285 of file Player.h.

◆ SeasonalQuestMapByQuest

typedef std::unordered_map<uint32, time_t> Player::SeasonalQuestMapByQuest
protected

Definition at line 2284 of file Player.h.

Constructor & Destructor Documentation

◆ Player()

Player::Player ( WorldSession *  session)
explicit

Definition at line 127 of file Player.cpp.

References _activeCheats, _cinematicMgr, _restFlagMask, _restTime, _talentMgr, AT_LOGIN_NONE, BASEMOD_END, BATTLEGROUND_QUEUE_NONE, Player::BgBattlegroundQueueID_Rec::bgQueueTypeId, BUYBACK_SLOT_START, CHEAT_NONE, CinematicMgr, CONFIG_INTERVAL_SAVE, DISABLED_MIRROR_TIMER, DUNGEON_DIFFICULTY_NORMAL, GameTime::GetGameTime(), GetSession(), healthBeforeDuel, inn_triggerId, Player::BgBattlegroundQueueID_Rec::invitedToInstance, isDebugAreaTriggers, m_achievementMgr, m_ammoDPS, m_areaUpdateId, m_ArenaTeamIdInvited, m_ArmorProficiency, m_atLoginFlags, m_auraBaseFlatMod, m_auraBasePctMod, m_auraRaidUpdateMask, m_baseFeralAP, m_baseHealthRegen, m_baseManaRegen, m_baseRatingValue, m_baseSpellPower, m_bCanDelayTeleport, m_bgBattlegroundQueueID, m_bHasDelayedTeleport, m_bPassOnGroupLoot, m_canBlock, m_canParry, m_canTitanGrip, m_ChampioningFaction, m_cinematic, m_contestedPvPTimer, Unit::m_ControlledByPlayer, m_currentBuybackSlot, m_DailyQuestChanged, m_deathExpireTime, m_deathTimer, m_declinedname, m_DelayedOperations, m_drunkTimer, m_dungeonDifficulty, m_ExtraFlags, m_fishingSteps, m_foodEmoteTimerCount, m_grantableLevels, m_groupUpdateMask, m_GuildIdInvited, m_healthFraction, m_homebindAreaId, m_homebindMapId, m_HomebindTimer, m_homebindX, m_homebindY, m_homebindZ, m_hostileReferenceCheckTimer, m_ingametime, m_InstanceValid, WorldObject::m_isActive, m_IsBGRandomWinner, m_items, m_itemUpdateQueueBlocked, m_Last_tick, m_lastDailyQuestTime, m_lastFallTime, m_lastFallZ, m_lastHonorUpdateTime, m_lastpetnumber, m_lastPotionId, m_logintime, m_mailsUpdated, m_MirrorTimer, m_MirrorTimerFlags, m_MirrorTimerFlagsLast, m_MonthlyQuestChanged, m_movie, m_needsZoneUpdate, m_nextMailDelivereTime, m_nextSave, Object::m_objectType, Object::m_objectTypeId, m_oldpetspell, m_Played_time, m_powerFraction, m_raidDifficulty, Unit::m_regenTimer, m_regenTimerCount, m_reputationMgr, m_rest_bonus, m_runes, m_SeasonalQuestChanged, m_seer, m_session, m_sharedQuestId, m_social, m_spellModTakingSpell, m_spellPenetrationItemMod, m_summon_expire, m_swingErrorMsg, m_team, m_teleport_options, m_temporaryUnsummonedPetNumber, m_titanGripArmorSubclasses, m_titanGripPenaltySpellId, m_titanGripWeaponSubclasses, m_trade, Object::m_valuesCount, m_weaponChangeTimer, m_WeaponProficiency, m_WeeklyQuestChanged, m_zoneUpdateId, m_zoneUpdateTimer, manaBeforeDuel, MAX_COMBAT_RATING, MAX_POWERS, MAX_RUNES, MAX_TIMERS, mSemaphoreTeleport_Far, mSemaphoreTeleport_Near, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_END, PLAYER_MAX_BATTLEGROUND_QUEUES, PLAYER_SLOTS_COUNT, PlayerTalkClass, RAID_DIFFICULTY_10MAN_NORMAL, rbac::RBAC_PERM_CAN_FILTER_WHISPERS, SetAcceptWhispers(), SetGroupInvite(), SetLastRuneGraceTimer(), SetPendingBind(), SetRuneTimer(), sWorld, TYPEID_PLAYER, TYPEMASK_PLAYER, UNDERWATER_NONE, and unReadMails.

◆ ~Player()

Member Function Documentation

◆ _ApplyAllItemMods()

◆ _ApplyAllLevelScaleItemMods()

void Player::_ApplyAllLevelScaleItemMods ( bool  apply)

◆ _ApplyAllStatBonuses()

void Player::_ApplyAllStatBonuses ( )

◆ _ApplyAmmoBonuses()

◆ _ApplyItemBonuses()

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

Definition at line 7116 of file Player.cpp.

References _ApplyWeaponDamage(), ApplyFeralAPBonus(), ApplyHealthRegenBonus(), ApplyManaRegenBonus(), ApplyRatingMod(), ApplySpellPenetrationBonus(), ApplySpellPowerBonus(), BASE_VALUE, ScalingStatDistributionEntry::Bonus, CLASS_DRUID, CR_ARMOR_PENETRATION, CR_BLOCK, CR_CRIT_MELEE, CR_CRIT_RANGED, CR_CRIT_SPELL, CR_CRIT_TAKEN_MELEE, CR_CRIT_TAKEN_RANGED, CR_CRIT_TAKEN_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_HIT_TAKEN_MELEE, CR_HIT_TAKEN_RANGED, CR_HIT_TAKEN_SPELL, CR_PARRY, FlatNegative, FlatPositive, ItemTemplate::GetArcaneRes(), ItemTemplate::GetArmor(), ItemTemplate::GetArmorDamageModifier(), ScalingStatValuesEntry::getArmorMod(), GetAttackBySlot(), ItemTemplate::GetBlock(), ItemTemplate::GetClass(), Unit::GetClass(), ScalingStatValuesEntry::getDPSMod(), ItemTemplate::getFeralBonus(), ScalingStatValuesEntry::getFeralBonus(), ItemTemplate::GetFireRes(), ItemTemplate::GetFrostRes(), ItemTemplate::GetHolyRes(), ItemTemplate::GetNatureRes(), GetScalingStatDistributionFor(), ItemTemplate::GetScalingStatValue(), GetScalingStatValuesFor(), ItemTemplate::GetShadowRes(), ScalingStatValuesEntry::getSpellBonus(), ScalingStatValuesEntry::getssdMultiplier(), ItemTemplate::GetStatModifierBonusStat(), ItemTemplate::GetStatsCount(), ItemTemplate::GetStatValue(), ItemTemplate::GetSubClass(), Unit::HandleAttackPowerModifier(), HandleBaseModFlatValue(), Unit::HandleStatFlatModifier(), INVENTORY_SLOT_BAG_END, ITEM_CLASS_ARMOR, 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_CRIT_TAKEN_MELEE_RATING, ITEM_MOD_CRIT_TAKEN_RANGED_RATING, ITEM_MOD_CRIT_TAKEN_RATING, ITEM_MOD_CRIT_TAKEN_SPELL_RATING, ITEM_MOD_DEFENSE_SKILL_RATING, ITEM_MOD_DODGE_RATING, ITEM_MOD_EXPERTISE_RATING, 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_HIT_TAKEN_MELEE_RATING, ITEM_MOD_HIT_TAKEN_RANGED_RATING, ITEM_MOD_HIT_TAKEN_RATING, ITEM_MOD_HIT_TAKEN_SPELL_RATING, ITEM_MOD_INTELLECT, ITEM_MOD_MANA, ITEM_MOD_MANA_REGENERATION, ITEM_MOD_PARRY_RATING, ITEM_MOD_RANGED_ATTACK_POWER, ITEM_MOD_RESILIENCE_RATING, ITEM_MOD_SPELL_DAMAGE_DONE, ITEM_MOD_SPELL_HEALING_DONE, 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, MAX_ATTACK, MAX_ITEM_PROTO_STATS, Melee, Ranged, SHIELD_BLOCK_VALUE, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, ScalingStatDistributionEntry::StatID, TOTAL_VALUE, UNIT_MOD_ARMOR, 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, UNIT_MOD_STAT_STRENGTH, and Unit::UpdateStatBuffMod().

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

◆ _ApplyItemMods()

◆ _ApplyWeaponDamage()

◆ _LoadActions()

◆ _LoadArenaTeamInfo()

◆ _LoadAuras()

◆ _LoadBGData()

◆ _LoadBoundInstances()

◆ _LoadDailyQuestStatus()

◆ _LoadDeclinedNames()

void Player::_LoadDeclinedNames ( PreparedQueryResult  result)
protected

Definition at line 16723 of file Player.cpp.

References m_declinedname, MAX_DECLINED_NAME_CASES, and DeclinedName::name.

Referenced by LoadFromDB().

◆ _LoadEquipmentSets()

◆ _LoadGlyphAuras()

◆ _LoadGlyphs()

void Player::_LoadGlyphs ( PreparedQueryResult  result)
protected

◆ _LoadGroup()

◆ _LoadHomeBind()

◆ _LoadInventory()

◆ _LoadItem()

◆ _LoadMail()

◆ _LoadMailedItem()

◆ _LoadMonthlyQuestStatus()

void Player::_LoadMonthlyQuestStatus ( PreparedQueryResult  result)
protected

◆ _LoadPetStable()

◆ _LoadQuestStatus()

◆ _LoadQuestStatusRewarded()

◆ _LoadRandomBGStatus()

void Player::_LoadRandomBGStatus ( PreparedQueryResult  result)
protected

Definition at line 26093 of file Player.cpp.

References m_IsBGRandomWinner.

Referenced by LoadFromDB().

◆ _LoadSeasonalQuestStatus()

void Player::_LoadSeasonalQuestStatus ( PreparedQueryResult  result)
protected

◆ _LoadSkills()

◆ _LoadSpells()

void Player::_LoadSpells ( PreparedQueryResult  result)
protected

Definition at line 18452 of file Player.cpp.

References AddSpell().

Referenced by LoadFromDB().

◆ _LoadTalents()

void Player::_LoadTalents ( PreparedQueryResult  result)
protected

Definition at line 25565 of file Player.cpp.

References AddTalent().

Referenced by LoadFromDB().

◆ _LoadWeeklyQuestStatus()

void Player::_LoadWeeklyQuestStatus ( PreparedQueryResult  result)
protected

◆ _RemoveAllItemMods()

◆ _RemoveAllStatBonuses()

void Player::_RemoveAllStatBonuses ( )

◆ _SaveActions()

◆ _SaveAuras()

◆ _SaveBGData()

◆ _SaveDailyQuestStatus()

◆ _SaveEquipmentSets()

◆ _SaveGlyphs()

◆ _SaveInventory()

◆ _SaveMail()

◆ _SaveMonthlyQuestStatus()

◆ _SaveQuestStatus()

◆ _SaveSeasonalQuestStatus()

◆ _SaveSkills()

◆ _SaveSpells()

◆ _SaveStats()

◆ _SaveTalents()

◆ _SaveWeeklyQuestStatus()

◆ _StoreItem()

◆ _StoreOrEquipNewItem()

◆ AbandonQuest()

void Player::AbandonQuest ( uint32  quest_id)

◆ ActivateTalentGroup()

◆ ActivateTaxiPathTo() [1/2]

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

Definition at line 21005 of file Player.cpp.

References ACHIEVEMENT_CRITERIA_TYPE_FLIGHT_PATHS_TAKEN, ACHIEVEMENT_CRITERIA_TYPE_GOLD_SPENT_FOR_TRAVELLING, PlayerTaxi::AddTaxiDestination(), ASSERT, CLASS_DEATH_KNIGHT, PlayerTaxi::ClearTaxiDestinations(), Unit::CombatStop(), CONFIG_INSTANT_TAXI, TaxiNodesEntry::ContinentID, CURRENT_AUTOREPEAT_SPELL, CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, ERR_TAXINOSUCHPATH, ERR_TAXINOTENOUGHMONEY, ERR_TAXIOK, ERR_TAXIPLAYERALREADYMOUNTED, ERR_TAXIPLAYERBUSY, ERR_TAXIPLAYERSHAPESHIFTED, ERR_TAXIUNSPECIFIEDSERVERERROR, Unit::ExitVehicle(), Unit::GetClass(), Unit::GetCurrentSpell(), Unit::GetFaction(), GetMoney(), Position::GetOrientation(), GetReputationPriceDiscount(), GetSession(), GetTeam(), Unit::HasUnitFlag(), Unit::HasUnitState(), Unit::InterruptSpell(), Unit::IsInCombat(), Unit::IsInDisallowedMountForm(), Unit::IsMounted(), Unit::IsNonMeleeSpellCast(), m_taxi, ModifyMoney(), TaxiNodesEntry::Pos, Unit::RemoveAurasByType(), WorldSession::SendActivateTaxiReply(), WorldSession::SendDoFlight(), PlayerTaxi::SetFlightMasterFactionTemplateId(), sObjectMgr, SPELL_AURA_MOD_SHAPESHIFT, SPELL_AURA_MOUNTED, sTaxiNodesStore, StopCastingBindSight(), StopCastingCharm(), sWorld, TeleportTo(), TradeCancel(), UNIT_FLAG_REMOVE_CLIENT_CONTROL, UNIT_STATE_ROOT, UNIT_STATE_STUNNED, UpdateAchievementCriteria(), DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.

Referenced by ActivateTaxiPathTo(), Spell::EffectSendTaxi(), WorldSession::HandleActivateTaxiExpressOpcode(), WorldSession::HandleActivateTaxiOpcode(), and OPvPCapturePointNA::HandleCustomSpell().

◆ ActivateTaxiPathTo() [2/2]

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

◆ AddActionButton()

◆ AddArmorProficiency()

void Player::AddArmorProficiency ( uint32  newflag)
inline

Definition at line 1179 of file Player.h.

Referenced by Spell::EffectProficiency().

◆ AddBattlegroundQueueId()

◆ AddEnchantmentDuration()

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

◆ AddEnchantmentDurations()

void Player::AddEnchantmentDurations ( Item *  item)

◆ AddItem()

bool Player::AddItem ( uint32  itemId,
uint32  count 
)

◆ AddItemDurations()

void Player::AddItemDurations ( Item *  item)

◆ AddItemToBuyBackSlot()

◆ AddKnownCurrency()

void Player::AddKnownCurrency ( uint32  itemId)
private

◆ AddMail()

void Player::AddMail ( Mail *  mail)
inline

Definition at line 1417 of file Player.h.

Referenced by MailDraft::SendMailTo().

◆ AddMItem()

void Player::AddMItem ( Item *  it)

Definition at line 20576 of file Player.cpp.

References ASSERT, ObjectGuid::GetCounter(), Object::GetGUID(), and mMitems.

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

◆ AddNewMailDeliverTime()

void Player::AddNewMailDeliverTime ( time_t  deliver_time)

◆ AddPetAura()

void Player::AddPetAura ( PetAura const *  petSpell)

Definition at line 20398 of file Player.cpp.

References GetPet(), and m_petAuras.

Referenced by Spell::EffectDummy(), and AuraEffect::HandleAuraDummy().

◆ AddQuest()

◆ AddQuestAndCheckCompletion()

◆ AddQuestRewardedTalentCount()

void Player::AddQuestRewardedTalentCount ( uint32  points)
inline

Definition at line 1475 of file Player.h.

Referenced by _LoadQuestStatusRewarded(), and RewardQuest().

◆ AddRefundReference()

void Player::AddRefundReference ( ObjectGuid  it)

Definition at line 25863 of file Player.cpp.

References m_refundableItems.

Referenced by _LoadItem(), and _StoreOrEquipNewItem().

◆ AddRuneByAuraEffect()

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

◆ AddRunePower()

void Player::AddRunePower ( uint8  index) const

Definition at line 24453 of file Player.cpp.

References SendDirectMessage(), and SMSG_ADD_RUNE_POWER.

◆ AddSpell()

bool Player::AddSpell ( uint32  spellId,
bool  active,
bool  learning,
bool  dependent,
bool  disabled,
bool  loading = false,
uint32  fromSkill = 0 
)
Todo:
: confirm if rogues start with lockpicking skill at level 1 but only receive the spell to use it at level 16

Definition at line 2979 of file Player.cpp.

References ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILL_LINE, ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILLLINE_SPELLS, ACHIEVEMENT_CRITERIA_TYPE_LEARN_SPELL, PlayerSpell::active, AddSpell(), WorldObject::CastSpell(), CONFIG_ALWAYS_MAXSKILL, DeleteSpellFromAllPlayers(), PlayerSpell::dependent, PlayerSpell::disabled, SpellInfo::GetEffects(), GetFreePrimaryProfessionPoints(), Unit::GetMaxSkillValueForLevel(), GetPureMaxSkillValue(), GetPureSkillValue(), GetSession(), GetTalentSpellCost(), GetTalentSpellPos(), GetUsedTalentCount(), HandlePassiveSpellLearn(), Has310Flyer(), SpellInfo::HasAttribute(), SpellInfo::HasEffect(), HasSkill(), HasSpell(), SkillLineEntry::ID, SpellInfo::IsDifferentRankOf(), SpellInfo::IsHighRankOf(), Object::IsInWorld(), SpellInfo::IsPassive(), SpellInfo::IsPrimaryProfessionFirstRank(), IsProfessionOrRidingSkill(), SpellInfo::IsRanked(), SpellMgr::IsSpellValid(), SpellInfo::IsStackableWithRanks(), IsUnlearnSpellsPacketNeededForSpell(), LearnDefaultSkill(), LearnSpell(), m_spells, MAX_TALENT_RANK, PLAYERSPELL_CHANGED, PLAYERSPELL_NEW, PLAYERSPELL_REMOVED, PLAYERSPELL_TEMPORARY, PLAYERSPELL_UNCHANGED, RemoveSpell(), RemoveTemporarySpell(), SendDirectMessage(), SendSupercededSpell(), SendUnlearnSpells(), SetFreePrimaryProfessions(), SetHas310Flyer(), SetSkill(), SetUsedTalentCount(), SKILL_LINE_ABILITY_LEARNED_ON_SKILL_LEARN, SKILL_LOCKPICKING, SKILL_MOUNTS, SKILL_RUNEFORGING, SPELL_ATTR0_CU_IS_TALENT, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, SPELL_EFFECT_LEARN_SPELL, SPELL_EFFECT_SKILL_STEP, WorldPackets::Spells::UnlearnedSpell::SpellID, sSkillLineStore, sSpellMgr, sTalentStore, PlayerSpell::state, sWorld, TC_LOG_ERROR, UpdateAchievementCriteria(), and WorldPackets::Spells::UnlearnedSpell::Write().

Referenced by _LoadSpells(), AddSpell(), LearnCustomSpells(), LearnSkillRewardedSpells(), LearnSpell(), and RemoveSpell().

◆ AddSpellMod()

◆ AddTalent()

◆ AddTemporarySpell()

◆ AddTimedQuest()

void Player::AddTimedQuest ( uint32  questId)
inline

Definition at line 1348 of file Player.h.

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 1831 of file Player.cpp.

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

Referenced by Map::AddPlayerToMap().

◆ AddTradeableItem()

void Player::AddTradeableItem ( Item *  item)

Definition at line 13265 of file Player.cpp.

References Object::GetGUID(), and m_itemSoulboundTradeable.

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

◆ AddWeaponProficiency()

void Player::AddWeaponProficiency ( uint32  newflag)
inline

Definition at line 1178 of file Player.h.

Referenced by Spell::EffectProficiency().

◆ AddWhisperWhiteList()

void Player::AddWhisperWhiteList ( ObjectGuid  guid)
inline

Definition at line 2237 of file Player.h.

Referenced by WorldSession::HandleChatMessage().

◆ AdjustQuestReqItemCount()

◆ AI()

PlayerAI * Player::AI ( ) const
inline

Definition at line 911 of file Player.h.

References Unit::GetAI().

◆ ApplyBaseModPctValue()

void Player::ApplyBaseModPctValue ( BaseModGroup  modGroup,
float  pct 
)

◆ ApplyEnchantment() [1/2]

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

Definition at line 13426 of file Player.cpp.

References ApplyEnchantment(), 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 13432 of file Player.cpp.

References AddEnchantmentDuration(), CastSpellExtraArgs::AddSpellMod(), ItemRandomSuffixEntry::AllocationPct, ApplyHealthRegenBonus(), ApplyManaRegenBonus(), ApplyRatingMod(), ApplySpellPenetrationBonus(), ApplySpellPowerBonus(), BASE_VALUE, WorldObject::CastSpell(), SpellItemEnchantmentEntry::ConditionID, CR_ARMOR_PENETRATION, CR_BLOCK, CR_CRIT_MELEE, CR_CRIT_RANGED, CR_CRIT_SPELL, CR_CRIT_TAKEN_MELEE, CR_CRIT_TAKEN_RANGED, CR_CRIT_TAKEN_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_PARRY, SpellItemEnchantmentEntry::Effect, SpellItemEnchantmentEntry::EffectArg, SpellItemEnchantmentEntry::EffectPointsMin, ItemRandomSuffixEntry::Enchantment, EnchantmentFitsRequirements(), FlatNegative, FlatPositive, GetAttackBySlot(), Item::GetEnchantmentDuration(), Item::GetEnchantmentId(), Object::GetGUID(), Object::GetGUID(), Item::GetItemRandomPropertyId(), Item::GetItemSuffixFactor(), Unit::GetLevel(), WorldObject::GetName(), GetSkillValue(), Item::GetSlot(), ItemTemplate::GetSocketColor(), Item::GetTemplate(), Unit::HandleAttackPowerModifier(), HandleBaseModFlatValue(), Unit::HandleStatFlatModifier(), 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_PARRY_RATING, ITEM_MOD_RANGED_ATTACK_POWER, ITEM_MOD_RESILIENCE_RATING, ITEM_MOD_SPELL_DAMAGE_DONE, ITEM_MOD_SPELL_HEALING_DONE, ITEM_MOD_SPELL_PENETRATION, ITEM_MOD_SPELL_POWER, ITEM_MOD_SPIRIT, ITEM_MOD_STAMINA, ITEM_MOD_STRENGTH, MAX_ATTACK, MAX_ENCHANTMENT_SLOT, MAX_ITEM_ENCHANTMENT_EFFECTS, MAX_SPELL_EFFECTS, Melee, SpellItemEnchantmentEntry::MinLevel, PERM_ENCHANTMENT_SLOT, PLAYER_VISIBLE_ITEM_1_ENCHANTMENT, PRISMATIC_ENCHANTMENT_SLOT, Ranged, Unit::RemoveAurasDueToItemSpell(), SpellItemEnchantmentEntry::RequiredSkillID, SpellItemEnchantmentEntry::RequiredSkillRank, Object::SetUInt16Value(), SHIELD_BLOCK_VALUE, sItemRandomSuffixStore, SOCK_ENCHANTMENT_SLOT, SOCK_ENCHANTMENT_SLOT_2, SOCK_ENCHANTMENT_SLOT_3, SPELLVALUE_BASE_POINT0, sSpellItemEnchantmentStore, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, TC_LOG_DEBUG, TC_LOG_ERROR, TEMP_ENCHANTMENT_SLOT, Position::ToString(), TOTAL_VALUE, 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, UNIT_MOD_STAT_STRENGTH, UpdateDamageDoneMods(), and Unit::UpdateStatBuffMod().

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

◆ ApplyEquipCooldown()

◆ ApplyEquipSpell()

◆ ApplyFeralAPBonus()

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

Definition at line 334 of file StatSystem.cpp.

References _ModifyUInt32(), m_baseFeralAP, and UpdateAttackPowerAndDamage().

Referenced by _ApplyItemBonuses().

◆ ApplyHealthRegenBonus()

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

Definition at line 919 of file StatSystem.cpp.

References _ModifyUInt32(), and m_baseHealthRegen.

Referenced by _ApplyItemBonuses(), and ApplyEnchantment().

◆ ApplyItemDependentAuras()

◆ ApplyItemEquipSpell()

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

◆ ApplyItemObtainSpells()

◆ ApplyManaRegenBonus()

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

Definition at line 913 of file StatSystem.cpp.

References _ModifyUInt32(), m_baseManaRegen, POWER_MANA, and UpdatePowerRegen().

Referenced by _ApplyItemBonuses(), and ApplyEnchantment().

◆ ApplyModFakeDrunkValue()

void Player::ApplyModFakeDrunkValue ( int32  mod,
bool  apply 
)
inline

◆ ApplyModToSpell()

void Player::ApplyModToSpell ( SpellModifier *  mod,
Spell *  spell 
)
static

◆ ApplyRatingMod()

◆ ApplySpellMod()

◆ ApplySpellPenetrationBonus()

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

◆ ApplySpellPowerBonus()

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

◆ AreaExploredOrEventHappens()

◆ AtExitCombat()

void Player::AtExitCombat ( )
overridevirtual

◆ AutoStoreLoot() [1/2]

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

Definition at line 1140 of file Player.h.

References AutoStoreLoot(), NULL_BAG, and NULL_SLOT.

Referenced by AutoStoreLoot().

◆ AutoStoreLoot() [2/2]

◆ AutoUnequipOffhandIfNeed()

◆ BankItem()

◆ BindToInstance() [1/2]

◆ BindToInstance() [2/2]

◆ BuildCreateUpdateBlockForPlayer()

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

◆ BuildEnumData()

◆ BuildPetTalentsInfoData()

◆ BuildPlayerRepop()

◆ BuildPlayerTalentsInfoData()

◆ BuyItemFromVendorSlot()

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

Definition at line 21402 of file Player.cpp.

References _StoreOrEquipNewItem(), ALLIANCE, ItemExtendedCostEntry::ArenaBracket, ItemExtendedCostEntry::ArenaPoints, BIND_WHEN_PICKED_UP, BUY_ERR_CANT_FIND_ITEM, BUY_ERR_DISTANCE_TOO_FAR, BUY_ERR_ITEM_ALREADY_SOLD, BUY_ERR_NOT_ENOUGHT_MONEY, BUY_ERR_REPUTATION_REQUIRE, VendorItemData::Empty(), EQUIP_ERR_CANT_EQUIP_RANK, EQUIP_ERR_NOT_ENOUGH_ARENA_POINTS, EQUIP_ERR_NOT_ENOUGH_HONOR_POINTS, EQUIP_ERR_NOT_EQUIPPABLE, EQUIP_ERR_VENDOR_MISSING_TURNINS, EQUIP_ERR_WRONG_SLOT, VendorItem::ExtendedCost, ItemTemplate::GetAllowableClass(), GetArenaPoints(), ItemTemplate::GetBonding(), ItemTemplate::GetBuyCount(), ItemTemplate::GetBuyPrice(), Unit::GetClassMask(), Object::GetEntry(), Object::GetGUID(), GetHonorPoints(), ItemTemplate::GetId(), VendorItemData::GetItem(), VendorItemData::GetItemCount(), GetMaxPersonalArenaRatingRequirement(), WorldObject::GetName(), GetNPCIfCanInteractWith(), GetReputationPriceDiscount(), GetReputationRank(), ItemTemplate::GetRequiredReputationFaction(), ItemTemplate::GetRequiredReputationRank(), GetTeam(), Creature::GetVendorItemCurrentCount(), Creature::GetVendorItems(), HasEnoughMoney(), ItemTemplate::HasFlag(), HasItemCount(), ItemExtendedCostEntry::HonorPoints, HORDE, INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_ITEM_END, Unit::IsAlive(), IsEquipmentPos(), IsGameMaster(), VendorItem::IsGoldRequired(), IsInventoryPos(), VendorItem::item, ITEM_FLAG2_FACTION_ALLIANCE, ITEM_FLAG2_FACTION_HORDE, ItemExtendedCostEntry::ItemCount, ItemExtendedCostEntry::ItemID, MAX_BAG_SIZE, MAX_ITEM_EXTENDED_COST_REQUIREMENTS, MAX_MONEY_AMOUNT, VendorItem::maxcount, NULL_BAG, NULL_SLOT, ItemExtendedCostEntry::RequiredArenaRating, sConditionMgr, SendBuyError(), SendEquipError(), sItemExtendedCostStore, sObjectMgr, TC_LOG_DEBUG, TC_LOG_ERROR, ObjectGuid::ToString(), Position::ToString(), and UNIT_NPC_FLAG_VENDOR.

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

◆ CalculateCorpseReclaimDelay()

◆ CalculateMinMaxDamage()

◆ CalculateReputationGain()

◆ CalculateTalentsPoints()

uint32 Player::CalculateTalentsPoints ( ) const

◆ CanAddQuest()

◆ CanAlwaysSee()

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

◆ CanApplyResilience()

bool Player::CanApplyResilience ( ) const
inlineoverridevirtual

Reimplemented from Unit.

Definition at line 1674 of file Player.h.

◆ CanBankItem()

◆ CanBeGameMaster()

◆ CanBlock()

bool Player::CanBlock ( ) const
inline

Definition at line 1884 of file Player.h.

Referenced by UpdateBlockPercentage().

◆ CanCaptureTowerPoint()

bool Player::CanCaptureTowerPoint ( ) const

◆ CanCompleteQuest()

◆ CanCompleteRepeatableQuest()

◆ CanEnterWater()

bool Player::CanEnterWater ( ) const
inlineoverridevirtual

Implements Unit.

Definition at line 2244 of file Player.h.

◆ CanEquipItem()

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

Definition at line 10980 of file Player.cpp.

References ItemTemplate::CanChangeEquipStateInCombat(), Unit::CanDualWield(), CanEquipUniqueItem(), CanStoreItem(), CanTakeMoreSimilarItems(), CanTitanGrip(), CanUnequipItem(), CanUseItem(), 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, EQUIP_ERR_WRONG_SLOT, EQUIPMENT_SLOT_FINGER1, EQUIPMENT_SLOT_FINGER2, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_TRINKET1, EQUIPMENT_SLOT_TRINKET2, FindEquipSlot(), GetBattleground(), ItemTemplate::GetClass(), Item::GetCount(), Object::GetEntry(), Object::GetGUID(), Object::GetGUID(), ItemTemplate::GetInventoryType(), GetItemByPos(), Unit::GetLevel(), GetLootGUID(), WorldObject::GetName(), ItemTemplate::GetScalingStatDistribution(), ItemTemplate::GetSubClass(), Item::GetTemplate(), Unit::HasUnitState(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVTYPE_2HWEAPON, INVTYPE_RELIC, INVTYPE_WEAPON, INVTYPE_WEAPONOFFHAND, Item::IsBindedNotWith(), Unit::IsCharmed(), Unit::IsInCombat(), Unit::IsNonMeleeSpellCast(), IsTwoHandUsed(), ITEM_CLASS_QUIVER, ITEM_CLASS_WEAPON, ITEM_SUBCLASS_AMMO_POUCH, ITEM_SUBCLASS_WEAPON_POLEARM, m_weaponChangeTimer, ScalingStatDistributionEntry::Maxlevel, NULL_BAG, NULL_SLOT, sScalingStatDistributionStore, STATUS_IN_PROGRESS, TC_LOG_DEBUG, Position::ToString(), and UNIT_STATE_STUNNED.

Referenced by _LoadInventory(), CanEquipNewItem(), Create(), Spell::EffectSummonChangeItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleEquipmentSetUse(), 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 2243 of file Player.h.

References MOVEMENTFLAG_CAN_FLY.

◆ CanFlyInZone()

bool Player::CanFlyInZone ( uint32  mapid,
uint32  zone,
SpellInfo const *  bySpell 
) const

◆ CanInteractWithQuestGiver()

◆ CanJoinConstantChannelInZone()

bool Player::CanJoinConstantChannelInZone ( ChatChannelsEntry const *  channel,
AreaTableEntry const *  zone 
) const

◆ CanJoinToBattleground()

◆ CanNoReagentCast()

◆ CanParry()

bool Player::CanParry ( ) const
inline

Definition at line 1882 of file Player.h.

Referenced by UpdateParryPercentage().

◆ CanReportAfkDueToLimit()

bool Player::CanReportAfkDueToLimit ( )

Definition at line 22001 of file Player.cpp.

References BGData::bgAfkReportedCount, and m_bgData.

Referenced by ReportedAfkBy().

◆ CanRewardQuest() [1/2]

◆ CanRewardQuest() [2/2]

◆ CanRollForItemInLFG()

◆ CanSeeSpellClickOn()

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

◆ CanSeeStartQuest()

◆ CanShareQuest()

◆ 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,
uint32 *  itemLimitCategory = nullptr 
) const

◆ CanTakeMoreSimilarItems() [2/3]

◆ CanTakeMoreSimilarItems() [3/3]

InventoryResult Player::CanTakeMoreSimilarItems ( uint32  entry,
uint32  count,
uint32 *  itemLimitCategory = nullptr 
) const
inline

Definition at line 1116 of file Player.h.

References CanTakeMoreSimilarItems().

Referenced by CanTakeMoreSimilarItems().

◆ CanTakeQuest()

◆ CanTameExoticPets()

◆ CanTitanGrip()

◆ CanUnequipItem()

◆ CanUnequipItems()

◆ CanUninviteFromGroup()

◆ CanUseAmmo()

◆ CanUseBattlegroundObject()

◆ CanUseItem() [1/2]

◆ CanUseItem() [2/2]

◆ CastAllObtainSpells()

◆ CastItemCombatSpell() [1/2]

◆ CastItemCombatSpell() [2/2]

◆ CastItemUseSpell()

◆ CharmSpellInitialize()

◆ CheckAmmoCompatibility()

◆ CheckAreaExplore()

◆ CheckAttackFitToAuraRequirement()

bool Player::CheckAttackFitToAuraRequirement ( WeaponAttackType  attackType,
AuraEffect const *  aurEff 
) const
overridevirtual

◆ CheckDuelDistance()

◆ CheckInstanceValidity()

◆ CheckLoadedDungeonDifficultyID()

Difficulty Player::CheckLoadedDungeonDifficultyID ( Difficulty  difficulty)
static

Definition at line 26369 of file Player.cpp.

References DUNGEON_DIFFICULTY_NORMAL, and MAX_DUNGEON_DIFFICULTY.

Referenced by LoadFromDB(), and Group::LoadGroupFromDB().

◆ CheckLoadedRaidDifficultyID()

Difficulty Player::CheckLoadedRaidDifficultyID ( Difficulty  difficulty)
static

Definition at line 26377 of file Player.cpp.

References MAX_RAID_DIFFICULTY, and RAID_DIFFICULTY_10MAN_NORMAL.

Referenced by LoadFromDB(), and Group::LoadGroupFromDB().

◆ CheckOutdoorsAuraRequirements()

◆ CheckTitanGripPenalty()

◆ CleanupAfterTaxiFlight()

◆ CleanupChannels()

◆ CleanupsBeforeDelete()

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

◆ ClearAfkReports()

void Player::ClearAfkReports ( )
inline

Definition at line 1999 of file Player.h.

Referenced by Battleground::RemovePlayerAtLeave().

◆ ClearQuestSharingInfo()

◆ ClearResurrectRequestData()

void Player::ClearResurrectRequestData ( )
inline

◆ ClearWhisperWhiteList()

void Player::ClearWhisperWhiteList ( )
inline

◆ CompletedAchievement()

◆ CompleteQuest()

◆ ContinueTaxiFlight()

◆ ConvertRune()

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

◆ CorrectMetaGemEnchants()

◆ Create()

bool Player::Create ( ObjectGuid::LowType  guidlow,
WorldPackets::Character::CharacterCreateInfo const *  createInfo 
)
Todo:
need more checks against packet modifications

Definition at line 386 of file Player.cpp.

References Object::_Create(), PlayerInfo::action, AddActionButton(), CanEquipItem(), CanStoreItem(), CanUseAmmo(), WorldPackets::Character::CharacterCreateInfo::Class, CLASS_DEATH_KNIGHT, CONFIG_GAME_TYPE, CONFIG_START_ARENA_POINTS, CONFIG_START_DEATH_KNIGHT_PLAYER_MONEY, CONFIG_START_HONOR_POINTS, CONFIG_START_PLAYER_MONEY, ChrClassesEntry::DisplayPower, ItemTemplate::Effects, EQUIP_ERR_OK, EquipItem(), WorldPackets::Character::CharacterCreateInfo::Face, WorldPackets::Character::CharacterCreateInfo::FacialHairStyle, ItemTemplate::GetBuyCount(), GetCharStartOutfitEntry(), ItemTemplate::GetClass(), Unit::GetClass(), GameTime::GetGameTime(), GetItemByPos(), ItemTemplate::GetMaxStackSize(), GetSession(), GetStartLevel(), ItemTemplate::GetSubClass(), Unit::GetThreatManager(), WorldPackets::Character::CharacterCreateInfo::HairColor, WorldPackets::Character::CharacterCreateInfo::HairStyle, InitDisplayIds(), InitGlyphsForLevel(), ThreatManager::Initialize(), 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, LearnCustomSpells(), LearnDefaultSkills(), m_items, m_Last_tick, WorldObject::m_name, m_Played_time, PlayerInfo::mapId, MAX_OUTFIT_ITEMS, WorldPackets::Character::CharacterCreateInfo::Name, NULL_BAG, NULL_SLOT, PlayerInfo::orientation, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_FIELD_WATCHED_FACTION_INDEX, PLAYER_SLOTS_COUNT, PlayerInfo::positionX, PlayerInfo::positionY, PlayerInfo::positionZ, POWER_MANA, WorldPackets::Character::CharacterCreateInfo::Race, REALM_TYPE_PVP, REALM_TYPE_RPPVP, Position::Relocate(), RemoveItem(), REST_STATE_NOT_RAF_LINKED, REST_STATE_RAF_LINKED, sChrClassesStore, SetAmmo(), SetArenaPoints(), Unit::SetClass(), SetFaceId(), SetFacialStyle(), SetFactionForRace(), Unit::SetFullHealth(), Unit::SetFullPower(), Unit::SetGender(), SetHairColorId(), SetHairStyleId(), SetHonorPoints(), Object::SetInt32Value(), Unit::SetLevel(), SetMap(), SetMoney(), SetNativeGender(), SetObjectScale(), Unit::SetPowerType(), Unit::SetPvpFlag(), Unit::SetRace(), SetRestState(), SetSkinId(), Unit::SetUnitFlag(), Unit::SetUnitFlag2(), WorldPackets::Character::CharacterCreateInfo::Sex, WorldPackets::Character::CharacterCreateInfo::Skin, sMapMgr, sObjectMgr, SPELL_CATEGORY_DRINK, SPELL_CATEGORY_FOOD, StoreItem(), StoreNewItemInBestSlots(), sWorld, TC_LOG_ERROR, UNIT_BYTE2_FLAG_PVP, UNIT_FLAG2_REGENERATE_POWER, UNIT_FLAG_PLAYER_CONTROLLED, UpdateMaxHealth(), and ValidateAppearance().

◆ CreateCorpse()

◆ DeleteEquipmentSet()

void Player::DeleteEquipmentSet ( uint64  id)

◆ DeleteFromDB()

void Player::DeleteFromDB ( ObjectGuid  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 3913 of file Player.cpp.

References _LoadMailedItem(), MailDraft::AddItem(), MailDraft::AddMoney(), CHAR_DEL_BATTLEGROUND_RANDOM, 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_FISHINGSTEPS, 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_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_COOLDOWNS, CHAR_DEL_CHAR_STATS, CHAR_DEL_CHAR_TALENT, CHAR_DEL_CHARACTER, CHAR_DEL_CHARACTER_ARENA_STATS, CHAR_DEL_CHARACTER_QUESTSTATUS_DAILY, CHAR_DEL_CHARACTER_QUESTSTATUS_MONTHLY, CHAR_DEL_CHARACTER_QUESTSTATUS_SEASONAL, CHAR_DEL_CHARACTER_QUESTSTATUS_WEEKLY, CHAR_DEL_GUILD_BANK_EVENTLOG_BY_PLAYER, CHAR_DEL_GUILD_EVENTLOG_BY_PLAYER, CHAR_DEL_ITEM_INSTANCE_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_PET_IDS, CHAR_SEL_CHAR_SOCIAL, CHAR_SEL_GROUP_MEMBER, CHAR_SEL_MAILITEMS, CHAR_UPD_DELETE_INFO, CHAR_UPD_PLAYER_GM_TICKETS_ON_CHAR_DELETION, CharacterDatabase, CHARTER_TYPE_ANY, CharacterCacheEntry::Class, CLASS_DEATH_KNIGHT, CONFIG_CHARDELETE_DEATH_KNIGHT_MIN_LEVEL, CONFIG_CHARDELETE_METHOD, CONFIG_CHARDELETE_MIN_LEVEL, CONFIG_DELETE_CHARACTER_TICKET_TRACE, Corpse::DeleteFromDB(), Pet::DeleteFromDB(), ObjectAccessor::FindPlayer(), FRIEND_REMOVED, Field::GetBool(), ObjectGuid::GetCounter(), GmTicket::GetId(), Field::GetString(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt8(), LeaveAllArenaTeams(), CharacterCacheEntry::Level, MAIL_NORMAL, CharacterCacheEntry::Name, RemoveFromGroup(), RemovePetitionsAndSigns(), sCharacterCache, MailDraft::SendReturnToSender(), PreparedStatementBase::setUInt32(), sGroupMgr, sGuildMgr, SOCIAL_FLAG_ALL, sSocialMgr, sTicketMgr, sWorld, TC_LOG_ERROR, and ObjectGuid::ToString().

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 4280 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
keepDaysoverwrite the config option by another amount of days

Definition at line 4296 of file Player.cpp.

References CHAR_SEL_CHAR_OLD_CHARS, CharacterDatabase, DAY, DeleteFromDB(), GameTime::GetGameTime(), PreparedStatementBase::setUInt32(), TC_LOG_DEBUG, and TC_LOG_INFO.

◆ DeleteRefundReference()

void Player::DeleteRefundReference ( ObjectGuid  it)

Definition at line 25868 of file Player.cpp.

References m_refundableItems.

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

◆ 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 12111 of file Player.cpp.

References _ApplyItemMods(), ApplyItemObtainSpells(), BASE_ATTACK, CHAR_DEL_GIFT, CharacterDatabase, Item::ClearSoulboundTradeable(), CR_ARMOR_PENETRATION, Object::DestroyForPlayer(), DestroyItem(), ObjectGuid::Empty, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, GetBagByPos(), Item::GetCount(), ObjectGuid::GetCounter(), Object::GetEntry(), Object::GetGUID(), Object::GetGUID(), GetItemByPos(), ItemTemplate::GetItemSet(), WorldObject::GetName(), Item::GetTemplate(), ItemTemplate::HasFlag(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, Object::IsInWorld(), Item::IsNotEmptyBag(), Item::IsWrapped(), ITEM_FLAG_HAS_LOOT, ITEM_REMOVED, ItemRemovedQuestCheck(), m_items, MAX_BAG_SIZE, NULL_SLOT, OFF_ATTACK, PLAYER_FIELD_INV_SLOT_HEAD, RecalculateRating(), RemoveEnchantmentDurations(), Object::RemoveFromWorld(), RemoveItemDurations(), RemoveItemsSetItem(), RemoveTradeableItem(), Item::SetContainedIn(), Object::SetGuidValue(), Item::SetNotRefundable(), Item::SetSlot(), Item::SetState(), PreparedStatementBase::setUInt32(), SetVisibleItemSlot(), sLootItemStorage, sScriptMgr, TC_LOG_DEBUG, Position::ToString(), and UpdateExpertise().

Referenced by AddQuestAndCheckCompletion(), DestroyConjuredItems(), DestroyItem(), DestroyItemCount(), DestroyItemCount(), DestroyZoneLimitedItem(), WorldSession::DoLootRelease(), Spell::EffectSummonChangeItem(), debug_commandscript::HandleDebugItemExpireCommand(), WorldSession::HandleDestroyItemOpcode(), WorldSession::HandleOpenWrappedItemCallback(), WorldSession::HandleTurnInPetitionOpcode(), RefundItem(), and Item::UpdateDuration().

◆ DestroyItemCount() [1/2]

◆ DestroyItemCount() [2/2]

◆ DestroyZoneLimitedItem()

◆ DoRandomRoll()

◆ DuelComplete()

◆ DurabilityLoss()

void Player::DurabilityLoss ( Item *  item,
double  percent 
)

◆ DurabilityLossAll()

◆ DurabilityPointLossForEquipSlot()

void Player::DurabilityPointLossForEquipSlot ( EquipmentSlots  slot)

Definition at line 4673 of file Player.cpp.

References DurabilityPointsLoss(), GetItemByPos(), and INVENTORY_SLOT_BAG_0.

Referenced by Unit::DealDamage(), and Spell::TakeAmmo().

◆ DurabilityPointsLoss()

◆ DurabilityPointsLossAll()

◆ DurabilityRepair()

◆ DurabilityRepairAll()

◆ EnchantmentFitsRequirements()

◆ EnvironmentalDamage()

◆ EquipItem()

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

Definition at line 11802 of file Player.cpp.

References _ApplyItemMods(), ACHIEVEMENT_CRITERIA_TYPE_EQUIP_EPIC_ITEM, ACHIEVEMENT_CRITERIA_TYPE_EQUIP_ITEM, AddEnchantmentDurations(), SpellHistory::AddGlobalCooldown(), AddItemDurations(), AddItemsSetItem(), Object::AddToWorld(), ApplyEquipCooldown(), BASE_ATTACK, SpellHistory::BuildCooldownPacket(), CheckTitanGripPenalty(), CLASS_ROGUE, Item::ClearSoulboundTradeable(), CR_ARMOR_PENETRATION, Object::DestroyForPlayer(), EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, ItemTemplate::GetClass(), Unit::GetClass(), Item::GetCount(), Object::GetEntry(), Object::GetGUID(), ItemTemplate::GetInventoryType(), GetItemByPos(), ItemTemplate::GetItemSet(), WorldObject::GetName(), Unit::GetSpellHistory(), Item::GetTemplate(), INVTYPE_RELIC, Unit::IsAlive(), Unit::IsInCombat(), Object::IsInWorld(), ITEM_CHANGED, ITEM_CLASS_WEAPON, ITEM_REMOVED, m_weaponChangeTimer, OFF_ATTACK, RecalculateRating(), RemoveEnchantmentDurations(), Object::RemoveFromWorld(), RemoveItemDurations(), RemoveTradeableItem(), SendDirectMessage(), Object::SendUpdateToPlayer(), Item::SetCount(), Item::SetNotRefundable(), Item::SetOwnerGUID(), Item::SetState(), SPELL_COOLDOWN_FLAG_INCLUDE_GCD, sSpellMgr, SpellInfo::StartRecoveryTime, TC_LOG_ERROR, Position::ToString(), UpdateAchievementCriteria(), UpdateExpertise(), and VisualizeItem().

Referenced by Create(), Spell::EffectSummonChangeItem(), EquipNewItem(), WorldSession::HandleAutoEquipItemOpcode(), SplitItem(), and SwapItem().

◆ EquipNewItem()

Item * Player::EquipNewItem ( uint16  pos,
uint32  item,
bool  update 
)

◆ FailQuest()

◆ FindEquipSlot()

◆ FindQuestSlot()

◆ FinishTaxiFlight()

◆ GetActionButton()

ActionButton const * Player::GetActionButton ( uint8  button)

Definition at line 6096 of file Player.cpp.

References ACTIONBUTTON_DELETED, and m_actionButtons.

Referenced by Spell::EffectCastButtons().

◆ GetActionButtons()

ActionButtonList const & Player::GetActionButtons ( ) const
inline

Definition at line 1512 of file Player.h.

◆ GetActiveTalentGroup()

◆ GetAmmoDPS()

float Player::GetAmmoDPS ( ) const
inline

Definition at line 1152 of file Player.h.

Referenced by _ApplyAmmoBonuses(), and CalculateMinMaxDamage().

◆ GetArenaPersonalRating()

uint32 Player::GetArenaPersonalRating ( uint8  slot) const
inline

◆ GetArenaPoints()

uint32 Player::GetArenaPoints ( ) const
inline

◆ GetArenaTeamId()

◆ GetArenaTeamIdInvited()

◆ GetArmorProficiency()

uint32 Player::GetArmorProficiency ( ) const
inline

Definition at line 1181 of file Player.h.

Referenced by Spell::EffectProficiency().

◆ GetAttackBySlot()

◆ GetAuraUpdateMaskForRaid()

uint64 Player::GetAuraUpdateMaskForRaid ( ) const
inline

Definition at line 2166 of file Player.h.

Referenced by WorldSession::BuildPartyMemberStatsChangedPacket().

◆ GetAverageItemLevel()

◆ GetBagByPos()

◆ GetBankBagSlotCount()

uint8 Player::GetBankBagSlotCount ( ) const
inline

◆ GetBarberShopCost()

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

◆ GetBaseDefenseSkillValue()

uint32 Player::GetBaseDefenseSkillValue ( ) const
inline

Definition at line 1635 of file Player.h.

References SKILL_DEFENSE.

Referenced by UpdateCombatSkills().

◆ GetBaseModValue()

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

◆ GetBaseRune()

◆ GetBaseSkillValue()

◆ GetBaseSpellPowerBonus()

uint32 Player::GetBaseSpellPowerBonus ( ) const
inline

Returns base spellpower bonus from spellpower stat on items.

Definition at line 1671 of file Player.h.

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

◆ GetBaseWeaponSkillValue()

uint32 Player::GetBaseWeaponSkillValue ( WeaponAttackType  attType) const

◆ GetBattleground()

Battleground * Player::GetBattleground ( ) const

Definition at line 23024 of file Player.cpp.

References BGData::bgTypeID, GetBattlegroundId(), m_bgData, and sBattlegroundMgr.

Referenced by GameObject::ActivateToQuest(), CanEquipItem(), CanUnequipItem(), Spell::CheckCast(), SpellInfo::CheckLocation(), MapInstanced::CreateInstanceForPlayer(), Unit::DestroyForPlayer(), Spell::EffectOpenLock(), VehicleJoinEvent::Execute(), WorldSession::HandleAreaSpiritHealerQueryOpcode(), WorldSession::HandleAreaSpiritHealerQueueOpcode(), WorldSession::HandleAreaTriggerOpcode(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModEffectImmunity(), WorldSession::HandleBattlefieldLeaveOpcode(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlegroundPlayerPositionsOpcode(), bg_commandscript::HandleBgStartCommand(), bg_commandscript::HandleBgStopCommand(), debug_commandscript::HandleDebugNearGraveyard(), spell_item_rocket_boots::HandleDummy(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleMovementOpcode(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandlePVPLogDataOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), WorldSession::HandleRequestBattlefieldStatusOpcode(), InArena(), Battlefield::InvitePlayerToWar(), SpellArea::IsFitToRequirements(), Unit::Kill(), LeaveBattleground(), WorldSession::LogoutPlayer(), AchievementCriteriaData::Meets(), Unit::Mount(), achievement_bg_control_all_nodes::OnCheck(), achievement_arena_kills::OnCheck(), achievement_resilient_victory::OnCheck(), achievement_save_the_day::OnCheck(), achievement_everything_counts::OnCheck(), achievement_bg_av_perfection::OnCheck(), achievement_bg_sa_defense_of_ancients::OnCheck(), achievement_not_even_a_scratch::OnCheck(), RepopAtGraveyard(), ReportedAfkBy(), AchievementMgr::RequirementsSatisfied(), ResurrectPlayer(), RewardHonor(), SendInitWorldStates(), SendLoot(), SummonIfPossible(), TeleportTo(), and GameObject::Use().

◆ GetBattlegroundEntryPoint()

WorldLocation const & Player::GetBattlegroundEntryPoint ( ) const
inline

Definition at line 1989 of file Player.h.

Referenced by LoadFromDB().

◆ GetBattlegroundId()

◆ GetBattlegroundQueueIndex()

◆ GetBattlegroundQueueTypeId()

◆ GetBattlegroundTypeId()

BattlegroundTypeId Player::GetBattlegroundTypeId ( ) const
inline

◆ GetBGAccessByLevel()

◆ GetBGTeam()

◆ GetBoundInstance()

◆ GetBoundInstances()

◆ GetChampioningFaction()

uint32 Player::GetChampioningFaction ( ) const
inline

Definition at line 2229 of file Player.h.

Referenced by RewardReputation().

◆ GetChatTag()

uint8 Player::GetChatTag ( ) const

◆ getCinematic()

uint8 Player::getCinematic ( ) const
inline

Definition at line 1553 of file Player.h.

Referenced by WorldSession::HandlePlayerLogin().

◆ GetCinematicMgr()

CinematicMgr * Player::GetCinematicMgr ( ) const
inline

◆ GetCommandStatus()

◆ GetCoordsMapAreaAndZoneString()

std::string Player::GetCoordsMapAreaAndZoneString ( ) const

Definition at line 26205 of file Player.cpp.

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

◆ GetCorpse()

◆ GetCorpseLocation()

◆ GetCorpseReclaimDelay()

◆ GetCurrentRune()

◆ GetDeathTimer()

uint32 Player::GetDeathTimer ( ) const
inline

Definition at line 1875 of file Player.h.

Referenced by WorldSession::LogoutPlayer().

◆ GetDebugInfo()

std::string Player::GetDebugInfo ( ) const
overridevirtual

◆ GetDeclinedNames()

DeclinedName const * Player::GetDeclinedNames ( ) const
inline

Definition at line 2190 of file Player.h.

◆ GetDefaultGossipMenuForSource()

◆ GetDifficultyID()

◆ GetDodgeFromAgility()

void Player::GetDodgeFromAgility ( float &  diminishing,
float &  nondiminishing 
) const
Todo:
research if talents/effects that increase total agility by x% should increase non-diminishing part

Definition at line 5132 of file Player.cpp.

References AsUnderlyingType(), BASE_PCT, GtChanceToMeleeCritEntry::Data, Unit::GetClass(), Unit::GetCreateStat(), Unit::GetLevel(), Unit::GetPctModifierValue(), Unit::GetStat(), GT_MAX_LEVEL, MAX_CLASSES, sGtChanceToMeleeCritStore, STAT_AGILITY, and UNIT_MOD_STAT_START.

Referenced by UpdateDodgePercentage().

◆ GetDrunkenstateByValue()

DrunkenState Player::GetDrunkenstateByValue ( uint8  value)
static

◆ GetDrunkValue()

◆ GetDungeonDifficultyID()

◆ GetExpertiseDodgeOrParryReduction()

float Player::GetExpertiseDodgeOrParryReduction ( WeaponAttackType  attType) const

◆ GetFaceId()

uint8 Player::GetFaceId ( ) const
inline

◆ GetFacialStyle()

uint8 Player::GetFacialStyle ( ) const
inline

◆ GetFakeDrunkValue()

int32 Player::GetFakeDrunkValue ( ) const
inline

Definition at line 1871 of file Player.h.

References Object::GetInt32Value(), and PLAYER_FAKE_INEBRIATION.

Referenced by UpdateInvisibilityDrunkDetect().

◆ GetFreeInventorySpace()

◆ GetFreePrimaryProfessionPoints()

uint32 Player::GetFreePrimaryProfessionPoints ( ) const
inline

◆ GetFreeTalentPoints()

uint32 Player::GetFreeTalentPoints ( ) const
inline

Definition at line 1470 of file Player.h.

References Object::GetUInt32Value(), and PLAYER_CHARACTER_POINTS1.

Referenced by BuildPlayerTalentsInfoData(), and LearnTalent().

◆ GetGameClient()

GameClient * Player::GetGameClient ( ) const

Definition at line 26493 of file Player.cpp.

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

Referenced by SendInitialPacketsBeforeAddToMap(), and SetClientControl().

◆ GetGameObjectIfCanInteractWith() [1/2]

◆ GetGameObjectIfCanInteractWith() [2/2]

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

Definition at line 2196 of file Player.cpp.

References GetGameObjectIfCanInteractWith(), and GameObject::GetGoType().

◆ GetGlyph()

◆ GetGlyphSlot()

uint32 Player::GetGlyphSlot ( uint8  slot) const
inline

Definition at line 1506 of file Player.h.

References Object::GetUInt32Value(), and PLAYER_FIELD_GLYPH_SLOTS_1.

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

◆ GetGossipTextId() [1/2]

◆ GetGossipTextId() [2/2]

uint32 Player::GetGossipTextId ( WorldObject *  source)

◆ GetGrantableLevels()

uint8 Player::GetGrantableLevels ( ) const
inline

◆ GetGroup() [1/2]

Group * Player::GetGroup ( )
inline

Definition at line 2159 of file Player.h.

Referenced by _LoadBoundInstances(), _LoadGroup(), Group::AddInvite(), Group::AddMember(), Battlefield::AddOrSetPlayerToCorrectBfGroup(), InstanceMap::AddPlayerToMap(), LootItem::AllowedForPlayer(), Group::BroadcastPacket(), Loot::BuildLootResponse(), CanRollForItemInLFG(), CanUninviteFromGroup(), npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::CheckEventFail(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::CheckEventFail(), CheckInstanceValidity(), spell_dru_t10_restoration_4p_bonus_dummy::CheckProc(), AchievementMgr::ConditionsSatisfied(), CreateCorpse(), MapInstanced::CreateInstanceForPlayer(), ArenaTeam::DelMember(), Group::Disband(), WorldSession::DoLootRelease(), DoRandomRoll(), SmartAI::EndPath(), Loot::FillLoot(), Loot::FillQuestLoot(), GetInstanceSave(), GetNextRandomRaidMember(), Unit::GetNextRandomRaidMemberOrPet(), Unit::GetPartyMembers(), ChatHandler::GetPlayerGroupAndGUIDByName(), GetsRecruitAFriendBonus(), GroupEventHappens(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleChatMessage(), WorldSession::HandleGroupAssistantLeaderOpcode(), WorldSession::HandleGroupChangeSubGroupOpcode(), WorldSession::HandleGroupDisbandOpcode(), WorldSession::HandleGroupInviteOpcode(), group_commandscript::HandleGroupJoinCommand(), group_commandscript::HandleGroupLevelCommand(), group_commandscript::HandleGroupListCommand(), WorldSession::HandleGroupRaidConvertOpcode(), group_commandscript::HandleGroupRepairCommand(), group_commandscript::HandleGroupReviveCommand(), WorldSession::HandleGroupSetLeaderOpcode(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleGroupUninviteGuidOpcode(), WorldSession::HandleGroupUninviteOpcode(), instance_commandscript::HandleInstanceListBindsCommand(), OutdoorPvP::HandleKill(), WorldSession::HandleLfgLeaveOpcode(), WorldSession::HandleLfgSetRolesOpcode(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMethodOpcode(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleLootRoll(), WorldSession::HandleMinimapPingOpcode(), WorldSession::HandlePartyAssignmentOpcode(), WorldSession::HandlePetRename(), Battlefield::HandlePlayerLeaveZone(), WorldSession::HandlePlayerLogin(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleRaidReadyCheckFinishedOpcode(), WorldSession::HandleRaidReadyCheckOpcode(), WorldSession::HandleRaidTargetUpdateOpcode(), WorldSession::HandleResetInstancesOpcode(), WorldSession::HandleSetDungeonDifficultyOpcode(), WorldSession::HandleSetRaidDifficultyOpcode(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleGroupCommand(), HasQuestForGO(), HasQuestForItem(), isAllowedToLoot(), SmartAI::IsEscortInvokerInRange(), IsInSameGroupWith(), IsInSameRaidWith(), GameObject::IsLootAllowedFor(), Creature::isTappedBy(), Channel::JoinChannel(), lfg::LFGMgr::JoinLfg(), boss_coren_direbrew::JustDied(), boss_headless_horseman::JustDied(), boss_apothecary_hummel::JustDied(), boss_ahune::JustDied(), Unit::Kill(), KilledMonsterCredit(), KilledPlayerCredit(), Pet::LoadPetFromDB(), WorldSession::LogoutPlayer(), lfg::LFGMgr::MakeNewGroup(), MeetsGroupStatusCondition(), go_gauntlet_gate::go_gauntlet_gateAI::OnGossipHello(), lfg::LFGPlayerScript::OnLogin(), lfg::LFGPlayerScript::OnLogout(), lfg::LFGPlayerScript::OnMapChanged(), Trinity::MostHPMissingGroupInRange::operator()(), InstanceMap::PermBindAllPlayers(), MapManager::PlayerCannotEnter(), Group::RemoveMember(), RemovePet(), Group::ResetInstances(), RewardPlayerAndGroupAtEvent(), Group::SameSubGroup(), Satisfy(), WorldSession::SendLfgPartyLockInfo(), SendLoot(), SendNewItem(), SendUpdateToOutOfRangeGroupMembers(), Group::SendUpdateToPlayer(), SetBattlegroundOrBattlefieldRaid(), Unit::SetHealth(), Creature::SetLootRecipient(), GameObject::SetLootRecipient(), Unit::SetMaxHealth(), Unit::SetMaxPower(), Unit::SetPower(), Unit::SetPowerType(), lfg::LFGMgr::TeleportPlayer(), Unit::UpdateAuraForGroup(), UpdatePosition(), UpdateZone(), and GameObject::Use().

◆ GetGroup() [2/2]

Group const * Player::GetGroup ( ) const
inline

Definition at line 2160 of file Player.h.

◆ GetGroupInvite()

◆ GetGroupRef()

GroupReference & Player::GetGroupRef ( )
inline

Definition at line 2161 of file Player.h.

◆ GetGroupUpdateFlag()

uint32 Player::GetGroupUpdateFlag ( ) const
inline

Definition at line 2164 of file Player.h.

Referenced by WorldSession::BuildPartyMemberStatsChangedPacket().

◆ GetGuild() [1/2]

◆ GetGuild() [2/2]

Guild const * Player::GetGuild ( ) const

Definition at line 26224 of file Player.cpp.

References GetGuildId(), and sGuildMgr.

◆ GetGuildId()

◆ GetGuildIdInvited()

ObjectGuid::LowType Player::GetGuildIdInvited ( ) const
inline

◆ GetGuildName()

std::string Player::GetGuildName ( ) const

Definition at line 25851 of file Player.cpp.

References GetGuildId(), and sGuildMgr.

◆ GetGuildRank()

uint8 Player::GetGuildRank ( ) const
inline

Definition at line 1603 of file Player.h.

References Object::GetUInt32Value(), and PLAYER_GUILDRANK.

◆ GetHairColorId()

uint8 Player::GetHairColorId ( ) const
inline

◆ GetHairStyleId()

uint8 Player::GetHairStyleId ( ) const
inline

◆ GetHealthBonusFromStamina()

float Player::GetHealthBonusFromStamina ( )

Definition at line 289 of file StatSystem.cpp.

References Unit::GetStat(), and STAT_STAMINA.

Referenced by UpdateMaxHealth().

◆ GetHonorPoints()

uint32 Player::GetHonorPoints ( ) const
inline

◆ GetInGameTime()

uint32 Player::GetInGameTime ( ) const
inline

Definition at line 1345 of file Player.h.

◆ GetInnTriggerId()

uint32 Player::GetInnTriggerId ( ) const
inline

Definition at line 1043 of file Player.h.

Referenced by Update().

◆ GetInstanceSave()

InstanceSave * Player::GetInstanceSave ( uint32  mapid)

◆ GetItemByEntry()

◆ GetItemByGuid()

Item * Player::GetItemByGuid ( ObjectGuid  guid) const

◆ GetItemByPos() [1/2]

Item * Player::GetItemByPos ( uint16  pos) const

Definition at line 9550 of file Player.cpp.

References GetItemByPos().

Referenced by _SaveInventory(), _StoreItem(), AutoUnequipOffhandIfNeed(), CanEquipItem(), CanStoreItem_InBag(), CanStoreItem_InInventorySlots(), CanStoreItem_InSpecificSlot(), CanStoreItems(), CanUnequipItem(), CanUnequipItems(), CastAllObtainSpells(), CastItemCombatSpell(), CorrectMetaGemEnchants(), Create(), DestroyConjuredItems(), DestroyItem(), DestroyItemCount(), DestroyZoneLimitedItem(), PlayerAI::DoRangedAttackIfReady(), DurabilityLossAll(), DurabilityPointLossForEquipSlot(), DurabilityPointsLossAll(), DurabilityRepair(), DurabilityRepairAll(), Spell::EffectDurabilityDamage(), Spell::EffectDurabilityDamagePCT(), Spell::EffectEnchantHeldItem(), Spell::EffectScriptEffect(), EnchantmentFitsRequirements(), EquipItem(), EquippedOk(), FindEquipSlot(), GetBagByPos(), GetFreeInventorySpace(), GetItemByEntry(), GetItemByGuid(), GetItemByPos(), GetItemCount(), GetItemCountWithLimitCategory(), GetShield(), GetUseableItemByPos(), GetWeaponForAttack(), misc_commandscript::HandleAddItemCommand(), misc_commandscript::HandleAddItemToCommand(), spell_rog_deadly_poison::HandleAfterHit(), AuraEffect::HandleAuraModDisarm(), AuraEffect::HandleAuraModShapeshift(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleCancelTempEnchantmentOpcode(), debug_commandscript::HandleDebugGetItemStateCommand(), WorldSession::HandleDestroyItemOpcode(), WorldSession::HandleEquipmentSetSave(), WorldSession::HandleEquipmentSetUse(), WorldSession::HandleInspectOpcode(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandleOpenWrappedItemCallback(), WorldSession::HandleReadItem(), WorldSession::HandleSetTradeItemOpcode(), WorldSession::HandleWrapItemOpcode(), HasGemWithLimitCategoryEquipped(), HasItemCount(), HasItemOrGemWithIdEquipped(), HasItemWithLimitCategoryEquipped(), Trinity::Helpers::Entity::IsPlayerRangedAttacker(), IsTwoHandUsed(), IsUsingTwoHandedWeaponInOneHand(), MoveItemFromInventory(), RemoveArenaEnchantments(), RemoveItem(), SaveToDB(), SplitItem(), SwapItem(), and ToggleMetaGemsActive().

◆ GetItemByPos() [2/2]

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

◆ GetItemCount()

◆ GetItemCountWithLimitCategory()

◆ GetItemFromBuyBackSlot()

Item * Player::GetItemFromBuyBackSlot ( uint32  slot)

◆ GetItemUpdateQueue()

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

Definition at line 1092 of file Player.h.

Referenced by debug_commandscript::HandleDebugGetItemStateCommand().

◆ GetJoinedChannels()

JoinedChannelsList const & Player::GetJoinedChannels ( ) const
inline

Definition at line 1774 of file Player.h.

Referenced by ChannelMgr::GetChannelForPlayerByNamePart().

◆ GetLastPetNumber()

uint32 Player::GetLastPetNumber ( ) const
inline

Definition at line 2150 of file Player.h.

Referenced by spell_gen_pet_summoned::HandleScript().

◆ GetLastPotionId()

uint32 Player::GetLastPotionId ( ) const
inline

Definition at line 1530 of file Player.h.

Referenced by Spell::CheckCast().

◆ GetLastRuneGraceTimer()

uint32 Player::GetLastRuneGraceTimer ( uint8  index) const
inline

Definition at line 1697 of file Player.h.

Referenced by spell_dk_death_rune::HandleProc().

◆ GetLastUsedRune()

RuneType Player::GetLastUsedRune ( ) const
inline

Definition at line 2198 of file Player.h.

◆ GetLevelPlayedTime()

uint32 Player::GetLevelPlayedTime ( ) const
inline

Definition at line 1015 of file Player.h.

References PLAYED_TIME_LEVEL.

Referenced by WorldSession::HandlePlayedTime().

◆ GetLootGUID()

◆ GetMail()

◆ GetMails()

PlayerMails const & Player::GetMails ( ) const
inline

◆ GetMailSize()

uint32 Player::GetMailSize ( )
inline

Definition at line 1418 of file Player.h.

◆ GetManaBonusFromIntellect()

float Player::GetManaBonusFromIntellect ( )

Definition at line 298 of file StatSystem.cpp.

References Unit::GetStat(), and STAT_INTELLECT.

Referenced by UpdateMaxPower().

◆ GetMapAreaAndZoneString()

◆ GetMapRef()

MapReference & Player::GetMapRef ( )
inline

◆ GetMaxKeyringSize()

uint32 Player::GetMaxKeyringSize ( ) const
inline

Definition at line 1174 of file Player.h.

References KEYRING_SLOT_END, and KEYRING_SLOT_START.

Referenced by CanStoreItem(), CanStoreItem_InSpecificSlot(), and CanStoreItems().

◆ GetMaxPersonalArenaRatingRequirement()

uint32 Player::GetMaxPersonalArenaRatingRequirement ( uint32  minarenaslot) const

If trans is specified, arena point save query will be added to trans.

Definition at line 21574 of file Player.cpp.

References GetArenaPersonalRating(), GetArenaTeamId(), MAX_ARENA_SLOT, and sArenaTeamMgr.

Referenced by BuyItemFromVendorSlot().

◆ GetMaxSkillValue()

uint16 Player::GetMaxSkillValue ( uint32  skill) const

◆ getMaxTimer()

◆ GetMeleeCritFromAgility()

◆ GetMeleeDamageSchoolMask()

SpellSchoolMask Player::GetMeleeDamageSchoolMask ( WeaponAttackType  attackType = BASE_ATTACK,
uint8  damageIndex = 0 
) const
overridevirtual

Implements Unit.

Definition at line 7444 of file Player.cpp.

References GetWeaponForAttack(), and SPELL_SCHOOL_MASK_NORMAL.

◆ GetMissPercentageFromDefense()

float Player::GetMissPercentageFromDefense ( ) const

◆ GetMItem()

◆ GetMoney()

◆ GetMovie()

uint32 Player::GetMovie ( ) const
inline

Definition at line 1556 of file Player.h.

Referenced by WorldSession::HandleCompleteMovie().

◆ GetNativeGender()

◆ GetNextQuest()

Quest const * Player::GetNextQuest ( Object const *  questGiver,
Quest const *  quest 
) const

◆ GetNextRandomRaidMember()

◆ GetNextResetTalentsCost()

◆ GetNPCIfCanInteractWith()

Creature * Player::GetNPCIfCanInteractWith ( ObjectGuid const &  guid,
NPCFlags  npcFlags 
) const

Definition at line 2126 of file Player.cpp.

References CREATURE_TYPE_FLAG_INTERACT_WHILE_DEAD, CREATURE_TYPE_FLAG_VISIBLE_TO_GHOSTS, Unit::GetCharmerGUID(), Unit::GetCombatReach(), ObjectAccessor::GetCreatureOrPetOrVehicle(), Creature::GetCreatureTemplate(), WorldObject::GetReactionTo(), Unit::HasNpcFlag(), Unit::IsAlive(), ObjectGuid::IsEmpty(), Unit::IsInFlight(), Object::IsInWorld(), WorldObject::IsWithinDistInMap(), REP_UNFRIENDLY, and CreatureTemplate::type_flags.

Referenced by BuyItemFromVendorSlot(), CanInteractWithQuestGiver(), WorldSession::CanOpenMailBox(), WorldSession::CanUseBank(), WorldSession::HandleActivateTaxiExpressOpcode(), WorldSession::HandleActivateTaxiOpcode(), WorldSession::HandleAuctionHelloOpcode(), WorldSession::HandleAuctionListBidderItems(), WorldSession::HandleAuctionListItems(), WorldSession::HandleAuctionListOwnerItems(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleBankerActivateOpcode(), WorldSession::HandleBattlemasterHelloOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBinderActivateOpcode(), WorldSession::HandleBuybackItem(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleGossipSelectOptionOpcode(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandleQuestgiverHelloOpcode(), WorldSession::HandleRepairItemOpcode(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSpiritHealerActivateOpcode(), WorldSession::HandleTabardVendorActivateOpcode(), WorldSession::HandleTalentWipeConfirmOpcode(), WorldSession::HandleTaxiQueryAvailableNodes(), WorldSession::HandleTrainerBuySpellOpcode(), WorldSession::HandleTrainerListOpcode(), WorldSession::SendListInventory(), and WorldSession::SendPetitionShowList().

◆ GetOriginalGroup()

◆ GetOriginalGroupRef()

GroupReference & Player::GetOriginalGroupRef ( )
inline

Definition at line 2175 of file Player.h.

◆ GetOriginalSubGroup()

uint8 Player::GetOriginalSubGroup ( ) const
inline

Definition at line 2176 of file Player.h.

Referenced by RemoveFromBattlegroundOrBattlefieldRaid().

◆ GetOrInitPetStable()

PetStable & Player::GetOrInitPetStable ( )

Definition at line 25938 of file Player.cpp.

References m_petStable.

Referenced by WorldSession::HandleBuyStableSlot(), Unit::InitTamedPet(), and SummonPet().

◆ GetOutdoorPvP()

OutdoorPvP * Player::GetOutdoorPvP ( ) const

Definition at line 23397 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 2180 of file Player.h.

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

◆ GetPet()

Pet * Player::GetPet ( ) const

Definition at line 20284 of file Player.cpp.

References ObjectAccessor::GetPet(), Unit::GetPetGUID(), ObjectGuid::IsEmpty(), Object::IsInWorld(), and ObjectGuid::IsPet().

Referenced by KillRewarder::_RewardXP(), ActivateTalentGroup(), AddPetAura(), WorldSession::BuildPartyMemberStatsChangedPacket(), BuildPetTalentsInfoData(), Spell::CheckCast(), spell_hun_t9_4p_bonus::CheckProc(), Spell::EffectFeedPet(), Spell::EffectResurrectPet(), Spell::EffectSummonPet(), GetSelectedPlayerPetOrOwn(), GiveLevel(), AuraEffect::HandleAuraModPetTalentsPoints(), spell_hun_masters_call::HandleDummy(), learn_commandscript::HandleLearnAllPetTalentsCommand(), AuraEffect::HandleModPossessPet(), spell_hun_t9_4p_bonus::HandleProc(), WorldSession::HandleRequestPartyMemberStatsOpcode(), WorldSession::HandleRequestPetInfo(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetTalentsCommand(), WorldSession::HandleStablePet(), WorldSession::HandleStableSwapPet(), WorldSession::HandleUnstablePet(), InitStatsForLevel(), Unit::Kill(), LearnPetTalent(), Pet::LoadPetFromDB(), spell_hun_aspect_of_the_beast::OnApply(), spell_hun_aspect_of_the_beast::OnRemove(), PetSpellInitialize(), PrepareGossipMenu(), RemoveArenaSpellCooldowns(), RemovePet(), RemovePetAura(), ResetPetTalents(), DuelResetScript::ResetSpellCooldowns(), SaveToDB(), SendUpdateToOutOfRangeGroupMembers(), SetGameMaster(), TeleportTo(), UnsummonPetTemporaryIfAny(), instance_stratholme::instance_stratholme_InstanceMapScript::Update(), Update(), UpdateArmor(), UpdateAttackPowerAndDamage(), UpdateResistances(), and UpdateStats().

◆ GetPetStable() [1/2]

◆ GetPetStable() [2/2]

PetStable const * Player::GetPetStable ( ) const
inline

Definition at line 1047 of file Player.h.

◆ GetPhaseMaskForSpawn()

◆ GetPlayerSharingQuest()

◆ GetPowerRegen()

◆ GetPureMaxSkillValue()

◆ GetPureSkillValue()

◆ GetQuestDialogStatus()

◆ GetQuestLevel()

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

◆ GetQuestRewardedTalentCount()

uint32 Player::GetQuestRewardedTalentCount ( ) const
inline

Definition at line 1474 of file Player.h.

Referenced by CalculateTalentsPoints().

◆ 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 15655 of file Player.cpp.

References GetQuestRewardStatus(), m_QuestStatus, QUEST_STATUS_NONE, and QUEST_STATUS_REWARDED.

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::CheckRequirement(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DamageTaken(), DuelComplete(), Spell::EffectQuestClear(), FailQuest(), GetQuestDialogStatus(), WorldSession::HandleAreaTriggerOpcode(), spell_midsummer_torch_catch::HandleDummy(), spell_item_chicken_cover::HandleDummy(), spell_sindragosa_frost_breath::HandleInfusion(), lookup_commandscript::HandleLookupQuestCommand(), lookup_commandscript::HandleLookupQuestIdCommand(), WorldSession::HandlePushQuestToParty(), quest_commandscript::HandleQuestComplete(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), WorldSession::HandleQuestgiverRequestRewardOpcode(), quest_commandscript::HandleQuestRemove(), quest_commandscript::HandleQuestReward(), spell_festergut_blighted_spores::HandleResidue(), spell_rotface_slime_spray::HandleResidue(), spell_midsummer_fling_torch_catch::HandleScriptEffect(), SpellArea::IsFitToRequirements(), npc_clintar_spirit::npc_clintar_spiritAI::JustDied(), boss_shattered_executioner::JustDied(), npc_a_special_surprise::npc_a_special_surpriseAI::MeetQuestCondition(), spell_brewfest_barker_bunny::OnApply(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipHello(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::OnGossipHello(), go_loosely_turned_soil::OnGossipHello(), go_gauntlet_gate::go_gauntlet_gateAI::OnGossipHello(), npc_erozion::OnGossipHello(), npc_rizzle_sprysprocket::OnGossipHello(), npc_thrall_warchief::npc_thrall_warchiefAI::OnGossipHello(), go_legion_obelisk::go_legion_obeliskAI::OnGossipHello(), go_gilded_brazier::go_gilded_brazierAI::OnGossipHello(), go_tablet_of_the_seven::go_tablet_of_the_sevenAI::OnGossipHello(), go_tele_to_violet_stand::go_tele_to_violet_standAI::OnGossipHello(), go_amberpine_outhouse::go_amberpine_outhouseAI::OnGossipHello(), go_veil_skith_cage::go_veil_skith_cageAI::OnGossipHello(), npc_rizzle_sprysprocket::OnGossipSelect(), AreaTrigger_at_sentry_point::OnTrigger(), at_malfurion_stormrage::OnTrigger(), at_twilight_grove::OnTrigger(), at_ancient_leaf::OnTrigger(), areatrigger_orgrimmar_herald_of_war::OnTrigger(), at_hor_intro_start::OnTrigger(), at_commander_dawnforge::OnTrigger(), AreaTrigger_at_scent_larkorwi::OnTrigger(), AreaTrigger_at_nats_landing::OnTrigger(), AreaTrigger_at_frostgrips_hollow::OnTrigger(), at_bring_your_orphan_to::OnTrigger(), AreaTrigger_at_sholazar_waygate::OnTrigger(), item_captured_frog::OnUse(), npc_doctor::npc_doctorAI::PatientDied(), npc_doctor::npc_doctorAI::PatientSaved(), PrepareQuestMenu(), npc_shenthul::npc_shenthulAI::ReceiveEmote(), npc_chicken_cluck::npc_chicken_cluckAI::ReceiveEmote(), SatisfyQuestDependentBreadcrumbQuests(), SatisfyQuestExclusiveGroup(), SatisfyQuestPreviousQuest(), SatisfyQuestStatus(), boss_shattered_executioner::SetData(), npc_restless_soul::npc_restless_soulAI::SpellHit(), npc_wounded_skirmisher::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), npc_clintar_spirit::npc_clintar_spiritAI::StartEvent(), npc_clintar_spirit::npc_clintar_spiritAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), boss_blood_queen_lana_thel::UpdateAI(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::UpdateAI(), and FollowerAI::UpdateAI().

◆ getQuestStatusMap()

QuestStatusMap & Player::getQuestStatusMap ( )
inline

Definition at line 1399 of file Player.h.

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

◆ GetQuestXPReward()

◆ GetRaidDifficultyID()

◆ GetRandomWinner()

bool Player::GetRandomWinner ( ) const
inline

◆ GetRatingBonusValue()

◆ GetRatingMultiplier()

◆ GetReputation()

uint32 Player::GetReputation ( uint32  factionentry) const

◆ GetReputationMgr() [1/2]

◆ GetReputationMgr() [2/2]

ReputationMgr const & Player::GetReputationMgr ( ) const
inline

Definition at line 1835 of file Player.h.

◆ GetReputationPriceDiscount() [1/2]

◆ GetReputationPriceDiscount() [2/2]

float Player::GetReputationPriceDiscount ( FactionTemplateEntry const *  factionTemplate) const

Definition at line 23155 of file Player.cpp.

References FactionTemplateEntry::Faction, GetReputationRank(), and REP_NEUTRAL.

◆ GetReputationRank()

◆ GetReqKillOrCastCurrentCount()

uint16 Player::GetReqKillOrCastCurrentCount ( uint32  quest_id,
int32  entry 
) const

◆ GetRestBonus()

float Player::GetRestBonus ( ) const
inline

Definition at line 1032 of file Player.h.

Referenced by GetXPRestBonus(), LoadFromDB(), and Update().

◆ GetRestState()

uint8 Player::GetRestState ( ) const
inline

Definition at line 1035 of file Player.h.

References Object::GetByteValue(), PLAYER_BYTES_2, and PLAYER_BYTES_2_OFFSET_REST_STATE.

Referenced by SaveToDB().

◆ GetResurrectionSpellId()

◆ GetRewardedQuestCount()

size_t Player::GetRewardedQuestCount ( ) const
inline

Definition at line 1401 of file Player.h.

◆ getRewardedQuests()

RewardedQuestSet const & Player::getRewardedQuests ( ) const
inline

◆ GetRuneBaseCooldown()

uint32 Player::GetRuneBaseCooldown ( uint8  index) const
inline

Definition at line 2195 of file Player.h.

Referenced by spell_dk_death_rune::HandleProc(), and Spell::TakeRunePower().

◆ GetRuneCooldown()

◆ GetRunesState()

uint8 Player::GetRunesState ( ) const
inline

◆ GetRuneTimer()

uint32 Player::GetRuneTimer ( uint8  index) const
inline

Definition at line 1695 of file Player.h.

Referenced by SetRuneCooldown(), and Update().

◆ GetRuneTypeBaseCooldown()

uint32 Player::GetRuneTypeBaseCooldown ( RuneType  runeType) const

◆ GetSaveTimer()

uint32 Player::GetSaveTimer ( ) const
inline

Definition at line 2062 of file Player.h.

Referenced by misc_commandscript::HandleSaveCommand().

◆ GetScalingStatDistributionFor()

ScalingStatDistributionEntry const * Player::GetScalingStatDistributionFor ( ItemTemplate const &  itemTemplate) const

◆ GetScalingStatValuesFor()

◆ GetSelectedPlayer()

◆ GetSelectedUnit()

Unit * Player::GetSelectedUnit ( ) const

◆ GetSession()

WorldSession * Player::GetSession ( ) const
inline

Definition at line 1705 of file Player.h.

Referenced by _LoadHomeBind(), _LoadInventory(), InstanceScript::_SkipCheckRequiredBosses(), ActivateTalentGroup(), ActivateTaxiPathTo(), AddEnchantmentDuration(), BattlegroundQueue::AddGroup(), AddItem(), Guild::AddMember(), InstanceMap::AddPlayerToMap(), AddSpell(), Channel::Announce(), AutoUnequipOffhandIfNeed(), World::BanCharacter(), BindToInstance(), Group::BroadcastPacket(), Group::BroadcastReadyCheck(), SocialMgr::BroadcastToFriendListers(), AchievementMgr::BuildAllDataPacket(), CalendarEvent::BuildCalendarMailBody(), AuctionHouseObject::BuildListAuctionItems(), BuildPlayerRepop(), CanBeGameMaster(), CanJoinToBattleground(), CharacterActionIpLogger::CharacterIPLogAction(), Spell::CheckCast(), AchievementMgr::CompletedAchievement(), ContinueTaxiFlight(), Group::CountTheRoll(), Create(), Guild::Create(), ArenaTeam::DelMember(), Unit::DestroyForPlayer(), Group::Disband(), DuelComplete(), DurabilityRepairAll(), Spell::EffectDiscoverTaxi(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), Spell::EffectEnchantItemTmp(), Spell::EffectPlaySound(), lfg::LFGMgr::FinishDungeon(), ChannelMgr::GetChannel(), ChannelMgr::GetChannelForPlayerByNamePart(), SocialMgr::GetFriendInfo(), GetGameClient(), lfg::LFGMgr::GetLockedDungeons(), GetMapAreaAndZoneString(), getMaxTimer(), ReputationMgr::GetReputationRankName(), GetsRecruitAFriendBonus(), GiveLevel(), Group::GroupLoot(), WorldSession::HandleAcceptGrantLevel(), WorldSession::HandleAcceptTradeOpcode(), account_commandscript::HandleAccountSetAddonCommand(), account_commandscript::HandleAccountSetSecLevelCommand(), BattlegroundAV::HandleAreaTrigger(), BattlegroundAB::HandleAreaTrigger(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleAuctionPlaceBid(), AuraEffect::HandleAuraOpenStable(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleBeginTradeOpcode(), WorldSession::HandleChatIgnoredOpcode(), WorldSession::HandleChatMessage(), cheat_commandscript::HandleExploreCheatCommand(), WorldSession::HandleForceSpeedChangeAck(), ticket_commandscript::HandleGMTicketUnAssignCommand(), WorldSession::HandleGrantLevel(), WorldSession::HandleGroupDeclineOpcode(), group_commandscript::HandleGroupLevelCommand(), group_commandscript::HandleGroupReviveCommand(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleInitiateTradeOpcode(), misc_commandscript::HandleKickPlayerCommand(), lookup_commandscript::HandleLookupPlayerIpCommand(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleMailTakeItem(), Guild::HandleMemberDepositMoney(), modify_commandscript::HandleModifyGenderCommand(), modify_commandscript::HandleModifyMoneyCommand(), modify_commandscript::HandleModifySpellCommand(), misc_commandscript::HandleMuteCommand(), misc_commandscript::HandlePInfoCommand(), Battlefield::HandlePlayerLeaveZone(), OutdoorPvP::HandlePlayerLeaveZone(), WorldSession::HandlePlayerLogin(), misc_commandscript::HandleRepairitemsCommand(), WorldSession::HandleReportPvPAFK(), reset_commandscript::HandleResetSpellsCommand(), misc_commandscript::HandleReviveCommand(), send_commandscript::HandleSendMessageCommand(), misc_commandscript::HandleSummonCommand(), cheat_commandscript::HandleTaxiCheatCommand(), tele_commandscript::HandleTeleGroupCommand(), misc_commandscript::HandleUnmuteCommand(), WorldSession::HandleWhoIsOpcode(), WorldSession::HandleWhoOpcode(), InitStatsForLevel(), InitTalentForLevel(), Channel::Invite(), Battlefield::InvitePlayerToQueue(), Battlefield::InvitePlayerToWar(), IsInstanceLoginGameMasterException(), IsLoading(), IsNeverVisible(), SpellMgr::IsSpellValid(), ObjectMgr::IsVendorItemValid(), IsVisibleGloballyFor(), Channel::JoinChannel(), lfg::LFGMgr::JoinLfg(), Channel::KickOrBan(), LeaveBattleground(), Channel::LeaveChannel(), Channel::List(), LoadFromDB(), Pet::LoadPetFromDB(), WorldSession::moveItems(), Group::NeedBeforeGreed(), Group::OfflineReadyCheck(), npc_wg_spirit_guide::OnGossipHello(), npc_wg_queue::OnGossipHello(), go_tele_to_dalaran_crystal::go_tele_to_dalaran_crystalAI::OnGossipHello(), npc_lokhtos_darkbargainer::npc_lokhtos_darkbargainerAI::OnGossipSelect(), go_amberpine_outhouse::go_amberpine_outhouseAI::OnGossipSelect(), npc_innkeeper::npc_innkeeperAI::OnGossipSelect(), npc_argent_squire_gruntling::npc_argent_squire_gruntlingAI::OnGossipSelect(), OnGossipSelect(), lfg::LFGPlayerScript::OnLogin(), lfg::LFGPlayerScript::OnLogout(), lfg::LFGPlayerScript::OnMapChanged(), BattlefieldWG::OnPlayerLeaveWar(), item_defias_gunpowder::OnUse(), Trinity::LocalizedPacketDo< Builder >::operator()(), Trinity::LocalizedPacketListDo< Builder >::operator()(), CreatureTextLocalizer< Builder >::operator()(), Channel::Password(), InstanceMap::PermBindAllPlayers(), Player(), Battlefield::PlayerAcceptInviteToQueue(), Battlefield::PlayerAcceptInviteToWar(), MapManager::PlayerCannotEnter(), PrepareGossipMenu(), RepopAtGraveyard(), AchievementMgr::ResetAchievementCriteria(), ResurrectPlayer(), RewardHonor(), Satisfy(), SaveToDB(), npc_prof_blacksmith::npc_prof_blacksmithAI::SendActionMenu(), npc_prof_leather::npc_prof_leatherAI::SendActionMenu(), npc_prof_tailor::npc_prof_tailorAI::SendActionMenu(), npc_prof_alchemy::npc_prof_alchemyAI::SendActionMenu(), AuctionHouseMgr::SendAuctionCancelledToBidderMail(), AuctionHouseMgr::SendAuctionExpiredMail(), AuctionHouseMgr::SendAuctionOutbiddedMail(), AuctionHouseMgr::SendAuctionSalePendingMail(), AuctionHouseMgr::SendAuctionSuccessfulMail(), AuctionHouseMgr::SendAuctionWonMail(), CalendarMgr::SendCalendarEvent(), SendCorpseReclaimDelay(), AchievementMgr::SendCriteriaUpdate(), SendEnchantmentDurations(), SendInitialPacketsAfterAddToMap(), lfg::LFGMgr::SendLfgRoleChosen(), Group::SendLootAllPassed(), Group::SendLootRoll(), Group::SendLootRollWon(), Group::SendLootStartRoll(), Group::SendLootStartRollToPlayer(), Channel::SendMemberCount(), SendPreparedQuest(), SendQuestConfirmAccept(), Spell::SendResurrectRequest(), Group::SendUpdateToPlayer(), ReputationMgr::SendVisible(), Map::SendZoneMessage(), TradeData::SetAccepted(), Item::SetEnchantment(), SetGameMaster(), SetGMVisible(), Channel::SetMode(), TradeData::SetMoney(), Channel::SetOwner(), SetRestBonus(), Guild::Member::SetStats(), SpawnCorpseBones(), lfg::LFGMgr::TeleportPlayer(), TeleportTo(), TextEmote(), ToggleAFK(), TradeCancel(), Channel::UnBan(), UnbindInstance(), TradeData::Update(), Pet::Update(), Update(), Map::Update(), AchievementMgr::UpdateAchievementCriteria(), UpdateLocalChannels(), Group::UpdatePlayerOutOfRange(), UpdateSpeakTime(), Whisper(), Unit::Whisper(), Unit::Whisper(), and Whisper().

◆ GetSharedQuestID()

uint32 Player::GetSharedQuestID ( ) const
inline

Definition at line 1340 of file Player.h.

Referenced by SendInitialPacketsAfterAddToMap().

◆ GetShield()

Item * Player::GetShield ( bool  useable = false) const

◆ GetShieldBlockValue()

uint32 Player::GetShieldBlockValue ( ) const
overridevirtual

Implements Unit.

Definition at line 5109 of file Player.cpp.

References Unit::GetStat(), m_auraBaseFlatMod, m_auraBasePctMod, SHIELD_BLOCK_VALUE, and STAT_STRENGTH.

Referenced by UpdateShieldBlockValue().

◆ GetSkillLineIdByPos()

uint16 Player::GetSkillLineIdByPos ( uint32  pos) const
inline

◆ GetSkillMaxRankByPos()

◆ GetSkillPermBonusByPos()

◆ GetSkillPermBonusValue()

int16 Player::GetSkillPermBonusValue ( uint32  skill) const

◆ GetSkillRankByPos()

◆ GetSkillStep()

uint16 Player::GetSkillStep ( uint32  skill) const

◆ GetSkillStepByPos()

uint16 Player::GetSkillStepByPos ( uint32  pos) const
inline

◆ GetSkillTempBonusByPos()

int16 Player::GetSkillTempBonusByPos ( uint32  pos) const
inline

◆ GetSkillTempBonusValue()

int16 Player::GetSkillTempBonusValue ( uint32  skill) const

◆ GetSkillValue()

◆ GetSkinId()

uint8 Player::GetSkinId ( ) const
inline

◆ GetSocial()

◆ GetSpellCritFromIntellect()

◆ GetSpellMap() [1/2]

PlayerSpellMap & Player::GetSpellMap ( )
inline

Definition at line 1519 of file Player.h.

◆ GetSpellMap() [2/2]

◆ GetSpellPenetrationItemMod()

int32 Player::GetSpellPenetrationItemMod ( ) const
inline

Definition at line 1672 of file Player.h.

◆ GetsRecruitAFriendBonus()

◆ GetStartLevel()

◆ GetStartPosition()

◆ GetSubGroup()

uint8 Player::GetSubGroup ( ) const
inline

◆ GetTalentGroupsCount()

◆ GetTalentMap() [1/2]

PlayerTalentMap * Player::GetTalentMap ( uint8  group)
inline

Definition at line 1511 of file Player.h.

◆ GetTalentMap() [2/2]

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

Definition at line 1510 of file Player.h.

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

◆ GetTalentResetCost()

uint32 Player::GetTalentResetCost ( ) const
inline

Definition at line 1476 of file Player.h.

Referenced by GetNextResetTalentsCost(), and SaveToDB().

◆ GetTalentResetTime()

time_t Player::GetTalentResetTime ( ) const
inline

Definition at line 1478 of file Player.h.

Referenced by GetNextResetTalentsCost(), and SaveToDB().

◆ GetTeam()

uint32 Player::GetTeam ( ) const
inline

Definition at line 1818 of file Player.h.

Referenced by Battleground::_GetPlayerForTeam(), ActivateTaxiPathTo(), GameObject::ActivateToQuest(), BattlegroundQueue::AddGroup(), Arena::AddPlayer(), LootItem::AllowedForPlayer(), SocialMgr::BroadcastToFriendListers(), BuyItemFromVendorSlot(), Group::CanJoinBattlegroundQueue(), OPvPCapturePointZM_Graveyard::CanTalkTo(), CanUseItem(), BattlegroundAV::CheckAchievementCriteriaMeet(), BattlegroundSA::CheckAchievementCriteriaMeet(), BattlegroundAB::CheckAchievementCriteriaMeet(), BattlegroundEY::CheckSomeoneLeftPoint(), CleanupChannels(), AchievementMgr::CompletedAchievement(), ContinueTaxiFlight(), DuelComplete(), BattlegroundAV::EventPlayerAssaultsPoint(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundEY::EventPlayerCapturedFlag(), BattlegroundWS::EventPlayerClickedOnFlag(), BattlegroundAB::EventPlayerClickedOnFlag(), BattlegroundEY::EventPlayerClickedOnFlag(), BattlegroundAV::EventPlayerDefendsPoint(), BattlegroundWS::EventPlayerDroppedFlag(), BattlegroundEY::EventPlayerDroppedFlag(), BattlegroundEY::EventTeamCapturedPoint(), GetBGTeam(), Battleground::GetClosestGraveyard(), BattlegroundAB::GetClosestGraveyard(), BattlegroundAV::GetClosestGraveyard(), BattlegroundEY::GetClosestGraveyard(), BattlegroundIC::GetClosestGraveyard(), BattlegroundWS::GetClosestGraveyard(), SocialMgr::GetFriendInfo(), lfg::LFGMgr::GetLockedDungeons(), Guild::HandleAcceptMember(), WorldSession::HandleAddFriendOpcode(), BattlegroundAV::HandleAreaTrigger(), OutdoorPvPSI::HandleAreaTrigger(), BattlegroundAB::HandleAreaTrigger(), BattlegroundEY::HandleAreaTrigger(), WorldSession::HandleArenaTeamAcceptOpcode(), WorldSession::HandleArenaTeamInviteOpcode(), WorldSession::HandleCalendarEventInvite(), message_commandscript::HandleChannelSetOwnership(), WorldSession::HandleChatMessage(), debug_commandscript::HandleDebugNearGraveyard(), OutdoorPvPSI::HandleDropFlag(), spell_brewfest_mount_transformation::HandleDummy(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleInitiateTradeOpcode(), Guild::HandleInviteMember(), OutdoorPvPHP::HandleKillImpl(), OutdoorPvPNA::HandleKillImpl(), OutdoorPvPZM::HandleKillImpl(), Battleground::HandleKillPlayer(), BattlegroundAV::HandleKillPlayer(), BattlegroundIC::HandleKillPlayer(), BattlegroundAV::HandleKillUnit(), WorldSession::HandleOfferPetitionOpcode(), OutdoorPvPEP::HandlePlayerEnterZone(), OutdoorPvPHP::HandlePlayerEnterZone(), OutdoorPvPNA::HandlePlayerEnterZone(), OutdoorPvPSI::HandlePlayerEnterZone(), OutdoorPvPTF::HandlePlayerEnterZone(), OutdoorPvPZM::HandlePlayerEnterZone(), OutdoorPvPEP::HandlePlayerLeaveZone(), OutdoorPvPHP::HandlePlayerLeaveZone(), WorldSession::HandlePlayerLogin(), BattlegroundAV::HandleQuestComplete(), spell_midsummer_fling_torch_catch::HandleScriptEffect(), WorldSession::HandleSendMail(), WorldSession::HandleWhoOpcode(), Channel::Invite(), IsGroupVisibleFor(), boss_shattered_executioner::JustDied(), Unit::Kill(), LoadFromDB(), AchievementCriteriaData::Meets(), Trinity::MessageDistDeliverer::MessageDistDeliverer(), npc_mageguard_dalaran::MoveInLineOfSight(), achievement_bg_control_all_nodes::OnCheck(), lfg::LFGPlayerScript::OnLogin(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::OnPlayerEnter(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::OnPlayerEnter(), instance_forge_of_souls::instance_forge_of_souls_InstanceScript::OnPlayerEnter(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnPlayerEnter(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::OnPlayerEnter(), instance_nexus::instance_nexus_InstanceMapScript::OnPlayerEnter(), instance_ulduar::instance_ulduar_InstanceMapScript::OnPlayerEnter(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::OnPlayerEnter(), AreaTrigger_at_legion_teleporter::OnTrigger(), at_bring_your_orphan_to::OnTrigger(), npc_rocket_propelled_warhead::PassengerBoarded(), npc_chicken_cluck::npc_chicken_cluckAI::ReceiveEmote(), RepopAtGraveyard(), ReportedAfkBy(), Group::ResetInstances(), RewardHonor(), RewardReputation(), Satisfy(), AchievementMgr::SendAchievementEarned(), World::SendGlobalGMMessage(), WorldSession::SendListInventory(), SendLoot(), Trinity::MessageDistDeliverer::SendPacket(), WorldSession::SendSpiritResurrect(), SendTaxiNodeStatusMultiple(), WorldSession::SendTaxiStatus(), BattlegroundMgr::SendToBattleground(), Map::SendZoneMessage(), Creature::SendZoneUnderAttackMessage(), SetBattlegroundEntryPoint(), boss_shattered_executioner::SetData(), Channel::SetMode(), Channel::SetOwner(), UpdateArea(), UpdateLocalChannels(), BattlegroundEY::UpdatePointStatuses(), and UpdateZone().

◆ GetTeamId()

TeamId Player::GetTeamId ( ) const
inline

Definition at line 1819 of file Player.h.

References ALLIANCE, TEAM_ALLIANCE, and TEAM_HORDE.

Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup(), BattlegroundIC::AddPlayer(), Battlefield::AskToLeaveQueue(), BattlegroundSA::CaptureGraveyard(), BattlegroundSA::CheckAchievementCriteriaMeet(), MapInstanced::CreateInstanceForPlayer(), BattlegroundIC::DestroyGate(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundIC::EventPlayerClickedOnFlag(), Battlefield::GetClosestGraveyard(), BattlegroundIC::GetClosestGraveyard(), BattlegroundSA::GetClosestGraveyard(), BattlegroundIC::HandleAreaTrigger(), WorldSession::HandleGrantLevel(), WorldSession::HandleInspectOpcode(), BattlegroundIC::HandleKillPlayer(), BfCapturePoint::HandlePlayerEnter(), OPvPCapturePoint::HandlePlayerEnter(), Battlefield::HandlePlayerEnterZone(), OutdoorPvP::HandlePlayerEnterZone(), BfCapturePoint::HandlePlayerLeave(), OPvPCapturePoint::HandlePlayerLeave(), Battlefield::HandlePlayerLeaveZone(), OutdoorPvP::HandlePlayerLeaveZone(), BattlegroundIC::HandlePlayerResurrect(), BattlefieldWG::HandlePromotion(), spell_item_ultrasafe_transporter::HandleScript(), spell_item_dimensional_ripper_area52::HandleScript(), Battlefield::HasPlayer(), OutdoorPvP::HasPlayer(), Battlefield::InvitePlayerToQueue(), Battlefield::InvitePlayerToWar(), SpellArea::IsFitToRequirements(), BfCapturePoint::IsInsideObjective(), OPvPCapturePoint::IsInsideObjective(), BattlegroundIC::IsSpellAllowed(), AchievementCriteriaData::Meets(), npc_guardian_pavilion::MoveInLineOfSight(), BattlefieldWG::OnCreatureCreate(), npc_wg_spirit_guide::OnGossipHello(), npc_wg_demolisher_engineer::OnGossipSelect(), npc_wg_spirit_guide::OnGossipSelect(), BattlefieldWG::OnPlayerJoinWar(), Battlefield::PlayerAcceptInviteToQueue(), Battlefield::PlayerAcceptInviteToWar(), RewardReputation(), BattlegroundSA::TeleportToEntrancePosition(), BattlegroundSA::TitanRelicActivated(), and OPvPCapturePoint::Update().

◆ GetTeleportDest()

WorldLocation & Player::GetTeleportDest ( )
inline

◆ GetTeleportOptions()

uint32 Player::GetTeleportOptions ( ) const
inline

Definition at line 1805 of file Player.h.

Referenced by WorldSession::HandleMoveWorldportAck().

◆ GetTemporaryUnsummonedPetNumber()

uint32 Player::GetTemporaryUnsummonedPetNumber ( ) const
inline

Definition at line 2112 of file Player.h.

Referenced by Pet::SavePetToDB().

◆ GetTotalBaseModValue()

float Player::GetTotalBaseModValue ( BaseModGroup  modGroup) const

◆ GetTotalPlayedTime()

uint32 Player::GetTotalPlayedTime ( ) const
inline

◆ GetTradeData()

◆ GetTrader()

Player * Player::GetTrader ( ) const

Definition at line 23167 of file Player.cpp.

References TradeData::GetTrader(), and m_trade.

Referenced by WorldSession::moveItems().

◆ GetUseableItemByPos()

◆ GetUsedTalentCount()

uint32 Player::GetUsedTalentCount ( ) const
inline

Definition at line 1472 of file Player.h.

Referenced by AddSpell(), InitTalentForLevel(), RemoveSpell(), and ResetTalents().

◆ GetViewpoint()

◆ GetWeaponForAttack()

◆ GetWeaponProficiency()

uint32 Player::GetWeaponProficiency ( ) const
inline

Definition at line 1180 of file Player.h.

Referenced by Spell::EffectProficiency().

◆ GetXP()

uint32 Player::GetXP ( ) const
inline

◆ GetXPForNextLevel()

uint32 Player::GetXPForNextLevel ( ) const
inline

◆ GetXPRestBonus()

uint32 Player::GetXPRestBonus ( uint32  xp)

◆ GetZoneIdFromDB()

◆ GiveLevel()

void Player::GiveLevel ( uint8  level)
Todo:
find some better solution
Todo:
Poor design of mail system

Definition at line 2437 of file Player.cpp.

References _ApplyAllLevelScaleItemMods(), ACHIEVEMENT_CRITERIA_TYPE_REACH_LEVEL, PlayerClassLevelInfo::basehealth, PlayerClassLevelInfo::basemana, CharacterDatabase, CONFIG_ALWAYS_MAXSKILL, CONFIG_MAX_RECRUIT_A_FRIEND_BONUS_PLAYER_LEVEL, Unit::GetClass(), Unit::GetCreateHealth(), Unit::GetCreateMana(), Unit::GetCreateStat(), GetGuild(), Unit::GetLevel(), GetPet(), Unit::GetRace(), Unit::GetRaceMask(), GetSession(), GUILD_MEMBER_DATA_LEVEL, Object::HasByteFlag(), WorldPackets::Misc::LevelUpInfo::HealthDelta, InitGlyphsForLevel(), InitTalentForLevel(), InitTaxiNodesForLevel(), WorldPackets::Misc::LevelUpInfo::Level, m_grantableLevels, m_Played_time, MAIL_CREATURE, MAX_STATS, PLAYED_TIME_LEVEL, PLAYER_FIELD_BYTES, PLAYER_FIELD_BYTES_OFFSET_RAF_GRANTABLE_LEVEL, PLAYER_NEXT_LEVEL_XP, POWER_MANA, WorldPackets::Misc::LevelUpInfo::PowerDelta, SendDirectMessage(), MailDraft::SendMailTo(), SendQuestGiverStatusMultiple(), Object::SetByteFlag(), Unit::SetCreateHealth(), Unit::SetCreateMana(), Unit::SetCreateStat(), Unit::SetFullHealth(), Unit::SetFullPower(), Unit::SetLevel(), Object::SetUInt32Value(), sObjectMgr, sScriptMgr, STAT_STRENGTH, WorldPackets::Misc::LevelUpInfo::StatDelta, PlayerLevelInfo::stats, sWorld, UpdateAchievementCriteria(), UpdateAllStats(), UpdateSkillsForLevel(), UpdateWeaponsSkillsToMaxSkillsForLevel(), and WorldPackets::Misc::LevelUpInfo::Write().

Referenced by GiveXP(), and WorldSession::HandleAcceptGrantLevel().

◆ GiveQuestSourceItem()

◆ GiveXP()

◆ GroupEventHappens()

◆ HandleBaseModFlatValue()

void Player::HandleBaseModFlatValue ( BaseModGroup  modGroup,
float  amount,
bool  apply 
)

◆ HandleDrowning()

◆ HandleFall()

◆ HandlePassiveSpellLearn()

◆ HandleSobering()

void Player::HandleSobering ( )
protected

The player sobers by 1% every 9 seconds.

Definition at line 856 of file Player.cpp.

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

Referenced by Update().

◆ Has310Flyer()

bool Player::Has310Flyer ( bool  checkAllSpells,
uint32  excludeSpellId = 0 
)

◆ HasAchieved()

◆ HasActiveSpell()

bool Player::HasActiveSpell ( uint32  spell) const

Definition at line 3894 of file Player.cpp.

References m_spells, and PLAYERSPELL_REMOVED.

Referenced by WorldSession::HandleCastSpellOpcode().

◆ HasAtLoginFlag()

bool Player::HasAtLoginFlag ( AtLoginFlags  f) const
inline

◆ HasBeenGrantedLevelsFromRaF()

bool Player::HasBeenGrantedLevelsFromRaF ( ) const
inline

Definition at line 991 of file Player.h.

References PLAYER_EXTRA_GRANTED_LEVELS_FROM_RAF.

◆ HasCorpse()

◆ HasEnoughMoney() [1/2]

bool Player::HasEnoughMoney ( int32  amount) const
inline

Definition at line 1395 of file Player.h.

References HasEnoughMoney().

Referenced by HasEnoughMoney().

◆ HasEnoughMoney() [2/2]

◆ HasFreeBattlegroundQueueId()

◆ HasGemWithLimitCategoryEquipped()

bool Player::HasGemWithLimitCategoryEquipped ( uint32  limitCategory,
uint32  count,
uint8  except_slot = NULL_SLOT 
) const

◆ HasItemCount()

◆ HasItemFitToSpellRequirements()

◆ HasItemOrGemWithIdEquipped()

◆ HasItemTotemCategory()

◆ HasItemWithLimitCategoryEquipped()

bool Player::HasItemWithLimitCategoryEquipped ( uint32  limitCategory,
uint32  count,
uint8  except_slot = NULL_SLOT 
) const

◆ HasLevelBoosted()

bool Player::HasLevelBoosted ( ) const
inline

Definition at line 993 of file Player.h.

References PLAYER_EXTRA_LEVEL_BOOSTED.

◆ HasPendingBind()

bool Player::HasPendingBind ( ) const
inline

◆ HasPvPForcingQuest()

◆ HasQuestForGO()

◆ HasQuestForItem()

◆ HasRaceChanged()

bool Player::HasRaceChanged ( ) const
inline

Definition at line 989 of file Player.h.

References PLAYER_EXTRA_HAS_RACE_CHANGED.

◆ HasRestFlag()

bool Player::HasRestFlag ( RestFlag  restFlag) const
inline

Definition at line 1038 of file Player.h.

Referenced by Update().

◆ HasSkill()

◆ HasSpell()

bool Player::HasSpell ( uint32  spell) const
overridevirtual

Reimplemented from Unit.

Definition at line 3881 of file Player.cpp.

References m_spells, and PLAYERSPELL_REMOVED.

Referenced by AddSpell(), LootItem::AllowedForPlayer(), CanCreateExtraItems(), CanCreatePerfectItem(), CanFlyInZone(), npc_engineering_tele_trinket::npc_engineering_tele_trinketAI::CanLearn(), CanRollForItemInLFG(), CanUseItem(), Spell::EffectCastButtons(), GetExplicitDiscoverySpell(), Trinity::Helpers::Entity::GetPlayerSpecialization(), GetResurrectionSpellId(), GetSkillDiscoverySpell(), Trainer::Trainer::GetSpellState(), GetStartPosition(), learn_commandscript::HandleLearnCommand(), lookup_commandscript::HandleLookupSpellCommand(), lookup_commandscript::HandleLookupSpellIdCommand(), AuraEffect::HandleShapeshiftBoosts(), learn_commandscript::HandleUnLearnCommand(), npc_prof_alchemy::npc_prof_alchemyAI::HasAlchemySpell(), HasDiscoveredAllSpells(), HasDiscoveredAnySpell(), npc_prof_tailor::npc_prof_tailorAI::HasTailorSpell(), npc_prof_blacksmith::npc_prof_blacksmithAI::HasWeaponSub(), IsActionButtonDataValid(), Trainer::Trainer::IsTrainerValidForPlayer(), LearnQuestRewardedSpells(), LearnTalent(), boss_gloomrel::boss_gloomrelAI::OnGossipHello(), npc_prof_blacksmith::npc_prof_blacksmithAI::OnGossipHello(), npc_prof_leather::npc_prof_leatherAI::OnGossipHello(), npc_prof_tailor::npc_prof_tailorAI::OnGossipHello(), npc_prof_alchemy::npc_prof_alchemyAI::OnGossipHello(), ProcessCastaction(), RemoveSpell(), npc_prof_blacksmith::npc_prof_blacksmithAI::SendActionMenu(), SendUnlearnSpells(), SpellHistory::StartCooldown(), TeleportTo(), and PlayerAI::VerifySpellCast().

◆ HasSpellModApplied()

bool Player::HasSpellModApplied ( SpellModifier *  mod,
Spell *  spell 
)
static

Definition at line 20922 of file Player.cpp.

References Spell::m_appliedMods, and SpellModifier::ownerAura.

Referenced by ApplySpellMod().

◆ HasSummonPending()

bool Player::HasSummonPending ( ) const

Definition at line 23277 of file Player.cpp.

References GameTime::GetGameTime(), and m_summon_expire.

Referenced by Spell::CheckCast(), and SendSummonRequestFrom().

◆ HasTalent()

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

Definition at line 3888 of file Player.cpp.

References GetTalentMap(), and PLAYERSPELL_REMOVED.

Referenced by ActivateTalentGroup(), BuildPlayerTalentsInfoData(), and LearnTalent().

◆ HasTitle() [1/2]

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

Definition at line 24286 of file Player.cpp.

References HasTitle(), and CharTitlesEntry::MaskID.

◆ HasTitle() [2/2]

◆ HaveAtClient()

◆ Heartbeat()

void Player::Heartbeat ( )
overridevirtual

Reimplemented from WorldObject.

Definition at line 1255 of file Player.cpp.

References CheckOutdoorsAuraRequirements(), Unit::Heartbeat(), and SendUpdateToOutOfRangeGroupMembers().

◆ InArena()

◆ InBattleground()

◆ InBattlegroundQueue()

bool Player::InBattlegroundQueue ( bool  ignoreArena = false) const

◆ InBattlegroundQueueForBattlegroundQueueType()

bool Player::InBattlegroundQueueForBattlegroundQueueType ( BattlegroundQueueTypeId  bgQueueTypeId) const

◆ IncompleteQuest()

◆ IncreaseResetTalentsCostAndCounters()

◆ InitDataForForm()

◆ InitDisplayIds()

◆ InitGlyphsForLevel()

◆ InitPrimaryProfessions()

void Player::InitPrimaryProfessions ( )

Definition at line 22331 of file Player.cpp.

References CONFIG_MAX_PRIMARY_TRADE_SKILL, SetFreePrimaryProfessions(), and sWorld.

Referenced by Create(), and LoadFromDB().

◆ InitPvP()

void Player::InitPvP ( )

Definition at line 21634 of file Player.cpp.

References Object::HasFlag(), PLAYER_FLAGS, PLAYER_FLAGS_IN_PVP, and UpdatePvP().

Referenced by LoadFromDB().

◆ InitRunes()

◆ InitStatsForLevel()

void Player::InitStatsForLevel ( bool  reapplyMods = false)

Definition at line 2582 of file Player.cpp.

References _ApplyAllStatBonuses(), _RemoveAllStatBonuses(), AsUnderlyingType(), BASE_ATTACK, BASE_ATTACK_TIME, PlayerClassLevelInfo::basehealth, PlayerClassLevelInfo::basemana, CONFIG_MAX_PLAYER_LEVEL, DEFAULT_MAX_LEVEL, Unit::GetClass(), Unit::GetCreatePowerValue(), Unit::GetLevel(), GetMaxLevelForExpansion(), Unit::GetMaxPower(), GetPet(), Unit::GetPower(), Unit::GetRace(), GetSession(), InitDataForForm(), Unit::InitStatBuffMods(), Unit::m_createStats, MAX_ATTACK, MAX_COMBAT_RATING, MAX_POWERS, MAX_SPELL_SCHOOL, MAX_STATS, PLAYER_ALLOW_ONLY_ABILITY, PLAYER_BLOCK_PERCENTAGE, PLAYER_CRIT_PERCENTAGE, PLAYER_DODGE_PERCENTAGE, PLAYER_FIELD_BYTES2, PLAYER_FIELD_COMBAT_RATING_1, PLAYER_FIELD_MAX_LEVEL, PLAYER_FIELD_MOD_DAMAGE_DONE_NEG, PLAYER_FIELD_MOD_DAMAGE_DONE_PCT, PLAYER_FIELD_MOD_DAMAGE_DONE_POS, PLAYER_FIELD_MOD_HEALING_DONE_POS, PLAYER_FIELD_MOD_TARGET_PHYSICAL_RESISTANCE, PLAYER_FIELD_MOD_TARGET_RESISTANCE, PLAYER_FLAGS, PLAYER_FLAGS_AFK, PLAYER_FLAGS_DND, PLAYER_FLAGS_GHOST, PLAYER_FLAGS_GM, PLAYER_NEXT_LEVEL_XP, PLAYER_NO_REAGENT_COST_1, PLAYER_OFFHAND_CRIT_PERCENTAGE, PLAYER_PARRY_PERCENTAGE, PLAYER_RANGED_CRIT_PERCENTAGE, PLAYER_SHIELD_BLOCK, PLAYER_SPELL_CRIT_PERCENTAGE1, POWER_ENERGY, POWER_FOCUS, POWER_HAPPINESS, POWER_MANA, POWER_RAGE, POWER_RUNIC_POWER, Object::RemoveFlag(), Unit::RemovePvpFlag(), Unit::RemoveUnitFlag(), Unit::RemoveVisFlag(), Unit::SetArmor(), Unit::SetAttackPower(), Unit::SetAttackPowerModNeg(), Unit::SetAttackPowerModPos(), Unit::SetAttackPowerMultiplier(), Unit::SetCreateHealth(), Unit::SetCreateMana(), Unit::SetCreateStat(), Object::SetFloatValue(), Unit::SetFullHealth(), Unit::SetFullPower(), Object::SetInt32Value(), Unit::SetMaxHealth(), Unit::SetMaxPower(), Unit::SetModCastingSpeed(), Unit::SetMountDisplayId(), SetObjectScale(), Unit::SetPower(), Unit::SetRangedAttackPower(), Unit::SetRangedAttackPowerModNeg(), Unit::SetRangedAttackPowerModPos(), Unit::SetRangedAttackPowerMultiplier(), Unit::SetResistance(), Unit::SetStat(), Object::SetUInt32Value(), Unit::SetUnitFlag(), Unit::SetUnitFlag2(), sObjectMgr, SPELL_SCHOOL_HOLY, SPELL_SCHOOL_NORMAL, STAT_AGILITY, STAT_STRENGTH, PlayerLevelInfo::stats, sWorld, UNIT_BYTE2_FLAG_FFA_PVP, UNIT_BYTE2_FLAG_SANCTUARY, UNIT_FIELD_AURASTATE, UNIT_FIELD_BASEATTACKTIME, UNIT_FIELD_MAXDAMAGE, UNIT_FIELD_MAXOFFHANDDAMAGE, UNIT_FIELD_MAXRANGEDDAMAGE, UNIT_FIELD_MINDAMAGE, UNIT_FIELD_MINOFFHANDDAMAGE, UNIT_FIELD_MINRANGEDDAMAGE, UNIT_FIELD_POWER_COST_MODIFIER, UNIT_FIELD_POWER_COST_MULTIPLIER, UNIT_FIELD_RESISTANCEBUFFMODSNEGATIVE, UNIT_FIELD_RESISTANCEBUFFMODSPOSITIVE, UNIT_FLAG2_REGENERATE_POWER, UNIT_FLAG_CONFUSED, 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_ON_TAXI, UNIT_FLAG_PACIFIED, UNIT_FLAG_PET_IN_COMBAT, UNIT_FLAG_PLAYER_CONTROLLED, UNIT_FLAG_REMOVE_CLIENT_CONTROL, UNIT_FLAG_SILENCED, UNIT_FLAG_SKINNABLE, UNIT_FLAG_STUNNED, UNIT_FLAG_UNINTERACTIBLE, UNIT_VIS_FLAGS_ALL, and UpdateSkillsForLevel().

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

◆ InitTalentForLevel()

◆ InitTaxiNodesForLevel()

◆ inRandomLfgDungeon()

bool Player::inRandomLfgDungeon ( ) const

◆ isAcceptWhispers()

bool Player::isAcceptWhispers ( ) const
inline

◆ IsActionButtonDataValid()

◆ IsActiveQuest()

bool Player::IsActiveQuest ( uint32  quest_id) const

◆ IsAffectedBySpellmod()

◆ isAFK()

◆ isAllowedToLoot()

◆ IsAlwaysDetectableFor()

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

◆ IsAtGroupRewardDistance()

◆ IsAtRecruitAFriendDistance()

bool Player::IsAtRecruitAFriendDistance ( WorldObject const *  pOther) const

◆ IsBagPos()

◆ IsBankPos() [1/2]

◆ IsBankPos() [2/2]

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

◆ IsBaseRuneSlotsOnCooldown()

bool Player::IsBaseRuneSlotsOnCooldown ( RuneType  runeType) const

Definition at line 24495 of file Player.cpp.

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

◆ IsBeingTeleported()

◆ IsBeingTeleportedFar()

bool Player::IsBeingTeleportedFar ( ) const
inline

◆ IsBeingTeleportedNear()

bool Player::IsBeingTeleportedNear ( ) const
inline

Definition at line 1807 of file Player.h.

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

◆ IsCanDelayTeleport()

bool Player::IsCanDelayTeleport ( ) const
inlineprivate

Definition at line 2515 of file Player.h.

Referenced by TeleportTo().

◆ IsDailyQuestDone()

bool Player::IsDailyQuestDone ( uint32  quest_id)

◆ IsDeserter()

bool Player::IsDeserter ( ) const
inline

◆ IsDeveloper()

bool Player::IsDeveloper ( ) const
inline

◆ isDND()

◆ IsEquipmentPos() [1/2]

◆ IsEquipmentPos() [2/2]

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

◆ IsGameMaster()

bool Player::IsGameMaster ( ) const
inline

Definition at line 976 of file Player.h.

References PLAYER_EXTRA_GM_ON.

Referenced by Group::_homebindIfInstance(), Unit::Attack(), BindToInstance(), GameObject::BuildValuesUpdate(), Unit::BuildValuesUpdate(), BuyItemFromVendorSlot(), CombatManager::CanBeginCombat(), InstanceMap::CannotEnter(), Spell::CheckCast(), CheckInstanceValidity(), SpellInfo::CheckTarget(), instance_violet_hold::instance_violet_hold_InstanceMapScript::CheckWipe(), AchievementMgr::CompletedAchievement(), GetPhaseMaskForSpawn(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleChatMessage(), HandleFall(), WorldSession::HandleGroupInviteOpcode(), group_commandscript::HandleGroupListCommand(), mmaps_commandscript::HandleMmapPathCommand(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLogin(), WorldSession::HandleSendMail(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleCommand(), WorldObject::IsValidAssistTarget(), WorldObject::IsValidAttackTarget(), MailSender::MailSender(), boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::MoveInLineOfSight(), npc_mageguard_dalaran::MoveInLineOfSight(), npc_reliquary_combat_trigger::MoveInLineOfSight(), npc_barnes::OnGossipHello(), npc_jaina_proudmoore::npc_jaina_proudmooreAI::OnGossipHello(), npc_thrall::npc_thrallAI::OnGossipHello(), npc_chromie_start::npc_chromie_startAI::OnGossipHello(), at_ancient_leaf::OnTrigger(), at_hor_intro_start::OnTrigger(), at_hor_waves_restarter::OnTrigger(), at_hor_impenetrable_door::OnTrigger(), at_hor_shadow_throne::OnTrigger(), at_hor_uther_quel_delar_start::OnTrigger(), at_tyrannus_event_starter::OnTrigger(), at_kelthuzad_center::OnTrigger(), at_skadi_gaunlet::OnTrigger(), at_trigger_the_beast_movement::OnTrigger(), at_the_beast_room::OnTrigger(), Trinity::PlayerAtMinimumRangeAway::operator()(), InstanceMap::PermBindAllPlayers(), MapManager::PlayerCannotEnter(), Unit::ProcessTerrainStatusUpdate(), AchievementMgr::ResetAchievementCriteria(), Satisfy(), WorldSession::SendListInventory(), Spell::SendLoot(), MailDraft::SendMailTo(), TeleportTo(), at_icc_nerubar_broodkeeper::TryHandleOnce(), instance_stratholme::instance_stratholme_InstanceMapScript::Update(), AchievementMgr::UpdateAchievementCriteria(), generic_vehicleAI_toc5::generic_vehicleAI_toc5AI::UpdateAI(), boss_warrior_toc5::boss_warrior_toc5AI::UpdateAI(), boss_hunter_toc5::boss_hunter_toc5AI::UpdateAI(), UpdateHomebindTime(), UpdatePvPState(), and Whisper().

◆ IsGameMasterAcceptingWhispers()

bool Player::IsGameMasterAcceptingWhispers ( ) const
inline

Definition at line 977 of file Player.h.

Referenced by WorldSession::HandleChatMessage().

◆ isGMChat()

bool Player::isGMChat ( ) const
inline

Definition at line 980 of file Player.h.

References PLAYER_EXTRA_GM_CHAT.

Referenced by GetChatTag().

◆ isGMVisible()

bool Player::isGMVisible ( ) const
inline

◆ IsGroupVisibleFor()

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

◆ IsHasDelayedTeleport()

bool Player::IsHasDelayedTeleport ( ) const
inlineprivate

Definition at line 2517 of file Player.h.

Referenced by TeleportTo(), and Update().

◆ isHonorOrXPTarget()

◆ IsImmunedToSpellEffect()

bool Player::IsImmunedToSpellEffect ( SpellInfo const *  spellInfo,
SpellEffectInfo const &  spellEffectInfo,
WorldObject const *  caster,
bool  requireImmunityPurgesEffectAttribute = false 
) const
overridevirtual

◆ IsImmuneToEnvironmentalDamage()

bool Player::IsImmuneToEnvironmentalDamage ( ) const

Definition at line 632 of file Player.cpp.

References Unit::isTargetableForAttack().

Referenced by EnvironmentalDamage().

◆ IsInAreaTriggerRadius()

◆ IsInSameGroupWith()

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

Definition at line 2322 of file Player.cpp.

References GetGroup(), and Group::SameSubGroup().

Referenced by IsGroupVisibleFor(), and Unit::IsInPartyWith().

◆ IsInSameRaidWith()

◆ IsInstanceLoginGameMasterException()

bool Player::IsInstanceLoginGameMasterException ( ) const
private

◆ IsInventoryPos() [1/2]

◆ IsInventoryPos() [2/2]

◆ IsInvitedForBattlegroundInstance()

bool Player::IsInvitedForBattlegroundInstance ( uint32  instanceId) const

◆ IsInvitedForBattlegroundQueueType()

bool Player::IsInvitedForBattlegroundQueueType ( BattlegroundQueueTypeId  bgQueueTypeId) const

◆ IsInWhisperWhiteList()

bool Player::IsInWhisperWhiteList ( ObjectGuid  guid)

Definition at line 26170 of file Player.cpp.

References WhisperList.

Referenced by WorldSession::HandleChatMessage().

◆ IsLoading()

bool Player::IsLoading ( ) const
overridevirtual

◆ IsMaxLevel()

◆ IsMirrorTimerActive()

bool Player::IsMirrorTimerActive ( MirrorTimerType  type) const

Definition at line 732 of file Player.cpp.

References getMaxTimer(), and m_MirrorTimer.

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

◆ IsNeverVisible()

bool Player::IsNeverVisible ( bool  allowServersideObjects) const
overridevirtual

Reimplemented from WorldObject.

Definition at line 22070 of file Player.cpp.

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

◆ IsOutdoorPvPActive()

◆ IsPetNeedBeTemporaryUnsummoned()

bool Player::IsPetNeedBeTemporaryUnsummoned ( ) const

◆ IsQuestRewarded()

bool Player::IsQuestRewarded ( uint32  quest_id) const

◆ IsResurrectRequested()

bool Player::IsResurrectRequested ( ) const
inline

◆ IsResurrectRequestedBy()

bool Player::IsResurrectRequestedBy ( ObjectGuid const &  guid) const
inline

Definition at line 1541 of file Player.h.

◆ IsSpellFitByClassAndRace()

bool Player::IsSpellFitByClassAndRace ( uint32  spell_id) const

◆ isTaxiCheater()

bool Player::isTaxiCheater ( ) const
inline

◆ isTotalImmune()

bool Player::isTotalImmune ( ) const

◆ IsTwoHandUsed()

◆ IsUseEquipedWeapon()

bool Player::IsUseEquipedWeapon ( bool  mainhand) const

◆ isUsingLfg()

bool Player::isUsingLfg ( ) const

◆ IsUsingTwoHandedWeaponInOneHand()

bool Player::IsUsingTwoHandedWeaponInOneHand ( ) const

◆ IsValidGender()

static bool Player::IsValidGender ( uint8  Gender)
inlinestatic

Definition at line 1363 of file Player.h.

References GENDER_FEMALE.

Referenced by BuildEnumData(), Create(), ConditionMgr::isConditionTypeValid(), and LoadFromDB().

◆ IsValidPos() [1/2]

◆ IsValidPos() [2/2]

◆ IsVisibleGloballyFor()

◆ ItemAddedQuestCheck()

◆ ItemRemovedQuestCheck()

◆ JoinedChannel()

void Player::JoinedChannel ( Channel *  c)

Definition at line 4856 of file Player.cpp.

References m_channels.

Referenced by Channel::JoinChannel().

◆ KillCreditGO()

◆ KilledMonster()

◆ KilledMonsterCredit()

◆ KilledPlayerCredit()

◆ KilledPlayerCreditForQuest()

◆ KillPlayer()

◆ LearnCustomSpells()

◆ LearnDefaultSkill()

◆ LearnDefaultSkills()

◆ LearnPetTalent()

◆ LearnQuestRewardedSpells() [1/2]

◆ LearnQuestRewardedSpells() [2/2]

◆ LearnSkillRewardedSpells()

◆ LearnSpell()

◆ LearnTalent()

◆ LeaveAllArenaTeams()

void Player::LeaveAllArenaTeams ( ObjectGuid  guid)
static

◆ LeaveBattleground()

◆ LeaveLFGChannel()

void Player::LeaveLFGChannel ( )

Definition at line 4953 of file Player.cpp.

References m_channels.

◆ LeftChannel()

void Player::LeftChannel ( Channel *  c)

Definition at line 4861 of file Player.cpp.

References m_channels.

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

◆ LoadActions()

void Player::LoadActions ( PreparedQueryResult  result)

Definition at line 25833 of file Player.cpp.

References _LoadActions(), and SendActionButtons().

◆ LoadCorpse()

◆ LoadFromDB()

bool Player::LoadFromDB ( ObjectGuid  guid,
CharacterDatabaseQueryHolder const &  holder 
)

Definition at line 16886 of file Player.cpp.

References Object::_Create(), _LoadActions(), _LoadArenaTeamInfo(), _LoadAuras(), _LoadBGData(), _LoadBoundInstances(), _LoadDailyQuestStatus(), _LoadDeclinedNames(), _LoadEquipmentSets(), _LoadGlyphAuras(), _LoadGlyphs(), _LoadGroup(), _LoadHomeBind(), Object::_LoadIntoDataField(), _LoadInventory(), _LoadMail(), _LoadMonthlyQuestStatus(), _LoadPetStable(), _LoadQuestStatus(), _LoadQuestStatusRewarded(), _LoadRandomBGStatus(), _LoadSeasonalQuestStatus(), _LoadSkills(), _LoadSpells(), _LoadTalents(), _LoadWeeklyQuestStatus(), AddBattlegroundQueueId(), Transport::AddPassenger(), Battleground::AddPlayer(), PlayerTaxi::AddTaxiDestination(), ASSERT, AT_LOGIN_RENAME, BATTLEGROUND_TYPE_NONE, BGData::bgInstanceID, BattlegroundMgr::BGQueueTypeId(), BGData::bgTypeID, Transport::CalculatePassengerPosition(), Map::CANNOT_ENTER_DIFFICULTY_UNAVAILABLE, Map::CANNOT_ENTER_INSTANCE_BIND_MISMATCH, Map::CANNOT_ENTER_MAX_PLAYERS, Map::CANNOT_ENTER_TOO_MANY_INSTANCES, Map::CANNOT_ENTER_ZONE_IN_COMBAT, CHAR_NAME_SUCCESS, CHAR_UPD_ADD_AT_LOGIN_FLAG, CharacterDatabase, AchievementMgr::CheckAllAchievementCriteria(), CheckInstanceValidity(), CheckLoadedDungeonDifficultyID(), CheckLoadedRaidDifficultyID(), ObjectMgr::CheckPlayerName(), Unit::ClearInCombat(), PlayerTaxi::ClearTaxiDestinations(), CONFIG_GM_CHAT, CONFIG_GM_LOGIN_STATE, CONFIG_GM_VISIBLE_STATE, CONFIG_GM_WHISPERING_TO, TaxiNodesEntry::ContinentID, CORPSE, DEAD, DEATH_EXPIRE_STEP, ObjectGuid::Empty, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Battleground::EventPlayerLoggedIn(), MapEntry::Expansion(), GetActiveTalentGroup(), GetArenaTeamId(), Battleground::GetArenaType(), GetBattlegroundEntryPoint(), BattlegroundMap::GetBG(), Battleground::GetBgMap(), Battleground::GetBracketId(), Unit::GetClass(), ObjectGuid::GetCounter(), Field::GetCString(), Map::GetDifficultyID(), GetDrunkValue(), GetFaceId(), GetFacialStyle(), Field::GetFloat(), GameTime::GetGameTime(), Object::GetGUID(), GetHairColorId(), GetHairStyleId(), Map::GetId(), Battleground::GetInstanceID(), GetInstanceSave(), WorldLocation::GetMapId(), Map::GetMapName(), WorldObject::GetName(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), SQLQueryHolderBase::GetPreparedResult(), Unit::GetRace(), GetRestBonus(), GetSession(), GetSkinId(), Unit::GetSpellHistory(), Battleground::GetStatus(), Field::GetString(), GetTalentGroupsCount(), PlayerTaxi::GetTaxiSource(), GetTeam(), Battleground::GetTypeID(), Field::GetUInt16(), Field::GetUInt32(), Object::GetUInt32Value(), Field::GetUInt8(), HasAtLoginFlag(), Object::HasFlag(), BGData::HasTaxiPath(), HasTitle(), InitDisplayIds(), InitGlyphsForLevel(), InitPrimaryProfessions(), InitPvP(), InitRunes(), InitStatsForLevel(), InitTalentForLevel(), InitTaxiNodesForLevel(), Unit::IsAlive(), MapEntry::IsBattlegroundOrArena(), Map::IsDungeon(), IsInstanceLoginGameMasterException(), Battleground::IsPlayerInBattleground(), Position::IsPositionValid(), IsValidGender(), Trinity::IsValidMapCoord(), KNOWN_TITLES_SIZE, LANG_INSTANCE_BIND_MISMATCH, LearnCustomSpells(), LearnDefaultSkills(), AchievementMgr::LoadFromDB(), SpellHistory::LoadFromDB(), ReputationMgr::LoadFromDB(), PlayerTaxi::LoadTaxiDestinationsFromString(), PlayerTaxi::LoadTaxiMask(), m_achievementMgr, m_atLoginFlags, m_bgData, m_cinematic, m_deathExpireTime, Unit::m_deathState, m_fishingSteps, m_grantableLevels, m_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, m_InstanceValid, m_items, m_lastHonorUpdateTime, WorldObject::m_movementInfo, WorldObject::m_name, m_nextSave, m_Played_time, m_reputationMgr, m_rest_bonus, m_social, m_taxi, PlayerInfo::mapId, MAX_ARENA_SLOT, MAX_DEATH_COUNT, MAX_MONEY_AMOUNT, MAX_POWERS, MAX_TALENT_GROUP, MAX_TALENT_GROUPS, MIN_TALENT_GROUPS, outDebugValues(), PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER__FIELD_KNOWN_TITLES, PLAYER_AMMO_ID, PLAYER_BYTES_3, PLAYER_BYTES_3_OFFSET_INEBRIATION, PLAYER_CHOSEN_TITLE, PLAYER_DUEL_ARBITER, PLAYER_DUEL_TEAM, PLAYER_EXPLORED_ZONES_1, PLAYER_EXPLORED_ZONES_SIZE, PLAYER_EXTRA_ACCEPT_WHISPERS, PLAYER_EXTRA_GM_CHAT, PLAYER_EXTRA_GM_INVISIBLE, PLAYER_EXTRA_GM_ON, PLAYER_FARSIGHT, PLAYER_FIELD_BYTES, PLAYER_FIELD_BYTES_OFFSET_ACTION_BAR_TOGGLES, PLAYER_FIELD_BYTES_OFFSET_RAF_GRANTABLE_LEVEL, PLAYER_FIELD_INV_SLOT_HEAD, PLAYER_FIELD_KILLS, PLAYER_FIELD_KILLS_OFFSET_TODAY_KILLS, PLAYER_FIELD_KILLS_OFFSET_YESTERDAY_KILLS, PLAYER_FIELD_KNOWN_CURRENCIES, PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, PLAYER_FIELD_TODAY_CONTRIBUTION, PLAYER_FIELD_WATCHED_FACTION_INDEX, PLAYER_FIELD_YESTERDAY_CONTRIBUTION, PLAYER_FLAGS, PLAYER_FLAGS_GHOST, PLAYER_LOGIN_QUERY_LOAD_ACHIEVEMENTS, PLAYER_LOGIN_QUERY_LOAD_ACTIONS, PLAYER_LOGIN_QUERY_LOAD_ARENA_INFO, PLAYER_LOGIN_QUERY_LOAD_AURAS, PLAYER_LOGIN_QUERY_LOAD_BANNED, PLAYER_LOGIN_QUERY_LOAD_BG_DATA, PLAYER_LOGIN_QUERY_LOAD_BOUND_INSTANCES, PLAYER_LOGIN_QUERY_LOAD_CRITERIA_PROGRESS, 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_INVENTORY, PLAYER_LOGIN_QUERY_LOAD_MAIL_ITEMS, PLAYER_LOGIN_QUERY_LOAD_MAILS, PLAYER_LOGIN_QUERY_LOAD_MONTHLY_QUEST_STATUS, PLAYER_LOGIN_QUERY_LOAD_PET_SLOTS, 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_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_WEEKLY_QUEST_STATUS, PLAYER_NEXT_LEVEL_XP, PLAYER_TRACK_CREATURES, PLAYER_TRACK_RESOURCES, MovementInfo::TransportInfo::pos, TaxiNodesEntry::Pos, PlayerInfo::positionX, PlayerInfo::positionY, PlayerInfo::positionZ, ChatHandler::PSendSysMessage(), 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(), Unit::RemoveAllAurasOnDeath(), Unit::RemoveAllAurasRequiringDeadTarget(), Battleground::RemovePlayerAtLeave(), Unit::RemoveUnitFlag2(), MovementInfo::TransportInfo::Reset(), sArenaTeamMgr, SaveRecallPosition(), sBattlegroundMgr, sCharacterCache, SendTransferAborted(), SetAcceptWhispers(), SetActiveTalentGroup(), SetArenaPoints(), SetArenaTeamInfoField(), SetBankBagSlotCount(), Object::SetByteValue(), Unit::SetCanModifyStats(), Unit::SetChannelObjectGuid(), Unit::SetChannelSpellId(), Unit::SetClass(), Unit::SetCreatorGUID(), SetDrunkValue(), SetDungeonDifficultyID(), Object::SetDynamicFlag(), SetFaceId(), SetFacialStyle(), SetFactionForRace(), SetFallInformation(), SetGameMaster(), Unit::SetGender(), SetGMChat(), SetGMVisible(), Object::SetGuidValue(), SetHairColorId(), SetHairStyleId(), Unit::SetHealth(), SetHonorPoints(), Unit::SetHoverHeight(), Object::SetInt32Value(), SetInviteForBattlegroundQueueType(), Unit::SetLevel(), SetMap(), SetMoney(), SetNativeGender(), SetObjectScale(), Unit::SetOwnerGUID(), WorldSession::SetPlayer(), Unit::SetPower(), Unit::SetRace(), SetRaidDifficultyID(), SetRestBonus(), SetRestState(), SetSkinId(), SetTalentGroupsCount(), SetTalentResetCost(), SetTalentResetTime(), PreparedStatementBase::setUInt16(), Object::SetUInt16Value(), PreparedStatementBase::setUInt32(), Object::SetUInt32Value(), Object::SetUInt64Value(), SetVisibleItemSlot(), SetXP(), sInstanceSaveMgr, sMapMgr, sMapStore, sObjectMgr, sSocialMgr, STATUS_WAIT_LEAVE, sTaxiNodesStore, sWorld, AreaTriggerTeleport::target_mapId, AreaTriggerTeleport::target_X, AreaTriggerTeleport::target_Y, AreaTriggerTeleport::target_Z, BGData::taxiPath, TC_LOG_DEBUG, TC_LOG_ERROR, TC_LOG_WARN, Map::ToBattlegroundMap(), ObjectGuid::ToString(), Position::ToString(), TRANSFER_ABORT_DIFFICULTY, TRANSFER_ABORT_MAX_PLAYERS, TRANSFER_ABORT_TOO_MANY_INSTANCES, TRANSFER_ABORT_ZONE_IN_COMBAT, MovementInfo::transport, UNIT_DYNFLAG_REFER_A_FRIEND, UNIT_FIELD_CHARM, UNIT_FIELD_CHARMEDBY, UNIT_FIELD_SUMMON, UNIT_FLAG2_FORCE_MOVEMENT, UpdateAllStats(), Unit::UpdateDisplayPower(), UpdateHonorFields(), UpdateItemDuration(), WorldObject::UpdatePositionData(), UpdateSkillsForLevel(), urand(), ValidateAppearance(), DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.

Referenced by WorldSession::HandlePlayerLogin().

◆ LoadPet()

void Player::LoadPet ( )

Definition at line 18194 of file Player.cpp.

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

Referenced by WorldSession::HandlePlayerLogin().

◆ LoadPositionFromDB()

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

◆ ModifyArenaPoints()

void Player::ModifyArenaPoints ( int32  value,
CharacterDatabaseTransaction  trans = CharacterDatabaseTransaction(nullptr) 
)

◆ ModifyHonorPoints()

◆ ModifyMoney()

◆ ModifySkillBonus()

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

◆ MoneyChanged()

◆ MoveItemFromInventory()

◆ MoveItemToInventory()

◆ OCTRegenHPPerSpirit()

◆ OCTRegenMPPerSpirit()

float Player::OCTRegenMPPerSpirit ( ) const

◆ OfflineResurrect()

◆ OnGossipSelect()

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

Definition at line 14088 of file Player.cpp.

References BATTLEGROUND_TYPE_NONE, GossipMenuItem::BoxMoney, BUY_ERR_NOT_ENOUGHT_MONEY, WorldObject::CastSpell(), CONFIG_MIN_DUALSPEC_LEVEL, Object::GetEntry(), PlayerMenu::GetGossipMenu(), Object::GetGUID(), Object::GetGUID(), GossipMenu::GetItem(), GossipMenu::GetItemData(), Unit::GetLevel(), GossipMenu::GetMenuId(), WorldObject::GetName(), GetNextResetTalentsCost(), GetSession(), GetTalentGroupsCount(), Object::GetTypeId(), GOSSIP_OPTION_ARMORER, GOSSIP_OPTION_AUCTIONEER, GOSSIP_OPTION_BANKER, GOSSIP_OPTION_BATTLEFIELD, GOSSIP_OPTION_DUALSPEC_INFO, 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_UNLEARNPETTALENTS, GOSSIP_OPTION_UNLEARNTALENTS, GOSSIP_OPTION_VENDOR, GossipMenuItemData::GossipActionMenuId, GossipMenuItemData::GossipActionPoi, HasEnoughMoney(), Unit::isDead(), ModifyMoney(), GossipMenuItem::OptionType, PlayerTalkClass, PrepareGossipMenu(), PrepareQuestMenu(), ResetPetTalents(), sBattlegroundMgr, WorldSession::SendAuctionHello(), SendBuyError(), PlayerMenu::SendCloseGossip(), WorldSession::SendListInventory(), WorldSession::SendPetitionShowList(), PlayerMenu::SendPointOfInterest(), SendPreparedGossip(), SendPreparedQuest(), SendRespecWipeConfirm(), WorldSession::SendShowBank(), WorldSession::SendStablePet(), WorldSession::SendTabardVendorActivate(), WorldSession::SendTaxiMenu(), WorldSession::SendTrainerList(), SetBindPoint(), sOutdoorPvPMgr, sWorld, TC_LOG_ERROR, Object::ToCreature(), ObjectGuid::ToString(), Position::ToString(), and TYPEID_GAMEOBJECT.

Referenced by WorldSession::HandleGossipSelectOptionOpcode().

◆ outDebugValues()

◆ PetSpellInitialize()

◆ PossessSpellInitialize()

◆ PrepareGossipMenu()

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

Find localizations from database.

Find localizations from database.

Definition at line 13887 of file Player.cpp.

References GossipMenu::AddGossipMenuItemData(), GossipMenu::AddMenuItem(), Creature::CanResetTalents(), CLASS_HUNTER, PlayerMenu::ClearMenus(), CONFIG_MIN_DUALSPEC_LEVEL, DEFAULT_LOCALE, VendorItemData::Empty(), GAMEOBJECT_TYPE_GOOBER, GAMEOBJECT_TYPE_QUESTGIVER, Unit::GetClass(), GetDefaultGossipMenuForSource(), Unit::GetGender(), PlayerMenu::GetGossipMenu(), GameObject::GetGoType(), Object::GetGUID(), Object::GetGUID(), Unit::GetLevel(), ObjectMgr::GetLocaleString(), GossipMenu::GetMenuId(), WorldObject::GetName(), GetPet(), GetSession(), WorldSession::GetSessionDbLocaleIndex(), GetTalentGroupsCount(), BroadcastTextEntry::GetText(), Object::GetTypeId(), Object::GetUInt32Value(), GOSSIP_OPTION_ARMORER, GOSSIP_OPTION_AUCTIONEER, GOSSIP_OPTION_BANKER, GOSSIP_OPTION_BATTLEFIELD, GOSSIP_OPTION_DUALSPEC_INFO, 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_UNLEARNPETTALENTS, GOSSIP_OPTION_UNLEARNTALENTS, GOSSIP_OPTION_VENDOR, HUNTER_PET, Unit::isDead(), Trainer::Trainer::IsTrainerValidForPlayer(), m_spells, PlayerTalkClass, PrepareQuestMenu(), sConditionMgr, GossipMenu::SetMenuId(), sObjectMgr, sOutdoorPvPMgr, sWorld, TC_LOG_ERROR, Object::ToCreature(), Object::ToGameObject(), Position::ToString(), TYPEID_GAMEOBJECT, TYPEID_UNIT, UNIT_NPC_FLAG_QUESTGIVER, and UNIT_NPC_FLAGS.

Referenced by WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleQuestgiverHelloOpcode(), npc_andorov::OnGossipHello(), npc_disciple_of_naralex::OnGossipHello(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::OnGossipHello(), npc_sinclari_vh::OnGossipHello(), go_apexis_relic::go_apexis_relicAI::OnGossipHello(), OnGossipSelect(), Spell::SendLoot(), and GameObject::Use().

◆ PrepareQuestMenu()

void Player::PrepareQuestMenu ( ObjectGuid  guid)

◆ ProcessDelayedOperations()

◆ ProcessTerrainStatusUpdate()

◆ QuickEquipItem()

◆ RecalculateRating()

void Player::RecalculateRating ( CombatRating  cr)
inline

Definition at line 1660 of file Player.h.

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

◆ Recall()

void Player::Recall ( )
inline

Definition at line 2066 of file Player.h.

Referenced by misc_commandscript::HandleRecallCommand().

◆ RefundItem()

◆ Regenerate()

◆ RegenerateAll()

◆ RegenerateHealth()

◆ RemoveActionButton()

◆ RemoveActiveQuest()

void Player::RemoveActiveQuest ( uint32  questId,
bool  update = true 
)

◆ RemoveAmmo()

◆ RemoveArenaEnchantments()

◆ RemoveArenaSpellCooldowns()

void Player::RemoveArenaSpellCooldowns ( bool  removeActivePetCooldowns = false)

◆ RemoveAtLoginFlag()

◆ RemoveBattlegroundQueueId()

◆ RemovedInsignia()

◆ RemoveEnchantmentDurations()

void Player::RemoveEnchantmentDurations ( Item *  item)

Definition at line 13330 of file Player.cpp.

References m_enchantDuration, and Item::SetEnchantmentDuration().

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

◆ RemoveEnchantmentDurationsReferences()

void Player::RemoveEnchantmentDurationsReferences ( Item *  item)

Definition at line 13345 of file Player.cpp.

References m_enchantDuration.

Referenced by _SaveInventory().

◆ RemoveFromBattlegroundOrBattlefieldRaid()

void Player::RemoveFromBattlegroundOrBattlefieldRaid ( )

◆ RemoveFromGroup() [1/2]

void Player::RemoveFromGroup ( Group *  group,
ObjectGuid  guid,
RemoveMethod  method = GROUP_REMOVEMETHOD_DEFAULT,
ObjectGuid  kicker = ObjectGuid::Empty,
char const *  reason = nullptr 
)
static

◆ RemoveFromGroup() [2/2]

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

Definition at line 1598 of file Player.h.

References Object::GetGUID(), and RemoveFromGroup().

Referenced by RemoveFromGroup().

◆ RemoveFromWhisperWhiteList()

void Player::RemoveFromWhisperWhiteList ( ObjectGuid  guid)
inline

Definition at line 2239 of file Player.h.

Referenced by message_commandscript::HandleWhispersCommand().

◆ RemoveFromWorld()

void Player::RemoveFromWorld ( )
overridevirtual

◆ RemoveGhoul()

void Player::RemoveGhoul ( )

◆ RemoveItem()

◆ RemoveItemDependentAurasAndCasts()

◆ RemoveItemDurations()

void Player::RemoveItemDurations ( Item *  item)

Definition at line 23332 of file Player.cpp.

References m_itemDuration.

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

◆ RemoveItemFromBuyBackSlot()

◆ RemoveMail()

void Player::RemoveMail ( uint32  id)

Definition at line 2816 of file Player.cpp.

References m_mail.

Referenced by WorldSession::HandleMailReturnToSender().

◆ RemoveMItem()

bool Player::RemoveMItem ( ObjectGuid::LowType  id)

Definition at line 20583 of file Player.cpp.

References mMitems.

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

◆ RemovePet()

◆ RemovePetAura()

void Player::RemovePetAura ( PetAura const *  petSpell)

Definition at line 20405 of file Player.cpp.

References PetAura::GetAura(), GetPet(), and m_petAuras.

Referenced by Pet::CastPetAuras(), AuraEffect::HandleAuraDummy(), and RemoveSpell().

◆ RemovePetitionsAndSigns()

void Player::RemovePetitionsAndSigns ( ObjectGuid  guid,
CharterTypes  type 
)
static

Definition at line 20950 of file Player.cpp.

References sPetitionMgr.

Referenced by Guild::AddMember(), ArenaTeam::AddMember(), and DeleteFromDB().

◆ RemoveQuestSlotState()

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

◆ RemoveRestFlag()

void Player::RemoveRestFlag ( RestFlag  restFlag)

◆ RemoveRewardedQuest()

◆ RemoveRuneConvertAura()

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

Definition at line 24356 of file Player.cpp.

References RuneInfo::ConvertAuras, m_runes, and Runes::runes.

Referenced by RemoveRunesByAuraEffect().

◆ RemoveRunesByAuraEffect()

◆ RemoveSocial()

void Player::RemoveSocial ( )

Definition at line 26480 of file Player.cpp.

References Object::GetGUID(), m_social, and sSocialMgr.

Referenced by WorldSession::LogoutPlayer().

◆ RemoveSpell()

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

No need to check for spellInfo != nullptr here because if cur_active is true, then that means that the spell was already in m_spells, and only valid spells can be pushed there.

Definition at line 3418 of file Player.cpp.

References AddSpell(), AutoUnequipOffhandIfNeed(), CONFIG_MAX_PRIMARY_TRADE_SKILL, CONFIG_OFFHAND_CHECK_AT_SPELL_UNLEARN, SpellInfo::GetEffects(), GetFreePrimaryProfessionPoints(), Object::GetGUID(), Unit::GetMaxSkillValueForLevel(), GetPureMaxSkillValue(), GetPureSkillValue(), GetTalentSpellCost(), GetUsedTalentCount(), Has310Flyer(), SpellInfo::HasAttribute(), SpellInfo::HasEffect(), HasSpell(), SpellInfo::IsPassive(), SpellInfo::IsPrimaryProfessionFirstRank(), SpellInfo::IsRanked(), SpellInfo::IsStackableWithRanks(), IsUnlearnSpellsPacketNeededForSpell(), Unit::m_canDualWield, m_canTitanGrip, m_spells, m_titanGripPenaltySpellId, MAX_SPELL_EFFECTS, SpellLearnSkillNode::maxvalue, PLAYERSPELL_CHANGED, PLAYERSPELL_NEW, PLAYERSPELL_REMOVED, PLAYERSPELL_TEMPORARY, Unit::RemoveAurasDueToSpell(), Unit::RemoveOwnedAura(), RemovePetAura(), RemoveSpell(), SendDirectMessage(), SendSupercededSpell(), SendUnlearnSpells(), Unit::SetCanDualWield(), SetCanTitanGrip(), SetFreePrimaryProfessions(), SetSkill(), SetUsedTalentCount(), SpellLearnSkillNode::skill, SKILL_MOUNTS, SPELL_ATTR0_CU_IS_TALENT, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, SPELL_EFFECT_DUAL_WIELD, SPELL_EFFECT_TITAN_GRIP, WorldPackets::Spells::UnlearnedSpell::SpellID, sSkillLineStore, sSpellMgr, SpellLearnSkillNode::step, sWorld, SpellLearnSkillNode::value, and WorldPackets::Spells::UnlearnedSpell::Write().

Referenced by ActivateTalentGroup(), AddSpell(), Spell::EffectUnlearnSpecialization(), learn_commandscript::HandleUnLearnCommand(), LearnSkillRewardedSpells(), ProfessionUnlearnSpells(), RemoveSpell(), ResetSpells(), ResetTalents(), and SetSkill().

◆ RemoveTemporarySpell()

void Player::RemoveTemporarySpell ( uint32  spellId)

◆ RemoveTimedAchievement()

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

◆ RemoveTimedQuest()

void Player::RemoveTimedQuest ( uint32  questId)
inline

Definition at line 1349 of file Player.h.

Referenced by FailQuest(), WorldSession::HandleQuestLogRemoveQuest(), and RewardQuest().

◆ RemoveTradeableItem()

◆ RepopAtGraveyard()

◆ ReportedAfkBy()

◆ ReputationChanged()

◆ ReputationChanged2()

◆ ResetAchievementCriteria()

void Player::ResetAchievementCriteria ( AchievementCriteriaCondition  condition,
uint32  value,
bool  evenIfCriteriaComplete = false 
)

◆ ResetAchievements()

void Player::ResetAchievements ( )

◆ ResetAllPowers()

◆ ResetContestedPvP()

◆ ResetDailyQuestStatus()

void Player::ResetDailyQuestStatus ( )

◆ ResetInstances()

◆ ResetMap()

void Player::ResetMap ( )
overridevirtual

◆ ResetMonthlyQuestStatus()

void Player::ResetMonthlyQuestStatus ( )

Definition at line 23014 of file Player.cpp.

References m_MonthlyQuestChanged, and m_monthlyquests.

◆ ResetPetTalents()

◆ ResetSeasonalQuestStatus()

void Player::ResetSeasonalQuestStatus ( uint16  event_id,
time_t  eventStartTime 
)

Definition at line 22989 of file Player.cpp.

References m_SeasonalQuestChanged, and m_seasonalquests.

◆ ResetSpells()

◆ ResetTalents()

◆ ResetWeeklyQuestStatus()

void Player::ResetWeeklyQuestStatus ( )

Definition at line 22979 of file Player.cpp.

References m_WeeklyQuestChanged, and m_weeklyquests.

◆ RestoreBaseRune()

◆ RestoreHealthAfterDuel()

void Player::RestoreHealthAfterDuel ( )
inline

Definition at line 1863 of file Player.h.

References Unit::SetHealth().

Referenced by DuelResetScript::OnDuelEnd().

◆ RestoreManaAfterDuel()

void Player::RestoreManaAfterDuel ( )
inline

Definition at line 1864 of file Player.h.

References POWER_MANA, and Unit::SetPower().

Referenced by DuelResetScript::OnDuelEnd().

◆ ResummonPetTemporaryUnSummonedIfAny()

◆ ResurrectPlayer()

void Player::ResurrectPlayer ( float  restore_percent,
bool  applySickness = false 
)

Definition at line 4374 of file Player.cpp.

References Unit::AddUnitMovementFlag(), ALIVE, CastAllObtainSpells(), WorldObject::CastSpell(), CONFIG_DEATH_SICKNESS_LEVEL, Unit::GetAura(), GetBattleground(), Object::GetGUID(), Unit::GetLevel(), Unit::GetMaxHealth(), Unit::GetMaxPower(), Unit::GetRace(), GetSession(), WorldObject::GetZoneAndAreaId(), Unit::HasUnitState(), IN_MILLISECONDS, InBattleground(), m_deathTimer, WorldPackets::Misc::DeathReleaseLoc::MapID, MINUTE, MOVEMENTFLAG_WATERWALKING, PLAYER_FLAGS, PLAYER_FLAGS_IS_OUT_OF_BOUNDS, POWER_ENERGY, POWER_MANA, POWER_RAGE, Unit::RemoveAurasDueToSpell(), Object::RemoveFlag(), ChrRacesEntry::ResSicknessSpellID, sChrRacesStore, WorldSession::SendPacket(), setDeathState(), Object::SetDynamicFlag(), Unit::SetHealth(), Unit::SetPower(), Unit::SetRooted(), Unit::SetWaterWalking(), sOutdoorPvPMgr, sWorld, UNIT_DYNFLAG_REFER_A_FRIEND, UNIT_STATE_STUNNED, UpdateObjectVisibility(), UpdateZone(), and WorldPackets::Misc::DeathReleaseLoc::Write().

Referenced by Battleground::_ProcessResurrect(), Spell::EffectSelfResurrect(), Battleground::EndBattleground(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleBattleFieldPortOpcode(), group_commandscript::HandleGroupReviveCommand(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandleReclaimCorpse(), misc_commandscript::HandleReviveCommand(), LoadCorpse(), Battleground::RemovePlayerAtLeave(), BfGraveyard::Resurrect(), ResurrectUsingRequestDataImpl(), WorldSession::SendSpiritResurrect(), and TeleportTo().

◆ ResurrectUsingRequestData()

◆ ResurrectUsingRequestDataImpl()

◆ ResyncRunes()

◆ 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 6525 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, ACHIEVEMENT_CRITERIA_TYPE_SPECIAL_PVP_KILL, AddItem(), AddPct(), Object::ApplyModUInt16Value(), Object::ApplyModUInt32Value(), CONFIG_PVP_TOKEN_COUNT, CONFIG_PVP_TOKEN_ENABLE, CONFIG_PVP_TOKEN_ID, CONFIG_PVP_TOKEN_MAP_TYPE, WorldObject::GetAreaId(), GetBattleground(), GetBGTeam(), Object::GetByteValue(), Unit::GetClass(), Trinity::XP::GetGrayLevel(), Object::GetGUID(), Unit::GetLevel(), Unit::GetMaxPositiveAuraModifier(), Unit::GetRace(), GetSession(), GetTeam(), Object::GetTypeId(), Unit::HasAura(), Unit::HasAuraType(), Trinity::Honor::hk_honor_at_level_f(), InArena(), InBattleground(), Unit::IsFFAPvP(), Creature::IsRacialLeader(), ModifyHonorPoints(), PLAYER_FIELD_BYTES, PLAYER_FIELD_BYTES_OFFSET_LIFETIME_MAX_PVP_RANK, PLAYER_FIELD_KILLS, PLAYER_FIELD_KILLS_OFFSET_TODAY_KILLS, PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, PLAYER_FIELD_TODAY_CONTRIBUTION, ChatHandler::PSendSysMessage(), RATE_HONOR, SCORE_BONUS_HONOR, SendDirectMessage(), 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, UpdateAchievementCriteria(), and UpdateHonorFields().

Referenced by KillRewarder::_RewardHonor(), DuelComplete(), Spell::EffectAddHonor(), 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 23606 of file Player.cpp.

References KillRewarder::Reward().

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 14862 of file Player.cpp.

References 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, AddQuestRewardedTalentCount(), ASSERT_NOTNULL, BIND_QUEST_ITEM, Quest::CalculateHonorGain(), Quest::CanIncreaseRewardedQuestCounters(), CanStoreNewItem(), WorldObject::CastSpell(), CharacterDatabase, DestroyItemCount(), EQUIP_ERR_OK, FindQuestSlot(), GenerateItemRandomPropertyId(), Quest::GetBonusTalents(), Object::GetGUID(), Unit::GetLevel(), WorldObject::GetMap(), Quest::GetQuestId(), GetQuestXPReward(), Quest::GetRewArenaPoints(), Quest::GetRewChoiceItemsCount(), Quest::GetRewDisplaySpell(), Quest::GetRewItemsCount(), Quest::GetRewMailDelaySecs(), Quest::GetRewMailSenderEntry(), Quest::GetRewMailTemplateId(), Quest::GetRewOrReqMoney(), Quest::GetRewSpell(), Quest::GetRewTitle(), Quest::GetZoneOrSort(), GiveXP(), SpellInfo::HasEffect(), Quest::HasFlag(), HasPvPForcingQuest(), HasQuestForItem(), InitTalentForLevel(), Quest::IsDaily(), Quest::IsDFQuest(), PvPInfo::IsHostile, PvPInfo::IsInHostileArea, IsMaxLevel(), Quest::IsMonthly(), Quest::IsRepeatable(), Quest::IsSeasonal(), SpellInfo::IsSelfCast(), Object::IsUnit(), Quest::IsWeekly(), Quest::ItemDrop, Quest::ItemDropQuantity, MAIL_CHECK_MASK_HAS_BODY, MAX_QUEST_LOG_SIZE, ModifyArenaPoints(), ModifyMoney(), NULL_BAG, NULL_SLOT, pvpInfo, QUEST_FLAGS_FLAGS_PVP, QUEST_ITEM_DROP_COUNT, QUEST_ITEM_OBJECTIVES_COUNT, RemoveActiveQuest(), RemoveTimedQuest(), Quest::RequiredItemCount, Quest::RequiredItemId, Quest::RewardChoiceItemCount, Quest::RewardChoiceItemId, RewardHonor(), Quest::RewardItemCount, Quest::RewardItemId, RewardReputation(), SaveToDB(), sCharTitlesStore, SendItemRetrievalMail(), MailDraft::SendMailTo(), SendNewItem(), SendQuestGiverStatusMultiple(), SendQuestReward(), SendQuestUpdate(), SetCanDelayTeleport(), SetDailyQuestStatus(), SetMonthlyQuestStatus(), SetQuestSlot(), SetRewardedQuest(), SetSeasonalQuestStatus(), SetTitle(), SetWeeklyQuestStatus(), sObjectMgr, SPELL_EFFECT_CREATE_ITEM, SPELL_EFFECT_LEARN_SPELL, sScriptMgr, sSpellMgr, StoreNewItem(), UpdateAchievementCriteria(), and UpdatePvPState().

Referenced by CompleteQuest(), lfg::LFGMgr::FinishDungeon(), WorldSession::HandleQuestgiverChooseRewardOpcode(), and quest_commandscript::HandleQuestReward().

◆ RewardReputation() [1/2]

◆ RewardReputation() [2/2]

◆ Satisfy()

◆ SatisfyQuestBreadcrumbQuest()

◆ SatisfyQuestClass()

◆ SatisfyQuestConditions()

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

◆ SatisfyQuestDay()

◆ SatisfyQuestDependentBreadcrumbQuests()

◆ SatisfyQuestDependentPreviousQuests()

◆ SatisfyQuestDependentQuests()

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

◆ SatisfyQuestExclusiveGroup()

◆ SatisfyQuestLevel()

◆ SatisfyQuestLog()

bool Player::SatisfyQuestLog ( bool  msg) const

◆ SatisfyQuestMonth()

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

◆ SatisfyQuestPreviousQuest()

◆ SatisfyQuestRace()

◆ SatisfyQuestReputation()

◆ SatisfyQuestSeasonal()

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

◆ SatisfyQuestSkill()

◆ SatisfyQuestStatus()

◆ SatisfyQuestTimed()

◆ SatisfyQuestWeek()

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

◆ SaveGoldToDB()

◆ SaveHealthBeforeDuel()

void Player::SaveHealthBeforeDuel ( )
inline

Definition at line 1861 of file Player.h.

References Unit::GetHealth().

Referenced by DuelResetScript::OnDuelStart().

◆ SaveInventoryAndGoldToDB()

◆ SaveManaBeforeDuel()

void Player::SaveManaBeforeDuel ( )
inline

Definition at line 1862 of file Player.h.

References Unit::GetPower(), and POWER_MANA.

Referenced by DuelResetScript::OnDuelStart().

◆ SavePositionInDB()

◆ SaveRecallPosition()

◆ SaveToDB() [1/2]

◆ SaveToDB() [2/2]

void Player::SaveToDB ( CharacterDatabaseTransaction  trans,
bool  create = false 
)

Insert query

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

Definition at line 18998 of file Player.cpp.

References _SaveActions(), _SaveAuras(), _SaveBGData(), _SaveDailyQuestStatus(), _SaveEquipmentSets(), _SaveGlyphs(), _SaveInventory(), _SaveMail(), _SaveMonthlyQuestStatus(), _SaveQuestStatus(), _SaveSeasonalQuestStatus(), _SaveSkills(), _SaveSpells(), _SaveStats(), _SaveTalents(), _SaveWeeklyQuestStatus(), CHAR_DEL_CHAR_FISHINGSTEPS, CHAR_INS_CHAR_FISHINGSTEPS, CHAR_INS_CHARACTER, CHAR_UPD_CHARACTER, CharacterDatabase, CONFIG_INTERVAL_SAVE, CONFIG_STATS_SAVE_ONLY_ON_LOGOUT, DELAYED_SAVE_PLAYER, EQUIPMENT_SLOT_END, GetActiveTalentGroup(), GetArenaPoints(), GetBankBagSlotCount(), Object::GetByteValue(), Unit::GetClass(), ObjectGuid::GetCounter(), GetDrunkValue(), GetDungeonDifficultyID(), GetFaceId(), GetFacialStyle(), GameTime::GetGameTime(), Object::GetGUID(), Object::GetGUID(), GetHairColorId(), GetHairStyleId(), Unit::GetHealth(), GetHonorPoints(), WorldObject::GetInstanceId(), GetItemByPos(), WorldSession::GetLatency(), Unit::GetLevel(), WorldLocation::GetMapId(), GetMoney(), WorldObject::GetName(), GetNativeGender(), Position::GetOrientation(), GetPet(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::GetPower(), Unit::GetRace(), GetRaidDifficultyID(), GetRestState(), GetSession(), GetSkinId(), Unit::GetSpellHistory(), GetTalentGroupsCount(), GetTalentResetCost(), GetTalentResetTime(), GetTeleportDest(), WorldObject::GetTransOffsetO(), WorldObject::GetTransOffsetX(), WorldObject::GetTransOffsetY(), WorldObject::GetTransOffsetZ(), WorldObject::GetTransport(), Object::GetUInt16Value(), Object::GetUInt32Value(), Object::GetUInt64Value(), GetXP(), WorldObject::GetZoneId(), Object::HasFlag(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, IsBeingTeleported(), IsBeingTeleportedFar(), Object::IsInWorld(), WorldSession::isLogingOut(), KNOWN_TITLES_SIZE, m_achievementMgr, m_atLoginFlags, m_cinematic, m_deathExpireTime, m_ExtraFlags, m_fishingSteps, m_grantableLevels, m_mailsUpdated, WorldObject::m_name, m_nextSave, m_petStable, m_Played_time, m_reputationMgr, m_rest_bonus, m_session, m_taxi, MAX_POWERS, outDebugValues(), PET_SAVE_AS_CURRENT, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER__FIELD_KNOWN_TITLES, PLAYER_AMMO_ID, PLAYER_CHOSEN_TITLE, PLAYER_EXPLORED_ZONES_1, PLAYER_EXPLORED_ZONES_SIZE, PLAYER_FIELD_BYTES, PLAYER_FIELD_BYTES_OFFSET_ACTION_BAR_TOGGLES, PLAYER_FIELD_KILLS, PLAYER_FIELD_KILLS_OFFSET_TODAY_KILLS, PLAYER_FIELD_KILLS_OFFSET_YESTERDAY_KILLS, PLAYER_FIELD_KNOWN_CURRENCIES, PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, PLAYER_FIELD_TODAY_CONTRIBUTION, PLAYER_FIELD_WATCHED_FACTION_INDEX, PLAYER_FIELD_YESTERDAY_CONTRIBUTION, PLAYER_FLAGS, PLAYER_FLAGS_RESTING, PLAYER_VISIBLE_ITEM_1_ENTRYID, WorldSession::PlayerLogout(), WorldSession::SaveInstanceTimeRestrictions(), PlayerTaxi::SaveTaxiDestinationsToString(), AchievementMgr::SaveToDB(), ReputationMgr::SaveToDB(), SpellHistory::SaveToDB(), WorldSession::SaveTutorialsData(), ScheduleDelayedOperation(), PreparedStatementBase::setFloat(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), sScriptMgr, sWorld, TC_LOG_DEBUG, and UpdateHonorFields().

◆ Say() [1/2]

void Player::Say ( std::string_view  text,
Language  language,
WorldObject const *  = nullptr 
)
overridevirtual

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

Reimplemented from Unit.

Definition at line 20461 of file Player.cpp.

References CHAT_MSG_SAY, CONFIG_LISTEN_RANGE_SAY, WorldPackets::Chat::Chat::Initialize(), SendMessageToSetInRange(), sScriptMgr, sWorld, and WorldPackets::Chat::Chat::Write().

Referenced by WorldSession::HandleChatMessage().

◆ Say() [2/2]

void Player::Say ( uint32  textId,
WorldObject const *  target = nullptr 
)
overridevirtual

Reimplemented from Unit.

Definition at line 20471 of file Player.cpp.

References CHAT_MSG_SAY, CONFIG_LISTEN_RANGE_SAY, and sWorld.

◆ ScheduleDelayedOperation()

void Player::ScheduleDelayedOperation ( uint32  operation)
inlineprivate

Definition at line 2519 of file Player.h.

References DELAYED_END.

Referenced by LeaveBattleground(), ResurrectUsingRequestData(), SaveToDB(), and TeleportToBGEntryPoint().

◆ SendActionButtons()

◆ SendAttackSwingBadFacingAttack()

void Player::SendAttackSwingBadFacingAttack ( ) const

Definition at line 20082 of file Player.cpp.

References SendDirectMessage().

Referenced by Update().

◆ SendAttackSwingCancelAttack()

void Player::SendAttackSwingCancelAttack ( ) const

◆ SendAttackSwingCantAttack()

void Player::SendAttackSwingCantAttack ( ) const

Definition at line 20062 of file Player.cpp.

References SendDirectMessage().

Referenced by Update().

◆ SendAttackSwingDeadTarget()

void Player::SendAttackSwingDeadTarget ( ) const

Definition at line 20072 of file Player.cpp.

References SendDirectMessage().

◆ SendAttackSwingNotInRange()

void Player::SendAttackSwingNotInRange ( ) const

Definition at line 20077 of file Player.cpp.

References SendDirectMessage().

Referenced by Update().

◆ SendAurasForTarget()

◆ SendAutoRepeatCancel()

void Player::SendAutoRepeatCancel ( Unit *  target)

◆ SendBattlefieldWorldStates()

void Player::SendBattlefieldWorldStates ( ) const

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

Definition at line 9120 of file Player.cpp.

References BATTLEFIELD_BATTLEID_WG, CONFIG_WINTERGRASP_ENABLE, GameTime::GetGameTime(), sBattlefieldMgr, SendUpdateWorldState(), sWorld, WS_BATTLEFIELD_WG_ACTIVE, and WS_BATTLEFIELD_WG_TIME_NEXT_BATTLE.

Referenced by SendInitWorldStates().

◆ SendBGWeekendWorldStates()

void Player::SendBGWeekendWorldStates ( ) const

◆ SendBindPointUpdate()

◆ SendBuyError()

◆ SendCanTakeQuestResponse()

◆ SendCinematicStart()

◆ SendCorpseReclaimDelay()

void Player::SendCorpseReclaimDelay ( uint32  delay) const

◆ SendDirectMessage()

void Player::SendDirectMessage ( WorldPacket const *  data) const

Definition at line 6163 of file Player.cpp.

References m_session, and WorldSession::SendPacket().

Referenced by _StoreOrEquipNewItem(), Group::AddMember(), InstanceMap::AddPlayerToMap(), AddRunePower(), AddSpell(), AddSpellMod(), ApplyEquipCooldown(), BindToInstance(), OutdoorPvP::BroadcastPacket(), Group::BroadcastPacket(), Group::BroadcastReadyCheck(), CharmSpellInitialize(), CheckDuelDistance(), ConvertRune(), Object::DestroyForPlayer(), Group::Disband(), DoRandomRoll(), DuelComplete(), Spell::EffectDuel(), Spell::EffectPlayMusic(), Battleground::EndBattleground(), EquipItem(), BGQueueInviteEvent::Execute(), BGQueueRemoveEvent::Execute(), GiveLevel(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleArenaTeamInviteOpcode(), Aura::HandleAuraSpecificMods(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleChatIgnoredOpcode(), debug_commandscript::HandleDebugSendOpcodeCommand(), spell_gen_spirit_healer_res::HandleDummy(), WorldSession::HandleGrantLevel(), WorldSession::HandleGroupDeclineOpcode(), WorldSession::HandleGroupInviteOpcode(), Guild::HandleInviteMember(), modify_commandscript::HandleModifySpellCommand(), WorldSession::HandleTurnInPetitionOpcode(), BattlegroundQueue::InviteGroupToBG(), Unit::Kill(), Pet::learnSpell(), LearnSpell(), Channel::List(), Group::MasterLoot(), Trinity::LocalizedPacketDo< Builder >::operator()(), Trinity::LocalizedPacketListDo< Builder >::operator()(), CreatureTextLocalizer< Builder >::operator()(), InstanceMap::PermBindAllPlayers(), PetSpellInitialize(), WorldObject::PlayDirectMusic(), WorldObject::PlayDirectSound(), WorldObject::PlayDistanceSound(), Battleground::PlayerAddedToBGCheckIfBGIsRunning(), PossessSpellInitialize(), Group::RemoveMember(), RemovePet(), Battleground::RemovePlayerAtLeave(), RemoveSpell(), ReportedAfkBy(), AchievementMgr::Reset(), Pet::resetTalents(), ResetTalents(), Pet::resetTalentsForAllPetsOf(), ResyncRunes(), RewardHonor(), SatisfyQuestLog(), SendActionButtons(), AchievementMgr::SendAllAchievementData(), BattlegroundMgr::SendAreaSpiritHealerQueryOpcode(), Battlefield::SendAreaSpiritHealerQueryOpcode(), SendAttackSwingBadFacingAttack(), SendAttackSwingCancelAttack(), SendAttackSwingCantAttack(), SendAttackSwingDeadTarget(), SendAttackSwingNotInRange(), SendAurasForTarget(), Guild::SendBankList(), BattlegroundMgr::SendBattlegroundList(), SendBindPointUpdate(), SendBuyError(), CalendarMgr::SendCalendarEvent(), SendCanTakeQuestResponse(), Spell::SendCastResult(), SendCinematicStart(), Unit::SendComboPoints(), AchievementMgr::SendCriteriaProgressRemoved(), AchievementMgr::SendCriteriaUpdate(), GameClient::SendDirectMessage(), SendDuelCountdown(), SendDungeonDifficulty(), SendDurabilityLoss(), SendEquipError(), SendEquipmentSetList(), SendExplorationExperience(), Weather::SendFineWeatherUpdateToPlayer(), ReputationMgr::SendForceReactions(), SocialMgr::SendFriendStatus(), SendInitialPacketsAfterAddToMap(), SendInitialPacketsBeforeAddToMap(), ReputationMgr::SendInitialReputations(), SendInitialSpells(), Map::SendInitSelf(), Map::SendInitTransports(), SendInitWorldStates(), Battlefield::SendInitWorldStatesTo(), SendInstanceResetWarning(), SendItemRefundResult(), SendLogXPGain(), SendLoot(), Group::SendLootAllPassed(), SendLootError(), SendLootRelease(), Group::SendLootRoll(), Group::SendLootRollWon(), Group::SendLootStartRoll(), Group::SendLootStartRollToPlayer(), SendMailResult(), Channel::SendMemberCount(), SendMessageToSet(), SendMessageToSetInRange(), SendMessageToSetInRange(), SendMirrorTimer(), Spell::SendMountResult(), Unit::SendMoveKnockBack(), SendMovementSetCollisionHeight(), SendMovieStart(), SendNewItem(), SendNewMail(), CreatureTextMgr::SendNonChatPacket(), SendNotifyLootItemRemoved(), SendNotifyLootMoneyRemoved(), ChannelMgr::SendNotOnChannelNotify(), SendOnCancelExpectedVehicleRideAura(), Group::SendOriginalGroupUpdateToPlayer(), Trinity::MessageDistDeliverer::SendPacket(), Trinity::MessageDistDelivererToHostile::SendPacket(), Unit::SendPetActionFeedback(), Unit::SendPetAIReaction(), Spell::SendPetCastResult(), WorldSession::SendPetitionSigns(), SendPlayerBound(), SendProficiency(), SendPushToPartyResponse(), WorldSession::SendQueryPetNameResponse(), SendQuestComplete(), SendQuestConfirmAccept(), SendQuestFailed(), SendQuestGiverStatusMultiple(), SendQuestReward(), SendQuestTimerFailed(), SendQuestUpdateAddCreatureOrGo(), SendQuestUpdateAddItem(), SendQuestUpdateAddPlayer(), SendRaidDifficulty(), SendRaidInfo(), SendRefundInfo(), SendRemoveControlBar(), Map::SendRemoveTransports(), SendResetFailedNotify(), SendResetInstanceFailed(), SendResetInstanceSuccess(), SendRespecWipeConfirm(), AchievementMgr::SendRespondInspectAchievements(), Spell::SendResurrectRequest(), SendSavedInstances(), SendSellError(), World::SendServerMessage(), PlayerSocial::SendSocialList(), Spell::SendSpellGo(), Trainer::Trainer::SendSpells(), ReputationMgr::SendState(), SendSummonRequestFrom(), SendSupercededSpell(), SendTalentsInfoData(), SendTameFailure(), SendTaxiNodeStatusMultiple(), Trainer::Trainer::SendTeachFailure(), Trainer::Trainer::SendTeachSucceeded(), Unit::SendTeleportPacket(), Item::SendTimeUpdate(), Trinity::VisibleNotifier::SendToSelf(), SendTransferAborted(), BattlegroundSA::SendTransportInit(), BattlegroundSA::SendTransportsRemove(), SendUnlearnSpells(), Item::SendUpdateSockets(), Object::SendUpdateToPlayer(), Group::SendUpdateToPlayer(), SendUpdateWorldState(), ReputationMgr::SendVisible(), Weather::SendWeatherUpdateToPlayer(), Map::SendZoneDynamicInfo(), Map::SendZoneMessage(), Map::SendZoneWeather(), SetBindPoint(), Unit::SetCanFly(), SetClientControl(), Unit::SetDisableGravity(), SetEquipmentSet(), Unit::SetFeatherFall(), Unit::SetHover(), Unit::SetOwnerGUID(), Unit::SetRooted(), Unit::SetStandState(), SetTitle(), SetViewpoint(), Unit::SetWaterWalking(), StopMirrorTimer(), TeleportTo(), Pet::unlearnSpell(), GameObject::Update(), UpdateHomebindTime(), Group::UpdatePlayerOutOfRange(), UpdateTriggerVisibility(), UpdateVisibleGameobjectsOrSpellClicks(), GameObject::Use(), VehicleSpellInitialize(), Whisper(), Unit::Whisper(), Unit::Whisper(), Whisper(), and WhisperAddon().

◆ SendDuelCountdown()

void Player::SendDuelCountdown ( uint32  counter)

Definition at line 25856 of file Player.cpp.

References SendDirectMessage(), and SMSG_DUEL_COUNTDOWN.

Referenced by WorldSession::HandleDuelAccepted().

◆ SendDungeonDifficulty()

◆ SendDurabilityLoss()

void Player::SendDurabilityLoss ( )

Definition at line 4568 of file Player.cpp.

References SendDirectMessage().

Referenced by EnvironmentalDamage().

◆ SendEnchantmentDurations()

void Player::SendEnchantmentDurations ( )

◆ SendEquipError()

void Player::SendEquipError ( InventoryResult  msg,
Item const *  item1 = nullptr,
Item const *  item2 = nullptr,
uint32  itemId = 0 
) const

Definition at line 13070 of file Player.cpp.

References WorldPackets::Item::InventoryChangeFailure::BagResult, WorldPackets::Item::InventoryChangeFailure::ContainerBSlot, EQUIP_ERR_CANT_EQUIP_LEVEL_I, EQUIP_ERR_EVENT_AUTOEQUIP_BIND_CONFIRM, EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_COUNT_EXCEEDED_IS, EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_EQUIPPED_EXCEEDED_IS, EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_SOCKETED_EXCEEDED_IS, EQUIP_ERR_OK, EQUIP_ERR_PURCHASE_LEVEL_TOO_LOW, Object::GetGUID(), ItemTemplate::GetItemLimitCategory(), ItemTemplate::GetRequiredLevel(), Item::GetTemplate(), WorldPackets::Item::InventoryChangeFailure::Item, WorldPackets::Item::InventoryChangeFailure::Level, WorldPackets::Item::InventoryChangeFailure::LimitCategory, SendDirectMessage(), sObjectMgr, and WorldPackets::Item::InventoryChangeFailure::Write().

Referenced by _StoreOrEquipNewItem(), AutoStoreLoot(), BuyItemFromVendorSlot(), CanAddQuest(), CanRewardQuest(), Spell::CheckItems(), Group::CountTheRoll(), Spell::DoCreateItem(), Spell::EffectRechargeManaGem(), GiveQuestSourceItem(), misc_commandscript::HandleAddItemSetCommand(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleBuybackItem(), AuraEffect::HandleChannelDeathItem(), debug_commandscript::HandleDebugSendEquipErrorCommand(), WorldSession::HandleDestroyItemOpcode(), WorldSession::HandleEquipmentSetUse(), WorldSession::HandleGuildBankSwapItems(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandleReadItem(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSetAmmoOpcode(), WorldSession::HandleSocketOpcode(), WorldSession::HandleSplitItemOpcode(), WorldSession::HandleSwapInvItemOpcode(), WorldSession::HandleSwapItem(), WorldSession::HandleUseItemOpcode(), WorldSession::HandleWrapItemOpcode(), ModifyMoney(), item_only_for_flight::OnUse(), item_petrov_cluster_bombs::OnUse(), item_captured_frog::OnUse(), ProcessUnlearnAction(), SetAmmo(), SplitItem(), StoreLootItem(), SwapItem(), and TakeQuestSourceItem().

◆ SendEquipmentSetList()

◆ SendExplorationExperience()

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

Definition at line 20094 of file Player.cpp.

References SendDirectMessage(), and SMSG_EXPLORATION_EXPERIENCE.

Referenced by CheckAreaExplore().

◆ SendInitialActionButtons()

void Player::SendInitialActionButtons ( ) const
inline

Definition at line 1562 of file Player.h.

Referenced by SendInitialPacketsBeforeAddToMap().

◆ SendInitialPacketsAfterAddToMap()

◆ SendInitialPacketsBeforeAddToMap()

◆ SendInitialSpells()

◆ SendInitialVisiblePackets()

void Player::SendInitialVisiblePackets ( Unit *  target) const

◆ SendInitWorldStates()

◆ SendInstanceResetWarning()

void Player::SendInstanceResetWarning ( uint32  mapid,
Difficulty  difficulty,
uint32  time,
bool  welcome 
) const

◆ SendItemDurations()

void Player::SendItemDurations ( )

Definition at line 13849 of file Player.cpp.

References m_itemDuration.

Referenced by SendInitialPacketsAfterAddToMap().

◆ SendItemRefundResult()

◆ SendItemRetrievalMail()

void Player::SendItemRetrievalMail ( uint32  itemEntry,
uint32  count 
)

◆ SendLogXPGain()

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

Definition at line 2366 of file Player.cpp.

References ObjectGuid::Empty, Object::GetGUID(), SendDirectMessage(), and SMSG_LOG_XPGAIN.

Referenced by GiveXP().

◆ SendLoot()

void Player::SendLoot ( ObjectGuid  guid,
LootType  loot_type 
)

Definition at line 8084 of file Player.cpp.

References WorldPackets::Loot::LootResponse::AcquireReason, Loot::AddLooter(), ALL_PERMISSION, AREA_WINTERGRASP, BATTLEGROUND_AV, Loot::BuildLootResponse(), Creature::CanGeneratePickPocketLoot(), GameObjectTemplate::chest, Loot::clear(), Loot::containerID, CORPSE_BONES, ItemTemplate::DisenchantID, WorldSession::DoLootRelease(), Loot::empty(), Loot::FillLoot(), FREE_FOR_ALL, GAMEOBJECT_TYPE_CHEST, Loot::generateMoneyLoot(), GetBattleground(), ObjectAccessor::GetCorpse(), ObjectGuid::GetCounter(), Map::GetCreature(), Creature::GetCreatureTemplate(), Object::GetEntry(), GameObject::getFishLoot(), GameObject::getFishLootJunk(), Map::GetGameObject(), GameTime::GetGameTime(), GameObject::GetGOInfo(), GetGroup(), Object::GetGUID(), Object::GetGUID(), GetItemByGuid(), Unit::GetLevel(), GameObject::GetLootGenerationTime(), GetLootGUID(), GameObjectTemplate::GetLootId(), Group::GetLootMethod(), GameObject::GetLootMode(), Creature::GetLootRecipient(), Creature::GetLootRecipientGroup(), Creature::GetLootRecipientGUID(), GameObject::getLootState(), GetLootTypeForClient(), WorldObject::GetMap(), Group::GetMasterLooterGuid(), WorldObject::GetName(), GameObject::GetOwnerGUID(), GameObject::GetRespawnDelay(), GameObject::GetRespawnTime(), GetTeam(), Item::GetTemplate(), GameObject::GetTemplateAddon(), Corpse::GetType(), WorldObject::GetZoneId(), GO_ACTIVATED, GO_READY, Loot::gold, GROUP_LOOT, GROUP_PERMISSION, GameObjectTemplate::groupLootRules, Object::HasDynamicFlag(), Map::Instanceable(), INTERACTION_DISTANCE, Unit::IsAlive(), ObjectGuid::IsCorpse(), ObjectGuid::IsEmpty(), WorldObject::IsFriendlyTo(), ObjectGuid::IsGameObject(), ObjectGuid::IsItem(), Loot::isLooted(), GameObject::isSpawnedByDefault(), GameObject::IsWithinDistInMap(), WorldObject::IsWithinDistInMap(), Corpse::loot, Creature::loot, GameObject::loot, Item::loot, LOOT_CORPSE, LOOT_DISENCHANTING, LOOT_ERROR_ALREADY_PICKPOCKETED, LOOT_ERROR_DIDNT_KILL, LOOT_FISHING, LOOT_FISHING_JUNK, LOOT_FISHINGHOLE, LOOT_INSIGNIA, LOOT_MILLING, LOOT_NONE, LOOT_PICKPOCKETING, LOOT_PROSPECTING, LOOT_SKINNING, Loot::loot_type, Corpse::lootRecipient, LootTemplates_Creature, LootTemplates_Disenchant, LootTemplates_Gameobject, LootTemplates_Item, LootTemplates_Milling, LootTemplates_Pickpocketing, LootTemplates_Prospecting, LootTemplates_Skinning, Item::m_lootGenerated, m_session, MASTER_LOOT, MASTER_PERMISSION, ItemTemplate::MaxMoneyLoot, ItemTemplate::MinMoneyLoot, NEED_BEFORE_GREED, NONE_PERMISSION, WorldPackets::Loot::LootResponse::Owner, OWNER_PERMISSION, CreatureTemplate::pickpocketLootId, PLAYER_CORPSE_LOOT_ENTRY, RATE_DROP_MONEY, RESTRICTED_PERMISSION, ROUND_ROBIN, ROUND_ROBIN_PERMISSION, SendDirectMessage(), SendLootError(), SendLootRelease(), GameObject::SetLootGenerationTime(), SetLootGUID(), Creature::SetLootRecipient(), GameObject::SetLootState(), Unit::SetUnitFlag(), CreatureTemplate::SkinLootId, sLootItemStorage, Creature::StartPickPocketRefillTimer(), sWorld, TC_LOG_DEBUG, ObjectGuid::ToString(), Position::ToString(), GameObjectTemplate::type, UNIT_DYNFLAG_LOOTABLE, UNIT_FLAG_LOOTING, Loot::unlootedCount, Group::UpdateLooterGuid(), urand(), and WorldPackets::Loot::LootResponse::Write().

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

◆ SendLootError()

◆ SendLootRelease()

void Player::SendLootRelease ( ObjectGuid  guid) const

◆ SendMailResult()

◆ SendMessageToSet() [1/2]

◆ SendMessageToSet() [2/2]

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

Reimplemented from WorldObject.

Definition at line 6152 of file Player.cpp.

References WorldObject::GetVisibilityRange(), SendDirectMessage(), and Cell::VisitWorldObjects().

◆ SendMessageToSetInRange() [1/2]

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

Reimplemented from WorldObject.

Definition at line 6134 of file Player.cpp.

References SendDirectMessage(), and Cell::VisitWorldObjects().

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

◆ SendMessageToSetInRange() [2/2]

void Player::SendMessageToSetInRange ( WorldPacket const *  data,
float  dist,
bool  self,
bool  own_team_only,
bool  required3dDist = false 
) const

Definition at line 6143 of file Player.cpp.

References SendDirectMessage(), and Cell::VisitWorldObjects().

◆ SendMirrorTimer()

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

Definition at line 614 of file Player.cpp.

References DISABLED_MIRROR_TIMER, SendDirectMessage(), and StopMirrorTimer().

Referenced by HandleDrowning().

◆ SendMovementSetCollisionHeight()

void Player::SendMovementSetCollisionHeight ( float  height)

◆ SendMovieStart()

◆ SendNewItem()

◆ SendNewMail()

void Player::SendNewMail ( ) const

◆ SendNotifyLootItemRemoved()

void Player::SendNotifyLootItemRemoved ( uint8  lootListId) const

◆ SendNotifyLootMoneyRemoved()

void Player::SendNotifyLootMoneyRemoved ( ) const

Definition at line 8475 of file Player.cpp.

References SendDirectMessage(), and WorldPackets::Loot::CoinRemoved::Write().

◆ SendOnCancelExpectedVehicleRideAura()

void Player::SendOnCancelExpectedVehicleRideAura ( ) const

◆ SendPlayerBound()

void Player::SendPlayerBound ( ObjectGuid const &  binderGuid,
uint32  areaId 
) const

Definition at line 16875 of file Player.cpp.

References SendDirectMessage(), and WorldPackets::Misc::PlayerBound::Write().

Referenced by Spell::EffectBind().

◆ SendPreparedGossip()

◆ SendPreparedQuest()

◆ SendProficiency()

◆ SendPushToPartyResponse()

◆ SendQuestComplete()

void Player::SendQuestComplete ( uint32  questId) const

Definition at line 16526 of file Player.cpp.

References SendDirectMessage(), and SMSG_QUESTUPDATE_COMPLETE.

Referenced by AreaExploredOrEventHappens().

◆ SendQuestConfirmAccept()

◆ SendQuestFailed()

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

Definition at line 16558 of file Player.cpp.

References SendDirectMessage(), and SMSG_QUESTGIVER_QUEST_FAILED.

Referenced by CanRewardQuest(), and FailQuest().

◆ SendQuestGiverStatusMultiple()

◆ SendQuestReward()

◆ SendQuestTimerFailed()

void Player::SendQuestTimerFailed ( uint32  questId) const

Definition at line 16569 of file Player.cpp.

References SendDirectMessage(), SMSG_QUESTUPDATE_FAILEDTIMER, and TC_LOG_DEBUG.

Referenced by FailQuest().

◆ SendQuestUpdate()

◆ SendQuestUpdateAddCreatureOrGo()

void Player::SendQuestUpdateAddCreatureOrGo ( Quest const *  quest,
ObjectGuid  guid,
uint32  creatureOrGOIdx,
uint16  oldCount,
uint16  addCount 
)

◆ SendQuestUpdateAddItem()

void Player::SendQuestUpdateAddItem ( Quest const *  quest,
uint32  itemIdx,
uint16  count 
) const

Definition at line 16621 of file Player.cpp.

References SendDirectMessage(), SMSG_QUESTUPDATE_ADD_ITEM, and TC_LOG_DEBUG.

◆ SendQuestUpdateAddPlayer()

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

◆ SendRaidDifficulty()

◆ SendRaidInfo()

◆ SendRefundInfo()

◆ SendRemoveControlBar()

void Player::SendRemoveControlBar ( ) const

Definition at line 20777 of file Player.cpp.

References SendDirectMessage(), and SMSG_PET_SPELLS.

Referenced by Unit::RemoveCharmedBy().

◆ SendResetFailedNotify()

void Player::SendResetFailedNotify ( uint32  mapid) const

Definition at line 20120 of file Player.cpp.

References SendDirectMessage(), and SMSG_RESET_FAILED_NOTIFY.

◆ SendResetInstanceFailed()

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

Definition at line 20183 of file Player.cpp.

References SendDirectMessage(), and SMSG_INSTANCE_RESET_FAILED.

Referenced by Group::ResetInstances().

◆ SendResetInstanceSuccess()

void Player::SendResetInstanceSuccess ( uint32  MapId) const

Definition at line 20176 of file Player.cpp.

References SendDirectMessage(), and SMSG_INSTANCE_RESET.

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

◆ SendRespecWipeConfirm()

◆ SendRespondInspectAchievements()

void Player::SendRespondInspectAchievements ( Player *  player) const

◆ SendSavedInstances()

void Player::SendSavedInstances ( )

◆ SendSellError()

◆ SendSummonRequestFrom()

◆ SendSupercededSpell()

void Player::SendSupercededSpell ( uint32  oldSpell,
uint32  newSpell 
) const

Definition at line 26357 of file Player.cpp.

References SendDirectMessage(), and SMSG_SUPERCEDED_SPELL.

Referenced by AddSpell(), and RemoveSpell().

◆ SendTalentsInfoData()

◆ SendTameFailure()

void Player::SendTameFailure ( uint8  result)

Definition at line 2809 of file Player.cpp.

References SendDirectMessage(), and SMSG_PET_TAME_FAILURE.

Referenced by spell_hun_tame_beast::CheckCast(), and Spell::CheckCast().

◆ SendTaxiNodeStatusMultiple()

◆ SendTransferAborted()

◆ SendUnlearnSpells()

◆ SendUpdateToOutOfRangeGroupMembers()

void Player::SendUpdateToOutOfRangeGroupMembers ( )

Definition at line 22551 of file Player.cpp.

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

Referenced by Heartbeat().

◆ SendUpdateWorldState()

◆ SetAcceptWhispers()

void Player::SetAcceptWhispers ( bool  on)
inline

◆ SetActiveTalentGroup()

void Player::SetActiveTalentGroup ( uint8  group)
inline

◆ SetAmmo()

◆ SetArenaFaction()

void Player::SetArenaFaction ( uint8  arenaFaction)
inline

Definition at line 1849 of file Player.h.

References PLAYER_BYTES_3, PLAYER_BYTES_3_OFFSET_ARENA_FACTION, and Object::SetByteValue().

Referenced by SetBGTeam().

◆ SetArenaPoints()

void Player::SetArenaPoints ( uint32  value)

◆ SetArenaTeamIdInvited()

void Player::SetArenaTeamIdInvited ( uint32  ArenaTeamId)
inline

◆ SetArenaTeamInfoField()

◆ SetAtLoginFlag()

void Player::SetAtLoginFlag ( AtLoginFlags  f)
inline

Definition at line 2102 of file Player.h.

◆ SetAuraUpdateMaskForRaid()

void Player::SetAuraUpdateMaskForRaid ( uint8  slot)
inline

Definition at line 2167 of file Player.h.

◆ SetBankBagSlotCount()

void Player::SetBankBagSlotCount ( uint8  count)
inline

◆ SetBaseModFlatValue()

void Player::SetBaseModFlatValue ( BaseModGroup  modGroup,
float  val 
)

Definition at line 4997 of file Player.cpp.

References m_auraBaseFlatMod, and UpdateBaseModGroup().

Referenced by UpdateWeaponDependentCritAuras().

◆ SetBaseModPctValue()

void Player::SetBaseModPctValue ( BaseModGroup  modGroup,
float  val 
)

◆ SetBaseRune()

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

Definition at line 2200 of file Player.h.

Referenced by InitRunes().

◆ SetBattlegroundEntryPoint()

◆ SetBattlegroundId()

◆ SetBattlegroundOrBattlefieldRaid()

◆ SetBeenGrantedLevelsFromRaF()

void Player::SetBeenGrantedLevelsFromRaF ( )
inline

Definition at line 992 of file Player.h.

References PLAYER_EXTRA_GRANTED_LEVELS_FROM_RAF.

Referenced by WorldSession::HandleAcceptGrantLevel().

◆ SetBGTeam()

◆ SetBindPoint()

void Player::SetBindPoint ( ObjectGuid  guid) const

◆ SetCanBlock()

void Player::SetCanBlock ( bool  value)

Definition at line 24067 of file Player.cpp.

References m_canBlock, and UpdateBlockPercentage().

Referenced by Spell::EffectBlock().

◆ SetCanDelayTeleport()

void Player::SetCanDelayTeleport ( bool  setting)
inlineprivate

Definition at line 2516 of file Player.h.

Referenced by RewardQuest(), and Update().

◆ SetCanParry()

void Player::SetCanParry ( bool  value)

Definition at line 24058 of file Player.cpp.

References m_canParry, and UpdateParryPercentage().

Referenced by Spell::EffectParry().

◆ SetCanTitanGrip()

void Player::SetCanTitanGrip ( bool  value,
uint32  penaltySpellId = 0,
int32  allowedItemClass = 0,
int32  allowedItemSubClassMask = 0 
)

◆ SetChampioningFaction()

void Player::SetChampioningFaction ( uint32  faction)
inline

Definition at line 2230 of file Player.h.

Referenced by AuraEffect::HandleAuraDummy().

◆ setCinematic()

void Player::setCinematic ( uint8  cine)
inline

Definition at line 1554 of file Player.h.

Referenced by WorldSession::HandlePlayerLogin().

◆ SetClientControl()

◆ SetCommandStatusOff()

◆ SetCommandStatusOn()

◆ SetContestedPvP()

◆ SetContestedPvPTimer()

void Player::SetContestedPvPTimer ( uint32  newTime)
inline

Definition at line 1583 of file Player.h.

Referenced by SetContestedPvP().

◆ SetCurrentRune()

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

Definition at line 2201 of file Player.h.

Referenced by ConvertRune(), and InitRunes().

◆ SetDailyQuestStatus()

◆ setDeathState()

◆ SetDelayedTeleportFlag()

void Player::SetDelayedTeleportFlag ( bool  setting)
inlineprivate

Definition at line 2518 of file Player.h.

Referenced by TeleportTo().

◆ SetDeveloper()

void Player::SetDeveloper ( bool  on)
inline

◆ SetDrunkValue()

◆ SetDungeonDifficultyID()

void Player::SetDungeonDifficultyID ( Difficulty  dungeon_difficulty)
inline

◆ SetEquipmentSet()

◆ SetFaceId()

void Player::SetFaceId ( uint8  face)
inline

Definition at line 1022 of file Player.h.

References PLAYER_BYTES, PLAYER_BYTES_OFFSET_FACE_ID, and Object::SetByteValue().

Referenced by Create(), and LoadFromDB().

◆ SetFacialStyle()

void Player::SetFacialStyle ( uint8  facialStyle)
inline

◆ SetFactionForRace()

◆ SetFallInformation()

◆ SetFreePrimaryProfessions()

void Player::SetFreePrimaryProfessions ( uint16  profs)
inline

Definition at line 1515 of file Player.h.

References PLAYER_CHARACTER_POINTS2, and Object::SetUInt32Value().

Referenced by AddSpell(), InitPrimaryProfessions(), and RemoveSpell().

◆ SetFreeTalentPoints()

◆ SetGameMaster()

◆ SetGlyph()

◆ SetGlyphSlot()

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

Definition at line 1505 of file Player.h.

References PLAYER_FIELD_GLYPH_SLOTS_1, and Object::SetUInt32Value().

Referenced by InitGlyphsForLevel().

◆ SetGMChat()

void Player::SetGMChat ( bool  on)
inline

Definition at line 981 of file Player.h.

References PLAYER_EXTRA_GM_CHAT.

Referenced by LoadFromDB().

◆ SetGMVisible()

◆ SetGrantableLevels()

void Player::SetGrantableLevels ( uint8  val)
inline

Definition at line 1832 of file Player.h.

Referenced by WorldSession::HandleAcceptGrantLevel().

◆ SetGroup()

◆ SetGroupInvite()

void Player::SetGroupInvite ( Group *  group)
inline

Definition at line 2158 of file Player.h.

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

◆ SetGroupUpdateFlag()

◆ SetGuildIdInvited()

void Player::SetGuildIdInvited ( ObjectGuid::LowType  GuildId)
inline

◆ SetGuildRank()

void Player::SetGuildRank ( uint8  rankId)
inline

◆ SetHairColorId()

void Player::SetHairColorId ( uint8  hairColor)
inline

◆ SetHairStyleId()

void Player::SetHairStyleId ( uint8  hairStyle)
inline

◆ SetHas310Flyer()

void Player::SetHas310Flyer ( bool  on)
inline

Definition at line 987 of file Player.h.

References PLAYER_EXTRA_HAS_310_FLYER.

Referenced by AddSpell(), and Has310Flyer().

◆ SetHasLevelBoosted()

void Player::SetHasLevelBoosted ( )
inline

Definition at line 994 of file Player.h.

References PLAYER_EXTRA_LEVEL_BOOSTED.

◆ SetHasRaceChanged()

void Player::SetHasRaceChanged ( )
inline

Definition at line 990 of file Player.h.

References PLAYER_EXTRA_HAS_RACE_CHANGED.

◆ SetHomebind()

◆ SetHonorPoints()

◆ SetInArenaTeam()

void Player::SetInArenaTeam ( uint32  ArenaTeamId,
uint8  slot,
uint8  type 
)

Definition at line 6712 of file Player.cpp.

References ARENA_TEAM_ID, ARENA_TEAM_TYPE, and SetArenaTeamInfoField().

Referenced by ArenaTeam::AddMember().

◆ SetInGameTime()

void Player::SetInGameTime ( uint32  time)
inline

Definition at line 1346 of file Player.h.

Referenced by WorldSession::HandlePlayerLogin().

◆ SetInGuild()

◆ SetInviteForBattlegroundQueueType()

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

◆ SetLastPetNumber()

void Player::SetLastPetNumber ( uint32  petnumber)
inline

Definition at line 2151 of file Player.h.

Referenced by Pet::LoadPetFromDB().

◆ SetLastPotionId()

void Player::SetLastPotionId ( uint32  item_id)
inline

Definition at line 1531 of file Player.h.

◆ SetLastRuneGraceTimer()

void Player::SetLastRuneGraceTimer ( uint8  index,
uint32  timer 
)
inline

Definition at line 1698 of file Player.h.

Referenced by AtExitCombat(), InitRunes(), Player(), and SetRuneCooldown().

◆ SetLastUsedRune()

void Player::SetLastUsedRune ( RuneType  type)
inline

Definition at line 2199 of file Player.h.

Referenced by Spell::TakeRunePower().

◆ SetLootGUID()

void Player::SetLootGUID ( ObjectGuid  guid)
inline

Definition at line 1701 of file Player.h.

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

◆ SetMap()

void Player::SetMap ( Map *  map)
overridevirtual

◆ SetMoney()

◆ SetMonthlyQuestStatus()

void Player::SetMonthlyQuestStatus ( uint32  quest_id)

Definition at line 22961 of file Player.cpp.

References m_MonthlyQuestChanged, and m_monthlyquests.

Referenced by RewardQuest().

◆ SetMovie()

void Player::SetMovie ( uint32  movie)
inline

Definition at line 1557 of file Player.h.

Referenced by WorldSession::HandleCompleteMovie(), and SendMovieStart().

◆ SetMultiActionBars()

void Player::SetMultiActionBars ( uint8  mask)
inline

◆ SetNativeGender()

void Player::SetNativeGender ( Gender  gender)
inlineoverridevirtual

◆ SetNeedsZoneUpdate()

void Player::SetNeedsZoneUpdate ( bool  needsUpdate)
inline

Definition at line 1574 of file Player.h.

Referenced by WorldSession::HandleZoneUpdateOpcode().

◆ SetNoRegentCostMask()

void Player::SetNoRegentCostMask ( flag96  mask)
inline

Definition at line 1107 of file Player.h.

References PLAYER_NO_REAGENT_COST_1, and Object::SetUInt32Value().

Referenced by AuraEffect::HandleNoReagentUseAura().

◆ SetObjectScale()

void Player::SetObjectScale ( float  scale)
overridevirtual

◆ SetOriginalGroup()

◆ SetPassOnGroupLoot()

void Player::SetPassOnGroupLoot ( bool  bPassOnGroupLoot)
inline

Definition at line 2179 of file Player.h.

Referenced by WorldSession::HandleOptOutOfLootOpcode().

◆ SetPendingBind()

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

◆ SetPhaseMask()

void Player::SetPhaseMask ( uint32  newPhaseMask,
bool  update 
)
overridevirtual

◆ SetPvP()

void Player::SetPvP ( bool  state)
overridevirtual

Reimplemented from Unit.

Definition at line 21677 of file Player.cpp.

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

Referenced by UpdatePvP().

◆ SetPvPDeath()

void Player::SetPvPDeath ( bool  on)
inline

Definition at line 988 of file Player.h.

References PLAYER_EXTRA_PVP_DEATH.

Referenced by CreateCorpse().

◆ SetQuestSharingInfo()

void Player::SetQuestSharingInfo ( ObjectGuid  guid,
uint32  id 
)
inline

◆ SetQuestSlot()

◆ SetQuestSlotCounter()

void Player::SetQuestSlotCounter ( uint16  slot,
uint8  counter,
uint16  count 
)

◆ SetQuestSlotState()

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

◆ SetQuestSlotTimer()

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

Definition at line 16004 of file Player.cpp.

References MAX_QUEST_OFFSET, PLAYER_QUEST_LOG_1_1, QUEST_TIME_OFFSET, and Object::SetUInt32Value().

Referenced by FailQuest().

◆ SetQuestStatus()

void Player::SetQuestStatus ( uint32  questId,
QuestStatus  status,
bool  update = true 
)

◆ SetRaidDifficultyID()

void Player::SetRaidDifficultyID ( Difficulty  raid_difficulty)
inline

◆ SetRandomWinner()

void Player::SetRandomWinner ( bool  isWinner)

◆ setRegenTimerCount()

void Player::setRegenTimerCount ( uint32  time)
inline

Definition at line 1389 of file Player.h.

Referenced by AuraEffect::HandleAuraTransform().

◆ SetRegularAttackTime()

void Player::SetRegularAttackTime ( )

◆ SetReputation()

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

Definition at line 25841 of file Player.cpp.

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

◆ SetRestBonus()

◆ SetRestFlag()

void Player::SetRestFlag ( RestFlag  restFlag,
uint32  triggerId = 0 
)

◆ SetRestState()

void Player::SetRestState ( uint8  restState)
inline

Definition at line 1036 of file Player.h.

References PLAYER_BYTES_2, PLAYER_BYTES_2_OFFSET_REST_STATE, and Object::SetByteValue().

Referenced by Create(), LoadFromDB(), and SetRestBonus().

◆ SetResurrectRequestData()

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

◆ SetRewardedQuest()

void Player::SetRewardedQuest ( uint32  quest_id)

◆ SetRuneConvertAura()

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

Definition at line 24351 of file Player.cpp.

References RuneInfo::ConvertAuras, m_runes, and Runes::runes.

Referenced by AddRuneByAuraEffect(), and InitRunes().

◆ SetRuneCooldown()

◆ SetRuneTimer()

void Player::SetRuneTimer ( uint8  index,
uint32  timer 
)
inline

Definition at line 1696 of file Player.h.

Referenced by AtExitCombat(), InitRunes(), Player(), SetRuneCooldown(), and Update().

◆ SetSaveTimer()

void Player::SetSaveTimer ( uint32  timer)
inline

Definition at line 2063 of file Player.h.

◆ SetSeasonalQuestStatus()

void Player::SetSeasonalQuestStatus ( uint32  quest_id)

◆ SetSeer()

void Player::SetSeer ( WorldObject *  target)
inline

Definition at line 2056 of file Player.h.

Referenced by WorldSession::HandleFarSightOpcode(), and SetViewpoint().

◆ SetSelection()

void Player::SetSelection ( ObjectGuid const &  guid)
inline

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

Definition at line 1408 of file Player.h.

References Object::SetGuidValue(), and UNIT_FIELD_TARGET.

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

◆ SetSemaphoreTeleportFar()

void Player::SetSemaphoreTeleportFar ( bool  semphsetting)
inline

Definition at line 1810 of file Player.h.

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

◆ SetSemaphoreTeleportNear()

void Player::SetSemaphoreTeleportNear ( bool  semphsetting)
inline

Definition at line 1809 of file Player.h.

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

◆ SetSheath()

void Player::SetSheath ( SheathState  sheathed)
overridevirtual

◆ SetSkill()

◆ SetSkillLineId()

void Player::SetSkillLineId ( uint32  pos,
uint16  skillLineId 
)
inline

◆ SetSkillMaxRank()

void Player::SetSkillMaxRank ( uint32  pos,
uint16  max 
)
inline

◆ SetSkillPermBonus()

void Player::SetSkillPermBonus ( uint32  pos,
uint16  bonus 
)
inline

◆ SetSkillRank()

◆ SetSkillStep()

void Player::SetSkillStep ( uint32  pos,
uint16  step 
)
inline

◆ SetSkillTempBonus()

void Player::SetSkillTempBonus ( uint32  pos,
int16  bonus 
)
inline

◆ SetSkinId()

void Player::SetSkinId ( uint8  skin)
inline

◆ SetSpellModTakingSpell()

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

Definition at line 20930 of file Player.cpp.

References m_spellModTakingSpell.

Referenced by Spell::_cast(), Spell::cast(), Spell::handle_delayed(), and Aura::UpdateOwner().

◆ SetTalentGroupsCount()

void Player::SetTalentGroupsCount ( uint8  count)
inline

Definition at line 1483 of file Player.h.

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

◆ SetTalentResetCost()

void Player::SetTalentResetCost ( uint32  cost)
inline

Definition at line 1477 of file Player.h.

Referenced by LoadFromDB().

◆ SetTalentResetTime()

void Player::SetTalentResetTime ( time_t  time_)
inline

Definition at line 1479 of file Player.h.

Referenced by LoadFromDB().

◆ SetTarget()

void Player::SetTarget ( ObjectGuid const &  )
inlineoverridevirtual

Implements Unit.

Definition at line 1407 of file Player.h.

◆ SetTaxiCheater()

void Player::SetTaxiCheater ( bool  on)
inline

◆ SetTemporaryUnsummonedPetNumber()

void Player::SetTemporaryUnsummonedPetNumber ( uint32  petnumber)
inline

Definition at line 2113 of file Player.h.

Referenced by Pet::LoadPetFromDB().

◆ SetTitle()

◆ SetUsedTalentCount()

void Player::SetUsedTalentCount ( uint32  talents)
inline

Definition at line 1473 of file Player.h.

Referenced by ActivateTalentGroup(), AddSpell(), and RemoveSpell().

◆ SetViewpoint()

◆ SetVirtualItemSlot()

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

◆ SetVisibleItemSlot()

◆ setWeaponChangeTimer()

void Player::setWeaponChangeTimer ( uint32  time)
inline

Definition at line 1390 of file Player.h.

◆ SetWeeklyQuestStatus()

void Player::SetWeeklyQuestStatus ( uint32  quest_id)

Definition at line 22945 of file Player.cpp.

References m_WeeklyQuestChanged, and m_weeklyquests.

Referenced by RewardQuest().

◆ SetXP()

void Player::SetXP ( uint32  xp)
inline

◆ SpawnCorpseBones()

◆ SplitItem()

◆ StartTimedAchievement()

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

◆ StopCastingBindSight()

◆ StopCastingCharm()

◆ StopMirrorTimer()

void Player::StopMirrorTimer ( MirrorTimerType  Type)
protected

◆ StopMirrorTimers()

void Player::StopMirrorTimers ( )

Definition at line 725 of file Player.cpp.

References BREATH_TIMER, FATIGUE_TIMER, FIRE_TIMER, and StopMirrorTimer().

Referenced by BuildPlayerRepop(), and KillPlayer().

◆ StoreItem()

◆ StoreLootItem()

◆ StoreNewItem()

Item * Player::StoreNewItem ( ItemPosCountVec const &  pos,
uint32  itemId,
bool  update,
int32  randomPropertyId = 0,
GuidSet const &  allowedLooters = GuidSet() 
)

◆ StoreNewItemInBestSlots()

◆ SummonIfPossible()

◆ SummonPet()

Pet * Player::SummonPet ( uint32  entry,
float  x,
float  y,
float  z,
float  ang,
PetType  petType,
uint32  despwtime 
)

◆ SwapItem()

◆ SwapQuestSlot()

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

◆ TakeQuestSourceItem()

◆ TalkedToCreature()

◆ TeamForRace()

◆ TeamIdForRace()

TeamId Player::TeamIdForRace ( uint8  race)
static

Definition at line 6288 of file Player.cpp.

References sChrRacesStore, TC_LOG_ERROR, and TEAM_NEUTRAL.

◆ TeleportTo() [1/2]

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

Definition at line 1539 of file Player.cpp.

References Unit::AddUnitMovementFlag(), 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(), ObjectGuid::Empty, Unit::ExitVehicle(), MapEntry::Expansion(), GetBattleground(), Unit::GetClass(), Unit::GetGameObject(), Object::GetGUID(), Object::GetGuidValue(), WorldObject::GetMap(), WorldLocation::GetMapId(), Unit::GetMotionMaster(), WorldObject::GetName(), Position::GetOrientation(), GetPet(), Position::GetPosition(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetSession(), WorldObject::GetTransport(), Unit::GetUnitMovementFlags(), WorldObject::GetVisibilityRange(), HasSpell(), WorldPackets::Movement::ShipTransferPending::ID, InBattleground(), Unit::InterruptNonMeleeSpells(), MotionMaster::InterruptOnTeleport(), Unit::IsAlive(), MapEntry::IsBattleArena(), MapEntry::IsBattlegroundOrArena(), IsBeingTeleportedNear(), IsCanDelayTeleport(), DisableMgr::IsDisabledFor(), IsGameMaster(), IsHasDelayedTeleport(), Object::IsInWorld(), Unit::IsMovedByClient(), Unit::IsNonMeleeSpellCast(), MapManager::IsValidMapCoord(), WorldObject::IsWithinDist3d(), LeaveBattleground(), WorldObject::m_movementInfo, m_teleport_dest, m_teleport_options, Unit::m_vehicle, WorldPackets::Movement::TransferPending::MapID, WorldPackets::Movement::NewWorld::MapID, MOVEMENTFLAG_MASK_HAS_PLAYER_STATUS_OPCODE, MOVEMENTFLAG_ONTRANSPORT, WorldPackets::Movement::ShipTransferPending::OriginMapID, PLAYER_DUEL_ARBITER, MovementInfo::TransportInfo::pos, WorldPackets::Movement::NewWorld::Pos, Unit::PurgeAndApplyPendingMovementChanges(), rbac::RBAC_PERM_SKIP_CHECK_DISABLE_MAP, Unit::RemoveAllDynObjects(), Unit::RemoveArenaAuras(), RemoveArenaSpellCooldowns(), Unit::RemoveAurasWithInterruptFlags(), Map::RemovePlayerFromMap(), RepopAtGraveyard(), ResetContestedPvP(), ResurrectPlayer(), SendDirectMessage(), SendSavedInstances(), Unit::SendTeleportPacket(), SendTransferAborted(), SetDelayedTeleportFlag(), SetFallInformation(), SetSelection(), SetSemaphoreTeleportFar(), SetSemaphoreTeleportNear(), Unit::SetUnitMovementFlags(), WorldPackets::Movement::TransferPending::Ship, sMapMgr, sMapStore, TC_LOG_DEBUG, TC_LOG_ERROR, TELE_REVIVE_AT_TELEPORT, TELE_TO_NOT_LEAVE_COMBAT, TELE_TO_NOT_LEAVE_TRANSPORT, TELE_TO_NOT_UNSUMMON_PET, TELE_TO_SPELL, TELE_TO_TRANSPORT_TELEPORT, Position::ToString(), TRANSFER_ABORT_INSUF_EXPAN_LVL, TRANSFER_ABORT_MAP_NOT_ALLOWED, TRANSFER_ABORT_UNIQUE_MESSAGE, MovementInfo::transport, UnsummonPetTemporaryIfAny(), UpdatePosition(), WorldLocation::WorldLocation(), WorldPackets::Movement::TransferPending::Write(), and WorldPackets::Movement::NewWorld::Write().

Referenced by ActivateTaxiPathTo(), Transport::DelayedTeleportTransport(), FlightPathMovementGenerator::DoFinalize(), go_commandscript::DoTeleport(), Spell::EffectTeleportUnits(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), go_commandscript::HandleGoBossCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoInstanceCommand(), go_commandscript::HandleGoZoneXYCommand(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandleMoveSplineDoneOpcode(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandlePlayerLogin(), spell_ioc_gunship_portal::HandleScript(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleCommand(), tele_commandscript::HandleTeleGroupCommand(), misc_commandscript::HandleUnstuckCommand(), WorldSession::HandleWorldTeleportOpcode(), npc_wg_spirit_guide::OnGossipSelect(), lfg::LFGPlayerScript::OnMapChanged(), BattlefieldWG::OnPlayerJoinWar(), at_icc_saurfang_portal::OnTrigger(), Battlefield::PlayerAskToLeave(), BfGraveyard::RelocateDeadPlayers(), Battleground::RelocateDeadPlayers(), Map::RemoveAllPlayers(), RepopAtGraveyard(), ResurrectUsingRequestData(), WorldSession::SendSpiritResurrect(), BattlegroundMgr::SendToBattleground(), SummonIfPossible(), lfg::LFGMgr::TeleportPlayer(), GmTicket::TeleportTo(), TeleportTo(), TeleportToBGEntryPoint(), BattlegroundSA::TeleportToEntrancePosition(), Update(), and GameObject::Use().

◆ TeleportTo() [2/2]

bool Player::TeleportTo ( WorldLocation const &  loc,
uint32  options = 0 
)

◆ TeleportToBGEntryPoint()

◆ TextEmote() [1/2]

void Player::TextEmote ( std::string_view  text,
WorldObject const *  = nullptr,
bool  = false 
)
overridevirtual

◆ TextEmote() [2/2]

void Player::TextEmote ( uint32  textId,
WorldObject const *  target = nullptr,
bool  isBossEmote = false 
)
overridevirtual

Reimplemented from Unit.

Definition at line 20511 of file Player.cpp.

References CHAT_MSG_EMOTE, CONFIG_LISTEN_RANGE_TEXTEMOTE, and sWorld.

◆ ToggleAFK()

◆ ToggleDND()

void Player::ToggleDND ( )

Definition at line 1518 of file Player.cpp.

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

Referenced by WorldSession::HandleChatMessage().

◆ ToggleMetaGemsActive()

◆ TradeCancel()

◆ UnbindInstance() [1/2]

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

◆ UnbindInstance() [2/2]

void Player::UnbindInstance ( uint32  mapid,
Difficulty  difficulty,
bool  unload = false 
)

◆ UninviteFromGroup()

void Player::UninviteFromGroup ( )
  • If the player is invited, remove him. If the group if then only 1 person, disband the group.

Definition at line 2335 of file Player.cpp.

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

Referenced by WorldSession::HandleGroupDeclineOpcode(), and WorldSession::LogoutPlayer().

◆ UnsummonPetTemporaryIfAny()

◆ Update()

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

Reimplemented from Unit.

Definition at line 920 of file Player.cpp.

References _cinematicMgr, _pendingBindId, _pendingBindTimer, _restTime, Unit::AIUpdateTick(), ATTACK_DISPLAY_DELAY, Unit::AttackerStateUpdate(), BASE_ATTACK, BindToInstance(), BuildPlayerRepop(), CheckDuelDistance(), CINEMATIC_UPDATEDIFF, CLASS_DEATH_KNIGHT, CombatManager::EndCombatBeyondRange(), FailQuest(), Unit::getAttackTimer(), Unit::GetClass(), Unit::GetCombatManager(), GetDrunkValue(), GameTime::GetGameTime(), GameTime::GetGameTimeMS(), Object::GetGUID(), GetInnTriggerId(), WorldObject::GetInstanceId(), WorldObject::GetMap(), GetMSTimeDiffToNow(), WorldObject::GetName(), GetPet(), GetRestBonus(), GetRuneCooldown(), GetRuneTimer(), GetSession(), Object::GetUInt32Value(), Unit::GetVictim(), WorldObject::GetVisibilityRange(), WorldObject::GetZoneAndAreaId(), HandleDrowning(), HandleSobering(), Unit::HasAuraType(), Object::HasFlag(), Position::HasInArc(), HasPendingBind(), HasRestFlag(), Unit::HasUnitState(), Unit::haveOffhandWeapon(), IN_MILLISECONDS, Unit::IsAlive(), Unit::isAttackReady(), Unit::IsGhouled(), IsHasDelayedTeleport(), IsInAreaTriggerRadius(), Object::IsInWorld(), Unit::isPossessed(), WorldObject::IsValidAttackTarget(), WorldObject::IsWithinDistInMap(), Unit::IsWithinMeleeRange(), JUST_DIED, KillPlayer(), LOGIN_UPD_MUTE_TIME, LoginDatabase, m_achievementMgr, CinematicMgr::m_activeCinematicCameraId, m_areaUpdateId, CinematicMgr::m_cinematicCamera, CinematicMgr::m_cinematicDiff, Unit::m_deathState, m_deathTimer, m_drunkTimer, m_hostileReferenceCheckTimer, m_Last_tick, CinematicMgr::m_lastCinematicCheck, WorldSession::m_muteTime, m_nextMailDelivereTime, m_nextSave, M_PI, m_Played_time, m_QuestStatus, m_QuestStatusSave, Unit::m_regenTimer, m_swingErrorMsg, m_teleport_dest, m_teleport_options, m_timedquests, m_weaponChangeTimer, m_zoneUpdateId, m_zoneUpdateTimer, MAX_RUNES, OFF_ATTACK, PET_SAVE_NOT_IN_SLOT, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_FLAGS, PLAYER_FLAGS_RESTING, PLAYER_NEXT_LEVEL_XP, QUEST_DEFAULT_SAVE_TYPE, RATE_REST_INGAME, RegenerateAll(), RemovePet(), RemoveRestFlag(), RepopAtGraveyard(), Unit::resetAttackTimer(), REST_FLAG_IN_TAVERN, roll_chance_i(), sAreaTriggerStore, SaveToDB(), SendAttackSwingBadFacingAttack(), SendAttackSwingCantAttack(), SendAttackSwingNotInRange(), SendNewMail(), Unit::setAttackTimer(), SetCanDelayTeleport(), PreparedStatementBase::setInt64(), SetPendingBind(), SetRestBonus(), SetRuneTimer(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), SPELL_AURA_PREVENT_RESURRECTION, sWorld, TC_LOG_DEBUG, TeleportTo(), QuestStatusData::Timer, Position::ToString(), UNIT_STATE_CASTING, UNIT_STATE_CHARGING, UNIT_STATE_MELEE_ATTACKING, unReadMails, Unit::Update(), UpdateAfkReport(), UpdateArea(), CinematicMgr::UpdateCinematicLocation(), UpdateContestedPvP(), UpdateDuelFlag(), UpdateEnchantTime(), UpdateHomebindTime(), UpdateItemDuration(), UpdatePvPFlag(), UpdateSoulboundTradeItems(), AchievementMgr::UpdateTimedAchievements(), UpdateZone(), and ZONE_UPDATE_INTERVAL.

Referenced by Map::Update().

◆ UpdateAchievementCriteria()

void Player::UpdateAchievementCriteria ( AchievementCriteriaTypes  type,
uint32  miscValue1 = 0,
uint32  miscValue2 = 0,
WorldObject *  ref = nullptr 
)

Definition at line 24914 of file Player.cpp.

References m_achievementMgr, and AchievementMgr::UpdateAchievementCriteria().

Referenced by KillRewarder::_RewardKillCredit(), ActivateTaxiPathTo(), AddSpell(), CheckAreaExplore(), Group::CountTheRoll(), Unit::DealDamage(), FlightPathMovementGenerator::DoUpdate(), DuelComplete(), Battleground::EndBattleground(), Arena::EndBattleground(), EnvironmentalDamage(), EquipItem(), EquipNewItem(), lfg::LFGMgr::FinishDungeon(), GiveLevel(), WorldSession::HandleAlterAppearance(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleBuyBankSlotOpcode(), HandleFall(), WorldSession::HandleGameobjectReportUse(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleLootRoll(), WorldSession::HandlePlayerLogin(), WorldSession::HandleQuestLogRemoveQuest(), reset_commandscript::HandleResetHonorCommand(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSendMail(), WorldSession::HandleTextEmoteOpcode(), IncreaseResetTalentsCostAndCounters(), Unit::Kill(), KilledMonsterCredit(), ArenaTeamMember::ModifyPersonalRating(), MoveItemToInventory(), QuickEquipItem(), RewardHonor(), RewardQuest(), AuctionHouseMgr::SendAuctionSuccessfulMail(), AuctionHouseMgr::SendAuctionWonMail(), setDeathState(), SetMoney(), ReputationMgr::SetOneFactionReputation(), SetSkill(), StoreLootItem(), StoreNewItem(), SummonIfPossible(), BattlegroundAB::UpdatePlayerScore(), BattlegroundAV::UpdatePlayerScore(), BattlegroundEY::UpdatePlayerScore(), BattlegroundWS::UpdatePlayerScore(), UpdateSkill(), UpdateSkillPro(), and GameObject::Use().

◆ UpdateAfkReport()

void Player::UpdateAfkReport ( time_t  currTime)

checks the 15 afk reports per 5 minutes limit

Definition at line 20201 of file Player.cpp.

References BGData::bgAfkReportedCount, BGData::bgAfkReportedTimer, m_bgData, and MINUTE.

Referenced by Update().

◆ UpdateAllCritPercentages()

◆ UpdateAllRatings()

void Player::UpdateAllRatings ( )

Definition at line 5398 of file Player.cpp.

References MAX_COMBAT_RATING, and UpdateRating().

Referenced by UpdateAllStats().

◆ UpdateAllSpellCritChances()

◆ UpdateAllStats()

◆ UpdateAllWeaponDependentCritAuras()

void Player::UpdateAllWeaponDependentCritAuras ( )

◆ UpdateArea()

◆ UpdateAreaDependentAuras()

void Player::UpdateAreaDependentAuras ( uint32  area_id)

◆ UpdateArmor()

◆ UpdateArmorPenetration()

void Player::UpdateArmorPenetration ( int32  amount)

◆ UpdateAttackPowerAndDamage()

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

Implements Unit.

Definition at line 340 of file StatSystem.cpp.

References BASE_ATTACK, CalculatePct(), Unit::CanDualWield(), CLASS_DEATH_KNIGHT, CLASS_DRUID, CLASS_HUNTER, CLASS_MAGE, CLASS_PALADIN, CLASS_PRIEST, CLASS_ROGUE, CLASS_SHAMAN, CLASS_WARLOCK, CLASS_WARRIOR, CLASSMASK_WAND_USERS, EFFECT_0, EFFECT_1, EQUIPMENT_SLOT_MAINHAND, FlatNegative, FlatPositive, FORM_BEAR, FORM_CAT, FORM_DIREBEAR, FORM_MOONKIN, Unit::GetAttackPowerModifierValue(), Unit::GetAuraEffect(), Unit::GetAuraEffectsByType(), Unit::GetClass(), Unit::GetClassMask(), Unit::GetGuardianPet(), Unit::GetLevel(), GetPet(), Unit::GetShapeshiftForm(), Unit::GetStat(), ItemTemplate::GetTotalAPBonus(), Unit::GetTotalAuraModifier(), Unit::haveOffhandWeapon(), Unit::IsHunterPet(), Unit::IsInFeralForm(), Minion::IsPetGhoul(), Minion::IsRisenAlly(), Minion::IsSpiritWolf(), m_baseFeralAP, m_items, Melee, OFF_ATTACK, Pct, Ranged, RANGED_ATTACK, Unit::SetAttackPower(), Unit::SetAttackPowerModNeg(), Unit::SetAttackPowerModPos(), Unit::SetAttackPowerMultiplier(), Unit::SetRangedAttackPower(), Unit::SetRangedAttackPowerModNeg(), Unit::SetRangedAttackPowerModPos(), Unit::SetRangedAttackPowerMultiplier(), SPELL_AURA_DUMMY, SPELL_AURA_MOD_ATTACK_POWER_OF_ARMOR, SPELL_AURA_MOD_ATTACK_POWER_OF_STAT_PERCENT, SPELL_AURA_MOD_RANGED_ATTACK_POWER_OF_STAT_PERCENT, SPELLFAMILY_DRUID, STAT_AGILITY, STAT_STRENGTH, Guardian::UpdateAttackPowerAndDamage(), Unit::UpdateDamagePhysical(), and UpdateSpellDamageAndHealingBonus().

Referenced by ApplyFeralAPBonus(), AuraEffect::HandleAuraModAttackPowerOfStatPercent(), AuraEffect::HandleAuraModRangedAttackPowerOfStatPercent(), InitDataForForm(), UpdateAllStats(), and UpdateStats().

◆ UpdateBaseModGroup()

◆ UpdateBlockPercentage()

◆ UpdateCombatSkills()

◆ UpdateContestedPvP()

void Player::UpdateContestedPvP ( uint32  currTime)

Definition at line 20235 of file Player.cpp.

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

Referenced by Update().

◆ UpdateCorpseReclaimDelay()

◆ UpdateCraftSkill()

◆ UpdateCritPercentage()

◆ UpdateDamageDoneMods()

◆ UpdateDefense()

void Player::UpdateDefense ( )

◆ UpdateDefenseBonusesMod()

◆ UpdateDodgePercentage()

◆ UpdateDuelFlag()

void Player::UpdateDuelFlag ( time_t  currTime)

◆ UpdateEnchantTime()

void Player::UpdateEnchantTime ( uint32  time)

Definition at line 13293 of file Player.cpp.

References ApplyEnchantment(), ASSERT, and m_enchantDuration.

Referenced by Update().

◆ UpdateEquipSpellsAtFormChange()

void Player::UpdateEquipSpellsAtFormChange ( )

◆ UpdateExpertise()

◆ UpdateFallInformationIfNeed()

void Player::UpdateFallInformationIfNeed ( MovementInfo const &  minfo,
uint16  opcode 
)

◆ UpdateFishingSkill()

◆ UpdateGatherSkill()

◆ UpdateHomebindTime()

◆ UpdateHonorFields()

◆ UpdateInvisibilityDrunkDetect()

◆ UpdateItemDuration()

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

◆ UpdateLocalChannels()

◆ UpdateMaxHealth()

◆ UpdateMaxPower()

◆ UpdateMeleeHitChances()

void Player::UpdateMeleeHitChances ( )

Definition at line 862 of file StatSystem.cpp.

References CR_HIT_MELEE, GetRatingBonusValue(), and Unit::m_modMeleeHitChance.

Referenced by UpdateRating().

◆ UpdateMirrorTimers()

void Player::UpdateMirrorTimers ( )

Definition at line 718 of file Player.cpp.

References m_MirrorTimerFlags, and m_MirrorTimerFlagsLast.

Referenced by AuraEffect::HandleWaterBreathing().

◆ UpdateNextMailTimeAndUnreads()

void Player::UpdateNextMailTimeAndUnreads ( )

◆ UpdateObjectVisibility()

◆ UpdateParryPercentage()

◆ UpdatePosition() [1/2]

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

◆ UpdatePosition() [2/2]

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

◆ UpdatePotionCooldown()

◆ UpdatePowerRegen()

◆ UpdatePvP()

◆ UpdatePvPFlag()

void Player::UpdatePvPFlag ( time_t  currTime)

◆ UpdatePvPState()

◆ UpdateRangedHitChances()

void Player::UpdateRangedHitChances ( )

Definition at line 867 of file StatSystem.cpp.

References CR_HIT_RANGED, GetRatingBonusValue(), and Unit::m_modRangedHitChance.

Referenced by UpdateRating().

◆ UpdateRating()

◆ UpdateResistances()

void Player::UpdateResistances ( uint32  school)
overridevirtual

◆ UpdateRuneRegen()

void Player::UpdateRuneRegen ( RuneType  rune)

◆ UpdateShieldBlockValue()

void Player::UpdateShieldBlockValue ( )

◆ UpdateSkill()

◆ UpdateSkillEnchantments()

◆ UpdateSkillPro()

◆ UpdateSkillsForLevel()

void Player::UpdateSkillsForLevel ( )

◆ UpdateSoulboundTradeItems()

void Player::UpdateSoulboundTradeItems ( )

◆ UpdateSpeakTime()

◆ UpdateSpellCritChance()

◆ UpdateSpellDamageAndHealingBonus()

◆ UpdateSpellHitChances()

◆ UpdateStats()

◆ UpdateTalentGroupCount()

◆ UpdateTriggerVisibility()

◆ UpdateVisibilityForPlayer()

◆ UpdateVisibilityOf() [1/2]

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

◆ UpdateVisibilityOf() [2/2]

◆ UpdateVisibleGameobjectsOrSpellClicks()

◆ UpdateWeaponDependentAuras()

void Player::UpdateWeaponDependentAuras ( WeaponAttackType  attackType)

◆ UpdateWeaponDependentCritAuras()

◆ UpdateWeaponSkill()

◆ UpdateWeaponsSkillsToMaxSkillsForLevel()

◆ UpdateZone()

◆ UpdateZoneDependentAuras()

void Player::UpdateZoneDependentAuras ( uint32  zone_id)

Definition at line 23754 of file Player.cpp.

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

Referenced by UpdateZone().

◆ ValidateAppearance()

◆ VehicleSpellInitialize()

◆ VisualizeItem()

◆ Whisper() [1/2]

void Player::Whisper ( std::string_view  text,
Language  language,
Player *  receiver,
bool  = false 
)
overridevirtual

◆ Whisper() [2/2]

void Player::Whisper ( uint32  textId,
Player *  target,
bool  isBossWhisper = false 
)
overridevirtual

◆ WhisperAddon()

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

◆ Yell() [1/2]

void Player::Yell ( std::string_view  text,
Language  language,
WorldObject const *  = nullptr 
)
overridevirtual

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

Reimplemented from Unit.

Definition at line 20476 of file Player.cpp.

References CHAT_MSG_YELL, CONFIG_LISTEN_RANGE_YELL, WorldPackets::Chat::Chat::Initialize(), SendMessageToSetInRange(), sScriptMgr, sWorld, and WorldPackets::Chat::Chat::Write().

Referenced by WorldSession::HandleChatMessage().

◆ Yell() [2/2]

void Player::Yell ( uint32  textId,
WorldObject const *  target = nullptr 
)
overridevirtual

Reimplemented from Unit.

Definition at line 20486 of file Player.cpp.

References CHAT_MSG_YELL, CONFIG_LISTEN_RANGE_YELL, and sWorld.

Friends And Related Symbol Documentation

◆ AddItemToUpdateQueueOf

void AddItemToUpdateQueueOf ( Item *  item,
Player *  player 
)
friend

Definition at line 675 of file Item.cpp.

◆ CinematicMgr

friend class CinematicMgr
friend

Definition at line 904 of file Player.h.

Referenced by Player().

◆ RemoveItemFromUpdateQueueOf

void RemoveItemFromUpdateQueueOf ( Item *  item,
Player *  player 
)
friend

Definition at line 696 of file Item.cpp.

Referenced by MoveItemFromInventory().

◆ WorldSession

friend class WorldSession
friend

Definition at line 903 of file Player.h.

Member Data Documentation

◆ _activeCheats

uint32 Player::_activeCheats
private

Definition at line 2560 of file Player.h.

Referenced by Player().

◆ _cinematicMgr

CinematicMgr* Player::_cinematicMgr
private

Definition at line 2503 of file Player.h.

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

◆ _corpseLocation

WorldLocation Player::_corpseLocation
private

Definition at line 2566 of file Player.h.

Referenced by CreateCorpse(), LoadCorpse(), RemovedInsignia(), and SpawnCorpseBones().

◆ _equipmentSets

EquipmentSetContainer Player::_equipmentSets
protected

◆ _pendingBindId

uint32 Player::_pendingBindId
private

Definition at line 2557 of file Player.h.

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

◆ _pendingBindTimer

uint32 Player::_pendingBindTimer
private

Definition at line 2558 of file Player.h.

Referenced by SetPendingBind(), and Update().

◆ _restFlagMask

uint32 Player::_restFlagMask
protected

Definition at line 2457 of file Player.h.

Referenced by Player(), RemoveRestFlag(), and SetRestFlag().

◆ _restTime

time_t Player::_restTime
protected

Definition at line 2454 of file Player.h.

Referenced by Player(), RemoveRestFlag(), SetRestFlag(), and Update().

◆ _resurrectionData

std::unique_ptr<ResurrectionData> Player::_resurrectionData
protected

◆ _talentMgr

PlayerTalentInfo* Player::_talentMgr
protected

◆ autoReplyMsg

std::string Player::autoReplyMsg

Definition at line 956 of file Player.h.

Referenced by WorldSession::HandleChatMessage(), and Whisper().

◆ duel

◆ healthBeforeDuel

uint32 Player::healthBeforeDuel
private

Definition at line 2563 of file Player.h.

Referenced by Player().

◆ inn_triggerId

uint32 Player::inn_triggerId
protected

Definition at line 2455 of file Player.h.

Referenced by Player(), and SetRestFlag().

◆ isDebugAreaTriggers

bool Player::isDebugAreaTriggers

◆ ItemSetEff

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

◆ m_achievementMgr

◆ m_actionButtons

◆ m_ammoDPS

float Player::m_ammoDPS
protected

Definition at line 2451 of file Player.h.

Referenced by _ApplyAmmoBonuses(), Player(), and RemoveAmmo().

◆ m_areaUpdateId

uint32 Player::m_areaUpdateId
protected

Definition at line 2437 of file Player.h.

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

◆ m_ArenaTeamIdInvited

uint32 Player::m_ArenaTeamIdInvited
protected

Definition at line 2388 of file Player.h.

Referenced by Player().

◆ m_ArmorProficiency

uint32 Player::m_ArmorProficiency
protected

Definition at line 2443 of file Player.h.

Referenced by Player().

◆ m_atLoginFlags

uint32 Player::m_atLoginFlags
protected

Definition at line 2369 of file Player.h.

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

◆ m_auraBaseFlatMod

float Player::m_auraBaseFlatMod[BASEMOD_END]
protected

◆ m_auraBasePctMod

float Player::m_auraBasePctMod[BASEMOD_END]
protected

◆ m_auraRaidUpdateMask

uint64 Player::m_auraRaidUpdateMask
protected

Definition at line 2468 of file Player.h.

Referenced by Player(), and SendUpdateToOutOfRangeGroupMembers().

◆ m_baseFeralAP

uint32 Player::m_baseFeralAP
protected

Definition at line 2402 of file Player.h.

Referenced by ApplyFeralAPBonus(), Player(), and UpdateAttackPowerAndDamage().

◆ m_baseHealthRegen

uint32 Player::m_baseHealthRegen
protected

Definition at line 2404 of file Player.h.

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

◆ m_baseManaRegen

uint32 Player::m_baseManaRegen
protected

Definition at line 2403 of file Player.h.

Referenced by ApplyManaRegenBonus(), Player(), and UpdatePowerRegen().

◆ m_baseRatingValue

int16 Player::m_baseRatingValue[MAX_COMBAT_RATING]
protected

Definition at line 2400 of file Player.h.

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

◆ m_baseSpellPower

uint32 Player::m_baseSpellPower
protected

Definition at line 2401 of file Player.h.

Referenced by ApplySpellPowerBonus(), and Player().

◆ m_bCanDelayTeleport

bool Player::m_bCanDelayTeleport
private

Definition at line 2543 of file Player.h.

Referenced by Player().

◆ m_bgBattlegroundQueueID

◆ m_bgData

◆ m_bHasDelayedTeleport

bool Player::m_bHasDelayedTeleport
private

Definition at line 2544 of file Player.h.

Referenced by Player().

◆ m_boundInstances

◆ m_bPassOnGroupLoot

bool Player::m_bPassOnGroupLoot
protected

Definition at line 2469 of file Player.h.

Referenced by Player().

◆ m_canBlock

bool Player::m_canBlock
protected

Definition at line 2445 of file Player.h.

Referenced by Player(), and SetCanBlock().

◆ m_canParry

bool Player::m_canParry
protected

Definition at line 2444 of file Player.h.

Referenced by Player(), and SetCanParry().

◆ m_canTitanGrip

bool Player::m_canTitanGrip
protected

Definition at line 2446 of file Player.h.

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

◆ m_ChampioningFaction

uint32 Player::m_ChampioningFaction
private

Definition at line 2555 of file Player.h.

Referenced by Player().

◆ m_channels

JoinedChannelsList Player::m_channels
protected

◆ m_chatFloodData

std::array<ChatFloodThrottle, ChatFloodThrottle::MAX> Player::m_chatFloodData
protected

Definition at line 2365 of file Player.h.

Referenced by UpdateSpeakTime().

◆ m_cinematic

uint8 Player::m_cinematic
protected

Definition at line 2419 of file Player.h.

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

◆ m_clientGUIDs

◆ m_contestedPvPTimer

uint32 Player::m_contestedPvPTimer
protected

Definition at line 2258 of file Player.h.

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

◆ m_currentBuybackSlot

uint32 Player::m_currentBuybackSlot
protected

Definition at line 2372 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 2481 of file Player.h.

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

◆ m_DelayedOperations

uint32 Player::m_DelayedOperations
private

Definition at line 2542 of file Player.h.

Referenced by Player(), and ProcessDelayedOperations().

◆ m_DFQuests

◆ m_drunkTimer

uint32 Player::m_drunkTimer
protected

Definition at line 2432 of file Player.h.

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

◆ m_dungeonDifficulty

Difficulty Player::m_dungeonDifficulty
protected

Definition at line 2366 of file Player.h.

Referenced by GetDifficultyID(), and Player().

◆ m_enchantDuration

◆ m_ExtraFlags

◆ m_fishingSteps

uint8 Player::m_fishingSteps
protected

Definition at line 2491 of file Player.h.

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

◆ m_foodEmoteTimerCount

uint32 Player::m_foodEmoteTimerCount
protected

Definition at line 2255 of file Player.h.

Referenced by Player(), and RegenerateAll().

◆ m_grantableLevels

uint8 Player::m_grantableLevels
protected

Definition at line 2489 of file Player.h.

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

◆ m_group

GroupReference Player::m_group
protected

◆ m_groupInvite

Group* Player::m_groupInvite
protected

Definition at line 2466 of file Player.h.

◆ m_groupUpdateMask

uint32 Player::m_groupUpdateMask
protected

Definition at line 2467 of file Player.h.

Referenced by Player(), and SendUpdateToOutOfRangeGroupMembers().

◆ m_GuildIdInvited

ObjectGuid::LowType Player::m_GuildIdInvited
protected

Definition at line 2387 of file Player.h.

Referenced by Player().

◆ m_healthFraction

float Player::m_healthFraction
protected

Definition at line 2256 of file Player.h.

Referenced by Player(), and RegenerateHealth().

◆ m_homebindAreaId

uint16 Player::m_homebindAreaId

Definition at line 2074 of file Player.h.

Referenced by _LoadHomeBind(), Player(), SendBindPointUpdate(), and SetHomebind().

◆ m_homebindMapId

◆ m_HomebindTimer

uint32 Player::m_HomebindTimer

Definition at line 2131 of file Player.h.

Referenced by Player(), and UpdateHomebindTime().

◆ m_homebindX

◆ m_homebindY

◆ m_homebindZ

◆ m_hostileReferenceCheckTimer

uint32 Player::m_hostileReferenceCheckTimer
protected

Definition at line 2431 of file Player.h.

Referenced by Player(), and Update().

◆ m_ingametime

uint32 Player::m_ingametime
protected

Definition at line 2293 of file Player.h.

Referenced by Player().

◆ m_InstanceValid

◆ m_IsBGRandomWinner

bool Player::m_IsBGRandomWinner
protected

Definition at line 2276 of file Player.h.

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

◆ m_itemDuration

ItemDurationList Player::m_itemDuration
protected

◆ m_items

◆ m_itemSoulboundTradeable

GuidUnorderedSet Player::m_itemSoulboundTradeable
protected

Definition at line 2411 of file Player.h.

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

◆ m_itemUpdateQueue

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

Definition at line 2374 of file Player.h.

Referenced by _SaveInventory().

◆ m_itemUpdateQueueBlocked

bool Player::m_itemUpdateQueueBlocked
protected

Definition at line 2375 of file Player.h.

Referenced by _LoadInventory(), and Player().

◆ m_Last_tick

time_t Player::m_Last_tick

Definition at line 1012 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 2525 of file Player.h.

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

◆ m_lastFallZ

float Player::m_lastFallZ
private

Definition at line 2526 of file Player.h.

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

◆ m_lastHonorUpdateTime

time_t Player::m_lastHonorUpdateTime
protected

Definition at line 2358 of file Player.h.

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

◆ m_lastpetnumber

uint32 Player::m_lastpetnumber
protected

Definition at line 2472 of file Player.h.

Referenced by Player().

◆ m_lastPotionId

uint32 Player::m_lastPotionId
protected

Definition at line 2392 of file Player.h.

Referenced by Player(), and UpdatePotionCooldown().

◆ m_lastRuneGraceTimers

uint32 Player::m_lastRuneGraceTimers[MAX_RUNES]
private

Definition at line 2534 of file Player.h.

◆ m_logintime

time_t Player::m_logintime

Definition at line 1011 of file Player.h.

Referenced by AddItemToBuyBackSlot(), and Player().

◆ m_lootGuid

ObjectGuid Player::m_lootGuid
protected

Definition at line 2361 of file Player.h.

◆ m_mail

PlayerMails Player::m_mail
protected

◆ m_mailsUpdated

◆ m_mapRef

MapReference Player::m_mapRef
private

Definition at line 2523 of file Player.h.

Referenced by SetMap().

◆ m_MirrorTimer

int32 Player::m_MirrorTimer[MAX_TIMERS]
private

Definition at line 2528 of file Player.h.

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

◆ m_MirrorTimerFlags

uint8 Player::m_MirrorTimerFlags
private

Definition at line 2529 of file Player.h.

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

◆ m_MirrorTimerFlagsLast

uint8 Player::m_MirrorTimerFlagsLast
private

Definition at line 2530 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_movie

uint32 Player::m_movie
protected

Definition at line 2421 of file Player.h.

Referenced by Player().

◆ m_needsZoneUpdate

bool Player::m_needsZoneUpdate
protected

Definition at line 2493 of file Player.h.

Referenced by Player(), and UpdatePosition().

◆ m_nextMailDelivereTime

time_t Player::m_nextMailDelivereTime

Definition at line 1430 of file Player.h.

Referenced by AddNewMailDeliverTime(), Player(), Update(), and UpdateNextMailTimeAndUnreads().

◆ m_nextSave

uint32 Player::m_nextSave
protected

Definition at line 2364 of file Player.h.

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

◆ m_oldpetspell

uint32 Player::m_oldpetspell
private

Definition at line 2550 of file Player.h.

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

◆ m_originalGroup

GroupReference Player::m_originalGroup
protected

Definition at line 2465 of file Player.h.

Referenced by SetOriginalGroup().

◆ m_petAuras

std::unordered_set<PetAura const*> Player::m_petAuras

Definition at line 1055 of file Player.h.

Referenced by AddPetAura(), Pet::CastPetAuras(), Pet::IsPetAura(), and RemovePetAura().

◆ m_petStable

std::unique_ptr<PetStable> Player::m_petStable
private

Definition at line 2546 of file Player.h.

Referenced by _LoadPetStable(), GetOrInitPetStable(), LoadPet(), RemovePet(), and SaveToDB().

◆ m_Played_time

uint32 Player::m_Played_time[MAX_PLAYED_TIME_INDEX]

Definition at line 1013 of file Player.h.

Referenced by Create(), GiveLevel(), LoadFromDB(), Player(), SaveToDB(), and Update().

◆ m_playerSharingQuest

ObjectGuid Player::m_playerSharingQuest
protected

Definition at line 2291 of file Player.h.

◆ m_powerFraction

float Player::m_powerFraction[MAX_POWERS]
protected

Definition at line 2257 of file Player.h.

Referenced by Player(), and Regenerate().

◆ m_QuestStatus

◆ m_QuestStatusSave

◆ m_raidDifficulty

Difficulty Player::m_raidDifficulty
protected

Definition at line 2367 of file Player.h.

Referenced by GetDifficultyID(), and Player().

◆ m_recall_location

WorldLocation Player::m_recall_location
protected

Definition at line 2479 of file Player.h.

◆ m_refundableItems

GuidSet Player::m_refundableItems
private

Definition at line 2505 of file Player.h.

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

◆ m_regenTimerCount

uint32 Player::m_regenTimerCount
protected

Definition at line 2254 of file Player.h.

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

◆ m_reputationMgr

ReputationMgr* Player::m_reputationMgr
private

Definition at line 2553 of file Player.h.

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

◆ m_rest_bonus

float Player::m_rest_bonus
protected

Definition at line 2456 of file Player.h.

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

◆ m_RewardedQuests

◆ m_RewardedQuestsSave

QuestStatusSaveMap Player::m_RewardedQuestsSave
protected

Definition at line 2383 of file Player.h.

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

◆ m_runeGraceCooldown

uint32 Player::m_runeGraceCooldown[MAX_RUNES]
private

Definition at line 2533 of file Player.h.

◆ m_runes

◆ m_SeasonalQuestChanged

bool Player::m_SeasonalQuestChanged
protected

◆ m_seasonalquests

◆ m_seer

◆ m_session

WorldSession* Player::m_session
protected

◆ m_sharedQuestId

uint32 Player::m_sharedQuestId
protected

Definition at line 2292 of file Player.h.

Referenced by Player().

◆ m_social

PlayerSocial* Player::m_social
protected

Definition at line 2461 of file Player.h.

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

◆ m_spellMods

SpellModContainer Player::m_spellMods[MAX_SPELLMOD]
protected

Definition at line 2407 of file Player.h.

Referenced by AddSpellMod(), and ApplySpellMod().

◆ m_spellModTakingSpell

Spell* Player::m_spellModTakingSpell

Definition at line 2231 of file Player.h.

Referenced by ApplySpellMod(), Spell::cast(), Player(), SetSpellModTakingSpell(), and Spell::~Spell().

◆ m_spellPenetrationItemMod

int32 Player::m_spellPenetrationItemMod
protected

Definition at line 2405 of file Player.h.

Referenced by ApplySpellPenetrationBonus(), and Player().

◆ m_spells

◆ m_summon_expire

time_t Player::m_summon_expire
protected

Definition at line 2475 of file Player.h.

Referenced by HasSummonPending(), Player(), SendSummonRequestFrom(), and SummonIfPossible().

◆ m_summon_location

WorldLocation Player::m_summon_location
protected

Definition at line 2476 of file Player.h.

Referenced by SendSummonRequestFrom(), and SummonIfPossible().

◆ m_swingErrorMsg

uint8 Player::m_swingErrorMsg
protected

Definition at line 2450 of file Player.h.

Referenced by Player(), and Update().

◆ m_taxi

◆ m_team

uint32 Player::m_team
protected

Definition at line 2363 of file Player.h.

Referenced by Player(), and SetFactionForRace().

◆ m_teleport_dest

WorldLocation Player::m_teleport_dest
private

Definition at line 2537 of file Player.h.

Referenced by TeleportTo(), and Update().

◆ m_teleport_options

uint32 Player::m_teleport_options
private

Definition at line 2538 of file Player.h.

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

◆ m_temporaryUnsummonedPetNumber

uint32 Player::m_temporaryUnsummonedPetNumber
private

◆ m_timedquests

QuestSet Player::m_timedquests
protected

Definition at line 2286 of file Player.h.

Referenced by SatisfyQuestTimed(), and Update().

◆ m_titanGripArmorSubclasses

uint32 Player::m_titanGripArmorSubclasses
protected

Definition at line 2448 of file Player.h.

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

◆ m_titanGripPenaltySpellId

uint32 Player::m_titanGripPenaltySpellId
protected

Definition at line 2449 of file Player.h.

Referenced by CheckTitanGripPenalty(), Player(), RemoveSpell(), and SetCanTitanGrip().

◆ m_titanGripWeaponSubclasses

uint32 Player::m_titanGripWeaponSubclasses
protected

Definition at line 2447 of file Player.h.

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

◆ m_trade

◆ m_weaponChangeTimer

uint32 Player::m_weaponChangeTimer
protected

Definition at line 2433 of file Player.h.

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

◆ m_WeaponProficiency

uint32 Player::m_WeaponProficiency
protected

Definition at line 2442 of file Player.h.

Referenced by 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 2435 of file Player.h.

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

◆ m_zoneUpdateTimer

uint32 Player::m_zoneUpdateTimer
protected

Definition at line 2436 of file Player.h.

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

◆ manaBeforeDuel

uint32 Player::manaBeforeDuel
private

Definition at line 2564 of file Player.h.

Referenced by Player().

◆ mMitems

ItemMap Player::mMitems

Definition at line 1434 of file Player.h.

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

◆ mSemaphoreTeleport_Far

bool Player::mSemaphoreTeleport_Far
private

Definition at line 2540 of file Player.h.

Referenced by Player().

◆ mSemaphoreTeleport_Near

bool Player::mSemaphoreTeleport_Near
private

Definition at line 2539 of file Player.h.

Referenced by Player().

◆ mSkillStatus

◆ PlayerTalkClass

PlayerMenu* Player::PlayerTalkClass

Definition at line 1956 of file Player.h.

Referenced by AddGossipItemFor(), AddGossipItemFor(), AddGossipItemFor(), AddQuestAndCheckCompletion(), ClearGossipMenuFor(), CloseGossipMenuFor(), Spell::EffectQuestStart(), GetGossipActionFor(), GetGossipSenderFor(), WorldSession::HandleGossipHelloOpcode(), OPvPCapturePointZM_Graveyard::HandleGossipOption(), WorldSession::HandleGossipSelectOptionOpcode(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestgiverCancel(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), WorldSession::HandleQuestgiverHelloOpcode(), WorldSession::HandleQuestgiverQueryQuestOpcode(), WorldSession::HandleQuestgiverRequestRewardOpcode(), WorldSession::HandleQuestgiverStatusQueryOpcode(), WorldSession::HandleQuestQueryOpcode(), InitGossipMenuFor(), npc_verdisa_beglaristrasz_eternos::OnGossipSelect(), npc_brann_bronzebeard_ulduar_intro::npc_brann_bronzebeard_ulduar_introAI::OnGossipSelect(), npc_lorekeeper::npc_lorekeeperAI::OnGossipSelect(), npc_sinclari_vh::OnGossipSelect(), npc_stable_master::npc_stable_masterAI::OnGossipSelect(), npc_lokhtos_darkbargainer::npc_lokhtos_darkbargainerAI::OnGossipSelect(), boss_gloomrel::boss_gloomrelAI::OnGossipSelect(), boss_doomrel::boss_doomrelAI::OnGossipSelect(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::OnGossipSelect(), npc_barnes::OnGossipSelect(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipSelect(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::OnGossipSelect(), npc_shadowfang_prisoner::npc_shadowfang_prisonerAI::OnGossipSelect(), npc_zulaman_hostage::npc_zulaman_hostageAI::OnGossipSelect(), npc_jaina_proudmoore::npc_jaina_proudmooreAI::OnGossipSelect(), npc_thrall::npc_thrallAI::OnGossipSelect(), npc_tyrande_whisperwind::npc_tyrande_whisperwindAI::OnGossipSelect(), npc_erozion::OnGossipSelect(), npc_thrall_old_hillsbrad::OnGossipSelect(), npc_taretha::OnGossipSelect(), npc_thrall_warchief::npc_thrall_warchiefAI::OnGossipSelect(), go_wind_stone::go_wind_stoneAI::OnGossipSelect(), npc_sergeant_bly::npc_sergeant_blyAI::OnGossipSelect(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::OnGossipSelect(), npc_announcer_toc5::npc_announcer_toc5AI::OnGossipSelect(), npc_jaina_or_sylvanas_intro_hor::npc_jaina_or_sylvanas_intro_horAI::OnGossipSelect(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::OnGossipSelect(), npc_brann_hos::OnGossipSelect(), npc_wg_demolisher_engineer::OnGossipSelect(), npc_wg_spirit_guide::OnGossipSelect(), npc_barada::npc_baradaAI::OnGossipSelect(), go_amberpine_outhouse::go_amberpine_outhouseAI::OnGossipSelect(), npc_innkeeper::npc_innkeeperAI::OnGossipSelect(), npc_prof_blacksmith::npc_prof_blacksmithAI::OnGossipSelect(), npc_engineering_tele_trinket::npc_engineering_tele_trinketAI::OnGossipSelect(), npc_prof_leather::npc_prof_leatherAI::OnGossipSelect(), npc_prof_tailor::npc_prof_tailorAI::OnGossipSelect(), npc_prof_alchemy::npc_prof_alchemyAI::OnGossipSelect(), npc_wormhole::npc_wormholeAI::OnGossipSelect(), npc_experience::npc_experienceAI::OnGossipSelect(), npc_argent_squire_gruntling::npc_argent_squire_gruntlingAI::OnGossipSelect(), npc_zafod_boombox::OnGossipSelect(), OnGossipSelect(), ScriptMgr::OnQuestAccept(), Player(), PrepareGossipMenu(), PrepareQuestMenu(), WorldSession::SendBindPoint(), SendGossipMenuFor(), SendInitialPacketsAfterAddToMap(), Spell::SendLoot(), SendPreparedGossip(), SendPreparedQuest(), and ~Player().

◆ pvpInfo

◆ unReadMails

◆ WhisperList

GuidList Player::WhisperList
protected

Definition at line 2253 of file Player.h.

Referenced by IsInWhisperWhiteList().


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