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

#include <Player.h>

+ Inheritance diagram for Player:

Classes

struct  BgBattlegroundQueueID_Rec
 
struct  ChatFloodThrottle
 
struct  ValuesUpdateForPlayerWithMaskSender
 

Public Types

typedef std::unordered_map< ObjectGuid::LowType, Item * > ItemMap
 
typedef std::list< Channel * > JoinedChannelsList
 
typedef std::set< uint32 > DFQuestsDoneList
 
- Public Types inherited from Unit
enum class  AreaTriggerRemoveReason : uint8 { Default , UnitDespawn }
 
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::forward_list< AuraEffect * > AuraEffectList
 
typedef std::forward_list< Aura * > AuraList
 
typedef std::forward_list< AuraApplication * > AuraApplicationList
 
typedef std::array< DiminishingReturn, DIMINISHING_MAX > Diminishing
 
typedef std::vector< std::pair< uint32, AuraApplication * > > AuraApplicationProcContainer
 
typedef std::set< AuraApplication *, VisibleAuraSlotCompare > VisibleAuraContainer
 

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, TeleportToOptions options=TELE_TO_NONE, Optional< uint32 > instanceId={}, uint32 teleportSpellId=0)
 
bool TeleportTo (WorldLocation const &loc, TeleportToOptions options=TELE_TO_NONE, Optional< uint32 > instanceId={}, uint32 teleportSpellId=0)
 
bool TeleportTo (TeleportLocation const &teleportLocation, TeleportToOptions options=TELE_TO_NONE, uint32 teleportSpellId=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 IsInAreaTrigger (AreaTriggerEntry const *areaTrigger) const
 
void SendInitialPacketsBeforeAddToMap ()
 
void SendInitialPacketsAfterAddToMap ()
 
void SendSupercededSpell (uint32 oldSpell, uint32 newSpell) const
 
void SendTransferAborted (uint32 mapid, TransferAbortReason reason, uint8 arg=0, int32 mapDifficultyXConditionID=0) const
 
bool CanInteractWithQuestGiver (Object *questGiver) const
 
Creature * GetNPCIfCanInteractWith (ObjectGuid const &guid, NPCFlags npcFlags, NPCFlags2 npcFlags2) 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
 
uint32 GetChatFlags () const
 
int64 GetBarberShopCost (Trinity::IteratorPair< UF::ChrCustomizationChoice const * > newCustomizations) const
 
PlayerSocial * GetSocial () const
 
void RemoveSocial ()
 
void InitTaxiNodesForLevel ()
 
bool ActivateTaxiPathTo (std::vector< uint32 > const &nodes, Creature *npc=nullptr, uint32 spellid=0, uint32 preferredMountDisplay=0, Optional< float > speed={}, Scripting::v2::ActionResultSetter< MovementStopReason > const &scriptResult={})
 
bool ActivateTaxiPathTo (uint32 taxi_path_id, uint32 spellid=0, Optional< float > speed={}, Scripting::v2::ActionResultSetter< MovementStopReason > const &scriptResult={})
 
void FinishTaxiFlight ()
 
void CleanupAfterTaxiFlight ()
 
void ContinueTaxiFlight ()
 
void StartTaxiMovement (uint32 mountDisplayId, uint32 path, uint32 pathNode, Optional< float > speed, Scripting::v2::ActionResultSetter< MovementStopReason > &&scriptResult)
 
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)
 
void SetPvPDeath (bool on)
 
bool HasRaceChanged () const
 
void SetHasRaceChanged ()
 
bool HasBeenGrantedLevelsFromRaF () const
 
void SetBeenGrantedLevelsFromRaF ()
 
bool HasLevelBoosted () const
 
void SetHasLevelBoosted ()
 
bool HasClaimedFreeTransmog () const
 
void SetHasClaimedFreeTransmog ()
 
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
 
void setDeathState (DeathState s) override
 
PetStable * GetPetStable ()
 
PetStable & GetOrInitPetStable ()
 
PetStable const * GetPetStable () const
 
void AddPetToUpdateFields (PetStable::PetInfo const &pet, PetSaveMode slot, PetStableFlags flags)
 
void SetPetSlot (uint32 petNumber, PetSaveMode dstPetSlot)
 
ObjectGuid GetStableMaster () const
 
void SetStableMaster (ObjectGuid stableMaster)
 
Pet * GetPet () const
 
Pet * SummonPet (uint32 entry, Optional< PetSaveMode > slot, float x, float y, float z, float ang, uint32 despwtime, bool *isNew=nullptr)
 
void RemovePet (Pet *pet, PetSaveMode mode, bool returnreagent=false)
 
void DeletePetFromDB (uint32 petNumber)
 
void SendTameFailure (PetTameResult result)
 
void AddPetAura (PetAura const *petSpell)
 
void RemovePetAura (PetAura const *petSpell)
 
Creature * GetSummonedBattlePet () const
 
void SetBattlePetData (BattlePets::BattlePet const *pet=nullptr)
 
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, std::string const &prefix, bool isLogged, Player *receiver)
 
bool CanUnderstandLanguage (Language language) const
 
template<typename T >
bool ForEachItem (ItemSearchLocation location, T callback) const
 Iterate over each item in the player storage.
 
void UpdateAverageItemLevelTotal ()
 
void UpdateAverageItemLevelEquipped ()
 
uint8 FindEquipSlot (Item const *item, uint8 slot, bool swap) const
 
uint32 GetFreeInventorySlotCount (EnumFlag< ItemSearchLocation > location=ItemSearchLocation::Inventory) 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, ItemSearchLocation where=ItemSearchLocation::Default) const
 
std::vector< Item * > GetItemListByEntry (uint32 entry, bool inBankAlso=false) 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
 
std::vector< Item * > GetCraftingReagentItemsToDeposit ()
 
Item * GetWeaponForAttack (WeaponAttackType attackType, bool useable=false) const
 
Item * GetShield (bool useable=false) const
 
Item * GetChildItemByGuid (ObjectGuid guid) const
 
std::vector< Item * > & GetItemUpdateQueue ()
 
bool IsValidPos (uint16 pos, bool explicit_pos) const
 
bool IsValidPos (uint8 bag, uint8 slot, bool explicit_pos) const
 
uint8 GetInventorySlotCount () const
 
void SetInventorySlotCount (uint8 slots)
 
void UpdateInventorySlotCount ()
 
uint8 GetBankBagSlotCount () const
 
void SetBankBagSlotCount (uint8 count)
 
uint8 GetCharacterBankTabCount () const
 
void SetCharacterBankTabCount (uint8 count)
 
uint8 GetAccountBankTabCount () const
 
void SetAccountBankTabCount (uint8 count)
 
void SetCharacterBankTabSettings (uint32 tabId, std::string const &name, std::string const &icon, std::string const &description, BagSlotFlags depositFlags)
 
void SetAccountBankTabSettings (uint32 tabId, std::string const &name, std::string const &icon, std::string const &description, BagSlotFlags depositFlags)
 
void SetBankTabSettings (UF::MutableFieldReferenceWithChangesMask< UF::BankTabSettings, false > setter, std::string const &name, std::string const &icon, std::string const &description, BagSlotFlags depositFlags)
 
bool IsBackpackAutoSortDisabled () const
 
void SetBackpackAutoSortDisabled (bool disabled)
 
bool IsBackpackSellJunkDisabled () const
 
void SetBackpackSellJunkDisabled (bool disabled)
 
bool IsBankAutoSortDisabled () const
 
void SetBankAutoSortDisabled (bool disabled)
 
EnumFlag< BagSlotFlags > GetBagSlotFlags (uint32 bagIndex) const
 
void SetBagSlotFlag (uint32 bagIndex, EnumFlag< BagSlotFlags > flags)
 
void RemoveBagSlotFlag (uint32 bagIndex, EnumFlag< BagSlotFlags > flags)
 
void ReplaceAllBagSlotFlags (uint32 bagIndex, EnumFlag< BagSlotFlags > flags)
 
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 (flag128 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 *offendingItemId=nullptr) const
 
InventoryResult CanTakeMoreSimilarItems (uint32 entry, uint32 count, uint32 *offendingItemId=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 *offendingItemId) 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 CanEquipChildItem (Item *parentItem) const
 
InventoryResult CanEquipUniqueItem (Item *pItem, uint8 except_slot=NULL_SLOT, uint32 limit_count=1) const
 
InventoryResult CanEquipUniqueItem (ItemTemplate const *itemProto, BonusData const &itemBonus, 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, bool reagentBankOnly=false) const
 
InventoryResult CanUseItem (Item *pItem, bool not_loading=true) const
 
bool HasItemTotemCategory (uint32 TotemCategory) const
 
InventoryResult CanUseItem (ItemTemplate const *pItem, bool skipRequiredLevelCheck=false) const
 
InventoryResult CanRollNeedForItem (ItemTemplate const *item, Map const *map, bool restrictOnlyLfg) const
 
Item * StoreNewItem (ItemPosCountVec const &pos, uint32 itemId, bool update, ItemRandomBonusListId randomBonusListId=0, GuidSet const &allowedLooters=GuidSet(), ItemContext context=ItemContext::NONE, std::vector< int32 > const *bonusListIDs=nullptr, bool addToCollection=true)
 
Item * StoreItem (ItemPosCountVec const &pos, Item *pItem, bool update)
 
Item * EquipNewItem (uint16 pos, uint32 item, ItemContext context, bool update)
 
Item * EquipItem (uint16 pos, Item *pItem, bool update)
 
void AutoUnequipOffhandIfNeed (bool force=false)
 
void EquipChildItem (uint8 parentBag, uint8 parentSlot, Item *parentItem)
 
void AutoUnequipChildItem (Item *parentItem)
 
bool StoreNewItemInBestSlots (uint32 itemId, uint32 amount, ItemContext context)
 
void AutoStoreLoot (uint8 bag, uint8 slot, uint32 loot_id, LootStore const &store, ItemContext context=ItemContext::NONE, bool broadcast=false, bool pushed=false, bool createdByPlayer=false)
 
void AutoStoreLoot (uint32 loot_id, LootStore const &store, ItemContext context=ItemContext::NONE, bool broadcast=false, bool pushed=false, bool createdByPlayer=false)
 
void StoreLootItem (ObjectGuid lootWorldObjectGuid, uint8 lootSlot, Loot *loot, AELootResult *aeResult=nullptr)
 
InventoryResult CanTakeMoreSimilarItems (uint32 entry, uint32 count, Item *pItem, uint32 *no_space_count=nullptr, uint32 *offendingItemId=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 SendCurrencies () const
 Send full data about all currencies to client.
 
void SendPvpRewards () const
 Send conquest currency points and their cap week/arena.
 
void SetCreateCurrency (uint32 id, uint32 amount)
 Initialize currency amount for custom initialization at create character.
 
void ModifyCurrency (uint32 id, int32 amount, CurrencyGainSource gainSource=CurrencyGainSource::Cheat, CurrencyDestroyReason destroyReason=CurrencyDestroyReason::Cheat)
 Modify currency amount.
 
void AddCurrency (uint32 id, uint32 amount, CurrencyGainSource gainSource=CurrencyGainSource::Cheat)
 
void RemoveCurrency (uint32 id, int32 amount, CurrencyDestroyReason destroyReason=CurrencyDestroyReason::Cheat)
 
void IncreaseCurrencyCap (uint32 id, uint32 amount)
 Increase currency cap.
 
void ResetCurrencyWeekCap ()
 Reset weekly quantity.
 
uint32 GetCurrencyQuantity (uint32 id) const
 
uint32 GetCurrencyWeeklyQuantity (uint32 id) const
 
uint32 GetCurrencyTrackedQuantity (uint32 id) const
 
uint32 GetCurrencyIncreasedCapQuantity (uint32 id) const
 
uint32 GetCurrencyMaxQuantity (CurrencyTypesEntry const *currency, bool onLoad=false, bool onUpdateVersion=false) const
 
uint32 GetCurrencyWeeklyCap (uint32 id) const
 
uint32 GetCurrencyWeeklyCap (CurrencyTypesEntry const *currency) const
 
bool HasCurrency (uint32 id, uint32 amount) const
 
void SetCurrencyFlagsFromClient (uint32 id, CurrencyDbFlags flags)
 
void SetInvSlot (uint32 slot, ObjectGuid guid)
 
void ApplyEquipCooldown (Item *pItem)
 
void QuickEquipItem (uint16 pos, Item *pItem)
 
void VisualizeItem (uint8 slot, Item *pItem)
 
void SetVisibleItemSlot (uint8 slot, Item const *item)
 
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)
 
void SetBuybackPrice (uint32 slot, uint32 price)
 
void SetBuybackTimestamp (uint32 slot, time_t timestamp)
 
Item * GetItemFromBuyBackSlot (uint32 slot)
 
void RemoveItemFromBuyBackSlot (uint32 slot, bool del)
 
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) 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 quantity, bool pushed, bool created, bool broadcast=false, uint32 dungeonEncounterId=0)
 
bool BuyItemFromVendorSlot (ObjectGuid vendorguid, uint32 vendorslot, uint32 item, uint32 count, uint8 bag, uint8 slot)
 
Optional< SellResult > CanSellItemToVendor (Item const *item, uint32 amount) const
 
Optional< SellResult > SellItemToVendor (Item *item, uint32 amount)
 
bool BuyCurrencyFromVendorSlot (ObjectGuid vendorGuid, uint32 vendorSlot, uint32 currency, uint32 count)
 
bool _StoreOrEquipNewItem (uint32 vendorslot, uint32 item, uint8 count, uint8 bag, uint8 slot, int64 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_CANCELLED)
 
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 SendItemPassives ()
 
void LoadCorpse (PreparedQueryResult result)
 
bool AddItem (uint32 itemId, uint32 count)
 
void PrepareGossipMenu (WorldObject *source, uint32 menuId, bool showQuests=false)
 
void SendPreparedGossip (WorldObject *source)
 
void OnGossipSelect (WorldObject *source, int32 gossipOptionId, uint32 menuId)
 
uint32 GetGossipTextId (uint32 menuId, WorldObject *source)
 
uint32 GetGossipTextId (WorldObject *source)
 
uint32 GetGossipMenuForSource (WorldObject const *source) const
 
int32 GetQuestMinLevel (Quest const *quest) const
 
int32 GetQuestMinLevel (uint32 contentTuningId) const
 
int32 GetQuestLevel (Quest const *quest) const
 
int32 GetQuestLevel (uint32 contentTuningId) const
 
void PrepareQuestMenu (ObjectGuid guid)
 
void SendPreparedQuest (WorldObject *source)
 
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, uint32 ignoredQuestObjectiveId=0)
 
bool CanCompleteRepeatableQuest (Quest const *quest)
 
bool CanRewardQuest (Quest const *quest, bool msg) const
 
bool CanRewardQuest (Quest const *quest, LootItemType rewardType, uint32 rewardId, bool msg) const
 
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 GetQuestMoneyReward (Quest const *quest) const
 
uint32 GetQuestXPReward (Quest const *quest)
 
bool CanSelectQuestPackageItem (QuestPackageItemEntry const *questPackageItem) const
 
void RewardQuestPackage (uint32 questPackageId, ItemContext context, uint32 onlyItemId=0)
 
void RewardQuest (Quest const *quest, LootItemType rewardType, uint32 rewardId, Object *questGiver, bool announce=true)
 
void SetRewardedQuest (uint32 quest_id)
 
void FailQuest (uint32 quest_id)
 
void FailQuestsWithFlag (QuestFlags flag)
 
bool SatisfyQuestSkill (Quest const *qInfo, bool msg) const
 
bool SatisfyQuestLevel (Quest const *qInfo, bool msg) const
 
bool SatisfyQuestMinLevel (Quest const *qInfo, bool msg) const
 
bool SatisfyQuestMaxLevel (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 SatisfyQuestMinReputation (Quest const *qInfo, bool msg) const
 
bool SatisfyQuestMaxReputation (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 SatisfyQuestExpansion (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, bool updateInteractions=true, bool updateGameObjectQuestGiverStatus=false)
 
QuestGiverStatus GetQuestDialogStatus (Object const *questGiver) const
 
void SkipQuests (std::span< uint32 const > questIds)
 
void DespawnPersonalSummonsForQuest (uint32 questId)
 
void SetDailyQuestStatus (uint32 quest_id)
 
bool IsDailyQuestDone (uint32 quest_id) const
 
void SetWeeklyQuestStatus (uint32 quest_id)
 
void SetMonthlyQuestStatus (uint32 quest_id)
 
void SetSeasonalQuestStatus (uint32 quest_id)
 
void DailyReset ()
 
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
 
int64 GetQuestSlotEndTime (uint16 slot) const
 
bool GetQuestSlotObjectiveFlag (uint16 slot, int8 objectiveIndex) const
 
int32 GetQuestSlotObjectiveData (uint16 slot, QuestObjective const &objective) const
 
int32 GetQuestObjectiveData (uint32 questId, uint32 objectiveId) const
 
void SetQuestSlot (uint16 slot, uint32 quest_id)
 
void SetQuestSlotCounter (uint16 slot, uint8 counter, uint16 count)
 
void SetQuestSlotState (uint16 slot, uint32 state)
 
void RemoveQuestSlotState (uint16 slot, uint32 state)
 
void SetQuestSlotEndTime (uint16 slot, time_t endTime)
 
void SetQuestSlotObjectiveFlag (uint16 slot, int8 objectiveIndex)
 
void RemoveQuestSlotObjectiveFlag (uint16 slot, int8 objectiveIndex)
 
bool IsQuestCompletedBitSet (uint32 questId) const
 
void SetQuestCompletedBit (uint32 questId, bool completed)
 
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, Optional< bool > boundItemFlagRequirement={}, bool *hadBoundItemObjective=nullptr)
 
void ItemRemovedQuestCheck (uint32 entry, uint32 count)
 
void KilledMonster (Creature const *creature)
 
void KilledMonsterCredit (uint32 entry, ObjectGuid guid=ObjectGuid::Empty)
 
void KilledPlayerCredit (ObjectGuid victimGuid)
 
void KillCreditGO (uint32 entry, ObjectGuid guid=ObjectGuid::Empty)
 
void TalkedToCreature (uint32 entry, ObjectGuid guid)
 
void KillCreditCriteriaTreeObjective (QuestObjective const &questObjective)
 
void MoneyChanged (uint64 value)
 
void ReputationChanged (FactionEntry const *factionEntry, int32 change)
 
void CurrencyChanged (uint32 currencyId, int32 change)
 
void UpdateQuestObjectiveProgress (QuestObjectiveType objectiveType, int32 objectId, int64 addCount, ObjectGuid victimGuid=ObjectGuid::Empty, std::vector< QuestObjective const * > *updatedObjectives=nullptr, std::function< bool(QuestObjective const *)> const *objectiveFilter=nullptr)
 
bool HasQuestForItem (uint32 itemId) const
 
QuestObjective const * GetQuestObjectiveForItem (uint32 itemId, bool onlyIncomplete) const
 
bool HasQuestForGO (int32 goId) const
 
bool HasQuestForCurrency (uint32 currencyId) const
 
void UpdateVisibleObjectInteractions (bool allUnits, bool onlySpellClicks, bool gameObjectQuestGiverStatus, bool questObjectiveGameObjects)
 
bool CanShareQuest (uint32 questId) const
 
int32 GetQuestObjectiveData (QuestObjective const &objective) const
 
void SetQuestObjectiveData (QuestObjective const &objective, int32 data)
 
bool IsQuestObjectiveCompletable (uint16 slot, Quest const *quest, QuestObjective const &objective) const
 
bool IsQuestObjectiveCompletable (uint32 questId, uint32 objectiveId) const
 
bool IsQuestObjectiveComplete (uint16 slot, Quest const *quest, QuestObjective const &objective) const
 
bool IsQuestObjectiveComplete (uint32 questId, uint32 objectiveId) const
 
bool IsQuestObjectiveProgressBarComplete (uint16 slot, Quest const *quest) const
 
void SendQuestComplete (uint32 questId) const
 
void SendQuestReward (Quest const *quest, Creature const *questGiver, uint32 xp, bool hideChatMessage) const
 
void SendQuestFailed (uint32 questId, InventoryResult reason=EQUIP_ERR_OK) const
 
void SendQuestTimerFailed (uint32 questId) const
 
void SendCanTakeQuestResponse (QuestFailedReason reason, bool sendErrorMessage=true, std::string reasonText="") const
 
void SendQuestConfirmAccept (Quest const *quest, Player *receiver) const
 
void SendPushToPartyResponse (Player const *player, QuestPushReason reason, Quest const *quest=nullptr) const
 
void SendQuestUpdateAddCredit (Quest const *quest, ObjectGuid guid, QuestObjective const &obj, uint16 count) const
 
void SendQuestUpdateAddCreditSimple (QuestObjective const &obj) const
 
void SendQuestUpdateAddItem (ItemTemplate const *itemTemplate, QuestObjective const &obj, uint16 count) const
 
void SendQuestUpdateAddPlayer (Quest const *quest, uint16 newCount) const
 
void SendQuestGiverStatusMultiple ()
 
void SendDisplayToast (uint32 entry, DisplayToastType type, bool isBonusRoll, uint32 quantity, DisplayToastMethod method, uint32 questId=0, Item *item=nullptr) const
 
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)
 
void SaveCUFProfile (uint8 id, std::nullptr_t)
 
void SaveCUFProfile (uint8 id, std::unique_ptr< CUFProfile > profile)
 

‍Empties a CUF profile at position 0-4


 
CUFProfile * GetCUFProfile (uint8 id) const
 

‍Replaces a CUF profile at position 0-4


 
uint8 GetCUFProfilesCount () const
 

‍Retrieves a CUF profile at position 0-4


 
bool HasPvPForcingQuest () const
 
void SendForceSpawnTrackingUpdate (uint32 questId) const
 
QuestObjective const * GetActiveQuestObjectiveForSpawnTracking (uint32 spawnTrackingId) const
 
SpawnTrackingState GetSpawnTrackingStateByObjectives (uint32 spawnTrackingId, std::vector< uint32 > const &questObjectives) const
 
SpawnTrackingState GetSpawnTrackingStateByObjective (uint32 spawnTrackingId, uint32 questObjectiveId) const
 
bool LoadFromDB (ObjectGuid guid, CharacterDatabaseQueryHolder const &holder)
 
bool IsLoading () const override
 
void SaveToDB (bool create=false)
 
void SaveToDB (LoginDatabaseTransaction loginTransaction, CharacterDatabaseTransaction trans, bool create=false)
 
void SaveInventoryAndGoldToDB (CharacterDatabaseTransaction trans)
 
void SetBindPoint (ObjectGuid guid) const
 
void SendRespecWipeConfirm (ObjectGuid const &guid, uint32 cost, SpecResetType respecType) const
 
void RegenerateAll ()
 
void Regenerate (Powers power)
 
void InterruptPowerRegen (Powers power)
 
void RegenerateHealth ()
 
void setRegenTimerCount (uint32 time)
 
void setWeaponChangeTimer (uint32 time)
 
uint64 GetMoney () const
 
bool ModifyMoney (int64 amount, bool sendError=true)
 
bool HasEnoughMoney (uint64 amount) const
 
bool HasEnoughMoney (int64 amount) const
 
void SetMoney (uint64 value)
 
RewardedQuestSet const & getRewardedQuests () const
 
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 (uint64 mailId, MailResponseType mailAction, MailResponseResult mailError, uint32 equipError=0, ObjectGuid::LowType itemGuid=UI64LIT(0), uint32 itemCount=0) const
 
void SendNewMail () const
 
void UpdateNextMailTimeAndUnreads ()
 
void AddNewMailDeliverTime (time_t deliver_time)
 
void RemoveMail (uint64 id)
 
void AddMail (Mail *mail)
 
uint32 GetMailSize () const
 
Mail * GetMail (uint64 id)
 
PlayerMails const & GetMails () const
 
void SendItemRetrievalMail (uint32 itemEntry, uint32 count, ItemContext context)
 
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
 
SpellInfo const * GetCastSpellInfo (SpellInfo const *spellInfo, TriggerCastFlags &triggerFlag, GetCastSpellInfoContext *context) const override
 
bool IsSpellFitByClassAndRace (uint32 spell_id) const
 
bool HandlePassiveSpellLearn (SpellInfo const *spellInfo)
 
void SendProficiency (ItemClass itemClass, uint32 itemSubclassMask) const
 
void SendKnownSpells ()
 
void SendUnlearnSpells ()
 
bool AddSpell (uint32 spellId, bool active, bool learning, bool dependent, bool disabled, bool loading=false, int32 fromSkill=0, bool favorite=false, Optional< PlayerSpellTrait > trait={})
 
void LearnSpell (uint32 spell_id, bool dependent, int32 fromSkill=0, bool suppressMessaging=false, Optional< PlayerSpellTrait > trait={})
 
void RemoveSpell (uint32 spell_id, bool disabled=false, bool learn_low_rank=true, bool suppressMessaging=false)
 
void ResetSpells (bool myClassOnly=false)
 
void LearnCustomSpells ()
 
void LearnDefaultSkills ()
 
void LearnDefaultSkill (SkillRaceClassInfoEntry const *rcInfo)
 
void LearnQuestRewardedSpells ()
 
void LearnQuestRewardedSpells (Quest const *quest)
 
void AddTemporarySpell (uint32 spellId)
 
void RemoveTemporarySpell (uint32 spellId)
 
void SetOverrideSpellsId (int32 overrideSpellsId)
 
void AddOverrideSpell (uint32 overridenSpellId, uint32 newSpellId)
 
void RemoveOverrideSpell (uint32 overridenSpellId, uint32 newSpellId)
 
void LearnSpecializationSpells ()
 
void RemoveSpecializationSpells ()
 
void AddSpellCategoryCooldownMod (int32 spellCategoryId, int32 mod)
 
void RemoveSpellCategoryCooldownMod (int32 spellCategoryId, int32 mod)
 
void SetSpellFavorite (uint32 spellId, bool favorite)
 
void AddStoredAuraTeleportLocation (uint32 spellId)
 
void RemoveStoredAuraTeleportLocation (uint32 spellId)
 
WorldLocation const * GetStoredAuraTeleportLocation (uint32 spellId) const
 
void SetReputation (uint32 factionentry, int32 value)
 
int32 GetReputation (uint32 factionentry) const
 
std::string GetGuildName () const
 
void SetLootSpecId (uint32 id)
 
uint32 GetLootSpecId () const
 
ZonePVPTypeOverride GetOverrideZonePVPType () const
 
void SetOverrideZonePVPType (ZonePVPTypeOverride type)
 
uint32 GetTalentResetCost () const
 
void SetTalentResetCost (uint32 cost)
 
time_t GetTalentResetTime () const
 
void SetTalentResetTime (time_t time_)
 
ChrSpecialization GetPrimarySpecialization () const
 
void SetPrimarySpecialization (uint32 spec)
 
uint8 GetActiveTalentGroup () const
 
void SetActiveTalentGroup (uint8 group)
 
uint32 GetDefaultSpecId () const
 
ChrSpecializationEntry const * GetPrimarySpecializationEntry () const
 
bool ResetTalents (bool noCost=false)
 
void ResetPvpTalents ()
 
uint32 GetNextResetTalentsCost () const
 
void IncreaseResetTalentsCostAndCounters (uint32 lastResetTalentsCost)
 
void InitTalentForLevel ()
 
void SendTalentsInfoData ()
 
TalentLearnResult LearnTalent (uint32 talentId, int32 *spellOnCooldown)
 
bool AddTalent (TalentEntry const *talent, uint8 spec, bool learning)
 
bool HasTalent (uint32 spell_id, uint8 spec) const
 
void RemoveTalent (TalentEntry const *talent)
 
void ResetTalentSpecialization ()
 
TalentLearnResult LearnPvpTalent (uint32 talentID, uint8 slot, int32 *spellOnCooldown)
 
bool AddPvpTalent (PvpTalentEntry const *talent, uint8 activeTalentGroup, uint8 slot)
 
void RemovePvpTalent (PvpTalentEntry const *talent, uint8 activeTalentGroup)
 
void TogglePvpTalents (bool enable)
 
bool HasPvpTalent (uint32 talentID, uint8 activeTalentGroup) const
 
void EnablePvpRules (bool dueToCombat=false)
 
void DisablePvpRules ()
 
bool HasPvpRulesEnabled () const
 
bool IsInAreaThatActivatesPvpTalents () const
 
bool IsAreaThatActivatesPvpTalents (uint32 areaID) const
 
void ActivateTalentGroup (ChrSpecializationEntry const *spec)
 
PlayerTalentMap const * GetTalentMap (uint8 spec) const
 
PlayerTalentMap * GetTalentMap (uint8 spec)
 
PlayerPvpTalentMap const & GetPvpTalentMap (uint8 spec) const
 
PlayerPvpTalentMap & GetPvpTalentMap (uint8 spec)
 
std::vector< uint32 > const & GetGlyphs (uint8 spec) const
 
std::vector< uint32 > & GetGlyphs (uint8 spec)
 
ActionButtonList const & GetActionButtons () const
 
void StartLoadingActionButtons (std::function< void()> &&callback=nullptr)
 
void LoadActions (PreparedQueryResult result)
 
void CreateTraitConfig (WorldPackets::Traits::TraitConfig &traitConfig)
 
void AddTraitConfig (WorldPackets::Traits::TraitConfig const &traitConfig)
 
UF::TraitConfig const * GetTraitConfig (int32 configId) const
 
void UpdateTraitConfig (WorldPackets::Traits::TraitConfig &&newConfig, int32 savedConfigId, bool withCastTime)
 
void ApplyTraitEntryChanges (int32 editedConfigId, WorldPackets::Traits::TraitConfig const &newConfig, bool applyTraits, bool consumeCurrencies)
 
void RenameTraitConfig (int32 editedConfigId, std::string &&newName)
 
void DeleteTraitConfig (int32 deletedConfigId)
 
void ApplyTraitConfig (int32 configId, bool apply)
 
void ApplyTraitEntry (int32 traitNodeEntryId, int32 rank, int32 grantedRanks, bool apply)
 
void SetActiveCombatTraitConfigID (int32 traitConfigId)
 
void SetCurrentCombatTraitConfigSubTreeID (int32 traitSubTreeId)
 
void SetTraitConfigUseStarterBuild (int32 traitConfigId, bool useStarterBuild)
 
void SetTraitConfigUseSharedActionBars (int32 traitConfigId, bool usesSharedActionBars, bool isLastSelectedSavedConfig)
 
Optional< PlayerSpellTrait > GetTraitInfoForSpell (uint32 spellId) const
 
uint32 GetFreePrimaryProfessionPoints () const
 
void SetFreePrimaryProfessions (uint16 profs)
 
void InitPrimaryProfessions ()
 
PlayerSpellMap const & GetSpellMap () const
 
PlayerSpellMap & GetSpellMap ()
 
void AddSpellMod (SpellModifier *mod, bool apply)
 
void GetSpellModValues (SpellInfo const *spellInfo, SpellModOp op, Spell *spell, double base, int32 *flat, float *pct) const
 
template<class T >
void ApplySpellMod (SpellInfo const *spellInfo, SpellModOp op, T &basevalue, Spell *spell=nullptr) const
 
void SetSpellModTakingSpell (Spell *spell, bool apply)
 
void SendSpellModifiers () const
 
void RemoveArenaSpellCooldowns (bool removeActivePetCooldowns=false)
 
float GetEmpowerMinHoldStagePercent () const
 
void SetEmpowerMinHoldStagePercent (float empowerMinHoldStagePercent)
 
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 ()
 
PlayerCreateMode GetCreateMode () const
 
uint8 getCinematic () const
 
void setCinematic (uint8 cine)
 
uint32 GetMovie () const
 
void SetMovie (uint32 movie)
 
ActionButton * AddActionButton (uint8 button, uint64 action, uint8 type)
 
void RemoveActionButton (uint8 button)
 
ActionButton const * GetActionButton (uint8 button)
 
void SendInitialActionButtons () const
 
void SendActionButtons (uint32 state) const
 
bool IsActionButtonDataValid (uint8 button, uint64 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 UpdateHostileAreaState (AreaTableEntry const *area)
 
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 SetDuelArbiter (ObjectGuid guid)
 
void SetDuelTeam (uint32 duelTeam)
 
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 SetGuildLevel (uint32 level)
 
uint32 GetGuildLevel () const
 
void SetGuildIdInvited (ObjectGuid::LowType GuildId)
 
ObjectGuid::LowType GetGuildId () const
 
Guild * GetGuild ()
 
Guild const * GetGuild () const
 
ObjectGuid::LowType GetGuildIdInvited () const
 
void SetPersonalTabard (uint32 style, uint32 color, uint32 borderStyle, uint32 borderColor, uint32 backgroundColor)
 
void SetInArenaTeam (uint32 ArenaTeamId, uint8 slot, uint8 type)
 
void SetArenaTeamInfoField (uint8 slot, ArenaTeamInfoType type, uint32 value)
 
uint32 GetArenaTeamId (uint8) const
 
uint32 GetArenaPersonalRating (uint8 slot) const
 
void SetArenaTeamIdInvited (uint32 ArenaTeamId)
 
uint32 GetArenaTeamIdInvited () const
 
uint32 GetRBGPersonalRating () const
 
UF::PVPInfo const * GetPvpInfoForBracket (int8 bracket) const
 
Difficulty GetDifficultyID (MapEntry const *mapEntry) const
 
Difficulty GetDungeonDifficultyID () const
 
Difficulty GetRaidDifficultyID () const
 
Difficulty GetLegacyRaidDifficultyID () const
 
void SetDungeonDifficultyID (Difficulty dungeon_difficulty)
 
void SetRaidDifficultyID (Difficulty raid_difficulty)
 
void SetLegacyRaidDifficultyID (Difficulty raid_difficulty)
 
void SendRaidGroupOnlyMessage (RaidGroupReason reason, int32 delay) const
 
bool UpdateSkillPro (uint16 skillId, int32 chance, uint32 step)
 
bool UpdateCraftSkill (SpellInfo const *spellInfo)
 
bool UpdateGatherSkill (uint32 skillId, uint32 skillValue, uint32 redLevel, uint32 multiplicator=1, WorldObject const *object=nullptr)
 
bool UpdateFishingSkill (int32 expansion)
 
float GetHealthBonusFromStamina () const
 
Stats GetPrimaryStat () const
 
bool UpdateStats (Stats stat) override
 
bool UpdateAllStats () override
 
void ApplySpellPenetrationBonus (int32 amount, bool apply)
 
void ApplyModTargetResistance (int32 mod, bool apply)
 
void ApplyModTargetPhysicalResistance (int32 mod, bool apply)
 
void UpdateResistances (uint32 school) override
 
void UpdateArmor () override
 
void UpdateMaxHealth () override
 
void UpdateMaxPower (Powers power) override
 
uint32 GetPowerIndex (Powers power) const override
 
ClassPowerTypes GetPowerTypes () const override
 
void UpdateAttackPowerAndDamage (bool ranged=false) override
 
void ApplySpellPowerBonus (int32 amount, bool apply)
 
void UpdateSpellDamageAndHealingBonus ()
 
void ApplyModDamageDonePos (SpellSchools school, int32 mod, bool apply)
 
void ApplyModDamageDoneNeg (SpellSchools school, int32 mod, bool apply)
 
void ApplyModDamageDonePercent (SpellSchools school, float pct, bool apply)
 
void SetModDamageDonePercent (uint8 school, float pct)
 
void ApplyRatingMod (CombatRating cr, int32 value, bool apply)
 
void UpdateRating (CombatRating cr)
 
void UpdateAllRatings ()
 
void UpdateMastery ()
 
void UpdateVersatilityDamageDone ()
 
void UpdateHealingDonePercentMod ()
 
bool CanUseMastery () const
 
void CalculateMinMaxDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, float &minDamage, float &maxDamage) const override
 
void RecalculateRating (CombatRating cr)
 
void GetDodgeFromAgility (float &diminishing, float &nondiminishing) const
 
float GetRatingMultiplier (CombatRating cr) const
 
float GetRatingBonusValue (CombatRating cr) const
 
float ApplyRatingDiminishing (CombatRating cr, float bonusValue) const
 
uint32 GetBaseSpellPowerBonus () const
 Returns base spellpower bonus from spellpower stat on items, without spellpower from intellect stat.
 
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 UpdateSpellCritChance ()
 
void UpdateCorruption ()
 
void UpdateArmorPenetration (int32 amount)
 
void UpdateExpertise (WeaponAttackType attType)
 
void ApplyManaRegenBonus (int32 amount, bool apply)
 
void ApplyHealthRegenBonus (int32 amount, bool apply)
 
void UpdatePowerRegen (Powers power)
 
float GetPowerRegen (Powers power) const
 
void SetPetSpellPower (uint32 spellPower)
 
ObjectGuid const & GetLootGUID () const
 
void SetLootGUID (ObjectGuid const &guid)
 
Loot * GetLootByWorldObjectGUID (ObjectGuid const &lootWorldObjectGuid) const
 
std::unordered_map< ObjectGuid, Loot * > const & GetAELootView () const
 
LootRoll * GetLootRoll (ObjectGuid const &lootObjectGuid, uint8 lootListId)
 
void AddLootRoll (LootRoll *roll)
 
void RemoveLootRoll (LootRoll *roll)
 
void RemovedInsignia (Player *looterPlr)
 
WorldSession * GetSession () const
 
void BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const override
 
void BuildValuesUpdateWithFlag (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const override
 
void BuildValuesUpdateForPlayerWithMask (UpdateData *data, UF::ObjectData::Mask const &requestedObjectMask, UF::UnitData::Mask const &requestedUnitMask, UF::PlayerData::Mask const &requestedPlayerMask, UF::ActivePlayerData::Mask const &requestedActivePlayerMask, Player const *target, bool ignoreNestedChangesMask) const
 
void DestroyForPlayer (Player const *target) const override
 
void SendAttackSwingCancelAttack () const
 
void SetAttackSwingError (Optional< AttackSwingErr > err)
 
void SendAutoRepeatCancel (Unit *target)
 
void SendExplorationExperience (uint32 Area, uint32 Experience) const
 
void SendDungeonDifficulty () const
 
void SendRaidDifficulty (bool legacy) const
 
void ResetInstances (InstanceResetMethod method)
 Reset all solo instances and optionally send a message on success for each.
 
void SendResetInstanceSuccess (uint32 MapId) const
 
void SendResetInstanceFailed (ResetFailedReason reason, uint32 mapID) const
 
void SendResetFailedNotify (uint32 mapid) const
 
bool IsLockedToDungeonEncounter (uint32 dungeonEncounterId) const
 
bool IsLockedToDungeonEncounter (uint32 dungeonEncounterId, Difficulty difficulty) 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 ProcessPositionDataChanged (PositionFullTerrainStatus const &data) override
 
void UpdateLiquidMirrorTimerFlagsOnPositionChange (Optional< LiquidData > const &newLiquidData)
 
void UpdateLiquidMirrorTimerValuesOnAura ()
 
void AtEnterCombat () 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
 
void SendChatMessageToSetInRange (ChatMsg chatMsg, Language lanugageId, std::string &&text, float range)
 
Corpse * GetCorpse () const
 
void SpawnCorpseBones (bool triggerSave=true)
 
Corpse * CreateCorpse ()
 
void KillPlayer ()
 
bool HasCorpse () const
 
WorldLocation const & GetCorpseLocation () const
 
void InitializeSelfResurrectionSpells ()
 
void ResurrectPlayer (float restore_percent, bool applySickness=false)
 
void BuildPlayerRepop ()
 
void RepopAtGraveyard ()
 
void DurabilityLossAll (double percent, bool inventory)
 
void DurabilityLoss (Item *item, double percent)
 
void DurabilityPointsLossAll (int32 points, bool inventory)
 
void DurabilityPointsLoss (Item *item, int32 points)
 
void DurabilityPointLossForEquipSlot (EquipmentSlots slot)
 
void DurabilityRepairAll (bool takeCost, float discountMod, bool guildBank)
 
void DurabilityRepair (uint16 pos, bool takeCost, float discountMod)
 
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 InitializeSkillFields ()
 
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
 
uint32 GetProfessionSkillForExp (uint32 skill, int32 expansion) const
 
bool HasSkill (uint32 skill) const
 
void LearnSkillRewardedSpells (uint32 skillId, uint32 skillValue, Races race)
 
int32 GetProfessionSlotFor (uint32 skillId) const
 
int32 FindEmptyProfessionSlotFor (uint32 skillId) const
 
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 GetSkillStartingRankByPos (uint32 pos) const
 
void SetSkillStartingRank (uint32 pos, uint16 starting)
 
uint16 GetSkillMaxRankByPos (uint32 pos) const
 
void SetSkillMaxRank (uint32 pos, uint16 max)
 
int16 GetSkillTempBonusByPos (uint32 pos) const
 
void SetSkillTempBonus (uint32 pos, uint16 bonus)
 
uint16 GetSkillPermBonusByPos (uint32 pos) const
 
void SetSkillPermBonus (uint32 pos, uint16 bonus)
 
TeleportLocation & GetTeleportDest ()
 
TeleportState GetTeleportState () const
 
void SetTeleportState (TeleportState state)
 
EnumFlag< TeleportToOptions > GetTeleportOptions () const
 
int32 GetNewWorldCounter () const
 
bool IsBeingTeleported () const
 
bool IsBeingTeleportedNear () const
 
bool IsBeingTeleportedFar () const
 
void ProcessDelayedOperations ()
 
void CheckAreaExplore ()
 
void AddExploredZones (uint32 pos, uint64 mask)
 
void RemoveExploredZones (uint32 pos, uint64 mask)
 
bool HasExploredZone (uint32 areaId) const
 
void UpdateZoneAndAreaId ()
 
void UpdateIndoorsOutdoorsAuras ()
 
void UpdateTavernRestingState ()
 
Team GetTeam () const
 
TeamId GetTeamId () const
 
void SetFactionForRace (uint8 race)
 
Team GetEffectiveTeam () const
 
TeamId GetEffectiveTeamId () const
 
void InitDisplayIds ()
 
bool IsAtGroupRewardDistance (WorldObject const *pRewardSource) const
 
bool IsAtRecruitAFriendDistance (WorldObject const *pOther) const
 
void RewardPlayerAndGroupAtEvent (uint32 creature_id, WorldObject *pRewardSource)
 
bool isHonorOrXPTarget (Unit const *victim) const
 
bool GetsRecruitAFriendBonus (bool forXP)
 
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 SetVisibleForcedReaction (uint32 factionId, ReputationRank rank)
 
void RemoveVisibleForcedReaction (uint32 factionId)
 
void UpdateSkillsForLevel ()
 
void ModifySkillBonus (uint32 skillid, int32 val, bool talent)
 
void UpdateHonorFields ()
 
bool RewardHonor (Unit *victim, uint32 groupsize, int32 honor=-1, HonorGainSource source=HonorGainSource::Kill)
 
void ResetHonorStats ()
 
uint32 GetMaxPersonalArenaRatingRequirement (uint32 minarenaslot) const
 
void SaveHealthBeforeDuel ()
 
void SaveManaBeforeDuel ()
 
void RestoreHealthAfterDuel ()
 
void RestoreManaAfterDuel ()
 
uint32 GetHonorLevel () const
 
void AddHonorXP (uint32 xp)
 
void SetHonorLevel (uint8 honorLevel)
 
bool IsMaxHonorLevel () const
 
void UpdateHonorNextLevel ()
 
void RewardPlayerWithRewardPack (uint32 rewardPackID)
 
void RewardPlayerWithRewardPack (RewardPackEntry const *rewardPackEntry)
 
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
 
float GetBlockPercent (uint8 attackerLevel) 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) 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)
 
void ApplyAllAzeriteItemMods (bool apply)
 
void ApplyAllAzeriteEmpoweredItemMods (bool apply)
 
void _ApplyItemBonuses (Item *item, uint8 slot, bool apply)
 
void _ApplyWeaponDamage (uint8 slot, Item *item, bool apply)
 
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 formChange=false)
 
void ApplyEquipSpell (SpellInfo const *spellInfo, Item *item, bool apply, bool formChange=false)
 
void UpdateEquipSpellsAtFormChange ()
 
void ApplyArtifactPowers (Item *item, bool apply)
 
void ApplyArtifactPowerRank (Item *artifact, ArtifactPowerRankEntry const *artifactPowerRank, bool apply)
 
void ApplyAzeritePowers (Item *item, bool apply)
 
void ApplyAzeriteItemMilestonePower (AzeriteItem *item, AzeriteItemMilestonePowerEntry const *azeriteItemMilestonePower, bool apply)
 
void ApplyAzeriteEssence (AzeriteItem *item, uint32 azeriteEssenceId, uint32 rank, bool major, bool apply)
 
void ApplyAzeriteEssencePower (AzeriteItem *item, AzeriteEssencePowerEntry const *azeriteEssencePower, bool major, bool apply)
 
void ApplyAzeritePower (AzeriteEmpoweredItem *item, AzeritePowerEntry const *azeritePower, bool apply)
 
void CastItemCombatSpell (DamageInfo const &damageInfo)
 
void CastItemCombatSpell (DamageInfo const &damageInfo, Item *item, ItemTemplate const *proto)
 
void CastItemUseSpell (Item *item, uint32 spellId, SpellCastTargets const &targets, ObjectGuid castCount, std::array< int32, 3 > const &misc)
 
void ApplyItemLootedSpell (Item *item, bool apply)
 
void ApplyItemLootedSpell (ItemTemplate const *itemTemplate)
 
void SendEquipmentSetList ()
 
void SetEquipmentSet (EquipmentSetInfo::EquipmentSetData const &newEqSet)
 
void DeleteEquipmentSet (uint64 id)
 
void SendInitWorldStates (uint32 zoneId, uint32 areaId) const
 
void SendUpdateWorldState (uint32 variable, uint32 value, bool hidden=false) const
 
void SendDirectMessage (WorldPacket const *data) const
 
void SendAurasForTarget (Unit *target) const
 
void SendLoot (Loot &loot, bool aeLooting=false)
 
void SendLootError (ObjectGuid const &lootObj, ObjectGuid const &owner, LootError error) const
 
void SendLootRelease (ObjectGuid guid) const
 
void SendLootReleaseAll () const
 
void SendNotifyLootItemRemoved (ObjectGuid lootObj, ObjectGuid owner, uint8 lootListId) const
 
void SendNotifyLootMoneyRemoved (ObjectGuid lootObj) const
 
bool InBattleground () const
 
bool InArena () const
 
uint32 GetBattlegroundId () const
 
BattlegroundTypeId GetBattlegroundTypeId () const
 
Battleground * GetBattleground () const
 
uint32 GetBattlegroundQueueJoinTime (BattlegroundQueueTypeId bgQueueTypeId) 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, BattlegroundQueueTypeId queueId)
 
uint32 AddBattlegroundQueueId (BattlegroundQueueTypeId val)
 
bool HasFreeBattlegroundQueueId () const
 
void RemoveBattlegroundQueueId (BattlegroundQueueTypeId val)
 
void SetInviteForBattlegroundQueueType (BattlegroundQueueTypeId bgQueueTypeId, uint32 instanceId)
 
bool IsInvitedForBattlegroundInstance (uint32 instanceId) const
 
void SetMercenaryForBattlegroundQueueType (BattlegroundQueueTypeId bgQueueTypeId, bool mercenary)
 
bool IsMercenaryForBattlegroundQueueType (BattlegroundQueueTypeId bgQueueTypeId) const
 
WorldLocation const & GetBattlegroundEntryPoint () const
 
void SetBattlegroundEntryPoint ()
 
void SetBGTeam (Team team)
 
Team GetBGTeam () const
 
void LeaveBattleground (bool teleportToEntryPoint=true, bool withoutDeserterDebuff=false)
 
bool CanJoinToBattleground (BattlegroundTemplate 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, uint32 opcode)
 
void SetFallInformation (uint32 time, float z)
 
void HandleFall ()
 
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 () const
 
void SendPlayerBound (ObjectGuid const &binderGuid, uint32 areaId) const
 
uint8 GetStartLevel (uint8 race, uint8 playerClass, Optional< int32 > characterTemplateId) const
 
bool HaveAtClient (BaseEntity const *u) const
 
bool IsNeverVisibleFor (WorldObject const *seer, bool allowServersideObjects) const override
 
bool IsVisibleGloballyFor (Player const *player) const
 
void SendInitialVisiblePackets (WorldObject *target) const
 
void OnPhaseChange () override
 
void UpdateObjectVisibility (bool forced=true) override
 
void UpdateVisibilityForPlayer ()
 
void UpdateVisibilityOf (WorldObject *target)
 
void UpdateVisibilityOf (Trinity::IteratorPair< WorldObject ** > targets)
 
void UpdateTriggerVisibility ()
 
template<class T >
void UpdateVisibilityOf (T *target, UpdateData &data, std::set< WorldObject * > &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)
 
Optional< ReactStates > GetTemporaryPetReactState () const
 
void DisablePetControlsOnMount (ReactStates reactState, CommandStates commandState)
 
void EnablePetControlsOnDismount ()
 
void UnsummonPetTemporaryIfAny ()
 
void ResummonPetTemporaryUnSummonedIfAny ()
 
void UnsummonBattlePetTemporaryIfAny (bool onFlyingMount=false)
 
void ResummonBattlePetTemporaryUnSummonedIfAny ()
 
bool IsPetNeedBeTemporaryUnsummoned () const
 
void SendCinematicStart (uint32 CinematicSequenceId) const
 
void SendMovieStart (uint32 movieId)
 
uint32 DoRandomRoll (uint32 minimum, uint32 maximum)
 
uint8 GetItemLimitCategoryQuantity (ItemLimitCategoryEntry const *limitEntry) const
 
void UpdateItemLevelAreaBasedScaling ()
 
void ActivatePvpItemLevels (bool activate)
 
bool IsUsingPvpItemLevels () const
 
void UpdateHomebindTime (uint32 time)
 
uint32 GetRecentInstanceId (uint32 mapId) const
 
void SetRecentInstance (uint32 mapId, uint32 instanceId)
 
void ConfirmPendingBind ()
 
void SetPendingBind (uint32 instanceId, uint32 bindTimer)
 
bool HasPendingBind () const
 
void SendRaidInfo ()
 
bool Satisfy (AccessRequirement const *ar, uint32 target_map, TransferAbortParams *params=nullptr, bool report=false)
 
bool CheckInstanceValidity (bool)
 
WorldSafeLocsEntry const * GetInstanceEntrance (uint32 targetMapId)
 
uint32 GetLastPetNumber () const
 
void SetLastPetNumber (uint32 petnumber)
 
bool IsInGroup (ObjectGuid groupGuid) const
 
Group * GetGroupInvite () const
 
void SetGroupInvite (Group *group)
 
Group * GetGroup (Optional< uint8 > partyIndex)
 
Group const * GetGroup (Optional< uint8 > partyIndex) const
 
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)
 
void RemoveGroupUpdateFlag (uint32 flag)
 
void SetPartyType (GroupCategory category, uint8 type)
 
void ResetGroupUpdateSequenceIfNeeded (Group const *group)
 
int32 NextGroupUpdateSequenceNumber (GroupCategory category)
 
Player * GetNextRandomRaidMember (float radius)
 
PartyResult CanUninviteFromGroup (ObjectGuid guidMember, Optional< uint8 > partyIndex) 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
 
UF::DeclinedNames const * GetDeclinedNames () const
 
uint8 GetRunesState () const
 
uint32 GetRuneCooldown (uint8 index) const
 
uint32 GetRuneBaseCooldown () const
 
void SetRuneCooldown (uint8 index, uint32 cooldown)
 
void ResyncRunes () const
 
void InitRunes ()
 
void SendRespondInspectAchievements (Player *player) const
 
uint32 GetAchievementPoints () const
 
std::vector< uint32 > GetCompletedAchievementIds () const
 
bool HasAchieved (uint32 achievementId) const
 
void ResetAchievements ()
 
void FailCriteria (CriteriaFailEvent condition, int32 failAsset)
 
void UpdateCriteria (CriteriaType type, uint64 miscValue1=0, uint64 miscValue2=0, uint64 miscValue3=0, WorldObject *ref=nullptr)
 
void StartCriteria (CriteriaStartEvent startEvent, uint32 entry, Milliseconds timeLost=Milliseconds::zero())
 
void CompletedAchievement (AchievementEntry const *entry)
 
bool ModifierTreeSatisfied (uint32 modifierTreeId) const
 
bool HasTitle (uint32 bitIndex) const
 
bool HasTitle (CharTitlesEntry const *title) const
 
void SetTitle (CharTitlesEntry const *title, bool lost=false)
 
void SetChosenTitle (int32 title)
 
void SetKnownTitles (uint32 index, uint64 mask)
 
bool CanSeeGossipOn (Creature const *creature) const
 
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, WorldPackets::Movement::UpdateCollisionHeightReason reason)
 
bool CanFly () const override
 
bool CanEnterWater () const override
 
bool IsReagentBankUnlocked () const
 
void UnlockReagentBank ()
 
void CreateGarrison (uint32 garrSiteId)
 
void DeleteGarrison ()
 
Garrison * GetGarrison () const
 
bool IsAdvancedCombatLoggingEnabled () const
 
void SetAdvancedCombatLogging (bool enabled)
 
SceneMgr & GetSceneMgr ()
 
SceneMgr const & GetSceneMgr () const
 
RestMgr & GetRestMgr () const
 
void SetRestState (RestTypes type, PlayerRestState state)
 
void SetRestThreshold (RestTypes type, uint32 threshold)
 
void SendPlayerChoice (ObjectGuid sender, int32 choiceId)
 
bool MeetPlayerCondition (uint32 conditionId) const
 
bool HasPlayerFlag (PlayerFlags flags) const
 
void SetPlayerFlag (PlayerFlags flags)
 
void RemovePlayerFlag (PlayerFlags flags)
 
void ReplaceAllPlayerFlags (PlayerFlags flags)
 
bool HasPlayerFlagEx (PlayerFlagsEx flags) const
 
void SetPlayerFlagEx (PlayerFlagsEx flags)
 
void RemovePlayerFlagEx (PlayerFlagsEx flags)
 
void ReplaceAllPlayerFlagsEx (PlayerFlagsEx flags)
 
void SetAverageItemLevel (float newItemLevel, AvgItemLevelCategory category)
 
uint32 GetCustomizationChoice (uint32 chrCustomizationOptionId) const
 
template<typename Iter >
void SetCustomizations (Trinity::IteratorPair< Iter > customizations, bool markChanged=true)
 
void SetPvpTitle (uint8 pvpTitle)
 
void SetArenaFaction (uint8 arenaFaction)
 
void SetVirtualPlayerRealm (uint32 virtualRealmAddress)
 
void SetCurrentBattlePetBreedQuality (uint8 battlePetBreedQuality)
 
void AddHeirloom (int32 itemId, uint32 flags)
 
void SetHeirloom (uint32 slot, int32 itemId)
 
void SetHeirloomFlags (uint32 slot, uint32 flags)
 
void AddToy (int32 itemId, uint32 flags)
 
void AddTransmogBlock (uint32 blockValue)
 
void AddTransmogFlag (uint32 slot, uint32 flag)
 
void AddConditionalTransmog (uint32 itemModifiedAppearanceId)
 
void RemoveConditionalTransmog (uint32 itemModifiedAppearanceId)
 
void AddIllusionBlock (uint32 blockValue)
 
void AddIllusionFlag (uint32 slot, uint32 flag)
 
void AddWarbandScenesBlock (uint32 blockValue)
 
void AddWarbandScenesFlag (uint32 slot, uint32 flag)
 
void AddSelfResSpell (int32 spellId)
 
void RemoveSelfResSpell (int32 spellId)
 
void ClearSelfResSpell ()
 
ObjectGuid GetSummonedBattlePetGUID () const
 
void SetSummonedBattlePetGUID (ObjectGuid guid)
 
void SetTrackCreatureFlag (uint32 flags)
 
void RemoveTrackCreatureFlag (uint32 flags)
 
void SetVersatilityBonus (float value)
 
void ApplyModOverrideSpellPowerByAPPercent (float mod, bool apply)
 
void ApplyModOverrideAPBySpellPowerPercent (float mod, bool apply)
 
bool HasPlayerLocalFlag (PlayerLocalFlags flags) const
 
void SetPlayerLocalFlag (PlayerLocalFlags flags)
 
void RemovePlayerLocalFlag (PlayerLocalFlags flags)
 
void ReplaceAllPlayerLocalFlags (PlayerLocalFlags flags)
 
uint8 GetNumRespecs () const
 
void SetNumRespecs (uint8 numRespecs)
 
void SetWatchedFactionIndex (int32 index)
 
void AddAuraVision (PlayerFieldByte2Flags flags)
 
void RemoveAuraVision (PlayerFieldByte2Flags flags)
 
void SetTransportServerTime (int32 transportServerTime)
 
void SetRequiredMountCapabilityFlag (uint8 flag)
 
void ReplaceAllRequiredMountCapabilityFlags (uint8 flags)
 
std::variant< int64, float > GetDataElementAccount (uint32 dataElementId) const
 
void SetDataElementAccount (uint32 dataElementId, std::variant< int64, float > value)
 
std::variant< int64, float > GetDataElementCharacter (uint32 dataElementId) const
 
void SetDataElementCharacter (uint32 dataElementId, std::variant< int64, float > value)
 
bool HasDataFlagAccount (uint32 dataFlagId) const
 
void SetDataFlagAccount (uint32 dataFlagId, bool on)
 
bool HasDataFlagCharacter (uint32 dataFlagId) const
 
void SetDataFlagCharacter (uint32 dataFlagId, bool on)
 
bool IsInFriendlyArea () const
 
bool IsFriendlyArea (AreaTableEntry const *inArea) const
 
void SetWarModeDesired (bool enabled)
 
bool IsWarModeDesired () const
 
bool IsWarModeActive () const
 
bool IsWarModeLocalActive () const
 
void SetWarModeLocal (bool enabled)
 
bool CanEnableWarModeInArea () const
 
void UpdateWarModeAuras ()
 
void SetAccountSecured (bool secured)
 
void AddUnlockedTransmogOutfits (std::span< int32 const > transmogOutfitIds)
 
void AddUnlockedTransmogOutfit (int32 transmogOutfitIds)
 
void CreateTransmogOutfit (uint32 id, WorldPackets::Transmogrification::TransmogOutfitDataInfo const &outfitData)
 
void InitializeNewTransmogOutfit (UF::MutableFieldReference< UF::TransmogOutfitData, false > outfit, uint32 id, WorldPackets::Transmogrification::TransmogOutfitDataInfo const &outfitData)
 
bool UpdateTransmogOutfit (uint32 id, WorldPackets::Transmogrification::TransmogOutfitDataInfo const &outfitData)
 
void UpdateTransmogOutfitSituations (uint32 id, bool situationsEnabled, std::span< WorldPackets::Transmogrification::TransmogOutfitSituationInfo const > situations)
 
void UpdateTransmogOutfitSlots (uint32 id, std::span< WorldPackets::Transmogrification::TransmogOutfitSlotData const > slots)
 
void EquipTransmogOutfit (uint32 id, TransmogSituationTrigger trigger, Optional< bool > locked)
 
std::string GetDebugInfo () const override
 
void SetAreaSpiritHealer (Creature *creature)
 
ObjectGuid const & GetSpiritHealerGUID () const
 
bool CanAcceptAreaSpiritHealFrom (Unit *spiritHealer) const
 
void SendAreaSpiritHealerTime (Unit *spiritHealer) const
 
void SendAreaSpiritHealerTime (ObjectGuid const &spiritHealerGUID, int32 timeLeft) const
 
void RequestSpellCast (std::unique_ptr< SpellCastRequest > castRequest)
 
void CancelPendingCastRequest ()
 
bool CanRequestSpellCast (SpellInfo const *spell, Unit const *castingUnit) const
 
- 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
 
virtual bool IsAffectedByDiminishingReturns () const
 
DiminishingLevels GetDiminishing (DiminishingGroup group) const
 
void IncrDiminishing (SpellInfo const *auraSpellInfo)
 
bool ApplyDiminishingToDuration (SpellInfo const *auraSpellInfo, int32 &duration, WorldObject *caster, DiminishingLevels previousLevel) const
 
void ApplyDiminishingAura (DiminishingGroup group, bool apply)
 
void ClearDiminishings ()
 
void Heartbeat () override
 
void TriggerAuraHeartbeat ()
 
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
 
bool IsWithinBoundaryRadius (const Unit *obj) 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, bool(*unitFilter)(Unit const *otherUnit)=nullptr)
 
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
 
int32 GetContentTuning () const
 
uint8 GetLevel () const
 
uint8 GetEffectiveLevel () const
 
uint8 GetLevelForTarget (WorldObject const *) const override
 
void SetLevel (uint8 lvl, bool sendUpdate=true)
 
uint8 GetRace () const
 
void SetRace (uint8 race)
 
uint64 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 bonusVal)
 
int32 GetResistance (SpellSchools school) const
 
int32 GetBonusResistanceMod (SpellSchools school) const
 
int32 GetResistance (SpellSchoolMask mask) const
 
void SetResistance (SpellSchools school, int32 val)
 
void SetBonusResistanceMod (SpellSchools school, int32 val)
 
uint64 GetHealth () const
 
uint64 GetMaxHealth () const
 
bool IsFullHealth () const
 
bool HealthBelowPct (float pct) const
 
bool HealthBelowPctDamaged (float pct, uint32 damage) const
 
bool HealthAbovePct (float pct) const
 
bool HealthAbovePctHealed (float pct, uint32 heal) const
 
float GetHealthPct () const
 
uint64 CountPctFromMaxHealth (float pct) const
 
uint64 CountPctFromCurHealth (float pct) const
 
void SetHealth (uint64 val)
 
void SetMaxHealth (uint64 val)
 
void SetFullHealth ()
 
int64 ModifyHealth (int64 val)
 
int64 GetHealthGain (int64 dVal)
 
void TriggerOnHealthChangeAuras (uint64 oldVal, uint64 newVal)
 
virtual float GetHealthMultiplierForTarget (WorldObject const *) const
 
virtual float GetDamageMultiplierForTarget (WorldObject const *) const
 
virtual float GetArmorMultiplierForTarget (WorldObject const *) const
 
Powers GetPowerType () const
 
void SetPowerType (Powers power, bool sendUpdate=true, bool onInit=false)
 
void SetInitialPowerValue (Powers powerType)
 
void SetOverrideDisplayPowerId (uint32 powerDisplayId)
 
Powers CalculateDisplayPowerType () const
 
void UpdateDisplayPower ()
 
int32 GetPower (Powers power) const
 
int32 GetMinPower (Powers power) const
 
int32 GetMaxPower (Powers power) const
 
float GetPowerPct (Powers power) const
 
int32 CountPctFromMaxPower (Powers power, int32 pct) const
 
void SetPower (Powers power, int32 val, bool withPowerUpdate=true)
 
void SetMaxPower (Powers power, int32 val)
 
void TriggerOnPowerChangeAuras (Powers power, int32 oldVal, int32 newVal)
 
void SetFullPower (Powers power)
 
int32 ModifyPower (Powers power, int32 val, bool withPowerUpdate=true)
 
void ApplyModManaCostMultiplier (float manaCostMultiplier, bool apply)
 
void ApplyModManaCostModifier (SpellSchools school, int32 mod, bool apply)
 
uint32 GetBaseAttackTime (WeaponAttackType att) const
 
void SetBaseAttackTime (WeaponAttackType att, uint32 val)
 
void UpdateAttackTimeField (WeaponAttackType att)
 
void ApplyAttackTimePercentMod (WeaponAttackType att, float val, bool apply)
 
void ApplyCastTimePercentMod (float val, bool apply)
 
void ApplySpellHastePercentMod (float val, bool apply)
 
void ApplyHasteRegenPercentMod (float val, bool apply)
 
void SetModCastingSpeed (float castingSpeed)
 
void SetModCastingSpeedNeg (float castingSpeedNeg)
 
void SetModSpellHaste (float spellHaste)
 
void SetModHaste (float haste)
 
void SetModRangedHaste (float rangedHaste)
 
void SetModHasteRegen (float hasteRegen)
 
void SetModTimeRate (float timeRate)
 
bool HasUnitFlag (UnitFlags flags) const
 
void SetUnitFlag (UnitFlags flags)
 
void RemoveUnitFlag (UnitFlags flags)
 
void ReplaceAllUnitFlags (UnitFlags flags)
 
bool HasUnitFlag2 (UnitFlags2 flags) const
 
void SetUnitFlag2 (UnitFlags2 flags)
 
void RemoveUnitFlag2 (UnitFlags2 flags)
 
void ReplaceAllUnitFlags2 (UnitFlags2 flags)
 
bool HasUnitFlag3 (UnitFlags3 flags) const
 
void SetUnitFlag3 (UnitFlags3 flags)
 
void RemoveUnitFlag3 (UnitFlags3 flags)
 
void ReplaceAllUnitFlags3 (UnitFlags3 flags)
 
void SetCreatedBySpell (int32 spellId)
 
void SetNameplateAttachToGUID (ObjectGuid guid)
 
Emote GetEmoteState () const
 
void SetEmoteState (Emote emote)
 
SheathState GetSheath () const
 
void SetSheath (SheathState sheathed)
 
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
 
void UpdateCreatureType ()
 
UnitStandStateType GetStandState () const
 
bool IsSitState () const
 
bool IsStandState () const
 
void SetStandState (UnitStandStateType state, uint32 animKitID=0)
 
void SetVisFlag (UnitVisFlags flags)
 
void RemoveVisFlag (UnitVisFlags flags)
 
void ReplaceAllVisFlags (UnitVisFlags flags)
 
AnimTier GetAnimTier () const
 
void SetAnimTier (AnimTier animTier, bool notifyClient=true)
 
bool IsMounted () const
 
uint32 GetMountDisplayId () const
 
void SetMountDisplayId (uint32 mountDisplayId)
 
uint32 GetCosmeticMountDisplayId () const
 
void SetCosmeticMountDisplayId (uint32 mountDisplayId)
 
void Mount (uint32 mount, uint32 vehicleId=0, uint32 creatureEntry=0)
 
void Dismount ()
 
void CancelMountAura (bool force=false)
 
MountCapabilityEntry const * GetMountCapability (uint32 mountType) const
 
void UpdateMountCapability ()
 
void SendDurabilityLoss (Player *receiver, uint32 percent)
 
void PlayOneShotAnimKitId (uint16 animKitId)
 
void SetAIAnimKitId (uint16 animKitId)
 
uint16 GetAIAnimKitId () const override
 
void SetMovementAnimKitId (uint16 animKitId)
 
uint16 GetMovementAnimKitId () const override
 
void SetMeleeAnimKitId (uint16 animKitId)
 
uint16 GetMeleeAnimKitId () const override
 
uint16 GetMaxSkillValueForLevel (Unit const *target=nullptr) const
 
void KillSelf (bool durabilityLoss=true, bool skipSettingDeathState=false)
 
void GetProcAurasTriggeredOnEvent (AuraApplicationProcContainer &aurasTriggeringProc, AuraApplicationList *procAuras, ProcEventInfo &eventInfo)
 
void TriggerAurasProcOnEvent (AuraApplicationList *myProcAuras, AuraApplicationList *targetProcAuras, Unit *actionTarget, ProcFlagsInit const &typeMaskActor, ProcFlagsInit const &typeMaskActionTarget, ProcFlagsSpellType spellTypeMask, ProcFlagsSpellPhase spellPhaseMask, ProcFlagsHit hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo)
 
void TriggerAurasProcOnEvent (ProcEventInfo &eventInfo, AuraApplicationProcContainer &procAuras)
 
void HandleEmoteCommand (Emote emoteId, Player *target=nullptr, Trinity::IteratorPair< int32 const * > spellVisualKitIds={}, int32 sequenceVariation=0)
 
void DoMeleeAttackIfReady ()
 
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)
 
uint32 GetDamageReduction (uint32 damage) const
 
int32 CalculateAOEAvoidance (int32 damage, uint32 schoolMask, bool npcCaster) const
 
float MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, SpellInfo const *spellInfo) 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
 
float GetMechanicResistChance (SpellInfo const *spellInfo) const
 
bool CanUseAttackType (uint8 attacktype) 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)
 
NPCFlags2 GetNpcFlags2 () const
 
bool HasNpcFlag2 (NPCFlags2 flags) const
 
void SetNpcFlag2 (NPCFlags2 flags)
 
void RemoveNpcFlag2 (NPCFlags2 flags)
 
void ReplaceAllNpcFlags2 (NPCFlags2 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 IsAreaSpiritHealer () const
 
bool IsTabardDesigner () const
 
bool IsAuctioner () const
 
bool IsArmorer () const
 
bool IsWildBattlePet () const
 
bool IsServiceProvider () const
 
bool IsSpiritService () const
 
bool IsAreaSpiritHealerIndividual () 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 IsUninteractible () const
 
void SetUninteractible (bool apply)
 
bool CannotTurn () const
 
void SetCannotTurn (bool apply)
 
bool IsInCombat () const
 
bool IsInCombatWith (Unit const *who) const
 
void SetInCombatWith (Unit *enemy, bool addSecondUnitSuppressed=false)
 
void ClearInCombat ()
 
void UpdatePetCombatState ()
 
bool IsInteractionAllowedWhileHostile () const
 
virtual void SetInteractionAllowedWhileHostile (bool interactionAllowed)
 
bool IsInteractionAllowedInCombat () const
 
virtual void SetInteractionAllowedInCombat (bool interactionAllowed)
 
virtual void UpdateNearbyPlayersInteractions ()
 
bool IsThreatened () const
 
bool IsThreatenedBy (Unit const *who) const
 
ThreatManager & GetThreatManager ()
 
ThreatManager const & GetThreatManager () const
 
void SendClearTarget ()
 
bool HasAuraTypeWithFamilyFlags (AuraType auraType, uint32 familyName, flag128 familyFlags) const
 
bool HasBreakableByDamageAuraType (AuraType type, uint32 excludeAura=0) const
 
bool HasBreakableByDamageCrowdControlAura (Unit const *excludeCasterChannel=nullptr) const
 
bool HasStealthAura () const
 
bool HasInvisibilityAura () const
 
bool IsFeared () const
 
bool HasRootAura () const
 
bool IsPolymorphed () const
 
bool IsFrozen () const
 
bool isTargetableForAttack (bool checkFakeDeath=true) const
 
bool IsInWater () const
 
bool IsUnderWater () const
 
bool IsOnOceanFloor () 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, int32 overEnergize, Powers powerType)
 
void EnergizeBySpell (Unit *victim, SpellInfo const *spellInfo, int32 damage, Powers powerType)
 
Aura * AddAura (uint32 spellId, Unit *target)
 
Aura * AddAura (SpellInfo const *spellInfo, uint32 effMask, Unit *target)
 
void SetAuraStack (uint32 spellId, Unit *target, uint32 stack)
 
void SendPlaySpellVisual (Unit *target, uint32 spellVisualId, uint8 missReason, uint8 reflectStatus, float travelSpeed, bool speedAsTime=false, float launchDelay=0.0f)
 
void SendPlaySpellVisual (Position const &targetPosition, uint32 spellVisualId, uint8 missReason, uint8 reflectStatus, float travelSpeed, bool speedAsTime=false, float launchDelay=0.0f)
 
void SendCancelSpellVisual (uint32 id)
 
void SendPlaySpellVisualKit (uint32 id, uint32 type, uint32 duration) const
 
void SendCancelSpellVisualKit (uint32 id)
 
void CancelSpellMissiles (uint32 spellId, bool reverseMissile=false, bool abortSpell=false)
 
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, uint32 RageGained)
 
void SendSpellNonMeleeDamageLog (SpellNonMeleeDamage const *log)
 
void SendPeriodicAuraLog (SpellPeriodicAuraLogInfo *pInfo)
 
void SendSpellDamageResist (Unit *target, uint32 spellId)
 
void SendSpellDamageImmune (Unit *target, uint32 spellId, bool isPeriodic)
 
void NearTeleportTo (TeleportLocation const &target, bool casting=false)
 
void NearTeleportTo (Position const &pos, bool casting=false)
 
void NearTeleportTo (float x, float y, float z, float orientation, bool casting=false)
 
void SendTeleportPacket (TeleportLocation const &teleportLocation)
 
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 (Position const &origin, float speedXY, float speedZ, float angle=M_PI, Movement::SpellEffectExtraData const *spellEffectExtraData=nullptr)
 
void MonsterMoveWithSpeed (float x, float y, float z, float speed, bool generatePath=false, bool forceDestination=false)
 
bool IsPlayingHoverAnim () const
 
void SetPlayHoverAnim (bool enable, bool sendUpdate=true)
 
void CalculateHoverHeight ()
 
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 updatePlayHoverAnim=true)
 
bool SetFall (bool enable)
 
bool SetSwim (bool enable)
 
bool SetCanFly (bool enable)
 
bool SetWaterWalking (bool enable)
 
bool SetFeatherFall (bool enable)
 
bool SetHover (bool enable, bool updateAnimTier=true)
 
bool SetCollision (bool disable)
 
bool SetStrafingDisabled (bool disable)
 
bool SetJumpingDisabled (bool disable)
 
bool SetEnableFullSpeedTurning (bool enable)
 
bool SetEnableFullSpeedPitching (bool enable)
 
bool SetAlwaysAllowPitching (bool enable)
 
bool SetCanTransitionBetweenSwimAndFly (bool enable)
 
bool SetCanTurnWhileFalling (bool enable)
 
bool SetCanDoubleJump (bool enable)
 
bool SetDisableInertia (bool disable)
 
bool SetCanAdvFly (bool enable)
 
bool SetMoveCantSwim (bool cantSwim)
 
void SendSetVehicleRecId (uint32 vehicleId)
 
MovementForces const * GetMovementForces () const
 
void ApplyMovementForce (ObjectGuid id, Position origin, float magnitude, MovementForceType type, Position direction={}, ObjectGuid transportGuid=ObjectGuid::Empty)
 
void RemoveMovementForce (ObjectGuid id)
 
bool SetIgnoreMovementForces (bool ignore)
 
void UpdateMovementForcesModMagnitude ()
 
void ApplyInertia (int32 id, Milliseconds duration)
 
void RemoveInertia (int32 id)
 
void SetGravityModifier (float gravityModifier)
 
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)
 
void SetFacingToPoint (Position const &point, bool force=true)
 
bool IsAlive () const
 
bool isDying () const
 
bool isDead () const
 
DeathState getDeathState () const
 
ObjectGuid GetOwnerGUID () const override
 
void SetOwnerGUID (ObjectGuid owner)
 
ObjectGuid GetCreatorGUID () const override
 
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 GetBattlePetCompanionGUID () const
 
void SetBattlePetCompanionGUID (ObjectGuid guid)
 
ObjectGuid GetDemonCreatorGUID () const
 
void SetDemonCreatorGUID (ObjectGuid guid)
 
Unit * GetDemonCreator () const
 
Player * GetDemonCreatorPlayer () const
 
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 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)
 
void SetMovedUnit (Unit *target)
 
Unit * GetUnitBeingMoved () const
 
Player * GetPlayerMovingMe () const
 
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)
 
uint32 GetBattlePetCompanionNameTimestamp () const
 
void SetBattlePetCompanionNameTimestamp (uint32 timestamp)
 
uint32 GetBattlePetCompanionExperience () const
 
void SetBattlePetCompanionExperience (uint32 experience)
 
uint32 GetWildBattlePetLevel () const
 
void SetWildBattlePetLevel (uint32 wildBattlePetLevel)
 
Aura * _TryStackingOrRefreshingExistingAura (AuraCreateInfo &createInfo)
 
void _AddAura (UnitAura *aura, Unit *caster)
 
AuraApplication * _CreateAuraApplication (Aura *aura, uint32 effMask)
 
void _ApplyAuraEffect (Aura *aura, uint8 effIndex)
 
void _ApplyAura (AuraApplication *aurApp, uint32 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, uint32 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, uint32 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, uint32 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, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAuraFromStack (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, uint16 num=1)
 
void RemoveAurasDueToSpellByDispel (uint32 spellId, uint32 dispellerSpellId, ObjectGuid casterGUID, WorldObject *dispeller, uint8 chargesRemoved=1)
 
void RemoveAurasDueToSpellBySteal (uint32 spellId, ObjectGuid casterGUID, WorldObject *stealer, int32 stolenCharges=1)
 
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 (bool onPhaseChange=false)
 
template<typename InterruptFlags >
void RemoveAurasWithInterruptFlags (InterruptFlags flag, SpellInfo const *source=nullptr)
 
void RemoveAurasWithAttribute (SpellAttr0 flags)
 
void RemoveAurasWithFamily (SpellFamilyNames family, flag128 const &familyFlag, ObjectGuid casterGUID)
 
void RemoveAurasWithMechanic (uint64 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 family, flag128 const &familyFlag, ObjectGuid casterGUID=ObjectGuid::Empty) const
 
AuraApplication * GetAuraApplication (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraApplication *except=nullptr) const
 
AuraApplication * GetAuraApplication (uint32 spellId, std::function< bool(AuraApplication const *)> const &predicate) const
 
AuraApplication * GetAuraApplication (uint32 spellId, std::function< bool(Aura const *)> const &predicate) const
 
AuraApplication * GetAuraApplication (std::function< bool(AuraApplication const *)> const &predicate) const
 
AuraApplication * GetAuraApplication (std::function< bool(Aura const *)> const &predicate) const
 
Aura * GetAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
 
Aura * GetAura (uint32 spellId, std::function< bool(Aura const *)> const &predicate) const
 
Aura * GetAura (std::function< bool(Aura const *)> const &predicate) const
 
AuraApplication * GetAuraApplicationOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraApplication *except=nullptr) const
 
Aura * GetAuraOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 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, uint32 reqEffMask=0) const
 
bool HasAura (std::function< bool(Aura const *)> const &predicate) 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
 
template<typename InterruptFlags >
bool HasNegativeAuraWithInterruptFlag (InterruptFlags flag, ObjectGuid guid=ObjectGuid::Empty) const
 
bool HasAuraWithMechanic (uint64 mechanicMask) const
 
bool HasStrongerAuraWithDR (SpellInfo const *auraSpellInfo, Unit *caster) const
 
AuraEffect * IsScriptOverriden (SpellInfo const *spell, int32 script) const
 
uint32 GetDiseasesByCaster (ObjectGuid casterGUID, bool remove=false)
 
uint32 GetDoTsByCaster (ObjectGuid casterGUID) const
 
float GetTotalAuraModifier (AuraType auraType) const
 
float GetTotalAuraMultiplier (AuraType auraType) const
 
float GetMaxPositiveAuraModifier (AuraType auraType) const
 
float GetMaxNegativeAuraModifier (AuraType auraType) const
 
float GetTotalAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
float GetTotalAuraMultiplier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
float GetMaxPositiveAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
float GetMaxNegativeAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
float GetTotalAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
float GetTotalAuraMultiplierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
float GetMaxPositiveAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask, AuraEffect const *except=nullptr) const
 
float GetMaxNegativeAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
float GetTotalAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
float GetTotalAuraMultiplierByMiscValue (AuraType auraType, int32 misc_value) const
 
float GetMaxPositiveAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
float GetMaxNegativeAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
float GetTotalAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
float GetTotalAuraMultiplierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
float GetMaxPositiveAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
float GetMaxNegativeAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
void InitStatBuffMods ()
 
void UpdateStatBuffMod (Stats stat)
 
void UpdateStatBuffModForClient (Stats stat)
 
void SetCreateStat (Stats stat, float val)
 
void SetCreateHealth (uint32 val)
 
uint32 GetCreateHealth () const
 
void SetCreateMana (uint32 val)
 
uint32 GetCreateMana () const
 
virtual int32 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)
 
uint32 GetChannelSpellXSpellVisualId () const
 
uint32 GetChannelScriptVisualId () const
 
void SetChannelVisual (SpellCastVisual channelVisual)
 
void AddChannelObject (ObjectGuid guid)
 
void SetChannelObject (uint32 slot, ObjectGuid guid)
 
void RemoveChannelObject (ObjectGuid guid)
 
void ClearChannelObjects ()
 
void SetChannelSpellData (uint32 startTimeMs, uint32 durationMs)
 
int8 GetSpellEmpowerStage () const
 
void SetSpellEmpowerStage (int8 stage)
 
void SetCurrentCastSpell (Spell *pSpell)
 
void InterruptSpell (CurrentSpellTypes spellType, bool withDelayed=true, bool withInstant=true, SpellCastResult result=SPELL_FAILED_INTERRUPTED, Optional< SpellCastResult > resultOther={}, ObjectGuid const &interrupter=ObjectGuid::Empty)
 
void FinishSpell (CurrentSpellTypes spellType, SpellCastResult result=SPELL_CAST_OK)
 
void CancelAutoRepeatSpell ()
 
bool IsNonMeleeSpellCast (bool withDelayed, bool skipChanneled=false, bool skipAutorepeat=false, bool isAutoshoot=false, bool skipInstant=true, bool skipChanneledAllowingActions=false) const
 
void InterruptNonMeleeSpells (bool withDelayed, uint32 spellid=0, bool withInstant=true)
 
Spell * GetCurrentSpell (CurrentSpellTypes spellType) const
 
Spell * FindCurrentSpellBySpellId (uint32 spell_id) const
 
int32 GetCurrentSpellCastTime (uint32 spell_id) const
 
GetCastSpellInfoResult GetCastSpellInfo (SpellInfo const *spellInfo) const
 
uint32 GetCastSpellXSpellVisualId (SpellInfo const *spellInfo) const override
 
virtual bool HasSpellFocus (Spell const *=nullptr) const
 
virtual bool IsMovementPreventedByCasting () const
 
bool CanCastSpellWhileMoving (SpellInfo const *spellInfo) const
 
bool IsSilenced (SpellSchoolMask schoolMask) const
 
void SetSilencedSchoolMask (SpellSchoolMask schoolMask)
 
void ReplaceAllSilencedSchoolMask (SpellSchoolMask schoolMask)
 
SpellHistory * GetSpellHistory ()
 
SpellHistory const * GetSpellHistory () const
 
ShapeshiftForm GetShapeshiftForm () const
 
void SetShapeshiftForm (ShapeshiftForm form)
 
void CancelShapeshiftForm (bool onlyTravelShapeshiftForm=false, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, bool force=false)
 
void CancelTravelShapeshiftForm (AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, bool force=false)
 
bool IsInFeralForm () const
 
bool IsInDisallowedMountForm () const
 
bool IsDisallowedMountForm (uint32 spellId, ShapeshiftForm form, uint32 displayId) 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
 
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)
 
void SetMainHandWeaponAttackPower (int32 attackPower)
 
void SetOffHandWeaponAttackPower (int32 attackPower)
 
void SetRangedWeaponAttackPower (int32 attackPower)
 
virtual void UpdateDamagePhysical (WeaponAttackType attType)
 
float GetTotalAttackPowerValue (WeaponAttackType attType, bool includeWeapon=true) const
 
float GetWeaponDamageRange (WeaponAttackType attType, WeaponDamageRange type) const
 
void SetBaseWeaponDamage (WeaponAttackType attType, WeaponDamageRange damageRange, float value)
 
uint32 CalculateDamage (WeaponAttackType attType, bool normalized, bool addTotalPct) 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 UpdateObjectVisibility (bool forced=true) override
 
VisibleAuraContainer const & GetVisibleAuras () const
 
bool HasVisibleAura (AuraApplication *aurApp) const
 
void SetVisibleAura (AuraApplication *aurApp)
 
void RemoveVisibleAura (AuraApplication *aurApp)
 
void SetVisibleAuraUpdate (AuraApplication *aurApp)
 
void RemoveVisibleAuraUpdate (AuraApplication *aurApp)
 
bool HasInterruptFlag (SpellAuraInterruptFlags flags) const
 
bool HasInterruptFlag (SpellAuraInterruptFlags2 flags) const
 
void AddInterruptMask (SpellAuraInterruptFlags flags, SpellAuraInterruptFlags2 flags2)
 
void UpdateInterruptMask ()
 
virtual float GetNativeObjectScale () const
 
virtual void RecalculateObjectScale ()
 
uint32 GetDisplayId () const
 
float GetDisplayScale () const
 
virtual void SetDisplayId (uint32 displayId, bool setNative=false)
 
uint32 GetNativeDisplayId () const
 
float GetNativeDisplayScale () const
 
void RestoreDisplayId (bool ignorePositiveAurasPreventingMounting=false)
 
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 _RegisterAreaTrigger (AreaTrigger *areaTrigger)
 
void _UnregisterAreaTrigger (AreaTrigger *areaTrigger)
 
AreaTrigger * GetAreaTrigger (uint32 spellId) const
 
std::vector< AreaTrigger * > GetAreaTriggers (uint32 spellId) const
 
void RemoveAreaTrigger (uint32 spellId)
 
void RemoveAreaTrigger (AuraEffect const *aurEff)
 
void RemoveAllAreaTriggers (AreaTriggerRemoveReason reason=AreaTriggerRemoveReason::Default)
 
void EnterAreaTrigger (AreaTrigger *areaTrigger)
 
void ExitAreaTrigger (AreaTrigger *areaTrigger)
 
std::vector< AreaTrigger * > const & GetInsideAreaTriggers () const
 
void ExitAllAreaTriggers ()
 
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
 
int32 SpellDamageBonusDone (Unit *victim, SpellInfo const *spellProto, int32 pdamage, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, uint32 stack=1, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr) const
 
float SpellDamagePctDone (Unit *victim, SpellInfo const *spellProto, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo) const
 
int32 SpellDamageBonusTaken (Unit *caster, SpellInfo const *spellProto, int32 pdamage, DamageEffectType damagetype) const
 
int32 SpellBaseHealingBonusDone (SpellSchoolMask schoolMask) const
 
int32 SpellHealingBonusDone (Unit *victim, SpellInfo const *spellProto, int32 healamount, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, uint32 stack=1, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr) const
 
float SpellHealingPctDone (Unit *victim, SpellInfo const *spellProto) const
 
int32 SpellHealingBonusTaken (Unit *caster, SpellInfo const *spellProto, int32 healamount, DamageEffectType damagetype) const
 
int32 SpellBaseAbsorbBonusDone (SpellSchoolMask schoolMask) const
 
int32 SpellAbsorbBonusDone (Unit *victim, SpellInfo const *spellProto, int32 absorbamount, SpellEffectInfo const &spellEffectInfo, uint32 stack=1, AuraEffect const *aurEff=nullptr) const
 
float SpellAbsorbPctDone (Unit *victim, SpellInfo const *spellProto) const
 
int32 SpellAbsorbBonusTaken (Unit *caster, SpellInfo const *spellProto, int32 absorbamount) const
 
int32 MeleeDamageBonusDone (Unit *pVictim, int32 damage, WeaponAttackType attType, DamageEffectType damagetype, SpellInfo const *spellProto=nullptr, SpellEffectInfo const *spellEffectInfo=nullptr, Mechanics mechanic=MECHANIC_NONE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr)
 
int32 MeleeDamageBonusTaken (Unit *attacker, int32 pdamage, WeaponAttackType attType, DamageEffectType damagetype, SpellInfo const *spellProto=nullptr, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL)
 
bool IsBlockCritical () const
 
float SpellCritChanceDone (Spell *spell, AuraEffect const *aurEff, SpellSchoolMask schoolMask, WeaponAttackType attackType=BASE_ATTACK) const
 
float SpellCritChanceTaken (Unit const *caster, Spell *spell, AuraEffect const *aurEff, SpellSchoolMask schoolMask, float doneChance, WeaponAttackType attackType=BASE_ATTACK) const
 
void ApplySpellImmune (uint32 spellId, SpellImmunity op, uint32 type, bool apply)
 
bool IsImmunedToSpell (SpellInfo const *spellInfo, uint32 effectMask, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const
 
uint32 GetSchoolImmunityMask () const
 
uint32 GetDamageImmunityMask () const
 
uint64 GetMechanicImmunityMask () const
 
EnumFlag< SpellOtherImmunity > GetSpellOtherImmunityMask () const
 
bool IsImmunedToDamage (SpellSchoolMask meleeSchoolMask) const
 
bool IsImmunedToDamage (WorldObject const *caster, SpellInfo const *spellInfo, SpellEffectInfo const *spellEffectInfo=nullptr) const
 
bool IsImmunedToAuraPeriodicTick (WorldObject const *caster, AuraEffect const *auraEffect) 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)
 
int32 GetFlightCapabilityID () const
 
void SetFlightCapabilityID (int32 flightCapabilityId, bool clientUpdate)
 
float GetAdvFlyingSpeed (AdvFlyingRateTypeSingle speedType) const
 
float GetAdvFlyingSpeedMin (AdvFlyingRateTypeRange speedType) const
 
float GetAdvFlyingSpeedMax (AdvFlyingRateTypeRange speedType) const
 
void UpdateAdvFlyingSpeed (AdvFlyingRateTypeSingle speedType, bool clientUpdate)
 
void UpdateAdvFlyingSpeed (AdvFlyingRateTypeRange speedType, bool clientUpdate)
 
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 (MovementFlags f)
 
void RemoveUnitMovementFlag (MovementFlags f)
 
bool HasUnitMovementFlag (MovementFlags f) const
 
MovementFlags GetUnitMovementFlags () const
 
void SetUnitMovementFlags (MovementFlags f)
 
bool IsSplineEnabled () const
 
void SetControlled (bool apply, UnitState state)
 
void ApplyControlStatesIfNeeded ()
 
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 ()
 
bool CanProc () const
 
void SetCantProc (bool apply)
 
int32 GetProcChainLength () const
 
uint32 GetModelForForm (ShapeshiftForm form, uint32 spellId) const
 
bool CreateVehicleKit (uint32 id, uint32 creatureEntry, bool loading=false)
 
void RemoveVehicleKit (bool onRemoveFromWorld=false)
 
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)
 
bool HandleSpellClick (Unit *clicker, int8 seatId, uint32 spellId, TriggerCastFlags flags=TRIGGERED_NONE, SpellClickInfo const *spellClickInfo=nullptr)
 
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)
 
bool isMoving () const
 
bool isTurning () const
 
bool IsFlying () const
 
bool IsFalling () const
 
virtual bool CanSwim () const
 
float GetHoverOffset () const
 
int32 RewardRage (uint32 baseRage)
 
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
 
SpellEffectValue 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, SpellEffectValue effectAmount, uint32 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)
 
void ClearBossEmotes (Optional< uint32 > zoneId={}, Player const *target=nullptr) const
 Clears boss emotes frame.
 
float GetCollisionHeight () const override
 
uint32 GetVirtualItemId (uint32 slot) const
 
uint16 GetVirtualItemAppearanceMod (uint32 slot) const
 
void SetVirtualItem (uint32 slot, uint32 itemId, uint16 appearanceModId=0, uint16 itemVisual=0)
 
bool IsCombatDisallowed () const
 
void SetIsCombatDisallowed (bool apply)
 
void AddWorldEffect (int32 worldEffectId)
 
void RemoveWorldEffect (int32 worldEffectId)
 
void ClearWorldEffects ()
 
Vignettes::VignetteData const * GetVignette () const
 
void SetVignette (uint32 vignetteId)
 
std::string GetDebugInfo () const override
 
void AtStartOfEncounter (EncounterType type)
 
void AtEndOfEncounter (EncounterType type)
 
- 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, float maxHeightChange=6.0f) const
 
Position GetNearPosition (float dist, float angle)
 
void MovePositionToFirstCollision (Position &pos, float dist, float angle) const
 
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
 
Position GetRandomPoint (Position const &srcPos, float distance, float minDistance=0.0f) const
 
uint32 GetInstanceId () const
 
PhaseShift & GetPhaseShift ()
 
PhaseShift const & GetPhaseShift () const
 
PhaseShift & GetSuppressedPhaseShift ()
 
PhaseShift const & GetSuppressedPhaseShift () const
 
bool InSamePhase (PhaseShift const &phaseShift) const
 
bool InSamePhase (WorldObject const *obj) const
 
int32 GetDBPhase () const
 
void SetDBPhase (int32 p)
 
uint32 GetZoneId () const
 
uint32 GetAreaId () const
 
void GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const
 
bool IsInWorldPvpZone () const
 
bool IsOutdoors () const
 
ZLiquidStatus GetLiquidStatus () const
 
WmoLocation const * GetCurrentWmo () const
 
InstanceScript * GetInstanceScript () const
 
std::string const & GetName () const
 
void SetName (std::string newname)
 
std::string 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, bool incOwnRadius=true, bool incTargetRadius=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 (Position const *pos, float minRange, float maxRange) const
 
bool IsInRange3d (Position const *pos, 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 SendCombatLogMessage (WorldPackets::CombatLog::CombatLogServerPacket *combatLog) const
 
void PlayDistanceSound (uint32 soundId, Player const *target=nullptr) const
 
void StopDistanceSound (Player const *target=nullptr) const
 
void PlayDirectSound (uint32 soundId, Player const *target=nullptr, uint32 broadcastTextId=0) const
 
void PlayDirectMusic (uint32 musicId, Player const *target=nullptr) const
 
void PlayObjectSound (int32 soundKitId, ObjectGuid targetObject, Player const *target=nullptr, int32 broadcastTextId=0) const
 
void AddObjectToRemoveList ()
 
float GetGridActivationRange () const
 
float GetVisibilityRange () const
 
float GetSightRange (WorldObject const *target=nullptr) const
 
bool CanSeeOrDetect (WorldObject const *obj, CanSeeOrDetectExtraArgs const &args={ }) const
 
Map * GetMap () const
 
Map * FindMap () const
 
void SetZoneScript ()
 
ZoneScript * FindZoneScript () const
 
ZoneScript * GetZoneScript () const
 
Scenario * GetScenario () 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)
 
TempSummon * SummonPersonalClone (Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, Player *privateObjectOwner=nullptr)
 
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 range) const
 
ObjectGuid GetCharmerOrOwnerOrOwnGUID () const
 
Unit * GetOwner () const
 
Unit * GetCharmerOrOwner () const
 
Unit * GetCharmerOrOwnerOrSelf () const
 
Player * GetCharmerOrOwnerPlayerOrPlayerItself () const
 
Player * GetAffectingPlayer () const
 
Player * GetSpellModOwner () const
 
SpellRange GetSpellMinMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const
 
SpellEffectValue ApplyEffectModifiers (SpellInfo const *spellInfo, uint8 effIndex, SpellEffectValue value) const
 
int32 CalcSpellDuration (SpellInfo const *spellInfo, std::vector< SpellPowerCost > const *powerCosts) 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, bool canImmune) 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={ })
 
void SendPlayOrphanSpellVisual (Position const &sourceLocation, ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendPlayOrphanSpellVisual (Position const &sourceLocation, Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendPlayOrphanSpellVisual (ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendPlayOrphanSpellVisual (Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendCancelOrphanSpellVisual (uint32 id)
 
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 ()
 
virtual void UpdateObjectVisibilityOnDestroy ()
 
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
 
TransportBase * 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 (TransportBase *t)
 
virtual Position const & GetStationaryPosition () 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
 
SmoothPhasing * GetOrCreateSmoothPhasing ()
 
SmoothPhasing * GetSmoothPhasing ()
 
SmoothPhasing const * GetSmoothPhasing () const
 
- Public Member Functions inherited from Object
virtual ~Object ()
 
uint32 GetEntry () const
 
void SetEntry (uint32 entry)
 
float GetObjectScale () const
 
uint32 GetDynamicFlags () const
 
bool HasDynamicFlag (uint32 flag) const
 
void SetDynamicFlag (uint32 flag)
 
void RemoveDynamicFlag (uint32 flag)
 
void ReplaceAllDynamicFlags (uint32 flag)
 
void BuildValuesUpdateBlockForPlayerWithFlag (UpdateData *data, UF::UpdateFieldFlag flags, Player const *target) const
 
virtual bool hasQuest (uint32) const
 
virtual bool hasInvolvedQuest (uint32) const
 
WorldObject * ToWorldObject ()
 
WorldObject const * ToWorldObject () const
 
Item * ToItem ()
 
Item const * ToItem () const
 
Unit * ToUnit ()
 
Unit const * ToUnit () const
 
Creature * ToCreature ()
 
Creature const * ToCreature () const
 
Player * ToPlayer ()
 
Player const * ToPlayer () const
 
GameObject * ToGameObject ()
 
GameObject const * ToGameObject () const
 
Corpse * ToCorpse ()
 
Corpse const * ToCorpse () const
 
DynamicObject * ToDynObject ()
 
DynamicObject const * ToDynObject () const
 
AreaTrigger * ToAreaTrigger ()
 
AreaTrigger const * ToAreaTrigger () const
 
SceneObject * ToSceneObject ()
 
SceneObject const * ToSceneObject () const
 
Conversation * ToConversation ()
 
Conversation const * ToConversation () const
 
Trinity::unique_weak_ptr< Object > GetWeakPtr () const
 
virtual Loot * GetLootForPlayer (Player const *player) const
 
virtual SpawnTrackingStateData const * GetSpawnTrackingStateDataForPlayer (Player const *player) const
 
- Public Member Functions inherited from BaseEntity
virtual ~BaseEntity ()
 
bool IsInWorld () const
 
ObjectGuid const & GetGUID () const
 
TypeID GetTypeId () const
 
bool isType (TypeMask mask) const
 
bool IsWorldObject () const
 
bool IsItem () const
 
bool IsUnit () const
 
bool IsCreature () const
 
bool IsPlayer () const
 
bool IsGameObject () const
 
bool IsDynObject () const
 
bool IsCorpse () const
 
bool IsAreaTrigger () const
 
bool IsSceneObject () const
 
bool IsConversation () const
 
bool IsMeshObject () const
 
void SendUpdateToPlayer (Player *player) const
 
void BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const
 
void BuildDestroyUpdateBlock (UpdateData *data) const
 
void BuildOutOfRangeUpdateBlock (UpdateData *data) const
 
ByteBuffer & PrepareValuesUpdateBuffer (UpdateData *data) const
 
void SendOutOfRangeForPlayer (Player const *target) const
 
void ClearUpdateMask (bool remove)
 
void SetIsNewObject (bool enable)
 
bool IsDestroyedObject () const
 
void SetDestroyedObject (bool destroyed)
 
void BuildUpdateChangesMask ()
 
void BuildFieldsUpdate (Player *player, UpdateDataMapType &data_map) const
 
template<typename T >
void ForceUpdateFieldChange (UF::UpdateFieldPrivateSetter< T > const &)
 
- Public Member Functions inherited from WorldLocation
constexpr WorldLocation ()
 
constexpr WorldLocation (uint32 mapId, float x, float y)
 
constexpr WorldLocation (uint32 mapId, float x, float y, float z)
 
constexpr WorldLocation (uint32 mapId, float x, float y, float z, float o)
 
constexpr WorldLocation (uint32 mapId, Position const &position)
 
constexpr void WorldRelocate (WorldLocation const &loc)
 
constexpr void WorldRelocate (WorldLocation const *loc)
 
constexpr void WorldRelocate (uint32 mapId, Position const &pos)
 
constexpr void WorldRelocate (uint32 mapId, float x, float y, float z, float o)
 
constexpr WorldLocation GetWorldLocation () const
 
constexpr uint32 GetMapId () const
 
std::string GetDebugInfo () const
 
- Public Member Functions inherited from Position
constexpr Position ()
 
constexpr Position (float x, float y)
 
constexpr Position (float x, float y, float z)
 
constexpr Position (float x, float y, float z, float o)
 
bool operator== (Position const &a) const
 
constexpr void Relocate (float x, float y)
 
constexpr void Relocate (float x, float y, float z)
 
constexpr void Relocate (float x, float y, float z, float o)
 
constexpr void Relocate (Position const &pos)
 
constexpr void Relocate (Position const *pos)
 
void RelocateOffset (Position const &offset)
 
constexpr void SetOrientation (float orientation)
 
constexpr float GetPositionX () const
 
constexpr float GetPositionY () const
 
constexpr float GetPositionZ () const
 
constexpr float GetOrientation () const
 
constexpr void GetPosition (float &x, float &y) const
 
constexpr void GetPosition (float &x, float &y, float &z) const
 
constexpr void GetPosition (float &x, float &y, float &z, float &o) const
 
constexpr 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
 
constexpr float GetExactDist2dSq (const float x, const float y) const
 
constexpr float GetExactDist2dSq (Position const &pos) const
 
constexpr 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
 
constexpr float GetExactDistSq (float x, float y, float z) const
 
constexpr float GetExactDistSq (Position const &pos) const
 
constexpr 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
 
Position GetPositionOffsetTo (Position const &endPos) 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
 
constexpr bool IsInDist2d (float x, float y, float dist) const
 
constexpr bool IsInDist2d (Position const &pos, float dist) const
 
constexpr bool IsInDist2d (Position const *pos, float dist) const
 
constexpr bool IsInDist (float x, float y, float z, float dist) const
 
constexpr bool IsInDist (Position const &pos, float dist) const
 
constexpr bool IsInDist (Position const *pos, float dist) const
 
bool IsWithinBox (Position const &boxOrigin, float length, float width, float height) const
 
bool IsWithinVerticalCylinder (Position const &cylinderOrigin, float radius, float height, bool isDoubleVertical=false) const
 
bool IsInPolygon2D (Position const &polygonOrigin, std::span< Position const > vertices) 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 WeaponAttackType GetAttackBySlot (uint8 slot, InventoryType inventoryType)
 
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 bool IsChildEquipmentPos (uint16 pos)
 
static bool IsChildEquipmentPos (uint8 bag, uint8 slot)
 
static bool IsAccountBankPos (uint16 pos)
 
static bool IsAccountBankPos (uint8 bag, uint8 slot)
 
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 IsValidClass (uint8 Class)
 
static bool IsValidRace (uint8 Race)
 
static void SaveCustomizations (CharacterDatabaseTransaction trans, ObjectGuid::LowType guid, Trinity::IteratorPair< UF::ChrCustomizationChoice const * > customizations)
 
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 int32 IsAffectedBySpellmod (SpellInfo const *spellInfo, SpellModifier const *mod, Spell const *spell=nullptr)
 
static void ApplyModToSpell (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)
 
static void LeaveAllArenaTeams (ObjectGuid guid)
 
static Difficulty CheckLoadedDungeonDifficultyID (Difficulty difficulty)
 
static Difficulty CheckLoadedRaidDifficultyID (Difficulty difficulty)
 
static Difficulty CheckLoadedLegacyRaidDifficultyID (Difficulty difficulty)
 
static void OfflineResurrect (ObjectGuid const &guid, CharacterDatabaseTransaction trans)
 
static Team TeamForRace (uint8 race)
 
static TeamId TeamIdForRace (uint8 race)
 
static uint8 GetFactionGroupForRace (uint8 race)
 
static DrunkenState GetDrunkenstateByValue (uint8 value)
 
static uint64 GetStartMoney (uint8 race, uint8 playerClass)
 
- Static Public Member Functions inherited from Unit
static std::vector< AuraEffect * > CopyAuraEffectList (AuraEffectList const &list)
 
static float CalculateAverageResistReduction (WorldObject const *caster, SpellSchoolMask schoolMask, Unit const *victim, SpellInfo const *spellInfo=nullptr)
 
static void DealDamageMods (Unit const *attacker, 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, bool skipSettingDeathState=false)
 
static void DealHeal (HealInfo &healInfo)
 
static void ProcSkillsAndAuras (Unit *actor, Unit *actionTarget, ProcFlagsInit const &typeMaskActor, ProcFlagsInit const &typeMaskActionTarget, ProcFlagsSpellType spellTypeMask, ProcFlagsSpellPhase spellPhaseMask, ProcFlagsHit hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo)
 
static void ApplyResilience (Unit const *victim, int32 *damage)
 
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 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 WorldObject * ToWorldObject (Object *o)
 
static WorldObject const * ToWorldObject (Object const *o)
 
static Item * ToItem (Object *o)
 
static Item const * ToItem (Object const *o)
 
static Unit * ToUnit (Object *o)
 
static Unit const * ToUnit (Object const *o)
 
static Creature * ToCreature (Object *o)
 
static Creature const * ToCreature (Object const *o)
 
static Player * ToPlayer (Object *o)
 
static Player const * ToPlayer (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 AreaTrigger * ToAreaTrigger (Object *o)
 
static AreaTrigger const * ToAreaTrigger (Object const *o)
 
static SceneObject * ToSceneObject (Object *o)
 
static SceneObject const * ToSceneObject (Object const *o)
 
static Conversation * ToConversation (Object *o)
 
static Conversation const * ToConversation (Object const *o)
 
- Static Public Member Functions inherited from BaseEntity
static ObjectGuid GetGUID (BaseEntity 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
 
std::array< uint32, MAX_PLAYED_TIME_INDEX > m_Played_time
 
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
 
std::unique_ptr< PlayerMenu > PlayerTalkClass
 
std::vector< ItemSetEffect * > ItemSetEff
 
WorldObject * m_seer
 
WorldLocation m_homebind
 
uint16 m_homebindAreaId
 
GuidUnorderedSet m_clientGUIDs
 
GuidUnorderedSet m_visibleTransports
 
std::array< uint8, MAX_MOVE_TYPE > m_forced_speed_changes
 
uint8 m_movementForceModMagnitudeChanges
 
DFQuestsDoneList m_DFQuests
 
uint32 m_HomebindTimer
 
bool m_InstanceValid
 
std::unordered_map< uint32, uint32 > m_recentInstances
 
Spell * m_spellModTakingSpell
 
bool isDebugAreaTriggers
 
UF::UpdateField< UF::PlayerData, int32(WowCS::EntityFragment::CGObject), TYPEID_PLAYER > m_playerData
 
UF::UpdateField< UF::ActivePlayerData, int32(WowCS::EntityFragment::CGObject), TYPEID_ACTIVE_PLAYER > m_activePlayerData
 
- Public Attributes inherited from Unit
bool m_canDualWield
 
ControlList m_Controlled
 
std::array< ObjectGuid, MAX_SUMMON_SLOT > m_SummonSlot
 
std::array< ObjectGuid, MAX_GAMEOBJECT_SLOT > m_ObjectSlot
 
float m_modMeleeHitChance
 
float m_modRangedHitChance
 
float m_modSpellHitChance
 
float m_baseSpellCritChance
 
std::array< uint32, MAX_ATTACK > m_baseAttackSpeed
 
std::array< float, MAX_ATTACK > m_modAttackSpeedPct
 
std::array< uint32, MAX_ATTACK > m_attackTimer
 
SpellImmuneContainer m_spellImmune [MAX_SPELL_IMMUNITY]
 
uint32 m_lastSanctuaryTime
 
ObjectGuid LastCharmerGUID
 
std::unique_ptr< Movement::MoveSpline > movespline
 
UF::UpdateField< UF::UnitData, int32(WowCS::EntityFragment::CGObject), TYPEID_UNIT > m_unitData
 
- 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, uint64, InvisibilityType, TOTAL_INVISIBILITY_TYPES > m_invisibility
 
FlaggedValuesArray32< int32, uint64, 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 Object
UF::UpdateField< UF::ObjectData, int32(WowCS::EntityFragment::CGObject), TYPEID_OBJECT > m_objectData
 
- Public Attributes inherited from BaseEntity
UF::UpdateFieldHolder m_values
 
- 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::vector< DynamicObject * > DynObjectList
 
typedef std::list< GameObject * > GameObjectList
 
typedef std::vector< AreaTrigger * > AreaTriggerList
 

Protected Member Functions

UF::UpdateFieldFlag GetUpdateFieldFlagsFor (Player const *target) const override
 
void BuildValuesCreate (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const override
 
void BuildValuesUpdate (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const override
 
void ClearValuesChangesMask () override
 
void PushQuests ()
 
void _LoadActions (PreparedQueryResult result)
 
void _LoadAuras (PreparedQueryResult auraResult, PreparedQueryResult effectResult, uint32 timediff)
 
void _LoadGlyphAuras ()
 
void _LoadInventory (PreparedQueryResult result, PreparedQueryResult artifactsResult, PreparedQueryResult azeriteResult, PreparedQueryResult azeriteItemMilestonePowersResult, PreparedQueryResult azeriteItemUnlockedEssencesResult, PreparedQueryResult azeriteEmpoweredItemResult, uint32 timeDiff)
 
void _LoadMail (PreparedQueryResult mailsResult, PreparedQueryResult mailItemsResult, PreparedQueryResult artifactResult, PreparedQueryResult azeriteItemResult, PreparedQueryResult azeriteItemMilestonePowersResult, PreparedQueryResult azeriteItemUnlockedEssencesResult, PreparedQueryResult azeriteEmpoweredItemResult)
 
void _LoadQuestStatus (PreparedQueryResult result)
 
void _LoadQuestStatusObjectives (PreparedQueryResult result)
 
void _LoadQuestStatusObjectiveSpawnTrackings (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, PreparedQueryResult favoritesResult)
 
void _LoadStoredAuraTeleportLocations (PreparedQueryResult result)
 
bool _LoadHomeBind (PreparedQueryResult result)
 
void _LoadDeclinedNames (PreparedQueryResult result)
 
void _LoadArenaTeamInfo (PreparedQueryResult result)
 
void _LoadEquipmentSets (PreparedQueryResult result)
 
void _LoadTransmogCustomSets (PreparedQueryResult result)
 
void _LoadTransmogOutfits (PreparedQueryResult setsResult, PreparedQueryResult situationsResult, PreparedQueryResult slotsResult, int32 equippedTransmogOutfitId, bool locked)
 
void _LoadBGData (PreparedQueryResult result)
 
void _LoadGlyphs (PreparedQueryResult result)
 
void _LoadTalents (PreparedQueryResult result)
 
void _LoadPvpTalents (PreparedQueryResult result)
 
void _LoadTraits (PreparedQueryResult configsResult, PreparedQueryResult entriesResult)
 
void _LoadPetStable (uint32 summonedPetNumber, PreparedQueryResult result)
 
void _LoadCurrency (PreparedQueryResult result)
 
void _LoadCUFProfiles (PreparedQueryResult result)
 
void _LoadPlayerData (PreparedQueryResult elementsResult, PreparedQueryResult flagsResult)
 
void _LoadCharacterBankTabSettings (PreparedQueryResult result)
 
void _SaveCustomizations (CharacterDatabaseTransaction trans)
 
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 _SaveStoredAuraTeleportLocations (CharacterDatabaseTransaction trans)
 
void _SaveEquipmentSets (CharacterDatabaseTransaction trans)
 
void _SaveTransmogOutfits (CharacterDatabaseTransaction trans)
 
void _SaveCharacterSelectOutfit (CharacterDatabaseTransaction trans) const
 
void _SaveBGData (CharacterDatabaseTransaction trans)
 
void _SaveGlyphs (CharacterDatabaseTransaction trans) const
 
void _SaveTalents (CharacterDatabaseTransaction trans)
 
void _SaveTraits (CharacterDatabaseTransaction trans)
 
void _SaveStats (CharacterDatabaseTransaction trans) const
 
void _SaveCurrency (CharacterDatabaseTransaction trans)
 
void _SaveCUFProfiles (CharacterDatabaseTransaction trans)
 
void _SavePlayerData (CharacterDatabaseTransaction trans)
 
void _SaveCharacterBankTabSettings (CharacterDatabaseTransaction trans) const
 
void HandleSobering ()
 The player sobers by 1% every 9 seconds.
 
void SendMirrorTimer (MirrorTimerType type, int32 value, int32 maxValue, int32 scale, int32 spellId, bool paused)
 
void PauseMirrorTimer (MirrorTimerType type, bool paused)
 
void StopMirrorTimer (MirrorTimerType type)
 
void UpdateMirrorTimers (uint32 diff)
 
int32 GetMirrorTimerMaxValue (MirrorTimerType type) const
 
void outDebugValues () const
 
bool CanNeverSee (WorldObject const *obj, bool ignorePhaseShift=false) const override
 
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)
 
UF::UpdateFieldFlag GetUpdateFieldFlagsFor (Player const *target) const override
 
void DestroyForPlayer (Player const *target) const override
 
void ClearValuesChangesMask () 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
 
void UpdateLiquidStatusOnPositionChange (Optional< LiquidData > const &newLiquidData)
 
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 (WorldObject const *seer) const
 
- Protected Member Functions inherited from Object
 Object ()
 
void BuildEntityFragmentsForValuesUpdateForPlayerWithMask (ByteBuffer &data, EnumFlag< UF::UpdateFieldFlag > flags) const
 
- Protected Member Functions inherited from BaseEntity
 BaseEntity ()
 
void _Create (ObjectGuid const &guid)
 
template<typename T >
void SetUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type value)
 
template<typename T >
void SetUpdateFieldFlagValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type flag)
 
template<typename T >
void RemoveUpdateFieldFlagValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type flag)
 
template<typename T >
UF::DynamicUpdateFieldSetter< T >::insert_result AddDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter)
 
template<typename T >
UF::DynamicUpdateFieldSetter< T >::insert_result InsertDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index)
 
template<typename T >
void RemoveDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index)
 
template<typename T >
void ClearDynamicUpdateFieldValues (UF::DynamicUpdateFieldSetter< T > setter)
 
template<typename K , typename V >
void RemoveMapUpdateFieldValue (UF::MapUpdateFieldSetter< K, V > setter, std::type_identity_t< K > const &key)
 
template<typename T >
void InsertSetUpdateFieldValue (UF::SetUpdateFieldSetter< T > setter, std::type_identity_t< T > const &key)
 
template<typename T >
void RemoveSetUpdateFieldValue (UF::SetUpdateFieldSetter< T > setter, std::type_identity_t< T > const &key)
 
template<typename T >
void RemoveOptionalUpdateFieldValue (UF::OptionalUpdateFieldSetter< T > setter)
 
template<typename T >
void SetUpdateFieldStatValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type value)
 
template<typename T >
void ApplyModUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type mod, bool apply)
 
template<typename T >
void ApplyPercentModUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, float percent, bool apply)
 
template<typename Action >
void DoWithSuppressingObjectUpdates (Action &&action)
 
void BuildMovementUpdate (ByteBuffer &data, CreateObjectBits flags, Player const *target) const
 
void AddToObjectUpdateIfNeeded ()
 

Static Protected Member Functions

static Item * _LoadMailedItem (ObjectGuid const &playerGuid, Player *player, uint64 mailId, Mail *mail, Field *fields, ItemAdditionalLoadInfo *addionalData)
 
- Static Protected Member Functions inherited from BaseEntity
static void BuildEntityFragments (ByteBuffer &data, std::span< WowCS::EntityFragment const > fragments)
 

Protected Attributes

GuidList WhisperList
 
TimePoint m_regenInterruptTimestamp
 
uint32 m_regenTimerCount
 
float m_healthFraction
 
std::array< float, MAX_POWERS_PER_CLASS > m_powerFraction
 
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
 
Team m_team
 
uint32 m_nextSave
 
bool m_customizationsChanged
 
std::array< ChatFloodThrottle, ChatFloodThrottle::MAX > m_chatFloodData
 
Difficulty m_dungeonDifficulty
 
Difficulty m_raidDifficulty
 
Difficulty m_legacyRaidDifficulty
 
uint32 m_atLoginFlags
 
Item * m_items [PLAYER_SLOTS_COUNT]
 
uint32 m_currentBuybackSlot
 
PlayerCurrenciesMap _currencyStorage
 
std::vector< Item * > m_itemUpdateQueue
 
bool m_itemUpdateQueueBlocked
 
uint32 m_ExtraFlags
 
QuestStatusMap m_QuestStatus
 
QuestObjectiveStatusMap m_questObjectiveStatus
 
QuestStatusSaveMap m_QuestStatusSave
 
RewardedQuestSet m_RewardedQuests
 
QuestStatusSaveMap m_RewardedQuestsSave
 
SkillStatusMap mSkillStatus
 
ObjectGuid::LowType m_GuildIdInvited
 
uint32 m_ArenaTeamIdInvited
 
PlayerMails m_mail
 
PlayerSpellMap m_spells
 
std::unordered_map< uint32, std::unordered_set< uint32 > > m_overrideSpells
 
std::unordered_map< uint32, StoredAuraTeleportLocation > m_storedAuraTeleportLocations
 
float m_empowerMinHoldStagePercent
 
SpecializationInfo _specializationInfo
 
std::unordered_map< int32, PlayerSpellState > m_traitConfigStates
 
ActionButtonList m_actionButtons
 
std::array< float, BASEMOD_END > m_auraBaseFlatMod
 
std::array< float, BASEMOD_END > m_auraBasePctMod
 
std::array< int16, MAX_COMBAT_RATING > m_baseRatingValue
 
uint32 m_baseSpellPower
 
uint32 m_baseManaRegen
 
uint32 m_baseHealthRegen
 
int32 m_spellPenetrationItemMod
 
SpellModContainer m_spellMods
 
EnchantDurationList m_enchantDuration
 
ItemDurationList m_itemDuration
 
std::forward_list< int32 > m_itemPassives
 
GuidUnorderedSet m_itemSoulboundTradeable
 
std::unique_ptr< ResurrectionData > _resurrectionData
 
WorldSession * m_session
 
JoinedChannelsList m_channels
 
time_t m_createTime
 
PlayerCreateMode m_createMode
 
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_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
 
Optional< AttackSwingErr > m_swingErrorMsg
 
PlayerSocial * m_social
 
GroupReference m_group
 
GroupReference m_originalGroup
 
Group * m_groupInvite
 
uint32 m_groupUpdateMask
 
bool m_bPassOnGroupLoot
 
std::array< GroupUpdateCounter, 2 > m_groupUpdateSequences
 
uint32 m_lastpetnumber
 
time_t m_summon_expire
 
TeleportLocation m_summon_location
 
TeleportLocation m_recall_location
 
std::unique_ptr< Runes > m_runes
 
EquipmentSetContainer _equipmentSets
 
std::set< uint32 > m_changedTransmogOutfits
 
uint8 m_fishingSteps
 
std::array< std::unique_ptr< CUFProfile >, MAX_CUF_PROFILES > _CUFProfiles
 
- Protected Attributes inherited from Unit
bool m_ControlledByPlayer
 
std::array< float, MAX_STATS > m_floatStatPosBuff
 
std::array< float, MAX_STATS > m_floatStatNegBuff
 
AttackerSet m_attackers
 
Unit * m_attacking
 
DeathState m_deathState
 
int32 m_procDeep
 
int32 m_procChainLength
 
DynObjectList m_dynObj
 
GameObjectList m_gameObj
 
AreaTriggerList m_areaTrigger
 
AreaTriggerList m_insideAreaTriggers
 
uint32 m_transformSpell
 
std::array< Spell *, CURRENT_MAX_SPELL > m_currentSpells
 
AuraMap m_ownedAuras
 
AuraApplicationMap m_appliedAuras
 
AuraList m_removedAuras
 
AuraMap::iterator m_auraUpdateIterator
 
uint32 m_removedAurasCount
 
std::array< AuraEffectList, TOTAL_AURAS > m_modAuras
 
AuraList m_scAuras
 
AuraApplicationList m_interruptableAuras
 
AuraStateAurasMap m_auraStateAuras
 
EnumFlag< SpellAuraInterruptFlags > m_interruptMask
 
EnumFlag< SpellAuraInterruptFlags2 > m_interruptMask2
 
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]
 
bool m_canModifyStats
 
VisibleAuraContainer m_visibleAuras
 
Trinity::Containers::FlatSet< AuraApplication *, VisibleAuraSlotCompare > m_visibleAurasToUpdate
 
std::array< float, MAX_MOVE_TYPE > m_speed_rate
 
std::array< float, ADV_FLYING_MAX_SPEED_TYPE > m_advFlyingSpeed
 
Unit * m_unitMovedByMe
 
Player * m_playerMovingMe
 
Unit * m_charmer
 
Unit * m_charmed
 
std::unique_ptr< CharmInfo > m_charmInfo
 
SharedVisionList m_sharedVision
 
std::unique_ptr< MotionMaster > i_motionMaster
 
std::array< uint32, MAX_REACTIVE > m_reactiveTimer
 
uint32 m_regenTimer
 
Vehicle * m_vehicle
 
Trinity::unique_trackable_ptr< Vehicle > m_vehicleKit
 
uint32 m_unitTypeMask
 
LiquidTypeEntry const * _lastLiquid
 
std::unique_ptr< Vignettes::VignetteData > m_vignette
 
uint32 m_movementCounter
 Incrementing counter used in movement packets.
 
- 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
 
TransportBase * m_transport
 
uint32 m_zoneId
 
uint32 m_areaId
 
float m_staticFloorZ
 
bool m_outdoors
 
ZLiquidStatus m_liquidStatus
 
Optional< WmoLocation > m_currentWmo
 
- Protected Attributes inherited from BaseEntity
TypeID m_objectTypeId = NUM_CLIENT_OBJECT_TYPES
 
CreateObjectBits m_updateFlag = {}
 
WowCS::EntityFragmentsHolder m_entityFragments
 
bool m_objectUpdated = false
 

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 AdjustQuestObjectiveProgress (Quest const *quest)
 
bool IsCanDelayTeleport () const
 
void SetCanDelayTeleport (bool setting)
 
void ScheduleDelayedOperation (uint32 operation)
 
bool IsInstanceLoginGameMasterException () const
 
void _InitHonorLevelOnLoadFromDB (uint32 honor, uint32 honorLevel)
 
void ExecutePendingSpellCastRequest ()
 
bool ProcessItemCast (SpellCastRequest &castRequest, SpellCastTargets const &targets)
 
bool CanExecutePendingSpellCastRequest ()
 

Private Attributes

std::unique_ptr< CinematicMgr > _cinematicMgr
 
GuidSet m_refundableItems
 
MapReference m_mapRef
 
uint32 m_lastFallTime
 
float m_lastFallZ
 
std::array< MirrorTimer, MIRROR_TIMER_MAX > m_mirrorTimers
 
int32 m_environmentalDamageTimer
 
uint8 m_MirrorTimerFlags
 
TeleportLocation m_teleport_dest
 
TeleportState m_teleport_state
 
TeleportToOptions m_teleport_options
 
uint32 m_teleportSpellId
 
int32 m_newWorldCounter
 
uint32 m_DelayedOperations
 
bool m_bCanDelayTeleport
 
std::unique_ptr< PetStable > m_petStable
 
uint32 m_temporaryUnsummonedPetNumber
 
Optional< ReactStates > m_temporaryPetReactState
 
uint32 m_oldpetspell
 
ObjectGuid m_temporaryUnsummonedBattlePet
 
std::unique_ptr< PlayerAchievementMgr > m_achievementMgr
 
std::unique_ptr< ReputationMgr > m_reputationMgr
 
std::unique_ptr< QuestObjectiveCriteriaMgr > m_questObjectiveCriteriaMgr
 
uint32 m_ChampioningFaction
 
uint32 _pendingBindId
 
uint32 _pendingBindTimer
 
uint32 _activeCheats
 
std::unique_ptr< Garrison > _garrison
 
bool _advancedCombatLoggingEnabled
 
uint64 healthBeforeDuel
 
uint32 manaBeforeDuel
 
WorldLocation _corpseLocation
 
SceneMgr m_sceneMgr
 
std::unordered_map< ObjectGuid, Loot * > m_AELootView
 
std::vector< LootRoll * > m_lootRolls
 
std::unique_ptr< RestMgr > _restMgr
 
bool _usePvpItemLevels
 
ObjectGuid _areaSpiritHealerGUID
 
std::unique_ptr< SpellCastRequest > _pendingSpellCastRequest
 
Trinity::Containers::FlatSet< uint32 > _playerDataElementsNeedSave
 
Trinity::Containers::FlatSet< uint32 > _playerDataFlagsNeedSave
 

Friends

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

Detailed Description

Definition at line 1216 of file Player.h.

Member Typedef Documentation

◆ DFQuestsDoneList

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

Definition at line 2716 of file Player.h.

◆ ItemMap

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

Definition at line 1930 of file Player.h.

◆ JoinedChannelsList

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

Definition at line 2347 of file Player.h.

◆ QuestSet

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

Definition at line 3092 of file Player.h.

◆ SeasonalQuestMapByEvent

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

Definition at line 3094 of file Player.h.

◆ SeasonalQuestMapByQuest

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

Definition at line 3093 of file Player.h.

Constructor & Destructor Documentation

◆ Player()

Player::Player ( WorldSession *  session)
explicit

Definition at line 163 of file Player.cpp.

References _activeCheats, _advancedCombatLoggingEnabled, _cinematicMgr, _CUFProfiles, _restMgr, _usePvpItemLevels, WowCS::EntityFragmentsHolder::Add(), AT_LOGIN_NONE, BATTLEGROUND_QUEUE_NONE, Player::BgBattlegroundQueueID_Rec::bgQueueTypeId, BUYBACK_SLOT_START, CHEAT_NONE, CONFIG_INTERVAL_SAVE, DIFFICULTY_10_N, DIFFICULTY_NORMAL, DIFFICULTY_NORMAL_RAID, GameTime::GetGameTime(), GetSession(), healthBeforeDuel, IN_MILLISECONDS, Player::BgBattlegroundQueueID_Rec::invitedToInstance, isDebugAreaTriggers, Player::BgBattlegroundQueueID_Rec::joinTime, m_achievementMgr, m_areaUpdateId, m_ArenaTeamIdInvited, m_ArmorProficiency, m_atLoginFlags, m_auraBaseFlatMod, m_auraBasePctMod, m_baseHealthRegen, m_baseManaRegen, m_baseRatingValue, m_baseSpellPower, m_bCanDelayTeleport, m_bgBattlegroundQueueID, m_bPassOnGroupLoot, m_canBlock, m_canParry, m_canTitanGrip, m_ChampioningFaction, m_cinematic, m_contestedPvPTimer, Unit::m_ControlledByPlayer, m_createMode, m_createTime, m_currentBuybackSlot, m_customizationsChanged, m_DailyQuestChanged, m_deathExpireTime, m_deathTimer, m_DelayedOperations, m_drunkTimer, m_dungeonDifficulty, m_empowerMinHoldStagePercent, BaseEntity::m_entityFragments, m_environmentalDamageTimer, m_ExtraFlags, m_fishingSteps, m_forced_speed_changes, m_groupUpdateMask, m_GuildIdInvited, m_healthFraction, m_homebindAreaId, m_HomebindTimer, 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_legacyRaidDifficulty, m_logintime, m_mailsUpdated, m_MirrorTimerFlags, Unit::m_modMeleeHitChance, Unit::m_modRangedHitChance, Unit::m_modSpellHitChance, m_MonthlyQuestChanged, m_movementForceModMagnitudeChanges, m_movie, m_newWorldCounter, m_nextMailDelivereTime, m_nextSave, BaseEntity::m_objectTypeId, m_oldpetspell, m_Played_time, Unit::m_playerMovingMe, m_powerFraction, m_questObjectiveCriteriaMgr, m_raidDifficulty, m_regenInterruptTimestamp, Unit::m_regenTimer, m_regenTimerCount, m_reputationMgr, m_SeasonalQuestChanged, m_seer, m_session, m_sharedQuestId, m_social, m_spellModTakingSpell, m_spellPenetrationItemMod, m_summon_expire, m_team, m_teleport_options, m_teleport_state, m_teleportSpellId, m_temporaryUnsummonedPetNumber, m_titanGripArmorSubclasses, m_titanGripPenaltySpellId, m_titanGripWeaponSubclasses, m_trade, Unit::m_unitMovedByMe, m_weaponChangeTimer, m_WeaponProficiency, m_WeeklyQuestChanged, m_zoneUpdateId, manaBeforeDuel, MAX_CUF_PROFILES, Normal, NotTeleporting, GameTime::Now(), PLAYER_MAX_BATTLEGROUND_QUEUES, PLAYER_SLOTS_COUNT, PlayerTalkClass, rbac::RBAC_PERM_CAN_FILTER_WHISPERS, SetAcceptWhispers(), SetGroupInvite(), SetPendingBind(), sWorld, WowCS::Tag_Player, TEAM_OTHER, TELE_TO_NONE, TYPEID_PLAYER, UI64LIT, UNDERWATER_NONE, and unReadMails.

◆ ~Player()

Player::~Player ( )

Definition at line 357 of file Player.cpp.

References DeleteItemSetEffects(), ItemSetEff, m_items, m_mail, mMitems, PLAYER_SLOTS_COUNT, and sWorld.

Member Function Documentation

◆ _ApplyAllItemMods()

◆ _ApplyAllLevelScaleItemMods()

◆ _ApplyAllStatBonuses()

void Player::_ApplyAllStatBonuses ( )

◆ _ApplyItemBonuses()

void Player::_ApplyItemBonuses ( Item *  item,
uint8  slot,
bool  apply 
)

Definition at line 7842 of file Player.cpp.

References _ApplyWeaponDamage(), ApplyHealthRegenBonus(), ApplyManaRegenBonus(), ApplyRatingMod(), ApplySpellPenetrationBonus(), ApplySpellPowerBonus(), BASE_VALUE, CR_ARMOR_PENETRATION, CR_AVOIDANCE, CR_BLOCK, CR_CORRUPTION, CR_CORRUPTION_RESISTANCE, CR_CRIT_MELEE, CR_CRIT_RANGED, CR_CRIT_SPELL, CR_DEFENSE_SKILL, CR_DODGE, CR_EXPERTISE, CR_HASTE_MELEE, CR_HASTE_RANGED, CR_HASTE_SPELL, CR_HIT_MELEE, CR_HIT_RANGED, CR_HIT_SPELL, CR_LIFESTEAL, CR_MASTERY, CR_PARRY, CR_PVP_POWER, CR_RESILIENCE_PLAYER_DAMAGE, CR_SPEED, CR_STURDINESS, CR_VERSATILITY_DAMAGE_DONE, CR_VERSATILITY_DAMAGE_TAKEN, CR_VERSATILITY_HEALING_DONE, FlatNegative, FlatPositive, ItemTemplate::GetArmor(), GetAttackBySlot(), ItemTemplate::GetClass(), GetIlvlStatMultiplier(), ItemTemplate::GetInventoryType(), Item::GetItemLevel(), Item::GetItemStatType(), Item::GetItemStatValue(), ItemTemplate::GetSubClass(), Item::GetTemplate(), Unit::HandleAttackPowerModifier(), Unit::HandleStatFlatModifier(), ITEM_CLASS_ARMOR, ITEM_MOD_AGI_INT, ITEM_MOD_AGI_STR, ITEM_MOD_AGI_STR_INT, ITEM_MOD_AGILITY, ITEM_MOD_ARCANE_RESISTANCE, ITEM_MOD_ARMOR_PENETRATION_RATING, ITEM_MOD_ATTACK_POWER, ITEM_MOD_BLOCK_RATING, ITEM_MOD_CORRUPTION, ITEM_MOD_CORRUPTION_RESISTANCE, ITEM_MOD_CR_AVOIDANCE, ITEM_MOD_CR_LIFESTEAL, ITEM_MOD_CR_SPEED, ITEM_MOD_CR_STURDINESS, ITEM_MOD_CRIT_MELEE_RATING, ITEM_MOD_CRIT_RANGED_RATING, ITEM_MOD_CRIT_RATING, ITEM_MOD_CRIT_SPELL_RATING, ITEM_MOD_CRIT_TAKEN_RANGED_RATING, ITEM_MOD_CRIT_TAKEN_RATING, ITEM_MOD_DEFENSE_SKILL_RATING, ITEM_MOD_DODGE_RATING, ITEM_MOD_EXPERTISE_RATING, ITEM_MOD_EXTRA_ARMOR, ITEM_MOD_FIRE_RESISTANCE, ITEM_MOD_FROST_RESISTANCE, ITEM_MOD_HASTE_MELEE_RATING, ITEM_MOD_HASTE_RANGED_RATING, ITEM_MOD_HASTE_RATING, ITEM_MOD_HASTE_SPELL_RATING, ITEM_MOD_HEALTH, ITEM_MOD_HEALTH_REGEN, ITEM_MOD_HIT_MELEE_RATING, ITEM_MOD_HIT_RANGED_RATING, ITEM_MOD_HIT_RATING, ITEM_MOD_HIT_SPELL_RATING, ITEM_MOD_HIT_TAKEN_RATING, ITEM_MOD_HOLY_RESISTANCE, ITEM_MOD_INTELLECT, ITEM_MOD_MANA, ITEM_MOD_MANA_REGENERATION, ITEM_MOD_MASTERY_RATING, ITEM_MOD_NATURE_RESISTANCE, ITEM_MOD_PARRY_RATING, ITEM_MOD_PVP_POWER, ITEM_MOD_RANGED_ATTACK_POWER, ITEM_MOD_RESILIENCE_RATING, ITEM_MOD_SHADOW_RESISTANCE, ITEM_MOD_SPELL_PENETRATION, ITEM_MOD_SPELL_POWER, ITEM_MOD_SPIRIT, ITEM_MOD_STAMINA, ITEM_MOD_STR_INT, ITEM_MOD_STRENGTH, ITEM_MOD_VERSATILITY, ITEM_SUBCLASS_ARMOR_SHIELD, m_activePlayerData, BaseEntity::m_values, MAX_ATTACK, MAX_ITEM_PROTO_STATS, Melee, UF::UpdateFieldHolder::ModifyValue(), Ranged, REAGENT_BAG_SLOT_END, sCombatRatingsMultByILvlGameTable, BaseEntity::SetUpdateFieldValue(), UF::ActivePlayerData::ShieldBlock, sStaminaMultByILvlGameTable, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, 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(), _ApplyItemMods(), _RemoveAllItemMods(), and AzeriteItem::GiveXP().

◆ _ApplyItemMods()

◆ _ApplyWeaponDamage()

◆ _InitHonorLevelOnLoadFromDB()

void Player::_InitHonorLevelOnLoadFromDB ( uint32  honor,
uint32  honorLevel 
)
private

◆ _LoadActions()

◆ _LoadArenaTeamInfo()

◆ _LoadAuras()

◆ _LoadBGData()

◆ _LoadCharacterBankTabSettings()

◆ _LoadCUFProfiles()

◆ _LoadCurrency()

◆ _LoadDailyQuestStatus()

◆ _LoadDeclinedNames()

◆ _LoadEquipmentSets()

◆ _LoadGlyphAuras()

void Player::_LoadGlyphAuras ( )
protected

Definition at line 19108 of file Player.cpp.

References CastSpell, GetActiveTalentGroup(), GetGlyphs(), and sGlyphPropertiesStore.

Referenced by LoadFromDB().

◆ _LoadGlyphs()

void Player::_LoadGlyphs ( PreparedQueryResult  result)
protected

◆ _LoadGroup()

◆ _LoadHomeBind()

◆ _LoadInventory()

◆ _LoadItem()

◆ _LoadMail()

◆ _LoadMailedItem()

◆ _LoadMonthlyQuestStatus()

void Player::_LoadMonthlyQuestStatus ( PreparedQueryResult  result)
protected

◆ _LoadPetStable()

◆ _LoadPlayerData()

◆ _LoadPvpTalents()

void Player::_LoadPvpTalents ( PreparedQueryResult  result)
protected

Definition at line 28465 of file Player.cpp.

References AddPvpTalent(), MAX_PVP_TALENT_SLOTS, and sPvpTalentStore.

Referenced by LoadFromDB().

◆ _LoadQuestStatus()

◆ _LoadQuestStatusObjectives()

◆ _LoadQuestStatusObjectiveSpawnTrackings()

◆ _LoadQuestStatusRewarded()

◆ _LoadRandomBGStatus()

void Player::_LoadRandomBGStatus ( PreparedQueryResult  result)
protected

Definition at line 29969 of file Player.cpp.

References m_IsBGRandomWinner.

Referenced by LoadFromDB().

◆ _LoadSeasonalQuestStatus()

◆ _LoadSkills()

◆ _LoadSpells()

void Player::_LoadSpells ( PreparedQueryResult  result,
PreparedQueryResult  favoritesResult 
)
protected

Definition at line 19908 of file Player.cpp.

References AddSpell(), and m_spells.

Referenced by LoadFromDB().

◆ _LoadStoredAuraTeleportLocations()

◆ _LoadTalents()

void Player::_LoadTalents ( PreparedQueryResult  result)
protected

Definition at line 28453 of file Player.cpp.

References AddTalent(), and sTalentStore.

Referenced by LoadFromDB().

◆ _LoadTraits()

void Player::_LoadTraits ( PreparedQueryResult  configsResult,
PreparedQueryResult  entriesResult 
)
protected

Definition at line 28478 of file Player.cpp.

References UF::TraitSubTreeCache::Active, ActiveForSpec, AddTraitConfig(), ApplyTraitConfig(), AsUnderlyingType(), UF::TraitConfig::ChrSpecializationID, WorldPackets::Traits::TraitConfig::ChrSpecializationID, Combat, UF::TraitConfig::CombatConfigFlags, WorldPackets::Traits::TraitConfig::CombatConfigFlags, CreateTraitConfig(), WorldPackets::Traits::TraitConfig::Entries, UF::DynamicUpdateFieldBase< T >::FindIndexIf(), Generic, Unit::GetClass(), TraitMgr::GetGrantedTraitEntriesForConfig(), Field::GetInt32(), GetPrimarySpecialization(), GetSession(), WorldSession::GetSessionDbcLocale(), Field::GetStringView(), HasSkill(), UF::TraitConfig::ID, WorldPackets::Traits::TraitConfig::ID, TraitMgr::IsValidEntry(), UF::TraitConfig::LocalIdentifier, WorldPackets::Traits::TraitConfig::LocalIdentifier, m_activePlayerData, m_traitConfigStates, MAX_SPECIALIZATIONS, WorldPackets::Traits::TraitConfig::Name, TraitMgr::Ok, PLAYERSPELL_REMOVED, Profession, WorldPackets::Traits::TraitEntry::Rank, sDB2Manager, SetActiveCombatTraitConfigID(), SetCurrentCombatTraitConfigSubTreeID(), UF::TraitConfig::SkillLineID, WorldPackets::Traits::TraitConfig::SkillLineID, UF::TraitConfig::SubTrees, WorldPackets::Traits::TraitConfig::SubTrees, WorldPackets::Traits::TraitEntry::TraitNodeEntryID, WorldPackets::Traits::TraitEntry::TraitNodeID, WorldPackets::Traits::TraitConfig::TraitSystemID, UF::TraitConfig::Type, WorldPackets::Traits::TraitConfig::Type, TraitMgr::ValidateConfig(), and WorldPackets::Traits::TraitConfig::VariationID.

Referenced by LoadFromDB().

◆ _LoadTransmogCustomSets()

◆ _LoadTransmogOutfits()

void Player::_LoadTransmogOutfits ( PreparedQueryResult  setsResult,
PreparedQueryResult  situationsResult,
PreparedQueryResult  slotsResult,
int32  equippedTransmogOutfitId,
bool  locked 
)
protected

Definition at line 17700 of file Player.cpp.

References BaseEntity::AddDynamicUpdateFieldValue(), UF::TransmogOutfitSlotData::AppearanceDisplayType, WorldPackets::Transmogrification::TransmogOutfitSlotData::AppearanceDisplayType, AsUnderlyingType(), BaseEntity::ClearDynamicUpdateFieldValues(), CreateTransmogOutfit(), CustomSet, TransmogMgr::DefaultOutfitIcon, TransmogMgr::DefaultOutfitName, DEFINE_FIELD_ACCESSOR_CACHE_ANONYMOUS, UF::TransmogOutfitSituationInfo::EquipmentSetID, WorldPackets::Transmogrification::TransmogOutfitSituationInfo::EquipmentSetID, Equipped, EquipTransmogOutfit(), flags, UF::TransmogOutfitSlotData::Flags, WorldPackets::Transmogrification::TransmogOutfitSlotData::Flags, GetSession(), WorldSession::GetSessionDbcLocale(), TransmogOutfitEntryEntry::GetSetType(), TransmogMgr::GetSlotAndOption(), TransmogOutfitEntryEntry::HasFlag(), HOLIDAY_TRIAL_OF_STYLE, WorldPackets::Transmogrification::TransmogOutfitDataInfo::Icon, UF::TransmogOutfitSlotData::IllusionDisplayType, WorldPackets::Transmogrification::TransmogOutfitSlotData::IllusionDisplayType, InitializeNewTransmogOutfit(), IsHolidayActive(), UF::TransmogOutfitSlotData::ItemModifiedAppearanceID, WorldPackets::Transmogrification::TransmogOutfitSlotData::ItemModifiedAppearanceID, UF::TransmogOutfitSituationInfo::LoadoutID, WorldPackets::Transmogrification::TransmogOutfitSituationInfo::LoadoutID, m_activePlayerData, BaseEntity::m_values, Manual, UF::UpdateFieldHolder::ModifyValue(), TransmogOutfitEntryEntry::Name, WorldPackets::Transmogrification::TransmogOutfitDataInfo::Name, OnlyAvailableDuringEvent, Outfit, WorldPackets::Transmogrification::TransmogOutfitDataInfo::SetType, BaseEntity::SetUpdateFieldValue(), UF::TransmogOutfitSlotData::SheatheCategory, WorldPackets::Transmogrification::TransmogOutfitSlotData::SheatheCategory, UF::TransmogOutfitSituationInfo::SituationID, WorldPackets::Transmogrification::TransmogOutfitSituationInfo::SituationID, UF::TransmogOutfitData::Situations, WorldPackets::Transmogrification::TransmogOutfitDataInfo::SituationsEnabled, UF::TransmogOutfitSlotData::Slot, WorldPackets::Transmogrification::TransmogOutfitSlotData::Slot, TransmogMgr::TransmogOutfitSlotAndOptionInfo::SlotIndex, UF::TransmogOutfitSlotData::SlotOption, WorldPackets::Transmogrification::TransmogOutfitSlotData::SlotOption, UF::TransmogOutfitData::Slots, UF::TransmogOutfitSituationInfo::SpecID, WorldPackets::Transmogrification::TransmogOutfitSituationInfo::SpecID, UF::TransmogOutfitSlotData::SpellItemEnchantmentID, WorldPackets::Transmogrification::TransmogOutfitSlotData::SpellItemEnchantmentID, LocalizedString::Str, sTransmogOutfitEntryStore, UF::ActivePlayerData::TransmogOutfits, and UF::ActivePlayerData::ViewedOutfit.

Referenced by LoadFromDB().

◆ _LoadWeeklyQuestStatus()

void Player::_LoadWeeklyQuestStatus ( PreparedQueryResult  result)
protected

◆ _RemoveAllItemMods()

◆ _RemoveAllStatBonuses()

void Player::_RemoveAllStatBonuses ( )

◆ _SaveActions()

◆ _SaveAuras()

◆ _SaveBGData()

◆ _SaveCharacterBankTabSettings()

◆ _SaveCharacterSelectOutfit()

◆ _SaveCUFProfiles()

◆ _SaveCurrency()

◆ _SaveCustomizations()

void Player::_SaveCustomizations ( CharacterDatabaseTransaction  trans)
protected

◆ _SaveDailyQuestStatus()

◆ _SaveEquipmentSets()

◆ _SaveGlyphs()

◆ _SaveInventory()

◆ _SaveMail()

◆ _SaveMonthlyQuestStatus()

◆ _SavePlayerData()

◆ _SaveQuestStatus()

◆ _SaveSeasonalQuestStatus()

◆ _SaveSkills()

◆ _SaveSpells()

◆ _SaveStats()

◆ _SaveStoredAuraTeleportLocations()

◆ _SaveTalents()

◆ _SaveTraits()

◆ _SaveTransmogOutfits()

◆ _SaveWeeklyQuestStatus()

◆ _StoreItem()

◆ _StoreOrEquipNewItem()

bool Player::_StoreOrEquipNewItem ( uint32  vendorslot,
uint32  item,
uint8  count,
uint8  bag,
uint8  slot,
int64  price,
ItemTemplate const *  pProto,
Creature *  pVendor,
VendorItem const *  crItem,
bool  bStore 
)
inline

◆ AbandonQuest()

◆ ActivatePvpItemLevels()

void Player::ActivatePvpItemLevels ( bool  activate)
inline

Definition at line 2738 of file Player.h.

Referenced by UpdateItemLevelAreaBasedScaling().

◆ ActivateTalentGroup()

void Player::ActivateTalentGroup ( ChrSpecializationEntry const *  spec)

Definition at line 28786 of file Player.cpp.

References _SaveActions(), UF::TraitSubTreeCache::Active, ActiveForSpec, AddOverrideSpell(), AddPvpTalent(), ApplyAllAzeriteEmpoweredItemMods(), ApplyAzeritePowers(), ApplyTraitConfig(), CanUseMastery(), CastSpell, ChangeSpec, CharacterDatabase, UF::TraitConfig::ChrSpecializationID, TalentEntry::ClassID, Unit::ClearAllReactives(), Combat, UF::TraitConfig::CombatConfigFlags, DIFFICULTY_NONE, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Everywhere, Unit::ExitVehicle(), UF::DynamicUpdateFieldBase< T >::FindIndexIf(), GetActiveTalentGroup(), Unit::GetAuraEffectsByType(), Unit::GetClass(), SpellInfo::GetEffects(), GetGlyphs(), GetItemByEntry(), GetItemByPos(), GetPet(), Unit::GetPowerType(), GetPvpTalentMap(), Unit::GetSingleCastAuras(), Aura::GetUnitOwner(), WorldPackets::Talent::ActiveGlyphs::Glyphs, HasSpell(), HasTalent(), ChrSpecializationEntry::ID, TalentEntry::ID, UF::TraitConfig::ID, InitTalentForLevel(), Unit::InterruptNonMeleeSpells(), INVENTORY_SLOT_BAG_0, WorldPackets::Talent::ActiveGlyphs::IsFullUpdate, Unit::IsNonMeleeSpellCast(), ITEM_CHANGED, ITEM_ID_HEART_OF_AZEROTH, LearnSpecializationSpells(), LearnSpell(), m_activePlayerData, m_overrideSpells, ChrSpecializationEntry::MasterySpellID, MAX_MASTERY_SPELLS, MAX_PVP_TALENT_SLOTS, None, ChrSpecializationEntry::OrderIndex, PvpTalentEntry::OverridesSpellID, TalentEntry::OverridesSpellID, PET_SAVE_NOT_IN_SLOT, POWER_MANA, Aura::Remove(), Unit::RemoveAllControlled(), Unit::RemoveAurasDueToSpell(), Unit::RemoveAurasWithInterruptFlags(), RemoveOverrideSpell(), RemovePet(), RemoveSpecializationSpells(), RemoveSpell(), sDB2Manager, SendActionButtons(), SendDirectMessage(), SetActiveCombatTraitConfigID(), SetActiveTalentGroup(), SetCurrentCombatTraitConfigSubTreeID(), Unit::SetPower(), SetPrimarySpecialization(), SetVisibleItemSlot(), sGlyphPropertiesStore, SPELL_AURA_MOD_SHAPESHIFT, SPELL_EFFECT_LEARN_SPELL, PvpTalentEntry::SpellID, TalentEntry::SpellID, sPvpTalentStore, sSpellMgr, sTalentStore, StartLoadingActionButtons(), UF::TraitConfig::SubTrees, Item::ToAzeriteItem(), UF::TraitConfig::Type, Unit::UnsummonAllTotems(), Unit::UpdateDisplayPower(), UpdateItemSetAuras(), and WorldPackets::Talent::ActiveGlyphs::Write().

Referenced by Spell::EffectActivateSpec().

◆ ActivateTaxiPathTo() [1/2]

bool Player::ActivateTaxiPathTo ( std::vector< uint32 > const &  nodes,
Creature *  npc = nullptr,
uint32  spellid = 0,
uint32  preferredMountDisplay = 0,
Optional< float >  speed = {},
Scripting::v2::ActionResultSetter< MovementStopReason > const &  scriptResult = {} 
)

Definition at line 23106 of file Player.cpp.

References PlayerTaxi::AddTaxiDestination(), ASSERT, BuyTaxi, 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_TAXIPLAYERBUSY, ERR_TAXIPLAYERSHAPESHIFTED, ERR_TAXIUNSPECIFIEDSERVERERROR, Unit::ExitVehicle(), FORM_NONE, Unit::GetClass(), Unit::GetCurrentSpell(), Unit::GetDisplayId(), Unit::GetFaction(), TaxiNodesEntry::GetFlags(), GetMoney(), Unit::GetNativeDisplayId(), Position::GetOrientation(), GetReputationPriceDiscount(), GetSession(), GetTeam(), Unit::GetTransformSpell(), Unit::HasUnitFlag(), Unit::HasUnitState(), Unit::InterruptSpell(), Unit::IsDisallowedMountForm(), Unit::IsInCombat(), Unit::IsNonMeleeSpellCast(), m_taxi, ModifyMoney(), MoneySpentOnTaxis, TaxiNodesEntry::Pos, Unit::RemoveAurasByType(), Unit::RestoreDisplayId(), WorldSession::SendActivateTaxiReply(), PlayerTaxi::SetFlightMasterFactionTemplateId(), sObjectMgr, SPELL_AURA_MOUNTED, StartTaxiMovement(), sTaxiNodesStore, StopCastingBindSight(), StopCastingCharm(), sWorld, TeleportTo(), TradeCancel(), UNIT_FLAG_REMOVE_CLIENT_CONTROL, UNIT_STATE_ROOT, UNIT_STATE_STUNNED, UpdateCriteria(), UsePlayerFavoriteMount, DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.

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

◆ ActivateTaxiPathTo() [2/2]

bool Player::ActivateTaxiPathTo ( uint32  taxi_path_id,
uint32  spellid = 0,
Optional< float >  speed = {},
Scripting::v2::ActionResultSetter< MovementStopReason > const &  scriptResult = {} 
)

◆ AddActionButton()

◆ AddArmorProficiency()

void Player::AddArmorProficiency ( uint32  newflag)
inline

Definition at line 1623 of file Player.h.

Referenced by Spell::EffectProficiency().

◆ AddAuraVision()

void Player::AddAuraVision ( PlayerFieldByte2Flags  flags)
inline

Definition at line 3001 of file Player.h.

References UF::ActivePlayerData::AuraVision, flags, and m_activePlayerData.

◆ AddBattlegroundQueueId()

◆ AddConditionalTransmog()

void Player::AddConditionalTransmog ( uint32  itemModifiedAppearanceId)
inline

◆ AddCurrency()

void Player::AddCurrency ( uint32  id,
uint32  amount,
CurrencyGainSource  gainSource = CurrencyGainSource::Cheat 
)

◆ AddEnchantmentDuration()

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

◆ AddEnchantmentDurations()

void Player::AddEnchantmentDurations ( Item *  item)

◆ AddExploredZones()

◆ AddHeirloom()

void Player::AddHeirloom ( int32  itemId,
uint32  flags 
)
inline

◆ AddHonorXP()

◆ AddIllusionBlock()

void Player::AddIllusionBlock ( uint32  blockValue)
inline

◆ AddIllusionFlag()

void Player::AddIllusionFlag ( uint32  slot,
uint32  flag 
)
inline

◆ AddItem()

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

◆ AddItemDurations()

void Player::AddItemDurations ( Item *  item)

Definition at line 26092 of file Player.cpp.

References Item::m_itemData, m_itemDuration, and Item::SendTimeUpdate().

Referenced by _StoreItem(), EquipItem(), and QuickEquipItem().

◆ AddItemToBuyBackSlot()

◆ AddLootRoll()

void Player::AddLootRoll ( LootRoll *  roll)

Definition at line 9006 of file Player.cpp.

References m_lootRolls.

Referenced by LootRoll::TryToStart().

◆ AddMail()

void Player::AddMail ( Mail *  mail)

Definition at line 2525 of file Player.cpp.

References m_mail.

Referenced by MailDraft::SendMailTo().

◆ AddMItem()

void Player::AddMItem ( Item *  it)

Definition at line 22401 of file Player.cpp.

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

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

◆ AddNewMailDeliverTime()

void Player::AddNewMailDeliverTime ( time_t  deliver_time)

◆ AddOverrideSpell()

void Player::AddOverrideSpell ( uint32  overridenSpellId,
uint32  newSpellId 
)

◆ AddPetAura()

void Player::AddPetAura ( PetAura const *  petSpell)

Definition at line 22175 of file Player.cpp.

References GetPet(), and m_petAuras.

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

◆ AddPetToUpdateFields()

◆ AddPvpTalent()

◆ AddQuest()

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

Definition at line 14785 of file Player.cpp.

References AcceptQuest, QuestStatusData::AcceptTime, AddTimedQuest(), AdjustQuestObjectiveProgress(), WorldObject::CastSpell(), CHAR_INS_QUEST_TRACK, CharacterDatabase, CONFIG_QUEST_ENABLE_QUEST_TRACKER, SpellInfo::Difficulty, QuestStatusData::Explored, GitRevision::GetDate(), GetDifficultyID(), GameTime::GetGameTime(), BaseEntity::GetGUID(), GitRevision::GetHash(), Quest::GetLimitTime(), WorldObject::GetMap(), Quest::GetObjectives(), Quest::GetQuestId(), GetQuestSlotQuestId(), getQuestStatusMap(), GetReputationMgr(), Quest::GetSrcSpell(), BaseEntity::GetTypeId(), GiveQuestSourceItem(), Quest::HasFlag(), SpellInfo::HasTargetType(), SpellInfo::Id, IN_MILLISECONDS, PvPInfo::IsHostile, BaseEntity::IsUnit(), m_questObjectiveCriteriaMgr, m_questObjectiveStatus, m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, PhasingHandler::OnConditionChange(), pvpInfo, QUEST_DEFAULT_SAVE_TYPE, QUEST_FLAGS_FLAGS_PVP, QUEST_FLAGS_PLAYER_CAST_ACCEPT, QUEST_FLAGS_UPDATE_PHASESHIFT, QUEST_OBJECTIVE_CRITERIA_TREE, QUEST_OBJECTIVE_MAX_REPUTATION, QUEST_OBJECTIVE_MIN_REPUTATION, QUEST_STATUS_INCOMPLETE, SendForceSpawnTrackingUpdate(), SendQuestUpdate(), SetQuestSlot(), SetQuestSlotEndTime(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), ReputationMgr::SetVisible(), sFactionStore, QuestStatusData::Slot, sScriptMgr, sSpellMgr, StartCriteria(), QuestStatusData::Status, sWorld, TARGET_DEST_CASTER_SUMMON, TARGET_UNIT_CASTER, QuestStatusData::Timer, Object::ToPlayer(), Object::ToUnit(), TRIGGERED_FULL_MASK, TYPEID_PLAYER, UpdateObjectVisibility(), and UpdatePvPState().

Referenced by AddQuestAndCheckCompletion().

◆ AddQuestAndCheckCompletion()

◆ AddRefundReference()

void Player::AddRefundReference ( ObjectGuid  it)

Definition at line 29498 of file Player.cpp.

References m_refundableItems.

Referenced by _LoadItem(), and _StoreOrEquipNewItem().

◆ AddSelfResSpell()

void Player::AddSelfResSpell ( int32  spellId)
inline

Definition at line 2970 of file Player.h.

References m_activePlayerData, and UF::ActivePlayerData::SelfResSpells.

Referenced by InitializeSelfResurrectionSpells().

◆ AddSpell()

bool Player::AddSpell ( uint32  spellId,
bool  active,
bool  learning,
bool  dependent,
bool  disabled,
bool  loading = false,
int32  fromSkill = 0,
bool  favorite = false,
Optional< PlayerSpellTrait >  trait = {} 
)

Definition at line 2667 of file Player.cpp.

References PlayerSpell::active, CollectionMgr::AddMount(), AddOverrideSpell(), AddSpell(), AutomaticCharLevel, CastSpell, DeleteSpellFromAllPlayers(), PlayerSpell::dependent, DIFFICULTY_NONE, PlayerSpell::disabled, PlayerSpell::favorite, Unit::GetClass(), WorldSession::GetCollectionMgr(), GetFreePrimaryProfessionPoints(), Unit::GetMaxSkillValueForLevel(), GetPureMaxSkillValue(), GetPureSkillValue(), Unit::GetRace(), GetSession(), GetSkillRangeType(), SkillTiersEntry::GetValueForTierIndex(), HandlePassiveSpellLearn(), SpellInfo::HasAttribute(), SpellInfo::HasEffect(), HasSkill(), HasSpell(), SpellInfo::IsDifferentRankOf(), SpellInfo::IsHighRankOf(), BaseEntity::IsInWorld(), SpellInfo::IsPassive(), SpellInfo::IsPrimaryProfessionFirstRank(), SpellInfo::IsRanked(), SpellMgr::IsSpellValid(), LearnDefaultSkill(), LearnOrKnowSpell, LearnSpell(), LearnSpellFromSkillLine, LearnTradeskillSkillLine, m_spells, MOUNT_STATUS_NONE, PLAYERSPELL_CHANGED, PLAYERSPELL_NEW, PLAYERSPELL_REMOVED, PLAYERSPELL_TEMPORARY, PLAYERSPELL_UNCHANGED, RemoveOverrideSpell(), RemoveTemporarySpell(), sDB2Manager, SendDirectMessage(), SendSupercededSpell(), SetFreePrimaryProfessions(), SetSkill(), SKILL_FLAG_ALWAYS_MAX_VALUE, SKILL_RANGE_LANGUAGE, SKILL_RANGE_LEVEL, SKILL_RANGE_MONO, SKILL_RANGE_RANK, SKILL_RUNEFORGING, sObjectMgr, SPELL_ATTR0_CU_IS_TALENT, SPELL_ATTR1_CAST_WHEN_LEARNED, SPELL_EFFECT_LEARN_SPELL, SPELL_EFFECT_SKILL_STEP, WorldPackets::Spells::UnlearnedSpells::SpellID, sSkillLineStore, sSpellMgr, PlayerSpell::state, sTraitDefinitionStore, TC_LOG_ERROR, PlayerSpell::Trait, UpdateCriteria(), and WorldPackets::Spells::UnlearnedSpells::Write().

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

◆ AddSpellCategoryCooldownMod()

◆ AddSpellMod()

void Player::AddSpellMod ( SpellModifier *  mod,
bool  apply 
)

First, manipulate our spellmodifier container

Now, send spellmodifier packet

Todo:
Implement sending of bulk modifiers instead of single

Definition at line 22855 of file Player.cpp.

References BaseEntity::AddDynamicUpdateFieldValue(), AsUnderlyingType(), CalculatePct(), WorldPackets::Spells::SpellModifierData::ClassIndex, Trinity::Containers::FlatSet< Key, Compare, KeyContainer >::end(), Trinity::Containers::FlatSet< Key, Compare, KeyContainer >::erase(), BaseEntity::GetGUID(), WorldObject::GetName(), Trinity::Containers::FlatSet< Key, Compare, KeyContainer >::insert(), IsLoading(), m_activePlayerData, m_spellMods, BaseEntity::m_values, SpellModifierByClassMask::mask, WorldPackets::Spells::SpellModifier::ModifierData, WorldPackets::Spells::SetSpellModifier::Modifiers, WorldPackets::Spells::SpellModifierData::ModifierValue, UF::UpdateFieldHolder::ModifyValue(), WorldPackets::Spells::SpellModifier::ModIndex, SpellModifier::op, BaseEntity::RemoveDynamicUpdateFieldValue(), SendDirectMessage(), SMSG_SET_FLAT_SPELL_MODIFIER, SMSG_SET_PCT_SPELL_MODIFIER, UF::ActivePlayerData::SpellFlatModByLabel, SpellModifier::spellId, SPELLMOD_FLAT, SPELLMOD_LABEL_FLAT, SPELLMOD_LABEL_PCT, SPELLMOD_PCT, UF::ActivePlayerData::SpellPctModByLabel, TC_LOG_DEBUG, Position::ToString(), SpellModifier::type, SpellFlatModifierByClassMask::value, SpellPctModifierByClassMask::value, SpellFlatModifierByLabel::value, SpellPctModifierByLabel::value, and WorldPackets::Spells::SetSpellModifier::Write().

Referenced by AuraEffect::ApplySpellMod().

◆ AddStoredAuraTeleportLocation()

◆ AddTalent()

◆ AddTemporarySpell()

◆ AddTimedQuest()

void Player::AddTimedQuest ( uint32  questId)

Definition at line 17477 of file Player.cpp.

References m_timedquests.

Referenced by _LoadQuestStatus(), and AddQuest().

◆ AddToWorld()

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

Reimplemented from Object.

Definition at line 1485 of file Player.cpp.

References BaseEntity::AddToWorld(), Object::AddToWorld(), Unit::AddToWorld(), WorldSession::GetBattlenetAccount(), GetSession(), m_items, PLAYER_SLOT_END, and PLAYER_SLOT_START.

Referenced by Map::AddPlayerToMap().

◆ AddToy()

void Player::AddToy ( int32  itemId,
uint32  flags 
)
inline

◆ AddTradeableItem()

void Player::AddTradeableItem ( Item *  item)

Definition at line 13244 of file Player.cpp.

References BaseEntity::GetGUID(), and m_itemSoulboundTradeable.

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

◆ AddTraitConfig()

◆ AddTransmogBlock()

void Player::AddTransmogBlock ( uint32  blockValue)
inline

◆ AddTransmogFlag()

void Player::AddTransmogFlag ( uint32  slot,
uint32  flag 
)
inline

Definition at line 2954 of file Player.h.

References m_activePlayerData, and UF::ActivePlayerData::Transmog.

Referenced by CollectionMgr::AddItemAppearance().

◆ AddUnlockedTransmogOutfit()

void Player::AddUnlockedTransmogOutfit ( int32  transmogOutfitIds)
inline

Definition at line 3035 of file Player.h.

Referenced by CollectionMgr::AddTransmogOutfit().

◆ AddUnlockedTransmogOutfits()

void Player::AddUnlockedTransmogOutfits ( std::span< int32 const >  transmogOutfitIds)

◆ AddWarbandScenesBlock()

void Player::AddWarbandScenesBlock ( uint32  blockValue)
inline

Definition at line 2967 of file Player.h.

References m_activePlayerData, and UF::ActivePlayerData::WarbandScenes.

◆ AddWarbandScenesFlag()

void Player::AddWarbandScenesFlag ( uint32  slot,
uint32  flag 
)
inline

◆ AddWeaponProficiency()

void Player::AddWeaponProficiency ( uint32  newflag)
inline

Definition at line 1622 of file Player.h.

Referenced by Spell::EffectProficiency().

◆ AddWhisperWhiteList()

void Player::AddWhisperWhiteList ( ObjectGuid  guid)
inline

Definition at line 2853 of file Player.h.

Referenced by WorldSession::HandleChatMessage().

◆ AdjustQuestObjectiveProgress()

◆ AI()

PlayerAI * Player::AI ( ) const
inline

Definition at line 1227 of file Player.h.

Referenced by at_azhiccar_intro::OnUnitEnter().

◆ ApplyAllAzeriteEmpoweredItemMods()

void Player::ApplyAllAzeriteEmpoweredItemMods ( bool  apply)

◆ ApplyAllAzeriteItemMods()

void Player::ApplyAllAzeriteItemMods ( bool  apply)

◆ ApplyArtifactPowerRank()

◆ ApplyArtifactPowers()

◆ ApplyAzeriteEssence()

◆ ApplyAzeriteEssencePower()

void Player::ApplyAzeriteEssencePower ( AzeriteItem *  item,
AzeriteEssencePowerEntry const *  azeriteEssencePower,
bool  major,
bool  apply 
)

◆ ApplyAzeriteItemMilestonePower()

◆ ApplyAzeritePower()

◆ ApplyAzeritePowers()

◆ ApplyBaseModPctValue()

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

◆ ApplyEnchantment() [1/2]

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

Definition at line 13406 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 13412 of file Player.cpp.

References AddEnchantmentDuration(), ApplyHealthRegenBonus(), ApplyManaRegenBonus(), ApplyRatingMod(), ApplySpellPenetrationBonus(), ApplySpellPowerBonus(), BASE_VALUE, CastSpell, SpellItemEnchantmentEntry::ConditionID, CR_ARMOR_PENETRATION, CR_BLOCK, CR_CRIT_MELEE, CR_CRIT_RANGED, CR_CRIT_SPELL, CR_DEFENSE_SKILL, CR_DODGE, CR_EXPERTISE, CR_HASTE_MELEE, CR_HASTE_RANGED, CR_HASTE_SPELL, CR_HIT_MELEE, CR_HIT_RANGED, CR_HIT_SPELL, CR_MASTERY, CR_PARRY, CR_RESILIENCE_PLAYER_DAMAGE, CR_VERSATILITY_DAMAGE_DONE, CR_VERSATILITY_DAMAGE_TAKEN, CR_VERSATILITY_HEALING_DONE, SpellItemEnchantmentEntry::Effect, SpellItemEnchantmentEntry::EffectArg, SpellItemEnchantmentEntry::EffectPointsMin, SpellItemEnchantmentEntry::EffectScalingPoints, EnchantmentFitsRequirements(), FlatNegative, FlatPositive, GetAttackBySlot(), Item::GetEnchantmentDuration(), Item::GetEnchantmentId(), SpellItemEnchantmentEntry::GetFlags(), Item::GetGem(), BaseEntity::GetGUID(), ItemTemplate::GetInventoryType(), Unit::GetLevel(), WorldObject::GetName(), GetSkillValue(), Item::GetSlot(), Item::GetSocketColor(), GetSpellScalingColumnForClass(), Item::GetTemplate(), Item::GetVisibleItemVisual(), Unit::HandleAttackPowerModifier(), HandleBaseModFlatValue(), Unit::HandleStatFlatModifier(), Item::IsBroken(), Item::IsEquipped(), ITEM_ENCHANTMENT_TYPE_ARTIFACT_POWER_BONUS_RANK_BY_ID, ITEM_ENCHANTMENT_TYPE_ARTIFACT_POWER_BONUS_RANK_BY_TYPE, ITEM_ENCHANTMENT_TYPE_ARTIFACT_POWER_BONUS_RANK_PICKER, ITEM_ENCHANTMENT_TYPE_BONUS_LIST_CURVE, ITEM_ENCHANTMENT_TYPE_BONUS_LIST_ID, ITEM_ENCHANTMENT_TYPE_COMBAT_SPELL, ITEM_ENCHANTMENT_TYPE_DAMAGE, ITEM_ENCHANTMENT_TYPE_EQUIP_SPELL, ITEM_ENCHANTMENT_TYPE_NONE, ITEM_ENCHANTMENT_TYPE_PRISMATIC_SOCKET, ITEM_ENCHANTMENT_TYPE_RESISTANCE, ITEM_ENCHANTMENT_TYPE_STAT, ITEM_ENCHANTMENT_TYPE_TOTEM, ITEM_ENCHANTMENT_TYPE_USE_SPELL, ITEM_MOD_AGILITY, ITEM_MOD_ARMOR_PENETRATION_RATING, ITEM_MOD_ATTACK_POWER, ITEM_MOD_BLOCK_RATING, ITEM_MOD_BLOCK_VALUE, ITEM_MOD_CRIT_MELEE_RATING, ITEM_MOD_CRIT_RANGED_RATING, ITEM_MOD_CRIT_RATING, ITEM_MOD_CRIT_SPELL_RATING, ITEM_MOD_DEFENSE_SKILL_RATING, ITEM_MOD_DODGE_RATING, ITEM_MOD_EXPERTISE_RATING, ITEM_MOD_HASTE_RATING, ITEM_MOD_HASTE_SPELL_RATING, ITEM_MOD_HEALTH, ITEM_MOD_HEALTH_REGEN, ITEM_MOD_HIT_MELEE_RATING, ITEM_MOD_HIT_RANGED_RATING, ITEM_MOD_HIT_RATING, ITEM_MOD_HIT_SPELL_RATING, ITEM_MOD_INTELLECT, ITEM_MOD_MANA, ITEM_MOD_MANA_REGENERATION, ITEM_MOD_MASTERY_RATING, ITEM_MOD_PARRY_RATING, ITEM_MOD_RANGED_ATTACK_POWER, ITEM_MOD_RESILIENCE_RATING, ITEM_MOD_SPELL_PENETRATION, ITEM_MOD_SPELL_POWER, ITEM_MOD_SPIRIT, ITEM_MOD_STAMINA, ITEM_MOD_STRENGTH, ITEM_MOD_VERSATILITY, UF::VisibleItem::ItemVisual, m_playerData, Unit::m_unitData, BaseEntity::m_values, MAX_ATTACK, MAX_ENCHANTMENT_SLOT, MAX_ITEM_ENCHANTMENT_EFFECTS, SpellItemEnchantmentEntry::MaxLevel, Melee, SpellItemEnchantmentEntry::MinLevel, UF::UpdateFieldHolder::ModifyValue(), PERM_ENCHANTMENT_SLOT, PRISMATIC_ENCHANTMENT_SLOT, Ranged, Unit::RemoveAurasDueToItemSpell(), SpellItemEnchantmentEntry::RequiredSkillID, SpellItemEnchantmentEntry::RequiredSkillRank, ScaleAsAGem, SpellItemEnchantmentEntry::ScalingClass, SpellItemEnchantmentEntry::ScalingClassRestricted, BaseEntity::SetUpdateFieldValue(), SHIELD_BLOCK_VALUE, sObjectMgr, SOCK_ENCHANTMENT_SLOT, SOCK_ENCHANTMENT_SLOT_2, SOCK_ENCHANTMENT_SLOT_3, sSpellItemEnchantmentStore, sSpellScalingGameTable, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, TC_LOG_DEBUG, TC_LOG_ERROR, 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(), Unit::UpdateStatBuffMod(), and UF::PlayerData::VisibleItems.

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

◆ ApplyEquipCooldown()

◆ ApplyEquipSpell()

◆ ApplyHealthRegenBonus()

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

Definition at line 812 of file StatSystem.cpp.

References _ModifyUInt32(), and m_baseHealthRegen.

Referenced by _ApplyItemBonuses(), and ApplyEnchantment().

◆ ApplyItemDependentAuras()

◆ ApplyItemEquipSpell()

◆ ApplyItemLootedSpell() [1/2]

◆ ApplyItemLootedSpell() [2/2]

void Player::ApplyItemLootedSpell ( ItemTemplate const *  itemTemplate)

◆ ApplyItemObtainSpells()

◆ ApplyManaRegenBonus()

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

Definition at line 806 of file StatSystem.cpp.

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

Referenced by _ApplyItemBonuses(), and ApplyEnchantment().

◆ ApplyModDamageDoneNeg()

void Player::ApplyModDamageDoneNeg ( SpellSchools  school,
int32  mod,
bool  apply 
)
inline

Definition at line 2200 of file Player.h.

References m_activePlayerData, and UF::ActivePlayerData::ModDamageDoneNeg.

◆ ApplyModDamageDonePercent()

void Player::ApplyModDamageDonePercent ( SpellSchools  school,
float  pct,
bool  apply 
)
inline

Definition at line 2201 of file Player.h.

References m_activePlayerData, and UF::ActivePlayerData::ModDamageDonePercent.

◆ ApplyModDamageDonePos()

void Player::ApplyModDamageDonePos ( SpellSchools  school,
int32  mod,
bool  apply 
)
inline

Definition at line 2199 of file Player.h.

References m_activePlayerData, and UF::ActivePlayerData::ModDamageDonePos.

Referenced by ApplySpellPowerBonus().

◆ ApplyModFakeDrunkValue()

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

Definition at line 2463 of file Player.h.

References UF::PlayerData::FakeInebriation, and m_playerData.

Referenced by AuraEffect::HandleAuraModFakeInebriation().

◆ ApplyModOverrideAPBySpellPowerPercent()

void Player::ApplyModOverrideAPBySpellPowerPercent ( float  mod,
bool  apply 
)
inline

◆ ApplyModOverrideSpellPowerByAPPercent()

void Player::ApplyModOverrideSpellPowerByAPPercent ( float  mod,
bool  apply 
)
inline

◆ ApplyModTargetPhysicalResistance()

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

◆ ApplyModTargetResistance()

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

◆ ApplyModToSpell()

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

◆ ApplyRatingDiminishing()

◆ ApplyRatingMod()

void Player::ApplyRatingMod ( CombatRating  cr,
int32  value,
bool  apply 
)

Definition at line 5215 of file Player.cpp.

References m_baseRatingValue, and UpdateRating().

Referenced by _ApplyItemBonuses(), ApplyEnchantment(), and AuraEffect::HandleModRating().

◆ ApplySpellMod()

template<class T >
template TC_GAME_API void Player::ApplySpellMod ( SpellInfo const *  spellInfo,
SpellModOp  op,
T &  basevalue,
Spell *  spell = nullptr 
) const

◆ ApplySpellPenetrationBonus()

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

Definition at line 235 of file StatSystem.cpp.

References ApplyModTargetResistance(), and m_spellPenetrationItemMod.

Referenced by _ApplyItemBonuses(), and ApplyEnchantment().

◆ ApplySpellPowerBonus()

◆ ApplyTraitConfig()

void Player::ApplyTraitConfig ( int32  configId,
bool  apply 
)

◆ ApplyTraitEntry()

void Player::ApplyTraitEntry ( int32  traitNodeEntryId,
int32  rank,
int32  grantedRanks,
bool  apply 
)

◆ ApplyTraitEntryChanges()

◆ AreaExploredOrEventHappens()

◆ AtEnterCombat()

void Player::AtEnterCombat ( )
overridevirtual

Reimplemented from Unit.

Definition at line 26817 of file Player.cpp.

References Unit::AtEnterCombat(), EnablePvpRules(), and Unit::GetCombatManager().

◆ AtExitCombat()

void Player::AtExitCombat ( )
overridevirtual

Reimplemented from Unit.

Definition at line 26824 of file Player.cpp.

References Unit::AtExitCombat(), m_regenInterruptTimestamp, and GameTime::Now().

◆ AutoStoreLoot() [1/2]

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

Definition at line 1560 of file Player.h.

References AutoStoreLoot(), NULL_BAG, and NULL_SLOT.

Referenced by AutoStoreLoot().

◆ AutoStoreLoot() [2/2]

void Player::AutoStoreLoot ( uint8  bag,
uint8  slot,
uint32  loot_id,
LootStore const &  store,
ItemContext  context = ItemContext::NONE,
bool  broadcast = false,
bool  pushed = false,
bool  createdByPlayer = false 
)

◆ AutoUnequipChildItem()

◆ AutoUnequipOffhandIfNeed()

◆ BankItem()

◆ BuildCreateUpdateBlockForPlayer()

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

◆ BuildPlayerRepop()

◆ BuildValuesCreate()

void Player::BuildValuesCreate ( UF::UpdateFieldFlag  flags,
ByteBuffer &  data,
Player const *  target 
) const
overrideprotectedvirtual

Implements Object.

Definition at line 3507 of file Player.cpp.

References flags, m_activePlayerData, Object::m_objectData, m_playerData, and Unit::m_unitData.

◆ BuildValuesUpdate()

◆ BuildValuesUpdateForPlayerWithMask()

◆ BuildValuesUpdateWithFlag()

void Player::BuildValuesUpdateWithFlag ( UF::UpdateFieldFlag  flags,
ByteBuffer &  data,
Player const *  target 
) const
overridevirtual

◆ BuyCurrencyFromVendorSlot()

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

Definition at line 23486 of file Player.cpp.

References AddCurrency(), ItemExtendedCostEntry::ArenaBracket, BUY_ERR_CANT_FIND_ITEM, BUY_ERR_DISTANCE_TOO_FAR, BUY_ERR_NOT_ENOUGHT_MONEY, BUY_ERR_REPUTATION_REQUIRE, ItemExtendedCostEntry::CurrencyCount, ItemExtendedCostEntry::CurrencyID, DestroyItemCount(), VendorItemData::Empty(), EQUIP_ERR_CANT_BUY_QUANTITY, EQUIP_ERR_CANT_EQUIP_RANK, EQUIP_ERR_VENDOR_MISSING_TURNINS, VendorItem::ExtendedCost, ItemExtendedCostEntry::Flags, BaseEntity::GetGUID(), GetGuildId(), VendorItemData::GetItem(), VendorItemData::GetItemCount(), GetMaxPersonalArenaRatingRequirement(), WorldObject::GetName(), GetNPCIfCanInteractWith(), GetReputationRank(), Creature::GetVendorItems(), HasAchieved(), HasCurrency(), HasEnoughMoney(), HasItemCount(), Unit::IsAlive(), VendorItem::item, ITEM_EXT_COST_CURRENCY_REQ_IS_SEASON_EARNED_1, ITEM_EXT_COST_FLAG_REQUIRE_GUILD, ITEM_VENDOR_TYPE_CURRENCY, ItemExtendedCostEntry::ItemCount, ItemExtendedCostEntry::ItemID, MAX_ITEM_EXT_COST_CURRENCIES, MAX_ITEM_EXT_COST_ITEMS, MAX_MONEY_AMOUNT, VendorItem::maxcount, ItemExtendedCostEntry::MinFactionID, ModifyMoney(), ItemExtendedCostEntry::Money, RemoveCurrency(), ItemExtendedCostEntry::RequiredAchievement, ItemExtendedCostEntry::RequiredArenaRating, sCurrencyTypesStore, SendBuyError(), SendEquipError(), sItemExtendedCostStore, TC_LOG_DEBUG, TC_LOG_ERROR, ObjectGuid::ToString(), Position::ToString(), VendorItem::Type, UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_VENDOR, and Vendor.

Referenced by WorldSession::HandleBuyItemOpcode().

◆ BuyItemFromVendorSlot()

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

Definition at line 23662 of file Player.cpp.

References _StoreOrEquipNewItem(), ALLIANCE, ItemExtendedCostEntry::ArenaBracket, BIND_ON_ACQUIRE, BUY_ERR_CANT_FIND_ITEM, BUY_ERR_DISTANCE_TOO_FAR, BUY_ERR_ITEM_ALREADY_SOLD, BUY_ERR_NOT_ENOUGHT_MONEY, BUY_ERR_REPUTATION_REQUIRE, BuyItemsFromVendors, CalculatePct(), ItemExtendedCostEntry::CurrencyCount, ItemExtendedCostEntry::CurrencyID, VendorItemData::Empty(), EQUIP_ERR_CANT_BUY_QUANTITY, EQUIP_ERR_CANT_EQUIP_RANK, EQUIP_ERR_ITEM_LOCKED, EQUIP_ERR_NOT_EQUIPPABLE, EQUIP_ERR_VENDOR_MISSING_TURNINS, EQUIP_ERR_WRONG_SLOT, VendorItem::ExtendedCost, ItemExtendedCostEntry::Flags, ItemTemplate::GetAllowableClass(), ItemTemplate::GetBaseItemLevel(), ItemTemplate::GetBonding(), ItemTemplate::GetBuyCount(), ItemTemplate::GetBuyPrice(), Unit::GetClassMask(), Object::GetEntry(), BaseEntity::GetGUID(), GetGuild(), GetGuildId(), ItemTemplate::GetId(), VendorItemData::GetItem(), VendorItemData::GetItemCount(), GetMaxPersonalArenaRatingRequirement(), WorldObject::GetName(), GetNPCIfCanInteractWith(), ItemTemplate::GetQuality(), GetReputationPriceDiscount(), GetReputationRank(), ItemTemplate::GetRequiredReputationFaction(), ItemTemplate::GetRequiredReputationRank(), GetTeam(), Unit::GetTotalAuraModifier(), Creature::GetVendorItemCurrentCount(), Creature::GetVendorItems(), GUILD_NEWS_ITEM_PURCHASED, HasAchieved(), HasCurrency(), HasEnoughMoney(), ItemTemplate::HasFlag(), HasItemCount(), HORDE, INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_ITEM_END, Unit::IsAlive(), IsEquipmentPos(), IsGameMaster(), IsInventoryPos(), ConditionMgr::IsPlayerMeetingCondition(), VendorItem::item, ITEM_EXT_COST_CURRENCY_REQ_IS_SEASON_EARNED_1, ITEM_EXT_COST_FLAG_REQUIRE_GUILD, ITEM_FLAG2_FACTION_ALLIANCE, ITEM_FLAG2_FACTION_HORDE, ITEM_QUALITY_EPIC, ItemExtendedCostEntry::ItemCount, ItemExtendedCostEntry::ItemID, MAX_BAG_SIZE, MAX_ITEM_EXT_COST_CURRENCIES, MAX_ITEM_EXT_COST_ITEMS, MAX_MONEY_AMOUNT, VendorItem::maxcount, ItemExtendedCostEntry::MinFactionID, MinNewsItemLevel, ItemExtendedCostEntry::MinReputation, ItemExtendedCostEntry::Money, NULL_BAG, NULL_SLOT, VendorItem::PlayerConditionId, ItemExtendedCostEntry::RequiredAchievement, ItemExtendedCostEntry::RequiredArenaRating, sConditionMgr, sCurrencyTypesStore, SendBuyError(), SendEquipError(), sItemExtendedCostStore, sObjectMgr, SPELL_AURA_MOD_VENDOR_ITEMS_PRICES, TC_LOG_DEBUG, TC_LOG_ERROR, ObjectGuid::ToString(), Position::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_VENDOR, and UpdateCriteria().

Referenced by WorldSession::HandleBuyItemOpcode().

◆ CalculateCorpseReclaimDelay()

◆ CalculateMinMaxDamage()

◆ CalculateReputationGain()

◆ CanAcceptAreaSpiritHealFrom()

bool Player::CanAcceptAreaSpiritHealFrom ( Unit *  spiritHealer) const
inline

Definition at line 3052 of file Player.h.

References BaseEntity::GetGUID().

Referenced by spell_gen_spirit_heal_personal::OnRemove().

◆ CanAddQuest()

◆ CanAlwaysSee()

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

Reimplemented from WorldObject.

Definition at line 24448 of file Player.cpp.

References BaseEntity::GetGUID(), Unit::GetUnitBeingMoved(), ObjectGuid::IsEmpty(), and m_activePlayerData.

◆ CanApplyResilience()

bool Player::CanApplyResilience ( ) const
inlineoverridevirtual

Reimplemented from Unit.

Definition at line 2223 of file Player.h.

◆ CanBankItem()

◆ CanBeGameMaster()

◆ CanBlock()

bool Player::CanBlock ( ) const
inline

Definition at line 2477 of file Player.h.

Referenced by UpdateBlockPercentage().

◆ CanCaptureTowerPoint()

bool Player::CanCaptureTowerPoint ( ) const

◆ CancelPendingCastRequest()

◆ CanCompleteQuest()

◆ CanCompleteRepeatableQuest()

bool Player::CanCompleteRepeatableQuest ( Quest const *  quest)

◆ CanEnableWarModeInArea()

◆ CanEnterWater()

bool Player::CanEnterWater ( ) const
inlineoverridevirtual

Implements Unit.

Definition at line 2860 of file Player.h.

◆ CanEquipChildItem()

◆ CanEquipItem()

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

Definition at line 10709 of file Player.cpp.

References ItemTemplate::CanChangeEquipStateInCombat(), Unit::CanDualWield(), CanEquipUniqueItem(), CanStoreItem(), CanTakeMoreSimilarItems(), CanTitanGrip(), CanUnequipItem(), CanUseItem(), CURRENT_CHANNELED_SPELL, CURRENT_EXPANSION, CURRENT_GENERIC_SPELL, 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_COOLDOWN, 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(), Unit::GetCurrentSpell(), Object::GetEntry(), BaseEntity::GetGUID(), ItemTemplate::GetId(), ItemTemplate::GetInventoryType(), GetItemByPos(), Unit::GetLevel(), GetLootGUID(), GetMaxLevelForExpansion(), WorldObject::GetName(), Item::GetQuality(), Item::GetScalingContentTuningId(), ItemTemplate::GetSubClass(), Item::GetTemplate(), ItemTemplate::HasFlag(), 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(), IsTwoHandUsed(), ITEM_CLASS_QUIVER, ITEM_CLASS_WEAPON, ITEM_FLAG3_ALWAYS_ALLOW_DUAL_WIELD, ITEM_QUALITY_HEIRLOOM, ITEM_SUBCLASS_AMMO_POUCH, ITEM_SUBCLASS_WEAPON_POLEARM, m_weaponChangeTimer, NULL_BAG, NULL_SLOT, PROFESSION_SLOT_PROFESSION1_GEAR1, PROFESSION_SLOT_PROFESSION1_GEAR2, PROFESSION_SLOT_PROFESSION2_GEAR1, PROFESSION_SLOT_PROFESSION2_GEAR2, sDB2Manager, SPELL_ATTR6_ALLOW_EQUIP_WHILE_CASTING, STATUS_IN_PROGRESS, TC_LOG_DEBUG, Position::ToString(), and UNIT_STATE_STUNNED.

Referenced by _LoadInventory(), CanEquipNewItem(), Create(), Spell::EffectSummonChangeItem(), EquipChildItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleUseEquipmentSet(), SplitItem(), SwapItem(), and UpdateAverageItemLevelTotal().

◆ CanEquipNewItem()

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

◆ CanEquipUniqueItem() [1/2]

◆ CanEquipUniqueItem() [2/2]

◆ CanExecutePendingSpellCastRequest()

◆ CanFly()

bool Player::CanFly ( ) const
inlineoverridevirtual

Implements Unit.

Definition at line 2859 of file Player.h.

References MOVEMENTFLAG_CAN_FLY.

◆ CanInteractWithQuestGiver()

◆ CanJoinConstantChannelInZone()

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

◆ CanJoinToBattleground()

◆ CanNeverSee()

bool Player::CanNeverSee ( WorldObject const *  obj,
bool  ignorePhaseShift = false 
) const
overrideprotectedvirtual

◆ CanNoReagentCast()

◆ CanParry()

bool Player::CanParry ( ) const
inline

Definition at line 2475 of file Player.h.

Referenced by UpdateParryPercentage().

◆ CanReportAfkDueToLimit()

bool Player::CanReportAfkDueToLimit ( )

Definition at line 24321 of file Player.cpp.

References BGData::bgAfkReportedCount, and m_bgData.

Referenced by ReportedAfkBy().

◆ CanRequestSpellCast()

◆ CanRewardQuest() [1/2]

◆ CanRewardQuest() [2/2]

◆ CanRollNeedForItem()

◆ CanSeeGossipOn()

◆ CanSeeSpellClickOn()

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

◆ CanSeeStartQuest()

◆ CanSelectQuestPackageItem()

◆ CanSellItemToVendor()

◆ CanShareQuest()

bool Player::CanShareQuest ( uint32  questId) const

◆ CanStoreItem() [1/2]

◆ CanStoreItem() [2/2]

◆ CanStoreItem_InBag()

◆ CanStoreItem_InInventorySlots()

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

◆ CanStoreItem_InSpecificSlot()

◆ CanStoreItems()

◆ CanStoreNewItem()

◆ CanTakeMoreSimilarItems() [1/3]

InventoryResult Player::CanTakeMoreSimilarItems ( Item *  pItem,
uint32 *  offendingItemId = nullptr 
) const

◆ CanTakeMoreSimilarItems() [2/3]

◆ CanTakeMoreSimilarItems() [3/3]

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

Definition at line 1531 of file Player.h.

References CanTakeMoreSimilarItems().

Referenced by CanTakeMoreSimilarItems().

◆ CanTakeQuest()

◆ CanTameExoticPets()

bool Player::CanTameExoticPets ( ) const
inline

◆ CanTitanGrip()

◆ CanUnderstandLanguage()

bool Player::CanUnderstandLanguage ( Language  language) const

◆ CanUnequipItem()

◆ CanUnequipItems()

InventoryResult Player::CanUnequipItems ( uint32  item,
uint32  count 
) const

Definition at line 9441 of file Player.cpp.

References Continue, EQUIP_ERR_OK, Equipment, ForEachItem(), and Object::GetEntry().

Referenced by TakeQuestSourceItem().

◆ CanUninviteFromGroup()

◆ CanUseBattlegroundObject()

◆ CanUseItem() [1/2]

◆ CanUseItem() [2/2]

◆ CanUseMastery()

bool Player::CanUseMastery ( ) const

Definition at line 30527 of file Player.cpp.

References GetPrimarySpecializationEntry(), and HasSpell().

Referenced by ActivateTalentGroup(), and UpdateMastery().

◆ CastAllObtainSpells()

◆ CastItemCombatSpell() [1/2]

◆ CastItemCombatSpell() [2/2]

void Player::CastItemCombatSpell ( DamageInfo const &  damageInfo,
Item *  item,
ItemTemplate const *  proto 
)

◆ CastItemUseSpell()

◆ CharmSpellInitialize()

◆ CheckAreaExplore()

◆ CheckAttackFitToAuraRequirement()

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

◆ CheckDuelDistance()

void Player::CheckDuelDistance ( time_t  currTime)

◆ CheckInstanceValidity()

◆ CheckLoadedDungeonDifficultyID()

Difficulty Player::CheckLoadedDungeonDifficultyID ( Difficulty  difficulty)
static

◆ CheckLoadedLegacyRaidDifficultyID()

Difficulty Player::CheckLoadedLegacyRaidDifficultyID ( Difficulty  difficulty)
static

◆ CheckLoadedRaidDifficultyID()

◆ CheckTitanGripPenalty()

void Player::CheckTitanGripPenalty ( )

◆ CleanupAfterTaxiFlight()

◆ CleanupChannels()

◆ CleanupsBeforeDelete()

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

Reimplemented from WorldObject.

Definition at line 379 of file Player.cpp.

References Unit::CleanupsBeforeDelete(), DUEL_INTERRUPTED, DuelComplete(), and TradeCancel().

Referenced by WorldSession::LogoutPlayer().

◆ ClearAfkReports()

void Player::ClearAfkReports ( )
inline

Definition at line 2603 of file Player.h.

Referenced by Battleground::RemovePlayerAtLeave().

◆ ClearQuestSharingInfo()

◆ ClearResurrectRequestData()

void Player::ClearResurrectRequestData ( )
inline

Definition at line 2074 of file Player.h.

Referenced by WorldSession::HandleResurrectResponse(), and setDeathState().

◆ ClearSelfResSpell()

void Player::ClearSelfResSpell ( )
inline

◆ ClearValuesChangesMask()

void Player::ClearValuesChangesMask ( )
overrideprotectedvirtual

◆ ClearWhisperWhiteList()

void Player::ClearWhisperWhiteList ( )
inline

◆ CompletedAchievement()

void Player::CompletedAchievement ( AchievementEntry const *  entry)

◆ CompleteQuest()

◆ ConfirmPendingBind()

◆ ContinueTaxiFlight()

◆ CorrectMetaGemEnchants()

◆ Create()

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

Definition at line 387 of file Player.cpp.

References BaseEntity::_Create(), PlayerInfo::action, AddActionButton(), CanEquipItem(), CanStoreItem(), WorldPackets::Character::CharacterCreateInfo::Class, UF::ActivePlayerData::Coinage, CONFIG_GAME_TYPE, PlayerInfo::createPosition, PlayerInfo::createPositionNPE, WorldPackets::Character::CharacterCreateInfo::Customizations, ChrClassesEntry::DisplayPower, EQUIP_ERR_OK, EquipItem, EquipTransmogOutfit(), WorldObject::GetAreaId(), Unit::GetClass(), GameTime::GetGameTime(), GetInventorySlotCount(), GetItemByPos(), WorldLocation::GetMapId(), GetPowerTypes(), GetSession(), GetStartLevel(), GetStartMoney(), Unit::GetThreatManager(), ObjectAccessor::GetTransport(), InitDisplayIds(), ThreatManager::Initialize(), InitializeSkillFields(), InitPrimaryProfessions(), InitRunes(), InitStatsForLevel(), InitTalentForLevel(), InitTaxiNodesForLevel(), INVENTORY_DEFAULT_SIZE, INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_ITEM_START, IsValidGender(), PlayerInfo::item, PlayerInfo::itemContext, LearnCustomSpells(), LearnDefaultSkills(), PlayerInfo::CreatePosition::Loc, m_activePlayerData, m_createMode, m_createTime, m_items, m_Last_tick, WorldObject::m_name, m_Played_time, BaseEntity::m_values, MakeChrCustomizationChoiceRange(), Trinity::Containers::MakeIteratorPair(), Manual, UF::UpdateFieldHolder::ModifyValue(), WorldPackets::Character::CharacterCreateInfo::Name, Normal, NPE, NULL_BAG, NULL_SLOT, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_SLOTS_COUNT, WorldPackets::Character::CharacterCreateInfo::Race, REALM_TYPE_PVP, REALM_TYPE_RPPVP, Position::Relocate(), RemoveItem(), REST_STATE_NORMAL, REST_STATE_RAF_LINKED, REST_TYPE_HONOR, REST_TYPE_XP, sChrClassesStore, sDB2Manager, SetActiveTalentGroup(), Unit::SetClass(), SetCustomizations(), SetFactionForRace(), Unit::SetFullHealth(), Unit::SetFullPower(), Unit::SetGender(), SetHomebind(), SetInventorySlotCount(), Unit::SetLevel(), SetMap(), SetNativeGender(), SetObjectScale(), Unit::SetPowerType(), SetPrimarySpecialization(), Unit::SetPvpFlag(), Unit::SetRace(), SetRestState(), SetToMaxOnInitialLogIn, Unit::SetUnitFlag(), Unit::SetUnitFlag2(), BaseEntity::SetUpdateFieldValue(), SetWatchedFactionIndex(), WorldPackets::Character::CharacterCreateInfo::Sex, sMapMgr, sObjectMgr, StoreItem(), StoreNewItemInBestSlots(), sWorld, TC_LOG_ERROR, WorldPackets::Character::CharacterCreateInfo::TemplateSet, PlayerInfo::CreatePosition::TransportGuid, UNIT_BYTE2_FLAG_PVP, UNIT_FLAG2_REGENERATE_POWER, UNIT_FLAG_PLAYER_CONTROLLED, UpdateMaxHealth(), and WorldPackets::Character::CharacterCreateInfo::UseNPE.

◆ CreateCorpse()

◆ CreateGarrison()

void Player::CreateGarrison ( uint32  garrSiteId)

Definition at line 30062 of file Player.cpp.

References _garrison.

Referenced by Spell::EffectCreateGarrison().

◆ CreateTraitConfig()

◆ CreateTransmogOutfit()

◆ CurrencyChanged()

void Player::CurrencyChanged ( uint32  currencyId,
int32  change 
)

◆ DailyReset()

◆ 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 3658 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_AURA_EFFECT, CHAR_DEL_CHAR_CUF_PROFILES, CHAR_DEL_CHAR_DECLINED_NAME, CHAR_DEL_CHAR_EQUIPMENTSETS, CHAR_DEL_CHAR_FISHINGSTEPS, CHAR_DEL_CHAR_GIFT, CHAR_DEL_CHAR_GLYPHS, 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_OBJECTIVES, CHAR_DEL_CHAR_QUESTSTATUS_OBJECTIVES_SPAWN_TRACKING, 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_CHARGES, CHAR_DEL_CHAR_SPELL_COOLDOWNS, CHAR_DEL_CHAR_STATS, CHAR_DEL_CHAR_TALENT, CHAR_DEL_CHAR_TRAIT_CONFIGS_BY_CHAR, CHAR_DEL_CHAR_TRAIT_ENTRIES_BY_CHAR, CHAR_DEL_CHAR_TRANSMOG_OUTFIT_BY_CHAR, CHAR_DEL_CHAR_TRANSMOG_OUTFIT_SITUATION_BY_CHAR, CHAR_DEL_CHAR_TRANSMOG_OUTFIT_SLOT_BY_CHAR, CHAR_DEL_CHAR_TRANSMOG_OUTFITS, CHAR_DEL_CHARACTER, CHAR_DEL_CHARACTER_ARENA_STATS, CHAR_DEL_CHARACTER_AURA_STORED_LOCATIONS_BY_GUID, CHAR_DEL_CHARACTER_BANK_TAB_SETTINGS, CHAR_DEL_CHARACTER_CUSTOMIZATIONS, CHAR_DEL_CHARACTER_FAVORITE_AUCTIONS_BY_CHAR, CHAR_DEL_CHARACTER_INSTANCE_LOCK_BY_GUID, CHAR_DEL_CHARACTER_QUESTSTATUS_DAILY, CHAR_DEL_CHARACTER_QUESTSTATUS_MONTHLY, CHAR_DEL_CHARACTER_QUESTSTATUS_SEASONAL, CHAR_DEL_CHARACTER_QUESTSTATUS_WEEKLY, CHAR_DEL_CHARACTER_SELECT_EQUIPMENT_CACHE_CUSTOMIZATIONS, CHAR_DEL_GUILD_BANK_EVENTLOG_BY_PLAYER, CHAR_DEL_GUILD_EVENTLOG_BY_PLAYER, CHAR_DEL_ITEM_INSTANCE_ARTIFACT_BY_OWNER, CHAR_DEL_ITEM_INSTANCE_ARTIFACT_POWERS_BY_OWNER, CHAR_DEL_ITEM_INSTANCE_AZERITE_BY_OWNER, CHAR_DEL_ITEM_INSTANCE_AZERITE_EMPOWERED_BY_OWNER, CHAR_DEL_ITEM_INSTANCE_AZERITE_MILESTONE_POWER_BY_OWNER, CHAR_DEL_ITEM_INSTANCE_AZERITE_UNLOCKED_ESSENCE_BY_OWNER, CHAR_DEL_ITEM_INSTANCE_BY_OWNER, CHAR_DEL_ITEM_INSTANCE_GEMS_BY_OWNER, CHAR_DEL_ITEM_INSTANCE_MODIFIERS_BY_OWNER, CHAR_DEL_ITEM_INSTANCE_TRANSMOG_BY_OWNER, CHAR_DEL_MAIL, CHAR_DEL_MAIL_BY_ID, CHAR_DEL_MAIL_ITEM_BY_ID, CHAR_DEL_MAIL_ITEMS, CHAR_DEL_PLAYER_ACCOUNT_DATA, CHAR_DEL_PLAYER_BGDATA, CHAR_DEL_PLAYER_CURRENCY, CHAR_DEL_PLAYER_DATA_ELEMENTS_CHARACTER_BY_GUID, CHAR_DEL_PLAYER_DATA_FLAGS_CHARACTER_BY_GUID, 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_SEL_MAILITEMS_ARTIFACT, CHAR_SEL_MAILITEMS_AZERITE, CHAR_SEL_MAILITEMS_AZERITE_EMPOWERED, CHAR_SEL_MAILITEMS_AZERITE_MILESTONE_POWER, CHAR_SEL_MAILITEMS_AZERITE_UNLOCKED_ESSENCE, CHAR_UPD_DELETE_INFO, CharacterDatabase, CharacterCacheEntry::Class, CLASS_DEATH_KNIGHT, CLASS_DEMON_HUNTER, CONFIG_CHARDELETE_DEATH_KNIGHT_MIN_LEVEL, CONFIG_CHARDELETE_DEMON_HUNTER_MIN_LEVEL, CONFIG_CHARDELETE_METHOD, CONFIG_CHARDELETE_MIN_LEVEL, Corpse::DeleteFromDB(), Garrison::DeleteFromDB(), Pet::DeleteFromDB(), ObjectAccessor::FindPlayer(), FRIEND_REMOVED, Field::GetBool(), ObjectGuid::GetCounter(), Field::GetString(), Field::GetUInt16(), Field::GetUInt64(), Field::GetUInt8(), ItemAdditionalLoadInfo::Init(), LeaveAllArenaTeams(), CharacterCacheEntry::Level, LOGIN_DEL_BATTLE_PET_DECLINED_NAME_BY_OWNER, LOGIN_DEL_BATTLE_PETS_BY_OWNER, LoginDatabase, MAIL_NORMAL, Trinity::Containers::MapGetValuePtr(), CharacterCacheEntry::Name, RemoveFromGroup(), RemovePetitionsAndSigns(), sCharacterCache, MailDraft::SendReturnToSender(), PreparedStatementBase::setInt32(), PreparedStatementBase::setInt64(), PreparedStatementBase::setUInt64(), sGroupMgr, sGuildMgr, SOCIAL_FLAG_ALL, sRealmList, sSocialMgr, sWorld, TC_LOG_ERROR, and ObjectGuid::ToString().

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

◆ DeleteGarrison()

void Player::DeleteGarrison ( )

Definition at line 30069 of file Player.cpp.

References _garrison.

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

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

◆ DeletePetFromDB()

◆ DeleteRefundReference()

void Player::DeleteRefundReference ( ObjectGuid  it)

Definition at line 29503 of file Player.cpp.

References m_refundableItems.

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

◆ DeleteTraitConfig()

◆ DespawnPersonalSummonsForQuest()

◆ DestroyConjuredItems()

◆ DestroyForPlayer()

void Player::DestroyForPlayer ( Player const *  target) const
overridevirtual

Reimplemented from BaseEntity.

Definition at line 3607 of file Player.cpp.

References Unit::DestroyForPlayer(), and m_items.

◆ DestroyItem()

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

Definition at line 12039 of file Player.cpp.

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

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

◆ DestroyItemCount() [1/2]

◆ DestroyItemCount() [2/2]

◆ DestroyZoneLimitedItem()

◆ DisablePetControlsOnMount()

◆ DisablePvpRules()

◆ DoRandomRoll()

◆ DuelComplete()

◆ DurabilityLoss()

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

◆ DurabilityLossAll()

◆ DurabilityPointLossForEquipSlot()

void Player::DurabilityPointLossForEquipSlot ( EquipmentSlots  slot)

◆ DurabilityPointsLoss()

◆ DurabilityPointsLossAll()

◆ DurabilityRepair()

◆ DurabilityRepairAll()

◆ EnablePetControlsOnDismount()

◆ EnablePvpRules()

void Player::EnablePvpRules ( bool  dueToCombat = false)

◆ EnchantmentFitsRequirements()

◆ EnvironmentalDamage()

◆ EquipChildItem()

◆ EquipItem()

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

Definition at line 11507 of file Player.cpp.

References _ApplyItemMods(), AddEnchantmentDurations(), SpellHistory::AddGlobalCooldown(), AddItemDurations(), AddItemsSetItem(), Object::AddToWorld(), ApplyEquipCooldown(), BASE_ATTACK, WorldPackets::Spells::SpellCooldown::Caster, CheckTitanGripPenalty(), CLASS_ROGUE, Item::ClearSoulboundTradeable(), CR_ARMOR_PENETRATION, BaseEntity::DestroyForPlayer(), DIFFICULTY_NONE, EquipItem, EquipItemInSlot, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, WorldPackets::Spells::SpellCooldown::Flags, ItemTemplate::GetClass(), Unit::GetClass(), Item::GetCount(), Object::GetEntry(), BaseEntity::GetGUID(), ItemTemplate::GetInventoryType(), GetItemByPos(), ItemTemplate::GetItemSet(), WorldObject::GetName(), Unit::GetSpellHistory(), Item::GetTemplate(), INVTYPE_RELIC, Unit::IsAlive(), Unit::IsInCombat(), BaseEntity::IsInWorld(), ITEM_CHANGED, ITEM_CLASS_WEAPON, ITEM_FIELD_FLAG2_EQUIPPED, ITEM_REMOVED, m_weaponChangeTimer, OFF_ATTACK, RecalculateRating(), RemoveEnchantmentDurations(), Object::RemoveFromWorld(), RemoveItemDurations(), RemoveTradeableItem(), SendDirectMessage(), BaseEntity::SendUpdateToPlayer(), Item::SetCount(), Item::SetItemZoneFlag(), Item::SetNotRefundable(), Item::SetOwnerGUID(), Item::SetState(), SPELL_COOLDOWN_FLAG_INCLUDE_GCD, WorldPackets::Spells::SpellCooldown::SpellCooldowns, sSpellMgr, SpellInfo::StartRecoveryTime, TC_LOG_ERROR, Position::ToString(), UpdateAverageItemLevelEquipped(), UpdateCriteria(), UpdateExpertise(), VisualizeItem(), and WorldPackets::Spells::SpellCooldown::Write().

Referenced by Spell::EffectSummonChangeItem(), and WorldSession::HandleAutoEquipItemOpcode().

◆ EquipNewItem()

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

◆ EquipTransmogOutfit()

◆ ExecutePendingSpellCastRequest()

◆ FailCriteria()

◆ FailQuest()

◆ FailQuestsWithFlag()

void Player::FailQuestsWithFlag ( QuestFlags  flag)

◆ FindEmptyProfessionSlotFor()

int32 Player::FindEmptyProfessionSlotFor ( uint32  skillId) const

◆ FindEquipSlot()

uint8 Player::FindEquipSlot ( Item const *  item,
uint8  slot,
bool  swap 
) const

Definition at line 9189 of file Player.cpp.

References ACCOUNT_BANK_SLOT_BAG_START, BANK_SLOT_BAG_START, Unit::CanDualWield(), CanTitanGrip(), advstd::ranges::contains, EQUIPMENT_SLOT_BACK, EQUIPMENT_SLOT_BODY, EQUIPMENT_SLOT_CHEST, EQUIPMENT_SLOT_FEET, EQUIPMENT_SLOT_FINGER1, EQUIPMENT_SLOT_FINGER2, EQUIPMENT_SLOT_HANDS, EQUIPMENT_SLOT_HEAD, EQUIPMENT_SLOT_LEGS, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_NECK, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_SHOULDERS, EQUIPMENT_SLOT_TABARD, EQUIPMENT_SLOT_TRINKET1, EQUIPMENT_SLOT_TRINKET2, EQUIPMENT_SLOT_WAIST, EQUIPMENT_SLOT_WRISTS, ItemTemplate::GetClass(), ItemTemplate::GetId(), ItemTemplate::GetInventoryType(), GetItemByPos(), GetProfessionSlotFor(), ItemTemplate::GetSkill(), ItemTemplate::GetSubClass(), Item::GetTemplate(), HasSkill(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_START, INVTYPE_2HWEAPON, INVTYPE_BAG, INVTYPE_BODY, INVTYPE_CHEST, INVTYPE_CLOAK, INVTYPE_FEET, INVTYPE_FINGER, INVTYPE_HANDS, INVTYPE_HEAD, INVTYPE_HOLDABLE, INVTYPE_LEGS, INVTYPE_NECK, INVTYPE_PROFESSION_GEAR, INVTYPE_PROFESSION_TOOL, INVTYPE_RANGED, INVTYPE_RANGEDRIGHT, INVTYPE_ROBE, INVTYPE_SHIELD, INVTYPE_SHOULDERS, INVTYPE_TABARD, INVTYPE_TRINKET, INVTYPE_WAIST, INVTYPE_WEAPON, INVTYPE_WEAPONMAINHAND, INVTYPE_WEAPONOFFHAND, INVTYPE_WRISTS, IsTwoHandUsed(), ITEM_ACCOUNT_BANK_TAB_BAG, ITEM_CHARACTER_BANK_TAB_BAG, ITEM_CLASS_CONTAINER, ITEM_CLASS_PROFESSION, ITEM_SUBCLASS_PROFESSION_ALCHEMY, ITEM_SUBCLASS_PROFESSION_BLACKSMITHING, ITEM_SUBCLASS_PROFESSION_COOKING, ITEM_SUBCLASS_PROFESSION_ENCHANTING, ITEM_SUBCLASS_PROFESSION_ENGINEERING, ITEM_SUBCLASS_PROFESSION_FISHING, ITEM_SUBCLASS_PROFESSION_HERBALISM, ITEM_SUBCLASS_PROFESSION_INSCRIPTION, ITEM_SUBCLASS_PROFESSION_JEWELCRAFTING, ITEM_SUBCLASS_PROFESSION_LEATHERWORKING, ITEM_SUBCLASS_PROFESSION_MINING, ITEM_SUBCLASS_PROFESSION_SKINNING, ITEM_SUBCLASS_PROFESSION_TAILORING, ITEM_SUBCLASS_REAGENT_CONTAINER, NULL_SLOT, PROFESSION_SLOT_COOKING_GEAR1, PROFESSION_SLOT_COOKING_TOOL, PROFESSION_SLOT_FISHING_TOOL, PROFESSION_SLOT_MAX_COUNT, PROFESSION_SLOT_PROFESSION1_GEAR1, PROFESSION_SLOT_PROFESSION1_GEAR2, PROFESSION_SLOT_PROFESSION1_TOOL, and REAGENT_BAG_SLOT_START.

Referenced by CanEquipItem().

◆ FindQuestSlot()

◆ FinishTaxiFlight()

◆ ForEachItem()

◆ GetAccountBankTabCount()

uint8 Player::GetAccountBankTabCount ( ) const
inline

Definition at line 1490 of file Player.h.

Referenced by WorldSession::HandleBuyBankTab(), and CriteriaHandler::UpdateCriteria().

◆ GetAchievementPoints()

uint32 Player::GetAchievementPoints ( ) const

Definition at line 27506 of file Player.cpp.

References m_achievementMgr.

Referenced by CriteriaHandler::ModifierSatisfied().

◆ GetActionButton()

ActionButton const * Player::GetActionButton ( uint8  button)

Definition at line 6133 of file Player.cpp.

References ACTIONBUTTON_DELETED, and m_actionButtons.

Referenced by Spell::EffectCastButtons().

◆ GetActionButtons()

ActionButtonList const & Player::GetActionButtons ( ) const
inline

Definition at line 2032 of file Player.h.

◆ GetActiveQuestObjectiveForSpawnTracking()

QuestObjective const * Player::GetActiveQuestObjectiveForSpawnTracking ( uint32  spawnTrackingId) const

Definition at line 17516 of file Player.cpp.

References IsQuestObjectiveCompletable(), and sObjectMgr.

Referenced by WorldSession::HandleSpawnTrackingUpdate().

◆ GetActiveTalentGroup()

◆ GetAELootView()

◆ GetArenaPersonalRating()

uint32 Player::GetArenaPersonalRating ( uint8  slot) const

Definition at line 23086 of file Player.cpp.

References GetPvpInfoForBracket(), and pvpInfo.

Referenced by Arena::EndBattleground(), and GetMaxPersonalArenaRatingRequirement().

◆ GetArenaTeamId()

◆ GetArenaTeamIdInvited()

uint32 Player::GetArenaTeamIdInvited ( ) const
inline

Definition at line 2161 of file Player.h.

◆ GetArmorProficiency()

uint32 Player::GetArmorProficiency ( ) const
inline

Definition at line 1625 of file Player.h.

Referenced by Spell::EffectProficiency().

◆ GetAttackBySlot()

◆ GetAverageItemLevel()

◆ GetBagByPos()

◆ GetBagSlotFlags()

EnumFlag< BagSlotFlags > Player::GetBagSlotFlags ( uint32  bagIndex) const
inline

Definition at line 1515 of file Player.h.

Referenced by WorldSession::HandleSellAllJunkItems().

◆ GetBankBagSlotCount()

uint8 Player::GetBankBagSlotCount ( ) const
inline

Definition at line 1486 of file Player.h.

Referenced by SaveToDB(), and CriteriaHandler::UpdateCriteria().

◆ GetBarberShopCost()

◆ GetBaseModValue()

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

◆ GetBaseSkillValue()

◆ GetBaseSpellPowerBonus()

uint32 Player::GetBaseSpellPowerBonus ( ) const
inline

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

Definition at line 2220 of file Player.h.

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

◆ GetBattleground()

◆ GetBattlegroundEntryPoint()

WorldLocation const & Player::GetBattlegroundEntryPoint ( ) const
inline

Definition at line 2593 of file Player.h.

Referenced by LoadFromDB().

◆ GetBattlegroundId()

◆ GetBattlegroundQueueIndex()

◆ GetBattlegroundQueueJoinTime()

◆ GetBattlegroundQueueTypeId()

◆ GetBattlegroundTypeId()

BattlegroundTypeId Player::GetBattlegroundTypeId ( ) const
inline

◆ GetBGAccessByLevel()

◆ GetBGTeam()

◆ GetBlockPercent()

float Player::GetBlockPercent ( uint8  attackerLevel) const
overridevirtual

Reimplemented from Unit.

Definition at line 26830 of file Player.cpp.

References ArmorConstant, CLASS_NONE, m_activePlayerData, and sDB2Manager.

◆ GetCastSpellInfo()

SpellInfo const * Player::GetCastSpellInfo ( SpellInfo const *  spellInfo,
TriggerCastFlags &  triggerFlag,
GetCastSpellInfoContext *  context 
) const
overridevirtual

◆ GetChampioningFaction()

uint32 Player::GetChampioningFaction ( ) const
inline

Definition at line 2845 of file Player.h.

Referenced by RewardReputation().

◆ GetCharacterBankTabCount()

uint8 Player::GetCharacterBankTabCount ( ) const
inline

◆ GetChatFlags()

◆ GetChildItemByGuid()

◆ getCinematic()

uint8 Player::getCinematic ( ) const
inline

Definition at line 2093 of file Player.h.

Referenced by WorldSession::HandlePlayerLogin().

◆ GetCinematicMgr()

CinematicMgr * Player::GetCinematicMgr ( ) const
inline

◆ GetCommandStatus()

◆ GetCompletedAchievementIds()

std::vector< uint32 > Player::GetCompletedAchievementIds ( ) const

Definition at line 27511 of file Player.cpp.

References m_achievementMgr.

Referenced by CriteriaHandler::ModifierSatisfied().

◆ GetCorpse()

◆ GetCorpseLocation()

◆ GetCorpseReclaimDelay()

◆ GetCraftingReagentItemsToDeposit()

std::vector< Item * > Player::GetCraftingReagentItemsToDeposit ( )

◆ GetCreateMode()

PlayerCreateMode Player::GetCreateMode ( ) const
inline

Definition at line 2091 of file Player.h.

Referenced by WorldSession::HandlePlayerLogin().

◆ GetCUFProfile()

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

‍Replaces a CUF profile at position 0-4

Definition at line 1832 of file Player.h.

Referenced by WorldSession::SendLoadCUFProfiles().

◆ GetCUFProfilesCount()

uint8 Player::GetCUFProfilesCount ( ) const
inline

‍Retrieves a CUF profile at position 0-4

Definition at line 1833 of file Player.h.

References MAX_CUF_PROFILES.

◆ GetCurrencyIncreasedCapQuantity()

uint32 Player::GetCurrencyIncreasedCapQuantity ( uint32  id) const

Definition at line 7301 of file Player.cpp.

References _currencyStorage.

Referenced by GetCurrencyMaxQuantity().

◆ GetCurrencyMaxQuantity()

◆ GetCurrencyQuantity()

uint32 Player::GetCurrencyQuantity ( uint32  id) const

◆ GetCurrencyTrackedQuantity()

uint32 Player::GetCurrencyTrackedQuantity ( uint32  id) const

Definition at line 7292 of file Player.cpp.

References _currencyStorage.

Referenced by CriteriaHandler::ModifierSatisfied().

◆ GetCurrencyWeeklyCap() [1/2]

uint32 Player::GetCurrencyWeeklyCap ( CurrencyTypesEntry const *  currency) const

Definition at line 7335 of file Player.cpp.

References CurrencyTypesEntry::MaxEarnablePerWeek.

◆ GetCurrencyWeeklyCap() [2/2]

uint32 Player::GetCurrencyWeeklyCap ( uint32  id) const

Definition at line 7326 of file Player.cpp.

References GetCurrencyWeeklyCap(), and sCurrencyTypesStore.

Referenced by GetCurrencyWeeklyCap(), ModifyCurrency(), and SendCurrencies().

◆ GetCurrencyWeeklyQuantity()

uint32 Player::GetCurrencyWeeklyQuantity ( uint32  id) const

Definition at line 7283 of file Player.cpp.

References _currencyStorage.

◆ GetCustomizationChoice()

uint32 Player::GetCustomizationChoice ( uint32  chrCustomizationOptionId) const
inline

◆ GetDataElementAccount()

std::variant< int64, float > Player::GetDataElementAccount ( uint32  dataElementId) const

◆ GetDataElementCharacter()

std::variant< int64, float > Player::GetDataElementCharacter ( uint32  dataElementId) const

◆ GetDeathTimer()

uint32 Player::GetDeathTimer ( ) const
inline

Definition at line 2468 of file Player.h.

Referenced by Spell::EffectStuck(), and WorldSession::LogoutPlayer().

◆ GetDebugInfo()

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

◆ GetDeclinedNames()

UF::DeclinedNames const * Player::GetDeclinedNames ( ) const
inline

Definition at line 2816 of file Player.h.

Referenced by WorldPackets::Query::PlayerGuidLookupData::Initialize().

◆ GetDefaultSpecId()

uint32 Player::GetDefaultSpecId ( ) const

Definition at line 30731 of file Player.cpp.

References ASSERT_NOTNULL, Unit::GetClass(), and sDB2Manager.

Referenced by ItemTemplate::IsUsableByLootSpecialization().

◆ GetDifficultyID()

◆ GetDodgeFromAgility()

void Player::GetDodgeFromAgility ( float &  diminishing,
float &  nondiminishing 
) const

Definition at line 4998 of file Player.cpp.

Referenced by UpdateDodgePercentage().

◆ GetDrunkenstateByValue()

DrunkenState Player::GetDrunkenstateByValue ( uint8  value)
static

Definition at line 831 of file Player.cpp.

References DRUNKEN_DRUNK, DRUNKEN_SMASHED, DRUNKEN_SOBER, and DRUNKEN_TIPSY.

Referenced by Condition::Meets(), and SetDrunkValue().

◆ GetDrunkValue()

◆ GetDungeonDifficultyID()

◆ GetEffectiveTeam()

◆ GetEffectiveTeamId()

TeamId Player::GetEffectiveTeamId ( ) const
inline

Definition at line 2411 of file Player.h.

References GetTeamIdForTeam().

◆ GetEmpowerMinHoldStagePercent()

float Player::GetEmpowerMinHoldStagePercent ( ) const
inline

Definition at line 2070 of file Player.h.

◆ GetExpertiseDodgeOrParryReduction()

float Player::GetExpertiseDodgeOrParryReduction ( WeaponAttackType  attType) const

Definition at line 5200 of file Player.cpp.

References BASE_ATTACK, m_activePlayerData, and OFF_ATTACK.

Referenced by Unit::GetUnitDodgeChance(), and Unit::GetUnitParryChance().

◆ GetFactionGroupForRace()

uint8 Player::GetFactionGroupForRace ( uint8  race)
static

◆ GetFakeDrunkValue()

int32 Player::GetFakeDrunkValue ( ) const
inline

Definition at line 2464 of file Player.h.

Referenced by UpdateInvisibilityDrunkDetect().

◆ GetFreeInventorySlotCount()

◆ GetFreePrimaryProfessionPoints()

uint32 Player::GetFreePrimaryProfessionPoints ( ) const
inline

Definition at line 2052 of file Player.h.

Referenced by AddSpell(), Trainer::Trainer::CanTeachSpell(), and RemoveSpell().

◆ GetGameObjectIfCanInteractWith() [1/2]

◆ GetGameObjectIfCanInteractWith() [2/2]

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

Definition at line 1897 of file Player.cpp.

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

◆ GetGarrison()

◆ GetGlyphs() [1/2]

std::vector< uint32 > & Player::GetGlyphs ( uint8  spec)
inline

Definition at line 2031 of file Player.h.

◆ GetGlyphs() [2/2]

std::vector< uint32 > const & Player::GetGlyphs ( uint8  spec) const
inline

◆ GetGossipMenuForSource()

◆ GetGossipTextId() [1/2]

◆ GetGossipTextId() [2/2]

uint32 Player::GetGossipTextId ( WorldObject *  source)

Definition at line 14218 of file Player.cpp.

References DEFAULT_GOSSIP_MESSAGE, GetGossipMenuForSource(), and GetGossipTextId().

◆ GetGroup() [1/4]

◆ GetGroup() [2/4]

Group const * Player::GetGroup ( ) const
inline

Definition at line 2784 of file Player.h.

◆ GetGroup() [3/4]

Group * Player::GetGroup ( Optional< uint8 >  partyIndex)
inline

Definition at line 2781 of file Player.h.

References GetGroup().

Referenced by KillRewarder::_InitGroupData(), KillRewarder::_RewardKillCredit(), KillRewarder::_RewardPlayer(), KillRewarder::_RewardXP(), Group::AddInvite(), Group::AddMember(), Battlefield::AddOrSetPlayerToCorrectBfGroup(), Group::BroadcastAddonMessagePacket(), Group::BroadcastPacket(), QuestObjectiveCriteriaMgr::CanUpdateCriteriaTree(), npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::CheckEventFail(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::CheckEventFail(), spell_dru_t10_restoration_4p_bonus_dummy::CheckProc(), GuildAchievementMgr::CompletedAchievement(), MapManager::CreateMap(), Spell::EffectChangeRaidMarker(), Spell::EffectSummonType(), SmartAI::EndPath(), Loot::FillLoot(), MapManager::FindInstanceIdForPlayer(), Creature::ForcePartyMembersIntoCombat(), GetGroup(), spell_pri_ultimate_penitence_channel::GetHealingRules(), Unit::GetNextRandomRaidMemberOrPet(), Unit::GetPartyMembers(), ConditionMgr::GetPlayerConditionLfgValue(), ChatHandler::GetPlayerGroupAndGUIDByName(), SmartScript::GetTargets(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleChangeSubGroupOpcode(), WorldSession::HandleChatAddonMessage(), WorldSession::HandleChatMessage(), WorldSession::HandleClearRaidMarker(), WorldSession::HandleConvertRaidOpcode(), WorldSession::HandleDoReadyCheckOpcode(), group_commandscript::HandleGroupJoinCommand(), group_commandscript::HandleGroupLevelCommand(), group_commandscript::HandleGroupListCommand(), group_commandscript::HandleGroupRepairCommand(), group_commandscript::HandleGroupReviveCommand(), group_commandscript::HandleGroupSummonCommand(), Guild::HandleGuildPartyRequest(), WorldSession::HandleInitiateRolePoll(), OutdoorPvP::HandleKill(), WorldSession::HandleLeaveGroupOpcode(), WorldSession::HandleLfgLeaveOpcode(), WorldSession::HandleLfgSetRolesOpcode(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleMinimapPingOpcode(), WorldSession::HandlePartyInviteOpcode(), WorldSession::HandlePartyUninviteOpcode(), Battlefield::HandlePlayerLeaveZone(), WorldSession::HandlePlayerLogin(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleQueryCountdownTimer(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleReadyCheckResponseOpcode(), WorldSession::HandleRequestPartyJoinUpdates(), WorldSession::HandleResetInstancesOpcode(), WorldSession::HandleSetAssistantLeaderOpcode(), WorldSession::HandleSetDungeonDifficultyOpcode(), WorldSession::HandleSetEveryoneIsAssistant(), WorldSession::HandleSetPartyAssignment(), WorldSession::HandleSetPartyLeaderOpcode(), WorldSession::HandleSetRaidDifficultyOpcode(), WorldSession::HandleSetRestrictPingsToAssistants(), WorldSession::HandleSetRoleOpcode(), misc_commandscript::HandleSummonCommand(), WorldSession::HandleSwapSubGroupsOpcode(), tele_commandscript::HandleTeleGroupCommand(), WorldSession::HandleUpdateRaidTargetOpcode(), SmartAI::IsEscortInvokerInRange(), IsInSameGroupWith(), IsInSameRaidWith(), Channel::JoinChannel(), lfg::LFGMgr::JoinLfg(), WorldSession::LogoutPlayer(), lfg::LFGMgr::MakeNewGroup(), MeetsGroupStatusCondition(), CriteriaHandler::ModifierSatisfied(), go_gauntlet_gate::go_gauntlet_gateAI::OnGossipHello(), lfg::LFGPlayerScript::OnLogin(), lfg::LFGPlayerScript::OnLogout(), lfg::LFGPlayerScript::OnMapChanged(), Map::PlayerCannotEnter(), RemovedInsignia(), Group::SameSubGroup(), WorldSession::SendLfgPartyLockInfo(), Group::SendUpdateToPlayer(), Creature::SetTappedBy(), lfg::LFGMgr::TeleportPlayer(), and GameObject::Use().

◆ GetGroup() [4/4]

Group const * Player::GetGroup ( Optional< uint8 >  partyIndex) const

Definition at line 24873 of file Player.cpp.

References GetGroup(), Group::GetGroupCategory(), and GetOriginalGroup().

◆ GetGroupInvite()

◆ GetGroupRef()

GroupReference & Player::GetGroupRef ( )
inline

Definition at line 2785 of file Player.h.

◆ GetGroupUpdateFlag()

uint32 Player::GetGroupUpdateFlag ( ) const
inline

Definition at line 2788 of file Player.h.

◆ GetGuild() [1/2]

Guild * Player::GetGuild ( )

Definition at line 30428 of file Player.cpp.

References GetGuildId(), and sGuildMgr.

Referenced by BuyItemFromVendorSlot(), Spell::CheckCast(), PlayerAchievementMgr::CompletedAchievement(), GuildAchievementMgr::CompletedAchievement(), CreateCorpse(), Spell::DoCreateItem(), DurabilityRepairAll(), Spell::EffectUnlockGuildVaultTab(), GiveLevel(), Battlenet::Services::ClubService::HandleAdvanceStreamViewTime(), WorldSession::HandleAutoGuildBankItem(), WorldSession::HandleAutoStoreGuildBankItem(), WorldSession::HandleChatMessageAFKOpcode(), WorldSession::HandleChatMessageDNDOpcode(), Battlenet::Services::ClubService::HandleCreateMessage(), Battlenet::Services::ClubService::HandleGetMembers(), Battlenet::Services::ClubService::HandleGetStreams(), WorldSession::HandleGuildBankActivate(), WorldSession::HandleGuildChallengeUpdateRequest(), WorldSession::HandleGuildSetRankPermissions(), WorldSession::HandleGuildShiftRank(), Guild::HandleInviteMember(), WorldSession::HandleMergeGuildBankItemWithGuildBankItem(), WorldSession::HandleMergeGuildBankItemWithItem(), WorldSession::HandleMergeItemWithGuildBankItem(), WorldSession::HandleMoveGuildBankItem(), Battlenet::Services::ClubService::HandleSetStreamFocus(), WorldSession::HandleSplitGuildBankItem(), WorldSession::HandleSplitGuildBankItemToInventory(), WorldSession::HandleSplitItemToGuildBank(), WorldSession::HandleStoreGuildBankItem(), Battlenet::Services::ClubService::HandleSubscribe(), Battlenet::Services::ClubMembershipService::HandleSubscribe(), Battlenet::Services::ClubService::HandleSubscribeStream(), WorldSession::HandleSwapGuildBankItemWithGuildBankItem(), WorldSession::HandleSwapItemWithGuildBankItem(), OnGossipSelect(), StoreLootItem(), and UpdateZone().

◆ GetGuild() [2/2]

Guild const * Player::GetGuild ( ) const

Definition at line 30434 of file Player.cpp.

References GetGuildId(), and sGuildMgr.

◆ GetGuildId()

◆ GetGuildIdInvited()

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

◆ GetGuildLevel()

uint32 Player::GetGuildLevel ( ) const
inline

Definition at line 2145 of file Player.h.

◆ GetGuildName()

std::string Player::GetGuildName ( ) const

Definition at line 29493 of file Player.cpp.

References GetGuildId(), and sGuildMgr.

◆ GetGuildRank()

uint8 Player::GetGuildRank ( ) const
inline

Definition at line 2143 of file Player.h.

◆ GetHealthBonusFromStamina()

float Player::GetHealthBonusFromStamina ( ) const

Definition at line 285 of file StatSystem.cpp.

References Unit::GetLevel(), Unit::GetStat(), sHpPerStaGameTable, and STAT_STAMINA.

Referenced by UpdateMaxHealth().

◆ GetHonorLevel()

uint32 Player::GetHonorLevel ( ) const
inline

Definition at line 2450 of file Player.h.

Referenced by AddHonorXP(), CriteriaHandler::ModifierSatisfied(), SaveToDB(), and SetHonorLevel().

◆ GetInGameTime()

uint32 Player::GetInGameTime ( ) const
inline

Definition at line 1824 of file Player.h.

◆ GetInstanceEntrance()

◆ GetInventorySlotCount()

◆ GetItemByEntry()

◆ GetItemByGuid()

Item * Player::GetItemByGuid ( ObjectGuid  guid) const

Definition at line 9522 of file Player.cpp.

References Continue, Everywhere, ForEachItem(), and BaseEntity::GetGUID().

Referenced by Aura::_ApplyForTarget(), _LoadInventory(), _SaveInventory(), Spell::CheckCast(), WorldSession::DoLootRelease(), Spell::EffectGiveArtifactPower(), Spell::EffectGiveArtifactPowerNoBonus(), TradeData::GetItem(), TradeData::GetSpellCastItem(), GiveLevel(), WorldSession::HandleAddToy(), WorldSession::HandleArtifactAddPower(), WorldSession::HandleArtifactSetAppearance(), WorldSession::HandleAuctionSellCommodity(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoEquipItemSlotOpcode(), WorldSession::HandleAzeriteEmpoweredItemViewed(), WorldSession::HandleBuyItemOpcode(), WorldSession::HandleConfirmArtifactRespec(), debug_commandscript::HandleDebugItemExpireCommand(), WorldSession::HandleGetItemPurchaseData(), WorldSession::HandleItemRefund(), WorldSession::HandleItemTextQuery(), WorldSession::HandlePetitionRenameGuild(), WorldSession::HandleRemoveNewItem(), WorldSession::HandleRepairItemOpcode(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSendMail(), WorldSession::HandleSignPetition(), WorldSession::HandleSocketGems(), WorldSession::HandleTransmogOutfitUpdateSlots(), WorldSession::HandleTransmogrifyItems(), WorldSession::HandleTurnInPetition(), WorldSession::HandleUseCritterItem(), WorldSession::HandleUseEquipmentSet(), CriteriaHandler::ModifierSatisfied(), SwapItem(), SpellCastTargets::Update(), Spell::UpdatePointers(), UpdateSoulboundTradeItems(), and GameObject::Use().

◆ GetItemByPos() [1/2]

Item * Player::GetItemByPos ( uint16  pos) const

Definition at line 9538 of file Player.cpp.

References GetItemByPos().

Referenced by _SaveCharacterSelectOutfit(), _SaveInventory(), _StoreItem(), ActivateTalentGroup(), AutoUnequipOffhandIfNeed(), CanEquipChildItem(), CanEquipItem(), CanStoreItem_InBag(), CanStoreItem_InInventorySlots(), CanStoreItem_InSpecificSlot(), CanStoreItems(), CanUnequipItem(), CastAllObtainSpells(), CastItemCombatSpell(), CorrectMetaGemEnchants(), Create(), DestroyConjuredItems(), DestroyItem(), DestroyItemCount(), DestroyZoneLimitedItem(), PlayerAI::DoRangedAttackIfReady(), DurabilityLossAll(), DurabilityPointLossForEquipSlot(), DurabilityPointsLossAll(), DurabilityRepair(), DurabilityRepairAll(), Spell::EffectDurabilityDamage(), Spell::EffectDurabilityDamagePCT(), Spell::EffectEnchantHeldItem(), Spell::EffectScriptEffect(), EnchantmentFitsRequirements(), EquipChildItem(), EquipItem(), EquipTransmogOutfit(), FindEquipSlot(), GetBagByPos(), GetFreeInventorySlotCount(), GetItemByPos(), GetShield(), GetUseableItemByPos(), GetWeaponForAttack(), misc_commandscript::HandleAddItemCommandHelper(), AuraEffect::HandleAuraModDisarm(), AuraEffect::HandleAuraModShapeshift(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleAzeriteEmpoweredItemSelectPower(), WorldSession::HandleCancelTempEnchantmentOpcode(), debug_commandscript::HandleDebugGetItemStateCommand(), WorldSession::HandleDestroyItemOpcode(), spell_gen_fishing::HandleDummy(), spell_sha_flametongue_weapon::HandleEffectHitTarget(), WorldSession::HandleEquipmentSetSave(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandleOpenWrappedItemCallback(), WorldSession::HandleReadItem(), WorldSession::HandleSetTradeItemOpcode(), WorldSession::HandleTransmogrifyItems(), WorldSession::HandleUseEquipmentSet(), WorldSession::HandleWrapItem(), WorldPackets::Inspect::PlayerModelDisplayInfo::Initialize(), ConditionMgr::IsPlayerMeetingCondition(), IsTwoHandUsed(), IsUsingTwoHandedWeaponInOneHand(), MoveItemFromInventory(), boss_shade_of_aran::boss_aranAI::PlayerHasWeaponEquipped(), RemoveArenaEnchantments(), RemoveItem(), SetInventorySlotCount(), SetSkill(), SplitItem(), SwapItem(), ToggleMetaGemsActive(), and UpdateAverageItemLevelEquipped().

◆ GetItemByPos() [2/2]

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

◆ GetItemCount()

◆ GetItemCountWithLimitCategory()

uint32 Player::GetItemCountWithLimitCategory ( uint32  limitCategory,
Item *  skipItem = nullptr 
) const

◆ GetItemFromBuyBackSlot()

Item * Player::GetItemFromBuyBackSlot ( uint32  slot)

◆ GetItemLimitCategoryQuantity()

◆ GetItemListByEntry()

std::vector< Item * > Player::GetItemListByEntry ( uint32  entry,
bool  inBankAlso = false 
) const

◆ GetItemUpdateQueue()

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

Definition at line 1469 of file Player.h.

Referenced by debug_commandscript::HandleDebugGetItemStateCommand().

◆ GetJoinedChannels()

JoinedChannelsList const & Player::GetJoinedChannels ( ) const
inline

◆ GetLastPetNumber()

uint32 Player::GetLastPetNumber ( ) const
inline

Definition at line 2771 of file Player.h.

Referenced by spell_gen_pet_summoned::HandleScript().

◆ GetLegacyRaidDifficultyID()

Difficulty Player::GetLegacyRaidDifficultyID ( ) const
inline

◆ GetLevelPlayedTime()

uint32 Player::GetLevelPlayedTime ( ) const
inline

Definition at line 1332 of file Player.h.

References PLAYED_TIME_LEVEL.

Referenced by WorldSession::HandlePlayedTime().

◆ GetLootByWorldObjectGUID()

Loot * Player::GetLootByWorldObjectGUID ( ObjectGuid const &  lootWorldObjectGuid) const

Definition at line 8988 of file Player.cpp.

References m_AELootView.

Referenced by SwapItem().

◆ GetLootGUID()

◆ GetLootRoll()

LootRoll * Player::GetLootRoll ( ObjectGuid const &  lootObjectGuid,
uint8  lootListId 
)

Definition at line 8997 of file Player.cpp.

References m_lootRolls.

Referenced by WorldSession::HandleLootRoll().

◆ GetLootSpecId()

uint32 Player::GetLootSpecId ( ) const
inline

Definition at line 1983 of file Player.h.

Referenced by ItemTemplate::IsUsableByLootSpecialization(), and SaveToDB().

◆ GetMail()

◆ GetMails()

PlayerMails const & Player::GetMails ( ) const
inline

◆ GetMailSize()

uint32 Player::GetMailSize ( ) const
inline

Definition at line 1916 of file Player.h.

◆ GetMapRef()

MapReference & Player::GetMapRef ( )
inline

◆ GetMaxPersonalArenaRatingRequirement()

uint32 Player::GetMaxPersonalArenaRatingRequirement ( uint32  minarenaslot) const

◆ GetMaxSkillValue()

uint16 Player::GetMaxSkillValue ( uint32  skill) const

◆ GetMeleeDamageSchoolMask()

SpellSchoolMask Player::GetMeleeDamageSchoolMask ( WeaponAttackType  attackType = BASE_ATTACK) const
overridevirtual

Implements Unit.

Definition at line 8178 of file Player.cpp.

References GetWeaponForAttack(), and SPELL_SCHOOL_MASK_NORMAL.

◆ GetMirrorTimerMaxValue()

◆ GetMItem()

◆ GetMoney()

◆ GetMovie()

uint32 Player::GetMovie ( ) const
inline

Definition at line 2096 of file Player.h.

Referenced by WorldSession::HandleCompleteMovie().

◆ GetNativeGender()

◆ GetNewWorldCounter()

int32 Player::GetNewWorldCounter ( ) const
inline

Definition at line 2384 of file Player.h.

Referenced by WorldSession::HandleSuspendTokenResponse().

◆ GetNextQuest()

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

◆ GetNextRandomRaidMember()

Player * Player::GetNextRandomRaidMember ( float  radius)

◆ GetNextResetTalentsCost()

◆ GetNPCIfCanInteractWith()

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

Definition at line 1814 of file Player.cpp.

References CREATURE_TYPE_FLAG_INTERACT_WHILE_DEAD, CREATURE_TYPE_FLAG_VISIBLE_TO_GHOSTS, Unit::GetCharmerGUID(), Unit::GetCombatReach(), Creature::GetCreatureDifficulty(), ObjectAccessor::GetCreatureOrPetOrVehicle(), WorldObject::GetReactionTo(), Unit::HasNpcFlag(), Unit::HasNpcFlag2(), Unit::IsAlive(), ObjectGuid::IsEmpty(), Unit::IsInCombat(), Unit::IsInFlight(), Unit::IsInteractionAllowedInCombat(), Unit::IsInteractionAllowedWhileHostile(), BaseEntity::IsInWorld(), WorldObject::IsWithinDistInMap(), REP_UNFRIENDLY, and CreatureDifficulty::TypeFlags.

Referenced by BuyCurrencyFromVendorSlot(), BuyItemFromVendorSlot(), CanInteractWithQuestGiver(), WorldSession::CanOpenMailBox(), WorldSession::CanUseBank(), WorldSession::HandleActivateTaxiOpcode(), WorldSession::HandleAuctionBrowseQuery(), WorldSession::HandleAuctionCancelCommoditiesPurchase(), WorldSession::HandleAuctionConfirmCommoditiesPurchase(), WorldSession::HandleAuctionGetCommodityQuote(), WorldSession::HandleAuctionHelloOpcode(), WorldSession::HandleAuctionListBiddedItems(), WorldSession::HandleAuctionListBucketsByBucketKeys(), WorldSession::HandleAuctionListItemsByBucketKey(), WorldSession::HandleAuctionListItemsByItemID(), WorldSession::HandleAuctionListOwnedItems(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionReplicateItems(), WorldSession::HandleAuctionSellCommodity(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleBankerActivateOpcode(), WorldSession::HandleBattlemasterHelloOpcode(), WorldSession::HandleBinderActivateOpcode(), WorldSession::HandleBlackMarketBidOnItem(), WorldSession::HandleBlackMarketOpen(), WorldSession::HandleBlackMarketRequestItems(), WorldSession::HandleBuybackItem(), WorldSession::HandleConfirmArtifactRespec(), WorldSession::HandleConfirmRespecWipeOpcode(), WorldSession::HandleGarrisonCancelConstruction(), WorldSession::HandleGarrisonPurchaseBuilding(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleGossipSelectOptionOpcode(), WorldSession::HandlePetitionBuy(), WorldSession::HandleQuestgiverHelloOpcode(), WorldSession::HandleRepairItemOpcode(), WorldSession::HandleSavePersonalEmblem(), WorldSession::HandleSellAllJunkItems(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSpiritHealerActivate(), WorldSession::HandleTabardVendorActivateOpcode(), WorldSession::HandleTaxiQueryAvailableNodesOpcode(), WorldSession::HandleTrainerBuySpellOpcode(), WorldSession::HandleTrainerListOpcode(), WorldSession::HandleTransmogOutfitNew(), WorldSession::HandleTransmogOutfitUpdateInfo(), WorldSession::HandleTransmogOutfitUpdateSituations(), WorldSession::HandleTransmogOutfitUpdateSlots(), WorldSession::HandleTransmogrifyItems(), WorldSession::SendListInventory(), and WorldSession::SendPetitionShowList().

◆ GetNumRespecs()

uint8 Player::GetNumRespecs ( ) const
inline

Definition at line 2996 of file Player.h.

Referenced by Spell::EffectRespecAzeriteEmpoweredItem(), and SaveToDB().

◆ GetOriginalGroup()

◆ GetOriginalGroupRef()

GroupReference & Player::GetOriginalGroupRef ( )
inline

Definition at line 2801 of file Player.h.

◆ GetOriginalSubGroup()

uint8 Player::GetOriginalSubGroup ( ) const
inline

Definition at line 2802 of file Player.h.

Referenced by RemoveFromBattlegroundOrBattlefieldRaid().

◆ GetOrInitPetStable()

PetStable & Player::GetOrInitPetStable ( )

Definition at line 29581 of file Player.cpp.

References m_petStable.

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

◆ GetOutdoorPvP()

◆ GetOverrideZonePVPType()

ZonePVPTypeOverride Player::GetOverrideZonePVPType ( ) const
inline

Definition at line 1985 of file Player.h.

Referenced by UpdateHostileAreaState().

◆ GetPassOnGroupLoot()

bool Player::GetPassOnGroupLoot ( ) const
inline

Definition at line 2806 of file Player.h.

Referenced by LootRoll::TryToStart().

◆ GetPet()

Pet * Player::GetPet ( ) const

◆ GetPetStable() [1/2]

◆ GetPetStable() [2/2]

PetStable const * Player::GetPetStable ( ) const
inline

Definition at line 1341 of file Player.h.

◆ GetPlayerSharingQuest()

◆ GetPowerIndex()

◆ GetPowerRegen()

◆ GetPowerTypes()

◆ GetPrimarySpecialization()

◆ GetPrimarySpecializationEntry()

◆ GetPrimaryStat()

Stats Player::GetPrimaryStat ( ) const

◆ GetProfessionSkillForExp()

◆ GetProfessionSlotFor()

int32 Player::GetProfessionSlotFor ( uint32  skillId) const

Definition at line 25438 of file Player.cpp.

References m_activePlayerData.

Referenced by _SaveSkills(), FindEquipSlot(), and SetSkill().

◆ GetPureMaxSkillValue()

◆ GetPureSkillValue()

◆ GetPvpInfoForBracket()

UF::PVPInfo const * Player::GetPvpInfoForBracket ( int8  bracket) const

Definition at line 23094 of file Player.cpp.

References m_activePlayerData, and pvpInfo.

Referenced by GetArenaPersonalRating(), and CriteriaHandler::ModifierSatisfied().

◆ GetPvpTalentMap() [1/2]

PlayerPvpTalentMap & Player::GetPvpTalentMap ( uint8  spec)
inline

Definition at line 2029 of file Player.h.

◆ GetPvpTalentMap() [2/2]

◆ GetQuestDialogStatus()

QuestGiverStatus Player::GetQuestDialogStatus ( Object const *  questGiver) const

Definition at line 16096 of file Player.cpp.

References Creature::AI(), GameObject::AI(), CanSeeStartQuest(), CanTakeQuest(), CONDITION_SOURCE_TYPE_QUEST_AVAILABLE, CONFIG_QUEST_LOW_LEVEL_HIDE_DIFF, CovenantCalling, CovenantCallingQuest, CovenantCallingReward, CovenantCallingRewardCompleteNoPOI, CovenantCallingRewardCompletePOI, Future, FutureImportantQuest, FutureJourneyQuest, FutureLegendaryQuest, Object::GetEntry(), BaseEntity::GetGUID(), Unit::GetLevel(), WorldObject::GetName(), Quest::GetQuestId(), GetQuestLevel(), GetQuestStatus(), Quest::GetQuestTag(), BaseEntity::GetTypeId(), Quest::HasFlag(), Quest::HasFlagEx(), ImportantQuest, ImportantQuestRewardCompleteNoPOI, ImportantQuestRewardCompletePOI, ImportantReward, QuestMgr::IsCampaignQuestStatusVisibleForPlayer(), Quest::IsDailyOrWeekly(), WorldObject::IsHostileTo(), Quest::IsImportant(), Unit::IsInCombat(), Unit::IsInteractionAllowedInCombat(), Unit::IsInteractionAllowedWhileHostile(), Quest::IsMeta(), Quest::IsRepeatable(), Quest::IsTurnIn(), JourneyQuest, JourneyReward, JourneyRewardCompleteNoPOI, JourneyRewardCompletePOI, LegendaryQuest, LegendaryReward, LegendaryRewardCompleteNoPOI, LegendaryRewardCompletePOI, MetaQuest, MetaQuestRewardCompleteNoPOI, MetaQuestRewardCompletePOI, MetaReward, None, Quest, QUEST_FLAGS_EX_LEGENDARY, QUEST_FLAGS_HIDE_REWARD_POI, QUEST_STATUS_COMPLETE, QUEST_STATUS_INCOMPLETE, QUEST_STATUS_NONE, RepeatableQuest, RepeatableReward, RepeatableRewardCompleteNoPOI, RepeatableRewardCompletePOI, RepeatableTurnin, Reward, RewardCompleteNoPOI, RewardCompletePOI, SatisfyQuestLevel(), sConditionMgr, sObjectMgr, sWorld, TC_LOG_ERROR, Object::ToCreature(), Object::ToGameObject(), Position::ToString(), Trivial, TrivialImportantQuest, TrivialJourneyQuest, TrivialLegendaryQuest, TrivialMetaQuest, TrivialRepeatableQuest, TrivialRepeatableTurnin, TYPEID_GAMEOBJECT, and TYPEID_UNIT.

Referenced by GameObject::ActivateToQuest(), WorldSession::HandleQuestgiverStatusQueryOpcode(), SendQuestGiverStatusMultiple(), SendQuestReward(), and UpdateVisibleObjectInteractions().

◆ GetQuestLevel() [1/2]

◆ GetQuestLevel() [2/2]

int32 Player::GetQuestLevel ( uint32  contentTuningId) const

Definition at line 14317 of file Player.cpp.

References Unit::GetLevel(), GetQuestMinLevel(), m_playerData, and sDB2Manager.

◆ GetQuestMinLevel() [1/2]

◆ GetQuestMinLevel() [2/2]

◆ GetQuestMoneyReward()

uint32 Player::GetQuestMoneyReward ( Quest const *  quest) const

◆ GetQuestObjectiveData() [1/2]

int32 Player::GetQuestObjectiveData ( QuestObjective const &  objective) const

◆ GetQuestObjectiveData() [2/2]

◆ GetQuestObjectiveForItem()

◆ GetQuestRewardStatus()

◆ GetQuestSlotCounter()

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

◆ GetQuestSlotEndTime()

int64 Player::GetQuestSlotEndTime ( uint16  slot) const

Definition at line 16373 of file Player.cpp.

References m_playerData.

Referenced by _SaveQuestStatus().

◆ GetQuestSlotObjectiveData()

◆ GetQuestSlotObjectiveFlag()

bool Player::GetQuestSlotObjectiveFlag ( uint16  slot,
int8  objectiveIndex 
) const

Definition at line 16378 of file Player.cpp.

References m_playerData, and MAX_QUEST_COUNTS.

Referenced by GetQuestSlotObjectiveData().

◆ GetQuestSlotQuestId()

uint32 Player::GetQuestSlotQuestId ( uint16  slot) const

◆ GetQuestSlotState()

uint32 Player::GetQuestSlotState ( uint16  slot) const

Definition at line 16361 of file Player.cpp.

References m_playerData.

◆ GetQuestStatus()

QuestStatus Player::GetQuestStatus ( uint32  quest_id) const

Definition at line 15929 of file Player.cpp.

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

Referenced by GameObject::ActivateToQuest(), CanRewardQuest(), CanSeeGossipOn(), QuestObjectiveCriteriaMgr::CanUpdateCriteriaTree(), npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::CheckEventFail(), spell_item_demon_broiled_surprise::CheckRequirement(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DamageTaken(), DuelComplete(), Spell::EffectQuestClear(), Spell::EffectQuestComplete(), FailQuest(), ReputationMgr::GetMaxReputation(), GetQuestDialogStatus(), GetSpawnTrackingStateByObjective(), spell_midsummer_torch_catch::HandleDummy(), spell_defender_of_azeroth_death_gate_selector::HandleDummy(), spell_item_chicken_cover::HandleDummy(), spell_sindragosa_frost_breath::HandleInfusion(), lookup_commandscript::HandleLookupQuestCommand(), lookup_commandscript::HandleLookupQuestIdCommand(), spell_dalaran_order_campaign_intro_aura::HandlePeriodic(), WorldSession::HandlePushQuestToParty(), quest_commandscript::HandleQuestComplete(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), WorldSession::HandleQuestgiverRequestRewardOpcode(), WorldSession::HandleQuestLogRemoveQuest(), quest_commandscript::HandleQuestRemove(), quest_commandscript::HandleQuestReward(), quest_taming_the_wilds::HandleQuestStatusChange(), quest_briarpatch::HandleQuestStatusChange(), spell_festergut_blighted_spores::HandleResidue(), spell_rotface_slime_spray::HandleResidue(), spell_midsummer_fling_torch_catch::HandleScriptEffect(), SpellArea::IsFitToRequirements(), ConditionMgr::IsPlayerMeetingCondition(), LootItem::ItemAllowedForPlayer(), boss_shattered_executioner::JustDied(), npc_a_special_surprise::npc_a_special_surpriseAI::MeetQuestCondition(), CriteriaHandler::ModifierSatisfied(), spell_brewfest_barker_bunny::OnApply(), Scripts::Pandaria::TheWanderingIsle::at_inside_of_cave_of_meditation::OnExit(), go_master_surveyor::OnGossipHello(), 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_silverpine_bat_handler_maggotbreath::OnGossipHello(), npc_erozion::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_silverpine_admiral_hatchet::OnGossipSelect(), at_malfurion_stormrage::OnTrigger(), at_twilight_grove::OnTrigger(), at_silverpine_forsaken_rear_guard::OnTrigger(), at_silverpine_no_escape::OnTrigger(), Scripts::EasternKingdoms::Westfall::at_westfall_two_shoed_lou_thugs::OnTrigger(), at_hor_intro_start::OnTrigger(), at_commander_dawnforge::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_min_dimwind_captured::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_cave_of_meditation::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_inside_of_cave_of_meditation::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(), at_hall_of_shadows_call_of_the_uncrowned_clone_milton::OnUnitEnter(), at_enter_the_illidari_ashtongue_allari_killcredit::OnUnitEnter(), at_human_heritage_lions_pride_inn_basement_enter::OnUnitEnter(), at_ghostlands_conversation_to_ghostlands< QuestId, ConversationId >::OnUnitEnter(), Scripts::EasternKingdoms::StormwindCity::at_stormwind_keep_tides_of_war::OnUnitEnter(), areatrigger_find_the_lost_expedition::OnUnitEnter(), areatrigger_find_the_lost_expedition_follower::OnUnitEnter(), at_northbound_linger::OnUnitEnter(), at_briarpatch_to_plains::OnUnitEnter(), at_boralus_get_your_bearings< QuestId, ObjectiveId, SpellId >::OnUnitEnter(), at_boralus_old_knight_enter_harbormasters_office::OnUnitEnter(), at_boralus_old_knight_genn_arrives_boralus::OnUnitEnter(), at_boralus_sanctum_of_the_sages_conversation::OnUnitEnter(), item_captured_frog::OnUse(), npc_doctor::npc_doctorAI::PatientDied(), npc_doctor::npc_doctorAI::PatientSaved(), PrepareQuestMenu(), SmartScript::ProcessAction(), npc_chicken_cluck::npc_chicken_cluckAI::ReceiveEmote(), RewardQuest(), SatisfyQuestDependentBreadcrumbQuests(), SatisfyQuestExclusiveGroup(), SatisfyQuestPreviousQuest(), SatisfyQuestStatus(), boss_shattered_executioner::SetData(), SkipQuests(), Scripts::Kalimdor::Durotar::npc_lazy_peon::npc_lazy_peonAI::SpellHit(), npc_restless_soul::npc_restless_soulAI::SpellHit(), npc_sparring_partner_enhanced_combat_training_priest::SpellHit(), npc_sparring_partner_enhanced_combat_training_shaman::SpellHit(), npc_sparring_partner_enhanced_combat_training_mage::SpellHit(), npc_sparring_partner_enhanced_combat_training_warlock::SpellHit(), npc_sparring_partner_enhanced_combat_training_monk::SpellHit(), npc_sparring_partner_enhanced_combat_training_druid::SpellHit(), npc_wounded_skirmisher::SpellHit(), npc_jungle_punch_target::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), Scripts::EasternKingdoms::Westfall::npc_westfall_lous_parting_thoughts_trigger::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), boss_blood_queen_lana_thel::UpdateAI(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::UpdateAI(), FollowerAI::UpdateAI(), and GameObject::Use().

◆ getQuestStatusMap()

QuestStatusMap & Player::getQuestStatusMap ( )
inline

Definition at line 1897 of file Player.h.

Referenced by AddQuest().

◆ GetQuestXPReward()

◆ GetRaidDifficultyID()

Difficulty Player::GetRaidDifficultyID ( ) const
inline

◆ GetRandomWinner()

bool Player::GetRandomWinner ( ) const
inline

◆ GetRatingBonusValue()

◆ GetRatingMultiplier()

float Player::GetRatingMultiplier ( CombatRating  cr) const

◆ GetRBGPersonalRating()

uint32 Player::GetRBGPersonalRating ( ) const
inline

Definition at line 2162 of file Player.h.

Referenced by CriteriaHandler::ModifierSatisfied().

◆ GetRecentInstanceId()

uint32 Player::GetRecentInstanceId ( uint32  mapId) const
inline

Definition at line 2750 of file Player.h.

Referenced by MapManager::CreateMap(), and MapManager::FindInstanceIdForPlayer().

◆ GetReputation()

◆ GetReputationMgr() [1/2]

◆ GetReputationMgr() [2/2]

ReputationMgr const & Player::GetReputationMgr ( ) const
inline

Definition at line 2423 of file Player.h.

◆ GetReputationPriceDiscount() [1/2]

◆ GetReputationPriceDiscount() [2/2]

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

Definition at line 25813 of file Player.cpp.

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

◆ GetReputationRank()

◆ GetReqKillOrCastCurrentCount()

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

◆ GetRestMgr()

RestMgr & Player::GetRestMgr ( ) const
inline

◆ GetRewardedQuestCount()

size_t Player::GetRewardedQuestCount ( ) const
inline

Definition at line 1899 of file Player.h.

Referenced by CriteriaHandler::UpdateCriteria().

◆ getRewardedQuests()

RewardedQuestSet const & Player::getRewardedQuests ( ) const
inline

Definition at line 1896 of file Player.h.

Referenced by CriteriaHandler::UpdateCriteria().

◆ GetRuneBaseCooldown()

◆ GetRuneCooldown()

◆ GetRunesState()

uint8 Player::GetRunesState ( ) const

◆ GetSaveTimer()

uint32 Player::GetSaveTimer ( ) const
inline

Definition at line 2664 of file Player.h.

Referenced by misc_commandscript::HandleSaveCommand().

◆ GetSceneMgr() [1/2]

◆ GetSceneMgr() [2/2]

SceneMgr const & Player::GetSceneMgr ( ) const
inline

Definition at line 2874 of file Player.h.

◆ GetSelectedPlayer()

◆ GetSelectedUnit()

Unit * Player::GetSelectedUnit ( ) const

◆ GetSession()

WorldSession * Player::GetSession ( ) const
inline

Definition at line 2256 of file Player.h.

Referenced by _LoadHomeBind(), _LoadInventory(), _LoadPlayerData(), _LoadQuestStatusRewarded(), _LoadTraits(), _LoadTransmogOutfits(), Guild::_SendBankContentUpdate(), InstanceScript::_SkipCheckRequiredBosses(), _StoreOrEquipNewItem(), ActivateTaxiPathTo(), AddEnchantmentDuration(), BattlegroundQueue::AddGroup(), Guild::AddGuildNews(), AddItem(), Guild::AddMember(), Channel::AddonSay(), InstanceMap::AddPlayerToMap(), AddSpell(), AddToWorld(), Channel::Announce(), AutoUnequipOffhandIfNeed(), World::BanCharacter(), Group::BroadcastAddonMessagePacket(), Guild::BroadcastAddonToGuild(), SocialMgr::BroadcastToFriendListers(), Guild::BroadcastToGuild(), AuctionsBucketData::BuildBucketInfo(), CalendarEvent::BuildCalendarMailBody(), BuildCreateUpdateBlockForPlayer(), AuctionHouseObject::BuildListAuctionItems(), AuctionHouseObject::BuildListAuctionItems(), AuctionHouseObject::BuildListBiddedItems(), AuctionHouseObject::BuildListBuckets(), AuctionHouseObject::BuildListBuckets(), AuctionHouseObject::BuildListOwnedItems(), BuildPlayerRepop(), AuctionHouseObject::BuyCommodity(), CanBeGameMaster(), CanJoinToBattleground(), AchievementMgr::CanUpdateCriteriaTree(), CharacterActionIpLogger::CharacterIPLogAction(), Spell::CheckCast(), AuctionHouseMgr::CheckThrottle(), Item::ClearSoulboundTradeable(), PlayerAchievementMgr::CompletedAchievement(), Create(), Guild::Create(), AuctionHouseObject::CreateCommodityQuote(), InstanceMap::CreateInstanceLockForPlayer(), Unit::DestroyForPlayer(), Guild::Disband(), DoRandomRoll(), InstanceScript::DoSendNotifyToInstance(), DuelComplete(), DurabilityRepairAll(), Spell::EffectChangeBattlePetQuality(), Spell::EffectCreateHeirloomItem(), Spell::EffectDiscoverTaxi(), Spell::EffectDuel(), Spell::EffectEnableBattlePets(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), Spell::EffectEnchantItemTmp(), Spell::EffectGrantBattlePetExperience(), Spell::EffectGrantBattlePetLevel(), Spell::EffectHealBattlePetPct(), Spell::EffectLearnSpell(), Spell::EffectLearnTransmogIllusion(), Spell::EffectLearnTransmogSet(), Spell::EffectLearnWarbandScene(), Spell::EffectPlaySound(), Spell::EffectUncageBattlePet(), Spell::EffectUnlockGuildVaultTab(), lfg::LFGMgr::FinishDungeon(), ChannelMgr::GetChannel(), ChannelMgr::GetChannelForPlayerByNamePart(), Scenario::GetCriteriasProgressFor(), SocialMgr::GetFriendInfo(), lfg::LFGMgr::GetLockedDungeons(), ReputationMgr::GetReputationRankName(), GetsRecruitAFriendBonus(), UF::ViewerDependentValue< UF::ConversationData::LastLineEndTimeTag >::GetValue(), UF::ViewerDependentValue< UF::ConversationLine::StartTimeTag >::GetValue(), WorldSession::HandleAcceptTradeOpcode(), account_commandscript::HandleAccountSetAddonCommand(), account_commandscript::HandleAccountSetSecLevelCommand(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleBeginTradeOpcode(), WorldSession::HandleChatCanLocalWhisperTargetRequest(), WorldSession::HandleChatIgnoredOpcode(), WorldSession::HandleChatMessage(), Battlenet::Services::ClubService::HandleCreateMessage(), debug_commandscript::HandleDebugSendOpcodeCommand(), WorldSession::HandleDuelAccepted(), cheat_commandscript::HandleExploreCheatCommand(), WorldSession::HandleForceSpeedChangeAck(), group_commandscript::HandleGroupLevelCommand(), group_commandscript::HandleGroupReviveCommand(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleInitiateTradeOpcode(), Guild::HandleInviteMember(), misc_commandscript::HandleKickPlayerCommand(), lookup_commandscript::HandleLookupPlayerIpCommand(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleMailTakeItem(), Guild::HandleMemberDepositMoney(), modify_commandscript::HandleModifyGenderCommand(), modify_commandscript::HandleModifyMoneyCommand(), modify_commandscript::HandleModifySpellCommand(), WorldSession::HandleMoveSetModMovementForceMagnitudeAck(), misc_commandscript::HandleMuteCommand(), WorldSession::HandlePartyInviteOpcode(), WorldSession::HandlePartyInviteResponseOpcode(), misc_commandscript::HandlePInfoCommand(), OutdoorPvP::HandlePlayerLeaveZone(), WorldSession::HandlePlayerLogin(), WorldSession::HandleQueryBattlePetName(), misc_commandscript::HandleRepairitemsCommand(), WorldSession::HandleReportPvPAFK(), reset_commandscript::HandleResetSpellsCommand(), misc_commandscript::HandleReviveCommand(), send_commandscript::HandleSendMessageCommand(), AuraEffect::HandleStoreTeleportReturnPoint(), misc_commandscript::HandleSummonCommand(), cheat_commandscript::HandleTaxiCheatCommand(), tele_commandscript::HandleTeleGroupCommand(), ticket_commandscript::HandleTicketUnAssignCommand(), misc_commandscript::HandleUnmuteCommand(), WorldSession::HandleWhoIsOpcode(), WorldSession::HandleWhoOpcode(), lfg::LFGMgr::HasIgnore(), ChatHandler::HasLowerSecurity(), InitStatsForLevel(), InitTalentForLevel(), Channel::Invite(), IsActionButtonDataValid(), IsInstanceLoginGameMasterException(), IsLoading(), IsNeverVisibleFor(), ConditionMgr::IsPlayerMeetingCondition(), SpellMgr::IsSpellValid(), ObjectMgr::IsVendorItemValid(), IsVisibleGloballyFor(), Channel::JoinChannel(), lfg::LFGMgr::JoinLfg(), Channel::KickOrBan(), Pet::learnSpells(), LeaveBattleground(), Channel::LeaveChannel(), Channel::List(), LoadFromDB(), Pet::LoadPetFromDB(), CriteriaHandler::ModifierSatisfied(), MoveItemFromInventory(), WorldSession::moveItems(), achievement_newbie::OnCompleted(), achievement_just_a_pup::OnCompleted(), 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(), npc_silverpine_bat_handler_maggotbreath::OnGossipSelect(), npc_zm_field_scout::OnGossipSelect(), go_amberpine_outhouse::go_amberpine_outhouseAI::OnGossipSelect(), OnGossipSelect(), lfg::LFGPlayerScript::OnLogin(), lfg::LFGPlayerScript::OnLogout(), lfg::LFGPlayerScript::OnMapChanged(), BattlefieldWG::OnPlayerLeaveWar(), Trinity::LocalizedDo< Localizer >::operator()(), Trinity::ChatPacketSender::operator()(), CreatureTextLocalizer< Builder >::operator()(), Channel::Password(), Player(), Map::PlayerCannotEnter(), PrepareGossipMenu(), ProcessItemCast(), BattlegroundMgr::QueuePlayerForArena(), RefundItem(), RemoveFromWorld(), GuildAchievementMgr::Reset(), Guild::ResetTimes(), ResummonBattlePetTemporaryUnSummonedIfAny(), ResurrectPlayer(), RewardHonor(), RewardQuest(), RewardQuestPackage(), Satisfy(), SatisfyQuestExpansion(), SaveToDB(), Channel::Say(), GuildAchievementMgr::SendAchievementEarned(), PlayerAchievementMgr::SendAchievementInfo(), PlayerAchievementMgr::SendAllData(), GuildAchievementMgr::SendAllData(), QuestObjectiveCriteriaMgr::SendAllData(), GuildAchievementMgr::SendAllTrackedCriterias(), AuctionHouseObject::SendAuctionExpired(), AuctionHouseObject::SendAuctionInvoice(), BlackMarketMgr::SendAuctionOutbidMail(), AuctionHouseObject::SendAuctionSold(), AuctionHouseObject::SendAuctionWon(), BlackMarketMgr::SendAuctionWonMail(), CalendarMgr::SendCalendarEvent(), Scenario::SendCriteriaUpdate(), PlayerAchievementMgr::SendCriteriaUpdate(), QuestObjectiveCriteriaMgr::SendCriteriaUpdate(), Unit::SendDurabilityLoss(), SendEnchantmentDurations(), Guild::SendEventNewLeader(), Guild::SendEventPlayerLeft(), Guild::SendGuildRanksUpdate(), SendInitialPacketsAfterAddToMap(), SendInitialPacketsBeforeAddToMap(), Map::SendInitSelf(), lfg::LFGMgr::SendLfgRoleChosen(), Guild::SendLoginInfo(), Unit::SendMoveKnockBack(), SendPlayerChoice(), SendPushToPartyResponse(), SendQuestConfirmAccept(), Spell::SendResurrectRequest(), World::SendServerMessage(), WorldSession::SendTradeStatus(), Group::SendUpdateToPlayer(), Map::SendUpdateTransportVisibility(), ReputationMgr::SendVisible(), Map::SendZoneMessage(), TradeData::SetAccepted(), SetDataElementAccount(), SetDataFlagAccount(), Item::SetEnchantment(), SetGameMaster(), SetGMVisible(), SetInventorySlotCount(), Channel::SetMode(), TradeData::SetMoney(), SetMoney(), Item::SetNotRefundable(), Group::SetOfflineMembersReadyChecked(), Channel::SetOwner(), SetPetSlot(), RestMgr::SetRestBonus(), Pet::SetSpecialization(), SpawnCorpseBones(), StartLoadingActionButtons(), StoreNewItem(), Trainer::Trainer::TeachSpell(), lfg::LFGMgr::TeleportPlayer(), TeleportTo(), TextEmote(), ToggleAFK(), TradeCancel(), Channel::UnBan(), Pet::unlearnSpells(), UnsummonBattlePetTemporaryIfAny(), TradeData::Update(), Pet::Update(), Update(), Map::Update(), CriteriaHandler::UpdateCriteria(), CriteriaHandler::UpdateCriteria(), InstanceMap::UpdateInstanceLock(), InstanceMap::UpdateInstanceLock(), UpdateLocalChannels(), UpdateMirrorTimers(), spell_gen_trainer_heal_cooldown::UpdateReviveBattlePetCooldown(), UpdateSpeakTime(), VisualizeItem(), Whisper(), Unit::Whisper(), Unit::Whisper(), Whisper(), WhisperAddon(), and Quest::XPValue().

◆ GetSharedQuestID()

uint32 Player::GetSharedQuestID ( ) const
inline

◆ GetShield()

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

◆ GetSkillLineIdByPos()

uint16 Player::GetSkillLineIdByPos ( uint32  pos) const
inline

Definition at line 2365 of file Player.h.

Referenced by SetSkill().

◆ GetSkillMaxRankByPos()

uint16 Player::GetSkillMaxRankByPos ( uint32  pos) const
inline

Definition at line 2373 of file Player.h.

Referenced by _SaveSkills(), GetMaxSkillValue(), GetPureMaxSkillValue(), and UpdateSkillPro().

◆ GetSkillPermBonusByPos()

uint16 Player::GetSkillPermBonusByPos ( uint32  pos) const
inline

◆ GetSkillPermBonusValue()

int16 Player::GetSkillPermBonusValue ( uint32  skill) const

◆ GetSkillRankByPos()

◆ GetSkillStartingRankByPos()

uint16 Player::GetSkillStartingRankByPos ( uint32  pos) const
inline

Definition at line 2371 of file Player.h.

◆ GetSkillStep()

◆ GetSkillStepByPos()

uint16 Player::GetSkillStepByPos ( uint32  pos) const
inline

Definition at line 2367 of file Player.h.

Referenced by GetSkillStep().

◆ GetSkillTempBonusByPos()

int16 Player::GetSkillTempBonusByPos ( uint32  pos) const
inline

◆ GetSkillTempBonusValue()

int16 Player::GetSkillTempBonusValue ( uint32  skill) const

◆ GetSkillValue()

◆ GetSocial()

◆ GetSpawnTrackingStateByObjective()

◆ GetSpawnTrackingStateByObjectives()

◆ GetSpellMap() [1/2]

PlayerSpellMap & Player::GetSpellMap ( )
inline

Definition at line 2057 of file Player.h.

◆ GetSpellMap() [2/2]

◆ GetSpellModValues()

◆ GetSpellPenetrationItemMod()

int32 Player::GetSpellPenetrationItemMod ( ) const
inline

Definition at line 2221 of file Player.h.

◆ GetSpiritHealerGUID()

ObjectGuid const & Player::GetSpiritHealerGUID ( ) const
inline

Definition at line 3051 of file Player.h.

◆ GetsRecruitAFriendBonus()

◆ GetStableMaster()

ObjectGuid Player::GetStableMaster ( ) const

Definition at line 29791 of file Player.cpp.

References ObjectGuid::Empty, and m_activePlayerData.

Referenced by WorldSession::HandleCloseInteraction().

◆ GetStartLevel()

◆ GetStartMoney()

◆ GetStoredAuraTeleportLocation()

WorldLocation const * Player::GetStoredAuraTeleportLocation ( uint32  spellId) const

◆ GetSubGroup()

uint8 Player::GetSubGroup ( ) const
inline

◆ GetSummonedBattlePet()

◆ GetSummonedBattlePetGUID()

ObjectGuid Player::GetSummonedBattlePetGUID ( ) const
inline

◆ GetTalentMap() [1/2]

PlayerTalentMap * Player::GetTalentMap ( uint8  spec)
inline

Definition at line 2027 of file Player.h.

◆ GetTalentMap() [2/2]

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

◆ GetTalentResetCost()

uint32 Player::GetTalentResetCost ( ) const
inline

Definition at line 1989 of file Player.h.

Referenced by GetNextResetTalentsCost(), and SaveToDB().

◆ GetTalentResetTime()

time_t Player::GetTalentResetTime ( ) const
inline

Definition at line 1991 of file Player.h.

Referenced by GetNextResetTalentsCost(), and SaveToDB().

◆ GetTeam()

Team Player::GetTeam ( ) const
inline

Definition at line 2406 of file Player.h.

Referenced by _LoadHomeBind(), ActivateTaxiPathTo(), SocialMgr::BroadcastToFriendListers(), BuyItemFromVendorSlot(), Group::CanJoinBattlegroundQueue(), npc_zm_field_scout::CanObtainBanner(), CanSelectQuestPackageItem(), CriteriaHandler::CanUpdateCriteriaTree(), AchievementMgr::CanUpdateCriteriaTree(), CanUseItem(), CleanupChannels(), PlayerAchievementMgr::CompletedAchievement(), ContinueTaxiFlight(), LootItem::CurrencyAllowedForPlayer(), GetBGTeam(), Garrison::GetFaction(), SocialMgr::GetFriendInfo(), lfg::LFGMgr::GetLockedDungeons(), Guild::HandleAcceptMember(), WorldSession::HandleAddFriendOpcode(), OutdoorPvPSI::HandleAreaTrigger(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleCalendarInvite(), message_commandscript::HandleChannelSetOwnership(), debug_commandscript::HandleDebugNearGraveyard(), OutdoorPvPSI::HandleDropFlag(), spell_brewfest_mount_transformation::HandleDummy(), spell_defender_of_azeroth_death_gate_selector::HandleDummy(), spell_knockback_charge_enhanced_training::HandleEffect(), spell_scene_linger_northbound::HandleEffect(), spell_resizer_hit_one_two_q56034_q59941::HandleEffect(), spell_resizer_hit_three_q56034::HandleEffect(), WorldSession::HandleGetGarrisonInfo(), Guild::HandleGuildPartyRequest(), WorldSession::HandleInitiateTradeOpcode(), Guild::HandleInviteMember(), OutdoorPvPHP::HandleKillImpl(), OutdoorPvPNA::HandleKillImpl(), OutdoorPvPZM::HandleKillImpl(), WorldSession::HandleOfferPetition(), WorldSession::HandlePartyInviteOpcode(), OutdoorPvPHP::HandlePlayerEnterZone(), OutdoorPvPNA::HandlePlayerEnterZone(), OutdoorPvPSI::HandlePlayerEnterZone(), OutdoorPvPTF::HandlePlayerEnterZone(), OutdoorPvPZM::HandlePlayerEnterZone(), OutdoorPvPHP::HandlePlayerLeaveZone(), WorldSession::HandlePlayerLogin(), WorldSession::HandleRequestCemeteryList(), spell_midsummer_fling_torch_catch::HandleScriptEffect(), WorldSession::HandleSendMail(), spell_gen_skinning::HandleSkinningEffect(), WorldSession::HandleWhoOpcode(), IncreaseCurrencyCap(), Channel::Invite(), npc_sparring_partner_combat_training::IsSummonedBy(), LootItem::ItemAllowedForPlayer(), npc_leader_northbound::JustAppeared(), boss_shattered_executioner::JustDied(), LoadFromDB(), ModifyCurrency(), npc_mageguard_dalaran::MoveInLineOfSight(), lfg::LFGPlayerScript::OnLogin(), quest_enhanced_combat_tactics::OnQuestStatusChange(), scene_alliance_and_horde_crash::OnSceneComplete(), AreaTrigger_at_legion_teleporter::OnTrigger(), at_bring_your_orphan_to::OnTrigger(), areatrigger_find_the_lost_expedition_follower::OnUnitEnter(), at_northbound_linger::OnUnitEnter(), at_briarpatch_to_plains::OnUnitEnter(), npc_rocket_propelled_warhead::PassengerBoarded(), npc_chicken_cluck::npc_chicken_cluckAI::ReceiveEmote(), RepopAtGraveyard(), RewardReputation(), Satisfy(), spell_summon_sparring_partner::SelectTarget(), spell_summon_survivor_beach::SelectTarget(), spell_summon_combat_trainer::SelectTarget(), spell_summon_leader_northbound::SelectTarget(), spell_summon_guardian_q56034_q59941::SelectTarget(), SendCurrencies(), World::SendGlobalGMMessage(), WorldSession::SendListInventory(), WorldSession::SendSpiritResurrect(), WorldSession::SendTaxiStatus(), Map::SendZoneMessage(), Creature::SendZoneUnderAttackMessage(), SetBattlegroundEntryPoint(), boss_shattered_executioner::SetData(), Channel::SetMode(), Channel::SetOwner(), UpdateArea(), and UpdateLocalChannels().

◆ GetTeamId()

◆ GetTeleportDest()

◆ GetTeleportOptions()

EnumFlag< TeleportToOptions > Player::GetTeleportOptions ( ) const
inline

◆ GetTeleportState()

◆ GetTemporaryPetReactState()

Optional< ReactStates > Player::GetTemporaryPetReactState ( ) const
inline

Definition at line 2722 of file Player.h.

Referenced by Pet::SavePetToDB().

◆ GetTemporaryUnsummonedPetNumber()

uint32 Player::GetTemporaryUnsummonedPetNumber ( ) const
inline

Definition at line 2720 of file Player.h.

Referenced by Pet::SavePetToDB().

◆ GetTotalBaseModValue()

float Player::GetTotalBaseModValue ( BaseModGroup  modGroup) const

◆ GetTotalPlayedTime()

◆ GetTradeData()

◆ GetTrader()

Player * Player::GetTrader ( ) const

Definition at line 25825 of file Player.cpp.

References TradeData::GetTrader(), and m_trade.

Referenced by WorldSession::moveItems(), and WorldSession::SendTradeStatus().

◆ GetTraitConfig()

◆ GetTraitInfoForSpell()

Optional< PlayerSpellTrait > Player::GetTraitInfoForSpell ( uint32  spellId) const

Definition at line 29477 of file Player.cpp.

References m_spells, and Trinity::Containers::MapGetValuePtr().

◆ GetUpdateFieldFlagsFor()

UF::UpdateFieldFlag Player::GetUpdateFieldFlagsFor ( Player const *  target) const
overrideprotectedvirtual

Reimplemented from BaseEntity.

Definition at line 3498 of file Player.cpp.

References flags, Unit::GetUpdateFieldFlagsFor(), IsInSameRaidWith(), and UF::PartyMember.

Referenced by BuildValuesUpdateForPlayerWithMask().

◆ GetUseableItemByPos()

◆ GetViewpoint()

◆ GetWeaponForAttack()

◆ GetWeaponProficiency()

uint32 Player::GetWeaponProficiency ( ) const
inline

Definition at line 1624 of file Player.h.

Referenced by Spell::EffectProficiency().

◆ GetXP()

uint32 Player::GetXP ( ) const
inline

◆ GetXPForNextLevel()

uint32 Player::GetXPForNextLevel ( ) const
inline

Definition at line 1314 of file Player.h.

Referenced by GiveXP(), WorldSession::HandlePlayerLogin(), and WorldSession::LogoutPlayer().

◆ GetZoneIdFromDB()

◆ GiveLevel()

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

Definition at line 2168 of file Player.cpp.

References _ApplyAllLevelScaleItemMods(), ActivelyReachLevel, ARTIFACTS_ALL_WEAPONS_GENERAL_WEAPON_EQUIPPED_PASSIVE, CharacterDatabase, GainLevels, Unit::GetAura(), Unit::GetClass(), Unit::GetCreateMana(), Unit::GetCreateStat(), GetGuild(), GetItemByGuid(), Unit::GetLevel(), DB2Manager::GetNumTalentsAtLevel(), GetPet(), GetPowerTypes(), Unit::GetRace(), GUILD_MEMBER_DATA_LEVEL, WorldPackets::Misc::LevelUpInfo::HealthDelta, InitTalentForLevel(), InitTaxiNodesForLevel(), IsMaxLevel(), LearnDefaultSkills(), LearnSpecializationSpells(), WorldPackets::Misc::LevelUpInfo::Level, m_activePlayerData, m_Played_time, BaseEntity::m_values, MAIL_CREATURE, MAX_STATS, UF::UpdateFieldHolder::ModifyValue(), UF::ActivePlayerData::NextLevelXP, WorldPackets::Misc::LevelUpInfo::NumNewPvpTalentSlots, WorldPackets::Misc::LevelUpInfo::NumNewTalents, PLAYED_TIME_LEVEL, WorldPackets::Misc::LevelUpInfo::PowerDelta, PushQuests(), ReachLevel, ReachMaxLevel, sDB2Manager, SendDirectMessage(), MailDraft::SendMailTo(), Unit::SetCreateHealth(), Unit::SetCreateMana(), Unit::SetCreateStat(), Unit::SetFullHealth(), Unit::SetFullPower(), Unit::SetLevel(), SetToMaxOnLevelUp, BaseEntity::SetUpdateFieldValue(), sObjectMgr, sScriptMgr, StartCriteria(), STAT_STRENGTH, WorldPackets::Misc::LevelUpInfo::StatDelta, PlayerLevelInfo::stats, UpdateAllStats(), UpdateCriteria(), UpdateSkillsForLevel(), and WorldPackets::Misc::LevelUpInfo::Write().

Referenced by GiveXP().

◆ GiveQuestSourceItem()

◆ GiveXP()

◆ GroupEventHappens()

◆ HandleBaseModFlatValue()

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

◆ HandleFall()

◆ HandlePassiveSpellLearn()

◆ HandleSobering()

void Player::HandleSobering ( )
protected

The player sobers by 1% every 9 seconds.

Definition at line 822 of file Player.cpp.

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

Referenced by Update().

◆ HasAchieved()

◆ HasActiveSpell()

bool Player::HasActiveSpell ( uint32  spell) const

Definition at line 3639 of file Player.cpp.

References m_spells, and PLAYERSPELL_REMOVED.

Referenced by ExecutePendingSpellCastRequest().

◆ HasAtLoginFlag()

bool Player::HasAtLoginFlag ( AtLoginFlags  f) const
inline

◆ HasBeenGrantedLevelsFromRaF()

bool Player::HasBeenGrantedLevelsFromRaF ( ) const
inline

Definition at line 1306 of file Player.h.

References PLAYER_EXTRA_GRANTED_LEVELS_FROM_RAF.

Referenced by CriteriaHandler::ModifierSatisfied().

◆ HasClaimedFreeTransmog()

bool Player::HasClaimedFreeTransmog ( ) const
inline

Definition at line 1310 of file Player.h.

References PLAYER_EXTRA_FLAG_FREE_TRANSMOG_CLAIMED.

◆ HasCorpse()

bool Player::HasCorpse ( ) const
inline

◆ HasCurrency()

◆ HasDataFlagAccount()

◆ HasDataFlagCharacter()

◆ HasEnoughMoney() [1/2]

bool Player::HasEnoughMoney ( int64  amount) const
inline

Definition at line 1893 of file Player.h.

References HasEnoughMoney().

Referenced by HasEnoughMoney().

◆ HasEnoughMoney() [2/2]

◆ HasExploredZone()

◆ HasFreeBattlegroundQueueId()

bool Player::HasFreeBattlegroundQueueId ( ) const

◆ HasGemWithLimitCategoryEquipped()

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

◆ HasItemCount()

◆ HasItemFitToSpellRequirements()

◆ HasItemOrGemWithIdEquipped()

bool Player::HasItemOrGemWithIdEquipped ( uint32  item,
uint32  count,
uint8  except_slot = NULL_SLOT 
) const

◆ HasItemTotemCategory()

◆ HasItemWithLimitCategoryEquipped()

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

◆ HasLevelBoosted()

bool Player::HasLevelBoosted ( ) const
inline

Definition at line 1308 of file Player.h.

References PLAYER_EXTRA_LEVEL_BOOSTED.

Referenced by CriteriaHandler::ModifierSatisfied().

◆ HasPendingBind()

bool Player::HasPendingBind ( ) const
inline

◆ HasPlayerFlag()

◆ HasPlayerFlagEx()

bool Player::HasPlayerFlagEx ( PlayerFlagsEx  flags) const
inline

◆ HasPlayerLocalFlag()

bool Player::HasPlayerLocalFlag ( PlayerLocalFlags  flags) const
inline

◆ HasPvPForcingQuest()

◆ HasPvpRulesEnabled()

bool Player::HasPvpRulesEnabled ( ) const

Definition at line 27844 of file Player.cpp.

References HasAura, and SPELL_PVP_RULES_ENABLED.

Referenced by EnablePvpRules(), and UpdateItemLevelAreaBasedScaling().

◆ HasPvpTalent()

bool Player::HasPvpTalent ( uint32  talentID,
uint8  activeTalentGroup 
) const

Definition at line 27799 of file Player.cpp.

References GetPvpTalentMap().

Referenced by LearnPvpTalent().

◆ HasQuestForCurrency()

◆ HasQuestForGO()

◆ HasQuestForItem()

◆ HasRaceChanged()

bool Player::HasRaceChanged ( ) const
inline

Definition at line 1304 of file Player.h.

References PLAYER_EXTRA_HAS_RACE_CHANGED.

Referenced by CriteriaHandler::ModifierSatisfied().

◆ HasSkill()

◆ HasSpell()

bool Player::HasSpell ( uint32  spell) const
overridevirtual

◆ HasSummonPending()

bool Player::HasSummonPending ( ) const

Definition at line 26000 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 3633 of file Player.cpp.

References GetTalentMap(), and PLAYERSPELL_REMOVED.

Referenced by ActivateTalentGroup(), and LearnTalent().

◆ HasTitle() [1/2]

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

Definition at line 27016 of file Player.cpp.

References HasTitle, and CharTitlesEntry::MaskID.

◆ HasTitle() [2/2]

◆ HaveAtClient()

◆ Heartbeat()

void Player::Heartbeat ( )
overridevirtual

◆ InArena()

◆ InBattleground()

◆ InBattlegroundQueue()

◆ InBattlegroundQueueForBattlegroundQueueType()

bool Player::InBattlegroundQueueForBattlegroundQueueType ( BattlegroundQueueTypeId  bgQueueTypeId) const

◆ IncompleteQuest()

◆ IncreaseCurrencyCap()

◆ IncreaseResetTalentsCostAndCounters()

void Player::IncreaseResetTalentsCostAndCounters ( uint32  lastResetTalentsCost)

◆ InitDataForForm()

◆ InitDisplayIds()

◆ InitializeNewTransmogOutfit()

◆ InitializeSelfResurrectionSpells()

◆ InitializeSkillFields()

void Player::InitializeSkillFields ( )

◆ InitPrimaryProfessions()

void Player::InitPrimaryProfessions ( )

Definition at line 24795 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 24006 of file Player.cpp.

References HasPlayerFlag(), PLAYER_FLAGS_IN_PVP, and UpdatePvP().

Referenced by LoadFromDB().

◆ InitRunes()

◆ InitStatsForLevel()

void Player::InitStatsForLevel ( bool  reapplyMods = false)

Definition at line 2306 of file Player.cpp.

References _ApplyAllStatBonuses(), _RemoveAllStatBonuses(), UF::UnitData::AuraState, UF::ActivePlayerData::AuraVision, BASE_ATTACK, BASE_ATTACK_TIME, UF::ActivePlayerData::BlockPercentage, UF::ActivePlayerData::CombatRatings, CONFIG_MAX_PLAYER_LEVEL, UF::ActivePlayerData::CritPercentage, CURRENT_EXPANSION, UF::ActivePlayerData::DodgePercentage, Unit::GetClass(), Unit::GetCreatePowerValue(), Unit::GetCreateStat(), Unit::GetLevel(), GetMaxLevelForExpansion(), Unit::GetMaxPower(), GetPet(), Unit::GetPower(), GetPowerTypes(), Unit::GetRace(), GetSession(), InitDataForForm(), Unit::InitStatBuffMods(), UF::ActivePlayerData::LocalRegenFlags, m_activePlayerData, Unit::m_unitData, BaseEntity::m_values, UF::UnitData::ManaCostModifier, MAX_ATTACK, MAX_COMBAT_RATING, MAX_SPELL_SCHOOL, MAX_STATS, UF::UnitData::MaxDamage, UF::ActivePlayerData::MaxLevel, UF::UnitData::MaxOffHandDamage, UF::UnitData::MaxRangedDamage, UF::UnitData::MinDamage, UF::UnitData::MinOffHandDamage, UF::UnitData::MinRangedDamage, UF::ActivePlayerData::ModDamageDoneNeg, UF::ActivePlayerData::ModDamageDonePercent, UF::ActivePlayerData::ModDamageDonePos, UF::ActivePlayerData::ModHealingDonePercent, UF::ActivePlayerData::ModHealingDonePos, UF::ActivePlayerData::ModHealingPercent, UF::UpdateFieldHolder::ModifyValue(), UF::ActivePlayerData::ModPeriodicHealingDonePercent, UF::ActivePlayerData::ModSpellPowerPercent, UF::ActivePlayerData::ModTargetPhysicalResistance, UF::ActivePlayerData::ModTargetResistance, UF::ActivePlayerData::NextLevelXP, UF::ActivePlayerData::OffhandCritPercentage, UF::ActivePlayerData::ParryPercentage, PLAYER_FLAGS_AFK, PLAYER_FLAGS_DND, PLAYER_FLAGS_GHOST, PLAYER_FLAGS_GM, POWER_ENERGY, POWER_FOCUS, POWER_MANA, POWER_RAGE, POWER_RUNIC_POWER, UF::ActivePlayerData::RangedCritPercentage, RemovePlayerFlag(), Unit::RemovePvpFlag(), Unit::RemoveUnitFlag(), Unit::RemoveVisFlag(), Unit::SetArmor(), Unit::SetAttackPower(), Unit::SetAttackPowerMultiplier(), Unit::SetBaseAttackTime(), Unit::SetBonusResistanceMod(), Unit::SetCreateHealth(), Unit::SetCreateMana(), Unit::SetCreateStat(), Unit::SetFullHealth(), Unit::SetFullPower(), Unit::SetMaxHealth(), Unit::SetMaxPower(), Unit::SetModCastingSpeed(), Unit::SetModCastingSpeedNeg(), Unit::SetModHaste(), Unit::SetModHasteRegen(), Unit::SetModRangedHaste(), Unit::SetModSpellHaste(), Unit::SetModTimeRate(), Unit::SetMountDisplayId(), SetNoRegentCostMask(), SetObjectScale(), Unit::SetPower(), Unit::SetRangedAttackPower(), Unit::SetRangedAttackPowerMultiplier(), Unit::SetResistance(), Unit::SetSpellEmpowerStage(), Unit::SetStat(), Unit::SetUnitFlag(), Unit::SetUnitFlag2(), BaseEntity::SetUpdateFieldValue(), UF::ActivePlayerData::ShieldBlock, sObjectMgr, SPELL_SCHOOL_HOLY, SPELL_SCHOOL_NORMAL, UF::ActivePlayerData::SpellCritPercentage, STAT_AGILITY, STAT_STRENGTH, PlayerLevelInfo::stats, sWorld, UNIT_BYTE2_FLAG_FFA_PVP, UNIT_BYTE2_FLAG_SANCTUARY, 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_SKINNABLE, UNIT_FLAG_STUNNED, UNIT_FLAG_UNINTERACTIBLE, UNIT_VIS_FLAGS_ALL, UpdateSkillsForLevel(), UF::ActivePlayerData::WeaponAtkSpeedMultipliers, UF::ActivePlayerData::WeaponDmgMultipliers, and UF::ActivePlayerData::XP.

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

◆ InitTalentForLevel()

◆ InitTaxiNodesForLevel()

void Player::InitTaxiNodesForLevel ( )
inline

◆ inRandomLfgDungeon()

bool Player::inRandomLfgDungeon ( ) const

◆ InterruptPowerRegen()

void Player::InterruptPowerRegen ( Powers  power)

◆ isAcceptWhispers()

◆ IsAccountBankPos() [1/2]

static bool Player::IsAccountBankPos ( uint16  pos)
inlinestatic

Definition at line 1479 of file Player.h.

Referenced by WorldSession::HandleAcceptTradeOpcode().

◆ IsAccountBankPos() [2/2]

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

Definition at line 9709 of file Player.cpp.

References ACCOUNT_BANK_SLOT_BAG_END, and ACCOUNT_BANK_SLOT_BAG_START.

◆ IsActionButtonDataValid()

◆ IsActiveQuest()

◆ IsAdvancedCombatLoggingEnabled()

bool Player::IsAdvancedCombatLoggingEnabled ( ) const
inline

Definition at line 2870 of file Player.h.

Referenced by CombatLogSender::operator()().

◆ IsAffectedBySpellmod()

◆ isAFK()

◆ isAllowedToLoot()

◆ IsAlwaysDetectableFor()

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

◆ IsAreaThatActivatesPvpTalents()

bool Player::IsAreaThatActivatesPvpTalents ( uint32  areaID) const

◆ IsAtGroupRewardDistance()

◆ IsAtRecruitAFriendDistance()

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

◆ IsBackpackAutoSortDisabled()

bool Player::IsBackpackAutoSortDisabled ( ) const
inline

Definition at line 1509 of file Player.h.

◆ IsBackpackSellJunkDisabled()

bool Player::IsBackpackSellJunkDisabled ( ) const
inline

Definition at line 1511 of file Player.h.

Referenced by WorldSession::HandleSellAllJunkItems().

◆ IsBagPos()

◆ IsBankAutoSortDisabled()

bool Player::IsBankAutoSortDisabled ( ) const
inline

Definition at line 1513 of file Player.h.

◆ IsBankPos() [1/2]

◆ IsBankPos() [2/2]

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

Definition at line 9682 of file Player.cpp.

References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, and INVENTORY_SLOT_BAG_0.

◆ IsBeingTeleported()

◆ IsBeingTeleportedFar()

bool Player::IsBeingTeleportedFar ( ) const
inline

◆ IsBeingTeleportedNear()

bool Player::IsBeingTeleportedNear ( ) const
inline

Definition at line 2386 of file Player.h.

References DelayedTeleport, and WaitingForTeleportAck.

Referenced by TeleportTo().

◆ IsCanDelayTeleport()

bool Player::IsCanDelayTeleport ( ) const
inlineprivate

Definition at line 3345 of file Player.h.

Referenced by TeleportTo().

◆ IsChildEquipmentPos() [1/2]

static bool Player::IsChildEquipmentPos ( uint16  pos)
inlinestatic

◆ IsChildEquipmentPos() [2/2]

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

◆ IsDailyQuestDone()

bool Player::IsDailyQuestDone ( uint32  quest_id) const

Definition at line 25505 of file Player.cpp.

References m_activePlayerData.

◆ IsDeserter()

bool Player::IsDeserter ( ) const
inline

◆ IsDeveloper()

bool Player::IsDeveloper ( ) const
inline

Definition at line 1289 of file Player.h.

References PLAYER_FLAGS_DEVELOPER.

Referenced by GetChatFlags(), and misc_commandscript::HandleDevCommand().

◆ isDND()

◆ IsEquipmentPos() [1/2]

◆ IsEquipmentPos() [2/2]

◆ IsFriendlyArea()

bool Player::IsFriendlyArea ( AreaTableEntry const *  inArea) const

◆ IsGameMaster()

bool Player::IsGameMaster ( ) const
inline

Definition at line 1293 of file Player.h.

References PLAYER_EXTRA_GM_ON.

Referenced by Group::_homebindIfInstance(), Unit::Attack(), BuyItemFromVendorSlot(), CombatManager::CanBeginCombat(), InstanceMap::CannotEnter(), CanUnderstandLanguage(), Spell::CheckCast(), CheckInstanceValidity(), SpellInfo::CheckTarget(), instance_violet_hold::instance_violet_hold_InstanceMapScript::CheckWipe(), PlayerAchievementMgr::CompletedAchievement(), ConfirmPendingBind(), InstanceMap::CreateInstanceLockForPlayer(), Creature::ForcePartyMembersIntoCombat(), UF::ViewerDependentValue< UF::ObjectData::DynamicFlagsTag >::GetValue(), UF::ViewerDependentValue< UF::UnitData::FlagsTag >::GetValue(), UF::ViewerDependentValue< UF::UnitData::Flags2Tag >::GetValue(), UF::ViewerDependentValue< UF::UnitData::DisplayIDTag >::GetValue(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleChatMessage(), HandleFall(), mmaps_commandscript::HandleMmapPathCommand(), WorldSession::HandlePartyInviteOpcode(), AuraEffect::HandlePhaseAlwaysVisible(), 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_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_ymiron_the_fallen_king_activation::OnUnitEnter(), at_rokmora_intro::OnUnitEnter(), at_fel_lord_caza_intro::OnUnitEnter(), at_azhiccar_intro::OnUnitEnter(), at_orator_conversation_intro< conversationEntry, data >::OnUnitEnter(), at_ulgrax_intro::OnUnitEnter(), at_aqusirr_intro::OnUnitEnter(), at_lord_stormsong_intro::OnUnitEnter(), at_sylvanas_windrunner_introduction::OnUnitEnter(), at_anduin_wrynn_pre_introduction::OnUnitEnter(), at_sporecaller_zancha_boundless_rot::OnUnitEnter(), at_sporecaller_zancha_intro::OnUnitEnter(), Trinity::PlayerAtMinimumRangeAway::operator()(), Map::PlayerCannotEnter(), Satisfy(), WorldSession::SendListInventory(), MailDraft::SendMailTo(), TeleportTo(), at_adarogg_intro::TryHandleOnce(), at_lava_guard_gordoth_intro::TryHandleOnce(), at_rfc_cosmetic_intro::TryHandleOnce(), at_icc_nerubar_broodkeeper::TryHandleOnce(), instance_stratholme::instance_stratholme_InstanceMapScript::Update(), generic_vehicleAI_toc5::generic_vehicleAI_toc5AI::UpdateAI(), boss_warrior_toc5::boss_warrior_toc5AI::UpdateAI(), boss_hunter_toc5::boss_hunter_toc5AI::UpdateAI(), CriteriaHandler::UpdateCriteria(), UpdateHomebindTime(), InstanceMap::UpdateInstanceLock(), InstanceMap::UpdateInstanceLock(), Unit::UpdateLiquidStatusOnPositionChange(), UpdatePvPState(), and Whisper().

◆ IsGameMasterAcceptingWhispers()

bool Player::IsGameMasterAcceptingWhispers ( ) const
inline

◆ isGMChat()

bool Player::isGMChat ( ) const
inline

Definition at line 1297 of file Player.h.

References PLAYER_EXTRA_GM_CHAT.

Referenced by GetChatFlags().

◆ isGMVisible()

bool Player::isGMVisible ( ) const
inline

◆ IsGroupVisibleFor()

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

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

References Unit::isTargetableForAttack().

Referenced by EnvironmentalDamage().

◆ IsInAreaThatActivatesPvpTalents()

bool Player::IsInAreaThatActivatesPvpTalents ( ) const

Definition at line 27849 of file Player.cpp.

References WorldObject::GetAreaId(), and IsAreaThatActivatesPvpTalents().

Referenced by DisablePvpRules().

◆ IsInAreaTrigger()

◆ IsInFriendlyArea()

bool Player::IsInFriendlyArea ( ) const

Definition at line 30407 of file Player.cpp.

References WorldObject::GetAreaId(), IsFriendlyArea(), and sAreaTableStore.

◆ IsInGroup()

bool Player::IsInGroup ( ObjectGuid  groupGuid) const

Definition at line 24860 of file Player.cpp.

References GetGroup(), and GetOriginalGroup().

Referenced by InstanceMap::CannotEnter().

◆ IsInSameGroupWith()

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

Definition at line 2053 of file Player.cpp.

References GetGroup(), 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)

◆ IsLoading()

bool Player::IsLoading ( ) const
overridevirtual

◆ IsLockedToDungeonEncounter() [1/2]

◆ IsLockedToDungeonEncounter() [2/2]

bool Player::IsLockedToDungeonEncounter ( uint32  dungeonEncounterId,
Difficulty  difficulty 
) const

◆ IsMaxHonorLevel()

bool Player::IsMaxHonorLevel ( ) const
inline

Definition at line 2453 of file Player.h.

References PLAYER_MAX_HONOR_LEVEL.

Referenced by AddHonorXP(), and RestMgr::SetRestBonus().

◆ IsMaxLevel()

◆ IsMercenaryForBattlegroundQueueType()

bool Player::IsMercenaryForBattlegroundQueueType ( BattlegroundQueueTypeId  bgQueueTypeId) const

◆ IsMirrorTimerActive()

bool Player::IsMirrorTimerActive ( MirrorTimerType  type) const

Definition at line 695 of file Player.cpp.

References m_mirrorTimers.

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

◆ IsNeverVisibleFor()

bool Player::IsNeverVisibleFor ( WorldObject const *  seer,
bool  allowServersideObjects 
) const
overridevirtual

Reimplemented from WorldObject.

Definition at line 24430 of file Player.cpp.

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

◆ IsOutdoorPvPActive()

◆ IsPetNeedBeTemporaryUnsummoned()

◆ IsQuestCompletedBitSet()

◆ IsQuestObjectiveCompletable() [1/2]

◆ IsQuestObjectiveCompletable() [2/2]

bool Player::IsQuestObjectiveCompletable ( uint32  questId,
uint32  objectiveId 
) const

◆ IsQuestObjectiveComplete() [1/2]

bool Player::IsQuestObjectiveComplete ( uint16  slot,
Quest const *  quest,
QuestObjective const &  objective 
) const

◆ IsQuestObjectiveComplete() [2/2]

bool Player::IsQuestObjectiveComplete ( uint32  questId,
uint32  objectiveId 
) const

◆ IsQuestObjectiveProgressBarComplete()

bool Player::IsQuestObjectiveProgressBarComplete ( uint16  slot,
Quest const *  quest 
) const

◆ IsQuestRewarded()

◆ IsReagentBankUnlocked()

bool Player::IsReagentBankUnlocked ( ) const
inline

Definition at line 2863 of file Player.h.

References PLAYER_FLAGS_EX_REAGENT_BANK_UNLOCKED.

◆ IsResurrectRequested()

◆ IsResurrectRequestedBy()

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

Definition at line 2079 of file Player.h.

◆ IsSpellFitByClassAndRace()

◆ isTaxiCheater()

bool Player::isTaxiCheater ( ) const
inline

◆ isTotalImmune()

bool Player::isTotalImmune ( ) const

◆ IsTwoHandUsed()

◆ IsUseEquipedWeapon()

bool Player::IsUseEquipedWeapon ( bool  mainhand) const

◆ isUsingLfg()

bool Player::isUsingLfg ( ) const

Definition at line 26673 of file Player.cpp.

References BaseEntity::GetGUID(), lfg::LFG_STATE_NONE, and sLFGMgr.

Referenced by Group::CanJoinBattlegroundQueue().

◆ IsUsingPvpItemLevels()

bool Player::IsUsingPvpItemLevels ( ) const
inline

Definition at line 2739 of file Player.h.

Referenced by Item::GetItemLevel(), and UpdateAverageItemLevelEquipped().

◆ IsUsingTwoHandedWeaponInOneHand()

bool Player::IsUsingTwoHandedWeaponInOneHand ( ) const

◆ IsValidClass()

static bool Player::IsValidClass ( uint8  Class)
inlinestatic

Definition at line 1860 of file Player.h.

References Class, and CLASSMASK_ALL_PLAYABLE.

◆ IsValidGender()

static bool Player::IsValidGender ( uint8  Gender)
inlinestatic

◆ IsValidPos() [1/2]

◆ IsValidPos() [2/2]

◆ IsValidRace()

static bool Player::IsValidRace ( uint8  Race)
inlinestatic

◆ IsVisibleGloballyFor()

◆ IsWarModeActive()

bool Player::IsWarModeActive ( ) const
inline

Definition at line 3026 of file Player.h.

References PLAYER_FLAGS_WAR_MODE_ACTIVE.

◆ IsWarModeDesired()

bool Player::IsWarModeDesired ( ) const
inline

Definition at line 3025 of file Player.h.

References PLAYER_FLAGS_WAR_MODE_DESIRED.

Referenced by SetWarModeDesired(), and UpdateWarModeAuras().

◆ IsWarModeLocalActive()

bool Player::IsWarModeLocalActive ( ) const
inline

Definition at line 3027 of file Player.h.

References PLAYER_LOCAL_FLAG_WAR_MODE.

Referenced by UpdateHostileAreaState().

◆ ItemAddedQuestCheck()

◆ ItemRemovedQuestCheck()

◆ JoinedChannel()

void Player::JoinedChannel ( Channel *  c)

Definition at line 4753 of file Player.cpp.

References m_channels.

Referenced by Channel::JoinChannel().

◆ KillCreditCriteriaTreeObjective()

void Player::KillCreditCriteriaTreeObjective ( QuestObjective const &  questObjective)

◆ KillCreditGO()

void Player::KillCreditGO ( uint32  entry,
ObjectGuid  guid = ObjectGuid::Empty 
)

Definition at line 16670 of file Player.cpp.

References QUEST_OBJECTIVE_GAMEOBJECT, and UpdateQuestObjectiveProgress().

Referenced by GameObject::Use().

◆ KilledMonster()

◆ KilledMonsterCredit()

void Player::KilledMonsterCredit ( uint32  entry,
ObjectGuid  guid = ObjectGuid::Empty 
)

Definition at line 16646 of file Player.cpp.

References Map::GetCreature(), Object::GetEntry(), WorldObject::GetMap(), ObjectGuid::IsEmpty(), KillCreature, KillNPC, QUEST_OBJECTIVE_MONSTER, StartCriteria(), UpdateCriteria(), and UpdateQuestObjectiveProgress().

Referenced by Scripts::Pandaria::TheWanderingIsle::npc_li_fei_combat::DamageTaken(), Spell::EffectKillCreditPersonal(), OutdoorPvPSI::HandleAreaTrigger(), OutdoorPvPNA::HandleKillImpl(), spell_give_me_sight_beyond_sight_periodic::HandlePeriodic(), Scripts::EasternKingdoms::Westfall::spell_westfall_wake_harvest_golem::HandleScriptEffect(), spell_borean_tundra_neural_needle::HandleWhisper(), KilledMonster(), npc_jayce_darkweaver_cryptic_hollow_private::OnChannelFinished(), npc_claw::OnGossipHello(), npc_colonel_jules::npc_colonel_julesAI::OnGossipHello(), go_veil_skith_cage::go_veil_skith_cageAI::OnGossipHello(), npc_jayce_darkweaver_cryptic_hollow::OnGossipSelect(), npc_cyrus_crestfall_old_knight::OnGossipSelect(), npc_7th_legion_magus_sanctum_of_the_sages::OnGossipSelect(), Scripts::Kalimdor::Durotar::npc_darkspear_jailor::OnGossipSelect(), conversation_allied_race_dk_defender_of_azeroth::OnLineStarted(), conversation_burden_of_proof_speak_with_constable::OnStart(), at_enter_the_illidari_ashtongue_allari_killcredit::OnUnitEnter(), areatrigger_stormwind_teleport_unit::OnUnitEnter(), conversation_an_unlikely_informant::OnUpdate(), Scripts::EasternKingdoms::StormwindCity::conversation_start_council_tides_of_war::OnUpdate(), conversation_boralus_hub_tour::OnUpdate(), conversation_cyrus_crestfall_shaking_hands::OnUpdate(), Scripts::Pandaria::TheWanderingIsle::npc_delivery_cart::PassengerBoarded(), SmartScript::ProcessAction(), RewardPlayerAndGroupAtEvent(), conversation_burden_of_proof_base::ScheduleEvents(), Scripts::Kalimdor::Durotar::npc_lazy_peon::npc_lazy_peonAI::SpellHit(), npc_sparring_partner_enhanced_combat_training_warrior::SpellHit(), npc_sparring_partner_enhanced_combat_training_paladin::SpellHit(), npc_sparring_partner_enhanced_combat_training_rogue::SpellHit(), npc_sparring_partner_enhanced_combat_training_priest::SpellHit(), npc_sparring_partner_enhanced_combat_training_shaman::SpellHit(), npc_sparring_partner_enhanced_combat_training_mage::SpellHit(), npc_sparring_partner_enhanced_combat_training_warlock::SpellHit(), npc_sparring_partner_enhanced_combat_training_monk::SpellHit(), npc_sparring_partner_enhanced_combat_training_druid::SpellHit(), npc_drustvar_frightend_woodsman::SpellHit(), npc_jungle_punch_target::SpellHit(), npc_danica_the_reclaimer::WaypointPathEnded(), and Scripts::KhazAlgar::CampaignsVisionsOfAShadowedSun::npc_vereesa_windrunner_oztan_isle_private::WaypointPathEnded().

◆ KilledPlayerCredit()

void Player::KilledPlayerCredit ( ObjectGuid  victimGuid)

◆ KillPlayer()

◆ LearnCustomSpells()

◆ LearnDefaultSkill()

◆ LearnDefaultSkills()

◆ LearnPvpTalent()

◆ LearnQuestRewardedSpells() [1/2]

◆ LearnQuestRewardedSpells() [2/2]

◆ LearnSkillRewardedSpells()

◆ LearnSpecializationSpells()

◆ LearnSpell()

void Player::LearnSpell ( uint32  spell_id,
bool  dependent,
int32  fromSkill = 0,
bool  suppressMessaging = false,
Optional< PlayerSpellTrait >  trait = {} 
)

Definition at line 3083 of file Player.cpp.

References AddSpell(), WorldPackets::Spells::LearnedSpells::ClientLearnedSpellData, WorldPackets::Spells::LearnedSpellInfo::Favorite, BaseEntity::IsInWorld(), LearnSpell(), m_spells, QUEST_OBJECTIVE_LEARNSPELL, SendDirectMessage(), WorldPackets::Spells::LearnedSpellInfo::SpellID, sSpellMgr, WorldPackets::Spells::LearnedSpells::SuppressMessaging, WorldPackets::Spells::LearnedSpellInfo::TraitDefinitionID, UpdateQuestObjectiveProgress(), and WorldPackets::Spells::LearnedSpells::Write().

Referenced by ActivateTalentGroup(), CollectionMgr::AddMount(), AddPvpTalent(), AddSpell(), AddTalent(), ApplyAzeriteEssencePower(), ApplyTraitEntry(), Spell::EffectApplyMountEquipment(), Spell::EffectLearnSpell(), learn_commandscript::HandleLearnAllGMCommand(), learn_commandscript::HandleLearnAllLangCommand(), learn_commandscript::HandleLearnAllTalentsCommand(), learn_commandscript::HandleLearnCommand(), learn_commandscript::HandleLearnDebugSpellsCommand(), learn_commandscript::HandleLearnMySpellsCommand(), learn_commandscript::HandleLearnSkillRecipesHelper(), AuraEffect::HandleLearnSpell(), spell_gen_profession_research::HandleScript(), spell_item_book_of_glyph_mastery::HandleScript(), LearnCustomSpells(), LearnSkillRewardedSpells(), LearnSpecializationSpells(), LearnSpell(), LoadFromDB(), spell_hun_bleak_arrows::ReplaceAutoShot(), spell_hun_bleak_arrows::RestoreAutoShot(), Guild::SendLoginInfo(), Trainer::Trainer::TeachSpell(), TogglePvpTalents(), and UpdateCraftSkill().

◆ LearnTalent()

◆ LeaveAllArenaTeams()

void Player::LeaveAllArenaTeams ( ObjectGuid  guid)
static

◆ LeaveBattleground()

◆ LeaveLFGChannel()

void Player::LeaveLFGChannel ( )

Definition at line 4849 of file Player.cpp.

References m_channels.

◆ LeftChannel()

void Player::LeftChannel ( Channel *  c)

Definition at line 4758 of file Player.cpp.

References m_channels.

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

◆ LoadActions()

void Player::LoadActions ( PreparedQueryResult  result)

Definition at line 29061 of file Player.cpp.

References _LoadActions(), and SendActionButtons().

◆ LoadCorpse()

◆ LoadFromDB()

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

Definition at line 17930 of file Player.cpp.

References BaseEntity::_Create(), _garrison, _InitHonorLevelOnLoadFromDB(), _LoadAuras(), _LoadBGData(), _LoadCharacterBankTabSettings(), _LoadCUFProfiles(), _LoadCurrency(), _LoadDailyQuestStatus(), _LoadDeclinedNames(), _LoadEquipmentSets(), _LoadGlyphAuras(), _LoadGlyphs(), _LoadGroup(), _LoadHomeBind(), _LoadInventory(), _LoadMail(), _LoadMonthlyQuestStatus(), _LoadPetStable(), _LoadPlayerData(), _LoadPvpTalents(), _LoadQuestStatus(), _LoadQuestStatusObjectives(), _LoadQuestStatusObjectiveSpawnTrackings(), _LoadQuestStatusRewarded(), _LoadRandomBGStatus(), _LoadSeasonalQuestStatus(), _LoadSkills(), _LoadSpells(), _LoadStoredAuraTeleportLocations(), _LoadTalents(), _LoadTraits(), _LoadTransmogCustomSets(), _LoadTransmogOutfits(), _LoadWeeklyQuestStatus(), _restMgr, AddBattlegroundQueueId(), AddExploredZones(), Transport::AddPassenger(), Battleground::AddPlayer(), PlayerTaxi::AddTaxiDestination(), CollectionMgr::AddTransmogIllusion(), ASSERT, AT_LOGIN_RENAME, BATTLEGROUND_TYPE_NONE, BGData::bgInstanceID, BGData::bgTypeID, UF::PlayerData::BnetAccount, Map::CannotEnter(), CHAR_NAME_SUCCESS, CHAR_UPD_ADD_AT_LOGIN_FLAG, CharacterDatabase, CheckInstanceValidity(), CheckLoadedDungeonDifficultyID(), CheckLoadedLegacyRaidDifficultyID(), CheckLoadedRaidDifficultyID(), ObjectMgr::CheckPlayerName(), UF::ChrCustomizationChoice::ChrCustomizationChoiceID, UF::ChrCustomizationChoice::ChrCustomizationOptionID, ChrSpecializationEntry::ClassID, Unit::ClearInCombat(), PlayerTaxi::ClearTaxiDestinations(), CONFIG_GM_CHAT, CONFIG_GM_LOGIN_STATE, CONFIG_GM_VISIBLE_STATE, CONFIG_GM_WHISPERING_TO, TaxiNodesEntry::ContinentID, CORPSE, Battlenet::Services::Clubs::CreateClubMemberId(), DEAD, DEATH_EXPIRE_STEP, DisableAutoSort, Battleground::EventPlayerLoggedIn(), ExcludeJunkSell, MapEntry::Expansion(), flags, GetActiveTalentGroup(), GetBattlegroundEntryPoint(), Battleground::GetBattlegroundPlayerData(), BattlegroundMap::GetBG(), Battleground::GetBgMap(), Field::GetBool(), Unit::GetClass(), WorldSession::GetCollectionMgr(), ObjectGuid::GetCounter(), GetDrunkValue(), Transport::GetExpectedMapId(), Field::GetFloat(), GameTime::GetGameTime(), BaseEntity::GetGUID(), Map::GetId(), Battleground::GetInstanceID(), InstanceMap::GetInstanceScript(), Field::GetInt32(), Field::GetInt64(), WorldLocation::GetMapId(), Unit::GetMaxHealth(), Unit::GetMaxPower(), WorldObject::GetName(), Position::GetOrientation(), Transport::GetPositionWithOffset(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::GetPower(), GetPowerIndex(), GetPowerTypes(), SQLQueryHolderBase::GetPreparedResult(), GetPrimarySpecializationEntry(), Unit::GetRace(), GetRuneBaseCooldown(), GetSession(), Unit::GetSpellHistory(), Battleground::GetStatus(), Field::GetString(), PlayerTaxi::GetTaxiSource(), GetTeam(), WorldObject::GetTransport(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt64(), Field::GetUInt8(), UF::PlayerData::GuildClubMemberID, HasAtLoginFlag(), HasPlayerFlag(), BGData::HasTaxiPath(), HasTitle, CollectionMgr::HasTransmogIllusion(), UF::PlayerData::Inebriation, InitDisplayIds(), InitializeSkillFields(), InitPrimaryProfessions(), InitPvP(), InitRunes(), InitStatsForLevel(), InitTalentForLevel(), InitTaxiNodesForLevel(), Unit::IsAlive(), MapEntry::IsBattlegroundOrArena(), MapEntry::IsDungeon(), Map::IsDungeon(), IsInstanceLoginGameMasterException(), Battleground::IsPlayerInBattleground(), ConditionMgr::IsPlayerMeetingCondition(), Battleground::IsPlayerMercenaryInBattleground(), Position::IsPositionValid(), IsValidGender(), UF::ActivePlayerData::KnownTitles, LearnCustomSpells(), LearnDefaultSkills(), LearnSpecializationSpells(), LearnSpell(), UF::ActivePlayerData::LifetimeHonorableKills, CollectionMgr::LoadCharacterData(), SpellHistory::LoadFromDB(), PlayerTaxi::LoadTaxiDestinationsFromString(), PlayerTaxi::LoadTaxiMask(), WorldSafeLocsEntry::Loc, UF::PlayerData::LogoutTime, m_achievementMgr, m_activePlayerData, m_atLoginFlags, m_bgData, m_cinematic, m_createMode, m_createTime, m_deathExpireTime, Unit::m_deathState, m_fishingSteps, m_homebind, m_InstanceValid, m_lastHonorUpdateTime, WorldObject::m_movementInfo, WorldObject::m_name, m_nextSave, m_Played_time, m_playerData, m_questObjectiveCriteriaMgr, m_reputationMgr, m_social, m_taxi, Unit::m_unitData, BaseEntity::m_values, MakeChrCustomizationChoiceRange(), Trinity::Containers::MakeIteratorPair(), MAX_DEATH_COUNT, MAX_MONEY_AMOUNT, MAX_POWERS_PER_CLASS, MAX_SPECIALIZATIONS, UF::UpdateFieldHolder::ModifyValue(), UF::PlayerData::Name, None, outDebugValues(), PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_EXTRA_ACCEPT_WHISPERS, PLAYER_EXTRA_FLAG_FREE_TRANSMOG_CLAIMED, PLAYER_EXTRA_GM_CHAT, PLAYER_EXTRA_GM_INVISIBLE, PLAYER_EXTRA_GM_ON, PLAYER_FLAGS_GHOST, PLAYER_LOCAL_FLAG_FREE_TRANSMOG_CLAIMED, PLAYER_LOGIN_QUERY_LOAD_ACHIEVEMENTS, PLAYER_LOGIN_QUERY_LOAD_ARTIFACTS, PLAYER_LOGIN_QUERY_LOAD_AURA_EFFECTS, PLAYER_LOGIN_QUERY_LOAD_AURA_STORED_LOCATIONS, PLAYER_LOGIN_QUERY_LOAD_AURAS, PLAYER_LOGIN_QUERY_LOAD_AZERITE, PLAYER_LOGIN_QUERY_LOAD_AZERITE_EMPOWERED, PLAYER_LOGIN_QUERY_LOAD_AZERITE_MILESTONE_POWERS, PLAYER_LOGIN_QUERY_LOAD_AZERITE_UNLOCKED_ESSENCES, PLAYER_LOGIN_QUERY_LOAD_BANK_TAB_SETTINGS, PLAYER_LOGIN_QUERY_LOAD_BANNED, PLAYER_LOGIN_QUERY_LOAD_BG_DATA, PLAYER_LOGIN_QUERY_LOAD_CRITERIA_PROGRESS, PLAYER_LOGIN_QUERY_LOAD_CUF_PROFILES, PLAYER_LOGIN_QUERY_LOAD_CURRENCY, PLAYER_LOGIN_QUERY_LOAD_CUSTOMIZATIONS, PLAYER_LOGIN_QUERY_LOAD_DAILY_QUEST_STATUS, PLAYER_LOGIN_QUERY_LOAD_DATA_ELEMENTS, PLAYER_LOGIN_QUERY_LOAD_DATA_FLAGS, PLAYER_LOGIN_QUERY_LOAD_DECLINED_NAMES, PLAYER_LOGIN_QUERY_LOAD_EQUIPMENT_SETS, PLAYER_LOGIN_QUERY_LOAD_FROM, PLAYER_LOGIN_QUERY_LOAD_GARRISON, PLAYER_LOGIN_QUERY_LOAD_GARRISON_BLUEPRINTS, PLAYER_LOGIN_QUERY_LOAD_GARRISON_BUILDINGS, PLAYER_LOGIN_QUERY_LOAD_GARRISON_FOLLOWER_ABILITIES, PLAYER_LOGIN_QUERY_LOAD_GARRISON_FOLLOWERS, 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_MAIL_ITEMS_ARTIFACT, PLAYER_LOGIN_QUERY_LOAD_MAIL_ITEMS_AZERITE, PLAYER_LOGIN_QUERY_LOAD_MAIL_ITEMS_AZERITE_EMPOWERED, PLAYER_LOGIN_QUERY_LOAD_MAIL_ITEMS_AZERITE_MILESTONE_POWER, PLAYER_LOGIN_QUERY_LOAD_MAIL_ITEMS_AZERITE_UNLOCKED_ESSENCE, PLAYER_LOGIN_QUERY_LOAD_MAILS, PLAYER_LOGIN_QUERY_LOAD_MONTHLY_QUEST_STATUS, PLAYER_LOGIN_QUERY_LOAD_PET_SLOTS, PLAYER_LOGIN_QUERY_LOAD_PVP_TALENTS, PLAYER_LOGIN_QUERY_LOAD_QUEST_STATUS, PLAYER_LOGIN_QUERY_LOAD_QUEST_STATUS_OBJECTIVES, PLAYER_LOGIN_QUERY_LOAD_QUEST_STATUS_OBJECTIVES_CRITERIA, PLAYER_LOGIN_QUERY_LOAD_QUEST_STATUS_OBJECTIVES_CRITERIA_PROGRESS, PLAYER_LOGIN_QUERY_LOAD_QUEST_STATUS_OBJECTIVES_SPAWN_TRACKING, 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_CHARGES, PLAYER_LOGIN_QUERY_LOAD_SPELL_COOLDOWNS, PLAYER_LOGIN_QUERY_LOAD_SPELL_FAVORITES, PLAYER_LOGIN_QUERY_LOAD_SPELLS, PLAYER_LOGIN_QUERY_LOAD_TALENTS, PLAYER_LOGIN_QUERY_LOAD_TRAIT_CONFIGS, PLAYER_LOGIN_QUERY_LOAD_TRAIT_ENTRIES, PLAYER_LOGIN_QUERY_LOAD_TRANSMOG_OUTFIT, PLAYER_LOGIN_QUERY_LOAD_TRANSMOG_OUTFIT_SITUATION, PLAYER_LOGIN_QUERY_LOAD_TRANSMOG_OUTFIT_SLOT, PLAYER_LOGIN_QUERY_LOAD_TRANSMOG_OUTFITS, PLAYER_LOGIN_QUERY_LOAD_WEEKLY_QUEST_STATUS, PlayerConditionGrantsOnLogin, TaxiNodesEntry::Pos, MovementInfo::TransportInfo::pos, POWER_LUNAR_POWER, POWER_RUNES, PushQuests(), BGData::queueId, 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(), ReplaceAllBagSlotFlags(), ReplaceAllPlayerFlags(), ReplaceAllPlayerFlagsEx(), MovementInfo::TransportInfo::Reset(), ResetTalentSpecialization(), REST_TYPE_HONOR, REST_TYPE_XP, SaveRecallPosition(), sBattlegroundMgr, sCharacterCache, sChrSpecializationStore, SendTransferAborted(), SetAcceptWhispers(), SetActiveTalentGroup(), SetBackpackAutoSortDisabled(), SetBackpackSellJunkDisabled(), SetBankAutoSortDisabled(), SetBankBagSlotCount(), Unit::SetCanModifyStats(), SetCharacterBankTabCount(), SetChosenTitle(), Unit::SetClass(), SetCustomizations(), SetDrunkValue(), SetDungeonDifficultyID(), Object::SetDynamicFlag(), SetFactionForRace(), SetFallInformation(), SetGameMaster(), Unit::SetGender(), SetGMChat(), SetGMVisible(), Unit::SetHealth(), SetInventorySlotCount(), SetInviteForBattlegroundQueueType(), SetLegacyRaidDifficultyID(), Unit::SetLevel(), SetLootSpecId(), SetMap(), SetMercenaryForBattlegroundQueueType(), SetMoney(), SetMultiActionBars(), SetNativeGender(), SetNumRespecs(), SetObjectScale(), SetPersonalTabard(), WorldSession::SetPlayer(), SetPlayerLocalFlag(), Unit::SetPower(), SetPrimarySpecialization(), Unit::SetRace(), SetRaidDifficultyID(), SetRuneCooldown(), SetTalentResetCost(), SetTalentResetTime(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt64(), BaseEntity::SetUpdateFieldFlagValue(), BaseEntity::SetUpdateFieldValue(), SetWatchedFactionIndex(), SetXP(), sMapMgr, sMapStore, sObjectMgr, BattlePets::SPELL_BATTLE_PET_TRAINING, sSocialMgr, StartLoadingActionButtons(), STATUS_WAIT_LEAVE, sTaxiNodesStore, sTransmogIllusionStore, sWorld, BGData::taxiPath, TC_LOG_DEBUG, TC_LOG_ERROR, TC_LOG_WARN, Map::ToBattlegroundMap(), UF::ActivePlayerData::TodayHonorableKills, Map::ToInstanceMap(), Trinity::Tokenize(), ObjectGuid::ToString(), Position::ToString(), MovementInfo::transport, UI64LIT, UNIT_DYNFLAG_REFER_A_FRIEND, UNIT_FLAG2_FORCE_MOVEMENT, UpdateAllStats(), Unit::UpdateCreatureType(), Unit::UpdateDisplayPower(), UpdateHonorFields(), UpdateItemDuration(), WorldObject::UpdatePositionData(), UpdateSkillsForLevel(), urand(), WorldLocation::WorldRelocate(), UF::PlayerData::WowAccount, DBCPosition3D::X, DBCPosition3D::Y, UF::ActivePlayerData::YesterdayHonorableKills, and DBCPosition3D::Z.

Referenced by WorldSession::HandlePlayerLogin().

◆ LoadPositionFromDB()

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

◆ MeetPlayerCondition()

◆ ModifierTreeSatisfied()

bool Player::ModifierTreeSatisfied ( uint32  modifierTreeId) const

Definition at line 27554 of file Player.cpp.

References m_achievementMgr.

Referenced by debug_commandscript::HandleDebugModifierTreeCommand().

◆ ModifyCurrency()

void Player::ModifyCurrency ( uint32  id,
int32  amount,
CurrencyGainSource  gainSource = CurrencyGainSource::Cheat,
CurrencyDestroyReason  destroyReason = CurrencyDestroyReason::Cheat 
)

Modify currency amount.

Definition at line 7036 of file Player.cpp.

References _currencyStorage, ALLIANCE, ASSERT, CurrencyTypesEntry::AwardConditionID, CurrencyTypesEntry::CategoryID, CURRENCY_TYPE_AZERITE, CurrencyChanged(), CurrencyGained, Everywhere, CurrencyTypesEntry::FactionID, WorldPackets::Misc::SetCurrency::Flags, GarrisonBuildingRefund, GetCurrencyMaxQuantity(), GetCurrencyWeeklyCap(), GetItemByEntry(), GetReputationMgr(), CurrencyTypesEntry::GetScaler(), GetTeam(), Unit::GetTotalAuraMultiplierByMiscValue(), CurrencyTypesEntry::HasMaxQuantity(), CurrencyTypesEntry::HasTotalEarned(), HORDE, CurrencyTypesEntry::ID, CurrencyTypesEntry::IsAlliance(), CurrencyTypesEntry::IsHorde(), ConditionMgr::IsPlayerMeetingCondition(), CurrencyTypesEntry::IsSuppressingChatLog(), CurrencyTypesEntry::IsTrackingQuantity(), ITEM_ID_HEART_OF_AZEROTH, ItemRefund, WorldPackets::Misc::SetCurrency::MaxQuantity, ReputationMgr::ModifyReputation(), None, PLAYERCURRENCY_CHANGED, PLAYERCURRENCY_NEW, PlayerTraitRefund, WorldPackets::Misc::SetCurrency::Quantity, WorldPackets::Misc::SetCurrency::QuantityChange, WorldPackets::Misc::SetCurrency::QuantityGainSource, WorldPackets::Misc::SetCurrency::QuantityLostSource, QuestRewardIgnoreCaps, ReachRenownLevel, RenownRepGain, sCurrencyTypesStore, SendDirectMessage(), sFactionStore, SPELL_AURA_MOD_CURRENCY_CATEGORY_GAIN_PCT, SPELL_AURA_MOD_CURRENCY_GAIN, WorldPackets::Misc::SetCurrency::SuppressChatLog, WorldPackets::Misc::SetCurrency::TotalEarned, WorldPackets::Misc::SetCurrency::Type, UpdateCriteria(), UpdatingVersion, Vendor, WorldPackets::Misc::SetCurrency::WeeklyQuantity, WorldQuestRewardIgnoreCaps, and WorldPackets::Misc::SetCurrency::Write().

Referenced by AddCurrency(), Loot::AutoStore(), quest_commandscript::CompleteObjective(), Spell::EffectGiveCurrency(), modify_commandscript::HandleModifyCurrencyCommand(), RemoveCurrency(), ReputationMgr::SetOneFactionReputation(), and StoreLootItem().

◆ ModifyMoney()

bool Player::ModifyMoney ( int64  amount,
bool  sendError = true 
)

◆ ModifySkillBonus()

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

◆ MoneyChanged()

void Player::MoneyChanged ( uint64  value)

Definition at line 16685 of file Player.cpp.

References GetMoney(), QUEST_OBJECTIVE_MONEY, and UpdateQuestObjectiveProgress().

Referenced by SetMoney().

◆ MoveItemFromInventory()

◆ MoveItemToInventory()

void Player::MoveItemToInventory ( ItemPosCountVec const &  dest,
Item *  pItem,
bool  update,
bool  in_characterInventoryDB = false 
)

◆ NextGroupUpdateSequenceNumber()

int32 Player::NextGroupUpdateSequenceNumber ( GroupCategory  category)

◆ OfflineResurrect()

◆ OnGossipSelect()

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

Definition at line 14011 of file Player.cpp.

References AccountBanker, GossipMenuItem::ActionMenuID, GossipMenuItem::ActionPoiID, AdventureMap, ArtifactForge, AsUnderlyingType(), Auctioneer, AzeriteRespec, Banker, BarbersChoice, BATTLEGROUND_TYPE_NONE, BattleMaster, Battlemaster, Binder, BlackMarketAuctioneer, GossipMenuItem::BoxMoney, BUY_ERR_NOT_ENOUGHT_MONEY, CastSpell, WorldObject::CastSpell(), CharacterBanker, ChromieTime, ChromieTimeNpc, ContributionCollector, CornerstoneInteraction, Count, CovenantPreview, CreateGuildNeighborhood, DisableXPGain, EnableXPGain, ERR_GUILD_PLAYER_NOT_IN_GUILD, ForgeMaster, GossipMenuAddon::FriendshipFactionID, WorldPackets::NPC::GossipOptionNPCInteraction::FriendshipFactionID, GarrArchitect, GarrisonRecruitment, GarrisonTradeskillNpc, GarrMission, GarrRecruitment, GarrTalent, GarrTradeskill, Object::GetEntry(), BaseEntity::GetGUID(), GetGuild(), GossipMenu::GetItem(), GossipMenu::GetMenuId(), WorldObject::GetName(), GetNextResetTalentsCost(), GetSession(), BaseEntity::GetTypeId(), GlyphMaster, WorldPackets::NPC::GossipOptionNPCInteraction::GossipGUID, GossipMenuItem::GossipNpcOptionID, WorldPackets::NPC::GossipOptionNPCInteraction::GossipNpcOptionID, GUILD_COMMAND_VIEW_TAB, GuildBanker, GuildRename, GuildTabardVendor, HasEnoughMoney(), WorldPackets::NPC::NPCInteractionOpenResult::InteractionType, IslandQueue, ItemInteraction, ItemUpgrade, LegendaryCrafting, LFGDungeon, MailInfo, MajorFactionRenown, ModifyMoney(), NeighborhoodCharter, NewPlayerGuide, None, WorldPackets::NPC::NPCInteractionOpenResult::Npc, OpenHouseFinder, OpenNeighborhoodCharterConfirmation, GossipMenuItem::OptionNpc, GossipMenuItem::OrderIndex, PerksProgramVendor, PersonalTabardVendor, PetitionVendor, PetSpecializationMaster, PlaceholderType79, PLAYER_FLAGS_NO_XP_GAIN, PlayerTalkClass, PrepareGossipMenu(), ProfessionRespec, Professions, ProfessionsCraftingOrder, ProfessionsCustomerOrder, Unit::RemoveAurasDueToSpell(), RemovePlayerFlag(), Renown, RuneforgeLegendaryCrafting, RuneforgeLegendaryUpgrade, sBattlegroundMgr, WorldSession::SendAuctionHello(), SendBuyError(), Guild::SendCommandResult(), SendDirectMessage(), WorldSession::SendListInventory(), WorldSession::SendPetitionShowList(), SendPreparedGossip(), SendRespecWipeConfirm(), WorldSession::SendTaxiMenu(), WorldSession::SendTrainerList(), SetPlayerFlag(), SetStableMaster(), ShipmentCrafter, sObjectMgr, Soulbind, SPEC_RESET_GLYPHS, SPEC_RESET_PET_TALENTS, SPEC_RESET_SPECIALIZATION, SPEC_RESET_TALENTS, SpecializationMaster, SPELL_EXPERIENCE_ELIMINATED, Spellclick, SpiritHealer, StableMaster, Stablemaster, WorldPackets::NPC::NPCInteractionOpenResult::Success, TalentMaster, TaxiNode, Taxinode, TC_LOG_ERROR, Object::ToCreature(), ObjectGuid::ToString(), Position::ToString(), Object::ToUnit(), Trainer, TraitSystem, Transmogrifier, TRIGGERED_FULL_MASK, TYPEID_GAMEOBJECT, Vendor, WorldMap, WorldPackets::NPC::NPCInteractionOpenResult::Write(), and WorldPackets::NPC::GossipOptionNPCInteraction::Write().

Referenced by WorldSession::HandleGossipSelectOptionOpcode().

◆ OnPhaseChange()

void Player::OnPhaseChange ( )
overridevirtual

Reimplemented from Unit.

Definition at line 31381 of file Player.cpp.

References WorldObject::GetMap(), Unit::OnPhaseChange(), and Map::UpdatePersonalPhasesForPlayer().

◆ outDebugValues()

◆ PauseMirrorTimer()

void Player::PauseMirrorTimer ( MirrorTimerType  type,
bool  paused 
)
protected

Definition at line 602 of file Player.cpp.

References SendDirectMessage().

Referenced by UpdateMirrorTimers().

◆ PetSpellInitialize()

◆ PossessSpellInitialize()

◆ PrepareGossipMenu()

◆ PrepareQuestMenu()

◆ ProcessDelayedOperations()

◆ ProcessItemCast()

◆ ProcessPositionDataChanged()

void Player::ProcessPositionDataChanged ( PositionFullTerrainStatus const &  data)
overridevirtual

◆ PushQuests()

void Player::PushQuests ( )
protected

Definition at line 18856 of file Player.cpp.

References AddQuestAndCheckCompletion(), CanTakeQuest(), sObjectMgr, and Tag.

Referenced by GiveLevel(), LoadFromDB(), and UpdateArea().

◆ QuickEquipItem()

◆ RecalculateRating()

void Player::RecalculateRating ( CombatRating  cr)
inline

Definition at line 2213 of file Player.h.

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

◆ Recall()

void Player::Recall ( )
inline

Definition at line 2672 of file Player.h.

References TELE_TO_NONE.

Referenced by misc_commandscript::HandleRecallCommand().

◆ RefundItem()

◆ Regenerate()

◆ RegenerateAll()

◆ RegenerateHealth()

◆ RemoveActionButton()

◆ RemoveActiveQuest()

◆ RemoveArenaEnchantments()

◆ RemoveArenaSpellCooldowns()

◆ RemoveAtLoginFlag()

◆ RemoveAuraVision()

void Player::RemoveAuraVision ( PlayerFieldByte2Flags  flags)
inline

Definition at line 3002 of file Player.h.

References UF::ActivePlayerData::AuraVision, flags, and m_activePlayerData.

◆ RemoveBagSlotFlag()

void Player::RemoveBagSlotFlag ( uint32  bagIndex,
EnumFlag< BagSlotFlags >  flags 
)
inline

◆ RemoveBattlegroundQueueId()

◆ RemoveConditionalTransmog()

void Player::RemoveConditionalTransmog ( uint32  itemModifiedAppearanceId)
inline

◆ RemoveCurrency()

◆ RemovedInsignia()

◆ RemoveEnchantmentDurations()

void Player::RemoveEnchantmentDurations ( Item *  item)

Definition at line 13309 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 13324 of file Player.cpp.

References m_enchantDuration.

Referenced by _SaveInventory().

◆ RemoveExploredZones()

◆ 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 2138 of file Player.h.

References RemoveFromGroup().

Referenced by RemoveFromGroup().

◆ RemoveFromWhisperWhiteList()

void Player::RemoveFromWhisperWhiteList ( ObjectGuid  guid)
inline

Definition at line 2855 of file Player.h.

Referenced by message_commandscript::HandleWhispersCommand().

◆ RemoveFromWorld()

◆ RemoveGroupUpdateFlag()

void Player::RemoveGroupUpdateFlag ( uint32  flag)
inline

Definition at line 2790 of file Player.h.

Referenced by Pet::ResetGroupUpdateFlag().

◆ RemoveItem()

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

◆ RemoveItemDependentAurasAndCasts()

◆ RemoveItemDurations()

void Player::RemoveItemDurations ( Item *  item)

Definition at line 26080 of file Player.cpp.

References m_itemDuration.

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

◆ RemoveItemFromBuyBackSlot()

◆ RemoveLootRoll()

void Player::RemoveLootRoll ( LootRoll *  roll)

Definition at line 9011 of file Player.cpp.

References m_lootRolls.

Referenced by LootRoll::~LootRoll().

◆ RemoveMail()

void Player::RemoveMail ( uint64  id)

Definition at line 2512 of file Player.cpp.

References m_mail.

Referenced by WorldSession::HandleMailReturnToSender().

◆ RemoveMItem()

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

Definition at line 22408 of file Player.cpp.

References mMitems.

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

◆ RemoveOverrideSpell()

void Player::RemoveOverrideSpell ( uint32  overridenSpellId,
uint32  newSpellId 
)

◆ RemovePet()

void Player::RemovePet ( Pet *  pet,
PetSaveMode  mode,
bool  returnreagent = false 
)

Definition at line 22031 of file Player.cpp.

References WorldObject::AddObjectToRemoveList(), ASSERT, CanStoreNewItem(), Unit::CombatStop(), EQUIP_ERR_OK, Unit::ExitAllAreaTriggers(), Unit::GetCharmInfo(), GetDifficultyID(), Object::GetEntry(), GetGroup(), BaseEntity::GetGUID(), WorldObject::GetMap(), WorldObject::GetName(), GetPet(), CharmInfo::GetPetNumber(), GROUP_UPDATE_FLAG_PET, InBattleground(), Pet::isControlled(), BaseEntity::IsInWorld(), m_activePlayerData, m_oldpetspell, m_petStable, Pet::m_removed, m_temporaryUnsummonedPetNumber, Unit::m_unitData, BaseEntity::m_values, MAX_SPELL_REAGENTS, UF::UpdateFieldHolder::ModifyValue(), NULL_BAG, NULL_SLOT, PET_SAVE_AS_DELETED, PET_SAVE_NOT_IN_SLOT, UF::StablePetInfo::PetNumber, PetStable::PetInfo::PetNumber, UF::StableInfo::Pets, UF::ActivePlayerData::PetStable, SpellInfo::Reagent, SpellInfo::ReagentCount, BaseEntity::RemoveDynamicUpdateFieldValue(), Pet::SavePetToDB(), SendDirectMessage(), SendNewItem(), SetGroupUpdateFlag(), Unit::SetMinion(), sSpellMgr, StoreNewItem(), TC_LOG_DEBUG, Position::ToString(), and WorldPackets::Pet::PetSpells::Write().

Referenced by ActivateTalentGroup(), Spell::EffectSummonPet(), WorldSession::HandlePetAbandon(), WorldSession::HandlePetAbandonByNumber(), WorldSession::HandlePetActionHelper(), WorldSession::HandleRepopRequest(), Pet::LoadPetFromDB(), WorldSession::LogoutPlayer(), Pet::Remove(), Battleground::RemovePlayerAtLeave(), ResetTalents(), setDeathState(), SetPetSlot(), SummonPet(), UnsummonPetTemporaryIfAny(), and Update().

◆ RemovePetAura()

void Player::RemovePetAura ( PetAura const *  petSpell)

Definition at line 22182 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)
static

Definition at line 23052 of file Player.cpp.

References sPetitionMgr.

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

◆ RemovePlayerFlag()

◆ RemovePlayerFlagEx()

void Player::RemovePlayerFlagEx ( PlayerFlagsEx  flags)
inline

◆ RemovePlayerLocalFlag()

◆ RemovePvpTalent()

void Player::RemovePvpTalent ( PvpTalentEntry const *  talent,
uint8  activeTalentGroup 
)

◆ RemoveQuestSlotObjectiveFlag()

void Player::RemoveQuestSlotObjectiveFlag ( uint16  slot,
int8  objectiveIndex 
)

◆ RemoveQuestSlotState()

◆ RemoveRewardedQuest()

◆ RemoveSelfResSpell()

void Player::RemoveSelfResSpell ( int32  spellId)
inline

◆ RemoveSocial()

void Player::RemoveSocial ( )

Definition at line 30725 of file Player.cpp.

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

Referenced by WorldSession::LogoutPlayer().

◆ RemoveSpecializationSpells()

◆ RemoveSpell()

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

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

References AddSpell(), AutoUnequipOffhandIfNeed(), CONFIG_MAX_PRIMARY_TRADE_SKILL, CONFIG_OFFHAND_CHECK_AT_SPELL_UNLEARN, DIFFICULTY_NONE, Unit::GetClass(), SpellInfo::GetEffects(), GetFreePrimaryProfessionPoints(), BaseEntity::GetGUID(), Unit::GetMaxSkillValueForLevel(), GetPureMaxSkillValue(), GetPureSkillValue(), Unit::GetRace(), GetSkillRangeType(), SkillTiersEntry::GetValueForTierIndex(), SpellInfo::HasAttribute(), SpellInfo::HasEffect(), HasSpell(), SpellInfo::IsPassive(), SpellInfo::IsPrimaryProfessionFirstRank(), SpellInfo::IsRanked(), Unit::m_canDualWield, m_canTitanGrip, m_overrideSpells, m_spells, m_titanGripPenaltySpellId, Trinity::Containers::MapValue, SpellLearnSkillNode::maxvalue, PLAYERSPELL_CHANGED, PLAYERSPELL_NEW, PLAYERSPELL_REMOVED, PLAYERSPELL_TEMPORARY, Unit::RemoveAurasDueToSpell(), RemoveOverrideSpell(), Unit::RemoveOwnedAura(), RemovePetAura(), RemoveSpell(), sDB2Manager, SendDirectMessage(), SendSupercededSpell(), Unit::SetCanDualWield(), SetCanTitanGrip(), SetFreePrimaryProfessions(), SetSkill(), SpellLearnSkillNode::skill, SKILL_FLAG_ALWAYS_MAX_VALUE, SKILL_RANGE_LANGUAGE, SKILL_RANGE_LEVEL, SKILL_RANGE_MONO, SKILL_RANGE_RANK, sObjectMgr, SPELL_ATTR0_CU_IS_TALENT, SPELL_EFFECT_DUAL_WIELD, SPELL_EFFECT_TITAN_GRIP, WorldPackets::Spells::UnlearnedSpells::SpellID, sSpellMgr, SpellLearnSkillNode::step, sTraitDefinitionStore, WorldPackets::Spells::UnlearnedSpells::SuppressMessaging, sWorld, SpellLearnSkillNode::value, and WorldPackets::Spells::UnlearnedSpells::Write().

Referenced by ActivateTalentGroup(), ApplyAzeriteEssencePower(), ApplyTraitEntry(), Guild::DeleteMember(), Spell::EffectApplyMountEquipment(), Spell::EffectUnlearnSpecialization(), AuraEffect::HandleLearnSpell(), learn_commandscript::HandleUnLearnCommand(), LearnSkillRewardedSpells(), RemovePvpTalent(), RemoveSpecializationSpells(), RemoveSpell(), RemoveTalent(), spell_hun_bleak_arrows::ReplaceAutoShot(), ResetSpells(), spell_hun_bleak_arrows::RestoreAutoShot(), SetSkill(), TogglePvpTalents(), and spell_gen_battleground_mercenary_shapeshift::UpdateRacials().

◆ RemoveSpellCategoryCooldownMod()

◆ RemoveStoredAuraTeleportLocation()

◆ RemoveTalent()

◆ RemoveTemporarySpell()

◆ RemoveTimedQuest()

void Player::RemoveTimedQuest ( uint32  questId)

◆ RemoveTrackCreatureFlag()

void Player::RemoveTrackCreatureFlag ( uint32  flags)
inline

◆ RemoveTradeableItem()

◆ RemoveVisibleForcedReaction()

◆ RenameTraitConfig()

◆ ReplaceAllBagSlotFlags()

void Player::ReplaceAllBagSlotFlags ( uint32  bagIndex,
EnumFlag< BagSlotFlags >  flags 
)
inline

Definition at line 1518 of file Player.h.

References UF::ActivePlayerData::BagSlotFlags, flags, and m_activePlayerData.

Referenced by LoadFromDB().

◆ ReplaceAllPlayerFlags()

void Player::ReplaceAllPlayerFlags ( PlayerFlags  flags)
inline

Definition at line 2898 of file Player.h.

References flags, m_playerData, and UF::PlayerData::PlayerFlags.

Referenced by LoadFromDB().

◆ ReplaceAllPlayerFlagsEx()

void Player::ReplaceAllPlayerFlagsEx ( PlayerFlagsEx  flags)
inline

Definition at line 2903 of file Player.h.

References flags, m_playerData, and UF::PlayerData::PlayerFlagsEx.

Referenced by LoadFromDB().

◆ ReplaceAllPlayerLocalFlags()

void Player::ReplaceAllPlayerLocalFlags ( PlayerLocalFlags  flags)
inline

Definition at line 2994 of file Player.h.

References flags, UF::ActivePlayerData::LocalFlags, and m_activePlayerData.

◆ ReplaceAllRequiredMountCapabilityFlags()

void Player::ReplaceAllRequiredMountCapabilityFlags ( uint8  flags)
inline

◆ RepopAtGraveyard()

◆ ReportedAfkBy()

◆ ReputationChanged()

void Player::ReputationChanged ( FactionEntry const *  factionEntry,
int32  change 
)

◆ RequestSpellCast()

◆ ResetAchievements()

void Player::ResetAchievements ( )

Definition at line 27496 of file Player.cpp.

References m_achievementMgr.

Referenced by reset_commandscript::HandleResetAchievementsCommand().

◆ ResetAllPowers()

◆ ResetContestedPvP()

void Player::ResetContestedPvP ( )

◆ ResetCurrencyWeekCap()

◆ ResetGroupUpdateSequenceIfNeeded()

void Player::ResetGroupUpdateSequenceIfNeeded ( Group const *  group)

Definition at line 26730 of file Player.cpp.

References Group::GetGroupCategory(), Group::GetGUID(), and m_groupUpdateSequences.

Referenced by _LoadGroup(), and Group::AddMember().

◆ ResetHonorStats()

◆ ResetInstances()

◆ ResetMap()

void Player::ResetMap ( )
overridevirtual

◆ ResetMonthlyQuestStatus()

void Player::ResetMonthlyQuestStatus ( )

Definition at line 25637 of file Player.cpp.

References m_MonthlyQuestChanged, m_monthlyquests, and SetQuestCompletedBit().

◆ ResetPvpTalents()

void Player::ResetPvpTalents ( )

◆ ResetSeasonalQuestStatus()

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

Definition at line 25608 of file Player.cpp.

References m_SeasonalQuestChanged, m_seasonalquests, and SetQuestCompletedBit().

◆ ResetSpells()

◆ ResetTalents()

◆ ResetTalentSpecialization()

◆ ResetWeeklyQuestStatus()

◆ RestoreHealthAfterDuel()

void Player::RestoreHealthAfterDuel ( )
inline

Definition at line 2447 of file Player.h.

Referenced by DuelResetScript::OnDuelEnd().

◆ RestoreManaAfterDuel()

void Player::RestoreManaAfterDuel ( )
inline

Definition at line 2448 of file Player.h.

References POWER_MANA.

Referenced by DuelResetScript::OnDuelEnd().

◆ ResummonBattlePetTemporaryUnSummonedIfAny()

◆ ResummonPetTemporaryUnSummonedIfAny()

◆ ResurrectPlayer()

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

Definition at line 4269 of file Player.cpp.

References Unit::AddUnitMovementFlag(), ALIVE, CastAllObtainSpells(), CastSpell, CONFIG_DEATH_SICKNESS_LEVEL, PowerTypeEntry::DefaultPower, Unit::GetAura(), PowerTypeEntry::GetFlags(), BaseEntity::GetGUID(), Unit::GetLevel(), Unit::GetMaxHealth(), Unit::GetMaxPower(), GetPowerTypes(), Unit::GetRace(), GetSession(), WorldObject::GetZoneAndAreaId(), Unit::HasUnitState(), IN_MILLISECONDS, m_deathTimer, WorldPackets::Misc::DeathReleaseLoc::MapID, MINUTE, MOVEMENTFLAG_WATERWALKING, NotSetToDefaultOnResurrect, PLAYER_FLAGS_IS_OUT_OF_BOUNDS, POWER_MANA, Unit::RemoveAurasDueToSpell(), RemovePlayerFlag(), ChrRacesEntry::ResSicknessSpellID, sChrRacesStore, sDB2Manager, SendDirectMessage(), SetAreaSpiritHealer(), setDeathState(), Object::SetDynamicFlag(), Unit::SetHealth(), Unit::SetPower(), Unit::SetRooted(), SetToMaxOnResurrect, Unit::SetWaterWalking(), sOutdoorPvPMgr, sWorld, UNIT_DYNFLAG_REFER_A_FRIEND, UNIT_STATE_STUNNED, UpdateObjectVisibility(), UpdateZone(), and WorldPackets::Misc::DeathReleaseLoc::Write().

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

◆ ResurrectUsingRequestData()

◆ ResurrectUsingRequestDataImpl()

◆ ResyncRunes()

◆ RewardHonor()

bool Player::RewardHonor ( Unit *  victim,
uint32  groupsize,
int32  honor = -1,
HonorGainSource  source = HonorGainSource::Kill 
)

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

References _restMgr, AddHonorXP(), AddItem(), AddPct(), BaseEntity::ApplyModUpdateFieldValue(), AsUnderlyingType(), CONFIG_PVP_TOKEN_COUNT, CONFIG_PVP_TOKEN_ENABLE, CONFIG_PVP_TOKEN_ID, CONFIG_PVP_TOKEN_MAP_TYPE, DeliverKillingBlowToClass, DeliverKillingBlowToRace, EarnHonorableKill, WorldObject::GetAreaId(), GetBattleground(), GetBGTeam(), Unit::GetClass(), GetEffectiveTeam(), Trinity::XP::GetGrayLevel(), BaseEntity::GetGUID(), Unit::GetLevel(), Unit::GetLevelForTarget(), Unit::GetMaxPositiveAuraModifier(), Unit::GetMaxPositiveAuraModifierByMiscMask(), Unit::GetRace(), GetSession(), BaseEntity::GetTypeId(), HasAura, Unit::HasAuraType(), Trinity::Honor::hk_honor_at_level_f(), WorldPackets::Combat::PvPCredit::Honor, HonorableKills, InArena(), InBattleground(), Unit::IsFFAPvP(), Creature::IsRacialLeader(), Kill, KillPlayer, UF::ActivePlayerData::LifetimeHonorableKills, m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), WorldPackets::Combat::PvPCredit::OriginalHonor, ChatHandler::PSendSysMessage(), PVPKillInArea, WorldPackets::Combat::PvPCredit::Rank, RATE_HONOR, REST_TYPE_HONOR, SCORE_BONUS_HONOR, SendDirectMessage(), SPELL_AURA_MOD_HONOR_GAIN_PCT, SPELL_AURA_MOD_HONOR_GAIN_PCT_FROM_SOURCE, SPELL_AURA_NO_PVP_CREDIT, SPELL_AURA_PLAYER_INACTIVE, sWorld, WorldPackets::Combat::PvPCredit::Target, Object::ToCreature(), UF::ActivePlayerData::TodayHonorableKills, Object::ToPlayer(), TYPEID_PLAYER, UpdateCriteria(), UpdateHonorFields(), and WorldPackets::Combat::PvPCredit::Write().

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

◆ RewardPlayerAndGroupAtEvent()

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

◆ RewardPlayerWithRewardPack() [1/2]

void Player::RewardPlayerWithRewardPack ( RewardPackEntry const *  rewardPackEntry)

◆ RewardPlayerWithRewardPack() [2/2]

void Player::RewardPlayerWithRewardPack ( uint32  rewardPackID)

Definition at line 6825 of file Player.cpp.

References RewardPlayerWithRewardPack(), and sRewardPackStore.

Referenced by RewardPlayerWithRewardPack().

◆ RewardQuest()

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

Definition at line 15022 of file Player.cpp.

References AddCurrency(), CollectionMgr::AddItemAppearance(), AddQuestAndCheckCompletion(), Quest::CalculateHonorGain(), CanAddQuest(), Quest::CanIncreaseRewardedQuestCounters(), CanStoreNewItem(), CanTakeQuest(), WorldObject::CastSpell(), CharacterDatabase, CompleteAnyDailyQuestPerDay, CompleteAnyReplayQuest, CompleteDailyQuest, CompleteQuest, CompleteQuestsCount, CompleteQuestsInZone, Currency, DailyQuestReward, DestroyItemCount(), SpellInfo::Difficulty, EQUIP_ERR_OK, GenerateItemRandomBonusListId(), WorldSession::GetCollectionMgr(), Map::GetDifficultyID(), GetDifficultyID(), BaseEntity::GetGUID(), Unit::GetLevel(), WorldObject::GetMap(), GetNextQuest(), Quest::GetObjectives(), Quest::GetQuestId(), GetQuestMoneyReward(), Quest::GetQuestPackageID(), GetQuestStatus(), GetQuestXPReward(), Quest::GetRewardSkillId(), Quest::GetRewardSkillPoints(), Quest::GetRewChoiceItemsCount(), Quest::GetRewItemsCount(), Quest::GetRewMailDelaySecs(), Quest::GetRewMailSenderEntry(), Quest::GetRewMailTemplateId(), Quest::GetRewMoneyMaxLevel(), Quest::GetRewSpell(), Quest::GetRewTitle(), GetSession(), Quest::GetZoneOrSort(), GiveXP(), Quest::HasFlag(), Quest::HasFlagEx(), HasPvPForcingQuest(), SpellInfo::HasTargetType(), SpellInfo::Id, Quest::IsDaily(), Quest::IsDFQuest(), PvPInfo::IsHostile, PvPInfo::IsInHostileArea, IsMaxLevel(), Quest::IsMonthly(), ConditionMgr::IsPlayerMeetingCondition(), Quest::IsSeasonal(), BaseEntity::IsUnit(), Quest::IsWeekly(), BaseEntity::IsWorldObject(), Quest::IsWorldQuest(), Item, Quest::ItemDrop, Quest::ItemDropQuantity, MAIL_CHECK_MASK_HAS_BODY, ModifyMoney(), Money, MoneyEarnedFromQuesting, NULL_BAG, NULL_SLOT, PhasingHandler::OnConditionChange(), PlayerTalkClass, pvpInfo, Quest, QUEST_FLAGS_EX_NO_ITEM_REMOVAL, QUEST_FLAGS_EX_REWARDS_IGNORE_CAPS, QUEST_FLAGS_FLAGS_PVP, QUEST_FLAGS_PLAYER_CAST_COMPLETE, QUEST_FLAGS_REMOVE_SURPLUS_ITEMS, QUEST_FLAGS_UPDATE_PHASESHIFT, QUEST_ITEM_DROP_COUNT, QUEST_OBJECTIVE_CURRENCY, QUEST_OBJECTIVE_ITEM, Quest_Reward, QUEST_REWARD_CHOICES_COUNT, QUEST_REWARD_CURRENCY_COUNT, QUEST_STATUS_REWARDED, QuestComplete, QuestReward, QuestRewardIgnoreCaps, QuestTurnin, RATE_DROP_MONEY, RemoveActiveQuest(), RemoveCurrency(), RemoveTimedQuest(), Quest::RewardChoiceItemCount, Quest::RewardChoiceItemId, Quest::RewardChoiceItemType, Quest::RewardCurrencyCount, Quest::RewardCurrencyId, Quest::RewardDisplaySpell, RewardHonor(), Quest::RewardItemCount, Quest::RewardItemId, RewardQuestPackage(), RewardReputation(), SaveToDB(), sCharTitlesStore, sCurrencyTypesStore, SendDisplayToast(), SendItemRetrievalMail(), MailDraft::SendMailTo(), SendNewItem(), SendQuestReward(), SendQuestUpdate(), SetCanDelayTeleport(), CastSpellExtraArgs::SetCastDifficulty(), SetDailyQuestStatus(), SetMonthlyQuestStatus(), SetQuestCompletedBit(), SetRewardedQuest(), SetSeasonalQuestStatus(), SetTitle(), SetWeeklyQuestStatus(), sObjectMgr, sScriptMgr, sSpellMgr, StartCriteria(), StoreNewItem(), sWorld, TARGET_UNIT_CASTER, Object::ToCreature(), Object::ToGameObject(), Object::ToUnit(), TRIGGERED_FULL_MASK, UpdateCriteria(), UpdateObjectVisibility(), UpdatePvPState(), UpdateSkillPro(), WeeklyQuestReward, WorldQuestReward, and WorldQuestRewardIgnoreCaps.

Referenced by CollectionMgr::AddItemAppearance(), Loot::AutoStore(), Loot::AutoStoreTrackingQuests(), CompleteQuest(), lfg::LFGMgr::FinishDungeon(), WorldSession::HandleQuestgiverChooseRewardOpcode(), and quest_commandscript::HandleQuestReward().

◆ RewardQuestPackage()

◆ RewardReputation() [1/2]

◆ RewardReputation() [2/2]

◆ Satisfy()

◆ SatisfyQuestBreadcrumbQuest()

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

◆ SatisfyQuestClass()

◆ SatisfyQuestConditions()

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

◆ SatisfyQuestDay()

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

◆ SatisfyQuestDependentBreadcrumbQuests()

◆ SatisfyQuestDependentPreviousQuests()

◆ SatisfyQuestDependentQuests()

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

◆ SatisfyQuestExclusiveGroup()

◆ SatisfyQuestExpansion()

◆ SatisfyQuestLevel()

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

Definition at line 15419 of file Player.cpp.

References SatisfyQuestMaxLevel(), and SatisfyQuestMinLevel().

Referenced by CanRewardQuest(), CanTakeQuest(), and GetQuestDialogStatus().

◆ SatisfyQuestLog()

bool Player::SatisfyQuestLog ( bool  msg) const

◆ SatisfyQuestMaxLevel()

◆ SatisfyQuestMaxReputation()

◆ SatisfyQuestMinLevel()

◆ SatisfyQuestMinReputation()

◆ SatisfyQuestMonth()

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

◆ SatisfyQuestPreviousQuest()

◆ SatisfyQuestRace()

◆ SatisfyQuestReputation()

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

◆ SatisfyQuestSeasonal()

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

◆ SatisfyQuestSkill()

◆ SatisfyQuestStatus()

◆ SatisfyQuestTimed()

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

◆ SatisfyQuestWeek()

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

◆ SaveCUFProfile() [1/2]

void Player::SaveCUFProfile ( uint8  id,
std::nullptr_t   
)
inline

Definition at line 1830 of file Player.h.

Referenced by WorldSession::HandleSaveCUFProfiles().

◆ SaveCUFProfile() [2/2]

void Player::SaveCUFProfile ( uint8  id,
std::unique_ptr< CUFProfile >  profile 
)
inline

‍Empties a CUF profile at position 0-4

Definition at line 1831 of file Player.h.

◆ SaveCustomizations()

void Player::SaveCustomizations ( CharacterDatabaseTransaction  trans,
ObjectGuid::LowType  guid,
Trinity::IteratorPair< UF::ChrCustomizationChoice const * >  customizations 
)
static

◆ SaveHealthBeforeDuel()

void Player::SaveHealthBeforeDuel ( )
inline

Definition at line 2445 of file Player.h.

Referenced by DuelResetScript::OnDuelStart().

◆ SaveInventoryAndGoldToDB()

◆ SaveManaBeforeDuel()

void Player::SaveManaBeforeDuel ( )
inline

Definition at line 2446 of file Player.h.

References POWER_MANA.

Referenced by DuelResetScript::OnDuelStart().

◆ SavePositionInDB()

◆ SaveRecallPosition()

◆ SaveToDB() [1/2]

◆ SaveToDB() [2/2]

void Player::SaveToDB ( LoginDatabaseTransaction  loginTransaction,
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 20397 of file Player.cpp.

References _garrison, _restMgr, _SaveActions(), _SaveAuras(), _SaveBGData(), _SaveCharacterBankTabSettings(), _SaveCharacterSelectOutfit(), _SaveCUFProfiles(), _SaveCurrency(), _SaveCustomizations(), _SaveDailyQuestStatus(), _SaveEquipmentSets(), _SaveGlyphs(), _SaveInventory(), _SaveMail(), _SaveMonthlyQuestStatus(), _SavePlayerData(), _SaveQuestStatus(), _SaveSeasonalQuestStatus(), _SaveSkills(), _SaveSpells(), _SaveStats(), _SaveStoredAuraTeleportLocations(), _SaveTalents(), _SaveTraits(), _SaveTransmogOutfits(), _SaveWeeklyQuestStatus(), AsUnderlyingType(), 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, DisableAutoSort, ExcludeJunkSell, GetActiveTalentGroup(), GetBankBagSlotCount(), WorldSession::GetBattlePetMgr(), GetCharacterBankTabCount(), Unit::GetClass(), WorldSession::GetCollectionMgr(), ObjectGuid::GetCounter(), GetDrunkValue(), GetDungeonDifficultyID(), GameTime::GetGameTime(), BaseEntity::GetGUID(), Unit::GetHealth(), GetHonorLevel(), WorldObject::GetInstanceId(), GetInventorySlotCount(), WorldSession::GetLatency(), GetLegacyRaidDifficultyID(), Unit::GetLevel(), GetLootSpecId(), WorldLocation::GetMapId(), ClientBuild::GetMinorMajorBugfixVersionForBuild(), GetMoney(), WorldObject::GetName(), GetNativeGender(), GetNumRespecs(), Position::GetOrientation(), GetPet(), GetPetStable(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetPrimarySpecialization(), Unit::GetRace(), GetRaidDifficultyID(), GetSession(), Unit::GetSpellHistory(), GetTalentResetCost(), GetTalentResetTime(), GetTeleportDest(), WorldObject::GetTransOffsetO(), WorldObject::GetTransOffsetX(), WorldObject::GetTransOffsetY(), WorldObject::GetTransOffsetZ(), WorldObject::GetTransport(), GetXP(), WorldObject::GetZoneId(), HasPlayerFlag(), IsBeingTeleported(), IsBeingTeleportedFar(), BaseEntity::IsInWorld(), WorldSession::isLogingOut(), Location, TeleportLocation::Location, LOGIN_DEL_BNET_LAST_PLAYER_CHARACTERS, LOGIN_INS_BNET_LAST_PLAYER_CHARACTERS, LoginDatabase, m_achievementMgr, m_activePlayerData, m_atLoginFlags, m_cinematic, m_createMode, m_createTime, m_deathExpireTime, m_ExtraFlags, m_fishingSteps, m_mailsUpdated, WorldObject::m_name, m_nextSave, m_Played_time, m_playerData, m_questObjectiveCriteriaMgr, m_reputationMgr, m_session, m_taxi, Unit::m_unitData, MAX_POWERS_PER_CLASS, None, outDebugValues(), PET_SAVE_AS_CURRENT, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_DATA_FLAG_EXPLORED_ZONES_INDEX, PLAYER_FLAGS_RESTING, Battlenet::RealmHandle::Realm, Battlenet::RealmHandle::Region, REST_TYPE_HONOR, REST_TYPE_XP, WorldSession::SaveInstanceTimeRestrictions(), WorldSession::SavePlayerDataAccount(), PlayerTaxi::SaveTaxiDestinationsToString(), SpellHistory::SaveToDB(), BattlePets::BattlePetMgr::SaveToDB(), CollectionMgr::SaveToDB(), WorldSession::SaveTutorialsData(), ScheduleDelayedOperation(), PreparedStatementBase::setBool(), PreparedStatementBase::setFloat(), PreparedStatementBase::setInt32(), PreparedStatementBase::setInt64(), PreparedStatementBase::setInt8(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), Battlenet::RealmHandle::Site, sRealmList, sScriptMgr, sWorld, TC_LOG_DEBUG, UI64LIT, 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 22259 of file Player.cpp.

References CHAT_MSG_SAY, CONFIG_LISTEN_RANGE_SAY, SendChatMessageToSetInRange(), sScriptMgr, and sWorld.

Referenced by WorldSession::HandleChatMessage().

◆ Say() [2/2]

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

Reimplemented from Unit.

Definition at line 22280 of file Player.cpp.

References CHAT_MSG_SAY, CONFIG_LISTEN_RANGE_SAY, and sWorld.

◆ ScheduleDelayedOperation()

void Player::ScheduleDelayedOperation ( uint32  operation)
inlineprivate

Definition at line 3347 of file Player.h.

References DELAYED_END.

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

◆ SellItemToVendor()

◆ SendActionButtons()

◆ SendAreaSpiritHealerTime() [1/2]

◆ SendAreaSpiritHealerTime() [2/2]

◆ SendAttackSwingCancelAttack()

void Player::SendAttackSwingCancelAttack ( ) const

◆ SendAurasForTarget()

◆ SendAutoRepeatCancel()

void Player::SendAutoRepeatCancel ( Unit *  target)

◆ SendBindPointUpdate()

◆ SendBuyError()

◆ SendCanTakeQuestResponse()

◆ SendChatMessageToSetInRange()

void Player::SendChatMessageToSetInRange ( ChatMsg  chatMsg,
Language  lanugageId,
std::string &&  text,
float  range 
)

Definition at line 22267 of file Player.cpp.

References Cell::VisitWorldObjects().

Referenced by Say(), and Yell().

◆ SendCinematicStart()

◆ SendCorpseReclaimDelay()

◆ SendCurrencies()

◆ SendDirectMessage()

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

Definition at line 6193 of file Player.cpp.

References m_session, and WorldSession::SendPacket().

Referenced by _LoadQuestStatus(), _StoreOrEquipNewItem(), Garrison::ActivateBuilding(), ActivateTalentGroup(), Garrison::AddFollower(), Guild::AddGuildNews(), Guild::AddMember(), Group::AddMember(), Battleground::AddPlayer(), AddSpell(), AddSpellMod(), ApplyArtifactPowerRank(), ApplyEquipCooldown(), ApplyEquipSpell(), BeforeVisibilityDestroy< Creature >(), BeforeVisibilityDestroy< GameObject >(), BeforeVisibilityDestroy< Player >(), Group::BroadcastAddonMessagePacket(), Guild::BroadcastAddonToGuild(), OutdoorPvP::BroadcastPacket(), Guild::BroadcastPacket(), Group::BroadcastPacket(), Guild::BroadcastPacketToRank(), Guild::BroadcastToGuild(), BuildPlayerRepop(), AuctionHouseObject::BuyCommodity(), Garrison::CancelBuildingConstruction(), CancelPendingCastRequest(), SceneMgr::CancelScene(), CastItemUseSpell(), CharmSpellInitialize(), CheckDuelDistance(), Unit::ClearBossEmotes(), Garrison::Plot::ClearBuildingInfo(), Garrison::Create(), InstanceMap::CreateInstanceLockForPlayer(), DailyReset(), Garrison::Delete(), BaseEntity::DestroyForPlayer(), DisablePetControlsOnMount(), Guild::Disband(), Group::Disband(), DoRandomRoll(), DuelComplete(), Spell::EffectApplyGlyph(), Spell::EffectApplyMountEquipment(), Spell::EffectDuel(), Spell::EffectGiveHonor(), Spell::EffectPlayMusic(), Spell::EffectTeleportUnits(), EnablePetControlsOnDismount(), Battleground::EndBattleground(), EquipItem(), BGQueueInviteEvent::Execute(), BGQueueRemoveEvent::Execute(), ExecutePendingSpellCastRequest(), Spell::finish(), Item::GiveArtifactXp(), GiveLevel(), GiveXP(), AzeriteItem::GiveXP(), AuraEffect::HandleAuraForceWeather(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleChatIgnoredOpcode(), spell_gen_spirit_healer_res::HandleDummy(), Unit::HandleEmoteCommand(), Guild::HandleInviteMember(), modify_commandscript::HandleModifySpellCommand(), WorldSession::HandlePartyInviteOpcode(), WorldSession::HandlePartyInviteResponseOpcode(), WorldSession::HandleQueryCountdownTimer(), WorldSession::HandleSendPingCooldown(), WorldSession::HandleSendPingUnit(), WorldSession::HandleSendPingWorldPoint(), IncreaseCurrencyCap(), InterruptPowerRegen(), BattlegroundQueue::InviteGroupToBG(), Garrison::LearnBlueprint(), Pet::learnSpell(), LearnSpell(), Channel::List(), ModifyCurrency(), OnGossipSelect(), Loot::OnLootOpened(), GameObject::OnLootRelease(), lfg::LFGPlayerScript::OnMapChanged(), AreaTrigger::ValuesUpdateForPlayerWithMaskSender::operator()(), Conversation::ValuesUpdateForPlayerWithMaskSender::operator()(), Corpse::ValuesUpdateForPlayerWithMaskSender::operator()(), Creature::ValuesUpdateForPlayerWithMaskSender::operator()(), DynamicObject::ValuesUpdateForPlayerWithMaskSender::operator()(), GameObject::ValuesUpdateForPlayerWithMaskSender::operator()(), AzeriteEmpoweredItem::ValuesUpdateForPlayerWithMaskSender::operator()(), AzeriteItem::ValuesUpdateForPlayerWithMaskSender::operator()(), Bag::ValuesUpdateForPlayerWithMaskSender::operator()(), Item::ValuesUpdateForPlayerWithMaskSender::operator()(), CombatLogSender::operator()(), Player::ValuesUpdateForPlayerWithMaskSender::operator()(), SceneObject::ValuesUpdateForPlayerWithMaskSender::operator()(), Trinity::PacketSenderRef::operator()(), Trinity::PacketSenderOwning< Packet >::operator()(), Trinity::ChatPacketSender::operator()(), CreatureTextLocalizer< Builder >::operator()(), Trinity::WorldWorldTextBuilder::MultiplePacketSender::operator()(), PauseMirrorTimer(), PetSpellInitialize(), Garrison::PlaceBuilding(), WorldObject::PlayDirectMusic(), WorldObject::PlayDirectSound(), WorldObject::PlayDistanceSound(), Battleground::PlayerAddedToBGCheckIfBGIsRunning(), WorldObject::PlayObjectSound(), SceneMgr::PlaySceneByTemplate(), PossessSpellInitialize(), Group::RemoveMember(), RemovePet(), Battleground::RemovePlayerAtLeave(), RemoveSpell(), RepopAtGraveyard(), ReportedAfkBy(), GuildAchievementMgr::Reset(), ResetCurrencyWeekCap(), ResetTalents(), ResetWeeklyQuestStatus(), ResurrectPlayer(), ResyncRunes(), RewardHonor(), SatisfyQuestLog(), GuildAchievementMgr::SendAchievementEarned(), PlayerAchievementMgr::SendAchievementInfo(), GuildAchievementMgr::SendAchievementMembers(), SendActionButtons(), GuildAchievementMgr::SendAllData(), LootRoll::SendAllPassed(), GuildAchievementMgr::SendAllTrackedCriterias(), SendAreaSpiritHealerTime(), SendAttackSwingCancelAttack(), AuctionHouseObject::SendAuctionOutbid(), AuctionHouseObject::SendAuctionWon(), SendAurasForTarget(), BattlegroundMgr::SendBattlegroundList(), SendBindPointUpdate(), Garrison::SendBlueprintAndSpecializationData(), Scenario::SendBootPlayer(), SendBuyError(), CalendarMgr::SendCalendarEvent(), SendCanTakeQuestResponse(), Spell::SendCastResult(), Spell::SendCastResult(), SendCinematicStart(), SendCorpseReclaimDelay(), Scenario::SendCriteriaUpdate(), SendCurrencies(), SendDisplayToast(), SendDungeonDifficulty(), SendEquipError(), SendEquipmentSetList(), Guild::SendEventNewLeader(), Guild::SendEventPlayerLeft(), SendExplorationExperience(), Weather::SendFineWeatherUpdateToPlayer(), SendForceSpawnTrackingUpdate(), SocialMgr::SendFriendStatus(), Guild::SendGuildRanksUpdate(), SendInitialPacketsAfterAddToMap(), SendInitialPacketsBeforeAddToMap(), ReputationMgr::SendInitialReputations(), Map::SendInitSelf(), Map::SendInitTransports(), SendInitWorldStates(), SendItemPassives(), SendItemRefundResult(), SendKnownSpells(), SendLoot(), SendLootError(), SendLootRelease(), SendLootReleaseAll(), LootRoll::SendLootRollWon(), SendMailResult(), Garrison::SendMapData(), SendMessageToSet(), SendMessageToSetInRange(), SendMessageToSetInRange(), SendMirrorTimer(), Spell::SendMountResult(), SendMovementSetCollisionHeight(), SendMovieStart(), SendNewItem(), SendNewMail(), SendNotifyLootItemRemoved(), SendNotifyLootMoneyRemoved(), ChannelMgr::SendNotOnChannelNotify(), SendOnCancelExpectedVehicleRideAura(), BaseEntity::SendOutOfRangeForPlayer(), PlayerAchievementMgr::SendPacket(), QuestObjectiveCriteriaMgr::SendPacket(), Scenario::SendPacket(), Unit::SendPetActionFeedback(), Unit::SendPetAIReaction(), Spell::SendPetCastResult(), WorldSession::SendPetitionSigns(), SendPlayerBound(), SendPlayerChoice(), SendProficiency(), SendPushToPartyResponse(), WorldSession::SendQueryPetNameResponse(), SendQuestComplete(), SendQuestConfirmAccept(), SendQuestFailed(), SendQuestGiverStatusMultiple(), SendQuestReward(), SendQuestTimerFailed(), SendQuestUpdateAddCredit(), SendQuestUpdateAddCreditSimple(), SendQuestUpdateAddItem(), SendQuestUpdateAddPlayer(), SendRaidDifficulty(), SendRaidGroupOnlyMessage(), SendRaidInfo(), SendRefundInfo(), Garrison::SendRemoteInfo(), SendRemoveControlBar(), Map::SendRemoveTransports(), OutdoorPvPHP::SendRemoveWorldStates(), OutdoorPvPNA::SendRemoveWorldStates(), OutdoorPvPSI::SendRemoveWorldStates(), OutdoorPvPTF::SendRemoveWorldStates(), OutdoorPvPZM::SendRemoveWorldStates(), SendResetFailedNotify(), SendResetInstanceFailed(), SendResetInstanceSuccess(), SendRespecWipeConfirm(), Spell::SendResurrectRequest(), LootRoll::SendRoll(), Scenario::SendScenarioState(), SendSellError(), World::SendServerMessage(), CollectionMgr::SendSingleMountUpdate(), PlayerSocial::SendSocialList(), SendSpellModifiers(), Trainer::Trainer::SendSpells(), LootRoll::SendStartRoll(), ReputationMgr::SendState(), SendSummonRequestFrom(), SendSupercededSpell(), SendTalentsInfoData(), SendTameFailure(), Trainer::Trainer::SendTeachFailure(), Item::SendTimeUpdate(), Trinity::VisibleNotifier::SendToSelf(), SendTransferAborted(), SendUnlearnSpells(), Group::SendUpdateDestroyGroupToPlayer(), Item::SendUpdateSockets(), BaseEntity::SendUpdateToPlayer(), Group::SendUpdateToPlayer(), SendUpdateWorldState(), ReputationMgr::SendVisible(), Weather::SendWeatherUpdateToPlayer(), Map::SendZoneDynamicInfo(), Map::SendZoneMessage(), Map::SendZoneWeather(), SetAttackSwingError(), SetBindPoint(), Garrison::Plot::SetBuildingInfo(), SetClientControl(), SetEquipmentSet(), GameObject::SetGoStateFor(), SetInventorySlotCount(), Unit::SetMovedUnit(), Item::SetNotRefundable(), Unit::SetOwnerGUID(), SetSkill(), Unit::SetStandState(), Scenario::SetStep(), SetTitle(), WorldObject::StopDistanceSound(), StopMirrorTimer(), TeleportTo(), SceneMgr::TriggerDelayedScenes(), Garrison::UnlearnBlueprint(), Pet::unlearnSpell(), GameObject::Update(), InstanceMap::UpdateInstanceLock(), InstanceMap::UpdateInstanceLock(), Group::UpdatePlayerOutOfRange(), UpdateQuestObjectiveProgress(), UpdateTriggerVisibility(), UpdateVisibilityOf(), UpdateVisibleObjectInteractions(), UpdateZone(), GameObject::Use(), VehicleSpellInitialize(), Whisper(), Unit::Whisper(), Unit::Whisper(), Whisper(), and WhisperAddon().

◆ SendDisplayToast()

◆ SendDungeonDifficulty()

◆ 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 13048 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, BaseEntity::GetGUID(), Item::GetItemLimitCategory(), Item::GetRequiredLevel(), WorldPackets::Item::InventoryChangeFailure::Item, WorldPackets::Item::InventoryChangeFailure::Level, WorldPackets::Item::InventoryChangeFailure::LimitCategory, SendDirectMessage(), sObjectMgr, and WorldPackets::Item::InventoryChangeFailure::Write().

Referenced by _StoreOrEquipNewItem(), Loot::AutoStore(), BuyCurrencyFromVendorSlot(), BuyItemFromVendorSlot(), CanAddQuest(), CanRewardQuest(), CanRewardQuest(), Spell::CheckItems(), Spell::DoCreateItem(), EquipChildItem(), GiveQuestSourceItem(), misc_commandscript::HandleAddItemSetCommand(), WorldSession::HandleAddToy(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoDepositCharacterBank(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoGuildBankItem(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleBuybackItem(), WorldSession::HandleBuyBankTab(), AuraEffect::HandleChannelDeathItem(), debug_commandscript::HandleDebugSendEquipErrorCommand(), WorldSession::HandleDestroyItemOpcode(), WorldSession::HandleMergeGuildBankItemWithItem(), WorldSession::HandleMergeItemWithGuildBankItem(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandlePetitionBuy(), WorldSession::HandleReadItem(), WorldSession::HandleSocketGems(), WorldSession::HandleSplitGuildBankItemToInventory(), WorldSession::HandleSplitItemOpcode(), WorldSession::HandleSplitItemToGuildBank(), WorldSession::HandleStoreGuildBankItem(), WorldSession::HandleSwapInvItemOpcode(), WorldSession::HandleSwapItem(), WorldSession::HandleSwapItemWithGuildBankItem(), WorldSession::HandleUseEquipmentSet(), WorldSession::HandleWrapItem(), ModifyMoney(), item_only_for_flight::OnUse(), item_captured_frog::OnUse(), item_gor_dreks_ointment::OnUse(), ProcessItemCast(), SplitItem(), StoreLootItem(), SwapItem(), and TakeQuestSourceItem().

◆ SendEquipmentSetList()

◆ SendExplorationExperience()

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

Definition at line 21808 of file Player.cpp.

References SendDirectMessage().

Referenced by CheckAreaExplore().

◆ SendForceSpawnTrackingUpdate()

◆ SendInitialActionButtons()

void Player::SendInitialActionButtons ( ) const
inline

Definition at line 2102 of file Player.h.

Referenced by SendInitialPacketsBeforeAddToMap().

◆ SendInitialPacketsAfterAddToMap()

void Player::SendInitialPacketsAfterAddToMap ( )

Definition at line 25024 of file Player.cpp.

References _garrison, WorldPackets::Vignette::VignetteUpdate::Added, Vignettes::CanSee(), CastSpell, ClearQuestSharingInfo(), WorldPackets::Vignette::VignetteUpdate::ForceUpdate, BaseEntity::GetGUID(), Map::GetInfiniteAOIVignettes(), WorldObject::GetMap(), GetPlayerSharingQuest(), GetSceneMgr(), GetSession(), GetSharedQuestID(), WorldObject::GetZoneAndAreaId(), HasAura, Unit::HasAuraType(), Unit::HasUnitState(), Unit::m_movementCounter, WorldPackets::Movement::MoveSetCompoundState::MoverGUID, PhasingHandler::OnMapChange(), PlayerTalkClass, SendAurasForTarget(), SendDirectMessage(), SendEnchantmentDurations(), SendItemDurations(), SendItemPassives(), WorldSession::SendLoadCUFProfiles(), SetClientControl(), SMSG_MOVE_DISABLE_GRAVITY, SMSG_MOVE_DISABLE_INERTIA, SMSG_MOVE_ENABLE_DOUBLE_JUMP, SMSG_MOVE_ROOT, SMSG_MOVE_SET_CAN_ADV_FLY, SMSG_MOVE_SET_CAN_FLY, SMSG_MOVE_SET_CAN_TURN_WHILE_FALLING, SMSG_MOVE_SET_FEATHER_FALL, SMSG_MOVE_SET_HOVERING, SMSG_MOVE_SET_IGNORE_MOVEMENT_FORCES, SMSG_MOVE_SET_WATER_WALK, sObjectMgr, SPELL_AURA_ADV_FLYING, SPELL_AURA_CAN_TURN_WHILE_FALLING, SPELL_AURA_DISABLE_GRAVITY, SPELL_AURA_DISABLE_INERTIA, SPELL_AURA_FEATHER_FALL, SPELL_AURA_FLY, SPELL_AURA_HOVER, SPELL_AURA_IGNORE_MOVEMENT_FORCES, SPELL_AURA_MOD_CONFUSE, SPELL_AURA_MOD_FEAR, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, SPELL_AURA_MOD_ROOT, SPELL_AURA_MOD_ROOT_2, SPELL_AURA_MOD_ROOT_DISABLE_GRAVITY, SPELL_AURA_MOD_STUN, SPELL_AURA_MOD_STUN_DISABLE_GRAVITY, SPELL_AURA_WATER_WALK, SPELL_DH_DOUBLE_JUMP, WorldPackets::Movement::MoveSetCompoundState::StateChanges, SceneMgr::TriggerDelayedScenes(), UNIT_STATE_CONFUSED, UNIT_STATE_FLEEING, UpdateItemLevelAreaBasedScaling(), UpdateVisibilityForPlayer(), UpdateZone(), WorldPackets::Movement::MoveSetCompoundState::Write(), WorldPackets::Vignette::VignetteUpdate::Write(), and ZoneInfiniteAOI.

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

◆ SendInitialPacketsBeforeAddToMap()

void Player::SendInitialPacketsBeforeAddToMap ( )

Pass 'this' as argument because we're not stored in ObjectAccessor yet

SMSG_BINDPOINTUPDATE

SMSG_TALENTS_INFO

SMSG_INITIAL_SPELLS

SMSG_SEND_UNLEARN_SPELLS

SMSG_SEND_SPELL_HISTORY

SMSG_SEND_SPELL_CHARGES

SMSG_ACTION_BUTTONS

SMSG_INITIALIZE_FACTIONS

SMSG_SETUP_CURRENCY

SMSG_EQUIPMENT_SET_LIST

SMSG_LOGIN_SETTIMESPEED

Todo:
Todo:

SMSG_WORLD_SERVER_INFO

Todo:

Definition at line 24905 of file Player.cpp.

References CONFIG_EXPANSION, WorldPackets::Misc::WorldServerInfo::DifficultyID, WorldPackets::Misc::LoginSetTimeSpeed::GameTime, WorldPackets::Misc::LoginSetTimeSpeed::GameTimeHolidayOffset, CollectionMgr::GetAccountHeirlooms(), CollectionMgr::GetAccountMounts(), CollectionMgr::GetAccountToys(), GetActiveTalentGroup(), WorldSession::GetCollectionMgr(), Map::GetDifficultyID(), GetGlyphs(), WorldObject::GetMap(), GetSession(), GetSocial(), Unit::GetSpellHistory(), CollectionMgr::GetWarbandScenes(), GameTime::GetWowTime(), WorldPackets::Talent::ActiveGlyphs::Glyphs, HasSpell(), WorldPackets::Misc::AccountHeirloomUpdate::Heirlooms, WorldPackets::Misc::WorldServerInfo::InstanceGroupSize, WorldPackets::Misc::AccountHeirloomUpdate::IsFullUpdate, WorldPackets::Misc::AccountMountUpdate::IsFullUpdate, WorldPackets::Misc::AccountWarbandSceneUpdate::IsFullUpdate, WorldPackets::Talent::ActiveGlyphs::IsFullUpdate, WorldPackets::Toy::AccountToyUpdate::IsFullUpdate, WorldPackets::Misc::WorldServerInfo::IsTournamentRealm, m_achievementMgr, Unit::m_movementCounter, m_overrideSpells, m_questObjectiveCriteriaMgr, m_reputationMgr, m_teleport_options, WorldPackets::Misc::AccountMountUpdate::Mounts, WorldPackets::Misc::LoginSetTimeSpeed::NewSpeed, WorldSession::ResetTimeSync(), sDB2Manager, SendBindPointUpdate(), SendCurrencies(), SendDirectMessage(), SendEquipmentSetList(), CollectionMgr::SendFavoriteAppearances(), SendInitialActionButtons(), SendKnownSpells(), PlayerSocial::SendSocialList(), SendSpellModifiers(), SendTalentsInfoData(), WorldSession::SendTimeSync(), SendUnlearnSpells(), WorldPackets::Character::InitialSetup::ServerExpansionLevel, WorldPackets::Misc::LoginSetTimeSpeed::ServerTime, WorldPackets::Misc::LoginSetTimeSpeed::ServerTimeHolidayOffset, Unit::SetMovedUnit(), SOCIAL_FLAG_ALL, sWorld, TELE_TO_SEAMLESS, WorldPackets::Toy::AccountToyUpdate::Toys, WorldPackets::Misc::AccountWarbandSceneUpdate::WarbandScenes, WorldPackets::Character::InitialSetup::Write(), WorldPackets::Misc::LoginSetTimeSpeed::Write(), WorldPackets::Misc::WorldServerInfo::Write(), WorldPackets::Misc::AccountHeirloomUpdate::Write(), WorldPackets::Misc::AccountMountUpdate::Write(), WorldPackets::Misc::AccountWarbandSceneUpdate::Write(), WorldPackets::Spells::SendSpellHistory::Write(), WorldPackets::Spells::SendSpellCharges::Write(), WorldPackets::Talent::ActiveGlyphs::Write(), WorldPackets::Toy::AccountToyUpdate::Write(), and SpellHistory::WritePacket().

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

◆ SendInitialVisiblePackets()

◆ SendInitWorldStates()

◆ SendItemDurations()

void Player::SendItemDurations ( )

Definition at line 13819 of file Player.cpp.

References m_itemDuration.

Referenced by SendInitialPacketsAfterAddToMap().

◆ SendItemPassives()

◆ SendItemRefundResult()

◆ SendItemRetrievalMail()

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

◆ SendKnownSpells()

◆ SendLoot()

◆ SendLootError()

◆ SendLootRelease()

◆ SendLootReleaseAll()

void Player::SendLootReleaseAll ( ) const

Definition at line 9070 of file Player.cpp.

References SendDirectMessage().

Referenced by WorldSession::HandleLogoutRequestOpcode(), and StoreLootItem().

◆ SendMailResult()

◆ SendMessageToSet() [1/2]

void Player::SendMessageToSet ( WorldPacket const *  data,
bool  self 
) const
inlineoverridevirtual

◆ SendMessageToSet() [2/2]

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

Reimplemented from WorldObject.

Definition at line 6181 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 6161 of file Player.cpp.

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

Referenced by WorldSession::HandleTextEmoteOpcode(), and TextEmote().

◆ SendMessageToSetInRange() [2/2]

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

Definition at line 6171 of file Player.cpp.

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

◆ SendMirrorTimer()

void Player::SendMirrorTimer ( MirrorTimerType  type,
int32  value,
int32  maxValue,
int32  scale,
int32  spellId,
bool  paused 
)
protected

Definition at line 597 of file Player.cpp.

References SendDirectMessage().

Referenced by UpdateMirrorTimers().

◆ SendMovementSetCollisionHeight()

◆ SendMovieStart()

◆ SendNewItem()

void Player::SendNewItem ( Item *  item,
uint32  quantity,
bool  pushed,
bool  created,
bool  broadcast = false,
uint32  dungeonEncounterId = 0 
)

Definition at line 13835 of file Player.cpp.

References WorldPackets::Item::ItemPushResult::BattlePetBreedID, WorldPackets::Item::ItemPushResult::BattlePetBreedQuality, WorldPackets::Item::ItemPushResult::BattlePetLevel, WorldPackets::Item::ItemPushResult::BattlePetSpeciesID, Group::BroadcastPacket(), WorldPackets::Item::ItemPushResult::ChatNotifyType, WorldPackets::Item::ItemPushResult::Created, WorldPackets::Item::ItemPushResult::DISPLAY_TYPE_ENCOUNTER_LOOT, WorldPackets::Item::ItemPushResult::DISPLAY_TYPE_NORMAL, WorldPackets::Item::ItemPushResult::EncounterID, Item::GetBagSlot(), Item::GetCount(), Object::GetEntry(), GetGroup(), BaseEntity::GetGUID(), GetItemCount(), Item::GetModifier(), GetQuestObjectiveData(), GetQuestObjectiveForItem(), Item::GetSlot(), Item::GetTemplate(), ItemTemplate::HasFlag(), WorldPackets::Item::ItemInstance::Initialize(), WorldPackets::Item::ItemPushResult::IsPersonalLoot, WorldPackets::Item::ItemPushResult::Item, ITEM_FLAG3_DONT_REPORT_LOOT_LOG_TO_PARTY, ITEM_MODIFIER_BATTLE_PET_BREED_DATA, ITEM_MODIFIER_BATTLE_PET_LEVEL, ITEM_MODIFIER_BATTLE_PET_SPECIES_ID, WorldPackets::Item::ItemPushResult::ItemGUID, WorldPackets::Item::ItemPushResult::PlayerGUID, WorldPackets::Item::ItemPushResult::ProxyItemID, WorldPackets::Item::ItemPushResult::Pushed, WorldPackets::Item::ItemPushResult::Quantity, WorldPackets::Item::ItemPushResult::QuantityInInventory, WorldPackets::Item::ItemPushResult::QuantityInQuestLog, ItemTemplate::QuestLogItemId, SendDirectMessage(), WorldPackets::Item::ItemPushResult::Slot, WorldPackets::Item::ItemPushResult::SlotInBag, and WorldPackets::Item::ItemPushResult::Write().

Referenced by _StoreOrEquipNewItem(), AddItem(), Loot::AutoStore(), BattlePets::BattlePetMgr::CageBattlePet(), quest_commandscript::CompleteObjective(), Spell::DoCreateItem(), Spell::EffectSummonChangeItem(), GiveQuestSourceItem(), misc_commandscript::HandleAddItemCommandHelper(), misc_commandscript::HandleAddItemSetCommand(), WorldSession::HandleAutostoreLootItemOpcode(), AuraEffect::HandleChannelDeathItem(), OPvPCapturePointNA::HandleCustomSpell(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandlePetitionBuy(), npc_tyrande_whisperwind::npc_tyrande_whisperwindAI::OnGossipSelect(), RefundItem(), RemovePet(), RewardQuest(), RewardQuestPackage(), npc_verdisa_beglaristrasz_eternos::StoreEssence(), and StoreLootItem().

◆ SendNewMail()

void Player::SendNewMail ( ) const

◆ SendNotifyLootItemRemoved()

void Player::SendNotifyLootItemRemoved ( ObjectGuid  lootObj,
ObjectGuid  owner,
uint8  lootListId 
) const

◆ SendNotifyLootMoneyRemoved()

void Player::SendNotifyLootMoneyRemoved ( ObjectGuid  lootObj) const

◆ SendOnCancelExpectedVehicleRideAura()

void Player::SendOnCancelExpectedVehicleRideAura ( ) const

Definition at line 22413 of file Player.cpp.

References SendDirectMessage().

Referenced by VehicleJoinEvent::Execute(), and AuraEffect::HandleAuraSetVehicle().

◆ SendPlayerBound()

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

◆ SendPlayerChoice()

void Player::SendPlayerChoice ( ObjectGuid  sender,
int32  choiceId 
)

Definition at line 30097 of file Player.cpp.

References PlayerChoiceResponse::Answer, WorldPackets::Quest::PlayerChoiceResponse::Answer, EnumFlag< T >::AsUnderlyingType(), PlayerChoiceResponse::ButtonTooltip, WorldPackets::Quest::PlayerChoiceResponse::ButtonTooltip, PlayerChoiceResponse::ChoiceArtFileId, WorldPackets::Quest::PlayerChoiceResponse::ChoiceArtFileID, WorldPackets::Quest::DisplayPlayerChoice::ChoiceID, PlayerChoice::CloseSoundKitId, WorldPackets::Quest::DisplayPlayerChoice::CloseUISoundKitID, PlayerChoiceResponse::Confirmation, WorldPackets::Quest::PlayerChoiceResponse::Confirmation, DEFAULT_LOCALE, PlayerChoiceResponse::Description, WorldPackets::Quest::PlayerChoiceResponse::Description, PlayerChoice::Duration, WorldPackets::Quest::DisplayPlayerChoice::ExpireTime, PlayerChoiceResponse::Flags, WorldPackets::Quest::PlayerChoiceResponse::Flags, ObjectMgr::GetLocaleString(), GetSession(), WorldSession::GetSessionDbLocaleIndex(), GameTime::GetSystemTime(), PlayerChoiceResponse::GroupID, WorldPackets::Quest::PlayerChoiceResponse::GroupID, WorldPackets::Quest::DisplayPlayerChoice::HasPowerChoice, PlayerChoiceResponse::Header, WorldPackets::Quest::PlayerChoiceResponse::Header, PlayerChoice::HideAnswerArt, WorldPackets::Quest::DisplayPlayerChoice::HideAnswerArt, PlayerChoice::HideWarboardHeader, WorldPackets::Quest::DisplayPlayerChoice::HideWarboardHeader, PlayerChoice::InfiniteRange, WorldPackets::Quest::DisplayPlayerChoice::InfiniteRange, WorldPackets::Quest::PlayerChoiceResponseRewardEntry::Item, WorldPackets::Item::ItemInstance::ItemBonus, WorldPackets::Item::ItemInstance::ItemID, PlayerChoice::KeepOpenAfterChoice, WorldPackets::Quest::DisplayPlayerChoice::KeepOpenAfterChoice, Trinity::Containers::MapGetValuePtr(), PlayerChoiceResponse::MawPower, WorldPackets::Quest::PlayerChoiceResponse::MawPower, PlayerChoice::MaxResponses, WorldPackets::Quest::PlayerChoiceResponseMawPower::MaxStacks, PlayerChoice, PlayerTalkClass, WorldPackets::Quest::PlayerChoiceResponseRewardEntry::Quantity, PlayerChoiceLocale::Question, PlayerChoice::Question, WorldPackets::Quest::DisplayPlayerChoice::Question, WorldPackets::Quest::PlayerChoiceResponseMawPower::Rarity, PlayerChoice::RequiresSelection, WorldPackets::Quest::DisplayPlayerChoice::RequiresSelection, PlayerChoiceResponse::ResponseId, WorldPackets::Quest::PlayerChoiceResponse::ResponseID, WorldPackets::Quest::PlayerChoiceResponse::ResponseIdentifier, PlayerChoiceLocale::Responses, PlayerChoice::Responses, WorldPackets::Quest::DisplayPlayerChoice::Responses, PlayerChoiceResponse::Reward, WorldPackets::Quest::PlayerChoiceResponse::Reward, PlayerChoiceResponse::RewardQuestID, WorldPackets::Quest::PlayerChoiceResponse::RewardQuestID, sConditionMgr, SendDirectMessage(), WorldPackets::Quest::DisplayPlayerChoice::SenderGUID, PlayerChoice::ShowChoicesAsColumns, WorldPackets::Quest::DisplayPlayerChoice::ShowChoicesAsColumns, PlayerChoice::ShowChoicesAsGrid, WorldPackets::Quest::DisplayPlayerChoice::ShowChoicesAsGrid, PlayerChoice::ShowChoicesAsList, WorldPackets::Quest::DisplayPlayerChoice::ShowChoicesAsList, sObjectMgr, PlayerChoiceResponse::SoundKitID, PlayerChoice::SoundKitId, WorldPackets::Quest::PlayerChoiceResponse::SoundKitID, WorldPackets::Quest::DisplayPlayerChoice::SoundKitID, WorldPackets::Quest::PlayerChoiceResponseMawPower::SpellID, PlayerChoiceResponse::SubHeader, WorldPackets::Quest::PlayerChoiceResponse::SubHeader, WorldPackets::Quest::PlayerChoiceResponseMawPower::TypeArtFileID, PlayerChoiceResponse::UiTextureAtlasElementID, WorldPackets::Quest::PlayerChoiceResponse::UiTextureAtlasElementID, PlayerChoiceResponse::UiTextureKitID, PlayerChoice::UiTextureKitId, WorldPackets::Quest::PlayerChoiceResponse::UiTextureKitID, WorldPackets::Quest::DisplayPlayerChoice::UiTextureKitID, PlayerChoiceResponse::WidgetSetID, WorldPackets::Quest::PlayerChoiceResponse::WidgetSetID, and WorldPackets::Quest::DisplayPlayerChoice::Write().

Referenced by Spell::EffectLaunchQuestChoice(), and debug_commandscript::HandleDebugSendPlayerChoiceCommand().

◆ SendPreparedGossip()

◆ SendPreparedQuest()

◆ SendProficiency()

◆ SendPushToPartyResponse()

◆ SendPvpRewards()

void Player::SendPvpRewards ( ) const

Send conquest currency points and their cap week/arena.

Definition at line 7014 of file Player.cpp.

Referenced by WorldSession::HandleRequestPvpReward().

◆ SendQuestComplete()

void Player::SendQuestComplete ( uint32  questId) const

◆ SendQuestConfirmAccept()

◆ SendQuestFailed()

◆ SendQuestGiverStatusMultiple()

◆ SendQuestReward()

◆ SendQuestTimerFailed()

void Player::SendQuestTimerFailed ( uint32  questId) const

◆ SendQuestUpdate()

void Player::SendQuestUpdate ( uint32  questId,
bool  updateInteractions = true,
bool  updateGameObjectQuestGiverStatus = false 
)

◆ SendQuestUpdateAddCredit()

◆ SendQuestUpdateAddCreditSimple()

◆ SendQuestUpdateAddItem()

◆ SendQuestUpdateAddPlayer()

◆ SendRaidDifficulty()

◆ SendRaidGroupOnlyMessage()

◆ SendRaidInfo()

◆ SendRefundInfo()

◆ SendRemoveControlBar()

void Player::SendRemoveControlBar ( ) const

Definition at line 22570 of file Player.cpp.

References SendDirectMessage(), and WorldPackets::Pet::PetSpells::Write().

Referenced by Unit::RemoveCharmedBy().

◆ SendResetFailedNotify()

void Player::SendResetFailedNotify ( uint32  mapid) const

◆ SendResetInstanceFailed()

◆ SendResetInstanceSuccess()

void Player::SendResetInstanceSuccess ( uint32  MapId) const

◆ SendRespecWipeConfirm()

◆ SendRespondInspectAchievements()

void Player::SendRespondInspectAchievements ( Player *  player) const

Definition at line 27501 of file Player.cpp.

References m_achievementMgr.

Referenced by WorldSession::HandleQueryInspectAchievements().

◆ SendSellError()

◆ SendSpellModifiers()

◆ SendSummonRequestFrom()

◆ SendSupercededSpell()

◆ SendTalentsInfoData()

◆ SendTameFailure()

◆ SendTransferAborted()

◆ SendUnlearnSpells()

void Player::SendUnlearnSpells ( )

◆ SendUpdateToOutOfRangeGroupMembers()

void Player::SendUpdateToOutOfRangeGroupMembers ( )

Definition at line 25118 of file Player.cpp.

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

Referenced by Heartbeat().

◆ SendUpdateWorldState()

◆ SetAcceptWhispers()

void Player::SetAcceptWhispers ( bool  on)
inline

◆ SetAccountBankTabCount()

void Player::SetAccountBankTabCount ( uint8  count)
inline

◆ SetAccountBankTabSettings()

void Player::SetAccountBankTabSettings ( uint32  tabId,
std::string const &  name,
std::string const &  icon,
std::string const &  description,
BagSlotFlags  depositFlags 
)
inline

◆ SetAccountSecured()

void Player::SetAccountSecured ( bool  secured)

◆ SetActiveCombatTraitConfigID()

void Player::SetActiveCombatTraitConfigID ( int32  traitConfigId)
inline

◆ SetActiveTalentGroup()

void Player::SetActiveTalentGroup ( uint8  group)
inline

Definition at line 1996 of file Player.h.

Referenced by ActivateTalentGroup(), Create(), LoadFromDB(), and ResetTalentSpecialization().

◆ SetAdvancedCombatLogging()

void Player::SetAdvancedCombatLogging ( bool  enabled)
inline

Definition at line 2871 of file Player.h.

Referenced by WorldSession::HandleSetAdvancedCombatLogging().

◆ SetAreaSpiritHealer()

◆ SetArenaFaction()

void Player::SetArenaFaction ( uint8  arenaFaction)
inline

Definition at line 2935 of file Player.h.

References UF::PlayerData::ArenaFaction, and m_playerData.

Referenced by SetBGTeam().

◆ SetArenaTeamIdInvited()

void Player::SetArenaTeamIdInvited ( uint32  ArenaTeamId)
inline

Definition at line 2160 of file Player.h.

Referenced by ArenaTeam::AddMember().

◆ SetArenaTeamInfoField()

◆ SetAtLoginFlag()

void Player::SetAtLoginFlag ( AtLoginFlags  f)
inline

Definition at line 2710 of file Player.h.

◆ SetAttackSwingError()

void Player::SetAttackSwingError ( Optional< AttackSwingErr >  err)

◆ SetAverageItemLevel()

void Player::SetAverageItemLevel ( float  newItemLevel,
AvgItemLevelCategory  category 
)
inline

Definition at line 2905 of file Player.h.

References UF::PlayerData::AvgItemLevel, and m_playerData.

Referenced by UpdateAverageItemLevelEquipped().

◆ SetBackpackAutoSortDisabled()

void Player::SetBackpackAutoSortDisabled ( bool  disabled)
inline

◆ SetBackpackSellJunkDisabled()

void Player::SetBackpackSellJunkDisabled ( bool  disabled)
inline

◆ SetBagSlotFlag()

void Player::SetBagSlotFlag ( uint32  bagIndex,
EnumFlag< BagSlotFlags >  flags 
)
inline

◆ SetBankAutoSortDisabled()

void Player::SetBankAutoSortDisabled ( bool  disabled)
inline

◆ SetBankBagSlotCount()

void Player::SetBankBagSlotCount ( uint8  count)
inline

Definition at line 1487 of file Player.h.

References m_activePlayerData, and UF::ActivePlayerData::NumBankSlots.

Referenced by LoadFromDB().

◆ SetBankTabSettings()

void Player::SetBankTabSettings ( UF::MutableFieldReferenceWithChangesMask< UF::BankTabSettings, false >  setter,
std::string const &  name,
std::string const &  icon,
std::string const &  description,
BagSlotFlags  depositFlags 
)
inline

◆ SetBaseModFlatValue()

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

Definition at line 4887 of file Player.cpp.

References m_auraBaseFlatMod, and UpdateBaseModGroup().

Referenced by UpdateWeaponDependentCritAuras().

◆ SetBaseModPctValue()

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

◆ SetBattlegroundEntryPoint()

◆ SetBattlegroundId()

◆ SetBattlegroundOrBattlefieldRaid()

◆ SetBattlePetData()

◆ SetBeenGrantedLevelsFromRaF()

void Player::SetBeenGrantedLevelsFromRaF ( )
inline

Definition at line 1307 of file Player.h.

References PLAYER_EXTRA_GRANTED_LEVELS_FROM_RAF.

◆ SetBGTeam()

◆ SetBindPoint()

◆ SetBuybackPrice()

void Player::SetBuybackPrice ( uint32  slot,
uint32  price 
)
inline

◆ SetBuybackTimestamp()

void Player::SetBuybackTimestamp ( uint32  slot,
time_t  timestamp 
)
inline

◆ SetCanBlock()

void Player::SetCanBlock ( bool  value)

Definition at line 26850 of file Player.cpp.

References m_canBlock, and UpdateBlockPercentage().

Referenced by Spell::EffectBlock().

◆ SetCanDelayTeleport()

void Player::SetCanDelayTeleport ( bool  setting)
inlineprivate

Definition at line 3346 of file Player.h.

Referenced by RewardQuest(), and Update().

◆ SetCanParry()

void Player::SetCanParry ( bool  value)

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

Referenced by AuraEffect::HandleAuraDummy().

◆ SetCharacterBankTabCount()

void Player::SetCharacterBankTabCount ( uint8  count)
inline

◆ SetCharacterBankTabSettings()

void Player::SetCharacterBankTabSettings ( uint32  tabId,
std::string const &  name,
std::string const &  icon,
std::string const &  description,
BagSlotFlags  depositFlags 
)
inline

◆ SetChosenTitle()

◆ setCinematic()

void Player::setCinematic ( uint8  cine)
inline

Definition at line 2094 of file Player.h.

Referenced by WorldSession::HandlePlayerLogin().

◆ SetClientControl()

◆ SetCommandStatusOff()

◆ SetCommandStatusOn()

◆ SetContestedPvP()

◆ SetContestedPvPTimer()

void Player::SetContestedPvPTimer ( uint32  newTime)
inline

Definition at line 2122 of file Player.h.

Referenced by SetContestedPvP().

◆ SetCreateCurrency()

void Player::SetCreateCurrency ( uint32  id,
uint32  amount 
)

Initialize currency amount for custom initialization at create character.

Definition at line 7020 of file Player.cpp.

References _currencyStorage, and PLAYERCURRENCY_NEW.

◆ SetCurrencyFlagsFromClient()

void Player::SetCurrencyFlagsFromClient ( uint32  id,
CurrencyDbFlags  flags 
)

◆ SetCurrentBattlePetBreedQuality()

void Player::SetCurrentBattlePetBreedQuality ( uint8  battlePetBreedQuality)
inline

Definition at line 2937 of file Player.h.

References UF::PlayerData::CurrentBattlePetBreedQuality, and m_playerData.

Referenced by SetBattlePetData().

◆ SetCurrentCombatTraitConfigSubTreeID()

void Player::SetCurrentCombatTraitConfigSubTreeID ( int32  traitSubTreeId)
inline

◆ SetCustomizations()

template<typename Iter >
void Player::SetCustomizations ( Trinity::IteratorPair< Iter >  customizations,
bool  markChanged = true 
)
inline

◆ SetDailyQuestStatus()

◆ SetDataElementAccount()

◆ SetDataElementCharacter()

◆ SetDataFlagAccount()

◆ SetDataFlagCharacter()

◆ setDeathState()

◆ SetDeveloper()

void Player::SetDeveloper ( bool  on)
inline

Definition at line 1290 of file Player.h.

References PLAYER_FLAGS_DEVELOPER.

Referenced by misc_commandscript::HandleDevCommand().

◆ SetDrunkValue()

◆ SetDuelArbiter()

void Player::SetDuelArbiter ( ObjectGuid  guid)
inline

Definition at line 2130 of file Player.h.

References UF::PlayerData::DuelArbiter, and m_playerData.

Referenced by DuelComplete(), and Spell::EffectDuel().

◆ SetDuelTeam()

void Player::SetDuelTeam ( uint32  duelTeam)
inline

Definition at line 2131 of file Player.h.

References UF::PlayerData::DuelTeam, and m_playerData.

Referenced by DuelComplete(), and UpdateDuelFlag().

◆ SetDungeonDifficultyID()

void Player::SetDungeonDifficultyID ( Difficulty  dungeon_difficulty)
inline

◆ SetEmpowerMinHoldStagePercent()

void Player::SetEmpowerMinHoldStagePercent ( float  empowerMinHoldStagePercent)
inline

Definition at line 2071 of file Player.h.

Referenced by WorldSession::HandleSetEmpowerMinHoldStagePercent().

◆ SetEquipmentSet()

◆ SetFactionForRace()

◆ SetFallInformation()

◆ SetFreePrimaryProfessions()

void Player::SetFreePrimaryProfessions ( uint16  profs)
inline

◆ SetGameMaster()

◆ SetGMChat()

void Player::SetGMChat ( bool  on)
inline

Definition at line 1298 of file Player.h.

References PLAYER_EXTRA_GM_CHAT.

Referenced by LoadFromDB().

◆ SetGMVisible()

◆ SetGroup()

◆ SetGroupInvite()

void Player::SetGroupInvite ( Group *  group)
inline

Definition at line 2780 of file Player.h.

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

◆ SetGroupUpdateFlag()

void Player::SetGroupUpdateFlag ( uint32  flag)
inline

◆ SetGuildIdInvited()

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

◆ SetGuildLevel()

void Player::SetGuildLevel ( uint32  level)
inline

◆ SetGuildRank()

void Player::SetGuildRank ( uint8  rankId)
inline

◆ SetHasClaimedFreeTransmog()

void Player::SetHasClaimedFreeTransmog ( )
inline

◆ SetHasLevelBoosted()

void Player::SetHasLevelBoosted ( )
inline

Definition at line 1309 of file Player.h.

References PLAYER_EXTRA_LEVEL_BOOSTED.

◆ SetHasRaceChanged()

void Player::SetHasRaceChanged ( )
inline

Definition at line 1305 of file Player.h.

References PLAYER_EXTRA_HAS_RACE_CHANGED.

◆ SetHeirloom()

void Player::SetHeirloom ( uint32  slot,
int32  itemId 
)
inline

Definition at line 2944 of file Player.h.

References UF::ActivePlayerData::Heirlooms, and m_activePlayerData.

Referenced by CollectionMgr::CheckHeirloomUpgrades().

◆ SetHeirloomFlags()

void Player::SetHeirloomFlags ( uint32  slot,
uint32  flags 
)
inline

◆ SetHomebind()

◆ SetHonorLevel()

◆ SetInArenaTeam()

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

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

Referenced by WorldSession::HandlePlayerLogin().

◆ SetInGuild()

◆ SetInventorySlotCount()

◆ SetInviteForBattlegroundQueueType()

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

◆ SetInvSlot()

◆ SetKnownTitles()

void Player::SetKnownTitles ( uint32  index,
uint64  mask 
)
inline

◆ SetLastPetNumber()

void Player::SetLastPetNumber ( uint32  petnumber)
inline

Definition at line 2772 of file Player.h.

Referenced by Pet::LoadPetFromDB().

◆ SetLegacyRaidDifficultyID()

void Player::SetLegacyRaidDifficultyID ( Difficulty  raid_difficulty)
inline

◆ SetLootGUID()

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

Definition at line 2247 of file Player.h.

References UF::PlayerData::LootTargetGUID, and m_playerData.

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

◆ SetLootSpecId()

void Player::SetLootSpecId ( uint32  id)
inline

◆ SetMap()

void Player::SetMap ( Map *  map)
overridevirtual

◆ SetMercenaryForBattlegroundQueueType()

void Player::SetMercenaryForBattlegroundQueueType ( BattlegroundQueueTypeId  bgQueueTypeId,
bool  mercenary 
)

◆ SetModDamageDonePercent()

void Player::SetModDamageDonePercent ( uint8  school,
float  pct 
)
inline

Definition at line 2202 of file Player.h.

References m_activePlayerData, and UF::ActivePlayerData::ModDamageDonePercent.

◆ SetMoney()

◆ SetMonthlyQuestStatus()

void Player::SetMonthlyQuestStatus ( uint32  quest_id)

Definition at line 25526 of file Player.cpp.

References m_MonthlyQuestChanged, and m_monthlyquests.

Referenced by RewardQuest().

◆ SetMovie()

void Player::SetMovie ( uint32  movie)
inline

Definition at line 2097 of file Player.h.

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

◆ SetMultiActionBars()

void Player::SetMultiActionBars ( uint8  mask)
inline

◆ SetNativeGender()

void Player::SetNativeGender ( Gender  gender)
inlineoverridevirtual

◆ SetNoRegentCostMask()

void Player::SetNoRegentCostMask ( flag128  mask)
inline

◆ SetNumRespecs()

void Player::SetNumRespecs ( uint8  numRespecs)
inline

◆ SetObjectScale()

◆ SetOriginalGroup()

◆ SetOverrideSpellsId()

void Player::SetOverrideSpellsId ( int32  overrideSpellsId)
inline

◆ SetOverrideZonePVPType()

void Player::SetOverrideZonePVPType ( ZonePVPTypeOverride  type)
inline

◆ SetPartyType()

◆ SetPassOnGroupLoot()

void Player::SetPassOnGroupLoot ( bool  bPassOnGroupLoot)
inline

Definition at line 2805 of file Player.h.

Referenced by WorldSession::HandleOptOutOfLootOpcode().

◆ SetPendingBind()

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

◆ SetPersonalTabard()

◆ SetPetSlot()

◆ SetPetSpellPower()

void Player::SetPetSpellPower ( uint32  spellPower)
inline

Definition at line 2244 of file Player.h.

References m_activePlayerData, and UF::ActivePlayerData::PetSpellPower.

◆ SetPlayerFlag()

◆ SetPlayerFlagEx()

void Player::SetPlayerFlagEx ( PlayerFlagsEx  flags)
inline

◆ SetPlayerLocalFlag()

◆ SetPrimarySpecialization()

void Player::SetPrimarySpecialization ( uint32  spec)
inline

◆ SetPvP()

void Player::SetPvP ( bool  state)
overridevirtual

Reimplemented from Unit.

Definition at line 24049 of file Player.cpp.

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

Referenced by BattlefieldTB::OnPlayerJoinWar(), SetWarModeDesired(), and UpdatePvP().

◆ SetPvPDeath()

void Player::SetPvPDeath ( bool  on)
inline

Definition at line 1303 of file Player.h.

References PLAYER_EXTRA_PVP_DEATH.

Referenced by CreateCorpse().

◆ SetPvpTitle()

void Player::SetPvpTitle ( uint8  pvpTitle)
inline

Definition at line 2934 of file Player.h.

References m_playerData, and UF::PlayerData::PvpTitle.

◆ SetQuestCompletedBit()

◆ SetQuestObjectiveData()

◆ SetQuestSharingInfo()

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

◆ SetQuestSlot()

◆ SetQuestSlotCounter()

◆ SetQuestSlotEndTime()

void Player::SetQuestSlotEndTime ( uint16  slot,
time_t  endTime 
)

◆ SetQuestSlotObjectiveFlag()

◆ SetQuestSlotState()

◆ 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)

◆ SetRecentInstance()

void Player::SetRecentInstance ( uint32  mapId,
uint32  instanceId 
)
inline

Definition at line 2756 of file Player.h.

Referenced by MapManager::CreateMap().

◆ setRegenTimerCount()

void Player::setRegenTimerCount ( uint32  time)
inline

Definition at line 1887 of file Player.h.

Referenced by AuraEffect::HandleAuraTransform().

◆ SetRegularAttackTime()

void Player::SetRegularAttackTime ( )

◆ SetReputation()

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

Definition at line 29484 of file Player.cpp.

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

◆ SetRequiredMountCapabilityFlag()

void Player::SetRequiredMountCapabilityFlag ( uint8  flag)
inline

◆ SetRestState()

void Player::SetRestState ( RestTypes  type,
PlayerRestState  state 
)
inline

◆ SetRestThreshold()

void Player::SetRestThreshold ( RestTypes  type,
uint32  threshold 
)
inline

◆ SetResurrectRequestData()

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

◆ SetRewardedQuest()

void Player::SetRewardedQuest ( uint32  quest_id)

◆ SetRuneCooldown()

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

◆ SetSaveTimer()

void Player::SetSaveTimer ( uint32  timer)
inline

Definition at line 2665 of file Player.h.

◆ SetSeasonalQuestStatus()

void Player::SetSeasonalQuestStatus ( uint32  quest_id)

◆ SetSeer()

void Player::SetSeer ( WorldObject *  target)
inline

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

References Unit::m_unitData, and UF::UnitData::Target.

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

◆ SetSkill()

void Player::SetSkill ( uint32  id,
uint16  step,
uint16  newVal,
uint16  maxVal 
)

Definition at line 5654 of file Player.cpp.

References AchieveSkillStep, AURA_EFFECT_HANDLE_SKILL, CanStoreItem(), EQUIP_ERR_OK, ERR_INV_FULL, FindEmptyProfessionSlotFor(), Unit::GetAuraEffectsByType(), Unit::GetClass(), BaseEntity::GetGUID(), GetItemByPos(), WorldObject::GetName(), GetProfessionSlotFor(), GetPureSkillValue(), Unit::GetRace(), GetSkillLineIdByPos(), GetSkillRankByPos(), GetSkillStep(), HasSkill(), INVENTORY_SLOT_BAG_0, LearnSkillRewardedSpells(), m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), mSkillStatus, NULL_BAG, NULL_SLOT, SkillLineEntry::ParentSkillLineID, SkillLineEntry::ParentTierIndex, PLAYER_MAX_SKILLS, PROFESSION_SLOT_MAX_COUNT, PROFESSION_SLOT_PROFESSION1_TOOL, UF::ActivePlayerData::ProfessionSkillLine, RemoveItem(), RemoveSpell(), sDB2Manager, SendDirectMessage(), SetSkill(), SetSkillLineId(), SetSkillMaxRank(), SetSkillPermBonus(), SetSkillRank(), SetSkillStartingRank(), SetSkillStep(), SetSkillTempBonus(), BaseEntity::SetUpdateFieldValue(), SKILL_CHANGED, SKILL_DELETED, SKILL_NEW, SKILL_RIDING, SKILL_UNCHANGED, SkillRaised, sObjectMgr, SPELL_AURA_MOD_SKILL, SPELL_AURA_MOD_SKILL_2, SPELL_AURA_MOD_SKILL_TALENT, sSkillLineStore, sSpellMgr, StoreItem(), TC_LOG_ERROR, Position::ToString(), UpdateCriteria(), Unit::UpdateMountCapability(), and UpdateSkillEnchantments().

Referenced by _LoadSkills(), AddSpell(), Spell::EffectLearnSkill(), Spell::EffectSkill(), learn_commandscript::HandleLearnAllRecipesCommand(), misc_commandscript::HandleSetSkillCommand(), WorldSession::HandleUnlearnSkillOpcode(), LearnDefaultSkill(), RemoveSpell(), and 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()

void Player::SetSkillRank ( uint32  pos,
uint16  rank 
)
inline

◆ SetSkillStartingRank()

void Player::SetSkillStartingRank ( uint32  pos,
uint16  starting 
)
inline

◆ SetSkillStep()

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

Definition at line 2368 of file Player.h.

References m_activePlayerData, UF::ActivePlayerData::Skill, and UF::SkillInfo::SkillStep.

Referenced by _LoadSkills(), and SetSkill().

◆ SetSkillTempBonus()

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

◆ SetSpellFavorite()

void Player::SetSpellFavorite ( uint32  spellId,
bool  favorite 
)

◆ SetSpellModTakingSpell()

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

Definition at line 22967 of file Player.cpp.

References m_spellModTakingSpell.

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

◆ SetStableMaster()

◆ SetSummonedBattlePetGUID()

void Player::SetSummonedBattlePetGUID ( ObjectGuid  guid)
inline

Definition at line 2980 of file Player.h.

References m_activePlayerData, and UF::ActivePlayerData::SummonedBattlePetGUID.

Referenced by SetBattlePetData().

◆ SetTalentResetCost()

void Player::SetTalentResetCost ( uint32  cost)
inline

Definition at line 1990 of file Player.h.

Referenced by IncreaseResetTalentsCostAndCounters(), and LoadFromDB().

◆ SetTalentResetTime()

void Player::SetTalentResetTime ( time_t  time_)
inline

Definition at line 1992 of file Player.h.

Referenced by IncreaseResetTalentsCostAndCounters(), and LoadFromDB().

◆ SetTarget()

void Player::SetTarget ( ObjectGuid const &  )
inlineoverridevirtual

Implements Unit.

Definition at line 1905 of file Player.h.

◆ SetTaxiCheater()

void Player::SetTaxiCheater ( bool  on)
inline

◆ SetTeleportState()

void Player::SetTeleportState ( TeleportState  state)
inline

◆ SetTemporaryUnsummonedPetNumber()

void Player::SetTemporaryUnsummonedPetNumber ( uint32  petnumber)
inline

Definition at line 2721 of file Player.h.

Referenced by Pet::LoadPetFromDB().

◆ SetTitle()

◆ SetTrackCreatureFlag()

void Player::SetTrackCreatureFlag ( uint32  flags)
inline

◆ SetTraitConfigUseSharedActionBars()

◆ SetTraitConfigUseStarterBuild()

◆ SetTransportServerTime()

void Player::SetTransportServerTime ( int32  transportServerTime)
inline

◆ SetVersatilityBonus()

void Player::SetVersatilityBonus ( float  value)
inline

Definition at line 2985 of file Player.h.

References m_activePlayerData, and UF::ActivePlayerData::VersatilityBonus.

◆ SetViewpoint()

◆ SetVirtualPlayerRealm()

void Player::SetVirtualPlayerRealm ( uint32  virtualRealmAddress)
inline

Definition at line 2936 of file Player.h.

References m_playerData, and UF::PlayerData::VirtualPlayerRealm.

Referenced by WorldSession::HandlePlayerLogin().

◆ SetVisibleForcedReaction()

◆ SetVisibleItemSlot()

void Player::SetVisibleItemSlot ( uint8  slot,
Item const *  item 
)

Definition at line 11748 of file Player.cpp.

References UF::TransmogOutfitSlotData::AppearanceDisplayType, ArtifactSpecFour, ArtifactSpecOne, Assigned, AsUnderlyingType(), CanTitanGrip(), UF::VisibleItem::ConditionalItemAppearanceID, Default, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, Equipped, FuryTwoHandedWeapon, GetPrimarySpecializationEntry(), TransmogOutfitSlotInfoEntry::GetSlot(), TransmogMgr::GetSlotAndOption(), Item::GetTemplate(), Item::GetVisibleAppearanceModId(), Item::GetVisibleEntry(), Item::GetVisibleItemVisual(), Item::GetVisibleModifiedAppearanceId(), Item::GetVisibleSecondaryModifiedAppearanceId(), ItemTemplate::GetWeaponTransmogOutfitSlotOption(), UF::VisibleItem::HasIllusion, UF::VisibleItem::HasTransmog, Hidden, TransmogHolidayEntry::ID, UF::TransmogOutfitSlotData::IllusionDisplayType, IsHolidayActive(), UF::VisibleItem::ItemAppearanceModID, UF::VisibleItem::ItemID, UF::VisibleItem::ItemModifiedAppearanceID, UF::TransmogOutfitSlotData::ItemModifiedAppearanceID, UF::VisibleItem::ItemVisual, m_activePlayerData, m_playerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), None, ChrSpecializationEntry::OrderIndex, TransmogHolidayEntry::RequiredTransmogHoliday, UF::VisibleItem::SecondaryItemModifiedAppearanceID, TransmogOutfitSlotOptionEntry::SecondaryOptionID, TransmogOutfitSlotInfoEntry::SecondarySlotID, BaseEntity::SetUpdateFieldValue(), UF::VisibleItem::SheatheCategory, UF::TransmogOutfitSlotData::SheatheCategory, sItemModifiedAppearanceStore, TransmogMgr::TransmogOutfitSlotAndOptionInfo::Slot, TransmogMgr::TransmogOutfitSlotAndOptionInfo::SlotIndex, TransmogMgr::TransmogOutfitSlotAndOptionInfo::SlotOption, UF::TransmogOutfitSlotData::SpellItemEnchantmentID, sSpellItemEnchantmentStore, UF::TransmogOutfitMetadata::StampedOptionMainHand, UF::TransmogOutfitMetadata::StampedOptionOffHand, sTransmogHolidayStore, sTransmogOutfitSlotInfoStore, sTransmogOutfitSlotOptionInfoStore, UF::ActivePlayerData::TransmogMetadata, UF::VisibleItem::TransmogSlotOption, TwoHandedWeapon, and UF::PlayerData::VisibleItems.

Referenced by ActivateTalentGroup(), DestroyItem(), Spell::EffectApplyEnchantIllusion(), EquipTransmogOutfit(), WorldSession::HandleArtifactSetAppearance(), WorldSession::HandleTransmogrifyItems(), RemoveItem(), and VisualizeItem().

◆ SetWarModeDesired()

◆ SetWarModeLocal()

void Player::SetWarModeLocal ( bool  enabled)

◆ SetWatchedFactionIndex()

void Player::SetWatchedFactionIndex ( int32  index)
inline

◆ setWeaponChangeTimer()

void Player::setWeaponChangeTimer ( uint32  time)
inline

Definition at line 1888 of file Player.h.

◆ SetWeeklyQuestStatus()

void Player::SetWeeklyQuestStatus ( uint32  quest_id)

Definition at line 25510 of file Player.cpp.

References m_WeeklyQuestChanged, and m_weeklyquests.

Referenced by RewardQuest().

◆ SetXP()

◆ SkipQuests()

◆ SpawnCorpseBones()

◆ SplitItem()

◆ StartCriteria()

◆ StartLoadingActionButtons()

◆ StartTaxiMovement()

void Player::StartTaxiMovement ( uint32  mountDisplayId,
uint32  path,
uint32  pathNode,
Optional< float >  speed,
Scripting::v2::ActionResultSetter< MovementStopReason > &&  scriptResult 
)

◆ StopCastingBindSight()

◆ StopCastingCharm()

◆ StopMirrorTimer()

void Player::StopMirrorTimer ( MirrorTimerType  type)
protected

Definition at line 607 of file Player.cpp.

References SendDirectMessage().

Referenced by UpdateMirrorTimers().

◆ StoreItem()

◆ StoreLootItem()

◆ StoreNewItem()

Item * Player::StoreNewItem ( ItemPosCountVec const &  pos,
uint32  itemId,
bool  update,
ItemRandomBonusListId  randomBonusListId = 0,
GuidSet const &  allowedLooters = GuidSet(),
ItemContext  context = ItemContext::NONE,
std::vector< int32 > const *  bonusListIDs = nullptr,
bool  addToCollection = true 
)

Definition at line 11288 of file Player.cpp.

References AcquireItem, AddTradeableItem(), BonusData::CannotTradeBindOnPickup, CanStoreItem_InInventorySlots(), CHAR_INS_ITEM_BOP_TRADE, CharacterDatabase, CHILD_EQUIPMENT_SLOT_END, CHILD_EQUIPMENT_SLOT_START, Item::CreateItem(), Item::GetBonus(), WorldSession::GetCollectionMgr(), ObjectGuid::GetCounter(), BaseEntity::GetGUID(), ItemTemplate::GetInventoryType(), Unit::GetLevel(), ItemTemplate::GetMaxStackSize(), GetSession(), Item::GetTemplate(), GetTotalPlayedTime(), ItemTemplate::HasFlag(), INVTYPE_NON_EQUIP, Item::IsSoulBound(), ITEM_FIELD_FLAG_CHILD, ITEM_FIELD_FLAG_NEW_ITEM, ITEM_FLAG2_CAN_TRADE_BIND_ON_ACQUIRE, ItemAddedQuestCheck(), NULL_BAG, NULL_SLOT, ObtainAnyItem, CollectionMgr::OnItemAdded(), sDB2Manager, Item::SetBonuses(), Item::SetChildItem(), Item::SetCreatePlayedTime(), Item::SetFixedLevel(), Item::SetItemFlag(), Item::SetItemRandomBonusList(), Item::SetSoulboundTradeable(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt64(), sObjectMgr, StoreItem(), StoreNewItem(), UpdateAverageItemLevelTotal(), and UpdateCriteria().

Referenced by _StoreOrEquipNewItem(), AddItem(), Loot::AutoStore(), BattlePets::BattlePetMgr::CageBattlePet(), quest_commandscript::CompleteObjective(), Spell::DoCreateItem(), GiveQuestSourceItem(), misc_commandscript::HandleAddItemCommandHelper(), misc_commandscript::HandleAddItemSetCommand(), AuraEffect::HandleChannelDeathItem(), OPvPCapturePointNA::HandleCustomSpell(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandlePetitionBuy(), item_mysterious_egg::OnExpire(), item_disgusting_jar::OnExpire(), npc_tyrande_whisperwind::npc_tyrande_whisperwindAI::OnGossipSelect(), npc_erozion::OnGossipSelect(), RefundItem(), RemovePet(), RewardQuest(), RewardQuestPackage(), npc_verdisa_beglaristrasz_eternos::StoreEssence(), StoreLootItem(), StoreNewItem(), and StoreNewItemInBestSlots().

◆ StoreNewItemInBestSlots()

◆ SummonIfPossible()

◆ SummonPet()

◆ SwapItem()

void Player::SwapItem ( uint16  src,
uint16  dst 
)

Definition at line 12567 of file Player.cpp.

References ApplyItemDependentAuras(), AutoUnequipChildItem(), AutoUnequipOffhandIfNeed(), BankItem(), CanBankItem(), CanEquipChildItem(), CanEquipItem(), CanStoreItem(), CanUnequipItem(), WorldSession::DoLootReleaseAll(), EQUIP_ERR_BAG_IN_BAG, EQUIP_ERR_CANT_SWAP, EQUIP_ERR_OK, EQUIP_ERR_PLAYER_DEAD, EquipChildItem(), EquipItem, GetAELootView(), Bag::GetBagSize(), Item::GetChildItem(), Item::GetCount(), Object::GetEntry(), BaseEntity::GetGUID(), GetItemByGuid(), GetItemByPos(), Bag::GetItemByPos(), GetLootByWorldObjectGUID(), ItemTemplate::GetMaxStackSize(), WorldObject::GetName(), Item::GetTemplate(), Item::HasItemFlag(), INVENTORY_SLOT_BAG_0, Unit::IsAlive(), Item::IsBag(), IsBagPos(), IsBankPos(), Bag::IsEmpty(), ObjectGuid::IsEmpty(), IsEquipmentPos(), IsInventoryPos(), BaseEntity::IsInWorld(), ITEM_CHANGED, ITEM_FIELD_FLAG_CHILD, ItemAddedQuestCheck(), ItemCanGoIntoBag(), ItemRemovedQuestCheck(), Item::m_itemData, m_session, REAGENT_BAG_SLOT_END, RemoveItem(), Bag::RemoveItem(), SendEquipError(), SendRefundInfo(), BaseEntity::SendUpdateToPlayer(), Item::SetCount(), Item::SetState(), StoreItem(), Bag::StoreItem(), SwapItem(), TC_LOG_DEBUG, Item::ToBag(), and Position::ToString().

Referenced by WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoEquipItemSlotOpcode(), misc_commandscript::HandleItemMoveCommand(), WorldSession::HandleSwapInvItemOpcode(), WorldSession::HandleSwapItem(), WorldSession::HandleUseEquipmentSet(), and SwapItem().

◆ TakeQuestSourceItem()

◆ TalkedToCreature()

◆ TeamForRace()

◆ TeamIdForRace()

◆ TeleportTo() [1/3]

bool Player::TeleportTo ( TeleportLocation const &  teleportLocation,
TeleportToOptions  options = TELE_TO_NONE,
uint32  teleportSpellId = 0 
)

Definition at line 1191 of file Player.cpp.

References CLASS_DEATH_KNIGHT, Unit::CombatStop(), MapEntry::CosmeticParentMapID, DelayedTeleport, DelayedWorldPort, DISABLE_TYPE_MAP, Unit::DisableSpline(), duel, DUEL_FLED, DuelComplete(), ObjectGuid::Empty, Unit::ExitVehicle(), MapEntry::Expansion(), GetBattleground(), Unit::GetClass(), Map::GetEntry(), Unit::GetGameObject(), BaseEntity::GetGUID(), WorldObject::GetInstanceId(), WorldObject::GetMap(), WorldLocation::GetMapId(), Unit::GetMotionMaster(), WorldObject::GetName(), GetPet(), Unit::GetPlayerMovingMe(), Position::GetPosition(), Position::GetPosition(), Position::GetPositionZ(), GetSession(), GetTeleportState(), WorldObject::GetTransport(), Unit::GetUnitMovementFlags(), WorldObject::GetVisibilityRange(), HasSpell(), WorldPackets::Movement::ShipTransferPending::ID, InBattleground(), Initiated, TeleportLocation::InstanceId, Unit::InterruptNonMeleeSpells(), MotionMaster::InterruptOnTeleport(), Unit::IsAlive(), MapEntry::IsBattleArena(), MapEntry::IsBattlegroundOrArena(), IsBeingTeleportedNear(), IsCanDelayTeleport(), DisableMgr::IsDisabledFor(), IsGameMaster(), BaseEntity::IsInWorld(), Unit::IsNonMeleeSpellCast(), MapManager::IsValidMapCoord(), WorldObject::IsWithinDist3d(), LeaveBattleground, TeleportLocation::Location, Unit::m_movementCounter, WorldObject::m_movementInfo, m_newWorldCounter, m_playerData, m_teleport_dest, m_teleport_options, m_teleportSpellId, Unit::m_vehicle, WorldPackets::Movement::TransferPending::MapID, MOVEMENTFLAG_MASK_HAS_PLAYER_STATUS_OPCODE, Moving, NotTeleporting, WorldPackets::Movement::TransferPending::OldMapPosition, WorldPackets::Movement::ShipTransferPending::OriginMapID, Map::PlayerCannotEnter(), WorldSession::PlayerLogout(), rbac::RBAC_PERM_SKIP_CHECK_DISABLE_MAP, WorldPackets::Movement::SuspendToken::Reason, Unit::RemoveAllAreaTriggers(), Unit::RemoveAllDynObjects(), Unit::RemoveArenaAuras(), RemoveArenaSpellCooldowns(), Unit::RemoveAurasWithInterruptFlags(), Map::RemovePlayerFromMap(), RepopAtGraveyard(), ResetContestedPvP(), MovementInfo::ResetJump(), ResurrectPlayer(), SendDirectMessage(), Unit::SendTeleportPacket(), SendTransferAborted(), WorldPackets::Movement::SuspendToken::SequenceIndex, SetFallInformation(), SetSelection(), SetTeleportState(), Unit::SetUnitMovementFlags(), WorldPackets::Movement::TransferPending::Ship, sMapStore, sTransportMgr, 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_SEAMLESS, TELE_TO_SPELL, Position::ToString(), TRANSFER_ABORT_INSUF_EXPAN_LVL, TRANSFER_ABORT_MAP_NOT_ALLOWED, TRANSFER_ABORT_UNIQUE_MESSAGE, WorldPackets::Movement::TransferPending::TransferSpellID, TeleportLocation::TransportGuid, Turning, UnsummonPetTemporaryIfAny(), UpdatePosition(), WaitingForSuspendTokenResponse, WaitingForTeleportAck, WorldPackets::Movement::TransferPending::Write(), and WorldPackets::Movement::SuspendToken::Write().

◆ TeleportTo() [2/3]

bool Player::TeleportTo ( uint32  mapid,
float  x,
float  y,
float  z,
float  orientation,
TeleportToOptions  options = TELE_TO_NONE,
Optional< uint32 >  instanceId = {},
uint32  teleportSpellId = 0 
)

Definition at line 1181 of file Player.cpp.

References TeleportTo(), and WorldLocation::WorldLocation().

Referenced by ActivateTaxiPathTo(), FlightPathMovementGenerator::DoFinalize(), go_commandscript::DoTeleport(), Spell::EffectStuck(), Spell::EffectTeleportUnits(), Garrison::Enter(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), go_commandscript::HandleGoBossCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoInstanceCommand(), go_commandscript::HandleGoQuestCommand(), 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(), Garrison::Leave(), npc_tb_spirit_guide::OnGossipSelect(), npc_wg_spirit_guide::OnGossipSelect(), lfg::LFGPlayerScript::OnMapChanged(), BattlefieldWG::OnPlayerJoinWar(), transport_seething_shore::OnRemovePassenger(), at_icc_saurfang_portal::OnTrigger(), Battlefield::PlayerAskToLeave(), Map::RemoveAllPlayers(), RepopAtGraveyard(), ResurrectUsingRequestData(), WorldSession::SendSpiritResurrect(), BattlegroundMgr::SendToBattleground(), SummonIfPossible(), lfg::LFGMgr::TeleportPlayer(), Battleground::TeleportPlayerToExploitLocation(), Ticket::TeleportTo(), TeleportTo(), TeleportTo(), TeleportToBGEntryPoint(), battleground_strand_of_the_ancients::TeleportToEntrancePosition(), Update(), and GameObject::Use().

◆ TeleportTo() [3/3]

bool Player::TeleportTo ( WorldLocation const &  loc,
TeleportToOptions  options = TELE_TO_NONE,
Optional< uint32 >  instanceId = {},
uint32  teleportSpellId = 0 
)

Definition at line 1186 of file Player.cpp.

References TeleportTo().

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

References CHAT_MSG_EMOTE, CONFIG_LISTEN_RANGE_TEXTEMOTE, and sWorld.

◆ ToggleAFK()

◆ ToggleDND()

void Player::ToggleDND ( )

◆ ToggleMetaGemsActive()

◆ TogglePvpTalents()

void Player::TogglePvpTalents ( bool  enable)

◆ TradeCancel()

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

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

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

◆ UnlockReagentBank()

void Player::UnlockReagentBank ( )
inline

Definition at line 2864 of file Player.h.

References PLAYER_FLAGS_EX_REAGENT_BANK_UNLOCKED.

◆ UnsummonBattlePetTemporaryIfAny()

◆ UnsummonPetTemporaryIfAny()

◆ Update()

void Player::Update ( uint32  time)
overridevirtual

Reimplemented from Unit.

Definition at line 886 of file Player.cpp.

References _cinematicMgr, _pendingBindId, _pendingBindTimer, _restMgr, Unit::AIUpdateTick(), BuildPlayerRepop(), CanExecutePendingSpellCastRequest(), CheckDuelDistance(), CINEMATIC_UPDATEDIFF, ConfirmPendingBind(), DelayedTeleport, DelayedWorldPort, Unit::DoMeleeAttackIfReady(), CombatManager::EndCombatBeyondRange(), ExecutePendingSpellCastRequest(), FailQuest(), Unit::GetAura(), Unit::GetCombatManager(), GetDrunkValue(), GameTime::GetGameTime(), GameTime::GetGameTimeMS(), BaseEntity::GetGUID(), WorldObject::GetInstanceId(), WorldObject::GetMap(), GetMSTimeDiffToNow(), WorldObject::GetName(), GetPet(), GetSession(), GetTeleportState(), WorldObject::GetVisibilityRange(), HandleSobering(), Unit::HasAuraType(), HasPendingBind(), HasPlayerFlag(), IN_MILLISECONDS, Unit::IsAlive(), BaseEntity::IsInWorld(), Unit::isPossessed(), WorldObject::IsWithinDistInMap(), JUST_DIED, KillPlayer(), LOGIN_UPD_MUTE_TIME, LoginDatabase, m_achievementMgr, Unit::m_deathState, m_deathTimer, m_drunkTimer, m_hostileReferenceCheckTimer, m_Last_tick, WorldSession::m_muteTime, m_nextMailDelivereTime, m_nextSave, m_Played_time, m_QuestStatus, m_QuestStatusSave, Unit::m_regenTimer, m_teleport_dest, m_teleport_options, m_teleportSpellId, m_timedquests, m_weaponChangeTimer, NotTeleporting, PET_SAVE_NOT_IN_SLOT, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_FLAGS_RESTING, QUEST_DEFAULT_SAVE_TYPE, RegenerateAll(), RemovePet(), RepopAtGraveyard(), SaveToDB(), SendNewMail(), SetCanDelayTeleport(), PreparedStatementBase::setInt64(), SetPendingBind(), PreparedStatementBase::setString(), SetTeleportState(), PreparedStatementBase::setUInt32(), SPELL_AURA_PREVENT_RESURRECTION, SPELL_PVP_RULES_ENABLED, TC_LOG_DEBUG, TeleportTo(), QuestStatusData::Timer, Position::ToString(), unReadMails, Unit::Update(), UpdateAfkReport(), UpdateContestedPvP(), UpdateDuelFlag(), UpdateEnchantTime(), UpdateHomebindTime(), UpdateItemDuration(), UpdateMirrorTimers(), UpdatePvPFlag(), and UpdateSoulboundTradeItems().

Referenced by Map::Update().

◆ UpdateAfkReport()

void Player::UpdateAfkReport ( time_t  currTime)

checks the 15 afk reports per 5 minutes limit

Definition at line 21924 of file Player.cpp.

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

Referenced by Update().

◆ UpdateAllCritPercentages()

void Player::UpdateAllCritPercentages ( )

◆ UpdateAllRatings()

void Player::UpdateAllRatings ( )

Definition at line 5376 of file Player.cpp.

References MAX_COMBAT_RATING, and UpdateRating().

Referenced by UpdateAllStats().

◆ UpdateAllStats()

◆ UpdateAllWeaponDependentCritAuras()

void Player::UpdateAllWeaponDependentCritAuras ( )

◆ UpdateArea()

◆ UpdateAreaDependentAuras()

◆ UpdateArmor()

◆ UpdateArmorPenetration()

◆ UpdateAttackPowerAndDamage()

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

◆ UpdateAverageItemLevelEquipped()

◆ UpdateAverageItemLevelTotal()

◆ UpdateBaseModGroup()

◆ UpdateBlockPercentage()

◆ UpdateContestedPvP()

void Player::UpdateContestedPvP ( uint32  currTime)

Definition at line 21958 of file Player.cpp.

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

Referenced by Update().

◆ UpdateCorpseReclaimDelay()

◆ UpdateCorruption()

◆ UpdateCraftSkill()

◆ UpdateCriteria()

void Player::UpdateCriteria ( CriteriaType  type,
uint64  miscValue1 = 0,
uint64  miscValue2 = 0,
uint64  miscValue3 = 0,
WorldObject *  ref = nullptr 
)

Definition at line 27532 of file Player.cpp.

References GetGuildId(), WorldObject::GetScenario(), CriteriaMgr::IsGroupCriteriaType(), m_achievementMgr, m_questObjectiveCriteriaMgr, and sGuildMgr.

Referenced by KillRewarder::_RewardKillCredit(), Garrison::ActivateBuilding(), ActivateTaxiPathTo(), Garrison::AddFollower(), CollectionMgr::AddHeirloom(), CollectionMgr::AddItemAppearance(), BattlePets::BattlePetMgr::AddPet(), AddSpell(), BuyItemFromVendorSlot(), CheckAreaExplore(), PlayerAchievementMgr::CompletedAchievement(), Scenario::CompleteScenario(), Unit::DealDamage(), FlightPathMovementGenerator::DoUpdate(), InstanceScript::DoUpdateCriteria(), DuelComplete(), Battleground::EndBattleground(), Arena::EndBattleground(), EnvironmentalDamage(), EquipItem(), EquipNewItem(), lfg::LFGMgr::FinishDungeon(), Item::GiveArtifactXp(), GiveLevel(), AzeriteItem::GiveXP(), BattlePets::BattlePetMgr::GrantBattlePetExperience(), BattlePets::BattlePetMgr::GrantBattlePetLevel(), WorldSession::HandleAlterAppearance(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleArtifactAddPower(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleBuyBankTab(), HandleFall(), WorldSession::HandleGameobjectReportUse(), Battleground::HandleKillPlayer(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandlePlayerLogin(), WorldSession::HandleQuestLogRemoveQuest(), reset_commandscript::HandleResetHonorCommand(), WorldSession::HandleSendMail(), WorldSession::HandleTextEmoteOpcode(), IncreaseResetTalentsCostAndCounters(), Unit::Kill(), KilledMonsterCredit(), ModifyCurrency(), ArenaTeamMember::ModifyPersonalRating(), MoveItemToInventory(), Garrison::PlaceBuilding(), LootRoll::PlayerVote(), QuickEquipItem(), RewardHonor(), RewardQuest(), SellItemToVendor(), AuctionHouseObject::SendAuctionSold(), AuctionHouseObject::SendAuctionWon(), WorldSession::SendLearnNewTaxiNode(), InstanceScript::SetBossState(), setDeathState(), SetHonorLevel(), SetMoney(), ReputationMgr::SetOneFactionReputation(), SetSkill(), StoreLootItem(), StoreNewItem(), SummonIfPossible(), GameEvents::TriggerForPlayer(), UpdateArea(), UpdateSkillPro(), UpdateZone(), and GameObject::Use().

◆ UpdateCritPercentage()

◆ UpdateDamageDoneMods()

◆ UpdateDodgePercentage()

◆ UpdateDuelFlag()

void Player::UpdateDuelFlag ( time_t  currTime)

Definition at line 21993 of file Player.cpp.

References duel, DUEL_STATE_COUNTDOWN, DUEL_STATE_IN_PROGRESS, SetDuelTeam(), and sScriptMgr.

Referenced by Update().

◆ UpdateEnchantTime()

void Player::UpdateEnchantTime ( uint32  time)

Definition at line 13272 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,
uint32  opcode 
)

◆ UpdateFishingSkill()

◆ UpdateGatherSkill()

◆ UpdateHealingDonePercentMod()

◆ UpdateHomebindTime()

◆ UpdateHonorFields()

◆ UpdateHonorNextLevel()

◆ UpdateHostileAreaState()

◆ UpdateIndoorsOutdoorsAuras()

◆ UpdateInventorySlotCount()

◆ UpdateInvisibilityDrunkDetect()

◆ UpdateItemDuration()

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

◆ UpdateItemLevelAreaBasedScaling()

◆ UpdateLiquidMirrorTimerFlagsOnPositionChange()

◆ UpdateLiquidMirrorTimerValuesOnAura()

void Player::UpdateLiquidMirrorTimerValuesOnAura ( )

◆ UpdateLocalChannels()

◆ UpdateMastery()

◆ UpdateMaxHealth()

◆ UpdateMaxPower()

◆ UpdateMeleeHitChances()

void Player::UpdateMeleeHitChances ( )

Definition at line 761 of file StatSystem.cpp.

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

Referenced by UpdateRating().

◆ UpdateMirrorTimers()

◆ 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

◆ UpdatePowerRegen()

◆ UpdatePvP()

◆ UpdatePvPFlag()

void Player::UpdatePvPFlag ( time_t  currTime)

◆ UpdatePvPState()

◆ UpdateQuestObjectiveProgress()

void Player::UpdateQuestObjectiveProgress ( QuestObjectiveType  objectiveType,
int32  objectId,
int64  addCount,
ObjectGuid  victimGuid = ObjectGuid::Empty,
std::vector< QuestObjective const * > *  updatedObjectives = nullptr,
std::function< bool(QuestObjective const *)> const *  objectiveFilter = nullptr 
)

Definition at line 16704 of file Player.cpp.

References ABORT_MSG, QuestObjective::Amount, AsUnderlyingType(), QuestObjective::CanAlwaysBeProgressedInRaid(), CanCompleteQuest(), CastSpell, CompleteQuest, QuestObjective::CompletionEffect, QuestObjectiveAction::ConversationId, Conversation::CreateConversation(), QuestObjective::Flags, QuestObjective::Flags2, QuestObjectiveAction::GameEventId, WorldObject::GetAreaId(), ObjectAccessor::GetCreatureOrPetOrVehicle(), GetCurrencyQuantity(), GetDifficultyID(), GetEffectiveTeam(), ObjectAccessor::GetGameObject(), GetGroup(), BaseEntity::GetGUID(), WorldObject::GetMap(), GetMoney(), Quest::GetObjectives(), ObjectAccessor::GetPlayer(), Position::GetPosition(), GetQuestSlotObjectiveData(), ReputationMgr::GetReputation(), GetReputationMgr(), GetSpawnTrackingStateByObjectives(), WorldObject::GetZoneId(), Quest::HasFlagEx(), SpawnData::id, QuestObjective::ID, IncompleteQuest(), Quest::IsAllowedInRaid(), ObjectGuid::IsCreatureOrVehicle(), ObjectGuid::IsEmpty(), ObjectGuid::IsGameObject(), IsQuestObjectiveCompletable(), IsQuestObjectiveComplete(), IsQuestObjectiveProgressBarComplete(), Group::isRaidGroup(), QuestObjective::IsStoringFlag(), QuestObjective::IsStoringValue(), m_questObjectiveStatus, Trinity::Containers::MapEqualRange(), WorldPackets::Quest::SpawnTrackingResponseInfo::ObjectID, PhasingHandler::OnConditionChange(), SpawnData::phaseGroup, WorldPackets::Quest::SpawnTrackingResponseInfo::PhaseGroupID, SpawnData::phaseId, WorldPackets::Quest::SpawnTrackingResponseInfo::PhaseID, SpawnData::phaseUseFlags, WorldPackets::Quest::SpawnTrackingResponseInfo::PhaseUseFlags, QUEST_FLAGS_EX_NO_CREDIT_FOR_PROXY, QUEST_OBJECTIVE_CURRENCY, QUEST_OBJECTIVE_FLAG_2_QUEST_BOUND_ITEM, QUEST_OBJECTIVE_FLAG_HIDE_CREDIT_MSG, QUEST_OBJECTIVE_FLAG_KILL_PLAYERS_SAME_FACTION, QUEST_OBJECTIVE_FLAG_OPTIONAL, QUEST_OBJECTIVE_FLAG_PART_OF_PROGRESS_BAR, QUEST_OBJECTIVE_GAMEOBJECT, QUEST_OBJECTIVE_ITEM, QUEST_OBJECTIVE_LEARNSPELL, QUEST_OBJECTIVE_MAX_REPUTATION, QUEST_OBJECTIVE_MIN_REPUTATION, QUEST_OBJECTIVE_MONEY, QUEST_OBJECTIVE_MONSTER, QUEST_OBJECTIVE_PLAYERKILLS, QUEST_OBJECTIVE_PROGRESS_BAR, QUEST_OBJECTIVE_TALKTO, QUEST_OBJECTIVE_WINPETBATTLEAGAINSTNPC, QUEST_STATUS_COMPLETE, SendDirectMessage(), SendQuestUpdateAddCredit(), SendQuestUpdateAddCreditSimple(), SendQuestUpdateAddPlayer(), SetQuestObjectiveData(), sObjectMgr, SPAWN_TYPE_CREATURE, SPAWN_TYPE_GAMEOBJECT, SpawnMetadata::spawnTrackingData, SpawnTrackingTemplateData::SpawnTrackingId, WorldPackets::Quest::SpawnTrackingResponseInfo::SpawnTrackingID, QuestStatusData::SpawnTrackingList, SpawnMetadata::spawnTrackingQuestObjectives, WorldPackets::Quest::QuestPOIUpdateResponse::SpawnTrackingResponses, SpawnMetadata::spawnTrackingStates, QuestObjectiveAction::SpellId, QuestObjective::StorageIndex, SpawnMetadata::ToSpawnData(), GameEvents::Trigger(), QuestObjective::Type, UpdateAreaDependentAuras(), QuestObjectiveAction::UpdatePhaseShift, UpdateVisibleObjectInteractions(), QuestObjectiveAction::UpdateZoneAuras, UpdateZoneDependentAuras(), WorldPackets::Quest::SpawnTrackingResponseInfo::Visible, and WorldPackets::Quest::QuestPOIUpdateResponse::Write().

Referenced by quest_commandscript::CompleteObjective(), CurrencyChanged(), Spell::EffectKillCreditLabel(), quest_taming_the_wilds::HandleQuestStatusChange(), ItemAddedQuestCheck(), KillCreditCriteriaTreeObjective(), KillCreditGO(), KilledMonster(), KilledMonsterCredit(), KilledPlayerCredit(), LearnSpell(), MoneyChanged(), ReputationChanged(), and TalkedToCreature().

◆ UpdateRangedHitChances()

void Player::UpdateRangedHitChances ( )

Definition at line 766 of file StatSystem.cpp.

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

Referenced by UpdateRating().

◆ UpdateRating()

void Player::UpdateRating ( CombatRating  cr)

Definition at line 5221 of file Player.cpp.

References Unit::ApplyAttackTimePercentMod(), Unit::ApplyCastTimePercentMod(), Unit::ApplyHasteRegenPercentMod(), ApplyRatingDiminishing(), Unit::ApplySpellHastePercentMod(), BASE_ATTACK, CalculatePct(), Unit::CanModifyStats(), UF::ActivePlayerData::CombatRatings, CR_AMPLIFY, CR_ARMOR_PENETRATION, CR_AVOIDANCE, CR_BLOCK, CR_CLEAVE, CR_CORRUPTION, CR_CORRUPTION_RESISTANCE, CR_CRIT_MELEE, CR_CRIT_RANGED, CR_CRIT_SPELL, CR_DEFENSE_SKILL, CR_DODGE, CR_EXPERTISE, CR_HASTE_MELEE, CR_HASTE_RANGED, CR_HASTE_SPELL, CR_HIT_MELEE, CR_HIT_RANGED, CR_HIT_SPELL, CR_LIFESTEAL, CR_MASTERY, CR_PARRY, CR_PVP_POWER, CR_RESILIENCE_CRIT_TAKEN, CR_RESILIENCE_PLAYER_DAMAGE, CR_SPEED, CR_STURDINESS, CR_UNUSED_12, CR_UNUSED_7, CR_VERSATILITY_DAMAGE_DONE, CR_VERSATILITY_DAMAGE_TAKEN, CR_VERSATILITY_HEALING_DONE, Unit::GetAuraEffectsByType(), GetRatingMultiplier(), Unit::GetTotalAuraMultiplier(), m_activePlayerData, m_baseRatingValue, BaseEntity::m_values, MAX_COMBAT_RATING, UF::UpdateFieldHolder::ModifyValue(), OFF_ATTACK, RANGED_ATTACK, BaseEntity::SetUpdateFieldValue(), SPELL_AURA_CONVERT_CRIT_RATING_PCT_TO_PARRY_RATING, SPELL_AURA_MOD_COMBAT_RATING_FROM_COMBAT_RATING, SPELL_AURA_MOD_RATING_PCT, UpdateArmorPenetration(), UpdateBlockPercentage(), UpdateCorruption(), UpdateCritPercentage(), UpdateDodgePercentage(), UpdateExpertise(), UpdateHealingDonePercentMod(), UpdateMastery(), UpdateMeleeHitChances(), UpdateParryPercentage(), UpdateRangedHitChances(), UpdateRating(), UpdateSpellCritChance(), UpdateSpellHitChances(), and UpdateVersatilityDamageDone().

Referenced by ApplyRatingMod(), AuraEffect::HandleConvertCritToParry(), AuraEffect::HandleModRatingPct(), UpdateAllRatings(), and UpdateRating().

◆ UpdateResistances()

void Player::UpdateResistances ( uint32  school)
overridevirtual

Reimplemented from Unit.

Definition at line 241 of file StatSystem.cpp.

References GetPet(), SPELL_SCHOOL_NORMAL, UpdateArmor(), Unit::UpdateResistances(), and Guardian::UpdateResistances().

◆ UpdateSkillEnchantments()

◆ UpdateSkillPro()

◆ UpdateSkillsForLevel()

◆ UpdateSoulboundTradeItems()

void Player::UpdateSoulboundTradeItems ( )

◆ UpdateSpeakTime()

◆ UpdateSpellCritChance()

◆ UpdateSpellDamageAndHealingBonus()

◆ UpdateSpellHitChances()

◆ UpdateStats()

◆ UpdateTavernRestingState()

void Player::UpdateTavernRestingState ( )

◆ UpdateTraitConfig()

◆ UpdateTransmogOutfit()

◆ UpdateTransmogOutfitSituations()

◆ UpdateTransmogOutfitSlots()

◆ UpdateTriggerVisibility()

◆ UpdateVersatilityDamageDone()

◆ UpdateVisibilityForPlayer()

◆ UpdateVisibilityOf() [1/3]

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

◆ UpdateVisibilityOf() [2/3]

◆ UpdateVisibilityOf() [3/3]

◆ UpdateVisibleObjectInteractions()

void Player::UpdateVisibleObjectInteractions ( bool  allUnits,
bool  onlySpellClicks,
bool  gameObjectQuestGiverStatus,
bool  questObjectiveGameObjects 
)

Definition at line 25880 of file Player.cpp.

References UpdateData::BuildPacket(), GameObject::BuildValuesUpdateForPlayerWithMask(), Creature::BuildValuesUpdateForPlayerWithMask(), UF::ObjectData::DynamicFlags, GAMEOBJECT_TYPE_CHEST, GAMEOBJECT_TYPE_GATHERING_NODE, GAMEOBJECT_TYPE_GENERIC, GAMEOBJECT_TYPE_GOOBER, GAMEOBJECT_TYPE_QUESTGIVER, GAMEOBJECT_TYPE_SPELL_FOCUS, UF::HasChangesMask< Bits >::GetChangesMask(), GameObjectTemplate::GetConditionID1(), ObjectAccessor::GetCreatureOrPetOrVehicle(), Object::GetEntry(), ObjectAccessor::GetGameObject(), GameObject::GetGOInfo(), GameObject::GetGoType(), WorldLocation::GetMapId(), GetQuestDialogStatus(), Creature::GetSpawnId(), GameObject::GetSpawnId(), UpdateData::HasData(), Unit::HasNpcFlag(), UpdateMask< Bits >::IsAnySet(), Unit::IsQuestGiver(), m_clientGUIDs, m_questObjectiveStatus, Unit::m_unitData, UF::HasChangesMask< Bits >::MarkChanged(), UF::UnitData::NpcFlags, UF::UnitData::NpcFlags2, WorldPackets::Quest::QuestGiverStatusMultiple::QuestGiver, sConditionMgr, SendDirectMessage(), sObjectMgr, SPAWN_TYPE_CREATURE, SPAWN_TYPE_GAMEOBJECT, SpawnMetadata::spawnTrackingData, SpawnMetadata::spawnTrackingQuestObjectives, UF::GameObjectData::SpawnTrackingStateAnimID, UF::GameObjectData::SpawnTrackingStateAnimKitID, UF::UnitData::StateAnimID, UF::UnitData::StateAnimKitID, UF::UnitData::StateSpellVisualID, UF::GameObjectData::StateSpellVisualID, UF::UnitData::StateWorldEffectIDs, UF::GameObjectData::StateWorldEffectIDs, UF::UnitData::StateWorldEffectsQuestObjectiveID, UF::GameObjectData::StateWorldEffectsQuestObjectiveID, UNIT_NPC_FLAG_SPELLCLICK, and WorldPackets::Quest::QuestGiverStatusMultiple::Write().

Referenced by Group::AddMember(), Group::Disband(), Spell::EffectUpdateInteractions(), WorldSession::HandleAreaTriggerOpcode(), ItemRemovedQuestCheck(), Group::RemoveMember(), SendQuestUpdate(), SkipQuests(), and UpdateQuestObjectiveProgress().

◆ UpdateWarModeAuras()

◆ UpdateWeaponDependentAuras()

void Player::UpdateWeaponDependentAuras ( WeaponAttackType  attackType)

◆ UpdateWeaponDependentCritAuras()

◆ UpdateZone()

◆ UpdateZoneAndAreaId()

void Player::UpdateZoneAndAreaId ( )

◆ UpdateZoneDependentAuras()

void Player::UpdateZoneDependentAuras ( uint32  zone_id)

Definition at line 26477 of file Player.cpp.

References CastSpell, HasAura, SPELL_AREA_FLAG_AUTOCAST, and sSpellMgr.

Referenced by UpdateQuestObjectiveProgress(), and UpdateZone().

◆ VehicleSpellInitialize()

◆ VisualizeItem()

◆ Whisper() [1/2]

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

◆ Whisper() [2/2]

◆ WhisperAddon()

void Player::WhisperAddon ( std::string const &  text,
std::string const &  prefix,
bool  isLogged,
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 22285 of file Player.cpp.

References CHAT_MSG_YELL, CONFIG_LISTEN_RANGE_YELL, SendChatMessageToSetInRange(), sScriptMgr, and sWorld.

Referenced by WorldSession::HandleChatMessage().

◆ Yell() [2/2]

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

Reimplemented from Unit.

Definition at line 22293 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 1289 of file Item.cpp.

◆ CinematicMgr

friend class CinematicMgr
friend

Definition at line 1219 of file Player.h.

◆ RemoveItemFromUpdateQueueOf

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

Definition at line 1310 of file Item.cpp.

Referenced by MoveItemFromInventory(), and SellItemToVendor().

◆ RestMgr

friend class RestMgr
friend

Definition at line 1220 of file Player.h.

◆ WorldSession

friend class WorldSession
friend

Definition at line 1218 of file Player.h.

Member Data Documentation

◆ _activeCheats

uint32 Player::_activeCheats
private

Definition at line 3387 of file Player.h.

Referenced by Player().

◆ _advancedCombatLoggingEnabled

bool Player::_advancedCombatLoggingEnabled
private

Definition at line 3391 of file Player.h.

Referenced by Player().

◆ _areaSpiritHealerGUID

ObjectGuid Player::_areaSpiritHealerGUID
private

Definition at line 3408 of file Player.h.

Referenced by SetAreaSpiritHealer().

◆ _cinematicMgr

std::unique_ptr<CinematicMgr> Player::_cinematicMgr
private

Definition at line 3336 of file Player.h.

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

◆ _corpseLocation

WorldLocation Player::_corpseLocation
private

Definition at line 3397 of file Player.h.

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

◆ _CUFProfiles

std::array<std::unique_ptr<CUFProfile>, MAX_CUF_PROFILES> Player::_CUFProfiles
protected

Definition at line 3326 of file Player.h.

Referenced by _LoadCUFProfiles(), _SaveCUFProfiles(), and Player().

◆ _currencyStorage

◆ _equipmentSets

◆ _garrison

std::unique_ptr<Garrison> Player::_garrison
private

◆ _pendingBindId

uint32 Player::_pendingBindId
private

Definition at line 3384 of file Player.h.

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

◆ _pendingBindTimer

uint32 Player::_pendingBindTimer
private

Definition at line 3385 of file Player.h.

Referenced by SetPendingBind(), and Update().

◆ _pendingSpellCastRequest

std::unique_ptr<SpellCastRequest> Player::_pendingSpellCastRequest
private

◆ _playerDataElementsNeedSave

Trinity::Containers::FlatSet<uint32> Player::_playerDataElementsNeedSave
private

Definition at line 3423 of file Player.h.

Referenced by _SavePlayerData(), and SetDataElementCharacter().

◆ _playerDataFlagsNeedSave

Trinity::Containers::FlatSet<uint32> Player::_playerDataFlagsNeedSave
private

Definition at line 3424 of file Player.h.

Referenced by _SavePlayerData(), and SetDataFlagCharacter().

◆ _restMgr

std::unique_ptr<RestMgr> Player::_restMgr
private

◆ _resurrectionData

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

◆ _specializationInfo

SpecializationInfo Player::_specializationInfo
protected

Definition at line 3233 of file Player.h.

◆ _usePvpItemLevels

bool Player::_usePvpItemLevels
private

Definition at line 3407 of file Player.h.

Referenced by Player(), and UpdateItemLevelAreaBasedScaling().

◆ autoReplyMsg

std::string Player::autoReplyMsg

◆ duel

◆ healthBeforeDuel

uint64 Player::healthBeforeDuel
private

Definition at line 3394 of file Player.h.

Referenced by Player().

◆ isDebugAreaTriggers

◆ ItemSetEff

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

Definition at line 2557 of file Player.h.

Referenced by AddItemsSetItem(), RemoveItemsSetItem(), UpdateItemSetAuras(), and ~Player().

◆ m_achievementMgr

◆ m_actionButtons

◆ m_activePlayerData

Definition at line 3048 of file Player.h.

Referenced by _ApplyItemBonuses(), _LoadCharacterBankTabSettings(), _LoadDailyQuestStatus(), _LoadPlayerData(), _LoadSkills(), _LoadTraits(), _LoadTransmogOutfits(), _SaveActions(), _SaveCharacterBankTabSettings(), _SaveCharacterSelectOutfit(), _SaveDailyQuestStatus(), _SavePlayerData(), _SaveStats(), _SaveTransmogOutfits(), ActivateTalentGroup(), AddAuraVision(), AddConditionalTransmog(), AddExploredZones(), AddHeirloom(), AddHonorXP(), AddIllusionBlock(), AddIllusionFlag(), AddItemToBuyBackSlot(), AddPetToUpdateFields(), AddSelfResSpell(), AddSpellCategoryCooldownMod(), AddSpellMod(), AddToy(), AddTraitConfig(), AddTransmogBlock(), AddTransmogFlag(), AddUnlockedTransmogOutfits(), AddWarbandScenesBlock(), AddWarbandScenesFlag(), ApplyModDamageDoneNeg(), ApplyModDamageDonePercent(), ApplyModDamageDonePos(), ApplyModOverrideAPBySpellPowerPercent(), ApplyModOverrideSpellPowerByAPPercent(), ApplyModTargetPhysicalResistance(), ApplyModTargetResistance(), ApplySpellPowerBonus(), ApplyTraitEntryChanges(), BuildValuesCreate(), BuildValuesUpdate(), BuildValuesUpdateForPlayerWithMask(), spell_mage_improved_combustion::CalcAmount(), RestMgr::CalcExtraPerSec(), CalcPPMCritMod(), CanAlwaysSee(), CanBankItem(), CanNoReagentCast(), CanSellItemToVendor(), CheckAreaExplore(), CollectionMgr::CheckHeirloomUpgrades(), ClearSelfResSpell(), ClearValuesChangesMask(), Create(), CreateTraitConfig(), CreateTransmogOutfit(), DailyReset(), DeletePetFromDB(), DeleteTraitConfig(), Spell::EffectCreateTraitTreeConfig(), EquipTransmogOutfit(), FindEmptyProfessionSlotFor(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), GetBlockPercent(), GetChatFlags(), GetDataElementAccount(), GetDataElementCharacter(), GetExpertiseDodgeOrParryReduction(), TransmogMgr::GetNextOutfitToUnlock(), GetProfessionSlotFor(), GetPvpInfoForBracket(), GetRatingBonusValue(), GetStableMaster(), GetTraitConfig(), GetViewpoint(), GiveLevel(), WorldSession::HandleBattlePetSummon(), WorldSession::HandleBuybackItem(), WorldSession::HandleChangeBagSlotFlag(), WorldSession::HandleClassTalentsRequestNewConfig(), WorldSession::HandleClassTalentsSetStarterBuildActive(), WorldSession::HandleFarSightOpcode(), WorldSession::HandleInspectOpcode(), WorldSession::HandleOpeningCinematic(), WorldSession::HandleSelfResOpcode(), WorldSession::HandleTransmogOutfitUpdateSituations(), WorldSession::HandleTransmogOutfitUpdateSlots(), WorldSession::HandleUpdateBankTabSettings(), HasDataFlagAccount(), HasDataFlagCharacter(), HasExploredZone(), HasTitle(), WorldPackets::Query::PlayerGuidLookupData::Initialize(), InitStatsForLevel(), Guardian::InitStatsForLevel(), InitTalentForLevel(), IsDailyQuestDone(), IsMaxLevel(), ConditionMgr::IsPlayerMeetingCondition(), IsQuestCompletedBitSet(), LearnTalent(), LoadFromDB(), CriteriaHandler::ModifierSatisfied(), outDebugValues(), RemoveAuraVision(), RemoveBagSlotFlag(), RemoveConditionalTransmog(), RemoveExploredZones(), RemovePet(), RemovePlayerLocalFlag(), RemoveSelfResSpell(), RemoveSpellCategoryCooldownMod(), RemoveTrackCreatureFlag(), RenameTraitConfig(), ReplaceAllBagSlotFlags(), ReplaceAllPlayerLocalFlags(), ReplaceAllRequiredMountCapabilityFlags(), ResetHonorStats(), RewardHonor(), SatisfyQuestDay(), SaveToDB(), SetAccountBankTabCount(), SetAccountBankTabSettings(), SetActiveCombatTraitConfigID(), SetBackpackAutoSortDisabled(), SetBackpackSellJunkDisabled(), SetBagSlotFlag(), SetBankAutoSortDisabled(), SetBankBagSlotCount(), SetBuybackPrice(), SetBuybackTimestamp(), SetCharacterBankTabCount(), SetCharacterBankTabSettings(), SetDailyQuestStatus(), SetDataElementAccount(), SetDataElementCharacter(), SetDataFlagAccount(), SetDataFlagCharacter(), SetFreePrimaryProfessions(), SetHeirloom(), SetHeirloomFlags(), SetInventorySlotCount(), SetInvSlot(), SetKnownTitles(), SetLootSpecId(), SetModDamageDonePercent(), SetMoney(), SetMultiActionBars(), SetNoRegentCostMask(), SetNumRespecs(), SetOverrideSpellsId(), SetOverrideZonePVPType(), SetPetSpellPower(), SetPlayerLocalFlag(), SetQuestCompletedBit(), SetRequiredMountCapabilityFlag(), RestMgr::SetRestBonus(), SetRestState(), SetRestThreshold(), SetSkill(), SetSkillLineId(), SetSkillMaxRank(), SetSkillPermBonus(), SetSkillRank(), SetSkillStartingRank(), SetSkillStep(), SetSkillTempBonus(), SetStableMaster(), SetSummonedBattlePetGUID(), SetTitle(), SetTrackCreatureFlag(), SetTraitConfigUseSharedActionBars(), SetTraitConfigUseStarterBuild(), SetTransportServerTime(), SetVersatilityBonus(), SetViewpoint(), SetVisibleItemSlot(), SetWatchedFactionIndex(), SetXP(), Unit::SpellBaseDamageBonusDone(), StartLoadingActionButtons(), UpdateArmorPenetration(), Guardian::UpdateAttackPowerAndDamage(), UpdateAttackPowerAndDamage(), UpdateBlockPercentage(), CriteriaHandler::UpdateCriteria(), UpdateCritPercentage(), UpdateDodgePercentage(), UpdateExpertise(), UpdateHealingDonePercentMod(), UpdateHonorFields(), UpdateHonorNextLevel(), UpdateMastery(), UpdateParryPercentage(), UpdateRating(), UpdateSpellCritChance(), UpdateSpellDamageAndHealingBonus(), UpdateTraitConfig(), UpdateTransmogOutfit(), UpdateTransmogOutfitSituations(), UpdateTransmogOutfitSlots(), UpdateVersatilityDamageDone(), and CollectionMgr::UpgradeHeirloom().

◆ m_AELootView

std::unordered_map<ObjectGuid , Loot*> Player::m_AELootView
private

Definition at line 3401 of file Player.h.

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

◆ m_areaUpdateId

uint32 Player::m_areaUpdateId
protected

Definition at line 3279 of file Player.h.

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

◆ m_ArenaTeamIdInvited

uint32 Player::m_ArenaTeamIdInvited
protected

Definition at line 3225 of file Player.h.

Referenced by Player().

◆ m_ArmorProficiency

uint32 Player::m_ArmorProficiency
protected

Definition at line 3285 of file Player.h.

Referenced by Player().

◆ m_atLoginFlags

uint32 Player::m_atLoginFlags
protected

Definition at line 3203 of file Player.h.

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

◆ m_auraBaseFlatMod

std::array<float, BASEMOD_END> Player::m_auraBaseFlatMod
protected

◆ m_auraBasePctMod

std::array<float, BASEMOD_END> Player::m_auraBasePctMod
protected

◆ m_baseHealthRegen

uint32 Player::m_baseHealthRegen
protected

Definition at line 3244 of file Player.h.

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

◆ m_baseManaRegen

uint32 Player::m_baseManaRegen
protected

Definition at line 3243 of file Player.h.

Referenced by ApplyManaRegenBonus(), and Player().

◆ m_baseRatingValue

std::array<int16, MAX_COMBAT_RATING> Player::m_baseRatingValue
protected

Definition at line 3241 of file Player.h.

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

◆ m_baseSpellPower

uint32 Player::m_baseSpellPower
protected

Definition at line 3242 of file Player.h.

Referenced by ApplySpellPowerBonus(), and Player().

◆ m_bCanDelayTeleport

bool Player::m_bCanDelayTeleport
private

Definition at line 3368 of file Player.h.

Referenced by Player().

◆ m_bgBattlegroundQueueID

◆ m_bgData

◆ m_bPassOnGroupLoot

bool Player::m_bPassOnGroupLoot
protected

Definition at line 3302 of file Player.h.

Referenced by Player().

◆ m_canBlock

bool Player::m_canBlock
protected

Definition at line 3287 of file Player.h.

Referenced by Player(), and SetCanBlock().

◆ m_canParry

bool Player::m_canParry
protected

Definition at line 3286 of file Player.h.

Referenced by Player(), and SetCanParry().

◆ m_canTitanGrip

bool Player::m_canTitanGrip
protected

◆ m_ChampioningFaction

uint32 Player::m_ChampioningFaction
private

Definition at line 3382 of file Player.h.

Referenced by Player().

◆ m_changedTransmogOutfits

std::set<uint32> Player::m_changedTransmogOutfits
protected

◆ m_channels

JoinedChannelsList Player::m_channels
protected

◆ m_chatFloodData

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

Definition at line 3198 of file Player.h.

Referenced by UpdateSpeakTime().

◆ m_cinematic

uint8 Player::m_cinematic
protected

Definition at line 3262 of file Player.h.

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

◆ m_clientGUIDs

◆ m_contestedPvPTimer

uint32 Player::m_contestedPvPTimer
protected

Definition at line 3063 of file Player.h.

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

◆ m_createMode

PlayerCreateMode Player::m_createMode
protected

Definition at line 3261 of file Player.h.

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

◆ m_createTime

time_t Player::m_createTime
protected

Definition at line 3260 of file Player.h.

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

◆ m_currentBuybackSlot

uint32 Player::m_currentBuybackSlot
protected

Definition at line 3206 of file Player.h.

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

◆ m_customizationsChanged

bool Player::m_customizationsChanged
protected

Definition at line 3197 of file Player.h.

Referenced by _SaveCustomizations(), and Player().

◆ m_DailyQuestChanged

bool Player::m_DailyQuestChanged
protected

◆ m_deathExpireTime

time_t Player::m_deathExpireTime
protected

◆ m_deathTimer

uint32 Player::m_deathTimer
protected

◆ m_DelayedOperations

uint32 Player::m_DelayedOperations
private

Definition at line 3367 of file Player.h.

Referenced by Player(), and ProcessDelayedOperations().

◆ m_DFQuests

◆ m_drunkTimer

uint32 Player::m_drunkTimer
protected

Definition at line 3275 of file Player.h.

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

◆ m_dungeonDifficulty

Difficulty Player::m_dungeonDifficulty
protected

Definition at line 3199 of file Player.h.

Referenced by GetDifficultyID(), and Player().

◆ m_empowerMinHoldStagePercent

float Player::m_empowerMinHoldStagePercent
protected

Definition at line 3231 of file Player.h.

Referenced by Player().

◆ m_enchantDuration

◆ m_environmentalDamageTimer

int32 Player::m_environmentalDamageTimer
private

Definition at line 3357 of file Player.h.

Referenced by Player(), and UpdateMirrorTimers().

◆ m_ExtraFlags

uint32 Player::m_ExtraFlags
protected

◆ m_fishingSteps

uint8 Player::m_fishingSteps
protected

Definition at line 3324 of file Player.h.

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

◆ m_forced_speed_changes

std::array<uint8, MAX_MOVE_TYPE> Player::m_forced_speed_changes

Definition at line 2706 of file Player.h.

Referenced by WorldSession::HandleForceSpeedChangeAck(), Player(), and Unit::SetSpeedRate().

◆ m_group

GroupReference Player::m_group
protected

◆ m_groupInvite

Group* Player::m_groupInvite
protected

Definition at line 3300 of file Player.h.

◆ m_groupUpdateMask

uint32 Player::m_groupUpdateMask
protected

Definition at line 3301 of file Player.h.

Referenced by Player(), and SendUpdateToOutOfRangeGroupMembers().

◆ m_groupUpdateSequences

std::array<GroupUpdateCounter, 2> Player::m_groupUpdateSequences
protected

Definition at line 3303 of file Player.h.

Referenced by NextGroupUpdateSequenceNumber(), and ResetGroupUpdateSequenceIfNeeded().

◆ m_GuildIdInvited

ObjectGuid::LowType Player::m_GuildIdInvited
protected

Definition at line 3224 of file Player.h.

Referenced by Player().

◆ m_healthFraction

float Player::m_healthFraction
protected

Definition at line 3061 of file Player.h.

Referenced by Player(), and RegenerateHealth().

◆ m_homebind

◆ m_homebindAreaId

uint16 Player::m_homebindAreaId

Definition at line 2680 of file Player.h.

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

◆ m_HomebindTimer

uint32 Player::m_HomebindTimer

Definition at line 2747 of file Player.h.

Referenced by Player(), and UpdateHomebindTime().

◆ m_hostileReferenceCheckTimer

uint32 Player::m_hostileReferenceCheckTimer
protected

Definition at line 3274 of file Player.h.

Referenced by Player(), and Update().

◆ m_ingametime

uint32 Player::m_ingametime
protected

Definition at line 3102 of file Player.h.

Referenced by Player().

◆ m_InstanceValid

◆ m_IsBGRandomWinner

bool Player::m_IsBGRandomWinner
protected

Definition at line 3083 of file Player.h.

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

◆ m_itemDuration

ItemDurationList Player::m_itemDuration
protected

◆ m_itemPassives

std::forward_list<int32> Player::m_itemPassives
protected

Definition at line 3251 of file Player.h.

Referenced by ApplyEquipSpell(), and SendItemPassives().

◆ m_items

◆ m_itemSoulboundTradeable

GuidUnorderedSet Player::m_itemSoulboundTradeable
protected

Definition at line 3252 of file Player.h.

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

◆ m_itemUpdateQueue

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

Definition at line 3210 of file Player.h.

Referenced by _SaveInventory().

◆ m_itemUpdateQueueBlocked

bool Player::m_itemUpdateQueueBlocked
protected

Definition at line 3211 of file Player.h.

Referenced by _LoadInventory(), and Player().

◆ m_Last_tick

time_t Player::m_Last_tick

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

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

◆ m_lastFallZ

float Player::m_lastFallZ
private

Definition at line 3354 of file Player.h.

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

◆ m_lastHonorUpdateTime

time_t Player::m_lastHonorUpdateTime
protected

Definition at line 3191 of file Player.h.

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

◆ m_lastpetnumber

uint32 Player::m_lastpetnumber
protected

Definition at line 3306 of file Player.h.

Referenced by Player().

◆ m_legacyRaidDifficulty

Difficulty Player::m_legacyRaidDifficulty
protected

Definition at line 3201 of file Player.h.

Referenced by GetDifficultyID(), and Player().

◆ m_logintime

time_t Player::m_logintime

Definition at line 1328 of file Player.h.

Referenced by AddItemToBuyBackSlot(), and Player().

◆ m_lootRolls

std::vector<LootRoll*> Player::m_lootRolls
private

◆ m_mail

PlayerMails Player::m_mail
protected

◆ m_mailsUpdated

◆ m_mapRef

MapReference Player::m_mapRef
private

Definition at line 3351 of file Player.h.

Referenced by SetMap().

◆ m_MirrorTimerFlags

uint8 Player::m_MirrorTimerFlags
private

◆ m_mirrorTimers

◆ m_MonthlyQuestChanged

bool Player::m_MonthlyQuestChanged
protected

◆ m_monthlyquests

QuestSet Player::m_monthlyquests
protected

◆ m_movementForceModMagnitudeChanges

uint8 Player::m_movementForceModMagnitudeChanges

Definition at line 2707 of file Player.h.

Referenced by WorldSession::HandleMoveSetModMovementForceMagnitudeAck(), and Player().

◆ m_movie

uint32 Player::m_movie
protected

Definition at line 3264 of file Player.h.

Referenced by Player().

◆ m_newWorldCounter

int32 Player::m_newWorldCounter
private

Definition at line 3365 of file Player.h.

Referenced by Player(), and TeleportTo().

◆ m_nextMailDelivereTime

time_t Player::m_nextMailDelivereTime

Definition at line 1928 of file Player.h.

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

◆ m_nextSave

uint32 Player::m_nextSave
protected

Definition at line 3196 of file Player.h.

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

◆ m_oldpetspell

uint32 Player::m_oldpetspell
private

Definition at line 3375 of file Player.h.

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

◆ m_originalGroup

GroupReference Player::m_originalGroup
protected

Definition at line 3299 of file Player.h.

Referenced by SetOriginalGroup().

◆ m_overrideSpells

std::unordered_map<uint32 , std::unordered_set<uint32> > Player::m_overrideSpells
protected

◆ m_petAuras

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

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

Referenced by _LoadPetStable(), DeletePetFromDB(), GetOrInitPetStable(), and RemovePet().

◆ m_Played_time

std::array<uint32, MAX_PLAYED_TIME_INDEX> Player::m_Played_time

Definition at line 1330 of file Player.h.

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

◆ m_playerData

Definition at line 3047 of file Player.h.

Referenced by _InitHonorLevelOnLoadFromDB(), _LoadDeclinedNames(), _SaveCharacterSelectOutfit(), _SaveCustomizations(), AddItemsSetItem(), BattlePets::BattlePetMgr::AddPet(), ApplyEnchantment(), ApplyModFakeDrunkValue(), BuildValuesCreate(), BuildValuesUpdate(), BuildValuesUpdateForPlayerWithMask(), BuildValuesUpdateWithFlag(), AchievementMgr::CanUpdateCriteriaTree(), CheckAreaExplore(), CheckDuelDistance(), ClearValuesChangesMask(), CreateCorpse(), DuelComplete(), GetBarberShopCost(), ItemBonusMgr::GetContextForPlayer(), lfg::LFGMgr::GetLockedDungeons(), GetQuestLevel(), GetQuestMinLevel(), GetQuestSlotCounter(), GetQuestSlotEndTime(), GetQuestSlotObjectiveFlag(), GetQuestSlotQuestId(), GetQuestSlotState(), Battlenet::Account::GetUpdateFieldFlagsFor(), character_commandscript::HandleCharacterTitlesCommand(), WorldSession::HandleDuelAccepted(), WorldSession::HandleInspectOpcode(), Guild::HandleInviteMember(), lookup_commandscript::HandleLookupQuestCommand(), lookup_commandscript::HandleLookupQuestIdCommand(), lookup_commandscript::HandleLookupTitleCommand(), titles_commandscript::HandleTitlesRemoveCommand(), titles_commandscript::HandleTitlesSetMaskCommand(), WorldPackets::Query::PlayerGuidLookupData::Initialize(), WorldPackets::Party::PartyInvite::Initialize(), WorldPackets::Inspect::PlayerModelDisplayInfo::Initialize(), WorldPackets::Party::PartyMemberFullState::Initialize(), ConditionMgr::IsPlayerMeetingCondition(), Channel::List(), LoadFromDB(), CriteriaHandler::ModifierSatisfied(), RemovePlayerFlag(), RemovePlayerFlagEx(), RemoveQuestSlotObjectiveFlag(), RemoveQuestSlotState(), RemoveVisibleForcedReaction(), ReplaceAllPlayerFlags(), ReplaceAllPlayerFlagsEx(), RewardReputation(), SaveToDB(), PlayerAchievementMgr::SendAchievementEarned(), PlayerAchievementMgr::SendAchievementInfo(), PlayerAchievementMgr::SendAllData(), Guild::SendEventPresenceChanged(), WorldSession::SendLfgPlayerLockInfo(), SetArenaFaction(), SetAverageItemLevel(), SetChosenTitle(), SetCurrentBattlePetBreedQuality(), SetCurrentCombatTraitConfigSubTreeID(), SetCustomizations(), SetDrunkValue(), SetDuelArbiter(), SetDuelTeam(), SetGuildLevel(), SetGuildRank(), SetHonorLevel(), SetLootGUID(), SetNativeGender(), SetPartyType(), SetPersonalTabard(), SetPlayerFlag(), SetPlayerFlagEx(), SetPrimarySpecialization(), SetPvpTitle(), SetQuestSlot(), SetQuestSlotCounter(), SetQuestSlotEndTime(), SetQuestSlotObjectiveFlag(), SetQuestSlotState(), SetVirtualPlayerRealm(), SetVisibleForcedReaction(), SetVisibleItemSlot(), Spell::SummonGuardian(), TeleportTo(), UpdateItemSetAuras(), and GameObject::Use().

◆ m_playerSharingQuest

ObjectGuid Player::m_playerSharingQuest
protected

Definition at line 3100 of file Player.h.

◆ m_powerFraction

std::array<float, MAX_POWERS_PER_CLASS> Player::m_powerFraction
protected

Definition at line 3062 of file Player.h.

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

◆ m_questObjectiveCriteriaMgr

std::unique_ptr<QuestObjectiveCriteriaMgr> Player::m_questObjectiveCriteriaMgr
private

◆ m_questObjectiveStatus

◆ m_QuestStatus

◆ m_QuestStatusSave

◆ m_raidDifficulty

Difficulty Player::m_raidDifficulty
protected

Definition at line 3200 of file Player.h.

Referenced by GetDifficultyID(), and Player().

◆ m_recall_location

TeleportLocation Player::m_recall_location
protected

Definition at line 3313 of file Player.h.

◆ m_recentInstances

std::unordered_map<uint32 , uint32 > Player::m_recentInstances

Definition at line 2761 of file Player.h.

Referenced by ResetInstances().

◆ m_refundableItems

GuidSet Player::m_refundableItems
private

Definition at line 3338 of file Player.h.

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

◆ m_regenInterruptTimestamp

TimePoint Player::m_regenInterruptTimestamp
protected

Definition at line 3059 of file Player.h.

Referenced by AtExitCombat(), GetPowerRegen(), InterruptPowerRegen(), and Player().

◆ m_regenTimerCount

uint32 Player::m_regenTimerCount
protected

Definition at line 3060 of file Player.h.

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

◆ m_reputationMgr

std::unique_ptr<ReputationMgr> Player::m_reputationMgr
private

Definition at line 3379 of file Player.h.

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

◆ m_RewardedQuests

◆ m_RewardedQuestsSave

QuestStatusSaveMap Player::m_RewardedQuestsSave
protected

Definition at line 3220 of file Player.h.

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

◆ m_runes

std::unique_ptr<Runes> Player::m_runes
protected

Definition at line 3315 of file Player.h.

Referenced by GetRunesState(), InitRunes(), RegenerateAll(), and SetRuneCooldown().

◆ m_sceneMgr

SceneMgr Player::m_sceneMgr
private

Definition at line 3399 of file Player.h.

◆ 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 3101 of file Player.h.

Referenced by Player().

◆ m_social

PlayerSocial* Player::m_social
protected

Definition at line 3295 of file Player.h.

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

◆ m_spellMods

SpellModContainer Player::m_spellMods
protected

Definition at line 3247 of file Player.h.

Referenced by AddSpellMod(), GetSpellModValues(), and SendSpellModifiers().

◆ m_spellModTakingSpell

Spell* Player::m_spellModTakingSpell

◆ m_spellPenetrationItemMod

int32 Player::m_spellPenetrationItemMod
protected

Definition at line 3245 of file Player.h.

Referenced by ApplySpellPenetrationBonus(), and Player().

◆ m_spells

◆ m_storedAuraTeleportLocations

◆ m_summon_expire

time_t Player::m_summon_expire
protected

Definition at line 3309 of file Player.h.

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

◆ m_summon_location

TeleportLocation Player::m_summon_location
protected

Definition at line 3310 of file Player.h.

Referenced by SendSummonRequestFrom(), and SummonIfPossible().

◆ m_swingErrorMsg

Optional<AttackSwingErr> Player::m_swingErrorMsg
protected

Definition at line 3292 of file Player.h.

Referenced by SetAttackSwingError().

◆ m_taxi

◆ m_team

Team Player::m_team
protected

Definition at line 3195 of file Player.h.

Referenced by Player(), and SetFactionForRace().

◆ m_teleport_dest

TeleportLocation Player::m_teleport_dest
private

Definition at line 3361 of file Player.h.

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

◆ m_teleport_options

TeleportToOptions Player::m_teleport_options
private

Definition at line 3363 of file Player.h.

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

◆ m_teleport_state

TeleportState Player::m_teleport_state
private

Definition at line 3362 of file Player.h.

Referenced by Player().

◆ m_teleportSpellId

uint32 Player::m_teleportSpellId
private

Definition at line 3364 of file Player.h.

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

◆ m_temporaryPetReactState

Optional<ReactStates> Player::m_temporaryPetReactState
private

Definition at line 3374 of file Player.h.

Referenced by DisablePetControlsOnMount(), and EnablePetControlsOnDismount().

◆ m_temporaryUnsummonedBattlePet

ObjectGuid Player::m_temporaryUnsummonedBattlePet
private

◆ m_temporaryUnsummonedPetNumber

uint32 Player::m_temporaryUnsummonedPetNumber
private

◆ m_timedquests

QuestSet Player::m_timedquests
protected

Definition at line 3095 of file Player.h.

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

◆ m_titanGripArmorSubclasses

uint32 Player::m_titanGripArmorSubclasses
protected

Definition at line 3290 of file Player.h.

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

◆ m_titanGripPenaltySpellId

uint32 Player::m_titanGripPenaltySpellId
protected

Definition at line 3291 of file Player.h.

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

◆ m_titanGripWeaponSubclasses

uint32 Player::m_titanGripWeaponSubclasses
protected

Definition at line 3289 of file Player.h.

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

◆ m_trade

◆ m_traitConfigStates

◆ m_visibleTransports

◆ m_weaponChangeTimer

uint32 Player::m_weaponChangeTimer
protected

Definition at line 3276 of file Player.h.

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

◆ m_WeaponProficiency

uint32 Player::m_WeaponProficiency
protected

Definition at line 3284 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

◆ manaBeforeDuel

uint32 Player::manaBeforeDuel
private

Definition at line 3395 of file Player.h.

Referenced by Player().

◆ mMitems

ItemMap Player::mMitems

Definition at line 1932 of file Player.h.

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

◆ mSkillStatus

◆ PlayerTalkClass

std::unique_ptr<PlayerMenu> Player::PlayerTalkClass

Definition at line 2556 of file Player.h.

Referenced by AddGossipItemFor(), AddGossipItemFor(), AddGossipItemFor(), AddQuestAndCheckCompletion(), WorldSession::CanUseBank(), ClearGossipMenuFor(), CloseGossipMenuFor(), Spell::EffectQuestStart(), GetGossipActionFor(), GetGossipSenderFor(), WorldSession::HandleAdventureJournalOpenQuest(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleCloseInteraction(), WorldSession::HandleGetMailList(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleGossipSelectOptionOpcode(), WorldSession::HandleGuildBankActivate(), WorldSession::HandleMailDelete(), WorldSession::HandleMailReturnToSender(), WorldSession::HandlePlayerChoiceResponse(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), WorldSession::HandleQuestgiverHelloOpcode(), WorldSession::HandleQuestgiverQueryQuestOpcode(), WorldSession::HandleQuestgiverRequestRewardOpcode(), WorldSession::HandleQuestgiverStatusQueryOpcode(), WorldSession::HandleQuestQueryOpcode(), WorldSession::HandleSwapInvItemOpcode(), WorldSession::HandleSwapItem(), WorldSession::HandleTrainerBuySpellOpcode(), InitGossipMenuFor(), npc_selina_dourman::OnGossipSelect(), npc_verdisa_beglaristrasz_eternos::OnGossipSelect(), npc_sinclari_vh::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_silverpine_bat_handler_maggotbreath::OnGossipSelect(), npc_tb_spirit_guide::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(), go_hoo_the_makers_lift_controller::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_brann_hos::OnGossipSelect(), npc_wg_demolisher_engineer::OnGossipSelect(), npc_wg_spirit_guide::OnGossipSelect(), npc_zm_field_scout::OnGossipSelect(), go_amberpine_outhouse::go_amberpine_outhouseAI::OnGossipSelect(), npc_engineering_tele_trinket::npc_engineering_tele_trinketAI::OnGossipSelect(), npc_wormhole::npc_wormholeAI::OnGossipSelect(), npc_argent_squire_gruntling::npc_argent_squire_gruntlingAI::OnGossipSelect(), OnGossipSelect(), ScriptMgr::OnQuestAccept(), Player(), PrepareGossipMenu(), PrepareQuestMenu(), SmartScript::ProcessAction(), RewardQuest(), WorldSession::SendAuctionHello(), BattlegroundMgr::SendBattlegroundList(), WorldSession::SendBindPoint(), SendGossipMenuFor(), SendInitialPacketsAfterAddToMap(), WorldSession::SendListInventory(), WorldSession::SendPetitionShowList(), SendPlayerChoice(), SendPreparedGossip(), SendPreparedQuest(), SendRespecWipeConfirm(), WorldSession::SendShowBank(), WorldSession::SendTaxiMenu(), and WorldSession::SendTrainerList().

◆ pvpInfo

◆ unReadMails

◆ WhisperList

GuidList Player::WhisperList
protected

Definition at line 3058 of file Player.h.

Referenced by IsInWhisperWhiteList().


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