![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "Player.h"
Classes | |
struct | BgBattlegroundQueueID_Rec |
struct | ChatFloodThrottle |
Public Types | |
typedef std::unordered_map< ObjectGuid::LowType, Item * > | ItemMap |
typedef std::set< uint32 > | DFQuestsDoneList |
![]() | |
typedef std::unordered_set< Unit * > | AttackerSet |
typedef std::set< Unit * > | ControlSet |
typedef std::multimap< uint32, Aura * > | AuraMap |
typedef std::pair< AuraMap::const_iterator, AuraMap::const_iterator > | AuraMapBounds |
typedef std::pair< AuraMap::iterator, AuraMap::iterator > | AuraMapBoundsNonConst |
typedef std::multimap< uint32, AuraApplication * > | AuraApplicationMap |
typedef std::pair< AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator > | AuraApplicationMapBounds |
typedef std::pair< AuraApplicationMap::iterator, AuraApplicationMap::iterator > | AuraApplicationMapBoundsNonConst |
typedef std::multimap< AuraStateType, AuraApplication * > | AuraStateAurasMap |
typedef std::pair< AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator > | AuraStateAurasMapBounds |
typedef std::list< AuraEffect * > | AuraEffectList |
typedef std::list< Aura * > | AuraList |
typedef std::list< AuraApplication * > | AuraApplicationList |
typedef std::list< DiminishingReturn > | Diminishing |
typedef GuidUnorderedSet | ComboPointHolderSet |
typedef std::map< uint8, AuraApplication * > | VisibleAuraMap |
typedef std::set< PetAura const * > | PetAuraSet |
Public Member Functions | |
Player (WorldSession *session) | |
~Player () override | |
void | CleanupsBeforeDelete (bool finalCleanup=true) override |
void | AddToWorld () override |
void | RemoveFromWorld () override |
void | SetObjectScale (float scale) override |
bool | hasSpanishClient () |
bool | TeleportTo (uint32 mapid, float x, float y, float z, float orientation, uint32 options=0, Unit *target=nullptr, bool newInstance=false) |
bool | TeleportTo (WorldLocation const &loc, uint32 options=0, Unit *target=nullptr) |
bool | TeleportToEntryPoint () |
void | SetSummonPoint (uint32 mapid, float x, float y, float z, uint32 delay=0, bool asSpectator=false) |
bool | IsSummonAsSpectator () const |
void | SetSummonAsSpectator (bool on) |
void | SummonIfPossible (bool agree, ObjectGuid summoner_guid) |
time_t | GetSummonExpireTimer () const |
bool | Create (ObjectGuid::LowType guidlow, CharacterCreateInfo *createInfo) |
void | Update (uint32 time) override |
PlayerFlags | GetPlayerFlags () const |
bool | HasPlayerFlag (PlayerFlags flags) const |
void | SetPlayerFlag (PlayerFlags flags) |
void | RemovePlayerFlag (PlayerFlags flags) |
void | ReplaceAllPlayerFlags (PlayerFlags flags) |
bool | IsClass (Classes playerClass, ClassContext context=CLASS_CONTEXT_NONE) const override |
void | SetInWater (bool apply) |
bool | IsInWater () const override |
bool | IsFalling () const |
bool | IsInAreaTriggerRadius (AreaTrigger const *trigger, float delta=0.f) const |
void | SendInitialPacketsBeforeAddToMap () |
void | SendInitialPacketsAfterAddToMap () |
void | SendTransferAborted (uint32 mapid, TransferAbortReason reason, uint8 arg=0) |
void | SendInstanceResetWarning (uint32 mapid, Difficulty difficulty, uint32 time, bool onEnterMap) |
bool | CanInteractWithQuestGiver (Object *questGiver) |
Creature * | GetNPCIfCanInteractWith (ObjectGuid guid, uint32 npcflagmask) |
GameObject * | GetGameObjectIfCanInteractWith (ObjectGuid guid, GameobjectTypes type) const |
void | ToggleAFK () |
void | ToggleDND () |
bool | isAFK () const |
bool | isDND () const |
uint8 | GetChatTag () const |
uint32 | GetBarberShopCost (uint8 newhairstyle, uint8 newhaircolor, uint8 newfacialhair, BarberShopStyleEntry const *newSkin=nullptr) |
PlayerSocial * | GetSocial () |
void | InitTaxiNodesForLevel () |
bool | ActivateTaxiPathTo (std::vector< uint32 > const &nodes, Creature *npc=nullptr, uint32 spellid=1) |
bool | ActivateTaxiPathTo (uint32 taxi_path_id, uint32 spellid=1) |
void | CleanupAfterTaxiFlight () |
void | ContinueTaxiFlight () |
void | SendTaxiNodeStatusMultiple () |
bool | IsCommentator () const |
void | SetCommentator (bool on) |
bool | IsDeveloper () const |
void | SetDeveloper (bool on) |
bool | isAcceptWhispers () const |
void | SetAcceptWhispers (bool on) |
bool | IsGameMaster () const |
void | SetGameMaster (bool on) |
bool | isGMChat () const |
void | SetGMChat (bool on) |
bool | isTaxiCheater () const |
void | SetTaxiCheater (bool on) |
bool | isGMVisible () const |
void | SetGMVisible (bool on) |
bool | Has310Flyer (bool checkAllSpells, uint32 excludeSpellId=0) |
void | SetHas310Flyer (bool on) |
void | SetPvPDeath (bool on) |
void | GiveXP (uint32 xp, Unit *victim, float group_rate=1.0f, bool isLFGReward=false) |
void | GiveLevel (uint8 level) |
void | InitStatsForLevel (bool reapplyMods=false) |
bool | HasActivePowerType (Powers power) override |
bool | GetCommandStatus (uint32 command) const |
void | SetCommandStatusOn (uint32 command) |
void | SetCommandStatusOff (uint32 command) |
uint32 | GetTotalPlayedTime () |
uint32 | GetLevelPlayedTime () |
void | setDeathState (DeathState s, bool despawn=false) override |
void | SetRestState (uint32 triggerId) |
void | RemoveRestState () |
uint32 | GetXPRestBonus (uint32 xp) |
float | GetRestBonus () const |
void | SetRestBonus (float restBonusNew) |
bool | HasRestFlag (RestFlag restFlag) const |
void | SetRestFlag (RestFlag restFlag, uint32 triggerId=0) |
void | RemoveRestFlag (RestFlag restFlag) |
uint32 | GetInnTriggerId () const |
PetStable * | GetPetStable () |
PetStable & | GetOrInitPetStable () |
PetStable const * | GetPetStable () const |
Pet * | GetPet () const |
Pet * | SummonPet (uint32 entry, float x, float y, float z, float ang, PetType petType, Milliseconds duration=0s, uint32 healthPct=0) |
void | RemovePet (Pet *pet, PetSaveMode mode, bool returnreagent=false) |
bool | CanPetResurrect () |
bool | IsExistPet () |
Pet * | CreatePet (Creature *creatureTarget, uint32 spellID=0) |
Pet * | CreatePet (uint32 creatureEntry, uint32 spellID=0) |
uint32 | GetPhaseMaskForSpawn () const |
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 | SetVirtualItemSlot (uint8 i, Item *item) |
void | SetSheath (SheathState sheathed) override |
uint8 | FindEquipSlot (ItemTemplate const *proto, uint32 slot, bool swap) const |
uint32 | GetItemCount (uint32 item, bool inBankAlso=false, Item *skipItem=nullptr) const |
uint32 | GetItemCountWithLimitCategory (uint32 limitCategory, Item *skipItem=nullptr) const |
Item * | GetItemByGuid (ObjectGuid guid) const |
Item * | GetItemByEntry (uint32 entry) const |
Item * | GetItemByPos (uint16 pos) const |
Item * | GetItemByPos (uint8 bag, uint8 slot) const |
Bag * | GetBagByPos (uint8 slot) const |
uint32 | GetFreeInventorySpace () const |
Item * | GetUseableItemByPos (uint8 bag, uint8 slot) const |
Item * | GetWeaponForAttack (WeaponAttackType attackType, bool useable=false) const |
bool | HasWeapon (WeaponAttackType type) const override |
bool | HasWeaponForAttack (WeaponAttackType type) const override |
Item * | GetShield (bool useable=false) const |
std::vector< Item * > & | GetItemUpdateQueue () |
bool | IsValidPos (uint16 pos, bool explicit_pos) |
bool | IsValidPos (uint8 bag, uint8 slot, bool explicit_pos) |
uint8 | GetBankBagSlotCount () const |
void | SetBankBagSlotCount (uint8 count) |
bool | HasItemCount (uint32 item, uint32 count=1, bool inBankAlso=false) const |
bool | HasItemFitToSpellRequirements (SpellInfo const *spellInfo, Item const *ignoreItem=nullptr) const |
bool | CanNoReagentCast (SpellInfo const *spellInfo) const |
bool | HasItemOrGemWithIdEquipped (uint32 item, uint32 count, uint8 except_slot=NULL_SLOT) const |
bool | HasItemOrGemWithLimitCategoryEquipped (uint32 limitCategory, uint32 count, uint8 except_slot=NULL_SLOT) const |
InventoryResult | CanTakeMoreSimilarItems (Item *pItem) const |
InventoryResult | CanTakeMoreSimilarItems (uint32 entry, uint32 count) 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 **pItem, int32 count) const |
InventoryResult | CanEquipNewItem (uint8 slot, uint16 &dest, uint32 item, bool swap) const |
InventoryResult | CanEquipItem (uint8 slot, uint16 &dest, Item *pItem, bool swap, bool not_loading=true) const |
InventoryResult | CanEquipUniqueItem (Item *pItem, uint8 except_slot=NULL_SLOT, uint32 limit_count=1) const |
InventoryResult | CanEquipUniqueItem (ItemTemplate const *itemProto, uint8 except_slot=NULL_SLOT, uint32 limit_count=1) const |
InventoryResult | CanUnequipItems (uint32 item, uint32 count) const |
InventoryResult | CanUnequipItem (uint16 src, bool swap) const |
InventoryResult | CanBankItem (uint8 bag, uint8 slot, ItemPosCountVec &dest, Item *pItem, bool swap, bool not_loading=true) const |
InventoryResult | CanUseItem (Item *pItem, bool not_loading=true) const |
bool | HasItemTotemCategory (uint32 TotemCategory) const |
bool | IsTotemCategoryCompatiableWith (ItemTemplate const *pProto, uint32 requiredTotemCategoryId) const |
InventoryResult | CanUseItem (ItemTemplate const *pItem) const |
InventoryResult | CanUseAmmo (uint32 item) const |
InventoryResult | CanRollForItemInLFG (ItemTemplate const *item, WorldObject const *lootedObject) const |
Item * | StoreNewItem (ItemPosCountVec const &pos, uint32 item, bool update, int32 randomPropertyId=0) |
Item * | StoreNewItem (ItemPosCountVec const &pos, uint32 item, bool update, int32 randomPropertyId, AllowedLooterSet &allowedLooters) |
Item * | StoreItem (ItemPosCountVec const &pos, Item *pItem, bool update) |
Item * | EquipNewItem (uint16 pos, uint32 item, bool update) |
Item * | EquipItem (uint16 pos, Item *pItem, bool update) |
void | AutoUnequipOffhandIfNeed (bool force=false) |
bool | StoreNewItemInBestSlots (uint32 item_id, uint32 item_count) |
void | AutoStoreLoot (uint8 bag, uint8 slot, uint32 loot_id, LootStore const &store, bool broadcast=false) |
void | AutoStoreLoot (uint32 loot_id, LootStore const &store, bool broadcast=false) |
LootItem * | StoreLootItem (uint8 lootSlot, Loot *loot, InventoryResult &msg) |
void | UpdateLootAchievements (LootItem *item, Loot *loot) |
void | UpdateTitansGrip () |
InventoryResult | CanTakeMoreSimilarItems (uint32 entry, uint32 count, Item *pItem, uint32 *no_space_count=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 itemGUID) |
void | DeleteRefundReference (ObjectGuid itemGUID) |
void | ApplyEquipCooldown (Item *pItem) |
void | SetAmmo (uint32 item) |
void | RemoveAmmo () |
float | GetAmmoDPS () const |
bool | CheckAmmoCompatibility (ItemTemplate const *ammo_proto) const |
void | QuickEquipItem (uint16 pos, Item *pItem) |
void | VisualizeItem (uint8 slot, Item *pItem) |
void | SetVisibleItemSlot (uint8 slot, Item *pItem) |
Item * | BankItem (ItemPosCountVec const &dest, Item *pItem, bool update) |
Item * | BankItem (uint16 pos, Item *pItem, bool update) |
void | RemoveItem (uint8 bag, uint8 slot, bool update, bool swap=false) |
void | MoveItemFromInventory (uint8 bag, uint8 slot, bool update) |
void | MoveItemToInventory (ItemPosCountVec const &dest, Item *pItem, bool update, bool in_characterInventoryDB=false) |
void | RemoveItemDependentAurasAndCasts (Item *pItem) |
void | DestroyItem (uint8 bag, uint8 slot, bool update) |
void | DestroyItemCount (uint32 item, uint32 count, bool update, bool unequip_check=false) |
void | DestroyItemCount (Item *item, uint32 &count, bool update) |
void | DestroyConjuredItems (bool update) |
void | DestroyZoneLimitedItem (bool update, uint32 new_zone) |
void | SplitItem (uint16 src, uint16 dst, uint32 count) |
void | SwapItem (uint16 src, uint16 dst) |
void | AddItemToBuyBackSlot (Item *pItem, uint32 money) |
Item * | GetItemFromBuyBackSlot (uint32 slot) |
void | RemoveItemFromBuyBackSlot (uint32 slot, bool del) |
uint32 | GetMaxKeyringSize () const |
void | SendEquipError (InventoryResult msg, Item *pItem, Item *pItem2=nullptr, uint32 itemid=0) |
void | SendBuyError (BuyResult msg, Creature *creature, uint32 item, uint32 param) |
void | SendSellError (SellResult msg, Creature *creature, ObjectGuid guid, uint32 param) |
void | AddWeaponProficiency (uint32 newflag) |
void | AddArmorProficiency (uint32 newflag) |
uint32 | GetWeaponProficiency () const |
uint32 | GetArmorProficiency () const |
bool | IsTwoHandUsed () const |
void | SendNewItem (Item *item, uint32 count, bool received, bool created, bool broadcast=false, bool sendChatMessage=true) |
bool | BuyItemFromVendorSlot (ObjectGuid vendorguid, uint32 vendorslot, uint32 item, uint8 count, uint8 bag, uint8 slot) |
bool | _StoreOrEquipNewItem (uint32 vendorslot, uint32 item, uint8 count, uint8 bag, uint8 slot, int32 price, ItemTemplate const *pProto, Creature *pVendor, VendorItem const *crItem, bool bStore) |
float | GetReputationPriceDiscount (Creature const *creature) const |
float | GetReputationPriceDiscount (FactionTemplateEntry const *factionTemplate) const |
Player * | GetTrader () const |
TradeData * | GetTradeData () const |
void | TradeCancel (bool sendback, TradeStatus status=TRADE_STATUS_TRADE_CANCELED) |
CinematicMgr * | GetCinematicMgr () const |
void | UpdateEnchantTime (uint32 time) |
void | UpdateSoulboundTradeItems () |
void | AddTradeableItem (Item *item) |
void | RemoveTradeableItem (Item *item) |
void | UpdateItemDuration (uint32 time, bool realtimeonly=false) |
void | AddEnchantmentDurations (Item *item) |
void | RemoveEnchantmentDurations (Item *item) |
void | RemoveEnchantmentDurationsReferences (Item *item) |
void | RemoveArenaEnchantments (EnchantmentSlot slot) |
void | AddEnchantmentDuration (Item *item, EnchantmentSlot slot, uint32 duration) |
void | ApplyEnchantment (Item *item, EnchantmentSlot slot, bool apply, bool apply_dur=true, bool ignore_condition=false) |
void | ApplyEnchantment (Item *item, bool apply) |
void | UpdateSkillEnchantments (uint16 skill_id, uint16 curr_value, uint16 new_value) |
void | SendEnchantmentDurations () |
void | UpdateEnchantmentDurations () |
void | BuildEnchantmentsInfoData (WorldPacket *data) |
void | AddItemDurations (Item *item) |
void | RemoveItemDurations (Item *item) |
void | SendItemDurations () |
void | LoadCorpse (PreparedQueryResult result) |
void | LoadPet () |
bool | AddItem (uint32 itemId, uint32 count) |
void | PrepareGossipMenu (WorldObject *source, uint32 menuId=0, bool showQuests=false) |
void | SendPreparedGossip (WorldObject *source) |
void | OnGossipSelect (WorldObject *source, uint32 gossipListId, uint32 menuId) |
uint32 | GetGossipTextId (uint32 menuId, WorldObject *source) |
uint32 | GetGossipTextId (WorldObject *source) |
void | ToggleInstantFlight () |
int32 | GetQuestLevel (Quest const *quest) const |
void | PrepareQuestMenu (ObjectGuid guid) |
void | SendPreparedQuest (ObjectGuid guid) |
bool | IsActiveQuest (uint32 quest_id) const |
Quest const * | GetNextQuest (ObjectGuid guid, Quest const *quest) |
bool | CanSeeStartQuest (Quest const *quest) |
bool | CanTakeQuest (Quest const *quest, bool msg) |
bool | CanAddQuest (Quest const *quest, bool msg) |
bool | CanCompleteQuest (uint32 quest_id, const QuestStatusData *q_savedStatus=nullptr) |
bool | CanCompleteRepeatableQuest (Quest const *quest) |
bool | CanRewardQuest (Quest const *quest, bool msg) |
bool | CanRewardQuest (Quest const *quest, uint32 reward, bool msg) |
void | AddQuestAndCheckCompletion (Quest const *quest, Object *questGiver) |
void | AddQuest (Quest const *quest, Object *questGiver) |
void | AbandonQuest (uint32 quest_id) |
void | CompleteQuest (uint32 quest_id) |
void | IncompleteQuest (uint32 quest_id) |
void | RewardQuest (Quest const *quest, uint32 reward, Object *questGiver, bool announce=true, bool isLFGReward=false) |
void | SetRewardedQuest (uint32 quest_id) |
void | FailQuest (uint32 quest_id) |
bool | SatisfyQuestSkill (Quest const *qInfo, bool msg) const |
bool | SatisfyQuestLevel (Quest const *qInfo, bool msg) const |
bool | SatisfyQuestLog (bool msg) |
bool | SatisfyQuestPreviousQuest (Quest const *qInfo, bool msg) const |
bool | SatisfyQuestClass (Quest const *qInfo, bool msg) const |
bool | SatisfyQuestRace (Quest const *qInfo, bool msg) const |
bool | SatisfyQuestReputation (Quest const *qInfo, bool msg) const |
bool | SatisfyQuestStatus (Quest const *qInfo, bool msg) const |
bool | SatisfyQuestConditions (Quest const *qInfo, bool msg) |
bool | SatisfyQuestTimed (Quest const *qInfo, bool msg) const |
bool | SatisfyQuestExclusiveGroup (Quest const *qInfo, bool msg) const |
bool | SatisfyQuestNextChain (Quest const *qInfo, bool msg) const |
bool | SatisfyQuestPrevChain (Quest const *qInfo, bool msg) const |
bool | SatisfyQuestDay (Quest const *qInfo, bool msg) const |
bool | SatisfyQuestWeek (Quest const *qInfo, bool msg) const |
bool | SatisfyQuestMonth (Quest const *qInfo, bool msg) const |
bool | SatisfyQuestSeasonal (Quest const *qInfo, bool msg) const |
bool | GiveQuestSourceItem (Quest const *quest) |
bool | TakeQuestSourceItem (uint32 questId, bool msg) |
uint32 | CalculateQuestRewardXP (Quest const *quest) |
bool | GetQuestRewardStatus (uint32 quest_id) const |
QuestStatus | GetQuestStatus (uint32 quest_id) const |
void | SetQuestStatus (uint32 questId, QuestStatus status, bool update=true) |
void | RemoveActiveQuest (uint32 questId, bool update=true) |
void | RemoveRewardedQuest (uint32 questId, bool update=true) |
void | SendQuestUpdate (uint32 questId) |
QuestGiverStatus | GetQuestDialogStatus (Object *questGiver) |
float | GetQuestRate (bool isDFQuest=false) |
void | SetDailyQuestStatus (uint32 quest_id) |
bool | IsDailyQuestDone (uint32 quest_id) |
void | SetWeeklyQuestStatus (uint32 quest_id) |
void | SetMonthlyQuestStatus (uint32 quest_id) |
void | SetSeasonalQuestStatus (uint32 quest_id) |
void | ResetDailyQuestStatus () |
void | ResetWeeklyQuestStatus () |
void | ResetMonthlyQuestStatus () |
void | ResetSeasonalQuestStatus (uint16 event_id) |
uint16 | FindQuestSlot (uint32 quest_id) const |
uint32 | GetQuestSlotQuestId (uint16 slot) const |
uint32 | GetQuestSlotState (uint16 slot) const |
uint16 | GetQuestSlotCounter (uint16 slot, uint8 counter) const |
uint32 | GetQuestSlotTime (uint16 slot) const |
void | SetQuestSlot (uint16 slot, uint32 quest_id, uint32 timer=0) |
void | SetQuestSlotCounter (uint16 slot, uint8 counter, uint16 count) |
void | SetQuestSlotState (uint16 slot, uint32 state) |
void | RemoveQuestSlotState (uint16 slot, uint32 state) |
void | SetQuestSlotTimer (uint16 slot, uint32 timer) |
void | SwapQuestSlot (uint16 slot1, uint16 slot2) |
uint16 | GetReqKillOrCastCurrentCount (uint32 quest_id, int32 entry) |
void | AreaExploredOrEventHappens (uint32 questId) |
void | GroupEventHappens (uint32 questId, WorldObject const *pEventObject) |
void | ItemAddedQuestCheck (uint32 entry, uint32 count) |
void | ItemRemovedQuestCheck (uint32 entry, uint32 count) |
void | KilledMonster (CreatureTemplate const *cInfo, ObjectGuid guid) |
void | KilledMonsterCredit (uint32 entry, ObjectGuid guid=ObjectGuid::Empty) |
void | KilledPlayerCredit (uint16 count=1) |
void | KilledPlayerCreditForQuest (uint16 count, Quest const *quest) |
void | KillCreditGO (uint32 entry, ObjectGuid guid=ObjectGuid::Empty) |
void | TalkedToCreature (uint32 entry, ObjectGuid guid) |
void | MoneyChanged (uint32 value) |
void | ReputationChanged (FactionEntry const *factionEntry) |
void | ReputationChanged2 (FactionEntry const *factionEntry) |
bool | HasQuestForItem (uint32 itemId, uint32 excludeQuestId=0, bool turnIn=false, bool *showInLoot=nullptr) const |
bool | HasQuestForGO (int32 GOId) const |
bool | HasQuest (uint32 questId) const |
void | UpdateForQuestWorldObjects () |
bool | CanShareQuest (uint32 quest_id) const |
void | SendQuestComplete (uint32 quest_id) |
void | SendQuestReward (Quest const *quest, uint32 XP) |
void | SendQuestFailed (uint32 questId, InventoryResult reason=EQUIP_ERR_OK) |
void | SendQuestTimerFailed (uint32 quest_id) |
void | SendCanTakeQuestResponse (uint32 msg) const |
void | SendQuestConfirmAccept (Quest const *quest, Player *pReceiver) |
void | SendPushToPartyResponse (Player const *player, uint8 msg) const |
void | SendQuestUpdateAddItem (Quest const *quest, uint32 item_idx, uint16 count) |
void | SendQuestUpdateAddCreatureOrGo (Quest const *quest, ObjectGuid guid, uint32 creatureOrGO_idx, uint16 old_count, uint16 add_count) |
void | SendQuestUpdateAddPlayer (Quest const *quest, uint16 old_count, uint16 add_count) |
ObjectGuid | GetDivider () |
void | SetDivider (ObjectGuid guid=ObjectGuid::Empty) |
uint32 | GetInGameTime () |
void | SetInGameTime (uint32 time) |
void | AddTimedQuest (uint32 quest_id) |
void | RemoveTimedQuest (uint32 quest_id) |
bool | HasPvPForcingQuest () const |
bool | LoadFromDB (ObjectGuid guid, CharacterDatabaseQueryHolder const &holder) |
bool | isBeingLoaded () const override |
void | Initialize (ObjectGuid::LowType guid) |
void | SaveToDB (bool create, bool logout) |
void | SaveToDB (CharacterDatabaseTransaction trans, bool create, bool logout) |
void | SaveInventoryAndGoldToDB (CharacterDatabaseTransaction trans) |
void | SaveGoldToDB (CharacterDatabaseTransaction trans) |
void | _SaveSkills (CharacterDatabaseTransaction trans) |
void | SetBindPoint (ObjectGuid guid) |
void | SendTalentWipeConfirm (ObjectGuid guid) |
void | ResetPetTalents () |
void | CalcRage (uint32 damage, bool attacker) |
void | RegenerateAll () |
void | Regenerate (Powers power) |
void | RegenerateHealth () |
void | setRegenTimerCount (uint32 time) |
void | setWeaponChangeTimer (uint32 time) |
uint32 | GetMoney () const |
bool | ModifyMoney (int32 amount, bool sendError=true) |
bool | HasEnoughMoney (uint32 amount) const |
bool | HasEnoughMoney (int32 amount) const |
void | SetMoney (uint32 value) |
RewardedQuestSet const & | getRewardedQuests () const |
QuestStatusMap & | getQuestStatusMap () |
QuestStatusSaveMap & | GetQuestStatusSaveMap () |
std::size_t | GetRewardedQuestCount () const |
bool | IsQuestRewarded (uint32 quest_id) const |
Unit * | GetSelectedUnit () const |
Player * | GetSelectedPlayer () const |
void | SetTarget (ObjectGuid=ObjectGuid::Empty) override |
void | SetSelection (ObjectGuid guid) |
Used for serverside target changes, does not apply to players. | |
void | SendMailResult (uint32 mailId, MailResponseType mailAction, MailResponseResult mailError, uint32 equipError=0, ObjectGuid::LowType item_guid=0, uint32 item_count=0) |
void | SendNewMail () |
void | UpdateNextMailTimeAndUnreads () |
void | AddNewMailDeliverTime (time_t deliver_time) |
void | RemoveMail (uint32 id) |
void | AddMail (Mail *mail) |
uint32 | GetMailSize () |
Mail * | GetMail (uint32 id) |
PlayerMails const & | GetMails () const |
void | SendItemRetrievalMail (uint32 itemEntry, uint32 count) |
void | SendItemRetrievalMail (std::vector< std::pair< uint32, uint32 > > mailItems) |
Item * | GetMItem (ObjectGuid::LowType itemLowGuid) |
void | AddMItem (Item *it) |
bool | RemoveMItem (ObjectGuid::LowType itemLowGuid) |
void | PetSpellInitialize () |
void | CharmSpellInitialize () |
void | PossessSpellInitialize () |
void | VehicleSpellInitialize () |
void | SendRemoveControlBar () |
bool | HasSpell (uint32 spell) const override |
bool | HasActiveSpell (uint32 spell) const |
TrainerSpellState | GetTrainerSpellState (TrainerSpell const *trainer_spell) const |
bool | IsSpellFitByClassAndRace (uint32 spell_id) const |
bool | IsNeedCastPassiveSpellAtLearn (SpellInfo const *spellInfo) const |
void | SendProficiency (ItemClass itemClass, uint32 itemSubclassMask) |
void | SendInitialSpells () |
void | SendLearnPacket (uint32 spellId, bool learn) |
bool | addSpell (uint32 spellId, uint8 addSpecMask, bool updateActive, bool temporary=false, bool learnFromSkill=false) |
bool | _addSpell (uint32 spellId, uint8 addSpecMask, bool temporary, bool learnFromSkill=false) |
void | learnSpell (uint32 spellId, bool temporary=false, bool learnFromSkill=false) |
void | removeSpell (uint32 spellId, uint8 removeSpecMask, bool onlyTemporary) |
void | resetSpells () |
void | LearnCustomSpells () |
void | LearnDefaultSkills () |
void | LearnDefaultSkill (uint32 skillId, uint16 rank) |
void | learnQuestRewardedSpells () |
void | learnQuestRewardedSpells (Quest const *quest) |
void | learnSpellHighRank (uint32 spellid) |
void | SetReputation (uint32 factionentry, float value) |
uint32 | GetReputation (uint32 factionentry) const |
std::string const & | GetGuildName () |
uint32 | GetFreeTalentPoints () const |
void | SetFreeTalentPoints (uint32 points) |
bool | resetTalents (bool noResetCost=false) |
uint32 | resetTalentsCost () const |
bool | IsMaxLevel () const |
void | InitTalentForLevel () |
void | BuildPlayerTalentsInfoData (WorldPacket *data) |
void | BuildPetTalentsInfoData (WorldPacket *data) |
void | SendTalentsInfoData (bool pet) |
void | LearnTalent (uint32 talentId, uint32 talentRank, bool command=false) |
void | LearnPetTalent (ObjectGuid petGuid, uint32 talentId, uint32 talentRank) |
bool | addTalent (uint32 spellId, uint8 addSpecMask, uint8 oldTalentRank) |
void | _removeTalent (PlayerTalentMap::iterator &itr, uint8 specMask) |
void | _removeTalent (uint32 spellId, uint8 specMask) |
void | _removeTalentAurasAndSpells (uint32 spellId) |
void | _addTalentAurasAndSpells (uint32 spellId) |
bool | HasTalent (uint32 spell_id, uint8 spec) const |
uint32 | CalculateTalentsPoints () const |
void | SetBonusTalentCount (uint32 count) |
uint32 | GetBonusTalentCount () |
void | AddBonusTalent (uint32 count) |
void | RemoveBonusTalent (uint32 count) |
void | UpdateSpecCount (uint8 count) |
uint8 | GetActiveSpec () const |
uint8 | GetActiveSpecMask () const |
void | SetActiveSpec (uint8 spec) |
uint8 | GetSpecsCount () const |
void | SetSpecsCount (uint8 count) |
void | ActivateSpec (uint8 spec) |
void | LoadActions (PreparedQueryResult result) |
void | GetTalentTreePoints (uint8(&specPoints)[3]) const |
uint8 | GetMostPointsTalentTree () const |
bool | HasTankSpec () |
bool | HasMeleeSpec () |
bool | HasCasterSpec () |
bool | HasHealSpec () |
uint32 | GetSpec (int8 spec=-1) |
void | InitGlyphsForLevel () |
void | SetGlyphSlot (uint8 slot, uint32 slottype) |
uint32 | GetGlyphSlot (uint8 slot) const |
void | SetGlyph (uint8 slot, uint32 glyph, bool save) |
uint32 | GetGlyph (uint8 slot) const |
uint32 | GetFreePrimaryProfessionPoints () const |
void | SetFreePrimaryProfessions (uint16 profs) |
void | InitPrimaryProfessions () |
PlayerSpellMap const & | GetSpellMap () const |
PlayerSpellMap & | GetSpellMap () |
SpellCooldowns const & | GetSpellCooldownMap () const |
SpellCooldowns & | GetSpellCooldownMap () |
SkillStatusMap const & | GetSkillStatusMap () const |
SkillStatusMap & | GetSkillStatusMap () |
void | AddSpellMod (SpellModifier *mod, bool apply) |
bool | IsAffectedBySpellmod (SpellInfo const *spellInfo, SpellModifier *mod, Spell *spell=nullptr) |
bool | HasSpellMod (SpellModifier *mod, Spell *spell) |
template<class T > | |
void | ApplySpellMod (uint32 spellId, SpellModOp op, T &basevalue, Spell *spell=nullptr, bool temporaryPet=false) |
void | RemoveSpellMods (Spell *spell) |
void | RestoreSpellMods (Spell *spell, uint32 ownerAuraId=0, Aura *aura=nullptr) |
void | RestoreAllSpellMods (uint32 ownerAuraId=0, Aura *aura=nullptr) |
void | DropModCharge (SpellModifier *mod, Spell *spell) |
void | SetSpellModTakingSpell (Spell *spell, bool apply) |
bool | HasSpellCooldown (uint32 spell_id) const override |
bool | HasSpellItemCooldown (uint32 spell_id, uint32 itemid) const override |
uint32 | GetSpellCooldownDelay (uint32 spell_id) const |
void | AddSpellAndCategoryCooldowns (SpellInfo const *spellInfo, uint32 itemId, Spell *spell=nullptr, bool infinityCooldown=false) |
void | AddSpellCooldown (uint32 spell_id, uint32 itemid, uint32 end_time, bool needSendToClient=false, bool forceSendToSpectator=false) override |
void | _AddSpellCooldown (uint32 spell_id, uint16 categoryId, uint32 itemid, uint32 end_time, bool needSendToClient=false, bool forceSendToSpectator=false) |
void | ModifySpellCooldown (uint32 spellId, int32 cooldown) |
void | SendCooldownEvent (SpellInfo const *spellInfo, uint32 itemId=0, Spell *spell=nullptr, bool setCooldown=true) |
void | ProhibitSpellSchool (SpellSchoolMask idSchoolMask, uint32 unTimeMs) override |
void | RemoveSpellCooldown (uint32 spell_id, bool update=false) |
void | SendClearCooldown (uint32 spell_id, Unit *target) |
GlobalCooldownMgr & | GetGlobalCooldownMgr () |
void | RemoveCategoryCooldown (uint32 cat) |
void | RemoveArenaSpellCooldowns (bool removeActivePetCooldowns=false) |
void | RemoveAllSpellCooldown () |
void | _LoadSpellCooldowns (PreparedQueryResult result) |
void | _SaveSpellCooldowns (CharacterDatabaseTransaction trans, bool logout) |
uint32 | GetLastPotionId () |
void | SetLastPotionId (uint32 item_id) |
void | UpdatePotionCooldown (Spell *spell=nullptr) |
void | setResurrectRequestData (ObjectGuid guid, uint32 mapId, float X, float Y, float Z, uint32 health, uint32 mana) |
void | clearResurrectRequestData () |
bool | isResurrectRequestedBy (ObjectGuid guid) const |
bool | isResurrectRequested () const |
void | ResurectUsingRequestData () |
uint8 | getCinematic () const |
void | setCinematic (uint8 cine) |
ActionButton * | addActionButton (uint8 button, uint32 action, uint8 type) |
void | removeActionButton (uint8 button) |
ActionButton const * | GetActionButton (uint8 button) |
void | SendInitialActionButtons () const |
void | SendActionButtons (uint32 state) const |
bool | IsActionButtonDataValid (uint8 button, uint32 action, uint8 type) |
void | UpdatePvPState () |
void | UpdateFFAPvPState (bool reset=true) |
void | SetPvP (bool state) |
void | UpdatePvP (bool state, bool _override=false) |
void | UpdateZone (uint32 newZone, uint32 newArea, bool force=false) |
void | UpdateArea (uint32 newArea) |
void | SetNeedZoneUpdate (bool needUpdate) |
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 | UpdateFFAPvPFlag (time_t currTime) |
void | UpdateContestedPvP (uint32 currTime) |
void | SetContestedPvPTimer (uint32 newTime) |
void | ResetContestedPvP () |
void | UpdateDuelFlag (time_t currTime) |
void | CheckDuelDistance (time_t currTime) |
void | DuelComplete (DuelCompleteType type) |
void | SendDuelCountdown (uint32 counter) |
bool | IsGroupVisibleFor (Player const *p) const |
bool | IsInSameGroupWith (Player const *p) const |
bool | IsInSameRaidWith (Player const *p) const |
void | UninviteFromGroup () |
void | RemoveFromGroup (RemoveMethod method=GROUP_REMOVEMETHOD_DEFAULT) |
void | SendUpdateToOutOfRangeGroupMembers () |
void | SetInGuild (uint32 GuildId) |
void | SetRank (uint8 rankId) |
uint8 | GetRank () const |
void | SetGuildIdInvited (uint32 GuildId) |
uint32 | GetGuildId () const |
Guild * | GetGuild () const |
uint32 | GetGuildIdInvited () |
void | SetInArenaTeam (uint32 ArenaTeamId, uint8 slot, uint8 type) |
void | SetArenaTeamInfoField (uint8 slot, ArenaTeamInfoType type, uint32 value) |
uint32 | GetArenaPersonalRating (uint8 slot) const |
uint32 | GetArenaTeamId (uint8 slot) const |
void | SetArenaTeamIdInvited (uint32 ArenaTeamId) |
uint32 | GetArenaTeamIdInvited () |
Difficulty | GetDifficulty (bool isRaid) const |
Difficulty | GetDungeonDifficulty () const |
Difficulty | GetRaidDifficulty () const |
Difficulty | GetStoredRaidDifficulty () const |
void | SetDungeonDifficulty (Difficulty dungeon_difficulty) |
void | SetRaidDifficulty (Difficulty raid_difficulty) |
void | StoreRaidMapDifficulty () |
bool | UpdateSkill (uint32 skill_id, uint32 step) |
bool | UpdateSkillPro (uint16 SkillId, int32 Chance, uint32 step) |
bool | UpdateCraftSkill (uint32 spellid) |
bool | UpdateGatherSkill (uint32 SkillId, uint32 SkillValue, uint32 RedLevel, uint32 Multiplicator=1) |
bool | UpdateFishingSkill () |
uint32 | GetBaseDefenseSkillValue () const |
uint32 | GetBaseWeaponSkillValue (WeaponAttackType attType) const |
uint32 | GetSpellByProto (ItemTemplate *proto) |
float | GetHealthBonusFromStamina () |
float | GetManaBonusFromIntellect () |
bool | UpdateStats (Stats stat) override |
bool | UpdateAllStats () override |
void | ApplySpellPenetrationBonus (int32 amount, bool apply) |
void | UpdateResistances (uint32 school) override |
void | UpdateArmor () override |
void | UpdateMaxHealth () override |
void | UpdateMaxPower (Powers power) override |
void | ApplyFeralAPBonus (int32 amount, bool apply) |
void | UpdateAttackPowerAndDamage (bool ranged=false) override |
void | UpdateShieldBlockValue () |
void | ApplySpellPowerBonus (int32 amount, bool apply) |
void | UpdateSpellDamageAndHealingBonus () |
void | ApplyRatingMod (CombatRating cr, int32 value, bool apply) |
void | UpdateRating (CombatRating cr) |
void | UpdateAllRatings () |
void | CalculateMinMaxDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, float &minDamage, float &maxDamage, uint8 damageIndex) override |
void | UpdateDefenseBonusesMod () |
void | RecalculateRating (CombatRating cr) |
float | GetMeleeCritFromAgility () |
void | GetDodgeFromAgility (float &diminishing, float &nondiminishing) |
float | GetMissPercentageFromDefence () const |
float | GetSpellCritFromIntellect () |
float | OCTRegenHPPerSpirit () |
float | OCTRegenMPPerSpirit () |
float | GetRatingMultiplier (CombatRating cr) const |
float | GetRatingBonusValue (CombatRating cr) const |
uint32 | GetBaseSpellPowerBonus () |
int32 | GetSpellPenetrationItemMod () const |
float | GetExpertiseDodgeOrParryReduction (WeaponAttackType attType) const |
void | UpdateBlockPercentage () |
void | UpdateCritPercentage (WeaponAttackType attType) |
void | UpdateAllCritPercentages () |
void | UpdateParryPercentage () |
void | UpdateDodgePercentage () |
void | UpdateMeleeHitChances () |
void | UpdateRangedHitChances () |
void | UpdateSpellHitChances () |
void | UpdateAllSpellCritChances () |
void | UpdateSpellCritChance (uint32 school) |
void | UpdateArmorPenetration (int32 amount) |
void | UpdateExpertise (WeaponAttackType attType) |
void | ApplyManaRegenBonus (int32 amount, bool apply) |
void | ApplyHealthRegenBonus (int32 amount, bool apply) |
void | UpdateManaRegen () |
void | UpdateRuneRegen (RuneType rune) |
ObjectGuid | GetLootGUID () const |
void | SetLootGUID (ObjectGuid guid) |
void | RemovedInsignia (Player *looterPlr) |
WorldSession * | GetSession () const |
void | SetSession (WorldSession *sess) |
void | BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) override |
void | DestroyForPlayer (Player *target, bool onDeath=false) const override |
void | SendLogXPGain (uint32 GivenXP, Unit *victim, uint32 BonusXP, bool recruitAFriend=false, float group_rate=1.0f) |
void | SendAttackSwingCantAttack () |
void | SendAttackSwingCancelAttack () |
void | SendAttackSwingDeadTarget () |
void | SendAttackSwingNotInRange () |
void | SendAttackSwingBadFacingAttack () |
void | SendAutoRepeatCancel (Unit *target) |
void | SendExplorationExperience (uint32 Area, uint32 Experience) |
void | SendDungeonDifficulty (bool IsInGroup) |
void | SendRaidDifficulty (bool IsInGroup, int32 forcedDifficulty=-1) |
void | SendResetInstanceSuccess (uint32 MapId) |
void | SendResetInstanceFailed (uint32 reason, uint32 MapId) |
void | SendResetFailedNotify (uint32 mapid) |
bool | UpdatePosition (float x, float y, float z, float orientation, bool teleport=false) override |
bool | UpdatePosition (const Position &pos, bool teleport=false) |
void | ProcessTerrainStatusUpdate () 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 includeMargin, bool ownTeamOnly, bool required3dDist=false) const |
void | SendMessageToSet (WorldPacket const *data, Player const *skipped_rcvr) const override |
void | SendTeleportAckPacket () |
Corpse * | GetCorpse () const |
void | SpawnCorpseBones (bool triggerSave=true) |
Corpse * | CreateCorpse () |
void | RemoveCorpse () |
void | KillPlayer () |
bool | HasCorpse () const |
WorldLocation | GetCorpseLocation () const |
uint32 | GetResurrectionSpellId () |
void | ResurrectPlayer (float restore_percent, bool applySickness=false) |
void | BuildPlayerRepop () |
void | RepopAtGraveyard () |
void | SendDurabilityLoss () |
void | DurabilityLossAll (double percent, bool inventory) |
void | DurabilityLoss (Item *item, double percent) |
void | DurabilityPointsLossAll (int32 points, bool inventory) |
void | DurabilityPointsLoss (Item *item, int32 points) |
void | DurabilityPointLossForEquipSlot (EquipmentSlots slot) |
uint32 | DurabilityRepairAll (bool cost, float discountMod, bool guildBank) |
uint32 | DurabilityRepair (uint16 pos, bool cost, float discountMod, bool guildBank) |
void | UpdateMirrorTimers () |
void | StopMirrorTimers () |
bool | IsMirrorTimerActive (MirrorTimerType type) |
void | SetMovement (PlayerMovementType pType) |
bool | CanJoinConstantChannelInZone (ChatChannelsEntry const *channel, AreaTableEntry const *zone) |
void | JoinedChannel (Channel *c) |
void | LeftChannel (Channel *c) |
void | CleanupChannels () |
void | ClearChannelWatch () |
void | UpdateLFGChannel () |
void | UpdateLocalChannels (uint32 newZone) |
void | UpdateDefense () |
void | UpdateWeaponSkill (Unit *victim, WeaponAttackType attType, Item *item=nullptr) |
void | UpdateCombatSkills (Unit *victim, WeaponAttackType attType, bool defence, Item *item=nullptr) |
void | SetSkill (uint16 id, uint16 step, uint16 currVal, uint16 maxVal) |
uint16 | GetMaxSkillValue (uint32 skill) const |
uint16 | GetPureMaxSkillValue (uint32 skill) const |
uint16 | GetSkillValue (uint32 skill) const |
uint16 | GetBaseSkillValue (uint32 skill) const |
uint16 | GetPureSkillValue (uint32 skill) const |
int16 | GetSkillPermBonusValue (uint32 skill) const |
int16 | GetSkillTempBonusValue (uint32 skill) const |
uint16 | GetSkillStep (uint16 skill) const |
bool | HasSkill (uint32 skill) const |
void | learnSkillRewardedSpells (uint32 id, uint32 value) |
WorldLocation & | GetTeleportDest () |
bool | IsBeingTeleported () const |
bool | IsBeingTeleportedNear () const |
bool | IsBeingTeleportedFar () const |
void | SetSemaphoreTeleportNear (time_t tm) |
void | SetSemaphoreTeleportFar (time_t tm) |
time_t | GetSemaphoreTeleportNear () const |
time_t | GetSemaphoreTeleportFar () const |
void | ProcessDelayedOperations () |
uint32 | GetDelayedOperations () const |
void | ScheduleDelayedOperation (uint32 operation) |
void | CheckAreaExploreAndOutdoor () |
TeamId | GetTeamId (bool original=false) const |
void | SetFactionForRace (uint8 race) |
void | setTeamId (TeamId teamid) |
void | InitDisplayIds () |
bool | IsAtGroupRewardDistance (WorldObject const *pRewardSource) const |
bool | IsAtLootRewardDistance (WorldObject const *pRewardSource) const |
bool | IsAtRecruitAFriendDistance (WorldObject const *pOther) const |
void | RewardPlayerAndGroupAtKill (Unit *victim, bool isBattleGround) |
void | RewardPlayerAndGroupAtEvent (uint32 creature_id, WorldObject *pRewardSource) |
bool | isHonorOrXPTarget (Unit *victim) const |
bool | GetsRecruitAFriendBonus (bool forXP) |
uint8 | GetGrantableLevels () |
void | SetGrantableLevels (uint8 val) |
ReputationMgr & | GetReputationMgr () |
ReputationMgr const & | GetReputationMgr () const |
ReputationRank | GetReputationRank (uint32 faction_id) const |
void | RewardReputation (Unit *victim) |
void | RewardReputation (Quest const *quest) |
float | CalculateReputationGain (ReputationSource source, uint32 creatureOrQuestLevel, float rep, int32 faction, bool noQuestBonus=false) |
void | UpdateSkillsForLevel () |
void | UpdateSkillsToMaxSkillsForLevel () |
void | ModifySkillBonus (uint32 skillid, int32 val, bool talent) |
void | RewardExtraBonusTalentPoints (uint32 bonusTalentPoints) |
void | UpdateHonorFields () |
bool | RewardHonor (Unit *victim, uint32 groupsize, int32 honor=-1, bool awardXP=true) |
uint32 | GetHonorPoints () const |
uint32 | GetArenaPoints () const |
void | ModifyHonorPoints (int32 value, CharacterDatabaseTransaction trans=CharacterDatabaseTransaction(nullptr)) |
void | ModifyArenaPoints (int32 value, CharacterDatabaseTransaction trans=CharacterDatabaseTransaction(nullptr)) |
If trans is specified, honor save query will be added to trans. | |
uint32 | GetMaxPersonalArenaRatingRequirement (uint32 minarenaslot) const |
If trans is specified, arena point save query will be added to trans. | |
void | SetHonorPoints (uint32 value) |
void | SetArenaPoints (uint32 value) |
void | SaveHealthBeforeDuel () |
void | SaveManaBeforeDuel () |
void | RestoreHealthAfterDuel () |
void | RestoreManaAfterDuel () |
SpellCooldowns | GetSpellCooldowns () const |
void | SetDrunkValue (uint8 newDrunkValue, uint32 itemId=0) |
uint8 | GetDrunkValue () const |
int32 | GetFakeDrunkValue () const |
void | UpdateInvisibilityDrunkDetect () |
uint32 | GetDeathTimer () const |
uint32 | GetCorpseReclaimDelay (bool pvp) const |
void | UpdateCorpseReclaimDelay () |
int32 | CalculateCorpseReclaimDelay (bool load=false) |
void | SendCorpseReclaimDelay (uint32 delay) |
uint32 | GetShieldBlockValue () const override |
bool | CanParry () const |
void | SetCanParry (bool value) |
bool | CanBlock () const |
void | SetCanBlock (bool value) |
bool | CanTitanGrip () const |
void | SetCanTitanGrip (bool value) |
bool | CanTameExoticPets () const |
void | SetRegularAttackTime () |
void | SetBaseModValue (BaseModGroup modGroup, BaseModType modType, float value) |
void | HandleBaseModValue (BaseModGroup modGroup, BaseModType modType, float amount, bool apply) |
float | GetBaseModValue (BaseModGroup modGroup, BaseModType modType) const |
float | GetTotalBaseModValue (BaseModGroup modGroup) const |
float | GetTotalPercentageModValue (BaseModGroup modGroup) const |
void | _ApplyAllStatBonuses () |
void | _RemoveAllStatBonuses () |
void | ResetAllPowers () |
SpellSchoolMask | GetMeleeDamageSchoolMask (WeaponAttackType attackType=BASE_ATTACK, uint8 damageIndex=0) const override |
void | _ApplyWeaponDependentAuraMods (Item *item, WeaponAttackType attackType, bool apply) |
void | _ApplyWeaponDependentAuraCritMod (Item *item, WeaponAttackType attackType, AuraEffect const *aura, bool apply) |
void | _ApplyWeaponDependentAuraDamageMod (Item *item, WeaponAttackType attackType, AuraEffect const *aura, bool apply) |
void | _ApplyItemMods (Item *item, uint8 slot, bool apply) |
void | _RemoveAllItemMods () |
void | _ApplyAllItemMods () |
void | _ApplyAllLevelScaleItemMods (bool apply) |
void | _ApplyItemBonuses (ItemTemplate const *proto, uint8 slot, bool apply, bool only_level_scale=false) |
void | _ApplyWeaponDamage (uint8 slot, ItemTemplate const *proto, ScalingStatValuesEntry const *ssv, bool apply) |
void | _ApplyAmmoBonuses () |
bool | EnchantmentFitsRequirements (uint32 enchantmentcondition, int8 slot) |
void | ToggleMetaGemsActive (uint8 exceptslot, bool apply) |
void | CorrectMetaGemEnchants (uint8 slot, bool apply) |
void | InitDataForForm (bool reapplyMods=false) |
void | ApplyItemEquipSpell (Item *item, bool apply, bool form_change=false) |
void | ApplyEquipSpell (SpellInfo const *spellInfo, Item *item, bool apply, bool form_change=false) |
void | UpdateEquipSpellsAtFormChange () |
void | CastItemCombatSpell (Unit *target, WeaponAttackType attType, uint32 procVictim, uint32 procEx) |
void | CastItemUseSpell (Item *item, SpellCastTargets const &targets, uint8 cast_count, uint32 glyphIndex) |
void | CastItemCombatSpell (Unit *target, WeaponAttackType attType, uint32 procVictim, uint32 procEx, Item *item, ItemTemplate const *proto) |
void | SendEquipmentSetList () |
void | SetEquipmentSet (uint32 index, EquipmentSet eqset) |
void | DeleteEquipmentSet (uint64 setGuid) |
void | SendInitWorldStates (uint32 zoneId, uint32 areaId) |
void | SendUpdateWorldState (uint32 variable, uint32 value) const |
void | SendDirectMessage (WorldPacket const *data) const |
void | SendBGWeekendWorldStates () |
void | SendBattlefieldWorldStates () |
void | GetAurasForTarget (Unit *target, bool force=false) |
void | SendLoot (ObjectGuid guid, LootType loot_type) |
void | SendLootError (ObjectGuid guid, LootError error) |
void | SendLootRelease (ObjectGuid guid) |
void | SendNotifyLootItemRemoved (uint8 lootSlot) |
void | SendNotifyLootMoneyRemoved () |
bool | InBattleground () const |
bool | InArena () const |
uint32 | GetBattlegroundId () const |
BattlegroundTypeId | GetBattlegroundTypeId () const |
uint32 | GetCurrentBattlegroundQueueSlot () const |
bool | IsInvitedForBattlegroundInstance () const |
bool | IsCurrentBattlegroundRandom () const |
BGData & | GetBGData () |
void | SetBGData (BGData &bgdata) |
Battleground * | GetBattleground (bool create=false) 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 id, BattlegroundTypeId bgTypeId, uint32 queueSlot, bool invited, bool isRandom, TeamId teamId) |
uint32 | AddBattlegroundQueueId (BattlegroundQueueTypeId val) |
bool | HasFreeBattlegroundQueueId () const |
void | RemoveBattlegroundQueueId (BattlegroundQueueTypeId val) |
void | SetInviteForBattlegroundQueueType (BattlegroundQueueTypeId bgQueueTypeId, uint32 instanceId) |
bool | IsInvitedForBattlegroundInstance (uint32 instanceId) const |
TeamId | GetBgTeamId () const |
void | LeaveBattleground (Battleground *bg=nullptr) |
bool | CanJoinToBattleground () 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 () |
void | SetRandomWinner (bool isWinner) |
OutdoorPvP * | GetOutdoorPvP () const |
bool | IsOutdoorPvPActive () |
bool | IsImmuneToEnvironmentalDamage () |
uint32 | EnvironmentalDamage (EnviromentalDamage type, uint32 damage) |
void | UpdateSpeakTime (ChatFloodThrottle::Index index) |
bool | CanSpeak () const |
void | UpdateFallInformationIfNeed (MovementInfo const &minfo, uint16 opcode) |
void | SetFallInformation (uint32 time, float z) |
void | HandleFall (MovementInfo const &movementInfo) |
bool | canFlyInZone (uint32 mapid, uint32 zone, SpellInfo const *bySpell) |
void | SetClientControl (Unit *target, bool allowMove, bool packetOnly=false) |
void | SetMover (Unit *target) |
void | SetSeer (WorldObject *target) |
void | SetViewpoint (WorldObject *target, bool apply) |
WorldObject * | GetViewpoint () const |
void | StopCastingCharm (Aura *except=nullptr) |
void | StopCastingBindSight (Aura *except=nullptr) |
uint32 | GetSaveTimer () const |
void | SetSaveTimer (uint32 timer) |
void | SaveRecallPosition () |
void | SetHomebind (WorldLocation const &loc, uint32 areaId) |
WorldLocation | GetStartPosition () const |
WorldLocation const & | GetEntryPoint () const |
void | SetEntryPoint () |
bool | HaveAtClient (WorldObject const *u) const |
bool | HaveAtClient (ObjectGuid guid) const |
bool | IsNeverVisible () const override |
bool | IsVisibleGloballyFor (Player const *player) const |
void | GetInitialVisiblePackets (Unit *target) |
void | UpdateObjectVisibility (bool forced=true, bool fromUpdate=false) override |
void | UpdateVisibilityForPlayer (bool mapChange=false) |
void | UpdateVisibilityOf (WorldObject *target) |
void | UpdateTriggerVisibility () |
template<class T > | |
void | UpdateVisibilityOf (T *target, UpdateData &data, std::vector< Unit * > &visibleNow) |
bool | HasAtLoginFlag (AtLoginFlags f) const |
void | SetAtLoginFlag (AtLoginFlags f) |
void | RemoveAtLoginFlag (AtLoginFlags flags, bool persist=false) |
bool | IsUsingLfg () |
bool | inRandomLfgDungeon () |
uint32 | GetTemporaryUnsummonedPetNumber () const |
void | SetTemporaryUnsummonedPetNumber (uint32 petnumber) |
void | UnsummonPetTemporaryIfAny () |
void | ResummonPetTemporaryUnSummonedIfAny () |
bool | IsPetNeedBeTemporaryUnsummoned () const |
bool | CanResummonPet (uint32 spellid) |
void | SendCinematicStart (uint32 CinematicSequenceId) const |
void | SendMovieStart (uint32 MovieId) |
uint32 | DoRandomRoll (uint32 minimum, uint32 maximum) |
uint16 | GetMaxSkillValueForLevel () const |
bool | IsFFAPvP () |
bool | IsPvP () |
void | UpdateHomebindTime (uint32 time) |
void | BindToInstance () |
void | SetPendingBind (uint32 instanceId, uint32 bindTimer) |
bool | HasPendingBind () const |
uint32 | GetPendingBind () const |
void | SendRaidInfo () |
void | SendSavedInstances () |
void | PrettyPrintRequirementsQuestList (const std::vector< const ProgressionRequirement * > &missingQuests) const |
void | PrettyPrintRequirementsAchievementsList (const std::vector< const ProgressionRequirement * > &missingAchievements) const |
void | PrettyPrintRequirementsItemsList (const std::vector< const ProgressionRequirement * > &missingItems) const |
bool | Satisfy (DungeonProgressionRequirements const *ar, uint32 target_map, bool report=false) |
bool | CheckInstanceLoginValid () |
bool | CheckInstanceCount (uint32 instanceId) const |
void | AddInstanceEnterTime (uint32 instanceId, time_t enterTime) |
uint32 | GetLastPetNumber () const |
void | SetLastPetNumber (uint32 petnumber) |
uint32 | GetLastPetSpell () const |
void | SetLastPetSpell (uint32 petspell) |
Group * | GetGroupInvite () |
void | SetGroupInvite (Group *group) |
Group * | GetGroup () |
const Group * | GetGroup () const |
GroupReference & | GetGroupRef () |
void | SetGroup (Group *group, int8 subgroup=-1) |
uint8 | GetSubGroup () const |
uint32 | GetGroupUpdateFlag () const |
void | SetGroupUpdateFlag (uint32 flag) |
uint64 | GetAuraUpdateMaskForRaid () const |
void | SetAuraUpdateMaskForRaid (uint8 slot) |
Player * | GetNextRandomRaidMember (float radius) |
PartyResult | CanUninviteFromGroup (ObjectGuid targetPlayerGUID=ObjectGuid::Empty) const |
void | SetBattlegroundOrBattlefieldRaid (Group *group, int8 subgroup=-1) |
void | RemoveFromBattlegroundOrBattlefieldRaid () |
Group * | GetOriginalGroup () |
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 | CanTeleport () |
void | SetCanTeleport (bool value) |
bool | CanKnockback () |
void | SetCanKnockback (bool value) |
bool | isAllowedToLoot (Creature const *creature) |
DeclinedName const * | GetDeclinedNames () const |
uint8 | GetRunesState () const |
RuneType | GetBaseRune (uint8 index) const |
RuneType | GetCurrentRune (uint8 index) const |
uint32 | GetRuneCooldown (uint8 index) const |
uint32 | GetGracePeriod (uint8 index) const |
uint32 | GetRuneBaseCooldown (uint8 index, bool skipGrace) |
bool | IsBaseRuneSlotsOnCooldown (RuneType runeType) const |
RuneType | GetLastUsedRune () |
void | SetLastUsedRune (RuneType type) |
void | SetBaseRune (uint8 index, RuneType baseRune) |
void | SetCurrentRune (uint8 index, RuneType currentRune) |
void | SetRuneCooldown (uint8 index, uint32 cooldown) |
void | SetGracePeriod (uint8 index, uint32 period) |
void | SetRuneConvertAura (uint8 index, AuraEffect const *aura) |
void | AddRuneByAuraEffect (uint8 index, RuneType newType, AuraEffect const *aura) |
void | RemoveRunesByAuraEffect (AuraEffect const *aura) |
void | RestoreBaseRune (uint8 index) |
void | ConvertRune (uint8 index, RuneType newType) |
void | ResyncRunes (uint8 count) |
void | AddRunePower (uint8 index) |
void | InitRunes () |
void | SendRespondInspectAchievements (Player *player) const |
bool | HasAchieved (uint32 achievementId) const |
void | ResetAchievements () |
void | CheckAllAchievementCriteria () |
void | ResetAchievementCriteria (AchievementCriteriaCondition condition, uint32 value, bool evenIfCriteriaComplete=false) |
void | UpdateAchievementCriteria (AchievementCriteriaTypes type, uint32 miscValue1=0, uint32 miscValue2=0, Unit *unit=nullptr) |
void | StartTimedAchievement (AchievementCriteriaTimedTypes type, uint32 entry, uint32 timeLost=0) |
void | RemoveTimedAchievement (AchievementCriteriaTimedTypes type, uint32 entry) |
void | CompletedAchievement (AchievementEntry const *entry) |
AchievementMgr * | GetAchievementMgr () const |
void | SetCreationTime (Seconds creationTime) |
Seconds | GetCreationTime () const |
bool | HasTitle (uint32 bitIndex) const |
bool | HasTitle (CharTitlesEntry const *title) const |
void | SetTitle (CharTitlesEntry const *title, bool lost=false) |
void | SetCurrentTitle (CharTitlesEntry const *title, bool clear=false) |
bool | CanSeeSpellClickOn (Creature const *creature) const |
bool | CanSeeVendor (Creature const *creature) const |
uint32 | GetChampioningFaction () const |
void | SetChampioningFaction (uint32 faction) |
float | GetAverageItemLevel () |
float | GetAverageItemLevelForDF () |
void | ClearWhisperWhiteList () |
void | AddWhisperWhiteList (ObjectGuid guid) |
bool | IsInWhisperWhiteList (ObjectGuid guid) |
void | RemoveFromWhisperWhiteList (ObjectGuid guid) |
bool | SetDisableGravity (bool disable, bool packetOnly=false, bool updateAnimationTier=true) override |
bool | SetCanFly (bool apply, bool packetOnly=false) override |
Add the movement flag: MOVEMENTFLAGCAN_FLY. Generaly only use by players, allowing them to fly by pressing space for example. For creatures, please look for DisableGravity(). | |
bool | SetWaterWalking (bool apply, bool packetOnly=false) override |
Allow to walk on water. Doesn't inform the client. Need to use SendMovementWaterWalking() if it's for players. | |
bool | SetFeatherFall (bool apply, bool packetOnly=false) override |
bool | SetHover (bool enable, bool packetOnly=false, bool updateAnimationTier=true) override |
bool | CanFly () const override |
bool | CanEnterWater () const override |
void | AdditionalSavingAddMask (uint8 mask) |
bool | IsSpectator () const |
void | SetIsSpectator (bool on) |
bool | NeedSendSpectatorData () const |
void | SetPendingSpectatorForBG (uint32 bgInstanceId) |
bool | HasPendingSpectatorForBG (uint32 bgInstanceId) const |
void | SetPendingSpectatorInviteInstanceId (uint32 bgInstanceId) |
uint32 | GetPendingSpectatorInviteInstanceId () const |
bool | HasReceivedSpectatorResetFor (ObjectGuid guid) |
void | ClearReceivedSpectatorResetFor () |
void | AddReceivedSpectatorResetFor (ObjectGuid guid) |
void | RemoveReceivedSpectatorResetFor (ObjectGuid guid) |
void | setRuneWeaponGUID (ObjectGuid guid) |
ObjectGuid | getRuneWeaponGUID () |
bool | CanSeeDKPet () const |
void | SetShowDKPet (bool on) |
void | PrepareCharmAISpells () |
bool | NeedToSaveGlyphs () |
void | SetNeedToSaveGlyphs (bool val) |
uint32 | GetMountBlockId () |
void | SetMountBlockId (uint32 mount) |
float | GetRealParry () const |
float | GetRealDodge () const |
const PlayerTalentMap & | GetTalentMap () const |
uint32 | GetNextSave () const |
SpellModList const & | GetSpellModList (uint32 type) const |
void | SetServerSideVisibility (ServerSideVisibilityType type, AccountTypes sec) |
void | SetServerSideVisibilityDetect (ServerSideVisibilityType type, AccountTypes sec) |
void | SetFarSightDistance (float radius) |
void | ResetFarSightDistance () |
Optional< float > | GetFarSightDistance () const |
float | GetSightRange (WorldObject const *target=nullptr) const override |
std::string | GetPlayerName () |
PlayerSetting | GetPlayerSetting (std::string source, uint8 index) |
void | UpdatePlayerSetting (std::string source, uint8 index, uint32 value) |
void | SendSystemMessage (std::string_view msg, bool escapeCharacters=false) |
std::string | GetDebugInfo () const override |
const PendingSpellCastRequest * | GetCastRequest (uint32 category) const |
bool | CanExecutePendingSpellCastRequest (SpellInfo const *spellInfo) |
void | ExecuteOrCancelSpellCastRequest (PendingSpellCastRequest *castRequest, bool isCancel=false) |
bool | CanRequestSpellCast (SpellInfo const *spellInfo) |
![]() | |
~Unit () override | |
void | Update (uint32 time) override |
UnitAI * | GetAI () |
void | SetAI (UnitAI *newAI) |
void | AddToWorld () override |
void | RemoveFromWorld () override |
void | CleanupBeforeRemoveFromMap (bool finalCleanup) |
void | CleanupsBeforeDelete (bool finalCleanup=true) override |
bool | IsDuringRemoveFromWorld () const |
void | SetUInt32Value (uint16 index, uint32 value) |
Unit * | GetOwner () const |
ObjectGuid | GetOwnerGUID () const |
void | SetOwnerGUID (ObjectGuid owner) |
ObjectGuid | GetCreatorGUID () const |
void | SetCreatorGUID (ObjectGuid creator) |
ObjectGuid | GetMinionGUID () const |
void | SetMinionGUID (ObjectGuid guid) |
ObjectGuid | GetCharmerGUID () const |
void | SetCharmerGUID (ObjectGuid owner) |
ObjectGuid | GetCharmGUID () const |
void | SetPetGUID (ObjectGuid guid) |
ObjectGuid | GetPetGUID () const |
void | SetCritterGUID (ObjectGuid guid) |
ObjectGuid | GetCritterGUID () const |
ObjectGuid | GetTransGUID () const override |
Pet * | ToPet () |
Totem * | ToTotem () |
TempSummon * | ToTempSummon () |
const TempSummon * | ToTempSummon () const |
void | AddUnitState (uint32 f) |
bool | HasUnitState (const uint32 f) const |
void | ClearUnitState (uint32 f) |
uint32 | GetUnitState () const |
uint32 | HasUnitTypeMask (uint32 mask) const |
void | AddUnitTypeMask (uint32 mask) |
uint32 | GetUnitTypeMask () const |
UnitFlags | GetUnitFlags () const |
bool | HasUnitFlag (UnitFlags flags) const |
void | SetUnitFlag (UnitFlags flags) |
UnitFlags available in UnitDefines.h. | |
void | RemoveUnitFlag (UnitFlags flags) |
UnitFlags available in UnitDefines.h. | |
void | ReplaceAllUnitFlags (UnitFlags flags) |
Remove the Unit flag specify only. | |
UnitFlags2 | GetUnitFlags2 () const |
Remove all UnitFlags and set new ones. UnitFlags available in UnitDefines.h. | |
bool | HasUnitFlag2 (UnitFlags2 flags) const |
void | SetUnitFlag2 (UnitFlags2 flags) |
void | RemoveUnitFlag2 (UnitFlags2 flags) |
void | ReplaceAllUnitFlags2 (UnitFlags2 flags) |
void | SetEmoteState (Emote emoteState) |
void | ClearEmoteState () |
Sets emote state (looping emote). Emotes available in SharedDefines.h. | |
NPCFlags | GetNpcFlags () const |
Clears emote state (looping emote) | |
bool | HasNpcFlag (NPCFlags flags) const |
void | SetNpcFlag (NPCFlags flags) |
void | RemoveNpcFlag (NPCFlags flags) |
void | ReplaceAllNpcFlags (NPCFlags flags) |
uint32 | GetDynamicFlags () const override |
void | ReplaceAllDynamicFlags (uint32 flag) override |
void | AddUnitMovementFlag (uint32 f) |
void | RemoveUnitMovementFlag (uint32 f) |
bool | HasUnitMovementFlag (uint32 f) const |
uint32 | GetUnitMovementFlags () const |
void | SetUnitMovementFlags (uint32 f) |
void | AddExtraUnitMovementFlag (uint16 f) |
void | RemoveExtraUnitMovementFlag (uint16 f) |
uint16 | HasExtraUnitMovementFlag (uint16 f) const |
uint16 | GetExtraUnitMovementFlags () const |
void | SetExtraUnitMovementFlags (uint16 f) |
bool | IsSummon () const |
bool | IsGuardian () const |
bool | IsControllableGuardian () const |
bool | IsPet () const |
bool | IsHunterPet () const |
bool | IsTotem () const |
bool | IsVehicle () const |
bool | IsVendor () const |
bool | IsTrainer () const |
bool | IsQuestGiver () const |
bool | IsGossip () const |
bool | IsTaxi () const |
bool | IsGuildMaster () const |
bool | IsBattleMaster () const |
bool | IsBanker () const |
bool | IsInnkeeper () const |
bool | IsSpiritHealer () const |
bool | IsSpiritGuide () const |
bool | IsTabardDesigner () const |
bool | IsAuctioner () const |
bool | IsArmorer () const |
bool | IsServiceProvider () const |
bool | IsSpiritService () const |
uint32 | GetCreatureType () const |
uint32 | GetCreatureTypeMask () const |
bool | IsCritter () const |
uint8 | getRace (bool original=false) const |
void | setRace (uint8 race) |
uint32 | getRaceMask () const |
DisplayRace | GetDisplayRaceFromModelId (uint32 modelId) const |
DisplayRace | GetDisplayRace () const |
uint8 | getClass () const |
uint32 | getClassMask () const |
uint8 | getGender () const |
uint32 | GetFaction () const |
FactionTemplateEntry const * | GetFactionTemplateEntry () const |
void | SetFaction (uint32 faction) |
void | RestoreFaction () |
uint32 | GetOldFactionId () const |
ObjectGuid | GetTarget () const |
bool | isTargetableForAttack (bool checkFakeDeath=true, Unit const *byWho=nullptr) const |
bool | IsValidAttackTarget (Unit const *target, SpellInfo const *bySpell=nullptr) const |
bool | _IsValidAttackTarget (Unit const *target, SpellInfo const *bySpell, WorldObject const *obj=nullptr) const |
bool | IsValidAssistTarget (Unit const *target) const |
bool | _IsValidAssistTarget (Unit const *target, SpellInfo const *bySpell) const |
float | GetCombatReach () const override |
float | GetMeleeReach () const |
bool | IsWithinRange (Unit const *obj, float dist) const |
bool | IsWithinCombatRange (Unit const *obj, float dist2compare) const |
bool | IsWithinMeleeRange (Unit const *obj, float dist=0.f) const |
float | GetMeleeRange (Unit const *target) const |
void | setAttackTimer (WeaponAttackType type, int32 time) |
void | resetAttackTimer (WeaponAttackType type=BASE_ATTACK) |
int32 | getAttackTimer (WeaponAttackType type) const |
bool | isAttackReady (WeaponAttackType type=BASE_ATTACK) const |
bool | GetRandomContactPoint (Unit const *target, float &x, float &y, float &z, bool force=false) const |
Unit * | getAttackerForHelper () const |
bool | Attack (Unit *victim, bool meleeAttack) |
void | CastStop (uint32 except_spellid=0, bool withInstant=true) |
Interrupt the unit cast for all the current spells. | |
bool | AttackStop () |
Force the unit to stop attacking. This will clear UNIT_STATE_MELEE_ATTACKING, Interrupt current spell, AI assistance, and call SendMeleeAttackStop() to the client. | |
void | RemoveAllAttackers () |
Remove all units in m_attackers list and send them AttackStop() | |
AttackerSet const & | getAttackers () const |
bool | GetMeleeAttackPoint (Unit *attacker, Position &pos) |
bool | isAttackingPlayer () const |
Unit * | GetVictim () const |
void | CombatStop (bool includingCast=false) |
void | CombatStopWithPets (bool includingCast=false) |
void | StopAttackFaction (uint32 faction_id) |
void | StopAttackingInvalidTarget () |
Unit * | SelectNearbyTarget (Unit *exclude=nullptr, float dist=NOMINAL_MELEE_RANGE) const |
Unit * | SelectNearbyNoTotemTarget (Unit *exclude=nullptr, float dist=NOMINAL_MELEE_RANGE) const |
void | SendMeleeAttackStop (Unit *victim=nullptr) |
Send to the client SMSG_ATTACKSTOP but doesn't clear UNIT_STATE_MELEE_ATTACKING on server side or interrupt spells. Unless you know exactly what you're doing, use AttackStop() or RemoveAllAttackers() instead. | |
void | SendMeleeAttackStart (Unit *victim, Player *sendTo=nullptr) |
uint32 | GetAttackTime (WeaponAttackType att) const |
void | SetAttackTime (WeaponAttackType att, uint32 val) |
void | ApplyAttackTimePercentMod (WeaponAttackType att, float val, bool apply) |
void | ApplyCastTimePercentMod (float val, bool apply) |
void | SetImmuneToAll (bool apply, bool keepCombat=false) |
bool | IsImmuneToAll () const |
void | SetImmuneToPC (bool apply, bool keepCombat=false) |
bool | IsImmuneToPC () const |
void | SetImmuneToNPC (bool apply, bool keepCombat=false) |
bool | IsImmuneToNPC () const |
bool | IsEngaged () const |
bool | IsEngagedBy (Unit const *who) const |
bool | IsInCombat () const |
bool | IsInCombatWith (Unit const *who) const |
bool | IsPetInCombat () const |
void | CombatStart (Unit *target, bool initialAggro=true) |
void | CombatStartOnCast (Unit *target, bool initialAggro=true, uint32 duration=0) |
void | SetInCombatState (bool PvP, Unit *enemy=nullptr, uint32 duration=0) |
void | SetInCombatWith (Unit *enemy, uint32 duration=0) |
void | ClearInCombat () |
void | ClearInPetCombat () |
uint32 | GetCombatTimer () const |
void | SetCombatTimer (uint32 timer) |
bool | CanHaveThreatList (bool skipAliveCheck=false) const |
void | AddThreat (Unit *victim, float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *threatSpell=nullptr) |
float | ApplyTotalThreatModifier (float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL) |
void | TauntApply (Unit *victim) |
void | TauntFadeOut (Unit *taunter) |
ThreatMgr & | GetThreatMgr () |
ThreatMgr const & | GetThreatMgr () const |
void | addHatedBy (HostileReference *pHostileReference) |
void | removeHatedBy (HostileReference *) |
HostileRefMgr & | getHostileRefMgr () |
void | SetRedirectThreat (ObjectGuid guid, uint32 pct) |
void | ResetRedirectThreat () |
void | ModifyRedirectThreat (int32 amount) |
uint32 | GetRedirectThreatPercent () |
Unit * | GetRedirectThreatTarget () const |
void | SetLastDamagedTargetGuid (ObjectGuid const &guid) |
ObjectGuid const & | GetLastDamagedTargetGuid () const |
void | AttackerStateUpdate (Unit *victim, WeaponAttackType attType=BASE_ATTACK, bool extra=false, bool ignoreCasting=false) |
bool | haveOffhandWeapon () const |
bool | CanDualWield () const |
virtual void | SetCanDualWield (bool value) |
bool | HasMainhandWeapon () const |
bool | HasOffhandWeapon () const |
bool | HasRangedWeapon () const |
bool | hasMainhandWeaponForAttack () const |
bool | HasMainhandWeaponForAttack () const |
bool | HasOffhandWeaponForAttack () const |
bool | HasRangedWeaponForAttack () const |
bool | CanUseAttackType (uint8 attacktype) const |
void | HandleProcExtraAttackFor (Unit *victim, uint32 count) |
void | SetLastExtraAttackSpell (uint32 spellId) |
uint32 | GetLastExtraAttackSpell () const |
void | AddExtraAttacks (uint32 count) |
uint8 | GetComboPoints (Unit const *who=nullptr) const |
uint8 | GetComboPoints (ObjectGuid const &guid) const |
Unit * | GetComboTarget () const |
ObjectGuid const | GetComboTargetGUID () const |
void | AddComboPoints (Unit *target, int8 count) |
void | AddComboPoints (int8 count) |
void | ClearComboPoints () |
void | AddComboPointHolder (Unit *unit) |
void | RemoveComboPointHolder (Unit *unit) |
void | ClearComboPointHolders () |
void | SetContestedPvP (Player *attackedPlayer=nullptr, bool lookForNearContestedGuards=true) |
bool | IsContestedGuard () const |
bool | IsInSanctuary () const |
bool | IsPvP () const |
bool | IsFFAPvP () const |
void | SetPvP (bool state) |
float | GetStat (Stats stat) const |
void | SetStat (Stats stat, int32 val) |
Stats | GetStatByAuraGroup (UnitMods unitMod) const |
float | GetCreateStat (Stats stat) const |
void | SetCreateStat (Stats stat, float val) |
float | GetPosStat (Stats stat) const |
float | GetNegStat (Stats stat) const |
void | InitStatBuffMods () |
bool | HandleStatModifier (UnitMods unitMod, UnitModifierType modifierType, float amount, bool apply) |
void | SetModifierValue (UnitMods unitMod, UnitModifierType modifierType, float value) |
float | GetModifierValue (UnitMods unitMod, UnitModifierType modifierType) const |
float | GetTotalStatValue (Stats stat, float additionalValue=0.0f) const |
void | SetCanModifyStats (bool modifyStats) |
bool | CanModifyStats () const |
void | ApplyStatBuffMod (Stats stat, float val, bool apply) |
void | ApplyStatPercentBuffMod (Stats stat, float val, bool apply) |
uint8 | GetLevel () const |
uint8 | getLevelForTarget (WorldObject const *) const override |
void | SetLevel (uint8 lvl, bool showLevelChange=true) |
uint32 | GetHealth () const |
uint32 | GetMaxHealth () const |
float | GetHealthPct () const |
int32 | GetHealthGain (int32 dVal) |
uint32 | GetCreateHealth () const |
bool | IsFullHealth () const |
bool | HealthBelowPct (int32 pct) const |
bool | HealthBelowPctDamaged (int32 pct, uint32 damage) const |
bool | HealthAbovePct (int32 pct) const |
bool | HealthAbovePctHealed (int32 pct, uint32 heal) const |
uint32 | CountPctFromMaxHealth (int32 pct) const |
uint32 | CountPctFromCurHealth (int32 pct) const |
void | SetHealth (uint32 val) |
void | SetMaxHealth (uint32 val) |
void | SetFullHealth () |
int32 | ModifyHealth (int32 val) |
void | SetCreateHealth (uint32 val) |
Powers | getPowerType () const |
Powers | GetPowerTypeByAuraGroup (UnitMods unitMod) const |
uint32 | GetPower (Powers power) const |
uint32 | GetMaxPower (Powers power) const |
float | GetPowerPct (Powers power) const |
uint32 | GetCreatePowers (Powers power) const |
void | setPowerType (Powers power) |
void | SetPower (Powers power, uint32 val, bool withPowerUpdate=true, bool fromRegenerate=false) |
void | SetMaxPower (Powers power, uint32 val) |
int32 | ModifyPower (Powers power, int32 val, bool withPowerUpdate=true) |
int32 | ModifyPowerPct (Powers power, float pct, bool apply=true) |
void | RewardRage (uint32 damage, uint32 weaponSpeedHitFactor, bool attacker) |
uint32 | GetCreateMana () const |
void | SetCreateMana (uint32 val) |
bool | CanRestoreMana (SpellInfo const *spellInfo) const |
void | SetLastManaUse (uint32 spellCastTime) |
bool | IsUnderLastManaUseEffect () const |
float | GetAPMultiplier (WeaponAttackType attType, bool normalized) |
uint32 | GetArmor () const |
void | SetArmor (int32 val) |
float | GetUnitDodgeChance () const |
float | GetUnitParryChance () const |
float | GetUnitBlockChance () const |
float | GetUnitMissChance (WeaponAttackType attType) const |
float | GetUnitCriticalChance (WeaponAttackType attackType, Unit const *victim) const |
MeleeHitOutcome | RollMeleeOutcomeAgainst (Unit const *victim, WeaponAttackType attType) const |
MeleeHitOutcome | RollMeleeOutcomeAgainst (Unit const *victim, WeaponAttackType attType, int32 crit_chance, int32 miss_chance, int32 dodge_chance, int32 parry_chance, int32 block_chance) const |
bool | CanApplyResilience () const |
uint32 | GetShieldBlockValue (uint32 soft_cap, uint32 hard_cap) const |
uint32 | GetUnitMeleeSkill (Unit const *target=nullptr) const |
uint32 | GetDefenseSkillValue (Unit const *target=nullptr) const |
uint32 | GetWeaponSkillValue (WeaponAttackType attType, Unit const *target=nullptr) const |
int32 | GetMechanicResistChance (SpellInfo const *spell) |
uint32 | GetResistance (SpellSchoolMask mask) const |
uint32 | GetResistance (SpellSchools school) const |
float | GetResistanceBuffMods (SpellSchools school, bool positive) const |
void | SetResistance (SpellSchools school, int32 val) |
void | SetResistanceBuffMods (SpellSchools school, bool positive, float val) |
void | ApplyResistanceBuffModsMod (SpellSchools school, bool positive, float val, bool apply) |
void | ApplyResistanceBuffModsPercentMod (SpellSchools school, bool positive, float val, bool apply) |
uint16 | GetMaxSkillValueForLevel (Unit const *target=nullptr) const |
float | GetTotalAuraModValue (UnitMods unitMod) const |
SpellSchools | GetSpellSchoolByAuraGroup (UnitMods unitMod) const |
float | GetTotalAttackPowerValue (WeaponAttackType attType, Unit *pVictim=nullptr) const |
float | GetWeaponDamageRange (WeaponAttackType attType, WeaponDamageRange type, uint8 damageIndex=0) const |
void | SetBaseWeaponDamage (WeaponAttackType attType, WeaponDamageRange damageRange, float value, uint8 damageIndex=0) |
virtual void | UpdateAllResistances () |
virtual void | UpdateDamagePhysical (WeaponAttackType attType) |
void | DealMeleeDamage (CalcDamageInfo *damageInfo, bool durabilityLoss) |
void | DealSpellDamage (SpellNonMeleeDamage *damageInfo, bool durabilityLoss, Spell const *spell=nullptr) |
void | KillSelf (bool durabilityLoss=true, WeaponAttackType attackType=BASE_ATTACK, SpellInfo const *spellProto=nullptr, Spell const *spell=nullptr) |
uint32 | CalculateDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, uint8 itemDamagesMask=0) |
void | CalculateMeleeDamage (Unit *victim, CalcDamageInfo *damageInfo, WeaponAttackType attackType=BASE_ATTACK, const bool sittingVictim=false) |
void | CalculateSpellDamageTaken (SpellNonMeleeDamage *damageInfo, int32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=BASE_ATTACK, bool crit=false) |
int32 | CalculateSpellDamage (Unit const *target, SpellInfo const *spellProto, uint8 effect_index, int32 const *basePoints=nullptr) const |
float | CalculateDefaultCoefficient (SpellInfo const *spellInfo, DamageEffectType damagetype) const |
uint32 | MeleeDamageBonusDone (Unit *pVictim, uint32 damage, WeaponAttackType attType, SpellInfo const *spellProto=nullptr, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL) |
uint32 | MeleeDamageBonusTaken (Unit *attacker, uint32 pdamage, WeaponAttackType attType, SpellInfo const *spellProto=nullptr, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL) |
int32 | SpellBaseDamageBonusDone (SpellSchoolMask schoolMask) |
int32 | SpellBaseDamageBonusTaken (SpellSchoolMask schoolMask, bool isDoT=false) |
float | SpellPctDamageModsDone (Unit *victim, SpellInfo const *spellProto, DamageEffectType damagetype) |
uint32 | SpellDamageBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, uint8 effIndex, float TotalMod=0.0f, uint32 stack=1) |
uint32 | SpellDamageBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, uint32 stack=1) |
int32 | CalculateAOEDamageReduction (int32 damage, uint32 schoolMask, bool npcCaster) const |
uint32 | GetMeleeDamageReduction (uint32 damage) const |
uint32 | GetRangedDamageReduction (uint32 damage) const |
uint32 | GetSpellDamageReduction (uint32 damage) const |
float | GetMeleeCritChanceReduction () const |
float | GetRangedCritChanceReduction () const |
float | GetSpellCritChanceReduction () const |
uint32 | GetMeleeCritDamageReduction (uint32 damage) const |
uint32 | GetRangedCritDamageReduction (uint32 damage) const |
uint32 | GetSpellCritDamageReduction (uint32 damage) const |
CharmInfo * | GetCharmInfo () |
CharmInfo * | InitCharmInfo () |
Unit * | GetCharmer () const |
Unit * | GetCharm () const |
Unit * | GetCharmerOrOwner () const |
Unit * | GetCharmerOrOwnerOrSelf () const |
Player * | GetCharmerOrOwnerPlayerOrPlayerItself () const |
ObjectGuid | GetCharmerOrOwnerGUID () const |
ObjectGuid | GetCharmerOrOwnerOrOwnGUID () const |
Player * | GetAffectingPlayer () const |
Unit * | GetFirstControlled () const |
bool | IsControlledByPlayer () const |
bool | IsCreatedByPlayer () const |
bool | IsCharmedOwnedByPlayerOrPlayer () const |
bool | IsCharmed () const |
bool | isPossessed () const |
bool | isPossessedByPlayer () const |
bool | isPossessing () const |
bool | isPossessing (Unit *u) const |
void | SetCharm (Unit *target, bool apply) |
bool | SetCharmedBy (Unit *charmer, CharmType type, AuraApplication const *aurApp=nullptr) |
void | UpdateCharmAI () |
void | RemoveCharmedBy (Unit *charmer) |
void | RemoveCharmAuras () |
void | RemoveAllControlled (bool onDeath=false) |
void | DeleteCharmInfo () |
void | BuildCooldownPacket (WorldPacket &data, uint8 flags, uint32 spellId, uint32 cooldown) |
void | BuildCooldownPacket (WorldPacket &data, uint8 flags, PacketCooldowns const &cooldowns) |
Aura * | AddAura (uint32 spellId, Unit *target) |
Aura * | AddAura (SpellInfo const *spellInfo, uint8 effMask, Unit *target) |
void | SetAuraStack (uint32 spellId, Unit *target, uint32 stack) |
Aura * | _TryStackingOrRefreshingExistingAura (SpellInfo const *newAura, uint8 effMask, Unit *caster, int32 *baseAmount=nullptr, Item *castItem=nullptr, ObjectGuid casterGUID=ObjectGuid::Empty, bool periodicReset=false) |
void | _AddAura (UnitAura *aura, Unit *caster) |
AuraApplication * | _CreateAuraApplication (Aura *aura, uint8 effMask) |
void | _ApplyAuraEffect (Aura *aura, uint8 effIndex) |
void | _ApplyAura (AuraApplication *aurApp, uint8 effMask) |
void | _UnapplyAura (AuraApplicationMap::iterator &i, AuraRemoveMode removeMode) |
void | _UnapplyAura (AuraApplication *aurApp, AuraRemoveMode removeMode) |
void | _RemoveNoStackAuraApplicationsDueToAura (Aura *aura) |
void | _RemoveNoStackAurasDueToAura (Aura *aura) |
bool | _IsNoStackAuraDueToAura (Aura *appliedAura, Aura *existingAura) const |
void | _RegisterAuraEffect (AuraEffect *aurEff, bool apply) |
AuraMap & | GetOwnedAuras () |
AuraMap const & | GetOwnedAuras () const |
void | RemoveOwnedAura (AuraMap::iterator &i, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
void | RemoveOwnedAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
void | RemoveOwnedAura (Aura *aura, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
Aura * | GetOwnedAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, Aura *except=nullptr) const |
AuraApplicationMap & | GetAppliedAuras () |
AuraApplicationMap const & | GetAppliedAuras () const |
void | RemoveAura (AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
void | RemoveAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
void | RemoveAura (AuraApplication *aurApp, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
void | RemoveAura (Aura *aur, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
void | RemoveBindSightAuras () |
void | RemoveAppliedAuras (std::function< bool(AuraApplication const *)> const &check) |
void | RemoveOwnedAuras (std::function< bool(Aura const *)> const &check) |
void | RemoveAppliedAuras (uint32 spellId, std::function< bool(AuraApplication const *)> const &check) |
void | RemoveOwnedAuras (uint32 spellId, std::function< bool(Aura const *)> const &check) |
void | RemoveAurasDueToSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
void | RemoveAuraFromStack (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
void | RemoveAurasDueToSpellByDispel (uint32 spellId, uint32 dispellerSpellId, ObjectGuid casterGUID, Unit *dispeller, uint8 chargesRemoved=1) |
void | RemoveAurasDueToSpellBySteal (uint32 spellId, ObjectGuid casterGUID, Unit *stealer) |
void | RemoveAurasDueToItemSpell (uint32 spellId, ObjectGuid castItemGuid) |
void | RemoveAurasByType (AuraType auraType, ObjectGuid casterGUID=ObjectGuid::Empty, Aura *except=nullptr, bool negative=true, bool positive=true) |
void | RemoveNotOwnSingleTargetAuras () |
void | RemoveAurasWithInterruptFlags (uint32 flag, uint32 except=0, bool isAutoshot=false) |
void | RemoveAurasWithAttribute (uint32 flags) |
void | RemoveAurasWithFamily (SpellFamilyNames family, uint32 familyFlag1, uint32 familyFlag2, uint32 familyFlag3, ObjectGuid casterGUID) |
void | RemoveAurasWithMechanic (uint32 mechanic_mask, AuraRemoveMode removemode=AURA_REMOVE_BY_DEFAULT, uint32 except=0) |
void | RemoveMovementImpairingAuras (bool withRoot) |
void | RemoveAurasByShapeShift () |
void | RemoveAreaAurasDueToLeaveWorld () |
void | RemoveAllAuras () |
void | RemoveArenaAuras () |
void | RemoveAllAurasOnDeath () |
void | RemoveAllAurasRequiringDeadTarget () |
void | RemoveAllAurasExceptType (AuraType type) |
void | RemoveEvadeAuras () |
void | DelayOwnedAuras (uint32 spellId, ObjectGuid caster, int32 delaytime) |
void | _RemoveAllAuraStatMods () |
void | _ApplyAllAuraStatMods () |
AuraEffectList const & | GetAuraEffectsByType (AuraType type) const |
AuraList & | GetSingleCastAuras () |
AuraList const & | GetSingleCastAuras () const |
AuraEffect * | GetAuraEffect (uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const |
AuraEffect * | GetAuraEffectOfRankedSpell (uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const |
AuraEffect * | GetAuraEffect (AuraType type, SpellFamilyNames name, uint32 iconId, uint8 effIndex) const |
AuraEffect * | GetAuraEffect (AuraType type, SpellFamilyNames family, uint32 familyFlag1, uint32 familyFlag2, uint32 familyFlag3, ObjectGuid casterGUID=ObjectGuid::Empty) const |
AuraEffect * | GetAuraEffectDummy (uint32 spellid) const |
AuraEffect * | GetDummyAuraEffect (SpellFamilyNames name, uint32 iconId, uint8 effIndex) const |
AuraApplication * | GetAuraApplication (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraApplication *except=nullptr) const |
Aura * | GetAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const |
AuraApplication * | GetAuraApplicationOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraApplication *except=nullptr) const |
Aura * | GetAuraOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const |
void | GetDispellableAuraList (Unit *caster, uint32 dispelMask, DispelChargesList &dispelList, SpellInfo const *dispelSpell) |
bool | HasAuraEffect (uint32 spellId, uint8 effIndex, ObjectGuid caster=ObjectGuid::Empty) const |
uint32 | GetAuraCount (uint32 spellId) const |
bool | HasAuras (SearchMethod sm, std::vector< uint32 > &spellIds) const |
Check if unit has ANY or ALL specified auras. | |
template<typename... Auras> | |
bool | HasAnyAuras (Auras... spellIds) const |
Checks if the unit has ANY specified auras. | |
template<typename... Auras> | |
bool | HasAllAuras (Auras... spellIds) const |
Checks if the unit has ALL specified auras. | |
bool | HasAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const |
bool | HasAuraType (AuraType auraType) const |
bool | HasAuraTypeWithCaster (AuraType auratype, ObjectGuid caster) const |
bool | HasAuraTypeWithMiscvalue (AuraType auratype, int32 miscvalue) const |
bool | HasAuraTypeWithAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
bool | HasAuraTypeWithValue (AuraType auratype, int32 value) const |
bool | HasAuraTypeWithTriggerSpell (AuraType auratype, uint32 triggerSpell) const |
bool | HasNegativeAuraWithInterruptFlag (uint32 flag, ObjectGuid guid=ObjectGuid::Empty) |
bool | HasVisibleAuraType (AuraType auraType) const |
bool | HasNegativeAuraWithAttribute (uint32 flag, ObjectGuid guid=ObjectGuid::Empty) |
bool | HasAuraWithMechanic (uint32 mechanicMask) const |
bool | HasAuraTypeWithFamilyFlags (AuraType auraType, uint32 familyName, uint32 familyFlags) const |
bool | HasBreakableByDamageAuraType (AuraType type, uint32 excludeAura=0) const |
bool | HasBreakableByDamageCrowdControlAura (Unit *excludeCasterChannel=nullptr) const |
AuraEffect * | IsScriptOverriden (SpellInfo const *spell, int32 script) const |
uint32 | GetDiseasesByCaster (ObjectGuid casterGUID, uint8 mode=0) |
uint32 | GetDoTsByCaster (ObjectGuid casterGUID) const |
int32 | GetTotalAuraModifierAreaExclusive (AuraType auratype) const |
int32 | GetTotalAuraModifier (AuraType auratype) const |
float | GetTotalAuraMultiplier (AuraType auratype) const |
int32 | GetMaxPositiveAuraModifier (AuraType auratype) |
int32 | GetMaxNegativeAuraModifier (AuraType auratype) const |
int32 | GetTotalAuraModifierByMiscMask (AuraType auratype, uint32 misc_mask) const |
float | GetTotalAuraMultiplierByMiscMask (AuraType auratype, uint32 misc_mask) const |
int32 | GetMaxPositiveAuraModifierByMiscMask (AuraType auratype, uint32 misc_mask, const AuraEffect *except=nullptr) const |
int32 | GetMaxNegativeAuraModifierByMiscMask (AuraType auratype, uint32 misc_mask) const |
int32 | GetTotalAuraModifierByMiscValue (AuraType auratype, int32 misc_value) const |
float | GetTotalAuraMultiplierByMiscValue (AuraType auratype, int32 misc_value) const |
int32 | GetMaxPositiveAuraModifierByMiscValue (AuraType auratype, int32 misc_value) const |
int32 | GetMaxNegativeAuraModifierByMiscValue (AuraType auratype, int32 misc_value) const |
int32 | GetTotalAuraModifierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
float | GetTotalAuraMultiplierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
int32 | GetMaxPositiveAuraModifierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
int32 | GetMaxNegativeAuraModifierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
VisibleAuraMap const * | GetVisibleAuras () |
AuraApplication * | GetVisibleAura (uint8 slot) |
void | SetVisibleAura (uint8 slot, AuraApplication *aur) |
void | RemoveVisibleAura (uint8 slot) |
void | ModifyAuraState (AuraStateType flag, bool apply) |
uint32 | BuildAuraStateUpdateForTarget (Unit *target) const |
bool | HasAuraState (AuraStateType flag, SpellInfo const *spellProto=nullptr, Unit const *Caster=nullptr) const |
bool | CanProc () |
void | SetCantProc (bool apply) |
void | ProcDamageAndSpellFor (bool isVictim, Unit *target, uint32 procFlag, uint32 procExtra, WeaponAttackType attType, SpellInfo const *procSpellInfo, uint32 damage, SpellInfo const *procAura=nullptr, int8 procAuraEffectIndex=-1, Spell const *procSpell=nullptr, DamageInfo *damageInfo=nullptr, HealInfo *healInfo=nullptr, uint32 procPhase=2) |
void | GetProcAurasTriggeredOnEvent (std::list< AuraApplication * > &aurasTriggeringProc, std::list< AuraApplication * > *procAuras, ProcEventInfo eventInfo) |
void | TriggerAurasProcOnEvent (CalcDamageInfo &damageInfo) |
void | TriggerAurasProcOnEvent (std::list< AuraApplication * > *myProcAuras, std::list< AuraApplication * > *targetProcAuras, Unit *actionTarget, uint32 typeMaskActor, uint32 typeMaskActionTarget, uint32 spellTypeMask, uint32 spellPhaseMask, uint32 hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo) |
void | TriggerAurasProcOnEvent (ProcEventInfo &eventInfo, std::list< AuraApplication * > &procAuras) |
float | GetWeaponProcChance () const |
float | GetPPMProcChance (uint32 WeaponSpeed, float PPM, SpellInfo const *spellProto) const |
Player * | GetSpellModOwner () const |
Spell * | GetCurrentSpell (CurrentSpellTypes spellType) const |
Spell * | GetCurrentSpell (uint32 spellType) const |
Spell * | FindCurrentSpellBySpellId (uint32 spell_id) const |
int32 | GetCurrentSpellCastTime (uint32 spell_id) const |
void | SetCurrentCastedSpell (Spell *pSpell) |
void | SetInstantCast (bool set) |
bool | CanInstantCast () const |
bool | IsNonMeleeSpellCast (bool withDelayed, bool skipChanneled=false, bool skipAutorepeat=false, bool isAutoshoot=false, bool skipInstant=true) const |
void | InterruptNonMeleeSpells (bool withDelayed, uint32 spellid=0, bool withInstant=true, bool bySelf=false) |
float | GetSpellMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
float | GetSpellMinRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
uint32 | GetInterruptMask () const |
void | AddInterruptMask (uint32 mask) |
void | UpdateInterruptMask () |
void | InterruptSpell (CurrentSpellTypes spellType, bool withDelayed=true, bool withInstant=true, bool bySelf=false) |
bool | isSpellBlocked (Unit *victim, SpellInfo const *spellProto, WeaponAttackType attackType=BASE_ATTACK) |
void | FinishSpell (CurrentSpellTypes spellType, bool ok=true) |
Unit * | GetMagicHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo) |
Unit * | GetMeleeHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo=nullptr) |
float | MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, int32 skillDiff, uint32 spellId) const |
SpellMissInfo | MeleeSpellHitResult (Unit *victim, SpellInfo const *spell) |
SpellMissInfo | MagicSpellHitResult (Unit *victim, SpellInfo const *spell) |
SpellMissInfo | SpellHitResult (Unit *victim, SpellInfo const *spell, bool canReflect=false) |
SpellMissInfo | SpellHitResult (Unit *victim, Spell const *spell, bool canReflect=false) |
void | SendHealSpellLog (HealInfo const &healInfo, bool critical=false) |
int32 | HealBySpell (HealInfo &healInfo, bool critical=false) |
int32 | SpellBaseHealingBonusDone (SpellSchoolMask schoolMask) |
int32 | SpellBaseHealingBonusTaken (SpellSchoolMask schoolMask) |
float | SpellPctHealingModsDone (Unit *victim, SpellInfo const *spellProto, DamageEffectType damagetype) |
uint32 | SpellHealingBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype, uint8 effIndex, float TotalMod=0.0f, uint32 stack=1) |
uint32 | SpellHealingBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype, uint32 stack=1) |
void | SendEnergizeSpellLog (Unit *victim, uint32 SpellID, uint32 Damage, Powers powertype) |
void | EnergizeBySpell (Unit *victim, uint32 SpellID, uint32 Damage, Powers powertype) |
void | ApplySpellImmune (uint32 spellId, uint32 op, uint32 type, bool apply, SpellImmuneBlockType blockType=SPELL_BLOCK_TYPE_ALL) |
void | ApplySpellDispelImmunity (SpellInfo const *spellProto, DispelType type, bool apply) |
virtual bool | IsImmunedToSpell (SpellInfo const *spellInfo, Spell const *spell=nullptr) |
bool | IsImmunedToDamage (SpellSchoolMask meleeSchoolMask) const |
bool | IsImmunedToDamage (SpellInfo const *spellInfo) const |
bool | IsImmunedToDamage (Spell const *spell) const |
bool | IsImmunedToSchool (SpellSchoolMask meleeSchoolMask) const |
bool | IsImmunedToSchool (SpellInfo const *spellInfo) const |
bool | IsImmunedToSchool (Spell const *spell) const |
bool | IsImmunedToDamageOrSchool (SpellSchoolMask meleeSchoolMask) const |
bool | IsImmunedToDamageOrSchool (SpellInfo const *spellInfo) const |
virtual bool | IsImmunedToSpellEffect (SpellInfo const *spellInfo, uint32 index) const |
bool | isBlockCritical () |
float | SpellDoneCritChance (Unit const *, SpellInfo const *spellProto, SpellSchoolMask schoolMask, WeaponAttackType attackType, bool skipEffectCheck) const |
float | SpellTakenCritChance (Unit const *caster, SpellInfo const *spellProto, SpellSchoolMask schoolMask, float doneChance, WeaponAttackType attackType, bool skipEffectCheck) const |
float | ApplyEffectModifiers (SpellInfo const *spellProto, uint8 effect_index, float value) const |
int32 | CalcSpellDuration (SpellInfo const *spellProto) |
int32 | ModSpellDuration (SpellInfo const *spellProto, Unit const *target, int32 duration, bool positive, uint32 effectMask) |
void | ModSpellCastTime (SpellInfo const *spellProto, int32 &castTime, Spell *spell=nullptr) |
float | CalculateLevelPenalty (SpellInfo const *spellProto) const |
uint32 | GetCastingTimeForBonus (SpellInfo const *spellProto, DamageEffectType damagetype, uint32 CastingTime) const |
void | CastDelayedSpellWithPeriodicAmount (Unit *caster, uint32 spellId, AuraType auraType, int32 addAmount, uint8 effectIndex=0) |
SpellCastResult | CastSpell (SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
SpellCastResult | CastSpell (Unit *victim, uint32 spellId, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
SpellCastResult | CastSpell (Unit *victim, uint32 spellId, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
SpellCastResult | CastSpell (Unit *victim, SpellInfo const *spellInfo, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
SpellCastResult | CastSpell (Unit *victim, SpellInfo const *spellInfo, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
SpellCastResult | CastSpell (float x, float y, float z, uint32 spellId, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
SpellCastResult | CastSpell (GameObject *go, uint32 spellId, bool triggered, Item *castItem=nullptr, AuraEffect *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
SpellCastResult | CastCustomSpell (Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
SpellCastResult | CastCustomSpell (uint32 spellId, SpellValueMod mod, int32 value, Unit *victim, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
SpellCastResult | CastCustomSpell (uint32 spellId, SpellValueMod mod, int32 value, Unit *victim=nullptr, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
SpellCastResult | CastCustomSpell (uint32 spellId, CustomSpellValues const &value, Unit *victim=nullptr, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
void | _RegisterDynObject (DynamicObject *dynObj) |
void | _UnregisterDynObject (DynamicObject *dynObj) |
DynamicObject * | GetDynObject (uint32 spellId) |
bool | RemoveDynObject (uint32 spellId) |
void | RemoveAllDynObjects () |
GameObject * | GetGameObject (uint32 spellId) const |
void | AddGameObject (GameObject *gameObj) |
void | RemoveGameObject (GameObject *gameObj, bool del) |
void | RemoveGameObject (uint32 spellid, bool del) |
void | RemoveAllGameObjects () |
bool | IsPolymorphed () const |
bool | isFrozen () const |
bool | IsInFlight () const |
bool | IsLevitating () const |
bool | IsWalking () const |
bool | isMoving () const |
bool | isTurning () const |
bool | IsHovering () const |
bool | isSwimming () const |
bool | IsFlying () const |
bool | IsFalling () const |
float | GetHoverHeight () const |
virtual bool | IsMovementPreventedByCasting () const |
virtual bool | CanSwim () const |
this method checks the current flag of a unit | |
bool | CanFreeMove () const |
void | KnockbackFrom (float x, float y, float speedXY, float speedZ) |
void | JumpTo (float speedXY, float speedZ, bool forward=true) |
void | JumpTo (WorldObject *obj, float speedZ) |
void | UpdateSpeed (UnitMoveType mtype, bool forced) |
float | GetSpeed (UnitMoveType mtype) const |
float | GetSpeedRate (UnitMoveType mtype) const |
void | SetSpeed (UnitMoveType mtype, float rate, bool forced=false) |
void | SetSpeedRate (UnitMoveType mtype, float rate) |
void | propagateSpeedChange () |
void | SendMonsterMove (float NewPosX, float NewPosY, float NewPosZ, uint32 TransitTime, SplineFlags sf=SPLINEFLAG_WALK_MODE) |
void | MonsterMoveWithSpeed (float x, float y, float z, float speed) |
virtual bool | SetWalk (bool enable) |
virtual bool | SetSwim (bool enable) |
MotionMaster * | GetMotionMaster () |
const MotionMaster * | GetMotionMaster () const |
virtual MovementGeneratorType | GetDefaultMovementType () const |
-------—End of Pet responses methods-------— | |
bool | IsStopped () const |
void | StopMoving () |
void | StopMovingOnCurrentPos () |
virtual void | PauseMovement (uint32 timer=0, uint8 slot=0) |
Disable the unit movement by clearing UNIT_STATE_MOVING and stopping the spline. | |
void | ResumeMovement (uint32 timer=0, uint8 slot=0) |
void | SetControlled (bool apply, UnitState state, Unit *source=nullptr, bool isFear=false) |
void | DisableRotate (bool apply) |
void | DisableSpline () |
SheathState | GetSheath () const |
uint8 | getStandState () const |
bool | IsSitState () const |
bool | IsStandState () const |
void | SetStandState (uint8 state) |
void | SetStandFlags (uint8 flags) |
void | RemoveStandFlags (uint8 flags) |
DeathState | getDeathState () |
bool | IsAlive () const |
bool | isDying () const |
bool | isDead () const |
bool | HasGhostAura () const |
bool | HasMountedAura () const |
bool | HasWaterWalkAura () const |
bool | HasFeatherFallAura () const |
bool | HasHoverAura () const |
bool | HasFlyAura () const |
bool | HasSpiritOfRedemptionAura () const |
bool | HasPreventsFleeingAura () const |
bool | HasPreventDurabilityLossAura () const |
bool | HasPreventResurectionAura () const |
bool | HasTransformAura () const |
bool | HasInterruptRegenAura () const |
bool | HasNoPVPCreditAura () const |
bool | HasWaterBreathingAura () const |
bool | HasIgnoreHitDirectionAura () const |
bool | HasSpellMagnetAura () const |
bool | HasOpenStableAura () const |
bool | HasCloneCasterAura () const |
bool | HasReflectSpellsAura () const |
bool | HasDetectAmoreAura () const |
bool | HasAllowOnlyAbilityAura () const |
bool | HasPeriodicDummyAura () const |
bool | HasControlVehicleAura () const |
bool | HasAOECharmAura () const |
bool | HasDetectSpellsAura () const |
bool | HasPacifySilenceAura () const |
bool | HasSilenceAura () const |
bool | HasShapeshiftAura () const |
bool | HasDecreaseSpeedAura () const |
bool | HasPacifyAura () const |
bool | HasIgnoreTargetResistAura () const |
bool | HasIncreaseMountedSpeedAura () const |
bool | HasIncreaseMountedFlightSpeedAura () const |
bool | HasThreatAura () const |
bool | HasAttackerSpellCritChanceAura () const |
bool | HasUnattackableAura () const |
bool | HasHealthRegenInCombatAura () const |
bool | HasRegenDuringCombatAura () const |
bool | HasFearAura () const |
bool | HasConfuseAura () const |
bool | HasRootAura () const |
bool | HasStunAura () const |
bool | HasTauntAura () const |
bool | HasStealthAura () const |
bool | HasStealthDetectAura () const |
bool | HasInvisibilityAura () const |
bool | HasInvisibilityDetectAura () const |
bool | IsHostileTo (Unit const *unit) const |
bool | IsHostileToPlayers () const |
bool | IsFriendlyTo (Unit const *unit) const |
bool | IsNeutralToAll () const |
void | ClearAllReactives () |
void | StartReactiveTimer (ReactiveType reactive) |
void | UpdateReactives (uint32 p_time) |
DiminishingLevels | GetDiminishing (DiminishingGroup group) |
void | IncrDiminishing (DiminishingGroup group) |
float | ApplyDiminishingToDuration (DiminishingGroup group, int32 &duration, Unit *caster, DiminishingLevels Level, int32 limitduration) |
void | ApplyDiminishingAura (DiminishingGroup group, bool apply) |
void | ClearDiminishings () |
bool | IsInPartyWith (Unit const *unit) const |
bool | IsInRaidWith (Unit const *unit) const |
void | GetPartyMembers (std::list< Unit * > &units) |
Unit * | GetNextRandomRaidMemberOrPet (float radius) |
void | UpdateAuraForGroup (uint8 slot) |
ReputationRank | GetReactionTo (Unit const *target, bool checkOriginalFaction=false) const |
ReputationRank | GetFactionReactionTo (FactionTemplateEntry const *factionTemplateEntry, Unit const *target) const |
SharedVisionList const & | GetSharedVisionList () |
void | AddPlayerToVision (Player *player) |
void | RemovePlayerFromVision (Player *player) |
bool | HasSharedVision () const |
uint32 | GetVirtualItemId (uint32 slot) const |
void | SetVirtualItem (uint32 slot, uint32 itemId) |
bool | IsMounted () const |
uint32 | GetMountID () const |
void | Mount (uint32 mount, uint32 vehicleId=0, uint32 creatureEntry=0) |
void | Dismount () |
bool | IsInDisallowedMountForm () const |
void | addFollower (FollowerReference *pRef) |
void | removeFollower (FollowerReference *) |
virtual float | GetFollowAngle () const |
Guardian * | GetGuardianPet () const |
Minion * | GetFirstMinion () const |
Creature * | GetCompanionPet () const |
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) |
void | SetMinion (Minion *minion, bool apply) |
void | GetAllMinionsByEntry (std::list< Creature * > &Minions, uint32 entry) |
void | RemoveAllMinionsByEntry (uint32 entry) |
void | AddPetAura (PetAura const *petSpell) |
void | RemovePetAura (PetAura const *petSpell) |
void | CastPetAura (PetAura const *aura) |
bool | IsPetAura (Aura const *aura) |
void | PetSpellFail (SpellInfo const *spellInfo, Unit *target, uint32 result) |
void | UnsummonAllTotems (bool onDeath=false) |
TransportBase * | GetDirectTransport () const |
bool | CreateVehicleKit (uint32 id, uint32 creatureEntry) |
Returns the transport this unit is on directly (if on vehicle and transport, return vehicle) | |
void | RemoveVehicleKit () |
Vehicle * | GetVehicleKit () const |
Vehicle * | GetVehicle () const |
bool | IsOnVehicle (Unit const *vehicle) const |
Unit * | GetVehicleBase () const |
Creature * | GetVehicleCreatureBase () const |
void | EnterVehicle (Unit *base, int8 seatId=-1) |
void | EnterVehicleUnattackable (Unit *base, int8 seatId=-1) |
void | ExitVehicle (Position const *exitPosition=nullptr) |
void | ChangeSeat (int8 seatId, bool next=true) |
bool | HandleSpellClick (Unit *clicker, int8 seatId=-1) |
void | _ExitVehicle (Position const *exitPosition=nullptr) |
void | _EnterVehicle (Vehicle *vehicle, int8 seatId, AuraApplication const *aurApp=nullptr) |
void | HandleEmoteCommand (uint32 emoteId) |
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) |
ShapeshiftForm | GetShapeshiftForm () const |
void | SetShapeshiftForm (ShapeshiftForm form) |
bool | IsAttackSpeedOverridenShapeShift () const |
bool | IsInFeralForm () const |
void | setTransForm (uint32 spellid) |
uint32 | getTransForm () const |
void | DeMorph () |
virtual float | GetNativeObjectScale () const |
virtual void | RecalculateObjectScale () |
uint32 | GetDisplayId () const |
virtual void | SetDisplayId (uint32 modelId, float displayScale=1.f) |
uint32 | GetNativeDisplayId () const |
void | RestoreDisplayId () |
void | SetNativeDisplayId (uint32 displayId) |
uint32 | GetModelForForm (ShapeshiftForm form, uint32 spellId) const |
uint32 | GetModelForTotem (PlayerTotemType totemType) |
virtual bool | IsUnderWater () const |
void | NearTeleportTo (Position &pos, bool casting=false, bool vehicleTeleport=false, bool withPet=false, bool removeTransport=false) |
void | NearTeleportTo (float x, float y, float z, float orientation, bool casting=false, bool vehicleTeleport=false, bool withPet=false, bool removeTransport=false) |
void | SetInFront (WorldObject const *target) |
void | SetFacingTo (float ori) |
void | SetFacingToObject (WorldObject *object) |
bool | isInAccessiblePlaceFor (Creature const *c) const |
bool | isInFrontInMap (Unit const *target, float distance, float arc=M_PI) const |
bool | isInBackInMap (Unit const *target, float distance, float arc=M_PI) const |
float | GetCollisionHeight () const override |
Return collision height sent to client. | |
float | GetCollisionWidth () const override |
this method gets the diameter of a Unit by DB if any value is defined, otherwise it gets the value by the DBC | |
float | GetCollisionRadius () const override |
this method gets the radius of a Unit by DB if any value is defined, otherwise it gets the value by the DBC | |
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. | |
bool | UpdatePosition (const Position &pos, bool teleport=false) |
void | ProcessPositionDataChanged (PositionFullTerrainStatus const &data) override |
bool | IsVisible () const |
void | SetVisible (bool x) |
void | SetModelVisible (bool on) |
uint32 | GetPhaseByAuras () const |
void | SetPhaseMask (uint32 newPhaseMask, bool update) override |
void | UpdateObjectVisibility (bool forced=true, bool fromUpdate=false) override |
void | AddPointedBy (SafeUnitPointer *sup) |
void | RemovePointedBy (SafeUnitPointer *sup) |
void | SendAttackStateUpdate (CalcDamageInfo *damageInfo) |
void | SendAttackStateUpdate (uint32 HitInfo, Unit *target, uint8 SwingType, SpellSchoolMask damageSchoolMask, uint32 Damage, uint32 AbsorbDamage, uint32 Resist, VictimState TargetState, uint32 BlockedAmount) |
void | SendComboPoints () |
void | SendPlaySpellVisual (uint32 id) |
void | SendPlaySpellImpact (ObjectGuid guid, uint32 id) |
void | SendPetActionFeedback (uint8 msg) |
-------—Pet responses methods--------------— | |
void | SendPetTalk (uint32 pettalk) |
void | SendPetAIReaction (ObjectGuid guid) |
void | SendPeriodicAuraLog (SpellPeriodicAuraLogInfo *pInfo) |
void | SendSpellNonMeleeDamageLog (SpellNonMeleeDamage *log) |
void | SendSpellNonMeleeReflectLog (SpellNonMeleeDamage *log, Unit *attacker) |
void | SendSpellNonMeleeDamageLog (Unit *target, SpellInfo const *spellInfo, uint32 Damage, SpellSchoolMask damageSchoolMask, uint32 AbsorbedDamage, uint32 Resist, bool PhysicalDamage, uint32 Blocked, bool CriticalHit=false, bool Split=false) |
void | SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo) |
void | SendSpellDamageResist (Unit *target, uint32 spellId) |
void | SendSpellDamageImmune (Unit *target, uint32 spellId) |
void | SendTameFailure (uint8 result) |
void | SendTeleportPacket (Position &pos) |
void | SendMovementFlagUpdate (bool self=false) |
void | SendMovementWaterWalking (Player *sendTo) |
void | SendMovementFeatherFall (Player *sendTo) |
void | SendMovementHover (Player *sendTo) |
void | SendChangeCurrentVictimOpcode (HostileReference *pHostileReference) |
void | SendClearThreatListOpcode () |
void | SendRemoveFromThreatListOpcode (HostileReference *pHostileReference) |
void | SendThreatListUpdate () |
void | SendClearTarget () |
void | ExecuteDelayedUnitRelocationEvent () |
void | ExecuteDelayedUnitAINotifyEvent () |
void | BuildHeartBeatMsg (WorldPacket *data) const |
void | BuildMovementPacket (ByteBuffer *data) const |
void | OutDebugInfo () const |
std::string | GetDebugInfo () const override |
![]() | |
~WorldObject () override | |
void | _Create (ObjectGuid::LowType guidlow, HighGuid guidhigh, uint32 phaseMask) |
void | AddToWorld () override |
void | RemoveFromWorld () override |
void | GetNearPoint2D (WorldObject const *searcher, float &x, float &y, float distance, float absAngle, Position const *startPos=nullptr) const |
void | GetNearPoint2D (float &x, float &y, float distance, float absAngle, Position const *startPos=nullptr) const |
void | GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float searcher_size, float distance2d, float absAngle, float controlZ=0, Position const *startPos=nullptr) const |
void | GetVoidClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float relAngle=0, float controlZ=0) const |
bool | GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float angle=0, WorldObject const *forWho=nullptr, bool force=false) const |
void | MovePosition (Position &pos, float dist, float angle) |
Position | GetNearPosition (float dist, float angle) |
void | MovePositionToFirstCollision (Position &pos, float dist, float angle) |
Position | GetFirstCollisionPosition (float startX, float startY, float startZ, float destX, float destY) |
Position | GetFirstCollisionPosition (float destX, float destY, float destZ) |
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 | GetChargeContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const |
float | GetObjectSize () const |
void | UpdateGroundPositionZ (float x, float y, float &z) const |
void | UpdateAllowedPositionZ (float x, float y, float &z, float *groundZ=nullptr) const |
void | GetRandomPoint (const Position &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const |
Position | GetRandomPoint (const Position &srcPos, float distance) const |
uint32 | GetInstanceId () const |
uint32 | GetPhaseMask () const |
bool | InSamePhase (WorldObject const *obj) const |
bool | InSamePhase (uint32 phasemask) const |
uint32 | GetZoneId () const |
uint32 | GetAreaId () const |
void | GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const |
bool | IsOutdoors () const |
LiquidData const & | GetLiquidData () const |
InstanceScript * | GetInstanceScript () const |
std::string const & | GetName () const |
void | SetName (std::string const &newname) |
virtual std::string const & | GetNameForLocaleIdx (LocaleConstant) const |
float | GetDistance (WorldObject const *obj) const |
float | GetDistance (const Position &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 (const Position *pos, float dist) const |
bool | IsWithinDist2d (float x, float y, float dist) const |
bool | IsWithinDist2d (const Position *pos, float dist) const |
bool | IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true, bool useBoundingRadius=true) const |
bool | IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true, bool useBoundingRadius=true) const |
bool | IsWithinLOS (float x, float y, float z, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS) const |
bool | IsWithinLOSInMap (WorldObject const *obj, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, Optional< float > collisionHeight={ }, Optional< float > combatReach={ }) const |
Position | GetHitSpherePointFor (Position const &dest, Optional< float > collisionHeight={ }, Optional< float > combatReach={ }) const |
void | GetHitSpherePointFor (Position const &dest, float &x, float &y, float &z, Optional< float > collisionHeight={ }, Optional< float > combatReach={ }) const |
bool | GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const |
bool | IsInRange (WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const |
bool | IsInRange2d (float x, float y, float minRange, float maxRange) const |
bool | IsInRange3d (float x, float y, float z, float minRange, float maxRange) const |
bool | isInFront (WorldObject const *target, float arc=M_PI) const |
bool | isInBack (WorldObject const *target, float arc=M_PI) const |
bool | IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const |
void | PlayDistanceSound (uint32 sound_id, Player *target=nullptr) |
void | PlayDirectSound (uint32 sound_id, Player *target=nullptr) |
void | PlayRadiusSound (uint32 sound_id, float radius) |
void | PlayDirectMusic (uint32 music_id, Player *target=nullptr) |
void | PlayRadiusMusic (uint32 music_id, float radius) |
void | SendObjectDeSpawnAnim (ObjectGuid guid) |
virtual void | SaveRespawnTime () |
void | AddObjectToRemoveList () |
float | GetGridActivationRange () const |
float | GetVisibilityRange () const |
bool | CanSeeOrDetect (WorldObject const *obj, bool ignoreStealth=false, bool distanceCheck=false, bool checkAlert=false) const |
void | SendPlayMusic (uint32 Music, bool OnlySelf) |
Map * | GetMap () const |
Map * | FindMap () const |
void | SetZoneScript () |
void | ClearZoneScript () |
ZoneScript * | GetZoneScript () const |
TempSummon * | SummonCreature (uint32 id, const Position &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr, bool visibleBySummonerOnly=false) const |
TempSummon * | SummonCreature (uint32 id, float x, float y, float z, float ang=0, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, SummonPropertiesEntry const *properties=nullptr, bool visibleBySummonerOnly=false) |
GameObject * | SummonGameObject (uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime, bool checkTransport=true, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN) |
Creature * | SummonTrigger (float x, float y, float z, float ang, uint32 dur, bool setLevel=false, CreatureAI *(*GetAI)(Creature *)=nullptr) |
void | SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=nullptr) |
Creature * | FindNearestCreature (uint32 entry, float range, bool alive=true) const |
GameObject * | FindNearestGameObject (uint32 entry, float range, bool onlySpawned=false) const |
GameObject * | FindNearestGameObjectOfType (GameobjectTypes type, float range) const |
Player * | SelectNearestPlayer (float distance=0) const |
void | GetGameObjectListWithEntryInGrid (std::list< GameObject * > &lList, uint32 uiEntry, float fMaxSearchRange) const |
void | GetCreatureListWithEntryInGrid (std::list< Creature * > &lList, uint32 uiEntry, float fMaxSearchRange) const |
void | GetDeadCreatureListInGrid (std::list< Creature * > &lList, float maxSearchRange, bool alive=false) const |
void | DestroyForNearbyPlayers () |
virtual void | UpdateObjectVisibilityOnCreate () |
void | BuildUpdate (UpdateDataMapType &data_map, UpdatePlayerSet &player_set) override |
void | GetCreaturesWithEntryInRange (std::list< Creature * > &creatureList, float radius, uint32 entry) |
void | SetPositionDataUpdate () |
void | UpdatePositionData () |
void | AddToObjectUpdate () override |
void | RemoveFromObjectUpdate () override |
void | AddToNotify (uint16 f) |
void | RemoveFromNotify (uint16 f) |
bool | isNeedNotify (uint16 f) const |
uint16 | GetNotifyFlags () const |
bool | NotifyExecuted (uint16 f) const |
void | SetNotified (uint16 f) |
void | ResetAllNotifies () |
bool | isActiveObject () const |
void | setActive (bool isActiveObject) |
bool | IsFarVisible () const |
bool | IsVisibilityOverridden () const |
void | SetVisibilityDistanceOverride (VisibilityDistanceType type) |
void | SetWorldObject (bool apply) |
bool | IsPermanentWorldObject () const |
bool | IsWorldObject () const |
bool | IsInWintergrasp () const |
Transport * | GetTransport () const |
float | GetTransOffsetX () const |
float | GetTransOffsetY () const |
float | GetTransOffsetZ () const |
float | GetTransOffsetO () const |
uint32 | GetTransTime () const |
int8 | GetTransSeat () const |
void | SetTransport (Transport *t) |
virtual float | GetStationaryX () const |
virtual float | GetStationaryY () const |
virtual float | GetStationaryZ () const |
virtual float | GetStationaryO () const |
float | GetMapWaterOrGroundLevel (Position pos, float *ground=nullptr) 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 |
float | GetFloorZ () const |
float | GetMinHeightInWater () const |
Get the minimum height of a object that should be in water to start floating/swim. | |
void | AddAllowedLooter (ObjectGuid guid) |
void | ResetAllowedLooters () |
void | SetAllowedLooters (GuidUnorderedSet const looters) |
bool | HasAllowedLooter (ObjectGuid guid) const |
GuidUnorderedSet const & | GetAllowedLooters () const |
void | RemoveAllowedLooter (ObjectGuid guid) |
std::string | GetDebugInfo () const override |
![]() | |
virtual | ~Object () |
bool | IsInWorld () const |
ObjectGuid | GetGUID () const |
PackedGuid const & | GetPackGUID () const |
uint32 | GetEntry () const |
void | SetEntry (uint32 entry) |
float | GetObjectScale () const |
bool | HasDynamicFlag (uint32 flag) const |
virtual void | SetDynamicFlag (uint32 flag) |
virtual void | RemoveDynamicFlag (uint32 flag) |
TypeID | GetTypeId () const |
bool | isType (uint16 mask) const |
void | SendUpdateToPlayer (Player *player) |
void | BuildValuesUpdateBlockForPlayer (UpdateData *data, Player *target) |
void | BuildOutOfRangeUpdateBlock (UpdateData *data) const |
void | BuildMovementUpdateBlock (UpdateData *data, uint32 flags=0) const |
int32 | GetInt32Value (uint16 index) const |
uint32 | GetUInt32Value (uint16 index) const |
uint64 | GetUInt64Value (uint16 index) const |
float | GetFloatValue (uint16 index) const |
uint8 | GetByteValue (uint16 index, uint8 offset) const |
uint16 | GetUInt16Value (uint16 index, uint8 offset) const |
ObjectGuid | GetGuidValue (uint16 index) const |
void | SetInt32Value (uint16 index, int32 value) |
void | SetUInt32Value (uint16 index, uint32 value) |
void | UpdateUInt32Value (uint16 index, uint32 value) |
void | SetUInt64Value (uint16 index, uint64 value) |
void | SetFloatValue (uint16 index, float value) |
void | SetByteValue (uint16 index, uint8 offset, uint8 value) |
void | SetUInt16Value (uint16 index, uint8 offset, uint16 value) |
void | SetInt16Value (uint16 index, uint8 offset, int16 value) |
void | SetGuidValue (uint16 index, ObjectGuid value) |
void | SetStatFloatValue (uint16 index, float value) |
void | SetStatInt32Value (uint16 index, int32 value) |
bool | AddGuidValue (uint16 index, ObjectGuid value) |
bool | RemoveGuidValue (uint16 index, ObjectGuid value) |
void | ApplyModUInt32Value (uint16 index, int32 val, bool apply) |
void | ApplyModInt32Value (uint16 index, int32 val, bool apply) |
void | ApplyModUInt64Value (uint16 index, int32 val, bool apply) |
void | ApplyModPositiveFloatValue (uint16 index, float val, bool apply) |
void | ApplyModSignedFloatValue (uint16 index, float val, bool apply) |
void | ApplyPercentModFloatValue (uint16 index, float val, bool apply) |
void | SetFlag (uint16 index, uint32 newFlag) |
void | RemoveFlag (uint16 index, uint32 oldFlag) |
void | ToggleFlag (uint16 index, uint32 flag) |
bool | HasFlag (uint16 index, uint32 flag) const |
void | ApplyModFlag (uint16 index, uint32 flag, bool apply) |
void | SetByteFlag (uint16 index, uint8 offset, uint8 newFlag) |
void | RemoveByteFlag (uint16 index, uint8 offset, uint8 newFlag) |
bool | HasByteFlag (uint16 index, uint8 offset, uint8 flag) const |
void | SetFlag64 (uint16 index, uint64 newFlag) |
void | RemoveFlag64 (uint16 index, uint64 oldFlag) |
void | ToggleFlag64 (uint16 index, uint64 flag) |
bool | HasFlag64 (uint16 index, uint64 flag) const |
void | ApplyModFlag64 (uint16 index, uint64 flag, bool apply) |
void | ClearUpdateMask (bool remove) |
uint16 | GetValuesCount () const |
virtual bool | hasQuest (uint32) const |
virtual bool | hasInvolvedQuest (uint32) const |
void | BuildFieldsUpdate (Player *, UpdateDataMapType &) |
void | SetFieldNotifyFlag (uint16 flag) |
void | RemoveFieldNotifyFlag (uint16 flag) |
void | ForceValuesUpdateAtIndex (uint32) |
bool | IsPlayer () const |
Player * | ToPlayer () |
Player const * | ToPlayer () const |
bool | IsCreature () const |
Creature * | ToCreature () |
Creature const * | ToCreature () const |
bool | IsUnit () const |
Unit * | ToUnit () |
Unit const * | ToUnit () const |
bool | IsGameObject () const |
GameObject * | ToGameObject () |
GameObject const * | ToGameObject () const |
bool | IsCorpse () const |
Corpse * | ToCorpse () |
Corpse const * | ToCorpse () const |
bool | IsDynamicObject () const |
DynamicObject * | ToDynObject () |
DynamicObject const * | ToDynObject () const |
bool | IsItem () const |
virtual void | Heartbeat () |
![]() | |
WorldLocation (uint32 _mapId=MAPID_INVALID, float x=0.f, float y=0.f, float z=0.f, float o=0.f) | |
WorldLocation (uint32 mapId, Position const &position) | |
void | WorldRelocate (const WorldLocation &loc) |
void | WorldRelocate (uint32 mapId=MAPID_INVALID, float x=0.f, float y=0.f, float z=0.f, float o=0.f) |
void | SetMapId (uint32 mapId) |
uint32 | GetMapId () const |
void | GetWorldLocation (uint32 &mapId, float &x, float &y) const |
void | GetWorldLocation (uint32 &mapId, float &x, float &y, float &z) const |
void | GetWorldLocation (uint32 &mapId, float &x, float &y, float &z, float &o) const |
void | GetWorldLocation (WorldLocation *location) const |
WorldLocation | GetWorldLocation () const |
std::string | GetDebugInfo () const |
![]() | |
Position (float x=0, float y=0, float z=0, float o=0) | |
Position (Position const &loc) | |
Position (Position &&)=default | |
Position & | operator= (const Position &)=default |
Position & | operator= (Position &&)=default |
bool | operator== (Position const &a) const |
bool | operator!= (Position const &a) |
bool | operator!= (Position const &a) const |
operator G3D::Vector3 () const | |
void | Relocate (float x, float y) |
void | Relocate (float x, float y, float z) |
void | Relocate (float x, float y, float z, float orientation) |
void | Relocate (const Position &pos) |
void | Relocate (const Position *pos) |
void | RelocatePolarOffset (float angle, float dist, float z=0.0f) |
void | RelocateOffset (const Position &offset) |
void | SetOrientation (float orientation) |
float | GetPositionX () const |
float | GetPositionY () const |
float | GetPositionZ () const |
float | GetOrientation () const |
void | GetPosition (float &x, float &y) const |
void | GetPosition (float &x, float &y, float &z) const |
void | GetPosition (float &x, float &y, float &z, float &o) const |
Position | GetPosition () const |
Position::PositionXYZStreamer | PositionXYZStream () |
Position::PositionXYZOStreamer | PositionXYZOStream () |
bool | IsPositionValid () const |
float | GetExactDist2dSq (const float x, const float y) const |
float | GetExactDist2dSq (Position const &pos) const |
float | GetExactDist2dSq (Position const *pos) const |
float | GetExactDist2d (const float x, const float y) const |
float | GetExactDist2d (Position const &pos) const |
float | GetExactDist2d (Position const *pos) const |
float | GetExactDistSq (float x, float y, float z) const |
float | GetExactDistSq (Position const &pos) const |
float | GetExactDistSq (Position const *pos) const |
float | GetExactDist (float x, float y, float z) const |
float | GetExactDist (Position const &pos) const |
float | GetExactDist (Position const *pos) const |
void | GetPositionOffsetTo (const Position &endPos, Position &retOffset) const |
Position | GetPositionWithOffset (Position const &offset) const |
float | GetAngle (const Position *pos) const |
float | GetAngle (float x, float y) const |
float | GetAbsoluteAngle (float x, float y) const |
float | GetAbsoluteAngle (Position const &pos) const |
float | GetAbsoluteAngle (Position const *pos) const |
float | GetRelativeAngle (const Position *pos) const |
float | GetRelativeAngle (float x, float y) const |
float | ToAbsoluteAngle (float relAngle) const |
void | GetSinCos (float x, float y, float &vsin, float &vcos) const |
bool | IsInDist2d (float x, float y, float dist) const |
bool | IsInDist2d (const Position *pos, float dist) const |
bool | IsInDist (float x, float y, float z, float dist) const |
bool | IsInDist (const Position *pos, float dist) const |
bool | IsWithinBox (const Position ¢er, float xradius, float yradius, float zradius) const |
bool | HasInArc (float arcangle, const Position *pos, float targetRadius=0.0f) const |
bool | HasInLine (Position const *pos, float width) const |
std::string | ToString () const |
![]() | |
bool | IsInGrid () const |
void | AddToGrid (GridRefMgr< Player > &m) |
void | RemoveFromGrid () |
Static Public Member Functions | |
static bool | BuildEnumData (PreparedQueryResult result, WorldPacket *data) |
static uint8 | GetAttackBySlot (uint8 slot) |
static bool | IsInventoryPos (uint16 pos) |
static bool | IsInventoryPos (uint8 bag, uint8 slot) |
static bool | IsEquipmentPos (uint16 pos) |
static bool | IsEquipmentPos (uint8 bag, uint8 slot) |
static bool | IsBagPos (uint16 pos) |
static bool | IsBankPos (uint16 pos) |
static bool | IsBankPos (uint8 bag, uint8 slot) |
static uint32 | GetDefaultGossipMenuForSource (WorldObject *source) |
static uint32 | GetZoneIdFromDB (ObjectGuid guid) |
static bool | LoadPositionFromDB (uint32 &mapid, float &x, float &y, float &z, float &o, bool &in_flight, ObjectGuid::LowType guid) |
static bool | IsValidGender (uint8 Gender) |
static void | Customize (CharacterCustomizeInfo const *customizeInfo, CharacterDatabaseTransaction trans) |
static void | SavePositionInDB (uint32 mapid, float x, float y, float z, float o, uint32 zone, ObjectGuid guid) |
static void | SavePositionInDB (WorldLocation const &loc, uint16 zoneId, ObjectGuid guid, CharacterDatabaseTransaction trans) |
static void | DeleteFromDB (ObjectGuid::LowType lowGuid, uint32 accountId, bool updateRealmChars, bool deleteFinally) |
static void | DeleteOldCharacters () |
static void | DeleteOldCharacters (uint32 keepDays) |
static void | DeleteOldRecoveryItems () |
static void | DeleteOldRecoveryItems (uint32 keepDays) |
static void | RemoveFromGroup (Group *group, ObjectGuid guid, RemoveMethod method=GROUP_REMOVEMETHOD_DEFAULT, ObjectGuid kicker=ObjectGuid::Empty, const char *reason=nullptr) |
static void | RemovePetitionsAndSigns (ObjectGuid guid, uint32 type) |
static uint32 | GetArenaTeamIdFromDB (ObjectGuid guid, uint8 slot) |
static void | LeaveAllArenaTeams (ObjectGuid guid) |
static void | ResetInstances (ObjectGuid guid, uint8 method, bool isRaid) |
Reset all solo instances and optionally send a message on success for each. | |
static void | OfflineResurrect (ObjectGuid const guid, CharacterDatabaseTransaction trans) |
static TeamId | TeamIdForRace (uint8 race) |
static DrunkenState | GetDrunkenstateByValue (uint8 value) |
![]() | |
static void | ApplyResilience (Unit const *victim, float *crit, int32 *damage, bool isCrit, CombatRating type) |
static float | GetEffectiveResistChance (Unit const *owner, SpellSchoolMask schoolMask, Unit const *victim) |
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, bool allowGM=false, Spell const *spell=nullptr) |
static void | DealDamageMods (Unit const *victim, uint32 &damage, uint32 *absorb) |
static void | Kill (Unit *killer, Unit *victim, bool durabilityLoss=true, WeaponAttackType attackType=BASE_ATTACK, SpellInfo const *spellProto=nullptr, Spell const *spell=nullptr) |
static bool | IsDamageReducedByArmor (SpellSchoolMask damageSchoolMask, SpellInfo const *spellInfo=nullptr, uint8 effIndex=MAX_SPELL_EFFECTS) |
static uint32 | CalcArmorReducedDamage (Unit const *attacker, Unit const *victim, const uint32 damage, SpellInfo const *spellInfo, uint8 attackerLevel=0, WeaponAttackType attackType=MAX_ATTACK) |
static uint32 | SpellCriticalDamageBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit const *victim) |
static void | ProcDamageAndSpell (Unit *actor, Unit *victim, uint32 procAttacker, uint32 procVictim, uint32 procEx, uint32 amount, WeaponAttackType attType=BASE_ATTACK, SpellInfo const *procSpellInfo=nullptr, SpellInfo const *procAura=nullptr, int8 procAuraEffectIndex=-1, Spell const *procSpell=nullptr, DamageInfo *damageInfo=nullptr, HealInfo *healInfo=nullptr, uint32 procPhase=2) |
static int32 | DealHeal (Unit *healer, Unit *victim, uint32 addhealth) |
static uint32 | SpellCriticalHealingBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit const *victim) |
static void | CalcAbsorbResist (DamageInfo &dmgInfo, bool Splited=false) |
static void | CalcHealAbsorb (HealInfo &healInfo) |
static void | HandleSafeUnitPointersOnDelete (Unit *thisUnit) |
![]() | |
static ObjectGuid | GetGUID (Object const *o) |
![]() | |
static float | NormalizeOrientation (float o) |
Static Public Attributes | |
static std::unordered_map< int, bgZoneRef > | bgZoneIdToFillWorldStates = {} |
Protected Types | |
typedef std::set< uint32 > | QuestSet |
typedef std::set< uint32 > | SeasonalQuestSet |
typedef std::unordered_map< uint32, SeasonalQuestSet > | SeasonalEventQuestMap |
typedef std::list< Channel * > | JoinedChannelsList |
![]() | |
typedef std::list< DynamicObject * > | DynObjectList |
typedef GuidList | GameObjectList |
typedef std::map< ObjectGuid, float > | CharmThreatMap |
Static Protected Member Functions | |
static Item * | _LoadMailedItem (ObjectGuid const &playerGuid, Player *player, uint32 mailId, Mail *mail, Field *fields) |
Private Types | |
typedef GuidSet | RefundableItemsSet |
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 | AddKnownCurrency (uint32 itemId) |
void | AdjustQuestReqItemCount (Quest const *quest, QuestStatusData &questStatusData) |
bool | MustDelayTeleport () const |
void | SetMustDelayTeleport (bool setting) |
bool | HasDelayedTeleport () const |
void | SetHasDelayedTeleport (bool setting) |
void | UpdateCharmedAI () |
Friends | |
class | WorldSession |
class | CinematicMgr |
void | Item::AddToUpdateQueueOf (Player *player) |
void | Item::RemoveFromUpdateQueueOf (Player *player) |
typedef std::set<uint32> Player::DFQuestsDoneList |
typedef std::unordered_map<ObjectGuid::LowType, Item*> Player::ItemMap |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
explicit |
References _activeCheats, _BgBattlegroundQueueID, _cinematicMgr, _innTriggerId, _restBonus, _restFlagMask, _restTime, _wasOutdoor, AT_LOGIN_NONE, BASEMOD_END, BATTLEGROUND_QUEUE_NONE, BUYBACK_SLOT_START, CHEAT_NONE, CinematicMgr, clearResurrectRequestData(), CONFIG_INTERVAL_SAVE, DISABLED_MIRROR_TIMER, DUNGEON_DIFFICULTY_NORMAL, FLAT_MOD, GameTime::GetGameTime(), GetSession(), SafeUnitPointer::Initialize(), isDebugAreaTriggers, AccountMgr::IsPlayerAccount(), m_achievementMgr, m_activeSpec, m_additionalSaveMask, m_additionalSaveTimer, m_ammoDPS, Unit::m_applyResilience, m_areaUpdateId, m_ArenaTeamIdInvited, m_ArmorProficiency, m_atLoginFlags, m_auraBaseMod, m_auraRaidUpdateMask, m_baseFeralAP, m_baseHealthRegen, m_baseManaRegen, m_baseRatingValue, m_baseSpellPower, m_bHasDelayedTeleport, m_bMustDelayTeleport, m_bPassOnGroupLoot, m_canBlock, m_canKnockback, m_canParry, m_canTeleport, m_canTitanGrip, m_ChampioningFaction, m_charmAISpells, m_charmUpdateTimer, m_cinematic, m_contestedPvPTimer, Unit::m_ControlledByPlayer, m_creationTime, m_currentBuybackSlot, m_DailyQuestChanged, m_deathExpireTime, m_deathTimer, m_declinedname, m_DelayedOperations, m_drunkTimer, m_dungeonDifficulty, m_extraBonusTalentCount, m_ExtraFlags, m_flightSpellActivated, m_foodEmoteTimerCount, m_forced_speed_changes, m_Glyphs, m_grantableLevels, m_groupUpdateMask, m_GuildIdInvited, m_homebindAreaId, m_homebindMapId, m_HomebindTimer, m_homebindX, m_homebindY, m_homebindZ, m_hostileReferenceCheckTimer, m_ingametime, m_InstanceValid, WorldObject::m_isActive, m_IsBGRandomWinner, m_isInstantFlightOn, m_isInWater, m_items, m_itemUpdateQueueBlocked, m_Last_tick, m_lastDailyQuestTime, m_lastFallTime, m_lastFallZ, m_lastHonorUpdateTime, m_lastpetnumber, m_lastPotionId, m_logintime, m_mailsUpdated, m_MirrorTimer, m_MirrorTimerFlags, m_MirrorTimerFlagsLast, m_MonthlyQuestChanged, m_MountBlockId, Unit::m_movedByPlayer, m_NeedToSaveGlyphs, m_needZoneUpdate, m_nextMailDelivereTime, m_nextSave, Object::m_objectType, Object::m_objectTypeId, m_oldpetspell, m_pendingSpectatorForBG, m_pendingSpectatorInviteInstanceId, m_Played_time, m_powerFraction, m_questRewardTalentCount, m_raidDifficulty, m_raidMapDifficulty, m_realDodge, m_realParry, m_recallMap, m_recallO, m_recallX, m_recallY, m_recallZ, Unit::m_regenTimer, m_regenTimerCount, m_reputationMgr, m_resetTalentsCost, m_resetTalentsTime, m_runes, m_SeasonalQuestChanged, m_seer, m_session, m_social, m_specsCount, m_spellModTakingSpell, m_spellPenetrationItemMod, m_summon_asSpectator, m_summon_expire, m_summon_mapid, m_summon_x, m_summon_y, m_summon_z, m_swingErrorMsg, m_team, m_temporaryUnsummonedPetNumber, m_trade, m_usedTalentCount, Object::m_valuesCount, m_weaponChangeTimer, m_WeaponProficiency, m_WeeklyQuestChanged, m_zoneUpdateId, m_zoneUpdateTimer, MAX_COMBAT_RATING, MAX_GLYPH_SLOT_INDEX, MAX_MOVE_TYPE, MAX_POWERS, MAX_TALENT_SPECS, MAX_TIMERS, mSemaphoreTeleport_Far, mSemaphoreTeleport_Near, NUM_CAI_SPELLS, PCT_MOD, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_END, PLAYER_MAX_BATTLEGROUND_QUEUES, PLAYER_SLOTS_COUNT, PlayerTalkClass, RAID_DIFFICULTY_10MAN_NORMAL, SetAcceptWhispers(), SetGroupInvite(), SetPendingBind(), sScriptMgr, sWorld, sWorldSessionMgr, TEAM_NEUTRAL, teleportStore_options, TYPEID_PLAYER, TYPEMASK_PLAYER, UNDERWATER_NONE, and unReadMails.
|
override |
References _cinematicMgr, ItemSetEff, m_achievementMgr, m_declinedname, m_isInSharedVisionOf, m_items, m_mail, m_reputationMgr, m_runes, m_spells, m_talents, mMitems, PLAYER_SLOTS_COUNT, PlayerTalkClass, Unit::RemovePlayerFromVision(), sScriptMgr, and sWorldSessionMgr.
bool Player::_addSpell | ( | uint32 | spellId, |
uint8 | addSpecMask, | ||
bool | temporary, | ||
bool | learnFromSkill = false |
||
) |
References _addSpell(), ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILL_LINE, ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILLLINE_SPELLS, ACHIEVEMENT_CRITERIA_TYPE_LEARN_SPELL, PlayerSpell::Active, AURA_EFFECT_HANDLE_REAL, AURA_STATE_HEALTH_ABOVE_75_PERCENT, AURA_STATE_HEALTHLESS_20_PERCENT, AURA_STATE_HEALTHLESS_35_PERCENT, Unit::CastSpell(), SpellMgr::CheckSpellValid(), SpellInfo::Effects, GetActiveSpec(), Unit::GetAura(), GetFreePrimaryProfessionPoints(), Object::GetGUID(), GetMaxSkillValueForLevel(), GetPureMaxSkillValue(), GetPureSkillValue(), GetSession(), Has310Flyer(), SpellInfo::HasAnyAura(), SpellInfo::HasAttribute(), Unit::HasAuraState(), SpellInfo::HasEffect(), HasSkill(), SpellInfo::Id, SkillLineEntry::id, isBeingLoaded(), Object::IsInWorld(), IsNeedCastPassiveSpellAtLearn(), SpellInfo::IsPassive(), SpellInfo::IsPrimaryProfessionFirstRank(), LearnDefaultSkill(), learnSpell(), LOG_INFO, m_activeSpec, m_spells, MAX_SPELL_EFFECTS, SpellLearnSkillNode::maxvalue, PLAYERSPELL_CHANGED, PLAYERSPELL_NEW, PLAYERSPELL_REMOVED, PLAYERSPELL_TEMPORARY, PLAYERSPELL_UNCHANGED, SendLearnPacket(), SetFreePrimaryProfessions(), SetHas310Flyer(), SetSkill(), SpellLearnSkillNode::skill, SKILL_LINE_ABILITY_LEARNED_ON_SKILL_LEARN, SKILL_LOCKPICKING, SKILL_MOUNTS, SKILL_RUNEFORGING, SPEC_MASK_ALL, PlayerSpell::specMask, SPELL_ATTR0_DO_NOT_DISPLAY, SPELL_ATTR0_PASSIVE, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, SPELL_EFFECT_LEARN_SPELL, SPELL_EFFECT_SKILL_STEP, sSkillLineStore, sSpellMgr, SpellInfo::Stances, PlayerSpell::State, SpellLearnSkillNode::step, Position::ToString(), UpdateAchievementCriteria(), and SpellLearnSkillNode::value.
Referenced by _addSpell(), _addTalentAurasAndSpells(), addSpell(), AuraEffect::HandleAuraModShapeshift(), and AuraEffect::HandleAuraOverrideSpells().
void Player::_AddSpellCooldown | ( | uint32 | spell_id, |
uint16 | categoryId, | ||
uint32 | itemid, | ||
uint32 | end_time, | ||
bool | needSendToClient = false , |
||
bool | forceSendToSpectator = false |
||
) |
References SpellCooldown::category, SpellCooldown::end, WorldObject::FindMap(), GameTime::GetGameTimeMS(), Object::GetGUID(), HasActiveSpell(), IN_MILLISECONDS, SpellCooldown::itemid, m_spellCooldowns, SpellCooldown::maxduration, NeedSendSpectatorData(), SpellCooldown::needSendToClient, ArenaSpectator::SendCommand_Cooldown(), SpellCooldown::sendToSpectator, SPECTATOR_COOLDOWN_MAX, and SPECTATOR_COOLDOWN_MIN.
Referenced by _LoadSpellCooldowns(), AddSpellAndCategoryCooldowns(), and AddSpellCooldown().
void Player::_addTalentAurasAndSpells | ( | uint32 | spellId | ) |
References _addSpell(), Unit::CastSpell(), SpellInfo::Effects, SpellInfo::HasAttribute(), SpellInfo::HasEffect(), IsNeedCastPassiveSpellAtLearn(), SpellInfo::IsPassive(), MAX_SPELL_EFFECTS, SPEC_MASK_ALL, SPELL_ATTR0_DO_NOT_DISPLAY, SPELL_EFFECT_LEARN_SPELL, sSpellMgr, and SpellInfo::Stances.
Referenced by ActivateSpec(), and addTalent().
void Player::_ApplyAllItemMods | ( | ) |
References _ApplyAmmoBonuses(), _ApplyItemBonuses(), _ApplyWeaponDependentAuraMods(), AddItemsSetItem(), ApplyEnchantment(), ApplyItemEquipSpell(), Unit::CanUseAttackType(), EQUIPMENT_SLOT_RANGED, GetAttackBySlot(), Item::GetTemplate(), INVENTORY_SLOT_BAG_END, ItemTemplate::ItemSet, LOG_DEBUG, m_items, and MAX_ATTACK.
Referenced by _ApplyAllStatBonuses(), and _LoadInventory().
void Player::_ApplyAllLevelScaleItemMods | ( | bool | apply | ) |
References _ApplyItemMods(), Unit::CanUseAttackType(), GetAttackBySlot(), Item::GetTemplate(), INVENTORY_SLOT_BAG_END, and m_items.
Referenced by GiveLevel(), and reset_commandscript::HandleResetLevelCommand().
void Player::_ApplyAllStatBonuses | ( | ) |
References Unit::_ApplyAllAuraStatMods(), _ApplyAllItemMods(), Unit::SetCanModifyStats(), and UpdateAllStats().
Referenced by InitStatsForLevel().
void Player::_ApplyAmmoBonuses | ( | ) |
References Unit::CanModifyStats(), CheckAmmoCompatibility(), ItemTemplate::Class, ItemTemplate::Damage, _Damage::DamageMax, _Damage::DamageMin, GetAmmoDPS(), Object::GetUInt32Value(), ITEM_CLASS_PROJECTILE, m_ammoDPS, PLAYER_AMMO_ID, RANGED_ATTACK, sObjectMgr, sScriptMgr, and Unit::UpdateDamagePhysical().
Referenced by _ApplyAllItemMods(), _ApplyItemMods(), _RemoveAllItemMods(), and SetAmmo().
void Player::_ApplyItemBonuses | ( | ItemTemplate const * | proto, |
uint8 | slot, | ||
bool | apply, | ||
bool | only_level_scale = false |
||
) |
References _ApplyWeaponDamage(), ApplyFeralAPBonus(), ApplyHealthRegenBonus(), ApplyManaRegenBonus(), ApplyRatingMod(), ApplySpellPenetrationBonus(), ApplySpellPowerBonus(), Unit::ApplyStatBuffMod(), ItemTemplate::ArcaneRes, ItemTemplate::Armor, ItemTemplate::ArmorDamageModifier, BASE_VALUE, ItemTemplate::Block, ItemTemplate::Class, CLASS_CONTEXT_STATS, CLASS_DRUID, CR_ARMOR_PENETRATION, CR_BLOCK, CR_CRIT_MELEE, CR_CRIT_RANGED, CR_CRIT_SPELL, CR_CRIT_TAKEN_MELEE, CR_CRIT_TAKEN_RANGED, CR_CRIT_TAKEN_SPELL, CR_DEFENSE_SKILL, CR_DODGE, CR_EXPERTISE, CR_HASTE_MELEE, CR_HASTE_RANGED, CR_HASTE_SPELL, CR_HIT_MELEE, CR_HIT_RANGED, CR_HIT_SPELL, CR_HIT_TAKEN_MELEE, CR_HIT_TAKEN_RANGED, CR_HIT_TAKEN_SPELL, CR_PARRY, ItemTemplate::FireRes, FLAT_MOD, ItemTemplate::FrostRes, ScalingStatValuesEntry::getArmorMod(), GetAttackBySlot(), ScalingStatValuesEntry::getDPSMod(), ItemTemplate::getFeralBonus(), ScalingStatValuesEntry::getFeralBonus(), Unit::GetLevel(), ScalingStatValuesEntry::getSpellBonus(), ScalingStatValuesEntry::getssdMultiplier(), HandleBaseModValue(), Unit::HandleStatModifier(), ItemTemplate::HolyRes, INVENTORY_SLOT_BAG_END, IsClass(), ITEM_CLASS_ARMOR, ITEM_MOD_AGILITY, ITEM_MOD_ARMOR_PENETRATION_RATING, ITEM_MOD_ATTACK_POWER, ITEM_MOD_BLOCK_RATING, ITEM_MOD_BLOCK_VALUE, ITEM_MOD_CRIT_MELEE_RATING, ITEM_MOD_CRIT_RANGED_RATING, ITEM_MOD_CRIT_RATING, ITEM_MOD_CRIT_SPELL_RATING, ITEM_MOD_CRIT_TAKEN_MELEE_RATING, ITEM_MOD_CRIT_TAKEN_RANGED_RATING, ITEM_MOD_CRIT_TAKEN_RATING, ITEM_MOD_CRIT_TAKEN_SPELL_RATING, ITEM_MOD_DEFENSE_SKILL_RATING, ITEM_MOD_DODGE_RATING, ITEM_MOD_EXPERTISE_RATING, ITEM_MOD_HASTE_MELEE_RATING, ITEM_MOD_HASTE_RANGED_RATING, ITEM_MOD_HASTE_RATING, ITEM_MOD_HASTE_SPELL_RATING, ITEM_MOD_HEALTH, ITEM_MOD_HEALTH_REGEN, ITEM_MOD_HIT_MELEE_RATING, ITEM_MOD_HIT_RANGED_RATING, ITEM_MOD_HIT_RATING, ITEM_MOD_HIT_SPELL_RATING, ITEM_MOD_HIT_TAKEN_MELEE_RATING, ITEM_MOD_HIT_TAKEN_RANGED_RATING, ITEM_MOD_HIT_TAKEN_RATING, ITEM_MOD_HIT_TAKEN_SPELL_RATING, ITEM_MOD_INTELLECT, ITEM_MOD_MANA, ITEM_MOD_MANA_REGENERATION, ITEM_MOD_PARRY_RATING, ITEM_MOD_RANGED_ATTACK_POWER, ITEM_MOD_RESILIENCE_RATING, ITEM_MOD_SPELL_DAMAGE_DONE, ITEM_MOD_SPELL_HEALING_DONE, ITEM_MOD_SPELL_PENETRATION, ITEM_MOD_SPELL_POWER, ITEM_MOD_SPIRIT, ITEM_MOD_STAMINA, ITEM_MOD_STRENGTH, ITEM_SUBCLASS_ARMOR_CLOTH, ITEM_SUBCLASS_ARMOR_LEATHER, ITEM_SUBCLASS_ARMOR_MAIL, ITEM_SUBCLASS_ARMOR_PLATE, ITEM_SUBCLASS_ARMOR_SHIELD, ItemTemplate::ItemStat, _ItemStat::ItemStatType, _ItemStat::ItemStatValue, MAX_ATTACK, MAX_ITEM_PROTO_STATS, ScalingStatDistributionEntry::MaxLevel, ScalingStatDistributionEntry::Modifier, ItemTemplate::NatureRes, ItemTemplate::ScalingStatDistribution, ItemTemplate::ScalingStatValue, ItemTemplate::ShadowRes, SHIELD_BLOCK_VALUE, sScalingStatDistributionStore, sScalingStatValuesStore, sScriptMgr, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, ScalingStatDistributionEntry::StatMod, ItemTemplate::StatsCount, ItemTemplate::SubClass, TOTAL_VALUE, UNIT_MOD_ARMOR, UNIT_MOD_ATTACK_POWER, UNIT_MOD_ATTACK_POWER_RANGED, UNIT_MOD_HEALTH, UNIT_MOD_MANA, UNIT_MOD_RESISTANCE_ARCANE, UNIT_MOD_RESISTANCE_FIRE, UNIT_MOD_RESISTANCE_FROST, UNIT_MOD_RESISTANCE_HOLY, UNIT_MOD_RESISTANCE_NATURE, UNIT_MOD_RESISTANCE_SHADOW, UNIT_MOD_STAT_AGILITY, UNIT_MOD_STAT_INTELLECT, UNIT_MOD_STAT_SPIRIT, UNIT_MOD_STAT_STAMINA, and UNIT_MOD_STAT_STRENGTH.
Referenced by _ApplyAllItemMods(), _ApplyItemMods(), and _RemoveAllItemMods().
References _ApplyAmmoBonuses(), _ApplyItemBonuses(), _ApplyWeaponDependentAuraMods(), ApplyEnchantment(), ApplyItemEquipSpell(), CorrectMetaGemEnchants(), EQUIPMENT_SLOT_RANGED, GetAttackBySlot(), Object::GetGUID(), Item::GetTemplate(), Item::HasSocket(), INVENTORY_SLOT_BAG_END, Item::IsBroken(), LOG_DEBUG, MAX_ATTACK, and ObjectGuid::ToString().
Referenced by _ApplyAllLevelScaleItemMods(), DestroyItem(), DurabilityPointsLoss(), DurabilityRepair(), EquipItem(), and RemoveItem().
void Player::_ApplyWeaponDamage | ( | uint8 | slot, |
ItemTemplate const * | proto, | ||
ScalingStatValuesEntry const * | ssv, | ||
bool | apply | ||
) |
References BASE_ATTACK, BASE_ATTACK_TIME, BASE_MAXDAMAGE, BASE_MINDAMAGE, Unit::CanModifyStats(), Unit::CanUseAttackType(), ItemTemplate::Damage, _Damage::DamageMax, _Damage::DamageMin, ItemTemplate::Delay, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, GetAttackBySlot(), ScalingStatValuesEntry::getDPSMod(), Unit::GetLevel(), Unit::GetWeaponDamageRange(), Unit::IsInFeralForm(), ScalingStatValuesEntry::IsTwoHand(), MAX_ITEM_PROTO_DAMAGES, MAXDAMAGE, ScalingStatDistributionEntry::MaxLevel, MINDAMAGE, OFF_ATTACK, RANGED_ATTACK, ItemTemplate::ScalingStatDistribution, ItemTemplate::ScalingStatValue, Unit::SetAttackTime(), Unit::SetBaseWeaponDamage(), sScalingStatDistributionStore, sScalingStatValuesStore, sScriptMgr, and Unit::UpdateDamagePhysical().
Referenced by _ApplyItemBonuses(), AuraEffect::HandleAuraModDisarm(), and AuraEffect::HandleAuraModShapeshift().
void Player::_ApplyWeaponDependentAuraCritMod | ( | Item * | item, |
WeaponAttackType | attackType, | ||
AuraEffect const * | aura, | ||
bool | apply | ||
) |
References BASE_ATTACK, BASEMOD_END, Unit::CanUseAttackType(), CRIT_PERCENTAGE, SpellInfo::EquippedItemClass, FLAT_MOD, AuraEffect::GetAmount(), AuraEffect::GetSpellInfo(), HandleBaseModValue(), Item::IsBroken(), Item::IsFitToSpellRequirements(), OFF_ATTACK, OFFHAND_CRIT_PERCENTAGE, RANGED_ATTACK, RANGED_CRIT_PERCENTAGE, and sScriptMgr.
Referenced by _ApplyWeaponDependentAuraMods(), and AuraEffect::HandleAuraModWeaponCritPercent().
void Player::_ApplyWeaponDependentAuraDamageMod | ( | Item * | item, |
WeaponAttackType | attackType, | ||
AuraEffect const * | aura, | ||
bool | apply | ||
) |
References Object::ApplyModUInt32Value(), BASE_ATTACK, Unit::CanUseAttackType(), CLASSMASK_WAND_USERS, SpellInfo::EquippedItemClass, AuraEffect::GetAmount(), AuraEffect::GetAuraType(), Unit::getClassMask(), AuraEffect::GetMiscValue(), AuraEffect::GetSpellInfo(), Unit::HandleStatModifier(), Item::IsBroken(), Item::IsFitToSpellRequirements(), OFF_ATTACK, PLAYER_FIELD_MOD_DAMAGE_DONE_NEG, PLAYER_FIELD_MOD_DAMAGE_DONE_POS, RANGED_ATTACK, SPELL_AURA_MOD_DAMAGE_DONE, SPELL_AURA_MOD_DAMAGE_PERCENT_DONE, SPELL_SCHOOL_MASK_NORMAL, TOTAL_PCT, TOTAL_VALUE, UNIT_MOD_DAMAGE_MAINHAND, UNIT_MOD_DAMAGE_OFFHAND, UNIT_MOD_DAMAGE_RANGED, and UNIT_MOD_END.
Referenced by _ApplyWeaponDependentAuraMods(), AuraEffect::HandleModDamageDone(), and AuraEffect::HandleModDamagePercentDone().
void Player::_ApplyWeaponDependentAuraMods | ( | Item * | item, |
WeaponAttackType | attackType, | ||
bool | apply | ||
) |
References _ApplyWeaponDependentAuraCritMod(), _ApplyWeaponDependentAuraDamageMod(), Unit::GetAuraEffectsByType(), SPELL_AURA_MOD_DAMAGE_DONE, SPELL_AURA_MOD_DAMAGE_PERCENT_DONE, and SPELL_AURA_MOD_WEAPON_CRIT_PERCENT.
Referenced by _ApplyAllItemMods(), _ApplyItemMods(), _RemoveAllItemMods(), and AuraEffect::HandleAuraModDisarm().
|
protected |
References ACTIONBUTTON_DELETED, ACTIONBUTTON_UNCHANGED, addActionButton(), Field::Get(), Object::GetGUID(), WorldObject::GetName(), LOG_ERROR, and m_actionButtons.
Referenced by WorldSession::HandleLoadActionsSwitchSpec(), LoadActions(), and LoadFromDB().
|
protected |
References ARENA_TEAM_END, ARENA_TEAM_GAMES_SEASON, ARENA_TEAM_GAMES_WEEK, ARENA_TEAM_ID, ARENA_TEAM_MEMBER, ARENA_TEAM_PERSONAL_RATING, ARENA_TEAM_TYPE, ARENA_TEAM_WINS_SEASON, ArenaTeam::ArenaSlotByType, ArenaTeam::GetCaptain(), Object::GetGUID(), ArenaTeam::GetMember(), ArenaTeam::GetType(), LOG_ERROR, Object::m_uint32Values, MAX_ARENA_SLOT, ArenaTeamMember::PersonalRating, PLAYER_FIELD_ARENA_TEAM_INFO_1_1, sArenaTeamMgr, sCharacterCache, ArenaTeamMember::SeasonGames, ArenaTeamMember::SeasonWins, SetArenaTeamInfoField(), and ArenaTeamMember::WeekGames.
Referenced by LoadFromDB().
|
protected |
References Field::Get(), Object::GetGUID(), IN_MILLISECONDS, LOG_DEBUG, LOG_ERROR, SetMountBlockId(), SPELL_ATTR4_AURA_EXPIRES_OFFLINE, SPELL_AURA_MOUNTED, sSpellMgr, Position::ToString(), and Aura::TryCreate().
Referenced by LoadFromDB().
|
protected |
References CHAR_REP_BREW_OF_THE_MONTH, CharacterDatabase, Field::Get(), Object::GetGUID(), Acore::Time::GetMonth(), HasAchieved(), IsEventActive(), MAIL_CREATURE, MailDraft::SendMailTo(), and PreparedStatementBase::SetData().
Referenced by LoadFromDB().
|
protected |
References CONFIG_PLAYER_SETTINGS_ENABLED, Field::Get(), m_charSettingsMap, sWorld, Acore::Tokenize(), and PlayerSetting::value.
Referenced by LoadFromDB().
|
protected |
References Field::Get(), Object::GetGUID(), LOG_DEBUG, LOG_ERROR, m_DailyQuestChanged, m_DFQuests, m_lastDailyQuestTime, PLAYER_FIELD_DAILY_QUESTS_1, PLAYER_MAX_DAILY_QUESTS, Unit::SetUInt32Value(), sObjectMgr, and Position::ToString().
Referenced by LoadFromDB().
|
protected |
References m_declinedname, MAX_DECLINED_NAME_CASES, and DeclinedName::name.
Referenced by LoadFromDB().
|
protected |
References Field::Get(), EntryPointData::joinPos, m_entryPointData, EntryPointData::mountSpell, and EntryPointData::taxiPath.
Referenced by LoadFromDB().
|
protected |
References EQUIPMENT_SET_UNCHANGED, EQUIPMENT_SLOT_END, Field::Get(), EquipmentSet::Guid, EquipmentSet::IconName, EquipmentSet::IgnoreMask, EquipmentSet::Items, m_EquipmentSets, MAX_EQUIPMENT_SET_INDEX, EquipmentSet::Name, and EquipmentSet::state.
Referenced by LoadFromDB().
|
protected |
|
protected |
References Unit::CastSpell(), GetGlyph(), GetGlyphSlot(), LOG_ERROR, WorldObject::m_name, MAX_GLYPH_SLOT_INDEX, SetGlyph(), sGlyphPropertiesStore, sGlyphSlotStore, sSpellMgr, SpellInfo::Stances, TRIGGERED_FULL_MASK, TRIGGERED_IGNORE_CASTER_AURASTATE, and TRIGGERED_IGNORE_SHAPESHIFT.
Referenced by LoadFromDB().
|
protected |
References Field::Get(), m_Glyphs, and m_specsCount.
Referenced by LoadFromDB().
|
protected |
References GetGroup(), Object::GetGUID(), MAX_RAID_SUBGROUPS, PLAYER_FLAGS_GROUP_LEADER, RemovePlayerFlag(), sCharacterCache, SetDungeonDifficulty(), SetGroup(), SetPlayerFlag(), SetRaidDifficulty(), and sGroupMgr.
Referenced by LoadFromDB().
|
protected |
References PlayerInfo::areaId, CHAR_DEL_PLAYER_HOMEBIND, CHAR_INS_PLAYER_HOMEBIND, CharacterDatabase, WorldSession::Expansion(), Field::Get(), Unit::getClass(), ObjectGuid::GetCounter(), Object::GetGUID(), WorldObject::GetName(), Unit::getRace(), GetSession(), MapMgr::IsValidMapCoord(), LOG_DEBUG, LOG_ERROR, m_homebindAreaId, m_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, PlayerInfo::mapId, PlayerInfo::positionX, PlayerInfo::positionY, PlayerInfo::positionZ, PreparedStatementBase::SetData(), sMapStore, and sObjectMgr.
Referenced by LoadFromDB().
|
protected |
References _instanceResetTimes.
Referenced by LoadFromDB().
|
protected |
References _ApplyAllItemMods(), _LoadItem(), MailDraft::AddItem(), BankItem(), CanBankItem(), CanEquipItem(), CanStoreItem(), CharacterDatabase, EQUIP_ERR_INT_BAG_ERROR, EQUIP_ERR_OK, Field::Get(), WorldSession::GetAcoreString(), Object::GetGUID(), WorldObject::GetName(), GetSession(), WorldObject::GetZoneId(), INVENTORY_SLOT_BAG_0, IsBagPos(), IsBankPos(), IsEquipmentPos(), IsInventoryPos(), ITEM_UNCHANGED, LANG_NOT_EQUIPPED_ITEM, LOG_ERROR, m_itemUpdateQueueBlocked, MAIL_CHECK_MASK_COPIED, MAIL_STATIONERY_GM, MAX_MAIL_ITEMS, NULL_SLOT, QuickEquipItem(), MailDraft::SendMailTo(), sScriptMgr, StoreItem(), Item::ToBag(), ObjectGuid::ToString(), and Position::ToString().
Referenced by LoadFromDB().
|
private |
References AddRefundReference(), AddTradeableItem(), CHAR_DEL_ITEM_REFUND_INSTANCE, CHAR_SEL_ITEM_BOP_TRADE, CHAR_SEL_ITEM_REFUNDS, CharacterDatabase, Item::ClearSoulboundTradeable(), Item::DeleteFromDB(), Item::DeleteFromInventoryDB(), Item::FSetState(), Field::Get(), ObjectGuid::GetCounter(), Object::GetEntry(), Object::GetGUID(), Object::GetGUID(), WorldLocation::GetMapId(), ItemTemplate::GetMaxStackSize(), WorldObject::GetName(), Item::GetPlayedTime(), Item::GetTemplate(), HOUR, Unit::IsAlive(), Item::IsBOPTradable(), Item::IsLimitedToAnotherMapOrZone(), Item::IsRefundable(), Item::IsSoulBound(), ITEM_FIELD_FLAG_BOP_TRADEABLE, ITEM_FIELD_FLAG_REFUNDABLE, ITEM_FIELD_FLAGS, ITEM_FLAG_CONJURED, ITEM_REMOVED, Item::LoadFromDB(), LOG_DEBUG, LOG_ERROR, LOG_WARN, MINUTE, NewItemOrBag(), Object::RemoveFlag(), Item::SaveToDB(), PreparedStatementBase::SetData(), Item::SetPaidExtendedCost(), Item::SetPaidMoney(), Item::SetRefundRecipient(), Item::SetSoulboundTradeable(), sGameEventMgr, sObjectMgr, Acore::Tokenize(), ObjectGuid::ToString(), and Position::ToString().
Referenced by _LoadInventory().
|
protected |
References _LoadMailedItem(), Mail::body, Mail::checked, Mail::COD, Mail::deliver_time, Mail::expire_time, Field::Get(), GameTime::GetGameTime(), Object::GetGUID(), LOG_DEBUG, LOG_ERROR, m_mail, MAIL_STATE_UNCHANGED, Mail::mailTemplateId, Mail::messageID, Mail::messageType, Mail::money, Mail::receiver, Mail::sender, sMailTemplateStore, Mail::state, Mail::stationery, Mail::subject, and UpdateNextMailTimeAndUnreads().
Referenced by LoadFromDB().
|
staticprotected |
References Mail::AddItem(), AddMItem(), CHAR_DEL_INVALID_MAIL_ITEM, CHAR_DEL_MAIL_ITEM, CharacterDatabase, ObjectGuid::Empty, Item::FSetState(), Field::Get(), WorldObject::GetName(), ITEM_REMOVED, Item::LoadFromDB(), LOG_ERROR, NewItemOrBag(), Item::SaveToDB(), PreparedStatementBase::SetData(), sObjectMgr, and ObjectGuid::ToString().
Referenced by _LoadMail(), and DeleteFromDB().
|
protected |
References Field::Get(), Object::GetGUID(), LOG_DEBUG, m_MonthlyQuestChanged, m_monthlyquests, sObjectMgr, and Position::ToString().
Referenced by LoadFromDB().
|
protected |
References PetStable::PetInfo::ActionBar, PetStable::PetInfo::CreatedBySpellId, PetStable::PetInfo::CreatureId, PetStable::PetInfo::DisplayId, PetStable::PetInfo::Experience, Field::Get(), Object::GetGUID(), PetStable::PetInfo::Happiness, PetStable::PetInfo::Health, PetStable::PetInfo::LastSaveTime, PetStable::PetInfo::Level, LOG_ERROR, m_petStable, PetStable::PetInfo::Mana, MAX_PET_STABLES, PetStable::PetInfo::Name, PET_SAVE_AS_CURRENT, PET_SAVE_FIRST_STABLE_SLOT, PET_SAVE_LAST_STABLE_SLOT, PET_SAVE_NOT_IN_SLOT, PetStable::PetInfo::PetNumber, PetStable::PetInfo::ReactState, Position::ToString(), PetStable::PetInfo::Type, and PetStable::PetInfo::WasRenamed.
Referenced by LoadFromDB().
|
protected |
References AddTimedQuest(), QuestStatusData::CreatureOrGOCount, QuestStatusData::Explored, Field::Get(), GameTime::GetGameTime(), Object::GetGUID(), WorldObject::GetName(), GetQuestRewardStatus(), IN_MILLISECONDS, QuestStatusData::ItemCount, LOG_DEBUG, LOG_ERROR, m_QuestStatus, MAX_QUEST_LOG_SIZE, MAX_QUEST_STATUS, QuestStatusData::PlayerCount, QUEST_ITEM_OBJECTIVES_COUNT, QUEST_OBJECTIVES_COUNT, QUEST_PVP_KILL_SLOT, QUEST_SPECIAL_FLAGS_TIMED, QUEST_STATE_COMPLETE, QUEST_STATE_FAIL, QUEST_STATUS_COMPLETE, QUEST_STATUS_FAILED, QUEST_STATUS_INCOMPLETE, QUEST_STATUS_NONE, SetQuestSlot(), SetQuestSlotCounter(), SetQuestSlotState(), sObjectMgr, QuestStatusData::Status, QuestStatusData::Timer, and Position::ToString().
Referenced by LoadFromDB().
|
protected |
References Field::Get(), learnQuestRewardedSpells(), m_questRewardTalentCount, m_RewardedQuests, sCharTitlesStore, SetTitle(), and sObjectMgr.
Referenced by LoadFromDB().
|
protected |
References m_IsBGRandomWinner.
Referenced by LoadFromDB().
|
protected |
References Field::Get(), Object::GetGUID(), LOG_DEBUG, m_SeasonalQuestChanged, m_seasonalquests, sObjectMgr, and Position::ToString().
Referenced by LoadFromDB().
|
protected |
References CHAR_DEL_CHARACTER_SKILL, CharacterDatabase, Field::Get(), Unit::getClass(), Object::GetGUID(), GetMaxSkillValueForLevel(), Unit::getRace(), GetSkillRaceClassInfo(), GetSkillRangeType(), learnSkillRewardedSpells(), LOG_ERROR, MAKE_PAIR32(), MAKE_SKILL_VALUE, MAX_SKILL_STEP, mSkillStatus, PLAYER_MAX_SKILLS, PLAYER_SKILL_BONUS_INDEX, PLAYER_SKILL_INDEX, PLAYER_SKILL_VALUE_INDEX, PreparedStatementBase::SetData(), Unit::SetUInt32Value(), SKILL_RANGE_LANGUAGE, SKILL_RANGE_LEVEL, SKILL_RANGE_MONO, SKILL_UNCHANGED, sSkillTiersStore, and Position::ToString().
Referenced by LoadFromDB().
void Player::_LoadSpellCooldowns | ( | PreparedQueryResult | result | ) |
References _AddSpellCooldown(), Field::Get(), GameTime::GetGameTime(), Object::GetGUID(), IN_MILLISECONDS, LOG_DEBUG, LOG_ERROR, sSpellMgr, and Position::ToString().
Referenced by LoadFromDB().
|
protected |
References addSpell().
Referenced by LoadFromDB().
|
protected |
References addTalent(), ASSERT, and GetTalentSpellPos().
Referenced by LoadFromDB().
|
protected |
References Field::Get(), Object::GetGUID(), LOG_DEBUG, m_WeeklyQuestChanged, m_weeklyquests, sObjectMgr, and Position::ToString().
Referenced by LoadFromDB().
void Player::_RemoveAllItemMods | ( | ) |
References _ApplyAmmoBonuses(), _ApplyItemBonuses(), _ApplyWeaponDependentAuraMods(), ApplyEnchantment(), ApplyItemEquipSpell(), Unit::CanUseAttackType(), EQUIPMENT_SLOT_RANGED, GetAttackBySlot(), Item::GetTemplate(), INVENTORY_SLOT_BAG_END, ItemTemplate::ItemSet, LOG_DEBUG, m_items, MAX_ATTACK, and RemoveItemsSetItem().
Referenced by _RemoveAllStatBonuses().
void Player::_RemoveAllStatBonuses | ( | ) |
References Unit::_RemoveAllAuraStatMods(), _RemoveAllItemMods(), Unit::SetCanModifyStats(), and UpdateAllStats().
Referenced by InitStatsForLevel().
void Player::_removeTalent | ( | PlayerTalentMap::iterator & | itr, |
uint8 | specMask | ||
) |
References m_talents, PLAYERSPELL_CHANGED, PLAYERSPELL_NEW, and PLAYERSPELL_REMOVED.
Referenced by _removeTalent(), addTalent(), and resetTalents().
References _removeTalent(), m_talents, and PLAYERSPELL_REMOVED.
void Player::_removeTalentAurasAndSpells | ( | uint32 | spellId | ) |
References _removeTalentAurasAndSpells(), SpellInfo::Effects, MAX_SPELL_EFFECTS, Unit::RemoveAurasDueToSpell(), Unit::RemoveOwnedAura(), Unit::RemovePetAura(), removeSpell(), SPEC_MASK_ALL, SPELL_EFFECT_LEARN_SPELL, and sSpellMgr.
Referenced by _removeTalentAurasAndSpells(), ActivateSpec(), addTalent(), and resetTalents().
|
protected |
References ACTIONBUTTON_CHANGED, ACTIONBUTTON_DELETED, ACTIONBUTTON_NEW, ACTIONBUTTON_UNCHANGED, CHAR_DEL_CHAR_ACTION_BY_BUTTON_SPEC, CHAR_INS_CHAR_ACTION, CHAR_UPD_CHAR_ACTION, CharacterDatabase, ObjectGuid::GetCounter(), Object::GetGUID(), m_actionButtons, m_activeSpec, and PreparedStatementBase::SetData().
Referenced by ActivateSpec(), SaveToDB(), and UpdateSpecCount().
|
protected |
References CHAR_DEL_CHAR_AURA, CHAR_INS_AURA, CharacterDatabase, ObjectGuid::GetCounter(), Aura::GetDuration(), Aura::GetEffect(), Object::GetGUID(), IN_MILLISECONDS, Unit::m_ownedAuras, MAX_SPELL_EFFECTS, and PreparedStatementBase::SetData().
Referenced by SaveToDB(), and SpawnCorpseBones().
|
protected |
Insert query TO DO: Filter out more redundant fields that can take their default value at player create
References _innTriggerId, _restBonus, CHAR_INS_CHARACTER, CHAR_UPD_CHARACTER, CharacterDatabase, EQUIPMENT_SLOT_END, WorldObject::FindMap(), GetArenaPoints(), Object::GetByteValue(), Unit::getClass(), ObjectGuid::GetCounter(), GetDrunkValue(), GetDungeonDifficulty(), GameTime::GetGameTime(), Object::GetGUID(), Unit::GetHealth(), GetHonorPoints(), WorldObject::GetInstanceId(), GetItemByPos(), WorldSession::GetLatency(), Unit::GetLevel(), WorldLocation::GetMapId(), GetMoney(), WorldObject::GetName(), Position::GetOrientation(), GetPlayerFlags(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::GetPower(), Unit::getRace(), GetRaidDifficulty(), GetSession(), GetTeleportDest(), WorldObject::GetTransOffsetO(), WorldObject::GetTransOffsetX(), WorldObject::GetTransOffsetY(), WorldObject::GetTransOffsetZ(), WorldObject::GetTransport(), Object::GetUInt16Value(), Object::GetUInt32Value(), Object::GetUInt64Value(), WorldObject::GetZoneId(), HasPlayerFlag(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, IsBeingTeleported(), Object::IsInWorld(), KNOWN_TITLES_SIZE, m_activeSpec, m_atLoginFlags, m_cinematic, m_deathExpireTime, m_extraBonusTalentCount, m_ExtraFlags, m_grantableLevels, m_petStable, m_Played_time, m_resetTalentsCost, m_resetTalentsTime, m_specsCount, m_taxi, MAX_POWERS, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER__FIELD_KNOWN_TITLES, PLAYER_AMMO_ID, PLAYER_BYTES, PLAYER_BYTES_2, PLAYER_BYTES_3, PLAYER_CHOSEN_TITLE, PLAYER_EXPLORED_ZONES_1, PLAYER_EXPLORED_ZONES_SIZE, PLAYER_FIELD_BYTES, PLAYER_FIELD_KILLS, PLAYER_FIELD_KNOWN_CURRENCIES, PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, PLAYER_FIELD_TODAY_CONTRIBUTION, PLAYER_FIELD_WATCHED_FACTION_INDEX, PLAYER_FIELD_YESTERDAY_CONTRIBUTION, PLAYER_FLAGS_RESTING, PLAYER_VISIBLE_ITEM_1_ENTRYID, PLAYER_XP, WorldSession::PlayerLogout(), PlayerTaxi::SaveTaxiDestinationsToString(), and PreparedStatementBase::SetData().
Referenced by SaveToDB().
|
protected |
References CHAR_DEL_QUEST_STATUS_DAILY_CHAR, CHAR_INS_CHARACTER_DAILYQUESTSTATUS, CharacterDatabase, ObjectGuid::GetCounter(), Object::GetGUID(), Object::GetUInt32Value(), m_DailyQuestChanged, m_DFQuests, m_lastDailyQuestTime, PLAYER_FIELD_DAILY_QUESTS_1, PLAYER_MAX_DAILY_QUESTS, and PreparedStatementBase::SetData().
Referenced by SaveToDB().
|
protected |
References CHAR_DEL_PLAYER_ENTRY_POINT, CHAR_INS_PLAYER_ENTRY_POINT, CharacterDatabase, Object::GetGUID(), WorldLocation::GetMapId(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), EntryPointData::joinPos, m_entryPointData, EntryPointData::mountSpell, PreparedStatementBase::SetData(), sMapStore, and EntryPointData::taxiPath.
Referenced by SaveToDB().
|
protected |
References CHAR_DEL_EQUIP_SET, CHAR_INS_EQUIP_SET, CHAR_UPD_EQUIP_SET, CharacterDatabase, EQUIPMENT_SET_CHANGED, EQUIPMENT_SET_DELETED, EQUIPMENT_SET_NEW, EQUIPMENT_SET_UNCHANGED, EQUIPMENT_SLOT_END, ObjectGuid::GetCounter(), Object::GetGUID(), EquipmentSet::Guid, EquipmentSet::IconName, EquipmentSet::IgnoreMask, EquipmentSet::Items, m_EquipmentSets, EquipmentSet::Name, PreparedStatementBase::SetData(), and EquipmentSet::state.
Referenced by SaveToDB().
|
protected |
References CHAR_DEL_CHAR_GLYPHS, CHAR_INS_CHAR_GLYPHS, CharacterDatabase, Object::GetGUID(), m_Glyphs, m_specsCount, MAX_GLYPH_SLOT_INDEX, NeedToSaveGlyphs(), PreparedStatementBase::SetData(), and SetNeedToSaveGlyphs().
Referenced by SaveToDB().
|
protected |
References _instanceResetTimes, CHAR_DEL_ACCOUNT_INSTANCE_LOCK_TIMES, CHAR_INS_ACCOUNT_INSTANCE_LOCK_TIMES, CharacterDatabase, WorldSession::GetAccountId(), GetSession(), and PreparedStatementBase::SetData().
Referenced by SaveToDB().
|
protected |
References BUYBACK_SLOT_END, BUYBACK_SLOT_START, CHAR_DEL_CHAR_INVENTORY_BY_BAG_SLOT, CHAR_DEL_CHAR_INVENTORY_BY_ITEM, CHAR_DEL_ITEM_INSTANCE, CHAR_REP_INVENTORY_ITEM, CharacterDatabase, DeleteRefundReference(), Item::FSetState(), Item::GetBagSlot(), Item::GetContainer(), ObjectGuid::GetCounter(), Object::GetGUID(), Object::GetGUID(), GetItemByGuid(), GetItemByPos(), WorldObject::GetName(), Item::GetSlot(), Item::GetState(), Item::GetTemplate(), ItemTemplate::HasFlag(), INVENTORY_SLOT_BAG_0, ITEM_CHANGED, ITEM_FLAG_HAS_LOOT, ITEM_NEW, ITEM_REMOVED, ITEM_UNCHANGED, LOG_ERROR, m_enchantDuration, m_items, m_itemUpdateQueue, m_refundableItems, RemoveEnchantmentDurationsReferences(), RemoveItemDurations(), RemoveTradeableItem(), Item::SaveToDB(), PreparedStatementBase::SetData(), sLootItemStorage, ObjectGuid::ToString(), Position::ToString(), and Item::UpdatePlayedTime().
Referenced by SaveInventoryAndGoldToDB(), and SaveToDB().
|
protected |
References CHAR_DEL_ITEM_INSTANCE, CHAR_DEL_MAIL_BY_ID, CHAR_DEL_MAIL_ITEM, CHAR_DEL_MAIL_ITEM_BY_ID, CHAR_UPD_MAIL, CharacterDatabase, Mail::checked, Mail::COD, Mail::deliver_time, Mail::expire_time, GetMailSize(), Mail::HasItems(), Mail::items, m_mail, m_mailsUpdated, MAIL_STATE_CHANGED, MAIL_STATE_DELETED, MAIL_STATE_UNCHANGED, Mail::messageID, Mail::money, Mail::removedItems, PreparedStatementBase::SetData(), and Mail::state.
Referenced by WorldSession::HandleMailTakeItem(), WorldSession::HandleMailTakeMoney(), and SaveToDB().
|
protected |
References CHAR_DEL_QUEST_STATUS_MONTHLY_CHAR, CHAR_INS_CHARACTER_MONTHLYQUESTSTATUS, CharacterDatabase, ObjectGuid::GetCounter(), Object::GetGUID(), m_MonthlyQuestChanged, m_monthlyquests, and PreparedStatementBase::SetData().
Referenced by SaveToDB().
|
protected |
References CHAR_REP_CHAR_SETTINGS, CharacterDatabase, CONFIG_PLAYER_SETTINGS_ENABLED, ObjectGuid::GetCounter(), Object::GetGUID(), m_charSettingsMap, PreparedStatementBase::SetData(), and sWorld.
Referenced by SaveToDB().
|
protected |
References CHAR_DEL_CHAR_QUESTSTATUS_BY_QUEST, CHAR_DEL_CHAR_QUESTSTATUS_REWARDED_BY_QUEST, CHAR_INS_CHAR_QUESTSTATUS_REWARDED, CHAR_REP_CHAR_QUESTSTATUS, CharacterDatabase, CharacterDatabaseCleaner::CLEANING_FLAG_QUESTSTATUS, ObjectGuid::GetCounter(), GameTime::GetGameTime(), Object::GetGUID(), IN_MILLISECONDS, m_QuestStatus, m_QuestStatusSave, m_RewardedQuestsSave, QUEST_ITEM_OBJECTIVES_COUNT, QUEST_OBJECTIVES_COUNT, QUEST_STATUS_NONE, PreparedStatementBase::SetData(), and sWorld.
Referenced by SaveToDB().
|
protected |
References CHAR_DEL_QUEST_STATUS_SEASONAL_CHAR, CHAR_INS_CHARACTER_SEASONALQUESTSTATUS, CharacterDatabase, ObjectGuid::GetCounter(), Object::GetGUID(), m_SeasonalQuestChanged, m_seasonalquests, PreparedStatementBase::SetArguments(), and PreparedStatementBase::SetData().
Referenced by SaveToDB().
void Player::_SaveSkills | ( | CharacterDatabaseTransaction | trans | ) |
References CHAR_DEL_CHAR_SKILL_BY_SKILL, CHAR_INS_CHAR_SKILLS, CHAR_UDP_CHAR_SKILLS, CharacterDatabase, ObjectGuid::GetCounter(), Object::GetGUID(), Object::GetUInt32Value(), mSkillStatus, PLAYER_SKILL_VALUE_INDEX, PreparedStatementBase::SetData(), SKILL_CHANGED, SKILL_DELETED, SKILL_MAX, SKILL_NEW, SKILL_UNCHANGED, and SKILL_VALUE.
Referenced by SaveToDB().
void Player::_SaveSpellCooldowns | ( | CharacterDatabaseTransaction | trans, |
bool | logout | ||
) |
References CHAR_DEL_CHAR_SPELL_COOLDOWN, CharacterDatabase, ObjectGuid::GetCounter(), GameTime::GetGameTime(), GameTime::GetGameTimeMS(), Object::GetGUID(), IN_MILLISECONDS, infinityCooldownDelayCheck, m_spellCooldowns, MINUTE, and PreparedStatementBase::SetData().
Referenced by SaveToDB().
|
protected |
References CHAR_DEL_CHAR_SPELL_BY_SPELL, CHAR_INS_CHAR_SPELL, CharacterDatabase, ObjectGuid::GetCounter(), Object::GetGUID(), m_spells, PLAYERSPELL_CHANGED, PLAYERSPELL_NEW, PLAYERSPELL_REMOVED, PLAYERSPELL_TEMPORARY, PLAYERSPELL_UNCHANGED, and PreparedStatementBase::SetData().
Referenced by SaveToDB().
|
protected |
References CHAR_DEL_CHAR_STATS, CHAR_INS_CHAR_STATS, CharacterDatabase, CONFIG_MIN_LEVEL_STAT_SAVE, CR_CRIT_TAKEN_SPELL, GetBaseSpellPowerBonus(), Object::GetFloatValue(), Object::GetGUID(), Unit::GetLevel(), Unit::GetMaxHealth(), Unit::GetMaxPower(), Unit::GetResistance(), Unit::GetStat(), Object::GetUInt32Value(), MAX_POWERS, MAX_SPELL_SCHOOL, MAX_STATS, PLAYER_BLOCK_PERCENTAGE, PLAYER_CRIT_PERCENTAGE, PLAYER_DODGE_PERCENTAGE, PLAYER_FIELD_COMBAT_RATING_1, PLAYER_PARRY_PERCENTAGE, PLAYER_RANGED_CRIT_PERCENTAGE, PLAYER_SPELL_CRIT_PERCENTAGE1, PreparedStatementBase::SetData(), sWorld, UNIT_FIELD_ATTACK_POWER, and UNIT_FIELD_RANGED_ATTACK_POWER.
Referenced by SaveToDB().
|
protected |
References CHAR_DEL_CHAR_TALENT_BY_SPELL, CHAR_INS_CHAR_TALENT, CharacterDatabase, ObjectGuid::GetCounter(), Object::GetGUID(), m_talents, PLAYERSPELL_CHANGED, PLAYERSPELL_NEW, PLAYERSPELL_REMOVED, PLAYERSPELL_TEMPORARY, PLAYERSPELL_UNCHANGED, and PreparedStatementBase::SetData().
Referenced by SaveToDB().
|
protected |
References CHAR_DEL_QUEST_STATUS_WEEKLY_CHAR, CHAR_INS_CHARACTER_WEEKLYQUESTSTATUS, CharacterDatabase, ObjectGuid::GetCounter(), Object::GetGUID(), m_WeeklyQuestChanged, m_weeklyquests, and PreparedStatementBase::SetData().
Referenced by SaveToDB().
|
private |
References AddEnchantmentDurations(), AddItemDurations(), AddKnownCurrency(), Object::AddToWorld(), BIND_QUEST_ITEM, BIND_WHEN_EQUIPPED, BIND_WHEN_PICKED_UP, ItemTemplate::Bonding, Item::ClearSoulboundTradeable(), Item::CloneItem(), CURRENCYTOKEN_SLOT_END, CURRENCYTOKEN_SLOT_START, Object::DestroyForPlayer(), GetBagByPos(), Item::GetCount(), Object::GetEntry(), Object::GetGUID(), Object::GetGUID(), GetItemByPos(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, IsBagPos(), Object::IsInWorld(), ITEM_CHANGED, ITEM_FIELD_CONTAINED, ITEM_FIELD_OWNER, ITEM_REMOVED, LOG_DEBUG, m_items, PLAYER_FIELD_INV_SLOT_HEAD, RemoveEnchantmentDurations(), Object::RemoveFromWorld(), RemoveItemDurations(), RemoveTradeableItem(), Object::SendUpdateToPlayer(), Item::SetBinding(), Item::SetContainer(), Item::SetCount(), Object::SetGuidValue(), Item::SetNotRefundable(), Item::SetOwnerGUID(), Item::SetSlot(), Item::SetState(), Bag::StoreItem(), and ObjectGuid::ToString().
Referenced by StoreItem().
|
inline |
References AddRefundReference(), AutoUnequipOffhandIfNeed(), ItemTemplate::BuyCount, CanEquipNewItem(), CanStoreNewItem(), DestroyItemCount(), EQUIP_ERR_OK, EquipNewItem(), VendorItem::ExtendedCost, Object::GetGUID(), Object::GetGUID(), ItemTemplate::GetMaxStackSize(), GetSession(), ItemTemplate::HasFlag(), ITEM_FIELD_FLAG_REFUNDABLE, ITEM_FIELD_FLAGS, ITEM_FLAG_ITEM_PURCHASE_RECORD, MAX_ITEM_EXTENDED_COST_REQUIREMENTS, VendorItem::maxcount, ModifyArenaPoints(), ModifyHonorPoints(), ModifyMoney(), ItemExtendedCostEntry::reqarenapoints, ItemExtendedCostEntry::reqhonorpoints, ItemExtendedCostEntry::reqitem, ItemExtendedCostEntry::reqitemcount, Item::SaveRefundDataToDB(), SendEquipError(), SendNewItem(), WorldSession::SendPacket(), Object::SetFlag(), Item::SetPaidExtendedCost(), Item::SetPaidMoney(), Item::SetRefundRecipient(), sItemExtendedCostStore, SMSG_BUY_ITEM, sScriptMgr, StoreNewItem(), and Creature::UpdateVendorItemCurrentCount().
Referenced by BuyItemFromVendorSlot().
void Player::AbandonQuest | ( | uint32 | quest_id | ) |
References BIND_QUEST_ITEM, DestroyItemCount(), QUEST_ITEM_OBJECTIVES_COUNT, QUEST_SOURCE_ITEM_IDS_COUNT, and sObjectMgr.
Referenced by WorldSession::HandleQuestLogRemoveQuest().
void Player::ActivateSpec | ( | uint8 | spec | ) |
References _addTalentAurasAndSpells(), _removeTalentAurasAndSpells(), _SaveActions(), AsyncCallbackProcessor< T >::AddCallback(), AutoUnequipOffhandIfNeed(), Unit::CastSpell(), CHAR_SEL_CHARACTER_ACTIONS_SPEC, CharacterDatabase, CLASS_CONTEXT_ABILITY, CLASS_PALADIN, Unit::ClearAllReactives(), GetActiveSpec(), GetActiveSpecMask(), Aura::GetCastItemGUID(), Object::GetGUID(), Aura::GetId(), GetPet(), Unit::getPowerType(), WorldSession::GetQueryProcessor(), GetSession(), Unit::GetSingleCastAuras(), GetSpecsCount(), GetTalentSpellPos(), Aura::GetTriggeredByAuraSpellInfo(), HasActiveSpell(), HasSpell(), HasTalent(), InitTalentForLevel(), Unit::InterruptNonMeleeSpells(), IsClass(), Unit::IsNonMeleeSpellCast(), m_activeSpec, Unit::m_canDualWield, m_canTitanGrip, m_Glyphs, Unit::m_ownedAuras, m_spells, m_talents, m_usedTalentCount, MAX_GLYPH_SLOT_INDEX, PET_SAVE_NOT_IN_SLOT, PLAYERSPELL_REMOVED, POWER_MANA, TalentSpellPos::rank, Aura::Remove(), Unit::RemoveAllControlled(), Unit::RemoveAurasDueToSpell(), Unit::RemoveOwnedAura(), RemovePet(), SendActionButtons(), SendLearnPacket(), SetActiveSpec(), Unit::SetCanDualWield(), SetCanTitanGrip(), PreparedStatementBase::SetData(), SetGlyph(), Unit::SetPower(), sGlyphPropertiesStore, sScriptMgr, TRIGGERED_FULL_MASK, TRIGGERED_IGNORE_CASTER_AURASTATE, TRIGGERED_IGNORE_SHAPESHIFT, and Unit::UnsummonAllTotems().
Referenced by UpdateSpecCount().
bool Player::ActivateTaxiPathTo | ( | std::vector< uint32 > const & | nodes, |
Creature * | npc = nullptr , |
||
uint32 | spellid = 1 |
||
) |
References ACHIEVEMENT_CRITERIA_TYPE_FLIGHT_PATHS_TAKEN, ACHIEVEMENT_CRITERIA_TYPE_GOLD_SPENT_FOR_TRAVELLING, PlayerTaxi::AddTaxiDestination(), CLASS_CONTEXT_TAXI, CLASS_DEATH_KNIGHT, PlayerTaxi::ClearTaxiDestinations(), Unit::CombatStop(), CONFIG_INSTANT_TAXI, CURRENT_AUTOREPEAT_SPELL, CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, ERR_TAXINOSUCHPATH, ERR_TAXINOTENOUGHMONEY, ERR_TAXIOK, ERR_TAXIPLAYERALREADYMOUNTED, ERR_TAXIPLAYERBUSY, ERR_TAXIPLAYERSHAPESHIFTED, ERR_TAXIUNSPECIFIEDSERVERERROR, Unit::ExitVehicle(), Unit::GetCurrentSpell(), GetMoney(), Position::GetOrientation(), GetReputationPriceDiscount(), GetSession(), GetTeamId(), Unit::HasUnitFlag(), Unit::HasUnitState(), Unit::InterruptSpell(), IsClass(), Unit::IsInCombat(), Unit::IsInDisallowedMountForm(), Unit::IsMounted(), Unit::IsNonMeleeSpellCast(), m_flightSpellActivated, m_isInstantFlightOn, m_taxi, TaxiNodesEntry::map_id, ModifyMoney(), Unit::RemoveAurasByType(), WorldSession::SendActivateTaxiReply(), WorldSession::SendDoFlight(), PlayerTaxi::SetFlightMasterFactionTemplateId(), sObjectMgr, SPELL_AURA_MOD_SHAPESHIFT, SPELL_AURA_MOUNTED, sTaxiNodesStore, StopCastingBindSight(), StopCastingCharm(), sWorld, TeleportTo(), TradeCancel(), UNIT_FLAG_DISABLE_MOVE, UNIT_STATE_ROOT, UNIT_STATE_STUNNED, UpdateAchievementCriteria(), TaxiNodesEntry::x, TaxiNodesEntry::y, and TaxiNodesEntry::z.
Referenced by ActivateTaxiPathTo(), WorldSession::HandleActivateTaxiExpressOpcode(), WorldSession::HandleActivateTaxiOpcode(), Aura::HandleAuraSpecificMods(), OPvPCapturePointNA::HandleCustomSpell(), npc_taxi::OnGossipSelect(), npc_bunthen_plainswind::OnGossipSelect(), npc_silva_filnaveth::OnGossipSelect(), and npc_karynaku::OnQuestAccept().
References ActivateTaxiPathTo(), TaxiPathEntry::from, sTaxiPathStore, and TaxiPathEntry::to.
ActionButton * Player::addActionButton | ( | uint8 | button, |
uint32 | action, | ||
uint8 | type | ||
) |
References Object::GetGUID(), IsActionButtonDataValid(), LOG_DEBUG, m_actionButtons, ActionButton::SetActionAndType(), and Position::ToString().
Referenced by _LoadActions(), Create(), and WorldSession::HandleSetActionButtonOpcode().
|
inline |
References m_ArmorProficiency.
Referenced by Spell::EffectProficiency().
uint32 Player::AddBattlegroundQueueId | ( | BattlegroundQueueTypeId | val | ) |
References _BgBattlegroundQueueID, BATTLEGROUND_QUEUE_NONE, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by WorldSession::HandleBattlemasterJoinArena(), and WorldSession::HandleBattlemasterJoinOpcode().
|
inline |
References m_extraBonusTalentCount.
void Player::AddEnchantmentDuration | ( | Item * | item, |
EnchantmentSlot | slot, | ||
uint32 | duration | ||
) |
References Object::GetGUID(), Object::GetGUID(), GetSession(), m_enchantDuration, MAX_ENCHANTMENT_SLOT, and WorldSession::SendItemEnchantTimeUpdate().
Referenced by AddEnchantmentDurations(), and ApplyEnchantment().
void Player::AddEnchantmentDurations | ( | Item * | item | ) |
References AddEnchantmentDuration(), Item::GetEnchantmentDuration(), Item::GetEnchantmentId(), and MAX_ENCHANTMENT_SLOT.
Referenced by _StoreItem(), EquipItem(), and QuickEquipItem().
|
inline |
References _instanceResetTimes, and HOUR.
Referenced by InstanceMap::AddPlayerToMap().
References CanStoreNewItem(), EQUIP_ERR_OK, GetSession(), NULL_BAG, NULL_SLOT, ChatHandler::PSendSysMessage(), SendNewItem(), and StoreNewItem().
Referenced by spell_brewfest_fill_keg::HandleAfterHit(), spell_brewfest_unfill_keg::HandleAfterHit(), spell_q9452_cast_net::HandleDummy(), spell_catch_the_wild_wolpertinger::HandleEffectApply(), RewardHonor(), and npc_tharnarian::npc_tharnarianAI::sGossipSelect().
void Player::AddItemDurations | ( | Item * | item | ) |
References Object::GetUInt32Value(), ITEM_FIELD_DURATION, m_itemDuration, and Item::SendTimeUpdate().
Referenced by _StoreItem(), EquipItem(), and QuickEquipItem().
References BUYBACK_SLOT_END, BUYBACK_SLOT_START, Object::GetEntry(), GameTime::GetGameTime(), Object::GetGUID(), Object::GetUInt32Value(), LOG_DEBUG, m_currentBuybackSlot, m_items, m_logintime, PLAYER_FIELD_BUYBACK_PRICE_1, PLAYER_FIELD_BUYBACK_TIMESTAMP_1, PLAYER_FIELD_VENDORBUYBACK_SLOT_1, RemoveItemFromBuyBackSlot(), Object::SetGuidValue(), and Unit::SetUInt32Value().
Referenced by WorldSession::HandleSellItemOpcode().
|
inline |
References m_additionalSaveMask, and m_additionalSaveTimer.
Referenced by AreaExploredOrEventHappens(), CompleteQuest(), EquipNewItem(), IncompleteQuest(), ItemAddedQuestCheck(), KillCreditGO(), KilledMonsterCredit(), RemoveActiveQuest(), StoreNewItem(), and TalkedToCreature().
|
private |
References PLAYER_FIELD_KNOWN_CURRENCIES, sCurrencyTypesStore, and Object::SetFlag64().
Referenced by _StoreItem(), SetArenaPoints(), and SetHonorPoints().
|
inline |
|
inline |
References ASSERT, ObjectGuid::GetCounter(), Object::GetGUID(), and mMitems.
Referenced by _LoadMailedItem(), and MailDraft::SendMailTo().
void Player::AddNewMailDeliverTime | ( | time_t | deliver_time | ) |
References GameTime::GetGameTime(), m_nextMailDelivereTime, SendNewMail(), and unReadMails.
Referenced by MailDraft::SendMailTo().
References ACHIEVEMENT_TIMED_TYPE_QUEST, AddTimedQuest(), AdjustQuestReqItemCount(), CHAR_INS_QUEST_TRACK, CharacterDatabase, CONFIG_QUEST_ENABLE_QUEST_TRACKER, QuestStatusData::CreatureOrGOCount, QuestStatusData::Explored, FindQuestSlot(), WorldObject::GetAreaId(), GitRevision::GetDate(), GameTime::GetGameTime(), Object::GetGUID(), GitRevision::GetHash(), Quest::GetQuestId(), getQuestStatusMap(), Quest::GetRepObjectiveFaction(), Quest::GetRepObjectiveFaction2(), GetReputationMgr(), Quest::GetTimeAllowed(), WorldObject::GetZoneId(), GiveQuestSourceItem(), Quest::HasFlag(), Quest::HasSpecialFlag(), IN_MILLISECONDS, PvPInfo::IsHostile, Object::IsPlayer(), QuestStatusData::ItemCount, m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, QuestStatusData::PlayerCount, pvpInfo, QUEST_FLAGS_FLAGS_PVP, QUEST_ITEM_OBJECTIVES_COUNT, QUEST_OBJECTIVES_COUNT, QUEST_SPECIAL_FLAGS_CAST, QUEST_SPECIAL_FLAGS_DELIVER, QUEST_SPECIAL_FLAGS_KILL, QUEST_SPECIAL_FLAGS_PLAYER_KILL, QUEST_SPECIAL_FLAGS_SPEAKTO, QUEST_SPECIAL_FLAGS_TIMED, QUEST_STATUS_INCOMPLETE, SendQuestUpdate(), SetQuestSlot(), ReputationMgr::SetVisible(), sFactionStore, StartTimedAchievement(), QuestStatusData::Status, sWorld, QuestStatusData::Timer, Object::ToPlayer(), UpdateAreaDependentAuras(), UpdatePvPState(), and UpdateZoneDependentAuras().
Referenced by AddQuestAndCheckCompletion().
References AddQuest(), Creature::AI(), GameObject::AI(), CanCompleteQuest(), CompleteQuest(), DestroyItem(), Item::GetBagSlot(), Object::GetEntry(), Quest::GetQuestId(), Item::GetSlot(), Item::GetTemplate(), Object::GetTypeId(), ItemTemplate::MaxCount, QUEST_ITEM_OBJECTIVES_COUNT, GameObjectAI::QuestAccept(), Quest::RequiredItemId, UnitAI::sQuestAccept(), sScriptMgr, Object::ToCreature(), Object::ToGameObject(), TYPEID_CONTAINER, TYPEID_GAMEOBJECT, TYPEID_ITEM, and TYPEID_UNIT.
Referenced by Spell::EffectQuestStart(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestConfirmAccept(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverQueryQuestOpcode(), and SendPreparedQuest().
|
inline |
References m_receivedSpectatorResetFor.
Referenced by ArenaSpectator::HandleResetCommand().
void Player::AddRefundReference | ( | ObjectGuid | itemGUID | ) |
References m_refundableItems.
Referenced by _LoadItem(), and _StoreOrEquipNewItem().
|
inline |
References ConvertRune(), and SetRuneConvertAura().
Referenced by AuraEffect::HandleAuraConvertRune().
void Player::AddRunePower | ( | uint8 | index | ) |
References GetSession(), WorldSession::SendPacket(), and SMSG_ADD_RUNE_POWER.
bool Player::addSpell | ( | uint32 | spellId, |
uint8 | addSpecMask, | ||
bool | updateActive, | ||
bool | temporary = false , |
||
bool | learnFromSkill = false |
||
) |
References _addSpell(), SpellInfo::GetNextRankSpell(), SpellInfo::GetRank(), GetSession(), SpellInfo::Id, Object::IsInWorld(), SpellInfo::IsRanked(), SpellInfo::IsStackableWithRanks(), m_spells, PLAYERSPELL_REMOVED, WorldSession::SendPacket(), SMSG_SUPERCEDED_SPELL, and sSpellMgr.
Referenced by _LoadSpells(), LearnCustomSpells(), learnSkillRewardedSpells(), and learnSpell().
void Player::AddSpellAndCategoryCooldowns | ( | SpellInfo const * | spellInfo, |
uint32 | itemId, | ||
Spell * | spell = nullptr , |
||
bool | infinityCooldown = false |
||
) |
References _AddSpellCooldown(), ApplySpellMod(), Unit::BuildCooldownPacket(), SpellInfo::CategoryRecoveryTime, Unit::GetAttackTime(), SpellInfo::GetCategory(), Unit::GetTotalAuraModifier(), SpellInfo::HasAttribute(), HasSpell(), SpellInfo::Id, IN_MILLISECONDS, infinityCooldownDelay, SpellInfo::IsAutoRepeatRangedSpell(), SpellInfo::IsCooldownStartedOnEvent(), MAX_ITEM_SPELLS, RANGED_ATTACK, SpellInfo::RecoveryTime, SendDirectMessage(), sObjectMgr, SPELL_ATTR0_CU_FORCE_SEND_CATEGORY_COOLDOWNS, SPELL_ATTR6_NO_CATEGORY_COOLDOWN_MODS, SPELL_AURA_MOD_COOLDOWN, SPELL_COOLDOWN_FLAG_NONE, SpellInfo::SpellFamilyName, SPELLMOD_COOLDOWN, sSpellMgr, and sSpellsByCategoryStore.
Referenced by Aura::_ApplyForTarget(), Unit::AddGameObject(), spell_pvp_trinket_wotf_shared_cd::HandleScript(), SendCooldownEvent(), Spell::SendSpellCooldown(), and Unit::SetMinion().
|
overridevirtual |
Reimplemented from Unit.
References _AddSpellCooldown().
Referenced by spell_rog_cheat_death::Absorb(), ApplyEquipCooldown(), Aura::HandleAuraSpecificMods(), debug_commandscript::HandleDebugCooldownCommand(), Unit::HandleDummyAuraProc(), Unit::HandleProcTriggerSpell(), spell_hun_chimera_shot::HandleScriptEffect(), npc_sayge::OnGossipSelect(), npc_pet_gen_argent_pony_bridle::OnGossipSelect(), ProhibitSpellSchool(), and npc_brewfest_keg_reciver::sGossipSelect().
void Player::AddSpellMod | ( | SpellModifier * | mod, |
bool | apply | ||
) |
References CLASS_CONTEXT_ABILITY, CLASS_MAGE, IsClass(), LOG_DEBUG, m_spellMods, SpellModifier::mask, SpellModifier::op, SpellModifier::ownerAura, SendDirectMessage(), SMSG_SET_FLAT_SPELL_MODIFIER, SMSG_SET_PCT_SPELL_MODIFIER, SpellModifier::spellId, SPELLMOD_FLAT, SpellModifier::type, and SpellModifier::value.
Referenced by AuraEffect::ApplySpellMod().
References _addTalentAurasAndSpells(), _removeTalent(), _removeTalentAurasAndSpells(), TalentEntry::addToSpellBook, SpellMgr::CheckSpellValid(), GetActiveSpecMask(), GetTalentSpellPos(), SpellInfo::HasAttribute(), SpellInfo::HasEffect(), PlayerTalent::inSpellBook, isBeingLoaded(), m_talents, m_usedTalentCount, PLAYERSPELL_CHANGED, PLAYERSPELL_NEW, PLAYERSPELL_UNCHANGED, TalentSpellPos::rank, TalentEntry::RankID, SendLearnPacket(), PlayerTalent::specMask, SPELL_ATTR0_PASSIVE, SPELL_EFFECT_LEARN_SPELL, sSpellMgr, sTalentStore, PlayerTalent::State, TalentSpellPos::talent_id, PlayerTalent::talentID, and TalentEntry::TalentID.
Referenced by _LoadTalents(), and LearnTalent().
|
inline |
References m_timedquests.
Referenced by _LoadQuestStatus(), and AddQuest().
|
overridevirtual |
Reimplemented from Object.
References Object::AddToWorld(), Unit::AddToWorld(), m_items, PLAYER_SLOT_END, and PLAYER_SLOT_START.
Referenced by Map::AddPlayerToMap().
void Player::AddTradeableItem | ( | Item * | item | ) |
References m_itemSoulboundTradeable, and m_soulboundTradableLock.
Referenced by _LoadItem(), MoveItemToInventory(), and StoreNewItem().
|
inline |
References m_WeaponProficiency.
Referenced by Spell::EffectProficiency().
|
inline |
References WhisperList.
Referenced by WorldSession::HandleMessagechatOpcode().
|
private |
References GetItemCount(), Quest::GetQuestId(), Quest::HasSpecialFlag(), QuestStatusData::ItemCount, m_QuestStatusSave, QUEST_ITEM_OBJECTIVES_COUNT, QUEST_SPECIAL_FLAGS_DELIVER, Quest::RequiredItemCount, and Quest::RequiredItemId.
Referenced by AddQuest().
void Player::ApplyEnchantment | ( | Item * | item, |
bool | apply | ||
) |
References ApplyEnchantment(), and MAX_ENCHANTMENT_SLOT.
void Player::ApplyEnchantment | ( | Item * | item, |
EnchantmentSlot | slot, | ||
bool | apply, | ||
bool | apply_dur = true , |
||
bool | ignore_condition = false |
||
) |
References AddEnchantmentDuration(), ItemRandomSuffixEntry::AllocationPct, SpellItemEnchantmentEntry::amount, ApplyHealthRegenBonus(), ApplyManaRegenBonus(), ApplyRatingMod(), ApplySpellPenetrationBonus(), ApplySpellPowerBonus(), Unit::ApplyStatBuffMod(), BASE_VALUE, Unit::CastCustomSpell(), Unit::CastSpell(), CLASS_CONTEXT_ABILITY, CLASS_SHAMAN, _Socket::Color, CR_ARMOR_PENETRATION, CR_BLOCK, CR_CRIT_MELEE, CR_CRIT_RANGED, CR_CRIT_SPELL, CR_CRIT_TAKEN_MELEE, CR_CRIT_TAKEN_RANGED, CR_CRIT_TAKEN_SPELL, CR_DEFENSE_SKILL, CR_DODGE, CR_EXPERTISE, CR_HASTE_MELEE, CR_HASTE_RANGED, CR_HASTE_SPELL, CR_HIT_MELEE, CR_HIT_RANGED, CR_HIT_SPELL, CR_PARRY, ItemTemplate::Delay, ItemRandomSuffixEntry::Enchantment, SpellItemEnchantmentEntry::EnchantmentCondition, EnchantmentFitsRequirements(), EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, FLAT_MOD, Item::GetEnchantmentDuration(), Item::GetEnchantmentId(), Object::GetGUID(), Item::GetItemRandomPropertyId(), Item::GetItemSuffixFactor(), Unit::GetLevel(), GetSkillValue(), Item::GetSlot(), Item::GetTemplate(), HandleBaseModValue(), Unit::HandleStatModifier(), Item::IsBroken(), IsClass(), Item::IsEquipped(), ITEM_ENCHANTMENT_TYPE_COMBAT_SPELL, ITEM_ENCHANTMENT_TYPE_DAMAGE, ITEM_ENCHANTMENT_TYPE_EQUIP_SPELL, ITEM_ENCHANTMENT_TYPE_NONE, ITEM_ENCHANTMENT_TYPE_PRISMATIC_SOCKET, ITEM_ENCHANTMENT_TYPE_RESISTANCE, ITEM_ENCHANTMENT_TYPE_STAT, ITEM_ENCHANTMENT_TYPE_TOTEM, ITEM_ENCHANTMENT_TYPE_USE_SPELL, ITEM_MOD_AGILITY, ITEM_MOD_ARMOR_PENETRATION_RATING, ITEM_MOD_ATTACK_POWER, ITEM_MOD_BLOCK_RATING, ITEM_MOD_BLOCK_VALUE, ITEM_MOD_CRIT_MELEE_RATING, ITEM_MOD_CRIT_RANGED_RATING, ITEM_MOD_CRIT_RATING, ITEM_MOD_CRIT_SPELL_RATING, ITEM_MOD_DEFENSE_SKILL_RATING, ITEM_MOD_DODGE_RATING, ITEM_MOD_EXPERTISE_RATING, ITEM_MOD_HASTE_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_INTELLECT, ITEM_MOD_MANA, ITEM_MOD_MANA_REGENERATION, ITEM_MOD_PARRY_RATING, ITEM_MOD_RANGED_ATTACK_POWER, ITEM_MOD_RESILIENCE_RATING, ITEM_MOD_SPELL_DAMAGE_DONE, ITEM_MOD_SPELL_HEALING_DONE, ITEM_MOD_SPELL_PENETRATION, ITEM_MOD_SPELL_POWER, ITEM_MOD_SPIRIT, ITEM_MOD_STAMINA, ITEM_MOD_STRENGTH, LOG_DEBUG, LOG_ERROR, MAX_ENCHANTMENT_SLOT, MAX_ITEM_ENCHANTMENT_EFFECTS, MAX_SPELL_ITEM_ENCHANTMENT_EFFECTS, PERM_ENCHANTMENT_SLOT, PLAYER_VISIBLE_ITEM_1_ENCHANTMENT, PRISMATIC_ENCHANTMENT_SLOT, Unit::RemoveAurasDueToItemSpell(), SpellItemEnchantmentEntry::requiredLevel, SpellItemEnchantmentEntry::requiredSkill, SpellItemEnchantmentEntry::requiredSkillValue, Object::SetUInt16Value(), SHIELD_BLOCK_VALUE, sItemRandomSuffixStore, SOCK_ENCHANTMENT_SLOT, SOCK_ENCHANTMENT_SLOT_2, SOCK_ENCHANTMENT_SLOT_3, ItemTemplate::Socket, SpellItemEnchantmentEntry::spellid, sScriptMgr, sSpellItemEnchantmentStore, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, TEMP_ENCHANTMENT_SLOT, TOTAL_VALUE, SpellItemEnchantmentEntry::type, UNIT_MOD_ATTACK_POWER, UNIT_MOD_ATTACK_POWER_RANGED, UNIT_MOD_DAMAGE_MAINHAND, UNIT_MOD_DAMAGE_OFFHAND, UNIT_MOD_DAMAGE_RANGED, UNIT_MOD_HEALTH, UNIT_MOD_MANA, UNIT_MOD_RESISTANCE_START, UNIT_MOD_STAT_AGILITY, UNIT_MOD_STAT_INTELLECT, UNIT_MOD_STAT_SPIRIT, UNIT_MOD_STAT_STAMINA, and UNIT_MOD_STAT_STRENGTH.
Referenced by _ApplyAllItemMods(), _ApplyItemMods(), _RemoveAllItemMods(), ApplyEnchantment(), CastItemCombatSpell(), CorrectMetaGemEnchants(), Spell::EffectEnchantHeldItem(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), Spell::EffectEnchantItemTmp(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleCancelTempEnchantmentOpcode(), WorldSession::HandleSocketOpcode(), RemoveArenaEnchantments(), SetVirtualItemSlot(), SwapItem(), ToggleMetaGemsActive(), UpdateEnchantTime(), and UpdateSkillEnchantments().
void Player::ApplyEquipCooldown | ( | Item * | pItem | ) |
References AddSpellCooldown(), SpellInfo::CategoryRecoveryTime, Object::GetEntry(), GameTime::GetGameTimeMS(), Object::GetGUID(), GetSession(), Item::GetTemplate(), SpellInfo::HasAttribute(), ItemTemplate::HasFlag(), IN_MILLISECONDS, ITEM_FLAG_NO_EQUIP_COOLDOWN, ITEM_SPELLTRIGGER_ON_EQUIP, ITEM_SPELLTRIGGER_ON_USE, m_spellCooldowns, MAX_ITEM_PROTO_SPELLS, SpellInfo::RecoveryTime, WorldSession::SendPacket(), SMSG_ITEM_COOLDOWN, SPELL_ATTR0_NOT_IN_COMBAT_ONLY_PEACEFUL, _Spell::SpellCategoryCooldown, _Spell::SpellCooldown, _Spell::SpellId, ItemTemplate::Spells, _Spell::SpellTrigger, and sSpellMgr.
Referenced by EquipItem().
void Player::ApplyEquipSpell | ( | SpellInfo const * | spellInfo, |
Item * | item, | ||
bool | apply, | ||
bool | form_change = false |
||
) |
References Unit::CastCustomSpell(), SpellInfo::CheckShapeshift(), EFFECT_0, SpellInfo::Effects, Unit::GetAppliedAuras(), Object::GetGUID(), Unit::GetShapeshiftForm(), SpellInfo::Id, LOG_DEBUG, MAX_SPELL_EFFECTS, Unit::RemoveAllMinionsByEntry(), Unit::RemoveAurasDueToItemSpell(), Unit::RemoveAurasDueToSpell(), SPELL_CAST_OK, SPELL_EFFECT_SUMMON, SPELLVALUE_AURA_DURATION, and sScriptMgr.
Referenced by AddItemsSetItem(), ApplyItemEquipSpell(), RemoveItemsSetItem(), and UpdateEquipSpellsAtFormChange().
void Player::ApplyFeralAPBonus | ( | int32 | amount, |
bool | apply | ||
) |
References _ModifyUInt32(), m_baseFeralAP, and UpdateAttackPowerAndDamage().
Referenced by _ApplyItemBonuses().
void Player::ApplyHealthRegenBonus | ( | int32 | amount, |
bool | apply | ||
) |
References _ModifyUInt32(), and m_baseHealthRegen.
Referenced by _ApplyItemBonuses(), and ApplyEnchantment().
void Player::ApplyItemEquipSpell | ( | Item * | item, |
bool | apply, | ||
bool | form_change = false |
||
) |
References ApplyEquipSpell(), Item::GetTemplate(), ITEM_SPELLTRIGGER_ON_EQUIP, MAX_ITEM_PROTO_SPELLS, _Spell::SpellId, ItemTemplate::Spells, _Spell::SpellTrigger, and sSpellMgr.
Referenced by _ApplyAllItemMods(), _ApplyItemMods(), _RemoveAllItemMods(), and UpdateEquipSpellsAtFormChange().
void Player::ApplyManaRegenBonus | ( | int32 | amount, |
bool | apply | ||
) |
References _ModifyUInt32(), m_baseManaRegen, and UpdateManaRegen().
Referenced by _ApplyItemBonuses(), and ApplyEnchantment().
void Player::ApplyRatingMod | ( | CombatRating | cr, |
int32 | value, | ||
bool | apply | ||
) |
References Unit::ApplyAttackTimePercentMod(), Unit::ApplyCastTimePercentMod(), BASE_ATTACK, CR_HASTE_MELEE, CR_HASTE_RANGED, CR_HASTE_SPELL, GetRatingMultiplier(), m_baseRatingValue, OFF_ATTACK, RANGED_ATTACK, and UpdateRating().
Referenced by _ApplyItemBonuses(), ApplyEnchantment(), AuraEffect::HandleModRating(), AuraEffect::HandleModRatingFromStat(), RecalculateRating(), and UpdateStats().
template AC_GAME_API void Player::ApplySpellMod | ( | uint32 | spellId, |
SpellModOp | op, | ||
T & | basevalue, | ||
Spell * | spell = nullptr , |
||
bool | temporaryPet = false |
||
) |
References ASSERT, CalculatePct(), DropModCharge(), Aura::GetSpellInfo(), HasSpellMod(), IsAffectedBySpellmod(), m_spellMods, m_spellModTakingSpell, SpellModifier::ownerAura, SPELLMOD_CASTING_TIME, SPELLMOD_CRITICAL_CHANCE, SPELLMOD_DAMAGE, SPELLMOD_DOT, SPELLMOD_DURATION, SPELLMOD_FLAT, SPELLMOD_GLOBAL_COOLDOWN, SPELLMOD_PCT, SPELLMOD_THREAT, SpellInfo::SpellPriority, and sSpellMgr.
Referenced by AddSpellAndCategoryCooldowns(), Aura::CalcMaxDuration(), AuraEffect::CalculatePeriodic(), CastItemCombatSpell(), Spell::Delayed(), Spell::DelayedChannel(), and Spell::TriggerGlobalCooldown().
void Player::ApplySpellPenetrationBonus | ( | int32 | amount, |
bool | apply | ||
) |
References Object::ApplyModInt32Value(), m_spellPenetrationItemMod, and PLAYER_FIELD_MOD_TARGET_RESISTANCE.
Referenced by _ApplyItemBonuses(), and ApplyEnchantment().
void Player::ApplySpellPowerBonus | ( | int32 | amount, |
bool | apply | ||
) |
References _ModifyUInt32(), Object::ApplyModInt32Value(), Object::ApplyModUInt32Value(), m_baseSpellPower, MAX_SPELL_SCHOOL, PLAYER_FIELD_MOD_DAMAGE_DONE_POS, PLAYER_FIELD_MOD_HEALING_DONE_POS, and SPELL_SCHOOL_HOLY.
Referenced by _ApplyItemBonuses(), and ApplyEnchantment().
void Player::AreaExploredOrEventHappens | ( | uint32 | questId | ) |
References ADDITIONAL_SAVING_QUEST_STATUS, AdditionalSavingAddMask(), CanCompleteQuest(), CompleteQuest(), QuestStatusData::Explored, FindQuestSlot(), m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, QUEST_STATUS_FAILED, SendQuestComplete(), and QuestStatusData::Status.
Referenced by npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DamageTaken(), Spell::EffectQuestComplete(), SmartAI::EndPath(), dragonmaw_race_npc::FinishRace(), go_ahune_ice_stone::GossipSelect(), GroupEventHappens(), WorldSession::HandleAreaTriggerOpcode(), boss_alar::JustDied(), go_table_theka::OnGossipHello(), npc_parqual_fintallas::OnGossipSelect(), npc_great_bear_spirit::OnGossipSelect(), npc_thrall_warchief::OnGossipSelect(), npc_braug_dimspirit::OnGossipSelect(), npc_stone_watcher_of_norgannon::OnGossipSelect(), npc_vekjik::OnGossipSelect(), AreaTrigger_at_celestial_planetarium_enterance::OnTrigger(), at_bring_your_orphan_to::OnTrigger(), npc_doctor::npc_doctorAI::PatientSaved(), npc_shenthul::npc_shenthulAI::ReceiveEmote(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), npc_conversing_with_the_depths_trigger::npc_conversing_with_the_depths_triggerAI::UpdateAI(), and npc_commander_dawnforge::npc_commander_dawnforgeAI::UpdateAI().
|
inline |
References AutoStoreLoot(), NULL_BAG, and NULL_SLOT.
Referenced by AutoStoreLoot().
void Player::AutoStoreLoot | ( | uint8 | bag, |
uint8 | slot, | ||
uint32 | loot_id, | ||
LootStore const & | store, | ||
bool | broadcast = false |
||
) |
References CanStoreNewItem(), LootItem::count, EQUIP_ERR_OK, Loot::FillLoot(), Loot::GetMaxSlotInLootFor(), LootItem::itemid, Loot::LootItemInSlot(), NULL_BAG, NULL_SLOT, LootItem::randomPropertyId, SendEquipError(), SendNewItem(), and StoreNewItem().
Referenced by Group::CountTheRoll(), Spell::EffectCreateItem2(), Spell::EffectCreateRandomItem(), and AuraEffect::HandlePeriodicTriggerSpellAuraTick().
void Player::AutoUnequipOffhandIfNeed | ( | bool | force = false | ) |
References MailDraft::AddItem(), Unit::CanDualWield(), CanStoreItem(), CanTitanGrip(), CharacterDatabase, Item::DeleteFromInventoryDB(), EQUIP_ERR_OK, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, WorldSession::GetAcoreString(), GetItemByPos(), GetSession(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, ItemTemplate::InventoryType, INVTYPE_2HWEAPON, INVTYPE_WEAPON, INVTYPE_WEAPONOFFHAND, IsTwoHandUsed(), ITEM_SUBCLASS_WEAPON_FISHING_POLE, ITEM_SUBCLASS_WEAPON_POLEARM, ITEM_SUBCLASS_WEAPON_STAFF, LANG_NOT_EQUIPPED_ITEM, MAIL_CHECK_MASK_COPIED, MAIL_STATIONERY_GM, MoveItemFromInventory(), NULL_BAG, NULL_SLOT, RemoveItem(), Item::SaveToDB(), MailDraft::SendMailTo(), StoreItem(), and UpdateTitansGrip().
Referenced by _StoreOrEquipNewItem(), ActivateSpec(), Spell::EffectSummonChangeItem(), WorldSession::HandleAutoEquipItemOpcode(), resetTalents(), SplitItem(), StoreNewItemInBestSlots(), SwapItem(), and UpdateZone().
|
inline |
void Player::BindToInstance | ( | ) |
References _pendingBindId, Object::GetGUID(), GetSession(), WorldSession::SendPacket(), sInstanceSaveMgr, and SMSG_INSTANCE_SAVE_CREATED.
Referenced by WorldSession::HandleInstanceLockResponse(), and Update().
|
overridevirtual |
Reimplemented from Object.
References BANK_SLOT_BAG_END, Object::BuildCreateUpdateBlockForPlayer(), CURRENCYTOKEN_SLOT_END, EQUIPMENT_SLOT_END, INVENTORY_SLOT_BAG_START, KEYRING_SLOT_START, and m_items.
Referenced by Map::SendInitSelf().
void Player::BuildEnchantmentsInfoData | ( | WorldPacket * | data | ) |
References EQUIPMENT_SLOT_END, Item::GetEnchantmentId(), Object::GetEntry(), Object::GetGuidValue(), GetItemByPos(), Item::GetItemRandomPropertyId(), Item::GetItemSuffixFactor(), INVENTORY_SLOT_BAG_0, ITEM_FIELD_CREATOR, MAX_ENCHANTMENT_SLOT, ByteBuffer::put(), ByteBuffer::wpos(), and ObjectGuid::WriteAsPacked().
Referenced by WorldSession::HandleInspectOpcode().
|
static |
References AT_LOGIN_CHANGE_FACTION, AT_LOGIN_CHANGE_RACE, AT_LOGIN_CUSTOMIZE, AT_LOGIN_FIRST, AT_LOGIN_RENAME, AT_LOGIN_RESURRECT, SpellItemEnchantmentEntry::aura_id, CHAR_CUSTOMIZE_FLAG_CUSTOMIZE, CHAR_CUSTOMIZE_FLAG_FACTION, CHAR_CUSTOMIZE_FLAG_NONE, CHAR_CUSTOMIZE_FLAG_RACE, CHARACTER_FLAG_DECLINED, CHARACTER_FLAG_GHOST, CHARACTER_FLAG_HIDE_CLOAK, CHARACTER_FLAG_HIDE_HELM, CHARACTER_FLAG_LOCKED_BY_BILLING, CHARACTER_FLAG_RENAME, CLASS_DEATH_KNIGHT, CLASS_HUNTER, CLASS_WARLOCK, CONFIG_DECLINED_NAMES_USED, ItemTemplate::DisplayInfoID, Field::Get(), INVENTORY_SLOT_BAG_END, ItemTemplate::InventoryType, IsValidGender(), LOG_ERROR, LOG_WARN, PERM_ENCHANTMENT_SLOT, PLAYER_EXTRA_SHOW_DK_PET, PLAYER_FLAGS_GHOST, PLAYER_FLAGS_HIDE_CLOAK, PLAYER_FLAGS_HIDE_HELM, sObjectMgr, sSpellItemEnchantmentStore, sWorld, TEMP_ENCHANTMENT_SLOT, and Acore::Tokenize().
Referenced by WorldSession::HandleCharEnum().
void Player::BuildPetTalentsInfoData | ( | WorldPacket * | data | ) |
References Creature::GetCreatureTemplate(), Pet::GetFreeTalentPoints(), GetPet(), Pet::HasSpell(), MAX_TALENT_RANK, TalentTabEntry::petTalentMask, CreatureFamilyEntry::petTalentType, ByteBuffer::put(), TalentEntry::RankID, sCreatureFamilyStore, sTalentStore, sTalentTabStore, TalentEntry::TalentID, TalentEntry::TalentTab, and ByteBuffer::wpos().
Referenced by SendTalentsInfoData().
void Player::BuildPlayerRepop | ( | ) |
References Map::AddToMap(), CalculateCorpseReclaimDelay(), Unit::CastSpell(), CreateCorpse(), GetCorpse(), GetCorpseLocation(), Object::GetGUID(), WorldObject::GetMap(), WorldLocation::GetMapId(), WorldObject::GetName(), Object::GetPackGUID(), Unit::getRace(), GetSession(), LOG_ERROR, MOVE_UNROOT, MOVE_WATER_WALK, RACE_NIGHTELF, Unit::RemoveUnitFlag(), Corpse::ResetGhostTime(), SendCorpseReclaimDelay(), WorldSession::SendPacket(), Object::SetByteValue(), Unit::SetHealth(), SetMovement(), SetWaterWalking(), SMSG_PRE_RESURRECT, sScriptMgr, StopMirrorTimers(), Position::ToString(), UNIT_BYTE1_FLAG_ALWAYS_STAND, UNIT_BYTES_1_OFFSET_ANIM_TIER, UNIT_FIELD_BYTES_1, and UNIT_FLAG_SKINNABLE.
Referenced by Spell::EffectStuck(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandleRepopRequestOpcode(), WorldSession::LogoutPlayer(), RemovedInsignia(), and Update().
void Player::BuildPlayerTalentsInfoData | ( | WorldPacket * | data | ) |
References GetFreeTalentPoints(), GetTalentMap(), GetTalentSpellPos(), m_activeSpec, m_Glyphs, m_specsCount, MAX_GLYPH_SLOT_INDEX, MAX_TALENT_SPECS, PLAYERSPELL_REMOVED, ByteBuffer::put(), and ByteBuffer::wpos().
Referenced by WorldSession::HandleInspectOpcode(), and SendTalentsInfoData().
bool Player::BuyItemFromVendorSlot | ( | ObjectGuid | vendorguid, |
uint32 | vendorslot, | ||
uint32 | item, | ||
uint8 | count, | ||
uint8 | bag, | ||
uint8 | slot | ||
) |
References _StoreOrEquipNewItem(), ItemTemplate::AllowableClass, BIND_WHEN_PICKED_UP, ItemTemplate::Bonding, BUY_ERR_CANT_FIND_ITEM, BUY_ERR_DISTANCE_TOO_FAR, BUY_ERR_ITEM_ALREADY_SOLD, BUY_ERR_NOT_ENOUGHT_MONEY, BUY_ERR_REPUTATION_REQUIRE, ItemTemplate::BuyCount, ItemTemplate::BuyPrice, VendorItemData::Empty(), EQUIP_ERR_CANT_EQUIP_RANK, EQUIP_ERR_ITEM_CANT_BE_EQUIPPED, EQUIP_ERR_ITEM_DOESNT_GO_TO_SLOT, EQUIP_ERR_NOT_ENOUGH_ARENA_POINTS, EQUIP_ERR_NOT_ENOUGH_HONOR_POINTS, EQUIP_ERR_VENDOR_MISSING_TURNINS, VendorItem::ExtendedCost, GetArenaPoints(), Unit::getClassMask(), WorldSession::GetCurrentVendor(), Object::GetEntry(), GetHonorPoints(), VendorItemData::GetItem(), VendorItemData::GetItemCount(), GetMaxPersonalArenaRatingRequirement(), WorldObject::GetName(), GetNPCIfCanInteractWith(), GetReputationPriceDiscount(), GetReputationRank(), GetSession(), GetTeamId(), Creature::GetVendorItemCurrentCount(), Creature::GetVendorItems(), HasEnoughMoney(), ItemTemplate::HasFlag2(), HasItemCount(), Unit::IsAlive(), IsEquipmentPos(), IsGameMaster(), VendorItem::IsGoldRequired(), IsInventoryPos(), VendorItem::item, ITEM_FLAG2_FACTION_ALLIANCE, ITEM_FLAG2_FACTION_HORDE, ItemTemplate::ItemId, LOG_DEBUG, LOG_ERROR, MAX_BAG_SIZE, MAX_ITEM_EXTENDED_COST_REQUIREMENTS, MAX_MONEY_AMOUNT, VendorItem::maxcount, NULL_BAG, NULL_SLOT, ItemExtendedCostEntry::reqarenapoints, ItemExtendedCostEntry::reqarenaslot, ItemExtendedCostEntry::reqhonorpoints, ItemExtendedCostEntry::reqitem, ItemExtendedCostEntry::reqitemcount, ItemExtendedCostEntry::reqpersonalarenarating, ItemTemplate::RequiredReputationFaction, ItemTemplate::RequiredReputationRank, sConditionMgr, SendBuyError(), SendEquipError(), sItemExtendedCostStore, sObjectMgr, sScriptMgr, TEAM_ALLIANCE, TEAM_HORDE, ObjectGuid::ToString(), and UNIT_NPC_FLAG_VENDOR.
Referenced by WorldSession::HandleBuyItemInSlotOpcode(), and WorldSession::HandleBuyItemOpcode().
void Player::CalcRage | ( | uint32 | damage, |
bool | attacker | ||
) |
int32 Player::CalculateCorpseReclaimDelay | ( | bool | load = false | ) |
References CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVE, CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVP, copseReclaimDelay, CORPSE_RESURRECTABLE_PVP, DEATH_EXPIRE_STEP, GetCorpse(), GetCorpseReclaimDelay(), GameTime::GetGameTime(), Corpse::GetGhostTime(), Corpse::GetType(), IN_MILLISECONDS, m_deathExpireTime, m_ExtraFlags, MAX_DEATH_COUNT, PLAYER_EXTRA_PVP_DEATH, and sWorld.
Referenced by BuildPlayerRepop(), and KillPlayer().
|
overridevirtual |
Implements Unit.
References BASE_ATTACK, BASE_MAXDAMAGE, BASE_MINDAMAGE, BASE_PCT, BASE_VALUE, Unit::CanUseAttackType(), GetAmmoDPS(), Unit::GetAPMultiplier(), Unit::GetLevel(), Unit::GetModifierValue(), Unit::GetTotalAttackPowerValue(), Unit::GetWeaponDamageRange(), Unit::IsAttackSpeedOverridenShapeShift(), Unit::IsInFeralForm(), MAXDAMAGE, MINDAMAGE, OFF_ATTACK, RANGED_ATTACK, TOTAL_PCT, TOTAL_VALUE, UNIT_MOD_DAMAGE_MAINHAND, UNIT_MOD_DAMAGE_OFFHAND, and UNIT_MOD_DAMAGE_RANGED.
References AddPct(), Unit::GetAuraEffectsByType(), Unit::GetLevel(), GetQuestRate(), Quest::IsDFQuest(), SPELL_AURA_MOD_XP_QUEST_PCT, and Quest::XPValue().
Referenced by RewardQuest(), PlayerMenu::SendQuestGiverOfferReward(), and PlayerMenu::SendQuestGiverQuestDetails().
float Player::CalculateReputationGain | ( | ReputationSource | source, |
uint32 | creatureOrQuestLevel, | ||
float | rep, | ||
int32 | faction, | ||
bool | noQuestBonus = false |
||
) |
References CalculatePct(), Acore::XP::GetGrayLevel(), Unit::GetLevel(), GetsRecruitAFriendBonus(), Unit::GetTotalAuraModifier(), Unit::GetTotalAuraModifierByMiscValue(), RATE_REPUTATION_LOWLEVEL_KILL, RATE_REPUTATION_LOWLEVEL_QUEST, RATE_REPUTATION_RECRUIT_A_FRIEND_BONUS, REPUTATION_SOURCE_DAILY_QUEST, REPUTATION_SOURCE_KILL, REPUTATION_SOURCE_MONTHLY_QUEST, REPUTATION_SOURCE_QUEST, REPUTATION_SOURCE_REPEATABLE_QUEST, REPUTATION_SOURCE_SPELL, REPUTATION_SOURCE_WEEKLY_QUEST, sObjectMgr, SPELL_AURA_MOD_FACTION_REPUTATION_GAIN, SPELL_AURA_MOD_REPUTATION_GAIN, and sWorld.
Referenced by Spell::EffectReputation(), RewardReputation(), and RewardReputation().
uint32 Player::CalculateTalentsPoints | ( | ) | const |
References CLASS_CONTEXT_TALENT_POINT_CALC, CLASS_DEATH_KNIGHT, Unit::GetLevel(), WorldLocation::GetMapId(), IsClass(), m_extraBonusTalentCount, m_questRewardTalentCount, RATE_TALENT, sScriptMgr, and sWorld.
Referenced by InitTalentForLevel(), and resetTalents().
bool Player::CanAddQuest | ( | Quest const * | quest, |
bool | msg | ||
) |
References CanStoreNewItem(), EQUIP_ERR_CANT_CARRY_MORE_OF_THIS, EQUIP_ERR_OK, Quest::GetSrcItemCount(), Quest::GetSrcItemId(), NULL_BAG, NULL_SLOT, WorldObject::PlayDirectSound(), QUEST_SOUND_FAILURE, SatisfyQuestLog(), and SendEquipError().
Referenced by Spell::EffectQuestStart(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestConfirmAccept(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverQueryQuestOpcode(), and SendPreparedQuest().
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
References Object::GetGUID(), Object::GetGuidValue(), m_mover, and PLAYER_FARSIGHT.
InventoryResult Player::CanBankItem | ( | uint8 | bag, |
uint8 | slot, | ||
ItemPosCountVec & | dest, | ||
Item * | pItem, | ||
bool | swap, | ||
bool | not_loading = true |
||
) | const |
References ItemTemplate::BagFamily, BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, BANK_SLOT_ITEM_END, BANK_SLOT_ITEM_START, CanStoreItem_InBag(), CanStoreItem_InInventorySlots(), CanStoreItem_InSpecificSlot(), CanTakeMoreSimilarItems(), CanUseItem(), CURRENCYTOKEN_SLOT_END, CURRENCYTOKEN_SLOT_START, EQUIP_ERR_ALREADY_LOOTED, EQUIP_ERR_BANK_FULL, EQUIP_ERR_DONT_OWN_THAT_ITEM, EQUIP_ERR_ITEM_DOESNT_GO_TO_SLOT, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_ITEMS_CANT_BE_SWAPPED, EQUIP_ERR_MUST_PURCHASE_THAT_BAG_SLOT, EQUIP_ERR_NONEMPTY_BAG_OVER_OTHER_BAG, EQUIP_ERR_OK, GetBankBagSlotCount(), Item::GetCount(), Object::GetEntry(), Object::GetGUID(), Object::GetGUID(), GetLootGUID(), WorldObject::GetName(), Item::GetSlot(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, Item::IsBag(), Item::IsBindedNotWith(), Item::IsNotEmptyBag(), ItemTemplate::ItemId, LOG_DEBUG, LOG_ERROR, NULL_BAG, NULL_SLOT, ItemTemplate::Stackable, ObjectGuid::ToString(), and Position::ToString().
Referenced by _LoadInventory(), Spell::EffectSummonChangeItem(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), SplitItem(), and SwapItem().
|
inline |
bool Player::CanCaptureTowerPoint | ( | ) | const |
References Unit::HasInvisibilityAura(), Unit::HasStealthAura(), and Unit::IsAlive().
bool Player::CanCompleteQuest | ( | uint32 | quest_id, |
const QuestStatusData * | q_savedStatus = nullptr |
||
) |
References CanTakeQuest(), QuestStatusData::CreatureOrGOCount, QuestStatusData::Explored, Quest::GetPlayersSlain(), Quest::GetQuestMethod(), Quest::GetRepObjectiveFaction(), Quest::GetRepObjectiveValue(), GetReputation(), GetReputationMgr(), Quest::GetRewOrReqMoney(), HasEnoughMoney(), Quest::HasSpecialFlag(), Quest::IsAutoComplete(), IsQuestRewarded(), Quest::IsRepeatable(), Quest::IsSeasonal(), QuestStatusData::ItemCount, m_QuestStatus, QuestStatusData::PlayerCount, QUEST_ITEM_OBJECTIVES_COUNT, QUEST_OBJECTIVES_COUNT, QUEST_SPECIAL_FLAGS_CAST, QUEST_SPECIAL_FLAGS_DELIVER, QUEST_SPECIAL_FLAGS_EXPLORATION_OR_EVENT, QUEST_SPECIAL_FLAGS_KILL, QUEST_SPECIAL_FLAGS_PLAYER_KILL, QUEST_SPECIAL_FLAGS_SPEAKTO, QUEST_SPECIAL_FLAGS_TIMED, QUEST_STATUS_INCOMPLETE, Quest::RequiredItemCount, Quest::RequiredNpcOrGo, Quest::RequiredNpcOrGoCount, sObjectMgr, QuestStatusData::Status, and QuestStatusData::Timer.
Referenced by AddQuestAndCheckCompletion(), AreaExploredOrEventHappens(), WorldSession::HandleQuestgiverQueryQuestOpcode(), WorldSession::HandleQuestgiverRequestRewardOpcode(), ItemAddedQuestCheck(), KillCreditGO(), KilledMonsterCredit(), KilledPlayerCreditForQuest(), MoneyChanged(), ReputationChanged(), ReputationChanged2(), PlayerMenu::SendQuestGiverRequestItems(), and TalkedToCreature().
bool Player::CanCompleteRepeatableQuest | ( | Quest const * | quest | ) |
References CanRewardQuest(), CanTakeQuest(), HasItemCount(), Quest::HasSpecialFlag(), QUEST_ITEM_OBJECTIVES_COUNT, QUEST_SPECIAL_FLAGS_DELIVER, Quest::RequiredItemCount, and Quest::RequiredItemId.
Referenced by WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestgiverCompleteQuest(), and SendPreparedQuest().
|
inlineoverridevirtual |
Implements Unit.
InventoryResult Player::CanEquipItem | ( | uint8 | slot, |
uint16 & | dest, | ||
Item * | pItem, | ||
bool | swap, | ||
bool | not_loading = true |
||
) | const |
References ItemTemplate::CanChangeEquipStateInCombat(), Unit::CanDualWield(), CanEquipUniqueItem(), CanStoreItem(), CanTakeMoreSimilarItems(), CanTitanGrip(), CanUnequipItem(), Unit::CanUseAttackType(), CanUseItem(), ItemTemplate::Class, DEFAULT_MAX_LEVEL, EQUIP_ERR_ALREADY_LOOTED, EQUIP_ERR_CAN_EQUIP_ONLY1_AMMOPOUCH, EQUIP_ERR_CAN_EQUIP_ONLY1_QUIVER, EQUIP_ERR_CANT_DO_RIGHT_NOW, EQUIP_ERR_CANT_DUAL_WIELD, EQUIP_ERR_CANT_EQUIP_WITH_TWOHANDED, EQUIP_ERR_DONT_OWN_THAT_ITEM, EQUIP_ERR_INVENTORY_FULL, EQUIP_ERR_ITEM_CANT_BE_EQUIPPED, EQUIP_ERR_ITEM_DOESNT_GO_TO_SLOT, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_ITEMS_CANT_BE_SWAPPED, EQUIP_ERR_NO_EQUIPMENT_SLOT_AVAILABLE, EQUIP_ERR_NOT_DURING_ARENA_MATCH, EQUIP_ERR_NOT_IN_COMBAT, EQUIP_ERR_NOT_WHILE_DISARMED, EQUIP_ERR_OK, EQUIP_ERR_YOU_ARE_STUNNED, EQUIPMENT_SLOT_FINGER1, EQUIPMENT_SLOT_FINGER2, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_TRINKET1, EQUIPMENT_SLOT_TRINKET2, FindEquipSlot(), GetAttackBySlot(), GetBattleground(), Item::GetCount(), Object::GetEntry(), GetItemByPos(), Unit::GetLevel(), Item::GetTemplate(), Unit::HasUnitState(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, ItemTemplate::InventoryType, INVTYPE_2HWEAPON, INVTYPE_RELIC, INVTYPE_WEAPON, INVTYPE_WEAPONOFFHAND, Item::IsBindedNotWith(), Unit::IsInCombat(), Unit::IsNonMeleeSpellCast(), IsTwoHandUsed(), ITEM_CLASS_QUIVER, ITEM_CLASS_WEAPON, ITEM_SUBCLASS_AMMO_POUCH, ITEM_SUBCLASS_WEAPON_FISHING_POLE, ITEM_SUBCLASS_WEAPON_POLEARM, ITEM_SUBCLASS_WEAPON_STAFF, LOG_DEBUG, Item::m_lootGenerated, m_weaponChangeTimer, ScalingStatDistributionEntry::MaxLevel, NULL_BAG, NULL_SLOT, ItemTemplate::ScalingStatDistribution, sScalingStatDistributionStore, sScriptMgr, STATUS_IN_PROGRESS, ItemTemplate::SubClass, and UNIT_STATE_STUNNED.
Referenced by _LoadInventory(), CanEquipNewItem(), Create(), Spell::EffectSummonChangeItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleEquipmentSetUse(), SplitItem(), and SwapItem().
InventoryResult Player::CanEquipNewItem | ( | uint8 | slot, |
uint16 & | dest, | ||
uint32 | item, | ||
bool | swap | ||
) | const |
References CanEquipItem(), Item::CreateItem(), and EQUIP_ERR_ITEM_NOT_FOUND.
Referenced by _StoreOrEquipNewItem(), and StoreNewItemInBestSlots().
InventoryResult Player::CanEquipUniqueItem | ( | Item * | pItem, |
uint8 | except_slot = NULL_SLOT , |
||
uint32 | limit_count = 1 |
||
) | const |
References CanEquipUniqueItem(), EQUIP_ERR_OK, SpellItemEnchantmentEntry::GemID, Item::GetEnchantmentId(), Item::GetGemCountWithLimitCategory(), Item::GetTemplate(), Item::IsEquipped(), ItemTemplate::ItemLimitCategory, sObjectMgr, SOCK_ENCHANTMENT_SLOT, and sSpellItemEnchantmentStore.
Referenced by CanEquipItem(), CanEquipUniqueItem(), and WorldSession::HandleSocketOpcode().
InventoryResult Player::CanEquipUniqueItem | ( | ItemTemplate const * | itemProto, |
uint8 | except_slot = NULL_SLOT , |
||
uint32 | limit_count = 1 |
||
) | const |
References EQUIP_ERR_ITEM_CANT_BE_EQUIPPED, EQUIP_ERR_ITEM_MAX_COUNT_EQUIPPED_SOCKETED, EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_EQUIPPED_EXCEEDED, EQUIP_ERR_ITEM_UNIQUE_EQUIPABLE, EQUIP_ERR_OK, ItemTemplate::HasFlag(), HasItemOrGemWithIdEquipped(), HasItemOrGemWithLimitCategoryEquipped(), ITEM_FLAG_UNIQUE_EQUIPPABLE, ItemTemplate::ItemId, ItemTemplate::ItemLimitCategory, ItemLimitCategoryEntry::maxCount, and sItemLimitCategoryStore.
bool Player::CanExecutePendingSpellCastRequest | ( | SpellInfo const * | spellInfo | ) |
References CURRENT_GENERIC_SPELL, CURRENT_MELEE_SPELL, Unit::GetCurrentSpell(), GetGlobalCooldownMgr(), GetSpellCooldownDelay(), GetSpellQueueWindow(), SpellInfo::Id, and Unit::IsNonMeleeSpellCast().
Referenced by WorldSession::HandleCastSpellOpcode(), WorldSession::HandleUseItemOpcode(), and ProcessSpellQueue().
|
inlineoverridevirtual |
Implements Unit.
References MovementInfo::HasMovementFlag(), WorldObject::m_movementInfo, and MOVEMENTFLAG_CAN_FLY.
Referenced by gm_commandscript::HandleGMFlyCommand().
References GetVirtualMapForMapAndZone(), SpellInfo::HasAttribute(), HasSpell(), SPELL_ATTR7_IGNORES_COLD_WEATHER_FLYING_REQUIREMENT, and sScriptMgr.
Referenced by SpellInfo::CheckLocation().
bool Player::CanInteractWithQuestGiver | ( | Object * | questGiver | ) |
References GAMEOBJECT_TYPE_QUESTGIVER, GetGameObjectIfCanInteractWith(), Object::GetGUID(), GetNPCIfCanInteractWith(), Object::GetTypeId(), Unit::IsAlive(), Object::ToPlayer(), TYPEID_GAMEOBJECT, TYPEID_ITEM, TYPEID_PLAYER, TYPEID_UNIT, and UNIT_NPC_FLAG_QUESTGIVER.
Referenced by WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), and WorldSession::HandleQuestgiverRequestRewardOpcode().
bool Player::CanJoinConstantChannelInZone | ( | ChatChannelsEntry const * | channel, |
AreaTableEntry const * | zone | ||
) |
References AREA_FLAG_ARENA_INSTANCE, AREA_FLAG_SLAVE_CAPITAL, CHANNEL_DBC_FLAG_CITY_ONLY, CHANNEL_DBC_FLAG_GUILD_REQ, CHANNEL_DBC_FLAG_LFG, CHANNEL_DBC_FLAG_ZONE_DEP, CONFIG_LFG_LOCATION_ALL, AreaTableEntry::flags, ChatChannelsEntry::flags, GetGuildId(), and sWorld.
Referenced by UpdateLocalChannels().
bool Player::CanJoinToBattleground | ( | ) | const |
References Unit::HasAura().
Referenced by Group::CanJoinBattlegroundQueue(), WorldSession::HandleBattleFieldPortOpcode(), and WorldSession::HandleBattlemasterJoinOpcode().
|
inline |
References m_canKnockback.
bool Player::CanNoReagentCast | ( | SpellInfo const * | spellInfo | ) | const |
References Object::GetUInt32Value(), SpellInfo::HasAttribute(), Unit::HasUnitFlag(), PLAYER_NO_REAGENT_COST_1, SPELL_ATTR5_NO_REAGENT_COST_WITH_AURA, SpellInfo::SpellFamilyFlags, and UNIT_FLAG_PREPARATION.
Referenced by Spell::CheckItems(), spell_dk_raise_dead::CheckReagents(), and Spell::TakeReagents().
|
inline |
References m_canParry.
Referenced by AuraEffect::HandleAuraModParryPercent(), and UpdateParryPercentage().
bool Player::CanPetResurrect | ( | ) |
References PetStable::CurrentPet, GetPetStable(), and PetStable::GetUnslottedHunterPet().
bool Player::CanReportAfkDueToLimit | ( | ) |
References BGData::bgAfkReportedCount, and m_bgData.
Referenced by ReportedAfkBy().
bool Player::CanRequestSpellCast | ( | SpellInfo const * | spellInfo | ) |
References CONFIG_SPELL_QUEUE_ENABLED, CURRENT_GENERIC_SPELL, CURRENT_MELEE_SPELL, GetCastRequest(), SpellInfo::GetCategory(), Unit::GetCurrentSpell(), GetGlobalCooldownMgr(), GetSpellCooldownDelay(), GetSpellQueueWindow(), SpellInfo::Id, and sWorld.
Referenced by WorldSession::HandleCastSpellOpcode(), and WorldSession::HandleUseItemOpcode().
bool Player::CanResummonPet | ( | uint32 | spellid | ) |
References CanSeeDKPet(), CLASS_CONTEXT_PET, CLASS_DEATH_KNIGHT, CLASS_HUNTER, CLASS_MAGE, Unit::HasAura(), HasSpell(), and IsClass().
Referenced by spell_gen_pet_summoned::HandleScript(), and ResummonPetTemporaryUnSummonedIfAny().
bool Player::CanRewardQuest | ( | Quest const * | quest, |
bool | msg | ||
) |
References EQUIP_ERR_ITEM_NOT_FOUND, GetItemCount(), Quest::GetQuestId(), Quest::GetQuestMethod(), GetQuestRewardStatus(), GetQuestStatus(), Quest::GetRewOrReqMoney(), HasEnoughMoney(), Quest::HasSpecialFlag(), Quest::IsAutoComplete(), Quest::IsDFQuest(), QUEST_ITEM_OBJECTIVES_COUNT, QUEST_SPECIAL_FLAGS_DELIVER, QUEST_STATUS_COMPLETE, Quest::RequiredItemCount, Quest::RequiredItemId, SatisfyQuestDay(), SatisfyQuestMonth(), SatisfyQuestSeasonal(), SatisfyQuestWeek(), and SendEquipError().
Referenced by CanCompleteRepeatableQuest(), CanRewardQuest(), lfg::LFGMgr::FinishDungeon(), WorldSession::HandleLfgPlayerLockInfoRequestOpcode(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), npc_elder_clearwater::OnGossipHello(), and SendPreparedQuest().
References CanRewardQuest(), CanStoreNewItem(), EQUIP_ERR_OK, Quest::GetRewChoiceItemsCount(), Quest::GetRewItemsCount(), NULL_BAG, NULL_SLOT, Quest::RewardChoiceItemCount, Quest::RewardChoiceItemId, Quest::RewardItemId, Quest::RewardItemIdCount, and SendEquipError().
InventoryResult Player::CanRollForItemInLFG | ( | ItemTemplate const * | item, |
WorldObject const * | lootedObject | ||
) | const |
References ItemTemplate::AllowableClass, ItemTemplate::AllowableRace, ItemTemplate::Class, CLASS_CONTEXT_EQUIP_ARMOR_CLASS, CLASS_CONTEXT_EQUIP_RELIC, CLASS_CONTEXT_EQUIP_SHIELDS, CLASS_DEATH_KNIGHT, CLASS_DRUID, CLASS_HUNTER, CLASS_PALADIN, CLASS_ROGUE, CLASS_SHAMAN, CLASS_WARRIOR, CONFIG_LOOT_NEED_BEFORE_GREED_ILVL_RESTRICTION, EQUIP_ERR_CANT_DO_RIGHT_NOW, EQUIP_ERR_CANT_EQUIP_SKILL, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_NO_REQUIRED_PROFICIENCY, EQUIP_ERR_OK, EQUIP_ERR_YOU_CAN_NEVER_USE_THAT_ITEM, Unit::getClassMask(), Map::GetDifficulty(), GetGroup(), Object::GetGUID(), Map::GetId(), WorldObject::GetMap(), Unit::getRaceMask(), GetSkillValue(), HasSpell(), ItemTemplate::HasSpellPowerStat(), ItemTemplate::HasStat(), ItemTemplate::InventoryType, INVTYPE_CLOAK, IsClass(), ITEM_CLASS_ARMOR, ITEM_CLASS_WEAPON, ITEM_MOD_SPELL_POWER, ITEM_SUBCLASS_ARMOR_BUCKLER, ITEM_SUBCLASS_ARMOR_CLOTH, ITEM_SUBCLASS_ARMOR_IDOL, ITEM_SUBCLASS_ARMOR_LEATHER, ITEM_SUBCLASS_ARMOR_LIBRAM, ITEM_SUBCLASS_ARMOR_MAIL, ITEM_SUBCLASS_ARMOR_MISC, ITEM_SUBCLASS_ARMOR_PLATE, ITEM_SUBCLASS_ARMOR_SHIELD, ITEM_SUBCLASS_ARMOR_SIGIL, ITEM_SUBCLASS_ARMOR_TOTEM, ItemTemplate::ItemLevel, MAX_ITEM_SUBCLASS_WEAPON, ItemTemplate::RequiredSkill, ItemTemplate::RequiredSkillRank, ItemTemplate::RequiredSpell, SKILL_2H_AXES, SKILL_2H_MACES, SKILL_2H_SWORDS, SKILL_ASSASSINATION, SKILL_AXES, SKILL_BOWS, SKILL_CROSSBOWS, SKILL_DAGGERS, SKILL_FISHING, SKILL_FIST_WEAPONS, SKILL_GUNS, SKILL_MACES, SKILL_POLEARMS, SKILL_STAVES, SKILL_SWORDS, SKILL_THROWN, SKILL_WANDS, sLFGMgr, ItemTemplate::SubClass, and sWorld.
Referenced by Group::NeedBeforeGreed().
|
inline |
References m_ExtraFlags, and PLAYER_EXTRA_SHOW_DK_PET.
Referenced by CanResummonPet(), and Pet::LoadPetFromDB().
bool Player::CanSeeSpellClickOn | ( | Creature const * | creature | ) | const |
References Object::GetEntry(), Unit::HasNpcFlag(), sConditionMgr, sObjectMgr, and UNIT_NPC_FLAG_SPELLCLICK.
Referenced by Unit::PatchValuesUpdate().
bool Player::CanSeeStartQuest | ( | Quest const * | quest | ) |
References CONFIG_QUEST_HIGH_LEVEL_HIDE_DIFF, DISABLE_TYPE_QUEST, Unit::GetLevel(), Quest::GetMinLevel(), Quest::GetQuestId(), SatisfyQuestClass(), SatisfyQuestDay(), SatisfyQuestExclusiveGroup(), SatisfyQuestMonth(), SatisfyQuestNextChain(), SatisfyQuestPrevChain(), SatisfyQuestPreviousQuest(), SatisfyQuestRace(), SatisfyQuestReputation(), SatisfyQuestSeasonal(), SatisfyQuestSkill(), SatisfyQuestWeek(), sDisableMgr, and sWorld.
Referenced by npc_wg_quest_giver::GetDialogStatus(), GetQuestDialogStatus(), WorldSession::HandleQuestgiverChooseRewardOpcode(), and WorldSession::HandleQuestgiverCompleteQuest().
bool Player::CanSeeVendor | ( | Creature const * | creature | ) | const |
References Object::GetEntry(), Unit::HasNpcFlag(), sConditionMgr, and UNIT_NPC_FLAG_VENDOR.
Referenced by Unit::PatchValuesUpdate().
bool Player::CanShareQuest | ( | uint32 | quest_id | ) | const |
References Quest::HasFlag(), m_QuestStatus, QUEST_FLAGS_SHARABLE, QUEST_PARTY_MSG_CANT_BE_SHARED_TODAY, SendPushToPartyResponse(), sObjectMgr, and sPoolMgr.
Referenced by WorldSession::HandlePushQuestToParty(), and WorldSession::HandleQuestgiverAcceptQuestOpcode().
bool Player::CanSpeak | ( | ) | const |
References GetSession(), and WorldSession::m_muteTime.
Referenced by WorldSession::HandleMessagechatOpcode(), and misc_commandscript::HandleUnmuteCommand().
|
inline |
References CanStoreItem(), EQUIP_ERR_ITEM_NOT_FOUND, Item::GetCount(), and Object::GetEntry().
Referenced by _LoadInventory(), AutoUnequipOffhandIfNeed(), CanEquipItem(), CanStoreItem(), CanStoreNewItem(), Create(), Spell::EffectSummonChangeItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleBuybackItem(), WorldSession::HandleEquipmentSetUse(), WorldSession::HandleMailCreateTextItem(), WorldSession::HandleMailTakeItem(), WorldSession::moveItems(), SplitItem(), and SwapItem().
InventoryResult Player::CanStoreItem | ( | uint8 | bag, |
uint8 | slot, | ||
ItemPosCountVec & | dest, | ||
uint32 | entry, | ||
uint32 | count, | ||
Item * | pItem = nullptr , |
||
bool | swap = false , |
||
uint32 * | no_space_count = nullptr |
||
) | const |
References BAG_FAMILY_MASK_KEYS, ItemTemplate::BagFamily, CanStoreItem_InBag(), CanStoreItem_InInventorySlots(), CanStoreItem_InSpecificSlot(), CanTakeMoreSimilarItems(), CURRENCYTOKEN_SLOT_END, CURRENCYTOKEN_SLOT_START, EQUIP_ERR_ALREADY_LOOTED, EQUIP_ERR_CAN_ONLY_DO_WITH_EMPTY_BAGS, EQUIP_ERR_CANT_CARRY_MORE_OF_THIS, EQUIP_ERR_DONT_OWN_THAT_ITEM, EQUIP_ERR_INVENTORY_FULL, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_ITEMS_CANT_BE_SWAPPED, EQUIP_ERR_NONEMPTY_BAG_OVER_OTHER_BAG, EQUIP_ERR_OK, Object::GetGUID(), GetLootGUID(), GetMaxKeyringSize(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, Item::IsBag(), Item::IsBindedNotWith(), ItemTemplate::IsCurrencyToken(), Item::IsNotEmptyBag(), KEYRING_SLOT_START, LOG_DEBUG, NULL_BAG, NULL_SLOT, sObjectMgr, and ItemTemplate::Stackable.
|
private |
References Item::CanBeMergedPartlyWith(), ItemTemplate::Class, EQUIP_ERR_CAN_ONLY_DO_WITH_EMPTY_BAGS, EQUIP_ERR_ITEM_DOESNT_GO_INTO_BAG, EQUIP_ERR_OK, GetBagByPos(), Bag::GetBagSize(), Item::GetCount(), Object::GetGUID(), GetItemByPos(), ItemTemplate::GetMaxStackSize(), Item::GetTemplate(), ItemPosCount::isContainedIn(), Item::IsNotEmptyBag(), ITEM_CLASS_CONTAINER, ITEM_SUBCLASS_CONTAINER, ItemCanGoIntoBag(), and ItemTemplate::SubClass.
Referenced by CanBankItem(), and CanStoreItem().
|
private |
References Item::CanBeMergedPartlyWith(), EQUIP_ERR_CAN_ONLY_DO_WITH_EMPTY_BAGS, EQUIP_ERR_OK, Item::GetCount(), GetItemByPos(), ItemTemplate::GetMaxStackSize(), INVENTORY_SLOT_BAG_0, ItemPosCount::isContainedIn(), and Item::IsNotEmptyBag().
Referenced by CanBankItem(), and CanStoreItem().
|
private |
References BAG_FAMILY_MASK_KEYS, ItemTemplate::BagFamily, BUYBACK_SLOT_END, BUYBACK_SLOT_START, Item::CanBeMergedPartlyWith(), ItemTemplate::ContainerSlots, CURRENCYTOKEN_SLOT_END, CURRENCYTOKEN_SLOT_START, EQUIP_ERR_ITEM_DOESNT_GO_INTO_BAG, EQUIP_ERR_OK, GetBagByPos(), Item::GetCount(), GetItemByPos(), GetMaxKeyringSize(), ItemTemplate::GetMaxStackSize(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, ItemPosCount::isContainedIn(), ItemTemplate::IsCurrencyToken(), ItemCanGoIntoBag(), KEYRING_SLOT_START, and PLAYER_SLOT_END.
Referenced by CanBankItem(), and CanStoreItem().
InventoryResult Player::CanStoreItems | ( | Item ** | pItem, |
int32 | count | ||
) | const |
References BAG_FAMILY_MASK_KEYS, ItemTemplate::BagFamily, Item::CanBeMergedPartlyWith(), CanTakeMoreSimilarItems(), ItemTemplate::Class, CURRENCYTOKEN_SLOT_END, CURRENCYTOKEN_SLOT_START, EQUIP_ERR_ALREADY_LOOTED, EQUIP_ERR_DONT_OWN_THAT_ITEM, EQUIP_ERR_INVENTORY_FULL, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_OK, GetBagByPos(), Item::GetCount(), Object::GetEntry(), Object::GetGUID(), GetItemByPos(), GetLootGUID(), GetMaxKeyringSize(), ItemTemplate::GetMaxStackSize(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, Item::IsBindedNotWith(), ItemTemplate::IsCurrencyToken(), Item::IsInTrade(), ITEM_CLASS_CONTAINER, ITEM_SUBCLASS_CONTAINER, ItemCanGoIntoBag(), KEYRING_SLOT_END, KEYRING_SLOT_START, LOG_DEBUG, MAX_BAG_SIZE, ItemTemplate::Stackable, and ItemTemplate::SubClass.
Referenced by WorldSession::HandleAcceptTradeOpcode().
|
inline |
References CanStoreItem().
Referenced by _StoreOrEquipNewItem(), AddItem(), AutoStoreLoot(), CanAddQuest(), CanRewardQuest(), Spell::CheckItems(), Group::CountTheRoll(), Spell::DoCreateItem(), GiveQuestSourceItem(), misc_commandscript::HandleAddItemCommand(), misc_commandscript::HandleAddItemSetCommand(), AuraEffect::HandleChannelDeathItem(), OPvPCapturePointNA::HandleCustomSpell(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandlePetitionBuyOpcode(), item_mysterious_egg::OnExpire(), item_disgusting_jar::OnExpire(), npcs_flanis_swiftwing_and_kagrosh::OnGossipSelect(), RefundItem(), RemovePet(), RewardQuest(), npc_aquementas::npc_aquementasAI::SendItem(), npc_oculus_drakegiver::StoreEssence(), StoreLootItem(), and StoreNewItemInBestSlots().
|
inline |
References CanTakeMoreSimilarItems(), Item::GetCount(), and Object::GetEntry().
Referenced by CanBankItem(), CanEquipItem(), CanStoreItem(), CanStoreItems(), and CanTakeMoreSimilarItems().
|
inline |
InventoryResult Player::CanTakeMoreSimilarItems | ( | uint32 | entry, |
uint32 | count, | ||
Item * | pItem, | ||
uint32 * | no_space_count = nullptr |
||
) | const |
References EQUIP_ERR_CANT_CARRY_MORE_OF_THIS, EQUIP_ERR_ITEM_CANT_BE_EQUIPPED, EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_COUNT_EXCEEDED, EQUIP_ERR_OK, GetItemCount(), GetItemCountWithLimitCategory(), ITEM_LIMIT_CATEGORY_MODE_HAVE, ItemTemplate::ItemId, ItemTemplate::ItemLimitCategory, ItemTemplate::MaxCount, ItemLimitCategoryEntry::maxCount, ItemLimitCategoryEntry::mode, sItemLimitCategoryStore, and sObjectMgr.
bool Player::CanTakeQuest | ( | Quest const * | quest, |
bool | msg | ||
) |
References DISABLE_TYPE_QUEST, Quest::GetQuestId(), SatisfyQuestClass(), SatisfyQuestConditions(), SatisfyQuestDay(), SatisfyQuestExclusiveGroup(), SatisfyQuestLevel(), SatisfyQuestMonth(), SatisfyQuestNextChain(), SatisfyQuestPrevChain(), SatisfyQuestPreviousQuest(), SatisfyQuestRace(), SatisfyQuestReputation(), SatisfyQuestSeasonal(), SatisfyQuestSkill(), SatisfyQuestStatus(), SatisfyQuestTimed(), SatisfyQuestWeek(), and sDisableMgr.
Referenced by CanCompleteQuest(), CanCompleteRepeatableQuest(), Spell::EffectQuestComplete(), Spell::EffectQuestStart(), npc_wg_quest_giver::GetDialogStatus(), GetQuestDialogStatus(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestConfirmAccept(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverQueryQuestOpcode(), npc_wg_quest_giver::OnGossipHello(), PrepareQuestMenu(), SendPreparedQuest(), and npc_costumed_orphan_matron::sGossipHello().
|
inline |
|
inline |
References m_canTeleport.
|
inline |
References m_canTitanGrip.
Referenced by AutoUnequipOffhandIfNeed(), CanEquipItem(), FindEquipSlot(), IsTwoHandUsed(), and UpdateTitansGrip().
InventoryResult Player::CanUnequipItem | ( | uint16 | src, |
bool | swap | ||
) | const |
References ItemTemplate::CanChangeEquipStateInCombat(), Unit::CanUseAttackType(), EQUIP_ERR_ALREADY_LOOTED, EQUIP_ERR_CAN_ONLY_DO_WITH_EMPTY_BAGS, EQUIP_ERR_CANT_DO_RIGHT_NOW, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_NOT_DURING_ARENA_MATCH, EQUIP_ERR_NOT_IN_COMBAT, EQUIP_ERR_NOT_WHILE_DISARMED, EQUIP_ERR_OK, GetAttackBySlot(), GetBattleground(), Item::GetCount(), Object::GetEntry(), GetItemByPos(), Item::GetSlot(), Item::GetTemplate(), IsBagPos(), IsEquipmentPos(), Unit::IsInCombat(), Item::IsNotEmptyBag(), LOG_DEBUG, Item::m_lootGenerated, sScriptMgr, and STATUS_IN_PROGRESS.
Referenced by CanEquipItem(), CanUnequipItems(), DestroyItemCount(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleDestroyItemOpcode(), WorldSession::HandleEquipmentSetUse(), and SwapItem().
InventoryResult Player::CanUnequipItems | ( | uint32 | item, |
uint32 | count | ||
) | const |
References CanUnequipItem(), CURRENCYTOKEN_SLOT_END, EQUIP_ERR_OK, EQUIPMENT_SLOT_START, GetBagByPos(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, and KEYRING_SLOT_START.
Referenced by TakeQuestSourceItem().
PartyResult Player::CanUninviteFromGroup | ( | ObjectGuid | targetPlayerGUID = ObjectGuid::Empty | ) | const |
References CONFIG_LFG_KICK_PREVENTION_TIMER, ERR_INVITE_RESTRICTED, ERR_NOT_IN_GROUP, ERR_NOT_LEADER, ERR_PARTY_LFG_BOOT_DUNGEON_COMPLETE, ERR_PARTY_LFG_BOOT_IN_COMBAT, ERR_PARTY_LFG_BOOT_IN_PROGRESS, ERR_PARTY_LFG_BOOT_LIMIT, ERR_PARTY_LFG_BOOT_LOOT_ROLLS, ERR_PARTY_LFG_BOOT_NOT_ELIGIBLE_S, ERR_PARTY_LFG_BOOT_TOO_FEW_PLAYERS, ERR_PARTY_RESULT_OK, ObjectAccessor::FindConnectedPlayer(), Group::GetFirstMember(), GetGroup(), Object::GetGUID(), Group::GetGUID(), Group::GetMembersCount(), InBattleground(), Group::IsAssistant(), Group::IsLeader(), Group::isLFGGroup(), Group::isRollLootActive(), lfg::LFG_GROUP_KICK_VOTES_NEEDED, lfg::LFG_SPELL_DUNGEON_COOLDOWN, lfg::LFG_STATE_BOOT, lfg::LFG_STATE_FINISHED_DUNGEON, sLFGMgr, and sWorld.
Referenced by WorldSession::HandleGroupUninviteGuidOpcode(), and WorldSession::HandleGroupUninviteOpcode().
InventoryResult Player::CanUseAmmo | ( | uint32 | item | ) | const |
References CanUseItem(), EQUIP_ERR_BAG_FULL6, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_OK, EQUIP_ERR_ONLY_AMMO_CAN_GO_HERE, EQUIP_ERR_YOU_ARE_DEAD, Unit::HasAura(), ItemTemplate::InventoryType, INVTYPE_AMMO, Unit::IsAlive(), LOG_DEBUG, and sObjectMgr.
bool Player::CanUseBattlegroundObject | ( | GameObject * | gameobject | ) | const |
References GAMEOBJECT_FACTION, Unit::GetFactionTemplateEntry(), Object::GetUInt32Value(), Unit::HasAura(), Unit::IsAlive(), FactionTemplateEntry::IsFriendlyTo(), isTotalImmune(), sFactionTemplateStore, and SPELL_RECENTLY_DROPPED_FLAG.
Referenced by Spell::CheckCast(), and GameObject::Use().
InventoryResult Player::CanUseItem | ( | Item * | pItem, |
bool | not_loading = true |
||
) | const |
References CanUseItem(), ItemTemplate::Class, CLASS_CONTEXT_EQUIP_ARMOR_CLASS, CLASS_HUNTER, CLASS_PALADIN, CLASS_SHAMAN, CLASS_WARRIOR, EQUIP_ERR_CANT_EQUIP_REPUTATION, EQUIP_ERR_DONT_OWN_THAT_ITEM, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_NO_REQUIRED_PROFICIENCY, EQUIP_ERR_OK, EQUIP_ERR_YOU_ARE_DEAD, Object::GetEntry(), GetReputationRank(), Item::GetSkill(), GetSkillValue(), Item::GetTemplate(), HasSkill(), Unit::IsAlive(), Item::IsBindedNotWith(), IsClass(), ITEM_CLASS_ARMOR, ITEM_QUALITY_HEIRLOOM, LOG_DEBUG, ItemTemplate::Quality, ItemTemplate::RequiredReputationFaction, ItemTemplate::RequiredReputationRank, SKILL_MAIL, and SKILL_PLATE_MAIL.
Referenced by CanBankItem(), CanEquipItem(), CanUseAmmo(), CanUseItem(), WorldSession::HandleReadItem(), and WorldSession::HandleUseItemOpcode().
InventoryResult Player::CanUseItem | ( | ItemTemplate const * | pItem | ) | const |
References ItemTemplate::AllowableClass, ItemTemplate::AllowableRace, EQUIP_ERR_CANT_DO_RIGHT_NOW, EQUIP_ERR_CANT_EQUIP_LEVEL_I, EQUIP_ERR_CANT_EQUIP_SKILL, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_NO_REQUIRED_PROFICIENCY, EQUIP_ERR_OK, EQUIP_ERR_YOU_CAN_NEVER_USE_THAT_ITEM, Unit::getClassMask(), Unit::GetLevel(), Unit::getRaceMask(), GetSkillValue(), GetTeamId(), ItemTemplate::HasFlag2(), HasSpell(), ItemTemplate::HolidayId, IsHolidayActive(), ITEM_FLAG2_FACTION_ALLIANCE, ITEM_FLAG2_FACTION_HORDE, ItemTemplate::RequiredLevel, ItemTemplate::RequiredSkill, ItemTemplate::RequiredSkillRank, ItemTemplate::RequiredSpell, sScriptMgr, TEAM_ALLIANCE, and TEAM_HORDE.
void Player::CastItemCombatSpell | ( | Unit * | target, |
WeaponAttackType | attType, | ||
uint32 | procVictim, | ||
uint32 | procEx | ||
) |
References BASE_ATTACK, Unit::CanUseAttackType(), CastItemCombatSpell(), EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, EQUIPMENT_SLOT_START, FORM_GHOSTWOLF, GetItemByPos(), Unit::GetShapeshiftForm(), INVENTORY_SLOT_BAG_0, Unit::IsAlive(), ITEM_CLASS_WEAPON, OFF_ATTACK, and RANGED_ATTACK.
Referenced by CastItemCombatSpell(), Unit::DealMeleeDamage(), and Spell::DoAllEffectOnTarget().
void Player::CastItemCombatSpell | ( | Unit * | target, |
WeaponAttackType | attType, | ||
uint32 | procVictim, | ||
uint32 | procEx, | ||
Item * | item, | ||
ItemTemplate const * | proto | ||
) |
References SpellItemEnchantmentEntry::amount, ApplyEnchantment(), ApplySpellMod(), SpellEnchantProcEntry::attributeMask, Unit::CastSpell(), Item::ClearEnchantment(), SpellEnchantProcEntry::customChance, ItemTemplate::Delay, ENCHANT_PROC_ATTR_EXCLUSIVE, ENCHANT_PROC_ATTR_WHITE_HIT, Unit::FindCurrentSpellBySpellId(), Unit::GetAttackTime(), Item::GetEnchantmentCharges(), Item::GetEnchantmentId(), Object::GetGUID(), WorldObject::GetName(), Unit::GetPPMProcChance(), Unit::GetWeaponProcChance(), Unit::HasAura(), SpellInfo::Id, SpellItemEnchantmentEntry::ID, SpellInfo::IsPositive(), ITEM_ENCHANTMENT_TYPE_COMBAT_SPELL, ITEM_SPELLTRIGGER_CHANCE_ON_HIT, LOG_ERROR, MAX_ENCHANTMENT_SLOT, MAX_ITEM_SPELLS, MAX_SPELL_ITEM_ENCHANTMENT_EFFECTS, SpellEnchantProcEntry::PPMChance, PROC_FLAG_TAKEN_DAMAGE, SpellInfo::ProcChance, SpellEnchantProcEntry::procEx, roll_chance_f(), Item::SetEnchantmentCharges(), SPELL_PROC_FLAG_MASK, _Spell::SpellId, SpellItemEnchantmentEntry::spellid, SPELLMOD_CHANCE_OF_SUCCESS, _Spell::SpellPPMRate, ItemTemplate::Spells, _Spell::SpellTrigger, sScriptMgr, sSpellItemEnchantmentStore, sSpellMgr, TEMP_ENCHANTMENT_SLOT, Position::ToString(), TRIGGERED_FULL_MASK, TRIGGERED_IGNORE_SPELL_AND_CATEGORY_CD, and SpellItemEnchantmentEntry::type.
void Player::CastItemUseSpell | ( | Item * | item, |
SpellCastTargets const & | targets, | ||
uint8 | cast_count, | ||
uint32 | glyphIndex | ||
) |
References Spell::CheckCast(), SpellInfo::CheckElixirStacking(), EQUIP_ERR_NONE, Item::GetEnchantmentId(), Item::GetTemplate(), HasSpellCooldown(), SpellInfo::Id, SpellItemEnchantmentEntry::ID, Spell::InitExplicitTargets(), ITEM_ENCHANTMENT_TYPE_USE_SPELL, ITEM_SPELLTRIGGER_ON_USE, ItemTemplate::ItemId, LOG_ERROR, Spell::m_cast_count, Spell::m_CastItem, Spell::m_glyphIndex, MAX_ENCHANTMENT_SLOT, MAX_ITEM_PROTO_SPELLS, MAX_SPELL_ITEM_ENCHANTMENT_EFFECTS, Spell::prepare(), Spell::SendCastResult(), SendEquipError(), Spell::SetSpellValue(), SPELL_CAST_OK, SPELL_FAILED_AURA_BOUNCED, _Spell::SpellId, SpellItemEnchantmentEntry::spellid, ItemTemplate::Spells, _Spell::SpellTrigger, SPELLVALUE_BASE_POINT0, sScriptMgr, sSpellItemEnchantmentStore, sSpellMgr, TRIGGERED_FULL_MASK, TRIGGERED_NONE, and SpellItemEnchantmentEntry::type.
Referenced by WorldSession::HandleUseItemOpcode().
void Player::CharmSpellInitialize | ( | ) |
References CharmInfo::BuildActionBar(), UnitActionBarEntry::GetAction(), Unit::GetCharmInfo(), CharmInfo::GetCharmSpell(), CharmInfo::GetCommandState(), Unit::GetFirstControlled(), Object::GetGUID(), Creature::GetReactState(), GetSession(), Object::IsPlayer(), LOG_ERROR, MAX_SPELL_CHARM, MAX_UNIT_ACTION_BAR_INDEX, UnitActionBarEntry::packedData, WorldSession::SendPacket(), SMSG_PET_SPELLS, Object::ToCreature(), and ObjectGuid::ToString().
Referenced by spell_mage_summon_water_elemental::HandleDummy(), WorldSession::HandleRequestPetInfo(), Unit::SetCharmedBy(), and Unit::SetMinion().
void Player::CheckAllAchievementCriteria | ( | ) |
References AchievementMgr::CheckAllAchievementCriteria(), and m_achievementMgr.
Referenced by Create(), and WorldSession::HandlePlayerLoginFromDB().
bool Player::CheckAmmoCompatibility | ( | ItemTemplate const * | ammo_proto | ) | const |
References ItemTemplate::Class, Item::GetTemplate(), GetWeaponForAttack(), Item::IsBroken(), ITEM_CLASS_WEAPON, ITEM_SUBCLASS_ARROW, ITEM_SUBCLASS_BULLET, ITEM_SUBCLASS_WEAPON_BOW, ITEM_SUBCLASS_WEAPON_CROSSBOW, ITEM_SUBCLASS_WEAPON_GUN, RANGED_ATTACK, and ItemTemplate::SubClass.
Referenced by _ApplyAmmoBonuses().
void Player::CheckAreaExploreAndOutdoor | ( | ) |
References _wasOutdoor, ACHIEVEMENT_CRITERIA_TYPE_EXPLORE_AREA, AreaTableEntry::area_level, SpellInfo::Attributes, AURA_EFFECT_HANDLE_REAL, CONFIG_MAX_PLAYER_LEVEL, CONFIG_VMAP_INDOOR_CHECK, AreaTableEntry::exploreFlag, AreaTableEntry::flags, WorldObject::GetAreaId(), Object::GetGUID(), Unit::GetLevel(), WorldLocation::GetMapId(), WorldObject::GetName(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Aura::GetSpellInfo(), Object::GetUInt32Value(), GiveXP(), Aura::HandleAllEffects(), Unit::IsAlive(), Unit::IsInFlight(), WorldObject::IsOutdoors(), Aura::IsPassive(), LOG_DEBUG, LOG_ERROR, Unit::m_appliedAuras, PLAYER_EXPLORED_ZONES_1, PLAYER_EXPLORED_ZONES_SIZE, RATE_XP_EXPLORE, Unit::RemoveAura(), sAreaTableStore, SendExplorationExperience(), Unit::SetUInt32Value(), sObjectMgr, SPELL_ATTR0_ONLY_INDOORS, SPELL_ATTR0_ONLY_OUTDOORS, sScriptMgr, sWorld, Position::ToString(), UpdateAchievementCriteria(), and XPSOURCE_EXPLORE.
Referenced by UpdatePosition().
void Player::CheckDuelDistance | ( | time_t | currTime | ) |
References duel, DUEL_FLED, DuelComplete(), Map::GetGameObject(), Object::GetGuidValue(), WorldObject::GetMap(), GetSession(), WorldObject::IsWithinDistInMap(), PLAYER_DUEL_ARBITER, WorldSession::SendPacket(), SMSG_DUEL_INBOUNDS, and SMSG_DUEL_OUTOFBOUNDS.
Referenced by Update().
bool Player::CheckInstanceCount | ( | uint32 | instanceId | ) | const |
References _instanceResetTimes, CONFIG_MAX_INSTANCES_PER_HOUR, and sWorld.
Referenced by MapMgr::PlayerCannotEnter().
bool Player::CheckInstanceLoginValid | ( | ) |
References Map::CAN_ENTER, CONFIG_INSTANCE_IGNORE_RAID, GetGroup(), WorldObject::GetMap(), IsGameMaster(), sMapMgr, and sWorld.
Referenced by WorldSession::HandlePlayerLoginFromDB().
void Player::CleanupAfterTaxiFlight | ( | ) |
References PlayerTaxi::ClearTaxiDestinations(), Unit::Dismount(), Unit::getHostileRefMgr(), m_flightSpellActivated, m_taxi, Unit::RemoveAurasDueToSpell(), Unit::RemoveUnitFlag(), HostileRefMgr::setOnlineOfflineState(), UNIT_FLAG_DISABLE_MOVE, and UNIT_FLAG_TAXI_FLIGHT.
Referenced by go_commandscript::DoTeleport(), misc_commandscript::HandleAppearCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoTicketCommand(), go_commandscript::HandleGoZoneXYCommand(), misc_commandscript::HandleGroupSummonCommand(), WorldSession::HandleMoveSplineDoneOpcode(), WorldSession::HandleMoveWorldportAck(), tele_commandscript::HandleTeleCommand(), tele_commandscript::HandleTeleGroupCommand(), and TeleportTo().
void Player::CleanupChannels | ( | ) |
References Channel::LeaveChannel(), and m_channels.
Referenced by WorldSession::HandlePlayerLoginToCharInWorld(), and WorldSession::LogoutPlayer().
|
overridevirtual |
Reimplemented from WorldObject.
References Unit::CleanupsBeforeDelete(), DUEL_INTERRUPTED, DuelComplete(), and TradeCancel().
Referenced by WorldSession::LogoutPlayer().
|
inline |
void Player::ClearChannelWatch | ( | ) |
References m_channels.
Referenced by WorldSession::HandleSetChannelWatch().
|
inline |
References m_receivedSpectatorResetFor.
Referenced by WorldSession::HandleMoveWorldportAck().
|
inline |
References ObjectGuid::Empty, and setResurrectRequestData().
Referenced by WorldSession::HandleResurrectResponseOpcode(), Player(), and setDeathState().
|
inline |
References WhisperList.
Referenced by message_commandscript::HandleWhispersCommand().
void Player::CompletedAchievement | ( | AchievementEntry const * | entry | ) |
References AchievementMgr::CompletedAchievement(), and m_achievementMgr.
Referenced by achievement_commandscript::HandleAchievementAddCommand(), and ArenaSeasonTeamRewarderImpl::RewardWithAchievements().
void Player::CompleteQuest | ( | uint32 | quest_id | ) |
References ADDITIONAL_SAVING_INVENTORY_AND_GOLD, ADDITIONAL_SAVING_QUEST_STATUS, AdditionalSavingAddMask(), CHAR_UPD_QUEST_TRACK_COMPLETE_TIME, CharacterDatabase, CONFIG_QUEST_ENABLE_QUEST_TRACKER, FindQuestSlot(), WorldObject::GetAreaId(), Object::GetGUID(), WorldObject::GetZoneId(), Quest::HasFlag(), MAX_QUEST_LOG_SIZE, QUEST_FLAGS_TRACKING, QUEST_STATE_COMPLETE, QUEST_STATUS_COMPLETE, RewardQuest(), SetQuestSlotState(), SetQuestStatus(), sObjectMgr, sScriptMgr, sWorld, UpdateAreaDependentAuras(), and UpdateZoneDependentAuras().
Referenced by AddQuestAndCheckCompletion(), AreaExploredOrEventHappens(), WorldSession::HandleQuestgiverRequestRewardOpcode(), ItemAddedQuestCheck(), KillCreditGO(), KilledMonsterCredit(), KilledPlayerCreditForQuest(), MoneyChanged(), npc_love_in_air_supply_sentry::MoveInLineOfSight(), npc_plucky::OnGossipSelect(), ReputationChanged(), ReputationChanged2(), PlayerMenu::SendQuestGiverRequestItems(), TalkedToCreature(), and npc_clintar_spirit::npc_clintar_spiritAI::UpdateAI().
void Player::ContinueTaxiFlight | ( | ) |
References PlayerTaxi::ClearTaxiDestinations(), PlayerTaxi::GetCurrentTaxiPath(), Object::GetGUID(), WorldLocation::GetMapId(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetSession(), PlayerTaxi::GetTaxiSource(), GetTeamId(), Unit::IsInDisallowedMountForm(), Unit::IsMounted(), LOG_DEBUG, m_taxi, TaxiPathNodeEntry::mapid, Unit::RemoveAurasByType(), WorldSession::SendDoFlight(), SetCanTeleport(), SIZE_OF_GRIDS, sObjectMgr, SPELL_AURA_MOD_SHAPESHIFT, SPELL_AURA_MOUNTED, sTaxiPathNodesByPath, Position::ToString(), TaxiPathNodeEntry::x, TaxiPathNodeEntry::y, and TaxiPathNodeEntry::z.
Referenced by WorldSession::HandlePlayerLoginFromDB(), WorldSession::HandlePlayerLoginToCharInWorld(), and ProcessDelayedOperations().
References GetSession(), WorldSession::SendPacket(), SetCurrentRune(), and SMSG_CONVERT_RUNE.
Referenced by AddRuneByAuraEffect(), RemoveRunesByAuraEffect(), and RestoreBaseRune().
void Player::CorrectMetaGemEnchants | ( | uint8 | slot, |
bool | apply | ||
) |
References ApplyEnchantment(), SpellItemEnchantmentEntry::EnchantmentCondition, EnchantmentFitsRequirements(), EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Item::GetEnchantmentId(), GetItemByPos(), Item::HasSocket(), INVENTORY_SLOT_BAG_0, SOCK_ENCHANTMENT_SLOT, and sSpellItemEnchantmentStore.
Referenced by _ApplyItemMods().
bool Player::Create | ( | ObjectGuid::LowType | guidlow, |
CharacterCreateInfo * | createInfo | ||
) |
References Object::_Create(), PlayerInfo::action, addActionButton(), ItemTemplate::BuyCount, CanEquipItem(), CanStoreItem(), CanUseAmmo(), CheckAllAchievementCriteria(), ItemTemplate::Class, CharacterCreateInfo::Class, CLASS_CONTEXT_INIT, CLASS_DEATH_KNIGHT, CONFIG_GAME_TYPE, CONFIG_START_ARENA_POINTS, CONFIG_START_GM_LEVEL, CONFIG_START_HEROIC_PLAYER_LEVEL, CONFIG_START_HEROIC_PLAYER_MONEY, CONFIG_START_HONOR_POINTS, CONFIG_START_PLAYER_LEVEL, CONFIG_START_PLAYER_MONEY, EQUIP_ERR_OK, EquipItem(), CharacterCreateInfo::Face, CharacterCreateInfo::FacialHair, CharacterCreateInfo::Gender, GetCharStartOutfitEntry(), GameTime::GetGameTime(), GetItemByPos(), Unit::GetMaxPower(), ItemTemplate::GetMaxStackSize(), GetSession(), CharacterCreateInfo::HairColor, CharacterCreateInfo::HairStyle, HasActivePowerType(), InitDisplayIds(), InitGlyphsForLevel(), InitPrimaryProfessions(), InitRunes(), InitStatsForLevel(), InitTalentForLevel(), InitTaxiNodesForLevel(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, IsClass(), AccountMgr::IsPlayerAccount(), IsValidGender(), PlayerInfo::item, ITEM_CLASS_CONSUMABLE, ITEM_SUBCLASS_FOOD, KNOWN_TITLES_SIZE, LearnCustomSpells(), LearnDefaultSkills(), LOG_ERROR, m_items, m_Last_tick, WorldObject::m_name, m_Played_time, Unit::m_race, Unit::m_realRace, PlayerInfo::mapId, MAX_OUTFIT_ITEMS, CharacterCreateInfo::Name, NULL_BAG, NULL_SLOT, PlayerInfo::orientation, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, Player, PLAYER__FIELD_KNOWN_TITLES, PLAYER_BYTES, PLAYER_BYTES_2, PLAYER_BYTES_3, PLAYER_CHOSEN_TITLE, PLAYER_FIELD_COINAGE, PLAYER_FIELD_KILLS, PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, PLAYER_FIELD_TODAY_CONTRIBUTION, PLAYER_FIELD_WATCHED_FACTION_INDEX, PLAYER_FIELD_YESTERDAY_CONTRIBUTION, PLAYER_GUILD_TIMESTAMP, PLAYER_GUILDID, PLAYER_GUILDRANK, PLAYER_SLOTS_COUNT, PlayerInfo::positionX, PlayerInfo::positionY, PlayerInfo::positionZ, POWER_MANA, POWER_RUNE, POWER_RUNIC_POWER, ChrClassesEntry::powerType, CharacterCreateInfo::Race, REALM_TYPE_PVP, REALM_TYPE_RPPVP, Position::Relocate(), RemoveItem(), REST_STATE_NOT_RAF_LINKED, REST_STATE_RAF_LINKED, sChrClassesStore, SetAmmo(), SetArenaPoints(), Object::SetByteFlag(), Object::SetByteValue(), SetFactionForRace(), Object::SetFloatValue(), Unit::SetFullHealth(), SetHonorPoints(), Object::SetInt32Value(), SetMap(), Unit::SetMaxPower(), SetObjectScale(), Unit::SetPower(), Unit::SetUInt32Value(), Object::SetUInt64Value(), Unit::SetUnitFlag(), Unit::SetUnitFlag2(), CharacterCreateInfo::Skin, sMapMgr, sObjectMgr, SPELL_CATEGORY_DRINK, SPELL_CATEGORY_FOOD, _Spell::SpellCategory, ItemTemplate::Spells, StoreItem(), StoreNewItemInBestSlots(), ItemTemplate::SubClass, sWorld, UNIT_BYTE2_FLAG_PVP, UNIT_FIELD_BYTES_0, UNIT_FIELD_BYTES_2, UNIT_FIELD_HOVERHEIGHT, UNIT_FIELD_LEVEL, UNIT_FLAG2_REGENERATE_POWER, UNIT_FLAG_PLAYER_CONTROLLED, UNIT_MOD_CAST_SPEED, UpdateAllStats(), and UpdateMaxPower().
Corpse * Player::CreateCorpse | ( | ) |
References _corpseLocation, Map::AddCorpse(), BATTLEFIELD_BATTLEID_WG, CORPSE_FIELD_BYTES_1, CORPSE_FIELD_BYTES_2, CORPSE_FIELD_DISPLAY_ID, CORPSE_FIELD_FLAGS, CORPSE_FIELD_GUILD, CORPSE_FIELD_ITEM, CORPSE_FLAG_HIDE_CLOAK, CORPSE_FLAG_HIDE_HELM, CORPSE_FLAG_LOOTABLE, CORPSE_FLAG_UNK2, CORPSE_RESURRECTABLE_PVE, CORPSE_RESURRECTABLE_PVP, Corpse::Create(), ItemTemplate::DisplayInfoID, EQUIPMENT_SLOT_END, Object::GetByteValue(), GetGuildId(), WorldObject::GetMap(), Unit::GetNativeDisplayId(), Unit::getRace(), Item::GetTemplate(), Object::GetUInt32Value(), HasPlayerFlag(), InArena(), InBattleground(), ItemTemplate::InventoryType, Battlefield::IsWarTime(), m_ExtraFlags, m_items, PLAYER_BYTES, PLAYER_BYTES_2, PLAYER_BYTES_3, PLAYER_EXTRA_PVP_DEATH, PLAYER_FLAGS_HIDE_CLOAK, PLAYER_FLAGS_HIDE_HELM, Corpse::SaveToDB(), sBattlefieldMgr, SetPvPDeath(), Object::SetUInt32Value(), SpawnCorpseBones(), WorldObject::UpdatePositionData(), and WorldLocation::WorldRelocate().
Referenced by BuildPlayerRepop().
References Map::AddToMap(), Unit::CreateTamedPetFrom(), Creature::DespawnOrUnsummon(), CreatureTemplate::family, Object::GetEntry(), Unit::GetLevel(), WorldObject::GetMap(), Pet::InitTalentForLevel(), IsExistPet(), Unit::IsPet(), Object::IsPlayer(), PET_SAVE_AS_CURRENT, PetSpellInitialize(), Pet::SavePetToDB(), Unit::SetMinion(), Unit::SetUInt32Value(), sObjectMgr, Object::ToCreature(), and UNIT_FIELD_LEVEL.
Referenced by npc_commandscript::HandleNpcTameCommand(), and pet_commandscript::HandlePetCreateCommand().
References Map::AddToMap(), Unit::CreateTamedPetFrom(), CreatureTemplate::family, Unit::GetLevel(), WorldObject::GetMap(), Pet::InitTalentForLevel(), IsExistPet(), PET_SAVE_AS_CURRENT, PetSpellInitialize(), Pet::SavePetToDB(), Unit::SetMinion(), Unit::SetUInt32Value(), sObjectMgr, Object::ToCreature(), and UNIT_FIELD_LEVEL.
|
static |
References CHAR_UPD_GENDER_AND_APPEARANCE, CharacterDatabase, CharacterCustomizeInfo::Face, CharacterCustomizeInfo::FacialHair, CharacterCustomizeInfo::Gender, ObjectGuid::GetCounter(), CharacterRenameInfo::Guid, CharacterCustomizeInfo::HairColor, CharacterCustomizeInfo::HairStyle, PreparedStatementBase::SetData(), and CharacterCustomizeInfo::Skin.
Referenced by WorldSession::HandleCharCustomizeCallback(), and WorldSession::HandleCharFactionOrRaceChangeCallback().
void Player::DeleteEquipmentSet | ( | uint64 | setGuid | ) |
References EQUIPMENT_SET_DELETED, EQUIPMENT_SET_NEW, and m_EquipmentSets.
Referenced by WorldSession::HandleEquipmentSetDelete().
|
static |
Deletes a character from the database
The way, how the characters will be deleted is decided based on the config option.
playerguid | the low-GUID from the player which should be deleted |
accountId | the account id from the player |
updateRealmChars | when this flag is set, the amount of characters on that realm will be updated in the realmlist |
deleteFinally | if this flag is set, the config option will be ignored and the character will be permanently removed from the database |
References _LoadMailedItem(), MailDraft::AddItem(), MailDraft::AddMoney(), CHAR_DEL_CHAR_ACHIEVEMENT_PROGRESS, CHAR_DEL_CHAR_ACHIEVEMENTS, CHAR_DEL_CHAR_ACTION, CHAR_DEL_CHAR_AURA, CHAR_DEL_CHAR_DECLINED_NAME, CHAR_DEL_CHAR_EQUIPMENTSETS, CHAR_DEL_CHAR_GIFT, CHAR_DEL_CHAR_GLYPHS, CHAR_DEL_CHAR_INSTANCE, CHAR_DEL_CHAR_INVENTORY, CHAR_DEL_CHAR_PET_BY_OWNER, CHAR_DEL_CHAR_PET_DECLINEDNAME_BY_OWNER, CHAR_DEL_CHAR_QUESTSTATUS, CHAR_DEL_CHAR_QUESTSTATUS_REWARDED, CHAR_DEL_CHAR_REPUTATION, CHAR_DEL_CHAR_SETTINGS, CHAR_DEL_CHAR_SKILLS, CHAR_DEL_CHAR_SOCIAL_BY_FRIEND, CHAR_DEL_CHAR_SOCIAL_BY_GUID, CHAR_DEL_CHAR_SPELL, CHAR_DEL_CHAR_SPELL_COOLDOWN, CHAR_DEL_CHAR_TALENT, CHAR_DEL_CHARACTER, CHAR_DEL_GUILD_BANK_EVENTLOG_BY_PLAYER, CHAR_DEL_GUILD_EVENTLOG_BY_PLAYER, CHAR_DEL_ITEM_INSTANCE_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_ENTRY_POINT, CHAR_DEL_PLAYER_GM_TICKETS, CHAR_DEL_PLAYER_HOMEBIND, CHAR_DEL_QUEST_STATUS_DAILY_CHAR, CHAR_DEL_QUEST_STATUS_MONTHLY_CHAR, CHAR_DEL_QUEST_STATUS_SEASONAL_CHAR, CHAR_DEL_QUEST_STATUS_WEEKLY_CHAR, CHAR_DELETE_REMOVE, CHAR_DELETE_UNLINK, CHAR_SEL_CHAR_COD_ITEM_MAIL, CHAR_SEL_CHAR_PET_IDS, CHAR_SEL_CHAR_SOCIAL, CHAR_SEL_MAILITEMS, CHAR_UPD_DELETE_INFO, CHAR_UPD_PLAYER_GM_TICKETS_ON_CHAR_DELETION, CharacterDatabase, CONFIG_CHARDELETE_METHOD, CONFIG_CHARDELETE_MIN_LEVEL, CONFIG_DELETE_CHARACTER_TICKET_TRACE, Pet::DeleteFromDB(), Corpse::DeleteFromDB(), ObjectAccessor::FindPlayerByLowGUID(), FRIEND_REMOVED, Field::Get(), GmTicket::GetId(), LeaveAllArenaTeams(), LOG_ERROR, MAIL_NORMAL, Player, RemoveFromGroup(), RemovePetitionsAndSigns(), sCharacterCache, MailDraft::SendReturnToSender(), PreparedStatementBase::SetData(), sGroupMgr, sGuildMgr, SOCIAL_FLAG_ALL, sScriptMgr, sSocialMgr, sTicketMgr, and sWorld.
Referenced by AccountMgr::DeleteAccount(), DeleteOldCharacters(), character_commandscript::HandleCharacterDeletedDeleteCommand(), character_commandscript::HandleCharacterEraseCommand(), and WorldSession::HandleCharDeleteOpcode().
|
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.
References CONFIG_CHARDELETE_KEEP_DAYS, DeleteOldCharacters(), and sWorld.
Referenced by DeleteOldCharacters(), character_commandscript::HandleCharacterDeletedPurgeCommand(), and World::SetInitialWorldSettings().
|
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.
References CHAR_SEL_CHAR_OLD_CHARS, CharacterDatabase, DAY, DeleteFromDB(), GameTime::GetGameTime(), LOG_INFO, and PreparedStatementBase::SetData().
|
static |
Items which were kept back in the database after being deleted and are now too old (see config option "ItemDelete.KeepDays"), will be completely deleted.
References CONFIG_ITEMDELETE_KEEP_DAYS, DeleteOldRecoveryItems(), and sWorld.
Referenced by DeleteOldRecoveryItems(), and World::SetInitialWorldSettings().
|
static |
Items which were kept back in the database after being deleted and are older than the specified amount of days, will be completely deleted.
References CHAR_DEL_RECOVERY_ITEM_BY_GUID, CHAR_SEL_RECOVERY_ITEM_OLD_ITEMS, CharacterDatabase, DAY, Field::Get(), GameTime::GetGameTime(), LOG_INFO, and PreparedStatementBase::SetData().
void Player::DeleteRefundReference | ( | ObjectGuid | itemGUID | ) |
References m_refundableItems.
Referenced by _SaveInventory(), Item::SetNotRefundable(), and Item::SetState().
void Player::DestroyConjuredItems | ( | bool | update | ) |
References DestroyItem(), EQUIPMENT_SLOT_START, GetBagByPos(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, and LOG_DEBUG.
Referenced by Battleground::AddPlayer().
|
overridevirtual |
Reimplemented from Object.
References BANK_SLOT_BAG_END, CURRENCYTOKEN_SLOT_END, Object::DestroyForPlayer(), EQUIPMENT_SLOT_END, INVENTORY_SLOT_BAG_START, KEYRING_SLOT_START, and m_items.
References _ApplyItemMods(), BASE_ATTACK, CHAR_DEL_GIFT, CharacterDatabase, Item::ClearSoulboundTradeable(), CR_ARMOR_PENETRATION, Object::DestroyForPlayer(), DestroyItem(), ObjectGuid::Empty, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, GetBagByPos(), Item::GetCount(), ObjectGuid::GetCounter(), Object::GetEntry(), Object::GetGUID(), GetItemByPos(), Item::GetTemplate(), ItemTemplate::HasFlag(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, Object::IsInWorld(), Item::IsNotEmptyBag(), Item::IsWrapped(), ITEM_FIELD_CONTAINED, ITEM_FLAG_HAS_LOOT, ITEM_REMOVED, ITEM_SPELLTRIGGER_ON_NO_DELAY_USE, ItemRemovedQuestCheck(), ItemTemplate::ItemSet, LOG_DEBUG, m_items, MAX_BAG_SIZE, MAX_ITEM_PROTO_SPELLS, NULL_SLOT, OFF_ATTACK, PLAYER_FIELD_INV_SLOT_HEAD, RecalculateRating(), Unit::RemoveAurasDueToSpell(), RemoveEnchantmentDurations(), Object::RemoveFromWorld(), RemoveItemDependentAurasAndCasts(), RemoveItemDurations(), RemoveItemsSetItem(), RemoveTradeableItem(), PreparedStatementBase::SetData(), Object::SetGuidValue(), Item::SetNotRefundable(), Item::SetSlot(), Item::SetState(), SetVisibleItemSlot(), sLootItemStorage, _Spell::SpellId, ItemTemplate::Spells, _Spell::SpellTrigger, sScriptMgr, and UpdateExpertise().
Referenced by AddQuestAndCheckCompletion(), DestroyConjuredItems(), DestroyItem(), DestroyItemCount(), DestroyItemCount(), DestroyZoneLimitedItem(), WorldSession::DoLootRelease(), Spell::EffectSummonChangeItem(), bg_commandscript::HandleBagsClearCommand(), debug_commandscript::HandleDebugItemExpireCommand(), WorldSession::HandleDestroyItemOpcode(), WorldSession::HandleOpenWrappedItemCallback(), WorldSession::HandleSocketOpcode(), WorldSession::HandleTurnInPetitionOpcode(), RefundItem(), reset_commandscript::ResetItemsDeleteBankBags(), reset_commandscript::ResetItemsDeleteStandardBags(), reset_commandscript::ResetItemsEquipped(), reset_commandscript::ResetItemsInBags(), reset_commandscript::ResetItemsInBank(), reset_commandscript::ResetItemsInCurrenciesList(), reset_commandscript::ResetItemsInKeyring(), and Item::UpdateDuration().
References DestroyItem(), Item::GetBagSlot(), Item::GetCount(), Object::GetEntry(), Object::GetGUID(), Item::GetSlot(), Object::IsInWorld(), ITEM_CHANGED, ItemRemovedQuestCheck(), LOG_DEBUG, Object::SendUpdateToPlayer(), Item::SetCount(), Item::SetState(), and ObjectGuid::ToString().
void Player::DestroyItemCount | ( | uint32 | item, |
uint32 | count, | ||
bool | update, | ||
bool | unequip_check = false |
||
) |
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, BANK_SLOT_ITEM_END, BANK_SLOT_ITEM_START, CanUnequipItem(), CURRENCYTOKEN_SLOT_END, DestroyItem(), EQUIP_ERR_OK, EQUIPMENT_SLOT_START, GetBagByPos(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, Object::IsInWorld(), ITEM_CHANGED, ItemRemovedQuestCheck(), KEYRING_SLOT_START, and LOG_DEBUG.
Referenced by _StoreOrEquipNewItem(), AbandonQuest(), WorldSession::DoLootRelease(), Spell::EffectCreateItem2(), Spell::EffectEnchantItemPerm(), Spell::EffectFeedPet(), Spell::EffectScriptEffect(), FailQuest(), go_ahune_ice_stone::GossipSelect(), misc_commandscript::HandleAddItemCommand(), spell_brewfest_fill_keg::HandleAfterHit(), spell_brewfest_unfill_keg::HandleAfterHit(), WorldSession::HandleDestroyItemOpcode(), spell_item_massive_seaforium_charge::HandleItemRemove(), WorldSession::HandleWrapItemOpcode(), npc_brewfest_keg_reciver::MoveInLineOfSight(), at_hor_battered_hilt_throw::OnTrigger(), npc_oculus_drakegiver::RemoveEssence(), spell_najentus_remove_spines::RemoveSpines(), RewardQuest(), npc_finklestein::npc_finklesteinAI::RightClickCauldron(), Spell::TakeAmmo(), Spell::TakeCastItem(), TakeQuestSourceItem(), and Spell::TakeReagents().
void Player::DestroyZoneLimitedItem | ( | bool | update, |
uint32 | new_zone | ||
) |
References CURRENCYTOKEN_SLOT_END, DestroyItem(), EQUIPMENT_SLOT_START, GetBagByPos(), GetItemByPos(), WorldLocation::GetMapId(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, KEYRING_SLOT_START, and LOG_DEBUG.
Referenced by UpdateZone().
References ASSERT, GetGroup(), Object::GetGUID(), WorldPackets::Misc::RandomRoll::Max, WorldPackets::Misc::RandomRoll::Min, WorldPackets::Misc::RandomRoll::Result, WorldPackets::Misc::RandomRoll::Roller, SendDirectMessage(), urand(), and WorldPackets::Misc::RandomRoll::Write().
Referenced by WorldSession::HandleRandomRollOpcode(), and spell_item_worn_troll_dice::HandleScript().
void Player::DropModCharge | ( | SpellModifier * | mod, |
Spell * | spell | ||
) |
References SpellModifier::charges, Spell::m_appliedMods, and SpellModifier::ownerAura.
Referenced by ApplySpellMod().
void Player::DuelComplete | ( | DuelCompleteType | type | ) |
References ACHIEVEMENT_CRITERIA_TYPE_LOSE_DUEL, ACHIEVEMENT_CRITERIA_TYPE_WIN_DUEL, Unit::AttackStop(), Unit::CastSpell(), CLASS_CONTEXT_QUEST, CLASS_DEATH_KNIGHT, Unit::ClearComboPoints(), CONFIG_HONOR_AFTER_DUEL, duel, DUEL_FLED, DUEL_INTERRUPTED, DUEL_STATE_COMPLETED, DUEL_WON, ObjectGuid::Empty, Unit::GetAppliedAuras(), Aura::GetApplyTime(), Aura::GetCasterGUID(), Unit::GetComboTarget(), Unit::GetComboTargetGUID(), Map::GetGameObject(), Object::GetGUID(), Object::GetGUID(), Object::GetGuidValue(), WorldObject::GetMap(), WorldObject::GetName(), Unit::GetPetGUID(), GetQuestStatus(), GetSession(), GetTeamId(), WorldPacket::Initialize(), IsClass(), IsPvP(), LOG_DEBUG, PLAYER_DUEL_ARBITER, PLAYER_DUEL_TEAM, QUEST_STATUS_INCOMPLETE, Unit::RemoveAura(), RewardHonor(), SendDirectMessage(), SendMessageToSet(), Object::SetGuidValue(), Unit::SetUInt32Value(), SMSG_DUEL_COMPLETE, SMSG_DUEL_WINNER, sScriptMgr, sWorld, ObjectGuid::ToString(), Position::ToString(), and UpdateAchievementCriteria().
Referenced by Unit::_ExitVehicle(), CheckDuelDistance(), CleanupsBeforeDelete(), Unit::DealDamage(), WorldSession::HandleDuelCancelledOpcode(), and TeleportTo().
void Player::DurabilityLoss | ( | Item * | item, |
double | percent | ||
) |
References DurabilityPointsLoss(), Object::GetUInt32Value(), and ITEM_FIELD_MAXDURABILITY.
Referenced by DurabilityLossAll(), Spell::EffectDurabilityDamagePCT(), and Spell::EffectSummonChangeItem().
void Player::DurabilityLossAll | ( | double | percent, |
bool | inventory | ||
) |
References DurabilityLoss(), EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, GetBagByPos(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, and INVENTORY_SLOT_ITEM_START.
Referenced by Spell::EffectDurabilityDamagePCT(), EnvironmentalDamage(), and WorldSession::SendSpiritResurrect().
void Player::DurabilityPointLossForEquipSlot | ( | EquipmentSlots | slot | ) |
References DurabilityPointsLoss(), GetItemByPos(), and INVENTORY_SLOT_BAG_0.
Referenced by Unit::DealDamage(), and Spell::TakeAmmo().
References _ApplyItemMods(), Item::GetSlot(), Object::GetUInt32Value(), Unit::HasPreventDurabilityLossAura(), Item::IsEquipped(), ITEM_CHANGED, ITEM_FIELD_DURABILITY, ITEM_FIELD_MAXDURABILITY, Item::SetState(), and Object::SetUInt32Value().
Referenced by DurabilityLoss(), DurabilityPointLossForEquipSlot(), DurabilityPointsLossAll(), and Spell::EffectDurabilityDamage().
void Player::DurabilityPointsLossAll | ( | int32 | points, |
bool | inventory | ||
) |
References DurabilityPointsLoss(), EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, and INVENTORY_SLOT_ITEM_START.
Referenced by Spell::EffectDurabilityDamage().
References _ApplyItemMods(), ItemTemplate::Class, GetGuildId(), GetItemByPos(), GetSession(), Item::GetTemplate(), Object::GetUInt32Value(), Guild::HandleMemberWithdrawMoney(), HasEnoughMoney(), IsEquipmentPos(), ITEM_CHANGED, ITEM_FIELD_DURABILITY, ITEM_FIELD_MAXDURABILITY, ItemTemplate::ItemLevel, ItemSubClassToDurabilityMultiplierId(), LOG_ERROR, ModifyMoney(), DurabilityCostsEntry::multiplier, ItemTemplate::Quality, DurabilityQualityEntry::quality_mod, RATE_REPAIRCOST, sDurabilityCostsStore, sDurabilityQualityStore, Item::SetState(), Object::SetUInt32Value(), sGuildMgr, ItemTemplate::SubClass, and sWorld.
Referenced by DurabilityRepairAll(), and WorldSession::HandleRepairItemOpcode().
uint32 Player::DurabilityRepairAll | ( | bool | cost, |
float | discountMod, | ||
bool | guildBank | ||
) |
References DurabilityRepair(), EQUIPMENT_SLOT_START, INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, and MAX_BAG_SIZE.
Referenced by WorldSession::HandleRepairItemOpcode().
References BONUS_ENCHANTMENT_SLOT, GemPropertiesEntry::color, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, SpellItemEnchantmentEntry::GemID, ItemTemplate::GemProperties, Item::GetEnchantmentId(), GetItemByPos(), Item::HasSocket(), INVENTORY_SLOT_BAG_0, Item::IsBroken(), LOG_DEBUG, PRISMATIC_ENCHANTMENT_SLOT, sGemPropertiesStore, sObjectMgr, SOCK_ENCHANTMENT_SLOT, sSpellItemEnchantmentConditionStore, and sSpellItemEnchantmentStore.
Referenced by ApplyEnchantment(), and CorrectMetaGemEnchants().
uint32 Player::EnvironmentalDamage | ( | EnviromentalDamage | type, |
uint32 | damage | ||
) |
References WorldPackets::CombatLog::EnvironmentalDamageLog::Absorbed, ACHIEVEMENT_CRITERIA_TYPE_DEATHS_FROM, WorldPackets::CombatLog::EnvironmentalDamageLog::Amount, Unit::CalcAbsorbResist(), DAMAGE_FALL, DAMAGE_FALL_TO_VOID, DAMAGE_LAVA, DAMAGE_SLIME, Unit::DealDamage(), Unit::DealDamageMods(), DIRECT_DAMAGE, DurabilityLossAll(), DamageInfo::GetAbsorb(), DamageInfo::GetDamage(), Object::GetGUID(), WorldObject::GetName(), DamageInfo::GetResist(), Unit::IsAlive(), IsImmuneToEnvironmentalDamage(), LOG_DEBUG, RATE_DURABILITY_LOSS_ON_DEATH, WorldPackets::CombatLog::EnvironmentalDamageLog::Resisted, SELF_DAMAGE, SendDurabilityLoss(), SendMessageToSet(), SPELL_SCHOOL_MASK_FIRE, SPELL_SCHOOL_MASK_NATURE, SPELL_SCHOOL_MASK_NORMAL, sWorld, Position::ToString(), WorldPackets::CombatLog::EnvironmentalDamageLog::Type, UpdateAchievementCriteria(), WorldPackets::CombatLog::EnvironmentalDamageLog::Victim, and WorldPackets::CombatLog::EnvironmentalDamageLog::Write().
Referenced by Spell::EffectEnvironmentalDMG(), HandleDrowning(), HandleFall(), and WorldSession::HandleMovementOpcodes().
References _ApplyItemMods(), ACHIEVEMENT_CRITERIA_TYPE_EQUIP_EPIC_ITEM, ACHIEVEMENT_CRITERIA_TYPE_EQUIP_ITEM, AddEnchantmentDurations(), GlobalCooldownMgr::AddGlobalCooldown(), AddItemDurations(), AddItemsSetItem(), Object::AddToWorld(), ApplyEquipCooldown(), BASE_ATTACK, Unit::BuildCooldownPacket(), ItemTemplate::Class, CLASS_CONTEXT_WEAPON_SWAP, CLASS_ROGUE, Item::ClearSoulboundTradeable(), CR_ARMOR_PENETRATION, Object::DestroyForPlayer(), EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, Item::GetCount(), Object::GetEntry(), GetGlobalCooldownMgr(), Object::GetGUID(), GetItemByPos(), GetSession(), Item::GetTemplate(), ItemTemplate::InventoryType, INVTYPE_RELIC, Unit::IsAlive(), IsClass(), Unit::IsInCombat(), Object::IsInWorld(), ITEM_CHANGED, ITEM_CLASS_WEAPON, ITEM_REMOVED, ItemTemplate::ItemSet, LOG_ERROR, m_weaponChangeTimer, OFF_ATTACK, RecalculateRating(), RemoveEnchantmentDurations(), Object::RemoveFromWorld(), RemoveItemDurations(), RemoveTradeableItem(), WorldSession::SendPacket(), Object::SendUpdateToPlayer(), Item::SetCount(), Item::SetNotRefundable(), Item::SetOwnerGUID(), Item::SetState(), SPELL_COOLDOWN_FLAG_INCLUDE_GCD, sScriptMgr, sSpellMgr, SpellInfo::StartRecoveryTime, UpdateAchievementCriteria(), UpdateExpertise(), UpdateForQuestWorldObjects(), and VisualizeItem().
Referenced by Create(), Spell::EffectSummonChangeItem(), EquipNewItem(), WorldSession::HandleAutoEquipItemOpcode(), SplitItem(), and SwapItem().
References ACHIEVEMENT_CRITERIA_TYPE_RECEIVE_EPIC_ITEM, ADDITIONAL_SAVING_INVENTORY_AND_GOLD, AdditionalSavingAddMask(), Item::CreateItem(), EquipItem(), IsEquipmentPos(), ITEM_QUALITY_RARE, ItemAddedQuestCheck(), sObjectMgr, sScriptMgr, and UpdateAchievementCriteria().
Referenced by _StoreOrEquipNewItem(), and StoreNewItemInBestSlots().
void Player::ExecuteOrCancelSpellCastRequest | ( | PendingSpellCastRequest * | castRequest, |
bool | isCancel = false |
||
) |
References PendingSpellCastRequest::cancelInProgress, GetSession(), PendingSpellCastRequest::isItem, and PendingSpellCastRequest::requestPacket.
Referenced by ProcessSpellQueue().
void Player::FailQuest | ( | uint32 | quest_id | ) |
References BIND_QUEST_ITEM, DestroyItemCount(), FindQuestSlot(), GetQuestStatus(), m_QuestStatus, MAX_QUEST_LOG_SIZE, QUEST_ITEM_OBJECTIVES_COUNT, QUEST_SOURCE_ITEM_IDS_COUNT, QUEST_SPECIAL_FLAGS_CAN_FAIL_IN_ANY_STATE, QUEST_SPECIAL_FLAGS_TIMED, QUEST_STATE_FAIL, QUEST_STATUS_FAILED, QUEST_STATUS_INCOMPLETE, RemoveTimedQuest(), SendQuestFailed(), SendQuestTimerFailed(), SetQuestSlotState(), SetQuestSlotTimer(), SetQuestStatus(), sObjectMgr, and QuestStatusData::Timer.
Referenced by npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::CheckEventFail(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::CheckEventFail(), SmartAI::EndPath(), dragonmaw_race_npc::FailQuest(), npc_clintar_spirit::npc_clintar_spiritAI::JustDied(), npc_captain_saeed::npc_captain_saeedAI::JustDied(), npc_darnavan::npc_darnavanAI::JustDied(), npc_doctor::npc_doctorAI::PatientDied(), Map::ScriptsProcess(), Update(), and npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI().
uint8 Player::FindEquipSlot | ( | ItemTemplate const * | proto, |
uint32 | slot, | ||
bool | swap | ||
) | const |
References Unit::CanDualWield(), CanTitanGrip(), CLASS_CONTEXT_EQUIP_RELIC, CLASS_DEATH_KNIGHT, CLASS_DRUID, CLASS_PALADIN, CLASS_SHAMAN, CLASS_WARLOCK, 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_RANGED, EQUIPMENT_SLOT_SHOULDERS, EQUIPMENT_SLOT_TABARD, EQUIPMENT_SLOT_TRINKET1, EQUIPMENT_SLOT_TRINKET2, EQUIPMENT_SLOT_WAIST, EQUIPMENT_SLOT_WRISTS, GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_START, ItemTemplate::InventoryType, 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_RANGED, INVTYPE_RANGEDRIGHT, INVTYPE_RELIC, INVTYPE_ROBE, INVTYPE_SHIELD, INVTYPE_SHOULDERS, INVTYPE_TABARD, INVTYPE_THROWN, INVTYPE_TRINKET, INVTYPE_WAIST, INVTYPE_WEAPON, INVTYPE_WEAPONMAINHAND, INVTYPE_WEAPONOFFHAND, INVTYPE_WRISTS, IsClass(), IsTwoHandUsed(), ITEM_SUBCLASS_ARMOR_IDOL, ITEM_SUBCLASS_ARMOR_LIBRAM, ITEM_SUBCLASS_ARMOR_MISC, ITEM_SUBCLASS_ARMOR_SIGIL, ITEM_SUBCLASS_ARMOR_TOTEM, ITEM_SUBCLASS_WEAPON_FISHING_POLE, ITEM_SUBCLASS_WEAPON_POLEARM, ITEM_SUBCLASS_WEAPON_STAFF, NULL_SLOT, and ItemTemplate::SubClass.
Referenced by CanEquipItem(), and WorldSession::HandleAutoEquipItemOpcode().
References GetQuestSlotQuestId(), and MAX_QUEST_LOG_SIZE.
Referenced by AddQuest(), npc_love_in_air_snivel::AllowAction(), AreaExploredOrEventHappens(), CompleteQuest(), Spell::EffectQuestComplete(), FailQuest(), WorldSession::HandleQuestPOIQuery(), IncompleteQuest(), RewardQuest(), SatisfyQuestLog(), SendQuestUpdateAddCreatureOrGo(), and SendQuestUpdateAddPlayer().
|
inline |
References m_achievementMgr.
ActionButton const * Player::GetActionButton | ( | uint8 | button | ) |
References ACTIONBUTTON_DELETED, and m_actionButtons.
Referenced by Spell::EffectCastButtons().
|
inline |
References m_activeSpec.
Referenced by _addSpell(), ActivateSpec(), GetMostPointsTalentTree(), GetTalentTreePoints(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleShapeshiftBoosts(), HasCasterSpec(), HasHealSpec(), HasMeleeSpec(), learnSkillRewardedSpells(), LearnTalent(), PrepareCharmAISpells(), and SendInitialSpells().
|
inline |
References m_activeSpec.
Referenced by ActivateSpec(), addTalent(), learnSpell(), LearnTalent(), resetTalents(), and SendInitialSpells().
|
inline |
References ARENA_TEAM_END, ARENA_TEAM_PERSONAL_RATING, Object::GetUInt32Value(), PLAYER_FIELD_ARENA_TEAM_INFO_1_1, and sScriptMgr.
Referenced by GetMaxPersonalArenaRatingRequirement().
|
inline |
References Object::GetUInt32Value(), and PLAYER_FIELD_ARENA_CURRENCY.
Referenced by _SaveCharacter(), BuyItemFromVendorSlot(), modify_commandscript::HandleModifyArenaCommand(), and ModifyArenaPoints().
References ARENA_TEAM_END, ARENA_TEAM_ID, Object::GetUInt32Value(), PLAYER_FIELD_ARENA_TEAM_INFO_1_1, and sScriptMgr.
Referenced by ArenaTeam::AddMember(), Group::CanJoinBattlegroundQueue(), GetMaxPersonalArenaRatingRequirement(), WorldSession::HandleArenaTeamAcceptOpcode(), WorldSession::HandleArenaTeamInviteOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleInspectArenaTeamsOpcode(), WorldSession::HandleOfferPetitionOpcode(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandlePetitionSignOpcode(), WorldSession::HandleTurnInPetitionOpcode(), and AchievementMgr::UpdateAchievementCriteria().
|
static |
References CHAR_SEL_ARENA_TEAM_ID_BY_PLAYER_GUID, CharacterDatabase, ObjectGuid::GetCounter(), and PreparedStatementBase::SetData().
Referenced by arena_commandscript::HandleArenaCreateCommand().
|
inline |
|
inline |
References BASE_ATTACK, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, MAX_ATTACK, OFF_ATTACK, and RANGED_ATTACK.
Referenced by _ApplyAllItemMods(), _ApplyAllLevelScaleItemMods(), _ApplyItemBonuses(), _ApplyItemMods(), _ApplyWeaponDamage(), _RemoveAllItemMods(), CanEquipItem(), CanUnequipItem(), GetUseableItemByPos(), AuraEffect::HandleAuraModDisarm(), Unit::HandleDummyAuraProc(), and UpdateEquipSpellsAtFormChange().
void Player::GetAurasForTarget | ( | Unit * | target, |
bool | force = false |
||
) |
Blizz sends certain movement packets sometimes even before CreateObject These movement packets are usually found in SMSG_COMPRESSED_MOVES
References AuraApplication::BuildUpdatePacket(), Object::GetPackGUID(), GetSession(), Unit::GetVisibleAuras(), Unit::HasFeatherFallAura(), Unit::HasHoverAura(), Unit::HasWaterWalkAura(), Unit::SendMovementFeatherFall(), Unit::SendMovementHover(), Unit::SendMovementWaterWalking(), WorldSession::SendPacket(), and SMSG_AURA_UPDATE_ALL.
Referenced by GetInitialVisiblePackets(), and Map::SendInitSelf().
|
inline |
float Player::GetAverageItemLevel | ( | ) |
References EQUIPMENT_SLOT_BODY, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, EQUIPMENT_SLOT_START, EQUIPMENT_SLOT_TABARD, ItemTemplate::GetItemLevelIncludingQuality(), Unit::GetLevel(), Item::GetTemplate(), and m_items.
Referenced by spell_gen_vehicle_scaling_aura::CalculateAmount(), gear_commandscript::HandleGearStatsCommand(), and lfg::LFGMgr::UpdateRaidBrowser().
float Player::GetAverageItemLevelForDF | ( | ) |
References EQUIPMENT_SLOT_BODY, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, EQUIPMENT_SLOT_START, EQUIPMENT_SLOT_TABARD, Unit::GetLevel(), Item::GetTemplate(), ITEM_QUALITY_HEIRLOOM, ItemTemplate::ItemLevel, and m_items.
Referenced by lfg::LFGMgr::InitializeLockedDungeons(), and Satisfy().
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, and Item::ToBag().
Referenced by _StoreItem(), CanStoreItem_InBag(), CanStoreItem_InSpecificSlot(), CanStoreItems(), CanUnequipItems(), DestroyConjuredItems(), DestroyItem(), DestroyItemCount(), DestroyZoneLimitedItem(), DurabilityLossAll(), GetFreeInventorySpace(), GetItemByEntry(), GetItemByGuid(), GetItemByPos(), GetItemCount(), GetItemCountWithLimitCategory(), bg_commandscript::HandleBagsClearCommand(), WorldSession::HandleBuyItemInSlotOpcode(), character_commandscript::HandleCharacterCheckBagCommand(), inventory_commandscript::HandleInventoryCountCommand(), HasItemCount(), HasItemTotemCategory(), IsValidPos(), RemoveArenaEnchantments(), and RemoveItem().
|
inline |
References Object::GetByteValue(), and PLAYER_BYTES_2.
Referenced by CanBankItem(), and WorldSession::HandleBuyBankSlotOpcode().
uint32 Player::GetBarberShopCost | ( | uint8 | newhairstyle, |
uint8 | newhaircolor, | ||
uint8 | newfacialhair, | ||
BarberShopStyleEntry const * | newSkin = nullptr |
||
) |
References GtBarberShopCostBaseEntry::cost, Object::GetByteValue(), Unit::GetLevel(), GT_MAX_LEVEL, BarberShopStyleEntry::hair_id, PLAYER_BYTES, PLAYER_BYTES_2, and sGtBarberShopCostBaseStore.
Referenced by WorldSession::HandleAlterAppearance().
|
inline |
float Player::GetBaseModValue | ( | BaseModGroup | modGroup, |
BaseModType | modType | ||
) | const |
References BASEMOD_END, LOG_ERROR, m_auraBaseMod, and PCT_MOD.
References RuneInfo::BaseRune, m_runes, and Runes::runes.
Referenced by Spell::EffectActivateRune(), GetRuneBaseCooldown(), IsBaseRuneSlotsOnCooldown(), RemoveRunesByAuraEffect(), RestoreBaseRune(), Spell::TakeRunePower(), and UpdateRuneRegen().
References Object::GetUInt32Value(), mSkillStatus, PLAYER_SKILL_BONUS_INDEX, PLAYER_SKILL_VALUE_INDEX, SKILL_DELETED, SKILL_PERM_BONUS, and SKILL_VALUE.
Referenced by npc_engineering_tele_trinket::CanLearn(), GetBaseDefenseSkillValue(), GetBaseWeaponSkillValue(), GetTrainerSpellState(), npc_prof_alchemy::OnGossipHello(), npc_prof_blacksmith::OnGossipHello(), npc_prof_leather::OnGossipHello(), npc_prof_tailor::OnGossipHello(), go_evil_book_for_dummies::OnGossipHello(), and SatisfyQuestSkill().
|
inline |
References m_baseSpellPower.
Referenced by _SaveStats(), Unit::SpellBaseDamageBonusDone(), and Unit::SpellBaseHealingBonusDone().
uint32 Player::GetBaseWeaponSkillValue | ( | WeaponAttackType | attType | ) | const |
References BASE_ATTACK, GetBaseSkillValue(), Item::GetSkill(), GetWeaponForAttack(), and SKILL_UNARMED.
Referenced by UpdateCombatSkills().
Battleground * Player::GetBattleground | ( | bool | create = false | ) | const |
References Battleground::FindBgMap(), GetBattlegroundId(), GetBattlegroundTypeId(), and sBattlegroundMgr.
Referenced by GameObject::ActivateToQuest(), CanEquipItem(), Group::CanJoinBattlegroundQueue(), CanUnequipItem(), Spell::CheckCast(), MapInstanced::CreateInstanceForPlayer(), Object::DestroyForPlayer(), Spell::EffectOpenLock(), WorldSession::HandleAreaSpiritHealerQueryOpcode(), WorldSession::HandleAreaSpiritHealerQueueOpcode(), WorldSession::HandleAreaTriggerOpcode(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModEffectImmunity(), WorldSession::HandleBattlefieldLeaveOpcode(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlefieldStatusOpcode(), WorldSession::HandleBattlegroundPlayerPositionsOpcode(), spell_item_rocket_boots::HandleDummy(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleMovementOpcodes(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandlePVPLogDataOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), spell_ioc_gunship_portal::HandleScript2(), InArena(), SpellArea::IsFitToRequirements(), Unit::Kill(), LeaveBattleground(), AchievementCriteriaData::Meets(), Unit::Mount(), achievement_resilient_victory::OnCheck(), achievement_bg_control_all_nodes::OnCheck(), achievement_bg_ic_resource_glut::OnCheck(), achievement_arena_by_type::OnCheck(), achievement_everything_counts::OnCheck(), achievement_bg_av_perfection::OnCheck(), achievement_sa_defense_of_the_ancients::OnCheck(), achievement_not_even_a_scratch::OnCheck(), achievement_save_the_day::OnCheck(), go_arena_ready_marker::OnGossipHello(), RepopAtGraveyard(), ReportedAfkBy(), ResurrectPlayer(), RewardHonor(), SendInitWorldStates(), SendLoot(), SummonIfPossible(), AchievementMgr::UpdateAchievementCriteria(), and GameObject::Use().
|
inline |
References BGData::bgInstanceID, and m_bgData.
Referenced by BattlegroundMap::CannotEnter(), MapInstanced::CreateInstanceForPlayer(), GetBattleground(), GiveXP(), ArenaSpectator::HandleSpectatorSpectateCommand(), RemovedInsignia(), and TeleportTo().
uint32 Player::GetBattlegroundQueueIndex | ( | BattlegroundQueueTypeId | bgQueueTypeId | ) | const |
References _BgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by BGQueueInviteEvent::Execute(), BGQueueRemoveEvent::Execute(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlemasterJoinArena(), InBattlegroundQueueForBattlegroundQueueType(), and BattlegroundQueue::InviteGroupToBG().
BattlegroundQueueTypeId Player::GetBattlegroundQueueTypeId | ( | uint32 | index | ) | const |
References _BgBattlegroundQueueID.
Referenced by WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlefieldStatusOpcode(), and WorldSession::LogoutPlayer().
|
inline |
References BGData::bgTypeID, and m_bgData.
Referenced by GetBattleground(), and ArenaSpectator::HandleSpectatorSpectateCommand().
bool Player::GetBGAccessByLevel | ( | BattlegroundTypeId | bgTypeId | ) | const |
References DEFAULT_MAX_LEVEL, Unit::GetLevel(), Battleground::GetMaxLevel(), and sBattlegroundMgr.
Referenced by Group::CanJoinBattlegroundQueue(), WorldSession::HandleBattlemasterHelloOpcode(), WorldSession::HandleBattlemasterJoinOpcode(), and Creature::isCanInteractWithBattleMaster().
|
inline |
References BGData::bgTeamId, GetTeamId(), m_bgData, and TEAM_NEUTRAL.
Referenced by Battleground::AddPlayer(), Arena::AddPlayer(), Battleground::GetClosestGraveyard(), Battleground::GetRealRepFactionForPlayer(), WorldSession::HandleBattlefieldStatusOpcode(), Battleground::HandleKillPlayer(), ArenaSpectator::HandleResetCommand(), Battleground::PlayerAddedToBGCheckIfBGIsRunning(), Battleground::RemovePlayerAtLeave(), RewardHonor(), BattlegroundMgr::SendToBattleground(), spell_item_recall::SetDest(), and Battleground::SpiritOfCompetitionEvent().
|
inline |
References m_extraBonusTalentCount.
const PendingSpellCastRequest * Player::GetCastRequest | ( | uint32 | category | ) | const |
References SpellQueue.
Referenced by CanRequestSpellCast().
|
inline |
uint8 Player::GetChatTag | ( | ) | const |
References CHAT_TAG_AFK, CHAT_TAG_COM, CHAT_TAG_DEV, CHAT_TAG_DND, CHAT_TAG_GM, CHAT_TAG_NONE, isAFK(), IsCommentator(), IsDeveloper(), isDND(), and isGMChat().
|
inline |
References m_cinematic.
Referenced by WorldSession::HandlePlayerLoginFromDB().
|
inline |
References _cinematicMgr.
Referenced by WorldSession::HandleCompleteCinematic(), and WorldSession::HandleNextCinematicCamera().
|
inline |
References _activeCheats.
Referenced by Spell::_cast(), Spell::CheckPower(), Spell::CheckRuneCost(), Unit::DealDamage(), Spell::EffectInstaKill(), cheat_commandscript::HandleCasttimeCheatCommand(), cheat_commandscript::HandleCheatStatusCommand(), cheat_commandscript::HandleCoolDownCheatCommand(), HandleFall(), cheat_commandscript::HandleGodModeCheatCommand(), cheat_commandscript::HandlePowerCheatCommand(), cheat_commandscript::HandleWaterWalkCheatCommand(), Spell::prepare(), Regenerate(), Unit::SendAttackStateUpdate(), Unit::SendSpellNonMeleeDamageLog(), Unit::SendSpellNonMeleeReflectLog(), Spell::TakePower(), and Spell::TriggerGlobalCooldown().
Corpse * Player::GetCorpse | ( | ) | const |
References Map::GetCorpseByPlayer(), Object::GetGUID(), and WorldObject::GetMap().
Referenced by KillRewarder::_RewardKillCredit(), BuildPlayerRepop(), CalculateCorpseReclaimDelay(), GroupEventHappens(), WorldSession::HandleReclaimCorpseOpcode(), IsAtGroupRewardDistance(), IsAtRecruitAFriendDistance(), RemoveCorpse(), RewardPlayerAndGroupAtEvent(), and npc_custodian_of_time::npc_custodian_of_timeAI::WaypointReached().
|
inline |
uint32 Player::GetCorpseReclaimDelay | ( | bool | pvp | ) | const |
References CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVE, CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVP, copseReclaimDelay, DEATH_EXPIRE_STEP, GameTime::GetGameTime(), m_deathExpireTime, and sWorld.
Referenced by CalculateCorpseReclaimDelay(), and WorldSession::HandleReclaimCorpseOpcode().
|
inline |
References m_creationTime.
|
inline |
References BGData::bgQueueSlot, and m_bgData.
Referenced by WorldSession::HandleBattlefieldStatusOpcode(), Battleground::PlayerAddedToBGCheckIfBGIsRunning(), and Battleground::RemovePlayerAtLeave().
References RuneInfo::CurrentRune, m_runes, and Runes::runes.
Referenced by Spell::CheckRuneCost(), Spell::EffectActivateRune(), AuraEffect::HandleAuraConvertRune(), ResyncRunes(), and Spell::TakeRunePower().
|
inline |
|
overridevirtual |
Reimplemented from Object.
References Unit::GetDebugInfo().
|
inline |
References m_declinedname.
|
static |
References Creature::GetCreatureTemplate(), GameObject::GetGOInfo(), GameObjectTemplate::GetGossipMenuId(), Object::GetTypeId(), CreatureTemplate::GossipMenuId, Object::ToCreature(), Object::ToGameObject(), TYPEID_GAMEOBJECT, and TYPEID_UNIT.
Referenced by GetGossipTextId(), and PrepareGossipMenu().
|
inline |
|
inline |
References m_dungeonDifficulty, and m_raidDifficulty.
Referenced by Group::_cancelHomebindIfInstance(), MapInstanced::CreateInstanceForPlayer(), WorldSession::HandleMoveWorldportAck(), HasQuestForGO(), HasQuestForItem(), KilledMonsterCredit(), KilledPlayerCredit(), LoadFromDB(), MapMgr::PlayerCannotEnter(), ResetInstances(), Group::ResetInstances(), Satisfy(), SendInitialPacketsAfterAddToMap(), and SendInitialPacketsBeforeAddToMap().
|
inline |
void Player::GetDodgeFromAgility | ( | float & | diminishing, |
float & | nondiminishing | ||
) |
References BASE_PCT, Unit::getClass(), Unit::GetCreateStat(), Unit::GetLevel(), Unit::GetStat(), GT_MAX_LEVEL, Unit::m_auraModifiersGroup, MAX_CLASSES, GtChanceToMeleeCritEntry::ratio, sGtChanceToMeleeCritStore, STAT_AGILITY, and UNIT_MOD_STAT_START.
Referenced by UpdateDodgePercentage().
|
static |
References DRUNKEN_DRUNK, DRUNKEN_SMASHED, DRUNKEN_SOBER, and DRUNKEN_TIPSY.
Referenced by Condition::Meets(), AchievementCriteriaData::Meets(), and SetDrunkValue().
|
inline |
References Object::GetByteValue(), and PLAYER_BYTES_3.
Referenced by _SaveCharacter(), Spell::EffectInebriate(), HandleSobering(), LoadFromDB(), AchievementCriteriaData::Meets(), SetDrunkValue(), Update(), and UpdateInvisibilityDrunkDetect().
|
inline |
References m_dungeonDifficulty.
Referenced by _SaveCharacter(), Group::AddMember(), Group::Create(), WorldSession::HandleSetDungeonDifficultyOpcode(), LoadFromDB(), and SendDungeonDifficulty().
|
inline |
References EntryPointData::joinPos, and m_entryPointData.
Referenced by LoadFromDB(), and lfg::LFGMgr::TeleportPlayer().
float Player::GetExpertiseDodgeOrParryReduction | ( | WeaponAttackType | attType | ) | const |
References BASE_ATTACK, m_Expertise, m_OffhandExpertise, and OFF_ATTACK.
|
inline |
References Object::GetInt32Value(), and PLAYER_FAKE_INEBRIATION.
Referenced by UpdateInvisibilityDrunkDetect().
Optional< float > Player::GetFarSightDistance | ( | ) | const |
References _farSightDistance.
uint32 Player::GetFreeInventorySpace | ( | ) | const |
References GetBagByPos(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, and INVENTORY_SLOT_ITEM_START.
Referenced by Spell::CheckItems().
|
inline |
References Object::GetUInt32Value(), and PLAYER_CHARACTER_POINTS2.
Referenced by _addSpell(), GetTrainerSpellState(), removeSpell(), and WorldSession::SendTrainerList().
|
inline |
References Object::GetUInt32Value(), and PLAYER_CHARACTER_POINTS1.
Referenced by BuildPlayerTalentsInfoData(), and LearnTalent().
GameObject * Player::GetGameObjectIfCanInteractWith | ( | ObjectGuid | guid, |
GameobjectTypes | type | ||
) | const |
References Unit::GetGameObject(), Object::GetGUID(), WorldObject::GetMap(), WorldObject::GetName(), LOG_DEBUG, and Position::ToString().
Referenced by CanInteractWithQuestGiver(), WorldSession::CanOpenMailBox(), and WorldSession::HandleGuildBankerActivate().
|
inline |
References m_activeSpec, and m_Glyphs.
Referenced by _LoadGlyphAuras(), Spell::EffectApplyGlyph(), WorldSession::HandleRemoveGlyph(), AuraEffect::HandleShapeshiftBoosts(), and SendInitialSpells().
References Object::GetUInt32Value(), and PLAYER_FIELD_GLYPH_SLOTS_1.
Referenced by _LoadGlyphAuras(), and Spell::EffectApplyGlyph().
uint32 Player::GetGossipTextId | ( | uint32 | menuId, |
WorldObject * | source | ||
) |
References DEFAULT_GOSSIP_MESSAGE, sConditionMgr, and sObjectMgr.
Referenced by GetGossipTextId(), npc_pet_gen_argent_pony_bridle::OnGossipHello(), boss_gloomrel::OnGossipHello(), npc_death_knight_initiate::OnGossipHello(), npc_highlord_darion_mograine::OnGossipHello(), npc_augustus_the_touched::OnGossipHello(), npc_varian_wrynn::OnGossipHello(), npc_thrall_bfu::OnGossipHello(), npc_zulaman_hostage::OnGossipHello(), npc_thrall_warchief::OnGossipHello(), npc_rivern_frostwind::OnGossipHello(), npc_hor_leader::OnGossipHello(), npc_high_overlord_saurfang_icc::OnGossipHello(), npc_muradin_bronzebeard_icc::OnGossipHello(), npc_shandy_dalaran::OnGossipHello(), npc_razael_and_lyana::OnGossipHello(), npc_mcmanus::OnGossipHello(), npc_vekjik::OnGossipHello(), npc_adventurous_dwarf::OnGossipHello(), npc_roxi_ramrocket::OnGossipHello(), npc_wg_demolisher_engineer::OnGossipHello(), npc_wg_spirit_guide::OnGossipHello(), npc_wg_quest_giver::OnGossipHello(), npc_finklestein::OnGossipHello(), npc_drake_dealer_hurlunk::OnGossipHello(), npcs_flanis_swiftwing_and_kagrosh::OnGossipHello(), npc_zephyr::OnGossipHello(), npc_innkeeper::OnGossipHello(), npc_prof_alchemy::OnGossipHello(), npc_prof_blacksmith::OnGossipHello(), npc_engineering_tele_trinket::OnGossipHello(), npc_prof_leather::OnGossipHello(), npc_prof_tailor::OnGossipHello(), npc_artorius::OnGossipHello(), npc_simone::OnGossipHello(), npc_nelson::OnGossipHello(), npc_franklin::OnGossipHello(), npc_taxi::OnGossipHello(), npc_sayge::OnGossipHello(), npc_wormhole::OnGossipHello(), npc_locksmith::OnGossipHello(), npc_experience::OnGossipHello(), go_evil_book_for_dummies::OnGossipHello(), icecrown_citadel_teleport::OnGossipHello(), npc_prof_blacksmith::SendActionMenu(), npc_prof_alchemy::SendConfirmLearn(), npc_prof_blacksmith::SendConfirmLearn(), npc_prof_tailor::SendConfirmLearn(), go_evil_book_for_dummies::SendConfirmLearn(), npc_prof_alchemy::SendConfirmUnlearn(), npc_prof_blacksmith::SendConfirmUnlearn(), npc_prof_tailor::SendConfirmUnlearn(), go_evil_book_for_dummies::SendConfirmUnlearn(), SendPreparedGossip(), SendPreparedQuest(), npc_echo_of_medivh::sGossipHello(), and npc_chesspiece::sGossipHello().
uint32 Player::GetGossipTextId | ( | WorldObject * | source | ) |
References DEFAULT_GOSSIP_MESSAGE, GetDefaultGossipMenuForSource(), and GetGossipTextId().
References RuneInfo::GracePeriod, m_runes, and Runes::runes.
Referenced by GetRuneBaseCooldown(), and RegenerateAll().
|
inline |
References m_grantableLevels.
Referenced by WorldSession::HandleAcceptGrantLevel(), and WorldSession::HandleGrantLevel().
|
inline |
References Reference< TO, FROM >::getTarget(), and m_group.
Referenced by _LoadGroup(), Group::AddInvite(), Loot::AddItem(), Group::AddMember(), Battlefield::AddOrSetPlayerToCorrectBfGroup(), Battleground::AddOrSetPlayerToCorrectBgGroup(), Arena::AddPlayer(), InstanceMap::AddPlayerToMap(), LootItem::AllowedForPlayer(), Group::BroadcastPacket(), npc_coren_direbrew::CanBeSeen(), go_loosely_turned_soil::go_loosely_turned_soilAI::CanBeSeen(), InstanceMap::CannotEnter(), CanRollForItemInLFG(), CanUninviteFromGroup(), Spell::CheckCast(), npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::CheckEventFail(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::CheckEventFail(), CheckInstanceLoginValid(), MapInstanced::CreateInstance(), MapInstanced::CreateInstanceForPlayer(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DamageTaken(), ArenaTeam::DelMember(), Group::Disband(), WorldSession::DoLootRelease(), DoRandomRoll(), SmartAI::EndPath(), Loot::FillLoot(), GetNextRandomRaidMember(), Unit::GetNextRandomRaidMemberOrPet(), Unit::GetPartyMembers(), ChatHandler::GetPlayerGroupAndGUIDByName(), GetsRecruitAFriendBonus(), GroupEventHappens(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), Unit::HandleAuraRaidProcFromChargeWithValue(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), Unit::HandleDummyAuraProc(), WorldSession::HandleGrantLevel(), WorldSession::HandleGroupAssistantLeaderOpcode(), WorldSession::HandleGroupChangeSubGroupOpcode(), WorldSession::HandleGroupDisbandOpcode(), WorldSession::HandleGroupInviteOpcode(), group_commandscript::HandleGroupJoinCommand(), WorldSession::HandleGroupRaidConvertOpcode(), WorldSession::HandleGroupSetLeaderOpcode(), misc_commandscript::HandleGroupSummonCommand(), WorldSession::HandleGroupSwapSubGroupOpcode(), WorldSession::HandleGroupUninviteGuidOpcode(), WorldSession::HandleGroupUninviteOpcode(), WorldSession::HandleInstanceLockResponse(), OutdoorPvP::HandleKill(), OutdoorPvPNA::HandleKill(), WorldSession::HandleLfgLeaveOpcode(), WorldSession::HandleLfgPartyLockInfoRequestOpcode(), WorldSession::HandleLfgSetRolesOpcode(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMethodOpcode(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleLootRoll(), WorldSession::HandleMessagechatOpcode(), WorldSession::HandleMinimapPingOpcode(), WorldSession::HandlePartyAssignmentOpcode(), WorldSession::HandlePetRename(), Battlefield::HandlePlayerLeaveZone(), WorldSession::HandlePlayerLoginFromDB(), WorldSession::HandlePlayerLoginToCharInWorld(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleRaidReadyCheckFinishedOpcode(), WorldSession::HandleRaidReadyCheckOpcode(), WorldSession::HandleRaidTargetUpdateOpcode(), WorldSession::HandleResetInstancesOpcode(), WorldSession::HandleSetDungeonDifficultyOpcode(), WorldSession::HandleSetRaidDifficultyOpcode(), misc_commandscript::HandleSkirmishCommand(), ArenaSpectator::HandleSpectatorSpectateCommand(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleGroupCommand(), HasQuestForGO(), HasQuestForItem(), isAllowedToLoot(), SmartAI::IsEscortInvokerInRange(), Unit::IsInPartyWith(), IsInSameGroupWith(), IsInSameRaidWith(), GameObject::IsLootAllowedFor(), Creature::isTappedBy(), lfg::LFGMgr::JoinLfg(), boss_apothecary_hummel::boss_apothecary_hummelAI::JustDied(), npc_coren_direbrew::JustDied(), boss_headless_horseman::JustDied(), boss_ahune::JustDied(), npc_darnavan::npc_darnavanAI::JustDied(), Unit::Kill(), KilledMonsterCredit(), KilledPlayerCredit(), Pet::LoadPetFromDB(), WorldSession::LogoutPlayer(), lfg::LFGMgr::MakeNewGroup(), npc_icc_buff_switcher::OnGossipSelect(), lfg::LFGPlayerScript::OnPlayerBindToInstance(), lfg::LFGPlayerScript::OnPlayerLevelChanged(), lfg::LFGPlayerScript::OnPlayerLogin(), lfg::LFGPlayerScript::OnPlayerLogout(), lfg::LFGPlayerScript::OnPlayerMapChanged(), Acore::MostHPMissingGroupInRange::operator()(), InstanceMap::PermBindAllPlayers(), MapMgr::PlayerCannotEnter(), InstanceSaveMgr::PlayerGetDestinationInstanceId(), ProcessDelayedOperations(), RemoveFromGroup(), RemovePet(), RewardPlayerAndGroupAtEvent(), Group::SameSubGroup(), Satisfy(), SendInitialPacketsAfterAddToMap(), SendLoot(), SendNewItem(), lfg::LFGMgr::SendRaidBrowserJoinedPacket(), SendUpdateToOutOfRangeGroupMembers(), Group::SendUpdateToPlayer(), SetBattlegroundOrBattlefieldRaid(), Unit::SetHealth(), Creature::SetLootRecipient(), Unit::SetMaxHealth(), Unit::SetMaxPower(), Unit::SetPower(), Unit::setPowerType(), StoreLootItem(), lfg::LFGMgr::TeleportPlayer(), PetAI::UpdateAllies(), Unit::UpdateAuraForGroup(), UpdatePosition(), lfg::LFGMgr::UpdateRaidBrowser(), UpdateZone(), and GameObject::Use().
|
inline |
References Reference< TO, FROM >::getTarget(), and m_group.
|
inline |
|
inline |
|
inline |
Guild * Player::GetGuild | ( | ) | const |
References GetGuildId(), and sGuildMgr.
Referenced by GiveLevel(), WorldSession::HandleGuildBankerActivate(), WorldSession::HandleGuildBankSwapItems(), WorldSession::HandleGuildRankOpcode(), Guild::HandleInviteMember(), and UpdateZone().
|
inline |
References Object::GetUInt32Value(), and PLAYER_GUILDID.
Referenced by Guild::AddMember(), CanJoinConstantChannelInZone(), CreateCorpse(), DurabilityRepair(), GetGuild(), GetGuildName(), WorldSession::HandleCalendarAddEvent(), WorldSession::HandleCalendarCopyEvent(), WorldSession::HandleCalendarEventInvite(), WorldSession::HandleCalendarEventSignup(), WorldSession::HandleCalendarGuildFilter(), guild_commandscript::HandleGuildCreateCommand(), guild_commandscript::HandleGuildUninviteCommand(), Guild::HandleInviteMember(), WorldSession::HandleMessagechatOpcode(), WorldSession::HandleMirrorImageDataRequest(), WorldSession::HandleOfferPetitionOpcode(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandlePetitionShowSignOpcode(), WorldSession::HandlePetitionSignOpcode(), WorldSession::HandleTurnInPetitionOpcode(), WorldSession::LogoutPlayer(), CalendarMgr::SendCalendarEvent(), and SetInGuild().
|
inline |
References m_GuildIdInvited.
Referenced by Guild::HandleInviteMember(), WorldSession::HandleOfferPetitionOpcode(), and WorldSession::HandlePetitionSignOpcode().
std::string const & Player::GetGuildName | ( | ) |
References GetGuildId(), and sGuildMgr.
float Player::GetHealthBonusFromStamina | ( | ) |
References Unit::GetStat(), and STAT_STAMINA.
Referenced by UpdateMaxHealth().
|
inline |
|
inline |
References m_ingametime.
void Player::GetInitialVisiblePackets | ( | Unit * | target | ) |
References GetAurasForTarget(), Unit::GetVictim(), Unit::HasUnitState(), Unit::IsAlive(), Unit::SendMeleeAttackStart(), and UNIT_STATE_MELEE_ATTACKING.
Referenced by Acore::VisibleNotifier::SendToSelf(), and UpdateVisibilityOf().
|
inline |
References CURRENCYTOKEN_SLOT_END, EQUIPMENT_SLOT_START, GetBagByPos(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, and KEYRING_SLOT_START.
Referenced by Spell::CheckItems(), Spell::EffectRechargeManaGem(), and Spell::EffectStuck().
Item * Player::GetItemByGuid | ( | ObjectGuid | guid | ) | const |
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, BANK_SLOT_ITEM_START, CURRENCYTOKEN_SLOT_END, EQUIPMENT_SLOT_START, GetBagByPos(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, and KEYRING_SLOT_START.
Referenced by _SaveInventory(), Spell::CheckCast(), WorldSession::DoLootRelease(), TradeData::GetItem(), TradeData::GetSpellCastItem(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleAutoEquipItemSlotOpcode(), WorldSession::HandleAutostoreLootItemOpcode(), debug_commandscript::HandleDebugGetItemValueCommand(), debug_commandscript::HandleDebugItemExpireCommand(), debug_commandscript::HandleDebugSetItemValueCommand(), Unit::HandleDummyAuraProc(), WorldSession::HandleEquipmentSetUse(), WorldSession::HandleGossipSelectOptionOpcode(), WorldSession::HandleItemRefund(), WorldSession::HandleItemRefundInfoRequest(), WorldSession::HandleItemTextQuery(), WorldSession::HandleLootMoneyOpcode(), Unit::HandleOverrideClassScriptAuraProc(), WorldSession::HandlePetitionRenameOpcode(), Unit::HandleProcTriggerSpell(), WorldSession::HandleRepairItemOpcode(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSendMail(), WorldSession::HandleSocketOpcode(), WorldSession::HandleTurnInPetitionOpcode(), SendLoot(), SpellCastTargets::Update(), and Spell::UpdatePointers().
References GetItemByPos().
Referenced by _SaveCharacter(), _SaveInventory(), _StoreItem(), AutoUnequipOffhandIfNeed(), BuildEnchantmentsInfoData(), CanEquipItem(), CanStoreItem_InBag(), CanStoreItem_InInventorySlots(), CanStoreItem_InSpecificSlot(), CanStoreItems(), CanUnequipItem(), CanUnequipItems(), CastItemCombatSpell(), CorrectMetaGemEnchants(), Create(), DestroyConjuredItems(), DestroyItem(), DestroyItemCount(), DestroyZoneLimitedItem(), DurabilityLossAll(), DurabilityPointLossForEquipSlot(), DurabilityPointsLossAll(), DurabilityRepair(), Spell::EffectDurabilityDamage(), Spell::EffectDurabilityDamagePCT(), Spell::EffectEnchantHeldItem(), EnchantmentFitsRequirements(), EquipItem(), EquippedOk(), FindEquipSlot(), GetBagByPos(), GetFreeInventorySpace(), GetItemByEntry(), GetItemByGuid(), GetItemByPos(), GetItemCount(), GetItemCountWithLimitCategory(), GetShield(), GetUseableItemByPos(), GetWeaponForAttack(), misc_commandscript::HandleAddItemCommand(), spell_rog_deadly_poison::HandleAfterHit(), AuraEffect::HandleAuraModDisarm(), AuraEffect::HandleAuraModShapeshift(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), bg_commandscript::HandleBagsClearCommand(), WorldSession::HandleCancelTempEnchantmentOpcode(), character_commandscript::HandleCharacterCheckBagCommand(), debug_commandscript::HandleDebugGetItemStateCommand(), WorldSession::HandleDestroyItemOpcode(), WorldSession::HandleEquipmentSetSave(), WorldSession::HandleEquipmentSetUse(), inventory_commandscript::HandleInventoryCountCommand(), WorldSession::HandleMirrorImageDataRequest(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandleOpenWrappedItemCallback(), WorldSession::HandleReadItem(), WorldSession::HandleSetTradeItemOpcode(), WorldSession::HandleWrapItemOpcode(), HasItemCount(), HasItemOrGemWithIdEquipped(), HasItemOrGemWithLimitCategoryEquipped(), HasItemTotemCategory(), IsTwoHandUsed(), MoveItemFromInventory(), RemoveArenaEnchantments(), RemoveItem(), reset_commandscript::ResetItemsDeleteBankBags(), reset_commandscript::ResetItemsDeleteStandardBags(), reset_commandscript::ResetItemsEquipped(), reset_commandscript::ResetItemsInBags(), reset_commandscript::ResetItemsInBank(), reset_commandscript::ResetItemsInCurrenciesList(), reset_commandscript::ResetItemsInKeyring(), SplitItem(), SwapItem(), and ToggleMetaGemsActive().
References BANK_SLOT_BAG_END, CURRENCYTOKEN_SLOT_END, GetBagByPos(), INVENTORY_SLOT_BAG_0, KEYRING_SLOT_START, and m_items.
uint32 Player::GetItemCount | ( | uint32 | item, |
bool | inBankAlso = false , |
||
Item * | skipItem = nullptr |
||
) | const |
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, BANK_SLOT_ITEM_END, BANK_SLOT_ITEM_START, _Socket::Color, CURRENCYTOKEN_SLOT_END, EQUIPMENT_SLOT_START, ItemTemplate::GemProperties, GetBagByPos(), Object::GetEntry(), GetItemByPos(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, KEYRING_SLOT_START, and ItemTemplate::Socket.
Referenced by AdjustQuestReqItemCount(), CanRewardQuest(), CanRollOnItem(), CanTakeMoreSimilarItems(), WorldSession::HandleSetAmmoOpcode(), HasQuestForItem(), npc_venomhide_hatchling::npc_venomhide_hatchlingAI::IsSummonedBy(), ItemRemovedQuestCheck(), npc_adventurous_dwarf::OnGossipHello(), SendNewItem(), and PlayerMenu::SendQuestGiverRequestItems().
uint32 Player::GetItemCountWithLimitCategory | ( | uint32 | limitCategory, |
Item * | skipItem = nullptr |
||
) | const |
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, BANK_SLOT_ITEM_START, CURRENCYTOKEN_SLOT_END, EQUIPMENT_SLOT_START, GetBagByPos(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, and KEYRING_SLOT_START.
Referenced by CanTakeMoreSimilarItems().
References BUYBACK_SLOT_END, BUYBACK_SLOT_START, LOG_DEBUG, and m_items.
Referenced by WorldSession::HandleBuybackItem(), and reset_commandscript::ResetItemsInVendorBuyBackTab().
|
inline |
|
inline |
|
inline |
References m_oldpetspell.
Referenced by spell_gen_pet_summoned::HandleScript(), and ResummonPetTemporaryUnSummonedIfAny().
|
inline |
|
inline |
References Runes::lastUsedRune, and m_runes.
|
inline |
|
inline |
References m_lootGuid.
Referenced by CanBankItem(), CanStoreItem(), CanStoreItems(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleItemRefund(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleSellItemOpcode(), WorldSession::LogoutPlayer(), RemoveFromWorld(), SendLoot(), StoreLootItem(), and SwapItem().
References m_mail.
Referenced by WorldSession::HandleMailCreateTextItem(), WorldSession::HandleMailDelete(), WorldSession::HandleMailMarkAsRead(), WorldSession::HandleMailReturnToSender(), WorldSession::HandleMailTakeItem(), and WorldSession::HandleMailTakeMoney().
|
inline |
References m_mail.
Referenced by WorldSession::HandleGetMailList(), WorldSession::HandleQueryNextMailTime(), and UpdateNextMailTimeAndUnreads().
|
inline |
float Player::GetManaBonusFromIntellect | ( | ) |
References Unit::GetStat(), and STAT_INTELLECT.
Referenced by UpdateMaxPower().
|
inline |
References m_mapRef.
Referenced by InstanceMap::CannotEnter(), BattlegroundMap::CannotEnter(), ResetMap(), and Map::UpdateIteratorBack().
|
inline |
References KEYRING_SLOT_END, and KEYRING_SLOT_START.
Referenced by CanStoreItem(), CanStoreItem_InSpecificSlot(), and CanStoreItems().
If trans is specified, arena point save query will be added to trans.
References GetArenaPersonalRating(), GetArenaTeamId(), MAX_ARENA_SLOT, sArenaTeamMgr, and sScriptMgr.
Referenced by BuyItemFromVendorSlot().
References Object::GetUInt32Value(), mSkillStatus, PLAYER_SKILL_BONUS_INDEX, PLAYER_SKILL_VALUE_INDEX, SKILL_DELETED, SKILL_MAX, SKILL_PERM_BONUS, SKILL_TEMP_BONUS, and sScriptMgr.
Referenced by Unit::GetDefenseSkillValue(), and UpdateFishingSkill().
uint16 Player::GetMaxSkillValueForLevel | ( | ) | const |
References Unit::GetMaxSkillValueForLevel(), and sScriptMgr.
Referenced by _addSpell(), _LoadSkills(), GetMissPercentageFromDefence(), LearnDefaultSkill(), removeSpell(), UpdateBlockPercentage(), UpdateCritPercentage(), UpdateDodgePercentage(), UpdateParryPercentage(), and UpdateSkillsForLevel().
|
protected |
References AddPct(), BREATH_TIMER, CONFIG_DISABLE_BREATHING, CONFIG_WATER_BREATH_TIMER, DISABLED_MIRROR_TIMER, FATIGUE_TIMER, FIRE_TIMER, Unit::GetAuraEffectsByType(), GetSession(), Unit::HasWaterBreathingAura(), IN_MILLISECONDS, Unit::IsAlive(), MINUTE, SPELL_AURA_MOD_WATER_BREATHING, and sWorld.
Referenced by HandleDrowning(), and IsMirrorTimerActive().
float Player::GetMeleeCritFromAgility | ( | ) |
References GtChanceToMeleeCritBaseEntry::base, Unit::getClass(), Unit::GetLevel(), Unit::GetStat(), GT_MAX_LEVEL, GtChanceToMeleeCritEntry::ratio, sGtChanceToMeleeCritBaseStore, sGtChanceToMeleeCritStore, and STAT_AGILITY.
Referenced by UpdateAllCritPercentages().
|
overridevirtual |
Implements Unit.
References GetWeaponForAttack(), and SPELL_SCHOOL_MASK_NORMAL.
float Player::GetMissPercentageFromDefence | ( | ) | const |
References CR_DEFENSE_SKILL, Unit::getClass(), GetMaxSkillValueForLevel(), GetRatingBonusValue(), GetSkillValue(), m_diminishing_k, MAX_CLASSES, and SKILL_DEFENSE.
|
inline |
References mMitems.
Referenced by WorldSession::HandleGetMailList(), WorldSession::HandleMailReturnToSender(), and WorldSession::HandleMailTakeItem().
|
inline |
References Object::GetUInt32Value(), and PLAYER_FIELD_COINAGE.
Referenced by _SaveCharacter(), ActivateTaxiPathTo(), WorldSession::HandleAcceptTradeOpcode(), modify_commandscript::HandleModifyMoneyCommand(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandleSellItemOpcode(), HasEnoughMoney(), HasEnoughMoney(), ModifyMoney(), and SaveGoldToDB().
uint8 Player::GetMostPointsTalentTree | ( | ) | const |
References GetActiveSpec(), GetTalentMap(), MAX_TALENT_RANK, PLAYERSPELL_REMOVED, sTalentStore, and sTalentTabStore.
|
inline |
References m_MountBlockId.
Referenced by WorldSession::HandlePlayerLoginFromDB(), and SendInitialPacketsAfterAddToMap().
Quest const * Player::GetNextQuest | ( | ObjectGuid | guid, |
Quest const * | quest | ||
) |
References ASSERT, ObjectAccessor::GetCreatureOrPetOrVehicle(), Object::GetEntry(), Map::GetGameObject(), WorldObject::GetInstanceId(), WorldObject::GetMap(), WorldLocation::GetMapId(), Quest::GetNextQuestInChain(), Object::IsInWorld(), sMapMgr, and sObjectMgr.
Referenced by WorldSession::HandleQuestgiverChooseRewardOpcode().
Player * Player::GetNextRandomRaidMember | ( | float | radius | ) |
References Group::GetFirstMember(), GetGroup(), Group::GetMembersCount(), Unit::HasInvisibilityAura(), Unit::IsHostileTo(), WorldObject::IsWithinDistInMap(), and urand().
|
inline |
References m_nextSave.
Creature * Player::GetNPCIfCanInteractWith | ( | ObjectGuid | guid, |
uint32 | npcflagmask | ||
) |
References CLASS_CONTEXT_CLASS_TRAINER, CREATURE_TYPE_FLAG_INTERACT_WHILE_DEAD, CREATURE_TYPE_FLAG_VISIBLE_TO_GHOSTS, Unit::GetCharmerGUID(), ObjectAccessor::GetCreatureOrPetOrVehicle(), Creature::GetCreatureTemplate(), Unit::GetReactionTo(), Unit::HasNpcFlag(), INTERACTION_DISTANCE, Unit::IsAlive(), IsClass(), Unit::IsInFlight(), Object::IsInWorld(), WorldObject::IsWithinDistInMap(), REP_UNFRIENDLY, CreatureTemplate::trainer_class, CreatureTemplate::trainer_type, TRAINER_TYPE_CLASS, CreatureTemplate::type_flags, UNIT_NPC_FLAG_TRAINER, and UNIT_NPC_FLAG_TRAINER_CLASS.
Referenced by BuyItemFromVendorSlot(), CanInteractWithQuestGiver(), WorldSession::CanOpenMailBox(), WorldSession::CanUseBank(), WorldSession::HandleActivateTaxiExpressOpcode(), WorldSession::HandleActivateTaxiOpcode(), WorldSession::HandleAuctionHelloOpcode(), WorldSession::HandleAuctionListBidderItems(), WorldSession::HandleAuctionListItems(), WorldSession::HandleAuctionListOwnerItems(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleBankerActivateOpcode(), WorldSession::HandleBinderActivateOpcode(), WorldSession::HandleBuybackItem(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleGossipSelectOptionOpcode(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandleQuestgiverHelloOpcode(), WorldSession::HandleRepairItemOpcode(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSpiritHealerActivateOpcode(), WorldSession::HandleTabardVendorActivateOpcode(), WorldSession::HandleTalentWipeConfirmOpcode(), WorldSession::HandleTaxiQueryAvailableNodes(), WorldSession::HandleTrainerBuySpellOpcode(), WorldSession::SendListInventory(), WorldSession::SendPetitionShowList(), and WorldSession::SendTrainerList().
|
inline |
References Reference< TO, FROM >::getTarget(), and m_originalGroup.
Referenced by Group::AddInvite(), Battleground::AddOrSetPlayerToCorrectBgGroup(), Group::Disband(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleMessagechatOpcode(), RemoveFromBattlegroundOrBattlefieldRaid(), and Group::RemoveMember().
|
inline |
References m_originalGroup.
|
inline |
References GroupReference::getSubGroup(), and m_originalGroup.
Referenced by RemoveFromBattlegroundOrBattlefieldRaid().
PetStable & Player::GetOrInitPetStable | ( | ) |
References m_petStable.
Referenced by WorldSession::HandleBuyStableSlot(), Unit::InitTamedPet(), and SummonPet().
OutdoorPvP * Player::GetOutdoorPvP | ( | ) | const |
References WorldObject::GetZoneId(), and sOutdoorPvPMgr.
Referenced by WorldSession::HandleAreaTriggerOpcode(), and Unit::Kill().
|
inline |
|
inline |
|
inline |
References m_pendingSpectatorInviteInstanceId.
Referenced by WorldSession::HandleMoveWorldportAck(), and ArenaSpectator::HandleSpectatorSpectateCommand().
Pet * Player::GetPet | ( | ) | const |
References ObjectAccessor::GetPet(), Unit::GetPetGUID(), and Object::IsInWorld().
Referenced by Spell::_cast(), KillRewarder::_RewardXP(), ActivateSpec(), Battleground::AddPlayer(), AuraEffect::ApplySpellMod(), WorldSession::BuildPartyMemberStatsChangedPacket(), BuildPetTalentsInfoData(), spell_hun_bestial_wrath::CheckCast(), Spell::CheckCast(), Unit::DealDamage(), spell_hun_masters_call::DoCheckCast(), InstanceScript::DoRemoveAurasDueToSpellOnPlayers(), Spell::EffectFeedPet(), Spell::EffectResurrectPet(), Spell::EffectSummonPet(), GiveLevel(), AuraEffect::HandleAuraModPetTalentsPoints(), spell_hun_masters_call::HandleDummy(), learn_commandscript::HandleLearnAllMyPetTalentsCommand(), AuraEffect::HandleModPossessPet(), WorldSession::HandleMoveTeleportAck(), pet_commandscript::HandlePetLearnCommand(), pet_commandscript::HandlePetUnlearnCommand(), Unit::HandleProcTriggerSpell(), WorldSession::HandleRequestPartyMemberStatsOpcode(), WorldSession::HandleRequestPetInfo(), ArenaSpectator::HandleResetCommand(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetTalentsCommand(), WorldSession::HandleStablePet(), WorldSession::HandleStableSwapPet(), WorldSession::HandleUnstablePet(), InitStatsForLevel(), Unit::Kill(), LearnPetTalent(), Pet::LoadPetFromDB(), go_orb_of_domination::OnGossipHello(), PetSpellInitialize(), PrepareGossipMenu(), RemoveArenaSpellCooldowns(), RemovePet(), ResetPetTalents(), SaveToDB(), SendUpdateToOutOfRangeGroupMembers(), SetGameMaster(), Unit::SetSpeed(), TeleportTo(), UnsummonPetTemporaryIfAny(), and Update().
|
inline |
References m_petStable.
Referenced by CanPetResurrect(), spell_hun_tame_beast::CheckCast(), Spell::CheckCast(), WorldSession::HandlePetRename(), WorldSession::HandleStablePet(), WorldSession::HandleStableSwapPet(), WorldSession::HandleUnstablePet(), IsExistPet(), Pet::LoadPetFromDB(), Pet::resetTalentsForAllPetsOf(), Pet::SavePetToDB(), and WorldSession::SendStablePet().
|
inline |
References m_petStable.
uint32 Player::GetPhaseMaskForSpawn | ( | ) | const |
References Unit::GetPhaseByAuras(), WorldObject::GetPhaseMask(), IsGameMaster(), and PHASEMASK_NORMAL.
Referenced by gobject_commandscript::HandleGameObjectAddCommand(), npc_commandscript::HandleNpcAddCommand(), wp_commandscript::HandleWpModifyCommand(), and wp_commandscript::HandleWpShowCommand().
|
inline |
std::string Player::GetPlayerName | ( | ) |
References CLASS_DEATH_KNIGHT, CLASS_DRUID, CLASS_HUNTER, CLASS_MAGE, CLASS_PALADIN, CLASS_PRIEST, CLASS_ROGUE, CLASS_SHAMAN, CLASS_WARLOCK, CLASS_WARRIOR, Unit::getClass(), and WorldObject::GetName().
Referenced by gear_commandscript::HandleGearStatsCommand().
PlayerSetting Player::GetPlayerSetting | ( | std::string | source, |
uint8 | index | ||
) |
References GetPlayerSetting(), m_charSettingsMap, and UpdatePlayerSetting().
Referenced by GetPlayerSetting(), player_settings_commandscript::HandleSettingsAnnouncerFlags(), and ChatHandler::SendWorldTextOptional().
References Object::GetUInt32Value(), mSkillStatus, PLAYER_SKILL_VALUE_INDEX, SKILL_DELETED, SKILL_MAX, and sScriptMgr.
Referenced by _addSpell(), learn_commandscript::HandleLearnAllRecipesCommand(), lookup_commandscript::HandleLookupSkillCommand(), misc_commandscript::HandleSetSkillCommand(), and removeSpell().
References Object::GetUInt32Value(), mSkillStatus, PLAYER_SKILL_VALUE_INDEX, SKILL_DELETED, and SKILL_VALUE.
Referenced by _addSpell(), Spell::EffectLearnSkill(), Spell::EffectMilling(), Spell::EffectOpenLock(), Spell::EffectProspecting(), Spell::EffectSkinning(), GetExplicitDiscoverySpell(), lookup_commandscript::HandleLookupSkillCommand(), removeSpell(), UpdateCraftSkill(), and UpdateFishingSkill().
QuestGiverStatus Player::GetQuestDialogStatus | ( | Object * | questGiver | ) |
References CanSeeStartQuest(), CanTakeQuest(), CONDITION_SOURCE_TYPE_QUEST_AVAILABLE, CONFIG_QUEST_LOW_LEVEL_HIDE_DIFF, DIALOG_STATUS_AVAILABLE, DIALOG_STATUS_AVAILABLE_REP, DIALOG_STATUS_INCOMPLETE, DIALOG_STATUS_LOW_LEVEL_AVAILABLE, DIALOG_STATUS_LOW_LEVEL_AVAILABLE_REP, DIALOG_STATUS_LOW_LEVEL_REWARD_REP, DIALOG_STATUS_NONE, DIALOG_STATUS_REWARD, DIALOG_STATUS_REWARD_REP, DIALOG_STATUS_SCRIPTED_NO_STATUS, DIALOG_STATUS_UNAVAILABLE, Object::GetEntry(), Unit::GetLevel(), Quest::GetQuestId(), GetQuestLevel(), GetQuestRewardStatus(), GetQuestStatus(), Object::GetTypeId(), Quest::IsAutoComplete(), Quest::IsDaily(), Quest::IsDailyOrWeekly(), Quest::IsMonthly(), Quest::IsRepeatable(), Quest::IsWeekly(), QUEST_STATUS_COMPLETE, QUEST_STATUS_INCOMPLETE, QUEST_STATUS_NONE, SatisfyQuestLevel(), sConditionMgr, sObjectMgr, sScriptMgr, sWorld, Object::ToCreature(), Object::ToGameObject(), TYPEID_GAMEOBJECT, and TYPEID_UNIT.
Referenced by GameObject::ActivateToQuest(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverStatusQueryOpcode(), and SendQuestGiverStatusMultiple().
float Player::GetQuestRate | ( | bool | isDFQuest = false | ) |
References RATE_XP_QUEST, RATE_XP_QUEST_DF, sScriptMgr, and sWorld.
Referenced by CalculateQuestRewardXP().
bool Player::GetQuestRewardStatus | ( | uint32 | quest_id | ) | const |
References IsQuestRewarded(), Quest::IsRepeatable(), Quest::IsSeasonal(), SatisfyQuestSeasonal(), and sObjectMgr.
Referenced by _LoadQuestStatus(), LootItem::AllowedForPlayer(), CanRewardQuest(), npc_wg_quest_giver::GetDialogStatus(), spell_gen_on_tournament_mount::GetPennatSpellId(), GetQuestDialogStatus(), lfg::LFGMgr::InitializeLockedDungeons(), npc_lokhtos_darkbargainer::OnGossipHello(), boss_gloomrel::OnGossipHello(), npc_augustus_the_touched::OnGossipHello(), npcs_riverbreeze_and_silversky::OnGossipHello(), npc_steward_of_time::OnGossipHello(), npc_prof_alchemy::OnGossipHello(), npc_prof_blacksmith::OnGossipHello(), npc_prof_tailor::OnGossipHello(), npc_taxi::OnGossipHello(), npc_locksmith::OnGossipHello(), go_tele_to_dalaran_crystal::OnGossipHello(), go_tele_to_violet_stand::OnGossipHello(), go_evil_book_for_dummies::OnGossipHello(), go_skull_pile::OnGossipHello(), at_orb_of_command::OnTrigger(), AreaTrigger_at_legion_teleporter::OnTrigger(), and Satisfy().
References Object::GetUInt64Value(), MAX_QUEST_OFFSET, PLAYER_QUEST_LOG_1_1, and QUEST_COUNTS_OFFSET.
Referenced by SendQuestUpdateAddCreatureOrGo(), and SendQuestUpdateAddPlayer().
References Object::GetUInt32Value(), MAX_QUEST_OFFSET, PLAYER_QUEST_LOG_1_1, and QUEST_ID_OFFSET.
Referenced by Spell::EffectQuestClear(), FindQuestSlot(), WorldSession::HandleQuestLogRemoveQuest(), WorldSession::HandleQuestPOIQuery(), HasPvPForcingQuest(), HasQuest(), HasQuestForGO(), HasQuestForItem(), ItemAddedQuestCheck(), ItemRemovedQuestCheck(), KillCreditGO(), KilledMonsterCredit(), KilledPlayerCredit(), MoneyChanged(), ReputationChanged(), ReputationChanged2(), and TalkedToCreature().
References Object::GetUInt32Value(), MAX_QUEST_OFFSET, PLAYER_QUEST_LOG_1_1, and QUEST_STATE_OFFSET.
References Object::GetUInt32Value(), MAX_QUEST_OFFSET, PLAYER_QUEST_LOG_1_1, and QUEST_TIME_OFFSET.
QuestStatus Player::GetQuestStatus | ( | uint32 | quest_id | ) | const |
References IsQuestRewarded(), m_QuestStatus, QUEST_STATUS_NONE, QUEST_STATUS_REWARDED, SatisfyQuestSeasonal(), and sObjectMgr.
Referenced by GameObject::ActivateToQuest(), LootItem::AllowedForPlayer(), npc_rizzle_sprysprocket::npc_rizzle_sprysprocketAI::AttackStart(), CanRewardQuest(), ServerMailCondition::CheckCondition(), npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::CheckEventFail(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::CheckEventFail(), spell_item_demon_broiled_surprise::CheckRequirement(), npc_dragonmaw_peon::npc_dragonmaw_peonAI::CreditPlayer(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DamageTaken(), DuelComplete(), Spell::EffectQuestClear(), Spell::EffectScriptEffect(), SmartAI::EndPath(), FailQuest(), npc_wg_quest_giver::GetDialogStatus(), GetQuestDialogStatus(), go_gilded_brazier::go_gilded_brazierAI::GossipHello(), go_tadpole_cage::go_tadpole_cageAI::GossipHello(), WorldSession::HandleAreaTriggerOpcode(), spell_midsummer_torch_catch::HandleDummy(), spell_q12014_steady_as_a_rock::HandleFinish(), spell_sindragosa_frost_breath::HandleInfusion(), lookup_commandscript::HandleLookupQuestCommand(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), WorldSession::HandleQuestgiverRequestRewardOpcode(), spell_q11322_q11317_the_cleansing::if(), SpellArea::IsFitToRequirements(), npc_kservant::npc_kservantAI::IsSummonedBy(), npc_clintar_spirit::npc_clintar_spiritAI::JustDied(), npc_nerubar_victim::npc_nerubar_victimAI::JustDied(), boss_alar::JustDied(), boss_devourer_of_souls::boss_devourer_of_soulsAI::JustEngagedWith(), npc_a_special_surprise::npc_a_special_surpriseAI::MeetQuestCondition(), npc_the_scourge_cauldron::npc_the_scourge_cauldronAI::MoveInLineOfSight(), npc_brewfest_bark_trigger::MoveInLineOfSight(), npc_tooga::npc_toogaAI::MoveInLineOfSight(), npc_twiggy_flathead::npc_twiggy_flatheadAI::MoveInLineOfSight(), npc_black_knight_graveyard::npc_black_knight_graveyardAI::MoveInLineOfSight(), npc_overlord_drakuru_betrayal::npc_overlord_drakuru_betrayalAI::MoveInLineOfSight(), npc_creditmarker_visit_with_ancestors::npc_creditmarker_visit_with_ancestorsAI::MoveInLineOfSight(), npc_death_knight_initiate::OnGossipHello(), npc_highlord_darion_mograine::OnGossipHello(), npc_parqual_fintallas::OnGossipHello(), npc_varian_wrynn::OnGossipHello(), npc_thrall_bfu::OnGossipHello(), npc_rizzle_sprysprocket::OnGossipHello(), npc_bunthen_plainswind::OnGossipHello(), npc_great_bear_spirit::OnGossipHello(), npc_silva_filnaveth::OnGossipHello(), npc_thrall_warchief::OnGossipHello(), npc_braug_dimspirit::OnGossipHello(), npc_steward_of_time::OnGossipHello(), npc_stone_watcher_of_norgannon::OnGossipHello(), npc_plucky::OnGossipHello(), npc_hor_leader::OnGossipHello(), npc_iruk::OnGossipHello(), npc_shandy_dalaran::OnGossipHello(), npc_razael_and_lyana::OnGossipHello(), npc_mcmanus::OnGossipHello(), npc_vekjik::OnGossipHello(), npc_avatar_of_freya::OnGossipHello(), npc_adventurous_dwarf::OnGossipHello(), npc_wg_quest_giver::OnGossipHello(), npc_finklestein::OnGossipHello(), npc_captain_saeed::OnGossipHello(), npcs_flanis_swiftwing_and_kagrosh::OnGossipHello(), npc_prof_blacksmith::OnGossipHello(), npc_artorius::OnGossipHello(), npc_simone::OnGossipHello(), npc_nelson::OnGossipHello(), npc_franklin::OnGossipHello(), npc_taxi::OnGossipHello(), go_inconspicuous_mine_car::OnGossipHello(), go_seer_of_zebhalak::OnGossipHello(), go_jump_a_tron::OnGossipHello(), go_tele_to_violet_stand::OnGossipHello(), go_ravager_cage::OnGossipHello(), go_bristlelimb_cage::OnGossipHello(), go_scourge_enclosure::OnGossipHello(), go_warmaul_prison::OnGossipHello(), go_skull_pile::OnGossipHello(), go_tablet_of_the_seven::OnGossipHello(), go_arcane_prison::OnGossipHello(), go_table_theka::OnGossipHello(), go_dragonflayer_cage::OnGossipHello(), go_amberpine_outhouse::OnGossipHello(), go_veil_skith_cage::OnGossipHello(), npc_great_bear_spirit::OnGossipSelect(), at_ancient_leaf::OnTrigger(), AreaTrigger_at_celestial_planetarium_enterance::OnTrigger(), AreaTrigger_at_stormwright_shelf::OnTrigger(), AreaTrigger_at_scent_larkorwi::OnTrigger(), AreaTrigger_at_nats_landing::OnTrigger(), AreaTrigger_at_sentry_point::OnTrigger(), at_bring_your_orphan_to::OnTrigger(), AreaTrigger_at_last_rites::OnTrigger(), at_malfurion_stormrage::OnTrigger(), at_commander_dawnforge::OnTrigger(), item_captured_frog::OnUse(), npc_doctor::npc_doctorAI::PatientDied(), npc_doctor::npc_doctorAI::PatientSaved(), PrepareQuestMenu(), NPCStaveQuestAI::QuestIncomplete(), npc_shenthul::npc_shenthulAI::ReceiveEmote(), npc_chicken_cluck::npc_chicken_cluckAI::ReceiveEmote(), npc_plucky::npc_pluckyAI::ReceiveEmote(), SatisfyQuestExclusiveGroup(), SatisfyQuestNextChain(), SatisfyQuestPreviousQuest(), SatisfyQuestStatus(), instance_the_black_morass::instance_the_black_morass_InstanceMapScript::SetBossState(), npc_costumed_orphan_matron::sGossipHello(), npc_sinkhole_kill_credit::npc_sinkhole_kill_creditAI::SpellHit(), npc_wounded_skirmisher::SpellHit(), npc_drakuru_shackles::npc_drakuru_shacklesAI::SpellHit(), npc_enslaved_netherwing_drake::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), npc_greengill_slave::npc_greengill_slaveAI::SpellHit(), Battleground::SpiritOfCompetitionEvent(), npc_clintar_spirit::npc_clintar_spiritAI::StartEvent(), npc_rabid_thistle_bear::npc_rabid_thistle_bearAI::UpdateAI(), npc_clintar_spirit::npc_clintar_spiritAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::UpdateAI(), and GameObject::Use().
|
inline |
|
inline |
References m_QuestStatusSave.
|
inline |
|
inline |
|
inline |
References Object::GetUInt32Value(), and PLAYER_GUILDRANK.
float Player::GetRatingBonusValue | ( | CombatRating | cr | ) | const |
References GetRatingMultiplier(), Object::GetUInt32Value(), and PLAYER_FIELD_COMBAT_RATING_1.
Referenced by Unit::CalcArmorReducedDamage(), GetMissPercentageFromDefence(), Unit::MagicSpellHitResult(), UpdateBlockPercentage(), UpdateCritPercentage(), UpdateDodgePercentage(), UpdateExpertise(), UpdateMeleeHitChances(), UpdateParryPercentage(), UpdateRangedHitChances(), UpdateSpellCritChance(), and UpdateSpellHitChances().
float Player::GetRatingMultiplier | ( | CombatRating | cr | ) | const |
References Unit::getClass(), Unit::GetLevel(), GT_MAX_LEVEL, GT_MAX_RATING, GtCombatRatingsEntry::ratio, GtOCTClassCombatRatingScalarEntry::ratio, sGtCombatRatingsStore, and sGtOCTClassCombatRatingScalarStore.
Referenced by ApplyRatingMod(), and GetRatingBonusValue().
|
inline |
|
inline |
References m_realParry.
References ReputationMgr::GetReputation(), GetReputationMgr(), and sFactionStore.
Referenced by CanCompleteQuest(), ReputationChanged(), ReputationChanged2(), and SatisfyQuestReputation().
|
inline |
References m_reputationMgr.
Referenced by Unit::_IsValidAttackTarget(), AddQuest(), CanCompleteQuest(), Spell::EffectReputation(), Unit::GetReactionTo(), GetReputation(), GetReputationRank(), OutdoorPvPSI::HandleAreaTrigger(), character_commandscript::HandleCharacterReputationCommand(), spell_gen_oracle_wolvar_reputation::HandleDummy(), AuraEffect::HandleForceReaction(), WorldSession::HandleGossipHelloOpcode(), lookup_commandscript::HandleLookupFactionCommand(), modify_commandscript::HandleModifyRepCommand(), WorldSession::HandlePlayerLoginFromDB(), WorldSession::HandleSetFactionAtWar(), WorldSession::HandleSetFactionCheat(), WorldSession::HandleSetFactionInactiveOpcode(), ReputationChanged(), ReputationChanged2(), RewardReputation(), RewardReputation(), SatisfyQuestReputation(), SendInitialPacketsBeforeAddToMap(), SetReputation(), and AchievementMgr::UpdateAchievementCriteria().
|
inline |
References m_reputationMgr.
float Player::GetReputationPriceDiscount | ( | Creature const * | creature | ) | const |
References Unit::GetFactionTemplateEntry(), and GetReputationPriceDiscount().
Referenced by ActivateTaxiPathTo(), BuyItemFromVendorSlot(), GetReputationPriceDiscount(), WorldSession::HandleRepairItemOpcode(), WorldSession::HandleTrainerBuySpellOpcode(), FlightPathMovementGenerator::LoadPath(), WorldSession::SendListInventory(), and WorldSession::SendTrainerList().
float Player::GetReputationPriceDiscount | ( | FactionTemplateEntry const * | factionTemplate | ) | const |
References FactionTemplateEntry::faction, GetReputationRank(), and REP_NEUTRAL.
ReputationRank Player::GetReputationRank | ( | uint32 | faction_id | ) | const |
References ReputationMgr::GetRank(), GetReputationMgr(), and sFactionStore.
Referenced by BuyItemFromVendorSlot(), CanUseItem(), ServerMailCondition::CheckCondition(), GetReputationPriceDiscount(), Unit::HandleDummyAuraProc(), AuraEffect::HandleForceReaction(), npc_lokhtos_darkbargainer::OnGossipHello(), npc_rivern_frostwind::OnGossipHello(), npc_drake_dealer_hurlunk::OnGossipHello(), npc_shattrathflaskvendors::OnGossipHello(), npc_zephyr::OnGossipHello(), npc_slim::OnGossipHello(), npc_taxi::OnGossipHello(), and ReputationMgr::SetReputation().
References m_QuestStatus, QUEST_OBJECTIVES_COUNT, Quest::RequiredNpcOrGo, and sObjectMgr.
Referenced by npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DamageTaken(), npc_creditmarker_visit_with_ancestors::npc_creditmarker_visit_with_ancestorsAI::MoveInLineOfSight(), and npc_razael_and_lyana::OnGossipHello().
|
inline |
uint32 Player::GetResurrectionSpellId | ( | ) |
References Unit::GetAuraEffectsByType(), Unit::HasAura(), HasItemCount(), HasSpell(), HasSpellCooldown(), LOG_ERROR, roll_chance_i(), and SPELL_AURA_DUMMY.
Referenced by Unit::Kill(), and setDeathState().
|
inline |
|
inline |
References m_RewardedQuests.
Referenced by WorldSession::HandleQueryQuestsCompleted(), and AchievementMgr::UpdateAchievementCriteria().
References Unit::GetAuraEffectsByType(), GetBaseRune(), GetGracePeriod(), POWER_RUNE, RUNE_BASE_COOLDOWN, and SPELL_AURA_MOD_POWER_REGEN_PERCENT.
Referenced by Spell::TakeRunePower(), and UpdateRuneRegen().
References RuneInfo::Cooldown, m_runes, and Runes::runes.
Referenced by Spell::CheckRuneCost(), Spell::EffectActivateRune(), AuraEffect::HandleAuraConvertRune(), IsBaseRuneSlotsOnCooldown(), RegenerateAll(), ResyncRunes(), and Spell::TakeRunePower().
|
inline |
References m_runes, and Runes::runeState.
Referenced by Spell::EffectActivateRune(), and Spell::TakeRunePower().
|
inline |
References m_drwGUID.
|
inline |
Player * Player::GetSelectedPlayer | ( | ) | const |
References Object::GetGuidValue(), ObjectAccessor::GetPlayer(), and UNIT_FIELD_TARGET.
Referenced by Acore::ChatCommands::PlayerIdentifier::FromTarget().
Unit * Player::GetSelectedUnit | ( | ) | const |
References Object::GetGuidValue(), ObjectAccessor::GetUnit(), and UNIT_FIELD_TARGET.
Referenced by spell_yogg_saron_in_the_maws_of_the_old_god::CheckCast(), ChatHandler::getSelectedUnit(), Unit::HandleDummyAuraProc(), spell_rog_prey_on_the_weak::HandleEffectPeriodic(), npc_commandscript::HandleNpcSetFactionTempIdCommand(), npc_commandscript::HandleNpcSetOriginalFaction(), WorldSession::HandlePetCastSpellOpcode(), LogCommandUsage(), npc_pet_dk_ebon_gargoyle::npc_pet_dk_ebon_gargoyleAI::MySelectNextTarget(), and npc_pet_mage_mirror_image::MySelectNextTarget().
|
inline |
References mSemaphoreTeleport_Far.
|
inline |
References mSemaphoreTeleport_Near.
|
inline |
References m_session.
Referenced by _addSpell(), _LoadHomeBind(), _LoadInventory(), Pet::_LoadSpellCooldowns(), Battleground::_ProcessProgress(), _SaveCharacter(), _SaveInstanceTimeRestrictions(), _StoreOrEquipNewItem(), ActivateSpec(), ActivateTaxiPathTo(), AddEnchantmentDuration(), AddItem(), Guild::AddMember(), InstanceMap::AddPlayerToMap(), AddRunePower(), addSpell(), Channel::Announce(), ApplyEquipCooldown(), Battlefield::AskToLeaveQueue(), TotemAI::AttackStart(), AutoUnequipOffhandIfNeed(), BanMgr::BanCharacter(), npc_toc5_player_vehicle::npc_toc5_player_vehicleAI::BeforeSpellClick(), BindToInstance(), Group::BroadcastPacket(), Group::BroadcastReadyCheck(), SocialMgr::BroadcastToFriendListers(), BuildPlayerRepop(), GameObject::BuildValuesUpdate(), BuyItemFromVendorSlot(), WorldSession::CanOpenMailBox(), CanSpeak(), BattlegroundSA::CaptureGraveyard(), CharacterActionIpLogger::CharacterIPLogAction(), CharmSpellInitialize(), Spell::CheckCast(), CheckDuelDistance(), Spell::CheckEffectTarget(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::CheckRequiredBosses(), AchievementMgr::CompletedAchievement(), ContinueTaxiFlight(), ConvertRune(), Create(), Guild::Create(), ArenaTeam::DelMember(), Object::DestroyForPlayer(), Group::Disband(), InstanceScript::DoSendNotifyToInstance(), DuelComplete(), DurabilityRepair(), Spell::EffectApplyGlyph(), Spell::EffectDiscoverTaxi(), Spell::EffectDuel(), Spell::EffectPlaySound(), Spell::EffectSummonPlayer(), Spell::EffectSummonRaFFriend(), EquipItem(), BattlegroundSA::EventPlayerDamagedGO(), BGQueueInviteEvent::Execute(), SendEncounterUnit::Execute(), ExecuteOrCancelSpellCastRequest(), lfg::LFGMgr::FinishDungeon(), Channel::FlagsNotify(), GetAurasForTarget(), ChannelMgr::GetChannel(), SocialMgr::GetFriendInfo(), getMaxTimer(), GetsRecruitAFriendBonus(), GiveLevel(), Group::GroupLoot(), WorldSession::HandleAcceptGrantLevel(), WorldSession::HandleAcceptTradeOpcode(), account_commandscript::HandleAccountSetAddonCommand(), account_commandscript::HandleAccountSetGmLevelCommand(), spell_madrigosa_activate_barrier::HandleActivateObject(), spell_madrigosa_deactivate_barrier::HandleActivateObject(), WorldSession::HandleAddFriendOpcode(), misc_commandscript::HandleAddItemCommand(), BattlegroundAB::HandleAreaTrigger(), BattlegroundAV::HandleAreaTrigger(), WorldSession::HandleArenaTeamInviteOpcode(), WorldSession::HandleAuctionListItems(), AuraEffect::HandleAuraOpenStable(), AuraEffect::HandleAuraSetVehicle(), Aura::HandleAuraSpecificMods(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleBeginTradeOpcode(), character_commandscript::HandleCharacterLevel(), WorldSession::HandleChatIgnoredOpcode(), debug_commandscript::HandleDebugSendOpcodeCommand(), spell_gen_spirit_healer_res::HandleDummy(), cheat_commandscript::HandleExploreCheatCommand(), ticket_commandscript::HandleGMTicketUnAssignCommand(), WorldSession::HandleGrantLevel(), WorldSession::HandleGroupDeclineOpcode(), WorldSession::HandleGroupInviteOpcode(), misc_commandscript::HandleGroupSummonCommand(), WorldSession::HandleInitiateTradeOpcode(), Guild::HandleInviteMember(), lookup_commandscript::HandleLookupPlayerIpCommand(), WorldSession::HandleMailTakeItem(), WorldSession::HandleMessagechatOpcode(), modify_commandscript::HandleModifyEnergyCommand(), modify_commandscript::HandleModifyGenderCommand(), modify_commandscript::HandleModifyHPCommand(), modify_commandscript::HandleModifyManaCommand(), modify_commandscript::HandleModifyMoneyCommand(), modify_commandscript::HandleModifyRageCommand(), modify_commandscript::HandleModifyRunicPowerCommand(), modify_commandscript::HandleModifySpellCommand(), WorldSession::HandleMovementOpcodes(), misc_commandscript::HandleMuteCommand(), WorldSession::HandleOfferPetitionOpcode(), misc_commandscript::HandlePInfoCommand(), Battlefield::HandlePlayerLeaveZone(), OutdoorPvP::HandlePlayerLeaveZone(), WorldSession::HandlePlayerLoginFromDB(), WorldSession::HandlePlayerLoginOpcode(), WorldSession::HandlePlayerLoginToCharInWorld(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleRaidReadyCheckOpcode(), reset_commandscript::HandleResetSpellsCommand(), reset_commandscript::HandleResetTalentsCommand(), spell_pvp_trinket_wotf_shared_cd::HandleScript(), spell_the_flag_of_ownership::HandleScript(), WorldSession::HandleSendMail(), send_commandscript::HandleSendMessageCommand(), WorldSession::HandleSetRaidDifficultyOpcode(), misc_commandscript::HandleSkirmishCommand(), cheat_commandscript::HandleTaxiCheatCommand(), tele_commandscript::HandleTeleGroupCommand(), misc_commandscript::HandleUnmuteCommand(), WorldSession::HandleWhoisOpcode(), WorldSession::HandleWhoOpcode(), ChatHandler::HasLowerSecurity(), hasSpanishClient(), lfg::LFGMgr::InitializeLockedDungeons(), InitTalentForLevel(), BattlegroundQueue::InviteGroupToBG(), Battlefield::InvitePlayerToQueue(), Battlefield::InvitePlayerToWar(), isBeingLoaded(), IsNeverVisible(), IsPetNeedBeTemporaryUnsummoned(), ObjectMgr::IsVendorItemValid(), IsVisibleGloballyFor(), Channel::JoinChannel(), lfg::LFGMgr::JoinLfg(), Channel::JoinNotify(), Unit::JumpTo(), Channel::KickOrBan(), Unit::KnockbackFrom(), Channel::LeaveNotify(), Channel::List(), LoadFromDB(), Pet::LoadPetFromDB(), GameObject::ModifyHealth(), ModifySpellCooldown(), Group::NeedBeforeGreed(), go_tele_to_dalaran_crystal::OnGossipHello(), go_ulduar_pure_saronite_deposit::OnGossipHello(), npc_pet_gen_argent_pony_bridle::OnGossipSelect(), npc_lokhtos_darkbargainer::OnGossipSelect(), npc_augustus_the_touched::OnGossipSelect(), npc_rivern_frostwind::OnGossipSelect(), npc_roxi_ramrocket::OnGossipSelect(), npc_wg_demolisher_engineer::OnGossipSelect(), npc_wg_quest_giver::OnGossipSelect(), npc_drake_dealer_hurlunk::OnGossipSelect(), npc_shattrathflaskvendors::OnGossipSelect(), npc_slim::OnGossipSelect(), npc_innkeeper::OnGossipSelect(), npc_prof_leather::OnGossipSelect(), npc_icc_buff_switcher::OnGossipSelect(), go_amberpine_outhouse::OnGossipSelect(), OnGossipSelect(), BattlefieldWG::OnPlayerLeaveWar(), ServerMailReward::OnPlayerLogin(), lfg::LFGPlayerScript::OnPlayerLogout(), lfg::LFGPlayerScript::OnPlayerMapChanged(), Acore::LocalizedPacketDo< Builder >::operator()(), Acore::LocalizedPacketListDo< Builder >::operator()(), CreatureTextLocalizer< Builder >::operator()(), Channel::Password(), Unit::PatchValuesUpdate(), InstanceMap::PermBindAllPlayers(), PetSpellInitialize(), Player(), Battlefield::PlayerAcceptInviteToQueue(), Battlefield::PlayerAcceptInviteToWar(), Battleground::PlayerAddedToBGCheckIfBGIsRunning(), InstanceSaveMgr::PlayerBindToInstance(), MapMgr::PlayerCannotEnter(), InstanceSaveMgr::PlayerUnbindInstance(), InstanceSaveMgr::PlayerUnbindInstanceNotExtended(), PossessSpellInitialize(), BattlegroundSA::PostUpdateImpl(), PrepareGossipMenu(), PrettyPrintRequirementsAchievementsList(), PrettyPrintRequirementsItemsList(), PrettyPrintRequirementsQuestList(), ProhibitSpellSchool(), Battleground::ReadyMarkerClicked(), RefundItem(), Group::RemoveMember(), RemovePet(), RemovePetitionsAndSigns(), Battleground::RemovePlayerAtLeave(), RepopAtGraveyard(), Group::ResetMaxEnchantingLevel(), ResurrectPlayer(), ResyncRunes(), RewardHonor(), Satisfy(), SatisfyQuestLog(), SaveToDB(), SendActionButtons(), npc_prof_alchemy::SendActionMenu(), npc_prof_blacksmith::SendActionMenu(), npc_prof_tailor::SendActionMenu(), AchievementMgr::SendAllAchievementData(), BattlegroundMgr::SendAreaSpiritHealerQueryOpcode(), Battlefield::SendAreaSpiritHealerQueryOpcode(), SendAttackSwingBadFacingAttack(), SendAttackSwingCancelAttack(), SendAttackSwingCantAttack(), SendAttackSwingDeadTarget(), SendAttackSwingNotInRange(), AuctionHouseMgr::SendAuctionExpiredMail(), AuctionHouseMgr::SendAuctionOutbiddedMail(), AuctionHouseMgr::SendAuctionSuccessfulMail(), AuctionHouseMgr::SendAuctionWonMail(), SendBuyError(), SendCanTakeQuestResponse(), Spell::SendCastResult(), Spell::SendCastResult(), SendCorpseReclaimDelay(), SendDuelCountdown(), SendDungeonDifficulty(), SendEnchantmentDurations(), SendEquipError(), SendEquipmentSetList(), SendExplorationExperience(), SocialMgr::SendFriendStatus(), ChatHandler::SendGMText(), ChatHandler::SendGMText(), SendInitialPacketsAfterAddToMap(), SendInitialPacketsBeforeAddToMap(), SendInitialSpells(), Map::SendInitTransports(), SendInstanceResetWarning(), BattlegroundQueue::SendJoinMessageArenaQueue(), SendLearnPacket(), lfg::LFGMgr::SendLfgRoleChosen(), SendLogXPGain(), Group::SendLootAllPassed(), Group::SendLootRoll(), Group::SendLootRollWon(), Group::SendLootStartRoll(), Group::SendLootStartRollToPlayer(), SendMailResult(), MailDraft::SendMailTo(), BattlegroundQueue::SendMessageBGQueue(), SendNewItem(), SendNewMail(), CreatureTextMgr::SendNonChatPacket(), AutobroadcastMgr::SendNotificationAnnouncement(), SendNotifyLootItemRemoved(), SendNotifyLootMoneyRemoved(), Acore::MessageDistDeliverer::SendPacket(), Acore::MessageDistDelivererToHostile::SendPacket(), Unit::SendPetActionFeedback(), Unit::SendPetAIReaction(), Spell::SendPetCastResult(), Unit::SendPetTalk(), WorldObject::SendPlayMusic(), SendPreparedQuest(), SendProficiency(), SendPushToPartyResponse(), SendQuestComplete(), SendQuestConfirmAccept(), SendQuestFailed(), SendQuestGiverStatusMultiple(), SendQuestReward(), SendQuestTimerFailed(), SendQuestUpdateAddCreatureOrGo(), SendQuestUpdateAddItem(), SendQuestUpdateAddPlayer(), lfg::LFGMgr::SendRaidBrowserCachedList(), lfg::LFGMgr::SendRaidBrowserJoinedPacket(), SendRaidDifficulty(), SendRaidInfo(), SendRefundInfo(), SendRemoveControlBar(), Map::SendRemoveTransports(), SendResetFailedNotify(), SendResetInstanceFailed(), SendResetInstanceSuccess(), AchievementMgr::SendRespondInspectAchievements(), Spell::SendResurrectRequest(), SendSavedInstances(), SendSellError(), PlayerSocial::SendSocialList(), SendSystemMessage(), SendTalentsInfoData(), SendTalentWipeConfirm(), SendTeleportAckPacket(), Item::SendTimeUpdate(), Acore::VisibleNotifier::SendToSelf(), SendTransferAborted(), BattlegroundSA::SendTransportInit(), BattlegroundSA::SendTransportsRemove(), Item::SendUpdateSockets(), Group::SendUpdateToPlayer(), Object::SendUpdateToPlayer(), ReputationMgr::SendVisible(), AutobroadcastMgr::SendWorldAnnouncement(), ChatHandler::SendWorldText(), ChatHandler::SendWorldText(), ChatHandler::SendWorldTextOptional(), ChatHandler::SendWorldTextOptional(), TradeData::SetAccepted(), SetBindPoint(), SetClientControl(), Item::SetEnchantment(), SetEquipmentSet(), SetGameMaster(), SetGMVisible(), Channel::SetMode(), TradeData::SetMoney(), SetMovement(), Channel::SetOwner(), SetRestBonus(), Unit::SetStandState(), Guild::Member::SetStats(), SetTitle(), Channel::ShouldAnnouncePlayer(), SpawnCorpseBones(), SummonPet(), lfg::LFGMgr::TeleportPlayer(), TeleportTo(), Channel::ToggleModeration(), TradeCancel(), Channel::UnBan(), AuctionHouseSearcher::Update(), TradeData::Update(), Map::Update(), Pet::Update(), GameObject::Update(), Update(), PetAI::UpdateAI(), UpdateForQuestWorldObjects(), UpdateHomebindTime(), UpdateLocalChannels(), Group::UpdatePlayerOutOfRange(), UpdatePosition(), UpdateSpeakTime(), UpdateTriggerVisibility(), GameObject::Use(), VehicleSpellInitialize(), Whisper(), Unit::Whisper(), Unit::Whisper(), and Whisper().
Item * Player::GetShield | ( | bool | useable = false | ) | const |
References ItemTemplate::Class, EQUIPMENT_SLOT_OFFHAND, GetItemByPos(), Item::GetTemplate(), GetUseableItemByPos(), INVENTORY_SLOT_BAG_0, Item::IsBroken(), and ITEM_CLASS_ARMOR.
Referenced by AuraEffect::CalculateAmount().
|
overridevirtual |
Implements Unit.
References FLAT_MOD, Unit::GetStat(), m_auraBaseMod, PCT_MOD, SHIELD_BLOCK_VALUE, and STAT_STRENGTH.
Referenced by UpdateShieldBlockValue().
|
overridevirtual |
Reimplemented from WorldObject.
References _farSightDistance, and WorldObject::GetSightRange().
Referenced by Group::UpdatePlayerOutOfRange(), and UpdateVisibilityForPlayer().
References Object::GetUInt32Value(), mSkillStatus, PLAYER_SKILL_BONUS_INDEX, SKILL_DELETED, and SKILL_PERM_BONUS.
Referenced by lookup_commandscript::HandleLookupSkillCommand().
|
inline |
References mSkillStatus.
|
inline |
References Object::GetUInt32Value(), mSkillStatus, PAIR32_HIPART(), PLAYER_SKILL_INDEX, and SKILL_DELETED.
Referenced by learn_commandscript::HandleLearnAllRecipesCommand(), and misc_commandscript::HandleSetSkillCommand().
References Object::GetUInt32Value(), mSkillStatus, PLAYER_SKILL_BONUS_INDEX, SKILL_DELETED, and SKILL_TEMP_BONUS.
Referenced by lookup_commandscript::HandleLookupSkillCommand().
References Object::GetUInt32Value(), mSkillStatus, PLAYER_SKILL_BONUS_INDEX, PLAYER_SKILL_VALUE_INDEX, SKILL_DELETED, SKILL_PERM_BONUS, SKILL_TEMP_BONUS, and SKILL_VALUE.
Referenced by AddItemsSetItem(), Group::AddMember(), ApplyEnchantment(), Spell::CanOpenLock(), CanRollForItemInLFG(), CanUseItem(), CanUseItem(), Spell::CheckCast(), Spell::CheckItems(), Unit::GetDefenseSkillValue(), GetExplicitDiscoverySpell(), GetMissPercentageFromDefence(), GetSkillDiscoverySpell(), character_commandscript::HandleCharacterCheckProfessionCommand(), misc_commandscript::HandleSetSkillCommand(), Item::HasEnchantRequiredSkill(), IsTotemCategoryCompatiableWith(), LearnDefaultSkill(), boss_gloomrel::OnGossipHello(), Group::RemoveMember(), Group::ResetMaxEnchantingLevel(), Spell::SummonGuardian(), UpdateDodgePercentage(), UpdateParryPercentage(), and GameObject::Use().
|
inline |
References m_social.
Referenced by Spell::EffectDuel(), SocialMgr::GetFriendInfo(), WorldSession::HandleAddFriendOpcode(), WorldSession::HandleArenaTeamInviteOpcode(), WorldSession::HandleContactListOpcode(), WorldSession::HandleDelFriendOpcode(), WorldSession::HandleDelIgnoreOpcode(), WorldSession::HandleGroupInviteOpcode(), Guild::HandleInviteMember(), WorldSession::HandleSetContactNotesOpcode(), lfg::LFGMgr::HasIgnore(), Channel::Invite(), and SendInitialPacketsBeforeAddToMap().
References Unit::getClass(), GetTalentTabPages(), HasTalent(), m_activeSpec, m_specsCount, MAX_TALENT_RANK, MAX_TALENT_TABS, TalentEntry::RankID, sTalentStore, and TalentEntry::TalentTab.
Referenced by HasCasterSpec(), HasHealSpec(), HasMeleeSpec(), and HasTankSpec().
|
inline |
References m_specsCount.
Referenced by ActivateSpec(), OnGossipSelect(), PrepareGossipMenu(), and UpdateSpecCount().
uint32 Player::GetSpellByProto | ( | ItemTemplate * | proto | ) |
References getMSTime(), and m_spellCooldowns.
Referenced by CanExecutePendingSpellCastRequest(), CanRequestSpellCast(), Aura::HandleAuraSpecificMods(), npc_brewfest_keg_reciver::MoveInLineOfSight(), and ProhibitSpellSchool().
|
inline |
References m_spellCooldowns.
|
inline |
|
inline |
float Player::GetSpellCritFromIntellect | ( | ) |
References GtChanceToSpellCritBaseEntry::base, Unit::getClass(), Unit::GetLevel(), Unit::GetStat(), GT_MAX_LEVEL, GtChanceToSpellCritEntry::ratio, sGtChanceToSpellCritBaseStore, sGtChanceToSpellCritStore, and STAT_INTELLECT.
Referenced by UpdateSpellCritChance().
|
inline |
|
inline |
References m_spells.
Referenced by GameObject::GetSpellForLock(), WorldSession::HandleAuctionListItems(), AuraEffect::HandleAuraModShapeshift(), spell_mage_cold_snap::HandleDummy(), spell_rog_preparation::HandleDummy(), Unit::HandleDummyAuraProc(), AuraEffect::HandleShapeshiftBoosts(), resetSpells(), and AchievementMgr::UpdateAchievementCriteria().
|
inline |
|
inline |
|
protected |
References CONFIG_SPELL_QUEUE_WINDOW, and sWorld.
Referenced by CanExecutePendingSpellCastRequest(), and CanRequestSpellCast().
bool Player::GetsRecruitAFriendBonus | ( | bool | forXP | ) |
References CONFIG_MAX_RECRUIT_A_FRIEND_BONUS_PLAYER_LEVEL, CONFIG_MAX_RECRUIT_A_FRIEND_BONUS_PLAYER_LEVEL_DIFFERENCE, WorldSession::GetAccountId(), GetGroup(), Unit::GetLevel(), WorldSession::GetRecruiterId(), GetSession(), IsAtRecruitAFriendDistance(), WorldObject::IsInMap(), and sWorld.
Referenced by CalculateReputationGain(), GiveXP(), and SetRestBonus().
WorldLocation Player::GetStartPosition | ( | ) | const |
References CLASS_CONTEXT_INIT, CLASS_DEATH_KNIGHT, Unit::getClass(), Unit::getRace(), HasSpell(), IsClass(), PlayerInfo::mapId, PlayerInfo::positionX, PlayerInfo::positionY, PlayerInfo::positionZ, and sObjectMgr.
Referenced by misc_commandscript::HandleUnstuckCommand().
|
inline |
|
inline |
References GroupReference::getSubGroup(), and m_group.
Referenced by Unit::GetPartyMembers(), Group::SameSubGroup(), and SetBattlegroundOrBattlefieldRaid().
|
inline |
|
inline |
void Player::GetTalentTreePoints | ( | uint8(&) | specPoints[3] | ) | const |
References GetActiveSpec(), GetTalentMap(), MAX_TALENT_RANK, PLAYERSPELL_REMOVED, sTalentStore, and sTalentTabStore.
Referenced by lfg::LFGMgr::UpdateRaidBrowser().
|
inline |
References Unit::getRace(), m_team, and TeamIdForRace().
Referenced by ActivateTaxiPathTo(), GameObject::ActivateToQuest(), BattlegroundQueue::AddGroup(), Battlefield::AddOrSetPlayerToCorrectBfGroup(), Arena::AddPlayer(), BattlegroundIC::AddPlayer(), npc_love_in_air_snivel::AllowAction(), BattlegroundSA::AllowDefenseOfTheAncients(), LootItem::AllowedForPlayer(), Battlefield::AskToLeaveQueue(), SocialMgr::BroadcastToFriendListers(), WorldState::BuffMagtheridonTeam(), Corpse::BuildValuesUpdate(), BuyItemFromVendorSlot(), npc_steam_powered_auctioneer::npc_steam_powered_auctioneerAI::CanBeSeen(), npc_mei_francis_mount::npc_mei_francis_mountAI::CanBeSeen(), Group::CanJoinBattlegroundQueue(), OPvPCapturePointZM_Graveyard::CanTalkTo(), CanUseItem(), BattlegroundSA::CaptureGraveyard(), ServerMailCondition::CheckCondition(), ContinueTaxiFlight(), MapInstanced::CreateInstance(), BattlegroundSA::DefendersPortalTeleport(), WorldState::DispelMagtheridonTeam(), BattlegroundIC::DoAction(), DuelComplete(), Spell::EffectTeleportUnits(), BattlegroundAV::EventPlayerAssaultsPoint(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundEY::EventPlayerCapturedFlag(), BattlegroundEY::EventPlayerClickedOnFlag(), BattlegroundWS::EventPlayerClickedOnFlag(), BattlegroundIC::EventPlayerClickedOnFlag(), BattlegroundAB::EventPlayerClickedOnFlag(), BattlegroundAV::EventPlayerDefendsPoint(), BattlegroundEY::EventPlayerDroppedFlag(), BattlegroundWS::EventPlayerDroppedFlag(), BattlegroundSA::EventPlayerUsedGO(), GetBgTeamId(), Battlefield::GetClosestGraveyard(), BattlegroundAB::GetClosestGraveyard(), BattlegroundAV::GetClosestGraveyard(), BattlegroundEY::GetClosestGraveyard(), BattlegroundIC::GetClosestGraveyard(), BattlegroundSA::GetClosestGraveyard(), BattlegroundWS::GetClosestGraveyard(), SocialMgr::GetFriendInfo(), Battleground::GetRealRepFactionForPlayer(), Guild::HandleAcceptMember(), BattlegroundAB::HandleAreaTrigger(), BattlegroundAV::HandleAreaTrigger(), BattlegroundEY::HandleAreaTrigger(), BattlegroundIC::HandleAreaTrigger(), OutdoorPvPSI::HandleAreaTrigger(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleArenaTeamAcceptOpcode(), WorldSession::HandleArenaTeamInviteOpcode(), WorldSession::HandleCalendarEventInvite(), OutdoorPvPSI::HandleDropFlag(), spell_item_brewfest_mount_transformation::HandleDummy(), spell_item_teach_language::HandleDummy(), spell_q6124_6129_apply_salve::HandleDummy(), WorldSession::HandleGrantLevel(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleInitiateTradeOpcode(), Guild::HandleInviteMember(), BattlefieldWG::HandleKill(), OutdoorPvPHP::HandleKillImpl(), OutdoorPvPNA::HandleKillImpl(), OutdoorPvPZM::HandleKillImpl(), BattlegroundAV::HandleKillPlayer(), BattlegroundIC::HandleKillPlayer(), BattlegroundAV::HandleKillUnit(), WorldSession::HandleMessagechatOpcode(), WorldSession::HandleMovementOpcodes(), WorldSession::HandleOfferPetitionOpcode(), BfCapturePoint::HandlePlayerEnter(), OPvPCapturePoint::HandlePlayerEnter(), Battlefield::HandlePlayerEnterZone(), OutdoorPvP::HandlePlayerEnterZone(), OutdoorPvPEP::HandlePlayerEnterZone(), OutdoorPvPHP::HandlePlayerEnterZone(), OutdoorPvPNA::HandlePlayerEnterZone(), OutdoorPvPSI::HandlePlayerEnterZone(), OutdoorPvPTF::HandlePlayerEnterZone(), OutdoorPvPZM::HandlePlayerEnterZone(), WorldState::HandlePlayerEnterZone(), BfCapturePoint::HandlePlayerLeave(), OPvPCapturePoint::HandlePlayerLeave(), Battlefield::HandlePlayerLeaveZone(), OutdoorPvP::HandlePlayerLeaveZone(), OutdoorPvPEP::HandlePlayerLeaveZone(), OutdoorPvPHP::HandlePlayerLeaveZone(), WorldState::HandlePlayerLeaveZone(), BattlegroundIC::HandlePlayerResurrect(), BattlegroundAV::HandleQuestComplete(), spell_pvp_trinket_wotf_shared_cd::HandleScript(), spell_wintergrasp_portal::HandleScript(), spell_item_dimensional_ripper_area52::HandleScript(), WorldSession::HandleSendMail(), WorldSession::HandleWhoOpcode(), Battlefield::HasPlayer(), OutdoorPvP::HasPlayer(), lfg::LFGMgr::InitializeLockedDungeons(), Channel::Invite(), Battlefield::InvitePlayerToQueue(), Battlefield::InvitePlayerToWar(), SpellArea::IsFitToRequirements(), IsGroupVisibleFor(), BfCapturePoint::IsInsideObjective(), OPvPCapturePoint::IsInsideObjective(), lfg::LFGMgr::JoinRaidBrowser(), boss_devourer_of_souls::boss_devourer_of_soulsAI::JustEngagedWith(), Unit::Kill(), lfg::LFGMgr::LfrSearchAdd(), lfg::LFGMgr::LfrSearchRemove(), lfg::LFGMgr::LfrSetComment(), LoadFromDB(), AchievementCriteriaData::Meets(), npc_love_in_air_supply_sentry::MoveInLineOfSight(), npc_love_in_air_snivel::MoveInLineOfSight(), npc_mageguard_dalaran::npc_mageguard_dalaranAI::MoveInLineOfSight(), npc_guardian_pavilion::npc_guardian_pavilionAI::MoveInLineOfSight(), achievement_resilient_victory::OnCheck(), achievement_bg_control_all_nodes::OnCheck(), achievement_bg_ic_resource_glut::OnCheck(), achievement_everything_counts::OnCheck(), achievement_bg_av_perfection::OnCheck(), achievement_not_even_a_scratch::OnCheck(), BattlefieldWG::OnCreatureCreate(), npc_pet_gen_argent_pony_bridle::OnGossipHello(), npcs_riverbreeze_and_silversky::OnGossipHello(), npc_bunthen_plainswind::OnGossipHello(), npc_silva_filnaveth::OnGossipHello(), npc_shandy_dalaran::OnGossipHello(), npc_wg_spirit_guide::OnGossipHello(), npc_wg_spirit_guide::OnGossipSelect(), npc_pet_gen_argent_pony_bridle::OnGossipSelect(), npc_bunthen_plainswind::OnGossipSelect(), npc_silva_filnaveth::OnGossipSelect(), npc_wg_demolisher_engineer::OnGossipSelect(), instance_utgarde_keep::instance_utgarde_keep_InstanceMapScript::OnPlayerEnter(), BattlefieldWG::OnPlayerEnterZone(), BattlefieldWG::OnPlayerJoinWar(), lfg::LFGPlayerScript::OnPlayerLogin(), ServerMailReward::OnPlayerLogin(), MidsummerPlayerScript::OnPlayerUpdateZone(), npc_lurgglbr::OnQuestAccept(), npc_mootoo_the_younger::OnQuestAccept(), npc_apothecary_hanes::OnQuestAccept(), AreaTrigger_at_legion_teleporter::OnTrigger(), at_bring_your_orphan_to::OnTrigger(), npc_rocket_propelled_warhead::npc_rocket_propelled_warheadAI::PassengerBoarded(), Battlefield::PlayerAcceptInviteToQueue(), Battlefield::PlayerAcceptInviteToWar(), RepopAtGraveyard(), ReportedAfkBy(), RewardHonor(), RewardReputation(), Satisfy(), AchievementMgr::SendAchievementEarned(), WorldSession::SendListInventory(), SendLoot(), Acore::MessageDistDeliverer::SendPacket(), lfg::LFGMgr::SendRaidBrowserCachedList(), lfg::LFGMgr::SendRaidBrowserJoinedPacket(), WorldSession::SendSpiritResurrect(), SendTaxiNodeStatusMultiple(), WorldSession::SendTaxiStatus(), Creature::SendZoneUnderAttackMessage(), spell_item_recall::SetDest(), SetEntryPoint(), SetFactionForRace(), Channel::SetMode(), Channel::SetOwner(), npc_midsummer_torch_target::SpellHit(), BattlegroundSA::TeleportToEntrancePosition(), OPvPCapturePoint::Update(), UpdateArea(), npc_midsummer_bonfire::UpdateBonfireBlessingBuffs(), UpdateLFGChannel(), UpdateLocalChannels(), UpdateZone(), and npc_isla_starmane::npc_isla_starmaneAI::WaypointReached().
|
inline |
|
inline |
float Player::GetTotalBaseModValue | ( | BaseModGroup | modGroup | ) | const |
References BASEMOD_END, FLAT_MOD, LOG_ERROR, m_auraBaseMod, and PCT_MOD.
|
inline |
|
inline |
|
inline |
References m_trade.
Referenced by Spell::_cast(), Spell::CheckCast(), TradeData::GetTraderData(), WorldSession::HandleSetTradeGoldOpcode(), WorldSession::HandleSetTradeItemOpcode(), WorldSession::HandleUnacceptTradeOpcode(), WorldSession::SendUpdateTrade(), SplitItem(), and SpellCastTargets::Update().
|
inline |
References TradeData::GetTrader(), and m_trade.
Referenced by WorldSession::moveItems(), and UpdatePosition().
TrainerSpellState Player::GetTrainerSpellState | ( | TrainerSpell const * | trainer_spell | ) | const |
References GetBaseSkillValue(), GetFreePrimaryProfessionPoints(), Unit::GetLevel(), HasSpell(), SpellInfo::IsPrimaryProfessionFirstRank(), IsSpellFitByClassAndRace(), TrainerSpell::learnedSpell, MAX_SPELL_EFFECTS, TrainerSpell::reqLevel, TrainerSpell::reqSkill, TrainerSpell::reqSkillValue, sSpellMgr, TRAINER_SPELL_GRAY, TRAINER_SPELL_GREEN, TRAINER_SPELL_GREEN_DISABLED, and TRAINER_SPELL_RED.
Referenced by WorldSession::HandleTrainerBuySpellOpcode(), and WorldSession::SendTrainerList().
References Unit::CanUseAttackType(), GetAttackBySlot(), and GetItemByPos().
Referenced by GetShield(), GetWeaponForAttack(), WorldSession::HandleUseItemOpcode(), HasItemFitToSpellRequirements(), Aura::IsProcTriggeredOnEvent(), and Unit::IsTriggeredAtSpellProcEvent().
WorldObject * Player::GetViewpoint | ( | ) | const |
References Object::GetGuidValue(), ObjectAccessor::GetObjectByTypeMask(), PLAYER_FARSIGHT, and TYPEMASK_SEER.
Referenced by CinematicMgr::EndCinematic(), WorldSession::HandleFarSightOpcode(), ArenaSpectator::HandleSpectatorWatchCommand(), RemoveFromWorld(), StopCastingBindSight(), and Map::Update().
Item * Player::GetWeaponForAttack | ( | WeaponAttackType | attackType, |
bool | useable = false |
||
) | const |
References BASE_ATTACK, ItemTemplate::Class, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, GetItemByPos(), Item::GetTemplate(), GetUseableItemByPos(), INVENTORY_SLOT_BAG_0, Item::IsBroken(), Unit::IsInFeralForm(), ITEM_CLASS_WEAPON, OFF_ATTACK, and RANGED_ATTACK.
Referenced by AuraEffect::CalculateAmount(), CheckAmmoCompatibility(), Spell::CheckItems(), Spell::EffectEnchantItemTmp(), Spell::EffectWeaponDmg(), Unit::GetAPMultiplier(), GetBaseWeaponSkillValue(), GetMeleeDamageSchoolMask(), AuraEffect::HandleAuraModWeaponCritPercent(), AuraEffect::HandleModDamageDone(), AuraEffect::HandleModDamagePercentDone(), HasWeapon(), HasWeaponForAttack(), SetRegularAttackTime(), SetSheath(), Spell::Spell(), boss_viscidus::SpellHit(), Spell::TakeAmmo(), UpdateExpertise(), UpdateWeaponSkill(), and Spell::WriteAmmoToPacket().
|
inline |
References GetRestBonus(), LOG_DEBUG, and SetRestBonus().
Referenced by GiveXP().
|
static |
References CHAR_SEL_CHAR_POSITION_XYZ, CHAR_SEL_CHAR_ZONE, CHAR_UPD_ZONE, CharacterDatabase, Field::Get(), ObjectGuid::GetCounter(), PHASEMASK_NORMAL, PreparedStatementBase::SetData(), sMapMgr, and sMapStore.
Referenced by Guild::Member::LoadFromDB().
void Player::GiveLevel | ( | uint8 | level | ) |
References _ApplyAllLevelScaleItemMods(), ACHIEVEMENT_CRITERIA_TYPE_REACH_LEVEL, PlayerClassLevelInfo::basehealth, PlayerClassLevelInfo::basemana, CharacterDatabase, CONFIG_ALWAYS_MAXSKILL, CONFIG_MAX_RECRUIT_A_FRIEND_BONUS_PLAYER_LEVEL, Unit::getClass(), Unit::GetCreateHealth(), Unit::GetCreateMana(), Unit::GetCreateStat(), GetGuild(), Unit::GetLevel(), Unit::GetMaxPower(), GetPet(), Unit::GetPower(), Unit::getRace(), Unit::getRaceMask(), GetSession(), GUILD_MEMBER_DATA_LEVEL, Object::HasByteFlag(), WorldPackets::Misc::LevelUpInfo::HealthDelta, InitGlyphsForLevel(), InitTalentForLevel(), InitTaxiNodesForLevel(), Unit::isDead(), WorldPackets::Misc::LevelUpInfo::Level, m_grantableLevels, m_Played_time, MAIL_CREATURE, MailLevelReward::mailTemplateId, MAX_STATS, PLAYED_TIME_LEVEL, PLAYER_FIELD_BYTES, PLAYER_NEXT_LEVEL_XP, POWER_ENERGY, POWER_FOCUS, POWER_HAPPINESS, POWER_MANA, POWER_RAGE, WorldPackets::Misc::LevelUpInfo::PowerDelta, SendDirectMessage(), MailLevelReward::senderEntry, MailDraft::SendMailTo(), SendQuestGiverStatusMultiple(), Object::SetByteFlag(), Unit::SetCreateHealth(), Unit::SetCreateMana(), Unit::SetCreateStat(), Unit::SetFullHealth(), Unit::SetLevel(), Unit::SetPower(), Unit::SetUInt32Value(), sObjectMgr, sScriptMgr, STAT_STRENGTH, WorldPackets::Misc::LevelUpInfo::StatDelta, PlayerLevelInfo::stats, sWorld, UpdateAchievementCriteria(), UpdateAllStats(), UpdateSkillsForLevel(), UpdateSkillsToMaxSkillsForLevel(), and WorldPackets::Misc::LevelUpInfo::Write().
Referenced by GiveXP(), WorldSession::HandleAcceptGrantLevel(), and character_commandscript::HandleCharacterLevel().
bool Player::GiveQuestSourceItem | ( | Quest const * | quest | ) |
References CanStoreNewItem(), EQUIP_ERR_CANT_CARRY_MORE_OF_THIS, EQUIP_ERR_OK, Quest::GetSrcItemCount(), Quest::GetSrcItemId(), NULL_BAG, NULL_SLOT, SendEquipError(), SendNewItem(), and StoreNewItem().
Referenced by AddQuest().
References CONFIG_MAX_PLAYER_LEVEL, GetBattlegroundId(), Unit::GetLevel(), GetsRecruitAFriendBonus(), Object::GetUInt32Value(), GetXPRestBonus(), WorldObject::GetZoneId(), GiveLevel(), Unit::HasAnyAuras(), Creature::hasLootRecipient(), HasPlayerFlag(), Unit::IsAlive(), Object::IsCreature(), PLAYER_FLAGS_NO_XP_GAIN, PLAYER_NEXT_LEVEL_XP, PLAYER_XP, SendLogXPGain(), Unit::SetUInt32Value(), sWorld, and Object::ToCreature().
Referenced by KillRewarder::_RewardXP(), CheckAreaExploreAndOutdoor(), RewardHonor(), and RewardQuest().
void Player::GroupEventHappens | ( | uint32 | questId, |
WorldObject const * | pEventObject | ||
) |
References AreaExploredOrEventHappens(), GetCorpse(), GetGroup(), and IsAtGroupRewardDistance().
Referenced by SmartAI::EndPath(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), spell_image_of_drakuru_reagent_check::HandleDummyEffect(), npc_tooga::npc_toogaAI::MoveInLineOfSight(), npc_jungle_punch_target::npc_jungle_punch_targetAI::proceedCwEvent(), SmartScript::ProcessAction(), Map::ScriptsProcess(), SmartAI::StopFollow(), npc_crusade_persuaded::npc_crusade_persuadedAI::UpdateAI(), npc_winterfin_playmate::UpdateAI(), npc_snowfall_glade_playmate::UpdateAI(), npc_the_biggest_tree::UpdateAI(), npc_high_oracle_soo_roo::UpdateAI(), npc_elder_kekek::UpdateAI(), npc_the_etymidian::UpdateAI(), npc_alexstraza_the_lifebinder::UpdateAI(), npc_professor_phizzlethorpe::npc_professor_phizzlethorpeAI::WaypointReached(), npc_ranger_lilatha::WaypointReached(), npc_rinji::npc_rinjiAI::WaypointReached(), npc_corporal_keeshan::npc_corporal_keeshanAI::WaypointReached(), npc_deathstalker_erland::npc_deathstalker_erlandAI::WaypointReached(), npc_daphne_stilwell::npc_daphne_stilwellAI::WaypointReached(), npc_kaya_flathoof::npc_kaya_flathoofAI::WaypointReached(), npc_gilthares::npc_giltharesAI::WaypointReached(), npc_mootoo_the_younger::npc_mootoo_the_youngerAI::WaypointReached(), npc_bonker_togglevolt::npc_bonker_togglevoltAI::WaypointReached(), npc_emily::npc_emilyAI::WaypointReached(), npc_apothecary_hanes::npc_Apothecary_HanesAI::WaypointReached(), npc_engineer_helice::npc_engineer_heliceAI::WaypointReached(), npc_wounded_blood_elf::npc_wounded_blood_elfAI::WaypointReached(), npc_bessy::npc_bessyAI::WaypointReached(), npc_maxx_a_million_escort::npc_maxx_a_million_escortAI::WaypointReached(), npc_kservant::npc_kservantAI::WaypointReached(), and npc_isla_starmane::npc_isla_starmaneAI::WaypointReached().
void Player::HandleBaseModValue | ( | BaseModGroup | modGroup, |
BaseModType | modType, | ||
float | amount, | ||
bool | apply | ||
) |
References ApplyPercentModFloatVar(), BASE_ATTACK, BASEMOD_END, Unit::CanModifyStats(), CRIT_PERCENTAGE, FLAT_MOD, LOG_ERROR, m_auraBaseMod, OFF_ATTACK, OFFHAND_CRIT_PERCENTAGE, PCT_MOD, RANGED_ATTACK, RANGED_CRIT_PERCENTAGE, SHIELD_BLOCK_VALUE, UpdateCritPercentage(), and UpdateShieldBlockValue().
Referenced by _ApplyItemBonuses(), _ApplyWeaponDependentAuraCritMod(), ApplyEnchantment(), AuraEffect::HandleAuraModCritPct(), AuraEffect::HandleAuraModWeaponCritPercent(), and AuraEffect::HandleShieldBlockValue().
|
protected |
References Unit::_lastLiquid, BREATH_TIMER, DAMAGE_DROWNING, DAMAGE_EXHAUSTED, DAMAGE_LAVA, DISABLED_MIRROR_TIMER, EnvironmentalDamage(), FATIGUE_TIMER, FIRE_TIMER, Unit::GetLevel(), Unit::GetMaxHealth(), getMaxTimer(), HasPlayerFlag(), IN_MILLISECONDS, Unit::IsAlive(), m_MirrorTimer, m_MirrorTimerFlags, m_MirrorTimerFlagsLast, MAX_TIMERS, PLAYER_FLAGS_GHOST, RepopAtGraveyard(), SendMirrorTimer(), LiquidTypeEntry::SpellId, StopMirrorTimer(), UNDERWATER_EXIST_TIMERS, UNDERWATER_INDARKWATER, UNDERWATER_INLAVA, UNDERWATER_INWATER, and urand().
Referenced by Update().
void Player::HandleFall | ( | MovementInfo const & | movementInfo | ) |
References ACHIEVEMENT_CRITERIA_TYPE_FALL_WITHOUT_DYING, CHEAT_GOD, DAMAGE_FALL, EnvironmentalDamage(), MovementInfo::fallTime, GetCommandStatus(), Unit::GetHealth(), Unit::GetMaxHealth(), Position::GetPositionZ(), Unit::GetTotalAuraModifier(), Unit::HasAura(), Unit::HasFeatherFallAura(), Unit::HasFlyAura(), Unit::HasHoverAura(), Unit::IsAlive(), Unit::isDead(), IsGameMaster(), Unit::IsImmunedToDamageOrSchool(), LOG_DEBUG, m_lastFallZ, MovementInfo::pos, RATE_DAMAGE_FALL, SPELL_AURA_SAFE_FALL, SPELL_SCHOOL_MASK_NORMAL, sWorld, and UpdateAchievementCriteria().
Referenced by WorldSession::HandleMovementOpcodes().
|
protected |
The player sobers by 1% every 9 seconds.
References GetDrunkValue(), m_drunkTimer, and SetDrunkValue().
Referenced by Update().
bool Player::Has310Flyer | ( | bool | checkAllSpells, |
uint32 | excludeSpellId = 0 |
||
) |
References SpellInfo::Effects, m_ExtraFlags, m_spells, MAX_SPELL_EFFECTS, PLAYER_EXTRA_HAS_310_FLYER, PLAYERSPELL_REMOVED, SetHas310Flyer(), SKILL_MOUNTS, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, and sSpellMgr.
Referenced by _addSpell(), and removeSpell().
bool Player::HasAchieved | ( | uint32 | achievementId | ) | const |
References AchievementMgr::HasAchieved(), and m_achievementMgr.
Referenced by _LoadBrewOfTheMonth(), ServerMailCondition::CheckCondition(), spell_gen_on_tournament_mount::GetPennatSpellId(), BattlegroundIC::HandleAreaTrigger(), lfg::LFGMgr::InitializeLockedDungeons(), and Satisfy().
|
overridevirtual |
Reimplemented from Unit.
References Unit::getPowerType(), and sScriptMgr.
Referenced by Create(), and ResetAllPowers().
bool Player::HasActiveSpell | ( | uint32 | spell | ) | const |
References m_activeSpec, m_spells, and PLAYERSPELL_REMOVED.
Referenced by _AddSpellCooldown(), ActivateSpec(), spell_dk_dancing_rune_weapon::CheckProc(), WorldSession::HandleCastSpellOpcode(), and learnSpell().
|
inline |
References m_atLoginFlags.
Referenced by WorldSession::HandlePlayerLoginFromDB(), LoadCorpse(), LoadFromDB(), resetSpells(), Pet::resetTalents(), resetTalents(), and Pet::resetTalentsForAllPetsOf().
bool Player::HasCasterSpec | ( | ) |
References GetActiveSpec(), GetSpec(), TALENT_TREE_DRUID_BALANCE, TALENT_TREE_HUNTER_BEAST_MASTERY, TALENT_TREE_HUNTER_MARKSMANSHIP, TALENT_TREE_HUNTER_SURVIVAL, TALENT_TREE_MAGE_ARCANE, TALENT_TREE_MAGE_FIRE, TALENT_TREE_MAGE_FROST, TALENT_TREE_PRIEST_SHADOW, TALENT_TREE_SHAMAN_ELEMENTAL, TALENT_TREE_WARLOCK_AFFLICTION, TALENT_TREE_WARLOCK_DEMONOLOGY, and TALENT_TREE_WARLOCK_DESTRUCTION.
|
inline |
|
inlineprivate |
|
inline |
References GetMoney().
|
inline |
References GetMoney().
Referenced by BuyItemFromVendorSlot(), CanCompleteQuest(), CanRewardQuest(), DurabilityRepair(), WorldSession::HandleAcceptTradeOpcode(), WorldSession::HandleAlterAppearance(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleBuybackItem(), WorldSession::HandleBuyBankSlotOpcode(), Guild::HandleBuyBankTab(), WorldSession::HandleBuyStableSlot(), WorldSession::HandleMailTakeItem(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandleSendMail(), Guild::HandleSetEmblem(), WorldSession::HandleTrainerBuySpellOpcode(), npc_experience::OnGossipSelect(), OnGossipSelect(), ProcessCastaction(), ProcessUnlearnAction(), resetTalents(), and TradeData::SetMoney().
bool Player::HasFreeBattlegroundQueueId | ( | ) | const |
References _BgBattlegroundQueueID, BATTLEGROUND_QUEUE_NONE, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by Group::CanJoinBattlegroundQueue(), WorldSession::HandleBattlemasterJoinArena(), and WorldSession::HandleBattlemasterJoinOpcode().
bool Player::HasHealSpec | ( | ) |
References GetActiveSpec(), GetSpec(), TALENT_TREE_DRUID_RESTORATION, TALENT_TREE_PALADIN_HOLY, TALENT_TREE_PRIEST_DISCIPLINE, TALENT_TREE_PRIEST_HOLY, and TALENT_TREE_SHAMAN_RESTORATION.
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, BANK_SLOT_ITEM_END, BANK_SLOT_ITEM_START, CURRENCYTOKEN_SLOT_END, EQUIPMENT_SLOT_START, GetBagByPos(), Item::GetCount(), Object::GetEntry(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, Item::IsInTrade(), and KEYRING_SLOT_START.
Referenced by LootItem::AllowedForPlayer(), BuyItemFromVendorSlot(), CanCompleteRepeatableQuest(), Spell::CheckItems(), spell_dk_raise_dead::CheckReagents(), Spell::EffectCreateItem2(), GetResurrectionSpellId(), go_soulwell::go_soulwellAI::GossipHello(), go_celestial_planetarium_access::go_celestial_planetarium_accessAI::GossipHello(), misc_commandscript::HandleAddItemCommand(), lfg::LFGMgr::InitializeLockedDungeons(), npc_brewfest_keg_thrower::MoveInLineOfSight(), npc_brewfest_keg_reciver::MoveInLineOfSight(), npc_lokhtos_darkbargainer::OnGossipHello(), npc_oculus_drakegiver::OnGossipHello(), npcs_flanis_swiftwing_and_kagrosh::OnGossipHello(), npc_artorius::OnGossipHello(), npc_simone::OnGossipHello(), npc_nelson::OnGossipHello(), npc_franklin::OnGossipHello(), npc_taxi::OnGossipHello(), npc_locksmith::OnGossipHello(), npc_oculus_drakegiver::OnGossipSelect(), npc_cos_chromie_start::OnGossipSelect(), go_apexis_relic::OnGossipSelect(), AreaTrigger_at_voltarus_middle::OnTrigger(), near_scarshield_infiltrator::OnTrigger(), at_scarshield_infiltrator::OnTrigger(), at_twilight_grove::OnTrigger(), NPCStaveQuestAI::QuestIncomplete(), npc_lake_frog::npc_lake_frogAI::ReceiveEmote(), npc_finklestein::npc_finklesteinAI::RightClickCauldron(), Satisfy(), npc_aquementas::npc_aquementasAI::SendItem(), npc_maredis_firestar::npc_maredis_firestarAI::sGossipHello(), and Spell::WriteCastResultInfo().
bool Player::HasItemFitToSpellRequirements | ( | SpellInfo const * | spellInfo, |
Item const * | ignoreItem = nullptr |
||
) | const |
References EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, EQUIPMENT_SLOT_START, EQUIPMENT_SLOT_TABARD, SpellInfo::EquippedItemClass, GetUseableItemByPos(), INVENTORY_SLOT_BAG_0, Item::IsFitToSpellRequirements(), ITEM_CLASS_ARMOR, ITEM_CLASS_WEAPON, and LOG_ERROR.
Referenced by Unit::CalcArmorReducedDamage(), Spell::CheckItems(), and RemoveItemDependentAurasAndCasts().
bool Player::HasItemOrGemWithIdEquipped | ( | uint32 | item, |
uint32 | count, | ||
uint8 | except_slot = NULL_SLOT |
||
) | const |
References _Socket::Color, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, ItemTemplate::GemProperties, Item::GetCount(), Object::GetEntry(), Item::GetGemCountWithID(), GetItemByPos(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, sObjectMgr, and ItemTemplate::Socket.
Referenced by npc_eris_hevenfire::npc_eris_hevenfireAI::CanBeSeen(), npc_balance_of_light_and_shadow::npc_balance_of_light_and_shadowAI::CanBeSeen(), CanEquipUniqueItem(), achievement_pb_pilgrims_peril::OnCheck(), and achievement_pb_terokkar_turkey_time::OnCheck().
bool Player::HasItemOrGemWithLimitCategoryEquipped | ( | uint32 | limitCategory, |
uint32 | count, | ||
uint8 | except_slot = NULL_SLOT |
||
) | const |
References _Socket::Color, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Item::GetCount(), Item::GetEnchantmentId(), Item::GetGemCountWithLimitCategory(), GetItemByPos(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, ItemTemplate::ItemLimitCategory, PRISMATIC_ENCHANTMENT_SLOT, and ItemTemplate::Socket.
Referenced by CanEquipUniqueItem().
bool Player::HasItemTotemCategory | ( | uint32 | TotemCategory | ) | const |
References CURRENCYTOKEN_SLOT_END, EQUIPMENT_SLOT_START, GetBagByPos(), GetItemByPos(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, IsTotemCategoryCompatiableWith(), and KEYRING_SLOT_START.
Referenced by Spell::CheckItems().
bool Player::HasMeleeSpec | ( | ) |
References FORM_CAT, GetActiveSpec(), Unit::GetShapeshiftForm(), GetSpec(), TALENT_TREE_DEATH_KNIGHT_FROST, TALENT_TREE_DEATH_KNIGHT_UNHOLY, TALENT_TREE_DRUID_FERAL_COMBAT, TALENT_TREE_PALADIN_RETRIBUTION, TALENT_TREE_ROGUE_ASSASSINATION, TALENT_TREE_ROGUE_COMBAT, TALENT_TREE_ROGUE_SUBTLETY, TALENT_TREE_SHAMAN_ENHANCEMENT, TALENT_TREE_WARRIOR_ARMS, and TALENT_TREE_WARRIOR_FURY.
|
inline |
|
inline |
References m_pendingSpectatorForBG.
Referenced by WorldSession::HandleMoveWorldportAck(), and TeleportTo().
|
inline |
References Object::HasFlag(), and PLAYER_FLAGS.
Referenced by _SaveCharacter(), Battleground::AddPlayer(), WorldSession::BuildPartyMemberStatsChangedPacket(), Spell::CheckCast(), CreateCorpse(), Spell::EffectStuck(), Unit::GetReactionTo(), GiveXP(), HandleDrowning(), WorldSession::HandleLogoutRequestOpcode(), WorldSession::HandleMirrorImageDataRequest(), WorldSession::HandleMovementOpcodes(), WorldSession::HandleMoveTeleportAck(), WorldSession::HandlePlayerLoginFromDB(), WorldSession::HandleReclaimCorpseOpcode(), WorldSession::HandleRepopRequestOpcode(), WorldSession::HandleRequestPartyMemberStatsOpcode(), isAFK(), IsCommentator(), IsDeveloper(), isDND(), Unit::Kill(), LoadFromDB(), npc_experience::OnGossipHello(), Update(), UpdatePvPFlag(), and UpdatePvPState().
bool Player::HasPvPForcingQuest | ( | ) | const |
References GetQuestSlotQuestId(), Quest::HasFlag(), MAX_QUEST_LOG_SIZE, QUEST_FLAGS_FLAGS_PVP, and sObjectMgr.
Referenced by Spell::EffectQuestClear(), WorldSession::HandleQuestLogRemoveQuest(), RewardQuest(), and UpdateZone().
bool Player::HasQuest | ( | uint32 | questId | ) | const |
References GetQuestSlotQuestId(), and MAX_QUEST_LOG_SIZE.
bool Player::HasQuestForGO | ( | int32 | GOId | ) | const |
References QuestStatusData::CreatureOrGOCount, GetDifficulty(), GetGroup(), WorldObject::GetMap(), GetQuestSlotQuestId(), Quest::IsAllowedInRaid(), m_QuestStatus, MAX_QUEST_LOG_SIZE, QUEST_OBJECTIVES_COUNT, QUEST_STATUS_INCOMPLETE, Quest::RequiredNpcOrGo, Quest::RequiredNpcOrGoCount, sObjectMgr, and QuestStatusData::Status.
Referenced by GameObject::ActivateToQuest().
bool Player::HasQuestForItem | ( | uint32 | itemId, |
uint32 | excludeQuestId = 0 , |
||
bool | turnIn = false , |
||
bool * | showInLoot = nullptr |
||
) | const |
References GetDifficulty(), GetGroup(), GetItemCount(), WorldObject::GetMap(), GetQuestSlotQuestId(), InBattleground(), Quest::IsAllowedInRaid(), QuestStatusData::ItemCount, Quest::ItemDrop, Quest::ItemDropQuantity, m_QuestStatus, MAX_QUEST_LOG_SIZE, ItemTemplate::MaxCount, QUEST_ITEM_OBJECTIVES_COUNT, QUEST_SOURCE_ITEM_IDS_COUNT, QUEST_STATUS_COMPLETE, QUEST_STATUS_INCOMPLETE, Quest::RequiredItemCount, Quest::RequiredItemId, sObjectMgr, and QuestStatusData::Status.
Referenced by LootItem::AllowedForPlayer(), LootTemplate::HasQuestDropForPlayer(), LootTemplate::LootGroup::HasQuestDropForPlayer(), at_twilight_grove::OnTrigger(), and RewardQuest().
|
inline |
|
inline |
bool Player::HasSkill | ( | uint32 | skill | ) | const |
References mSkillStatus, and SKILL_DELETED.
Referenced by _addSpell(), LootItem::AllowedForPlayer(), CanUseItem(), character_commandscript::HandleCharacterCheckProfessionCommand(), lookup_commandscript::HandleLookupSkillCommand(), WorldSession::HandleMessagechatOpcode(), LearnDefaultSkills(), npc_prof_alchemy::OnGossipHello(), npc_engineering_tele_trinket::OnGossipHello(), npc_prof_leather::OnGossipHello(), npc_prof_tailor::OnGossipHello(), and go_evil_book_for_dummies::OnGossipHello().
|
inline |
References GetSession(), WorldSession::GetSessionDbLocaleIndex(), LOCALE_esES, and LOCALE_esMX.
|
overridevirtual |
Reimplemented from Unit.
References m_activeSpec, m_spells, and PLAYERSPELL_REMOVED.
Referenced by ActivateSpec(), AddSpellAndCategoryCooldowns(), LootItem::AllowedForPlayer(), canCreateExtraItems(), CanCreatePerfectItem(), canFlyInZone(), Group::CanJoinBattlegroundQueue(), npc_engineering_tele_trinket::CanLearn(), CanResummonPet(), CanRollForItemInLFG(), CanUseItem(), Spell::EffectCastButtons(), GetExplicitDiscoverySpell(), GetResurrectionSpellId(), GetSkillDiscoverySpell(), GetStartPosition(), GetTrainerSpellState(), WorldSession::HandleBattlemasterJoinOpcode(), Acore::PlayerCommand::HandleLearnSpellCommand(), lookup_commandscript::HandleLookupSpellCommand(), lookup_commandscript::HandleLookupSpellIdCommand(), WorldSession::HandleTrainerBuySpellOpcode(), Acore::PlayerCommand::HandleUnlearnSpellCommand(), npc_prof_alchemy::HasAlchemySpell(), HasDiscoveredAllSpells(), npc_prof_leather::HasLeatherSpecialty(), go_evil_book_for_dummies::HasLeatherSpecialty(), npc_prof_tailor::HasTailorSpell(), npc_prof_blacksmith::HasWeaponSub(), IsActionButtonDataValid(), Creature::IsValidTrainerForPlayer(), learnQuestRewardedSpells(), boss_gloomrel::OnGossipHello(), npc_roxi_ramrocket::OnGossipHello(), npc_prof_alchemy::OnGossipHello(), npc_prof_blacksmith::OnGossipHello(), npc_prof_leather::OnGossipHello(), npc_prof_tailor::OnGossipHello(), go_evil_book_for_dummies::OnGossipHello(), ProcessCastaction(), resetTalents(), WorldSession::SendTrainerList(), and TeleportTo().
|
overridevirtual |
Reimplemented from Unit.
References getMSTime(), and m_spellCooldowns.
Referenced by spell_rog_cheat_death::Absorb(), CastItemUseSpell(), Spell::CheckCast(), Spell::EffectCastButtons(), Spell::EffectStuck(), GetResurrectionSpellId(), Aura::HandleAuraSpecificMods(), Unit::HandleDummyAuraProc(), WorldSession::HandlePetCastSpellOpcode(), spell_gen_divine_storm_cd_reset::HandleScript(), spell_hun_chimera_shot::HandleScriptEffect(), npc_sayge::OnGossipHello(), and UpdateCharmedAI().
Reimplemented from Unit.
References getMSTime(), and m_spellCooldowns.
bool Player::HasSpellMod | ( | SpellModifier * | mod, |
Spell * | spell | ||
) |
References Spell::m_appliedMods, and SpellModifier::ownerAura.
Referenced by ApplySpellMod().
References m_activeSpec, m_talents, and PLAYERSPELL_REMOVED.
Referenced by ActivateSpec(), GetSpec(), AuraEffect::HandleShapeshiftBoosts(), and LearnTalent().
bool Player::HasTankSpec | ( | ) |
References FORM_BEAR, FORM_DIREBEAR, Unit::GetShapeshiftForm(), GetSpec(), TALENT_TREE_DEATH_KNIGHT_BLOOD, TALENT_TREE_DRUID_FERAL_COMBAT, TALENT_TREE_PALADIN_PROTECTION, and TALENT_TREE_WARRIOR_PROTECTION.
|
inline |
bool Player::HasTitle | ( | uint32 | bitIndex | ) | const |
References Object::HasFlag(), MAX_TITLE_INDEX, and PLAYER__FIELD_KNOWN_TITLES.
Referenced by character_commandscript::HandleCharacterTitlesCommand(), lookup_commandscript::HandleLookupTitleCommand(), titles_commandscript::HandleTitlesRemoveCommand(), titles_commandscript::HandleTitlesSetMaskCommand(), LoadFromDB(), and AchievementCriteriaData::Meets().
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Reimplemented from Unit.
References GetWeaponForAttack(), and Unit::HasWeaponForAttack().
bool Player::HaveAtClient | ( | ObjectGuid | guid | ) | const |
References Object::GetGUID(), and m_clientGUIDs.
bool Player::HaveAtClient | ( | WorldObject const * | u | ) | const |
References Object::GetGUID(), m_clientGUIDs, and Object::ToGameObject().
Referenced by Group::AddMember(), WorldObjectChangeAccumulator::BuildPacket(), WorldObject::DestroyForNearbyPlayers(), ArenaSpectator::HandleSpectatorWatchCommand(), Map::SendInitSelf(), Acore::MessageDistDeliverer::SendPacket(), Acore::MessageDistDelivererToHostile::SendPacket(), Unit::SetOwnerGUID(), UpdateVisibilityOf(), and UpdateVisibilityOf().
bool Player::InArena | ( | ) | const |
References GetBattleground(), and Battleground::isArena().
Referenced by CreateCorpse(), WorldSession::HandleReclaimCorpseOpcode(), WorldSession::HandleUseItemOpcode(), achievement_arena_by_type::OnCheck(), RewardHonor(), and AuraEffect::UpdatePeriodic().
|
inline |
References BGData::bgInstanceID, and m_bgData.
Referenced by Group::CanJoinBattlegroundQueue(), CanUninviteFromGroup(), Spell::CheckCast(), SpellInfo::CheckLocation(), CreateCorpse(), AuraEffect::HandleAuraModEffectImmunity(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleGroupDisbandOpcode(), WorldSession::HandleGroupRaidConvertOpcode(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleRaidReadyCheckOpcode(), WorldSession::HandleReclaimCorpseOpcode(), HasQuestForItem(), Battlefield::InvitePlayerToWar(), lfg::LFGMgr::JoinLfg(), Unit::Kill(), RemovePet(), RewardHonor(), Unit::SetContestedPvP(), TeleportTo(), ToggleAFK(), and UpdateZone().
bool Player::InBattlegroundQueue | ( | bool | ignoreArena = false | ) | const |
References _BgBattlegroundQueueID, BATTLEGROUND_QUEUE_2v2, BATTLEGROUND_QUEUE_3v3, BATTLEGROUND_QUEUE_5v5, BATTLEGROUND_QUEUE_NONE, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by Group::CanJoinBattlegroundQueue(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), misc_commandscript::HandleSkirmishCommand(), ArenaSpectator::HandleSpectatorSpectateCommand(), and lfg::LFGMgr::JoinLfg().
bool Player::InBattlegroundQueueForBattlegroundQueueType | ( | BattlegroundQueueTypeId | bgQueueTypeId | ) | const |
References GetBattlegroundQueueIndex(), and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by Group::CanJoinBattlegroundQueue(), and WorldSession::HandleBattlemasterJoinOpcode().
void Player::IncompleteQuest | ( | uint32 | quest_id | ) |
References ADDITIONAL_SAVING_QUEST_STATUS, AdditionalSavingAddMask(), FindQuestSlot(), WorldObject::GetAreaId(), WorldObject::GetZoneId(), MAX_QUEST_LOG_SIZE, QUEST_STATE_COMPLETE, QUEST_STATUS_INCOMPLETE, RemoveQuestSlotState(), SetQuestStatus(), UpdateAreaDependentAuras(), and UpdateZoneDependentAuras().
Referenced by ItemRemovedQuestCheck(), MoneyChanged(), ReputationChanged(), and ReputationChanged2().
void Player::InitDataForForm | ( | bool | reapplyMods = false | ) |
References SpellShapeshiftFormEntry::attackSpeed, BASE_ATTACK, BASE_ATTACK_TIME, FORM_BEAR, FORM_CAT, FORM_DIREBEAR, FORM_GHOUL, Unit::getClass(), Unit::getPowerType(), Unit::GetShapeshiftForm(), MAX_POWERS, OFF_ATTACK, POWER_ENERGY, POWER_RAGE, ChrClassesEntry::powerType, RANGED_ATTACK, sChrClassesStore, Unit::SetAttackTime(), Unit::setPowerType(), SetRegularAttackTime(), sSpellShapeshiftFormStore, UpdateAttackPowerAndDamage(), and UpdateEquipSpellsAtFormChange().
Referenced by AuraEffect::HandleAuraModShapeshift(), and InitStatsForLevel().
void Player::InitDisplayIds | ( | ) |
References PlayerInfo::displayId_f, PlayerInfo::displayId_m, GENDER_FEMALE, GENDER_MALE, Unit::getClass(), Unit::getGender(), Object::GetGUID(), Unit::getRace(), LOG_ERROR, Unit::SetDisplayId(), Unit::SetNativeDisplayId(), sObjectMgr, and Position::ToString().
Referenced by Create(), modify_commandscript::HandleModifyGenderCommand(), reset_commandscript::HandleResetStatsOrLevelHelper(), and LoadFromDB().
void Player::InitGlyphsForLevel | ( | ) |
References Unit::GetLevel(), PLAYER_GLYPHS_ENABLED, SetGlyphSlot(), Unit::SetUInt32Value(), and sGlyphSlotStore.
Referenced by Create(), GiveLevel(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsCommand(), and LoadFromDB().
void Player::Initialize | ( | ObjectGuid::LowType | guid | ) |
References Object::_Create(), and Player.
void Player::InitPrimaryProfessions | ( | ) |
References CONFIG_MAX_PRIMARY_TRADE_SKILL, SetFreePrimaryProfessions(), and sWorld.
Referenced by Create(), and LoadFromDB().
void Player::InitRunes | ( | ) |
References CLASS_CONTEXT_ABILITY, CLASS_DEATH_KNIGHT, IsClass(), Runes::lastUsedRune, m_runes, MAX_RUNES, NUM_RUNE_TYPES, PLAYER_RUNE_REGEN_1, RUNE_BLOOD, runeSlotTypes, Runes::runeState, SetBaseRune(), SetCurrentRune(), Object::SetFloatValue(), SetGracePeriod(), SetRuneConvertAura(), SetRuneCooldown(), and Runes::SetRuneState().
Referenced by Create(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsCommand(), and LoadFromDB().
void Player::InitStatsForLevel | ( | bool | reapplyMods = false | ) |
References _ApplyAllStatBonuses(), _RemoveAllStatBonuses(), PlayerClassLevelInfo::basehealth, PlayerClassLevelInfo::basemana, CONFIG_MAX_PLAYER_LEVEL, Unit::getClass(), Unit::GetCreatePowers(), Unit::GetLevel(), Unit::GetMaxPower(), GetPet(), Unit::GetPower(), Unit::getRace(), Object::HasByteFlag(), InitDataForForm(), Unit::InitStatBuffMods(), Unit::m_createStats, MAX_COMBAT_RATING, MAX_POWERS, MAX_SPELL_SCHOOL, MAX_STATS, PLAYER_ALLOW_ONLY_ABILITY, PLAYER_BLOCK_PERCENTAGE, PLAYER_CRIT_PERCENTAGE, PLAYER_DODGE_PERCENTAGE, PLAYER_FIELD_BYTES2, PLAYER_FIELD_COMBAT_RATING_1, PLAYER_FIELD_MAX_LEVEL, PLAYER_FIELD_MOD_DAMAGE_DONE_NEG, PLAYER_FIELD_MOD_DAMAGE_DONE_PCT, PLAYER_FIELD_MOD_DAMAGE_DONE_POS, PLAYER_FIELD_MOD_HEALING_DONE_POS, PLAYER_FIELD_MOD_TARGET_PHYSICAL_RESISTANCE, PLAYER_FIELD_MOD_TARGET_RESISTANCE, PLAYER_FLAGS_AFK, PLAYER_FLAGS_DND, PLAYER_FLAGS_GHOST, PLAYER_FLAGS_GM, PLAYER_NEXT_LEVEL_XP, PLAYER_NO_REAGENT_COST_1, PLAYER_OFFHAND_CRIT_PERCENTAGE, PLAYER_PARRY_PERCENTAGE, PLAYER_RANGED_CRIT_PERCENTAGE, PLAYER_SHIELD_BLOCK, PLAYER_SPELL_CRIT_PERCENTAGE1, POWER_ENERGY, POWER_FOCUS, POWER_HAPPINESS, POWER_MANA, POWER_RAGE, POWER_RUNIC_POWER, Object::RemoveByteFlag(), Object::RemoveFlag(), RemovePlayerFlag(), Unit::RemoveStandFlags(), Unit::SetArmor(), Unit::SetCreateHealth(), Unit::SetCreateMana(), Unit::SetCreateStat(), Object::SetFloatValue(), Unit::SetFullHealth(), Unit::SetImmuneToAll(), Object::SetInt32Value(), Unit::SetMaxHealth(), Unit::SetMaxPower(), SetObjectScale(), Unit::SetPower(), Unit::SetResistance(), Unit::SetResistanceBuffMods(), Unit::SetStat(), Unit::SetUInt32Value(), Unit::SetUnitFlag(), Unit::SetUnitFlag2(), sObjectMgr, sScriptMgr, STAT_AGILITY, STAT_STRENGTH, PlayerLevelInfo::stats, sWorld, UNIT_BYTE2_FLAG_FFA_PVP, UNIT_BYTE2_FLAG_SANCTUARY, UNIT_FIELD_ATTACK_POWER, UNIT_FIELD_ATTACK_POWER_MODS, UNIT_FIELD_ATTACK_POWER_MULTIPLIER, UNIT_FIELD_AURASTATE, UNIT_FIELD_BASEATTACKTIME, UNIT_FIELD_BYTES_2, UNIT_FIELD_FLAGS, UNIT_FIELD_MAXDAMAGE, UNIT_FIELD_MAXOFFHANDDAMAGE, UNIT_FIELD_MAXRANGEDDAMAGE, UNIT_FIELD_MINDAMAGE, UNIT_FIELD_MINOFFHANDDAMAGE, UNIT_FIELD_MINRANGEDDAMAGE, UNIT_FIELD_MOUNTDISPLAYID, UNIT_FIELD_POWER_COST_MODIFIER, UNIT_FIELD_POWER_COST_MULTIPLIER, UNIT_FIELD_RANGED_ATTACK_POWER, UNIT_FIELD_RANGED_ATTACK_POWER_MODS, UNIT_FIELD_RANGED_ATTACK_POWER_MULTIPLIER, UNIT_FIELD_RANGEDATTACKTIME, UNIT_FLAG2_REGENERATE_POWER, UNIT_FLAG_CONFUSED, UNIT_FLAG_DISABLE_MOVE, UNIT_FLAG_DISARMED, UNIT_FLAG_FLEEING, UNIT_FLAG_IN_COMBAT, UNIT_FLAG_LOOTING, UNIT_FLAG_MOUNT, UNIT_FLAG_NON_ATTACKABLE, UNIT_FLAG_NOT_ATTACKABLE_1, UNIT_FLAG_NOT_SELECTABLE, UNIT_FLAG_PACIFIED, UNIT_FLAG_PET_IN_COMBAT, UNIT_FLAG_PLAYER_CONTROLLED, UNIT_FLAG_SILENCED, UNIT_FLAG_SKINNABLE, UNIT_FLAG_STUNNED, UNIT_FLAG_TAXI_FLIGHT, UNIT_MOD_CAST_SPEED, UNIT_STAND_FLAGS_ALL, and UpdateSkillsForLevel().
Referenced by Create(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsCommand(), and LoadFromDB().
void Player::InitTalentForLevel | ( | ) |
References CalculateTalentsPoints(), GetSession(), m_usedTalentCount, resetTalents(), SendTalentsInfoData(), and SetFreeTalentPoints().
Referenced by ActivateSpec(), Create(), GiveLevel(), character_commandscript::HandleCharacterLevel(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsCommand(), LoadFromDB(), and RewardQuest().
|
inline |
References Unit::getClass(), Unit::GetLevel(), Unit::getRace(), PlayerTaxi::InitTaxiNodesForLevel(), and m_taxi.
Referenced by Create(), GiveLevel(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsCommand(), and LoadFromDB().
bool Player::inRandomLfgDungeon | ( | ) |
References Map::GetDifficulty(), Object::GetGUID(), Map::GetId(), WorldObject::GetMap(), and sLFGMgr.
|
inline |
References m_ExtraFlags, and PLAYER_EXTRA_ACCEPT_WHISPERS.
Referenced by WorldSession::HandleMessagechatOpcode(), message_commandscript::HandleWhispersCommand(), and Whisper().
References ACTION_BUTTON_ITEM, ACTION_BUTTON_SPELL, WorldObject::GetName(), HasSpell(), LOG_DEBUG, LOG_ERROR, MAX_ACTION_BUTTON_ACTION_VALUE, MAX_ACTION_BUTTONS, sObjectMgr, and sSpellMgr.
Referenced by addActionButton().
bool Player::IsActiveQuest | ( | uint32 | quest_id | ) | const |
References m_QuestStatus.
bool Player::IsAffectedBySpellmod | ( | SpellInfo const * | spellInfo, |
SpellModifier * | mod, | ||
Spell * | spell = nullptr |
||
) |
References SpellModifier::charges, SpellInfo::GetDuration(), SpellInfo::IsAffectedBySpellMod(), Spell::m_appliedMods, SpellModifier::op, SpellModifier::ownerAura, and SPELLMOD_DURATION.
Referenced by ApplySpellMod().
|
inline |
References HasPlayerFlag(), and PLAYER_FLAGS_AFK.
Referenced by WorldSession::BuildPartyMemberStatsChangedPacket(), GetChatTag(), SocialMgr::GetFriendInfo(), WorldSession::HandleLogoutRequestOpcode(), WorldSession::HandleMessagechatOpcode(), WorldSession::HandleRequestPartyMemberStatsOpcode(), Battlefield::PlayerAcceptInviteToWar(), WorldSession::SendBfEntered(), Unit::SetCharmedBy(), ToggleAFK(), and Whisper().
bool Player::isAllowedToLoot | ( | Creature const * | creature | ) |
References FREE_FOR_ALL, GetGroup(), Object::GetGUID(), Group::GetLootMethod(), Creature::GetLootRecipient(), Creature::GetLootRecipientGroup(), Creature::GetLootRecipientGUID(), GROUP_LOOT, Loot::hasItemFor(), Loot::hasItemForAll(), Loot::hasOverThresholdItem(), HasPendingBind(), Creature::IsDamageEnoughForLootingAndReward(), Unit::isDead(), Loot::isLooted(), Creature::IsLootRewardDisabled(), Creature::loot, LOOT_SKINNING, Loot::loot_type, MASTER_LOOT, NEED_BEFORE_GREED, ROUND_ROBIN, and Loot::roundRobinPlayer.
Referenced by Unit::PatchValuesUpdate().
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
References duel, DUEL_STATE_CHALLENGED, Unit::IsAlwaysDetectableFor(), IsGroupVisibleFor(), and Object::ToPlayer().
bool Player::IsAtGroupRewardDistance | ( | WorldObject const * | pRewardSource | ) | const |
References CONFIG_GROUP_XP_DISTANCE, GetCorpse(), WorldObject::GetDistance(), WorldObject::GetMap(), Unit::IsAlive(), Map::IsDungeon(), WorldObject::IsInMap(), and sWorld.
Referenced by KillRewarder::_InitGroupData(), KillRewarder::_RewardGroup(), SmartAI::EndPath(), GroupEventHappens(), OutdoorPvP::HandleKill(), OutdoorPvPNA::HandleKill(), Battleground::HandleKillPlayer(), WorldSession::HandleQuestConfirmAccept(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), IsAtLootRewardDistance(), Group::NeedBeforeGreed(), RewardPlayerAndGroupAtEvent(), and npc_custodian_of_time::npc_custodian_of_timeAI::WaypointReached().
bool Player::IsAtLootRewardDistance | ( | WorldObject const * | pRewardSource | ) | const |
References Object::GetGUID(), WorldObject::HasAllowedLooter(), HasPendingBind(), and IsAtGroupRewardDistance().
Referenced by Loot::FillLoot(), Group::GroupLoot(), WorldSession::HandleLootMoneyOpcode(), Group::MasterLoot(), and Group::UpdateLooterGuid().
bool Player::IsAtRecruitAFriendDistance | ( | WorldObject const * | pOther | ) | const |
References CONFIG_MAX_RECRUIT_A_FRIEND_DISTANCE, GetCorpse(), WorldObject::GetDistance(), WorldObject::GetInstanceId(), WorldLocation::GetMapId(), Unit::IsAlive(), and sWorld.
Referenced by GetsRecruitAFriendBonus().
|
static |
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, and INVENTORY_SLOT_BAG_START.
Referenced by _LoadInventory(), _StoreItem(), Item::CanBeTraded(), CanUnequipItem(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleDestroyItemOpcode(), and SwapItem().
|
inlinestatic |
References IsBankPos().
Referenced by _LoadInventory(), Spell::EffectSummonChangeItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleGossipSelectOptionOpcode(), list_commandscript::HandleListItemCommand(), WorldSession::HandleSwapInvItemOpcode(), WorldSession::HandleSwapItem(), IsBankPos(), SplitItem(), and SwapItem().
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, BANK_SLOT_ITEM_END, BANK_SLOT_ITEM_START, and INVENTORY_SLOT_BAG_0.
bool Player::IsBaseRuneSlotsOnCooldown | ( | RuneType | runeType | ) | const |
References GetBaseRune(), GetRuneCooldown(), and MAX_RUNES.
Referenced by Unit::HandleProcTriggerSpell().
|
overridevirtual |
Reimplemented from Unit.
References GetSession(), and WorldSession::PlayerLoading().
Referenced by _addSpell(), addTalent(), MapInstanced::CreateInstanceForPlayer(), SendInitialPacketsAfterAddToMap(), SetHonorPoints(), SetMover(), and UpdateObjectVisibility().
|
inline |
References mSemaphoreTeleport_Far, and mSemaphoreTeleport_Near.
Referenced by _SaveCharacter(), lapseTeleport::Execute(), misc_commandscript::HandleGroupSummonCommand(), WorldSession::HandleMovementOpcodes(), spell_ioc_gunship_portal::HandleScript2(), misc_commandscript::HandleSkirmishCommand(), ArenaSpectator::HandleSpectatorSpectateCommand(), ArenaSpectator::HandleSpectatorWatchCommand(), tele_commandscript::HandleTeleGroupCommand(), IsPetNeedBeTemporaryUnsummoned(), npc_mageguard_dalaran::npc_mageguard_dalaranAI::MoveInLineOfSight(), ResurectUsingRequestData(), SetMover(), and Update().
|
inline |
References mSemaphoreTeleport_Far.
Referenced by WorldSession::LogoutPlayer(), Map::RemoveAllPlayers(), SaveToDB(), and UpdateLocalChannels().
|
inline |
References mSemaphoreTeleport_Near.
Referenced by lapseTeleport::Execute(), and WorldSession::HandleMoveTeleportAck().
|
overridevirtual |
Reimplemented from Unit.
References Unit::getClass(), and sScriptMgr.
Referenced by _ApplyItemBonuses(), ActivateSpec(), ActivateTaxiPathTo(), AddSpellMod(), ApplyEnchantment(), CalculateTalentsPoints(), Group::CanJoinBattlegroundQueue(), CanResummonPet(), CanRollForItemInLFG(), CanUseItem(), Spell::CheckRuneCost(), Create(), WorldSession::DoLootRelease(), DuelComplete(), Spell::EffectActivateRune(), Spell::EffectSummonPet(), EquipItem(), spell_class_call_handler::FilterTargets(), FindEquipSlot(), Graveyard::GetClosestGraveyard(), GetNPCIfCanInteractWith(), spell_gen_on_tournament_mount::GetPennatSpellId(), GetStartPosition(), AuraEffect::HandleAuraConvertRune(), Aura::HandleAuraSpecificMods(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleBattlemasterJoinOpcode(), spell_item_refocus::HandleDummy(), WorldSession::HandleLootMoneyOpcode(), AuraEffect::HandlePeriodicDummyAuraTick(), Unit::HandleProcTriggerSpell(), reset_commandscript::HandleResetLevelCommand(), spell_gen_pet_summoned::HandleScript(), ArenaSpectator::HandleSpectatorSpectateCommand(), InitRunes(), Creature::isCanTrainingAndResetTalentsOf(), Pet::IsPermanentPetFor(), Creature::IsValidTrainerForPlayer(), LearnDefaultSkill(), Pet::LoadPetFromDB(), npc_bunthen_plainswind::OnGossipHello(), npc_silva_filnaveth::OnGossipHello(), npc_bunthen_plainswind::OnGossipSelect(), npc_silva_filnaveth::OnGossipSelect(), PrepareGossipMenu(), RegenerateAll(), TeleportTo(), UpdateAttackPowerAndDamage(), and lfg::LFGMgr::UpdateRaidBrowser().
|
inline |
References HasPlayerFlag(), and PLAYER_FLAGS_COMMENTATOR2.
Referenced by GetChatTag(), and misc_commandscript::HandleCommentatorCommand().
|
inline |
References BGData::bgIsRandom, and m_bgData.
bool Player::IsDailyQuestDone | ( | uint32 | quest_id | ) |
References Object::GetUInt32Value(), PLAYER_FIELD_DAILY_QUESTS_1, PLAYER_MAX_DAILY_QUESTS, and sObjectMgr.
|
inline |
References Unit::HasAura().
|
inline |
References HasPlayerFlag(), and PLAYER_FLAGS_DEVELOPER.
Referenced by GetChatTag(), and misc_commandscript::HandleDevCommand().
|
inline |
|
inlinestatic |
References IsEquipmentPos().
Referenced by _LoadInventory(), BuyItemFromVendorSlot(), CanUnequipItem(), DurabilityRepair(), Spell::EffectSummonChangeItem(), EquipNewItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoEquipItemSlotOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleCancelTempEnchantmentOpcode(), WorldSession::HandleDestroyItemOpcode(), list_commandscript::HandleListItemCommand(), IsEquipmentPos(), SplitItem(), and SwapItem().
References EQUIPMENT_SLOT_END, INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, and INVENTORY_SLOT_BAG_START.
bool Player::IsExistPet | ( | ) |
References PetStable::CurrentPet, GetPetStable(), and PetStable::GetUnslottedHunterPet().
Referenced by CreatePet(), CreatePet(), npc_commandscript::HandleNpcTameCommand(), and pet_commandscript::HandlePetCreateCommand().
bool Player::IsFalling | ( | ) | const |
References Position::GetPositionZ(), Unit::IsInFlight(), and m_lastFallZ.
Referenced by lfg::LFGMgr::TeleportPlayer().
bool Player::IsFFAPvP | ( | ) |
References Unit::IsFFAPvP(), and sScriptMgr.
Referenced by WorldSession::BuildPartyMemberStatsChangedPacket(), WorldSession::HandleRequestPartyMemberStatsOpcode(), RewardHonor(), UpdateFFAPvPFlag(), and UpdateFFAPvPState().
|
inline |
References m_ExtraFlags, and PLAYER_EXTRA_GM_ON.
Referenced by ThreatMgr::_addThreat(), Group::_homebindIfInstance(), Unit::_IsValidAssistTarget(), Unit::_IsValidAttackTarget(), Unit::Attack(), GameObject::BuildValuesUpdate(), BuyItemFromVendorSlot(), npc_coren_direbrew::CanBeSeen(), go_loosely_turned_soil::go_loosely_turned_soilAI::CanBeSeen(), Group::CanJoinBattlegroundQueue(), InstanceMap::CannotEnter(), CanTameExoticPets(), Spell::CheckCast(), CheckInstanceLoginValid(), SpellInfo::CheckTarget(), AchievementMgr::CompletedAchievement(), npc_thrall_warchief::npc_thrall_warchiefAI::DoAction(), spell_class_call_polymorph::FilterTargets(), GetPhaseMaskForSpawn(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleBattlemasterJoinOpcode(), HandleFall(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleInspectOpcode(), WorldSession::HandleMessagechatOpcode(), mmaps_commandscript::HandleMmapPathCommand(), misc_commandscript::HandlePInfoCommand(), Battlefield::HandlePlayerEnterZone(), WorldSession::HandlePlayerLoginFromDB(), WorldSession::HandlePlayerLoginToCharInWorld(), tele_commandscript::HandleTeleCommand(), IsValidCombatTarget(), ThreatCalcHelper::isValidProcess(), boss_felblood_kaelthas::LapseAction(), WorldSession::LogoutPlayer(), MailSender::MailSender(), boss_nalorakk::MoveInLineOfSight(), npc_amanishi_lookout::MoveInLineOfSight(), npc_eagle_trash_aggro_trigger::MoveInLineOfSight(), npc_ouro_spawner::MoveInLineOfSight(), npc_mageguard_dalaran::npc_mageguard_dalaranAI::MoveInLineOfSight(), boss_reliquary_of_souls::boss_reliquary_of_soulsAI::MoveInLineOfSight(), npc_barnes::OnGossipHello(), go_ulduar_pure_saronite_deposit::OnGossipHello(), at_trigger_the_beast_movement::OnTrigger(), at_the_beast_room::OnTrigger(), at_ancient_leaf::OnTrigger(), at_lady_deathwhisper_entrance::OnTrigger(), at_icc_gauntlet_event::OnTrigger(), at_icc_putricide_trap::OnTrigger(), at_hor_shadow_throne::OnTrigger(), Acore::PlayerAtMinimumRangeAway::operator()(), Acore::AnyPlayerInObjectRangeCheck::operator()(), Unit::PatchValuesUpdate(), MapMgr::PlayerCannotEnter(), Unit::ProcessTerrainStatusUpdate(), Battleground::RemovePlayerAtLeave(), boss_kologarn_pit_kill_bunny::Reset(), AchievementMgr::ResetAchievementCriteria(), Satisfy(), npc_minigob_manabonk::SelectTargetInDalaran(), WorldSession::SendListInventory(), Spell::SendLoot(), SetIsSpectator(), Unit::TauntApply(), Unit::TauntFadeOut(), TeleportTo(), ToggleAFK(), AchievementMgr::UpdateAchievementCriteria(), boss_nefarian::UpdateAI(), UpdateFFAPvPState(), UpdateHomebindTime(), and Whisper().
|
inline |
|
inline |
References m_ExtraFlags, and PLAYER_EXTRA_GM_INVISIBLE.
Referenced by gm_commandscript::HandleGMVisibleCommand(), and Channel::Invite().
bool Player::IsGroupVisibleFor | ( | Player const * | p | ) | const |
References CONFIG_GROUP_VISIBILITY, GetTeamId(), IsInSameGroupWith(), IsInSameRaidWith(), and sWorld.
Referenced by IsAlwaysDetectableFor().
bool Player::isHonorOrXPTarget | ( | Unit * | victim | ) | const |
References CREATURE_FLAG_EXTRA_NO_XP, Acore::XP::GetGrayLevel(), Unit::GetLevel(), Creature::HasFlagsExtra(), Object::IsCreature(), Unit::IsCritter(), Unit::IsPet(), Unit::IsTotem(), and Object::ToCreature().
Referenced by spell_warl_drain_soul::HandleTick(), Unit::IsTriggeredAtSpellProcEvent(), achievement_killed_exp_or_honor_target::OnCheck(), RaiseDeadCheck::operator()(), spell_warl_drain_soul::RemoveEffect(), and spell_warl_shadowburn::RemoveEffect().
bool Player::IsImmuneToEnvironmentalDamage | ( | ) |
References Unit::isTargetableForAttack(), and isTotalImmune().
Referenced by EnvironmentalDamage().
bool Player::IsInAreaTriggerRadius | ( | AreaTrigger const * | trigger, |
float | delta = 0.f |
||
) | const |
References WorldObject::GetDistance(), WorldLocation::GetMapId(), AreaTrigger::height, Position::IsWithinBox(), AreaTrigger::length, AreaTrigger::map, AreaTrigger::orientation, AreaTrigger::radius, AreaTrigger::width, AreaTrigger::x, AreaTrigger::y, and AreaTrigger::z.
Referenced by WorldSession::HandleAreaTriggerOpcode(), and Update().
bool Player::IsInSameGroupWith | ( | Player const * | p | ) | const |
References GetGroup(), and Group::SameSubGroup().
Referenced by IsGroupVisibleFor(), and Unit::IsInPartyWith().
|
inline |
References GetGroup().
Referenced by Unit::BuildValuesUpdate(), Spell::CheckCast(), Object::GetUpdateFieldData(), go_soulwell::go_soulwellAI::GossipHello(), WorldSession::HandleQuestConfirmAccept(), WorldSession::HandleRequestPartyMemberStatsOpcode(), IsGroupVisibleFor(), Unit::IsInRaidWith(), and GameObject::Use().
|
inlinestatic |
References CURRENCYTOKEN_SLOT_END, INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, KEYRING_SLOT_START, and NULL_SLOT.
|
inline |
References BGData::isInvited, and m_bgData.
Referenced by WorldSession::HandleMoveWorldportAck(), and WorldSession::LogoutPlayer().
bool Player::IsInvitedForBattlegroundInstance | ( | uint32 | instanceId | ) | const |
References _BgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
bool Player::IsInvitedForBattlegroundQueueType | ( | BattlegroundQueueTypeId | bgQueueTypeId | ) | const |
References _BgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by WorldSession::HandleBattleFieldPortOpcode().
|
inlineoverridevirtual |
Reimplemented from Unit.
References m_isInWater.
Referenced by WorldSession::HandleMovementOpcodes().
bool Player::IsInWhisperWhiteList | ( | ObjectGuid | guid | ) |
References WhisperList.
Referenced by WorldSession::HandleMessagechatOpcode().
bool Player::IsMaxLevel | ( | ) | const |
References Unit::GetLevel(), Object::GetUInt32Value(), and PLAYER_FIELD_MAX_LEVEL.
Referenced by SendQuestReward().
|
inline |
bool Player::IsNeedCastPassiveSpellAtLearn | ( | SpellInfo const * | spellInfo | ) | const |
References Unit::GetShapeshiftForm(), SpellInfo::HasAttribute(), SPELL_ATTR2_ALLOW_WHILE_NOT_SHAPESHIFTED, and SpellInfo::Stances.
Referenced by _addSpell(), and _addTalentAurasAndSpells().
|
overridevirtual |
Reimplemented from WorldObject.
References GetSession(), and WorldObject::IsNeverVisible().
bool Player::IsOutdoorPvPActive | ( | ) |
References Unit::HasInvisibilityAura(), Unit::HasStealthAura(), Unit::HasUnitMovementFlag(), Unit::IsAlive(), Unit::IsInFlight(), IsPvP(), and MOVEMENTFLAG_FLYING.
Referenced by OutdoorPvP::HandleKill(), OutdoorPvPNA::HandleKill(), and OPvPCapturePoint::Update().
|
inline |
References GetSession(), Unit::GetVehicle(), Unit::IsAlive(), IsBeingTeleported(), Object::IsInWorld(), Unit::IsMounted(), and WorldSession::PlayerLogout().
Referenced by Pet::LoadPetFromDB(), and ResummonPetTemporaryUnSummonedIfAny().
bool Player::IsPvP | ( | ) |
References Unit::IsPvP(), and sScriptMgr.
Referenced by WorldSession::BuildPartyMemberStatsChangedPacket(), DuelComplete(), WorldSession::HandleMoveTeleportAck(), WorldSession::HandleRequestPartyMemberStatsOpcode(), IsOutdoorPvPActive(), UpdatePvPFlag(), and UpdatePvPState().
|
inline |
References m_RewardedQuests.
Referenced by CanCompleteQuest(), GetQuestRewardStatus(), GetQuestStatus(), RewardQuest(), SatisfyQuestExclusiveGroup(), and SatisfyQuestPreviousQuest().
|
inline |
References m_resurrectGUID.
Referenced by Spell::EffectResurrect(), Spell::EffectResurrectNew(), and npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI().
|
inline |
References m_resurrectGUID.
|
inline |
References m_ExtraFlags, and PLAYER_EXTRA_SPECTATOR_ON.
Referenced by WorldSession::HandleGroupAcceptOpcode(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleMessagechatOpcode(), spectator_commandscript::HandleSpectatorLeaveCommand(), spectator_commandscript::HandleSpectatorResetCommand(), ArenaSpectator::HandleSpectatorSpectateCommand(), ArenaSpectator::HandleSpectatorWatchCommand(), Pet::LoadPetFromDB(), NeedSendSpectatorData(), Acore::AnyPlayerInObjectRangeCheck::operator()(), Unit::PatchValuesUpdate(), Battleground::ReadyMarkerClicked(), ResummonPetTemporaryUnSummonedIfAny(), SetIsSpectator(), and TeleportTo().
bool Player::IsSpellFitByClassAndRace | ( | uint32 | spell_id | ) | const |
References Unit::getClassMask(), Unit::getRaceMask(), and sSpellMgr.
Referenced by GetTrainerSpellState(), learn_commandscript::HandleLearnAllMySpellsCommand(), and WorldSession::SendTrainerList().
bool Player::IsSummonAsSpectator | ( | ) | const |
References GameTime::GetGameTime(), m_summon_asSpectator, and m_summon_expire.
Referenced by WorldSession::HandleSummonResponseOpcode().
|
inline |
References m_ExtraFlags, and PLAYER_EXTRA_TAXICHEAT.
Referenced by cheat_commandscript::HandleCheatStatusCommand(), cheat_commandscript::HandleTaxiCheatCommand(), and WorldSession::SendTaxiMenu().
bool Player::isTotalImmune | ( | ) | const |
References Unit::GetAuraEffectsByType(), SPELL_AURA_SCHOOL_IMMUNITY, and SPELL_SCHOOL_MASK_ALL.
Referenced by CanUseBattlegroundObject(), and IsImmuneToEnvironmentalDamage().
bool Player::IsTotemCategoryCompatiableWith | ( | ItemTemplate const * | pProto, |
uint32 | requiredTotemCategoryId | ||
) | const |
References TotemCategoryEntry::categoryMask, TotemCategoryEntry::categoryType, GetSkillValue(), ItemTemplate::RequiredSkill, ItemTemplate::RequiredSkillRank, sTotemCategoryStore, and ItemTemplate::TotemCategory.
Referenced by HasItemTotemCategory().
|
inline |
References CanTitanGrip(), EQUIPMENT_SLOT_MAINHAND, GetItemByPos(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, ItemTemplate::InventoryType, and INVTYPE_2HWEAPON.
Referenced by AutoUnequipOffhandIfNeed(), CanEquipItem(), and FindEquipSlot().
bool Player::IsUsingLfg | ( | ) |
References Object::GetGUID(), lfg::LFG_STATE_NONE, and sLFGMgr.
Referenced by misc_commandscript::HandleSkirmishCommand(), ArenaSpectator::HandleSpectatorSpectateCommand(), Channel::JoinChannel(), and UpdateLFGChannel().
|
inlinestatic |
References GENDER_FEMALE.
Referenced by BuildEnumData(), Create(), ConditionMgr::isConditionTypeValid(), and LoadFromDB().
|
inline |
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, BANK_SLOT_ITEM_END, BANK_SLOT_ITEM_START, EQUIPMENT_SLOT_END, GetBagByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, KEYRING_SLOT_END, KEYRING_SLOT_START, NULL_BAG, and NULL_SLOT.
bool Player::IsVisibleGloballyFor | ( | Player const * | player | ) | const |
References WorldSession::GetSecurity(), GetSession(), AccountMgr::IsPlayerAccount(), Unit::IsVisible(), and sScriptMgr.
Referenced by SocialMgr::BroadcastToFriendListers(), SocialMgr::GetFriendInfo(), WorldSession::HandleAddFriendOpcode(), and ChatHandler::needReportToTarget().
References ADDITIONAL_SAVING_INVENTORY_AND_GOLD, ADDITIONAL_SAVING_QUEST_STATUS, AdditionalSavingAddMask(), CanCompleteQuest(), CompleteQuest(), GetQuestSlotQuestId(), Quest::HasSpecialFlag(), QuestStatusData::ItemCount, m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, QUEST_ITEM_OBJECTIVES_COUNT, QUEST_SPECIAL_FLAGS_DELIVER, QUEST_STATUS_INCOMPLETE, Quest::RequiredItemCount, Quest::RequiredItemId, sObjectMgr, QuestStatusData::Status, and UpdateForQuestWorldObjects().
Referenced by Spell::EffectSummonChangeItem(), EquipNewItem(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleBuybackItem(), MoveItemToInventory(), StoreNewItem(), and SwapItem().
References GetItemCount(), GetQuestSlotQuestId(), Quest::HasSpecialFlag(), IncompleteQuest(), QuestStatusData::ItemCount, m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, QUEST_ITEM_OBJECTIVES_COUNT, QUEST_SPECIAL_FLAGS_DELIVER, Quest::RequiredItemCount, Quest::RequiredItemId, sObjectMgr, and UpdateForQuestWorldObjects().
Referenced by DestroyItem(), DestroyItemCount(), DestroyItemCount(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleSellItemOpcode(), MoveItemFromInventory(), and SwapItem().
void Player::JoinedChannel | ( | Channel * | c | ) |
References m_channels.
Referenced by Channel::JoinChannel().
void Player::KillCreditGO | ( | uint32 | entry, |
ObjectGuid | guid = ObjectGuid::Empty |
||
) |
References ADDITIONAL_SAVING_QUEST_STATUS, AdditionalSavingAddMask(), CanCompleteQuest(), CompleteQuest(), QuestStatusData::CreatureOrGOCount, GetQuestSlotQuestId(), Quest::HasSpecialFlag(), m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, QUEST_OBJECTIVES_COUNT, QUEST_SPECIAL_FLAGS_CAST, QUEST_STATUS_INCOMPLETE, Quest::RequiredNpcOrGo, Quest::RequiredNpcOrGoCount, SendQuestUpdateAddCreatureOrGo(), sObjectMgr, and QuestStatusData::Status.
Referenced by GameObject::Use().
void Player::KilledMonster | ( | CreatureTemplate const * | cInfo, |
ObjectGuid | guid | ||
) |
References ASSERT, CreatureTemplate::Entry, CreatureTemplate::KillCredit, KilledMonsterCredit(), and MAX_KILL_CREDIT.
Referenced by KillRewarder::_RewardKillCredit(), and npc_drakuru_shackles::npc_drakuru_shacklesAI::SpellHit().
void Player::KilledMonsterCredit | ( | uint32 | entry, |
ObjectGuid | guid = ObjectGuid::Empty |
||
) |
References ACHIEVEMENT_CRITERIA_TYPE_KILL_CREATURE, ACHIEVEMENT_TIMED_TYPE_CREATURE, ADDITIONAL_SAVING_QUEST_STATUS, AdditionalSavingAddMask(), CanCompleteQuest(), CompleteQuest(), QuestStatusData::CreatureOrGOCount, Map::GetCreature(), GetDifficulty(), Object::GetEntry(), GetGroup(), WorldObject::GetMap(), GetQuestSlotQuestId(), Quest::HasSpecialFlag(), Quest::IsAllowedInRaid(), Quest::IsPVPQuest(), m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, QUEST_OBJECTIVES_COUNT, QUEST_SPECIAL_FLAGS_KILL, QUEST_STATUS_INCOMPLETE, Quest::RequiredNpcOrGo, Quest::RequiredNpcOrGoCount, SendQuestUpdateAddCreatureOrGo(), sObjectMgr, sScriptMgr, StartTimedAchievement(), QuestStatusData::Status, and UpdateAchievementCriteria().
Referenced by npc_dragonmaw_peon::npc_dragonmaw_peonAI::CreditPlayer(), BattlegroundAV::EventPlayerAssaultsPoint(), BattlegroundAB::EventPlayerClickedOnFlag(), go_tadpole_cage::go_tadpole_cageAI::GossipHello(), OutdoorPvPSI::HandleAreaTrigger(), AuraEffect::HandleAuraDummy(), spell_q10714_on_spirits_wings::HandleDummy(), spell_q6124_6129_apply_salve::HandleDummy(), spell_q12937_relief_for_the_fallen::HandleDummy(), spell_q12659_ahunaes_knife::HandleDummy(), spell_q9874_liquid_fire::HandleDummy(), spell_brewfest_main_ram_buff::HandleEffectPeriodic(), OutdoorPvPNA::HandleKillImpl(), BattlegroundAV::HandleKillUnit(), spell_q12805_lifeblood_dummy::HandleScript(), spell_q10612_10613_the_fel_and_the_furious::HandleScriptEffect(), spell_q11065_wrangle_some_aether_rays_aura::if(), spell_gen_have_item_auras::if(), npc_nerubar_victim::npc_nerubar_victimAI::JustDied(), KilledMonster(), npc_brewfest_keg_reciver::MoveInLineOfSight(), npc_brewfest_bark_trigger::MoveInLineOfSight(), npc_creditmarker_visit_with_ancestors::npc_creditmarker_visit_with_ancestorsAI::MoveInLineOfSight(), go_scourge_enclosure::OnGossipHello(), go_warmaul_prison::OnGossipHello(), go_scourge_cage::OnGossipHello(), go_jotunheim_cage::OnGossipHello(), go_dragonflayer_cage::OnGossipHello(), go_veil_skith_cage::OnGossipHello(), npc_captain_saeed::OnGossipSelect(), RewardPlayerAndGroupAtEvent(), npc_finklestein::npc_finklesteinAI::RightClickCauldron(), npc_hallows_end_train_fire::SpellHit(), npc_jungle_punch_target::npc_jungle_punch_targetAI::SpellHit(), and npc_iron_watcher::npc_iron_watcherAI::SpellHit().
void Player::KilledPlayerCredit | ( | uint16 | count = 1 | ) |
References GetDifficulty(), GetGroup(), WorldObject::GetMap(), GetQuestSlotQuestId(), WorldObject::GetZoneId(), Quest::GetZoneOrSort(), Quest::HasSpecialFlag(), Quest::IsAllowedInRaid(), KilledPlayerCreditForQuest(), m_QuestStatus, MAX_QUEST_LOG_SIZE, QUEST_SPECIAL_FLAGS_PLAYER_KILL, QUEST_STATUS_INCOMPLETE, sObjectMgr, and QuestStatusData::Status.
Referenced by KillRewarder::_RewardPlayer().
References CanCompleteQuest(), CompleteQuest(), Quest::GetPlayersSlain(), Quest::GetQuestId(), m_QuestStatus, m_QuestStatusSave, QuestStatusData::PlayerCount, and SendQuestUpdateAddPlayer().
Referenced by KilledPlayerCredit().
void Player::KillPlayer | ( | ) |
References Object::ApplyModFlag(), CalculateCorpseReclaimDelay(), Corpse, WorldLocation::GetMapId(), Unit::GetMotionMaster(), WorldObject::GetTransport(), Unit::HasPreventResurectionAura(), IN_MILLISECONDS, Unit::IsFlying(), m_deathTimer, MINUTE, MOVE_ROOT, MotionMaster::MoveFall(), PLAYER_FIELD_BYTE_RELEASE_TIMER, PLAYER_FIELD_BYTES, Unit::ReplaceAllDynamicFlags(), SendCorpseReclaimDelay(), setDeathState(), SetMovement(), sMapStore, sScriptMgr, StopMirrorTimers(), UNIT_DYNFLAG_NONE, and UpdateCorpseReclaimDelay().
Referenced by WorldSession::HandleMovementOpcodes(), WorldSession::HandleRepopRequestOpcode(), WorldSession::LogoutPlayer(), and Update().
void Player::LearnCustomSpells | ( | ) |
References addSpell(), ASSERT, CONFIG_START_CUSTOM_SPELLS, PlayerInfo::customSpells, Unit::getClass(), Object::GetGUID(), WorldObject::GetName(), Unit::getRace(), Object::IsInWorld(), learnSpell(), LOG_DEBUG, sObjectMgr, SPEC_MASK_ALL, sWorld, and Position::ToString().
Referenced by Create(), learn_commandscript::HandleLearnAllDefaultCommand(), LoadFromDB(), and resetSpells().
References CLASS_CONTEXT_SKILL, CLASS_DEATH_KNIGHT, CONFIG_ALWAYS_MAXSKILL, SkillRaceClassInfoEntry::Flags, Unit::getClass(), Unit::GetLevel(), GetMaxSkillValueForLevel(), Unit::getRace(), GetSkillRaceClassInfo(), GetSkillRangeType(), GetSkillValue(), IsClass(), IsProfessionOrRidingSkill(), LOG_DEBUG, SetSkill(), SKILL_FIST_WEAPONS, SKILL_FLAG_ALWAYS_MAX_VALUE, SKILL_LOCKPICKING, SKILL_RANGE_LANGUAGE, SKILL_RANGE_LEVEL, SKILL_RANGE_MONO, SKILL_RANGE_RANK, SKILL_UNARMED, SkillRaceClassInfoEntry::SkillTierID, sSkillTiersStore, sWorld, and SkillTiersEntry::Value.
Referenced by _addSpell(), and LearnDefaultSkills().
void Player::LearnDefaultSkills | ( | ) |
References Unit::getClass(), Unit::getRace(), HasSkill(), LearnDefaultSkill(), PlayerInfo::skills, and sObjectMgr.
Referenced by Create(), learn_commandscript::HandleLearnAllDefaultCommand(), LoadFromDB(), and resetSpells().
void Player::LearnPetTalent | ( | ObjectGuid | petGuid, |
uint32 | talentId, | ||
uint32 | talentRank | ||
) |
References TalentEntry::DependsOn, TalentEntry::DependsOnRank, CreatureTemplate::family, Creature::GetCreatureTemplate(), Pet::GetFreeTalentPoints(), Object::GetGUID(), GetPet(), Pet::HasSpell(), Pet::learnSpell(), LOG_DEBUG, LOG_ERROR, MAX_PET_TALENT_RANK, MAX_TALENT_RANK, TalentTabEntry::petTalentMask, CreatureFamilyEntry::petTalentType, TalentEntry::RankID, TalentEntry::Row, sCreatureFamilyStore, Pet::SetFreeTalentPoints(), sTalentStore, sTalentTabStore, and TalentEntry::TalentTab.
Referenced by WorldSession::HandleLearnPreviewTalentsPet(), and WorldSession::HandlePetLearnTalent().
void Player::learnQuestRewardedSpells | ( | ) |
References learnQuestRewardedSpells(), m_RewardedQuests, and sObjectMgr.
Referenced by _LoadQuestStatusRewarded(), learn_commandscript::HandleLearnAllDefaultCommand(), learnQuestRewardedSpells(), and resetSpells().
void Player::learnQuestRewardedSpells | ( | Quest const * | quest | ) |
References Unit::CastSpell(), SpellInfo::Effects, Quest::GetRewSpellCast(), HasSpell(), MAX_SPELL_EFFECTS, SPELL_EFFECT_LEARN_SPELL, SPELL_EFFECT_TRADE_SKILL, and sSpellMgr.
References addSpell(), GetActiveSpec(), Unit::getClassMask(), Unit::getRaceMask(), GetSkillLineAbilitiesBySkillLine(), Object::IsInWorld(), learnSpell(), removeSpell(), SKILL_LINE_ABILITY_LEARNED_ON_SKILL_LEARN, SKILL_LINE_ABILITY_LEARNED_ON_SKILL_VALUE, SPEC_MASK_ALL, and sSpellMgr.
Referenced by _LoadSkills(), SetSkill(), and UpdateSkillPro().
void Player::learnSpell | ( | uint32 | spellId, |
bool | temporary = false , |
||
bool | learnFromSkill = false |
||
) |
References addSpell(), GetActiveSpecMask(), Object::GetGUID(), GetTalentSpellCost(), HasActiveSpell(), Object::IsInWorld(), learnSpell(), LOG_DEBUG, m_activeSpec, m_spells, PLAYERSPELL_REMOVED, SendLearnPacket(), SPEC_MASK_ALL, sScriptMgr, sSpellMgr, and Position::ToString().
Referenced by _addSpell(), Spell::EffectLearnSpell(), learn_commandscript::HandleLearnAllGMCommand(), learn_commandscript::HandleLearnAllLangCommand(), learn_commandscript::HandleLearnAllMySpellsCommand(), learn_commandscript::HandleLearnSkillRecipesHelper(), Acore::PlayerCommand::HandleLearnSpellCommand(), spell_gen_profession_research::HandleScript(), spell_item_book_of_glyph_mastery::HandleScript(), WorldSession::HandleTrainerBuySpellOpcode(), LearnCustomSpells(), learnSkillRewardedSpells(), learnSpell(), learnSpellHighRank(), LearnTalent(), and UpdateCraftSkill().
void Player::learnSpellHighRank | ( | uint32 | spellid | ) |
References learnSpell(), learnSpellHighRank(), and sSpellMgr.
Referenced by learnSpellHighRank().
References addTalent(), TalentEntry::addToSpellBook, TalentTabEntry::ClassMask, TalentEntry::DependsOn, TalentEntry::DependsOnRank, SpellInfo::Effects, GetActiveSpec(), GetActiveSpecMask(), Unit::getClassMask(), GetFreeTalentPoints(), GetTalentMap(), GetTalentSpellPos(), SpellInfo::HasAttribute(), SpellInfo::HasEffect(), HasTalent(), learnSpell(), MAX_SPELL_EFFECTS, MAX_TALENT_RANK, PLAYERSPELL_REMOVED, TalentEntry::RankID, TalentEntry::Row, SendLearnPacket(), SetFreeTalentPoints(), SPELL_ATTR0_PASSIVE, SPELL_EFFECT_LEARN_SPELL, sScriptMgr, sSpellMgr, sTalentStore, sTalentTabStore, and TalentEntry::TalentTab.
Referenced by learn_commandscript::HandleLearnAllMyTalentsCommand(), WorldSession::HandleLearnPreviewTalents(), and WorldSession::HandleLearnTalentOpcode().
|
static |
References CHAR_SEL_PLAYER_ARENA_TEAMS, CharacterDatabase, ArenaTeam::DelMember(), Field::Get(), ObjectGuid::GetCounter(), sArenaTeamMgr, and PreparedStatementBase::SetData().
Referenced by DeleteFromDB(), and WorldSession::HandleCharFactionOrRaceChangeCallback().
void Player::LeaveBattleground | ( | Battleground * | bg = nullptr | ) |
References ARENA_DESERTION_TYPE_LEAVE_BG, BG_DESERTION_TYPE_LEAVE_BG, CHAR_INS_DESERTER_TRACK, CharacterDatabase, CONFIG_BATTLEGROUND_TRACK_DESERTERS, GetBattleground(), GameTime::GetGameTime(), Object::GetGUID(), Unit::GetMotionMaster(), Battleground::GetStatus(), Battleground::isArena(), Battleground::isBattleground(), m_deathExpireTime, MotionMaster::MovementExpired(), Unit::RemoveAurasByType(), PreparedStatementBase::SetData(), SPELL_AURA_PERIODIC_DAMAGE, SPELL_AURA_PERIODIC_DAMAGE_PERCENT, SPELL_AURA_PERIODIC_LEECH, sScriptMgr, STATUS_IN_PROGRESS, STATUS_WAIT_JOIN, Unit::StopMoving(), sWorld, and TeleportToEntryPoint().
Referenced by BattlegroundAB::HandleAreaTrigger(), BattlegroundAV::HandleAreaTrigger(), AuraEffect::HandleAuraDummy(), WorldSession::HandleBattlefieldLeaveOpcode(), WorldSession::LogoutPlayer(), and ToggleAFK().
void Player::LeftChannel | ( | Channel * | c | ) |
References m_channels.
Referenced by Channel::KickOrBan(), Channel::LeaveChannel(), and UpdateLocalChannels().
void Player::LoadActions | ( | PreparedQueryResult | result | ) |
References _LoadActions(), and SendActionButtons().
void Player::LoadCorpse | ( | PreparedQueryResult | result | ) |
References _corpseLocation, Object::ApplyModFlag(), AT_LOGIN_RESURRECT, WorldLocation::GetMapId(), HasAtLoginFlag(), Unit::IsAlive(), PLAYER_FIELD_BYTE_RELEASE_TIMER, PLAYER_FIELD_BYTES, RemoveAtLoginFlag(), ResurrectPlayer(), sMapStore, SpawnCorpseBones(), and WorldLocation::WorldRelocate().
Referenced by WorldSession::HandlePlayerLoginFromDB().
bool Player::LoadFromDB | ( | ObjectGuid | guid, |
CharacterDatabaseQueryHolder const & | holder | ||
) |
References Object::_Create(), _LoadActions(), _LoadArenaTeamInfo(), _LoadAuras(), _LoadBrewOfTheMonth(), _LoadCharacterSettings(), _LoadDailyQuestStatus(), _LoadDeclinedNames(), _LoadEntryPointData(), _LoadEquipmentSets(), _LoadGlyphAuras(), _LoadGlyphs(), _LoadGroup(), _LoadHomeBind(), _LoadInstanceTimeRestrictions(), Object::_LoadIntoDataField(), _LoadInventory(), _LoadMail(), _LoadMonthlyQuestStatus(), _LoadPetStable(), _LoadQuestStatus(), _LoadQuestStatusRewarded(), _LoadRandomBGStatus(), _LoadSeasonalQuestStatus(), _LoadSkills(), _LoadSpellCooldowns(), _LoadSpells(), _LoadTalents(), _LoadWeeklyQuestStatus(), _restBonus, Transport::AddPassenger(), PlayerTaxi::AddTaxiDestination(), Unit::AddUnitMovementFlag(), Unit::AddUnitState(), Unit::ApplySpellImmune(), AT_LOGIN_RENAME, AURA_EFFECT_HANDLE_REAL, AURA_INTERRUPT_FLAG_CHANGE_MAP, AURA_STATE_HEALTH_ABOVE_75_PERCENT, AURA_STATE_HEALTHLESS_20_PERCENT, AURA_STATE_HEALTHLESS_35_PERCENT, Transport::CalculatePassengerPosition(), SpellInfo::CasterAuraState, CHAR_NAME_SUCCESS, CHAR_UPD_ADD_AT_LOGIN_FLAG, CharacterDatabase, ObjectMgr::CheckPlayerName(), Unit::ClearInCombat(), PlayerTaxi::ClearTaxiDestinations(), EntryPointData::ClearTaxiPath(), CONFIG_GM_CHAT, CONFIG_GM_LOGIN_STATE, CONFIG_GM_VISIBLE_STATE, CONFIG_GM_WHISPERING_TO, Dead, DEATH_EXPIRE_STEP, DUNGEON_DIFFICULTY_NORMAL, ObjectGuid::Empty, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, MapEntry::Expansion(), HashMapHolder< T >::Find(), WorldObject::FindMap(), Field::Get(), WorldSession::GetAccountId(), Unit::GetAppliedAuras(), Unit::getClass(), ObjectGuid::GetCounter(), GetDifficulty(), GetDrunkValue(), GetDungeonDifficulty(), GetEntryPoint(), Map::GetGameObjectBySpawnIdStore(), GameTime::GetGameTime(), Object::GetGUID(), Object::GetGUID(), InstanceSave::GetInstanceId(), WorldLocation::GetMapId(), Unit::GetMaxHealth(), Unit::GetMaxPower(), WorldObject::GetName(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), SQLQueryHolderBase::GetPreparedResult(), Unit::getRace(), GetRaidDifficulty(), WorldSession::GetRecruiterId(), GetRestBonus(), GetSession(), Aura::GetSpellInfo(), GetTeamId(), Object::GetUInt32Value(), MovementInfo::TransportInfo::guid, Aura::HandleAllEffects(), HasAtLoginFlag(), Unit::HasAuraState(), HasPlayerFlag(), Unit::HasSpiritOfRedemptionAura(), EntryPointData::HasTaxiPath(), HasTitle(), Unit::HealthAbovePct(), Unit::HealthBelowPct(), IMMUNITY_EFFECT, IMMUNITY_STATE, InitDisplayIds(), InitGlyphsForLevel(), InitPrimaryProfessions(), InitRunes(), InitStatsForLevel(), InitTalentForLevel(), InitTaxiNodesForLevel(), MapEntry::Instanceable(), Unit::IsAlive(), WorldSession::IsARecruiter(), MapEntry::IsBattlegroundOrArena(), MapEntry::IsDungeon(), Object::IsInWorld(), MapEntry::IsNonRaidDungeon(), AccountMgr::IsPlayerAccount(), Position::IsPositionValid(), MapEntry::IsRaid(), IsValidGender(), Acore::IsValidMapCoord(), KNOWN_TITLES_SIZE, LearnCustomSpells(), LearnDefaultSkills(), AchievementMgr::LoadFromDB(), ReputationMgr::LoadFromDB(), PlayerTaxi::LoadTaxiDestinationsFromString(), PlayerTaxi::LoadTaxiMask(), LOG_DEBUG, LOG_ERROR, LOG_WARN, m_achievementMgr, m_activeSpec, m_atLoginFlags, m_cinematic, m_deathExpireTime, Unit::m_deathState, m_entryPointData, m_extraBonusTalentCount, m_grantableLevels, m_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, m_items, m_lastHonorUpdateTime, WorldObject::m_movementInfo, WorldObject::m_name, m_nextSave, m_Played_time, Unit::m_race, Unit::m_realRace, m_reputationMgr, m_resetTalentsCost, m_resetTalentsTime, m_social, m_specsCount, m_taxi, WorldObject::m_transport, PlayerInfo::mapId, MAPID_INVALID, MAX_DEATH_COUNT, MAX_DUNGEON_DIFFICULTY, MAX_MONEY_AMOUNT, MAX_POWERS, MAX_RAID_DIFFICULTY, MOVEMENTFLAG_ONTRANSPORT, outDebugValues(), PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, Player, PLAYER__FIELD_KNOWN_TITLES, PLAYER_AMMO_ID, PLAYER_BYTES, PLAYER_BYTES_2, PLAYER_BYTES_3, PLAYER_CHOSEN_TITLE, PLAYER_DUEL_ARBITER, PLAYER_DUEL_TEAM, PLAYER_EXPLORED_ZONES_1, PLAYER_EXPLORED_ZONES_SIZE, PLAYER_EXTRA_ACCEPT_WHISPERS, PLAYER_EXTRA_GM_CHAT, PLAYER_EXTRA_GM_INVISIBLE, PLAYER_EXTRA_GM_ON, PLAYER_FARSIGHT, PLAYER_FIELD_BYTES, PLAYER_FIELD_INV_SLOT_HEAD, PLAYER_FIELD_KILLS, PLAYER_FIELD_KNOWN_CURRENCIES, PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, PLAYER_FIELD_TODAY_CONTRIBUTION, PLAYER_FIELD_WATCHED_FACTION_INDEX, PLAYER_FIELD_YESTERDAY_CONTRIBUTION, PLAYER_FLAGS_GHOST, PLAYER_LOGIN_QUERY_LOAD_ACHIEVEMENTS, PLAYER_LOGIN_QUERY_LOAD_ACTIONS, PLAYER_LOGIN_QUERY_LOAD_AURAS, PLAYER_LOGIN_QUERY_LOAD_BANNED, PLAYER_LOGIN_QUERY_LOAD_BREW_OF_THE_MONTH, PLAYER_LOGIN_QUERY_LOAD_CHARACTER_SETTINGS, PLAYER_LOGIN_QUERY_LOAD_CRITERIA_PROGRESS, PLAYER_LOGIN_QUERY_LOAD_DAILY_QUEST_STATUS, PLAYER_LOGIN_QUERY_LOAD_DECLINED_NAMES, PLAYER_LOGIN_QUERY_LOAD_ENTRY_POINT, PLAYER_LOGIN_QUERY_LOAD_EQUIPMENT_SETS, PLAYER_LOGIN_QUERY_LOAD_FROM, PLAYER_LOGIN_QUERY_LOAD_GLYPHS, PLAYER_LOGIN_QUERY_LOAD_HOME_BIND, PLAYER_LOGIN_QUERY_LOAD_INSTANCE_LOCK_TIMES, PLAYER_LOGIN_QUERY_LOAD_INVENTORY, PLAYER_LOGIN_QUERY_LOAD_MAIL_ITEMS, PLAYER_LOGIN_QUERY_LOAD_MAILS, PLAYER_LOGIN_QUERY_LOAD_MONTHLY_QUEST_STATUS, PLAYER_LOGIN_QUERY_LOAD_OFFLINE_ACHIEVEMENTS_UPDATES, PLAYER_LOGIN_QUERY_LOAD_PET_SLOTS, PLAYER_LOGIN_QUERY_LOAD_QUEST_STATUS, PLAYER_LOGIN_QUERY_LOAD_QUEST_STATUS_REW, PLAYER_LOGIN_QUERY_LOAD_RANDOM_BG, PLAYER_LOGIN_QUERY_LOAD_REPUTATION, PLAYER_LOGIN_QUERY_LOAD_SEASONAL_QUEST_STATUS, PLAYER_LOGIN_QUERY_LOAD_SKILLS, PLAYER_LOGIN_QUERY_LOAD_SOCIAL_LIST, PLAYER_LOGIN_QUERY_LOAD_SPELL_COOLDOWNS, PLAYER_LOGIN_QUERY_LOAD_SPELLS, PLAYER_LOGIN_QUERY_LOAD_TALENTS, PLAYER_LOGIN_QUERY_LOAD_WEEKLY_QUEST_STATUS, PLAYER_NEXT_LEVEL_XP, PLAYER_TRACK_CREATURES, PLAYER_TRACK_RESOURCES, PLAYER_XP, MovementInfo::TransportInfo::pos, PlayerInfo::positionX, PlayerInfo::positionY, PlayerInfo::positionZ, PrepareCharmAISpells(), RAID_DIFFICULTY_10MAN_NORMAL, RATE_REST_OFFLINE_IN_TAVERN_OR_CITY, RATE_REST_OFFLINE_IN_WILDERNESS, Position::Relocate(), Unit::RemoveAllAurasOnDeath(), Unit::RemoveAllAurasRequiringDeadTarget(), Unit::RemoveAurasByType(), Unit::RemoveAurasWithInterruptFlags(), MovementInfo::RemoveMovementFlag(), Unit::RemoveUnitFlag2(), ReplaceAllPlayerFlags(), MovementInfo::TransportInfo::Reset(), REST_FLAG_IN_TAVERN, ResurrectPlayer(), SaveRecallPosition(), SetAcceptWhispers(), SetArenaPoints(), Object::SetByteValue(), Unit::SetCanModifyStats(), SetCreationTime(), Unit::SetCreatorGUID(), PreparedStatementBase::SetData(), SetDrunkValue(), SetDungeonDifficulty(), Object::SetDynamicFlag(), SetFactionForRace(), SetFallInformation(), Object::SetFlag(), Object::SetFloatValue(), SetGameMaster(), SetGMChat(), SetGMVisible(), Object::SetGuidValue(), Unit::SetHealth(), SetHonorPoints(), Object::SetInt32Value(), SetMap(), SetMoney(), SetObjectScale(), Unit::SetOwnerGUID(), WorldSession::SetPlayer(), Unit::SetPower(), SetRaidDifficulty(), SetRestBonus(), SetRestFlag(), Object::SetUInt16Value(), Unit::SetUInt32Value(), Object::SetUInt64Value(), SetVisibleItemSlot(), sInstanceSaveMgr, sMapMgr, sMapStore, sObjectMgr, SPELL_AURA_MOD_SHAPESHIFT, SPELL_AURA_MOD_TAUNT, SPELL_EFFECT_ATTACK_ME, sScriptMgr, sSocialMgr, StoreRaidMapDifficulty(), sWorld, AreaTriggerTeleport::target_mapId, AreaTriggerTeleport::target_Orientation, AreaTriggerTeleport::target_X, AreaTriggerTeleport::target_Y, AreaTriggerTeleport::target_Z, EntryPointData::taxiPath, ObjectGuid::ToString(), Position::ToString(), GameObject::ToTransport(), MovementInfo::transport, UNIT_CHANNEL_SPELL, UNIT_DYNFLAG_REFER_A_FRIEND, UNIT_FIELD_AURASTATE, UNIT_FIELD_BYTES_0, UNIT_FIELD_CHANNEL_OBJECT, UNIT_FIELD_CHARM, UNIT_FIELD_CHARMEDBY, UNIT_FIELD_HOVERHEIGHT, UNIT_FIELD_LEVEL, UNIT_FIELD_SUMMON, UNIT_FLAG2_FORCE_MOVEMENT, UNIT_STATE_ISOLATED, UpdateAllStats(), UpdateHonorFields(), UpdateItemDuration(), WorldObject::UpdatePositionData(), UpdateSkillsForLevel(), and urand().
Referenced by WorldSession::HandlePlayerLoginFromDB().
void Player::LoadPet | ( | ) |
References Object::IsInWorld(), Pet::LoadPetFromDB(), and m_petStable.
Referenced by WorldSession::HandlePlayerLoginFromDB().
|
static |
References CHAR_SEL_CHAR_POSITION, CharacterDatabase, Field::Get(), and PreparedStatementBase::SetData().
Referenced by misc_commandscript::HandleAppearCommand().
void Player::ModifyArenaPoints | ( | int32 | value, |
CharacterDatabaseTransaction | trans = CharacterDatabaseTransaction(nullptr) |
||
) |
If trans is specified, honor save query will be added to trans.
References CHAR_UDP_CHAR_ARENA_POINTS, CharacterDatabase, GetArenaPoints(), Object::GetGUID(), SetArenaPoints(), and PreparedStatementBase::SetData().
Referenced by _StoreOrEquipNewItem(), modify_commandscript::HandleModifyArenaCommand(), RefundItem(), and RewardQuest().
void Player::ModifyHonorPoints | ( | int32 | value, |
CharacterDatabaseTransaction | trans = CharacterDatabaseTransaction(nullptr) |
||
) |
References CHAR_UDP_CHAR_HONOR_POINTS, CharacterDatabase, Object::GetGUID(), GetHonorPoints(), PreparedStatementBase::SetData(), and SetHonorPoints().
Referenced by _StoreOrEquipNewItem(), modify_commandscript::HandleModifyHonorCommand(), RefundItem(), and RewardHonor().
bool Player::ModifyMoney | ( | int32 | amount, |
bool | sendError = true |
||
) |
References EQUIP_ERR_TOO_MUCH_GOLD, GetMoney(), MAX_MONEY_AMOUNT, SendEquipError(), SetMoney(), and sScriptMgr.
Referenced by _StoreOrEquipNewItem(), ActivateTaxiPathTo(), FlightPathMovementGenerator::DoUpdate(), DurabilityRepair(), WorldSession::HandleAcceptTradeOpcode(), WorldSession::HandleAlterAppearance(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleBuybackItem(), WorldSession::HandleBuyBankSlotOpcode(), Guild::HandleBuyBankTab(), WorldSession::HandleBuyStableSlot(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleMailTakeItem(), WorldSession::HandleMailTakeMoney(), Guild::HandleMemberDepositMoney(), Guild::HandleMemberWithdrawMoney(), modify_commandscript::HandleModifyMoneyCommand(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSendMail(), Guild::HandleSetEmblem(), WorldSession::HandleTrainerBuySpellOpcode(), npc_experience::OnGossipSelect(), OnGossipSelect(), QuestApprenticeAnglerPlayerScript::OnPlayerCompleteQuest(), ProcessCastaction(), ProcessUnlearnAction(), RefundItem(), resetTalents(), RewardQuest(), and SetHonorPoints().
References Object::GetUInt32Value(), MAKE_SKILL_BONUS, mSkillStatus, PLAYER_SKILL_BONUS_INDEX, Unit::SetUInt32Value(), SKILL_DELETED, SKILL_PERM_BONUS, and SKILL_TEMP_BONUS.
Referenced by AuraEffect::HandleAuraModSkill().
References Object::GetGUID(), GetSession(), m_spellCooldowns, WorldSession::SendPacket(), and SMSG_MODIFY_COOLDOWN.
void Player::MoneyChanged | ( | uint32 | value | ) |
References CanCompleteQuest(), CompleteQuest(), GetQuestSlotQuestId(), IncompleteQuest(), m_QuestStatus, MAX_QUEST_LOG_SIZE, QUEST_STATUS_COMPLETE, QUEST_STATUS_INCOMPLETE, sObjectMgr, and QuestStatusData::Status.
Referenced by SetMoney().
References GetItemByPos(), ItemRemovedQuestCheck(), RemoveItem(), sScriptMgr, and UpdateTitansGrip().
Referenced by AutoUnequipOffhandIfNeed(), WorldSession::HandleAcceptTradeOpcode(), WorldSession::HandleAuctionSellItem(), and WorldSession::HandleSendMail().
void Player::MoveItemToInventory | ( | ItemPosCountVec const & | dest, |
Item * | pItem, | ||
bool | update, | ||
bool | in_characterInventoryDB = false |
||
) |
References ACHIEVEMENT_CRITERIA_TYPE_RECEIVE_EPIC_ITEM, AddTradeableItem(), Item::GetCount(), Object::GetEntry(), Object::GetGUID(), Item::GetOwnerGUID(), Item::IsBOPTradable(), ITEM_CHANGED, ITEM_NEW, ItemAddedQuestCheck(), Item::SetOwnerGUID(), Item::SetState(), StoreItem(), and UpdateAchievementCriteria().
Referenced by WorldSession::HandleMailTakeItem(), and WorldSession::moveItems().
|
inlineprivate |
References m_bMustDelayTeleport.
Referenced by TeleportTo().
bool Player::NeedSendSpectatorData | ( | ) | const |
References WorldObject::FindMap(), Object::GetGUID(), Battleground::GetPlayers(), Battleground::GetStatus(), Battleground::HaveSpectators(), IsSpectator(), and STATUS_IN_PROGRESS.
Referenced by _AddSpellCooldown(), Spell::cancel(), RemovePet(), Spell::SendChannelStart(), SendClearCooldown(), Spell::SendSpellStart(), setDeathState(), Unit::SetHealth(), Unit::SetMaxHealth(), Unit::SetMaxPower(), Unit::SetPower(), SetSelection(), and SummonPet().
|
inline |
float Player::OCTRegenHPPerSpirit | ( | ) |
References Unit::getClass(), Unit::GetLevel(), Unit::GetStat(), GT_MAX_LEVEL, GtOCTRegenHPEntry::ratio, GtRegenHPPerSptEntry::ratio, sGtOCTRegenHPStore, sGtRegenHPPerSptStore, and STAT_SPIRIT.
Referenced by RegenerateHealth().
float Player::OCTRegenMPPerSpirit | ( | ) |
References Unit::getClass(), Unit::GetLevel(), Unit::GetStat(), GT_MAX_LEVEL, GtRegenMPPerSptEntry::ratio, sGtRegenMPPerSptStore, and STAT_SPIRIT.
Referenced by UpdateManaRegen().
|
static |
References AT_LOGIN_RESURRECT, CHAR_UPD_ADD_AT_LOGIN_FLAG, CharacterDatabase, Corpse::DeleteFromDB(), ObjectGuid::GetCounter(), and PreparedStatementBase::SetData().
Referenced by WorldSession::HandleCharFactionOrRaceChangeCallback(), and misc_commandscript::HandleReviveCommand().
void Player::OnGossipSelect | ( | WorldObject * | source, |
uint32 | gossipListId, | ||
uint32 | menuId | ||
) |
References BATTLEGROUND_TYPE_NONE, GossipMenuItem::BoxMoney, BUY_ERR_NOT_ENOUGHT_MONEY, Unit::CastSpell(), CONFIG_INSTANT_TAXI, CONFIG_MIN_DUALSPEC_LEVEL, Object::GetEntry(), PlayerMenu::GetGossipMenu(), Object::GetGUID(), Object::GetGUID(), GossipMenu::GetItem(), GossipMenu::GetItemData(), Unit::GetLevel(), GossipMenu::GetMenuId(), Unit::GetNpcFlags(), GetSession(), GetSpecsCount(), GOSSIP_ACTION_TOGGLE_INSTANT_FLIGHT, GOSSIP_OPTION_ARMORER, GOSSIP_OPTION_AUCTIONEER, GOSSIP_OPTION_BANKER, GOSSIP_OPTION_BATTLEFIELD, GOSSIP_OPTION_DUALSPEC_INFO, GOSSIP_OPTION_GOSSIP, GOSSIP_OPTION_INNKEEPER, GOSSIP_OPTION_LEARNDUALSPEC, GOSSIP_OPTION_OUTDOORPVP, GOSSIP_OPTION_PETITIONER, GOSSIP_OPTION_QUESTGIVER, GOSSIP_OPTION_SPIRITGUIDE, GOSSIP_OPTION_SPIRITHEALER, GOSSIP_OPTION_STABLEPET, GOSSIP_OPTION_TABARDDESIGNER, GOSSIP_OPTION_TAXIVENDOR, GOSSIP_OPTION_TRAINER, GOSSIP_OPTION_UNLEARNPETTALENTS, GOSSIP_OPTION_UNLEARNTALENTS, GOSSIP_OPTION_VENDOR, GossipMenuItemData::GossipActionMenuId, GossipMenuItemData::GossipActionPoi, HasEnoughMoney(), Object::IsCreature(), Unit::isDead(), Object::IsGameObject(), LANG_INSTANT_FLIGHT_OFF, LANG_INSTANT_FLIGHT_ON, LOG_ERROR, m_isInstantFlightOn, ModifyMoney(), GossipMenuItem::OptionType, PlayerTalkClass, PrepareGossipMenu(), PrepareQuestMenu(), ResetPetTalents(), sBattlegroundMgr, WorldSession::SendAuctionHello(), WorldSession::SendBattleGroundList(), SendBuyError(), PlayerMenu::SendCloseGossip(), WorldSession::SendListInventory(), ChatHandler::SendNotification(), WorldSession::SendPetitionShowList(), PlayerMenu::SendPointOfInterest(), SendPreparedGossip(), SendPreparedQuest(), WorldSession::SendShowBank(), WorldSession::SendStablePet(), WorldSession::SendTabardVendorActivate(), SendTalentWipeConfirm(), WorldSession::SendTaxiMenu(), WorldSession::SendTrainerList(), SetBindPoint(), sOutdoorPvPMgr, sWorld, Object::ToCreature(), ToggleInstantFlight(), Position::ToString(), Object::ToUnit(), and UNIT_NPC_FLAG_FLIGHTMASTER.
Referenced by WorldSession::HandleGossipSelectOptionOpcode().
|
protected |
References BASE_ATTACK, Unit::GetArmor(), Unit::GetAttackTime(), Object::GetFloatValue(), Unit::GetMaxHealth(), Unit::GetMaxPower(), Unit::GetResistance(), Unit::GetStat(), LOG_DEBUG, LOG_LEVEL_DEBUG, PLAYER_BLOCK_PERCENTAGE, POWER_MANA, RANGED_ATTACK, sLog, SPELL_SCHOOL_ARCANE, SPELL_SCHOOL_FIRE, SPELL_SCHOOL_FROST, SPELL_SCHOOL_HOLY, SPELL_SCHOOL_NATURE, SPELL_SCHOOL_SHADOW, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, UNIT_FIELD_MAXDAMAGE, UNIT_FIELD_MAXOFFHANDDAMAGE, UNIT_FIELD_MAXRANGEDDAMAGE, UNIT_FIELD_MINDAMAGE, UNIT_FIELD_MINOFFHANDDAMAGE, and UNIT_FIELD_MINRANGEDDAMAGE.
Referenced by LoadFromDB(), and SaveToDB().
void Player::PetSpellInitialize | ( | ) |
References CharmInfo::BuildActionBar(), CreatureTemplate::family, Unit::GetCharmInfo(), CharmInfo::GetCommandState(), Creature::GetCreatureTemplate(), Pet::GetDuration(), GameTime::GetGameTimeMS(), Object::GetGUID(), GetPet(), Creature::GetReactState(), GetSession(), infinityCooldownDelayCheck, Pet::IsPermanentPetFor(), LOG_DEBUG, Creature::m_CreatureSpellCooldowns, Pet::m_spells, MAKE_UNIT_ACTION_BUTTON, MAX_UNIT_ACTION_BAR_INDEX, PETSPELL_REMOVED, ByteBuffer::put(), WorldSession::SendPacket(), SMSG_PET_SPELLS, and ByteBuffer::wpos().
Referenced by CreatePet(), CreatePet(), Spell::EffectCreateTamedPet(), Spell::EffectLearnPetSpell(), Spell::EffectSummonPet(), Spell::EffectTameCreature(), AuraEffect::HandleModPossessPet(), WorldSession::HandlePlayerLoginToCharInWorld(), WorldSession::HandleRequestPetInfo(), Pet::learnSpell(), Pet::LoadPetFromDB(), Pet::resetTalents(), Unit::SetMinion(), and SummonPet().
void Player::PossessSpellInitialize | ( | ) |
References CharmInfo::BuildActionBar(), Unit::GetCharm(), Unit::GetCharmInfo(), Object::GetGUID(), GetSession(), LOG_ERROR, MAX_UNIT_ACTION_BAR_INDEX, WorldSession::SendPacket(), SMSG_PET_SPELLS, and ObjectGuid::ToString().
Referenced by Unit::SetCharmedBy().
void Player::PrepareCharmAISpells | ( | ) |
References SpellInfo::CalcCastTime(), Unit::CalculateSpellDamage(), SpellInfo::Effects, GetActiveSpec(), SpellInfo::HasAttribute(), SpellInfo::Id, SpellInfo::IsHighRankOf(), SpellInfo::IsPassive(), m_charmAISpells, m_spells, MAX_SPELL_EFFECTS, SpellInfo::NeedsComboPoints(), NUM_CAI_SPELLS, PLAYERSPELL_REMOVED, SPELL_ATTR2_ALLOW_WHILE_NOT_SHAPESHIFTED, SPELL_ATTR7_ATTACK_ON_CHARGE_TO_UNIT, SPELL_AURA_MOD_FEAR, SPELL_AURA_MOD_INCREASE_SPEED, SPELL_AURA_MOD_ROOT, SPELL_AURA_MOD_STUN, SPELL_AURA_PERIODIC_DAMAGE, SPELL_AURA_SCHOOL_IMMUNITY, SPELL_DOT_DAMAGE, SPELL_EFFECT_SCHOOL_DAMAGE, SPELL_FAST_RUN, SPELL_IMMUNITY, SPELL_INSTANT_DAMAGE, SPELL_INSTANT_DAMAGE2, SPELL_ROOT_OR_FEAR, SPELL_T_CHARGE, SPELL_T_STUN, SpellInfo::SpellFamilyName, sSpellMgr, SpellInfo::Stances, and urand().
Referenced by LoadFromDB().
void Player::PrepareGossipMenu | ( | WorldObject * | source, |
uint32 | menuId = 0 , |
||
bool | showQuests = false |
||
) |
Find localizations from database.
Find localizations from database.
References GossipMenu::AddGossipMenuItemData(), GossipMenu::AddMenuItem(), CLASS_CONTEXT_PET, CLASS_HUNTER, PlayerMenu::ClearMenus(), CONFIG_INSTANT_TAXI, CONFIG_MIN_DUALSPEC_LEVEL, DEFAULT_LOCALE, VendorItemData::Empty(), BroadcastText::FemaleText, GAMEOBJECT_TYPE_GOOBER, GAMEOBJECT_TYPE_QUESTGIVER, GENDER_MALE, WorldSession::GetAcoreString(), Creature::GetCreatureTemplate(), GetDefaultGossipMenuForSource(), Unit::getGender(), PlayerMenu::GetGossipMenu(), GameObject::GetGoType(), Object::GetGUID(), Unit::GetLevel(), ObjectMgr::GetLocaleString(), Unit::GetNpcFlags(), GetPet(), GetSession(), WorldSession::GetSessionDbLocaleIndex(), GetSpecsCount(), GOSSIP_ACTION_TOGGLE_INSTANT_FLIGHT, GOSSIP_ICON_INTERACT_1, GOSSIP_OPTION_ARMORER, GOSSIP_OPTION_AUCTIONEER, GOSSIP_OPTION_BANKER, GOSSIP_OPTION_BATTLEFIELD, GOSSIP_OPTION_DUALSPEC_INFO, GOSSIP_OPTION_GOSSIP, GOSSIP_OPTION_INNKEEPER, GOSSIP_OPTION_LEARNDUALSPEC, GOSSIP_OPTION_OUTDOORPVP, GOSSIP_OPTION_PETITIONER, GOSSIP_OPTION_QUESTGIVER, GOSSIP_OPTION_SPIRITGUIDE, GOSSIP_OPTION_SPIRITHEALER, GOSSIP_OPTION_STABLEPET, GOSSIP_OPTION_TABARDDESIGNER, GOSSIP_OPTION_TAXIVENDOR, GOSSIP_OPTION_TRAINER, GOSSIP_OPTION_UNLEARNPETTALENTS, GOSSIP_OPTION_UNLEARNTALENTS, GOSSIP_OPTION_VENDOR, HUNTER_PET, IsClass(), Object::IsCreature(), Unit::isDead(), Object::IsGameObject(), LANG_TOGGLE_INSTANT_FLIGHT, LOG_ERROR, m_spells, MAKE_PAIR32(), BroadcastText::MaleText, PlayerTalkClass, PrepareQuestMenu(), sConditionMgr, GossipMenu::SetMenuId(), sObjectMgr, sOutdoorPvPMgr, sWorld, Object::ToCreature(), Object::ToGameObject(), Object::ToUnit(), CreatureTemplate::trainer_type, TRAINER_TYPE_PETS, UNIT_NPC_FLAG_FLIGHTMASTER, and UNIT_NPC_FLAG_QUESTGIVER.
Referenced by WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleQuestgiverHelloOpcode(), npc_thrall_old_hillsbrad::OnGossipHello(), brann_bronzebeard::OnGossipHello(), go_apexis_relic::OnGossipHello(), OnGossipSelect(), Spell::SendLoot(), npc_maredis_firestar::npc_maredis_firestarAI::sGossipHello(), and GameObject::Use().
void Player::PrepareQuestMenu | ( | ObjectGuid | guid | ) |
References QuestMenu::AddMenuItem(), ASSERT, CanTakeQuest(), QuestMenu::ClearMenu(), ObjectAccessor::GetCreatureOrPetOrVehicle(), Object::GetEntry(), Map::GetGameObject(), WorldObject::GetInstanceId(), WorldObject::GetMap(), WorldLocation::GetMapId(), PlayerMenu::GetQuestMenu(), GetQuestStatus(), Quest::IsAutoComplete(), Quest::IsDaily(), Object::IsInWorld(), Quest::IsMonthly(), Quest::IsRepeatable(), Quest::IsWeekly(), PlayerTalkClass, QUEST_STATUS_COMPLETE, QUEST_STATUS_INCOMPLETE, QUEST_STATUS_NONE, sMapMgr, and sObjectMgr.
Referenced by npc_lokhtos_darkbargainer::OnGossipHello(), npc_highlord_darion_mograine::OnGossipHello(), npc_augustus_the_touched::OnGossipHello(), npc_parqual_fintallas::OnGossipHello(), npc_varian_wrynn::OnGossipHello(), npc_thrall_bfu::OnGossipHello(), npc_cos_chromie_middle::OnGossipHello(), npcs_riverbreeze_and_silversky::OnGossipHello(), npc_thrall_warchief::OnGossipHello(), npc_braug_dimspirit::OnGossipHello(), npc_steward_of_time::OnGossipHello(), npc_stone_watcher_of_norgannon::OnGossipHello(), npc_rivern_frostwind::OnGossipHello(), npc_fos_leader::OnGossipHello(), npc_hor_leader::OnGossipHello(), npc_oculus_drakegiver::OnGossipHello(), npc_shandy_dalaran::OnGossipHello(), npc_razael_and_lyana::OnGossipHello(), npc_mcmanus::OnGossipHello(), npc_vekjik::OnGossipHello(), npc_avatar_of_freya::OnGossipHello(), npc_roxi_ramrocket::OnGossipHello(), npc_wg_demolisher_engineer::OnGossipHello(), npc_wg_spirit_guide::OnGossipHello(), npc_wg_queue::OnGossipHello(), npc_wg_quest_giver::OnGossipHello(), npc_finklestein::OnGossipHello(), npc_captain_saeed::OnGossipHello(), npc_innkeeper::OnGossipHello(), npc_prof_alchemy::OnGossipHello(), npc_prof_blacksmith::OnGossipHello(), npc_prof_leather::OnGossipHello(), npc_prof_tailor::OnGossipHello(), npc_taxi::OnGossipHello(), npc_riggle_bassbait::OnGossipHello(), npc_sayge::OnGossipHello(), go_fel_crystalforge::OnGossipHello(), go_bashir_crystalforge::OnGossipHello(), OnGossipSelect(), PrepareGossipMenu(), and npc_maredis_firestar::npc_maredis_firestarAI::sGossipSelect().
void Player::PrettyPrintRequirementsAchievementsList | ( | const std::vector< const ProgressionRequirement * > & | missingAchievements | ) | const |
References Object::GetGUID(), GetSession(), WorldSession::GetSessionDbLocaleIndex(), LANG_ACCESS_REQUIREMENT_NOTE, AchievementEntry::name, ChatHandler::PSendSysMessage(), sAchievementStore, sObjectMgr, and ObjectGuid::ToString().
Referenced by Satisfy().
void Player::PrettyPrintRequirementsItemsList | ( | const std::vector< const ProgressionRequirement * > & | missingItems | ) | const |
References ObjectMgr::GetLocaleString(), GetSession(), WorldSession::GetSessionDbLocaleIndex(), ItemTemplate::ItemId, ItemQualityColors, LANG_ACCESS_REQUIREMENT_NOTE, ItemTemplate::Name1, ChatHandler::PSendSysMessage(), ItemTemplate::Quality, and sObjectMgr.
Referenced by Satisfy().
void Player::PrettyPrintRequirementsQuestList | ( | const std::vector< const ProgressionRequirement * > & | missingQuests | ) | const |
References ObjectMgr::GetLocaleString(), Quest::GetQuestId(), Quest::GetQuestLevel(), GetSession(), WorldSession::GetSessionDbLocaleIndex(), Quest::GetTitle(), LANG_ACCESS_REQUIREMENT_NOTE, ChatHandler::PSendSysMessage(), and sObjectMgr.
Referenced by Satisfy().
void Player::ProcessDelayedOperations | ( | ) |
References Unit::AddAura(), PlayerTaxi::AddTaxiDestination(), Unit::CastSpell(), EntryPointData::ClearTaxiPath(), ContinueTaxiFlight(), DELAYED_BG_GROUP_RESTORE, DELAYED_BG_MOUNT_RESTORE, DELAYED_BG_TAXI_RESTORE, DELAYED_RESURRECT_PLAYER, DELAYED_SAVE_PLAYER, DELAYED_SPELL_CAST_DESERTER, DELAYED_VEHICLE_TELEPORT, Unit::ExitVehicle(), Unit::GetAura(), Aura::GetDuration(), GetGroup(), Object::GetGUID(), Unit::GetMaxHealth(), Unit::GetMaxPower(), Unit::GetVehicle(), EntryPointData::HasTaxiPath(), Unit::IsInDisallowedMountForm(), m_DelayedOperations, m_entryPointData, m_resurrectHealth, m_resurrectMana, m_taxi, EntryPointData::mountSpell, POWER_ENERGY, POWER_MANA, POWER_RAGE, Unit::RemoveAurasByType(), ResurrectPlayer(), SaveToDB(), Unit::SetFullHealth(), Unit::SetHealth(), Unit::SetPower(), SpawnCorpseBones(), SPELL_AURA_MOD_SHAPESHIFT, and EntryPointData::taxiPath.
Referenced by WorldSession::HandleMoveTeleportAck(), and WorldSession::HandleMoveWorldportAck().
|
protected |
References CanExecutePendingSpellCastRequest(), ExecuteOrCancelSpellCastRequest(), LOG_ERROR, PendingSpellCastRequest::spellId, SpellQueue, and sSpellMgr.
Referenced by Update().
|
overridevirtual |
Reimplemented from Unit.
References VehicleSeatEntry::CanControl(), LiquidData::Flags, WorldObject::GetLiquidData(), Vehicle::GetSeatForPassenger(), WorldObject::GetTransport(), Unit::GetVehicle(), Unit::IsInFlight(), LIQUID_MAP_NO_WATER, LIQUID_MAP_UNDER_WATER, m_MirrorTimerFlags, MAP_ALL_LIQUIDS, MAP_LIQUID_STATUS_IN_CONTACT, MAP_LIQUID_TYPE_DARK_WATER, MAP_LIQUID_TYPE_MAGMA, MAP_LIQUID_TYPE_SLIME, Unit::ProcessTerrainStatusUpdate(), LiquidData::Status, UNDERWATER_INDARKWATER, UNDERWATER_INLAVA, UNDERWATER_INSLIME, and UNDERWATER_INWATER.
|
overridevirtual |
Reimplemented from Unit.
References AddSpellCooldown(), Unit::BuildCooldownPacket(), SpellInfo::GetSchoolMask(), GetSession(), GetSpellCooldownDelay(), SpellInfo::IsCooldownStartedOnEvent(), m_spells, PLAYERSPELL_REMOVED, SpellInfo::PreventionType, WorldSession::SendPacket(), SPELL_COOLDOWN_FLAG_NONE, SPELL_PREVENTION_TYPE_SILENCE, and sSpellMgr.
References ACHIEVEMENT_CRITERIA_TYPE_EQUIP_EPIC_ITEM, ACHIEVEMENT_CRITERIA_TYPE_EQUIP_ITEM, AddEnchantmentDurations(), AddItemDurations(), Object::AddToWorld(), Object::GetEntry(), Object::IsInWorld(), Object::SendUpdateToPlayer(), sScriptMgr, UpdateAchievementCriteria(), and VisualizeItem().
Referenced by _LoadInventory().
|
inline |
References ApplyRatingMod().
Referenced by DestroyItem(), EquipItem(), RemoveItem(), and UpdateAllStats().
|
private |
Already checked before
References ASSERT, CanStoreNewItem(), CharacterDatabase, DestroyItem(), EQUIP_ERR_OK, Item::GetBagSlot(), Object::GetGUID(), Object::GetGUID(), Item::GetPaidExtendedCost(), Item::GetPaidMoney(), Item::GetRefundRecipient(), GetSession(), Item::GetSlot(), Item::IsRefundable(), Item::IsRefundExpired(), LOG_DEBUG, MAX_ITEM_EXTENDED_COST_REQUIREMENTS, ModifyArenaPoints(), ModifyHonorPoints(), ModifyMoney(), NULL_BAG, NULL_SLOT, ItemExtendedCostEntry::reqarenapoints, ItemExtendedCostEntry::reqhonorpoints, ItemExtendedCostEntry::reqitem, ItemExtendedCostEntry::reqitemcount, SaveInventoryAndGoldToDB(), SendNewItem(), WorldSession::SendPacket(), Item::SetNotRefundable(), sItemExtendedCostStore, SMSG_ITEM_REFUND_RESULT, and StoreNewItem().
Referenced by WorldSession::HandleItemRefund().
void Player::Regenerate | ( | Powers | power | ) |
References AddPct(), CHEAT_POWER, CONFIG_LOW_LEVEL_REGEN_BOOST, Unit::GetAuraEffectsByType(), GetCommandStatus(), Object::GetFloatValue(), Unit::GetLevel(), Unit::GetMaxPower(), Unit::GetPower(), Unit::GetTotalAuraModifierByMiscValue(), Unit::HasAura(), Unit::HasAuraTypeWithMiscvalue(), Unit::HasInterruptRegenAura(), IN_MILLISECONDS, Unit::IsInCombat(), Unit::IsUnderLastManaUseEffect(), m_powerFraction, Unit::m_regenTimer, m_regenTimerCount, POWER_ENERGY, POWER_FOCUS, POWER_HAPPINESS, POWER_HEALTH, POWER_MANA, POWER_RAGE, POWER_RUNE, POWER_RUNIC_POWER, RATE_POWER_ENERGY, RATE_POWER_MANA, RATE_POWER_RAGE_LOSS, RATE_POWER_RUNICPOWER_LOSS, Unit::SetPower(), SPELL_AURA_MOD_POWER_REGEN, SPELL_AURA_MOD_POWER_REGEN_PERCENT, SPELL_AURA_PREVENT_REGENERATE_POWER, sWorld, UNIT_FIELD_POWER1, UNIT_FIELD_POWER_REGEN_FLAT_MODIFIER, UNIT_FIELD_POWER_REGEN_INTERRUPTED_FLAT_MODIFIER, and Object::UpdateUInt32Value().
Referenced by RegenerateAll().
void Player::RegenerateAll | ( | ) |
References AURA_INTERRUPT_FLAG_NOT_SEATED, CLASS_CONTEXT_ABILITY, CLASS_DEATH_KNIGHT, Unit::GetAuraEffectsByType(), GetGracePeriod(), GetRuneCooldown(), Unit::HasHealthRegenInCombatAura(), Unit::HasRegenDuringCombatAura(), IsClass(), Unit::IsInCombat(), Unit::IsPolymorphed(), m_baseHealthRegen, m_foodEmoteTimerCount, Unit::m_regenTimer, m_regenTimerCount, MAX_RUNES, POWER_ENERGY, POWER_MANA, POWER_RAGE, POWER_RUNIC_POWER, Regenerate(), RegenerateHealth(), RUNE_GRACE_PERIOD, Unit::SendPlaySpellVisual(), SetGracePeriod(), SetRuneCooldown(), SPELL_AURA_MOD_POWER_REGEN, SPELL_AURA_MOD_REGEN, SPELL_VISUAL_KIT_DRINK, and SPELL_VISUAL_KIT_FOOD.
Referenced by Update().
void Player::RegenerateHealth | ( | ) |
References AddPct(), ApplyPct(), CONFIG_LOW_LEVEL_REGEN_BOOST, Unit::GetAuraEffectsByType(), Unit::GetHealth(), Unit::GetLevel(), Unit::GetMaxHealth(), Unit::GetTotalAuraModifier(), Unit::HasRegenDuringCombatAura(), IN_MILLISECONDS, Unit::IsInCombat(), Unit::IsPolymorphed(), Unit::IsStandState(), m_baseHealthRegen, Unit::ModifyHealth(), OCTRegenHPPerSpirit(), RATE_HEALTH, SPELL_AURA_MOD_HEALTH_REGEN_IN_COMBAT, SPELL_AURA_MOD_HEALTH_REGEN_PERCENT, SPELL_AURA_MOD_REGEN, SPELL_AURA_MOD_REGEN_DURING_COMBAT, and sWorld.
Referenced by RegenerateAll().
void Player::removeActionButton | ( | uint8 | button | ) |
References ACTIONBUTTON_DELETED, ACTIONBUTTON_NEW, Object::GetGUID(), LOG_DEBUG, m_actionButtons, Position::ToString(), and ActionButton::uState.
Referenced by WorldSession::HandleSetActionButtonOpcode().
void Player::RemoveActiveQuest | ( | uint32 | questId, |
bool | update = true |
||
) |
References ADDITIONAL_SAVING_QUEST_STATUS, AdditionalSavingAddMask(), WorldObject::GetAreaId(), WorldObject::GetZoneId(), m_QuestStatus, m_QuestStatusSave, SendQuestUpdate(), UpdateAreaDependentAuras(), and UpdateZoneDependentAuras().
Referenced by Spell::EffectQuestClear(), WorldSession::HandleQuestLogRemoveQuest(), and RewardQuest().
void Player::RemoveAllSpellCooldown | ( | ) |
References GameTime::GetGameTimeMS(), infinityCooldownDelayCheck, m_spellCooldowns, and SendClearCooldown().
Referenced by misc_commandscript::HandleCooldownCommand().
void Player::RemoveAmmo | ( | ) |
References Unit::CanModifyStats(), m_ammoDPS, PLAYER_AMMO_ID, RANGED_ATTACK, Unit::SetUInt32Value(), and Unit::UpdateDamagePhysical().
Referenced by AuraEffect::HandleAuraDummy(), and WorldSession::HandleSetAmmoOpcode().
void Player::RemoveArenaEnchantments | ( | EnchantmentSlot | slot | ) |
References ApplyEnchantment(), GetBagByPos(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, m_enchantDuration, and sSpellMgr.
Referenced by Battleground::AddPlayer().
void Player::RemoveArenaSpellCooldowns | ( | bool | removeActivePetCooldowns = false | ) |
References SpellInfo::CategoryRecoveryTime, GameTime::GetGameTimeMS(), GetPet(), SpellInfo::HasAttribute(), IN_MILLISECONDS, infinityCooldownDelayCheck, m_spellCooldowns, MINUTE, SpellInfo::RecoveryTime, RemoveSpellCooldown(), SendClearCooldown(), SPELL_ATTR4_IGNORE_DEFAULT_ARENA_RESTRICTIONS, and sSpellMgr.
Referenced by TeleportTo().
void Player::RemoveAtLoginFlag | ( | AtLoginFlags | flags, |
bool | persist = false |
||
) |
References CHAR_UPD_REM_AT_LOGIN_FLAG, CharacterDatabase, Object::GetGUID(), m_atLoginFlags, and PreparedStatementBase::SetData().
Referenced by WorldSession::HandlePlayerLoginFromDB(), LoadCorpse(), resetSpells(), Pet::resetTalents(), resetTalents(), and Pet::resetTalentsForAllPetsOf().
void Player::RemoveBattlegroundQueueId | ( | BattlegroundQueueTypeId | val | ) |
References _BgBattlegroundQueueID, BATTLEGROUND_QUEUE_NONE, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by BGQueueRemoveEvent::Execute(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::LogoutPlayer(), and Battleground::RemovePlayerAtLeave().
|
inline |
References m_extraBonusTalentCount.
void Player::RemoveCategoryCooldown | ( | uint32 | cat | ) |
References RemoveSpellCooldown(), and sSpellsByCategoryStore.
Referenced by spell_hun_readiness::HandleDummy(), spell_item_refocus::HandleDummy(), and Unit::HandleProcTriggerSpell().
void Player::RemoveCorpse | ( | ) |
References _corpseLocation, CharacterDatabase, Corpse::DeleteFromDB(), GetCorpse(), Object::GetGUID(), Corpse::RemoveFromWorld(), and WorldLocation::WorldRelocate().
Referenced by WorldSession::HandleMoveWorldportAck().
void Player::RemovedInsignia | ( | Player * | looterPlr | ) |
References _corpseLocation, AREA_WINTERGRASP, BuildPlayerRepop(), Map::ConvertCorpseToBones(), CORPSE_DYNFLAG_LOOTABLE, CORPSE_FIELD_DYNAMIC_FLAGS, GetBattlegroundId(), Object::GetGUID(), Object::GetGUID(), Unit::GetLevel(), WorldObject::GetMap(), WorldObject::GetZoneId(), Loot::gold, Corpse::loot, LOOT_INSIGNIA, Corpse::lootRecipient, m_deathTimer, RepopAtGraveyard(), SendLoot(), Object::SetFlag(), and WorldLocation::WorldRelocate().
Referenced by Spell::EffectSkinPlayerCorpse().
void Player::RemoveEnchantmentDurations | ( | Item * | item | ) |
References m_enchantDuration, and Item::SetEnchantmentDuration().
Referenced by _StoreItem(), DestroyItem(), EquipItem(), and RemoveItem().
void Player::RemoveEnchantmentDurationsReferences | ( | Item * | item | ) |
References m_enchantDuration.
Referenced by _SaveInventory().
void Player::RemoveFromBattlegroundOrBattlefieldRaid | ( | ) |
References GetOriginalGroup(), GetOriginalSubGroup(), Reference< TO, FROM >::link(), m_group, SetOriginalGroup(), GroupReference::setSubGroup(), and Reference< TO, FROM >::unlink().
Referenced by Group::Disband(), and Group::RemoveMember().
|
static |
References Group::RemoveMember().
Referenced by DeleteFromDB(), WorldSession::HandleGroupDisbandOpcode(), WorldSession::HandleGroupUninviteGuidOpcode(), WorldSession::HandleGroupUninviteOpcode(), WorldSession::LogoutPlayer(), and lfg::LFGMgr::UpdateBoot().
|
inline |
|
inline |
References WhisperList.
Referenced by message_commandscript::HandleWhispersCommand().
|
overridevirtual |
Reimplemented from Object.
References Unit::ClearComboPointHolders(), Unit::ClearComboPoints(), WorldSession::DoLootRelease(), GetLootGUID(), WorldObject::GetName(), GetViewpoint(), Object::IsInWorld(), LOG_FATAL, m_items, m_session, Object::m_uint32Values, m_zoneUpdateId, mMitems, PLAYER_SLOT_END, PLAYER_SLOT_START, Object::RemoveFromWorld(), Unit::RemoveFromWorld(), sBattlefieldMgr, SetViewpoint(), sOutdoorPvPMgr, StopCastingBindSight(), StopCastingCharm(), sWorldState, and UnsummonPetTemporaryIfAny().
Referenced by Map::RemovePlayerFromMap().
References _ApplyItemMods(), BASE_ATTACK, CR_ARMOR_PENETRATION, ObjectGuid::Empty, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, GetBagByPos(), Object::GetEntry(), GetItemByPos(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, Object::IsInWorld(), ITEM_FIELD_CONTAINED, ItemTemplate::ItemSet, LOG_DEBUG, m_items, NULL_SLOT, OFF_ATTACK, PLAYER_FIELD_INV_SLOT_HEAD, RecalculateRating(), RemoveEnchantmentDurations(), RemoveItemDependentAurasAndCasts(), RemoveItemDurations(), RemoveItemsSetItem(), RemoveTradeableItem(), Object::SendUpdateToPlayer(), Object::SetGuidValue(), Item::SetSlot(), SetVisibleItemSlot(), and UpdateExpertise().
Referenced by AutoUnequipOffhandIfNeed(), Create(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleEquipmentSetUse(), WorldSession::HandleSellItemOpcode(), MoveItemFromInventory(), and SwapItem().
void Player::RemoveItemDependentAurasAndCasts | ( | Item * | pItem | ) |
References CURRENT_MAX_SPELL, Aura::GetCasterGUID(), Unit::GetCurrentSpell(), Object::GetGUID(), Aura::GetSpellInfo(), HasItemFitToSpellRequirements(), Unit::InterruptSpell(), Aura::IsPassive(), Unit::m_ownedAuras, Unit::RemoveOwnedAura(), and SPELL_STATE_DELAYED.
Referenced by DestroyItem(), WorldSession::HandleAutoEquipItemOpcode(), RemoveItem(), and SwapItem().
void Player::RemoveItemDurations | ( | Item * | item | ) |
References m_itemDuration.
Referenced by _SaveInventory(), _StoreItem(), DestroyItem(), EquipItem(), and RemoveItem().
void Player::RemoveItemFromBuyBackSlot | ( | uint32 | slot, |
bool | del | ||
) |
References BUYBACK_SLOT_END, BUYBACK_SLOT_START, ObjectGuid::Empty, ITEM_REMOVED, LOG_DEBUG, m_currentBuybackSlot, m_items, PLAYER_FIELD_BUYBACK_PRICE_1, PLAYER_FIELD_BUYBACK_TIMESTAMP_1, PLAYER_FIELD_VENDORBUYBACK_SLOT_1, Object::RemoveFromWorld(), Object::SetGuidValue(), Item::SetState(), and Unit::SetUInt32Value().
Referenced by AddItemToBuyBackSlot(), WorldSession::HandleBuybackItem(), and reset_commandscript::ResetItemsInVendorBuyBackTab().
void Player::RemoveMail | ( | uint32 | id | ) |
References m_mail.
Referenced by WorldSession::HandleMailReturnToSender().
|
inline |
References mMitems.
Referenced by WorldSession::HandleMailReturnToSender(), and WorldSession::HandleMailTakeItem().
void Player::RemovePet | ( | Pet * | pet, |
PetSaveMode | mode, | ||
bool | returnreagent = false |
||
) |
References WorldObject::AddObjectToRemoveList(), CanStoreNewItem(), CHAR_UPD_CHAR_PET_SLOT_BY_ID, CharacterDatabase, Unit::CombatStop(), EQUIP_ERR_OK, CreatureTemplate::family, WorldObject::FindMap(), Unit::GetCharmInfo(), Creature::GetCreatureTemplate(), Object::GetEntry(), GetGroup(), Object::GetGUID(), GetPet(), CharmInfo::GetPetNumber(), Pet::getPetType(), GetSession(), Object::GetUInt32Value(), GROUP_UPDATE_PET, HUNTER_PET, InBattleground(), Unit::IsAlive(), Pet::isControlled(), Object::IsInWorld(), LOG_DEBUG, m_oldpetspell, m_petStable, Pet::m_removed, m_session, m_temporaryUnsummonedPetNumber, MAX_SPELL_REAGENTS, NeedSendSpectatorData(), NULL_BAG, NULL_SLOT, PET_SAVE_AS_CURRENT, PET_SAVE_AS_DELETED, PET_SAVE_NOT_IN_SLOT, WorldSession::PlayerLogout(), SpellInfo::Reagent, SpellInfo::ReagentCount, Pet::SavePetToDB(), ArenaSpectator::SendCommand_UInt32Value(), SendNewItem(), WorldSession::SendPacket(), PreparedStatementBase::SetData(), SetGroupUpdateFlag(), Unit::SetMinion(), SMSG_PET_SPELLS, sSpellMgr, StoreNewItem(), and UNIT_CREATED_BY_SPELL.
Referenced by Spell::_cast(), ActivateSpec(), Spell::EffectSummonPet(), WorldSession::HandlePetAbandon(), WorldSession::HandlePetActionHelper(), WorldSession::HandleRepopRequestOpcode(), WorldSession::HandleStablePet(), WorldSession::HandleStableSwapPet(), WorldSession::HandleUnstablePet(), Pet::LoadPetFromDB(), WorldSession::LogoutPlayer(), Pet::Remove(), resetTalents(), setDeathState(), SummonPet(), UnsummonPetTemporaryIfAny(), and Update().
|
static |
References CHAR_DEL_ALL_PETITION_SIGNATURES, CHAR_DEL_PETITION_BY_OWNER, CHAR_DEL_PETITION_BY_OWNER_AND_TYPE, CHAR_DEL_PETITION_SIGNATURE, CHAR_DEL_PETITION_SIGNATURE_BY_OWNER, CHAR_DEL_PETITION_SIGNATURE_BY_OWNER_AND_TYPE, CharacterDatabase, ObjectAccessor::FindConnectedPlayer(), ObjectGuid::GetCounter(), GetSession(), Petition::ownerGuid, Petition::petitionGuid, Petition::petitionType, WorldSession::SendPetitionQueryOpcode(), PreparedStatementBase::SetData(), and sPetitionMgr.
Referenced by Guild::AddMember(), ArenaTeam::AddMember(), and DeleteFromDB().
|
inline |
References PLAYER_FLAGS, and Object::RemoveFlag().
Referenced by _LoadGroup(), FlightPathMovementGenerator::DoFinalize(), AuraEffect::HandleAuraAllowOnlyAbility(), AuraEffect::HandleAuraGhost(), WorldSession::HandlePlayerLoginFromDB(), WorldSession::HandleSetTaxiBenchmarkOpcode(), WorldSession::HandleShowingCloakOpcode(), WorldSession::HandleShowingHelmOpcode(), InitStatsForLevel(), npc_experience::OnGossipSelect(), RemoveRestFlag(), RemoveRestState(), RepopAtGraveyard(), ResetContestedPvP(), SetGameMaster(), and UpdatePvP().
References MAX_QUEST_OFFSET, PLAYER_QUEST_LOG_1_1, QUEST_STATE_OFFSET, and Object::RemoveFlag().
Referenced by IncompleteQuest().
|
inline |
References m_receivedSpectatorResetFor.
void Player::RemoveRestFlag | ( | RestFlag | restFlag | ) |
References _restFlagMask, _restTime, PLAYER_FLAGS_RESTING, and RemovePlayerFlag().
Referenced by Update(), UpdateArea(), and UpdateZone().
void Player::RemoveRestState | ( | ) |
References _innTriggerId, _restTime, PLAYER_FLAGS_RESTING, and RemovePlayerFlag().
void Player::RemoveRewardedQuest | ( | uint32 | questId, |
bool | update = true |
||
) |
References m_RewardedQuests, m_RewardedQuestsSave, and SendQuestUpdate().
Referenced by Spell::EffectQuestClear().
void Player::RemoveRunesByAuraEffect | ( | AuraEffect const * | aura | ) |
References RuneInfo::ConvertAura, ConvertRune(), GetBaseRune(), m_runes, MAX_RUNES, Runes::runes, and SetRuneConvertAura().
Referenced by AuraEffect::HandleAuraConvertRune(), Aura::HandleAuraSpecificMods(), and AuraEffect::HandlePeriodicDummyAuraTick().
References CONFIG_MAX_PRIMARY_TRADE_SKILL, SpellInfo::Effects, GetFreePrimaryProfessionPoints(), GetMaxSkillValueForLevel(), GetPureMaxSkillValue(), GetPureSkillValue(), GetTalentSpellCost(), GetTalentSpellPos(), Has310Flyer(), SpellInfo::HasAnyAura(), SpellInfo::HasAttribute(), SpellInfo::HasEffect(), SpellInfo::IsPrimaryProfessionFirstRank(), m_spells, MAX_SPELL_EFFECTS, SpellLearnSkillNode::maxvalue, PLAYERSPELL_CHANGED, PLAYERSPELL_NEW, PLAYERSPELL_REMOVED, PLAYERSPELL_TEMPORARY, Unit::RemoveAurasDueToSpell(), Unit::RemoveOwnedAura(), Unit::RemovePetAura(), removeSpell(), SendLearnPacket(), SetFreePrimaryProfessions(), SetSkill(), SpellLearnSkillNode::skill, SKILL_MOUNTS, SPELL_ATTR0_DO_NOT_DISPLAY, SPELL_ATTR0_PASSIVE, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, SPELL_EFFECT_LEARN_SPELL, sScriptMgr, sSkillLineStore, sSpellMgr, SpellLearnSkillNode::step, and SpellLearnSkillNode::value.
Referenced by _removeTalentAurasAndSpells(), Spell::EffectUnlearnSpecialization(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraOverrideSpells(), Acore::PlayerCommand::HandleUnlearnSpellCommand(), learnSkillRewardedSpells(), ProfessionUnlearnSpells(), removeSpell(), resetSpells(), resetTalents(), and SetSkill().
void Player::RemoveSpellCooldown | ( | uint32 | spell_id, |
bool | update = false |
||
) |
References m_spellCooldowns, and SendClearCooldown().
Referenced by Spell::_cast(), Spell::cancel(), Spell::EffectTriggerMissileSpell(), Spell::EffectTriggerSpell(), Spell::finish(), spell_dru_berserk::HandleAfterCast(), Aura::HandleAuraSpecificMods(), misc_commandscript::HandleCooldownCommand(), debug_commandscript::HandleDebugCooldownCommand(), spell_hun_readiness::HandleDummy(), spell_item_rocket_boots::HandleDummy(), spell_mage_cold_snap::HandleDummy(), spell_rog_preparation::HandleDummy(), Unit::HandleDummyAuraProc(), spell_rog_vanish::HandleEffect(), spell_the_flag_of_ownership::HandleFinish(), Unit::HandleProcTriggerSpell(), spell_dk_raise_dead::HandleRaiseDead(), spell_gen_divine_storm_cd_reset::HandleScript(), AuraEffect::HandleShapeshiftBoosts(), RemoveArenaSpellCooldowns(), and RemoveCategoryCooldown().
void Player::RemoveSpellMods | ( | Spell * | spell | ) |
References AURA_REMOVE_BY_EXPIRE, SpellModifier::charges, Aura::DropCharge(), Unit::GetAuraEffectDummy(), Aura::GetSpellInfo(), Aura::IsUsingCharges(), Spell::m_appliedMods, Spell::m_spellInfo, m_spellMods, MAX_SPELLMOD, SpellModifier::ownerAura, roll_chance_i(), SPELLFAMILY_MAGE, SpellInfo::SpellFamilyName, SpellInfo::SpellIconID, SpellModifier::spellId, and sSpellMgr.
Referenced by Spell::_cast().
void Player::RemoveTimedAchievement | ( | AchievementCriteriaTimedTypes | type, |
uint32 | entry | ||
) |
References m_achievementMgr, and AchievementMgr::RemoveTimedAchievement().
Referenced by InstanceScript::DoStopTimedAchievement(), and WorldSession::HandleQuestLogRemoveQuest().
|
inline |
References m_timedquests.
Referenced by FailQuest(), WorldSession::HandleQuestLogRemoveQuest(), and RewardQuest().
void Player::RemoveTradeableItem | ( | Item * | item | ) |
References m_itemSoulboundTradeable, and m_soulboundTradableLock.
Referenced by _SaveInventory(), _StoreItem(), DestroyItem(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), Spell::EffectEnchantItemTmp(), EquipItem(), WorldSession::HandleSocketOpcode(), and RemoveItem().
|
inline |
void Player::RepopAtGraveyard | ( | ) |
References AREA_FLAG_NEED_FLY, AreaTableEntry::flags, WorldObject::GetAreaId(), GetBattleground(), WorldObject::GetMap(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetSession(), GetTeamId(), WorldObject::GetZoneId(), Unit::IsAlive(), Unit::isDead(), m_deathTimer, m_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, GraveyardStruct::Map, PLAYER_FLAGS_IS_OUT_OF_BOUNDS, RemovePlayerFlag(), ResurrectPlayer(), sAreaTableStore, sBattlefieldMgr, WorldSession::SendPacket(), sGraveyard, SMSG_DEATH_RELEASE_LOC, SpawnCorpseBones(), sScriptMgr, TeleportTo(), GraveyardStruct::x, GraveyardStruct::y, and GraveyardStruct::z.
Referenced by Spell::EffectStuck(), HandleDrowning(), WorldSession::HandleInstanceLockResponse(), WorldSession::HandleRepopRequestOpcode(), misc_commandscript::HandleUnstuckCommand(), WorldSession::LogoutPlayer(), RemovedInsignia(), TeleportTo(), Update(), and UpdateHomebindTime().
void Player::ReportedAfkBy | ( | Player * | reporter | ) |
This player has been blamed to be inactive in a battleground.
References BGData::bgAfkReporter, CanReportAfkDueToLimit(), Unit::CastSpell(), CONFIG_BATTLEGROUND_REPORT_AFK, CONFIG_BATTLEGROUND_REPORT_AFK_TIMER, GetBattleground(), Object::GetGUID(), Battleground::GetStartTime(), Battleground::GetStatus(), GetTeamId(), Unit::HasAura(), IN_MILLISECONDS, m_bgData, MINUTE, STATUS_IN_PROGRESS, and sWorld.
Referenced by WorldSession::HandleReportPvPAFK().
void Player::ReputationChanged | ( | FactionEntry const * | factionEntry | ) |
References CanCompleteQuest(), CompleteQuest(), GetQuestSlotQuestId(), GetReputation(), GetReputationMgr(), FactionEntry::ID, IncompleteQuest(), m_QuestStatus, MAX_QUEST_LOG_SIZE, QUEST_STATUS_COMPLETE, QUEST_STATUS_INCOMPLETE, sObjectMgr, and QuestStatusData::Status.
Referenced by ReputationMgr::SetOneFactionReputation().
void Player::ReputationChanged2 | ( | FactionEntry const * | factionEntry | ) |
References CanCompleteQuest(), CompleteQuest(), GetQuestSlotQuestId(), GetReputation(), GetReputationMgr(), FactionEntry::ID, IncompleteQuest(), m_QuestStatus, MAX_QUEST_LOG_SIZE, QUEST_STATUS_COMPLETE, QUEST_STATUS_INCOMPLETE, sObjectMgr, and QuestStatusData::Status.
void Player::ResetAchievementCriteria | ( | AchievementCriteriaCondition | condition, |
uint32 | value, | ||
bool | evenIfCriteriaComplete = false |
||
) |
References m_achievementMgr, and AchievementMgr::ResetAchievementCriteria().
Referenced by Battleground::AddPlayer(), spell_algalon_supermassive_fail::RecalculateDamage(), Battleground::RemovePlayerAtLeave(), and setDeathState().
void Player::ResetAchievements | ( | ) |
References m_achievementMgr, and AchievementMgr::Reset().
Referenced by reset_commandscript::HandleResetAchievementsCommand().
void Player::ResetAllPowers | ( | ) |
References Unit::GetMaxHealth(), Unit::GetMaxPower(), HasActivePowerType(), POWER_ENERGY, POWER_MANA, POWER_RAGE, POWER_RUNIC_POWER, Unit::SetHealth(), and Unit::SetPower().
Referenced by Battleground::AddPlayer().
|
inline |
References Unit::ClearUnitState(), m_contestedPvPTimer, PLAYER_FLAGS_CONTESTED_PVP, RemovePlayerFlag(), and UNIT_STATE_ATTACK_PLAYER.
Referenced by SetGameMaster(), SetIsSpectator(), and UpdateContestedPvP().
void Player::ResetDailyQuestStatus | ( | ) |
References m_DailyQuestChanged, m_DFQuests, m_lastDailyQuestTime, PLAYER_FIELD_DAILY_QUESTS_1, PLAYER_MAX_DAILY_QUESTS, and Unit::SetUInt32Value().
void Player::ResetFarSightDistance | ( | ) |
References _farSightDistance.
Referenced by AuraEffect::HandleFarSight().
|
static |
Reset all solo instances and optionally send a message on success for each.
References InstanceSave::CanReset(), DUNGEON_DIFFICULTY_NORMAL, ObjectAccessor::FindConnectedPlayer(), WorldObject::FindMap(), GetDifficulty(), Object::GetGUID(), InstanceSave::GetInstanceId(), InstanceSave::GetMapId(), INSTANCE_RESET_ALL, INSTANCE_RESET_CHANGE_DIFFICULTY, INSTANCE_RESET_GROUP_JOIN, INSTANCE_RESET_GROUP_LEAVE, MapEntry::IsRaid(), MAX_DIFFICULTY, InstanceMap::Reset(), SendResetInstanceFailed(), SendResetInstanceSuccess(), sInstanceSaveMgr, sMapMgr, sMapStore, and Map::ToInstanceMap().
Referenced by Group::AddMember(), Group::Disband(), WorldSession::HandleResetInstancesOpcode(), WorldSession::HandleSetDungeonDifficultyOpcode(), WorldSession::HandleSetRaidDifficultyOpcode(), and Group::RemoveMember().
|
overridevirtual |
Reimplemented from WorldObject.
References WorldObject::GetMap(), GetMapRef(), WorldObject::ResetMap(), Reference< TO, FROM >::unlink(), and Map::UpdateIteratorBack().
Referenced by WorldSession::HandleMoveWorldportAck(), and WorldSession::HandleSetRaidDifficultyOpcode().
void Player::ResetMonthlyQuestStatus | ( | ) |
References m_MonthlyQuestChanged, and m_monthlyquests.
void Player::ResetPetTalents | ( | ) |
References Unit::GetCharmInfo(), Object::GetGUID(), GetPet(), Pet::getPetType(), HUNTER_PET, LOG_ERROR, Pet::m_usedTalentCount, Pet::resetTalents(), SendTalentsInfoData(), and ObjectGuid::ToString().
Referenced by OnGossipSelect(), and npc_pet_trainer::npc_pet_trainerAI::sGossipSelect().
void Player::ResetSeasonalQuestStatus | ( | uint16 | event_id | ) |
References m_SeasonalQuestChanged, and m_seasonalquests.
void Player::resetSpells | ( | ) |
References AT_LOGIN_RESET_SPELLS, GetSpellMap(), HasAtLoginFlag(), LearnCustomSpells(), LearnDefaultSkills(), learnQuestRewardedSpells(), RemoveAtLoginFlag(), removeSpell(), and SPEC_MASK_ALL.
Referenced by WorldSession::HandlePlayerLoginFromDB(), and reset_commandscript::HandleResetSpellsCommand().
bool Player::resetTalents | ( | bool | noResetCost = false | ) |
References _removeTalent(), _removeTalentAurasAndSpells(), ACHIEVEMENT_CRITERIA_TYPE_GOLD_SPENT_FOR_TALENTS, ACHIEVEMENT_CRITERIA_TYPE_NUMBER_OF_TALENT_RESETS, TalentEntry::addToSpellBook, AT_LOGIN_RESET_TALENTS, AutoUnequipOffhandIfNeed(), BUY_ERR_NOT_ENOUGHT_MONEY, CalculateTalentsPoints(), CONFIG_NO_RESET_TALENT_COST, SpellInfo::Effects, GetActiveSpecMask(), GameTime::GetGameTime(), HasAtLoginFlag(), SpellInfo::HasAttribute(), SpellInfo::HasEffect(), HasEnoughMoney(), HasSpell(), Unit::m_canDualWield, m_canTitanGrip, m_resetTalentsCost, m_resetTalentsTime, m_talents, m_usedTalentCount, MAX_SPELL_EFFECTS, ModifyMoney(), PET_SAVE_NOT_IN_SLOT, PLAYERSPELL_REMOVED, RemoveAtLoginFlag(), RemovePet(), removeSpell(), resetTalentsCost(), SendBuyError(), SendLearnPacket(), Unit::SetCanDualWield(), SetCanTitanGrip(), SetFreeTalentPoints(), SPELL_ATTR0_PASSIVE, SPELL_EFFECT_LEARN_SPELL, sScriptMgr, sSpellMgr, sTalentStore, sWorld, and UpdateAchievementCriteria().
Referenced by WorldSession::HandlePlayerLoginFromDB(), reset_commandscript::HandleResetTalentsCommand(), WorldSession::HandleTalentWipeConfirmOpcode(), and InitTalentForLevel().
uint32 Player::resetTalentsCost | ( | ) | const |
References GameTime::GetGameTime(), GOLD, m_resetTalentsCost, m_resetTalentsTime, and MONTH.
Referenced by resetTalents(), and SendTalentWipeConfirm().
void Player::ResetWeeklyQuestStatus | ( | ) |
References m_WeeklyQuestChanged, and m_weeklyquests.
References CURRENT_MAX_SPELL, Unit::m_currentSpells, and RestoreSpellMods().
void Player::RestoreBaseRune | ( | uint8 | index | ) |
References RuneInfo::ConvertAura, ConvertRune(), AuraEffect::GetAuraType(), AuraEffect::GetBase(), GetBaseRune(), AuraEffect::GetSpellInfo(), SpellInfo::HasAttribute(), m_runes, MAX_RUNES, Aura::Remove(), Runes::runes, SetRuneConvertAura(), SPELL_ATTR0_PASSIVE, and SPELL_AURA_CONVERT_RUNE.
Referenced by Spell::TakeRunePower().
|
inline |
References healthBeforeDuel, and Unit::SetHealth().
|
inline |
References manaBeforeDuel, POWER_MANA, and Unit::SetPower().
References SpellModifier::charges, Aura::GetCharges(), Aura::GetSpellInfo(), SpellInfo::Id, Aura::IsUsingCharges(), Spell::m_appliedMods, Spell::m_spellInfo, m_spellMods, SpellModifier::mask, MAX_SPELLMOD, SpellModifier::ownerAura, and SpellInfo::SpellFamilyFlags.
Referenced by Spell::DoAllEffectOnTarget(), Spell::finish(), Unit::HandleDummyAuraProc(), and RestoreAllSpellMods().
void Player::ResummonPetTemporaryUnSummonedIfAny | ( | ) |
References CanResummonPet(), GetLastPetSpell(), Unit::GetPetGUID(), IsPetNeedBeTemporaryUnsummoned(), IsSpectator(), Pet::LoadPetFromDB(), and m_temporaryUnsummonedPetNumber.
Referenced by Unit::_ExitVehicle(), WorldSession::HandleMoveTeleportAck(), and WorldSession::HandleMoveWorldportAck().
void Player::ResurectUsingRequestData | ( | ) |
Teleport before resurrecting by player, otherwise the player might get attacked from creatures near his corpse
References DELAYED_RESURRECT_PLAYER, Unit::GetMaxHealth(), Unit::GetMaxPower(), Position::GetOrientation(), IsBeingTeleported(), m_resurrectHealth, m_resurrectMana, m_resurrectMap, m_resurrectX, m_resurrectY, m_resurrectZ, POWER_ENERGY, POWER_MANA, POWER_RAGE, ResurrectPlayer(), ScheduleDelayedOperation(), Unit::SetFullHealth(), Unit::SetHealth(), Unit::SetPower(), SpawnCorpseBones(), and TeleportTo().
Referenced by WorldSession::HandleResurrectResponseOpcode().
void Player::ResurrectPlayer | ( | float | restore_percent, |
bool | applySickness = false |
||
) |
References Alive, Unit::CastSpell(), CONFIG_DEATH_SICKNESS_LEVEL, Unit::GetAura(), GetBattleground(), Object::GetGUID(), Unit::GetLevel(), Unit::GetMaxHealth(), Unit::GetMaxPower(), GetSession(), WorldObject::GetZoneAndAreaId(), IN_MILLISECONDS, m_deathTimer, MINUTE, MOVE_LAND_WALK, MOVE_UNROOT, POWER_ENERGY, POWER_MANA, POWER_RAGE, Unit::RemoveAurasDueToSpell(), WorldSession::SendPacket(), Object::SetByteValue(), setDeathState(), Object::SetDynamicFlag(), Unit::SetHealth(), SetMovement(), Unit::SetPower(), SetWaterWalking(), SMSG_DEATH_RELEASE_LOC, sOutdoorPvPMgr, sScriptMgr, sWorld, UNIT_BYTE1_FLAG_GROUND, UNIT_BYTES_1_OFFSET_ANIM_TIER, UNIT_DYNFLAG_REFER_A_FRIEND, UNIT_FIELD_BYTES_1, UpdateObjectVisibility(), and UpdateZone().
Referenced by Battleground::_ProcessResurrect(), Spell::EffectSelfResurrect(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandleReclaimCorpseOpcode(), LoadCorpse(), LoadFromDB(), ProcessDelayedOperations(), Battleground::RemovePlayerAtLeave(), RepopAtGraveyard(), ResurectUsingRequestData(), BfGraveyard::Resurrect(), and WorldSession::SendSpiritResurrect().
void Player::ResyncRunes | ( | uint8 | count | ) |
References GetCurrentRune(), GetRuneCooldown(), GetSession(), WorldSession::SendPacket(), and SMSG_RESYNC_RUNES.
void Player::RewardExtraBonusTalentPoints | ( | uint32 | bonusTalentPoints | ) |
A talent point boost. Usage: 1). Hot update situation (occurred when character is online, like PlayerScript:OnAchiComplete): Right after calling this function, character can reward talent points by calling function player->InitTalentForLevel().
2). Data initing situation (like PlayerScript:OnLoadFromDB)
References m_extraBonusTalentCount.
bool Player::RewardHonor | ( | Unit * | uVictim, |
uint32 | groupsize, | ||
int32 | honor = -1 , |
||
bool | awardXP = true |
||
) |
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)
References ACHIEVEMENT_CRITERIA_TYPE_EARN_HONORABLE_KILL, ACHIEVEMENT_CRITERIA_TYPE_HK_CLASS, ACHIEVEMENT_CRITERIA_TYPE_HK_RACE, ACHIEVEMENT_CRITERIA_TYPE_HONORABLE_KILL, ACHIEVEMENT_CRITERIA_TYPE_HONORABLE_KILL_AT_AREA, ACHIEVEMENT_CRITERIA_TYPE_SPECIAL_PVP_KILL, AddItem(), AddPct(), Object::ApplyModUInt32Value(), ObjectGuid::Clear(), CONFIG_PVP_TOKEN_COUNT, CONFIG_PVP_TOKEN_ENABLE, CONFIG_PVP_TOKEN_ID, CONFIG_PVP_TOKEN_MAP_TYPE, WorldObject::GetAreaId(), GetBattleground(), GetBgTeamId(), Unit::getClass(), Acore::XP::GetGrayLevel(), Object::GetGUID(), Unit::GetLevel(), Unit::GetMaxPositiveAuraModifier(), Unit::getRace(), GetSession(), GetTeamId(), Object::GetUInt32Value(), GiveXP(), Unit::HasAura(), Unit::HasNoPVPCreditAura(), Acore::Honor::hk_honor_at_level_f(), InArena(), InBattleground(), IsFFAPvP(), Object::IsPlayer(), Creature::IsRacialLeader(), ModifyHonorPoints(), PLAYER_CHOSEN_TITLE, PLAYER_FIELD_KILLS, PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, PLAYER_FIELD_TODAY_CONTRIBUTION, ChatHandler::PSendSysMessage(), RATE_HONOR, SCORE_BONUS_HONOR, WorldSession::SendPacket(), SMSG_PVP_CREDIT, SPELL_AURA_MOD_HONOR_GAIN_PCT, SPELL_AURA_PLAYER_INACTIVE, sScriptMgr, sWorld, Object::ToCreature(), Object::ToPlayer(), UpdateAchievementCriteria(), UpdateHonorFields(), and XPSOURCE_BATTLEGROUND.
Referenced by KillRewarder::_RewardHonor(), DuelComplete(), Spell::EffectAddHonor(), OutdoorPvPSI::HandleAreaTrigger(), honor_commandscript::HandleHonorAddCommand(), honor_commandscript::HandleHonorAddKillCommand(), RewardQuest(), and Battleground::UpdatePlayerScore().
void Player::RewardPlayerAndGroupAtEvent | ( | uint32 | creature_id, |
WorldObject * | pRewardSource | ||
) |
References ObjectGuid::Empty, GetCorpse(), GetGroup(), Object::GetGUID(), Unit::IsAlive(), IsAtGroupRewardDistance(), Object::IsCreature(), KilledMonsterCredit(), and GroupReference::next().
Referenced by Spell::EffectKillCredit(), spell_inoculate_nestlewood_owlkin::HandleEffectRemove(), SmartScript::ProcessAction(), and SmartAI::StopFollow().
void Player::RewardPlayerAndGroupAtKill | ( | Unit * | victim, |
bool | isBattleGround | ||
) |
References KillRewarder::Reward().
Referenced by Unit::Kill(), and Battleground::RewardXPAtKill().
void Player::RewardQuest | ( | Quest const * | quest, |
uint32 | reward, | ||
Object * | questGiver, | ||
bool | announce = true , |
||
bool | isLFGReward = false |
||
) |
References ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_DAILY_QUEST, ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_DAILY_QUEST_DAILY, ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST, ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST_COUNT, ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUESTS_IN_ZONE, ACHIEVEMENT_CRITERIA_TYPE_MONEY_FROM_QUEST_REWARD, BIND_QUEST_ITEM, Quest::CalculateHonorGain(), CalculateQuestRewardXP(), CanStoreNewItem(), Unit::CastSpell(), CharacterDatabase, CONFIG_MAX_PLAYER_LEVEL, DestroyItemCount(), EQUIP_ERR_OK, FindQuestSlot(), WorldObject::GetAreaId(), Quest::GetBonusTalents(), Quest::GetCharTitleId(), Object::GetGUID(), Unit::GetLevel(), WorldObject::GetMap(), Quest::GetQuestId(), Quest::GetRewArenaPoints(), Quest::GetRewChoiceItemsCount(), Quest::GetRewItemsCount(), Quest::GetRewMailDelaySecs(), Quest::GetRewMailSenderEntry(), Quest::GetRewMailTemplateId(), Quest::GetRewMoneyMaxLevel(), Quest::GetRewOrReqMoney(), Quest::GetRewSpell(), Quest::GetRewSpellCast(), WorldObject::GetZoneId(), Quest::GetZoneOrSort(), GiveXP(), SpellInfo::HasEffect(), Quest::HasFlag(), HasPvPForcingQuest(), HasQuestForItem(), InitTalentForLevel(), Quest::IsDaily(), Quest::IsDFQuest(), PvPInfo::IsHostile, PvPInfo::IsInHostileArea, Quest::IsMonthly(), IsQuestRewarded(), Quest::IsRepeatable(), Quest::IsSeasonal(), SpellInfo::IsSelfCast(), Object::IsUnit(), Quest::IsWeekly(), Quest::ItemDrop, Quest::ItemDropQuantity, m_questRewardTalentCount, MAIL_CHECK_MASK_HAS_BODY, MAX_QUEST_LOG_SIZE, ModifyArenaPoints(), ModifyMoney(), NULL_BAG, NULL_SLOT, pvpInfo, QUEST_FLAGS_FLAGS_PVP, QUEST_ITEM_OBJECTIVES_COUNT, QUEST_SOURCE_ITEM_IDS_COUNT, RemoveActiveQuest(), RemoveTimedQuest(), Quest::RequiredItemCount, Quest::RequiredItemId, Quest::RewardChoiceItemCount, Quest::RewardChoiceItemId, RewardHonor(), Quest::RewardItemId, Quest::RewardItemIdCount, RewardReputation(), SaveToDB(), sCharTitlesStore, SendItemRetrievalMail(), MailDraft::SendMailTo(), SendNewItem(), SendQuestGiverStatusMultiple(), SendQuestReward(), SendQuestUpdate(), SetDailyQuestStatus(), SetMonthlyQuestStatus(), SetMustDelayTeleport(), SetQuestSlot(), SetRewardedQuest(), SetSeasonalQuestStatus(), SetTitle(), SetWeeklyQuestStatus(), sObjectMgr, SPELL_EFFECT_CREATE_ITEM, SPELL_EFFECT_LEARN_SPELL, sScriptMgr, sSpellMgr, StoreNewItem(), sWorld, UpdateAchievementCriteria(), UpdateAreaDependentAuras(), UpdatePvPState(), UpdateZoneDependentAuras(), XPSOURCE_QUEST, and XPSOURCE_QUEST_DF.
Referenced by CompleteQuest(), lfg::LFGMgr::FinishDungeon(), and WorldSession::HandleQuestgiverChooseRewardOpcode().
void Player::RewardReputation | ( | Quest const * | quest | ) |
References CalculateReputationGain(), GetQuestLevel(), GetReputationMgr(), Quest::HasSpecialFlag(), Quest::IsDaily(), Quest::IsMonthly(), Quest::IsRepeatable(), Quest::IsWeekly(), ReputationMgr::ModifyReputation(), QUEST_REPUTATIONS_COUNT, QUEST_SPECIAL_FLAGS_NO_REP_SPILLOVER, REPUTATION_SOURCE_DAILY_QUEST, REPUTATION_SOURCE_MONTHLY_QUEST, REPUTATION_SOURCE_QUEST, REPUTATION_SOURCE_REPEATABLE_QUEST, REPUTATION_SOURCE_WEEKLY_QUEST, Quest::RewardFactionId, Quest::RewardFactionValueId, Quest::RewardFactionValueIdOverride, sFactionStore, and sQuestFactionRewardStore.
void Player::RewardReputation | ( | Unit * | victim | ) |
References CalculateReputationGain(), CreatureTemplate::Entry, GetChampioningFaction(), Creature::GetCreatureTemplate(), Map::GetDifficulty(), Map::GetId(), Unit::GetLevel(), GetLFGDungeon(), WorldObject::GetMap(), GetReputationMgr(), GetTeamId(), Map::IsNonRaidDungeon(), Object::IsPlayer(), Creature::IsReputationRewardDisabled(), ReputationMgr::ModifyReputation(), ReputationOnKillEntry::RepFaction1, ReputationOnKillEntry::RepFaction2, REPUTATION_SOURCE_KILL, ReputationOnKillEntry::ReputationMaxCap1, ReputationOnKillEntry::ReputationMaxCap2, ReputationOnKillEntry::RepValue1, ReputationOnKillEntry::RepValue2, sFactionStore, sObjectMgr, TEAM_ALLIANCE, TEAM_HORDE, ReputationOnKillEntry::TeamDependent, and Object::ToCreature().
Referenced by KillRewarder::_RewardReputation(), and RewardQuest().
bool Player::Satisfy | ( | DungeonProgressionRequirements const * | ar, |
uint32 | target_map, | ||
bool | report = false |
||
) |
References DungeonProgressionRequirements::achievements, CONFIG_DUNGEON_ACCESS_REQUIREMENTS_OPTIONAL_STRING_ID, CONFIG_DUNGEON_ACCESS_REQUIREMENTS_PORTAL_CHECK_ILVL, CONFIG_DUNGEON_ACCESS_REQUIREMENTS_PRINT_MODE, CONFIG_INSTANCE_IGNORE_LEVEL, DISABLE_TYPE_MAP, HashMapHolder< T >::Find(), WorldSession::GetAcoreString(), GetAverageItemLevelForDF(), GetDifficulty(), GetDownscaledMapDifficultyData(), GetGroup(), Object::GetGUID(), Group::GetLeaderGUID(), Group::GetLeaderName(), Unit::GetLevel(), ObjectMgr::GetLocaleString(), GetQuestRewardStatus(), GetSession(), WorldSession::GetSessionDbLocaleIndex(), GetTeamId(), HasAchieved(), MapDifficulty::hasErrorMessage, HasItemCount(), IsGameMaster(), MapEntry::IsRaid(), DungeonProgressionRequirements::items, LANG_ACCESS_REQUIREMENT_AVERAGE_ILVL_NOT_MET, LANG_ACCESS_REQUIREMENT_COMPLETE_ACHIEVEMENTS, LANG_ACCESS_REQUIREMENT_COMPLETE_QUESTS, LANG_ACCESS_REQUIREMENT_LEADER_COMPLETE_ACHIEVEMENTS, LANG_ACCESS_REQUIREMENT_LEADER_COMPLETE_QUESTS, LANG_ACCESS_REQUIREMENT_LEADER_OBTAIN_ITEMS, LANG_ACCESS_REQUIREMENT_MAX_LEVEL, LANG_ACCESS_REQUIREMENT_NOT_MET, LANG_ACCESS_REQUIREMENT_OBTAIN_ITEMS, LANG_INSTANCE_CLOSED, LANG_LEVEL_MINREQUIRED, LANG_LEVEL_MINREQUIRED_AND_ITEM, LANG_YOU, DungeonProgressionRequirements::levelMax, DungeonProgressionRequirements::levelMin, m_session, PrettyPrintRequirementsAchievementsList(), PrettyPrintRequirementsItemsList(), PrettyPrintRequirementsQuestList(), ChatHandler::PSendSysMessage(), DungeonProgressionRequirements::quests, DungeonProgressionRequirements::reqItemLevel, sDisableMgr, WorldSession::SendAreaTriggerMessage(), ChatHandler::SendSysMessage(), SendTransferAborted(), sMapStore, sObjectMgr, sScriptMgr, sWorld, TEAM_NEUTRAL, and TRANSFER_ABORT_DIFFICULTY.
Referenced by Spell::CheckCast(), WorldSession::HandleSetRaidDifficultyOpcode(), and MapMgr::PlayerCannotEnter().
bool Player::SatisfyQuestClass | ( | Quest const * | qInfo, |
bool | msg | ||
) | const |
References Unit::getClassMask(), Quest::GetRequiredClasses(), INVALIDREASON_DONT_HAVE_REQ, and SendCanTakeQuestResponse().
Referenced by CanSeeStartQuest(), and CanTakeQuest().
bool Player::SatisfyQuestConditions | ( | Quest const * | qInfo, |
bool | msg | ||
) |
References CONDITION_SOURCE_TYPE_QUEST_AVAILABLE, Quest::GetQuestId(), INVALIDREASON_DONT_HAVE_REQ, LOG_DEBUG, sConditionMgr, and SendCanTakeQuestResponse().
Referenced by CanTakeQuest().
bool Player::SatisfyQuestDay | ( | Quest const * | qInfo, |
bool | msg | ||
) | const |
References Quest::GetQuestId(), Object::GetUInt32Value(), INVALIDREASON_DAILY_QUESTS_REMAINING, Quest::IsDaily(), Quest::IsDFQuest(), m_DFQuests, PLAYER_FIELD_DAILY_QUESTS_1, PLAYER_MAX_DAILY_QUESTS, and SendCanTakeQuestResponse().
Referenced by CanRewardQuest(), CanSeeStartQuest(), CanTakeQuest(), and SatisfyQuestExclusiveGroup().
bool Player::SatisfyQuestExclusiveGroup | ( | Quest const * | qInfo, |
bool | msg | ||
) | const |
References Quest::GetExclusiveGroup(), Quest::GetQuestId(), GetQuestStatus(), INVALIDREASON_DONT_HAVE_REQ, IsQuestRewarded(), Quest::IsRepeatable(), Quest::IsSeasonal(), QUEST_STATUS_NONE, SatisfyQuestDay(), SatisfyQuestSeasonal(), SatisfyQuestWeek(), SendCanTakeQuestResponse(), and sObjectMgr.
Referenced by CanSeeStartQuest(), and CanTakeQuest().
bool Player::SatisfyQuestLevel | ( | Quest const * | qInfo, |
bool | msg | ||
) | const |
References Unit::GetLevel(), Quest::GetMaxLevel(), Quest::GetMinLevel(), INVALIDREASON_DONT_HAVE_REQ, INVALIDREASON_QUEST_FAILED_LOW_LEVEL, and SendCanTakeQuestResponse().
Referenced by CanTakeQuest(), npc_wg_quest_giver::GetDialogStatus(), and GetQuestDialogStatus().
bool Player::SatisfyQuestLog | ( | bool | msg | ) |
References FindQuestSlot(), GetSession(), LOG_DEBUG, MAX_QUEST_LOG_SIZE, WorldSession::SendPacket(), and SMSG_QUESTLOG_FULL.
Referenced by CanAddQuest(), and WorldSession::HandlePushQuestToParty().
bool Player::SatisfyQuestMonth | ( | Quest const * | qInfo, |
bool | msg | ||
) | const |
References Quest::GetQuestId(), Quest::IsMonthly(), and m_monthlyquests.
Referenced by CanRewardQuest(), CanSeeStartQuest(), and CanTakeQuest().
bool Player::SatisfyQuestNextChain | ( | Quest const * | qInfo, |
bool | msg | ||
) | const |
References Quest::GetNextQuestInChain(), GetQuestStatus(), INVALIDREASON_DONT_HAVE_REQ, QUEST_STATUS_NONE, and SendCanTakeQuestResponse().
Referenced by CanSeeStartQuest(), and CanTakeQuest().
bool Player::SatisfyQuestPrevChain | ( | Quest const * | qInfo, |
bool | msg | ||
) | const |
References INVALIDREASON_DONT_HAVE_REQ, m_QuestStatus, Quest::prevChainQuests, QUEST_STATUS_NONE, and SendCanTakeQuestResponse().
Referenced by CanSeeStartQuest(), and CanTakeQuest().
bool Player::SatisfyQuestPreviousQuest | ( | Quest const * | qInfo, |
bool | msg | ||
) | const |
References Quest::GetExclusiveGroup(), GetQuestStatus(), INVALIDREASON_DONT_HAVE_REQ, IsQuestRewarded(), Quest::IsSeasonal(), Quest::prevQuests, QUEST_STATUS_NONE, SatisfyQuestSeasonal(), SendCanTakeQuestResponse(), and sObjectMgr.
Referenced by CanSeeStartQuest(), and CanTakeQuest().
bool Player::SatisfyQuestRace | ( | Quest const * | qInfo, |
bool | msg | ||
) | const |
References Quest::GetAllowableRaces(), Unit::getRaceMask(), INVALIDREASON_QUEST_FAILED_WRONG_RACE, and SendCanTakeQuestResponse().
Referenced by CanSeeStartQuest(), and CanTakeQuest().
bool Player::SatisfyQuestReputation | ( | Quest const * | qInfo, |
bool | msg | ||
) | const |
References Quest::GetRepObjectiveFaction2(), Quest::GetRepObjectiveValue2(), GetReputation(), GetReputationMgr(), Quest::GetRequiredMaxRepFaction(), Quest::GetRequiredMaxRepValue(), Quest::GetRequiredMinRepFaction(), Quest::GetRequiredMinRepValue(), INVALIDREASON_DONT_HAVE_REQ, and SendCanTakeQuestResponse().
Referenced by CanSeeStartQuest(), and CanTakeQuest().
bool Player::SatisfyQuestSeasonal | ( | Quest const * | qInfo, |
bool | msg | ||
) | const |
References Quest::GetEventIdForQuest(), Quest::GetQuestId(), Quest::IsSeasonal(), and m_seasonalquests.
Referenced by CanRewardQuest(), CanSeeStartQuest(), CanTakeQuest(), GetQuestRewardStatus(), GetQuestStatus(), SatisfyQuestExclusiveGroup(), and SatisfyQuestPreviousQuest().
bool Player::SatisfyQuestSkill | ( | Quest const * | qInfo, |
bool | msg | ||
) | const |
References GetBaseSkillValue(), Quest::GetRequiredSkill(), Quest::GetRequiredSkillValue(), INVALIDREASON_DONT_HAVE_REQ, and SendCanTakeQuestResponse().
Referenced by CanSeeStartQuest(), and CanTakeQuest().
bool Player::SatisfyQuestStatus | ( | Quest const * | qInfo, |
bool | msg | ||
) | const |
References Quest::GetQuestId(), GetQuestStatus(), INVALIDREASON_QUEST_ALREADY_ON, QUEST_STATUS_NONE, and SendCanTakeQuestResponse().
Referenced by CanTakeQuest(), and WorldSession::HandlePushQuestToParty().
bool Player::SatisfyQuestTimed | ( | Quest const * | qInfo, |
bool | msg | ||
) | const |
References Quest::HasSpecialFlag(), INVALIDREASON_QUEST_ONLY_ONE_TIMED, m_timedquests, QUEST_SPECIAL_FLAGS_TIMED, and SendCanTakeQuestResponse().
Referenced by CanTakeQuest().
bool Player::SatisfyQuestWeek | ( | Quest const * | qInfo, |
bool | msg | ||
) | const |
References Quest::GetQuestId(), Quest::IsWeekly(), and m_weeklyquests.
Referenced by CanRewardQuest(), CanSeeStartQuest(), CanTakeQuest(), and SatisfyQuestExclusiveGroup().
void Player::SaveGoldToDB | ( | CharacterDatabaseTransaction | trans | ) |
References CHAR_UDP_CHAR_MONEY, CharacterDatabase, Object::GetGUID(), GetMoney(), and PreparedStatementBase::SetData().
Referenced by WorldSession::HandleMailTakeMoney(), Guild::HandleMemberDepositMoney(), Guild::HandleMemberWithdrawMoney(), and SaveInventoryAndGoldToDB().
|
inline |
References Unit::GetHealth(), and healthBeforeDuel.
void Player::SaveInventoryAndGoldToDB | ( | CharacterDatabaseTransaction | trans | ) |
References _SaveInventory(), and SaveGoldToDB().
Referenced by WorldSession::HandleAcceptTradeOpcode(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleMailTakeItem(), WorldSession::HandleOpenWrappedItemCallback(), WorldSession::HandleSendMail(), WorldSession::HandleWrapItemOpcode(), and RefundItem().
|
inline |
References Unit::GetPower(), manaBeforeDuel, and POWER_MANA.
|
static |
References CHAR_UPD_CHARACTER_POSITION, CharacterDatabase, ObjectGuid::GetCounter(), and PreparedStatementBase::SetData().
Referenced by tele_commandscript::DoNameTeleport(), WorldSession::HandleCharFactionOrRaceChangeCallback(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleNameCommand(), and misc_commandscript::HandleUnstuckCommand().
|
static |
References CHAR_UPD_CHARACTER_POSITION, CharacterDatabase, ObjectGuid::GetCounter(), WorldLocation::GetMapId(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), and PreparedStatementBase::SetData().
void Player::SaveRecallPosition | ( | ) |
References WorldLocation::GetMapId(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), m_recallMap, m_recallO, m_recallX, m_recallY, and m_recallZ.
Referenced by go_commandscript::DoTeleport(), misc_commandscript::HandleAppearCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoTicketCommand(), go_commandscript::HandleGoZoneXYCommand(), misc_commandscript::HandleGroupSummonCommand(), tele_commandscript::HandleTeleCommand(), tele_commandscript::HandleTeleGroupCommand(), and LoadFromDB().
void Player::SaveToDB | ( | bool | create, |
bool | logout | ||
) |
References CharacterDatabase, and SaveToDB().
Referenced by misc_commandscript::HandleSaveCommand(), WorldSession::LogoutPlayer(), QuestApprenticeAnglerPlayerScript::OnPlayerCompleteQuest(), ProcessCastaction(), ProcessDelayedOperations(), ProcessUnlearnAction(), RewardQuest(), SaveToDB(), and Update().
void Player::SaveToDB | ( | CharacterDatabaseTransaction | trans, |
bool | create, | ||
bool | logout | ||
) |
References _SaveActions(), _SaveAuras(), _SaveCharacter(), _SaveDailyQuestStatus(), _SaveEntryPoint(), _SaveEquipmentSets(), _SaveGlyphs(), _SaveInstanceTimeRestrictions(), _SaveInventory(), _SaveMail(), _SaveMonthlyQuestStatus(), _SavePlayerSettings(), _SaveQuestStatus(), _SaveSeasonalQuestStatus(), _SaveSkills(), _SaveSpellCooldowns(), _SaveSpells(), _SaveStats(), _SaveTalents(), _SaveWeeklyQuestStatus(), CONFIG_INTERVAL_SAVE, CONFIG_STATS_SAVE_ONLY_ON_LOGOUT, DELAYED_SAVE_PLAYER, GetPet(), GetSession(), IsBeingTeleportedFar(), WorldSession::isLogingOut(), LOG_DEBUG, m_achievementMgr, m_additionalSaveMask, m_additionalSaveTimer, m_mailsUpdated, WorldObject::m_name, m_nextSave, m_reputationMgr, m_session, outDebugValues(), PET_SAVE_AS_CURRENT, AchievementMgr::SaveToDB(), ReputationMgr::SaveToDB(), WorldSession::SaveTutorialsData(), ScheduleDelayedOperation(), sScriptMgr, sWorld, and UpdateHonorFields().
|
overridevirtual |
Handles said message in regular chat based on declared language and in config pre-defined Range.
Reimplemented from Unit.
References ChatHandler::BuildChatPacket(), CHAT_MSG_SAY, CONFIG_LISTEN_RANGE_SAY, SendMessageToSetInRange(), sScriptMgr, and sWorld.
Referenced by Unit::HandleDummyAuraProc(), WorldSession::HandleMessagechatOpcode(), npc_brewfest_bark_trigger::MoveInLineOfSight(), npc_jungle_punch_target::npc_jungle_punch_targetAI::SpellHit(), and boss_headless_horseman::UpdateAI().
|
overridevirtual |
|
inline |
References DELAYED_END, and m_DelayedOperations.
Referenced by Battleground::RemovePlayerAtLeave(), ResurectUsingRequestData(), SaveToDB(), and TeleportToEntryPoint().
void Player::SendActionButtons | ( | uint32 | state | ) | const |
References ACTIONBUTTON_DELETED, Object::GetGUID(), GetSession(), LOG_DEBUG, m_actionButtons, m_activeSpec, MAX_ACTION_BUTTONS, WorldSession::SendPacket(), SMSG_ACTION_BUTTONS, and Position::ToString().
Referenced by ActivateSpec(), WorldSession::HandleLoadActionsSwitchSpec(), LoadActions(), and SendInitialActionButtons().
void Player::SendAttackSwingBadFacingAttack | ( | ) |
References GetSession(), WorldSession::SendPacket(), and SMSG_ATTACKSWING_BADFACING.
Referenced by Update().
void Player::SendAttackSwingCancelAttack | ( | ) |
References GetSession(), WorldSession::SendPacket(), and SMSG_CANCEL_COMBAT.
Referenced by Unit::CombatStop(), Spell::EffectSanctuary(), spell_hun_scatter_shot::HandleDummy(), AuraEffect::HandleFeignDeath(), Unit::StopAttackFaction(), and Unit::StopAttackingInvalidTarget().
void Player::SendAttackSwingCantAttack | ( | ) |
References GetSession(), WorldSession::SendPacket(), and SMSG_ATTACKSWING_CANT_ATTACK.
void Player::SendAttackSwingDeadTarget | ( | ) |
References GetSession(), WorldSession::SendPacket(), and SMSG_ATTACKSWING_DEADTARGET.
void Player::SendAttackSwingNotInRange | ( | ) |
References GetSession(), WorldSession::SendPacket(), and SMSG_ATTACKSWING_NOTINRANGE.
Referenced by Update().
void Player::SendAutoRepeatCancel | ( | Unit * | target | ) |
References Object::GetPackGUID(), SendMessageToSet(), PackedGuid::size(), and SMSG_CANCEL_AUTO_REPEAT.
Referenced by AuraEffect::HandleFeignDeath(), AuraEffect::HandleModStealth(), and Unit::InterruptSpell().
void Player::SendBattlefieldWorldStates | ( | ) |
Send misc stuff that needs to be sent on every login, like the battle timers.
References BATTLEFIELD_BATTLEID_WG, CONFIG_WINTERGRASP_ENABLE, sBattlefieldMgr, and sWorld.
Referenced by SendInitWorldStates().
void Player::SendBGWeekendWorldStates | ( | ) |
References BattlemasterListEntry::HolidayWorldStateId, BattlemasterListEntry::id, BattlegroundMgr::IsBGWeekend(), sBattlemasterListStore, and SendUpdateWorldState().
Referenced by SendInitWorldStates().
References ObjectGuid::Empty, Object::GetGUID(), GetSession(), LOG_DEBUG, WorldSession::SendPacket(), and SMSG_BUY_FAILED.
Referenced by BuyItemFromVendorSlot(), WorldSession::HandleBuybackItem(), debug_commandscript::HandleDebugSendBuyErrorCommand(), WorldSession::HandlePetitionBuyOpcode(), npc_experience::OnGossipSelect(), OnGossipSelect(), ProcessCastaction(), ProcessUnlearnAction(), and resetTalents().
void Player::SendCanTakeQuestResponse | ( | uint32 | msg | ) | const |
References GetSession(), LOG_DEBUG, WorldSession::SendPacket(), and SMSG_QUESTGIVER_QUEST_INVALID.
Referenced by debug_commandscript::HandleDebugSendQuestInvalidMsgCommand(), SatisfyQuestClass(), SatisfyQuestConditions(), SatisfyQuestDay(), SatisfyQuestExclusiveGroup(), SatisfyQuestLevel(), SatisfyQuestNextChain(), SatisfyQuestPrevChain(), SatisfyQuestPreviousQuest(), SatisfyQuestRace(), SatisfyQuestReputation(), SatisfyQuestSkill(), SatisfyQuestStatus(), and SatisfyQuestTimed().
void Player::SendCinematicStart | ( | uint32 | CinematicSequenceId | ) | const |
References _cinematicMgr, sCinematicSequencesStore, SendDirectMessage(), CinematicMgr::SetActiveCinematicCamera(), and SMSG_TRIGGER_CINEMATIC.
Referenced by debug_commandscript::HandleDebugPlayCinematicCommand(), WorldSession::HandlePlayerLoginFromDB(), and GameObject::Use().
References WorldObject::FindMap(), Object::GetGUID(), Object::GetGUID(), NeedSendSpectatorData(), ArenaSpectator::SendCommand_UInt32Value(), SendDirectMessage(), and SMSG_CLEAR_COOLDOWN.
Referenced by Spell::EffectSummonPet(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCastSpellOpcode(), RemoveAllSpellCooldown(), RemoveArenaSpellCooldowns(), and RemoveSpellCooldown().
void Player::SendCooldownEvent | ( | SpellInfo const * | spellInfo, |
uint32 | itemId = 0 , |
||
Spell * | spell = nullptr , |
||
bool | setCooldown = true |
||
) |
References AddSpellAndCategoryCooldowns(), Object::GetGUID(), SpellInfo::Id, SendDirectMessage(), and SMSG_COOLDOWN_EVENT.
Referenced by Spell::_handle_finish_phase(), Aura::_UnapplyForTarget(), Spell::finish(), Unit::RemoveGameObject(), Unit::SetMinion(), and UpdatePotionCooldown().
void Player::SendCorpseReclaimDelay | ( | uint32 | delay | ) |
References GetSession(), WorldSession::SendPacket(), and SMSG_CORPSE_RECLAIM_DELAY.
Referenced by BuildPlayerRepop(), and KillPlayer().
void Player::SendDirectMessage | ( | WorldPacket const * | data | ) | const |
References m_session, and WorldSession::SendPacket().
Referenced by Guild::_SendBankList(), Group::AddMember(), AddSpellAndCategoryCooldowns(), Creature::AddSpellCooldown(), AddSpellMod(), DoRandomRoll(), DuelComplete(), Spell::EffectBind(), Spell::EffectPlayMusic(), BGQueueRemoveEvent::Execute(), GiveLevel(), Aura::HandleAuraSpecificMods(), debug_commandscript::HandleDebugCooldownCommand(), Guild::HandleInviteMember(), npc_spiritual_insight::npc_spiritual_insightAI::IsSummonedBy(), Unit::Kill(), Pet::learnSpell(), QuestApprenticeAnglerPlayerScript::OnPlayerCompleteQuest(), Acore::LocalizedPacketDo< Builder >::operator()(), Acore::LocalizedPacketListDo< Builder >::operator()(), CreatureTextLocalizer< Builder >::operator()(), WorldObject::PlayDirectMusic(), WorldObject::PlayDirectSound(), WorldObject::PlayDistanceSound(), AchievementMgr::RemoveCriteriaProgress(), AchievementMgr::Reset(), CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInvite(), SendCinematicStart(), SendClearCooldown(), Unit::SendComboPoints(), SendCooldownEvent(), AchievementMgr::SendCriteriaUpdate(), SendDurabilityLoss(), WeatherMgr::SendFineWeatherUpdateToPlayer(), ReputationMgr::SendForceReactions(), ReputationMgr::SendInitialReputations(), Map::SendInitSelf(), SendInitWorldStates(), BattlefieldWG::SendInitWorldStatesTo(), SendLoot(), SendLootError(), SendLootRelease(), Unit::SendMeleeAttackStart(), SendMessageToSet(), SendMessageToSetInRange(), SendMessageToSetInRange(), SendMirrorTimer(), Unit::SendMovementFeatherFall(), Unit::SendMovementHover(), Unit::SendMovementWaterWalking(), SendMovieStart(), WorldSessionMgr::SendServerMessage(), Unit::SendSpellNonMeleeReflectLog(), ReputationMgr::SendState(), Unit::SendTameFailure(), SendTaxiNodeStatusMultiple(), SendUpdateWorldState(), BattlefieldWG::SendUpdateWorldStateMessage(), ReputationMgr::SendVisible(), Weather::SendWeatherUpdateToPlayer(), ChatHandler::SendWorldTextOptional(), Map::SendZoneDynamicInfo(), SetCanFly(), Creature::SetCanFly(), Creature::SetDisableGravity(), SetDisableGravity(), SetFeatherFall(), Creature::SetFeatherFall(), SetHover(), Unit::SetOwnerGUID(), Unit::SetRooted(), SetWaterWalking(), Creature::SetWaterWalking(), StopMirrorTimer(), Pet::unlearnSpell(), Unit::Whisper(), Unit::Whisper(), and Whisper().
void Player::SendDuelCountdown | ( | uint32 | counter | ) |
References GetSession(), WorldSession::SendPacket(), and SMSG_DUEL_COUNTDOWN.
Referenced by WorldSession::HandleDuelAcceptedOpcode().
void Player::SendDungeonDifficulty | ( | bool | IsInGroup | ) |
References GetDungeonDifficulty(), GetSession(), MSG_SET_DUNGEON_DIFFICULTY, and WorldSession::SendPacket().
Referenced by Group::AddMember(), WorldSession::HandlePlayerLoginFromDB(), WorldSession::HandlePlayerLoginToCharInWorld(), WorldSession::HandleSetDungeonDifficultyOpcode(), and Group::SetDungeonDifficulty().
void Player::SendDurabilityLoss | ( | ) |
References SendDirectMessage().
Referenced by EnvironmentalDamage().
void Player::SendEnchantmentDurations | ( | ) |
References Object::GetGUID(), GetSession(), m_enchantDuration, and WorldSession::SendItemEnchantTimeUpdate().
Referenced by SendInitialPacketsAfterAddToMap().
void Player::SendEquipError | ( | InventoryResult | msg, |
Item * | pItem, | ||
Item * | pItem2 = nullptr , |
||
uint32 | itemid = 0 |
||
) |
References ObjectGuid::Empty, EQUIP_ERR_CANT_EQUIP_LEVEL_I, EQUIP_ERR_EVENT_AUTOEQUIP_BIND_CONFIRM, EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_COUNT_EXCEEDED, EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_EQUIPPED_EXCEEDED, EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_SOCKETED_EXCEEDED, EQUIP_ERR_OK, EQUIP_ERR_PURCHASE_LEVEL_TOO_LOW, Object::GetGUID(), GetSession(), Item::GetTemplate(), ItemTemplate::ItemLimitCategory, LOG_DEBUG, ItemTemplate::RequiredLevel, WorldSession::SendPacket(), SMSG_INVENTORY_CHANGE_FAILURE, and sObjectMgr.
Referenced by _StoreOrEquipNewItem(), AutoStoreLoot(), BuyItemFromVendorSlot(), CanAddQuest(), CanRewardQuest(), CanRewardQuest(), CastItemUseSpell(), Spell::CheckItems(), Group::CountTheRoll(), Spell::DoCreateItem(), Spell::EffectRechargeManaGem(), GiveQuestSourceItem(), WorldSession::HandleAcceptTradeOpcode(), misc_commandscript::HandleAddItemSetCommand(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleBuybackItem(), AuraEffect::HandleChannelDeathItem(), debug_commandscript::HandleDebugSendEquipErrorCommand(), WorldSession::HandleDestroyItemOpcode(), WorldSession::HandleEquipmentSetUse(), WorldSession::HandleGuildBankSwapItems(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandleReadItem(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSetAmmoOpcode(), WorldSession::HandleSocketOpcode(), WorldSession::HandleSplitItemOpcode(), WorldSession::HandleSwapInvItemOpcode(), WorldSession::HandleSwapItem(), WorldSession::HandleUseItemOpcode(), WorldSession::HandleWrapItemOpcode(), ModifyMoney(), item_petrov_cluster_bombs::OnUse(), item_only_for_flight::OnUse(), item_incendiary_explosives::OnUse(), item_captured_frog::OnUse(), ProcessUnlearnAction(), SetAmmo(), SplitItem(), StoreLootItem(), SwapItem(), and TakeQuestSourceItem().
void Player::SendEquipmentSetList | ( | ) |
References ByteBuffer::appendPackGUID(), EQUIPMENT_SET_DELETED, EQUIPMENT_SLOT_END, GetSession(), m_EquipmentSets, ByteBuffer::put(), WorldSession::SendPacket(), SMSG_EQUIPMENT_SET_LIST, and ByteBuffer::wpos().
Referenced by SendInitialPacketsBeforeAddToMap().
References GetSession(), WorldSession::SendPacket(), and SMSG_EXPLORATION_EXPERIENCE.
Referenced by CheckAreaExploreAndOutdoor().
|
inline |
References SendActionButtons().
Referenced by SendInitialPacketsBeforeAddToMap().
void Player::SendInitialPacketsAfterAddToMap | ( | ) |
References Unit::AddAura(), AURA_EFFECT_HANDLE_SEND_FOR_CLIENT, Unit::CastSpell(), Unit::GetAuraEffectsByType(), GetDifficulty(), GetGroup(), WorldObject::GetMap(), GetMountBlockId(), Object::GetPackGUID(), GetRaidDifficulty(), GetSession(), GetStoredRaidDifficulty(), WorldObject::GetZoneAndAreaId(), Unit::HasMountedAura(), Unit::HasRootAura(), Unit::HasStunAura(), isBeingLoaded(), MOVE_ROOT, WorldSession::ResetTimeSync(), SendEnchantmentDurations(), SendItemDurations(), SendMessageToSet(), SendQuestGiverStatusMultiple(), SendRaidDifficulty(), SendTaxiNodeStatusMultiple(), WorldSession::SendTimeSync(), SetMountBlockId(), SetMovement(), SMSG_FORCE_MOVE_ROOT, SPELL_AURA_FEATHER_FALL, SPELL_AURA_FLY, SPELL_AURA_HOVER, SPELL_AURA_MOD_FEAR, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, SPELL_AURA_NONE, SPELL_AURA_SAFE_FALL, SPELL_AURA_TRANSFORM, SPELL_AURA_WATER_WALK, StoreRaidMapDifficulty(), UpdateVisibilityForPlayer(), and UpdateZone().
Referenced by WorldSession::HandleMoveWorldportAck(), WorldSession::HandlePlayerLoginFromDB(), and WorldSession::HandlePlayerLoginToCharInWorld().
void Player::SendInitialPacketsBeforeAddToMap | ( | ) |
Pass 'this' as argument because we're not stored in ObjectAccessor yet
References ByteBuffer::AppendPackedTime(), GetDifficulty(), Object::GetEntry(), GameTime::GetGameTime(), WorldObject::GetMap(), GetReputationMgr(), GetSession(), GetSocial(), WorldPacket::Initialize(), m_achievementMgr, m_homebindAreaId, m_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, m_reputationMgr, AchievementMgr::SendAllAchievementData(), SendEquipmentSetList(), ReputationMgr::SendForceReactions(), SendInitialActionButtons(), ReputationMgr::SendInitialReputations(), SendInitialSpells(), WorldSession::SendPacket(), PlayerSocial::SendSocialList(), SendTalentsInfoData(), SetMover(), SMSG_BINDPOINTUPDATE, SMSG_INSTANCE_DIFFICULTY, SMSG_LOGIN_SETTIMESPEED, SMSG_SEND_UNLEARN_SPELLS, SOCIAL_FLAG_ALL, and sScriptMgr.
Referenced by WorldSession::HandleMoveWorldportAck(), WorldSession::HandlePlayerLoginFromDB(), and WorldSession::HandlePlayerLoginToCharInWorld().
void Player::SendInitialSpells | ( | ) |
References GetActiveSpec(), GetActiveSpecMask(), GameTime::GetGameTimeMS(), GetGlyph(), GetSession(), infinityCooldownDelayCheck, m_spellCooldowns, m_spells, m_talents, MAX_GLYPH_SLOT_INDEX, PLAYERSPELL_REMOVED, ByteBuffer::put(), WorldSession::SendPacket(), sGlyphPropertiesStore, SMSG_INITIAL_SPELLS, sSpellMgr, and ByteBuffer::wpos().
Referenced by SendInitialPacketsBeforeAddToMap().
References WorldPackets::WorldState::InitWorldStates::AreaID, ARENA_SEASON_STATE_IN_PROGRESS, BATTLEFIELD_WG, BATTLEGROUND_AB, BATTLEGROUND_AV, BATTLEGROUND_BE, BATTLEGROUND_DS, BATTLEGROUND_EY, BATTLEGROUND_IC, BATTLEGROUND_NA, BATTLEGROUND_RL, BATTLEGROUND_RV, BATTLEGROUND_SA, BATTLEGROUND_WS, bgZoneIdToFillWorldStates, Battleground::FillInitialWorldStates(), InstanceScript::FillInitialWorldStates(), OutdoorPvP::FillInitialWorldStates(), Battlefield::FillInitialWorldStates(), GetBattleground(), Battleground::GetBgTypeID(), ObjectAccessor::GetCreature(), WorldObject::GetInstanceScript(), WorldLocation::GetMapId(), Battlefield::GetTypeId(), OutdoorPvP::GetTypeId(), LOG_DEBUG, WorldPackets::WorldState::InitWorldStates::MapID, OUTDOOR_PVP_EP, OUTDOOR_PVP_HP, OUTDOOR_PVP_NA, OUTDOOR_PVP_SI, OUTDOOR_PVP_TF, OUTDOOR_PVP_ZM, sArenaSeasonMgr, sBattlefieldMgr, SendBattlefieldWorldStates(), SendBGWeekendWorldStates(), SendDirectMessage(), sOutdoorPvPMgr, sWorldState, WORLD_STATE_AHNQIRAJ_SANDWORM_E, WORLD_STATE_AHNQIRAJ_SANDWORM_N, WORLD_STATE_AHNQIRAJ_SANDWORM_S, WORLD_STATE_AHNQIRAJ_SANDWORM_SW, WORLD_STATE_ARENA_SEASON_ID, WORLD_STATE_ARENA_SEASON_PROGRESS, WORLD_STATE_BATTLE_FOR_LIGHTS_HOPE_COUNTDOWN_ENABLE, WORLD_STATE_BATTLE_FOR_LIGHTS_HOPE_COUNTDOWN_TIME, WORLD_STATE_BATTLE_FOR_LIGHTS_HOPE_DEFENDERS_COUNT, WORLD_STATE_BATTLE_FOR_LIGHTS_HOPE_EVENT_BEGIN_ENABLE, WORLD_STATE_BATTLE_FOR_LIGHTS_HOPE_SCOURGE_COUNT, WORLD_STATE_BATTLE_FOR_LIGHTS_HOPE_SOLDIERS_ENABLE, WORLD_STATE_BATTLEGROUND_AB_BLACKSMITH_ICON, WORLD_STATE_BATTLEGROUND_AB_BLACKSMITH_STATE_ALLIANCE, WORLD_STATE_BATTLEGROUND_AB_BLACKSMITH_STATE_CONTROLLED_ALLIANCE, WORLD_STATE_BATTLEGROUND_AB_BLACKSMITH_STATE_CONTROLLED_HORDE, WORLD_STATE_BATTLEGROUND_AB_BLACKSMITH_STATE_HORDE, WORLD_STATE_BATTLEGROUND_AB_FARM_ICON, WORLD_STATE_BATTLEGROUND_AB_FARM_STATE_ALLIANCE, WORLD_STATE_BATTLEGROUND_AB_FARM_STATE_CONTROLLED_ALLIANCE, WORLD_STATE_BATTLEGROUND_AB_FARM_STATE_CONTROLLED_HORDE, WORLD_STATE_BATTLEGROUND_AB_FARM_STATE_HORDE, WORLD_STATE_BATTLEGROUND_AB_GOLDMINE_ICON, WORLD_STATE_BATTLEGROUND_AB_GOLDMINE_STATE_ALLIANCE, WORLD_STATE_BATTLEGROUND_AB_GOLDMINE_STATE_CONTROLLED_ALLIANCE, WORLD_STATE_BATTLEGROUND_AB_GOLDMINE_STATE_CONTROLLED_HORDE, WORLD_STATE_BATTLEGROUND_AB_GOLDMINE_STATE_HORDE, WORLD_STATE_BATTLEGROUND_AB_LUMBERMILL_ICON, WORLD_STATE_BATTLEGROUND_AB_LUMBERMILL_STATE_ALLIANCE, WORLD_STATE_BATTLEGROUND_AB_LUMBERMILL_STATE_CONTROLLED_ALLIANCE, WORLD_STATE_BATTLEGROUND_AB_LUMBERMILL_STATE_CONTROLLED_HORDE, WORLD_STATE_BATTLEGROUND_AB_LUMBERMILL_STATE_HORDE, WORLD_STATE_BATTLEGROUND_AB_OCCUPIED_BASES_ALLIANCE, WORLD_STATE_BATTLEGROUND_AB_OCCUPIED_BASES_HORDE, WORLD_STATE_BATTLEGROUND_AB_RESOURCES_ALLIANCE, WORLD_STATE_BATTLEGROUND_AB_RESOURCES_HORDE, WORLD_STATE_BATTLEGROUND_AB_RESOURCES_MAX, WORLD_STATE_BATTLEGROUND_AB_RESOURCES_WARNING, WORLD_STATE_BATTLEGROUND_AB_STABLE_ICON, WORLD_STATE_BATTLEGROUND_AB_STABLE_STATE_ALLIANCE, WORLD_STATE_BATTLEGROUND_AB_STABLE_STATE_CONTROLLED_ALLIANCE, WORLD_STATE_BATTLEGROUND_AB_STABLE_STATE_CONTROLLED_HORDE, WORLD_STATE_BATTLEGROUND_AB_STABLE_STATE_HORDE, WORLD_STATE_BATTLEGROUND_AB_UNK, WORLD_STATE_BATTLEGROUND_AV_AID_A_A, WORLD_STATE_BATTLEGROUND_AV_AID_A_C, WORLD_STATE_BATTLEGROUND_AV_AID_H_A, WORLD_STATE_BATTLEGROUND_AV_AID_H_C, WORLD_STATE_BATTLEGROUND_AV_DUNN_ASSAULTED, WORLD_STATE_BATTLEGROUND_AV_DUNN_CONTROLLED, WORLD_STATE_BATTLEGROUND_AV_DUNN_DESTROYED, WORLD_STATE_BATTLEGROUND_AV_DUNN_UNUSED, WORLD_STATE_BATTLEGROUND_AV_DUNS_ASSAULTED, WORLD_STATE_BATTLEGROUND_AV_DUNS_CONTROLLED, WORLD_STATE_BATTLEGROUND_AV_DUNS_DESTROYED, WORLD_STATE_BATTLEGROUND_AV_DUNS_UNUSED, WORLD_STATE_BATTLEGROUND_AV_FROSTWOLF_A_A, WORLD_STATE_BATTLEGROUND_AV_FROSTWOLF_A_C, WORLD_STATE_BATTLEGROUND_AV_FROSTWOLF_H_A, WORLD_STATE_BATTLEGROUND_AV_FROSTWOLF_H_C, WORLD_STATE_BATTLEGROUND_AV_FROSTWOLFE_ASSAULTED, WORLD_STATE_BATTLEGROUND_AV_FROSTWOLFE_CONTROLLED, WORLD_STATE_BATTLEGROUND_AV_FROSTWOLFE_DESTROYED, WORLD_STATE_BATTLEGROUND_AV_FROSTWOLFE_UNUSED, WORLD_STATE_BATTLEGROUND_AV_FROSTWOLFHUT_A_A, WORLD_STATE_BATTLEGROUND_AV_FROSTWOLFHUT_A_C, WORLD_STATE_BATTLEGROUND_AV_FROSTWOLFHUT_H_A, WORLD_STATE_BATTLEGROUND_AV_FROSTWOLFHUT_H_C, WORLD_STATE_BATTLEGROUND_AV_FROSTWOLFW_ASSAULTED, WORLD_STATE_BATTLEGROUND_AV_FROSTWOLFW_CONTROLLED, WORLD_STATE_BATTLEGROUND_AV_FROSTWOLFW_DESTROYED, WORLD_STATE_BATTLEGROUND_AV_FROSTWOLFW_UNUSED, WORLD_STATE_BATTLEGROUND_AV_ICEBLOOD_A_A, WORLD_STATE_BATTLEGROUND_AV_ICEBLOOD_A_C, WORLD_STATE_BATTLEGROUND_AV_ICEBLOOD_ASSAULTED, WORLD_STATE_BATTLEGROUND_AV_ICEBLOOD_CONTROLLED, WORLD_STATE_BATTLEGROUND_AV_ICEBLOOD_DESTROYED, WORLD_STATE_BATTLEGROUND_AV_ICEBLOOD_H_A, WORLD_STATE_BATTLEGROUND_AV_ICEBLOOD_H_C, WORLD_STATE_BATTLEGROUND_AV_ICEBLOOD_UNUSED, WORLD_STATE_BATTLEGROUND_AV_ICEWING_ASSAULTED, WORLD_STATE_BATTLEGROUND_AV_ICEWING_CONTROLLED, WORLD_STATE_BATTLEGROUND_AV_ICEWING_DESTROYED, WORLD_STATE_BATTLEGROUND_AV_ICEWING_UNUSED, WORLD_STATE_BATTLEGROUND_AV_N_MINE_A, WORLD_STATE_BATTLEGROUND_AV_N_MINE_H, WORLD_STATE_BATTLEGROUND_AV_N_MINE_N, WORLD_STATE_BATTLEGROUND_AV_PIKEGRAVE_A_A, WORLD_STATE_BATTLEGROUND_AV_PIKEGRAVE_A_C, WORLD_STATE_BATTLEGROUND_AV_PIKEGRAVE_H_A, WORLD_STATE_BATTLEGROUND_AV_PIKEGRAVE_H_C, WORLD_STATE_BATTLEGROUND_AV_S_MINE_A, WORLD_STATE_BATTLEGROUND_AV_S_MINE_H, WORLD_STATE_BATTLEGROUND_AV_S_MINE_N, WORLD_STATE_BATTLEGROUND_AV_SNOWFALL_A_A, WORLD_STATE_BATTLEGROUND_AV_SNOWFALL_A_C, WORLD_STATE_BATTLEGROUND_AV_SNOWFALL_H_A, WORLD_STATE_BATTLEGROUND_AV_SNOWFALL_H_C, WORLD_STATE_BATTLEGROUND_AV_SNOWFALL_N, WORLD_STATE_BATTLEGROUND_AV_STONEH_ASSAULTED, WORLD_STATE_BATTLEGROUND_AV_STONEH_CONTROLLED, WORLD_STATE_BATTLEGROUND_AV_STONEH_DESTROYED, WORLD_STATE_BATTLEGROUND_AV_STONEH_UNUSED, WORLD_STATE_BATTLEGROUND_AV_STONEHEART_A_A, WORLD_STATE_BATTLEGROUND_AV_STONEHEART_A_C, WORLD_STATE_BATTLEGROUND_AV_STONEHEART_H_A, WORLD_STATE_BATTLEGROUND_AV_STONEHEART_H_C, WORLD_STATE_BATTLEGROUND_AV_STORMPIKE_COMMANDERS, WORLD_STATE_BATTLEGROUND_AV_STORMPIKE_LIEUTENANTS, WORLD_STATE_BATTLEGROUND_AV_TOWERPOINT_ASSAULTED, WORLD_STATE_BATTLEGROUND_AV_TOWERPOINT_CONTROLLED, WORLD_STATE_BATTLEGROUND_AV_TOWERPOINT_DESTROYED, WORLD_STATE_BATTLEGROUND_AV_TOWERPOINT_UNUSED, WORLD_STATE_BATTLEGROUND_AV_UNK_0, WORLD_STATE_BATTLEGROUND_AV_UNK_1, WORLD_STATE_BATTLEGROUND_AV_UNK_2, WORLD_STATE_BATTLEGROUND_AV_UNK_3, WORLD_STATE_BATTLEGROUND_AV_UNK_4, WORLD_STATE_BATTLEGROUND_AV_UNK_5, WORLD_STATE_BATTLEGROUND_BE_ARENA_GOLD, WORLD_STATE_BATTLEGROUND_BE_ARENA_GREEN, WORLD_STATE_BATTLEGROUND_BE_ARENA_SHOW, WORLD_STATE_BATTLEGROUND_DS_ARENA_GOLD, WORLD_STATE_BATTLEGROUND_DS_ARENA_GREEN, WORLD_STATE_BATTLEGROUND_DS_ARENA_SHOW, WORLD_STATE_BATTLEGROUND_EY_ALLIANCE_BASE, WORLD_STATE_BATTLEGROUND_EY_ALLIANCE_RESOURCES, WORLD_STATE_BATTLEGROUND_EY_BLOOD_ELF_ALLIANCE_CONTROL, WORLD_STATE_BATTLEGROUND_EY_BLOOD_ELF_HORDE_CONTROL, WORLD_STATE_BATTLEGROUND_EY_BLOOD_ELF_UNCONTROL, WORLD_STATE_BATTLEGROUND_EY_DRAENEI_RUINS_ALLIANCE_CONFLICT, WORLD_STATE_BATTLEGROUND_EY_DRAENEI_RUINS_ALLIANCE_CONTROL, WORLD_STATE_BATTLEGROUND_EY_DRAENEI_RUINS_HORDE_CONFLICT, WORLD_STATE_BATTLEGROUND_EY_DRAENEI_RUINS_HORDE_CONTROL, WORLD_STATE_BATTLEGROUND_EY_DRAENEI_RUINS_UNCONTROL, WORLD_STATE_BATTLEGROUND_EY_FEL_REAVER_ALLIANCE_CONFLICT, WORLD_STATE_BATTLEGROUND_EY_FEL_REAVER_ALLIANCE_CONTROL, WORLD_STATE_BATTLEGROUND_EY_FEL_REAVER_HORDE_CONFLICT, WORLD_STATE_BATTLEGROUND_EY_FEL_REAVER_HORDE_CONTROL, WORLD_STATE_BATTLEGROUND_EY_FEL_REAVER_UNCONTROL, WORLD_STATE_BATTLEGROUND_EY_FLAG, WORLD_STATE_BATTLEGROUND_EY_FLAG_STATE_ALLIANCE, WORLD_STATE_BATTLEGROUND_EY_FLAG_STATE_HORDE, WORLD_STATE_BATTLEGROUND_EY_HORDE_BASE, WORLD_STATE_BATTLEGROUND_EY_HORDE_RESOURCES, WORLD_STATE_BATTLEGROUND_EY_MAGE_TOWER_ALLIANCE_CONFLICT, WORLD_STATE_BATTLEGROUND_EY_MAGE_TOWER_ALLIANCE_CONTROL, WORLD_STATE_BATTLEGROUND_EY_MAGE_TOWER_HORDE_CONFLICT, WORLD_STATE_BATTLEGROUND_EY_MAGE_TOWER_HORDE_CONTROL, WORLD_STATE_BATTLEGROUND_EY_MAGE_TOWER_UNCONTROL, WORLD_STATE_BATTLEGROUND_EY_PROGRESS_BAR_PERCENT_GREY, WORLD_STATE_BATTLEGROUND_EY_PROGRESS_BAR_SHOW, WORLD_STATE_BATTLEGROUND_EY_PROGRESS_BAR_STATUS, WORLD_STATE_BATTLEGROUND_EY_UNK_0, WORLD_STATE_BATTLEGROUND_EY_UNK_1, WORLD_STATE_BATTLEGROUND_EY_UNK_2, WORLD_STATE_BATTLEGROUND_EY_UNK_3, WORLD_STATE_BATTLEGROUND_IC_ALLIANCE_REINFORCEMENT, WORLD_STATE_BATTLEGROUND_IC_ALLIANCE_REINFORCEMENT_SET, WORLD_STATE_BATTLEGROUND_IC_DOCKS_UNCONTROLLED, WORLD_STATE_BATTLEGROUND_IC_GATE_EAST_A_WS_OPEN, WORLD_STATE_BATTLEGROUND_IC_GATE_EAST_H_WS_OPEN, WORLD_STATE_BATTLEGROUND_IC_GATE_FRONT_A_WS_OPEN, WORLD_STATE_BATTLEGROUND_IC_GATE_FRONT_H_WS_CLOSED, WORLD_STATE_BATTLEGROUND_IC_GATE_FRONT_H_WS_OPEN, WORLD_STATE_BATTLEGROUND_IC_GATE_WEST_A_WS_OPEN, WORLD_STATE_BATTLEGROUND_IC_GATE_WEST_H_WS_OPEN, WORLD_STATE_BATTLEGROUND_IC_HANGAR_UNCONTROLLED, WORLD_STATE_BATTLEGROUND_IC_HORDE_KEEP_CONTROLLED_H, WORLD_STATE_BATTLEGROUND_IC_HORDE_REINFORCEMENT, WORLD_STATE_BATTLEGROUND_IC_HORDE_REINFORCEMENT_SET, WORLD_STATE_BATTLEGROUND_IC_QUARRY_UNCONTROLLED, WORLD_STATE_BATTLEGROUND_IC_REFINERY_UNCONTROLLED, WORLD_STATE_BATTLEGROUND_IC_UNK, WORLD_STATE_BATTLEGROUND_IC_WORKSHOP_UNCONTROLLED, WORLD_STATE_BATTLEGROUND_NA_ARENA_GOLD, WORLD_STATE_BATTLEGROUND_NA_ARENA_GREEN, WORLD_STATE_BATTLEGROUND_NA_ARENA_SHOW, WORLD_STATE_BATTLEGROUND_RL_ARENA_GOLD, WORLD_STATE_BATTLEGROUND_RL_ARENA_GREEN, WORLD_STATE_BATTLEGROUND_RL_ARENA_SHOW, WORLD_STATE_BATTLEGROUND_RV_ARENA_GOLD, WORLD_STATE_BATTLEGROUND_RV_ARENA_GREEN, WORLD_STATE_BATTLEGROUND_RV_ARENA_SHOW, WORLD_STATE_BATTLEGROUND_SA_ALLIANCE_DEFENSE_TOKEN, WORLD_STATE_BATTLEGROUND_SA_ANCIENT_GATE, WORLD_STATE_BATTLEGROUND_SA_BLUE_GATE, WORLD_STATE_BATTLEGROUND_SA_BONUS_TIMER, WORLD_STATE_BATTLEGROUND_SA_CENTER_GY_ALLIANCE, WORLD_STATE_BATTLEGROUND_SA_CENTER_GY_HORDE, WORLD_STATE_BATTLEGROUND_SA_ENABLE_TIMER, WORLD_STATE_BATTLEGROUND_SA_GREEN_GATE, WORLD_STATE_BATTLEGROUND_SA_HORDE_ATTACKER, WORLD_STATE_BATTLEGROUND_SA_HORDE_DEFENSE_TOKEN, WORLD_STATE_BATTLEGROUND_SA_LEFT_ATTACK_TOKEN_ALLIANCE, WORLD_STATE_BATTLEGROUND_SA_LEFT_ATTACK_TOKEN_HORDE, WORLD_STATE_BATTLEGROUND_SA_LEFT_GY_ALLIANCE, WORLD_STATE_BATTLEGROUND_SA_LEFT_GY_HORDE, WORLD_STATE_BATTLEGROUND_SA_PURPLE_GATE, WORLD_STATE_BATTLEGROUND_SA_RED_GATE, WORLD_STATE_BATTLEGROUND_SA_RIGHT_ATTACK_TOKEN_ALLIANCE, WORLD_STATE_BATTLEGROUND_SA_RIGHT_ATTACK_TOKEN_HORDE, WORLD_STATE_BATTLEGROUND_SA_RIGHT_GY_ALLIANCE, WORLD_STATE_BATTLEGROUND_SA_RIGHT_GY_HORDE, WORLD_STATE_BATTLEGROUND_SA_TIMER_MINUTES, WORLD_STATE_BATTLEGROUND_SA_TIMER_SECONDS_FIRST_DIGIT, WORLD_STATE_BATTLEGROUND_SA_TIMER_SECONDS_SECOND_DIGIT, WORLD_STATE_BATTLEGROUND_SA_YELLOW_GATE, WORLD_STATE_BATTLEGROUND_WS_FLAG_CAPTURES_ALLIANCE, WORLD_STATE_BATTLEGROUND_WS_FLAG_CAPTURES_HORDE, WORLD_STATE_BATTLEGROUND_WS_FLAG_CAPTURES_MAX, WORLD_STATE_BATTLEGROUND_WS_FLAG_STATE_ALLIANCE, WORLD_STATE_BATTLEGROUND_WS_FLAG_STATE_HORDE, WORLD_STATE_BATTLEGROUND_WS_UNK_0, WORLD_STATE_BATTLEGROUND_WS_UNK_1, WORLD_STATE_BATTLEGROUND_WS_UNK_2, WORLD_STATE_CULLING_OF_STRATHOLME_CRATES_REVEALED, WORLD_STATE_CULLING_OF_STRATHOLME_SHOW_CRATES, WORLD_STATE_CULLING_OF_STRATHOLME_TIME_GUARDIAN, WORLD_STATE_CULLING_OF_STRATHOLME_TIME_GUARDIAN_SHOW, WORLD_STATE_CULLING_OF_STRATHOLME_WAVE_COUNT, WORLD_STATE_GENERIC_UNK_0, WORLD_STATE_GENERIC_UNK_1, WORLD_STATE_GENERIC_UNK_2, WORLD_STATE_GENERIC_UNK_3, WORLD_STATE_HALLS_OF_REFLECTION_WAVE_COUNT, WORLD_STATE_HALLS_OF_REFLECTION_WAVES_ENABLED, WORLD_STATE_ICECROWN_CITADEL_ATTEMPTS_MAX, WORLD_STATE_ICECROWN_CITADEL_ATTEMPTS_REMAINING, WORLD_STATE_ICECROWN_CITADEL_EXECUTION_TIME, WORLD_STATE_ICECROWN_CITADEL_SHOW_ATTEMPTS, WORLD_STATE_ICECROWN_CITADEL_SHOW_TIMER, WORLD_STATE_OCULUS_CENTRIFUGE_CONSTRUCT_AMOUNT, WORLD_STATE_OCULUS_CENTRIFUGE_CONSTRUCT_SHOW, WORLD_STATE_OPVP_EP_CROWNGUARDTOWER_A, WORLD_STATE_OPVP_EP_CROWNGUARDTOWER_H, WORLD_STATE_OPVP_EP_CROWNGUARDTOWER_N, WORLD_STATE_OPVP_EP_CROWNGUARDTOWER_N_A, WORLD_STATE_OPVP_EP_CROWNGUARDTOWER_N_H, WORLD_STATE_OPVP_EP_EASTWALLTOWER_A, WORLD_STATE_OPVP_EP_EASTWALLTOWER_H, WORLD_STATE_OPVP_EP_EASTWALLTOWER_N, WORLD_STATE_OPVP_EP_EASTWALLTOWER_N_A, WORLD_STATE_OPVP_EP_EASTWALLTOWER_N_H, WORLD_STATE_OPVP_EP_NORTHPASSTOWER_A, WORLD_STATE_OPVP_EP_NORTHPASSTOWER_H, WORLD_STATE_OPVP_EP_NORTHPASSTOWER_N, WORLD_STATE_OPVP_EP_NORTHPASSTOWER_N_A, WORLD_STATE_OPVP_EP_NORTHPASSTOWER_N_H, WORLD_STATE_OPVP_EP_PLAGUEWOODTOWER_A, WORLD_STATE_OPVP_EP_PLAGUEWOODTOWER_H, WORLD_STATE_OPVP_EP_PLAGUEWOODTOWER_N, WORLD_STATE_OPVP_EP_PLAGUEWOODTOWER_N_A, WORLD_STATE_OPVP_EP_UI_TOWER_COUNT_A, WORLD_STATE_OPVP_EP_UI_TOWER_COUNT_H, WORLD_STATE_OPVP_EP_UI_TOWER_SLIDER_DISPLAY, WORLD_STATE_OPVP_EP_UI_TOWER_SLIDER_N, WORLD_STATE_OPVP_EP_UI_TOWER_SLIDER_POS, WORLD_STATE_OPVP_EP_UNK_0, WORLD_STATE_OPVP_EP_UNK_1, WORLD_STATE_OPVP_EP_UNK_2, WORLD_STATE_OPVP_EP_UNK_3, WORLD_STATE_OPVP_EP_UNK_5, WORLD_STATE_OPVP_EP_UNK_6, WORLD_STATE_OPVP_EP_UNK_7, WORLD_STATE_OPVP_EP_UNK_8, WORLD_STATE_OPVP_HP_BROKENHILL_A, WORLD_STATE_OPVP_HP_BROKENHILL_H, WORLD_STATE_OPVP_HP_BROKENHILL_N, WORLD_STATE_OPVP_HP_OVERLOOK_A, WORLD_STATE_OPVP_HP_OVERLOOK_H, WORLD_STATE_OPVP_HP_OVERLOOK_N, WORLD_STATE_OPVP_HP_STADIUM_A, WORLD_STATE_OPVP_HP_STADIUM_H, WORLD_STATE_OPVP_HP_STADIUM_N, WORLD_STATE_OPVP_HP_UI_TOWER_COUNT_A, WORLD_STATE_OPVP_HP_UI_TOWER_COUNT_H, WORLD_STATE_OPVP_HP_UI_TOWER_DISPLAY_A, WORLD_STATE_OPVP_HP_UI_TOWER_DISPLAY_H, WORLD_STATE_OPVP_HP_UI_TOWER_SLIDER_DISPLAY, WORLD_STATE_OPVP_HP_UI_TOWER_SLIDER_N, WORLD_STATE_OPVP_HP_UI_TOWER_SLIDER_POS, WORLD_STATE_OPVP_NA_MAP_HALAA_ALLIANCE, WORLD_STATE_OPVP_NA_MAP_HALAA_HORDE, WORLD_STATE_OPVP_NA_MAP_HALAA_NEU_A, WORLD_STATE_OPVP_NA_MAP_HALAA_NEU_H, WORLD_STATE_OPVP_NA_MAP_HALAA_NEUTRAL, WORLD_STATE_OPVP_NA_MAP_WYVERN_EAST_A, WORLD_STATE_OPVP_NA_MAP_WYVERN_EAST_H, WORLD_STATE_OPVP_NA_MAP_WYVERN_EAST_NEU_A, WORLD_STATE_OPVP_NA_MAP_WYVERN_EAST_NEU_H, WORLD_STATE_OPVP_NA_MAP_WYVERN_NORTH_A, WORLD_STATE_OPVP_NA_MAP_WYVERN_NORTH_H, WORLD_STATE_OPVP_NA_MAP_WYVERN_NORTH_NEU_A, WORLD_STATE_OPVP_NA_MAP_WYVERN_NORTH_NEU_H, WORLD_STATE_OPVP_NA_MAP_WYVERN_SOUTH_A, WORLD_STATE_OPVP_NA_MAP_WYVERN_SOUTH_H, WORLD_STATE_OPVP_NA_MAP_WYVERN_SOUTH_NEU_A, WORLD_STATE_OPVP_NA_MAP_WYVERN_SOUTH_NEU_H, WORLD_STATE_OPVP_NA_MAP_WYVERN_WEST_A, WORLD_STATE_OPVP_NA_MAP_WYVERN_WEST_H, WORLD_STATE_OPVP_NA_MAP_WYVERN_WEST_NEU_A, WORLD_STATE_OPVP_NA_MAP_WYVERN_WEST_NEU_H, WORLD_STATE_OPVP_NA_UI_ALLIANCE_GUARDS_SHOW, WORLD_STATE_OPVP_NA_UI_GUARDS_LEFT, WORLD_STATE_OPVP_NA_UI_GUARDS_MAX, WORLD_STATE_OPVP_NA_UI_HORDE_GUARDS_SHOW, WORLD_STATE_OPVP_NA_UI_SLIDER_N, WORLD_STATE_OPVP_NA_UI_TOWER_SLIDER_DISPLAY, WORLD_STATE_OPVP_NA_UI_TOWER_SLIDER_POS, WORLD_STATE_OPVP_SI_GATHERED_A, WORLD_STATE_OPVP_SI_GATHERED_H, WORLD_STATE_OPVP_SI_SILITHYST_MAX, WORLD_STATE_OPVP_TF_TOWER_NUM_00, WORLD_STATE_OPVP_TF_TOWER_NUM_01, WORLD_STATE_OPVP_TF_TOWER_NUM_02, WORLD_STATE_OPVP_TF_TOWER_NUM_03, WORLD_STATE_OPVP_TF_TOWER_NUM_04, WORLD_STATE_OPVP_TF_TOWER_NUM_05, WORLD_STATE_OPVP_TF_TOWER_NUM_06, WORLD_STATE_OPVP_TF_TOWER_NUM_07, WORLD_STATE_OPVP_TF_TOWER_NUM_08, WORLD_STATE_OPVP_TF_TOWER_NUM_09, WORLD_STATE_OPVP_TF_TOWER_NUM_10, WORLD_STATE_OPVP_TF_TOWER_NUM_11, WORLD_STATE_OPVP_TF_TOWER_NUM_12, WORLD_STATE_OPVP_TF_TOWER_NUM_13, WORLD_STATE_OPVP_TF_TOWER_NUM_14, WORLD_STATE_OPVP_TF_TOWER_NUM_15, WORLD_STATE_OPVP_TF_UI_LOCKED_DISPLAY_ALLIANCE, WORLD_STATE_OPVP_TF_UI_LOCKED_DISPLAY_HORDE, WORLD_STATE_OPVP_TF_UI_LOCKED_DISPLAY_NEUTRAL, WORLD_STATE_OPVP_TF_UI_LOCKED_TIME_HOURS, WORLD_STATE_OPVP_TF_UI_LOCKED_TIME_MINUTES_FIRST_DIGIT, WORLD_STATE_OPVP_TF_UI_LOCKED_TIME_MINUTES_SECOND_DIGIT, WORLD_STATE_OPVP_TF_UI_TOWER_COUNT_A, WORLD_STATE_OPVP_TF_UI_TOWER_COUNT_H, WORLD_STATE_OPVP_TF_UI_TOWER_SLIDER_DISPLAY, WORLD_STATE_OPVP_TF_UI_TOWER_SLIDER_N, WORLD_STATE_OPVP_TF_UI_TOWER_SLIDER_POS, WORLD_STATE_OPVP_TF_UI_TOWERS_CONTROLLED_DISPLAY, WORLD_STATE_OPVP_ZM_MAP_ALLIANCE_FLAG_NOT_READY, WORLD_STATE_OPVP_ZM_MAP_ALLIANCE_FLAG_READY, WORLD_STATE_OPVP_ZM_MAP_GRAVEYARD_A, WORLD_STATE_OPVP_ZM_MAP_GRAVEYARD_H, WORLD_STATE_OPVP_ZM_MAP_GRAVEYARD_N, WORLD_STATE_OPVP_ZM_MAP_HORDE_FLAG_NOT_READY, WORLD_STATE_OPVP_ZM_MAP_HORDE_FLAG_READY, WORLD_STATE_OPVP_ZM_MAP_TOWER_EAST_A, WORLD_STATE_OPVP_ZM_MAP_TOWER_EAST_H, WORLD_STATE_OPVP_ZM_MAP_TOWER_EAST_N, WORLD_STATE_OPVP_ZM_MAP_TOWER_WEST_A, WORLD_STATE_OPVP_ZM_MAP_TOWER_WEST_H, WORLD_STATE_OPVP_ZM_MAP_TOWER_WEST_N, WORLD_STATE_OPVP_ZM_UI_TOWER_EAST_A, WORLD_STATE_OPVP_ZM_UI_TOWER_EAST_H, WORLD_STATE_OPVP_ZM_UI_TOWER_EAST_N, WORLD_STATE_OPVP_ZM_UI_TOWER_SLIDER_DISPLAY_E, WORLD_STATE_OPVP_ZM_UI_TOWER_SLIDER_DISPLAY_W, WORLD_STATE_OPVP_ZM_UI_TOWER_SLIDER_N_E, WORLD_STATE_OPVP_ZM_UI_TOWER_SLIDER_N_W, WORLD_STATE_OPVP_ZM_UI_TOWER_SLIDER_POS_E, WORLD_STATE_OPVP_ZM_UI_TOWER_SLIDER_POS_W, WORLD_STATE_OPVP_ZM_UI_TOWER_WEST_A, WORLD_STATE_OPVP_ZM_UI_TOWER_WEST_H, WORLD_STATE_OPVP_ZM_UI_TOWER_WEST_N, WORLD_STATE_OPVP_ZM_UNK, WORLD_STATE_RUBY_SANCTUM_CORPOREALITY_MATERIAL, WORLD_STATE_RUBY_SANCTUM_CORPOREALITY_TOGGLE, WORLD_STATE_RUBY_SANCTUM_CORPOREALITY_TWILIGHT, WORLD_STATE_SCOURGE_INVASION_AZSHARA, WORLD_STATE_SCOURGE_INVASION_BLASTED_LANDS, WORLD_STATE_SCOURGE_INVASION_BURNING_STEPPES, WORLD_STATE_SCOURGE_INVASION_EASTERN_PLAGUELANDS, WORLD_STATE_SCOURGE_INVASION_TANARIS, WORLD_STATE_SCOURGE_INVASION_WINTERSPRING, WORLD_STATE_ULDUAR_ALGALON_DESPAWN_TIMER, WORLD_STATE_ULDUAR_ALGALON_TIMER_ENABLED, WORLD_STATE_VIOLET_HOLD_PRISON_STATE, WORLD_STATE_VIOLET_HOLD_SHOW, WORLD_STATE_VIOLET_HOLD_WAVE_COUNT, WorldPackets::WorldState::InitWorldStates::Worldstates, WorldPackets::WorldState::InitWorldStates::Write(), and WorldPackets::WorldState::InitWorldStates::ZoneID.
Referenced by ArenaSeasonMgr::BroadcastUpdatedWorldState(), WorldSession::HandlePlayerLoginToCharInWorld(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnPlayerAreaUpdate(), and UpdateZone().
void Player::SendInstanceResetWarning | ( | uint32 | mapid, |
Difficulty | difficulty, | ||
uint32 | time, | ||
bool | onEnterMap | ||
) |
References InstancePlayerBind::extended, InstanceSave::GetExtendedResetTime(), Object::GetGUID(), InstanceSave::GetResetTime(), GetSession(), InstancePlayerBind::perm, RAID_INSTANCE_WARNING_HOURS, RAID_INSTANCE_WARNING_MIN, RAID_INSTANCE_WARNING_MIN_SOON, RAID_INSTANCE_WELCOME, InstancePlayerBind::save, WorldSession::SendPacket(), sInstanceSaveMgr, and SMSG_RAID_INSTANCE_MESSAGE.
Referenced by WorldSession::HandleMoveWorldportAck(), WorldSession::HandlePlayerLoginFromDB(), and WorldSession::HandlePlayerLoginToCharInWorld().
void Player::SendItemDurations | ( | ) |
References m_itemDuration.
Referenced by SendInitialPacketsAfterAddToMap().
References MailDraft::AddItem(), CharacterDatabase, Item::CreateItem(), Object::GetGUID(), ItemTemplate::GetMaxStackSize(), LOG_ERROR, MAIL_CREATURE, MAX_MAIL_ITEMS, ItemTemplate::MaxCount, MailDraft::SendMailTo(), sObjectMgr, and Position::ToString().
References SendItemRetrievalMail().
Referenced by Group::CountTheRoll(), WorldSession::HandleAutostoreLootItemOpcode(), RewardQuest(), and SendItemRetrievalMail().
void Player::SendLearnPacket | ( | uint32 | spellId, |
bool | learn | ||
) |
References GetSession(), WorldSession::SendPacket(), SMSG_LEARNED_SPELL, and SMSG_REMOVED_SPELL.
Referenced by _addSpell(), ActivateSpec(), addTalent(), Spell::EffectApplyGlyph(), WorldSession::HandleRemoveGlyph(), learnSpell(), LearnTalent(), removeSpell(), and resetTalents().
void Player::SendLogXPGain | ( | uint32 | GivenXP, |
Unit * | victim, | ||
uint32 | BonusXP, | ||
bool | recruitAFriend = false , |
||
float | group_rate = 1.0f |
||
) |
References ObjectGuid::Empty, Object::GetGUID(), GetSession(), WorldSession::SendPacket(), and SMSG_LOG_XPGAIN.
Referenced by GiveXP().
void Player::SendLoot | ( | ObjectGuid | guid, |
LootType | loot_type | ||
) |
References Loot::AddLooter(), ALL_PERMISSION, BATTLEGROUND_AV, BG_AV_OBJECTID_MINE_N, BG_AV_OBJECTID_MINE_S, Creature::CanGeneratePickPocketLoot(), GameObjectTemplate::chest, Loot::clear(), Loot::containerGUID, CORPSE_BONES, CORPSE_DYNFLAG_LOOTABLE, CORPSE_FIELD_DYNAMIC_FLAGS, ItemTemplate::DisenchantID, WorldSession::DoLootRelease(), Loot::empty(), Loot::FillLoot(), Object::ForceValuesUpdateAtIndex(), FREE_FOR_ALL, GAMEOBJECT_BYTES_1, GAMEOBJECT_TYPE_CHEST, Loot::generateMoneyLoot(), GetBattleground(), ObjectAccessor::GetCorpse(), Map::GetCreature(), Creature::GetCreatureTemplate(), Object::GetEntry(), GameObject::GetFishLoot(), Map::GetGameObject(), GameTime::GetGameTime(), GameObject::GetGOInfo(), GetGroup(), Object::GetGUID(), Object::GetGUID(), WorldObject::GetInstanceScript(), GetItemByGuid(), Unit::GetLevel(), GameObject::GetLootGenerationTime(), GetLootGUID(), GameObjectTemplate::GetLootId(), Group::GetLootMethod(), GameObject::GetLootMode(), Creature::GetLootRecipient(), Creature::GetLootRecipientGroup(), Creature::GetLootRecipientGUID(), GameObject::getLootState(), WorldObject::GetMap(), Group::GetMasterLooterGuid(), GameObject::GetOwnerGUID(), GameObject::GetRespawnDelay(), GameObject::GetRespawnTime(), GetTeamId(), Item::GetTemplate(), GameObject::GetTemplateAddon(), Corpse::GetType(), GO_ACTIVATED, GO_READY, Loot::gold, GROUP_LOOT, GROUP_PERMISSION, Group::GroupLoot(), GameObjectTemplate::groupLootRules, Object::HasDynamicFlag(), Object::HasFlag(), INTERACTION_DISTANCE, Unit::IsAlive(), ObjectGuid::IsCorpse(), Unit::IsFriendlyTo(), ObjectGuid::IsGameObject(), ObjectGuid::IsItem(), Loot::isLooted(), GameObject::isSpawnedByDefault(), GameObject::IsWithinDistInMap(), WorldObject::IsWithinDistInMap(), LOG_DEBUG, Corpse::loot, Creature::loot, GameObject::loot, Item::loot, LOOT_CORPSE, LOOT_DISENCHANTING, LOOT_ERROR_ALREADY_PICKPOCKETED, LOOT_ERROR_DIDNT_KILL, LOOT_FISHING, LOOT_FISHING_JUNK, LOOT_FISHINGHOLE, LOOT_INSIGNIA, LOOT_MILLING, LOOT_NONE, LOOT_PICKPOCKETING, LOOT_PROSPECTING, LOOT_SKINNING, Loot::loot_type, Corpse::lootRecipient, LootTemplates_Disenchant, LootTemplates_Gameobject, LootTemplates_Item, LootTemplates_Milling, LootTemplates_Pickpocketing, LootTemplates_Player, LootTemplates_Prospecting, LootTemplates_Skinning, Item::m_lootGenerated, m_session, MASTER_LOOT, MASTER_PERMISSION, Group::MasterLoot(), ItemTemplate::MaxMoneyLoot, ItemTemplate::MinMoneyLoot, NEED_BEFORE_GREED, Group::NeedBeforeGreed(), NONE_PERMISSION, OWNER_PERMISSION, CreatureTemplate::pickpocketLootId, RATE_DROP_MONEY, Unit::RemoveAurasByType(), RESTRICTED_PERMISSION, ROUND_ROBIN, ROUND_ROBIN_PERMISSION, SendDirectMessage(), SendLootError(), SendLootRelease(), GameObject::SetLootGenerationTime(), SetLootGUID(), Creature::SetLootRecipient(), GameObject::SetLootState(), Creature::SetPickPocketLootTime(), Unit::SetUnitFlag(), CreatureTemplate::SkinLootId, sLootItemStorage, SMSG_LOOT_RESPONSE, SPELL_AURA_FEIGN_DEATH, SPELL_AURA_MOD_INVISIBILITY, SPELL_AURA_MOD_STEALTH, sScriptMgr, sWorld, GameObjectTemplate::type, UNIT_DYNFLAG_LOOTABLE, UNIT_FLAG_LOOTING, Loot::unlootedCount, Group::UpdateLooterGuid(), and urand().
Referenced by Spell::EffectMilling(), Spell::EffectPickPocket(), Spell::EffectProspecting(), Spell::EffectSkinning(), WorldSession::HandleLootOpcode(), WorldSession::HandleOpenItemOpcode(), go_hive_pod::OnGossipHello(), RemovedInsignia(), Spell::SendLoot(), and GameObject::Use().
void Player::SendLootError | ( | ObjectGuid | guid, |
LootError | error | ||
) |
References LOOT_NONE, SendDirectMessage(), and SMSG_LOOT_RESPONSE.
Referenced by WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), and SendLoot().
void Player::SendLootRelease | ( | ObjectGuid | guid | ) |
References SendDirectMessage(), and SMSG_LOOT_RELEASE_RESPONSE.
Referenced by WorldSession::DoLootRelease(), WorldSession::HandleAutostoreLootItemOpcode(), SendLoot(), and StoreLootItem().
void Player::SendMailResult | ( | uint32 | mailId, |
MailResponseType | mailAction, | ||
MailResponseResult | mailError, | ||
uint32 | equipError = 0 , |
||
ObjectGuid::LowType | item_guid = 0 , |
||
uint32 | item_count = 0 |
||
) |
References GetSession(), MAIL_ERR_EQUIP_ERROR, MAIL_ITEM_TAKEN, WorldSession::SendPacket(), and SMSG_SEND_MAIL_RESULT.
Referenced by WorldSession::HandleMailCreateTextItem(), WorldSession::HandleMailDelete(), WorldSession::HandleMailReturnToSender(), WorldSession::HandleMailTakeItem(), WorldSession::HandleMailTakeMoney(), and WorldSession::HandleSendMail().
|
overridevirtual |
Reimplemented from WorldObject.
References WorldObject::GetVisibilityRange(), and SendMessageToSetInRange().
Referenced by Unit::Dismount(), DuelComplete(), EnvironmentalDamage(), gm_commandscript::HandleGMFlyCommand(), WorldSession::HandleMountSpecialAnimOpcode(), WorldSession::HandleMoveKnockBackAck(), WorldSession::HandleMoveTimeSkippedOpcode(), Unit::Kill(), Pet::LoadPetFromDB(), SendAutoRepeatCancel(), WorldSession::SendEnchantmentLog(), SendInitialPacketsAfterAddToMap(), SetCanFly(), Creature::SetCanFly(), Creature::SetDisableGravity(), SetDisableGravity(), SetDrunkValue(), SetFeatherFall(), Creature::SetFeatherFall(), SetHover(), SetWaterWalking(), and Creature::SetWaterWalking().
|
overridevirtual |
Reimplemented from WorldObject.
References WorldObject::GetVisibilityRange(), SendDirectMessage(), and Cell::VisitWorldObjects().
|
overridevirtual |
Reimplemented from WorldObject.
References SendDirectMessage(), and Cell::VisitWorldObjects().
Referenced by Say(), AchievementMgr::SendAchievementEarned(), SendMessageToSet(), TextEmote(), and Yell().
void Player::SendMessageToSetInRange | ( | WorldPacket const * | data, |
float | dist, | ||
bool | self, | ||
bool | includeMargin, | ||
bool | ownTeamOnly, | ||
bool | required3dDist = false |
||
) | const |
References WorldObject::GetObjectSize(), SendDirectMessage(), VISIBILITY_COMPENSATION, and Cell::VisitWorldObjects().
|
protected |
References DISABLED_MIRROR_TIMER, SendDirectMessage(), and StopMirrorTimer().
Referenced by HandleDrowning().
void Player::SendMovieStart | ( | uint32 | MovieId | ) |
References SendDirectMessage(), and SMSG_TRIGGER_MOVIE.
Referenced by debug_commandscript::HandleDebugPlayMovieCommand().
void Player::SendNewItem | ( | Item * | item, |
uint32 | count, | ||
bool | received, | ||
bool | created, | ||
bool | broadcast = false , |
||
bool | sendChatMessage = true |
||
) |
References Group::BroadcastPacket(), Item::GetBagSlot(), Item::GetCount(), Object::GetEntry(), GetGroup(), Object::GetGUID(), GetItemCount(), Item::GetItemRandomPropertyId(), Item::GetItemSuffixFactor(), GetSession(), Item::GetSlot(), WorldSession::SendPacket(), and SMSG_ITEM_PUSH_RESULT.
Referenced by _StoreOrEquipNewItem(), AddItem(), AutoStoreLoot(), Spell::DoCreateItem(), GiveQuestSourceItem(), misc_commandscript::HandleAddItemCommand(), misc_commandscript::HandleAddItemSetCommand(), AuraEffect::HandleChannelDeathItem(), OPvPCapturePointNA::HandleCustomSpell(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandlePetitionBuyOpcode(), RefundItem(), RemovePet(), RewardQuest(), npc_oculus_drakegiver::StoreEssence(), and StoreLootItem().
void Player::SendNewMail | ( | ) |
References GetSession(), WorldSession::SendPacket(), and SMSG_RECEIVED_MAIL.
Referenced by AddNewMailDeliverTime(), and Update().
void Player::SendNotifyLootItemRemoved | ( | uint8 | lootSlot | ) |
References GetSession(), WorldSession::SendPacket(), and SMSG_LOOT_REMOVED.
Referenced by Loot::NotifyItemRemoved(), Loot::NotifyQuestItemRemoved(), and StoreLootItem().
void Player::SendNotifyLootMoneyRemoved | ( | ) |
References GetSession(), WorldSession::SendPacket(), and SMSG_LOOT_CLEAR_MONEY.
Referenced by Loot::NotifyMoneyRemoved().
void Player::SendPreparedGossip | ( | WorldObject * | source | ) |
References QuestMenu::Empty(), PlayerMenu::GetGossipMenu(), GetGossipTextId(), Object::GetGUID(), GossipMenu::GetMenuId(), PlayerMenu::GetQuestMenu(), Unit::HasNpcFlag(), Object::IsCreature(), Object::IsGameObject(), PlayerTalkClass, PlayerMenu::SendGossipMenu(), SendPreparedQuest(), Object::ToCreature(), and UNIT_NPC_FLAG_GOSSIP.
Referenced by WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleQuestgiverHelloOpcode(), npc_thrall_old_hillsbrad::OnGossipHello(), go_apexis_relic::OnGossipHello(), OnGossipSelect(), Spell::SendLoot(), npc_maredis_firestar::npc_maredis_firestarAI::sGossipHello(), and GameObject::Use().
void Player::SendPreparedQuest | ( | ObjectGuid | guid | ) |
References QEmote::_Delay, QEmote::_Emote, AddQuestAndCheckCompletion(), CanAddQuest(), CanCompleteRepeatableQuest(), CanRewardQuest(), CanTakeQuest(), GossipTextOption::Emotes, QuestMenu::Empty(), ObjectAccessor::GetCreatureOrPetOrVehicle(), GetGossipTextId(), QuestMenu::GetItem(), ObjectMgr::GetLocaleString(), QuestMenu::GetMenuItemCount(), ObjectAccessor::GetObjectByTypeMask(), PlayerMenu::GetQuestMenu(), GetSession(), WorldSession::GetSessionDbLocaleIndex(), Object::hasInvolvedQuest(), Object::hasQuest(), GossipText::Options, PlayerTalkClass, QuestMenuItem::QuestIcon, QuestMenuItem::QuestId, PlayerMenu::SendCloseGossip(), PlayerMenu::SendQuestGiverQuestDetails(), PlayerMenu::SendQuestGiverQuestList(), PlayerMenu::SendQuestGiverRequestItems(), sObjectMgr, GossipTextOption::Text_0, GossipTextOption::Text_1, TYPEMASK_GAMEOBJECT, TYPEMASK_ITEM, and TYPEMASK_UNIT.
Referenced by npc_cos_chromie_middle::OnGossipHello(), OnGossipSelect(), SendPreparedGossip(), npc_costumed_orphan_matron::sGossipHello(), and npc_maredis_firestar::npc_maredis_firestarAI::sGossipSelect().
References GetSession(), WorldSession::SendPacket(), and SMSG_SET_PROFICIENCY.
Referenced by Spell::EffectProficiency().
References Object::GetGUID(), GetSession(), LOG_DEBUG, MSG_QUEST_PUSH_RESULT, and WorldSession::SendPacket().
Referenced by CanShareQuest(), debug_commandscript::HandleDebugSendQuestPartyMsgCommand(), WorldSession::HandlePushQuestToParty(), and WorldSession::HandleQuestgiverAcceptQuestOpcode().
void Player::SendQuestComplete | ( | uint32 | quest_id | ) |
References GetSession(), LOG_DEBUG, WorldSession::SendPacket(), and SMSG_QUESTUPDATE_COMPLETE.
Referenced by AreaExploredOrEventHappens().
References Object::GetGUID(), ObjectMgr::GetLocaleString(), Quest::GetQuestId(), GetSession(), WorldSession::GetSessionDbLocaleIndex(), Quest::GetTitle(), LOG_DEBUG, WorldSession::SendPacket(), SMSG_QUEST_CONFIRM_ACCEPT, and sObjectMgr.
Referenced by WorldSession::HandleQuestgiverAcceptQuestOpcode().
void Player::SendQuestFailed | ( | uint32 | questId, |
InventoryResult | reason = EQUIP_ERR_OK |
||
) |
References GetSession(), LOG_DEBUG, WorldSession::SendPacket(), and SMSG_QUESTGIVER_QUEST_FAILED.
Referenced by FailQuest().
|
protected |
References DIALOG_STATUS_NONE, GAMEOBJECT_TYPE_QUESTGIVER, ObjectAccessor::GetCreatureOrPetOrVehicle(), Map::GetGameObject(), GameObject::GetGoType(), Object::GetGUID(), WorldObject::GetMap(), GetQuestDialogStatus(), GetSession(), Unit::HasNpcFlag(), Unit::IsHostileTo(), m_clientGUIDs, ByteBuffer::put(), WorldSession::SendPacket(), SMSG_QUESTGIVER_STATUS_MULTIPLE, and UNIT_NPC_FLAG_QUESTGIVER.
Referenced by GiveLevel(), WorldSession::HandleDestroyItemOpcode(), WorldSession::HandleQuestgiverStatusMultipleQuery(), RewardQuest(), and SendInitialPacketsAfterAddToMap().
References Quest::CalculateHonorGain(), Quest::GetBonusTalents(), Unit::GetLevel(), Quest::GetQuestId(), GetQuestLevel(), Quest::GetRewArenaPoints(), Quest::GetRewMoneyMaxLevel(), Quest::GetRewOrReqMoney(), GetSession(), IsMaxLevel(), LOG_DEBUG, WorldSession::SendPacket(), sGameEventMgr, and SMSG_QUESTGIVER_QUEST_COMPLETE.
Referenced by RewardQuest().
void Player::SendQuestTimerFailed | ( | uint32 | quest_id | ) |
References GetSession(), LOG_DEBUG, WorldSession::SendPacket(), and SMSG_QUESTUPDATE_FAILEDTIMER.
Referenced by FailQuest().
void Player::SendQuestUpdate | ( | uint32 | questId | ) |
References Unit::CastSpell(), WorldObject::GetZoneAndAreaId(), Unit::HasAura(), Unit::RemoveAurasDueToSpell(), sSpellMgr, and UpdateForQuestWorldObjects().
Referenced by AddQuest(), RemoveActiveQuest(), RemoveRewardedQuest(), RewardQuest(), and SetQuestStatus().
void Player::SendQuestUpdateAddCreatureOrGo | ( | Quest const * | quest, |
ObjectGuid | guid, | ||
uint32 | creatureOrGO_idx, | ||
uint16 | old_count, | ||
uint16 | add_count | ||
) |
References ASSERT, FindQuestSlot(), Quest::GetQuestId(), GetQuestSlotCounter(), GetSession(), LOG_DEBUG, MAX_QUEST_LOG_SIZE, Quest::RequiredNpcOrGo, Quest::RequiredNpcOrGoCount, WorldSession::SendPacket(), SetQuestSlotCounter(), and SMSG_QUESTUPDATE_ADD_KILL.
Referenced by KillCreditGO(), KilledMonsterCredit(), and TalkedToCreature().
References GetSession(), LOG_DEBUG, WorldSession::SendPacket(), and SMSG_QUESTUPDATE_ADD_ITEM.
References ASSERT, FindQuestSlot(), Quest::GetPlayersSlain(), Quest::GetQuestId(), GetQuestSlotCounter(), GetSession(), LOG_DEBUG, MAX_QUEST_LOG_SIZE, QUEST_PVP_KILL_SLOT, WorldSession::SendPacket(), SetQuestSlotCounter(), and SMSG_QUESTUPDATE_ADD_PVP_KILL.
Referenced by KilledPlayerCreditForQuest().
void Player::SendRaidDifficulty | ( | bool | IsInGroup, |
int32 | forcedDifficulty = -1 |
||
) |
References GetRaidDifficulty(), GetSession(), MSG_SET_RAID_DIFFICULTY, and WorldSession::SendPacket().
Referenced by Group::AddMember(), WorldSession::HandleSetRaidDifficultyOpcode(), SendInitialPacketsAfterAddToMap(), and Group::SetRaidDifficulty().
void Player::SendRaidInfo | ( | ) |
References InstanceSave::GetDifficulty(), InstanceSave::GetExtendedResetTime(), GameTime::GetGameTime(), Object::GetGUID(), InstanceSave::GetInstanceId(), InstanceSave::GetMapId(), InstanceSave::GetResetTime(), GetSession(), MAX_DIFFICULTY, ByteBuffer::put(), WorldSession::SendPacket(), sInstanceSaveMgr, SMSG_RAID_INSTANCE_INFO, and ByteBuffer::wpos().
Referenced by WorldSession::HandleRequestRaidInfoOpcode().
|
private |
References Object::GetGUID(), Object::GetGUID(), Item::GetPaidExtendedCost(), Item::GetPaidMoney(), Item::GetPlayedTime(), Item::GetRefundRecipient(), GetSession(), GetTotalPlayedTime(), Item::IsRefundable(), LOG_DEBUG, MAX_ITEM_EXTENDED_COST_REQUIREMENTS, ItemExtendedCostEntry::reqarenapoints, ItemExtendedCostEntry::reqhonorpoints, ItemExtendedCostEntry::reqitem, ItemExtendedCostEntry::reqitemcount, WorldSession::SendPacket(), Item::SetNotRefundable(), sItemExtendedCostStore, SMSG_ITEM_REFUND_INFO_RESPONSE, and Item::UpdatePlayedTime().
Referenced by WorldSession::HandleItemRefundInfoRequest(), and SwapItem().
void Player::SendRemoveControlBar | ( | ) |
References GetSession(), WorldSession::SendPacket(), and SMSG_PET_SPELLS.
Referenced by Unit::RemoveCharmedBy(), and Unit::SetMinion().
void Player::SendResetFailedNotify | ( | uint32 | mapid | ) |
References GetSession(), WorldSession::SendPacket(), and SMSG_RESET_FAILED_NOTIFY.
References GetSession(), WorldSession::SendPacket(), and SMSG_INSTANCE_RESET_FAILED.
Referenced by ResetInstances(), and Group::ResetInstances().
void Player::SendResetInstanceSuccess | ( | uint32 | MapId | ) |
References GetSession(), WorldSession::SendPacket(), and SMSG_INSTANCE_RESET.
Referenced by ResetInstances(), and Group::ResetInstances().
void Player::SendRespondInspectAchievements | ( | Player * | player | ) | const |
References m_achievementMgr, and AchievementMgr::SendRespondInspectAchievements().
Referenced by WorldSession::HandleQueryInspectAchievements().
void Player::SendSavedInstances | ( | ) |
References Object::GetGUID(), GetSession(), WorldPacket::Initialize(), MAX_DIFFICULTY, WorldSession::SendPacket(), sInstanceSaveMgr, SMSG_UPDATE_INSTANCE_OWNERSHIP, and SMSG_UPDATE_LAST_INSTANCE.
Referenced by TeleportTo().
void Player::SendSellError | ( | SellResult | msg, |
Creature * | creature, | ||
ObjectGuid | guid, | ||
uint32 | param | ||
) |
References ObjectGuid::Empty, Object::GetGUID(), GetSession(), LOG_DEBUG, WorldSession::SendPacket(), and SMSG_SELL_ITEM.
Referenced by WorldSession::HandleBuybackItem(), debug_commandscript::HandleDebugSendSellErrorCommand(), WorldSession::HandleSellItemOpcode(), and WorldSession::SendListInventory().
void Player::SendSystemMessage | ( | std::string_view | msg, |
bool | escapeCharacters = false |
||
) |
References GetSession(), and ChatHandler::SendSysMessage().
void Player::SendTalentsInfoData | ( | bool | pet | ) |
References BuildPetTalentsInfoData(), BuildPlayerTalentsInfoData(), GetSession(), WorldSession::SendPacket(), and SMSG_TALENTS_INFO.
Referenced by Spell::EffectApplyGlyph(), learn_commandscript::HandleLearnAllMyTalentsCommand(), WorldSession::HandleLearnPreviewTalents(), WorldSession::HandleLearnPreviewTalentsPet(), Acore::PlayerCommand::HandleLearnSpellCommand(), WorldSession::HandleLearnTalentOpcode(), modify_commandscript::HandleModifyTalentCommand(), WorldSession::HandlePetLearnTalent(), WorldSession::HandlePlayerLoginFromDB(), WorldSession::HandlePlayerLoginToCharInWorld(), WorldSession::HandleRemoveGlyph(), reset_commandscript::HandleResetTalentsCommand(), WorldSession::HandleTalentWipeConfirmOpcode(), Acore::PlayerCommand::HandleUnlearnSpellCommand(), Pet::InitTalentForLevel(), InitTalentForLevel(), Pet::LoadPetFromDB(), ResetPetTalents(), SendInitialPacketsBeforeAddToMap(), and UpdateSpecCount().
void Player::SendTalentWipeConfirm | ( | ObjectGuid | guid | ) |
References CONFIG_NO_RESET_TALENT_COST, GetSession(), MSG_TALENT_WIPE_CONFIRM, resetTalentsCost(), WorldSession::SendPacket(), and sWorld.
Referenced by Spell::EffectUntrainTalents(), and OnGossipSelect().
void Player::SendTaxiNodeStatusMultiple | ( | ) |
References ObjectAccessor::GetCreature(), WorldLocation::GetMapId(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetTeamId(), Unit::HasNpcFlag(), Unit::IsHostileTo(), PlayerTaxi::IsTaximaskNodeKnown(), m_clientGUIDs, m_taxi, SendDirectMessage(), SMSG_TAXINODE_STATUS, sObjectMgr, and UNIT_NPC_FLAG_FLIGHTMASTER.
Referenced by SendInitialPacketsAfterAddToMap().
void Player::SendTeleportAckPacket | ( | ) |
References Unit::BuildMovementPacket(), Object::GetPackGUID(), GetSession(), MSG_MOVE_TELEPORT_ACK, and WorldSession::SendPacket().
Referenced by TeleportTo().
void Player::SendTransferAborted | ( | uint32 | mapid, |
TransferAbortReason | reason, | ||
uint8 | arg = 0 |
||
) |
References GetSession(), WorldSession::SendPacket(), SMSG_TRANSFER_ABORTED, TRANSFER_ABORT_DIFFICULTY, TRANSFER_ABORT_INSUF_EXPAN_LVL, and TRANSFER_ABORT_UNIQUE_MESSAGE.
Referenced by InstanceMap::CannotEnter(), MapMgr::PlayerCannotEnter(), Satisfy(), and TeleportTo().
void Player::SendUpdateToOutOfRangeGroupMembers | ( | ) |
References GetGroup(), GetPet(), GROUP_UPDATE_FLAG_NONE, m_auraRaidUpdateMask, and m_groupUpdateMask.
Referenced by Update().
References SendDirectMessage(), WorldPackets::WorldState::UpdateWorldState::Value, WorldPackets::WorldState::UpdateWorldState::VariableID, and WorldPackets::WorldState::UpdateWorldState::Write().
Referenced by debug_commandscript::HandleDebugUpdateWorldStateCommand(), BfCapturePoint::HandlePlayerEnter(), OPvPCapturePoint::HandlePlayerEnter(), OPvPCapturePointEP_EWT::HandlePlayerEnter(), OPvPCapturePointEP_NPT::HandlePlayerEnter(), OPvPCapturePointEP_CGT::HandlePlayerEnter(), OPvPCapturePointEP_PWT::HandlePlayerEnter(), OPvPCapturePointGH::HandlePlayerEnter(), OPvPCapturePointHP::HandlePlayerEnter(), OPvPCapturePointNA::HandlePlayerEnter(), OPvPCapturePointTF::HandlePlayerEnter(), OPvPCapturePointZM_Beacon::HandlePlayerEnter(), BfCapturePoint::HandlePlayerLeave(), OPvPCapturePoint::HandlePlayerLeave(), OPvPCapturePointEP_EWT::HandlePlayerLeave(), OPvPCapturePointEP_NPT::HandlePlayerLeave(), OPvPCapturePointEP_CGT::HandlePlayerLeave(), OPvPCapturePointEP_PWT::HandlePlayerLeave(), OPvPCapturePointGH::HandlePlayerLeave(), OPvPCapturePointHP::HandlePlayerLeave(), OPvPCapturePointNA::HandlePlayerLeave(), OPvPCapturePointTF::HandlePlayerLeave(), OPvPCapturePointZM_Beacon::HandlePlayerLeave(), npc_wg_queue::OnGossipHello(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnPlayerAreaUpdate(), instance_old_hillsbrad::instance_old_hillsbrad_InstanceMapScript::OnPlayerEnter(), instance_the_black_morass::instance_the_black_morass_InstanceMapScript::OnPlayerEnter(), instance_oculus::instance_oculus_InstanceMapScript::OnPlayerEnter(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::OnPlayerEnter(), instance_violet_hold::instance_violet_hold_InstanceMapScript::OnPlayerEnter(), SendBGWeekendWorldStates(), OutdoorPvPEP::SendRemoveWorldStates(), OutdoorPvPGH::SendRemoveWorldStates(), OutdoorPvPHP::SendRemoveWorldStates(), OutdoorPvPNA::SendRemoveWorldStates(), OutdoorPvPSI::SendRemoveWorldStates(), OutdoorPvPTF::SendRemoveWorldStates(), OutdoorPvPZM::SendRemoveWorldStates(), and GameEventMgr::SendWorldStateUpdate().
|
inline |
References m_ExtraFlags, and PLAYER_EXTRA_ACCEPT_WHISPERS.
Referenced by message_commandscript::HandleWhispersCommand(), LoadFromDB(), Player(), and Whisper().
|
inline |
void Player::SetAmmo | ( | uint32 | item | ) |
References _ApplyAmmoBonuses(), CanUseAmmo(), EQUIP_ERR_OK, Object::GetUInt32Value(), PLAYER_AMMO_ID, SendEquipError(), and Unit::SetUInt32Value().
Referenced by Create(), and WorldSession::HandleSetAmmoOpcode().
void Player::SetArenaPoints | ( | uint32 | value | ) |
References AddKnownCurrency(), CONFIG_MAX_ARENA_POINTS, ITEM_ARENA_POINTS_ID, PLAYER_FIELD_ARENA_CURRENCY, Unit::SetUInt32Value(), and sWorld.
Referenced by Create(), LoadFromDB(), and ModifyArenaPoints().
|
inline |
References m_ArenaTeamIdInvited.
Referenced by ArenaTeam::AddMember(), WorldSession::HandleArenaTeamDeclineOpcode(), and WorldSession::HandleArenaTeamInviteOpcode().
void Player::SetArenaTeamInfoField | ( | uint8 | slot, |
ArenaTeamInfoType | type, | ||
uint32 | value | ||
) |
References ARENA_TEAM_END, PLAYER_FIELD_ARENA_TEAM_INFO_1_1, Unit::SetUInt32Value(), and sScriptMgr.
Referenced by _LoadArenaTeamInfo(), ArenaTeam::AddMember(), ArenaTeam::DelMember(), ArenaTeam::MemberLost(), ArenaTeam::MemberWon(), ArenaTeamMember::ModifyPersonalRating(), ArenaTeam::SetCaptain(), and SetInArenaTeam().
|
inline |
References m_atLoginFlags.
Referenced by reset_commandscript::HandleResetAllCommand().
|
inline |
References m_auraRaidUpdateMask.
|
inline |
References PLAYER_BYTES_2, and Object::SetByteValue().
Referenced by WorldSession::HandleBuyBankSlotOpcode().
|
inline |
References m_auraBaseMod.
Referenced by UpdateAllCritPercentages().
References RuneInfo::BaseRune, m_runes, and Runes::runes.
Referenced by InitRunes().
void Player::SetBattlegroundId | ( | uint32 | id, |
BattlegroundTypeId | bgTypeId, | ||
uint32 | queueSlot, | ||
bool | invited, | ||
bool | isRandom, | ||
TeamId | teamId | ||
) |
References BGData::bgInstanceID, BGData::bgIsRandom, BGData::bgQueueSlot, BGData::bgTeamId, BGData::bgTypeID, BGData::isInvited, m_bgData, PLAYER_BYTES_3, Object::SetByteValue(), and TEAM_ALLIANCE.
Referenced by misc_commandscript::HandleAppearCommand(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleMoveWorldportAck(), misc_commandscript::HandleSkirmishCommand(), ArenaSpectator::HandleSpectatorSpectateCommand(), and Battleground::RemovePlayerAtLeave().
References GetGroup(), GetSubGroup(), Reference< TO, FROM >::link(), LOG_INFO, m_group, SetOriginalGroup(), GroupReference::setSubGroup(), and Reference< TO, FROM >::unlink().
Referenced by Group::AddMember(), Battlefield::AddOrSetPlayerToCorrectBfGroup(), and Battleground::AddOrSetPlayerToCorrectBgGroup().
void Player::SetBindPoint | ( | ObjectGuid | guid | ) |
References GetSession(), WorldSession::SendPacket(), and SMSG_BINDER_CONFIRM.
Referenced by npc_innkeeper::OnGossipSelect(), and OnGossipSelect().
|
inline |
References m_extraBonusTalentCount.
void Player::SetCanBlock | ( | bool | value | ) |
References m_canBlock, and UpdateBlockPercentage().
Referenced by Spell::EffectBlock().
|
overridevirtual |
Add the movement flag: MOVEMENTFLAGCAN_FLY. Generaly only use by players, allowing them to fly by pressing space for example. For creatures, please look for DisableGravity().
Doesn't inform the client.
movement counter
Reimplemented from Unit.
References Unit::BuildMovementPacket(), GameTime::GetGameTime(), Object::GetPackGUID(), Position::GetPositionZ(), WorldPacket::Initialize(), MSG_MOVE_UPDATE_CAN_FLY, SendDirectMessage(), SendMessageToSet(), Unit::SetCanFly(), SetFallInformation(), SMSG_MOVE_SET_CAN_FLY, SMSG_MOVE_UNSET_CAN_FLY, and sScriptMgr.
Referenced by Unit::KnockbackFrom().
|
inline |
void Player::SetCanParry | ( | bool | value | ) |
References m_canParry, and UpdateParryPercentage().
Referenced by Spell::EffectParry(), and AuraEffect::HandleAuraModParryPercent().
|
inline |
References m_canTeleport.
Referenced by Unit::_ExitVehicle(), ContinueTaxiFlight(), WorldSession::HandleActivateTaxiOpcode(), WorldSession::HandleMoveKnockBackAck(), WorldSession::SendActivateTaxiReply(), Unit::SendTeleportPacket(), Unit::SetSpeed(), and TeleportTo().
void Player::SetCanTitanGrip | ( | bool | value | ) |
References m_canTitanGrip.
Referenced by ActivateSpec(), Spell::EffectTitanGrip(), and resetTalents().
|
inline |
References m_ChampioningFaction.
Referenced by AuraEffect::HandleAuraDummy().
|
inline |
References m_cinematic.
Referenced by WorldSession::HandlePlayerLoginFromDB().
void Player::SetClientControl | ( | Unit * | target, |
bool | allowMove, | ||
bool | packetOnly = false |
||
) |
References Unit::ClearUnitState(), Unit::DisableSpline(), Creature::GetHomePosition(), Position::GetOrientation(), Object::GetPackGUID(), GetSession(), Unit::GetTransGUID(), Creature::GetTransportHomePosition(), Unit::HasUnitFlag(), Unit::HasUnitMovementFlag(), Unit::HasUnitState(), Unit::HasUnitTypeMask(), Object::IsCreature(), ObjectGuid::IsMOTransport(), MOVEMENTFLAG_ONTRANSPORT, WorldSession::SendPacket(), Unit::SetControlled(), Unit::SetFacingTo(), SetMover(), Position::SetOrientation(), SetViewpoint(), PackedGuid::size(), SMSG_CLIENT_CONTROL_UPDATE, Object::ToCreature(), UNIT_FLAG_DISABLE_MOVE, UNIT_MASK_ACCESSORY, UNIT_STATE_CONFUSED, UNIT_STATE_FLEEING, and UNIT_STATE_ROOT.
Referenced by Battleground::BlockMovement(), WorldSession::HandleMoveTeleportAck(), npc_pilgrims_bounty_chair::PassengerBoarded(), Unit::RemoveCharmedBy(), Unit::SetCharmedBy(), Unit::SetConfused(), and Unit::SetFeared().
|
inline |
References _activeCheats.
Referenced by cheat_commandscript::HandleCasttimeCheatCommand(), cheat_commandscript::HandleCoolDownCheatCommand(), cheat_commandscript::HandleGodModeCheatCommand(), cheat_commandscript::HandlePowerCheatCommand(), and cheat_commandscript::HandleWaterWalkCheatCommand().
|
inline |
References _activeCheats.
Referenced by cheat_commandscript::HandleCasttimeCheatCommand(), cheat_commandscript::HandleCoolDownCheatCommand(), cheat_commandscript::HandleGodModeCheatCommand(), cheat_commandscript::HandlePowerCheatCommand(), and cheat_commandscript::HandleWaterWalkCheatCommand().
|
inline |
References Object::ApplyModFlag(), PLAYER_FLAGS, and PLAYER_FLAGS_COMMENTATOR2.
Referenced by misc_commandscript::HandleCommentatorCommand().
|
inline |
References m_contestedPvPTimer.
Referenced by Unit::SetContestedPvP().
|
inline |
References RuneInfo::CurrentRune, m_runes, and Runes::runes.
Referenced by ConvertRune(), and InitRunes().
|
inline |
References CharTitlesEntry::bit_index, PLAYER_CHOSEN_TITLE, and Unit::SetUInt32Value().
Referenced by SetTitle().
void Player::SetDailyQuestStatus | ( | uint32 | quest_id | ) |
References GameTime::GetGameTime(), Object::GetUInt32Value(), m_DailyQuestChanged, m_DFQuests, m_lastDailyQuestTime, PLAYER_FIELD_DAILY_QUESTS_1, PLAYER_MAX_DAILY_QUESTS, Unit::SetUInt32Value(), and sObjectMgr.
Referenced by RewardQuest().
|
overridevirtual |
Reimplemented from Unit.
References ACHIEVEMENT_CRITERIA_CONDITION_NO_DEATH, ACHIEVEMENT_CRITERIA_TYPE_DEATH, ACHIEVEMENT_CRITERIA_TYPE_DEATH_AT_MAP, ACHIEVEMENT_CRITERIA_TYPE_DEATH_IN_DUNGEON, Unit::AddUnitState(), Alive, Unit::ClearComboPoints(), clearResurrectRequestData(), Unit::ClearUnitState(), WorldObject::FindMap(), Object::GetGUID(), WorldObject::GetName(), GetResurrectionSpellId(), Object::GetUInt32Value(), Unit::IsAlive(), JustDied, LOG_ERROR, NeedSendSpectatorData(), PET_SAVE_NOT_IN_SLOT, PLAYER_SELF_RES_SPELL, RemovePet(), ResetAchievementCriteria(), ArenaSpectator::SendCommand_UInt32Value(), Unit::setDeathState(), SetDrunkValue(), Unit::SetUInt32Value(), SpellQueue, Position::ToString(), UNIT_STATE_ISOLATED, and UpdateAchievementCriteria().
Referenced by KillPlayer(), and ResurrectPlayer().
|
inline |
References Object::ApplyModFlag(), PLAYER_FLAGS, and PLAYER_FLAGS_DEVELOPER.
Referenced by misc_commandscript::HandleDevCommand().
|
overridevirtual |
movement counter
Reimplemented from Unit.
References Unit::BuildMovementPacket(), Object::GetPackGUID(), WorldPacket::Initialize(), MSG_MOVE_GRAVITY_CHNG, SendDirectMessage(), SendMessageToSet(), Unit::SetDisableGravity(), SMSG_MOVE_GRAVITY_DISABLE, and SMSG_MOVE_GRAVITY_ENABLE.
Referenced by npc_vortex_ride::npc_vortex_rideAI::PassengerBoarded().
|
inline |
References m_divider.
Referenced by WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestConfirmAccept(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), and WorldSession::HandleQuestPushResult().
References GetDrunkenstateByValue(), GetDrunkValue(), Object::GetGUID(), WorldPackets::Misc::CrossedInebriationThreshold::Guid, WorldPackets::Misc::CrossedInebriationThreshold::ItemID, m_drunkTimer, PLAYER_BYTES_3, PLAYER_BYTES_3_OFFSET_INEBRIATION, SendMessageToSet(), Object::SetByteValue(), WorldPackets::Misc::CrossedInebriationThreshold::Threshold, UpdateInvisibilityDrunkDetect(), and WorldPackets::Misc::CrossedInebriationThreshold::Write().
Referenced by Spell::EffectInebriate(), HandleSobering(), LoadFromDB(), and setDeathState().
|
inline |
References m_dungeonDifficulty.
Referenced by _LoadGroup(), Group::AddMember(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleSetDungeonDifficultyOpcode(), LoadFromDB(), and Group::SetDungeonDifficulty().
void Player::SetEntryPoint | ( | ) |
References EntryPointData::ClearTaxiPath(), PlayerTaxi::empty(), Unit::GetAuraEffectsByType(), WorldObject::GetMap(), WorldLocation::GetMapId(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), PlayerTaxi::GetTaxiDestination(), PlayerTaxi::GetTaxiSource(), GetTeamId(), Map::IsBattlegroundOrArena(), Map::IsDungeon(), Unit::IsMounted(), EntryPointData::joinPos, m_entryPointData, m_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, WorldLocation::m_mapId, m_taxi, MAPID_INVALID, EntryPointData::mountSpell, sGraveyard, SPELL_AURA_MOUNTED, and EntryPointData::taxiPath.
Referenced by misc_commandscript::HandleAppearCommand(), WorldSession::HandleBattleFieldPortOpcode(), misc_commandscript::HandleSkirmishCommand(), ArenaSpectator::HandleSpectatorSpectateCommand(), and lfg::LFGMgr::TeleportPlayer().
void Player::SetEquipmentSet | ( | uint32 | index, |
EquipmentSet | eqset | ||
) |
References ByteBuffer::appendPackGUID(), EQUIPMENT_SET_CHANGED, EQUIPMENT_SET_NEW, WorldObject::GetName(), GetSession(), EquipmentSet::Guid, LOG_ERROR, m_EquipmentSets, WorldSession::SendPacket(), SMSG_EQUIPMENT_SET_SAVED, sObjectMgr, and EquipmentSet::state.
Referenced by WorldSession::HandleEquipmentSetSave().
void Player::SetFactionForRace | ( | uint8 | race | ) |
References ChrRacesEntry::FactionID, GetTeamId(), m_team, sChrRacesStore, Unit::SetFaction(), sScriptMgr, and TeamIdForRace().
Referenced by Create(), reset_commandscript::HandleResetStatsOrLevelHelper(), LoadFromDB(), InstanceScript::OnPlayerLeave(), Unit::RestoreFaction(), and SetGameMaster().
|
inline |
References m_lastFallTime, and m_lastFallZ.
Referenced by Unit::_ExitVehicle(), FlightPathMovementGenerator::DoFinalize(), Spell::EffectCharge(), Spell::EffectLeapBack(), AuraEffect::HandleAuraFeatherFall(), WorldSession::HandleMoveSplineDoneOpcode(), LoadFromDB(), MotionMaster::MoveFall(), SetCanFly(), Creature::SetCanFly(), TeleportTo(), UpdateFallInformationIfNeed(), and StaticTransport::UpdatePassengerPositions().
void Player::SetFarSightDistance | ( | float | radius | ) |
References _farSightDistance.
Referenced by AuraEffect::HandleFarSight().
|
overridevirtual |
movement counter
Reimplemented from Unit.
References Unit::BuildMovementPacket(), Object::GetPackGUID(), WorldPacket::Initialize(), MSG_MOVE_FEATHER_FALL, SendDirectMessage(), SendMessageToSet(), Unit::SetFeatherFall(), SMSG_MOVE_FEATHER_FALL, and SMSG_MOVE_NORMAL_FALL.
|
inline |
References PLAYER_CHARACTER_POINTS2, and Unit::SetUInt32Value().
Referenced by _addSpell(), InitPrimaryProfessions(), and removeSpell().
void Player::SetFreeTalentPoints | ( | uint32 | points | ) |
References PLAYER_CHARACTER_POINTS1, Unit::SetUInt32Value(), and sScriptMgr.
Referenced by learn_commandscript::HandleLearnAllMyTalentsCommand(), modify_commandscript::HandleModifyTalentCommand(), InitTalentForLevel(), LearnTalent(), and resetTalents().
void Player::SetGameMaster | ( | bool | on | ) |
References Unit::CombatStopWithPets(), FACTION_FRIENDLY, Unit::GetFaction(), Unit::getHostileRefMgr(), GetPet(), Unit::GetPhaseByAuras(), Unit::getRace(), GetSession(), Object::HasByteFlag(), m_areaUpdateId, m_ExtraFlags, WorldObject::m_serverSideVisibilityDetect, PHASEMASK_ANYWHERE, PHASEMASK_NORMAL, PLAYER_EXTRA_GM_ON, PLAYER_FLAGS_GM, Object::RemoveByteFlag(), RemovePlayerFlag(), Unit::RemoveUnitFlag2(), ResetContestedPvP(), SEC_PLAYER, SERVERSIDE_VISIBILITY_GM, Object::SetByteFlag(), Unit::SetFaction(), SetFactionForRace(), HostileRefMgr::setOnlineOfflineState(), Unit::SetPhaseMask(), SetPlayerFlag(), Unit::SetUnitFlag2(), FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::SetValue(), sScriptMgr, sWorld, UNIT_BYTE2_FLAG_FFA_PVP, UNIT_FIELD_BYTES_2, UNIT_FLAG2_ALLOW_CHEAT_SPELLS, UpdateArea(), and UpdateObjectVisibility().
Referenced by gm_commandscript::HandleGMOffCommand(), gm_commandscript::HandleGMOnCommand(), and LoadFromDB().
References m_activeSpec, m_Glyphs, PLAYER_FIELD_GLYPHS_1, SetNeedToSaveGlyphs(), and Unit::SetUInt32Value().
Referenced by _LoadGlyphAuras(), ActivateSpec(), Spell::EffectApplyGlyph(), and WorldSession::HandleRemoveGlyph().
References PLAYER_FIELD_GLYPH_SLOTS_1, and Unit::SetUInt32Value().
Referenced by InitGlyphsForLevel().
|
inline |
void Player::SetGMVisible | ( | bool | on | ) |
References Unit::AddAura(), Unit::CombatStopWithPets(), Unit::getHostileRefMgr(), GetSession(), m_ExtraFlags, WorldObject::m_serverSideVisibility, PLAYER_EXTRA_GM_INVISIBLE, Unit::RemoveAurasDueToSpell(), SEC_PLAYER, SERVERSIDE_VISIBILITY_GM, HostileRefMgr::setOnlineOfflineState(), and FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::SetValue().
Referenced by gm_commandscript::HandleGMVisibleCommand(), and LoadFromDB().
References RuneInfo::GracePeriod, m_runes, and Runes::runes.
Referenced by Spell::EffectActivateRune(), InitRunes(), and RegenerateAll().
|
inline |
References m_grantableLevels.
Referenced by WorldSession::HandleAcceptGrantLevel().
References ASSERT, Reference< TO, FROM >::link(), m_group, GroupReference::setSubGroup(), Reference< TO, FROM >::unlink(), and UpdateObjectVisibility().
Referenced by _LoadGroup(), Group::AddMember(), Group::Disband(), and Group::RemoveMember().
|
inline |
References m_groupInvite.
Referenced by Group::AddInvite(), Group::AddMember(), Player(), and Group::RemoveInvite().
|
inline |
References m_groupUpdateMask.
Referenced by Group::AddMember(), WorldSession::HandlePetRename(), Pet::LoadPetFromDB(), RemovePet(), Unit::SetHealth(), Unit::SetLevel(), Unit::SetMaxHealth(), Unit::SetMaxPower(), Unit::SetPower(), Unit::setPowerType(), Unit::UpdateAuraForGroup(), UpdatePosition(), and UpdateZone().
|
inline |
References m_GuildIdInvited.
Referenced by Guild::AddMember(), WorldSession::HandleGuildDeclineOpcode(), and Guild::HandleInviteMember().
|
inline |
References m_ExtraFlags, and PLAYER_EXTRA_HAS_310_FLYER.
Referenced by _addSpell(), and Has310Flyer().
|
inlineprivate |
References m_bHasDelayedTeleport.
Referenced by TeleportTo(), and Update().
void Player::SetHomebind | ( | WorldLocation const & | loc, |
uint32 | areaId | ||
) |
References CHAR_UPD_PLAYER_HOMEBIND, CharacterDatabase, Object::GetGUID(), WorldLocation::GetMapId(), Position::GetPosition(), m_homebindAreaId, m_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, and PreparedStatementBase::SetData().
Referenced by Spell::EffectBind().
void Player::SetHonorPoints | ( | uint32 | value | ) |
References AddKnownCurrency(), CONFIG_MAX_HONOR_POINTS, CONFIG_MAX_HONOR_POINTS_MONEY_PER_POINT, isBeingLoaded(), ITEM_HONOR_POINTS_ID, ModifyMoney(), PLAYER_FIELD_HONOR_CURRENCY, Unit::SetUInt32Value(), and sWorld.
Referenced by Create(), reset_commandscript::HandleResetHonorCommand(), LoadFromDB(), and ModifyHonorPoints().
|
overridevirtual |
movement counter
Reimplemented from Unit.
References Unit::BuildMovementPacket(), Object::GetPackGUID(), WorldPacket::Initialize(), MSG_MOVE_HOVER, SendDirectMessage(), SendMessageToSet(), Unit::SetHover(), SMSG_MOVE_SET_HOVER, and SMSG_MOVE_UNSET_HOVER.
References ARENA_TEAM_ID, ARENA_TEAM_TYPE, and SetArenaTeamInfoField().
Referenced by ArenaTeam::AddMember().
|
inline |
References m_ingametime.
Referenced by WorldSession::HandlePlayerLoginFromDB(), and WorldSession::HandlePlayerLoginToCharInWorld().
|
inline |
References Object::GetGUID(), GetGuildId(), PLAYER_GUILDID, sCharacterCache, and Unit::SetUInt32Value().
Referenced by Guild::AddMember(), Guild::DeleteMember(), WorldSession::HandleGuildDeclineOpcode(), and WorldSession::HandlePlayerLoginFromDB().
void Player::SetInviteForBattlegroundQueueType | ( | BattlegroundQueueTypeId | bgQueueTypeId, |
uint32 | instanceId | ||
) |
References _BgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by BattlegroundQueue::InviteGroupToBG().
void Player::SetInWater | ( | bool | apply | ) |
References AURA_INTERRUPT_FLAG_NOT_ABOVEWATER, AURA_INTERRUPT_FLAG_NOT_UNDERWATER, Unit::getHostileRefMgr(), WorldObject::GetInstanceScript(), m_isInWater, Unit::RemoveAurasWithInterruptFlags(), and HostileRefMgr::updateThreatTables().
Referenced by WorldSession::HandleMovementOpcodes().
void Player::SetIsSpectator | ( | bool | on | ) |
References Unit::AddAura(), Unit::AddUnitState(), Unit::ClearUnitState(), Object::HasByteFlag(), IsGameMaster(), IsSpectator(), m_ExtraFlags, PLAYER_EXTRA_SPECTATOR_ON, Unit::RemoveAurasDueToSpell(), Object::RemoveByteFlag(), Unit::RemoveUnitFlag(), ResetContestedPvP(), Unit::RestoreDisplayId(), Object::SetByteFlag(), Unit::SetDisplayId(), Unit::SetUnitFlag(), SPECTATOR_SPELL_SPEED, sScriptMgr, sWorld, UNIT_BYTE2_FLAG_FFA_PVP, UNIT_FIELD_BYTES_2, UNIT_FLAG_NON_ATTACKABLE, and UNIT_STATE_ISOLATED.
Referenced by WorldSession::HandleMoveWorldportAck(), and WorldSession::HandlePlayerLoginFromDB().
|
inline |
References m_lastpetnumber.
Referenced by Pet::LoadPetFromDB().
|
inline |
References m_oldpetspell.
Referenced by Pet::LoadPetFromDB(), and UnsummonPetTemporaryIfAny().
|
inline |
References m_lastPotionId.
Referenced by Spell::SendSpellCooldown(), and UpdatePotionCooldown().
|
inline |
|
inline |
References m_lootGuid.
Referenced by WorldSession::DoLootRelease(), and SendLoot().
|
overridevirtual |
Reimplemented from WorldObject.
References Reference< TO, FROM >::link(), m_mapRef, and WorldObject::SetMap().
Referenced by Map::AddPlayerToMap(), Create(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandleSetRaidDifficultyOpcode(), and LoadFromDB().
|
inline |
References ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_GOLD_VALUE_OWNED, MoneyChanged(), PLAYER_FIELD_COINAGE, Unit::SetUInt32Value(), and UpdateAchievementCriteria().
Referenced by modify_commandscript::HandleModifyMoneyCommand(), LoadFromDB(), and ModifyMoney().
void Player::SetMonthlyQuestStatus | ( | uint32 | quest_id | ) |
References m_MonthlyQuestChanged, and m_monthlyquests.
Referenced by RewardQuest().
|
inline |
References m_MountBlockId.
Referenced by _LoadAuras(), WorldSession::HandlePlayerLoginFromDB(), SendInitialPacketsAfterAddToMap(), and TeleportTo().
void Player::SetMovement | ( | PlayerMovementType | pType | ) |
References Object::GetPackGUID(), GetSession(), WorldPacket::Initialize(), LOG_ERROR, MOVE_LAND_WALK, MOVE_ROOT, MOVE_UNROOT, MOVE_WATER_WALK, WorldSession::SendPacket(), SMSG_FORCE_MOVE_ROOT, SMSG_FORCE_MOVE_UNROOT, SMSG_MOVE_LAND_WALK, and SMSG_MOVE_WATER_WALK.
Referenced by BuildPlayerRepop(), WorldSession::HandlePlayerLoginFromDB(), cheat_commandscript::HandleWaterWalkCheatCommand(), KillPlayer(), ResurrectPlayer(), and SendInitialPacketsAfterAddToMap().
void Player::SetMover | ( | Unit * | target | ) |
References WorldObject::FindMap(), Object::GetGUID(), Object::GetGUID(), Map::GetId(), WorldObject::GetInstanceId(), WorldLocation::GetMapId(), Unit::GetMotionMaster(), MotionMaster::Initialize(), Unit::isBeingLoaded(), isBeingLoaded(), IsBeingTeleported(), Object::IsCreature(), Unit::IsDuringRemoveFromWorld(), Object::IsInWorld(), LOG_INFO, Unit::m_movedByPlayer, m_mover, Object::ToPlayer(), ObjectGuid::ToString(), and Position::ToString().
Referenced by SendInitialPacketsBeforeAddToMap(), and SetClientControl().
|
inlineprivate |
References m_bMustDelayTeleport.
Referenced by RewardQuest(), and Update().
|
inline |
References m_NeedToSaveGlyphs.
Referenced by _SaveGlyphs(), and SetGlyph().
|
inline |
References m_needZoneUpdate.
Referenced by WorldSession::HandleZoneUpdateOpcode().
|
inlineoverridevirtual |
Reimplemented from Object.
References DEFAULT_COMBAT_REACH, DEFAULT_WORLD_OBJECT_SIZE, Object::SetFloatValue(), Object::SetObjectScale(), UNIT_FIELD_BOUNDINGRADIUS, and UNIT_FIELD_COMBATREACH.
Referenced by Create(), InitStatsForLevel(), and LoadFromDB().
References ASSERT, Reference< TO, FROM >::link(), m_originalGroup, GroupReference::setSubGroup(), and Reference< TO, FROM >::unlink().
Referenced by Group::AddMember(), Group::Disband(), RemoveFromBattlegroundOrBattlefieldRaid(), Group::RemoveMember(), and SetBattlegroundOrBattlefieldRaid().
|
inline |
References m_bPassOnGroupLoot.
Referenced by WorldSession::HandleOptOutOfLootOpcode().
References _pendingBindId, and _pendingBindTimer.
Referenced by InstanceMap::AddPlayerToMap(), WorldSession::HandleInstanceLockResponse(), WorldSession::LogoutPlayer(), Player(), InstanceMap::RemovePlayerFromMap(), and Update().
|
inline |
References m_pendingSpectatorForBG.
Referenced by WorldSession::HandleMoveWorldportAck(), and ArenaSpectator::HandleSpectatorSpectateCommand().
|
inline |
References m_pendingSpectatorInviteInstanceId.
Referenced by WorldSession::HandleMoveWorldportAck(), and ArenaSpectator::HandleSpectatorSpectateCommand().
|
inline |
References PLAYER_FLAGS, and Object::SetFlag().
Referenced by _LoadGroup(), Group::ChangeLeader(), Group::Create(), FlagPlayerPvP(), AuraEffect::HandleAuraAllowOnlyAbility(), AuraEffect::HandleAuraGhost(), WorldSession::HandleMovementOpcodes(), WorldSession::HandleSetTaxiBenchmarkOpcode(), WorldSession::HandleShowingCloakOpcode(), WorldSession::HandleShowingHelmOpcode(), npc_experience::OnGossipSelect(), Unit::SetContestedPvP(), SetGameMaster(), SetRestFlag(), SetRestState(), and UpdatePvPFlag().
|
inline |
References Unit::m_Controlled, and Unit::SetPvP().
Referenced by UpdatePvP().
|
inline |
References m_ExtraFlags, and PLAYER_EXTRA_PVP_DEATH.
Referenced by CreateCorpse().
References MAX_QUEST_OFFSET, PLAYER_QUEST_LOG_1_1, QUEST_COUNTS_OFFSET, QUEST_ID_OFFSET, QUEST_STATE_OFFSET, QUEST_TIME_OFFSET, and Unit::SetUInt32Value().
Referenced by _LoadQuestStatus(), AddQuest(), Spell::EffectQuestClear(), WorldSession::HandleQuestLogRemoveQuest(), and RewardQuest().
References Object::GetUInt64Value(), MAX_QUEST_OFFSET, PLAYER_QUEST_LOG_1_1, QUEST_COUNTS_OFFSET, and Object::SetUInt64Value().
Referenced by _LoadQuestStatus(), SendQuestUpdateAddCreatureOrGo(), and SendQuestUpdateAddPlayer().
References MAX_QUEST_OFFSET, PLAYER_QUEST_LOG_1_1, QUEST_STATE_OFFSET, and Object::SetFlag().
Referenced by _LoadQuestStatus(), CompleteQuest(), and FailQuest().
References MAX_QUEST_OFFSET, PLAYER_QUEST_LOG_1_1, QUEST_TIME_OFFSET, and Unit::SetUInt32Value().
Referenced by FailQuest().
void Player::SetQuestStatus | ( | uint32 | questId, |
QuestStatus | status, | ||
bool | update = true |
||
) |
References m_QuestStatus, m_QuestStatusSave, SendQuestUpdate(), and sObjectMgr.
Referenced by CompleteQuest(), FailQuest(), IncompleteQuest(), and npc_finklestein::npc_finklesteinAI::RightClickCauldron().
|
inline |
References m_raidDifficulty.
Referenced by _LoadGroup(), Group::AddMember(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleSetRaidDifficultyOpcode(), LoadFromDB(), and Group::SetRaidDifficulty().
void Player::SetRandomWinner | ( | bool | isWinner | ) |
References CHAR_INS_BATTLEGROUND_RANDOM, CharacterDatabase, Object::GetGUID(), m_IsBGRandomWinner, and PreparedStatementBase::SetData().
|
inline |
References PLAYER_GUILDRANK, and Unit::SetUInt32Value().
Referenced by Guild::AddMember(), Guild::DeleteMember(), and WorldSession::HandlePlayerLoginFromDB().
|
inline |
References m_regenTimerCount.
Referenced by AuraEffect::HandleAuraTransform().
void Player::SetRegularAttackTime | ( | ) |
References BASE_ATTACK_TIME, ItemTemplate::Delay, Item::GetTemplate(), GetWeaponForAttack(), Item::IsBroken(), MAX_ATTACK, and Unit::SetAttackTime().
Referenced by InitDataForForm().
void Player::SetReputation | ( | uint32 | factionentry, |
float | value | ||
) |
References GetReputationMgr(), ReputationMgr::SetReputation(), and sFactionStore.
void Player::SetRestBonus | ( | float | restBonusNew | ) |
References _restBonus, CONFIG_MAX_PLAYER_LEVEL, Unit::GetLevel(), GetSession(), GetsRecruitAFriendBonus(), Object::GetUInt32Value(), PLAYER_BYTES_2, PLAYER_NEXT_LEVEL_XP, PLAYER_REST_STATE_EXPERIENCE, RATE_REST_MAX_BONUS, REST_STATE_NOT_RAF_LINKED, REST_STATE_RAF_LINKED, REST_STATE_RESTED, Object::SetByteValue(), Unit::SetUInt32Value(), and sWorld.
Referenced by GetXPRestBonus(), LoadFromDB(), and Update().
References _innTriggerId, _restFlagMask, _restTime, GameTime::GetGameTime(), PLAYER_FLAGS_RESTING, and SetPlayerFlag().
Referenced by WorldSession::HandleAreaTriggerOpcode(), LoadFromDB(), UpdateArea(), and UpdateZone().
void Player::SetRestState | ( | uint32 | triggerId | ) |
References _innTriggerId, _restTime, GameTime::GetGameTime(), PLAYER_FLAGS_RESTING, and SetPlayerFlag().
|
inline |
References m_resurrectGUID, m_resurrectHealth, m_resurrectMana, m_resurrectMap, m_resurrectX, m_resurrectY, and m_resurrectZ.
Referenced by clearResurrectRequestData(), Spell::EffectResurrect(), and Spell::EffectResurrectNew().
void Player::SetRewardedQuest | ( | uint32 | quest_id | ) |
References m_RewardedQuests, and m_RewardedQuestsSave.
Referenced by Spell::EffectQuestComplete(), and RewardQuest().
|
inline |
References RuneInfo::ConvertAura, m_runes, and Runes::runes.
Referenced by AddRuneByAuraEffect(), InitRunes(), RemoveRunesByAuraEffect(), and RestoreBaseRune().
References RuneInfo::Cooldown, m_runes, Runes::runes, and Runes::SetRuneState().
Referenced by Spell::EffectActivateRune(), InitRunes(), RegenerateAll(), and Spell::TakeRunePower().
|
inline |
|
inline |
References m_nextSave.
void Player::SetSeasonalQuestStatus | ( | uint32 | quest_id | ) |
References Quest::GetEventIdForQuest(), m_SeasonalQuestChanged, m_seasonalquests, and sObjectMgr.
Referenced by RewardQuest().
|
inline |
References m_seer.
Referenced by WorldSession::HandleFarSightOpcode(), and SetViewpoint().
void Player::SetSelection | ( | ObjectGuid | guid | ) |
Used for serverside target changes, does not apply to players.
References WorldObject::FindMap(), Object::GetGUID(), NeedSendSpectatorData(), ArenaSpectator::SendCommand_GUID(), Object::SetGuidValue(), and UNIT_FIELD_TARGET.
Referenced by WorldSession::HandleSetSelectionOpcode(), and TeleportTo().
|
inline |
References mSemaphoreTeleport_Far.
Referenced by WorldSession::HandleMoveWorldportAck(), and TeleportTo().
|
inline |
References mSemaphoreTeleport_Near.
Referenced by WorldSession::HandleMoveTeleportAck(), and TeleportTo().
void Player::SetServerSideVisibility | ( | ServerSideVisibilityType | type, |
AccountTypes | sec | ||
) |
References WorldObject::m_serverSideVisibility, FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::SetValue(), and sScriptMgr.
void Player::SetServerSideVisibilityDetect | ( | ServerSideVisibilityType | type, |
AccountTypes | sec | ||
) |
References WorldObject::m_serverSideVisibilityDetect, FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::SetValue(), and sScriptMgr.
|
inline |
References m_session.
Referenced by WorldSession::HandlePlayerLoginOpcode().
|
overridevirtual |
Reimplemented from Unit.
References BASE_ATTACK, GetWeaponForAttack(), OFF_ATTACK, RANGED_ATTACK, Unit::SetSheath(), SetVirtualItemSlot(), SHEATH_STATE_MELEE, SHEATH_STATE_RANGED, and SHEATH_STATE_UNARMED.
Referenced by WorldSession::HandleSetSheathedOpcode().
|
inline |
References m_ExtraFlags, and PLAYER_EXTRA_SHOW_DK_PET.
Referenced by spell_dk_master_of_ghouls::HandleEffectApply(), and spell_dk_master_of_ghouls::HandleEffectRemove().
References ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILL_LEVEL, ACHIEVEMENT_CRITERIA_TYPE_REACH_SKILL_LEVEL, AURA_EFFECT_HANDLE_SKILL, Unit::GetAuraEffectsByType(), GetSkillLineAbilitiesBySkillLine(), Object::GetUInt32Value(), learnSkillRewardedSpells(), LOG_ERROR, MAKE_PAIR32(), MAKE_SKILL_VALUE, mSkillStatus, PLAYER_MAX_SKILLS, PLAYER_SKILL_BONUS_INDEX, PLAYER_SKILL_INDEX, PLAYER_SKILL_VALUE_INDEX, removeSpell(), Unit::SetUInt32Value(), SKILL_CHANGED, SKILL_DELETED, SKILL_NEW, SKILL_VALUE, SPEC_MASK_ALL, SPELL_AURA_MOD_SKILL, SPELL_AURA_MOD_SKILL_TALENT, sSkillLineStore, sSpellMgr, UpdateAchievementCriteria(), and UpdateSkillEnchantments().
Referenced by _addSpell(), Spell::EffectLearnSkill(), learn_commandscript::HandleLearnAllLangCommand(), learn_commandscript::HandleLearnAllRecipesCommand(), misc_commandscript::HandleSetSkillCommand(), WorldSession::HandleUnlearnSkillOpcode(), LearnDefaultSkill(), and removeSpell().
|
inline |
void Player::SetSpellModTakingSpell | ( | Spell * | spell, |
bool | apply | ||
) |
References SpellInfo::Id, LOG_INFO, Spell::m_spellInfo, and m_spellModTakingSpell.
Referenced by Spell::_cast(), Spell::cast(), Spell::handle_delayed(), Unit::HandleDummyAuraProc(), and Aura::UpdateOwner().
|
inline |
References m_summon_asSpectator.
Referenced by WorldSession::HandleSummonResponseOpcode().
void Player::SetSummonPoint | ( | uint32 | mapid, |
float | x, | ||
float | y, | ||
float | z, | ||
uint32 | delay = 0 , |
||
bool | asSpectator = false |
||
) |
References GameTime::GetGameTime(), m_summon_asSpectator, m_summon_expire, m_summon_mapid, m_summon_x, m_summon_y, m_summon_z, and MAX_PLAYER_SUMMON_DELAY.
Referenced by Spell::EffectSummonPlayer(), and Spell::EffectSummonRaFFriend().
|
inlineoverridevirtual |
Implements Unit.
|
inline |
References m_ExtraFlags, and PLAYER_EXTRA_TAXICHEAT.
Referenced by WorldSession::HandlePlayerLoginFromDB(), cheat_commandscript::HandleTaxiCheatCommand(), and WorldSession::SendTaxiMenu().
|
inline |
References m_temporaryUnsummonedPetNumber.
Referenced by Pet::LoadPetFromDB().
void Player::SetTitle | ( | CharTitlesEntry const * | title, |
bool | lost = false |
||
) |
References ACHIEVEMENT_CRITERIA_TYPE_OWN_RANK, CharTitlesEntry::bit_index, GetSession(), Object::GetUInt32Value(), Object::HasFlag(), PLAYER__FIELD_KNOWN_TITLES, PLAYER_CHOSEN_TITLE, Object::RemoveFlag(), WorldSession::SendPacket(), SetCurrentTitle(), Object::SetFlag(), SMSG_TITLE_EARNED, and UpdateAchievementCriteria().
Referenced by _LoadQuestStatusRewarded(), AchievementMgr::CompletedAchievement(), titles_commandscript::HandleTitlesAddCommand(), titles_commandscript::HandleTitlesCurrentCommand(), titles_commandscript::HandleTitlesRemoveCommand(), AchievementMgr::LoadFromDB(), and RewardQuest().
void Player::SetViewpoint | ( | WorldObject * | target, |
bool | apply | ||
) |
References Object::AddGuidValue(), Object::GetEntry(), Object::GetGUID(), WorldObject::GetName(), Object::GetTypeId(), Unit::GetVehicle(), Object::IsUnit(), LOG_DEBUG, m_seer, PLAYER_FARSIGHT, Object::RemoveGuidValue(), Unit::RemovePlayerFromVision(), SetSeer(), and UpdateVisibilityOf().
Referenced by CinematicMgr::BeginCinematic(), CinematicMgr::EndCinematic(), AuraEffect::HandleBindSight(), WorldSession::HandleFarSightOpcode(), RemoveFromWorld(), and SetClientControl().
References ApplyEnchantment(), ASSERT, Item::ClearEnchantment(), Item::GetEnchantmentCharges(), Item::GetEnchantmentId(), Item::SetEnchantmentCharges(), and TEMP_ENCHANTMENT_SLOT.
Referenced by SetSheath().
References Item::GetEnchantmentId(), Object::GetEntry(), PERM_ENCHANTMENT_SLOT, PLAYER_VISIBLE_ITEM_1_ENCHANTMENT, PLAYER_VISIBLE_ITEM_1_ENTRYID, Object::SetUInt16Value(), Unit::SetUInt32Value(), sScriptMgr, and TEMP_ENCHANTMENT_SLOT.
Referenced by DestroyItem(), LoadFromDB(), RemoveItem(), and VisualizeItem().
|
overridevirtual |
Allow to walk on water. Doesn't inform the client. Need to use SendMovementWaterWalking() if it's for players.
movement counter
Reimplemented from Unit.
References Unit::BuildMovementPacket(), Object::GetPackGUID(), WorldPacket::Initialize(), MSG_MOVE_WATER_WALK, SendDirectMessage(), SendMessageToSet(), Unit::SetWaterWalking(), SMSG_MOVE_LAND_WALK, and SMSG_MOVE_WATER_WALK.
Referenced by BuildPlayerRepop(), and ResurrectPlayer().
|
inline |
References m_weaponChangeTimer.
void Player::SetWeeklyQuestStatus | ( | uint32 | quest_id | ) |
References m_WeeklyQuestChanged, and m_weeklyquests.
Referenced by RewardQuest().
void Player::SpawnCorpseBones | ( | bool | triggerSave = true | ) |
References _corpseLocation, _SaveAuras(), CHAR_UPD_CHAR_REMOVE_GHOST, CharacterDatabase, Object::GetGUID(), WorldObject::GetMap(), GetSession(), PreparedStatementBase::SetData(), and WorldLocation::WorldRelocate().
Referenced by Battleground::_ProcessResurrect(), CreateCorpse(), Spell::EffectSelfResurrect(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandleReclaimCorpseOpcode(), LoadCorpse(), ProcessDelayedOperations(), Battleground::RemovePlayerAtLeave(), RepopAtGraveyard(), ResurectUsingRequestData(), BfGraveyard::Resurrect(), and WorldSession::SendSpiritResurrect().
If trading
If current item is in trade window (only possible with packet spoofing - silent return)
References AutoUnequipOffhandIfNeed(), BankItem(), CanBankItem(), CanEquipItem(), CanStoreItem(), Item::CloneItem(), EQUIP_ERR_COULDNT_SPLIT_ITEMS, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_OK, EQUIP_ERR_TRIED_TO_SPLIT_MORE_THAN_COUNT, EquipItem(), Item::GetCount(), Object::GetEntry(), Object::GetGUID(), GetItemByPos(), GetTradeData(), IsBankPos(), IsEquipmentPos(), IsInventoryPos(), Object::IsInWorld(), ITEM_CHANGED, LOG_DEBUG, Item::m_lootGenerated, SendEquipError(), Object::SendUpdateToPlayer(), Item::SetCount(), Item::SetState(), StoreItem(), and TRADE_SLOT_INVALID.
Referenced by WorldSession::HandleSplitItemOpcode().
void Player::StartTimedAchievement | ( | AchievementCriteriaTimedTypes | type, |
uint32 | entry, | ||
uint32 | timeLost = 0 |
||
) |
References m_achievementMgr, and AchievementMgr::StartTimedAchievement().
Referenced by Spell::_cast(), AddQuest(), Spell::DoSpellHitOnUnit(), InstanceScript::DoStartTimedAchievement(), BattlegroundWS::EventPlayerClickedOnFlag(), and KilledMonsterCredit().
void Player::StopCastingBindSight | ( | Aura * | except = nullptr | ) |
References Object::GetGUID(), GetViewpoint(), SPELL_AURA_BIND_SIGHT, SPELL_AURA_MOD_POSSESS, and SPELL_AURA_MOD_POSSESS_PET.
Referenced by ActivateTaxiPathTo(), misc_commandscript::HandleUnbindSightCommand(), RemoveFromWorld(), and Unit::SetCharmedBy().
void Player::StopCastingCharm | ( | Aura * | except = nullptr | ) |
References ABORT, ObjectGuid::Empty, Unit::ExitVehicle(), Unit::GetCharm(), Unit::GetCharmerGUID(), Unit::GetCharmGUID(), Object::GetGUID(), WorldObject::GetName(), Unit::HasUnitTypeMask(), Object::IsCreature(), Unit::IsVehicle(), LOG_FATAL, Unit::RemoveAurasByType(), Unit::SetCharm(), SPELL_AURA_AOE_CHARM, SPELL_AURA_MOD_CHARM, SPELL_AURA_MOD_POSSESS, SPELL_AURA_MOD_POSSESS_PET, Object::ToCreature(), ObjectGuid::ToString(), Position::ToString(), and UNIT_MASK_PUPPET.
Referenced by ActivateTaxiPathTo(), WorldSession::HandlePetAbandon(), WorldSession::HandlePetActionHelper(), Unit::RemoveAllControlled(), RemoveFromWorld(), Unit::SetCharmedBy(), and npc_chesspiece::sGossipSelect().
|
protected |
References DISABLED_MIRROR_TIMER, m_MirrorTimer, and SendDirectMessage().
Referenced by HandleDrowning(), SendMirrorTimer(), and StopMirrorTimers().
|
inline |
References BREATH_TIMER, FATIGUE_TIMER, FIRE_TIMER, and StopMirrorTimer().
Referenced by BuildPlayerRepop(), AuraEffect::HandleSpiritOfRedemption(), and KillPlayer().
Item * Player::StoreItem | ( | ItemPosCountVec const & | pos, |
Item * | pItem, | ||
bool | update | ||
) |
References _StoreItem(), Unit::CastSpell(), Item::GetTemplate(), Unit::HasAura(), ITEM_SPELLTRIGGER_ON_NO_DELAY_USE, MAX_ITEM_PROTO_SPELLS, _Spell::SpellId, ItemTemplate::Spells, and _Spell::SpellTrigger.
Referenced by _LoadInventory(), AutoUnequipOffhandIfNeed(), BankItem(), Create(), Spell::EffectSummonChangeItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleBuybackItem(), WorldSession::HandleEquipmentSetUse(), WorldSession::HandleMailCreateTextItem(), MoveItemToInventory(), SplitItem(), StoreNewItem(), and SwapItem().
LootItem * Player::StoreLootItem | ( | uint8 | lootSlot, |
Loot * | loot, | ||
InventoryResult & | msg | ||
) |
References LootItem::AllowedForPlayer(), CanStoreNewItem(), Loot::containerGUID, LootItem::count, EQUIP_ERR_ALREADY_LOOTED, EQUIP_ERR_OK, LootItem::freeforall, LootItem::GetAllowedLooters(), GetGroup(), Object::GetGUID(), GetLootGUID(), Loot::GetPlayerQuestItems(), QuestItem::index, LootItem::is_blocked, LootItem::is_looted, QuestItem::is_looted, LootItem::is_underthreshold, Object::IsItem(), LootItem::itemid, LootItem::itemIndex, Loot::LootItemInSlot(), MASTER_LOOT, Loot::NotifyItemRemoved(), Loot::NotifyQuestItemRemoved(), NULL_BAG, NULL_SLOT, LootItem::randomPropertyId, LootItem::rollWinnerGUID, Loot::roundRobinPlayer, SendEquipError(), SendLootRelease(), SendNewItem(), SendNotifyLootItemRemoved(), sLootItemStorage, Loot::sourceWorldObjectGUID, sScriptMgr, StoreNewItem(), Loot::unlootedCount, and UpdateLootAchievements().
Referenced by Loot::FillNotNormalLootFor(), and WorldSession::HandleAutostoreLootItemOpcode().
Item * Player::StoreNewItem | ( | ItemPosCountVec const & | pos, |
uint32 | item, | ||
bool | update, | ||
int32 | randomPropertyId, | ||
AllowedLooterSet & | allowedLooters | ||
) |
References ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM, ACHIEVEMENT_CRITERIA_TYPE_RECEIVE_EPIC_ITEM, ADDITIONAL_SAVING_INVENTORY_AND_GOLD, AdditionalSavingAddMask(), AddTradeableItem(), CHAR_INS_ITEM_BOP_TRADE, CharacterDatabase, CONFIG_SET_BOP_ITEM_TRADEABLE, Item::CreateItem(), ObjectGuid::GetCounter(), Object::GetGUID(), ItemTemplate::GetMaxStackSize(), Item::GetTemplate(), GetTotalPlayedTime(), Item::IsSoulBound(), ITEM_FIELD_CREATE_PLAYED_TIME, ITEM_QUALITY_RARE, ItemAddedQuestCheck(), PreparedStatementBase::SetData(), Item::SetSoulboundTradeable(), Object::SetUInt32Value(), sObjectMgr, sScriptMgr, StoreItem(), sWorld, and UpdateAchievementCriteria().
Item * Player::StoreNewItem | ( | ItemPosCountVec const & | pos, |
uint32 | item, | ||
bool | update, | ||
int32 | randomPropertyId = 0 |
||
) |
References StoreNewItem().
Referenced by _StoreOrEquipNewItem(), AddItem(), AutoStoreLoot(), Group::CountTheRoll(), Spell::DoCreateItem(), GiveQuestSourceItem(), misc_commandscript::HandleAddItemCommand(), misc_commandscript::HandleAddItemSetCommand(), AuraEffect::HandleChannelDeathItem(), OPvPCapturePointNA::HandleCustomSpell(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandlePetitionBuyOpcode(), item_mysterious_egg::OnExpire(), item_disgusting_jar::OnExpire(), npcs_flanis_swiftwing_and_kagrosh::OnGossipSelect(), RefundItem(), RemovePet(), RewardQuest(), npc_aquementas::npc_aquementasAI::SendItem(), npc_oculus_drakegiver::StoreEssence(), StoreLootItem(), StoreNewItem(), and StoreNewItemInBestSlots().
References AutoUnequipOffhandIfNeed(), CanEquipNewItem(), CanStoreNewItem(), EQUIP_ERR_OK, EquipNewItem(), Unit::getClass(), Unit::getRace(), INVENTORY_SLOT_BAG_0, LOG_DEBUG, LOG_ERROR, NULL_SLOT, and StoreNewItem().
Referenced by Create().
|
inline |
References Map::GetDifficulty(), WorldObject::GetMap(), and m_raidMapDifficulty.
Referenced by LoadFromDB(), and SendInitialPacketsAfterAddToMap().
void Player::SummonIfPossible | ( | bool | agree, |
ObjectGuid | summoner_guid | ||
) |
References ACHIEVEMENT_CRITERIA_TYPE_ACCEPTED_SUMMONINGS, ObjectAccessor::FindPlayer(), GetBattleground(), GameTime::GetGameTime(), Position::GetOrientation(), m_summon_expire, m_summon_mapid, m_summon_x, m_summon_y, m_summon_z, TeleportTo(), and UpdateAchievementCriteria().
Referenced by WorldSession::HandleSummonResponseOpcode().
Pet * Player::SummonPet | ( | uint32 | entry, |
float | x, | ||
float | y, | ||
float | z, | ||
float | ang, | ||
PetType | petType, | ||
Milliseconds | duration = 0s , |
||
uint32 | healthPct = 0 |
||
) |
References Map::AddToMap(), ASSERT, Pet::Create(), CREATURE_TYPE_DEMON, CREATURE_TYPE_UNDEAD, PetStable::CurrentPet, CreatureTemplate::family, Pet::FillPetInfo(), WorldObject::FindMap(), Map::GenerateLowGuid(), Unit::GetAuraEffectsByType(), Unit::GetCharmInfo(), Creature::GetCreatureTemplate(), Object::GetEntry(), Unit::GetFaction(), GameTime::GetGameTime(), Object::GetGUID(), Object::GetGUID(), Unit::GetHealthPct(), Unit::GetLevel(), WorldObject::GetMap(), Unit::GetMaxPower(), GetOrInitPetStable(), WorldObject::GetPhaseMask(), Position::GetPositionX(), Position::GetPositionY(), GetSession(), PetStable::GetUnslottedHunterPet(), HUNTER_PET, Pet::InitPetCreateSpells(), Guardian::InitStatsForLevel(), Pet::InitTalentForLevel(), Minion::IsPetGhoul(), Position::IsPositionValid(), Pet::LoadPetFromDB(), LOG_ERROR, NeedSendSpectatorData(), Pet, PET_SAVE_AS_CURRENT, PET_SAVE_NOT_IN_SLOT, PetSpellInitialize(), POWER_MANA, Position::Relocate(), Unit::RemoveAurasDueToSpell(), RemovePet(), Unit::ReplaceAllNpcFlags(), Pet::SavePetToDB(), ArenaSpectator::SendCommand_UInt32Value(), Unit::SetCreatorGUID(), Pet::SetDuration(), Unit::SetFaction(), Unit::SetFullHealth(), Unit::SetMinion(), WorldObject::SetName(), CharmInfo::SetPetNumber(), Unit::SetPower(), Unit::setPowerType(), Unit::SetUInt32Value(), sObjectMgr, SPELL_AURA_OVERRIDE_CLASS_SCRIPTS, SUMMON_PET, Object::ToCreature(), ObjectGuid::ToString(), CreatureTemplate::type, UNIT_FIELD_BYTES_1, UNIT_FIELD_PET_NAME_TIMESTAMP, UNIT_FIELD_PETEXPERIENCE, UNIT_FIELD_PETNEXTLEVELEXP, and UNIT_NPC_FLAG_NONE.
Referenced by Spell::EffectResurrectPet(), and Spell::EffectSummonPet().
References ApplyEnchantment(), AutoUnequipOffhandIfNeed(), BankItem(), CanBankItem(), CanEquipItem(), CanStoreItem(), CanUnequipItem(), WorldSession::DoLootRelease(), EQUIP_ERR_CAN_ONLY_DO_WITH_EMPTY_BAGS, EQUIP_ERR_CANT_DO_RIGHT_NOW, EQUIP_ERR_ITEMS_CANT_BE_SWAPPED, EQUIP_ERR_NONEMPTY_BAG_OVER_OTHER_BAG, EQUIP_ERR_OK, EQUIP_ERR_YOU_ARE_DEAD, EquipItem(), Bag::GetBagSize(), Item::GetCount(), Object::GetEntry(), Object::GetGUID(), GetItemByPos(), Bag::GetItemByPos(), GetLootGUID(), ItemTemplate::GetMaxStackSize(), Item::GetTemplate(), Unit::IsAlive(), Item::IsBag(), IsBagPos(), IsBankPos(), Bag::IsEmpty(), IsEquipmentPos(), IsInventoryPos(), Object::IsInWorld(), Item::IsNotEmptyBag(), ITEM_CHANGED, ItemAddedQuestCheck(), ItemCanGoIntoBag(), ItemRemovedQuestCheck(), LOG_DEBUG, m_session, RemoveItem(), Bag::RemoveItem(), RemoveItemDependentAurasAndCasts(), SendEquipError(), SendRefundInfo(), Object::SendUpdateToPlayer(), Item::SetCount(), Item::SetState(), StoreItem(), Bag::StoreItem(), Item::ToBag(), and UpdateTitansGrip().
Referenced by WorldSession::HandleAutoEquipItemSlotOpcode(), WorldSession::HandleEquipmentSetUse(), item_commandscript::HandleItemMoveCommand(), WorldSession::HandleSwapInvItemOpcode(), and WorldSession::HandleSwapItem().
References Object::GetUInt32Value(), MAX_QUEST_OFFSET, PLAYER_QUEST_LOG_1_1, and Unit::SetUInt32Value().
Referenced by WorldSession::HandleQuestLogSwapQuest().
bool Player::TakeQuestSourceItem | ( | uint32 | questId, |
bool | msg | ||
) |
References CanUnequipItems(), DestroyItemCount(), EQUIP_ERR_OK, Quest::GetSrcItemCount(), Quest::GetSrcItemId(), QUEST_ITEM_OBJECTIVES_COUNT, Quest::RequiredItemId, SendEquipError(), sObjectMgr, and ItemTemplate::StartQuest.
Referenced by Spell::EffectQuestClear(), and WorldSession::HandleQuestLogRemoveQuest().
void Player::TalkedToCreature | ( | uint32 | entry, |
ObjectGuid | guid | ||
) |
References ADDITIONAL_SAVING_QUEST_STATUS, AdditionalSavingAddMask(), CanCompleteQuest(), CompleteQuest(), QuestStatusData::CreatureOrGOCount, GetQuestSlotQuestId(), Quest::HasSpecialFlag(), m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, QUEST_OBJECTIVES_COUNT, QUEST_SPECIAL_FLAGS_CAST, QUEST_SPECIAL_FLAGS_KILL, QUEST_SPECIAL_FLAGS_SPEAKTO, QUEST_STATUS_INCOMPLETE, Quest::RequiredNpcOrGo, Quest::RequiredNpcOrGoCount, SendQuestUpdateAddCreatureOrGo(), sObjectMgr, and QuestStatusData::Status.
Referenced by npc_aged_dying_ancient_kodo::OnGossipHello(), brann_bronzebeard::OnGossipHello(), npc_innkeeper::OnGossipHello(), npc_razael_and_lyana::OnGossipSelect(), and npc_clintar_spirit::npc_clintar_spiritAI::UpdateAI().
References LOG_ERROR, sChrRacesStore, TEAM_ALLIANCE, and TEAM_HORDE.
Referenced by CharacterCache::GetCharacterTeamByGuid(), Unit::GetModelForForm(), GetTeamId(), WorldSession::HandleAddFriendOpcode(), WorldSession::HandleCalendarEventInvite(), WorldSession::HandleCharCreateOpcode(), WorldSession::HandleCharFactionOrRaceChangeCallback(), WorldSession::HandleSendMail(), misc_commandscript::HandleSkirmishCommand(), PlayerTaxi::InitTaxiNodesForLevel(), Channel::KickOrBan(), AchievementMgr::LoadFromDB(), and SetFactionForRace().
bool Player::TeleportTo | ( | uint32 | mapid, |
float | x, | ||
float | y, | ||
float | z, | ||
float | orientation, | ||
uint32 | options = 0 , |
||
Unit * | target = nullptr , |
||
bool | newInstance = false |
||
) |
References Unit::AddUnitMovementFlag(), AURA_INTERRUPT_FLAG_CHANGE_MAP, AURA_INTERRUPT_FLAG_MOVE, AURA_INTERRUPT_FLAG_TELEPORTED, AURA_INTERRUPT_FLAG_TURNING, CLASS_CONTEXT_TELEPORT, CLASS_DEATH_KNIGHT, CleanupAfterTaxiFlight(), Unit::CombatStop(), DISABLE_TYPE_MAP, Unit::DisableSpline(), duel, DUEL_FLED, DuelComplete(), ObjectGuid::Empty, Unit::ExitVehicle(), MapEntry::Expansion(), Unit::GetAuraEffectsByType(), GetBattlegroundId(), WorldObject::GetDistance2d(), Object::GetEntry(), Unit::GetGameObject(), GameTime::GetGameTime(), Object::GetGUID(), Object::GetGuidValue(), WorldObject::GetMap(), WorldLocation::GetMapId(), Unit::GetMotionMaster(), WorldObject::GetName(), Position::GetOrientation(), GetPet(), Position::GetPosition(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetSession(), WorldObject::GetTransport(), Unit::GetUnitMovementFlags(), WorldObject::GetVisibilityRange(), HasPendingSpectatorForBG(), HasSpell(), InBattleground(), MapEntry::Instanceable(), Unit::InterruptNonMeleeSpells(), MapEntry::IsBattleArena(), MapEntry::IsBattlegroundOrArena(), IsClass(), IsGameMaster(), Unit::IsInFlight(), Object::IsInWorld(), Unit::IsMounted(), Unit::IsNonMeleeSpellCast(), AccountMgr::IsPlayerAccount(), IsSpectator(), MapMgr::IsValidMapCoord(), WorldObject::IsWithinDist3d(), LOG_DEBUG, LOG_ERROR, WorldObject::m_movementInfo, WorldObject::m_transport, Unit::m_vehicle, MotionMaster::MovementExpired(), MOVEMENTFLAG_MASK_HAS_PLAYER_STATUS_OPCODE, MOVEMENTFLAG_ONTRANSPORT, MustDelayTeleport(), PLAYER_DUEL_ARBITER, MovementInfo::TransportInfo::pos, Position::PositionXYZOStream(), Position::Relocate(), Unit::RemoveAllDynObjects(), Unit::RemoveArenaAuras(), RemoveArenaSpellCooldowns(), Unit::RemoveAurasByType(), Unit::RemoveAurasWithInterruptFlags(), MovementInfo::RemoveMovementFlag(), Transport::RemovePassenger(), Map::RemovePlayerFromMap(), RepopAtGraveyard(), MovementInfo::TransportInfo::Reset(), sDisableMgr, WorldSession::SendPacket(), SendSavedInstances(), SendTeleportAckPacket(), Unit::SendTeleportPacket(), SendTransferAborted(), SetCanTeleport(), SetFallInformation(), SetHasDelayedTeleport(), SetMountBlockId(), SetSelection(), SetSemaphoreTeleportFar(), SetSemaphoreTeleportNear(), Unit::SetUnitMovementFlags(), sMapMgr, sMapStore, SMSG_NEW_WORLD, SMSG_TRANSFER_PENDING, SPELL_AURA_MOD_CONFUSE, SPELL_AURA_MOD_FEAR, SPELL_AURA_MOD_ROOT, SPELL_AURA_MOD_STUN, SPELL_AURA_MOUNTED, sScriptMgr, TELE_TO_GM_MODE, TELE_TO_NOT_LEAVE_COMBAT, TELE_TO_NOT_LEAVE_TAXI, TELE_TO_NOT_LEAVE_TRANSPORT, TELE_TO_NOT_LEAVE_VEHICLE, TELE_TO_NOT_UNSUMMON_PET, TELE_TO_SPELL, TELE_TO_WITH_PET, teleportStore_dest, teleportStore_options, Position::ToString(), TRANSFER_ABORT_INSUF_EXPAN_LVL, TRANSFER_ABORT_MAP_NOT_ALLOWED, TRANSFER_ABORT_UNIQUE_MESSAGE, MovementInfo::transport, and UnsummonPetTemporaryIfAny().
Referenced by ActivateTaxiPathTo(), BattlegroundSA::CaptureGraveyard(), BattlegroundSA::DefendersPortalTeleport(), MotionTransport::DelayedTeleportTransport(), BattlegroundIC::DoAction(), go_commandscript::DoTeleport(), Spell::EffectTeleportUnits(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoZoneXYCommand(), misc_commandscript::HandleGroupSummonCommand(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandleMovementOpcodes(), WorldSession::HandleMoveSplineDoneOpcode(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandlePlayerLoginFromDB(), WorldSession::HandleSetRaidDifficultyOpcode(), ArenaSpectator::HandleSpectatorSpectateCommand(), tele_commandscript::HandleTeleCommand(), tele_commandscript::HandleTeleGroupCommand(), misc_commandscript::HandleUnstuckCommand(), WorldSession::HandleWorldTeleportOpcode(), Unit::NearTeleportTo(), npc_wg_spirit_guide::OnGossipSelect(), BattlefieldWG::OnPlayerJoinWar(), lfg::LFGPlayerScript::OnPlayerMapChanged(), at_orb_of_command::OnTrigger(), at_icc_saurfang_portal::OnTrigger(), at_naxxramas_hub_portal::OnTrigger(), AreaTrigger_at_voltarus_middle::OnTrigger(), AreaTrigger_at_last_rites::OnTrigger(), Battlefield::PlayerAskToLeave(), BfGraveyard::RelocateDeadPlayers(), Battleground::RelocateDeadPlayers(), Map::RemoveAllPlayers(), RepopAtGraveyard(), ResurectUsingRequestData(), WorldSession::SendSpiritResurrect(), BattlegroundMgr::SendToBattleground(), SummonIfPossible(), lfg::LFGMgr::TeleportPlayer(), GmTicket::TeleportTo(), TeleportTo(), BattlegroundSA::TeleportToEntrancePosition(), TeleportToEntryPoint(), Update(), and GameObject::Use().
|
inline |
References WorldLocation::GetMapId(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), and TeleportTo().
bool Player::TeleportToEntryPoint | ( | ) |
References DELAYED_BG_GROUP_RESTORE, DELAYED_BG_MOUNT_RESTORE, DELAYED_BG_TAXI_RESTORE, Position::GetOrientation(), EntryPointData::joinPos, m_entryPointData, m_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, WorldLocation::m_mapId, MAPID_INVALID, ScheduleDelayedOperation(), and TeleportTo().
Referenced by MapInstanced::CreateInstanceForPlayer(), WorldSession::HandleAreaTriggerOpcode(), spectator_commandscript::HandleSpectatorLeaveCommand(), LeaveBattleground(), WorldSession::LogoutPlayer(), and lfg::LFGMgr::TeleportPlayer().
|
overridevirtual |
Outputs an universal text which is supposed to be an action.
Reimplemented from Unit.
References ChatHandler::BuildChatPacket(), CHAT_MSG_EMOTE, CONFIG_ALLOW_TWO_SIDE_INTERACTION_EMOTE, CONFIG_LISTEN_RANGE_TEXTEMOTE, LANG_UNIVERSAL, SendMessageToSetInRange(), sScriptMgr, and sWorld.
Referenced by WorldSession::HandleMessagechatOpcode().
|
overridevirtual |
Reimplemented from Unit.
References CHAT_MSG_EMOTE, CONFIG_LISTEN_RANGE_TEXTEMOTE, and sWorld.
void Player::ToggleAFK | ( | ) |
References InBattleground(), isAFK(), IsGameMaster(), LeaveBattleground(), PLAYER_FLAGS, PLAYER_FLAGS_AFK, and Object::ToggleFlag().
Referenced by Battleground::AddPlayer(), WorldSession::HandleMessagechatOpcode(), Battlefield::PlayerAcceptInviteToWar(), and Unit::SetCharmedBy().
void Player::ToggleDND | ( | ) |
References PLAYER_FLAGS, PLAYER_FLAGS_DND, and Object::ToggleFlag().
Referenced by WorldSession::HandleMessagechatOpcode().
void Player::ToggleInstantFlight | ( | ) |
References m_isInstantFlightOn.
Referenced by OnGossipSelect().
void Player::ToggleMetaGemsActive | ( | uint8 | exceptslot, |
bool | apply | ||
) |
References ApplyEnchantment(), _Socket::Color, SpellItemEnchantmentEntry::EnchantmentCondition, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Item::GetEnchantmentId(), GetItemByPos(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, SOCK_ENCHANTMENT_SLOT, ItemTemplate::Socket, and sSpellItemEnchantmentStore.
Referenced by WorldSession::HandleSocketOpcode().
void Player::TradeCancel | ( | bool | sendback, |
TradeStatus | status = TRADE_STATUS_TRADE_CANCELED |
||
) |
References GetSession(), TradeData::GetTrader(), m_trade, and WorldSession::SendCancelTrade().
Referenced by ActivateTaxiPathTo(), CleanupsBeforeDelete(), WorldSession::HandleBusyTradeOpcode(), WorldSession::HandleCancelTradeOpcode(), WorldSession::HandleIgnoreTradeOpcode(), and WorldSession::HandleSocketClosed().
void Player::UninviteFromGroup | ( | ) |
References Group::Disband(), GetGroupInvite(), Group::GetInviteeCount(), Group::GetMembersCount(), Group::IsCreated(), Group::RemoveAllInvites(), and Group::RemoveInvite().
Referenced by WorldSession::HandleGroupDeclineOpcode(), and WorldSession::LogoutPlayer().
void Player::UnsummonPetTemporaryIfAny | ( | ) |
References Unit::GetCharmInfo(), GetPet(), CharmInfo::GetPetNumber(), Object::GetUInt32Value(), Pet::isControlled(), Pet::isTemporarySummoned(), m_temporaryUnsummonedPetNumber, PET_SAVE_AS_CURRENT, RemovePet(), SetLastPetSpell(), and UNIT_CREATED_BY_SPELL.
Referenced by Vehicle::AddPassenger(), Battleground::AddPlayer(), RemoveFromWorld(), and TeleportTo().
|
overridevirtual |
Reimplemented from WorldObject.
References _cinematicMgr, _instanceResetTimes, _pendingBindId, _pendingBindTimer, _restTime, ATTACK_DISPLAY_DELAY, Unit::AttackerStateUpdate(), BASE_ATTACK, BindToInstance(), Unit::bRequestForcedVisibilityUpdate, BuildPlayerRepop(), CheckDuelDistance(), CINEMATIC_UPDATEDIFF, HostileRefMgr::deleteReferencesOutOfRange(), FailQuest(), WorldObject::FindMap(), Unit::getAttackTimer(), Unit::GetCharmer(), GetDrunkValue(), GameTime::GetGameTime(), Object::GetGUID(), Unit::getHostileRefMgr(), GetInnTriggerId(), WorldObject::GetInstanceId(), WorldObject::GetMap(), WorldLocation::GetMapId(), getMSTime(), GetMSTimeDiffToNow(), WorldObject::GetName(), GetPet(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetRestBonus(), GetSession(), Object::GetUInt32Value(), Unit::GetVictim(), WorldObject::GetVisibilityRange(), WorldObject::GetZoneAndAreaId(), HandleDrowning(), HandleSobering(), HasDelayedTeleport(), Position::HasInArc(), Unit::HasOffhandWeaponForAttack(), HasPendingBind(), HasPlayerFlag(), Unit::HasPreventResurectionAura(), HasRestFlag(), Unit::HasUnitFlag(), Unit::HasUnitState(), IN_MILLISECONDS, Unit::IsAlive(), Unit::isAttackReady(), IsBeingTeleported(), Unit::IsCharmed(), IsInAreaTriggerRadius(), Object::IsInWorld(), Position::IsPositionValid(), Unit::isPossessed(), WorldObject::IsWithinDistInMap(), Unit::IsWithinMeleeRange(), JustDied, WorldSession::KickPlayer(), KillPlayer(), LOG_DEBUG, LOG_INFO, LOGIN_UPD_MUTE_TIME, LoginDatabase, m_achievementMgr, CinematicMgr::m_activeCinematicCameraId, m_areaUpdateId, m_charmUpdateTimer, CinematicMgr::m_cinematicCamera, CinematicMgr::m_cinematicDiff, Unit::m_deathState, m_deathTimer, Unit::m_delayed_unit_relocation_timer, m_drunkTimer, m_hostileReferenceCheckTimer, m_Last_tick, CinematicMgr::m_lastCinematicCheck, WorldSession::m_muteTime, m_nextMailDelivereTime, m_nextSave, m_Played_time, m_QuestStatus, m_QuestStatusSave, Unit::m_regenTimer, m_swingErrorMsg, m_timedquests, m_weaponChangeTimer, m_zoneUpdateId, m_zoneUpdateTimer, NOTIFY_VISIBILITY_CHANGED, OFF_ATTACK, PET_SAVE_NOT_IN_SLOT, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_FLAGS_RESTING, PLAYER_NEXT_LEVEL_XP, ProcessSpellQueue(), RATE_REST_INGAME, RegenerateAll(), WorldObject::RemoveFromNotify(), RemovePet(), RemoveRestFlag(), RepopAtGraveyard(), Unit::resetAttackTimer(), REST_FLAG_IN_TAVERN, SaveToDB(), SendAttackSwingBadFacingAttack(), SendAttackSwingNotInRange(), SendNewMail(), SendUpdateToOutOfRangeGroupMembers(), Unit::setAttackTimer(), PreparedStatementBase::SetData(), SetHasDelayedTeleport(), SetMustDelayTeleport(), SetPendingBind(), SetRestBonus(), WorldSession::SetTotalTime(), sObjectMgr, sScriptMgr, sWorld, teleportStore_dest, teleportStore_options, TeleportTo(), QuestStatusData::Timer, ObjectGuid::ToString(), Position::ToString(), UNIT_FLAG_POSSESSED, UNIT_STATE_CASTING, UNIT_STATE_CHARGING, UNIT_STATE_MELEE_ATTACKING, unReadMails, Unit::Update(), AchievementMgr::Update(), UpdateAfkReport(), UpdateArea(), UpdateCharmedAI(), CinematicMgr::UpdateCinematicLocation(), UpdateContestedPvP(), UpdateDuelFlag(), UpdateEnchantTime(), UpdateFFAPvPFlag(), UpdateHomebindTime(), UpdateItemDuration(), UpdateObjectVisibility(), UpdatePvPFlag(), UpdateSoulboundTradeItems(), UpdateZone(), and ZONE_UPDATE_INTERVAL.
Referenced by Map::Update().
void Player::UpdateAchievementCriteria | ( | AchievementCriteriaTypes | type, |
uint32 | miscValue1 = 0 , |
||
uint32 | miscValue2 = 0 , |
||
Unit * | unit = nullptr |
||
) |
References m_achievementMgr, and AchievementMgr::UpdateAchievementCriteria().
Referenced by _addSpell(), Spell::_cast(), KillRewarder::_RewardKillCredit(), ActivateTaxiPathTo(), CheckAreaExploreAndOutdoor(), Group::CountTheRoll(), Unit::DealDamage(), Spell::DoSpellHitOnUnit(), FlightPathMovementGenerator::DoUpdate(), InstanceScript::DoUpdateAchievementCriteria(), DuelComplete(), EnvironmentalDamage(), EquipItem(), EquipNewItem(), lfg::LFGMgr::FinishDungeon(), GiveLevel(), WorldSession::HandleAlterAppearance(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleBuyBankSlotOpcode(), HandleFall(), WorldSession::HandleGameobjectReportUse(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleLootRoll(), WorldSession::HandlePlayerLoginFromDB(), WorldSession::HandleQuestLogRemoveQuest(), reset_commandscript::HandleResetHonorCommand(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSendMail(), WorldSession::HandleTextEmoteOpcode(), Unit::Kill(), KilledMonsterCredit(), ArenaTeamMember::ModifyPersonalRating(), MoveItemToInventory(), QuestApprenticeAnglerPlayerScript::OnPlayerCompleteQuest(), InstanceSaveMgr::PlayerBindToInstance(), QuickEquipItem(), resetTalents(), RewardHonor(), RewardQuest(), AuctionHouseMgr::SendAuctionSuccessfulMail(), AuctionHouseMgr::SendAuctionWonMail(), setDeathState(), SetMoney(), ReputationMgr::SetOneFactionReputation(), SetSkill(), SetTitle(), StoreNewItem(), SummonIfPossible(), UpdateLootAchievements(), BattlegroundAB::UpdatePlayerScore(), BattlegroundAV::UpdatePlayerScore(), BattlegroundEY::UpdatePlayerScore(), BattlegroundIC::UpdatePlayerScore(), BattlegroundWS::UpdatePlayerScore(), UpdateSkill(), UpdateSkillPro(), and GameObject::Use().
void Player::UpdateAfkReport | ( | time_t | currTime | ) |
checks the 15 afk reports per 5 minutes limit
References BGData::bgAfkReportedCount, BGData::bgAfkReportedTimer, m_bgData, and MINUTE.
Referenced by Update().
void Player::UpdateAllCritPercentages | ( | ) |
References BASE_ATTACK, CRIT_PERCENTAGE, GetMeleeCritFromAgility(), OFF_ATTACK, OFFHAND_CRIT_PERCENTAGE, PCT_MOD, RANGED_ATTACK, RANGED_CRIT_PERCENTAGE, SetBaseModValue(), and UpdateCritPercentage().
Referenced by AuraEffect::HandleAuraModShapeshift(), UpdateAllStats(), UpdateStats(), and UpdateWeaponSkill().
void Player::UpdateAllRatings | ( | ) |
void Player::UpdateAllSpellCritChances | ( | ) |
References MAX_SPELL_SCHOOL, SPELL_SCHOOL_NORMAL, and UpdateSpellCritChance().
Referenced by AuraEffect::HandleAuraModCritPct(), AuraEffect::HandleModSpellCritChance(), UpdateAllStats(), UpdateRating(), and UpdateStats().
|
overridevirtual |
Implements Unit.
References BASE_ATTACK, CR_ARMOR_PENETRATION, Unit::GetTotalStatValue(), MAX_POWERS, MAX_STATS, OFF_ATTACK, POWER_MANA, RecalculateRating(), Unit::SetStat(), STAT_STRENGTH, UpdateAllCritPercentages(), UpdateAllRatings(), Unit::UpdateAllResistances(), UpdateAllSpellCritChances(), UpdateArmor(), UpdateAttackPowerAndDamage(), UpdateDefenseBonusesMod(), UpdateExpertise(), UpdateManaRegen(), UpdateMaxHealth(), UpdateMaxPower(), UpdateShieldBlockValue(), and UpdateSpellDamageAndHealingBonus().
Referenced by _ApplyAllStatBonuses(), _RemoveAllStatBonuses(), Create(), GiveLevel(), and LoadFromDB().
void Player::UpdateArea | ( | uint32 | newArea | ) |
References AREA_FLAG_ARENA, AREA_FLAG_REST_ZONE_ALLIANCE, AREA_FLAG_REST_ZONE_HORDE, Unit::CombatStopWithPets(), AreaTableEntry::flags, WorldObject::GetInstanceScript(), GetTeamId(), PvPInfo::IsInFFAPvPArea, PvPInfo::IsInNoPvPArea, AreaTableEntry::IsSanctuary(), m_areaUpdateId, pvpInfo, Object::RemoveByteFlag(), RemoveRestFlag(), REST_FLAG_IN_FACTION_AREA, sAreaTableStore, Object::SetByteFlag(), SetRestFlag(), sScriptMgr, TEAM_ALLIANCE, UNIT_BYTE2_FLAG_SANCTUARY, UNIT_FIELD_BYTES_2, UpdateAreaDependentAuras(), and UpdateFFAPvPState().
Referenced by SetGameMaster(), Update(), and UpdateZone().
void Player::UpdateAreaDependentAuras | ( | uint32 | area_id | ) |
References Unit::CastSpell(), Vehicle::Dismiss(), Object::GetEntry(), WorldLocation::GetMapId(), Unit::GetOwnedAuras(), Position::GetPositionX(), Unit::GetVehicle(), Unit::GetVehicleBase(), Unit::HasAura(), Unit::IsPet(), Unit::m_Controlled, Unit::m_ownedAuras, m_zoneUpdateId, Unit::RemoveOwnedAura(), SPELL_CAST_OK, and sSpellMgr.
Referenced by AddQuest(), CompleteQuest(), WorldSession::HandlePlayerLoginFromDB(), IncompleteQuest(), RemoveActiveQuest(), RewardQuest(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SetData(), and UpdateArea().
|
overridevirtual |
Implements Unit.
References BASE_PCT, BASE_VALUE, CalculatePct(), Unit::GetAuraEffectsByType(), Unit::GetModifierValue(), Unit::GetStat(), Unit::SetArmor(), SPELL_AURA_MOD_RESISTANCE_OF_STAT_PERCENT, SPELL_SCHOOL_MASK_NORMAL, STAT_AGILITY, TOTAL_PCT, TOTAL_VALUE, UNIT_MOD_ARMOR, and UpdateAttackPowerAndDamage().
Referenced by UpdateAllStats(), UpdateResistances(), and UpdateStats().
void Player::UpdateArmorPenetration | ( | int32 | amount | ) |
References CR_ARMOR_PENETRATION, PLAYER_FIELD_COMBAT_RATING_1, and Unit::SetUInt32Value().
Referenced by UpdateRating().
|
overridevirtual |
Implements Unit.
References BASE_ATTACK, BASE_PCT, BASE_VALUE, CalculatePct(), Unit::CanDualWield(), CLASS_CONTEXT_STATS, CLASS_DEATH_KNIGHT, CLASS_DRUID, CLASS_HUNTER, CLASS_MAGE, CLASS_PALADIN, CLASS_PRIEST, CLASS_ROGUE, CLASS_SHAMAN, CLASS_WARLOCK, CLASS_WARRIOR, CLASSMASK_WAND_USERS, SpellInfo::Effects, EQUIPMENT_SLOT_MAINHAND, FORM_BEAR, FORM_CAT, FORM_DIREBEAR, FORM_MOONKIN, AuraEffect::GetAmount(), Unit::GetArmor(), Unit::GetAuraEffectsByType(), Unit::getClassMask(), AuraEffect::GetEffIndex(), ItemTemplate::getFeralBonus(), Unit::GetLevel(), Unit::GetModifierValue(), Unit::GetShapeshiftForm(), AuraEffect::GetSpellInfo(), Unit::GetStat(), Unit::HasOffhandWeaponForAttack(), IsClass(), Unit::IsInFeralForm(), ITEM_MOD_ATTACK_POWER, ITEM_SPELLTRIGGER_ON_EQUIP, ItemTemplate::ItemStat, _ItemStat::ItemStatType, _ItemStat::ItemStatValue, m_baseFeralAP, m_items, MAX_ITEM_PROTO_SPELLS, MAX_ITEM_PROTO_STATS, MAX_SPELL_EFFECTS, OFF_ATTACK, RANGED_ATTACK, Object::SetFloatValue(), Object::SetInt32Value(), Unit::SetModifierValue(), SPELL_AURA_DUMMY, SPELL_AURA_MOD_ATTACK_POWER, SPELL_AURA_MOD_ATTACK_POWER_OF_ARMOR, SPELL_AURA_MOD_ATTACK_POWER_OF_STAT_PERCENT, SPELL_AURA_MOD_RANGED_ATTACK_POWER_OF_STAT_PERCENT, SpellInfo::SpellIconID, _Spell::SpellId, ItemTemplate::Spells, _Spell::SpellTrigger, sScriptMgr, sSpellMgr, STAT_AGILITY, STAT_STRENGTH, ItemTemplate::StatsCount, TOTAL_PCT, TOTAL_VALUE, UNIT_FIELD_ATTACK_POWER, UNIT_FIELD_ATTACK_POWER_MODS, UNIT_FIELD_ATTACK_POWER_MULTIPLIER, UNIT_FIELD_RANGED_ATTACK_POWER, UNIT_FIELD_RANGED_ATTACK_POWER_MODS, UNIT_FIELD_RANGED_ATTACK_POWER_MULTIPLIER, UNIT_MOD_ATTACK_POWER, UNIT_MOD_ATTACK_POWER_RANGED, Unit::UpdateDamagePhysical(), and UpdateSpellDamageAndHealingBonus().
Referenced by ApplyFeralAPBonus(), AuraEffect::HandleAuraModAttackPowerOfArmor(), AuraEffect::HandleAuraModRangedAttackPowerOfStatPercent(), InitDataForForm(), UpdateAllStats(), UpdateArmor(), and UpdateStats().
void Player::UpdateBlockPercentage | ( | ) |
References CanBlock(), CR_BLOCK, Unit::GetDefenseSkillValue(), GetMaxSkillValueForLevel(), GetRatingBonusValue(), Unit::GetTotalAuraModifier(), PLAYER_BLOCK_PERCENTAGE, sConfigMgr, Object::SetStatFloatValue(), and SPELL_AURA_MOD_BLOCK_PERCENT.
Referenced by AuraEffect::HandleAuraModBlockPercent(), SetCanBlock(), UpdateDefenseBonusesMod(), and UpdateRating().
|
private |
References Unit::Attack(), Unit::CastSpell(), CHASE_MOTION_TYPE, CLASS_DRUID, CLASS_HUNTER, CLASS_MAGE, CLASS_PRIEST, CLASS_WARLOCK, Unit::DealDamage(), DIRECT_DAMAGE, Unit::GetAuraEffectsByType(), Unit::GetCharmer(), Unit::GetCharmInfo(), Unit::getClassMask(), MotionMaster::GetCurrentMovementGeneratorType(), WorldObject::GetDistance(), Object::GetGUID(), Unit::GetHealth(), WorldObject::GetMap(), Unit::GetMaxPower(), Unit::GetMotionMaster(), CharmInfo::GetPlayerReactState(), Unit::GetPower(), Unit::GetVictim(), HasSpellCooldown(), Unit::HasUnitState(), Object::IsCreature(), Creature::IsInEvadeMode(), Object::IsPlayer(), Unit::IsValidAttackTarget(), m_charmAISpells, MotionMaster::MoveChase(), MotionMaster::MoveFollow(), PET_FOLLOW_ANGLE, PET_FOLLOW_DIST, POWER_MANA, REACT_DEFENSIVE, REACT_PASSIVE, Unit::SelectNearbyTarget(), Unit::SendMovementFlagUpdate(), Unit::SetInFront(), SPELL_AURA_MOD_CHARM, SPELL_DOT_DAMAGE, SPELL_FAST_RUN, SPELL_HIGH_DAMAGE1, SPELL_IMMUNITY, SPELL_INSTANT_DAMAGE, SPELL_ROOT_OR_FEAR, SPELL_SCHOOL_MASK_NORMAL, SPELL_T_CHARGE, SPELL_T_STUN, Object::ToCreature(), UNIT_STATE_CASTING, UNIT_STATE_FOLLOW, and urand().
Referenced by Update().
void Player::UpdateCombatSkills | ( | Unit * | victim, |
WeaponAttackType | attType, | ||
bool | defence, | ||
Item * | item = nullptr |
||
) |
References GetBaseDefenseSkillValue(), GetBaseWeaponSkillValue(), Acore::XP::GetGrayLevel(), Unit::GetLevel(), Unit::getLevelForTarget(), Unit::GetStat(), LOG_DEBUG, roll_chance_f(), STAT_INTELLECT, UpdateDefense(), and UpdateWeaponSkill().
Referenced by Unit::ProcDamageAndSpellFor().
void Player::UpdateContestedPvP | ( | uint32 | currTime | ) |
References Unit::IsInCombat(), m_contestedPvPTimer, and ResetContestedPvP().
Referenced by Update().
void Player::UpdateCorpseReclaimDelay | ( | ) |
References CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVE, CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVP, DEATH_EXPIRE_STEP, GameTime::GetGameTime(), m_deathExpireTime, m_ExtraFlags, MAX_DEATH_COUNT, PLAYER_EXTRA_PVP_DEATH, and sWorld.
Referenced by KillPlayer().
bool Player::UpdateCraftSkill | ( | uint32 | spellid | ) |
References CONFIG_SKILL_GAIN_CRAFTING, GetPureSkillValue(), GetSkillDiscoverySpell(), learnSpell(), LOG_DEBUG, SpellInfo::Mechanic, MECHANIC_DISCOVERY, SkillGainChance(), sScriptMgr, sSpellMgr, sWorld, and UpdateSkillPro().
Referenced by Spell::DoCreateItem(), Spell::EffectEnchantItemPerm(), and spell_gen_profession_research::HandleScript().
void Player::UpdateCritPercentage | ( | WeaponAttackType | attType | ) |
References BASE_ATTACK, CR_CRIT_MELEE, CR_CRIT_RANGED, CRIT_PERCENTAGE, GetMaxSkillValueForLevel(), GetRatingBonusValue(), GetTotalPercentageModValue(), Unit::GetWeaponSkillValue(), OFF_ATTACK, OFFHAND_CRIT_PERCENTAGE, PLAYER_CRIT_PERCENTAGE, PLAYER_OFFHAND_CRIT_PERCENTAGE, PLAYER_RANGED_CRIT_PERCENTAGE, RANGED_ATTACK, RANGED_CRIT_PERCENTAGE, sConfigMgr, and Object::SetStatFloatValue().
Referenced by HandleBaseModValue(), UpdateAllCritPercentages(), and UpdateRating().
void Player::UpdateDefense | ( | ) |
References CONFIG_SKILL_GAIN_DEFENSE, SKILL_DEFENSE, sWorld, UpdateDefenseBonusesMod(), and UpdateSkill().
Referenced by UpdateCombatSkills().
void Player::UpdateDefenseBonusesMod | ( | ) |
References UpdateBlockPercentage(), UpdateDodgePercentage(), and UpdateParryPercentage().
Referenced by AuraEffect::HandleAuraModSkill(), UpdateAllStats(), UpdateDefense(), UpdateRating(), and UpdateSkillsToMaxSkillsForLevel().
void Player::UpdateDodgePercentage | ( | ) |
References CR_DEFENSE_SKILL, CR_DODGE, Unit::getClass(), GetDodgeFromAgility(), GetMaxSkillValueForLevel(), GetRatingBonusValue(), GetSkillValue(), Unit::GetTotalAuraModifier(), m_diminishing_k, m_realDodge, MAX_CLASSES, PLAYER_DODGE_PERCENTAGE, sConfigMgr, Object::SetStatFloatValue(), SKILL_DEFENSE, and SPELL_AURA_MOD_DODGE_PERCENT.
Referenced by AuraEffect::HandleAuraModDodgePercent(), UpdateDefenseBonusesMod(), UpdateRating(), and UpdateStats().
void Player::UpdateDuelFlag | ( | time_t | currTime | ) |
References duel, DUEL_STATE_COUNTDOWN, DUEL_STATE_IN_PROGRESS, PLAYER_DUEL_TEAM, Unit::SetUInt32Value(), and sScriptMgr.
Referenced by Update().
void Player::UpdateEnchantmentDurations | ( | ) |
References m_enchantDuration.
Referenced by Spell::EffectSummonChangeItem().
void Player::UpdateEnchantTime | ( | uint32 | time | ) |
References ApplyEnchantment(), ASSERT, and m_enchantDuration.
Referenced by Update().
void Player::UpdateEquipSpellsAtFormChange | ( | ) |
References ApplyEquipSpell(), ApplyItemEquipSpell(), Unit::CanUseAttackType(), GetAttackBySlot(), INVENTORY_SLOT_BAG_END, ItemSetEff, m_items, MAX_ITEM_SET_SPELLS, ItemSetEffect::spells, and sScriptMgr.
Referenced by InitDataForForm().
void Player::UpdateExpertise | ( | WeaponAttackType | attType | ) |
References BASE_ATTACK, CR_EXPERTISE, Unit::GetAuraEffectsByType(), GetRatingBonusValue(), GetWeaponForAttack(), Item::IsFitToSpellRequirements(), m_Expertise, m_OffhandExpertise, OFF_ATTACK, PLAYER_EXPERTISE, PLAYER_OFFHAND_EXPERTISE, RANGED_ATTACK, Unit::SetUInt32Value(), and SPELL_AURA_MOD_EXPERTISE.
Referenced by DestroyItem(), EquipItem(), AuraEffect::HandleAuraModExpertise(), RemoveItem(), UpdateAllStats(), and UpdateRating().
void Player::UpdateFallInformationIfNeed | ( | MovementInfo const & | minfo, |
uint16 | opcode | ||
) |
References MovementInfo::fallTime, Position::GetPositionZ(), m_lastFallTime, m_lastFallZ, MSG_MOVE_FALL_LAND, MovementInfo::pos, and SetFallInformation().
Referenced by WorldSession::HandleMovementOpcodes().
void Player::UpdateFFAPvPFlag | ( | time_t | currTime | ) |
References Unit::AttackStop(), PvPInfo::FFAPvPEndTimer, Unit::getAttackers(), Unit::GetVictim(), Object::HasByteFlag(), IsFFAPvP(), Unit::IsValidAttackTarget(), Unit::m_Controlled, pvpInfo, Object::RemoveByteFlag(), sScriptMgr, sWorld, UNIT_BYTE2_FLAG_FFA_PVP, and UNIT_FIELD_BYTES_2.
Referenced by Update().
void Player::UpdateFFAPvPState | ( | bool | reset = true | ) |
References Unit::AttackStop(), CONFIG_FFA_PVP_TIMER, PvPInfo::EndTimer, PvPInfo::FFAPvPEndTimer, Unit::getAttackers(), GameTime::GetGameTime(), Unit::GetVictim(), Object::HasByteFlag(), IsFFAPvP(), IsGameMaster(), PvPInfo::IsInFFAPvPArea, PvPInfo::IsInNoPvPArea, Unit::IsValidAttackTarget(), Unit::m_Controlled, pvpInfo, Object::RemoveByteFlag(), Object::SetByteFlag(), sScriptMgr, sWorld, UNIT_BYTE2_FLAG_FFA_PVP, and UNIT_FIELD_BYTES_2.
Referenced by UpdateArea(), and UpdatePvPState().
bool Player::UpdateFishingSkill | ( | ) |
References CONFIG_SKILL_GAIN_GATHERING, GetMaxSkillValue(), getProbabilityOfLevelUp(), GetPureSkillValue(), LOG_DEBUG, SKILL_FISHING, sWorld, and UpdateSkillPro().
Referenced by GameObject::Use().
void Player::UpdateForQuestWorldObjects | ( | ) |
This code doesn't look right, but it was logically converted to condition system to do the exact same thing it did before. It definitely needs to be overlooked for intended functionality.
References UpdateData::BuildPacket(), Object::BuildValuesUpdateBlockForPlayer(), CONDITION_QUESTREWARDED, CONDITION_QUESTTAKEN, ObjectAccessor::GetCreatureOrPetOrVehicle(), Object::GetEntry(), ObjectAccessor::GetGameObject(), GetSession(), Unit::HasNpcFlag(), m_clientGUIDs, sConditionMgr, WorldSession::SendPacket(), sObjectMgr, UNIT_NPC_FLAG_SPELLCLICK, UNIT_NPC_FLAG_TRAINER, and UNIT_NPC_FLAG_VENDOR_MASK.
Referenced by Group::AddMember(), Group::Disband(), EquipItem(), ItemAddedQuestCheck(), ItemRemovedQuestCheck(), Group::RemoveMember(), and SendQuestUpdate().
bool Player::UpdateGatherSkill | ( | uint32 | SkillId, |
uint32 | SkillValue, | ||
uint32 | RedLevel, | ||
uint32 | Multiplicator = 1 |
||
) |
References CONFIG_SKILL_CHANCE_MINING_STEPS, CONFIG_SKILL_CHANCE_SKINNING_STEPS, CONFIG_SKILL_GAIN_GATHERING, LOG_DEBUG, SKILL_HERBALISM, SKILL_INSCRIPTION, SKILL_JEWELCRAFTING, SKILL_LOCKPICKING, SKILL_MINING, SKILL_SKINNING, SkillGainChance(), sScriptMgr, sWorld, and UpdateSkillPro().
Referenced by Spell::EffectMilling(), Spell::EffectOpenLock(), Spell::EffectProspecting(), Spell::EffectSkinning(), and GetExplicitDiscoverySpell().
void Player::UpdateHomebindTime | ( | uint32 | time | ) |
References Object::GetGUID(), WorldObject::GetName(), GetSession(), IsGameMaster(), LOG_DEBUG, m_HomebindTimer, m_InstanceValid, RepopAtGraveyard(), WorldSession::SendPacket(), SMSG_RAID_GROUP_ONLY, and Position::ToString().
Referenced by Update().
void Player::UpdateHonorFields | ( | ) |
called when rewarding honor and at each save
References DAY, GameTime::GetGameTime(), Object::GetUInt32Value(), m_lastHonorUpdateTime, MAKE_PAIR32(), PAIR32_LOPART(), PLAYER_FIELD_KILLS, PLAYER_FIELD_TODAY_CONTRIBUTION, PLAYER_FIELD_YESTERDAY_CONTRIBUTION, and Unit::SetUInt32Value().
Referenced by honor_commandscript::HandleHonorUpdateCommand(), LoadFromDB(), RewardHonor(), and SaveToDB().
void Player::UpdateInvisibilityDrunkDetect | ( | ) |
References FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::AddFlag(), FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::DelFlag(), GetDrunkValue(), GetFakeDrunkValue(), INVISIBILITY_DRUNK, WorldObject::m_invisibilityDetect, FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::SetValue(), and UpdateObjectVisibility().
Referenced by AuraEffect::HandleAuraModFakeInebriation(), and SetDrunkValue().
void Player::UpdateItemDuration | ( | uint32 | time, |
bool | realtimeonly = false |
||
) |
References Item::GetTemplate(), ItemTemplate::HasFlagCu(), ITEM_FLAGS_CU_DURATION_REAL_TIME, LOG_DEBUG, m_itemDuration, and Item::UpdateDuration().
Referenced by LoadFromDB(), and Update().
void Player::UpdateLFGChannel | ( | ) |
References ChatChannelsEntry::ChannelID, CONFIG_RESTRICTED_LFG_CHANNEL, ChannelMgr::forTeam(), ChannelMgr::GetJoinChannel(), WorldSession::GetSessionDbcLocale(), GetTeamId(), IsUsingLfg(), Channel::JoinChannel(), Channel::LeaveChannel(), m_channels, m_session, ChatChannelsEntry::pattern, sChatChannelsStore, and sWorld.
Referenced by WorldSession::HandleLfgJoinOpcode(), and WorldSession::HandleLfgLeaveOpcode().
void Player::UpdateLocalChannels | ( | uint32 | newZone | ) |
References AreaTableEntry::area_name, CanJoinConstantChannelInZone(), CHANNEL_DBC_FLAG_CITY_ONLY, CHANNEL_DBC_FLAG_GLOBAL, ChannelMgr::forTeam(), ChannelMgr::GetJoinChannel(), Channel::GetName(), GetSession(), WorldSession::GetSessionDbcLocale(), GetTeamId(), IsBeingTeleportedFar(), Channel::JoinChannel(), LANG_CHANNEL_CITY, Channel::LeaveChannel(), LeftChannel(), m_channels, m_session, sAreaTableStore, sChatChannelsStore, and sObjectMgr.
Referenced by UpdateZone().
References ACHIEVEMENT_CRITERIA_TYPE_LOOT_EPIC_ITEM, ACHIEVEMENT_CRITERIA_TYPE_LOOT_ITEM, ACHIEVEMENT_CRITERIA_TYPE_LOOT_TYPE, LootItem::count, LootItem::itemid, Loot::loot_type, and UpdateAchievementCriteria().
Referenced by Group::CountTheRoll(), WorldSession::HandleLootMasterGiveOpcode(), and StoreLootItem().
void Player::UpdateManaRegen | ( | ) |
References CalculatePct(), Unit::GetAuraEffectsByType(), Unit::GetStat(), Unit::GetTotalAuraModifier(), Unit::GetTotalAuraModifierByMiscValue(), Unit::GetTotalAuraMultiplierByMiscValue(), Unit::HasAuraTypeWithMiscvalue(), m_baseManaRegen, OCTRegenMPPerSpirit(), POWER_MANA, Object::SetStatFloatValue(), SPELL_AURA_MOD_MANA_REGEN_FROM_STAT, SPELL_AURA_MOD_MANA_REGEN_INTERRUPT, SPELL_AURA_MOD_POWER_REGEN, SPELL_AURA_MOD_POWER_REGEN_PERCENT, SPELL_AURA_PREVENT_REGENERATE_POWER, STAT_INTELLECT, UNIT_FIELD_POWER_REGEN_FLAT_MODIFIER, and UNIT_FIELD_POWER_REGEN_INTERRUPTED_FLAT_MODIFIER.
Referenced by ApplyManaRegenBonus(), AuraEffect::HandleModManaRegen(), AuraEffect::HandleModPowerRegen(), UpdateAllStats(), and UpdateStats().
|
overridevirtual |
Implements Unit.
References BASE_PCT, BASE_VALUE, Unit::GetCreateHealth(), GetHealthBonusFromStamina(), Unit::GetModifierValue(), Unit::SetMaxHealth(), sScriptMgr, TOTAL_PCT, TOTAL_VALUE, and UNIT_MOD_HEALTH.
Referenced by UpdateAllStats(), and UpdateStats().
|
overridevirtual |
Implements Unit.
References BASE_PCT, BASE_VALUE, Unit::GetCreatePowers(), GetManaBonusFromIntellect(), Unit::GetModifierValue(), POWER_MANA, Unit::SetMaxPower(), sScriptMgr, TOTAL_PCT, TOTAL_VALUE, and UNIT_MOD_POWER_START.
Referenced by Create(), UpdateAllStats(), and UpdateStats().
void Player::UpdateMeleeHitChances | ( | ) |
References CR_HIT_MELEE, GetRatingBonusValue(), Unit::GetTotalAuraModifier(), Unit::m_modMeleeHitChance, and SPELL_AURA_MOD_HIT_CHANCE.
Referenced by AuraEffect::HandleModHitChance(), and UpdateRating().
void Player::UpdateMirrorTimers | ( | ) |
References m_MirrorTimerFlags, and m_MirrorTimerFlagsLast.
Referenced by AuraEffect::HandleWaterBreathing().
void Player::UpdateNextMailTimeAndUnreads | ( | ) |
References GameTime::GetGameTime(), GetMails(), m_nextMailDelivereTime, MAIL_CHECK_MASK_READ, and unReadMails.
Referenced by _LoadMail(), and WorldSession::HandleGetMailList().
|
overridevirtual |
Reimplemented from WorldObject.
References WorldObject::AddToNotify(), Unit::bRequestForcedVisibilityUpdate, isBeingLoaded(), Object::IsInWorld(), NOTIFY_VISIBILITY_CHANGED, Unit::UpdateObjectVisibility(), and UpdateVisibilityForPlayer().
Referenced by Map::AddPlayerToMap(), gm_commandscript::HandleGMVisibleCommand(), WorldSession::HandlePlayerLoginToCharInWorld(), Map::PlayerRelocation(), ResurrectPlayer(), SetGameMaster(), SetGroup(), Update(), and UpdateInvisibilityDrunkDetect().
void Player::UpdateParryPercentage | ( | ) |
References CanParry(), CR_DEFENSE_SKILL, CR_PARRY, Unit::getClass(), GetMaxSkillValueForLevel(), GetRatingBonusValue(), GetSkillValue(), Unit::GetTotalAuraModifier(), m_diminishing_k, m_realParry, MAX_CLASSES, PLAYER_PARRY_PERCENTAGE, sConfigMgr, Object::SetStatFloatValue(), SKILL_DEFENSE, and SPELL_AURA_MOD_PARRY_PERCENT.
Referenced by AuraEffect::HandleAuraModParryPercent(), SetCanParry(), UpdateDefenseBonusesMod(), and UpdateRating().
References m_charSettingsMap, and PlayerSetting::value.
Referenced by GetPlayerSetting(), and player_settings_commandscript::HandleSettingsAnnouncerFlags().
|
inline |
References Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), and UpdatePosition().
Referenced by UpdatePosition().
|
overridevirtual |
Reimplemented from Unit.
References CheckAreaExploreAndOutdoor(), GetGroup(), GetSession(), GetTrader(), WorldObject::GetZoneAndAreaId(), GROUP_UPDATE_FLAG_POSITION, INTERACTION_DISTANCE, WorldObject::IsWithinDistInMap(), m_needZoneUpdate, WorldSession::SendCancelTrade(), SetGroupUpdateFlag(), TRADE_STATUS_TRADE_CANCELED, Unit::UpdatePosition(), and UpdateZone().
Referenced by spell_rog_killing_spree_aura::HandleEffectPeriodic(), and WorldSession::HandleMoveTeleportAck().
void Player::UpdatePotionCooldown | ( | Spell * | spell = nullptr | ) |
References GetLastPotionId(), Spell::IsIgnoringCooldowns(), Unit::IsInCombat(), ITEM_SPELLTRIGGER_ON_USE, m_lastPotionId, Spell::m_spellInfo, MAX_ITEM_SPELLS, SendCooldownEvent(), SetLastPotionId(), sObjectMgr, and sSpellMgr.
Referenced by Spell::finish().
void Player::UpdatePvP | ( | bool | state, |
bool | _override = false |
||
) |
References PvPInfo::EndTimer, GameTime::GetGameTime(), PLAYER_FLAGS_PVP_TIMER, pvpInfo, RemovePlayerFlag(), SetPvP(), and sScriptMgr.
Referenced by Unit::CombatStart(), Unit::CombatStartOnCast(), Spell::DoAllEffectOnTarget(), Spell::DoSpellHitOnUnit(), FlagPlayerPvP(), WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandlePlayerLoginFromDB(), WorldSession::HandleTogglePvP(), UpdatePvPFlag(), and UpdatePvPState().
void Player::UpdatePvPFlag | ( | time_t | currTime | ) |
References PvPInfo::EndTimer, HasPlayerFlag(), PvPInfo::IsHostile, IsPvP(), PLAYER_FLAGS_PVP_TIMER, pvpInfo, SetPlayerFlag(), and UpdatePvP().
Referenced by Update().
void Player::UpdatePvPState | ( | ) |
References PvPInfo::EndTimer, GameTime::GetGameTime(), HasPlayerFlag(), PvPInfo::IsHostile, IsPvP(), PLAYER_FLAGS_IN_PVP, pvpInfo, UpdateFFAPvPState(), and UpdatePvP().
Referenced by AddQuest(), Spell::EffectQuestClear(), WorldSession::HandleQuestLogRemoveQuest(), RewardQuest(), Unit::SetCharm(), and UpdateZone().
void Player::UpdateRangedHitChances | ( | ) |
References CR_HIT_RANGED, GetRatingBonusValue(), Unit::GetTotalAuraModifier(), Unit::m_modRangedHitChance, and SPELL_AURA_MOD_HIT_CHANCE.
Referenced by AuraEffect::HandleModHitChance(), and UpdateRating().
void Player::UpdateRating | ( | CombatRating | cr | ) |
References BASE_ATTACK, CalculatePct(), Unit::CanModifyStats(), CR_ARMOR_PENETRATION, CR_BLOCK, CR_CRIT_MELEE, CR_CRIT_RANGED, CR_CRIT_SPELL, CR_CRIT_TAKEN_MELEE, CR_CRIT_TAKEN_RANGED, CR_CRIT_TAKEN_SPELL, CR_DEFENSE_SKILL, CR_DODGE, CR_EXPERTISE, CR_HASTE_MELEE, CR_HASTE_RANGED, CR_HASTE_SPELL, CR_HIT_MELEE, CR_HIT_RANGED, CR_HIT_SPELL, CR_HIT_TAKEN_MELEE, CR_HIT_TAKEN_RANGED, CR_HIT_TAKEN_SPELL, CR_PARRY, CR_WEAPON_SKILL, CR_WEAPON_SKILL_MAINHAND, CR_WEAPON_SKILL_OFFHAND, CR_WEAPON_SKILL_RANGED, Unit::GetAuraEffectsByType(), Unit::GetStat(), m_baseRatingValue, OFF_ATTACK, PLAYER_FIELD_COMBAT_RATING_1, RANGED_ATTACK, Unit::SetUInt32Value(), SPELL_AURA_MOD_RATING_FROM_STAT, UpdateAllSpellCritChances(), UpdateArmorPenetration(), UpdateBlockPercentage(), UpdateCritPercentage(), UpdateDefenseBonusesMod(), UpdateDodgePercentage(), UpdateExpertise(), UpdateMeleeHitChances(), UpdateParryPercentage(), UpdateRangedHitChances(), and UpdateSpellHitChances().
Referenced by ApplyRatingMod(), and UpdateAllRatings().
|
overridevirtual |
Implements Unit.
References BASE_PCT, BASE_VALUE, Unit::GetAuraEffectsByType(), Unit::GetModifierValue(), Unit::GetStat(), Unit::SetResistance(), SPELL_AURA_MOD_RESISTANCE_OF_STAT_PERCENT, SPELL_SCHOOL_NORMAL, TOTAL_PCT, TOTAL_VALUE, UNIT_MOD_RESISTANCE_START, and UpdateArmor().
void Player::UpdateRuneRegen | ( | RuneType | rune | ) |
References GetBaseRune(), GetRuneBaseCooldown(), IN_MILLISECONDS, MAX_RUNES, NUM_RUNE_TYPES, PLAYER_RUNE_REGEN_1, and Object::SetFloatValue().
Referenced by AuraEffect::HandleModPowerRegen().
void Player::UpdateShieldBlockValue | ( | ) |
References GetShieldBlockValue(), PLAYER_SHIELD_BLOCK, and Unit::SetUInt32Value().
Referenced by HandleBaseModValue(), UpdateAllStats(), and UpdateStats().
References ACHIEVEMENT_CRITERIA_TYPE_REACH_SKILL_LEVEL, Object::GetUInt32Value(), MAKE_SKILL_VALUE, mSkillStatus, PLAYER_SKILL_VALUE_INDEX, Unit::SetUInt32Value(), SKILL_CHANGED, SKILL_DELETED, SKILL_MAX, SKILL_NEW, SKILL_VALUE, sScriptMgr, UpdateAchievementCriteria(), and UpdateSkillEnchantments().
Referenced by UpdateDefense(), and UpdateWeaponSkill().
References ApplyEnchantment(), Item::GetEnchantmentId(), INVENTORY_SLOT_BAG_END, m_items, MAX_ENCHANTMENT_SLOT, PRISMATIC_ENCHANTMENT_SLOT, SpellItemEnchantmentEntry::requiredSkill, SpellItemEnchantmentEntry::requiredSkillValue, SOCK_ENCHANTMENT_SLOT, SOCK_ENCHANTMENT_SLOT_2, SOCK_ENCHANTMENT_SLOT_3, and sSpellItemEnchantmentStore.
Referenced by SetSkill(), UpdateSkill(), and UpdateSkillPro().
References ACHIEVEMENT_CRITERIA_TYPE_REACH_SKILL_LEVEL, bonusSkillLevels, bonusSkillLevelsSize, Object::GetUInt32Value(), irand(), learnSkillRewardedSpells(), LOG_DEBUG, MAKE_SKILL_VALUE, mSkillStatus, PLAYER_SKILL_VALUE_INDEX, Unit::SetUInt32Value(), SKILL_CHANGED, SKILL_DELETED, SKILL_MAX, SKILL_NEW, SKILL_VALUE, sScriptMgr, UpdateAchievementCriteria(), and UpdateSkillEnchantments().
Referenced by UpdateCraftSkill(), UpdateFishingSkill(), and UpdateGatherSkill().
void Player::UpdateSkillsForLevel | ( | ) |
update only level dependent max skill values
maximize skill always
update max skill value if current max skill not maximized
References CONFIG_ALWAYS_MAX_SKILL_FOR_LEVEL, SkillRaceClassInfoEntry::Flags, Unit::getClass(), GetMaxSkillValueForLevel(), Unit::getRace(), GetSkillRaceClassInfo(), GetSkillRangeType(), Object::GetUInt32Value(), MAKE_SKILL_VALUE, mSkillStatus, PLAYER_SKILL_VALUE_INDEX, Unit::SetUInt32Value(), SKILL_CHANGED, SKILL_DELETED, SKILL_FLAG_ALWAYS_MAX_VALUE, SKILL_MAX, SKILL_NEW, SKILL_RANGE_LEVEL, SKILL_VALUE, and sWorld.
Referenced by GiveLevel(), InitStatsForLevel(), and LoadFromDB().
void Player::UpdateSkillsToMaxSkillsForLevel | ( | ) |
References Object::GetUInt32Value(), IsProfessionOrRidingSkill(), MAKE_SKILL_VALUE, mSkillStatus, PLAYER_SKILL_VALUE_INDEX, Unit::SetUInt32Value(), SKILL_CHANGED, SKILL_DEFENSE, SKILL_DELETED, SKILL_MAX, SKILL_NEW, and UpdateDefenseBonusesMod().
Referenced by GiveLevel(), and misc_commandscript::HandleMaxSkillCommand().
void Player::UpdateSoulboundTradeItems | ( | ) |
References ASSERT, Object::GetGUID(), m_itemSoulboundTradeable, and m_soulboundTradableLock.
Referenced by Update().
void Player::UpdateSpeakTime | ( | ChatFloodThrottle::Index | index | ) |
References Player::ChatFloodThrottle::ADDON, CONFIG_CHATFLOOD_ADDON_MESSAGE_COUNT, CONFIG_CHATFLOOD_ADDON_MESSAGE_DELAY, CONFIG_CHATFLOOD_MESSAGE_COUNT, CONFIG_CHATFLOOD_MESSAGE_DELAY, CONFIG_CHATFLOOD_MUTE_TIME, GameTime::GetGameTime(), GetSession(), AccountMgr::IsPlayerAccount(), m_chatFloodData, WorldSession::m_muteTime, Player::ChatFloodThrottle::REGULAR, and sWorld.
Referenced by WorldSession::HandleMessagechatOpcode(), and WorldSession::HandleTextEmoteOpcode().
void Player::UpdateSpecCount | ( | uint8 | count | ) |
References _SaveActions(), ActivateSpec(), CHAR_DEL_CHAR_ACTION_EXCEPT_SPEC, CHAR_INS_CHAR_ACTION, CharacterDatabase, ObjectGuid::GetCounter(), Object::GetGUID(), GetSpecsCount(), m_actionButtons, m_activeSpec, SendTalentsInfoData(), PreparedStatementBase::SetData(), and SetSpecsCount().
void Player::UpdateSpellCritChance | ( | uint32 | school | ) |
References CR_CRIT_SPELL, GetRatingBonusValue(), GetSpellCritFromIntellect(), Unit::GetTotalAuraModifier(), Unit::GetTotalAuraModifierAreaExclusive(), Unit::GetTotalAuraModifierByMiscMask(), PLAYER_SPELL_CRIT_PERCENTAGE1, Object::SetFloatValue(), SPELL_AURA_MOD_CRIT_PCT, SPELL_AURA_MOD_SPELL_CRIT_CHANCE, SPELL_AURA_MOD_SPELL_CRIT_CHANCE_SCHOOL, and SPELL_SCHOOL_NORMAL.
Referenced by AuraEffect::HandleModSpellCritChanceShool(), and UpdateAllSpellCritChances().
void Player::UpdateSpellDamageAndHealingBonus | ( | ) |
References MAX_SPELL_SCHOOL, PLAYER_FIELD_MOD_DAMAGE_DONE_POS, PLAYER_FIELD_MOD_HEALING_DONE_POS, Object::SetStatInt32Value(), SPELL_SCHOOL_HOLY, SPELL_SCHOOL_MASK_ALL, Unit::SpellBaseDamageBonusDone(), and Unit::SpellBaseHealingBonusDone().
Referenced by AuraEffect::HandleModHealingDone(), AuraEffect::HandleModSpellDamagePercentFromAttackPower(), AuraEffect::HandleModSpellDamagePercentFromStat(), AuraEffect::HandleModSpellHealingPercentFromAttackPower(), AuraEffect::HandleModSpellHealingPercentFromStat(), UpdateAllStats(), UpdateAttackPowerAndDamage(), and UpdateStats().
void Player::UpdateSpellHitChances | ( | ) |
References CR_HIT_SPELL, GetRatingBonusValue(), Unit::GetTotalAuraModifier(), Unit::m_modSpellHitChance, and SPELL_AURA_MOD_SPELL_HIT_CHANCE.
Referenced by AuraEffect::HandleModSpellHitChance(), and UpdateRating().
|
overridevirtual |
Implements Unit.
References ApplyRatingMod(), Unit::GetAuraEffectsByType(), Unit::GetTotalStatValue(), Unit::HasAuraTypeWithMiscvalue(), MAX_COMBAT_RATING, POWER_MANA, Unit::SetStat(), SPELL_AURA_MOD_ATTACK_POWER_OF_STAT_PERCENT, SPELL_AURA_MOD_RANGED_ATTACK_POWER_OF_STAT_PERCENT, SPELL_AURA_MOD_RATING_FROM_STAT, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, UpdateAllCritPercentages(), UpdateAllSpellCritChances(), UpdateArmor(), UpdateAttackPowerAndDamage(), UpdateDodgePercentage(), UpdateManaRegen(), UpdateMaxHealth(), UpdateMaxPower(), UpdateShieldBlockValue(), and UpdateSpellDamageAndHealingBonus().
void Player::UpdateTitansGrip | ( | ) |
References CanTitanGrip(), Unit::GetAura(), and Unit::RemoveAurasDueToSpell().
Referenced by AutoUnequipOffhandIfNeed(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleSellItemOpcode(), MoveItemFromInventory(), and SwapItem().
void Player::UpdateTriggerVisibility | ( | ) |
References UpdateData::BuildPacket(), Object::BuildValuesUpdateBlockForPlayer(), Map::GetCreature(), Map::GetGameObject(), WorldObject::GetMap(), GetSession(), UpdateData::HasData(), Unit::HasTransformAura(), Unit::HasUnitFlag(), Object::IsInWorld(), Creature::IsTrigger(), m_clientGUIDs, Object::RemoveFieldNotifyFlag(), WorldSession::SendPacket(), Object::SetFieldNotifyFlag(), UF_FLAG_PUBLIC, and UNIT_FLAG_NOT_SELECTABLE.
Referenced by gm_commandscript::HandleGMOffCommand(), and gm_commandscript::HandleGMOnCommand().
void Player::UpdateVisibilityForPlayer | ( | bool | mapChange = false | ) |
References GetSightRange(), Unit::m_last_notify_position, m_seer, Position::Relocate(), Acore::VisibleNotifier::SendToSelf(), VISIBILITY_INC_FOR_GOBJECTS, and Cell::VisitAllObjects().
Referenced by WorldSession::HandleFarSightOpcode(), SendInitialPacketsAfterAddToMap(), and UpdateObjectVisibility().
void Player::UpdateVisibilityOf | ( | T * | target, |
UpdateData & | data, | ||
std::vector< Unit * > & | visibleNow | ||
) |
References WorldObject::CanSeeOrDetect(), HaveAtClient(), m_clientGUIDs, and UpdateVisibilityOf_helper().
void Player::UpdateVisibilityOf | ( | WorldObject * | target | ) |
References BeforeVisibilityDestroy< Creature >(), WorldObject::CanSeeOrDetect(), Object::DestroyForPlayer(), Object::GetGUID(), GetInitialVisiblePackets(), HaveAtClient(), Object::IsCreature(), Object::IsUnit(), m_clientGUIDs, Object::SendUpdateToPlayer(), and Object::ToCreature().
Referenced by instance_ulduar::instance_ulduar_InstanceMapScript::OnPlayerEnter(), Acore::VisibleNotifier::SendToSelf(), SetViewpoint(), Acore::VisibleNotifier::Visit(), Acore::VisibleNotifier::Visit(), Acore::PlayerRelocationNotifier::Visit(), and Acore::CreatureRelocationNotifier::Visit().
void Player::UpdateWeaponSkill | ( | Unit * | victim, |
WeaponAttackType | attType, | ||
Item * | item = nullptr |
||
) |
References BASE_ATTACK, CONFIG_SKILL_GAIN_WEAPON, CREATURE_FLAG_EXTRA_NO_SKILL_GAINS, FORM_TREE, Unit::GetShapeshiftForm(), Item::GetSkill(), Item::GetTemplate(), GetWeaponForAttack(), Creature::HasFlagsExtra(), Item::IsBroken(), Object::IsCreature(), Unit::IsInFeralForm(), ITEM_SUBCLASS_WEAPON_FISHING_POLE, ITEM_SUBCLASS_WEAPON_FIST, SKILL_FIST_WEAPONS, SKILL_UNARMED, ItemTemplate::SubClass, sWorld, Object::ToCreature(), UpdateAllCritPercentages(), and UpdateSkill().
Referenced by UpdateCombatSkills().
References WeatherMgr::AddWeather(), AREA_FLAG_CAPITAL, AREA_FLAG_WINTERGRASP, AREATEAM_ALLY, AREATEAM_HORDE, AREATEAM_NONE, AutoUnequipOffhandIfNeed(), CONFIG_WEATHER, DestroyZoneLimitedItem(), WeatherMgr::FindWeather(), AreaTableEntry::flags, GetGroup(), GetGuild(), WorldObject::GetMap(), GetTeamId(), GROUP_UPDATE_FULL, GUILD_MEMBER_DATA_ZONEID, HasPvPForcingQuest(), AreaTableEntry::ID, InBattleground(), Unit::IsAlive(), PvPInfo::IsHostile, PvPInfo::IsInHostileArea, PvPInfo::IsInNoPvPArea, AreaTableEntry::IsSanctuary(), m_zoneUpdateId, m_zoneUpdateTimer, pvpInfo, RemoveRestFlag(), REST_FLAG_IN_CITY, sAreaTableStore, sBattlefieldMgr, WeatherMgr::SendFineWeatherUpdateToPlayer(), SendInitWorldStates(), SetGroupUpdateFlag(), SetRestFlag(), sOutdoorPvPMgr, sScriptMgr, sWorld, sWorldState, AreaTableEntry::team, TEAM_ALLIANCE, TEAM_HORDE, UpdateArea(), UpdateLocalChannels(), Map::UpdatePlayerZoneStats(), UpdatePvPState(), UpdateZoneDependentAuras(), and ZONE_UPDATE_INTERVAL.
Referenced by WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAck(), Map::RemovePlayerFromMap(), ResurrectPlayer(), SendInitialPacketsAfterAddToMap(), Update(), and UpdatePosition().
void Player::UpdateZoneDependentAuras | ( | uint32 | zone_id | ) |
References Unit::CastSpell(), Unit::HasAura(), and sSpellMgr.
Referenced by AddQuest(), CompleteQuest(), WorldSession::HandlePlayerLoginFromDB(), IncompleteQuest(), RemoveActiveQuest(), RewardQuest(), and UpdateZone().
void Player::VehicleSpellInitialize | ( | ) |
References Unit::CastSpell(), Object::GetEntry(), GameTime::GetGameTimeMS(), Object::GetGUID(), Creature::GetReactState(), GetSession(), TempSummon::GetTimer(), Unit::GetVehicleCreatureBase(), infinityCooldownDelayCheck, SpellInfo::IsPassive(), Unit::IsSummon(), LOG_DEBUG, Creature::m_CreatureSpellCooldowns, Creature::m_spells, MAKE_UNIT_ACTION_BUTTON, MAX_CREATURE_SPELLS, MAX_SPELL_CONTROL_BAR, sConditionMgr, WorldSession::SendPacket(), SMSG_PET_SPELLS, sSpellMgr, Object::ToCreature(), and Unit::ToTempSummon().
Referenced by Unit::SetCharmedBy().
References BIND_QUEST_ITEM, BIND_WHEN_EQUIPPED, BIND_WHEN_PICKED_UP, ItemTemplate::Bonding, EQUIPMENT_SLOT_END, Object::GetEntry(), Object::GetGUID(), Object::GetGUID(), Item::GetTemplate(), ITEM_CHANGED, ITEM_FIELD_CONTAINED, ITEM_FIELD_OWNER, LOG_DEBUG, m_items, PLAYER_FIELD_INV_SLOT_HEAD, Item::SetBinding(), Item::SetContainer(), Object::SetGuidValue(), Item::SetSlot(), Item::SetState(), and SetVisibleItemSlot().
Referenced by EquipItem(), and QuickEquipItem().
|
overridevirtual |
Handles whispers from Addons and players based on sender, receiver's guid and language.
Reimplemented from Unit.
References ASSERT, autoReplyMsg, ChatHandler::BuildChatPacket(), CHAT_MSG_WHISPER, CHAT_MSG_WHISPER_INFORM, WorldObject::GetName(), GetSession(), isAcceptWhispers(), isAFK(), isDND(), IsGameMaster(), LANG_ADDON, LANG_COMMAND_WHISPERON, LANG_PLAYER_AFK, LANG_PLAYER_DND, LANG_UNIVERSAL, ChatHandler::PSendSysMessage(), WorldSession::SendPacket(), ChatHandler::SendSysMessage(), SetAcceptWhispers(), and sScriptMgr.
Referenced by WorldSession::HandleMessagechatOpcode().
Reimplemented from Unit.
References ChatHandler::BuildChatPacket(), CHAT_MSG_RAID_BOSS_WHISPER, CHAT_MSG_WHISPER, Unit::getGender(), GetSession(), WorldSession::GetSessionDbLocaleIndex(), BroadcastText::GetText(), LANG_UNIVERSAL, LOG_ERROR, SendDirectMessage(), and sObjectMgr.
|
overridevirtual |
Handles yelled message in regular chat based on declared language and in config pre-defined Range.
Reimplemented from Unit.
References ChatHandler::BuildChatPacket(), CHAT_MSG_YELL, CONFIG_LISTEN_RANGE_YELL, SendMessageToSetInRange(), sScriptMgr, and sWorld.
Referenced by WorldSession::HandleMessagechatOpcode().
|
overridevirtual |
Reimplemented from Unit.
References CHAT_MSG_YELL, CONFIG_LISTEN_RANGE_YELL, and sWorld.
|
friend |
Referenced by Player().
|
friend |
|
friend |
|
friend |
|
private |
Referenced by GetCommandStatus(), Player(), SetCommandStatusOff(), and SetCommandStatusOn().
|
protected |
Referenced by AddBattlegroundQueueId(), GetBattlegroundQueueIndex(), GetBattlegroundQueueTypeId(), HasFreeBattlegroundQueueId(), InBattlegroundQueue(), IsInvitedForBattlegroundInstance(), IsInvitedForBattlegroundQueueType(), Player(), RemoveBattlegroundQueueId(), and SetInviteForBattlegroundQueueType().
|
private |
Referenced by GetCinematicMgr(), Player(), SendCinematicStart(), Update(), and ~Player().
|
private |
Referenced by CreateCorpse(), GetCorpseLocation(), HasCorpse(), LoadCorpse(), RemoveCorpse(), RemovedInsignia(), and SpawnCorpseBones().
|
private |
Referenced by GetFarSightDistance(), GetSightRange(), ResetFarSightDistance(), and SetFarSightDistance().
|
protected |
Referenced by _SaveCharacter(), GetInnTriggerId(), Player(), RemoveRestState(), SetRestFlag(), and SetRestState().
|
private |
|
private |
Referenced by BindToInstance(), GetPendingBind(), HasPendingBind(), SetPendingBind(), and Update().
|
private |
Referenced by SetPendingBind(), and Update().
|
protected |
Referenced by _SaveCharacter(), GetRestBonus(), LoadFromDB(), Player(), and SetRestBonus().
|
protected |
Referenced by HasRestFlag(), Player(), RemoveRestFlag(), and SetRestFlag().
|
protected |
Referenced by Player(), RemoveRestFlag(), RemoveRestState(), SetRestFlag(), SetRestState(), and Update().
|
private |
Referenced by CheckAreaExploreAndOutdoor(), and Player().
std::string Player::autoReplyMsg |
Referenced by WorldSession::HandleMessagechatOpcode(), and Whisper().
|
static |
Referenced by SendInitWorldStates().
std::unique_ptr<DuelInfo> Player::duel |
todo: -maybe move UpdateDuelFlag+DuelComplete to independent DuelHandler..
Referenced by Unit::_ExitVehicle(), Unit::_IsValidAssistTarget(), Unit::_IsValidAttackTarget(), Spell::CheckCast(), CheckDuelDistance(), Unit::CombatStart(), Unit::CombatStartOnCast(), Unit::DealDamage(), DuelComplete(), Spell::EffectDuel(), Unit::GetReactionTo(), WorldSession::HandleDuelAcceptedOpcode(), WorldSession::HandleDuelCancelledOpcode(), IsAlwaysDetectableFor(), achievement_tilted::OnCheck(), Unit::SetContestedPvP(), Unit::SetInCombatWith(), TeleportTo(), and UpdateDuelFlag().
|
private |
Referenced by RestoreHealthAfterDuel(), and SaveHealthBeforeDuel().
bool Player::isDebugAreaTriggers |
std::vector<ItemSetEffect*> Player::ItemSetEff |
Referenced by AddItemsSetItem(), RemoveItemsSetItem(), UpdateEquipSpellsAtFormChange(), and ~Player().
|
private |
Referenced by CheckAllAchievementCriteria(), CompletedAchievement(), GetAchievementMgr(), HasAchieved(), LoadFromDB(), Player(), RemoveTimedAchievement(), ResetAchievementCriteria(), ResetAchievements(), SaveToDB(), SendInitialPacketsBeforeAddToMap(), SendRespondInspectAchievements(), StartTimedAchievement(), Update(), UpdateAchievementCriteria(), and ~Player().
|
protected |
Referenced by _LoadActions(), _SaveActions(), addActionButton(), GetActionButton(), removeActionButton(), SendActionButtons(), and UpdateSpecCount().
|
protected |
Referenced by _addSpell(), _SaveActions(), _SaveCharacter(), ActivateSpec(), BuildPlayerTalentsInfoData(), GetActiveSpec(), GetActiveSpecMask(), GetGlyph(), GetSpec(), HasActiveSpell(), HasSpell(), HasTalent(), learnSpell(), LoadFromDB(), Player(), SendActionButtons(), SetActiveSpec(), SetGlyph(), and UpdateSpecCount().
|
protected |
Referenced by AdditionalSavingAddMask(), Player(), and SaveToDB().
|
protected |
Referenced by AdditionalSavingAddMask(), Player(), and SaveToDB().
|
protected |
Referenced by _ApplyAmmoBonuses(), GetAmmoDPS(), Player(), and RemoveAmmo().
|
protected |
|
protected |
Referenced by Player(), SetGameMaster(), Update(), and UpdateArea().
|
protected |
Referenced by GetArenaTeamIdInvited(), Player(), and SetArenaTeamIdInvited().
|
protected |
Referenced by AddArmorProficiency(), GetArmorProficiency(), and Player().
|
protected |
Referenced by _SaveCharacter(), HasAtLoginFlag(), LoadFromDB(), Player(), RemoveAtLoginFlag(), and SetAtLoginFlag().
|
protected |
|
protected |
Referenced by GetAuraUpdateMaskForRaid(), Player(), SendUpdateToOutOfRangeGroupMembers(), and SetAuraUpdateMaskForRaid().
|
protected |
Referenced by ApplyFeralAPBonus(), Player(), and UpdateAttackPowerAndDamage().
|
protected |
Referenced by ApplyHealthRegenBonus(), Player(), RegenerateAll(), and RegenerateHealth().
|
protected |
Referenced by ApplyManaRegenBonus(), Player(), and UpdateManaRegen().
|
protected |
Referenced by ApplyRatingMod(), Player(), and UpdateRating().
|
protected |
Referenced by ApplySpellPowerBonus(), GetBaseSpellPowerBonus(), and Player().
|
protected |
Referenced by CanReportAfkDueToLimit(), ClearAfkReports(), GetBattlegroundId(), GetBattlegroundTypeId(), GetBGData(), GetBgTeamId(), GetCurrentBattlegroundQueueSlot(), InBattleground(), IsCurrentBattlegroundRandom(), IsInvitedForBattlegroundInstance(), ReportedAfkBy(), SetBattlegroundId(), SetBGData(), and UpdateAfkReport().
|
private |
Referenced by HasDelayedTeleport(), Player(), and SetHasDelayedTeleport().
|
private |
Referenced by MustDelayTeleport(), Player(), and SetMustDelayTeleport().
|
protected |
Referenced by GetPassOnGroupLoot(), Player(), and SetPassOnGroupLoot().
|
protected |
Referenced by CanBlock(), Player(), and SetCanBlock().
|
private |
Referenced by CanKnockback(), Player(), and SetCanKnockback().
|
protected |
Referenced by CanParry(), Player(), and SetCanParry().
|
private |
Referenced by CanTeleport(), Player(), and SetCanTeleport().
|
protected |
Referenced by ActivateSpec(), CanTitanGrip(), Player(), resetTalents(), and SetCanTitanGrip().
|
private |
Referenced by GetChampioningFaction(), Player(), and SetChampioningFaction().
|
protected |
Referenced by CleanupChannels(), ClearChannelWatch(), JoinedChannel(), LeftChannel(), UpdateLFGChannel(), and UpdateLocalChannels().
|
protected |
Referenced by Player(), PrepareCharmAISpells(), and UpdateCharmedAI().
|
private |
Referenced by _LoadCharacterSettings(), _SavePlayerSettings(), GetPlayerSetting(), and UpdatePlayerSetting().
|
protected |
Referenced by UpdateSpeakTime().
|
protected |
Referenced by _SaveCharacter(), getCinematic(), LoadFromDB(), Player(), and setCinematic().
GuidUnorderedSet Player::m_clientGUIDs |
Referenced by Map::AddPlayerToMap(), WorldObject::DestroyForNearbyPlayers(), WorldSession::HandlePlayerLoginToCharInWorld(), HaveAtClient(), HaveAtClient(), SendQuestGiverStatusMultiple(), Map::SendRemoveTransports(), SendTaxiNodeStatusMultiple(), Acore::VisibleNotifier::SendToSelf(), UpdateForQuestWorldObjects(), UpdateTriggerVisibility(), UpdateVisibilityOf(), and UpdateVisibilityOf().
|
protected |
Referenced by Player(), ResetContestedPvP(), SetContestedPvPTimer(), and UpdateContestedPvP().
|
private |
Referenced by GetCreationTime(), Player(), and SetCreationTime().
|
protected |
Referenced by AddItemToBuyBackSlot(), Player(), and RemoveItemFromBuyBackSlot().
|
protected |
Referenced by _LoadDailyQuestStatus(), _SaveDailyQuestStatus(), Player(), ResetDailyQuestStatus(), and SetDailyQuestStatus().
|
protected |
|
protected |
Referenced by GetDeathTimer(), KillPlayer(), Player(), RemovedInsignia(), RepopAtGraveyard(), ResurrectPlayer(), and Update().
|
protected |
Referenced by _LoadDeclinedNames(), GetDeclinedNames(), Player(), and ~Player().
|
private |
Referenced by GetDelayedOperations(), Player(), ProcessDelayedOperations(), and ScheduleDelayedOperation().
DFQuestsDoneList Player::m_DFQuests |
Referenced by _LoadDailyQuestStatus(), _SaveDailyQuestStatus(), ResetDailyQuestStatus(), SatisfyQuestDay(), and SetDailyQuestStatus().
|
protected |
Referenced by GetDivider(), and SetDivider().
|
protected |
Referenced by HandleSobering(), Player(), SetDrunkValue(), and Update().
ObjectGuid Player::m_drwGUID |
Referenced by getRuneWeaponGUID(), and setRuneWeaponGUID().
|
protected |
Referenced by GetDifficulty(), GetDungeonDifficulty(), Player(), and SetDungeonDifficulty().
|
protected |
|
protected |
|
protected |
Referenced by _LoadEquipmentSets(), _SaveEquipmentSets(), DeleteEquipmentSet(), SendEquipmentSetList(), and SetEquipmentSet().
|
protected |
Referenced by GetExpertiseDodgeOrParryReduction(), and UpdateExpertise().
|
protected |
|
protected |
Referenced by _SaveCharacter(), CalculateCorpseReclaimDelay(), CanSeeDKPet(), CreateCorpse(), Has310Flyer(), isAcceptWhispers(), IsGameMaster(), isGMChat(), isGMVisible(), IsSpectator(), isTaxiCheater(), Player(), SetAcceptWhispers(), SetGameMaster(), SetGMChat(), SetGMVisible(), SetHas310Flyer(), SetIsSpectator(), SetPvPDeath(), SetShowDKPet(), SetTaxiCheater(), and UpdateCorpseReclaimDelay().
|
private |
Referenced by ActivateTaxiPathTo(), CleanupAfterTaxiFlight(), and Player().
|
protected |
Referenced by Player(), and RegenerateAll().
uint8 Player::m_forced_speed_changes[MAX_MOVE_TYPE] |
Referenced by WorldSession::HandleForceSpeedChangeAck(), Player(), and Unit::SetSpeed().
|
protected |
Referenced by GetGlobalCooldownMgr().
|
protected |
Referenced by _LoadGlyphs(), _SaveGlyphs(), ActivateSpec(), BuildPlayerTalentsInfoData(), GetGlyph(), Player(), and SetGlyph().
|
protected |
Referenced by _SaveCharacter(), GetGrantableLevels(), GiveLevel(), LoadFromDB(), Player(), and SetGrantableLevels().
|
protected |
|
protected |
Referenced by GetGroupInvite(), and SetGroupInvite().
|
protected |
Referenced by GetGroupUpdateFlag(), Player(), SendUpdateToOutOfRangeGroupMembers(), and SetGroupUpdateFlag().
|
protected |
Referenced by GetGuildIdInvited(), Player(), and SetGuildIdInvited().
uint16 Player::m_homebindAreaId |
Referenced by _LoadHomeBind(), Player(), SendInitialPacketsBeforeAddToMap(), and SetHomebind().
uint32 Player::m_homebindMapId |
Referenced by _LoadHomeBind(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandlePlayerLoginFromDB(), misc_commandscript::HandleUnstuckCommand(), LoadFromDB(), lfg::LFGPlayerScript::OnPlayerMapChanged(), Player(), Battlefield::PlayerAskToLeave(), Map::RemoveAllPlayers(), RepopAtGraveyard(), SendInitialPacketsBeforeAddToMap(), SetEntryPoint(), SetHomebind(), and TeleportToEntryPoint().
uint32 Player::m_HomebindTimer |
Referenced by Player(), and UpdateHomebindTime().
float Player::m_homebindX |
Referenced by _LoadHomeBind(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandlePlayerLoginFromDB(), misc_commandscript::HandleUnstuckCommand(), LoadFromDB(), lfg::LFGPlayerScript::OnPlayerMapChanged(), Player(), Battlefield::PlayerAskToLeave(), Map::RemoveAllPlayers(), RepopAtGraveyard(), SendInitialPacketsBeforeAddToMap(), SetEntryPoint(), SetHomebind(), and TeleportToEntryPoint().
float Player::m_homebindY |
Referenced by _LoadHomeBind(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandlePlayerLoginFromDB(), misc_commandscript::HandleUnstuckCommand(), LoadFromDB(), lfg::LFGPlayerScript::OnPlayerMapChanged(), Player(), Battlefield::PlayerAskToLeave(), Map::RemoveAllPlayers(), RepopAtGraveyard(), SendInitialPacketsBeforeAddToMap(), SetEntryPoint(), SetHomebind(), and TeleportToEntryPoint().
float Player::m_homebindZ |
Referenced by _LoadHomeBind(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandlePlayerLoginFromDB(), misc_commandscript::HandleUnstuckCommand(), LoadFromDB(), lfg::LFGPlayerScript::OnPlayerMapChanged(), Player(), Battlefield::PlayerAskToLeave(), Map::RemoveAllPlayers(), RepopAtGraveyard(), SendInitialPacketsBeforeAddToMap(), SetEntryPoint(), SetHomebind(), and TeleportToEntryPoint().
|
protected |
Referenced by GetInGameTime(), Player(), and SetInGameTime().
bool Player::m_InstanceValid |
|
protected |
Referenced by _LoadRandomBGStatus(), GetRandomWinner(), Player(), and SetRandomWinner().
std::set<Unit*> Player::m_isInSharedVisionOf |
Referenced by Unit::AddPlayerToVision(), Unit::RemovePlayerFromVision(), ~Player(), and Unit::~Unit().
|
private |
Referenced by ActivateTaxiPathTo(), OnGossipSelect(), Player(), and ToggleInstantFlight().
|
private |
Referenced by IsInWater(), Player(), and SetInWater().
|
protected |
Referenced by AddItemDurations(), RemoveItemDurations(), SendItemDurations(), and UpdateItemDuration().
|
protected |
Referenced by _ApplyAllItemMods(), _ApplyAllLevelScaleItemMods(), _RemoveAllItemMods(), _SaveInventory(), _StoreItem(), AddItemToBuyBackSlot(), AddToWorld(), BuildCreateUpdateBlockForPlayer(), Create(), CreateCorpse(), DestroyForPlayer(), DestroyItem(), GetAverageItemLevel(), GetAverageItemLevelForDF(), GetItemByPos(), GetItemFromBuyBackSlot(), LoadFromDB(), Player(), RemoveFromWorld(), RemoveItem(), RemoveItemFromBuyBackSlot(), UpdateAttackPowerAndDamage(), UpdateEquipSpellsAtFormChange(), UpdateSkillEnchantments(), VisualizeItem(), and ~Player().
|
protected |
Referenced by AddTradeableItem(), RemoveTradeableItem(), and UpdateSoulboundTradeItems().
|
protected |
Referenced by _SaveInventory(), Item::AddToUpdateQueueOf(), GetItemUpdateQueue(), and Item::RemoveFromUpdateQueueOf().
|
protected |
Referenced by _LoadInventory(), Item::AddToUpdateQueueOf(), Player(), and Item::RemoveFromUpdateQueueOf().
|
protected |
Referenced by _LoadDailyQuestStatus(), _SaveDailyQuestStatus(), Player(), ResetDailyQuestStatus(), and SetDailyQuestStatus().
|
private |
Referenced by Player(), SetFallInformation(), and UpdateFallInformationIfNeed().
|
private |
Referenced by HandleFall(), IsFalling(), Player(), SetFallInformation(), and UpdateFallInformationIfNeed().
|
protected |
Referenced by LoadFromDB(), Player(), and UpdateHonorFields().
|
protected |
Referenced by GetLastPetNumber(), Player(), and SetLastPetNumber().
|
protected |
Referenced by GetLastPotionId(), Player(), SetLastPotionId(), and UpdatePotionCooldown().
time_t Player::m_logintime |
Referenced by AddItemToBuyBackSlot(), and Player().
|
protected |
Referenced by GetLootGUID(), and SetLootGUID().
|
protected |
Referenced by _LoadMail(), _SaveMail(), AddMail(), GetMail(), GetMails(), GetMailSize(), RemoveMail(), and ~Player().
bool Player::m_mailsUpdated |
|
private |
Referenced by GetMapRef(), and SetMap().
|
private |
Referenced by HandleDrowning(), IsMirrorTimerActive(), Player(), and StopMirrorTimer().
|
private |
Referenced by HandleDrowning(), Player(), ProcessTerrainStatusUpdate(), and UpdateMirrorTimers().
|
private |
Referenced by HandleDrowning(), Player(), and UpdateMirrorTimers().
|
protected |
Referenced by _LoadMonthlyQuestStatus(), _SaveMonthlyQuestStatus(), Player(), ResetMonthlyQuestStatus(), and SetMonthlyQuestStatus().
|
protected |
|
protected |
Referenced by GetMountBlockId(), Player(), and SetMountBlockId().
SafeUnitPointer Player::m_mover |
Referenced by CanAlwaysSee(), WorldSession::HandleCancelChanneling(), WorldSession::HandleCastSpellOpcode(), WorldSession::HandleDismissControlledVehicle(), WorldSession::HandleForceSpeedChangeAck(), WorldSession::HandleGameobjectReportUse(), WorldSession::HandleMoveKnockBackAck(), WorldSession::HandleMovementOpcodes(), WorldSession::HandleMoveNotActiveMover(), WorldSession::HandleMoveRootAck(), WorldSession::HandleMoveSetCanFlyAckOpcode(), WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveTimeSkippedOpcode(), WorldSession::HandleMoveUnRootAck(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandlePlayerLoginOpcode(), WorldSession::HandleSetActiveMoverOpcode(), WorldSession::HandleSetRaidDifficultyOpcode(), ArenaSpectator::HandleSpectatorSpectateCommand(), WorldSession::HandleTeleportTimeout(), WorldSession::HandleTotemDestroyed(), WorldSession::HandleUseItemOpcode(), Unit::KnockbackFrom(), and SetMover().
|
protected |
Referenced by NeedToSaveGlyphs(), Player(), and SetNeedToSaveGlyphs().
|
protected |
Referenced by Player(), SetNeedZoneUpdate(), and UpdatePosition().
std::vector<Unit*> Player::m_newVisible |
time_t Player::m_nextMailDelivereTime |
Referenced by AddNewMailDeliverTime(), Player(), Update(), and UpdateNextMailTimeAndUnreads().
|
protected |
Referenced by GetNextSave(), GetSaveTimer(), LoadFromDB(), Player(), SaveToDB(), SetSaveTimer(), and Update().
|
protected |
Referenced by GetExpertiseDodgeOrParryReduction(), and UpdateExpertise().
|
private |
Referenced by GetLastPetSpell(), Player(), RemovePet(), and SetLastPetSpell().
|
protected |
Referenced by GetOriginalGroup(), GetOriginalGroupRef(), GetOriginalSubGroup(), and SetOriginalGroup().
uint32 Player::m_pendingSpectatorForBG |
Referenced by HasPendingSpectatorForBG(), Player(), and SetPendingSpectatorForBG().
uint32 Player::m_pendingSpectatorInviteInstanceId |
Referenced by GetPendingSpectatorInviteInstanceId(), Player(), and SetPendingSpectatorInviteInstanceId().
|
private |
Referenced by _LoadPetStable(), _SaveCharacter(), GetOrInitPetStable(), GetPetStable(), GetPetStable(), LoadPet(), and RemovePet().
uint32 Player::m_Played_time[MAX_PLAYED_TIME_INDEX] |
Referenced by _SaveCharacter(), Create(), GetLevelPlayedTime(), GetTotalPlayedTime(), GiveLevel(), LoadFromDB(), Player(), and Update().
|
protected |
Referenced by Player(), and Regenerate().
|
protected |
Referenced by _LoadQuestStatusRewarded(), CalculateTalentsPoints(), Player(), and RewardQuest().
|
protected |
Referenced by _LoadQuestStatus(), _SaveQuestStatus(), AddQuest(), AreaExploredOrEventHappens(), CanCompleteQuest(), CanShareQuest(), FailQuest(), GetQuestStatus(), getQuestStatusMap(), GetReqKillOrCastCurrentCount(), HasQuestForGO(), HasQuestForItem(), IsActiveQuest(), ItemAddedQuestCheck(), ItemRemovedQuestCheck(), KillCreditGO(), KilledMonsterCredit(), KilledPlayerCredit(), KilledPlayerCreditForQuest(), MoneyChanged(), RemoveActiveQuest(), ReputationChanged(), ReputationChanged2(), SatisfyQuestPrevChain(), SetQuestStatus(), TalkedToCreature(), and Update().
|
protected |
Referenced by _SaveQuestStatus(), AddQuest(), AdjustQuestReqItemCount(), AreaExploredOrEventHappens(), GetQuestStatusSaveMap(), ItemAddedQuestCheck(), ItemRemovedQuestCheck(), KillCreditGO(), KilledMonsterCredit(), KilledPlayerCreditForQuest(), RemoveActiveQuest(), SetQuestStatus(), TalkedToCreature(), and Update().
|
protected |
Referenced by GetDifficulty(), GetRaidDifficulty(), Player(), and SetRaidDifficulty().
|
protected |
Referenced by GetStoredRaidDifficulty(), Player(), and StoreRaidMapDifficulty().
|
protected |
Referenced by GetRealDodge(), Player(), and UpdateDodgePercentage().
|
protected |
Referenced by GetRealParry(), Player(), and UpdateParryPercentage().
uint32 Player::m_recallMap |
Referenced by Player(), and SaveRecallPosition().
float Player::m_recallO |
Referenced by Player(), and SaveRecallPosition().
float Player::m_recallX |
Referenced by Player(), and SaveRecallPosition().
float Player::m_recallY |
Referenced by Player(), and SaveRecallPosition().
float Player::m_recallZ |
Referenced by Player(), and SaveRecallPosition().
GuidSet Player::m_receivedSpectatorResetFor |
|
private |
Referenced by _SaveInventory(), AddRefundReference(), and DeleteRefundReference().
|
protected |
Referenced by Player(), Regenerate(), RegenerateAll(), and setRegenTimerCount().
|
private |
Referenced by GetReputationMgr(), GetReputationMgr(), LoadFromDB(), Player(), SaveToDB(), SendInitialPacketsBeforeAddToMap(), and ~Player().
|
protected |
Referenced by _SaveCharacter(), LoadFromDB(), Player(), resetTalents(), and resetTalentsCost().
|
protected |
Referenced by _SaveCharacter(), LoadFromDB(), Player(), resetTalents(), and resetTalentsCost().
|
protected |
Referenced by isResurrectRequested(), isResurrectRequestedBy(), and setResurrectRequestData().
|
protected |
Referenced by ProcessDelayedOperations(), ResurectUsingRequestData(), and setResurrectRequestData().
|
protected |
Referenced by ProcessDelayedOperations(), ResurectUsingRequestData(), and setResurrectRequestData().
|
protected |
Referenced by ResurectUsingRequestData(), and setResurrectRequestData().
|
protected |
Referenced by ResurectUsingRequestData(), and setResurrectRequestData().
|
protected |
Referenced by ResurectUsingRequestData(), and setResurrectRequestData().
|
protected |
Referenced by ResurectUsingRequestData(), and setResurrectRequestData().
|
protected |
|
protected |
Referenced by _SaveQuestStatus(), RemoveRewardedQuest(), and SetRewardedQuest().
|
protected |
Referenced by GetBaseRune(), GetCurrentRune(), GetGracePeriod(), GetLastUsedRune(), GetRuneCooldown(), GetRunesState(), InitRunes(), Player(), RemoveRunesByAuraEffect(), RestoreBaseRune(), SetBaseRune(), SetCurrentRune(), SetGracePeriod(), SetLastUsedRune(), SetRuneConvertAura(), SetRuneCooldown(), and ~Player().
|
protected |
|
protected |
WorldObject* Player::m_seer |
Referenced by ArenaSpectator::HandleSpectatorWatchCommand(), Player(), Unit::SetCharmedBy(), SetSeer(), SetViewpoint(), UpdateVisibilityForPlayer(), Acore::MessageDistDeliverer::Visit(), Acore::MessageDistDelivererToHostile::Visit(), Acore::CreatureRelocationNotifier::Visit(), Acore::MessageDistDeliverer::Visit(), and Acore::MessageDistDelivererToHostile::Visit().
|
protected |
Referenced by GetSession(), Player(), RemoveFromWorld(), RemovePet(), Satisfy(), SaveToDB(), SendDirectMessage(), SendLoot(), SetSession(), SwapItem(), UpdateLFGChannel(), and UpdateLocalChannels().
|
protected |
Referenced by GetSocial(), LoadFromDB(), and Player().
|
protected |
Referenced by AddTradeableItem(), RemoveTradeableItem(), and UpdateSoulboundTradeItems().
|
protected |
Referenced by _LoadGlyphs(), _SaveCharacter(), _SaveGlyphs(), BuildPlayerTalentsInfoData(), GetSpec(), GetSpecsCount(), LoadFromDB(), Player(), and SetSpecsCount().
|
private |
Referenced by _AddSpellCooldown(), _SaveSpellCooldowns(), ApplyEquipCooldown(), GetSpellCooldownDelay(), GetSpellCooldownMap(), GetSpellCooldownMap(), GetSpellCooldowns(), HasSpellCooldown(), HasSpellItemCooldown(), ModifySpellCooldown(), RemoveAllSpellCooldown(), RemoveArenaSpellCooldowns(), RemoveSpellCooldown(), and SendInitialSpells().
|
protected |
Referenced by AddSpellMod(), ApplySpellMod(), GetSpellModList(), RemoveSpellMods(), and RestoreSpellMods().
Spell* Player::m_spellModTakingSpell |
Referenced by ApplySpellMod(), Spell::cast(), Unit::HandleDummyAuraProc(), Player(), and SetSpellModTakingSpell().
|
protected |
Referenced by ApplySpellPenetrationBonus(), GetSpellPenetrationItemMod(), and Player().
|
protected |
|
protected |
Referenced by IsSummonAsSpectator(), Player(), SetSummonAsSpectator(), and SetSummonPoint().
|
protected |
Referenced by GetSummonExpireTimer(), IsSummonAsSpectator(), Player(), SetSummonPoint(), and SummonIfPossible().
|
protected |
Referenced by Player(), SetSummonPoint(), and SummonIfPossible().
|
protected |
Referenced by Player(), SetSummonPoint(), and SummonIfPossible().
|
protected |
Referenced by Player(), SetSummonPoint(), and SummonIfPossible().
|
protected |
Referenced by Player(), SetSummonPoint(), and SummonIfPossible().
|
protected |
Referenced by _removeTalent(), _removeTalent(), _SaveTalents(), ActivateSpec(), addTalent(), GetTalentMap(), HasTalent(), resetTalents(), SendInitialSpells(), and ~Player().
PlayerTaxi Player::m_taxi |
Referenced by _SaveCharacter(), ActivateTaxiPathTo(), CleanupAfterTaxiFlight(), ContinueTaxiFlight(), FlightPathMovementGenerator::DoFinalize(), FlightPathMovementGenerator::DoUpdate(), WorldSession::HandleMoveSplineDoneOpcode(), InitTaxiNodesForLevel(), LoadFromDB(), FlightPathMovementGenerator::LoadPath(), ProcessDelayedOperations(), WorldSession::SendTaxiMenu(), SendTaxiNodeStatusMultiple(), WorldSession::SendTaxiStatus(), and SetEntryPoint().
|
protected |
Referenced by GetTeamId(), Player(), SetFactionForRace(), and setTeamId().
|
private |
|
protected |
Referenced by AddTimedQuest(), RemoveTimedQuest(), SatisfyQuestTimed(), and Update().
|
protected |
|
protected |
Referenced by ActivateSpec(), addTalent(), InitTalentForLevel(), Player(), and resetTalents().
|
protected |
Referenced by CanEquipItem(), EquipItem(), Player(), setWeaponChangeTimer(), and Update().
|
protected |
Referenced by AddWeaponProficiency(), GetWeaponProficiency(), and Player().
|
protected |
Referenced by _LoadWeeklyQuestStatus(), _SaveWeeklyQuestStatus(), Player(), ResetWeeklyQuestStatus(), and SetWeeklyQuestStatus().
|
protected |
|
protected |
Referenced by Player(), RemoveFromWorld(), Update(), UpdateAreaDependentAuras(), and UpdateZone().
|
protected |
Referenced by Player(), Update(), and UpdateZone().
|
private |
Referenced by RestoreManaAfterDuel(), and SaveManaBeforeDuel().
ItemMap Player::mMitems |
Referenced by AddMItem(), GetMItem(), RemoveFromWorld(), RemoveMItem(), and ~Player().
|
private |
Referenced by GetSemaphoreTeleportFar(), IsBeingTeleported(), IsBeingTeleportedFar(), Player(), and SetSemaphoreTeleportFar().
|
private |
Referenced by GetSemaphoreTeleportNear(), IsBeingTeleported(), IsBeingTeleportedNear(), Player(), and SetSemaphoreTeleportNear().
|
protected |
Referenced by _LoadSkills(), _SaveSkills(), GetBaseSkillValue(), GetMaxSkillValue(), GetPureMaxSkillValue(), GetPureSkillValue(), GetSkillPermBonusValue(), GetSkillStatusMap(), GetSkillStatusMap(), GetSkillStep(), GetSkillTempBonusValue(), GetSkillValue(), HasSkill(), ModifySkillBonus(), SetSkill(), UpdateSkill(), UpdateSkillPro(), UpdateSkillsForLevel(), and UpdateSkillsToMaxSkillsForLevel().
PlayerMenu* Player::PlayerTalkClass |
Referenced by AddGossipItemFor(), AddGossipItemFor(), AddGossipItemFor(), ClearGossipMenuFor(), CloseGossipMenuFor(), Spell::EffectQuestStart(), go_wind_stone::go_wind_stoneAI::GossipSelect(), OPvPCapturePointZM_Graveyard::HandleGossipOption(), WorldSession::HandleGossipSelectOptionOpcode(), WorldSession::HandlePlayerLoginOpcode(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestgiverCancel(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), WorldSession::HandleQuestgiverQueryQuestOpcode(), WorldSession::HandleQuestgiverRequestRewardOpcode(), WorldSession::HandleQuestgiverStatusQueryOpcode(), WorldSession::HandleQuestQueryOpcode(), npc_wg_quest_giver::OnGossipHello(), npc_elder_clearwater::OnGossipHello(), npc_experience::OnGossipSelect(), npc_ulduar_expedition_commander::OnGossipSelect(), npc_cos_chromie_start::OnGossipSelect(), npc_cos_chromie_middle::OnGossipSelect(), npc_thrall_old_hillsbrad::OnGossipSelect(), npc_icc_buff_switcher::OnGossipSelect(), OnGossipSelect(), Player(), PrepareGossipMenu(), PrepareQuestMenu(), WorldSession::SendBindPoint(), SendGossipMenuFor(), SendPreparedGossip(), SendPreparedQuest(), npc_costumed_orphan_matron::sGossipHello(), npc_pet_trainer::npc_pet_trainerAI::sGossipSelect(), npc_stable_master::npc_stable_masterAI::sGossipSelect(), npc_echo_of_medivh::sGossipSelect(), npc_chesspiece::sGossipSelect(), npc_sergeant_bly::npc_sergeant_blyAI::sGossipSelect(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::sGossipSelect(), npc_zafod_boombox::npc_zafod_boomboxAI::sGossipSelect(), and ~Player().
PvPInfo Player::pvpInfo |
std::deque<PendingSpellCastRequest> Player::SpellQueue |
|
private |
Referenced by GetTeleportDest(), TeleportTo(), and Update().
|
private |
Referenced by Player(), TeleportTo(), and Update().
uint8 Player::unReadMails |
|
protected |
Referenced by AddWhisperWhiteList(), ClearWhisperWhiteList(), IsInWhisperWhiteList(), and RemoveFromWhisperWhiteList().