![]() |
TrinityCore
|
#include <Player.h>
Inheritance diagram for Player:Classes | |
| struct | BgBattlegroundQueueID_Rec |
| struct | ChatFloodThrottle |
| struct | ValuesUpdateForPlayerWithMaskSender |
Public Types | |
| typedef std::unordered_map< ObjectGuid::LowType, Item * > | ItemMap |
| typedef std::list< Channel * > | JoinedChannelsList |
| typedef std::set< uint32 > | DFQuestsDoneList |
Public Types inherited from Unit | |
| enum class | AreaTriggerRemoveReason : uint8 { Default , UnitDespawn } |
| typedef std::set< Unit * > | AttackerSet |
| typedef std::set< Unit * > | ControlList |
| typedef std::vector< Unit * > | UnitVector |
| typedef std::multimap< uint32, Aura * > | AuraMap |
| typedef std::pair< AuraMap::const_iterator, AuraMap::const_iterator > | AuraMapBounds |
| typedef std::pair< AuraMap::iterator, AuraMap::iterator > | AuraMapBoundsNonConst |
| typedef std::multimap< uint32, AuraApplication * > | AuraApplicationMap |
| typedef std::pair< AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator > | AuraApplicationMapBounds |
| typedef std::pair< AuraApplicationMap::iterator, AuraApplicationMap::iterator > | AuraApplicationMapBoundsNonConst |
| typedef std::multimap< AuraStateType, AuraApplication * > | AuraStateAurasMap |
| typedef std::pair< AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator > | AuraStateAurasMapBounds |
| typedef std::forward_list< AuraEffect * > | AuraEffectList |
| typedef std::forward_list< Aura * > | AuraList |
| typedef std::forward_list< AuraApplication * > | AuraApplicationList |
| typedef std::array< DiminishingReturn, DIMINISHING_MAX > | Diminishing |
| typedef std::vector< std::pair< uint32, AuraApplication * > > | AuraApplicationProcContainer |
| typedef std::set< AuraApplication *, VisibleAuraSlotCompare > | VisibleAuraContainer |
Static Public Member Functions | |
| static WeaponAttackType | GetAttackBySlot (uint8 slot, InventoryType inventoryType) |
| static bool | IsInventoryPos (uint16 pos) |
| static bool | IsInventoryPos (uint8 bag, uint8 slot) |
| static bool | IsEquipmentPos (uint16 pos) |
| static bool | IsEquipmentPos (uint8 bag, uint8 slot) |
| static bool | IsBagPos (uint16 pos) |
| static bool | IsBankPos (uint16 pos) |
| static bool | IsBankPos (uint8 bag, uint8 slot) |
| static bool | IsChildEquipmentPos (uint16 pos) |
| static bool | IsChildEquipmentPos (uint8 bag, uint8 slot) |
| static bool | IsAccountBankPos (uint16 pos) |
| static bool | IsAccountBankPos (uint8 bag, uint8 slot) |
| static uint32 | GetZoneIdFromDB (ObjectGuid guid) |
| static bool | LoadPositionFromDB (uint32 &mapid, float &x, float &y, float &z, float &o, bool &in_flight, ObjectGuid guid) |
| static bool | IsValidGender (uint8 Gender) |
| static bool | IsValidClass (uint8 Class) |
| static bool | IsValidRace (uint8 Race) |
| static void | SaveCustomizations (CharacterDatabaseTransaction trans, ObjectGuid::LowType guid, Trinity::IteratorPair< UF::ChrCustomizationChoice const * > customizations) |
| static void | SavePositionInDB (WorldLocation const &loc, uint16 zoneId, ObjectGuid guid, CharacterDatabaseTransaction trans) |
| static void | DeleteFromDB (ObjectGuid playerguid, uint32 accountId, bool updateRealmChars=true, bool deleteFinally=false) |
| static void | DeleteOldCharacters () |
| static void | DeleteOldCharacters (uint32 keepDays) |
| static int32 | IsAffectedBySpellmod (SpellInfo const *spellInfo, SpellModifier const *mod, Spell const *spell=nullptr) |
| static void | ApplyModToSpell (SpellModifier *mod, Spell *spell) |
| static void | RemoveFromGroup (Group *group, ObjectGuid guid, RemoveMethod method=GROUP_REMOVEMETHOD_DEFAULT, ObjectGuid kicker=ObjectGuid::Empty, char const *reason=nullptr) |
| static void | RemovePetitionsAndSigns (ObjectGuid guid) |
| static void | LeaveAllArenaTeams (ObjectGuid guid) |
| static Difficulty | CheckLoadedDungeonDifficultyID (Difficulty difficulty) |
| static Difficulty | CheckLoadedRaidDifficultyID (Difficulty difficulty) |
| static Difficulty | CheckLoadedLegacyRaidDifficultyID (Difficulty difficulty) |
| static void | OfflineResurrect (ObjectGuid const &guid, CharacterDatabaseTransaction trans) |
| static Team | TeamForRace (uint8 race) |
| static TeamId | TeamIdForRace (uint8 race) |
| static uint8 | GetFactionGroupForRace (uint8 race) |
| static DrunkenState | GetDrunkenstateByValue (uint8 value) |
| static uint64 | GetStartMoney (uint8 race, uint8 playerClass) |
Static Public Member Functions inherited from Unit | |
| static std::vector< AuraEffect * > | CopyAuraEffectList (AuraEffectList const &list) |
| static float | CalculateAverageResistReduction (WorldObject const *caster, SpellSchoolMask schoolMask, Unit const *victim, SpellInfo const *spellInfo=nullptr) |
| static void | DealDamageMods (Unit const *attacker, Unit const *victim, uint32 &damage, uint32 *absorb) |
| static uint32 | DealDamage (Unit *attacker, Unit *victim, uint32 damage, CleanDamage const *cleanDamage=nullptr, DamageEffectType damagetype=DIRECT_DAMAGE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *spellProto=nullptr, bool durabilityLoss=true) |
| static void | Kill (Unit *attacker, Unit *victim, bool durabilityLoss=true, bool skipSettingDeathState=false) |
| static void | DealHeal (HealInfo &healInfo) |
| static void | ProcSkillsAndAuras (Unit *actor, Unit *actionTarget, ProcFlagsInit const &typeMaskActor, ProcFlagsInit const &typeMaskActionTarget, ProcFlagsSpellType spellTypeMask, ProcFlagsSpellPhase spellPhaseMask, ProcFlagsHit hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo) |
| static void | ApplyResilience (Unit const *victim, int32 *damage) |
| static uint32 | SpellCriticalDamageBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit *victim) |
| static uint32 | SpellCriticalHealingBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit *victim) |
| static bool | IsDamageReducedByArmor (SpellSchoolMask damageSchoolMask, SpellInfo const *spellInfo=nullptr) |
| static uint32 | CalcArmorReducedDamage (Unit const *attacker, Unit *victim, uint32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=MAX_ATTACK, uint8 attackerLevel=0) |
| static uint32 | CalcSpellResistedDamage (Unit const *attacker, Unit *victim, uint32 damage, SpellSchoolMask schoolMask, SpellInfo const *spellInfo) |
| static void | CalcAbsorbResist (DamageInfo &damageInfo, Spell *spell=nullptr) |
| static void | CalcHealAbsorb (HealInfo &healInfo) |
Static Public Member Functions inherited from WorldObject | |
| static bool | InSamePhase (WorldObject const *a, WorldObject const *b) |
| static ReputationRank | GetFactionReactionTo (FactionTemplateEntry const *factionTemplateEntry, WorldObject const *target) |
Static Public Member Functions inherited from Object | |
| static WorldObject * | ToWorldObject (Object *o) |
| static WorldObject const * | ToWorldObject (Object const *o) |
| static Item * | ToItem (Object *o) |
| static Item const * | ToItem (Object const *o) |
| static Unit * | ToUnit (Object *o) |
| static Unit const * | ToUnit (Object const *o) |
| static Creature * | ToCreature (Object *o) |
| static Creature const * | ToCreature (Object const *o) |
| static Player * | ToPlayer (Object *o) |
| static Player const * | ToPlayer (Object const *o) |
| static GameObject * | ToGameObject (Object *o) |
| static GameObject const * | ToGameObject (Object const *o) |
| static Corpse * | ToCorpse (Object *o) |
| static Corpse const * | ToCorpse (Object const *o) |
| static DynamicObject * | ToDynObject (Object *o) |
| static DynamicObject const * | ToDynObject (Object const *o) |
| static AreaTrigger * | ToAreaTrigger (Object *o) |
| static AreaTrigger const * | ToAreaTrigger (Object const *o) |
| static SceneObject * | ToSceneObject (Object *o) |
| static SceneObject const * | ToSceneObject (Object const *o) |
| static Conversation * | ToConversation (Object *o) |
| static Conversation const * | ToConversation (Object const *o) |
Static Public Member Functions inherited from BaseEntity | |
| static ObjectGuid | GetGUID (BaseEntity const *o) |
Static Public Member Functions inherited from Position | |
| static float | NormalizeOrientation (float o) |
Protected Types | |
| typedef std::set< uint32 > | QuestSet |
| typedef std::unordered_map< uint32, time_t > | SeasonalQuestMapByQuest |
| typedef std::unordered_map< uint32, SeasonalQuestMapByQuest > | SeasonalQuestMapByEvent |
Protected Types inherited from Unit | |
| typedef std::vector< DynamicObject * > | DynObjectList |
| typedef std::list< GameObject * > | GameObjectList |
| typedef std::vector< AreaTrigger * > | AreaTriggerList |
Static Protected Member Functions | |
| static Item * | _LoadMailedItem (ObjectGuid const &playerGuid, Player *player, uint64 mailId, Mail *mail, Field *fields, ItemAdditionalLoadInfo *addionalData) |
Static Protected Member Functions inherited from BaseEntity | |
| static void | BuildEntityFragments (ByteBuffer &data, std::span< WowCS::EntityFragment const > fragments) |
Friends | |
| class | WorldSession |
| class | CinematicMgr |
| class | RestMgr |
| void | AddItemToUpdateQueueOf (Item *item, Player *player) |
| void | RemoveItemFromUpdateQueueOf (Item *item, Player *player) |
| typedef std::set<uint32> Player::DFQuestsDoneList |
| typedef std::unordered_map<ObjectGuid::LowType, Item*> Player::ItemMap |
| typedef std::list<Channel*> Player::JoinedChannelsList |
|
protected |
|
protected |
|
protected |
|
explicit |
Definition at line 163 of file Player.cpp.
References _activeCheats, _advancedCombatLoggingEnabled, _cinematicMgr, _CUFProfiles, _restMgr, _usePvpItemLevels, WowCS::EntityFragmentsHolder::Add(), AT_LOGIN_NONE, BATTLEGROUND_QUEUE_NONE, Player::BgBattlegroundQueueID_Rec::bgQueueTypeId, BUYBACK_SLOT_START, CHEAT_NONE, CONFIG_INTERVAL_SAVE, DIFFICULTY_10_N, DIFFICULTY_NORMAL, DIFFICULTY_NORMAL_RAID, GameTime::GetGameTime(), GetSession(), healthBeforeDuel, IN_MILLISECONDS, Player::BgBattlegroundQueueID_Rec::invitedToInstance, isDebugAreaTriggers, Player::BgBattlegroundQueueID_Rec::joinTime, m_achievementMgr, m_areaUpdateId, m_ArenaTeamIdInvited, m_ArmorProficiency, m_atLoginFlags, m_auraBaseFlatMod, m_auraBasePctMod, m_baseHealthRegen, m_baseManaRegen, m_baseRatingValue, m_baseSpellPower, m_bCanDelayTeleport, m_bgBattlegroundQueueID, m_bPassOnGroupLoot, m_canBlock, m_canParry, m_canTitanGrip, m_ChampioningFaction, m_cinematic, m_contestedPvPTimer, Unit::m_ControlledByPlayer, m_createMode, m_createTime, m_currentBuybackSlot, m_customizationsChanged, m_DailyQuestChanged, m_deathExpireTime, m_deathTimer, m_DelayedOperations, m_drunkTimer, m_dungeonDifficulty, m_empowerMinHoldStagePercent, BaseEntity::m_entityFragments, m_environmentalDamageTimer, m_ExtraFlags, m_fishingSteps, m_forced_speed_changes, m_groupUpdateMask, m_GuildIdInvited, m_healthFraction, m_homebindAreaId, m_HomebindTimer, m_hostileReferenceCheckTimer, m_ingametime, m_InstanceValid, WorldObject::m_isActive, m_IsBGRandomWinner, m_items, m_itemUpdateQueueBlocked, m_Last_tick, m_lastDailyQuestTime, m_lastFallTime, m_lastFallZ, m_lastHonorUpdateTime, m_lastpetnumber, m_legacyRaidDifficulty, m_logintime, m_mailsUpdated, m_MirrorTimerFlags, Unit::m_modMeleeHitChance, Unit::m_modRangedHitChance, Unit::m_modSpellHitChance, m_MonthlyQuestChanged, m_movementForceModMagnitudeChanges, m_movie, m_newWorldCounter, m_nextMailDelivereTime, m_nextSave, BaseEntity::m_objectTypeId, m_oldpetspell, m_Played_time, Unit::m_playerMovingMe, m_powerFraction, m_questObjectiveCriteriaMgr, m_raidDifficulty, m_regenInterruptTimestamp, Unit::m_regenTimer, m_regenTimerCount, m_reputationMgr, m_SeasonalQuestChanged, m_seer, m_session, m_sharedQuestId, m_social, m_spellModTakingSpell, m_spellPenetrationItemMod, m_summon_expire, m_team, m_teleport_options, m_teleport_state, m_teleportSpellId, m_temporaryUnsummonedPetNumber, m_titanGripArmorSubclasses, m_titanGripPenaltySpellId, m_titanGripWeaponSubclasses, m_trade, Unit::m_unitMovedByMe, m_weaponChangeTimer, m_WeaponProficiency, m_WeeklyQuestChanged, m_zoneUpdateId, manaBeforeDuel, MAX_CUF_PROFILES, Normal, NotTeleporting, GameTime::Now(), PLAYER_MAX_BATTLEGROUND_QUEUES, PLAYER_SLOTS_COUNT, PlayerTalkClass, rbac::RBAC_PERM_CAN_FILTER_WHISPERS, SetAcceptWhispers(), SetGroupInvite(), SetPendingBind(), sWorld, WowCS::Tag_Player, TEAM_OTHER, TELE_TO_NONE, TYPEID_PLAYER, UI64LIT, UNDERWATER_NONE, and unReadMails.
| Player::~Player | ( | ) |
Definition at line 357 of file Player.cpp.
References DeleteItemSetEffects(), ItemSetEff, m_items, m_mail, mMitems, PLAYER_SLOTS_COUNT, and sWorld.
| void Player::_ApplyAllItemMods | ( | ) |
Definition at line 8893 of file Player.cpp.
References _ApplyItemBonuses(), AddItemsSetItem(), ApplyArtifactPowers(), ApplyEnchantment(), ApplyItemDependentAuras(), ApplyItemEquipSpell(), Unit::CanUseAttackType(), GetAttackBySlot(), ItemTemplate::GetItemSet(), Item::GetTemplate(), m_items, MAX_ATTACK, REAGENT_BAG_SLOT_END, TC_LOG_DEBUG, and UpdateWeaponDependentAuras().
Referenced by _ApplyAllStatBonuses(), _LoadInventory(), and UpdateItemLevelAreaBasedScaling().
| void Player::_ApplyAllLevelScaleItemMods | ( | bool | apply | ) |
Definition at line 8937 of file Player.cpp.
References _ApplyItemMods(), AddItemsSetItem(), Unit::CanUseAttackType(), GetAttackBySlot(), Object::GetEntry(), ItemTemplate::GetItemSet(), Item::GetTemplate(), m_items, REAGENT_BAG_SLOT_END, RemoveItemsSetItem(), and sDB2Manager.
Referenced by GiveLevel(), and reset_commandscript::HandleResetLevelCommand().
| void Player::_ApplyAllStatBonuses | ( | ) |
Definition at line 935 of file StatSystem.cpp.
References Unit::_ApplyAllAuraStatMods(), _ApplyAllItemMods(), ApplyAllAzeriteItemMods(), Unit::SetCanModifyStats(), and UpdateAllStats().
Referenced by InitStatsForLevel().
Definition at line 7842 of file Player.cpp.
References _ApplyWeaponDamage(), ApplyHealthRegenBonus(), ApplyManaRegenBonus(), ApplyRatingMod(), ApplySpellPenetrationBonus(), ApplySpellPowerBonus(), BASE_VALUE, CR_ARMOR_PENETRATION, CR_AVOIDANCE, CR_BLOCK, CR_CORRUPTION, CR_CORRUPTION_RESISTANCE, CR_CRIT_MELEE, CR_CRIT_RANGED, CR_CRIT_SPELL, CR_DEFENSE_SKILL, CR_DODGE, CR_EXPERTISE, CR_HASTE_MELEE, CR_HASTE_RANGED, CR_HASTE_SPELL, CR_HIT_MELEE, CR_HIT_RANGED, CR_HIT_SPELL, CR_LIFESTEAL, CR_MASTERY, CR_PARRY, CR_PVP_POWER, CR_RESILIENCE_PLAYER_DAMAGE, CR_SPEED, CR_STURDINESS, CR_VERSATILITY_DAMAGE_DONE, CR_VERSATILITY_DAMAGE_TAKEN, CR_VERSATILITY_HEALING_DONE, FlatNegative, FlatPositive, ItemTemplate::GetArmor(), GetAttackBySlot(), ItemTemplate::GetClass(), GetIlvlStatMultiplier(), ItemTemplate::GetInventoryType(), Item::GetItemLevel(), Item::GetItemStatType(), Item::GetItemStatValue(), ItemTemplate::GetSubClass(), Item::GetTemplate(), Unit::HandleAttackPowerModifier(), Unit::HandleStatFlatModifier(), ITEM_CLASS_ARMOR, ITEM_MOD_AGI_INT, ITEM_MOD_AGI_STR, ITEM_MOD_AGI_STR_INT, ITEM_MOD_AGILITY, ITEM_MOD_ARCANE_RESISTANCE, ITEM_MOD_ARMOR_PENETRATION_RATING, ITEM_MOD_ATTACK_POWER, ITEM_MOD_BLOCK_RATING, ITEM_MOD_CORRUPTION, ITEM_MOD_CORRUPTION_RESISTANCE, ITEM_MOD_CR_AVOIDANCE, ITEM_MOD_CR_LIFESTEAL, ITEM_MOD_CR_SPEED, ITEM_MOD_CR_STURDINESS, ITEM_MOD_CRIT_MELEE_RATING, ITEM_MOD_CRIT_RANGED_RATING, ITEM_MOD_CRIT_RATING, ITEM_MOD_CRIT_SPELL_RATING, ITEM_MOD_CRIT_TAKEN_RANGED_RATING, ITEM_MOD_CRIT_TAKEN_RATING, ITEM_MOD_DEFENSE_SKILL_RATING, ITEM_MOD_DODGE_RATING, ITEM_MOD_EXPERTISE_RATING, ITEM_MOD_EXTRA_ARMOR, ITEM_MOD_FIRE_RESISTANCE, ITEM_MOD_FROST_RESISTANCE, ITEM_MOD_HASTE_MELEE_RATING, ITEM_MOD_HASTE_RANGED_RATING, ITEM_MOD_HASTE_RATING, ITEM_MOD_HASTE_SPELL_RATING, ITEM_MOD_HEALTH, ITEM_MOD_HEALTH_REGEN, ITEM_MOD_HIT_MELEE_RATING, ITEM_MOD_HIT_RANGED_RATING, ITEM_MOD_HIT_RATING, ITEM_MOD_HIT_SPELL_RATING, ITEM_MOD_HIT_TAKEN_RATING, ITEM_MOD_HOLY_RESISTANCE, ITEM_MOD_INTELLECT, ITEM_MOD_MANA, ITEM_MOD_MANA_REGENERATION, ITEM_MOD_MASTERY_RATING, ITEM_MOD_NATURE_RESISTANCE, ITEM_MOD_PARRY_RATING, ITEM_MOD_PVP_POWER, ITEM_MOD_RANGED_ATTACK_POWER, ITEM_MOD_RESILIENCE_RATING, ITEM_MOD_SHADOW_RESISTANCE, ITEM_MOD_SPELL_PENETRATION, ITEM_MOD_SPELL_POWER, ITEM_MOD_SPIRIT, ITEM_MOD_STAMINA, ITEM_MOD_STR_INT, ITEM_MOD_STRENGTH, ITEM_MOD_VERSATILITY, ITEM_SUBCLASS_ARMOR_SHIELD, m_activePlayerData, BaseEntity::m_values, MAX_ATTACK, MAX_ITEM_PROTO_STATS, Melee, UF::UpdateFieldHolder::ModifyValue(), Ranged, REAGENT_BAG_SLOT_END, sCombatRatingsMultByILvlGameTable, BaseEntity::SetUpdateFieldValue(), UF::ActivePlayerData::ShieldBlock, sStaminaMultByILvlGameTable, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, TOTAL_VALUE, UNIT_MOD_ARMOR, UNIT_MOD_HEALTH, UNIT_MOD_MANA, UNIT_MOD_RESISTANCE_ARCANE, UNIT_MOD_RESISTANCE_FIRE, UNIT_MOD_RESISTANCE_FROST, UNIT_MOD_RESISTANCE_HOLY, UNIT_MOD_RESISTANCE_NATURE, UNIT_MOD_RESISTANCE_SHADOW, UNIT_MOD_STAT_AGILITY, UNIT_MOD_STAT_INTELLECT, UNIT_MOD_STAT_SPIRIT, UNIT_MOD_STAT_STAMINA, UNIT_MOD_STAT_STRENGTH, and Unit::UpdateStatBuffMod().
Referenced by _ApplyAllItemMods(), _ApplyItemMods(), _RemoveAllItemMods(), and AzeriteItem::GiveXP().
Definition at line 7807 of file Player.cpp.
References _ApplyItemBonuses(), ApplyArtifactPowers(), ApplyAzeritePowers(), ApplyEnchantment(), ApplyItemDependentAuras(), ApplyItemEquipSpell(), CorrectMetaGemEnchants(), GetAttackBySlot(), BaseEntity::GetGUID(), ItemTemplate::GetInventoryType(), Item::GetSocketColor(), Item::GetTemplate(), Item::IsBroken(), MAX_ATTACK, REAGENT_BAG_SLOT_END, TC_LOG_DEBUG, ObjectGuid::ToString(), and UpdateWeaponDependentAuras().
Referenced by _ApplyAllLevelScaleItemMods(), DestroyItem(), DurabilityPointsLoss(), DurabilityRepair(), Spell::EffectRespecAzeriteEmpoweredItem(), EquipItem(), WorldSession::HandleAzeriteEmpoweredItemSelectPower(), WorldSession::HandleSocketGems(), and RemoveItem().
Definition at line 8130 of file Player.cpp.
References BASE_ATTACK, BASE_ATTACK_TIME, BASE_MAXDAMAGE, BASE_MINDAMAGE, Unit::CanModifyStats(), Unit::CanUseAttackType(), SpellShapeshiftFormEntry::CombatRoundTime, GetAttackBySlot(), ItemTemplate::GetDamage(), ItemTemplate::GetDelay(), ItemTemplate::GetDPS(), ItemTemplate::GetInventoryType(), Item::GetItemLevel(), Unit::GetShapeshiftForm(), Item::GetTemplate(), Unit::IsInFeralForm(), MAXDAMAGE, MINDAMAGE, OFF_ATTACK, RANGED_ATTACK, Unit::SetBaseAttackTime(), Unit::SetBaseWeaponDamage(), Unit::SetMainHandWeaponAttackPower(), Unit::SetOffHandWeaponAttackPower(), Unit::SetRangedWeaponAttackPower(), sSpellShapeshiftFormStore, and Unit::UpdateDamagePhysical().
Referenced by _ApplyItemBonuses(), AuraEffect::HandleAuraModDisarm(), and AuraEffect::HandleAuraModShapeshift().
Definition at line 6817 of file Player.cpp.
References AddHonorXP(), UF::PlayerData::HonorLevel, m_playerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::SetUpdateFieldValue(), and UpdateHonorNextLevel().
Referenced by LoadFromDB().
|
protected |
Definition at line 18947 of file Player.cpp.
References ACTIONBUTTON_DELETED, ACTIONBUTTON_UNCHANGED, AddActionButton(), BaseEntity::GetGUID(), WorldObject::GetName(), Field::GetUInt64(), Field::GetUInt8(), m_actionButtons, TC_LOG_DEBUG, and Position::ToString().
Referenced by LoadActions().
|
protected |
Definition at line 17589 of file Player.cpp.
References 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, ASSERT, ArenaTeam::GetCaptain(), BaseEntity::GetGUID(), ArenaTeam::GetSlot(), ArenaTeam::GetType(), Field::GetUInt16(), Field::GetUInt32(), sArenaTeamMgr, SetArenaTeamInfoField(), and TC_LOG_ERROR.
|
protected |
Definition at line 18974 of file Player.cpp.
References Unit::AddAura(), AuraLoadEffectInfo::Amounts, AuraLoadEffectInfo::BaseAmounts, ObjectGuid::BytesSize, DIFFICULTY_NONE, Field::GetBinaryView(), Field::GetDouble(), BaseEntity::GetGUID(), Field::GetInt32(), WorldObject::GetMap(), WorldLocation::GetMapId(), WorldObject::GetName(), Field::GetUInt32(), Field::GetUInt8(), SpellInfo::HasAttribute(), SpellInfo::Id, IN_MILLISECONDS, SpellInfo::IsPositive(), MAX_SPELL_EFFECTS, SpellInfo::ProcCharges, sDifficultyStore, AuraCreateInfo::SetBaseAmount(), AuraCreateInfo::SetCasterGUID(), AuraCreateInfo::SetCastItem(), ObjectGuid::SetRawValue(), AuraCreateInfo::SetStackAmount(), SPELL_ATTR4_AURA_EXPIRES_OFFLINE, SPELL_CAST_SOURCE_NORMAL, sSpellMgr, TC_LOG_DEBUG, TC_LOG_ERROR, Position::ToString(), and Aura::TryCreate().
Referenced by LoadFromDB().
|
protected |
Definition at line 17849 of file Player.cpp.
References BGData::bgInstanceID, BGData::bgTeam, BattlegroundQueueTypeId::FromPacked(), Field::GetUInt32(), BGData::joinPos, m_bgData, BGData::mountSpell, BGData::queueId, BGData::taxiPath, and WorldLocation::WorldLocation().
Referenced by LoadFromDB().
|
protected |
Definition at line 20361 of file Player.cpp.
References BaseEntity::AddDynamicUpdateFieldValue(), BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, UF::ActivePlayerData::CharacterBankTabSettings, DEFINE_FIELD_ACCESSOR_CACHE_ANONYMOUS, m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), and SetCharacterBankTabSettings().
Referenced by LoadFromDB().
|
protected |
Definition at line 18868 of file Player.cpp.
References _CUFProfiles, BaseEntity::GetGUID(), WorldObject::GetName(), Field::GetString(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt8(), MAX_CUF_PROFILES, TC_LOG_ERROR, and Position::ToString().
Referenced by LoadFromDB().
|
protected |
Definition at line 6893 of file Player.cpp.
References _currencyStorage, PlayerCurrency::EarnedQuantity, PlayerCurrency::Flags, Field::GetUInt16(), Field::GetUInt32(), PlayerCurrency::IncreasedCapQuantity, PLAYERCURRENCY_UNCHANGED, PlayerCurrency::Quantity, sCurrencyTypesStore, PlayerCurrency::state, PlayerCurrency::TrackedQuantity, and PlayerCurrency::WeeklyQuantity.
Referenced by LoadFromDB().
|
protected |
Definition at line 19787 of file Player.cpp.
References BaseEntity::AddDynamicUpdateFieldValue(), UF::ActivePlayerData::DailyQuestsCompleted, BaseEntity::GetGUID(), Field::GetInt64(), WorldObject::GetName(), Field::GetUInt32(), m_activePlayerData, m_DailyQuestChanged, m_DFQuests, m_lastDailyQuestTime, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), SetQuestCompletedBit(), sObjectMgr, TC_LOG_DEBUG, and Position::ToString().
Referenced by LoadFromDB().
|
protected |
Definition at line 17579 of file Player.cpp.
References UF::PlayerData::DeclinedNames, m_playerData, BaseEntity::m_values, MAX_DECLINED_NAME_CASES, UF::UpdateFieldHolder::ModifyValue(), UF::DeclinedNames::Name, and BaseEntity::SetUpdateFieldValue().
Referenced by LoadFromDB().
|
protected |
Definition at line 17630 of file Player.cpp.
References _equipmentSets, EquipmentSetInfo::EquipmentSetData::AssignedSpecIndex, EquipmentSetInfo::Data, EquipmentSetInfo::EQUIPMENT, EQUIPMENT_SET_UNCHANGED, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Field::GetString(), Field::GetUInt32(), Field::GetUInt64(), Field::GetUInt8(), EquipmentSetInfo::EquipmentSetData::Guid, EquipmentSetInfo::EquipmentSetData::IgnoreMask, MAX_EQUIPMENT_SET_INDEX, EquipmentSetInfo::EquipmentSetData::Pieces, EquipmentSetInfo::EquipmentSetData::SetIcon, EquipmentSetInfo::EquipmentSetData::SetID, EquipmentSetInfo::EquipmentSetData::SetName, EquipmentSetInfo::State, and EquipmentSetInfo::EquipmentSetData::Type.
Referenced by LoadFromDB().
|
protected |
Definition at line 19108 of file Player.cpp.
References CastSpell, GetActiveTalentGroup(), GetGlyphs(), and sGlyphPropertiesStore.
Referenced by LoadFromDB().
|
protected |
Definition at line 28408 of file Player.cpp.
References Unit::GetClass(), GetGlyphs(), Field::GetUInt16(), Field::GetUInt8(), MAX_SPECIALIZATIONS, sDB2Manager, and sGlyphPropertiesStore.
Referenced by LoadFromDB().
|
protected |
Definition at line 19965 of file Player.cpp.
References GetGroup(), BaseEntity::GetGUID(), GROUP_TYPE_NORMAL, PLAYER_FLAGS_GROUP_LEADER, RemovePlayerFlag(), ResetGroupUpdateSequenceIfNeeded(), SetDungeonDifficultyID(), SetGroup(), SetLegacyRaidDifficultyID(), SetPartyType(), SetPlayerFlag(), SetRaidDifficultyID(), and sGroupMgr.
Referenced by LoadFromDB().
|
protected |
Definition at line 20200 of file Player.cpp.
References ASSERT, AT_LOGIN_FIRST, CHAR_DEL_PLAYER_HOMEBIND, CHAR_INS_PLAYER_HOMEBIND, CharacterDatabase, PlayerInfo::createPosition, PlayerInfo::createPositionNPE, MapEntry::Expansion(), Unit::GetClass(), ObjectGuid::GetCounter(), PhasingHandler::GetEmptyPhaseShift(), BaseEntity::GetGUID(), WorldLocation::GetMapId(), WorldObject::GetName(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::GetRace(), GetSession(), GetTeam(), GetTeamId(), Field::GetUInt16(), HasAtLoginFlag(), MapEntry::Instanceable(), MapManager::IsValidMapCoord(), PlayerInfo::CreatePosition::Loc, WorldSafeLocsEntry::Loc, m_createMode, m_homebind, m_homebindAreaId, NPE, RACE_PANDAREN_NEUTRAL, PreparedStatementBase::setFloat(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt64(), sMapStore, sObjectMgr, sTerrainMgr, TC_LOG_DEBUG, TC_LOG_ERROR, Position::ToString(), PlayerInfo::CreatePosition::TransportGuid, and WorldLocation::WorldRelocate().
Referenced by LoadFromDB().
|
protected |
Definition at line 19137 of file Player.cpp.
References _ApplyAllItemMods(), _LoadItem(), MailDraft::AddItem(), CollectionMgr::AddItemAppearance(), ApplyAllAzeriteItemMods(), BankItem(), CanBankItem(), CanEquipItem(), CanStoreItem(), CharacterDatabase, CollectionMgr::CheckHeirloomUpgrades(), ObjectGuid::Empty, EQUIP_ERR_INTERNAL_BAG_ERROR, EQUIP_ERR_OK, WorldSession::GetCollectionMgr(), BaseEntity::GetGUID(), GetItemByGuid(), WorldObject::GetName(), GetSession(), WorldSession::GetTrinityString(), Field::GetUInt64(), Field::GetUInt8(), WorldObject::GetZoneId(), ItemAdditionalLoadInfo::Init(), INVENTORY_SLOT_BAG_0, IsBagPos(), IsBankPos(), IsEquipmentPos(), IsInventoryPos(), ITEM_FIELD_FLAG_CHILD, ITEM_UNCHANGED, LANG_NOT_EQUIPPED_ITEM, m_itemUpdateQueueBlocked, MAIL_CHECK_MASK_COPIED, MAIL_CHECK_MASK_NOT_RETURNABLE, MAIL_CHECK_MASK_RESTORED_ITEM, MAIL_STATIONERY_GM, Trinity::Containers::MapGetValuePtr(), MAX_MAIL_ITEMS, NULL_SLOT, QuickEquipItem(), MailDraft::SendMailTo(), StoreItem(), TC_LOG_ERROR, Item::ToBag(), ObjectGuid::ToString(), Position::ToString(), and UpdateInventorySlotCount().
Referenced by LoadFromDB().
|
private |
Definition at line 19327 of file Player.cpp.
References AddRefundReference(), AddTradeableItem(), CHAR_DEL_ITEM_REFUND_INSTANCE, CHAR_SEL_ITEM_BOP_TRADE, CHAR_SEL_ITEM_REFUNDS, CharacterDatabase, Item::ClearSoulboundTradeable(), AzeriteEmpoweredItem::DeleteFromDB(), AzeriteItem::DeleteFromDB(), Item::DeleteFromDB(), Item::DeleteFromInventoryDB(), Item::FSetState(), ObjectGuid::GetCounter(), BaseEntity::GetGUID(), WorldLocation::GetMapId(), ItemTemplate::GetMaxStackSize(), WorldObject::GetName(), Item::GetPlayedTime(), Item::GetTemplate(), GetTotalPlayedTime(), Field::GetUInt32(), Field::GetUInt64(), Unit::IsAlive(), Item::IsBOPTradeable(), Item::IsLimitedToAnotherMapOrZone(), Item::IsRefundable(), Item::IsRefundExpired(), Item::IsSoulBound(), ITEM_FIELD_FLAG_BOP_TRADEABLE, ITEM_FIELD_FLAG_REFUNDABLE, ITEM_FLAG_CONJURED, ITEM_REMOVED, Item::LoadFromDB(), MINUTE, NewItemOrBag(), Item::RemoveItemFlag(), Item::SaveToDB(), Item::SetPaidExtendedCost(), Item::SetPaidMoney(), Item::SetRefundRecipient(), Item::SetSoulboundTradeable(), PreparedStatementBase::setUInt64(), sGameEventMgr, sObjectMgr, TC_LOG_DEBUG, TC_LOG_ERROR, TC_LOG_WARN, Trinity::Tokenize(), ObjectGuid::ToString(), Position::ToString(), and UI64LIT.
Referenced by _LoadInventory().
|
protected |
Definition at line 19510 of file Player.cpp.
References _LoadMailedItem(), Mail::body, Mail::checked, Mail::COD, Mail::deliver_time, Mail::expire_time, BaseEntity::GetGUID(), Field::GetInt16(), Field::GetInt64(), Field::GetString(), Field::GetUInt32(), Field::GetUInt64(), Field::GetUInt8(), ItemAdditionalLoadInfo::Init(), m_mail, MAIL_STATE_UNCHANGED, Mail::mailTemplateId, Trinity::Containers::MapGetValuePtr(), Mail::messageID, Mail::messageType, Mail::money, Mail::receiver, Mail::sender, sMailTemplateStore, Mail::state, Mail::stationery, Mail::subject, TC_LOG_ERROR, and UpdateNextMailTimeAndUnreads().
Referenced by LoadFromDB().
|
staticprotected |
Definition at line 19455 of file Player.cpp.
References Mail::AddItem(), AddMItem(), CHAR_DEL_INVALID_MAIL_ITEM, CHAR_DEL_MAIL_ITEM, CharacterDatabase, AzeriteEmpoweredItem::DeleteFromDB(), AzeriteItem::DeleteFromDB(), Item::DeleteFromDB(), ObjectGuid::Empty, Item::FSetState(), WorldObject::GetName(), Field::GetUInt32(), Field::GetUInt64(), ITEM_REMOVED, Item::LoadAdditionalDataFromDB(), Item::LoadFromDB(), NewItemOrBag(), Item::SaveToDB(), PreparedStatementBase::setUInt64(), sObjectMgr, TC_LOG_ERROR, and ObjectGuid::ToString().
Referenced by _LoadMail(), and DeleteFromDB().
|
protected |
Definition at line 19882 of file Player.cpp.
References BaseEntity::GetGUID(), WorldObject::GetName(), Field::GetUInt32(), m_MonthlyQuestChanged, m_monthlyquests, SetQuestCompletedBit(), sObjectMgr, TC_LOG_DEBUG, and Position::ToString().
Referenced by LoadFromDB().
|
protected |
Definition at line 29997 of file Player.cpp.
References PetStable::PetInfo::ActionBar, AddPetToUpdateFields(), PetStable::PetInfo::CreatedBySpellId, PetStable::PetInfo::CreatureId, PetStable::PetInfo::DisplayId, PetStable::PetInfo::Experience, Field::GetBool(), Pet::GetLoadPetInfo(), Field::GetString(), Field::GetUInt16(), Field::GetUInt32(), PetStable::PetInfo::Health, HUNTER_PET, PetStable::PetInfo::LastSaveTime, PetStable::PetInfo::Level, m_petStable, m_temporaryUnsummonedPetNumber, PetStable::PetInfo::Mana, PetStable::PetInfo::Name, PET_SAVE_FIRST_ACTIVE_SLOT, PET_SAVE_FIRST_STABLE_SLOT, PET_SAVE_LAST_ACTIVE_SLOT, PET_SAVE_LAST_STABLE_SLOT, PET_SAVE_NOT_IN_SLOT, PET_STABLE_ACTIVE, PET_STABLE_INACTIVE, PetStable::PetInfo::PetNumber, PetStable::PetInfo::ReactState, PetStable::PetInfo::SpecializationId, PetStable::PetInfo::Type, and PetStable::PetInfo::WasRenamed.
Referenced by LoadFromDB().
|
protected |
Definition at line 20280 of file Player.cpp.
References UF::ActivePlayerData::AccountDataElements, UF::ActivePlayerData::BitVectors, UF::ActivePlayerData::CharacterDataElements, DEFINE_FIELD_ACCESSOR_CACHE_ANONYMOUS, WorldSession::PlayerDataAccount::Elements, WorldSession::PlayerDataAccount::Flags, Float, UF::PlayerDataElement::FloatValue, WorldSession::GetPlayerDataAccount(), GetSession(), PlayerDataElementAccountEntry::GetType(), PlayerDataElementCharacterEntry::GetType(), Int64, UF::PlayerDataElement::Int64Value, m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), PLAYER_DATA_FLAG_ACCOUNT_DATA_INDEX, PLAYER_DATA_FLAG_CHARACTER_DATA_INDEX, BaseEntity::SetUpdateFieldValue(), sPlayerDataElementAccountStore, sPlayerDataElementCharacterStore, PlayerDataElementAccountEntry::StorageIndex, PlayerDataElementCharacterEntry::StorageIndex, PlayerDataElementAccountEntry::Type, PlayerDataElementCharacterEntry::Type, UF::PlayerDataElement::Type, UF::BitVector::Values, and UF::BitVectors::Values.
Referenced by LoadFromDB().
|
protected |
Definition at line 28465 of file Player.cpp.
References AddPvpTalent(), MAX_PVP_TALENT_SLOTS, and sPvpTalentStore.
Referenced by LoadFromDB().
|
protected |
Definition at line 19567 of file Player.cpp.
References QuestStatusData::AcceptTime, AddTimedQuest(), CastSpell, DAY, QuestStatusData::Explored, GameTime::GetGameTime(), BaseEntity::GetGUID(), Quest::GetLimitTime(), WorldObject::GetName(), Quest::GetObjectives(), GetQuestRewardStatus(), Quest::GetSrcSpell(), Field::GetUInt32(), Field::GetUInt8(), Quest::HasFlag(), Quest::HasFlagEx(), IN_MILLISECONDS, Quest::IsDaily(), Quest::IsWeekly(), m_questObjectiveStatus, m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, MAX_QUEST_STATUS, QUEST_DELETE_SAVE_TYPE, QUEST_FLAGS_EX_RECAST_ACCEPT_SPELL_ON_LOGIN, QUEST_FLAGS_EX_REMOVE_ON_PERIODIC_RESET, QUEST_FLAGS_PLAYER_CAST_ACCEPT, QUEST_STATE_COMPLETE, QUEST_STATE_FAIL, QUEST_STATUS_COMPLETE, QUEST_STATUS_FAILED, QUEST_STATUS_INCOMPLETE, QUEST_STATUS_NONE, SendDirectMessage(), SetQuestSlot(), SetQuestSlotEndTime(), SetQuestSlotState(), QuestStatusData::Slot, sObjectMgr, QuestStatusData::Status, sWorld, TC_LOG_DEBUG, TC_LOG_ERROR, QuestStatusData::Timer, Position::ToString(), TRIGGERED_FULL_MASK, and WEEK.
Referenced by LoadFromDB().
|
protected |
Definition at line 19659 of file Player.cpp.
References BaseEntity::GetGUID(), Field::GetInt32(), WorldObject::GetName(), Field::GetUInt32(), Field::GetUInt8(), m_QuestStatus, MAX_QUEST_LOG_SIZE, Quest::Objectives, SetQuestSlotCounter(), SetQuestSlotObjectiveFlag(), QuestStatusData::Slot, sObjectMgr, TC_LOG_ERROR, and Position::ToString().
Referenced by LoadFromDB().
|
protected |
Definition at line 19700 of file Player.cpp.
References BaseEntity::GetGUID(), WorldObject::GetName(), Field::GetUInt32(), Field::GetUInt8(), m_QuestStatus, MAX_QUEST_LOG_SIZE, Quest::Objectives, sObjectMgr, QuestStatusData::SpawnTrackingList, TC_LOG_ERROR, and Position::ToString().
Referenced by LoadFromDB().
|
protected |
Definition at line 19741 of file Player.cpp.
References CollectionMgr::AddItemAppearance(), Quest::CanIncreaseRewardedQuestCounters(), WorldSession::GetCollectionMgr(), Quest::GetQuestPackageID(), Quest::GetRewChoiceItemsCount(), Quest::GetRewItemsCount(), Quest::GetRewTitle(), GetSession(), Field::GetUInt32(), Quest::IsDailyOrWeekly(), Quest::IsMonthly(), Quest::IsSeasonal(), LearnQuestRewardedSpells(), m_RewardedQuests, Quest::RewardChoiceItemId, Quest::RewardItemId, sCharTitlesStore, sDB2Manager, SetQuestCompletedBit(), SetTitle(), and sObjectMgr.
Referenced by LoadFromDB().
|
protected |
Definition at line 29969 of file Player.cpp.
References m_IsBGRandomWinner.
Referenced by LoadFromDB().
|
protected |
Definition at line 19854 of file Player.cpp.
References BaseEntity::GetGUID(), Field::GetInt64(), WorldObject::GetName(), Field::GetUInt32(), m_SeasonalQuestChanged, m_seasonalquests, SetQuestCompletedBit(), sObjectMgr, TC_LOG_DEBUG, and Position::ToString().
Referenced by LoadFromDB().
|
protected |
Definition at line 27226 of file Player.cpp.
References FindEmptyProfessionSlotFor(), Unit::GetClass(), BaseEntity::GetGUID(), Unit::GetMaxSkillValueForLevel(), WorldObject::GetName(), GetPureSkillValue(), Unit::GetRace(), GetSkillRangeType(), GetSkillStep(), GetSkillValue(), HasSkill(), LearnSkillRewardedSpells(), m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), mSkillStatus, SkillLineEntry::ParentSkillLineID, SkillLineEntry::ParentTierIndex, PLAYER_MAX_SKILLS, UF::ActivePlayerData::ProfessionSkillLine, sDB2Manager, SetSkill(), SetSkillLineId(), SetSkillMaxRank(), SetSkillPermBonus(), SetSkillRank(), SetSkillStartingRank(), SetSkillStep(), SetSkillTempBonus(), BaseEntity::SetUpdateFieldValue(), SKILL_CATEGORY_PROFESSION, SKILL_CATEGORY_SECONDARY, SKILL_CHANGED, SKILL_DELETED, SKILL_FIST_WEAPONS, SKILL_RANGE_LANGUAGE, SKILL_RANGE_LEVEL, SKILL_RANGE_MONO, SKILL_RANGE_RANK, SKILL_UNARMED, SKILL_UNCHANGED, SkillRaceClassInfoEntry::SkillID, SkillRaceClassInfoEntry::SkillTierID, sObjectMgr, sSkillLineStore, TC_LOG_ERROR, Position::ToString(), and SkillTiersEntry::Value.
Referenced by LoadFromDB().
|
protected |
Definition at line 19908 of file Player.cpp.
References AddSpell(), and m_spells.
Referenced by LoadFromDB().
|
protected |
Definition at line 19929 of file Player.cpp.
References DIFFICULTY_NONE, BaseEntity::GetGUID(), WorldObject::GetName(), Field::GetUInt32(), MapManager::IsValidMapCoord(), StoredAuraTeleportLocation::Loc, m_storedAuraTeleportLocations, sSpellMgr, StoredAuraTeleportLocation::State, TC_LOG_ERROR, Position::ToString(), and StoredAuraTeleportLocation::UNCHANGED.
Referenced by LoadFromDB().
|
protected |
Definition at line 28453 of file Player.cpp.
References AddTalent(), and sTalentStore.
Referenced by LoadFromDB().
|
protected |
Definition at line 28478 of file Player.cpp.
References UF::TraitSubTreeCache::Active, ActiveForSpec, AddTraitConfig(), ApplyTraitConfig(), AsUnderlyingType(), UF::TraitConfig::ChrSpecializationID, WorldPackets::Traits::TraitConfig::ChrSpecializationID, Combat, UF::TraitConfig::CombatConfigFlags, WorldPackets::Traits::TraitConfig::CombatConfigFlags, CreateTraitConfig(), WorldPackets::Traits::TraitConfig::Entries, UF::DynamicUpdateFieldBase< T >::FindIndexIf(), Generic, Unit::GetClass(), TraitMgr::GetGrantedTraitEntriesForConfig(), Field::GetInt32(), GetPrimarySpecialization(), GetSession(), WorldSession::GetSessionDbcLocale(), Field::GetStringView(), HasSkill(), UF::TraitConfig::ID, WorldPackets::Traits::TraitConfig::ID, TraitMgr::IsValidEntry(), UF::TraitConfig::LocalIdentifier, WorldPackets::Traits::TraitConfig::LocalIdentifier, m_activePlayerData, m_traitConfigStates, MAX_SPECIALIZATIONS, WorldPackets::Traits::TraitConfig::Name, TraitMgr::Ok, PLAYERSPELL_REMOVED, Profession, WorldPackets::Traits::TraitEntry::Rank, sDB2Manager, SetActiveCombatTraitConfigID(), SetCurrentCombatTraitConfigSubTreeID(), UF::TraitConfig::SkillLineID, WorldPackets::Traits::TraitConfig::SkillLineID, UF::TraitConfig::SubTrees, WorldPackets::Traits::TraitConfig::SubTrees, WorldPackets::Traits::TraitEntry::TraitNodeEntryID, WorldPackets::Traits::TraitEntry::TraitNodeID, WorldPackets::Traits::TraitConfig::TraitSystemID, UF::TraitConfig::Type, WorldPackets::Traits::TraitConfig::Type, TraitMgr::ValidateConfig(), and WorldPackets::Traits::TraitConfig::VariationID.
Referenced by LoadFromDB().
|
protected |
Definition at line 17663 of file Player.cpp.
References _equipmentSets, EquipmentSetInfo::EquipmentSetData::Appearances, EquipmentSetInfo::Data, EquipmentSetInfo::EquipmentSetData::Enchants, EQUIPMENT_SET_UNCHANGED, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Field::GetInt32(), Field::GetString(), Field::GetUInt32(), Field::GetUInt64(), Field::GetUInt8(), EquipmentSetInfo::EquipmentSetData::Guid, EquipmentSetInfo::EquipmentSetData::IgnoreMask, MAX_EQUIPMENT_SET_INDEX, EquipmentSetInfo::EquipmentSetData::SetIcon, EquipmentSetInfo::EquipmentSetData::SetID, EquipmentSetInfo::EquipmentSetData::SetName, EquipmentSetInfo::State, EquipmentSetInfo::TRANSMOG, and EquipmentSetInfo::EquipmentSetData::Type.
Referenced by LoadFromDB().
|
protected |
Definition at line 17700 of file Player.cpp.
References BaseEntity::AddDynamicUpdateFieldValue(), UF::TransmogOutfitSlotData::AppearanceDisplayType, WorldPackets::Transmogrification::TransmogOutfitSlotData::AppearanceDisplayType, AsUnderlyingType(), BaseEntity::ClearDynamicUpdateFieldValues(), CreateTransmogOutfit(), CustomSet, TransmogMgr::DefaultOutfitIcon, TransmogMgr::DefaultOutfitName, DEFINE_FIELD_ACCESSOR_CACHE_ANONYMOUS, UF::TransmogOutfitSituationInfo::EquipmentSetID, WorldPackets::Transmogrification::TransmogOutfitSituationInfo::EquipmentSetID, Equipped, EquipTransmogOutfit(), flags, UF::TransmogOutfitSlotData::Flags, WorldPackets::Transmogrification::TransmogOutfitSlotData::Flags, GetSession(), WorldSession::GetSessionDbcLocale(), TransmogOutfitEntryEntry::GetSetType(), TransmogMgr::GetSlotAndOption(), TransmogOutfitEntryEntry::HasFlag(), HOLIDAY_TRIAL_OF_STYLE, WorldPackets::Transmogrification::TransmogOutfitDataInfo::Icon, UF::TransmogOutfitSlotData::IllusionDisplayType, WorldPackets::Transmogrification::TransmogOutfitSlotData::IllusionDisplayType, InitializeNewTransmogOutfit(), IsHolidayActive(), UF::TransmogOutfitSlotData::ItemModifiedAppearanceID, WorldPackets::Transmogrification::TransmogOutfitSlotData::ItemModifiedAppearanceID, UF::TransmogOutfitSituationInfo::LoadoutID, WorldPackets::Transmogrification::TransmogOutfitSituationInfo::LoadoutID, m_activePlayerData, BaseEntity::m_values, Manual, UF::UpdateFieldHolder::ModifyValue(), TransmogOutfitEntryEntry::Name, WorldPackets::Transmogrification::TransmogOutfitDataInfo::Name, OnlyAvailableDuringEvent, Outfit, WorldPackets::Transmogrification::TransmogOutfitDataInfo::SetType, BaseEntity::SetUpdateFieldValue(), UF::TransmogOutfitSlotData::SheatheCategory, WorldPackets::Transmogrification::TransmogOutfitSlotData::SheatheCategory, UF::TransmogOutfitSituationInfo::SituationID, WorldPackets::Transmogrification::TransmogOutfitSituationInfo::SituationID, UF::TransmogOutfitData::Situations, WorldPackets::Transmogrification::TransmogOutfitDataInfo::SituationsEnabled, UF::TransmogOutfitSlotData::Slot, WorldPackets::Transmogrification::TransmogOutfitSlotData::Slot, TransmogMgr::TransmogOutfitSlotAndOptionInfo::SlotIndex, UF::TransmogOutfitSlotData::SlotOption, WorldPackets::Transmogrification::TransmogOutfitSlotData::SlotOption, UF::TransmogOutfitData::Slots, UF::TransmogOutfitSituationInfo::SpecID, WorldPackets::Transmogrification::TransmogOutfitSituationInfo::SpecID, UF::TransmogOutfitSlotData::SpellItemEnchantmentID, WorldPackets::Transmogrification::TransmogOutfitSlotData::SpellItemEnchantmentID, LocalizedString::Str, sTransmogOutfitEntryStore, UF::ActivePlayerData::TransmogOutfits, and UF::ActivePlayerData::ViewedOutfit.
Referenced by LoadFromDB().
|
protected |
Definition at line 19828 of file Player.cpp.
References BaseEntity::GetGUID(), WorldObject::GetName(), Field::GetUInt32(), m_WeeklyQuestChanged, m_weeklyquests, SetQuestCompletedBit(), sObjectMgr, TC_LOG_DEBUG, and Position::ToString().
Referenced by LoadFromDB().
| void Player::_RemoveAllItemMods | ( | ) |
Definition at line 8853 of file Player.cpp.
References _ApplyItemBonuses(), ApplyArtifactPowers(), ApplyEnchantment(), ApplyItemDependentAuras(), ApplyItemEquipSpell(), Unit::CanUseAttackType(), GetAttackBySlot(), ItemTemplate::GetItemSet(), Item::GetTemplate(), m_items, REAGENT_BAG_SLOT_END, RemoveItemsSetItem(), and TC_LOG_DEBUG.
Referenced by _RemoveAllStatBonuses(), and UpdateItemLevelAreaBasedScaling().
| void Player::_RemoveAllStatBonuses | ( | ) |
Definition at line 948 of file StatSystem.cpp.
References Unit::_RemoveAllAuraStatMods(), _RemoveAllItemMods(), ApplyAllAzeriteItemMods(), Unit::SetCanModifyStats(), and UpdateAllStats().
Referenced by InitStatsForLevel().
|
protected |
Definition at line 20834 of file Player.cpp.
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, GetActiveTalentGroup(), ObjectGuid::GetCounter(), BaseEntity::GetGUID(), GetTraitConfig(), UF::TraitConfig::LocalIdentifier, m_actionButtons, m_activePlayerData, PreparedStatementBase::setInt32(), PreparedStatementBase::setUInt64(), and PreparedStatementBase::setUInt8().
Referenced by ActivateTalentGroup(), SaveToDB(), and UpdateTraitConfig().
|
protected |
Definition at line 20905 of file Player.cpp.
References AuraKey::Caster, CHAR_DEL_CHAR_AURA, CHAR_DEL_CHAR_AURA_EFFECT, CHAR_INS_AURA, CHAR_INS_AURA_EFFECT, CharacterDatabase, AuraKey::EffectMask, Aura::GenerateKey(), Aura::GetAuraEffects(), Aura::GetCastDifficulty(), Aura::GetCastItemId(), Aura::GetCastItemLevel(), Aura::GetCharges(), ObjectGuid::GetCounter(), Aura::GetDuration(), BaseEntity::GetGUID(), Aura::GetMaxDuration(), ObjectGuid::GetRawValue(), Aura::GetStackAmount(), AuraKey::Item, Unit::m_ownedAuras, PreparedStatementBase::setBinary(), PreparedStatementBase::setDouble(), PreparedStatementBase::setInt32(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), and AuraKey::SpellId.
Referenced by SaveToDB().
|
protected |
Definition at line 28337 of file Player.cpp.
References BGData::bgInstanceID, BGData::bgTeam, CHAR_DEL_PLAYER_BGDATA, CHAR_INS_PLAYER_BGDATA, CharacterDatabase, BaseEntity::GetGUID(), WorldLocation::GetMapId(), Position::GetOrientation(), BattlegroundQueueTypeId::GetPacked(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), BGData::joinPos, m_bgData, BGData::mountSpell, BGData::queueId, PreparedStatementBase::setFloat(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), and BGData::taxiPath.
Referenced by SaveToDB().
|
protected |
Definition at line 21679 of file Player.cpp.
References CHAR_DEL_CHARACTER_BANK_TAB_SETTINGS, CHAR_INS_CHARACTER_BANK_TAB_SETTINGS, CharacterDatabase, UF::BankTabSettings::DepositFlags, UF::BankTabSettings::Description, BaseEntity::GetGUID(), UF::BankTabSettings::Icon, m_activePlayerData, UF::BankTabSettings::Name, PreparedStatementBase::setInt32(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt64(), and PreparedStatementBase::setUInt8().
Referenced by SaveToDB().
|
protected |
Definition at line 31254 of file Player.cpp.
References UF::TransmogOutfitSlotData::AppearanceDisplayType, Assigned, CHAR_DEL_CHARACTER_SELECT_EQUIPMENT_CACHE_CUSTOMIZATIONS, CHAR_INS_CHARACTER_SELECT_EQUIPMENT_CACHE_CUSTOMIZATIONS, CharacterDatabase, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_START, ObjectGuid::GetCounter(), BaseEntity::GetGUID(), GetItemByPos(), TransmogMgr::GetSlotAndOption(), Hidden, TransmogHolidayEntry::ID, UF::TransmogOutfitSlotData::IllusionDisplayType, INVENTORY_SLOT_BAG_0, INVTYPE_NON_EQUIP, IsHolidayActive(), UF::TransmogOutfitSlotData::ItemModifiedAppearanceID, LocationCharacterSelect, m_activePlayerData, m_playerData, None, TransmogHolidayEntry::RequiredTransmogHoliday, Trinity::Containers::SelectRandomContainerElement(), PreparedStatementBase::setInt32(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), UF::TransmogOutfitSlotData::SheatheCategory, sItemAppearanceStore, sItemModifiedAppearanceStore, sItemStore, UF::TransmogOutfitSituationInfo::SituationID, UF::TransmogOutfitData::Slots, UF::TransmogOutfitSlotData::SpellItemEnchantmentID, sSpellItemEnchantmentStore, sTransmogHolidayStore, sTransmogOutfitSlotInfoStore, and sTransmogSituationStore.
Referenced by SaveToDB().
|
protected |
Definition at line 21093 of file Player.cpp.
References _CUFProfiles, CHAR_DEL_CHAR_CUF_PROFILES_BY_ID, CHAR_REP_CHAR_CUF_PROFILES, CharacterDatabase, BaseEntity::GetGUID(), MAX_CUF_PROFILES, PreparedStatementBase::setString(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), and PreparedStatementBase::setUInt8().
Referenced by SaveToDB().
|
protected |
Definition at line 6922 of file Player.cpp.
References _currencyStorage, AsUnderlyingType(), CHAR_REP_PLAYER_CURRENCY, CHAR_UPD_PLAYER_CURRENCY, CharacterDatabase, ObjectGuid::GetCounter(), BaseEntity::GetGUID(), PLAYERCURRENCY_CHANGED, PLAYERCURRENCY_NEW, PLAYERCURRENCY_UNCHANGED, sCurrencyTypesStore, PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), and PreparedStatementBase::setUInt8().
Referenced by SaveInventoryAndGoldToDB(), and SaveToDB().
|
protected |
Definition at line 20824 of file Player.cpp.
References BaseEntity::GetGUID(), m_customizationsChanged, m_playerData, Trinity::Containers::MakeIteratorPair(), and SavePlayerCustomizations().
Referenced by SaveToDB().
|
protected |
Definition at line 21314 of file Player.cpp.
References CHAR_DEL_CHARACTER_QUESTSTATUS_DAILY, CHAR_INS_CHARACTER_QUESTSTATUS_DAILY, CharacterDatabase, ObjectGuid::GetCounter(), BaseEntity::GetGUID(), m_activePlayerData, m_DailyQuestChanged, m_DFQuests, m_lastDailyQuestTime, PreparedStatementBase::setInt64(), PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt64().
Referenced by SaveToDB().
|
protected |
Definition at line 28178 of file Player.cpp.
References _equipmentSets, EquipmentSetInfo::EquipmentSetData::Appearances, EquipmentSetInfo::EquipmentSetData::AssignedSpecIndex, CHAR_DEL_EQUIP_SET, CHAR_DEL_TRANSMOG_OUTFIT, CHAR_INS_EQUIP_SET, CHAR_INS_TRANSMOG_OUTFIT, CHAR_UPD_EQUIP_SET, CHAR_UPD_TRANSMOG_OUTFIT, CharacterDatabase, EquipmentSetInfo::Data, EquipmentSetInfo::EquipmentSetData::Enchants, EquipmentSetInfo::EQUIPMENT, EQUIPMENT_SET_CHANGED, EQUIPMENT_SET_DELETED, EQUIPMENT_SET_NEW, EQUIPMENT_SET_UNCHANGED, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, ObjectGuid::GetCounter(), BaseEntity::GetGUID(), EquipmentSetInfo::EquipmentSetData::Guid, EquipmentSetInfo::EquipmentSetData::IgnoreMask, EquipmentSetInfo::EquipmentSetData::Pieces, EquipmentSetInfo::EquipmentSetData::SetIcon, EquipmentSetInfo::EquipmentSetData::SetID, PreparedStatementBase::setInt32(), EquipmentSetInfo::EquipmentSetData::SetName, PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), EquipmentSetInfo::State, and EquipmentSetInfo::EquipmentSetData::Type.
Referenced by SaveToDB().
|
protected |
Definition at line 28431 of file Player.cpp.
References CHAR_DEL_CHAR_GLYPHS, CHAR_INS_CHAR_GLYPHS, CharacterDatabase, ObjectGuid::GetCounter(), GetGlyphs(), BaseEntity::GetGUID(), MAX_SPECIALIZATIONS, PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt64(), and PreparedStatementBase::setUInt8().
Referenced by SaveToDB().
|
protected |
Definition at line 20959 of file Player.cpp.
References BUYBACK_SLOT_END, BUYBACK_SLOT_START, CHAR_DEL_CHAR_INVENTORY_BY_BAG_SLOT, CHAR_DEL_CHAR_INVENTORY_BY_ITEM, CHAR_REP_INVENTORY_ITEM, CharacterDatabase, Item::DeleteFromDB(), Item::DeleteFromInventoryDB(), DeleteRefundReference(), Item::FSetState(), Item::GetBagSlot(), Item::GetContainer(), ObjectGuid::GetCounter(), BaseEntity::GetGUID(), GetItemByGuid(), GetItemByPos(), WorldObject::GetName(), Item::GetSlot(), Item::GetState(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, ITEM_CHANGED, ITEM_FLAG_HAS_LOOT, ITEM_NEW, ITEM_REMOVED, ITEM_UNCHANGED, m_enchantDuration, m_items, m_itemUpdateQueue, m_refundableItems, RemoveEnchantmentDurationsReferences(), RemoveItemDurations(), RemoveTradeableItem(), Item::SaveToDB(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), sLootItemStorage, TC_LOG_ERROR, ObjectGuid::ToString(), Position::ToString(), and UI64LIT.
Referenced by SaveInventoryAndGoldToDB(), and SaveToDB().
|
protected |
Definition at line 21129 of file Player.cpp.
References CHAR_DEL_MAIL_BY_ID, CHAR_DEL_MAIL_ITEM, CHAR_DEL_MAIL_ITEM_BY_ID, CHAR_UPD_MAIL, CharacterDatabase, Mail::checked, Mail::COD, AzeriteEmpoweredItem::DeleteFromDB(), AzeriteItem::DeleteFromDB(), Item::DeleteFromDB(), Mail::deliver_time, Mail::expire_time, Mail::HasItems(), Mail::items, m_mail, m_mailsUpdated, MAIL_STATE_CHANGED, MAIL_STATE_DELETED, MAIL_STATE_UNCHANGED, Mail::messageID, Mail::money, Mail::removedItems, PreparedStatementBase::setInt64(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), and Mail::state.
Referenced by WorldSession::HandleMailTakeItem(), WorldSession::HandleMailTakeMoney(), and SaveToDB().
|
protected |
Definition at line 21407 of file Player.cpp.
References CHAR_DEL_CHARACTER_QUESTSTATUS_MONTHLY, CHAR_INS_CHARACTER_QUESTSTATUS_MONTHLY, CharacterDatabase, ObjectGuid::GetCounter(), BaseEntity::GetGUID(), m_MonthlyQuestChanged, m_monthlyquests, PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt64().
Referenced by SaveToDB().
|
protected |
Definition at line 21615 of file Player.cpp.
References _playerDataElementsNeedSave, _playerDataFlagsNeedSave, CHAR_DEL_PLAYER_DATA_ELEMENTS_CHARACTER, CHAR_DEL_PLAYER_DATA_FLAGS_CHARACTER, CHAR_INS_PLAYER_DATA_ELEMENTS_CHARACTER, CHAR_INS_PLAYER_DATA_FLAGS_CHARACTER, CharacterDatabase, Trinity::Containers::FlatSet< Key, Compare, KeyContainer >::clear(), Float, UF::PlayerDataElement::FloatValue, ObjectGuid::GetCounter(), BaseEntity::GetGUID(), PlayerDataElementCharacterEntry::GetType(), Int64, UF::PlayerDataElement::Int64Value, m_activePlayerData, PLAYER_DATA_FLAG_CHARACTER_DATA_INDEX, PreparedStatementBase::setFloat(), PreparedStatementBase::setInt64(), PreparedStatementBase::setNull(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), sPlayerDataElementCharacterStore, and PlayerDataElementCharacterEntry::StorageIndex.
Referenced by SaveToDB().
|
protected |
Definition at line 21199 of file Player.cpp.
References QuestStatusData::AcceptTime, ASSERT_NOTNULL, CHAR_DEL_CHAR_QUESTSTATUS_BY_QUEST, CHAR_DEL_CHAR_QUESTSTATUS_OBJECTIVES_BY_QUEST, CHAR_DEL_CHAR_QUESTSTATUS_OBJECTIVES_SPAWN_TRACKING_BY_QUEST, CHAR_DEL_CHAR_QUESTSTATUS_REWARDED_BY_QUEST, CHAR_INS_CHAR_QUESTSTATUS_REWARDED, CHAR_REP_CHAR_QUESTSTATUS, CHAR_REP_CHAR_QUESTSTATUS_OBJECTIVES, CHAR_REP_CHAR_QUESTSTATUS_OBJECTIVES_SPAWN_TRACKING, CharacterDatabase, CharacterDatabaseCleaner::CLEANING_FLAG_QUESTSTATUS, QuestStatusData::Explored, ObjectGuid::GetCounter(), BaseEntity::GetGUID(), Quest::GetObjectives(), GetQuestSlotEndTime(), GetQuestSlotObjectiveData(), m_QuestStatus, m_QuestStatusSave, m_RewardedQuestsSave, QUEST_DEFAULT_SAVE_TYPE, QUEST_FORCE_DELETE_SAVE_TYPE, QUEST_STATUS_NONE, PreparedStatementBase::setBool(), PreparedStatementBase::setInt32(), PreparedStatementBase::setInt64(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), QuestStatusData::Slot, sObjectMgr, QuestStatusData::SpawnTrackingList, QuestStatusData::Status, and sWorld.
Referenced by SaveToDB().
|
protected |
Definition at line 21373 of file Player.cpp.
References CHAR_DEL_CHARACTER_QUESTSTATUS_SEASONAL, CHAR_INS_CHARACTER_QUESTSTATUS_SEASONAL, CharacterDatabase, ObjectGuid::GetCounter(), BaseEntity::GetGUID(), m_SeasonalQuestChanged, m_seasonalquests, PreparedStatementBase::setInt64(), PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt64().
Referenced by SaveToDB().
|
protected |
Definition at line 21430 of file Player.cpp.
References CHAR_DEL_CHAR_SKILL_BY_SKILL, CHAR_INS_CHAR_SKILLS, CHAR_UPD_CHAR_SKILLS, CharacterDatabase, BaseEntity::GetGUID(), GetProfessionSlotFor(), GetSkillMaxRankByPos(), GetSkillRankByPos(), mSkillStatus, PreparedStatementBase::setInt8(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt64(), SKILL_CHANGED, SKILL_DELETED, SKILL_NEW, and SKILL_UNCHANGED.
Referenced by SaveToDB().
|
protected |
Definition at line 21481 of file Player.cpp.
References CHAR_DEL_CHAR_SPELL_BY_SPELL, CHAR_DEL_CHAR_SPELL_FAVORITE, CHAR_INS_CHAR_SPELL, CHAR_INS_CHAR_SPELL_FAVORITE, CharacterDatabase, ObjectGuid::GetCounter(), BaseEntity::GetGUID(), m_spells, PLAYERSPELL_CHANGED, PLAYERSPELL_NEW, PLAYERSPELL_REMOVED, PLAYERSPELL_TEMPORARY, PLAYERSPELL_UNCHANGED, PreparedStatementBase::setBool(), PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt64().
Referenced by ResetTalents(), and SaveToDB().
|
protected |
Definition at line 21572 of file Player.cpp.
References CHAR_DEL_CHAR_STATS, CHAR_INS_CHAR_STATS, CharacterDatabase, CONFIG_MIN_LEVEL_STAT_SAVE, CR_RESILIENCE_PLAYER_DAMAGE, GetBaseSpellPowerBonus(), BaseEntity::GetGUID(), Unit::GetLevel(), Unit::GetMaxHealth(), Unit::GetResistance(), Unit::GetStat(), m_activePlayerData, Unit::m_unitData, MAX_POWERS_PER_CLASS, MAX_SPELL_SCHOOL, MAX_STATS, PreparedStatementBase::setFloat(), PreparedStatementBase::setInt32(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), and sWorld.
Referenced by SaveToDB().
|
protected |
Definition at line 21535 of file Player.cpp.
References StoredAuraTeleportLocation::CHANGED, CHAR_DEL_CHARACTER_AURA_STORED_LOCATION, CHAR_INS_CHARACTER_AURA_STORED_LOCATION, CharacterDatabase, StoredAuraTeleportLocation::DELETED, ObjectGuid::GetCounter(), BaseEntity::GetGUID(), WorldLocation::GetMapId(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), StoredAuraTeleportLocation::Loc, m_storedAuraTeleportLocations, PreparedStatementBase::setFloat(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), and StoredAuraTeleportLocation::State.
Referenced by SaveToDB().
|
protected |
Definition at line 28649 of file Player.cpp.
References CHAR_DEL_CHAR_PVP_TALENT, CHAR_DEL_CHAR_TALENT, CHAR_INS_CHAR_PVP_TALENT, CHAR_INS_CHAR_TALENT, CharacterDatabase, ObjectGuid::GetCounter(), BaseEntity::GetGUID(), GetPvpTalentMap(), GetTalentMap(), MAX_SPECIALIZATIONS, PLAYERSPELL_REMOVED, PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), and PreparedStatementBase::setUInt8().
Referenced by ResetTalents(), and SaveToDB().
|
protected |
Definition at line 28693 of file Player.cpp.
References CHAR_DEL_CHAR_ACTION_BY_TRAIT_CONFIG, CHAR_DEL_CHAR_TRAIT_CONFIGS, CHAR_DEL_CHAR_TRAIT_ENTRIES, CHAR_INS_CHAR_TRAIT_CONFIGS, CHAR_INS_CHAR_TRAIT_ENTRIES, CharacterDatabase, Combat, Generic, ObjectGuid::GetCounter(), BaseEntity::GetGUID(), GetTraitConfig(), m_traitConfigStates, PLAYERSPELL_CHANGED, PLAYERSPELL_REMOVED, Profession, PreparedStatementBase::setInt32(), PreparedStatementBase::setNull(), PreparedStatementBase::setString(), and PreparedStatementBase::setUInt64().
Referenced by SaveToDB().
|
protected |
Definition at line 28271 of file Player.cpp.
References CHAR_DEL_TRANSMOG_OUTFIT_2, CHAR_DEL_TRANSMOG_OUTFIT_SITUATION, CHAR_DEL_TRANSMOG_OUTFIT_SLOT, CHAR_INS_TRANSMOG_OUTFIT_2, CHAR_INS_TRANSMOG_OUTFIT_SITUATION, CHAR_INS_TRANSMOG_OUTFIT_SLOT, CharacterDatabase, ObjectGuid::GetCounter(), BaseEntity::GetGUID(), m_activePlayerData, m_changedTransmogOutfits, UF::TransmogOutfitData::OutfitInfo, PreparedStatementBase::setBool(), PreparedStatementBase::setInt8(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), UF::TransmogOutfitData::Situations, and UF::TransmogOutfitData::Slots.
Referenced by SaveToDB().
|
protected |
Definition at line 21350 of file Player.cpp.
References CHAR_DEL_CHARACTER_QUESTSTATUS_WEEKLY, CHAR_INS_CHARACTER_QUESTSTATUS_WEEKLY, CharacterDatabase, ObjectGuid::GetCounter(), BaseEntity::GetGUID(), m_WeeklyQuestChanged, m_weeklyquests, PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt64().
Referenced by SaveToDB().
|
private |
Definition at line 11393 of file Player.cpp.
References AddEnchantmentDurations(), AddItemDurations(), Object::AddToWorld(), ApplyItemObtainSpells(), BIND_ON_ACQUIRE, BIND_ON_EQUIP, BIND_QUEST, Item::ClearSoulboundTradeable(), Item::CloneItem(), BaseEntity::DestroyForPlayer(), GetBagByPos(), Item::GetBonding(), Item::GetCount(), Object::GetEntry(), BaseEntity::GetGUID(), GetItemByPos(), WorldObject::GetName(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_START, IsBagPos(), BaseEntity::IsInWorld(), ITEM_CHANGED, ITEM_REMOVED, m_items, REAGENT_BAG_SLOT_END, RemoveEnchantmentDurations(), Object::RemoveFromWorld(), RemoveItemDurations(), RemoveTradeableItem(), BaseEntity::SendUpdateToPlayer(), Item::SetBinding(), Item::SetContainedIn(), Item::SetContainer(), Item::SetCount(), SetInvSlot(), Item::SetNotRefundable(), Item::SetOwnerGUID(), Item::SetSlot(), Item::SetState(), Bag::StoreItem(), TC_LOG_DEBUG, ObjectGuid::ToString(), and Position::ToString().
Referenced by StoreItem().
|
inline |
Definition at line 23416 of file Player.cpp.
References AddRefundReference(), ASSERT, AutoUnequipOffhandIfNeed(), VendorItem::BonusListIDs, CanEquipNewItem(), CanStoreNewItem(), ItemExtendedCostEntry::CurrencyCount, ItemExtendedCostEntry::CurrencyID, DestroyItemCount(), EQUIP_ERR_OK, EquipNewItem(), VendorItem::ExtendedCost, ItemExtendedCostEntry::Flags, GenerateItemRandomBonusListId(), ItemTemplate::GetBuyCount(), WorldSession::GetCollectionMgr(), BaseEntity::GetGUID(), ItemTemplate::GetMaxStackSize(), GetSession(), ItemTemplate::HasFlag(), ITEM_EXT_COST_CURRENCY_REQ_IS_SEASON_EARNED_1, ITEM_FIELD_FLAG_REFUNDABLE, ITEM_FLAG_ITEM_PURCHASE_RECORD, ItemExtendedCostEntry::ItemCount, ItemExtendedCostEntry::ItemID, MAX_ITEM_EXT_COST_CURRENCIES, VendorItem::maxcount, ModifyMoney(), WorldPackets::Item::BuySucceeded::Muid, WorldPackets::Item::BuySucceeded::NewQuantity, CollectionMgr::OnItemAdded(), WorldPackets::Item::BuySucceeded::QuantityBought, RemoveCurrency(), Item::SaveRefundDataToDB(), SendDirectMessage(), SendEquipError(), SendNewItem(), Item::SetItemFlag(), Item::SetPaidExtendedCost(), Item::SetPaidMoney(), Item::SetRefundRecipient(), sItemExtendedCostStore, StoreNewItem(), Creature::UpdateVendorItemCurrentCount(), Vendor, WorldPackets::Item::BuySucceeded::VendorGUID, and WorldPackets::Item::BuySucceeded::Write().
Referenced by BuyItemFromVendorSlot().
| void Player::AbandonQuest | ( | uint32 | quest_id | ) |
Definition at line 15376 of file Player.cpp.
References BIND_QUEST, DestroyItemCount(), QUEST_ITEM_DROP_COUNT, QUEST_OBJECTIVE_ITEM, and sObjectMgr.
Referenced by DailyReset(), WorldSession::HandleQuestLogRemoveQuest(), ResetWeeklyQuestStatus(), and SkipQuests().
|
inline |
Definition at line 2738 of file Player.h.
Referenced by UpdateItemLevelAreaBasedScaling().
| void Player::ActivateTalentGroup | ( | ChrSpecializationEntry const * | spec | ) |
Definition at line 28786 of file Player.cpp.
References _SaveActions(), UF::TraitSubTreeCache::Active, ActiveForSpec, AddOverrideSpell(), AddPvpTalent(), ApplyAllAzeriteEmpoweredItemMods(), ApplyAzeritePowers(), ApplyTraitConfig(), CanUseMastery(), CastSpell, ChangeSpec, CharacterDatabase, UF::TraitConfig::ChrSpecializationID, TalentEntry::ClassID, Unit::ClearAllReactives(), Combat, UF::TraitConfig::CombatConfigFlags, DIFFICULTY_NONE, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Everywhere, Unit::ExitVehicle(), UF::DynamicUpdateFieldBase< T >::FindIndexIf(), GetActiveTalentGroup(), Unit::GetAuraEffectsByType(), Unit::GetClass(), SpellInfo::GetEffects(), GetGlyphs(), GetItemByEntry(), GetItemByPos(), GetPet(), Unit::GetPowerType(), GetPvpTalentMap(), Unit::GetSingleCastAuras(), Aura::GetUnitOwner(), WorldPackets::Talent::ActiveGlyphs::Glyphs, HasSpell(), HasTalent(), ChrSpecializationEntry::ID, TalentEntry::ID, UF::TraitConfig::ID, InitTalentForLevel(), Unit::InterruptNonMeleeSpells(), INVENTORY_SLOT_BAG_0, WorldPackets::Talent::ActiveGlyphs::IsFullUpdate, Unit::IsNonMeleeSpellCast(), ITEM_CHANGED, ITEM_ID_HEART_OF_AZEROTH, LearnSpecializationSpells(), LearnSpell(), m_activePlayerData, m_overrideSpells, ChrSpecializationEntry::MasterySpellID, MAX_MASTERY_SPELLS, MAX_PVP_TALENT_SLOTS, None, ChrSpecializationEntry::OrderIndex, PvpTalentEntry::OverridesSpellID, TalentEntry::OverridesSpellID, PET_SAVE_NOT_IN_SLOT, POWER_MANA, Aura::Remove(), Unit::RemoveAllControlled(), Unit::RemoveAurasDueToSpell(), Unit::RemoveAurasWithInterruptFlags(), RemoveOverrideSpell(), RemovePet(), RemoveSpecializationSpells(), RemoveSpell(), sDB2Manager, SendActionButtons(), SendDirectMessage(), SetActiveCombatTraitConfigID(), SetActiveTalentGroup(), SetCurrentCombatTraitConfigSubTreeID(), Unit::SetPower(), SetPrimarySpecialization(), SetVisibleItemSlot(), sGlyphPropertiesStore, SPELL_AURA_MOD_SHAPESHIFT, SPELL_EFFECT_LEARN_SPELL, PvpTalentEntry::SpellID, TalentEntry::SpellID, sPvpTalentStore, sSpellMgr, sTalentStore, StartLoadingActionButtons(), UF::TraitConfig::SubTrees, Item::ToAzeriteItem(), UF::TraitConfig::Type, Unit::UnsummonAllTotems(), Unit::UpdateDisplayPower(), UpdateItemSetAuras(), and WorldPackets::Talent::ActiveGlyphs::Write().
Referenced by Spell::EffectActivateSpec().
| bool Player::ActivateTaxiPathTo | ( | std::vector< uint32 > const & | nodes, |
| Creature * | npc = nullptr, |
||
| uint32 | spellid = 0, |
||
| uint32 | preferredMountDisplay = 0, |
||
| Optional< float > | speed = {}, |
||
| Scripting::v2::ActionResultSetter< MovementStopReason > const & | scriptResult = {} |
||
| ) |
Definition at line 23106 of file Player.cpp.
References PlayerTaxi::AddTaxiDestination(), ASSERT, BuyTaxi, CLASS_DEATH_KNIGHT, PlayerTaxi::ClearTaxiDestinations(), Unit::CombatStop(), CONFIG_INSTANT_TAXI, TaxiNodesEntry::ContinentID, CURRENT_AUTOREPEAT_SPELL, CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, ERR_TAXINOSUCHPATH, ERR_TAXINOTENOUGHMONEY, ERR_TAXIOK, ERR_TAXIPLAYERBUSY, ERR_TAXIPLAYERSHAPESHIFTED, ERR_TAXIUNSPECIFIEDSERVERERROR, Unit::ExitVehicle(), FORM_NONE, Unit::GetClass(), Unit::GetCurrentSpell(), Unit::GetDisplayId(), Unit::GetFaction(), TaxiNodesEntry::GetFlags(), GetMoney(), Unit::GetNativeDisplayId(), Position::GetOrientation(), GetReputationPriceDiscount(), GetSession(), GetTeam(), Unit::GetTransformSpell(), Unit::HasUnitFlag(), Unit::HasUnitState(), Unit::InterruptSpell(), Unit::IsDisallowedMountForm(), Unit::IsInCombat(), Unit::IsNonMeleeSpellCast(), m_taxi, ModifyMoney(), MoneySpentOnTaxis, TaxiNodesEntry::Pos, Unit::RemoveAurasByType(), Unit::RestoreDisplayId(), WorldSession::SendActivateTaxiReply(), PlayerTaxi::SetFlightMasterFactionTemplateId(), sObjectMgr, SPELL_AURA_MOUNTED, StartTaxiMovement(), sTaxiNodesStore, StopCastingBindSight(), StopCastingCharm(), sWorld, TeleportTo(), TradeCancel(), UNIT_FLAG_REMOVE_CLIENT_CONTROL, UNIT_STATE_ROOT, UNIT_STATE_STUNNED, UpdateCriteria(), UsePlayerFavoriteMount, DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.
Referenced by ActivateTaxiPathTo(), Spell::EffectSendTaxi(), WorldSession::HandleActivateTaxiOpcode(), and OPvPCapturePointNA::HandleCustomSpell().
| bool Player::ActivateTaxiPathTo | ( | uint32 | taxi_path_id, |
| uint32 | spellid = 0, |
||
| Optional< float > | speed = {}, |
||
| Scripting::v2::ActionResultSetter< MovementStopReason > const & | scriptResult = {} |
||
| ) |
Definition at line 23292 of file Player.cpp.
References ActivateTaxiPathTo(), TaxiPathEntry::FromTaxiNode, sTaxiPathStore, and TaxiPathEntry::ToTaxiNode.
| ActionButton * Player::AddActionButton | ( | uint8 | button, |
| uint64 | action, | ||
| uint8 | type | ||
| ) |
Definition at line 6102 of file Player.cpp.
References BaseEntity::GetGUID(), WorldObject::GetName(), IsActionButtonDataValid(), m_actionButtons, ActionButton::SetActionAndType(), TC_LOG_DEBUG, and Position::ToString().
Referenced by _LoadActions(), Create(), and WorldSession::HandleSetActionButtonOpcode().
|
inline |
Definition at line 1623 of file Player.h.
Referenced by Spell::EffectProficiency().
|
inline |
Definition at line 3001 of file Player.h.
References UF::ActivePlayerData::AuraVision, flags, and m_activePlayerData.
| uint32 Player::AddBattlegroundQueueId | ( | BattlegroundQueueTypeId | val | ) |
Definition at line 25711 of file Player.cpp.
References BATTLEGROUND_QUEUE_NONE, Player::BgBattlegroundQueueID_Rec::bgQueueTypeId, GameTime::GetGameTime(), HasAura, Player::BgBattlegroundQueueID_Rec::invitedToInstance, Player::BgBattlegroundQueueID_Rec::joinTime, m_bgBattlegroundQueueID, Player::BgBattlegroundQueueID_Rec::mercenary, PLAYER_MAX_BATTLEGROUND_QUEUES, SPELL_MERCENARY_CONTRACT_ALLIANCE, and SPELL_MERCENARY_CONTRACT_HORDE.
Referenced by WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), and LoadFromDB().
|
inline |
Definition at line 2956 of file Player.h.
References UF::ActivePlayerData::ConditionalTransmog, and m_activePlayerData.
Referenced by CollectionMgr::AddTemporaryAppearance(), and CollectionMgr::LoadItemAppearances().
| void Player::AddCurrency | ( | uint32 | id, |
| uint32 | amount, | ||
| CurrencyGainSource | gainSource = CurrencyGainSource::Cheat |
||
| ) |
Definition at line 7176 of file Player.cpp.
References ModifyCurrency().
Referenced by BuyCurrencyFromVendorSlot(), Garrison::CancelBuildingConstruction(), RefundItem(), RewardPlayerWithRewardPack(), and RewardQuest().
| void Player::AddEnchantmentDuration | ( | Item * | item, |
| EnchantmentSlot | slot, | ||
| uint32 | duration | ||
| ) |
Definition at line 13382 of file Player.cpp.
References BaseEntity::GetGUID(), GetSession(), m_enchantDuration, MAX_ENCHANTMENT_SLOT, and WorldSession::SendItemEnchantTimeUpdate().
Referenced by AddEnchantmentDurations(), and ApplyEnchantment().
| void Player::AddEnchantmentDurations | ( | Item * | item | ) |
Definition at line 13296 of file Player.cpp.
References AddEnchantmentDuration(), Item::GetEnchantmentDuration(), Item::GetEnchantmentId(), and MAX_ENCHANTMENT_SLOT.
Referenced by _StoreItem(), EquipItem(), and QuickEquipItem().
Definition at line 6289 of file Player.cpp.
References UF::ActivePlayerData::BitVectors, m_activePlayerData, BaseEntity::m_values, PLAYER_DATA_FLAG_EXPLORED_ZONES_INDEX, BaseEntity::SetUpdateFieldFlagValue(), UF::BitVector::Values, and UF::BitVectors::Values.
Referenced by CheckAreaExplore(), cheat_commandscript::HandleExploreCheatCommand(), WorldSession::HandlePlayerLogin(), misc_commandscript::HandleShowAreaCommand(), and LoadFromDB().
Definition at line 2939 of file Player.h.
References flags, UF::ActivePlayerData::HeirloomFlags, UF::ActivePlayerData::Heirlooms, and m_activePlayerData.
Referenced by CollectionMgr::AddHeirloom(), and CollectionMgr::LoadHeirlooms().
| void Player::AddHonorXP | ( | uint32 | xp | ) |
Definition at line 6849 of file Player.cpp.
References GetHonorLevel(), Unit::GetLevel(), UF::ActivePlayerData::Honor, IsMaxHonorLevel(), m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), PLAYER_LEVEL_MIN_HONOR, PLAYER_MAX_HONOR_LEVEL, SetHonorLevel(), and BaseEntity::SetUpdateFieldValue().
Referenced by _InitHonorLevelOnLoadFromDB(), Spell::EffectGiveHonor(), and RewardHonor().
|
inline |
Definition at line 2964 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::TransmogIllusions.
Referenced by CollectionMgr::AddTransmogIllusion(), and CollectionMgr::LoadTransmogIllusions().
Definition at line 2965 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::TransmogIllusions.
Referenced by CollectionMgr::AddTransmogIllusion().
Definition at line 29558 of file Player.cpp.
References CanStoreNewItem(), EQUIP_ERR_OK, GenerateItemRandomBonusListId(), GetSession(), NULL_BAG, NULL_SLOT, ChatHandler::PSendSysMessage(), SendNewItem(), and StoreNewItem().
Referenced by RewardHonor(), and RewardPlayerWithRewardPack().
| void Player::AddItemDurations | ( | Item * | item | ) |
Definition at line 26092 of file Player.cpp.
References Item::m_itemData, m_itemDuration, and Item::SendTimeUpdate().
Referenced by _StoreItem(), EquipItem(), and QuickEquipItem().
| void Player::AddItemToBuyBackSlot | ( | Item * | pItem | ) |
Definition at line 12953 of file Player.cpp.
References BUYBACK_SLOT_END, BUYBACK_SLOT_START, Item::GetCount(), Object::GetEntry(), GameTime::GetGameTime(), BaseEntity::GetGUID(), WorldObject::GetName(), Item::GetSellPrice(), m_activePlayerData, m_currentBuybackSlot, m_items, m_logintime, RemoveItemFromBuyBackSlot(), SetBuybackPrice(), SetBuybackTimestamp(), SetInvSlot(), TC_LOG_DEBUG, and Position::ToString().
Referenced by SellItemToVendor().
| void Player::AddLootRoll | ( | LootRoll * | roll | ) |
Definition at line 9006 of file Player.cpp.
References m_lootRolls.
Referenced by LootRoll::TryToStart().
| void Player::AddMail | ( | Mail * | ) |
Definition at line 2525 of file Player.cpp.
References m_mail.
Referenced by MailDraft::SendMailTo().
| void Player::AddMItem | ( | Item * | it | ) |
Definition at line 22401 of file Player.cpp.
References ASSERT, ObjectGuid::GetCounter(), BaseEntity::GetGUID(), and mMitems.
Referenced by _LoadMailedItem(), and MailDraft::SendMailTo().
| void Player::AddNewMailDeliverTime | ( | time_t | deliver_time | ) |
Definition at line 2569 of file Player.cpp.
References GameTime::GetGameTime(), m_nextMailDelivereTime, SendNewMail(), and unReadMails.
Referenced by MailDraft::SendMailTo().
Definition at line 30617 of file Player.cpp.
References m_overrideSpells.
Referenced by ActivateTalentGroup(), AddPvpTalent(), AddSpell(), AddTalent(), LearnSpecializationSpells(), spell_hun_bleak_arrows::ReplaceAutoShot(), and TogglePvpTalents().
| void Player::AddPetAura | ( | PetAura const * | petSpell | ) |
Definition at line 22175 of file Player.cpp.
References GetPet(), and m_petAuras.
Referenced by Spell::EffectDummy(), and AuraEffect::HandleAuraDummy().
| void Player::AddPetToUpdateFields | ( | PetStable::PetInfo const & | pet, |
| PetSaveMode | slot, | ||
| PetStableFlags | flags | ||
| ) |
Definition at line 29589 of file Player.cpp.
References BaseEntity::AddDynamicUpdateFieldValue(), UF::StablePetInfo::CreatureID, PetStable::PetInfo::CreatureId, UF::StablePetInfo::DisplayID, PetStable::PetInfo::DisplayId, UF::StablePetInfo::ExperienceLevel, flags, PetStable::PetInfo::Level, m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), UF::StablePetInfo::Name, PetStable::PetInfo::Name, UF::StablePetInfo::PetFlags, UF::StablePetInfo::PetNumber, PetStable::PetInfo::PetNumber, UF::StableInfo::Pets, UF::StablePetInfo::PetSlot, and UF::ActivePlayerData::PetStable.
Referenced by _LoadPetStable(), and Unit::InitTamedPet().
| bool Player::AddPvpTalent | ( | PvpTalentEntry const * | talent, |
| uint8 | activeTalentGroup, | ||
| uint8 | slot | ||
| ) |
Definition at line 27728 of file Player.cpp.
References AddOverrideSpell(), ASSERT, DIFFICULTY_NONE, GetActiveTalentGroup(), GetPvpTalentMap(), Unit::HasAuraType(), PvpTalentEntry::ID, SpellMgr::IsSpellValid(), LearnSpell(), PvpTalentEntry::OverridesSpellID, SPELL_AURA_PVP_TALENTS, PvpTalentEntry::SpellID, sSpellMgr, and TC_LOG_ERROR.
Referenced by _LoadPvpTalents(), ActivateTalentGroup(), and LearnPvpTalent().
Definition at line 14785 of file Player.cpp.
References AcceptQuest, QuestStatusData::AcceptTime, AddTimedQuest(), AdjustQuestObjectiveProgress(), WorldObject::CastSpell(), CHAR_INS_QUEST_TRACK, CharacterDatabase, CONFIG_QUEST_ENABLE_QUEST_TRACKER, SpellInfo::Difficulty, QuestStatusData::Explored, GitRevision::GetDate(), GetDifficultyID(), GameTime::GetGameTime(), BaseEntity::GetGUID(), GitRevision::GetHash(), Quest::GetLimitTime(), WorldObject::GetMap(), Quest::GetObjectives(), Quest::GetQuestId(), GetQuestSlotQuestId(), getQuestStatusMap(), GetReputationMgr(), Quest::GetSrcSpell(), BaseEntity::GetTypeId(), GiveQuestSourceItem(), Quest::HasFlag(), SpellInfo::HasTargetType(), SpellInfo::Id, IN_MILLISECONDS, PvPInfo::IsHostile, BaseEntity::IsUnit(), m_questObjectiveCriteriaMgr, m_questObjectiveStatus, m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, PhasingHandler::OnConditionChange(), pvpInfo, QUEST_DEFAULT_SAVE_TYPE, QUEST_FLAGS_FLAGS_PVP, QUEST_FLAGS_PLAYER_CAST_ACCEPT, QUEST_FLAGS_UPDATE_PHASESHIFT, QUEST_OBJECTIVE_CRITERIA_TREE, QUEST_OBJECTIVE_MAX_REPUTATION, QUEST_OBJECTIVE_MIN_REPUTATION, QUEST_STATUS_INCOMPLETE, SendForceSpawnTrackingUpdate(), SendQuestUpdate(), SetQuestSlot(), SetQuestSlotEndTime(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), ReputationMgr::SetVisible(), sFactionStore, QuestStatusData::Slot, sScriptMgr, sSpellMgr, StartCriteria(), QuestStatusData::Status, sWorld, TARGET_DEST_CASTER_SUMMON, TARGET_UNIT_CASTER, QuestStatusData::Timer, Object::ToPlayer(), Object::ToUnit(), TRIGGERED_FULL_MASK, TYPEID_PLAYER, UpdateObjectVisibility(), and UpdatePvPState().
Referenced by AddQuestAndCheckCompletion().
Definition at line 14633 of file Player.cpp.
References AddQuest(), Creature::AI(), GameObject::AI(), CanCompleteQuest(), CompleteQuest, DestroyItem(), Item::GetBagSlot(), Object::GetEntry(), ItemTemplate::GetMaxCount(), Quest::GetObjectives(), Quest::GetQuestId(), Item::GetSlot(), Quest::GetSrcItemId(), Item::GetTemplate(), BaseEntity::GetTypeId(), GameObjectAI::OnQuestAccept(), CreatureAI::OnQuestAccept(), PlayerTalkClass, QUEST_OBJECTIVE_ITEM, sScriptMgr, Object::ToCreature(), Object::ToGameObject(), TYPEID_AZERITE_EMPOWERED_ITEM, TYPEID_AZERITE_ITEM, TYPEID_CONTAINER, TYPEID_GAMEOBJECT, TYPEID_ITEM, and TYPEID_UNIT.
Referenced by Spell::EffectQuestStart(), WorldSession::HandleAdventureMapStartQuest(), WorldSession::HandlePushQuestToParty(), quest_commandscript::HandleQuestAdd(), WorldSession::HandleQuestConfirmAccept(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestgiverQueryQuestOpcode(), SmartScript::ProcessAction(), PushQuests(), RewardQuest(), SendPreparedQuest(), and ReputationMgr::SetOneFactionReputation().
| void Player::AddRefundReference | ( | ObjectGuid | it | ) |
Definition at line 29498 of file Player.cpp.
References m_refundableItems.
Referenced by _LoadItem(), and _StoreOrEquipNewItem().
|
inline |
Definition at line 2970 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::SelfResSpells.
Referenced by InitializeSelfResurrectionSpells().
| bool Player::AddSpell | ( | uint32 | spellId, |
| bool | active, | ||
| bool | learning, | ||
| bool | dependent, | ||
| bool | disabled, | ||
| bool | loading = false, |
||
| int32 | fromSkill = 0, |
||
| bool | favorite = false, |
||
| Optional< PlayerSpellTrait > | trait = {} |
||
| ) |
Definition at line 2667 of file Player.cpp.
References PlayerSpell::active, CollectionMgr::AddMount(), AddOverrideSpell(), AddSpell(), AutomaticCharLevel, CastSpell, DeleteSpellFromAllPlayers(), PlayerSpell::dependent, DIFFICULTY_NONE, PlayerSpell::disabled, PlayerSpell::favorite, Unit::GetClass(), WorldSession::GetCollectionMgr(), GetFreePrimaryProfessionPoints(), Unit::GetMaxSkillValueForLevel(), GetPureMaxSkillValue(), GetPureSkillValue(), Unit::GetRace(), GetSession(), GetSkillRangeType(), SkillTiersEntry::GetValueForTierIndex(), HandlePassiveSpellLearn(), SpellInfo::HasAttribute(), SpellInfo::HasEffect(), HasSkill(), HasSpell(), SpellInfo::IsDifferentRankOf(), SpellInfo::IsHighRankOf(), BaseEntity::IsInWorld(), SpellInfo::IsPassive(), SpellInfo::IsPrimaryProfessionFirstRank(), SpellInfo::IsRanked(), SpellMgr::IsSpellValid(), LearnDefaultSkill(), LearnOrKnowSpell, LearnSpell(), LearnSpellFromSkillLine, LearnTradeskillSkillLine, m_spells, MOUNT_STATUS_NONE, PLAYERSPELL_CHANGED, PLAYERSPELL_NEW, PLAYERSPELL_REMOVED, PLAYERSPELL_TEMPORARY, PLAYERSPELL_UNCHANGED, RemoveOverrideSpell(), RemoveTemporarySpell(), sDB2Manager, SendDirectMessage(), SendSupercededSpell(), SetFreePrimaryProfessions(), SetSkill(), SKILL_FLAG_ALWAYS_MAX_VALUE, SKILL_RANGE_LANGUAGE, SKILL_RANGE_LEVEL, SKILL_RANGE_MONO, SKILL_RANGE_RANK, SKILL_RUNEFORGING, sObjectMgr, SPELL_ATTR0_CU_IS_TALENT, SPELL_ATTR1_CAST_WHEN_LEARNED, SPELL_EFFECT_LEARN_SPELL, SPELL_EFFECT_SKILL_STEP, WorldPackets::Spells::UnlearnedSpells::SpellID, sSkillLineStore, sSpellMgr, PlayerSpell::state, sTraitDefinitionStore, TC_LOG_ERROR, PlayerSpell::Trait, UpdateCriteria(), and WorldPackets::Spells::UnlearnedSpells::Write().
Referenced by _LoadSpells(), AddSpell(), LearnCustomSpells(), LearnSkillRewardedSpells(), LearnSpell(), and RemoveSpell().
Definition at line 30675 of file Player.cpp.
References BaseEntity::AddDynamicUpdateFieldValue(), UF::ActivePlayerData::CategoryCooldownMods, m_activePlayerData, BaseEntity::m_values, UF::CategoryCooldownMod::ModCooldown, BaseEntity::SetUpdateFieldValue(), and UF::CategoryCooldownMod::SpellCategoryID.
Referenced by AuraEffect::HandleModSpellCategoryCooldown().
| void Player::AddSpellMod | ( | SpellModifier * | mod, |
| bool | apply | ||
| ) |
First, manipulate our spellmodifier container
Now, send spellmodifier packet
Definition at line 22855 of file Player.cpp.
References BaseEntity::AddDynamicUpdateFieldValue(), AsUnderlyingType(), CalculatePct(), WorldPackets::Spells::SpellModifierData::ClassIndex, Trinity::Containers::FlatSet< Key, Compare, KeyContainer >::end(), Trinity::Containers::FlatSet< Key, Compare, KeyContainer >::erase(), BaseEntity::GetGUID(), WorldObject::GetName(), Trinity::Containers::FlatSet< Key, Compare, KeyContainer >::insert(), IsLoading(), m_activePlayerData, m_spellMods, BaseEntity::m_values, SpellModifierByClassMask::mask, WorldPackets::Spells::SpellModifier::ModifierData, WorldPackets::Spells::SetSpellModifier::Modifiers, WorldPackets::Spells::SpellModifierData::ModifierValue, UF::UpdateFieldHolder::ModifyValue(), WorldPackets::Spells::SpellModifier::ModIndex, SpellModifier::op, BaseEntity::RemoveDynamicUpdateFieldValue(), SendDirectMessage(), SMSG_SET_FLAT_SPELL_MODIFIER, SMSG_SET_PCT_SPELL_MODIFIER, UF::ActivePlayerData::SpellFlatModByLabel, SpellModifier::spellId, SPELLMOD_FLAT, SPELLMOD_LABEL_FLAT, SPELLMOD_LABEL_PCT, SPELLMOD_PCT, UF::ActivePlayerData::SpellPctModByLabel, TC_LOG_DEBUG, Position::ToString(), SpellModifier::type, SpellFlatModifierByClassMask::value, SpellPctModifierByClassMask::value, SpellFlatModifierByLabel::value, SpellPctModifierByLabel::value, and WorldPackets::Spells::SetSpellModifier::Write().
Referenced by AuraEffect::ApplySpellMod().
| void Player::AddStoredAuraTeleportLocation | ( | uint32 | spellId | ) |
Definition at line 2646 of file Player.cpp.
References StoredAuraTeleportLocation::CHANGED, StoredAuraTeleportLocation::Loc, m_storedAuraTeleportLocations, StoredAuraTeleportLocation::State, and WorldLocation::WorldRelocate().
Referenced by AuraEffect::HandleStoreTeleportReturnPoint().
| bool Player::AddTalent | ( | TalentEntry const * | talent, |
| uint8 | spec, | ||
| bool | learning | ||
| ) |
Definition at line 2590 of file Player.cpp.
References AddOverrideSpell(), ChangeTalent, DIFFICULTY_NONE, GetActiveTalentGroup(), GetTalentMap(), TalentEntry::ID, SpellMgr::IsSpellValid(), LearnSpell(), TalentEntry::OverridesSpellID, PLAYERSPELL_NEW, PLAYERSPELL_UNCHANGED, Unit::RemoveAurasWithInterruptFlags(), TalentEntry::SpellID, sSpellMgr, and TC_LOG_ERROR.
Referenced by _LoadTalents(), learn_commandscript::HandleLearnAllTalentsCommand(), and LearnTalent().
| void Player::AddTemporarySpell | ( | uint32 | spellId | ) |
Definition at line 3031 of file Player.cpp.
References PlayerSpell::active, PlayerSpell::dependent, PlayerSpell::disabled, m_spells, PLAYERSPELL_TEMPORARY, and PlayerSpell::state.
Referenced by ApplyArtifactPowerRank(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraOverrideSpells(), and AuraEffect::HandleShowConfirmationPrompt().
| void Player::AddTimedQuest | ( | uint32 | questId | ) |
Definition at line 17477 of file Player.cpp.
References m_timedquests.
Referenced by _LoadQuestStatus(), and AddQuest().
|
overridevirtual |
Reimplemented from Object.
Definition at line 1485 of file Player.cpp.
References BaseEntity::AddToWorld(), Object::AddToWorld(), Unit::AddToWorld(), WorldSession::GetBattlenetAccount(), GetSession(), m_items, PLAYER_SLOT_END, and PLAYER_SLOT_START.
Referenced by Map::AddPlayerToMap().
Definition at line 2947 of file Player.h.
References flags, m_activePlayerData, UF::ActivePlayerData::ToyFlags, and UF::ActivePlayerData::Toys.
Referenced by CollectionMgr::AddToy(), and CollectionMgr::LoadToys().
| void Player::AddTradeableItem | ( | Item * | item | ) |
Definition at line 13244 of file Player.cpp.
References BaseEntity::GetGUID(), and m_itemSoulboundTradeable.
Referenced by _LoadItem(), MoveItemToInventory(), and StoreNewItem().
| void Player::AddTraitConfig | ( | WorldPackets::Traits::TraitConfig const & | traitConfig | ) |
Definition at line 29098 of file Player.cpp.
References UF::TraitSubTreeCache::Active, BaseEntity::AddDynamicUpdateFieldValue(), AsUnderlyingType(), UF::TraitConfig::ChrSpecializationID, WorldPackets::Traits::TraitConfig::ChrSpecializationID, UF::TraitConfig::CombatConfigFlags, WorldPackets::Traits::TraitConfig::CombatConfigFlags, UF::TraitSubTreeCache::Entries, UF::TraitConfig::Entries, WorldPackets::Traits::TraitConfig::Entries, UF::TraitEntry::GrantedRanks, UF::TraitConfig::ID, WorldPackets::Traits::TraitConfig::ID, UF::TraitConfig::LocalIdentifier, WorldPackets::Traits::TraitConfig::LocalIdentifier, m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), UF::TraitConfig::Name, WorldPackets::Traits::TraitConfig::Name, UF::TraitEntry::Rank, BaseEntity::SetUpdateFieldValue(), UF::TraitConfig::SkillLineID, WorldPackets::Traits::TraitConfig::SkillLineID, UF::TraitConfig::SubTrees, WorldPackets::Traits::TraitConfig::SubTrees, UF::ActivePlayerData::TraitConfigs, UF::TraitEntry::TraitNodeEntryID, UF::TraitEntry::TraitNodeID, UF::TraitSubTreeCache::TraitSubTreeID, UF::TraitConfig::TraitSystemID, WorldPackets::Traits::TraitConfig::TraitSystemID, UF::TraitConfig::Type, and WorldPackets::Traits::TraitConfig::Type.
Referenced by _LoadTraits(), and CreateTraitConfig().
|
inline |
Definition at line 2953 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::Transmog.
Referenced by CollectionMgr::AddItemAppearance(), and CollectionMgr::LoadItemAppearances().
Definition at line 2954 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::Transmog.
Referenced by CollectionMgr::AddItemAppearance().
|
inline |
Definition at line 3035 of file Player.h.
Referenced by CollectionMgr::AddTransmogOutfit().
| void Player::AddUnlockedTransmogOutfits | ( | std::span< int32 const > | transmogOutfitIds | ) |
Definition at line 31049 of file Player.cpp.
References BaseEntity::AddDynamicUpdateFieldValue(), m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), and UF::ActivePlayerData::UnlockedTransmogOutfits.
Referenced by CollectionMgr::LoadTransmogOutfits().
|
inline |
Definition at line 2967 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::WarbandScenes.
Definition at line 2968 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::WarbandScenes.
Referenced by CollectionMgr::AddWarbandScene(), and CollectionMgr::LoadWarbandScenes().
|
inline |
Definition at line 1622 of file Player.h.
Referenced by Spell::EffectProficiency().
|
inline |
Definition at line 2853 of file Player.h.
Referenced by WorldSession::HandleChatMessage().
|
private |
Definition at line 16318 of file Player.cpp.
References GetCurrencyQuantity(), GetItemCount(), Quest::GetObjectives(), m_questObjectiveCriteriaMgr, QUEST_OBJECTIVE_CRITERIA_TREE, QUEST_OBJECTIVE_FLAG_2_QUEST_BOUND_ITEM, QUEST_OBJECTIVE_HAVE_CURRENCY, QUEST_OBJECTIVE_ITEM, and SetQuestObjectiveData().
Referenced by AddQuest().
|
inline |
Definition at line 1227 of file Player.h.
Referenced by at_azhiccar_intro::OnUnitEnter().
| void Player::ApplyAllAzeriteEmpoweredItemMods | ( | bool | apply | ) |
Definition at line 8974 of file Player.cpp.
References ApplyAzeritePowers(), Unit::CanUseAttackType(), GetAttackBySlot(), m_items, and REAGENT_BAG_SLOT_END.
Referenced by ActivateTalentGroup().
| void Player::ApplyAllAzeriteItemMods | ( | bool | apply | ) |
Definition at line 8960 of file Player.cpp.
References ApplyAzeritePowers(), Unit::CanUseAttackType(), GetAttackBySlot(), m_items, and REAGENT_BAG_SLOT_END.
Referenced by _ApplyAllStatBonuses(), _LoadInventory(), and _RemoveAllStatBonuses().
| void Player::ApplyArtifactPowerRank | ( | Item * | artifact, |
| ArtifactPowerRankEntry const * | artifactPowerRank, | ||
| bool | apply | ||
| ) |
Definition at line 8432 of file Player.cpp.
References CastSpellExtraArgs::AddSpellMod(), AddTemporarySpell(), AsUnderlyingType(), ArtifactPowerRankEntry::AuraPointsOverride, CastSpell, WorldPackets::Spells::LearnedSpells::ClientLearnedSpellData, DIFFICULTY_NONE, ObjectGuid::Empty, Unit::GetAuraApplication(), Aura::GetAuraEffects(), AuraApplication::GetBase(), SpellInfo::GetEffects(), BaseEntity::GetGUID(), AuraApplication::HasEffect(), HasSpell(), SpellInfo::IsPassive(), Unit::RemoveAura(), RemoveTemporarySpell(), SendDirectMessage(), CastSpellExtraArgs::SetCastItem(), CastSpellExtraArgs::SetTriggerFlags(), ArtifactPowerRankEntry::SpellID, WorldPackets::Spells::LearnedSpellInfo::SpellID, WorldPackets::Spells::UnlearnedSpells::SpellID, SPELLVALUE_BASE_POINT0, sSpellMgr, WorldPackets::Spells::LearnedSpells::SuppressMessaging, WorldPackets::Spells::UnlearnedSpells::SuppressMessaging, TRIGGERED_FULL_MASK, WorldPackets::Spells::LearnedSpells::Write(), and WorldPackets::Spells::UnlearnedSpells::Write().
Referenced by Item::ApplyArtifactPowerEnchantmentBonuses(), ApplyArtifactPowers(), WorldSession::HandleArtifactAddPower(), and WorldSession::HandleConfirmArtifactRespec().
| void Player::ApplyArtifactPowers | ( | Item * | item, |
| bool | apply | ||
| ) |
Definition at line 8406 of file Player.cpp.
References ApplyArtifactPowerRank(), ARTIFACT_POWER_FLAG_SCALES_WITH_NUM_POWERS, Item::GetModifier(), Unit::GetShapeshiftForm(), Item::IsArtifactDisabled(), ITEM_MODIFIER_ARTIFACT_APPEARANCE_ID, Item::m_itemData, Unit::RestoreDisplayId(), sArtifactAppearanceStore, sArtifactPowerStore, and sDB2Manager.
Referenced by _ApplyAllItemMods(), _ApplyItemMods(), and _RemoveAllItemMods().
| void Player::ApplyAzeriteEssence | ( | AzeriteItem * | item, |
| uint32 | azeriteEssenceId, | ||
| uint32 | rank, | ||
| bool | major, | ||
| bool | apply | ||
| ) |
Definition at line 8526 of file Player.cpp.
References CastSpellExtraArgs::AddSpellMod(), ApplyAzeriteEssencePower(), CastSpell, Unit::RemoveAurasDueToSpell(), sDB2Manager, SPELL_ID_HEART_ESSENCE_ACTION_BAR_OVERRIDE, SPELLVALUE_BASE_POINT0, and TRIGGERED_FULL_MASK.
Referenced by ApplyAzeritePowers(), Spell::EffectLearnAzeriteEssencePower(), and WorldSession::HandleAzeriteEssenceActivateEssence().
| void Player::ApplyAzeriteEssencePower | ( | AzeriteItem * | item, |
| AzeriteEssencePowerEntry const * | azeriteEssencePower, | ||
| bool | major, | ||
| bool | apply | ||
| ) |
Definition at line 8548 of file Player.cpp.
References CastSpell, DIFFICULTY_NONE, BaseEntity::GetGUID(), LearnSpell(), AzeriteEssencePowerEntry::MajorPowerDescription, AzeriteEssencePowerEntry::MinorPowerDescription, Unit::RemoveAurasDueToItemSpell(), RemoveSpell(), and sSpellMgr.
Referenced by ApplyAzeriteEssence().
| void Player::ApplyAzeriteItemMilestonePower | ( | AzeriteItem * | item, |
| AzeriteItemMilestonePowerEntry const * | azeriteItemMilestonePower, | ||
| bool | apply | ||
| ) |
Definition at line 8511 of file Player.cpp.
References AzeriteItemMilestonePowerEntry::AzeritePowerID, BonusStamina, CastSpell, BaseEntity::GetGUID(), Unit::RemoveAurasDueToItemSpell(), sAzeritePowerStore, and AzeriteItemMilestonePowerEntry::Type.
Referenced by ApplyAzeritePowers(), and WorldSession::HandleAzeriteEssenceUnlockMilestone().
| void Player::ApplyAzeritePower | ( | AzeriteEmpoweredItem * | item, |
| AzeritePowerEntry const * | azeritePower, | ||
| bool | apply | ||
| ) |
Definition at line 8580 of file Player.cpp.
References AsUnderlyingType(), CastSpell, BaseEntity::GetGUID(), GetPrimarySpecialization(), Unit::RemoveAurasDueToItemSpell(), sDB2Manager, AzeritePowerEntry::SpecSetID, and AzeritePowerEntry::SpellID.
Referenced by ApplyAzeritePowers(), and WorldSession::HandleAzeriteEmpoweredItemSelectPower().
| void Player::ApplyAzeritePowers | ( | Item * | item, |
| bool | apply | ||
| ) |
Definition at line 8487 of file Player.cpp.
References ApplyAzeriteEssence(), ApplyAzeriteItemMilestonePower(), ApplyAzeritePower(), Equipment, GetItemByEntry(), ITEM_ID_HEART_OF_AZEROTH, MajorEssence, MAX_AZERITE_EMPOWERED_TIER, MAX_AZERITE_ESSENCE_SLOT, sAzeriteItemMilestonePowerStore, sAzeritePowerStore, sDB2Manager, Item::ToAzeriteEmpoweredItem(), and Item::ToAzeriteItem().
Referenced by _ApplyItemMods(), ActivateTalentGroup(), ApplyAllAzeriteEmpoweredItemMods(), and ApplyAllAzeriteItemMods().
| void Player::ApplyBaseModPctValue | ( | BaseModGroup | modGroup, |
| float | pct | ||
| ) |
Definition at line 4874 of file Player.cpp.
References BASEMOD_END, CalculatePct(), FLAT_MOD, BaseEntity::GetGUID(), WorldObject::GetName(), m_auraBasePctMod, TC_LOG_ERROR, Position::ToString(), and UpdateBaseModGroup().
Referenced by AuraEffect::HandleShieldBlockValuePercent().
| void Player::ApplyEnchantment | ( | Item * | item, |
| bool | apply | ||
| ) |
Definition at line 13406 of file Player.cpp.
References ApplyEnchantment(), and MAX_ENCHANTMENT_SLOT.
| void Player::ApplyEnchantment | ( | Item * | item, |
| EnchantmentSlot | slot, | ||
| bool | apply, | ||
| bool | apply_dur = true, |
||
| bool | ignore_condition = false |
||
| ) |
Definition at line 13412 of file Player.cpp.
References AddEnchantmentDuration(), ApplyHealthRegenBonus(), ApplyManaRegenBonus(), ApplyRatingMod(), ApplySpellPenetrationBonus(), ApplySpellPowerBonus(), BASE_VALUE, CastSpell, SpellItemEnchantmentEntry::ConditionID, CR_ARMOR_PENETRATION, CR_BLOCK, CR_CRIT_MELEE, CR_CRIT_RANGED, CR_CRIT_SPELL, CR_DEFENSE_SKILL, CR_DODGE, CR_EXPERTISE, CR_HASTE_MELEE, CR_HASTE_RANGED, CR_HASTE_SPELL, CR_HIT_MELEE, CR_HIT_RANGED, CR_HIT_SPELL, CR_MASTERY, CR_PARRY, CR_RESILIENCE_PLAYER_DAMAGE, CR_VERSATILITY_DAMAGE_DONE, CR_VERSATILITY_DAMAGE_TAKEN, CR_VERSATILITY_HEALING_DONE, SpellItemEnchantmentEntry::Effect, SpellItemEnchantmentEntry::EffectArg, SpellItemEnchantmentEntry::EffectPointsMin, SpellItemEnchantmentEntry::EffectScalingPoints, EnchantmentFitsRequirements(), FlatNegative, FlatPositive, GetAttackBySlot(), Item::GetEnchantmentDuration(), Item::GetEnchantmentId(), SpellItemEnchantmentEntry::GetFlags(), Item::GetGem(), BaseEntity::GetGUID(), ItemTemplate::GetInventoryType(), Unit::GetLevel(), WorldObject::GetName(), GetSkillValue(), Item::GetSlot(), Item::GetSocketColor(), GetSpellScalingColumnForClass(), Item::GetTemplate(), Item::GetVisibleItemVisual(), Unit::HandleAttackPowerModifier(), HandleBaseModFlatValue(), Unit::HandleStatFlatModifier(), Item::IsBroken(), Item::IsEquipped(), ITEM_ENCHANTMENT_TYPE_ARTIFACT_POWER_BONUS_RANK_BY_ID, ITEM_ENCHANTMENT_TYPE_ARTIFACT_POWER_BONUS_RANK_BY_TYPE, ITEM_ENCHANTMENT_TYPE_ARTIFACT_POWER_BONUS_RANK_PICKER, ITEM_ENCHANTMENT_TYPE_BONUS_LIST_CURVE, ITEM_ENCHANTMENT_TYPE_BONUS_LIST_ID, ITEM_ENCHANTMENT_TYPE_COMBAT_SPELL, ITEM_ENCHANTMENT_TYPE_DAMAGE, ITEM_ENCHANTMENT_TYPE_EQUIP_SPELL, ITEM_ENCHANTMENT_TYPE_NONE, ITEM_ENCHANTMENT_TYPE_PRISMATIC_SOCKET, ITEM_ENCHANTMENT_TYPE_RESISTANCE, ITEM_ENCHANTMENT_TYPE_STAT, ITEM_ENCHANTMENT_TYPE_TOTEM, ITEM_ENCHANTMENT_TYPE_USE_SPELL, ITEM_MOD_AGILITY, ITEM_MOD_ARMOR_PENETRATION_RATING, ITEM_MOD_ATTACK_POWER, ITEM_MOD_BLOCK_RATING, ITEM_MOD_BLOCK_VALUE, ITEM_MOD_CRIT_MELEE_RATING, ITEM_MOD_CRIT_RANGED_RATING, ITEM_MOD_CRIT_RATING, ITEM_MOD_CRIT_SPELL_RATING, ITEM_MOD_DEFENSE_SKILL_RATING, ITEM_MOD_DODGE_RATING, ITEM_MOD_EXPERTISE_RATING, ITEM_MOD_HASTE_RATING, ITEM_MOD_HASTE_SPELL_RATING, ITEM_MOD_HEALTH, ITEM_MOD_HEALTH_REGEN, ITEM_MOD_HIT_MELEE_RATING, ITEM_MOD_HIT_RANGED_RATING, ITEM_MOD_HIT_RATING, ITEM_MOD_HIT_SPELL_RATING, ITEM_MOD_INTELLECT, ITEM_MOD_MANA, ITEM_MOD_MANA_REGENERATION, ITEM_MOD_MASTERY_RATING, ITEM_MOD_PARRY_RATING, ITEM_MOD_RANGED_ATTACK_POWER, ITEM_MOD_RESILIENCE_RATING, ITEM_MOD_SPELL_PENETRATION, ITEM_MOD_SPELL_POWER, ITEM_MOD_SPIRIT, ITEM_MOD_STAMINA, ITEM_MOD_STRENGTH, ITEM_MOD_VERSATILITY, UF::VisibleItem::ItemVisual, m_playerData, Unit::m_unitData, BaseEntity::m_values, MAX_ATTACK, MAX_ENCHANTMENT_SLOT, MAX_ITEM_ENCHANTMENT_EFFECTS, SpellItemEnchantmentEntry::MaxLevel, Melee, SpellItemEnchantmentEntry::MinLevel, UF::UpdateFieldHolder::ModifyValue(), PERM_ENCHANTMENT_SLOT, PRISMATIC_ENCHANTMENT_SLOT, Ranged, Unit::RemoveAurasDueToItemSpell(), SpellItemEnchantmentEntry::RequiredSkillID, SpellItemEnchantmentEntry::RequiredSkillRank, ScaleAsAGem, SpellItemEnchantmentEntry::ScalingClass, SpellItemEnchantmentEntry::ScalingClassRestricted, BaseEntity::SetUpdateFieldValue(), SHIELD_BLOCK_VALUE, sObjectMgr, SOCK_ENCHANTMENT_SLOT, SOCK_ENCHANTMENT_SLOT_2, SOCK_ENCHANTMENT_SLOT_3, sSpellItemEnchantmentStore, sSpellScalingGameTable, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, TC_LOG_DEBUG, TC_LOG_ERROR, Position::ToString(), TOTAL_VALUE, UNIT_MOD_HEALTH, UNIT_MOD_MANA, UNIT_MOD_RESISTANCE_START, UNIT_MOD_STAT_AGILITY, UNIT_MOD_STAT_INTELLECT, UNIT_MOD_STAT_SPIRIT, UNIT_MOD_STAT_STAMINA, UNIT_MOD_STAT_STRENGTH, UpdateDamageDoneMods(), Unit::UpdateStatBuffMod(), and UF::PlayerData::VisibleItems.
Referenced by _ApplyAllItemMods(), _ApplyItemMods(), _RemoveAllItemMods(), ApplyEnchantment(), CorrectMetaGemEnchants(), Spell::EffectEnchantHeldItem(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), Spell::EffectEnchantItemTmp(), WorldSession::HandleCancelTempEnchantmentOpcode(), WorldSession::HandleSocketGems(), RemoveArenaEnchantments(), ToggleMetaGemsActive(), UpdateEnchantTime(), and UpdateSkillEnchantments().
| void Player::ApplyEquipCooldown | ( | Item * | pItem | ) |
Definition at line 25140 of file Player.cpp.
References SpellHistory::AddCooldown(), WorldPackets::Item::ItemCooldown::Cooldown, DIFFICULTY_NONE, Unit::GetAura(), Item::GetEffects(), Object::GetEntry(), BaseEntity::GetGUID(), SpellHistory::GetRemainingCooldown(), Unit::GetSpellHistory(), Item::GetTemplate(), ItemTemplate::HasFlag(), IN_MILLISECONDS, ITEM_FLAG_NO_EQUIP_COOLDOWN, ITEM_SPELLTRIGGER_ON_EQUIP, ITEM_SPELLTRIGGER_ON_USE, WorldPackets::Item::ItemCooldown::ItemGuid, GameTime::Now(), SendDirectMessage(), WorldPackets::Item::ItemCooldown::SpellID, sSpellMgr, and WorldPackets::Item::ItemCooldown::Write().
Referenced by EquipItem().
| void Player::ApplyEquipSpell | ( | SpellInfo const * | spellInfo, |
| Item * | item, | ||
| bool | apply, | ||
| bool | formChange = false |
||
| ) |
Definition at line 8333 of file Player.cpp.
References CastSpell, SpellInfo::CheckShapeshift(), Unit::GetAppliedAuras(), BaseEntity::GetGUID(), WorldObject::GetName(), Unit::GetShapeshiftForm(), SpellInfo::HasAttribute(), SpellInfo::Id, BaseEntity::IsInWorld(), m_itemPassives, Unit::RemoveAurasDueToItemSpell(), Unit::RemoveAurasDueToSpell(), Trinity::Containers::Lists::RemoveUnique(), SendDirectMessage(), SPELL_ATTR9_ITEM_PASSIVE_ON_CLIENT, SPELL_CAST_OK, WorldPackets::Item::AddItemPassive::SpellID, WorldPackets::Item::RemoveItemPassive::SpellID, TC_LOG_DEBUG, Position::ToString(), WorldPackets::Item::AddItemPassive::Write(), and WorldPackets::Item::RemoveItemPassive::Write().
Referenced by AddItemsSetItem(), ApplyItemEquipSpell(), RemoveItemsSetItem(), and UpdateItemSetAuras().
| void Player::ApplyHealthRegenBonus | ( | int32 | amount, |
| bool | apply | ||
| ) |
Definition at line 812 of file StatSystem.cpp.
References _ModifyUInt32(), and m_baseHealthRegen.
Referenced by _ApplyItemBonuses(), and ApplyEnchantment().
| void Player::ApplyItemDependentAuras | ( | Item * | item, |
| bool | apply | ||
| ) |
Definition at line 8275 of file Player.cpp.
References Unit::AddAura(), DIFFICULTY_NONE, SpellInfo::EquippedItemClass, GetSpellMap(), HasAura, HasItemFitToSpellRequirements(), SpellInfo::IsPassive(), PLAYERSPELL_REMOVED, RemoveItemDependentAurasAndCasts(), and sSpellMgr.
Referenced by _ApplyAllItemMods(), _ApplyItemMods(), _RemoveAllItemMods(), AuraEffect::HandleAuraModDisarm(), WorldSession::HandleAutoEquipItemOpcode(), and SwapItem().
| void Player::ApplyItemEquipSpell | ( | Item * | item, |
| bool | apply, | ||
| bool | formChange = false |
||
| ) |
Definition at line 8310 of file Player.cpp.
References ApplyEquipSpell(), DIFFICULTY_NONE, Item::GetEffects(), GetPrimarySpecialization(), Item::GetTemplate(), ItemTemplate::HasFlag(), ITEM_FLAG_LEGACY, ITEM_SPELLTRIGGER_ON_EQUIP, and sSpellMgr.
Referenced by _ApplyAllItemMods(), _ApplyItemMods(), _RemoveAllItemMods(), and UpdateEquipSpellsAtFormChange().
| void Player::ApplyItemLootedSpell | ( | Item * | item, |
| bool | apply | ||
| ) |
Definition at line 8820 of file Player.cpp.
References CastSpell, Item::GetEffects(), BaseEntity::GetGUID(), Item::GetTemplate(), ItemTemplate::HasFlag(), ITEM_FLAG_LEGACY, and Unit::RemoveAurasDueToItemSpell().
Referenced by Loot::AutoStore(), DestroyItem(), WorldSession::HandleLootMasterGiveOpcode(), and StoreLootItem().
| void Player::ApplyItemLootedSpell | ( | ItemTemplate const * | itemTemplate | ) |
Definition at line 8839 of file Player.cpp.
References CastSpell, ItemTemplate::Effects, ItemTemplate::HasFlag(), ITEM_FLAG_LEGACY, and ITEM_SPELLTRIGGER_ON_LOOTED.
| void Player::ApplyItemObtainSpells | ( | Item * | item, |
| bool | apply | ||
| ) |
Definition at line 8205 of file Player.cpp.
References CastSpell, Item::GetEffects(), Item::GetTemplate(), HasAura, ItemTemplate::HasFlag(), ITEM_FLAG_LEGACY, ITEM_SPELLTRIGGER_ON_PICKUP, Unit::RemoveAurasDueToSpell(), and CastSpellExtraArgs::SetCastItem().
Referenced by _StoreItem(), CastAllObtainSpells(), and DestroyItem().
| void Player::ApplyManaRegenBonus | ( | int32 | amount, |
| bool | apply | ||
| ) |
Definition at line 806 of file StatSystem.cpp.
References _ModifyUInt32(), m_baseManaRegen, POWER_MANA, and UpdatePowerRegen().
Referenced by _ApplyItemBonuses(), and ApplyEnchantment().
|
inline |
Definition at line 2200 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::ModDamageDoneNeg.
|
inline |
Definition at line 2201 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::ModDamageDonePercent.
|
inline |
Definition at line 2199 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::ModDamageDonePos.
Referenced by ApplySpellPowerBonus().
|
inline |
Definition at line 2463 of file Player.h.
References UF::PlayerData::FakeInebriation, and m_playerData.
Referenced by AuraEffect::HandleAuraModFakeInebriation().
|
inline |
Definition at line 2989 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::OverrideAPBySpellPowerPercent.
Referenced by AuraEffect::HandleOverrideAttackPowerBySpellPower().
|
inline |
Definition at line 2987 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::OverrideSpellPowerByAPPercent.
Referenced by AuraEffect::HandleOverrideSpellPowerByAttackPower().
|
inline |
Definition at line 2189 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::ModTargetPhysicalResistance.
Referenced by AuraEffect::HandleModTargetResistance().
|
inline |
Definition at line 2188 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::ModTargetResistance.
Referenced by ApplySpellPenetrationBonus(), and AuraEffect::HandleModTargetResistance().
|
static |
Definition at line 22954 of file Player.cpp.
References Aura::GetCharges(), Aura::IsUsingCharges(), Spell::m_appliedMods, and SpellModifier::ownerAura.
Referenced by GetSpellModValues().
| float Player::ApplyRatingDiminishing | ( | CombatRating | cr, |
| float | bonusValue | ||
| ) | const |
Definition at line 5147 of file Player.cpp.
References AvoidanceDiminishing, BlockDiminishing, CR_AVOIDANCE, CR_BLOCK, CR_CRIT_MELEE, CR_CRIT_RANGED, CR_CRIT_SPELL, CR_DODGE, CR_HASTE_MELEE, CR_HASTE_RANGED, CR_HASTE_SPELL, CR_LIFESTEAL, CR_MASTERY, CR_PARRY, CR_SPEED, CR_VERSATILITY_DAMAGE_DONE, CR_VERSATILITY_DAMAGE_TAKEN, CR_VERSATILITY_HEALING_DONE, CritDiminishing, DodgeDiminishing, HasteDiminishing, LifestealDiminishing, MasteryDiminishing, ParryDiminishing, sDB2Manager, SpeedDiminishing, VersatilityDoneDiminishing, and VersatilityTakenDiminishing.
Referenced by GetRatingBonusValue(), and UpdateRating().
| void Player::ApplyRatingMod | ( | CombatRating | cr, |
| int32 | value, | ||
| bool | apply | ||
| ) |
Definition at line 5215 of file Player.cpp.
References m_baseRatingValue, and UpdateRating().
Referenced by _ApplyItemBonuses(), ApplyEnchantment(), and AuraEffect::HandleModRating().
| template TC_GAME_API void Player::ApplySpellMod | ( | SpellInfo const * | spellInfo, |
| SpellModOp | op, | ||
| T & | basevalue, | ||
| Spell * | spell = nullptr |
||
| ) | const |
Definition at line 22840 of file Player.cpp.
References GetSpellModValues().
Referenced by ApplyWhirlwindCleaveAura(), Aura::CalcMaxDuration(), AuraEffect::CalculatePeriodic(), CastItemCombatSpell(), and DuelResetScript::ResetSpellCooldowns().
| void Player::ApplySpellPenetrationBonus | ( | int32 | amount, |
| bool | apply | ||
| ) |
Definition at line 235 of file StatSystem.cpp.
References ApplyModTargetResistance(), and m_spellPenetrationItemMod.
Referenced by _ApplyItemBonuses(), and ApplyEnchantment().
| void Player::ApplySpellPowerBonus | ( | int32 | amount, |
| bool | apply | ||
| ) |
Definition at line 152 of file StatSystem.cpp.
References _ModifyUInt32(), ApplyModDamageDonePos(), BaseEntity::ApplyModUpdateFieldValue(), Unit::HasAuraType(), m_activePlayerData, m_baseSpellPower, BaseEntity::m_values, MAX_SPELL_SCHOOL, UF::ActivePlayerData::ModHealingDonePos, UF::UpdateFieldHolder::ModifyValue(), SPELL_AURA_OVERRIDE_ATTACK_POWER_BY_SP_PCT, SPELL_AURA_OVERRIDE_SPELL_POWER_BY_AP_PCT, SPELL_SCHOOL_HOLY, and UpdateAttackPowerAndDamage().
Referenced by _ApplyItemBonuses(), and ApplyEnchantment().
| void Player::ApplyTraitConfig | ( | int32 | configId, |
| bool | apply | ||
| ) |
Definition at line 29378 of file Player.cpp.
References ApplyTraitEntry(), TraitMgr::CanApplyTraitNode(), UF::TraitConfig::Entries, and GetTraitConfig().
Referenced by _LoadTraits(), and ActivateTalentGroup().
Definition at line 29389 of file Player.cpp.
References ASSERT, LearnSpell(), RemoveSpell(), TraitDefinitionEntry::SpellID, sTraitDefinitionStore, sTraitNodeEntryStore, and TraitNodeEntryEntry::TraitDefinitionID.
Referenced by ApplyTraitConfig(), and ApplyTraitEntryChanges().
| void Player::ApplyTraitEntryChanges | ( | int32 | editedConfigId, |
| WorldPackets::Traits::TraitConfig const & | newConfig, | ||
| bool | applyTraits, | ||
| bool | consumeCurrencies | ||
| ) |
Definition at line 29195 of file Player.cpp.
References UF::TraitSubTreeCache::Active, BaseEntity::AddDynamicUpdateFieldValue(), ApplyTraitEntry(), CurrencyTypesBased, TraitCurrencyEntry::CurrencyTypesID, UF::TraitSubTreeCache::Entries, UF::TraitConfig::Entries, WorldPackets::Traits::TraitConfig::Entries, TraitMgr::FillSpentCurrenciesMap(), UF::DynamicUpdateFieldBase< T >::FindIndexIf(), TraitCurrencyEntry::GetType(), Gold, UF::TraitEntry::GrantedRanks, m_activePlayerData, m_traitConfigStates, BaseEntity::m_values, ModifyMoney(), UF::UpdateFieldHolder::ModifyValue(), PLAYERSPELL_CHANGED, UF::TraitEntry::Rank, WorldPackets::Traits::TraitEntry::Rank, RemoveCurrency(), BaseEntity::RemoveDynamicUpdateFieldValue(), SetCurrentCombatTraitConfigSubTreeID(), BaseEntity::SetUpdateFieldValue(), sTraitCurrencyStore, UF::TraitConfig::SubTrees, WorldPackets::Traits::TraitConfig::SubTrees, UF::ActivePlayerData::TraitConfigs, UF::TraitEntry::TraitNodeEntryID, UF::TraitEntry::TraitNodeID, UF::TraitSubTreeCache::TraitSubTreeID, and UpdateItemSetAuras().
Referenced by UpdateTraitConfig().
| void Player::AreaExploredOrEventHappens | ( | uint32 | questId | ) |
Definition at line 16519 of file Player.cpp.
References CanCompleteQuest(), CompleteQuest, m_QuestStatus, m_QuestStatusSave, Trinity::Containers::MapGetValuePtr(), QUEST_DEFAULT_SAVE_TYPE, QUEST_STATUS_FAILED, and SendQuestComplete().
Referenced by npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DamageTaken(), Spell::EffectQuestComplete(), SmartAI::EndPath(), GroupEventHappens(), WorldSession::HandleAreaTriggerOpcode(), go_headless_horseman_pumpkin::OnGossipSelect(), go_loosely_turned_soil::OnQuestReward(), at_bring_your_orphan_to::OnTrigger(), npc_doctor::npc_doctorAI::PatientSaved(), SmartScript::ProcessAction(), Map::ScriptsProcess(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), and npc_commander_dawnforge::npc_commander_dawnforgeAI::UpdateAI().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 26817 of file Player.cpp.
References Unit::AtEnterCombat(), EnablePvpRules(), and Unit::GetCombatManager().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 26824 of file Player.cpp.
References Unit::AtExitCombat(), m_regenInterruptTimestamp, and GameTime::Now().
|
inline |
Definition at line 1560 of file Player.h.
References AutoStoreLoot(), NULL_BAG, and NULL_SLOT.
Referenced by AutoStoreLoot().
| void Player::AutoStoreLoot | ( | uint8 | bag, |
| uint8 | slot, | ||
| uint32 | loot_id, | ||
| LootStore const & | store, | ||
| ItemContext | context = ItemContext::NONE, |
||
| bool | broadcast = false, |
||
| bool | pushed = false, |
||
| bool | createdByPlayer = false |
||
| ) |
Definition at line 27123 of file Player.cpp.
References Loot::AutoStore(), ObjectGuid::Empty, Loot::FillLoot(), LOOT_MODE_DEFAULT, LOOT_NONE, PROC_FLAG_LOOTED, PROC_FLAG_NONE, PROC_HIT_NONE, PROC_SPELL_PHASE_NONE, PROC_SPELL_TYPE_MASK_ALL, and Unit::ProcSkillsAndAuras().
Referenced by Spell::EffectCreateItem2(), Spell::EffectCreateRandomItem(), and spell_item_extract_gas::PeriodicTick().
| void Player::AutoUnequipChildItem | ( | Item * | parentItem | ) |
Definition at line 11701 of file Player.cpp.
References CanStoreItem_InInventorySlots(), CHILD_EQUIPMENT_SLOT_END, CHILD_EQUIPMENT_SLOT_START, EQUIP_ERR_OK, Item::GetChildItem(), GetChildItemByGuid(), Object::GetEntry(), IsChildEquipmentPos(), NULL_BAG, NULL_SLOT, RemoveItem(), sDB2Manager, and StoreItem().
Referenced by WorldSession::HandleAutoEquipItemOpcode(), RemoveItem(), StoreItem(), and SwapItem().
| void Player::AutoUnequipOffhandIfNeed | ( | bool | force = false | ) |
Definition at line 26101 of file Player.cpp.
References MailDraft::AddItem(), Unit::CanDualWield(), CanStoreItem(), CanTitanGrip(), CharacterDatabase, Item::DeleteFromInventoryDB(), EQUIP_ERR_OK, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, ItemTemplate::GetInventoryType(), GetItemByPos(), GetSession(), Item::GetTemplate(), WorldSession::GetTrinityString(), ItemTemplate::HasFlag(), INVENTORY_SLOT_BAG_0, INVTYPE_2HWEAPON, INVTYPE_WEAPON, INVTYPE_WEAPONOFFHAND, ITEM_FLAG3_ALWAYS_ALLOW_DUAL_WIELD, LANG_NOT_EQUIPPED_ITEM, MAIL_CHECK_MASK_COPIED, MAIL_CHECK_MASK_NOT_RETURNABLE, MAIL_CHECK_MASK_RESTORED_ITEM, MAIL_STATIONERY_GM, MoveItemFromInventory(), NULL_BAG, NULL_SLOT, RemoveItem(), Item::SaveToDB(), MailDraft::SendMailTo(), and StoreItem().
Referenced by _StoreOrEquipNewItem(), Spell::EffectSummonChangeItem(), EquipChildItem(), WorldSession::HandleAutoEquipItemOpcode(), RemoveSpell(), SplitItem(), StoreNewItemInBestSlots(), SwapItem(), and UpdateZone().
| Item * Player::BankItem | ( | ItemPosCountVec const & | dest, |
| Item * | pItem, | ||
| bool | update | ||
| ) |
Definition at line 11902 of file Player.cpp.
References StoreItem().
Referenced by _LoadInventory(), Spell::EffectSummonChangeItem(), EquipChildItem(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoDepositCharacterBank(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), SplitItem(), and SwapItem().
|
overridevirtual |
Reimplemented from BaseEntity.
Definition at line 3484 of file Player.cpp.
References BaseEntity::BuildCreateUpdateBlockForPlayer(), WorldSession::GetBattlenetAccount(), GetSession(), and m_items.
Referenced by Map::SendInitSelf().
| void Player::BuildPlayerRepop | ( | ) |
Definition at line 4212 of file Player.cpp.
References Map::AddToMap(), CalculateCorpseReclaimDelay(), CastSpell, corpseReclaimDelay, CreateCorpse(), DEAD, FailQuestsWithFlag(), GetCorpseLocation(), BaseEntity::GetGUID(), WorldObject::GetMap(), WorldLocation::GetMapId(), WorldObject::GetName(), GetSession(), HasSpell(), Unit::HasUnitState(), WorldPackets::Misc::PreRessurect::PlayerGUID, QUEST_FLAGS_COMPLETION_NO_DEATH, Release, Unit::RemoveAurasWithInterruptFlags(), Unit::RemoveUnitFlag(), Corpse::ResetGhostTime(), SendCorpseReclaimDelay(), SendDirectMessage(), setDeathState(), Unit::SetHealth(), Unit::SetRooted(), Unit::SetWaterWalking(), sScriptMgr, TC_LOG_ERROR, Position::ToString(), UNIT_FLAG_SKINNABLE, UNIT_STATE_STUNNED, and WorldPackets::Misc::PreRessurect::Write().
Referenced by WorldSession::HandleHearthAndResurrect(), WorldSession::HandleRepopRequest(), WorldSession::LogoutPlayer(), RemovedInsignia(), and Update().
|
overrideprotectedvirtual |
Implements Object.
Definition at line 3507 of file Player.cpp.
References flags, m_activePlayerData, Object::m_objectData, m_playerData, and Unit::m_unitData.
|
overrideprotectedvirtual |
Implements Object.
Definition at line 3516 of file Player.cpp.
References flags, UF::UpdateFieldHolder::GetChangedObjectTypeMask(), UF::UpdateFieldHolder::HasChanged(), m_activePlayerData, Object::m_objectData, m_playerData, Unit::m_unitData, BaseEntity::m_values, TYPEID_ACTIVE_PLAYER, TYPEID_OBJECT, TYPEID_PLAYER, and TYPEID_UNIT.
| void Player::BuildValuesUpdateForPlayerWithMask | ( | UpdateData * | data, |
| UF::ObjectData::Mask const & | requestedObjectMask, | ||
| UF::UnitData::Mask const & | requestedUnitMask, | ||
| UF::PlayerData::Mask const & | requestedPlayerMask, | ||
| UF::ActivePlayerData::Mask const & | requestedActivePlayerMask, | ||
| Player const * | target, | ||
| bool | ignoreNestedChangesMask | ||
| ) | const |
Definition at line 3550 of file Player.cpp.
References UpdateData::AddUpdateBlock(), Object::BuildEntityFragmentsForValuesUpdateForPlayerWithMask(), UF::UnitData::FilterDisallowedFieldsMaskForFlag(), UF::PlayerData::FilterDisallowedFieldsMaskForFlag(), flags, UpdateMask< Bits >::GetBlock(), GetUpdateFieldFlagsFor(), m_activePlayerData, Object::m_objectData, m_playerData, Unit::m_unitData, BaseEntity::PrepareValuesUpdateBuffer(), ByteBuffer::put(), UpdateMask< Bits >::Set(), TYPEID_ACTIVE_PLAYER, TYPEID_OBJECT, TYPEID_PLAYER, TYPEID_UNIT, and ByteBuffer::wpos().
Referenced by Player::ValuesUpdateForPlayerWithMaskSender::operator()().
|
overridevirtual |
Reimplemented from Object.
Definition at line 3533 of file Player.cpp.
References UF::UnitData::AppendAllowedFieldsMaskForFlag(), UF::PlayerData::AppendAllowedFieldsMaskForFlag(), flags, UpdateMask< Bits >::GetBlock(), m_playerData, Unit::m_unitData, UpdateMask< Bits >::Set(), TYPEID_PLAYER, and TYPEID_UNIT.
| bool Player::BuyCurrencyFromVendorSlot | ( | ObjectGuid | vendorGuid, |
| uint32 | vendorSlot, | ||
| uint32 | currency, | ||
| uint32 | count | ||
| ) |
Definition at line 23486 of file Player.cpp.
References AddCurrency(), ItemExtendedCostEntry::ArenaBracket, BUY_ERR_CANT_FIND_ITEM, BUY_ERR_DISTANCE_TOO_FAR, BUY_ERR_NOT_ENOUGHT_MONEY, BUY_ERR_REPUTATION_REQUIRE, ItemExtendedCostEntry::CurrencyCount, ItemExtendedCostEntry::CurrencyID, DestroyItemCount(), VendorItemData::Empty(), EQUIP_ERR_CANT_BUY_QUANTITY, EQUIP_ERR_CANT_EQUIP_RANK, EQUIP_ERR_VENDOR_MISSING_TURNINS, VendorItem::ExtendedCost, ItemExtendedCostEntry::Flags, BaseEntity::GetGUID(), GetGuildId(), VendorItemData::GetItem(), VendorItemData::GetItemCount(), GetMaxPersonalArenaRatingRequirement(), WorldObject::GetName(), GetNPCIfCanInteractWith(), GetReputationRank(), Creature::GetVendorItems(), HasAchieved(), HasCurrency(), HasEnoughMoney(), HasItemCount(), Unit::IsAlive(), VendorItem::item, ITEM_EXT_COST_CURRENCY_REQ_IS_SEASON_EARNED_1, ITEM_EXT_COST_FLAG_REQUIRE_GUILD, ITEM_VENDOR_TYPE_CURRENCY, ItemExtendedCostEntry::ItemCount, ItemExtendedCostEntry::ItemID, MAX_ITEM_EXT_COST_CURRENCIES, MAX_ITEM_EXT_COST_ITEMS, MAX_MONEY_AMOUNT, VendorItem::maxcount, ItemExtendedCostEntry::MinFactionID, ModifyMoney(), ItemExtendedCostEntry::Money, RemoveCurrency(), ItemExtendedCostEntry::RequiredAchievement, ItemExtendedCostEntry::RequiredArenaRating, sCurrencyTypesStore, SendBuyError(), SendEquipError(), sItemExtendedCostStore, TC_LOG_DEBUG, TC_LOG_ERROR, ObjectGuid::ToString(), Position::ToString(), VendorItem::Type, UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_VENDOR, and Vendor.
Referenced by WorldSession::HandleBuyItemOpcode().
| bool Player::BuyItemFromVendorSlot | ( | ObjectGuid | vendorguid, |
| uint32 | vendorslot, | ||
| uint32 | item, | ||
| uint32 | count, | ||
| uint8 | bag, | ||
| uint8 | slot | ||
| ) |
Definition at line 23662 of file Player.cpp.
References _StoreOrEquipNewItem(), ALLIANCE, ItemExtendedCostEntry::ArenaBracket, BIND_ON_ACQUIRE, BUY_ERR_CANT_FIND_ITEM, BUY_ERR_DISTANCE_TOO_FAR, BUY_ERR_ITEM_ALREADY_SOLD, BUY_ERR_NOT_ENOUGHT_MONEY, BUY_ERR_REPUTATION_REQUIRE, BuyItemsFromVendors, CalculatePct(), ItemExtendedCostEntry::CurrencyCount, ItemExtendedCostEntry::CurrencyID, VendorItemData::Empty(), EQUIP_ERR_CANT_BUY_QUANTITY, EQUIP_ERR_CANT_EQUIP_RANK, EQUIP_ERR_ITEM_LOCKED, EQUIP_ERR_NOT_EQUIPPABLE, EQUIP_ERR_VENDOR_MISSING_TURNINS, EQUIP_ERR_WRONG_SLOT, VendorItem::ExtendedCost, ItemExtendedCostEntry::Flags, ItemTemplate::GetAllowableClass(), ItemTemplate::GetBaseItemLevel(), ItemTemplate::GetBonding(), ItemTemplate::GetBuyCount(), ItemTemplate::GetBuyPrice(), Unit::GetClassMask(), Object::GetEntry(), BaseEntity::GetGUID(), GetGuild(), GetGuildId(), ItemTemplate::GetId(), VendorItemData::GetItem(), VendorItemData::GetItemCount(), GetMaxPersonalArenaRatingRequirement(), WorldObject::GetName(), GetNPCIfCanInteractWith(), ItemTemplate::GetQuality(), GetReputationPriceDiscount(), GetReputationRank(), ItemTemplate::GetRequiredReputationFaction(), ItemTemplate::GetRequiredReputationRank(), GetTeam(), Unit::GetTotalAuraModifier(), Creature::GetVendorItemCurrentCount(), Creature::GetVendorItems(), GUILD_NEWS_ITEM_PURCHASED, HasAchieved(), HasCurrency(), HasEnoughMoney(), ItemTemplate::HasFlag(), HasItemCount(), HORDE, INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_ITEM_END, Unit::IsAlive(), IsEquipmentPos(), IsGameMaster(), IsInventoryPos(), ConditionMgr::IsPlayerMeetingCondition(), VendorItem::item, ITEM_EXT_COST_CURRENCY_REQ_IS_SEASON_EARNED_1, ITEM_EXT_COST_FLAG_REQUIRE_GUILD, ITEM_FLAG2_FACTION_ALLIANCE, ITEM_FLAG2_FACTION_HORDE, ITEM_QUALITY_EPIC, ItemExtendedCostEntry::ItemCount, ItemExtendedCostEntry::ItemID, MAX_BAG_SIZE, MAX_ITEM_EXT_COST_CURRENCIES, MAX_ITEM_EXT_COST_ITEMS, MAX_MONEY_AMOUNT, VendorItem::maxcount, ItemExtendedCostEntry::MinFactionID, MinNewsItemLevel, ItemExtendedCostEntry::MinReputation, ItemExtendedCostEntry::Money, NULL_BAG, NULL_SLOT, VendorItem::PlayerConditionId, ItemExtendedCostEntry::RequiredAchievement, ItemExtendedCostEntry::RequiredArenaRating, sConditionMgr, sCurrencyTypesStore, SendBuyError(), SendEquipError(), sItemExtendedCostStore, sObjectMgr, SPELL_AURA_MOD_VENDOR_ITEMS_PRICES, TC_LOG_DEBUG, TC_LOG_ERROR, ObjectGuid::ToString(), Position::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_VENDOR, and UpdateCriteria().
Referenced by WorldSession::HandleBuyItemOpcode().
| int32 Player::CalculateCorpseReclaimDelay | ( | bool | load = false | ) | const |
Definition at line 26548 of file Player.cpp.
References CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVE, CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVP, CORPSE_RESURRECTABLE_PVP, corpseReclaimDelay, 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(), WorldSession::HandlePlayerLogin(), and KillPlayer().
|
overridevirtual |
Implements Unit.
Definition at line 435 of file StatSystem.cpp.
References AddPct(), BASE_ATTACK, BASE_MAXDAMAGE, BASE_MINDAMAGE, BASE_PCT, BASE_VALUE, Unit::CanUseAttackType(), SpellShapeshiftFormEntry::CombatRoundTime, CR_VERSATILITY_DAMAGE_DONE, Unit::GetAPMultiplier(), Unit::GetFlatModifierValue(), Unit::GetPctModifierValue(), GetRatingBonusValue(), Unit::GetShapeshiftForm(), Unit::GetTotalAttackPowerValue(), Unit::GetTotalAuraModifier(), Unit::GetWeaponDamageRange(), MAXDAMAGE, MINDAMAGE, OFF_ATTACK, RANGED_ATTACK, SPELL_AURA_MOD_VERSATILITY, sSpellShapeshiftFormStore, TOTAL_PCT, TOTAL_VALUE, UNIT_MOD_DAMAGE_MAINHAND, UNIT_MOD_DAMAGE_OFFHAND, and UNIT_MOD_DAMAGE_RANGED.
| int32 Player::CalculateReputationGain | ( | ReputationSource | source, |
| uint32 | creatureOrQuestLevel, | ||
| int32 | rep, | ||
| int32 | faction, | ||
| bool | noQuestBonus = false |
||
| ) |
Definition at line 6422 of file Player.cpp.
References CalculatePct(), Trinity::XP::GetGrayLevel(), Unit::GetLevel(), GetsRecruitAFriendBonus(), Unit::GetTotalAuraModifier(), Unit::GetTotalAuraModifierByMiscValue(), NoRepGainModifiers, 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, sFactionStore, sFriendshipReputationStore, sObjectMgr, SPELL_AURA_MOD_FACTION_REPUTATION_GAIN, SPELL_AURA_MOD_REPUTATION_GAIN, and sWorld.
Referenced by Spell::EffectReputation(), RewardReputation(), and RewardReputation().
|
inline |
Definition at line 3052 of file Player.h.
References BaseEntity::GetGUID().
Referenced by spell_gen_spirit_heal_personal::OnRemove().
| bool Player::CanAddQuest | ( | Quest const * | quest, |
| bool | msg | ||
| ) | const |
Definition at line 14491 of file Player.cpp.
References CanStoreNewItem(), EQUIP_ERR_ITEM_MAX_COUNT, EQUIP_ERR_OK, Quest::GetSrcItemCount(), Quest::GetSrcItemId(), NULL_BAG, NULL_SLOT, SatisfyQuestLog(), and SendEquipError().
Referenced by Spell::EffectQuestStart(), WorldSession::HandlePushQuestToParty(), quest_commandscript::HandleQuestAdd(), WorldSession::HandleQuestConfirmAccept(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestgiverQueryQuestOpcode(), RewardQuest(), and SendPreparedQuest().
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
Definition at line 24448 of file Player.cpp.
References BaseEntity::GetGUID(), Unit::GetUnitBeingMoved(), ObjectGuid::IsEmpty(), and m_activePlayerData.
|
inlineoverridevirtual |
| InventoryResult Player::CanBankItem | ( | uint8 | bag, |
| uint8 | slot, | ||
| ItemPosCountVec & | dest, | ||
| Item * | pItem, | ||
| bool | swap, | ||
| bool | not_loading = true, |
||
| bool | reagentBankOnly = false |
||
| ) | const |
Definition at line 10975 of file Player.cpp.
References ASSERT, AsUnderlyingType(), BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, CanStoreItem_InBag(), CanStoreItem_InSpecificSlot(), CanTakeMoreSimilarItems(), CanUseItem(), EQUIP_ERR_BAG_IN_BAG, EQUIP_ERR_BANK_FULL, EQUIP_ERR_CANT_SWAP, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_LOOT_GONE, EQUIP_ERR_NO_BANK_SLOT, EQUIP_ERR_NOT_OWNER, EQUIP_ERR_OK, EQUIP_ERR_REAGENT_BANK_FULL, EQUIP_ERR_WRONG_SLOT, GetCharacterBankTabCount(), Item::GetCount(), Object::GetEntry(), BaseEntity::GetGUID(), ItemTemplate::GetId(), GetLootGUID(), ItemTemplate::GetMaxStackSize(), WorldObject::GetName(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, Item::IsBag(), Item::IsBindedNotWith(), Item::IsCurrencyToken(), Item::IsNotEmptyBag(), m_activePlayerData, NULL_BAG, NULL_SLOT, PriorityReagents, TC_LOG_DEBUG, TC_LOG_ERROR, ObjectGuid::ToString(), and Position::ToString().
Referenced by _LoadInventory(), CanEquipChildItem(), Spell::EffectSummonChangeItem(), EquipChildItem(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoDepositCharacterBank(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), SplitItem(), and SwapItem().
| bool Player::CanBeGameMaster | ( | ) | const |
Definition at line 2016 of file Player.cpp.
References GetSession(), WorldSession::HasPermission(), and rbac::RBAC_PERM_COMMAND_GM.
Referenced by IsInstanceLoginGameMasterException(), npc_chromie_start::npc_chromie_startAI::OnGossipHello(), and npc_chromie_start::npc_chromie_startAI::OnGossipSelect().
|
inline |
Definition at line 2477 of file Player.h.
Referenced by UpdateBlockPercentage().
| bool Player::CanCaptureTowerPoint | ( | ) | const |
Definition at line 26960 of file Player.cpp.
References Unit::HasInvisibilityAura(), Unit::HasStealthAura(), and Unit::IsAlive().
| void Player::CancelPendingCastRequest | ( | ) |
Definition at line 31512 of file Player.cpp.
References _pendingSpellCastRequest, WorldPackets::Spells::CastFailed::CastID, WorldPackets::Spells::CastFailed::Reason, SendDirectMessage(), SPELL_FAILED_DONT_REPORT, WorldPackets::Spells::CastFailed::SpellID, and WorldPackets::Spells::CastFailed::Write().
Referenced by CanExecutePendingSpellCastRequest(), ExecutePendingSpellCastRequest(), WorldSession::HandleCancelCastOpcode(), WorldSession::HandleCancelQueuedSpellOpcode(), RequestSpellCast(), and setDeathState().
Definition at line 14515 of file Player.cpp.
References CanTakeQuest(), QuestStatusData::Explored, Quest::GetLimitTime(), Quest::GetObjectives(), GetQuestRewardStatus(), Quest::HasFlag(), IsQuestObjectiveComplete(), Quest::IsRepeatable(), Quest::IsTurnIn(), m_QuestStatus, QUEST_FLAGS_COMPLETION_AREA_TRIGGER, QUEST_FLAGS_COMPLETION_EVENT, QUEST_OBJECTIVE_FLAG_OPTIONAL, QUEST_OBJECTIVE_FLAG_PART_OF_PROGRESS_BAR, QUEST_STATUS_INCOMPLETE, QuestStatusData::Slot, sObjectMgr, QuestStatusData::Status, and QuestStatusData::Timer.
Referenced by AddQuestAndCheckCompletion(), AreaExploredOrEventHappens(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleQuestgiverQueryQuestOpcode(), WorldSession::HandleQuestgiverRequestRewardOpcode(), and UpdateQuestObjectiveProgress().
| bool Player::CanCompleteRepeatableQuest | ( | Quest const * | quest | ) |
Definition at line 14562 of file Player.cpp.
References CanRewardQuest(), and CanTakeQuest().
Referenced by WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestgiverCompleteQuest(), and SendPreparedQuest().
| bool Player::CanEnableWarModeInArea | ( | ) | const |
Definition at line 30983 of file Player.cpp.
References AllowWarModeToggle, WorldObject::GetAreaId(), AreaTableEntry::GetFlags2(), WorldObject::GetZoneId(), IsFriendlyArea(), AreaTableEntry::ParentAreaID, and sAreaTableStore.
Referenced by CriteriaHandler::ModifierSatisfied(), SetWarModeDesired(), and UpdateWarModeAuras().
|
inlineoverridevirtual |
| InventoryResult Player::CanEquipChildItem | ( | Item * | parentItem | ) | const |
Definition at line 10891 of file Player.cpp.
References CanBankItem(), CanStoreItem(), CanUnequipItem(), ItemChildEquipmentEntry::ChildItemEquipSlot, EQUIP_ERR_CANT_SWAP, EQUIP_ERR_OK, Item::GetBagSlot(), Item::GetChildItem(), GetChildItemByGuid(), Object::GetEntry(), GetItemByPos(), Item::GetPos(), INVENTORY_SLOT_BAG_0, Item::IsBag(), IsBankPos(), IsEquipmentPos(), IsInventoryPos(), NULL_BAG, NULL_SLOT, and sDB2Manager.
Referenced by WorldSession::HandleAutoEquipItemOpcode(), and SwapItem().
| InventoryResult Player::CanEquipItem | ( | uint8 | slot, |
| uint16 & | dest, | ||
| Item * | pItem, | ||
| bool | swap, | ||
| bool | not_loading = true |
||
| ) | const |
Definition at line 10709 of file Player.cpp.
References ItemTemplate::CanChangeEquipStateInCombat(), Unit::CanDualWield(), CanEquipUniqueItem(), CanStoreItem(), CanTakeMoreSimilarItems(), CanTitanGrip(), CanUnequipItem(), CanUseItem(), CURRENT_CHANNELED_SPELL, CURRENT_EXPANSION, CURRENT_GENERIC_SPELL, EQUIP_ERR_2HANDED_EQUIPPED, EQUIP_ERR_2HSKILLNOTFOUND, EQUIP_ERR_CANT_SWAP, EQUIP_ERR_CLIENT_LOCKED_OUT, EQUIP_ERR_GENERIC_STUNNED, EQUIP_ERR_INV_FULL, EQUIP_ERR_ITEM_COOLDOWN, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_LOOT_GONE, EQUIP_ERR_NO_SLOT_AVAILABLE, EQUIP_ERR_NOT_DURING_ARENA_MATCH, EQUIP_ERR_NOT_EQUIPPABLE, EQUIP_ERR_NOT_IN_COMBAT, EQUIP_ERR_NOT_OWNER, EQUIP_ERR_OK, EQUIP_ERR_ONLY_ONE_AMMO, EQUIP_ERR_ONLY_ONE_QUIVER, EQUIP_ERR_WRONG_SLOT, EQUIPMENT_SLOT_FINGER1, EQUIPMENT_SLOT_FINGER2, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_TRINKET1, EQUIPMENT_SLOT_TRINKET2, FindEquipSlot(), GetBattleground(), ItemTemplate::GetClass(), Item::GetCount(), Unit::GetCurrentSpell(), Object::GetEntry(), BaseEntity::GetGUID(), ItemTemplate::GetId(), ItemTemplate::GetInventoryType(), GetItemByPos(), Unit::GetLevel(), GetLootGUID(), GetMaxLevelForExpansion(), WorldObject::GetName(), Item::GetQuality(), Item::GetScalingContentTuningId(), ItemTemplate::GetSubClass(), Item::GetTemplate(), ItemTemplate::HasFlag(), Unit::HasUnitState(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVTYPE_2HWEAPON, INVTYPE_RELIC, INVTYPE_WEAPON, INVTYPE_WEAPONOFFHAND, Item::IsBindedNotWith(), Unit::IsCharmed(), Unit::IsInCombat(), IsTwoHandUsed(), ITEM_CLASS_QUIVER, ITEM_CLASS_WEAPON, ITEM_FLAG3_ALWAYS_ALLOW_DUAL_WIELD, ITEM_QUALITY_HEIRLOOM, ITEM_SUBCLASS_AMMO_POUCH, ITEM_SUBCLASS_WEAPON_POLEARM, m_weaponChangeTimer, NULL_BAG, NULL_SLOT, PROFESSION_SLOT_PROFESSION1_GEAR1, PROFESSION_SLOT_PROFESSION1_GEAR2, PROFESSION_SLOT_PROFESSION2_GEAR1, PROFESSION_SLOT_PROFESSION2_GEAR2, sDB2Manager, SPELL_ATTR6_ALLOW_EQUIP_WHILE_CASTING, STATUS_IN_PROGRESS, TC_LOG_DEBUG, Position::ToString(), and UNIT_STATE_STUNNED.
Referenced by _LoadInventory(), CanEquipNewItem(), Create(), Spell::EffectSummonChangeItem(), EquipChildItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleUseEquipmentSet(), SplitItem(), SwapItem(), and UpdateAverageItemLevelTotal().
| InventoryResult Player::CanEquipNewItem | ( | uint8 | slot, |
| uint16 & | dest, | ||
| uint32 | item, | ||
| bool | swap | ||
| ) | const |
Definition at line 10695 of file Player.cpp.
References CanEquipItem(), Item::CreateItem(), EQUIP_ERR_ITEM_NOT_FOUND, and NONE.
Referenced by _StoreOrEquipNewItem(), WorldSession::HandleBuyBankTab(), and StoreNewItemInBestSlots().
| InventoryResult Player::CanEquipUniqueItem | ( | Item * | pItem, |
| uint8 | except_slot = NULL_SLOT, |
||
| uint32 | limit_count = 1 |
||
| ) | const |
Definition at line 27372 of file Player.cpp.
References BonusData::AddBonusList(), CanEquipUniqueItem(), EQUIP_ERR_OK, Item::GetBonus(), Item::GetGemCountWithLimitCategory(), Item::GetTemplate(), BonusData::Initialize(), Item::IsEquipped(), BonusData::LimitCategory, Item::m_itemData, and sObjectMgr.
Referenced by CanEquipItem(), CanEquipUniqueItem(), and WorldSession::HandleSocketGems().
| InventoryResult Player::CanEquipUniqueItem | ( | ItemTemplate const * | itemProto, |
| BonusData const & | itemBonus, | ||
| uint8 | except_slot = NULL_SLOT, |
||
| uint32 | limit_count = 1 |
||
| ) | const |
Definition at line 27404 of file Player.cpp.
References EQUIP_ERR_ITEM_MAX_COUNT_EQUIPPED_SOCKETED, EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_EQUIPPED_EXCEEDED_IS, EQUIP_ERR_ITEM_UNIQUE_EQUIPPABLE, EQUIP_ERR_NOT_EQUIPPABLE, EQUIP_ERR_OK, ItemTemplate::GetId(), GetItemLimitCategoryQuantity(), ItemTemplate::HasFlag(), HasGemWithLimitCategoryEquipped(), HasItemOrGemWithIdEquipped(), HasItemWithLimitCategoryEquipped(), ITEM_FLAG_UNIQUE_EQUIPPABLE, BonusData::LimitCategory, and sItemLimitCategoryStore.
|
private |
Definition at line 31735 of file Player.cpp.
References _pendingSpellCastRequest, CancelPendingCastRequest(), CURRENT_CHANNELED_SPELL, Unit::GetCurrentSpell(), GetDifficultyID(), BaseEntity::GetGUID(), WorldObject::GetMap(), SpellHistory::GetRemainingGlobalCooldown(), Unit::GetSpellHistory(), ObjectAccessor::GetUnit(), Unit::GetUnitBeingMoved(), Unit::HasUnitState(), BaseEntity::IsInWorld(), sSpellMgr, and UNIT_STATE_CASTING.
Referenced by RequestSpellCast(), and Update().
|
inlineoverridevirtual |
| bool Player::CanInteractWithQuestGiver | ( | Object * | questGiver | ) | const |
Definition at line 1796 of file Player.cpp.
References GAMEOBJECT_TYPE_QUESTGIVER, GetGameObjectIfCanInteractWith(), BaseEntity::GetGUID(), GetNPCIfCanInteractWith(), BaseEntity::GetTypeId(), Unit::IsAlive(), Object::ToPlayer(), TYPEID_GAMEOBJECT, TYPEID_ITEM, TYPEID_PLAYER, TYPEID_UNIT, UNIT_NPC_FLAG_2_NONE, 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 | ||
| ) | const |
Definition at line 4733 of file Player.cpp.
References AllowTradeChannel, Disabled, AreaTableEntry::GetFlags(), ChatChannelsEntry::GetFlags(), GetGuildId(), ChatChannelsEntry::GetRuleset(), GuildRecruitment, NoChatChannels, OnlyInCities, Regional, and ZoneBased.
Referenced by UpdateLocalChannels().
| bool Player::CanJoinToBattleground | ( | BattlegroundTemplate const * | bg | ) | const |
Definition at line 24310 of file Player.cpp.
References GetSession(), WorldSession::HasPermission(), BattlegroundTemplate::Id, BattlegroundTemplate::IsArena(), BattlegroundMgr::IsRandomBattleground(), rbac::RBAC_PERM_JOIN_ARENAS, rbac::RBAC_PERM_JOIN_NORMAL_BG, and rbac::RBAC_PERM_JOIN_RANDOM_BG.
Referenced by Group::CanJoinBattlegroundQueue(), WorldSession::HandleBattlemasterJoinArena(), and WorldSession::HandleBattlemasterJoinOpcode().
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
Definition at line 24441 of file Player.cpp.
References WorldObject::CanNeverSee(), HasPlayerLocalFlag(), and PLAYER_LOCAL_FLAG_OVERRIDE_TRANSPORT_SERVER_TIME.
| bool Player::CanNoReagentCast | ( | SpellInfo const * | spellInfo | ) | const |
Definition at line 26217 of file Player.cpp.
References SpellInfo::HasAttribute(), Unit::HasUnitFlag(), m_activePlayerData, SPELL_ATTR5_NO_REAGENT_COST_WITH_AURA, SpellInfo::SpellFamilyFlags, and UNIT_FLAG_PREPARATION.
Referenced by Spell::CheckItems(), and Spell::TakeReagents().
|
inline |
Definition at line 2475 of file Player.h.
Referenced by UpdateParryPercentage().
| bool Player::CanReportAfkDueToLimit | ( | ) |
Definition at line 24321 of file Player.cpp.
References BGData::bgAfkReportedCount, and m_bgData.
Referenced by ReportedAfkBy().
Definition at line 31530 of file Player.cpp.
References CURRENT_GENERIC_SPELL, CURRENT_MELEE_SPELL, Unit::GetCurrentSpell(), SpellHistory::GetRemainingGlobalCooldown(), Unit::GetSpellHistory(), and SPELL_QUEUE_TIME_WINDOW.
Referenced by WorldSession::HandleCastSpellOpcode(), and WorldSession::HandleUseItemOpcode().
| bool Player::CanRewardQuest | ( | Quest const * | quest, |
| bool | msg | ||
| ) | const |
Definition at line 14576 of file Player.cpp.
References DISABLE_TYPE_QUEST, EQUIP_ERR_ITEM_NOT_FOUND, GetItemCount(), Quest::GetObjectives(), Quest::GetQuestId(), GetQuestRewardStatus(), GetQuestStatus(), HasCurrency(), HasEnoughMoney(), Quest::HasQuestObjectiveType(), Quest::IsDFQuest(), DisableMgr::IsDisabledFor(), Quest::IsTurnIn(), QUEST_OBJECTIVE_CURRENCY, QUEST_OBJECTIVE_FLAG_2_QUEST_BOUND_ITEM, QUEST_OBJECTIVE_ITEM, QUEST_OBJECTIVE_MONEY, QUEST_STATUS_COMPLETE, SatisfyQuestDay(), SatisfyQuestLevel(), SatisfyQuestMonth(), SatisfyQuestReputation(), SatisfyQuestSeasonal(), SatisfyQuestSkill(), SatisfyQuestWeek(), and SendEquipError().
Referenced by CanCompleteRepeatableQuest(), lfg::LFGMgr::FinishDungeon(), ConditionMgr::GetPlayerConditionLfgValue(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), WorldSession::SendLfgPlayerLockInfo(), SendPreparedQuest(), and Group::SendUpdateToPlayer().
| bool Player::CanRewardQuest | ( | Quest const * | quest, |
| LootItemType | rewardType, | ||
| uint32 | rewardId, | ||
| bool | msg | ||
| ) | const |
Definition at line 14688 of file Player.cpp.
References CanSelectQuestPackageItem(), CanStoreNewItem(), Currency, EQUIP_ERR_OK, Quest::GetQuestId(), Quest::GetQuestPackageID(), Quest::GetRewChoiceItemsCount(), Quest::GetRewItemsCount(), Item, NULL_BAG, NULL_SLOT, QUEST_REWARD_CHOICES_COUNT, Quest::RewardChoiceItemCount, Quest::RewardChoiceItemId, Quest::RewardChoiceItemType, Quest::RewardItemCount, Quest::RewardItemId, sDB2Manager, SendEquipError(), and SendQuestFailed().
| InventoryResult Player::CanRollNeedForItem | ( | ItemTemplate const * | item, |
| Map const * | map, | ||
| bool | restrictOnlyLfg | ||
| ) | const |
Definition at line 11244 of file Player.cpp.
References ChrClassesEntry::ArmorTypeMask, EQUIP_ERR_CANT_EQUIP_EVER, EQUIP_ERR_CANT_EQUIP_SKILL, EQUIP_ERR_CLIENT_LOCKED_OUT, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_OK, EQUIP_ERR_PROFICIENCY_NEEDED, ItemTemplate::GetAllowableClass(), ItemTemplate::GetAllowableRace(), ItemTemplate::GetClass(), Unit::GetClass(), Unit::GetClassMask(), Map::GetDifficultyID(), GetGroup(), BaseEntity::GetGUID(), Map::GetId(), ItemTemplate::GetInventoryType(), Unit::GetRace(), ItemTemplate::GetRequiredSkill(), ItemTemplate::GetRequiredSkillRank(), ItemTemplate::GetRequiredSpell(), ItemTemplate::GetSkill(), GetSkillValue(), ItemTemplate::GetSubClass(), Trinity::RaceMask< T, N >::HasRace(), HasSpell(), INVTYPE_CLOAK, ITEM_CLASS_ARMOR, ITEM_CLASS_WEAPON, sChrClassesStore, and sLFGMgr.
Referenced by LootItem::ItemAllowedForPlayer(), and LootRoll::SendStartRoll().
| bool Player::CanSeeGossipOn | ( | Creature const * | creature | ) | const |
Definition at line 27997 of file Player.cpp.
References CanTakeQuest(), Object::GetEntry(), GetGossipMenuForSource(), GetQuestStatus(), Unit::HasNpcFlag(), QUEST_STATUS_COMPLETE, QUEST_STATUS_INCOMPLETE, sObjectMgr, UNIT_NPC_FLAG_GOSSIP, and UNIT_NPC_FLAG_QUESTGIVER.
Referenced by UF::ViewerDependentValue< UF::UnitData::NpcFlagsTag >::GetValue().
| bool Player::CanSeeSpellClickOn | ( | Creature const * | creature | ) | const |
Definition at line 28030 of file Player.cpp.
References Object::GetEntry(), Unit::HasNpcFlag(), sConditionMgr, sObjectMgr, and UNIT_NPC_FLAG_SPELLCLICK.
Referenced by UF::ViewerDependentValue< UF::UnitData::NpcFlagsTag >::GetValue().
| bool Player::CanSeeStartQuest | ( | Quest const * | quest | ) | const |
Definition at line 14465 of file Player.cpp.
References CONFIG_QUEST_HIGH_LEVEL_HIDE_DIFF, DISABLE_TYPE_QUEST, Unit::GetLevel(), Quest::GetQuestId(), GetQuestMinLevel(), DisableMgr::IsDisabledFor(), SatisfyQuestClass(), SatisfyQuestDay(), SatisfyQuestDependentQuests(), SatisfyQuestExclusiveGroup(), SatisfyQuestExpansion(), SatisfyQuestMonth(), SatisfyQuestRace(), SatisfyQuestReputation(), SatisfyQuestSeasonal(), SatisfyQuestSkill(), SatisfyQuestWeek(), and sWorld.
Referenced by GetQuestDialogStatus(), WorldSession::HandleQuestgiverChooseRewardOpcode(), and WorldSession::HandleQuestgiverCompleteQuest().
| bool Player::CanSelectQuestPackageItem | ( | QuestPackageItemEntry const * | questPackageItem | ) | const |
Definition at line 14950 of file Player.cpp.
References ALLIANCE, QuestPackageItemEntry::DisplayType, Unit::GetClassMask(), GetTeam(), ItemTemplate::HasFlag(), HORDE, ItemTemplate::IsUsableByLootSpecialization(), ITEM_FLAG2_FACTION_ALLIANCE, ITEM_FLAG2_FACTION_HORDE, QuestPackageItemEntry::ItemID, ItemTemplate::ItemSpecClassMask, QUEST_PACKAGE_FILTER_CLASS, QUEST_PACKAGE_FILTER_EVERYONE, QUEST_PACKAGE_FILTER_LOOT_SPECIALIZATION, and sObjectMgr.
Referenced by CanRewardQuest(), WorldSession::HandleQuestgiverChooseRewardOpcode(), and RewardQuestPackage().
| Optional< SellResult > Player::CanSellItemToVendor | ( | Item const * | item, |
| uint32 | amount | ||
| ) | const |
Definition at line 23889 of file Player.cpp.
References Item::GetCount(), BaseEntity::GetGUID(), GetLootGUID(), Item::GetOwnerGUID(), Item::GetSellPrice(), Item::IsNotEmptyBag(), m_activePlayerData, and SELL_ERR_CANT_SELL_ITEM.
Referenced by WorldSession::HandleSellAllJunkItems(), and WorldSession::HandleSellItemOpcode().
| bool Player::CanShareQuest | ( | uint32 | questId | ) | const |
Definition at line 15943 of file Player.cpp.
References Quest::HasFlag(), m_QuestStatus, QUEST_FLAGS_SHARABLE, and sObjectMgr.
Referenced by WorldSession::HandlePushQuestToParty().
| InventoryResult Player::CanStoreItem | ( | uint8 | bag, |
| uint8 | slot, | ||
| ItemPosCountVec & | dest, | ||
| Item * | pItem, | ||
| bool | swap = false |
||
| ) | const |
Definition at line 9975 of file Player.cpp.
References CanStoreItem(), EQUIP_ERR_ITEM_NOT_FOUND, Item::GetCount(), and Object::GetEntry().
Referenced by _LoadInventory(), AutoUnequipOffhandIfNeed(), CanEquipChildItem(), CanEquipItem(), CanStoreItem(), CanStoreNewItem(), Create(), Spell::EffectSummonChangeItem(), EquipChildItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleBuybackItem(), WorldSession::HandleMailCreateTextItem(), WorldSession::HandleMailTakeItem(), WorldSession::HandleUseEquipmentSet(), WorldSession::moveItems(), SetSkill(), 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 |
Definition at line 10225 of file Player.cpp.
References BIND_NONE, BIND_ON_ACQUIRE, CanStoreItem_InBag(), CanStoreItem_InInventorySlots(), CanStoreItem_InSpecificSlot(), CanTakeMoreSimilarItems(), CHILD_EQUIPMENT_SLOT_END, CHILD_EQUIPMENT_SLOT_START, EQUIP_ERR_BAG_IN_BAG, EQUIP_ERR_CANT_SWAP, EQUIP_ERR_INV_FULL, EQUIP_ERR_ITEM_MAX_COUNT, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_LOOT_GONE, EQUIP_ERR_NOT_OWNER, EQUIP_ERR_OK, ItemTemplate::GetBagFamily(), ItemTemplate::GetBonding(), ItemTemplate::GetClass(), BaseEntity::GetGUID(), GetInventorySlotCount(), GetLootGUID(), ItemTemplate::GetMaxStackSize(), ItemTemplate::GetSubClass(), Item::HasItemFlag(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_START, Item::IsBindedNotWith(), ItemTemplate::IsCraftingReagent(), Item::IsNotEmptyBag(), ITEM_CLASS_CONTAINER, ITEM_FIELD_FLAG_CHILD, ITEM_SUBCLASS_CONTAINER, ITEM_SUBCLASS_REAGENT_CONTAINER, NULL_BAG, NULL_SLOT, REAGENT_BAG_SLOT_END, REAGENT_BAG_SLOT_START, sObjectMgr, and TC_LOG_DEBUG.
|
private |
Definition at line 10100 of file Player.cpp.
References Item::CanBeMergedPartlyWith(), EQUIP_ERR_DESTROY_NONEMPTY_BAG, EQUIP_ERR_OK, EQUIP_ERR_WRONG_BAG_TYPE, EQUIP_ERR_WRONG_BAG_TYPE_3, GetBagByPos(), Bag::GetBagSize(), ItemTemplate::GetClass(), Item::GetCount(), GetItemByPos(), ItemTemplate::GetMaxStackSize(), ItemTemplate::GetSubClass(), Item::GetTemplate(), Item::HasItemFlag(), ItemPosCount::isContainedIn(), Item::IsNotEmptyBag(), ITEM_CLASS_CONTAINER, ITEM_FIELD_FLAG_CHILD, ITEM_SUBCLASS_CONTAINER, ITEM_SUBCLASS_REAGENT_CONTAINER, and ItemCanGoIntoBag().
Referenced by CanBankItem(), and CanStoreItem().
|
private |
Definition at line 10175 of file Player.cpp.
References Item::CanBeMergedPartlyWith(), EQUIP_ERR_DESTROY_NONEMPTY_BAG, EQUIP_ERR_OK, Item::GetCount(), GetItemByPos(), ItemTemplate::GetMaxStackSize(), INVENTORY_SLOT_BAG_0, ItemPosCount::isContainedIn(), and Item::IsNotEmptyBag().
Referenced by AutoUnequipChildItem(), CanStoreItem(), and StoreNewItem().
|
private |
Definition at line 10023 of file Player.cpp.
References BUYBACK_SLOT_END, BUYBACK_SLOT_START, Item::CanBeMergedPartlyWith(), EQUIP_ERR_DESTROY_NONEMPTY_BAG, EQUIP_ERR_NO_SLOT_AVAILABLE, EQUIP_ERR_OK, EQUIP_ERR_WRONG_BAG_TYPE, EQUIP_ERR_WRONG_BAG_TYPE_3, GetBagByPos(), ItemTemplate::GetContainerSlots(), Item::GetCount(), GetInventorySlotCount(), GetItemByPos(), ItemTemplate::GetMaxStackSize(), Item::GetTemplate(), Item::HasItemFlag(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_ITEM_START, IsBagPos(), IsChildEquipmentPos(), ItemPosCount::isContainedIn(), IsEquipmentPos(), Item::IsNotEmptyBag(), ITEM_FIELD_FLAG_CHILD, ItemCanGoIntoBag(), and PLAYER_SLOT_END.
Referenced by CanBankItem(), and CanStoreItem().
| InventoryResult Player::CanStoreItems | ( | Item ** | items, |
| int | count, | ||
| uint32 * | offendingItemId | ||
| ) | const |
Definition at line 10482 of file Player.cpp.
References AsUnderlyingType(), Item::CanBeMergedPartlyWith(), CanTakeMoreSimilarItems(), EQUIP_ERR_BAG_FULL, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_LOOT_GONE, EQUIP_ERR_NOT_OWNER, EQUIP_ERR_OK, GetBagByPos(), ItemTemplate::GetBagFamily(), ItemTemplate::GetClass(), Item::GetCount(), Object::GetEntry(), BaseEntity::GetGUID(), GetInventorySlotCount(), GetItemByPos(), GetLootGUID(), ItemTemplate::GetMaxStackSize(), WorldObject::GetName(), ItemTemplate::GetSubClass(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, Item::IsBindedNotWith(), Item::IsInTrade(), ITEM_CLASS_CONTAINER, ITEM_SUBCLASS_CONTAINER, ITEM_SUBCLASS_REAGENT_CONTAINER, ItemCanGoIntoBag(), Item::m_lootGenerated, MAX_BAG_SIZE, REAGENT_BAG_SLOT_END, TC_LOG_DEBUG, and Position::ToString().
Referenced by WorldSession::HandleAcceptTradeOpcode().
| InventoryResult Player::CanStoreNewItem | ( | uint8 | bag, |
| uint8 | slot, | ||
| ItemPosCountVec & | dest, | ||
| uint32 | item, | ||
| uint32 | count, | ||
| uint32 * | no_space_count = nullptr |
||
| ) | const |
Definition at line 9970 of file Player.cpp.
References CanStoreItem().
Referenced by _StoreOrEquipNewItem(), AddItem(), Loot::AutoStore(), BattlePets::BattlePetMgr::CageBattlePet(), CanAddQuest(), CanRewardQuest(), Spell::CheckItems(), quest_commandscript::CompleteObjective(), Spell::DoCreateItem(), GiveQuestSourceItem(), misc_commandscript::HandleAddItemCommandHelper(), misc_commandscript::HandleAddItemSetCommand(), AuraEffect::HandleChannelDeathItem(), OPvPCapturePointNA::HandleCustomSpell(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandlePetitionBuy(), item_mysterious_egg::OnExpire(), item_disgusting_jar::OnExpire(), npc_tyrande_whisperwind::npc_tyrande_whisperwindAI::OnGossipSelect(), npc_erozion::OnGossipSelect(), RefundItem(), RemovePet(), RewardQuest(), RewardQuestPackage(), npc_verdisa_beglaristrasz_eternos::StoreEssence(), StoreLootItem(), and StoreNewItemInBestSlots().
| InventoryResult Player::CanTakeMoreSimilarItems | ( | Item * | pItem, |
| uint32 * | offendingItemId = nullptr |
||
| ) | const |
Definition at line 9965 of file Player.cpp.
References CanTakeMoreSimilarItems(), Item::GetCount(), and Object::GetEntry().
Referenced by CanBankItem(), CanEquipItem(), CanStoreItem(), CanStoreItems(), and CanTakeMoreSimilarItems().
| InventoryResult Player::CanTakeMoreSimilarItems | ( | uint32 | entry, |
| uint32 | count, | ||
| Item * | pItem, | ||
| uint32 * | no_space_count = nullptr, |
||
| uint32 * | offendingItemId = nullptr |
||
| ) | const |
Definition at line 9906 of file Player.cpp.
References EQUIP_ERR_ITEM_MAX_COUNT, EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_COUNT_EXCEEDED_IS, EQUIP_ERR_LOOT_GONE, EQUIP_ERR_NOT_EQUIPPABLE, EQUIP_ERR_OK, ItemLimitCategoryEntry::Flags, ItemTemplate::GetId(), GetItemCount(), GetItemCountWithLimitCategory(), Item::GetItemLimitCategory(), ItemTemplate::GetItemLimitCategory(), GetItemLimitCategoryQuantity(), ItemTemplate::GetMaxCount(), ITEM_LIMIT_CATEGORY_MODE_HAVE, Item::m_lootGenerated, sItemLimitCategoryStore, and sObjectMgr.
|
inline |
Definition at line 1531 of file Player.h.
References CanTakeMoreSimilarItems().
Referenced by CanTakeMoreSimilarItems().
| bool Player::CanTakeQuest | ( | Quest const * | quest, |
| bool | msg | ||
| ) | const |
Definition at line 14479 of file Player.cpp.
References DISABLE_TYPE_QUEST, Quest::GetQuestId(), DisableMgr::IsDisabledFor(), SatisfyQuestClass(), SatisfyQuestConditions(), SatisfyQuestDay(), SatisfyQuestDependentQuests(), SatisfyQuestExclusiveGroup(), SatisfyQuestExpansion(), SatisfyQuestLevel(), SatisfyQuestMonth(), SatisfyQuestRace(), SatisfyQuestReputation(), SatisfyQuestSeasonal(), SatisfyQuestSkill(), SatisfyQuestStatus(), SatisfyQuestTimed(), and SatisfyQuestWeek().
Referenced by CanCompleteQuest(), CanCompleteRepeatableQuest(), CanSeeGossipOn(), Spell::EffectQuestStart(), GetQuestDialogStatus(), WorldSession::HandleAdventureJournalOpenQuest(), WorldSession::HandleAdventureMapStartQuest(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestConfirmAccept(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestgiverQueryQuestOpcode(), WorldSession::HandleUiMapQuestLinesRequest(), QuestMgr::IsQuestLineQuestAvailableForPlayer(), CriteriaHandler::ModifierSatisfied(), PrepareQuestMenu(), SmartScript::ProcessAction(), PushQuests(), RewardQuest(), SatisfyQuestBreadcrumbQuest(), SendPreparedQuest(), and SendQuestReward().
|
inline |
Definition at line 2482 of file Player.h.
References SPELL_AURA_ALLOW_TAME_PET_TYPE.
Referenced by spell_hun_tame_beast::CheckCast(), Spell::CheckCast(), npc_commandscript::HandleNpcTameCommand(), Pet::LoadPetFromDB(), and SetPetSlot().
| bool Player::CanTitanGrip | ( | Item const * | item | ) | const |
Definition at line 13120 of file Player.cpp.
References ItemTemplate::GetClass(), ItemTemplate::GetSubClass(), Item::GetTemplate(), ITEM_CLASS_ARMOR, ITEM_CLASS_WEAPON, m_canTitanGrip, m_titanGripArmorSubclasses, and m_titanGripWeaponSubclasses.
Referenced by AutoUnequipOffhandIfNeed(), CanEquipItem(), FindEquipSlot(), IsTwoHandUsed(), and SetVisibleItemSlot().
| bool Player::CanUnderstandLanguage | ( | Language | language | ) | const |
Definition at line 22380 of file Player.cpp.
References Unit::HasAuraTypeWithMiscvalue(), HasSkill(), IsGameMaster(), sLanguageMgr, and SPELL_AURA_COMPREHEND_LANGUAGE.
Referenced by Trinity::ChatPacketSender::operator()().
| InventoryResult Player::CanUnequipItem | ( | uint16 | src, |
| bool | swap | ||
| ) | const |
Definition at line 10931 of file Player.cpp.
References ItemTemplate::CanChangeEquipStateInCombat(), EQUIP_ERR_CLIENT_LOCKED_OUT, EQUIP_ERR_DESTROY_NONEMPTY_BAG, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_LOOT_GONE, EQUIP_ERR_NOT_DURING_ARENA_MATCH, EQUIP_ERR_NOT_IN_COMBAT, EQUIP_ERR_OK, GetBattleground(), Item::GetCount(), Object::GetEntry(), BaseEntity::GetGUID(), GetItemByPos(), GetLootGUID(), WorldObject::GetName(), Item::GetTemplate(), IsBagPos(), Unit::IsCharmed(), IsEquipmentPos(), Unit::IsInCombat(), Item::IsNotEmptyBag(), STATUS_IN_PROGRESS, TC_LOG_DEBUG, and Position::ToString().
Referenced by CanEquipChildItem(), CanEquipItem(), DestroyItemCount(), EquipChildItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleDestroyItemOpcode(), WorldSession::HandleUseEquipmentSet(), and SwapItem().
| InventoryResult Player::CanUnequipItems | ( | uint32 | item, |
| uint32 | count | ||
| ) | const |
Definition at line 9441 of file Player.cpp.
References Continue, EQUIP_ERR_OK, Equipment, ForEachItem(), and Object::GetEntry().
Referenced by TakeQuestSourceItem().
| PartyResult Player::CanUninviteFromGroup | ( | ObjectGuid | guidMember, |
| Optional< uint8 > | partyIndex | ||
| ) | const |
Definition at line 26622 of file Player.cpp.
References 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_TOO_FEW_PLAYERS, ERR_PARTY_RESULT_OK, ObjectAccessor::FindConnectedPlayer(), GetGroup(), BaseEntity::GetGUID(), Group::GetGUID(), Group::GetMembers(), Group::GetMembersCount(), InBattleground(), Group::IsAssistant(), Group::IsLeader(), Group::isLFGGroup(), lfg::LFG_GROUP_KICK_VOTES_NEEDED, lfg::LFG_STATE_FINISHED_DUNGEON, m_lootRolls, and sLFGMgr.
Referenced by WorldSession::HandlePartyUninviteOpcode().
| bool Player::CanUseBattlegroundObject | ( | GameObject * | gameobject | ) | const |
Definition at line 26930 of file Player.cpp.
References GameObject::GetFaction(), WorldObject::GetFactionTemplateEntry(), Aura::GetSpellInfo(), HasAura, SpellInfo::Id, Unit::IsAlive(), FactionTemplateEntry::IsFriendlyTo(), isTotalImmune(), sFactionTemplateStore, SPELL_RECENTLY_DROPPED_ALLIANCE_FLAG, SPELL_RECENTLY_DROPPED_HORDE_FLAG, and SPELL_RECENTLY_DROPPED_NEUTRAL_FLAG.
Referenced by Spell::CheckCast(), and GameObject::Use().
| InventoryResult Player::CanUseItem | ( | Item * | pItem, |
| bool | not_loading = true |
||
| ) | const |
Definition at line 11124 of file Player.cpp.
References CanUseItem(), CLASS_HUNTER, CLASS_PALADIN, CLASS_SHAMAN, CLASS_WARRIOR, EQUIP_ERR_CANT_EQUIP_LEVEL_I, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_NOT_OWNER, EQUIP_ERR_OK, EQUIP_ERR_PLAYER_DEAD, EQUIP_ERR_PROFICIENCY_NEEDED, ItemTemplate::GetClass(), Unit::GetClass(), Object::GetEntry(), BaseEntity::GetGUID(), Unit::GetLevel(), WorldObject::GetName(), ItemTemplate::GetQuality(), Item::GetRequiredLevel(), Item::GetSkill(), GetSkillValue(), Item::GetTemplate(), HasSkill(), Unit::IsAlive(), Item::IsBindedNotWith(), ITEM_CLASS_ARMOR, ITEM_QUALITY_HEIRLOOM, SKILL_MAIL, SKILL_PLATE_MAIL, TC_LOG_DEBUG, and Position::ToString().
Referenced by AuctionHouseObject::BuildListBuckets(), CanBankItem(), CanEquipItem(), CanUseItem(), WorldSession::HandleAddToy(), WorldSession::HandleReadItem(), WorldSession::HandleTransmogrifyItems(), CriteriaHandler::ModifierSatisfied(), and ProcessItemCast().
| InventoryResult Player::CanUseItem | ( | ItemTemplate const * | pItem, |
| bool | skipRequiredLevelCheck = false |
||
| ) | const |
Definition at line 11183 of file Player.cpp.
References ALLIANCE, ItemTemplate::Effects, EQUIP_ERR_CANT_EQUIP_EVER, EQUIP_ERR_CANT_EQUIP_LEVEL_I, EQUIP_ERR_CANT_EQUIP_REPUTATION, EQUIP_ERR_CANT_EQUIP_SKILL, EQUIP_ERR_CANT_USE_ITEM, EQUIP_ERR_CLIENT_LOCKED_OUT, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_NONE, EQUIP_ERR_OK, EQUIP_ERR_PROFICIENCY_NEEDED, ItemTemplate::GetAllowableClass(), ItemTemplate::GetAllowableRace(), ItemTemplate::GetArtifactID(), ItemTemplate::GetBaseRequiredLevel(), Unit::GetClassMask(), ItemTemplate::GetHolidayID(), Unit::GetLevel(), GetPrimarySpecialization(), Unit::GetRace(), GetReputationRank(), ItemTemplate::GetRequiredReputationFaction(), ItemTemplate::GetRequiredReputationRank(), ItemTemplate::GetRequiredSkill(), ItemTemplate::GetRequiredSkillRank(), ItemTemplate::GetRequiredSpell(), GetSkillValue(), GetTeam(), ItemTemplate::HasFlag(), Trinity::RaceMask< T, N >::HasRace(), HasSpell(), HORDE, IsHolidayActive(), ITEM_FLAG2_FACTION_ALLIANCE, ITEM_FLAG2_FACTION_HORDE, ITEM_FLAG2_INTERNAL_ITEM, ITEM_SPELLTRIGGER_ON_LEARN, and sArtifactStore.
| bool Player::CanUseMastery | ( | ) | const |
Definition at line 30527 of file Player.cpp.
References GetPrimarySpecializationEntry(), and HasSpell().
Referenced by ActivateTalentGroup(), and UpdateMastery().
| void Player::CastAllObtainSpells | ( | ) |
Definition at line 8186 of file Player.cpp.
References ApplyItemObtainSpells(), GetBagByPos(), Bag::GetBagSize(), GetInventorySlotCount(), GetItemByPos(), Bag::GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_START, and REAGENT_BAG_SLOT_END.
Referenced by ResurrectPlayer().
| void Player::CastItemCombatSpell | ( | DamageInfo const & | damageInfo | ) |
Definition at line 8591 of file Player.cpp.
References BASE_ATTACK, Unit::CanUseAttackType(), CastItemCombatSpell(), EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_START, DamageInfo::GetAttackType(), GetItemByPos(), DamageInfo::GetVictim(), INVENTORY_SLOT_BAG_0, Unit::IsAlive(), Unit::IsInFeralForm(), IsUseEquipedWeapon(), ITEM_CLASS_WEAPON, OFF_ATTACK, and RANGED_ATTACK.
Referenced by CastItemCombatSpell(), Unit::DealMeleeDamage(), and Spell::TargetInfo::DoDamageAndTriggers().
| void Player::CastItemCombatSpell | ( | DamageInfo const & | damageInfo, |
| Item * | item, | ||
| ItemTemplate const * | proto | ||
| ) |
Definition at line 8641 of file Player.cpp.
References CastSpellExtraArgs::AddSpellMod(), ApplySpellMod(), AsUnderlyingType(), SpellEnchantProcEntry::AttributesMask, CalculatePct(), CastSpell, SpellEnchantProcEntry::Chance, DIFFICULTY_NONE, SpellItemEnchantmentEntry::Effect, SpellItemEnchantmentEntry::EffectArg, SpellItemEnchantmentEntry::EffectPointsMin, ENCHANT_PROC_ATTR_LIMIT_60, ENCHANT_PROC_ATTR_WHITE_HIT, Unit::FindCurrentSpellBySpellId(), DamageInfo::GetAttackType(), Unit::GetBaseAttackTime(), ItemTemplate::GetDelay(), Item::GetEffects(), SpellInfo::GetEffects(), Item::GetEnchantmentId(), BaseEntity::GetGUID(), DamageInfo::GetHitMask(), Unit::GetLevelForTarget(), WorldObject::GetName(), Unit::GetPPMProcChance(), DamageInfo::GetSpellInfo(), Item::GetTemplate(), DamageInfo::GetVictim(), Unit::GetWeaponProcChance(), ItemTemplate::HasFlag(), SpellEnchantProcEntry::HitMask, SpellItemEnchantmentEntry::ID, SpellInfo::Id, SpellInfo::IsPositive(), ITEM_ENCHANTMENT_TYPE_COMBAT_SPELL, ITEM_FLAG_LEGACY, ITEM_SPELLTRIGGER_ON_PROC, MAX_ENCHANTMENT_SLOT, MAX_ITEM_ENCHANTMENT_EFFECTS, PROC_HIT_ABSORB, PROC_HIT_CRITICAL, PROC_HIT_NORMAL, ProcChance, SpellInfo::ProcChance, SpellEnchantProcEntry::ProcsPerMinute, roll_chance(), ItemTemplate::SpellPPMRate, SPELLVALUE_BASE_POINT0, sScriptMgr, sSpellItemEnchantmentStore, sSpellMgr, TC_LOG_ERROR, TEMP_ENCHANTMENT_SLOT, and Position::ToString().
| void Player::CastItemUseSpell | ( | Item * | item, |
| uint32 | spellId, | ||
| SpellCastTargets const & | targets, | ||
| ObjectGuid | castCount, | ||
| std::array< int32, 3 > const & | misc | ||
| ) |
Definition at line 8768 of file Player.cpp.
References WorldPackets::Spells::SpellPrepare::ClientCastID, Spell::Data, DIFFICULTY_NONE, Item::GetEffects(), Item::GetEnchantmentId(), Object::GetEntry(), ItemTemplate::GetId(), Item::GetTemplate(), ItemTemplate::HasFlag(), ITEM_ENCHANTMENT_TYPE_USE_SPELL, ITEM_FLAG_LEGACY, Spell::m_castId, Spell::m_CastItem, Spell::m_fromClient, Spell::m_misc, MAX_ENCHANTMENT_SLOT, MAX_ITEM_ENCHANTMENT_EFFECTS, Spell::prepare(), Spell::Raw, SendDirectMessage(), WorldPackets::Spells::SpellPrepare::ServerCastID, Spell, sSpellItemEnchantmentStore, sSpellMgr, TC_LOG_ERROR, TRIGGERED_NONE, and WorldPackets::Spells::SpellPrepare::Write().
Referenced by ProcessItemCast().
| void Player::CharmSpellInitialize | ( | ) |
Definition at line 22530 of file Player.cpp.
References WorldPackets::Pet::PetSpells::ActionButtons, WorldPackets::Pet::PetSpells::Actions, WorldPackets::Pet::PetSpells::CommandState, UnitActionBarEntry::GetAction(), CharmInfo::GetActionBarEntry(), Unit::GetCharmInfo(), CharmInfo::GetCharmSpell(), CharmInfo::GetCommandState(), Unit::GetFirstControlled(), BaseEntity::GetGUID(), WorldObject::GetName(), Creature::GetReactState(), Unit::GetSpellHistory(), BaseEntity::GetTypeId(), MAX_SPELL_CHARM, MAX_UNIT_ACTION_BAR_INDEX, UnitActionBarEntry::packedData, WorldPackets::Pet::PetSpells::PetGUID, WorldPackets::Pet::PetSpells::ReactState, SendDirectMessage(), TC_LOG_ERROR, Object::ToCreature(), ObjectGuid::ToString(), Position::ToString(), TYPEID_PLAYER, TYPEID_UNIT, WorldPackets::Pet::PetSpells::Write(), and SpellHistory::WritePacket().
Referenced by WorldSession::HandleRequestPetInfo(), Guardian::InitSummon(), Unit::SetCharmedBy(), Minion::setDeathState(), and Unit::SetMinion().
| void Player::CheckAreaExplore | ( | ) |
Definition at line 6215 of file Player.cpp.
References AddExploredZones(), AreaTableEntry::AreaBit, CONFIG_MIN_DISCOVERED_SCALED_XP_RATIO, AreaTableEntry::ContentTuningID, WorldObject::GetAreaId(), BaseEntity::GetGUID(), Unit::GetLevel(), WorldLocation::GetMapId(), WorldObject::GetName(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::GetTotalAuraMultiplier(), GiveXP(), Unit::IsAlive(), Unit::IsInFlight(), IsMaxLevel(), m_activePlayerData, m_playerData, PLAYER_DATA_FLAG_EXPLORED_ZONES_INDEX, PLAYER_EXPLORED_ZONES_BITS, RATE_XP_EXPLORE, RevealWorldMapOverlay, sAreaTableStore, sDB2Manager, SendExplorationExperience(), sObjectMgr, SPELL_AURA_MOD_EXPLORATION_EXPERIENCE, sWorld, TC_LOG_DEBUG, TC_LOG_ERROR, Position::ToString(), UI64LIT, and UpdateCriteria().
Referenced by UpdatePosition().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 8297 of file Player.cpp.
References SpellInfo::EquippedItemClass, AuraEffect::GetSpellInfo(), GetWeaponForAttack(), and Item::IsFitToSpellRequirements().
Referenced by UpdateWeaponDependentCritAuras().
| void Player::CheckDuelDistance | ( | time_t | currTime | ) |
Definition at line 7646 of file Player.cpp.
References duel, DUEL_FLED, DuelComplete(), Map::GetGameObject(), WorldObject::GetMap(), WorldObject::IsWithinDistInMap(), m_playerData, and SendDirectMessage().
Referenced by Update().
| bool Player::CheckInstanceValidity | ( | bool | ) |
Definition at line 20140 of file Player.cpp.
References CONFIG_EXPANSION, CONFIG_INSTANCE_IGNORE_RAID, MapEntry::Expansion(), WorldObject::FindMap(), Map::GetEntry(), GetGroup(), InstanceMap::GetOwningGroup(), Map::GetPlayersCountExceptGMs(), IsGameMaster(), Map::IsRaid(), Group::isRaidGroup(), sWorld, and Map::ToInstanceMap().
Referenced by Group::AddMember(), WorldSession::HandleMoveWorldportAck(), and LoadFromDB().
|
static |
Definition at line 30560 of file Player.cpp.
References DIFFICULTY_FLAG_CAN_SELECT, DIFFICULTY_NORMAL, DifficultyEntry::Flags, DifficultyEntry::InstanceType, MAP_INSTANCE, and sDifficultyStore.
Referenced by LoadFromDB(), and Group::LoadGroupFromDB().
|
static |
Definition at line 30590 of file Player.cpp.
References DIFFICULTY_10_N, DIFFICULTY_FLAG_CAN_SELECT, DIFFICULTY_FLAG_LEGACY, DifficultyEntry::Flags, DifficultyEntry::InstanceType, MAP_RAID, and sDifficultyStore.
Referenced by LoadFromDB(), and Group::LoadGroupFromDB().
|
static |
Definition at line 30575 of file Player.cpp.
References DIFFICULTY_FLAG_CAN_SELECT, DIFFICULTY_FLAG_LEGACY, DIFFICULTY_NORMAL_RAID, DifficultyEntry::Flags, DifficultyEntry::InstanceType, MAP_RAID, and sDifficultyStore.
Referenced by LoadFromDB(), and Group::LoadGroupFromDB().
| void Player::CheckTitanGripPenalty | ( | ) |
Definition at line 13169 of file Player.cpp.
References CastSpell, HasAura, IsUsingTwoHandedWeaponInOneHand(), m_titanGripPenaltySpellId, and Unit::RemoveAurasDueToSpell().
Referenced by EquipItem(), QuickEquipItem(), and RemoveItem().
| void Player::CleanupAfterTaxiFlight | ( | ) |
Definition at line 23311 of file Player.cpp.
References PlayerTaxi::ClearTaxiDestinations(), Unit::Dismount(), m_taxi, Unit::RemoveUnitFlag(), UNIT_FLAG_ON_TAXI, and UNIT_FLAG_REMOVE_CLIENT_CONTROL.
Referenced by WorldSession::HandleMoveSplineDoneOpcode().
| void Player::CleanupChannels | ( | ) |
Definition at line 4763 of file Player.cpp.
References ChannelMgr::ForTeam(), Channel::GetChannelId(), BaseEntity::GetGUID(), WorldObject::GetName(), GetTeam(), Channel::GetZoneEntry(), Channel::IsConstant(), Channel::LeaveChannel(), m_channels, TC_LOG_DEBUG, and Position::ToString().
Referenced by WorldSession::LogoutPlayer().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 379 of file Player.cpp.
References Unit::CleanupsBeforeDelete(), DUEL_INTERRUPTED, DuelComplete(), and TradeCancel().
Referenced by WorldSession::LogoutPlayer().
|
inline |
Definition at line 2603 of file Player.h.
Referenced by Battleground::RemovePlayerAtLeave().
|
inline |
Definition at line 1822 of file Player.h.
References ObjectGuid::Empty.
Referenced by WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestConfirmAccept(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestPushResult(), and SendInitialPacketsAfterAddToMap().
|
inline |
Definition at line 2074 of file Player.h.
Referenced by WorldSession::HandleResurrectResponse(), and setDeathState().
|
inline |
Definition at line 2977 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::SelfResSpells.
Referenced by InitializeSelfResurrectionSpells(), and setDeathState().
|
overrideprotectedvirtual |
Reimplemented from Object.
Definition at line 3619 of file Player.cpp.
References UF::UpdateFieldHolder::ClearChangesMask(), Unit::ClearValuesChangesMask(), m_activePlayerData, m_playerData, and BaseEntity::m_values.
|
inline |
Definition at line 2852 of file Player.h.
Referenced by message_commandscript::HandleWhispersCommand(), and WorldSession::LogoutPlayer().
| void Player::CompletedAchievement | ( | AchievementEntry const * | entry | ) |
Definition at line 27549 of file Player.cpp.
References m_achievementMgr.
Referenced by BattlefieldWG::DoCompleteOrIncrementAchievement(), and achievement_commandscript::HandleAchievementAddCommand().
| void Player::CompleteQuest | ( | uint32 | quest_id | ) |
Definition at line 14893 of file Player.cpp.
References CHAR_UPD_QUEST_TRACK_COMPLETE_TIME, CharacterDatabase, CONFIG_QUEST_ENABLE_QUEST_TRACKER, BaseEntity::GetGUID(), Item, m_QuestStatus, Trinity::Containers::MapGetValuePtr(), QUEST_FLAGS_TRACKING_EVENT, QUEST_STATE_COMPLETE, QUEST_STATUS_COMPLETE, RewardQuest(), SendForceSpawnTrackingUpdate(), SetQuestSlotState(), SetQuestStatus(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), sObjectMgr, and sWorld.
Referenced by Spell::EffectQuestComplete(), WorldSession::HandleAreaTriggerOpcode(), quest_commandscript::HandleQuestComplete(), WorldSession::HandleQuestgiverRequestRewardOpcode(), boss_shattered_executioner::JustDied(), and SmartScript::ProcessAction().
| void Player::ConfirmPendingBind | ( | ) |
Definition at line 19990 of file Player.cpp.
References _pendingBindId, InstanceMap::CreateInstanceLockForPlayer(), Map::GetInstanceId(), WorldObject::GetMap(), IsGameMaster(), and Map::ToInstanceMap().
Referenced by WorldSession::HandleInstanceLockResponse(), and Update().
| void Player::ContinueTaxiFlight | ( | ) |
Definition at line 23318 of file Player.cpp.
References TaxiPathNodeEntry::ContinentID, PlayerTaxi::GetCurrentTaxiPath(), Position::GetExactDistSq(), BaseEntity::GetGUID(), WorldLocation::GetMapId(), PlayerTaxi::GetTaxiSource(), GetTeam(), TaxiPathNodeEntry::Loc, m_taxi, sObjectMgr, StartTaxiMovement(), sTaxiPathNodesByPath, TC_LOG_DEBUG, Position::ToString(), DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.
Referenced by WorldSession::HandlePlayerLogin(), and ProcessDelayedOperations().
| void Player::CorrectMetaGemEnchants | ( | uint8 | slot, |
| bool | apply | ||
| ) |
Definition at line 24153 of file Player.cpp.
References ApplyEnchantment(), SpellItemEnchantmentEntry::ConditionID, EnchantmentFitsRequirements(), EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Item::GetEnchantmentId(), GetItemByPos(), Item::GetSocketColor(), INVENTORY_SLOT_BAG_0, SOCK_ENCHANTMENT_SLOT, and sSpellItemEnchantmentStore.
Referenced by _ApplyItemMods().
| bool Player::Create | ( | ObjectGuid::LowType | guidlow, |
| WorldPackets::Character::CharacterCreateInfo const * | createInfo | ||
| ) |
Definition at line 387 of file Player.cpp.
References BaseEntity::_Create(), PlayerInfo::action, AddActionButton(), CanEquipItem(), CanStoreItem(), WorldPackets::Character::CharacterCreateInfo::Class, UF::ActivePlayerData::Coinage, CONFIG_GAME_TYPE, PlayerInfo::createPosition, PlayerInfo::createPositionNPE, WorldPackets::Character::CharacterCreateInfo::Customizations, ChrClassesEntry::DisplayPower, EQUIP_ERR_OK, EquipItem, EquipTransmogOutfit(), WorldObject::GetAreaId(), Unit::GetClass(), GameTime::GetGameTime(), GetInventorySlotCount(), GetItemByPos(), WorldLocation::GetMapId(), GetPowerTypes(), GetSession(), GetStartLevel(), GetStartMoney(), Unit::GetThreatManager(), ObjectAccessor::GetTransport(), InitDisplayIds(), ThreatManager::Initialize(), InitializeSkillFields(), InitPrimaryProfessions(), InitRunes(), InitStatsForLevel(), InitTalentForLevel(), InitTaxiNodesForLevel(), INVENTORY_DEFAULT_SIZE, INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_ITEM_START, IsValidGender(), PlayerInfo::item, PlayerInfo::itemContext, LearnCustomSpells(), LearnDefaultSkills(), PlayerInfo::CreatePosition::Loc, m_activePlayerData, m_createMode, m_createTime, m_items, m_Last_tick, WorldObject::m_name, m_Played_time, BaseEntity::m_values, MakeChrCustomizationChoiceRange(), Trinity::Containers::MakeIteratorPair(), Manual, UF::UpdateFieldHolder::ModifyValue(), WorldPackets::Character::CharacterCreateInfo::Name, Normal, NPE, NULL_BAG, NULL_SLOT, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_SLOTS_COUNT, WorldPackets::Character::CharacterCreateInfo::Race, REALM_TYPE_PVP, REALM_TYPE_RPPVP, Position::Relocate(), RemoveItem(), REST_STATE_NORMAL, REST_STATE_RAF_LINKED, REST_TYPE_HONOR, REST_TYPE_XP, sChrClassesStore, sDB2Manager, SetActiveTalentGroup(), Unit::SetClass(), SetCustomizations(), SetFactionForRace(), Unit::SetFullHealth(), Unit::SetFullPower(), Unit::SetGender(), SetHomebind(), SetInventorySlotCount(), Unit::SetLevel(), SetMap(), SetNativeGender(), SetObjectScale(), Unit::SetPowerType(), SetPrimarySpecialization(), Unit::SetPvpFlag(), Unit::SetRace(), SetRestState(), SetToMaxOnInitialLogIn, Unit::SetUnitFlag(), Unit::SetUnitFlag2(), BaseEntity::SetUpdateFieldValue(), SetWatchedFactionIndex(), WorldPackets::Character::CharacterCreateInfo::Sex, sMapMgr, sObjectMgr, StoreItem(), StoreNewItemInBestSlots(), sWorld, TC_LOG_ERROR, WorldPackets::Character::CharacterCreateInfo::TemplateSet, PlayerInfo::CreatePosition::TransportGuid, UNIT_BYTE2_FLAG_PVP, UNIT_FLAG2_REGENERATE_POWER, UNIT_FLAG_PLAYER_CONTROLLED, UpdateMaxHealth(), and WorldPackets::Character::CharacterCreateInfo::UseNPE.
| Corpse * Player::CreateCorpse | ( | ) |
Definition at line 4396 of file Player.cpp.
References _corpseLocation, Map::AddCorpse(), CORPSE_FLAG_FFA_PVP, CORPSE_FLAG_NONE, CORPSE_FLAG_PVP, CORPSE_FLAG_SKINNABLE, CORPSE_RESURRECTABLE_PVE, CORPSE_RESURRECTABLE_PVP, Corpse::Create(), EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, flags, Unit::GetClass(), GetGroup(), GetGuild(), WorldObject::GetMap(), Unit::GetNativeDisplayId(), GetNativeGender(), Unit::GetRace(), InArena(), InBattleground(), m_ExtraFlags, m_playerData, Unit::m_unitData, PLAYER_EXTRA_PVP_DEATH, Corpse::ReplaceAllCorpseFlags(), Corpse::SaveToDB(), sChrRacesStore, Corpse::SetClass(), Corpse::SetCustomizations(), Corpse::SetDisplayId(), Corpse::SetFactionTemplate(), Corpse::SetGuildGUID(), Corpse::SetItem(), Corpse::SetPartyGUID(), SetPvPDeath(), Corpse::SetRace(), Corpse::SetSex(), WorldObject::SetZoneScript(), sItemAppearanceStore, sItemModifiedAppearanceStore, sItemStore, SpawnCorpseBones(), UNIT_BYTE2_FLAG_FFA_PVP, UNIT_BYTE2_FLAG_PVP, WorldObject::UpdatePositionData(), and WorldLocation::WorldRelocate().
Referenced by BuildPlayerRepop().
| void Player::CreateGarrison | ( | uint32 | garrSiteId | ) |
Definition at line 30062 of file Player.cpp.
References _garrison.
Referenced by Spell::EffectCreateGarrison().
| void Player::CreateTraitConfig | ( | WorldPackets::Traits::TraitConfig & | traitConfig | ) |
Definition at line 29068 of file Player.cpp.
References BaseEntity::AddDynamicUpdateFieldValue(), AddTraitConfig(), UF::TraitConfig::Entries, WorldPackets::Traits::TraitConfig::Entries, TraitMgr::GenerateNewTraitConfigId(), TraitMgr::GetGrantedTraitEntriesForConfig(), WorldPackets::Traits::TraitConfig::ID, m_activePlayerData, m_traitConfigStates, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), PLAYERSPELL_CHANGED, and UF::ActivePlayerData::TraitConfigs.
Referenced by _LoadTraits(), Spell::EffectCreateTraitTreeConfig(), and WorldSession::HandleClassTalentsRequestNewConfig().
| void Player::CreateTransmogOutfit | ( | uint32 | id, |
| WorldPackets::Transmogrification::TransmogOutfitDataInfo const & | outfitData | ||
| ) |
Definition at line 31056 of file Player.cpp.
References InitializeNewTransmogOutfit(), m_activePlayerData, m_changedTransmogOutfits, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), and UF::ActivePlayerData::TransmogOutfits.
Referenced by _LoadTransmogOutfits(), and WorldSession::HandleTransmogOutfitNew().
Definition at line 16697 of file Player.cpp.
References QUEST_OBJECTIVE_CURRENCY, QUEST_OBJECTIVE_HAVE_CURRENCY, QUEST_OBJECTIVE_OBTAIN_CURRENCY, and UpdateQuestObjectiveProgress().
Referenced by ModifyCurrency().
| void Player::DailyReset | ( | ) |
Definition at line 25532 of file Player.cpp.
References _garrison, AbandonQuest(), BaseEntity::ClearDynamicUpdateFieldValues(), WorldPackets::Quest::DailyQuestsReset::Count, DailyQuestsCleared, UF::ActivePlayerData::DailyQuestsCompleted, DespawnPersonalSummonsForQuest(), FailCriteria(), Quest::GetLimitTime(), GetQuestSlotQuestId(), Quest::HasFlagEx(), Quest::IsDaily(), m_activePlayerData, m_DailyQuestChanged, m_DFQuests, m_lastDailyQuestTime, BaseEntity::m_values, MAX_QUEST_LOG_SIZE, UF::UpdateFieldHolder::ModifyValue(), QUEST_FLAGS_EX_REMOVE_ON_PERIODIC_RESET, RemoveActiveQuest(), RemoveTimedQuest(), SendDirectMessage(), SetQuestCompletedBit(), sObjectMgr, and WorldPackets::Quest::DailyQuestsReset::Write().
| void Player::DeleteEquipmentSet | ( | uint64 | id | ) |
Definition at line 28359 of file Player.cpp.
References _equipmentSets, EQUIPMENT_SET_DELETED, and EQUIPMENT_SET_NEW.
Referenced by WorldSession::HandleDeleteEquipmentSet().
|
static |
Deletes a character from the database
The way 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 |
Definition at line 3658 of file Player.cpp.
References _LoadMailedItem(), MailDraft::AddItem(), MailDraft::AddMoney(), CHAR_DEL_BATTLEGROUND_RANDOM, CHAR_DEL_CHAR_ACHIEVEMENT_PROGRESS, CHAR_DEL_CHAR_ACHIEVEMENTS, CHAR_DEL_CHAR_ACTION, CHAR_DEL_CHAR_AURA, CHAR_DEL_CHAR_AURA_EFFECT, CHAR_DEL_CHAR_CUF_PROFILES, CHAR_DEL_CHAR_DECLINED_NAME, CHAR_DEL_CHAR_EQUIPMENTSETS, CHAR_DEL_CHAR_FISHINGSTEPS, CHAR_DEL_CHAR_GIFT, CHAR_DEL_CHAR_GLYPHS, CHAR_DEL_CHAR_INVENTORY, CHAR_DEL_CHAR_PET_BY_OWNER, CHAR_DEL_CHAR_PET_DECLINEDNAME_BY_OWNER, CHAR_DEL_CHAR_QUESTSTATUS, CHAR_DEL_CHAR_QUESTSTATUS_OBJECTIVES, CHAR_DEL_CHAR_QUESTSTATUS_OBJECTIVES_SPAWN_TRACKING, CHAR_DEL_CHAR_QUESTSTATUS_REWARDED, CHAR_DEL_CHAR_REPUTATION, CHAR_DEL_CHAR_SKILLS, CHAR_DEL_CHAR_SOCIAL_BY_FRIEND, CHAR_DEL_CHAR_SOCIAL_BY_GUID, CHAR_DEL_CHAR_SPELL, CHAR_DEL_CHAR_SPELL_CHARGES, CHAR_DEL_CHAR_SPELL_COOLDOWNS, CHAR_DEL_CHAR_STATS, CHAR_DEL_CHAR_TALENT, CHAR_DEL_CHAR_TRAIT_CONFIGS_BY_CHAR, CHAR_DEL_CHAR_TRAIT_ENTRIES_BY_CHAR, CHAR_DEL_CHAR_TRANSMOG_OUTFIT_BY_CHAR, CHAR_DEL_CHAR_TRANSMOG_OUTFIT_SITUATION_BY_CHAR, CHAR_DEL_CHAR_TRANSMOG_OUTFIT_SLOT_BY_CHAR, CHAR_DEL_CHAR_TRANSMOG_OUTFITS, CHAR_DEL_CHARACTER, CHAR_DEL_CHARACTER_ARENA_STATS, CHAR_DEL_CHARACTER_AURA_STORED_LOCATIONS_BY_GUID, CHAR_DEL_CHARACTER_BANK_TAB_SETTINGS, CHAR_DEL_CHARACTER_CUSTOMIZATIONS, CHAR_DEL_CHARACTER_FAVORITE_AUCTIONS_BY_CHAR, CHAR_DEL_CHARACTER_INSTANCE_LOCK_BY_GUID, CHAR_DEL_CHARACTER_QUESTSTATUS_DAILY, CHAR_DEL_CHARACTER_QUESTSTATUS_MONTHLY, CHAR_DEL_CHARACTER_QUESTSTATUS_SEASONAL, CHAR_DEL_CHARACTER_QUESTSTATUS_WEEKLY, CHAR_DEL_CHARACTER_SELECT_EQUIPMENT_CACHE_CUSTOMIZATIONS, CHAR_DEL_GUILD_BANK_EVENTLOG_BY_PLAYER, CHAR_DEL_GUILD_EVENTLOG_BY_PLAYER, CHAR_DEL_ITEM_INSTANCE_ARTIFACT_BY_OWNER, CHAR_DEL_ITEM_INSTANCE_ARTIFACT_POWERS_BY_OWNER, CHAR_DEL_ITEM_INSTANCE_AZERITE_BY_OWNER, CHAR_DEL_ITEM_INSTANCE_AZERITE_EMPOWERED_BY_OWNER, CHAR_DEL_ITEM_INSTANCE_AZERITE_MILESTONE_POWER_BY_OWNER, CHAR_DEL_ITEM_INSTANCE_AZERITE_UNLOCKED_ESSENCE_BY_OWNER, CHAR_DEL_ITEM_INSTANCE_BY_OWNER, CHAR_DEL_ITEM_INSTANCE_GEMS_BY_OWNER, CHAR_DEL_ITEM_INSTANCE_MODIFIERS_BY_OWNER, CHAR_DEL_ITEM_INSTANCE_TRANSMOG_BY_OWNER, CHAR_DEL_MAIL, CHAR_DEL_MAIL_BY_ID, CHAR_DEL_MAIL_ITEM_BY_ID, CHAR_DEL_MAIL_ITEMS, CHAR_DEL_PLAYER_ACCOUNT_DATA, CHAR_DEL_PLAYER_BGDATA, CHAR_DEL_PLAYER_CURRENCY, CHAR_DEL_PLAYER_DATA_ELEMENTS_CHARACTER_BY_GUID, CHAR_DEL_PLAYER_DATA_FLAGS_CHARACTER_BY_GUID, CHAR_DEL_PLAYER_HOMEBIND, CHAR_DELETE_REMOVE, CHAR_DELETE_UNLINK, CHAR_SEL_CHAR_COD_ITEM_MAIL, CHAR_SEL_CHAR_PET_IDS, CHAR_SEL_CHAR_SOCIAL, CHAR_SEL_GROUP_MEMBER, CHAR_SEL_MAILITEMS, CHAR_SEL_MAILITEMS_ARTIFACT, CHAR_SEL_MAILITEMS_AZERITE, CHAR_SEL_MAILITEMS_AZERITE_EMPOWERED, CHAR_SEL_MAILITEMS_AZERITE_MILESTONE_POWER, CHAR_SEL_MAILITEMS_AZERITE_UNLOCKED_ESSENCE, CHAR_UPD_DELETE_INFO, CharacterDatabase, CharacterCacheEntry::Class, CLASS_DEATH_KNIGHT, CLASS_DEMON_HUNTER, CONFIG_CHARDELETE_DEATH_KNIGHT_MIN_LEVEL, CONFIG_CHARDELETE_DEMON_HUNTER_MIN_LEVEL, CONFIG_CHARDELETE_METHOD, CONFIG_CHARDELETE_MIN_LEVEL, Corpse::DeleteFromDB(), Garrison::DeleteFromDB(), Pet::DeleteFromDB(), ObjectAccessor::FindPlayer(), FRIEND_REMOVED, Field::GetBool(), ObjectGuid::GetCounter(), Field::GetString(), Field::GetUInt16(), Field::GetUInt64(), Field::GetUInt8(), ItemAdditionalLoadInfo::Init(), LeaveAllArenaTeams(), CharacterCacheEntry::Level, LOGIN_DEL_BATTLE_PET_DECLINED_NAME_BY_OWNER, LOGIN_DEL_BATTLE_PETS_BY_OWNER, LoginDatabase, MAIL_NORMAL, Trinity::Containers::MapGetValuePtr(), CharacterCacheEntry::Name, RemoveFromGroup(), RemovePetitionsAndSigns(), sCharacterCache, MailDraft::SendReturnToSender(), PreparedStatementBase::setInt32(), PreparedStatementBase::setInt64(), PreparedStatementBase::setUInt64(), sGroupMgr, sGuildMgr, SOCIAL_FLAG_ALL, sRealmList, sSocialMgr, sWorld, TC_LOG_ERROR, and ObjectGuid::ToString().
Referenced by AccountMgr::DeleteAccount(), DeleteOldCharacters(), character_commandscript::HandleCharacterDeletedDeleteCommand(), character_commandscript::HandleCharacterEraseCommand(), and WorldSession::HandleCharDeleteOpcode().
| void Player::DeleteGarrison | ( | ) |
Definition at line 30069 of file Player.cpp.
References _garrison.
|
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.
Definition at line 4172 of file Player.cpp.
References CONFIG_CHARDELETE_KEEP_DAYS, DeleteOldCharacters(), and sWorld.
Referenced by DeleteOldCharacters(), character_commandscript::HandleCharacterDeletedOldCommand(), World::SetInitialWorldSettings(), and World::Update().
|
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.
| keepDays | overwrite the config option by another amount of days |
Definition at line 4188 of file Player.cpp.
References CHAR_SEL_CHAR_OLD_CHARS, CharacterDatabase, DAY, DeleteFromDB(), GameTime::GetGameTime(), PreparedStatementBase::setUInt32(), TC_LOG_DEBUG, and TC_LOG_INFO.
| void Player::DeletePetFromDB | ( | uint32 | petNumber | ) |
Definition at line 22126 of file Player.cpp.
References Pet::DeleteFromDB(), HUNTER_PET, m_activePlayerData, m_petStable, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), UF::StablePetInfo::PetNumber, UF::StableInfo::Pets, UF::ActivePlayerData::PetStable, and BaseEntity::RemoveDynamicUpdateFieldValue().
Referenced by WorldSession::HandlePetAbandonByNumber().
| void Player::DeleteRefundReference | ( | ObjectGuid | it | ) |
Definition at line 29503 of file Player.cpp.
References m_refundableItems.
Referenced by _SaveInventory(), Item::SetNotRefundable(), and Item::SetState().
| void Player::DeleteTraitConfig | ( | int32 | deletedConfigId | ) |
Definition at line 29364 of file Player.cpp.
References ActiveForSpec, Combat, UF::TraitConfig::CombatConfigFlags, m_activePlayerData, m_traitConfigStates, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), None, PLAYERSPELL_REMOVED, BaseEntity::RemoveMapUpdateFieldValue(), UF::ActivePlayerData::TraitConfigs, and UF::TraitConfig::Type.
Referenced by WorldSession::HandleClassTalentsDeleteConfig().
| void Player::DespawnPersonalSummonsForQuest | ( | uint32 | questId | ) |
Definition at line 16281 of file Player.cpp.
References CreatureSummonedData::DespawnOnQuestsRemoved, WorldObject::GetCreatureListWithOptionsInGrid(), BaseEntity::GetGUID(), and sObjectMgr.
Referenced by DailyReset(), Spell::EffectQuestClear(), WorldSession::HandleQuestLogRemoveQuest(), quest_commandscript::HandleQuestRemove(), and ResetWeeklyQuestStatus().
| void Player::DestroyConjuredItems | ( | bool | update | ) |
Definition at line 12364 of file Player.cpp.
References DestroyItem(), EQUIPMENT_SLOT_START, GetBagByPos(), BaseEntity::GetGUID(), GetInventorySlotCount(), GetItemByPos(), WorldObject::GetName(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_START, REAGENT_BAG_SLOT_END, TC_LOG_DEBUG, and Position::ToString().
Referenced by Battleground::AddPlayer().
|
overridevirtual |
Reimplemented from BaseEntity.
Definition at line 3607 of file Player.cpp.
References Unit::DestroyForPlayer(), and m_items.
Definition at line 12039 of file Player.cpp.
References _ApplyItemMods(), ApplyItemLootedSpell(), ApplyItemObtainSpells(), BASE_ATTACK, CHAR_DEL_GIFT, CharacterDatabase, Item::ClearSoulboundTradeable(), CR_ARMOR_PENETRATION, BaseEntity::DestroyForPlayer(), DestroyItem(), ObjectGuid::Empty, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, GetBagByPos(), Item::GetCount(), ObjectGuid::GetCounter(), Object::GetEntry(), BaseEntity::GetGUID(), ItemTemplate::GetInventoryType(), GetItemByPos(), ItemTemplate::GetItemSet(), WorldObject::GetName(), Item::GetTemplate(), ItemTemplate::HasFlag(), INVENTORY_SLOT_BAG_0, INVTYPE_NON_EQUIP, BaseEntity::IsInWorld(), Item::IsNotEmptyBag(), Item::IsWrapped(), ITEM_FLAG_HAS_LOOT, ITEM_REMOVED, ItemRemovedQuestCheck(), m_items, MAX_BAG_SIZE, NULL_SLOT, OFF_ATTACK, REAGENT_BAG_SLOT_END, RecalculateRating(), RemoveEnchantmentDurations(), Object::RemoveFromWorld(), RemoveItemDurations(), RemoveItemsSetItem(), RemoveTradeableItem(), Item::SetContainedIn(), SetInvSlot(), Item::SetNotRefundable(), Item::SetSlot(), Item::SetState(), PreparedStatementBase::setUInt64(), SetVisibleItemSlot(), sLootItemStorage, sScriptMgr, TC_LOG_DEBUG, Position::ToString(), UpdateAverageItemLevelEquipped(), UpdateAverageItemLevelTotal(), and UpdateExpertise().
Referenced by AddQuestAndCheckCompletion(), DestroyConjuredItems(), DestroyItem(), DestroyItemCount(), DestroyItemCount(), DestroyZoneLimitedItem(), WorldSession::DoLootRelease(), Spell::EffectDestroyItem(), Spell::EffectSummonChangeItem(), Spell::EffectUncageBattlePet(), WorldSession::HandleAddToy(), debug_commandscript::HandleDebugItemExpireCommand(), WorldSession::HandleDestroyItemOpcode(), WorldSession::HandleOpenWrappedItemCallback(), WorldSession::HandleTurnInPetition(), WorldSession::HandleUseCritterItem(), RefundItem(), and Item::UpdateDuration().
Definition at line 12426 of file Player.cpp.
References DestroyItem(), Item::GetBagSlot(), Item::GetCount(), Object::GetEntry(), BaseEntity::GetGUID(), WorldObject::GetName(), Item::GetSlot(), BaseEntity::IsInWorld(), ITEM_CHANGED, ItemRemovedQuestCheck(), BaseEntity::SendUpdateToPlayer(), Item::SetCount(), Item::SetState(), TC_LOG_DEBUG, ObjectGuid::ToString(), and Position::ToString().
| uint32 Player::DestroyItemCount | ( | uint32 | item, |
| uint32 | count, | ||
| bool | update, | ||
| bool | unequip_check = false |
||
| ) |
Definition at line 12140 of file Player.cpp.
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, CanUnequipItem(), CHILD_EQUIPMENT_SLOT_END, CHILD_EQUIPMENT_SLOT_START, DestroyItem(), EQUIP_ERR_OK, EQUIPMENT_SLOT_START, GetBagByPos(), BaseEntity::GetGUID(), GetInventorySlotCount(), GetItemByPos(), WorldObject::GetName(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_START, BaseEntity::IsInWorld(), ITEM_CHANGED, ItemRemovedQuestCheck(), REAGENT_BAG_SLOT_END, TC_LOG_DEBUG, and Position::ToString().
Referenced by _StoreOrEquipNewItem(), AbandonQuest(), BuyCurrencyFromVendorSlot(), WorldSession::DoLootRelease(), Spell::EffectEnchantItemPerm(), Spell::EffectFeedPet(), Spell::EffectScriptEffect(), FailQuest(), misc_commandscript::HandleAddItemCommandHelper(), WorldSession::HandleDestroyItemOpcode(), WorldSession::HandleSocketGems(), WorldSession::HandleWrapItem(), npc_verdisa_beglaristrasz_eternos::RemoveEssence(), spell_pot_check::RemoveItems(), RewardQuest(), Spell::TakeCastItem(), TakeQuestSourceItem(), and Spell::TakeReagents().
| void Player::DestroyZoneLimitedItem | ( | bool | update, |
| uint32 | new_zone | ||
| ) |
Definition at line 12337 of file Player.cpp.
References DestroyItem(), EQUIPMENT_SLOT_START, GetBagByPos(), BaseEntity::GetGUID(), GetInventorySlotCount(), GetItemByPos(), WorldLocation::GetMapId(), WorldObject::GetName(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_START, REAGENT_BAG_SLOT_END, TC_LOG_DEBUG, and Position::ToString().
Referenced by UpdateZone().
| void Player::DisablePetControlsOnMount | ( | ReactStates | reactState, |
| CommandStates | commandState | ||
| ) |
Definition at line 27886 of file Player.cpp.
References WorldPackets::Pet::PetMode::CommandState, WorldPackets::Pet::PetMode::Flag, Unit::GetCharmInfo(), Minion::GetFollowAngle(), BaseEntity::GetGUID(), Unit::GetMotionMaster(), GetPet(), Creature::GetReactState(), m_temporaryPetReactState, MotionMaster::MoveFollow(), PET_FOLLOW_DIST, WorldPackets::Pet::PetMode::PetGUID, WorldPackets::Pet::PetMode::ReactState, SendDirectMessage(), Creature::SetReactState(), and WorldPackets::Pet::PetMode::Write().
Referenced by Pet::LoadPetFromDB().
| void Player::DisablePvpRules | ( | ) |
Definition at line 27829 of file Player.cpp.
References Unit::GetAura(), Unit::GetCombatManager(), IsInAreaThatActivatesPvpTalents(), Unit::RemoveAurasDueToSpell(), SPELL_PVP_RULES_ENABLED, and UpdateItemLevelAreaBasedScaling().
Referenced by DuelComplete(), and UpdateArea().
Definition at line 30750 of file Player.cpp.
References ASSERT, WorldSession::GetAccountGUID(), GetGroup(), BaseEntity::GetGUID(), GetSession(), WorldPackets::Misc::RandomRoll::Max, WorldPackets::Misc::RandomRoll::Min, WorldPackets::Misc::RandomRoll::Result, WorldPackets::Misc::RandomRoll::Roller, WorldPackets::Misc::RandomRoll::RollerWowAccount, SendDirectMessage(), urand(), and WorldPackets::Misc::RandomRoll::Write().
Referenced by WorldSession::HandleRandomRollOpcode(), spell_item_decahedral_dwarven_dice::HandleScript(), and spell_item_worn_troll_dice::HandleScript().
| void Player::DuelComplete | ( | DuelCompleteType | type | ) |
Definition at line 7683 of file Player.cpp.
References Unit::AttackStop(), WorldPackets::Duel::DuelWinner::BeatenName, WorldPackets::Duel::DuelWinner::BeatenVirtualRealmAddress, WorldObject::CastSpell(), CLASS_DEATH_KNIGHT, CONFIG_HONOR_AFTER_DUEL, DisablePvpRules(), duel, DUEL_FLED, DUEL_INTERRUPTED, DUEL_STATE_COMPLETED, DUEL_WON, DuelEnd, ObjectGuid::Empty, WorldPackets::Duel::DuelWinner::Fled, Unit::GetAppliedAuras(), Aura::GetApplyTime(), Aura::GetCasterGUID(), Unit::GetClass(), GetEffectiveTeam(), Map::GetGameObject(), BaseEntity::GetGUID(), WorldObject::GetMap(), WorldObject::GetName(), GetQuestStatus(), WorldPackets::Packet::GetRawPacket(), GetSession(), Unit::IsPvP(), Kill, LoseDuel, m_playerData, POWER_COMBO_POINTS, QUEST_STATUS_INCOMPLETE, Unit::RemoveAura(), Unit::RemoveAurasWithInterruptFlags(), RewardHonor(), SendDirectMessage(), SendMessageToSet(), SetDuelArbiter(), SetDuelTeam(), Unit::SetPower(), sScriptMgr, WorldPackets::Duel::DuelComplete::Started, sWorld, TC_LOG_DEBUG, ObjectGuid::ToString(), Position::ToString(), UpdateCriteria(), WinDuel, WorldPackets::Duel::DuelWinner::WinnerName, WorldPackets::Duel::DuelWinner::WinnerVirtualRealmAddress, WorldPackets::Duel::DuelComplete::Write(), and WorldPackets::Duel::DuelWinner::Write().
Referenced by Unit::_ExitVehicle(), CheckDuelDistance(), CleanupsBeforeDelete(), WorldSession::HandleDuelCancelled(), and TeleportTo().
| void Player::DurabilityLoss | ( | Item * | item, |
| double | percent | ||
| ) |
Definition at line 4490 of file Player.cpp.
References DurabilityPointsLoss(), Unit::GetTotalAuraMultiplier(), Item::m_itemData, and SPELL_AURA_MOD_DURABILITY_LOSS.
Referenced by DurabilityLossAll(), Spell::EffectDurabilityDamagePCT(), and Spell::EffectSummonChangeItem().
| void Player::DurabilityLossAll | ( | double | percent, |
| bool | inventory | ||
| ) |
Definition at line 4466 of file Player.cpp.
References DurabilityLoss(), EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, GetBagByPos(), GetInventorySlotCount(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, and INVENTORY_SLOT_ITEM_START.
Referenced by Spell::EffectDurabilityDamagePCT(), EnvironmentalDamage(), and WorldSession::SendSpiritResurrect().
| void Player::DurabilityPointLossForEquipSlot | ( | EquipmentSlots | slot | ) |
Definition at line 4564 of file Player.cpp.
References DurabilityPointsLoss(), GetItemByPos(), Unit::HasAuraType(), INVENTORY_SLOT_BAG_0, and SPELL_AURA_PREVENT_DURABILITY_LOSS_FROM_COMBAT.
Definition at line 4534 of file Player.cpp.
References _ApplyItemMods(), Item::GetSlot(), Unit::HasAuraType(), Item::IsEquipped(), ITEM_CHANGED, Item::m_itemData, Item::SetDurability(), Item::SetState(), and SPELL_AURA_PREVENT_DURABILITY_LOSS.
Referenced by DurabilityLoss(), DurabilityPointLossForEquipSlot(), DurabilityPointsLossAll(), and Spell::EffectDurabilityDamage().
| void Player::DurabilityPointsLossAll | ( | int32 | points, |
| bool | inventory | ||
| ) |
Definition at line 4510 of file Player.cpp.
References DurabilityPointsLoss(), EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, GetInventorySlotCount(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, and INVENTORY_SLOT_ITEM_START.
Referenced by Spell::EffectDurabilityDamage().
| void Player::DurabilityRepair | ( | uint16 | pos, |
| bool | takeCost, | ||
| float | discountMod | ||
| ) |
Definition at line 4657 of file Player.cpp.
References _ApplyItemMods(), Item::CalculateDurabilityRepairCost(), BaseEntity::GetGUID(), GetItemByPos(), WorldObject::GetName(), HasEnoughMoney(), Item::IsBroken(), IsEquipmentPos(), ITEM_CHANGED, Item::m_itemData, ModifyMoney(), Item::SetDurability(), Item::SetState(), TC_LOG_DEBUG, and Position::ToString().
Referenced by DurabilityRepairAll(), and WorldSession::HandleRepairItemOpcode().
| void Player::DurabilityRepairAll | ( | bool | takeCost, |
| float | discountMod, | ||
| bool | guildBank | ||
| ) |
Definition at line 4573 of file Player.cpp.
References DurabilityRepair(), EQUIPMENT_SLOT_START, BaseEntity::GetGUID(), GetGuild(), GetInventorySlotCount(), GetItemByPos(), Guild::GetMemberAvailableMoneyForRepairItems(), GetSession(), Guild::HandleMemberWithdrawMoney(), HasEnoughMoney(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_START, MAX_BAG_SIZE, MAX_MONEY_AMOUNT, and ModifyMoney().
Referenced by WorldSession::HandleRepairItemOpcode(), and misc_commandscript::HandleRepairitemsCommand().
| void Player::EnablePetControlsOnDismount | ( | ) |
Definition at line 27907 of file Player.cpp.
References WorldPackets::Pet::PetMode::CommandState, WorldPackets::Pet::PetMode::Flag, GetPet(), m_temporaryPetReactState, WorldPackets::Pet::PetMode::PetGUID, WorldPackets::Pet::PetMode::ReactState, SendDirectMessage(), and WorldPackets::Pet::PetMode::Write().
| void Player::EnablePvpRules | ( | bool | dueToCombat = false | ) |
Definition at line 27804 of file Player.cpp.
References CastSpell, Unit::GetAura(), HasPvpRulesEnabled(), HasSpell(), SPELL_PVP_RULES_ENABLED, and UpdateItemLevelAreaBasedScaling().
Referenced by AtEnterCombat(), WorldSession::HandleDuelAccepted(), and UpdateArea().
Definition at line 24082 of file Player.cpp.
References EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, ItemTemplate::GetGemProperties(), GetItemByPos(), INVENTORY_SLOT_BAG_0, Item::IsBroken(), Item::m_itemData, sGemPropertiesStore, sObjectMgr, sSpellItemEnchantmentConditionStore, TC_LOG_DEBUG, and GemPropertiesEntry::Type.
Referenced by ApplyEnchantment(), and CorrectMetaGemEnchants().
| uint32 Player::EnvironmentalDamage | ( | EnviromentalDamage | type, |
| uint32 | damage | ||
| ) |
Definition at line 618 of file Player.cpp.
References WorldPackets::CombatLog::EnvironmentalDamageLog::Absorbed, WorldPackets::CombatLog::EnvironmentalDamageLog::Amount, BASE_ATTACK, Unit::CalcAbsorbResist(), DAMAGE_FALL, DAMAGE_FALL_TO_VOID, DAMAGE_FIRE, DAMAGE_LAVA, DAMAGE_SLIME, Unit::DealDamage(), Unit::DealDamageMods(), DieFromEnviromentalDamage, DIRECT_DAMAGE, DurabilityLossAll(), DamageInfo::GetAbsorb(), DamageInfo::GetDamage(), BaseEntity::GetGUID(), WorldObject::GetName(), DamageInfo::GetResist(), Unit::GetTotalAuraMultiplier(), WorldPackets::Spells::SpellCastLogData::Initialize(), Unit::IsAlive(), IsImmuneToEnvironmentalDamage(), WorldPackets::CombatLog::CombatLogServerPacket::LogData, RATE_DURABILITY_LOSS_ON_DEATH, WorldPackets::CombatLog::EnvironmentalDamageLog::Resisted, SELF_DAMAGE, WorldObject::SendCombatLogMessage(), Unit::SendDurabilityLoss(), SPELL_AURA_MOD_ENVIRONMENTAL_DAMAGE_TAKEN, SPELL_SCHOOL_MASK_FIRE, SPELL_SCHOOL_MASK_NATURE, SPELL_SCHOOL_MASK_NORMAL, sWorld, TC_LOG_DEBUG, Position::ToString(), WorldPackets::CombatLog::EnvironmentalDamageLog::Type, UpdateCriteria(), and WorldPackets::CombatLog::EnvironmentalDamageLog::Victim.
Referenced by Spell::EffectEnvironmentalDMG(), HandleFall(), WorldSession::HandleMovementOpcode(), and UpdateMirrorTimers().
Definition at line 11623 of file Player.cpp.
References AutoUnequipOffhandIfNeed(), BankItem(), CanBankItem(), CanEquipItem(), CanStoreItem(), CanUnequipItem(), EQUIP_ERR_OK, EquipItem, Item::GetBagSlot(), Item::GetChildItem(), GetChildItemByGuid(), Object::GetEntry(), GetItemByPos(), Item::GetSlot(), INVENTORY_SLOT_BAG_0, IsBankPos(), IsEquipmentPos(), IsInventoryPos(), NULL_BAG, NULL_SLOT, RemoveItem(), sDB2Manager, SendEquipError(), and StoreItem().
Referenced by WorldSession::HandleAutoEquipItemOpcode(), and SwapItem().
Definition at line 11507 of file Player.cpp.
References _ApplyItemMods(), AddEnchantmentDurations(), SpellHistory::AddGlobalCooldown(), AddItemDurations(), AddItemsSetItem(), Object::AddToWorld(), ApplyEquipCooldown(), BASE_ATTACK, WorldPackets::Spells::SpellCooldown::Caster, CheckTitanGripPenalty(), CLASS_ROGUE, Item::ClearSoulboundTradeable(), CR_ARMOR_PENETRATION, BaseEntity::DestroyForPlayer(), DIFFICULTY_NONE, EquipItem, EquipItemInSlot, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, WorldPackets::Spells::SpellCooldown::Flags, ItemTemplate::GetClass(), Unit::GetClass(), Item::GetCount(), Object::GetEntry(), BaseEntity::GetGUID(), ItemTemplate::GetInventoryType(), GetItemByPos(), ItemTemplate::GetItemSet(), WorldObject::GetName(), Unit::GetSpellHistory(), Item::GetTemplate(), INVTYPE_RELIC, Unit::IsAlive(), Unit::IsInCombat(), BaseEntity::IsInWorld(), ITEM_CHANGED, ITEM_CLASS_WEAPON, ITEM_FIELD_FLAG2_EQUIPPED, ITEM_REMOVED, m_weaponChangeTimer, OFF_ATTACK, RecalculateRating(), RemoveEnchantmentDurations(), Object::RemoveFromWorld(), RemoveItemDurations(), RemoveTradeableItem(), SendDirectMessage(), BaseEntity::SendUpdateToPlayer(), Item::SetCount(), Item::SetItemZoneFlag(), Item::SetNotRefundable(), Item::SetOwnerGUID(), Item::SetState(), SPELL_COOLDOWN_FLAG_INCLUDE_GCD, WorldPackets::Spells::SpellCooldown::SpellCooldowns, sSpellMgr, SpellInfo::StartRecoveryTime, TC_LOG_ERROR, Position::ToString(), UpdateAverageItemLevelEquipped(), UpdateCriteria(), UpdateExpertise(), VisualizeItem(), and WorldPackets::Spells::SpellCooldown::Write().
Referenced by Spell::EffectSummonChangeItem(), and WorldSession::HandleAutoEquipItemOpcode().
| Item * Player::EquipNewItem | ( | uint16 | pos, |
| uint32 | item, | ||
| ItemContext | context, | ||
| bool | update | ||
| ) |
Definition at line 11494 of file Player.cpp.
References Item::CreateItem(), EquipItem, ItemAddedQuestCheck(), ObtainAnyItem, and UpdateCriteria().
Referenced by _StoreOrEquipNewItem(), WorldSession::HandleBuyBankTab(), and StoreNewItemInBestSlots().
| void Player::EquipTransmogOutfit | ( | uint32 | id, |
| TransmogSituationTrigger | trigger, | ||
| Optional< bool > | locked | ||
| ) |
Definition at line 31176 of file Player.cpp.
References UF::TransmogOutfitSlotData::AppearanceDisplayType, ArtifactSpecFour, ArtifactSpecOne, ArtifactSpecThree, ArtifactSpecTwo, AsUnderlyingType(), Default, Disabled, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Equipped, UF::TransmogOutfitSlotData::Flags, TransmogMgr::GetAllSlots(), GetItemByPos(), TransmogMgr::GetSlotAndOption(), UF::TransmogOutfitSlotData::IllusionDisplayType, INVENTORY_SLOT_BAG_0, UF::TransmogOutfitSlotData::ItemModifiedAppearanceID, UF::TransmogOutfitMetadata::Locked, m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), None, BaseEntity::SetUpdateFieldValue(), SetVisibleItemSlot(), UF::TransmogOutfitSlotData::SheatheCategory, UF::TransmogOutfitMetadata::SituationTrigger, UF::TransmogOutfitSlotData::Slot, TransmogMgr::TransmogOutfitSlotAndOptionInfo::SlotIndex, UF::TransmogOutfitSlotData::SlotOption, UF::TransmogOutfitData::Slots, UF::TransmogOutfitSlotData::SpellItemEnchantmentID, UF::ActivePlayerData::TransmogMetadata, UF::TransmogOutfitMetadata::TransmogOutfitID, Unassigned, and UF::ActivePlayerData::ViewedOutfit.
Referenced by _LoadTransmogOutfits(), Create(), Spell::EffectEquipTransmogOutfit(), and WorldSession::HandleTransmogOutfitUpdateSlots().
|
private |
Definition at line 31543 of file Player.cpp.
References _pendingSpellCastRequest, CancelPendingCastRequest(), WorldPackets::Spells::SpellPrepare::ClientCastID, CURRENT_AUTOREPEAT_SPELL, Spell::Data, SpellInfo::GetAuraRankForLevel(), Unit::GetCastSpellInfo(), Unit::GetCurrentSpell(), GetDifficultyID(), SpellCastTargets::GetGOTarget(), BaseEntity::GetGUID(), Unit::GetLevelForTarget(), WorldObject::GetMap(), ObjectAccessor::GetUnit(), SpellCastTargets::GetUnitTarget(), SpellCastTargets::GetUnitTargetGUID(), HasActiveSpell(), SpellInfo::HasAttribute(), Unit::HasAuraTypeWithTriggerSpell(), SpellInfo::Id, SpellInfo::IsAutoRepeatRangedSpell(), SpellInfo::IsPassive(), Unit::isPossessing(), Spell::m_castId, Spell::m_fromClient, Spell::m_misc, Spell::prepare(), ProcessItemCast(), Spell::Raw, SendDirectMessage(), WorldPackets::Spells::SpellPrepare::ServerCastID, Spell, SPELL_ATTR8_SKIP_IS_KNOWN_CHECK, SPELL_AURA_PERIODIC_TRIGGER_SPELL_FROM_CLIENT, sSpellMgr, Object::ToPlayer(), TRIGGERED_FULL_MASK, TRIGGERED_NONE, and WorldPackets::Spells::SpellPrepare::Write().
Referenced by RequestSpellCast(), and Update().
| void Player::FailCriteria | ( | CriteriaFailEvent | condition, |
| int32 | failAsset | ||
| ) |
Definition at line 27526 of file Player.cpp.
References m_achievementMgr, and m_questObjectiveCriteriaMgr.
Referenced by Group::AddMember(), DailyReset(), Arena::EndBattleground(), Group::RemoveMember(), Battleground::RemovePlayerAtLeave(), setDeathState(), and GameEvents::TriggerForPlayer().
| void Player::FailQuest | ( | uint32 | quest_id | ) |
Definition at line 15314 of file Player.cpp.
References BIND_QUEST, DestroyItemCount(), FindQuestSlot(), GetQuestStatus(), m_QuestStatus, MAX_QUEST_LOG_SIZE, QUEST_ITEM_DROP_COUNT, QUEST_OBJECTIVE_ITEM, QUEST_STATE_FAIL, QUEST_STATUS_COMPLETE, QUEST_STATUS_FAILED, QUEST_STATUS_INCOMPLETE, RemoveTimedQuest(), SendQuestFailed(), SendQuestTimerFailed(), SetQuestSlotState(), 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(), Spell::EffectQuestFail(), SmartAI::EndPath(), FailQuestsWithFlag(), Scripts::Pandaria::TheWanderingIsle::npc_li_fei_combat::KilledUnit(), npc_doctor::npc_doctorAI::PatientDied(), Map::ScriptsProcess(), boss_shattered_executioner::SetData(), Update(), and npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI().
| void Player::FailQuestsWithFlag | ( | QuestFlags | flag | ) |
Definition at line 15362 of file Player.cpp.
References FailQuest(), GetQuestSlotQuestId(), MAX_QUEST_LOG_SIZE, and sObjectMgr.
Referenced by BuildPlayerRepop(), and WorldSession::LogoutPlayer().
Definition at line 25451 of file Player.cpp.
References SkillLineEntry::CategoryID, m_activePlayerData, SkillLineEntry::ParentSkillLineID, SKILL_CATEGORY_PROFESSION, and sSkillLineStore.
Referenced by _LoadSkills(), and SetSkill().
Definition at line 9189 of file Player.cpp.
References ACCOUNT_BANK_SLOT_BAG_START, BANK_SLOT_BAG_START, Unit::CanDualWield(), CanTitanGrip(), advstd::ranges::contains, EQUIPMENT_SLOT_BACK, EQUIPMENT_SLOT_BODY, EQUIPMENT_SLOT_CHEST, EQUIPMENT_SLOT_FEET, EQUIPMENT_SLOT_FINGER1, EQUIPMENT_SLOT_FINGER2, EQUIPMENT_SLOT_HANDS, EQUIPMENT_SLOT_HEAD, EQUIPMENT_SLOT_LEGS, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_NECK, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_SHOULDERS, EQUIPMENT_SLOT_TABARD, EQUIPMENT_SLOT_TRINKET1, EQUIPMENT_SLOT_TRINKET2, EQUIPMENT_SLOT_WAIST, EQUIPMENT_SLOT_WRISTS, ItemTemplate::GetClass(), ItemTemplate::GetId(), ItemTemplate::GetInventoryType(), GetItemByPos(), GetProfessionSlotFor(), ItemTemplate::GetSkill(), ItemTemplate::GetSubClass(), Item::GetTemplate(), HasSkill(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_START, INVTYPE_2HWEAPON, INVTYPE_BAG, INVTYPE_BODY, INVTYPE_CHEST, INVTYPE_CLOAK, INVTYPE_FEET, INVTYPE_FINGER, INVTYPE_HANDS, INVTYPE_HEAD, INVTYPE_HOLDABLE, INVTYPE_LEGS, INVTYPE_NECK, INVTYPE_PROFESSION_GEAR, INVTYPE_PROFESSION_TOOL, INVTYPE_RANGED, INVTYPE_RANGEDRIGHT, INVTYPE_ROBE, INVTYPE_SHIELD, INVTYPE_SHOULDERS, INVTYPE_TABARD, INVTYPE_TRINKET, INVTYPE_WAIST, INVTYPE_WEAPON, INVTYPE_WEAPONMAINHAND, INVTYPE_WEAPONOFFHAND, INVTYPE_WRISTS, IsTwoHandUsed(), ITEM_ACCOUNT_BANK_TAB_BAG, ITEM_CHARACTER_BANK_TAB_BAG, ITEM_CLASS_CONTAINER, ITEM_CLASS_PROFESSION, ITEM_SUBCLASS_PROFESSION_ALCHEMY, ITEM_SUBCLASS_PROFESSION_BLACKSMITHING, ITEM_SUBCLASS_PROFESSION_COOKING, ITEM_SUBCLASS_PROFESSION_ENCHANTING, ITEM_SUBCLASS_PROFESSION_ENGINEERING, ITEM_SUBCLASS_PROFESSION_FISHING, ITEM_SUBCLASS_PROFESSION_HERBALISM, ITEM_SUBCLASS_PROFESSION_INSCRIPTION, ITEM_SUBCLASS_PROFESSION_JEWELCRAFTING, ITEM_SUBCLASS_PROFESSION_LEATHERWORKING, ITEM_SUBCLASS_PROFESSION_MINING, ITEM_SUBCLASS_PROFESSION_SKINNING, ITEM_SUBCLASS_PROFESSION_TAILORING, ITEM_SUBCLASS_REAGENT_CONTAINER, NULL_SLOT, PROFESSION_SLOT_COOKING_GEAR1, PROFESSION_SLOT_COOKING_TOOL, PROFESSION_SLOT_FISHING_TOOL, PROFESSION_SLOT_MAX_COUNT, PROFESSION_SLOT_PROFESSION1_GEAR1, PROFESSION_SLOT_PROFESSION1_GEAR2, PROFESSION_SLOT_PROFESSION1_TOOL, and REAGENT_BAG_SLOT_START.
Referenced by CanEquipItem().
Definition at line 16350 of file Player.cpp.
References m_QuestStatus, and MAX_QUEST_LOG_SIZE.
Referenced by QuestObjectiveCriteriaMgr::CanUpdateCriteriaTree(), FailQuest(), GetQuestObjectiveData(), GetQuestObjectiveData(), GetReqKillOrCastCurrentCount(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::GiveClue(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleQuestgiverCloseQuest(), WorldSession::HandleQuestPOIQuery(), IncompleteQuest(), ConditionMgr::IsPlayerMeetingCondition(), IsQuestObjectiveCompletable(), IsQuestObjectiveComplete(), CriteriaHandler::ModifierSatisfied(), and SmartQuest::OnQuestObjectiveChange().
| void Player::FinishTaxiFlight | ( | ) |
Definition at line 23302 of file Player.cpp.
References PlayerTaxi::ClearTaxiDestinations(), FLIGHT_MOTION_TYPE, Unit::GetMotionMaster(), Unit::IsInFlight(), m_taxi, and MotionMaster::Remove().
Referenced by go_commandscript::DoTeleport(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleBattleFieldPortOpcode(), go_commandscript::HandleGoBossCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoInstanceCommand(), go_commandscript::HandleGoQuestCommand(), go_commandscript::HandleGoTicketCommand(), go_commandscript::HandleGoZoneXYCommand(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleMoveWorldportAck(), misc_commandscript::HandleRecallCommand(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleCommand(), tele_commandscript::HandleTeleGroupCommand(), SummonIfPossible(), and lfg::LFGMgr::TeleportPlayer().
|
inline |
Iterate over each item in the player storage.
| T | ItemSearchCallbackResult ItemCallback(Item* item) |
| location | Locations of the items to iterate over |
| callback | Callback called on each item. Will continue as long as it returns ItemSearchCallbackResult::Continue |
Definition at line 1388 of file Player.h.
References Bank, BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, CHILD_EQUIPMENT_SLOT_END, CHILD_EQUIPMENT_SLOT_START, Equipment, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, GetBagSize(), GetItemInBag(), EnumFlag< T >::HasFlag(), Inventory, INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_START, PROFESSION_SLOT_END, PROFESSION_SLOT_START, REAGENT_BAG_SLOT_END, REAGENT_BAG_SLOT_START, ReagentBank, and Stop.
Referenced by CanUnequipItems(), GetChildItemByGuid(), GetCraftingReagentItemsToDeposit(), GetItemByEntry(), GetItemByGuid(), GetItemCount(), GetItemCountWithLimitCategory(), GetItemListByEntry(), WorldSession::HandleSellAllJunkItems(), HasGemWithLimitCategoryEquipped(), HasItemCount(), HasItemOrGemWithIdEquipped(), HasItemWithLimitCategoryEquipped(), CriteriaHandler::ModifierSatisfied(), and UpdateAverageItemLevelTotal().
|
inline |
Definition at line 1490 of file Player.h.
Referenced by WorldSession::HandleBuyBankTab(), and CriteriaHandler::UpdateCriteria().
| uint32 Player::GetAchievementPoints | ( | ) | const |
Definition at line 27506 of file Player.cpp.
References m_achievementMgr.
Referenced by CriteriaHandler::ModifierSatisfied().
| ActionButton const * Player::GetActionButton | ( | uint8 | button | ) |
Definition at line 6133 of file Player.cpp.
References ACTIONBUTTON_DELETED, and m_actionButtons.
Referenced by Spell::EffectCastButtons().
|
inline |
| QuestObjective const * Player::GetActiveQuestObjectiveForSpawnTracking | ( | uint32 | spawnTrackingId | ) | const |
Definition at line 17516 of file Player.cpp.
References IsQuestObjectiveCompletable(), and sObjectMgr.
Referenced by WorldSession::HandleSpawnTrackingUpdate().
|
inline |
Definition at line 1995 of file Player.h.
Referenced by _LoadGlyphAuras(), _SaveActions(), ActivateTalentGroup(), AddPvpTalent(), AddTalent(), Spell::CheckCast(), Spell::EffectApplyGlyph(), Item::GetDisplayId(), Item::GetVisibleAppearanceModId(), Item::GetVisibleEnchantmentId(), Item::GetVisibleEntry(), Item::GetVisibleModifiedAppearanceId(), Item::GetVisibleSecondaryModifiedAppearanceId(), WorldSession::HandleInspectOpcode(), learn_commandscript::HandleLearnAllTalentsCommand(), WorldSession::HandleTransmogrifyItems(), LearnPvpTalent(), LearnTalent(), LoadFromDB(), RemoveTalent(), SaveToDB(), SendInitialPacketsBeforeAddToMap(), SendTalentsInfoData(), StartLoadingActionButtons(), and TogglePvpTalents().
|
inline |
Definition at line 2249 of file Player.h.
Referenced by WorldSession::DoLootRelease(), WorldSession::DoLootReleaseAll(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), and SwapItem().
Definition at line 23086 of file Player.cpp.
References GetPvpInfoForBracket(), and pvpInfo.
Referenced by Arena::EndBattleground(), and GetMaxPersonalArenaRatingRequirement().
Definition at line 2158 of file Player.h.
Referenced by ArenaTeam::AddMember(), Group::CanJoinBattlegroundQueue(), WorldSession::HandleBattlemasterJoinArena(), ResetCurrencyWeekCap(), and CriteriaHandler::UpdateCriteria().
|
inline |
Definition at line 1625 of file Player.h.
Referenced by Spell::EffectProficiency().
|
static |
Definition at line 9644 of file Player.cpp.
References BASE_ATTACK, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, INVTYPE_RANGED, INVTYPE_RANGEDRIGHT, MAX_ATTACK, OFF_ATTACK, and RANGED_ATTACK.
Referenced by _ApplyAllItemMods(), _ApplyAllLevelScaleItemMods(), _ApplyItemBonuses(), _ApplyItemMods(), _ApplyWeaponDamage(), _RemoveAllItemMods(), ApplyAllAzeriteEmpoweredItemMods(), ApplyAllAzeriteItemMods(), ApplyEnchantment(), GetUseableItemByPos(), AuraEffect::HandleAuraModDisarm(), and UpdateEquipSpellsAtFormChange().
| float Player::GetAverageItemLevel | ( | ) | const |
Definition at line 29977 of file Player.cpp.
References EQUIPMENT_SLOT_BODY, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, EQUIPMENT_SLOT_START, EQUIPMENT_SLOT_TABARD, Item::GetItemLevel(), and m_items.
Referenced by spell_gen_vehicle_scaling::CalculateAmount(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), lfg::LFGMgr::GetLockedDungeons(), and WorldSession::HandleInspectOpcode().
Definition at line 9567 of file Player.cpp.
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, REAGENT_BAG_SLOT_END, REAGENT_BAG_SLOT_START, and Item::ToBag().
Referenced by _StoreItem(), CanStoreItem_InBag(), CanStoreItem_InSpecificSlot(), CanStoreItems(), CastAllObtainSpells(), DestroyConjuredItems(), DestroyItem(), DestroyItemCount(), DestroyZoneLimitedItem(), DurabilityLossAll(), GetFreeInventorySlotCount(), GetItemByPos(), HasItemTotemCategory(), IsValidPos(), RemoveArenaEnchantments(), and RemoveItem().
|
inline |
Definition at line 1515 of file Player.h.
Referenced by WorldSession::HandleSellAllJunkItems().
|
inline |
Definition at line 1486 of file Player.h.
Referenced by SaveToDB(), and CriteriaHandler::UpdateCriteria().
| int64 Player::GetBarberShopCost | ( | Trinity::IteratorPair< UF::ChrCustomizationChoice const * > | newCustomizations | ) | const |
Definition at line 26967 of file Player.cpp.
References UF::ChrCustomizationChoice::ChrCustomizationOptionID, GtBarberShopCostBaseEntry::Cost, Unit::GetLevel(), Unit::HasAuraType(), m_playerData, sBarberShopCostBaseGameTable, sChrCustomizationOptionStore, and SPELL_AURA_REMOVE_BARBER_SHOP_COST.
Referenced by WorldSession::HandleAlterAppearance().
| float Player::GetBaseModValue | ( | BaseModGroup | modGroup, |
| BaseModType | modType | ||
| ) | const |
Definition at line 4974 of file Player.cpp.
References BASEMOD_END, FLAT_MOD, BaseEntity::GetGUID(), WorldObject::GetName(), m_auraBaseFlatMod, m_auraBasePctMod, MOD_END, TC_LOG_ERROR, and Position::ToString().
Referenced by UpdateCritPercentage().
Definition at line 5962 of file Player.cpp.
References GetSkillPermBonusByPos(), GetSkillRankByPos(), mSkillStatus, and SKILL_DELETED.
Referenced by npc_engineering_tele_trinket::npc_engineering_tele_trinketAI::CanLearn(), Trainer::Trainer::GetSpellState(), and CriteriaHandler::UpdateCriteria().
|
inline |
Returns base spellpower bonus from spellpower stat on items, without spellpower from intellect stat.
Definition at line 2220 of file Player.h.
Referenced by _SaveStats(), Unit::SpellBaseDamageBonusDone(), and Unit::SpellBaseHealingBonusDone().
| Battleground * Player::GetBattleground | ( | ) | const |
Definition at line 25650 of file Player.cpp.
References BGData::bgTypeID, GetBattlegroundId(), m_bgData, and sBattlegroundMgr.
Referenced by CanEquipItem(), CanUnequipItem(), Spell::CheckCast(), SpellInfo::CheckLocation(), MapManager::CreateMap(), Unit::DestroyForPlayer(), WorldSession::HandleBattlefieldLeaveOpcode(), WorldSession::HandleBattleFieldPortOpcode(), bg_commandscript::HandleBgStartCommand(), bg_commandscript::HandleBgStopCommand(), WorldSession::HandleMovementOpcode(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandlePVPLogDataOpcode(), WorldSession::HandleRequestBattlefieldStatusOpcode(), WorldSession::HandleTraitsCommitConfig(), InArena(), Battlefield::InvitePlayerToWar(), LeaveBattleground(), WorldSession::LogoutPlayer(), CriteriaHandler::ModifierSatisfied(), achievement_arena_kills::OnCheck(), at_ioc_exploit::OnExit(), spell_bg_temple_of_kotmogu_victory_points_periodic< Points >::OnHit(), transport_seething_shore::OnRemovePassenger(), at_av_exploit::OnTrigger(), RemovedInsignia(), ReportedAfkBy(), RewardHonor(), TeleportTo(), and at_ds_pipe_knockback::Trigger().
|
inline |
Definition at line 2593 of file Player.h.
Referenced by LoadFromDB().
|
inline |
Definition at line 2572 of file Player.h.
Referenced by BattlegroundMap::CannotEnter(), MapManager::CreateMap(), MapManager::FindInstanceIdForPlayer(), GetBattleground(), GiveXP(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleMoveWorldportAck(), misc_commandscript::HandleSummonCommand(), and RemovedInsignia().
| uint32 Player::GetBattlegroundQueueIndex | ( | BattlegroundQueueTypeId | bgQueueTypeId | ) | const |
Definition at line 25683 of file Player.cpp.
References m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by BGQueueInviteEvent::Execute(), BGQueueRemoveEvent::Execute(), WorldSession::HandleBattlemasterJoinOpcode(), InBattlegroundQueueForBattlegroundQueueType(), BattlegroundQueue::InviteGroupToBG(), and Battleground::RemovePlayerAtLeave().
| uint32 Player::GetBattlegroundQueueJoinTime | ( | BattlegroundQueueTypeId | bgQueueTypeId | ) | const |
Definition at line 25658 of file Player.cpp.
References Player::BgBattlegroundQueueID_Rec::joinTime, m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by BattlegroundMgr::BuildBattlegroundStatusFailed(), BGQueueInviteEvent::Execute(), BGQueueRemoveEvent::Execute(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleRequestBattlefieldStatusOpcode(), BattlegroundQueue::InviteGroupToBG(), and Battleground::RemovePlayerAtLeave().
| BattlegroundQueueTypeId Player::GetBattlegroundQueueTypeId | ( | uint32 | index | ) | const |
Definition at line 25675 of file Player.cpp.
References BATTLEGROUND_QUEUE_NONE, Player::BgBattlegroundQueueID_Rec::bgQueueTypeId, m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleRequestBattlefieldStatusOpcode(), and WorldSession::LogoutPlayer().
|
inline |
Definition at line 2573 of file Player.h.
Referenced by misc_commandscript::HandleAppearCommand(), misc_commandscript::HandleSummonCommand(), and CriteriaHandler::ModifierSatisfied().
| bool Player::GetBGAccessByLevel | ( | BattlegroundTypeId | bgTypeId | ) | const |
Definition at line 25789 of file Player.cpp.
References CURRENT_EXPANSION, Unit::GetLevel(), BattlegroundTemplate::GetMaxLevel(), GetMaxLevelForExpansion(), and sBattlegroundMgr.
Referenced by WorldSession::HandleBattlemasterHelloOpcode(), and Creature::isCanInteractWithBattleMaster().
| Team Player::GetBGTeam | ( | ) | const |
Definition at line 24277 of file Player.cpp.
References BGData::bgTeam, GetTeam(), and m_bgData.
Referenced by Battleground::AddPlayer(), Arena::AddPlayer(), GameObject::AssaultCapturePoint(), BattlegroundMgr::BuildBattlegroundStatusActive(), GameObject::CanInteractWithCapturePoint(), Battleground::EndBattleground(), Arena::EndBattleground(), Battleground::EventPlayerLoggedOut(), npc_bg_silvershard_mines_mine_cart::HandleCapture(), arena_hook_point::HandleReactionCheer(), arena_hook_point::HandleReactionLowHealth(), spell_undermine_arena_warning_teleport::HandleTeleport(), spell_enigma_arena_warning_teleport::HandleTeleport(), npc_bg_silvershard_mines_mine_cart::JustAppeared(), arena_empyrean_domain::MovePlayerDown(), battleground_deephaul_ravine::OnCaptureFlag(), battleground_deephaul_ravine::OnFlagStateChange(), battleground_temple_of_kotmogu::OnFlagTaken(), spell_bg_temple_of_kotmogu_victory_points_periodic< Points >::OnHit(), transport_seething_shore::OnRemovePassenger(), at_ioc_backdoor_job::OnTrigger(), RewardHonor(), BattlegroundMgr::SendToBattleground(), and Battleground::TeleportPlayerToExploitLocation().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 26830 of file Player.cpp.
References ArmorConstant, CLASS_NONE, m_activePlayerData, and sDB2Manager.
|
overridevirtual |
Reimplemented from Unit.
Definition at line 30605 of file Player.cpp.
References Unit::GetCastSpellInfoContext::AddSpell(), Unit::GetCastSpellInfo(), GetCastSpellInfo(), GetDifficultyID(), WorldObject::GetMap(), SpellInfo::Id, m_overrideSpells, and sSpellMgr.
Referenced by GetCastSpellInfo().
|
inline |
Definition at line 2845 of file Player.h.
Referenced by RewardReputation().
|
inline |
Definition at line 1488 of file Player.h.
Referenced by CanBankItem(), WorldSession::HandleBuyBankTab(), SaveToDB(), and CriteriaHandler::UpdateCriteria().
| uint32 Player::GetChatFlags | ( | ) | const |
Definition at line 1163 of file Player.cpp.
References CHAT_FLAG_AFK, CHAT_FLAG_DEV, CHAT_FLAG_DND, CHAT_FLAG_GM, CHAT_FLAG_NONE, CHAT_FLAG_TIMERUNNING, isAFK(), IsDeveloper(), isDND(), isGMChat(), and m_activePlayerData.
| Item * Player::GetChildItemByGuid | ( | ObjectGuid | guid | ) | const |
Definition at line 9629 of file Player.cpp.
References Continue, Equipment, ForEachItem(), BaseEntity::GetGUID(), and Inventory.
Referenced by AutoUnequipChildItem(), CanEquipChildItem(), EquipChildItem(), WorldSession::HandleArtifactSetAppearance(), and WorldSession::HandleSocketGems().
|
inline |
Definition at line 2093 of file Player.h.
Referenced by WorldSession::HandlePlayerLogin().
|
inline |
Definition at line 1643 of file Player.h.
Referenced by WorldSession::HandleCompleteCinematic(), and WorldSession::HandleNextCinematicCamera().
|
inline |
Definition at line 1323 of file Player.h.
Referenced by Spell::_cast(), Spell::EffectInstaKill(), cheat_commandscript::HandleCasttimeCheatCommand(), cheat_commandscript::HandleCheatStatusCommand(), cheat_commandscript::HandleCoolDownCheatCommand(), HandleFall(), cheat_commandscript::HandleGodModeCheatCommand(), cheat_commandscript::HandlePowerCheatCommand(), cheat_commandscript::HandleWaterWalkCheatCommand(), WorldObject::ModSpellCastTime(), Spell::RefundPower(), Regenerate(), Spell::TakePower(), and Spell::TriggerGlobalCooldown().
| std::vector< uint32 > Player::GetCompletedAchievementIds | ( | ) | const |
Definition at line 27511 of file Player.cpp.
References m_achievementMgr.
Referenced by CriteriaHandler::ModifierSatisfied().
| Corpse * Player::GetCorpse | ( | ) | const |
Definition at line 4461 of file Player.cpp.
References Map::GetCorpseByPlayer(), BaseEntity::GetGUID(), and WorldObject::GetMap().
Referenced by KillRewarder::_RewardKillCredit(), CalculateCorpseReclaimDelay(), GroupEventHappens(), WorldSession::HandleQueryCorpseTransport(), WorldSession::HandleReclaimCorpse(), IsAtGroupRewardDistance(), IsAtRecruitAFriendDistance(), and RewardPlayerAndGroupAtEvent().
|
inline |
Definition at line 2323 of file Player.h.
Referenced by BuildPlayerRepop(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandleQueryCorpseLocation(), and WorldSession::SendSpiritResurrect().
| uint32 Player::GetCorpseReclaimDelay | ( | bool | pvp | ) | const |
Definition at line 26507 of file Player.cpp.
References CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVE, CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVP, corpseReclaimDelay, DEATH_EXPIRE_STEP, GameTime::GetGameTime(), m_deathExpireTime, and sWorld.
Referenced by CalculateCorpseReclaimDelay(), and WorldSession::HandleReclaimCorpse().
| std::vector< Item * > Player::GetCraftingReagentItemsToDeposit | ( | ) |
Definition at line 9508 of file Player.cpp.
References Continue, ForEachItem(), Item::GetTemplate(), Inventory, and ItemTemplate::IsCraftingReagent().
Referenced by WorldSession::HandleAutoDepositCharacterBank().
|
inline |
Definition at line 2091 of file Player.h.
Referenced by WorldSession::HandlePlayerLogin().
|
inline |
Replaces a CUF profile at position 0-4
Definition at line 1832 of file Player.h.
Referenced by WorldSession::SendLoadCUFProfiles().
|
inline |
Retrieves a CUF profile at position 0-4
Definition at line 1833 of file Player.h.
References MAX_CUF_PROFILES.
Definition at line 7301 of file Player.cpp.
References _currencyStorage.
Referenced by GetCurrencyMaxQuantity().
| uint32 Player::GetCurrencyMaxQuantity | ( | CurrencyTypesEntry const * | currency, |
| bool | onLoad = false, |
||
| bool | onUpdateVersion = false |
||
| ) | const |
Definition at line 7310 of file Player.cpp.
References DynamicMaximum, GetCurrencyIncreasedCapQuantity(), CurrencyTypesEntry::GetFlags(), WorldObject::GetMap(), WorldStateMgr::GetValue(), CurrencyTypesEntry::HasMaxQuantity(), CurrencyTypesEntry::ID, CurrencyTypesEntry::MaxQty, and CurrencyTypesEntry::MaxQtyWorldStateID.
Referenced by ReputationMgr::GetRenownMaxLevel(), IncreaseCurrencyCap(), ModifyCurrency(), and SendCurrencies().
Definition at line 7274 of file Player.cpp.
References _currencyStorage.
Referenced by AdjustQuestObjectiveProgress(), ReputationMgr::GetRenownLevel(), CriteriaHandler::ModifierSatisfied(), and UpdateQuestObjectiveProgress().
Definition at line 7292 of file Player.cpp.
References _currencyStorage.
Referenced by CriteriaHandler::ModifierSatisfied().
| uint32 Player::GetCurrencyWeeklyCap | ( | CurrencyTypesEntry const * | currency | ) | const |
Definition at line 7335 of file Player.cpp.
References CurrencyTypesEntry::MaxEarnablePerWeek.
Definition at line 7326 of file Player.cpp.
References GetCurrencyWeeklyCap(), and sCurrencyTypesStore.
Referenced by GetCurrencyWeeklyCap(), ModifyCurrency(), and SendCurrencies().
Definition at line 7283 of file Player.cpp.
References _currencyStorage.
Definition at line 2907 of file Player.h.
References UF::ChrCustomizationChoice::ChrCustomizationOptionID.
Referenced by CriteriaHandler::ModifierSatisfied().
Definition at line 30231 of file Player.cpp.
References Float, PlayerDataElementAccountEntry::GetType(), Int64, m_activePlayerData, SI64LIT, sPlayerDataElementAccountStore, and PlayerDataElementAccountEntry::StorageIndex.
Referenced by CriteriaHandler::ModifierSatisfied().
Definition at line 30285 of file Player.cpp.
References m_activePlayerData, SI64LIT, sPlayerDataElementCharacterStore, PlayerDataElementCharacterEntry::StorageIndex, and PlayerDataElementCharacterEntry::Type.
Referenced by CriteriaHandler::ModifierSatisfied().
|
inline |
Definition at line 2468 of file Player.h.
Referenced by Spell::EffectStuck(), and WorldSession::LogoutPlayer().
|
overridevirtual |
Reimplemented from Object.
Definition at line 31388 of file Player.cpp.
References Unit::GetDebugInfo().
Referenced by FlightPathMovementGenerator::DoEventIfAny(), FlightPathMovementGenerator::DoReset(), FlightPathMovementGenerator::DoUpdate(), HandleFall(), WorldSession::HandleMovementOpcode(), and StopCastingCharm().
|
inline |
Definition at line 2816 of file Player.h.
Referenced by WorldPackets::Query::PlayerGuidLookupData::Initialize().
| uint32 Player::GetDefaultSpecId | ( | ) | const |
Definition at line 30731 of file Player.cpp.
References ASSERT_NOTNULL, Unit::GetClass(), and sDB2Manager.
Referenced by ItemTemplate::IsUsableByLootSpecialization().
| Difficulty Player::GetDifficultyID | ( | MapEntry const * | mapEntry | ) | const |
Definition at line 30544 of file Player.cpp.
References DIFFICULTY_FLAG_LEGACY, MapDifficultyEntry::DifficultyID, DifficultyEntry::Flags, MapEntry::ID, MapEntry::IsRaid(), m_dungeonDifficulty, m_legacyRaidDifficulty, m_raidDifficulty, sDB2Manager, and sDifficultyStore.
Referenced by AddQuest(), CanExecutePendingSpellCastRequest(), MapManager::CreateMap(), ExecutePendingSpellCastRequest(), MapManager::FindInstanceIdForPlayer(), GetCastSpellInfo(), GetInstanceEntrance(), GetQuestObjectiveForItem(), HasQuestForCurrency(), HasQuestForGO(), HasQuestForItem(), Map::PlayerCannotEnter(), ProcessItemCast(), RemovePet(), RewardQuest(), Satisfy(), UpdateQuestObjectiveProgress(), and VehicleSpellInitialize().
| void Player::GetDodgeFromAgility | ( | float & | diminishing, |
| float & | nondiminishing | ||
| ) | const |
Definition at line 4998 of file Player.cpp.
Referenced by UpdateDodgePercentage().
|
static |
Definition at line 831 of file Player.cpp.
References DRUNKEN_DRUNK, DRUNKEN_SMASHED, DRUNKEN_SOBER, and DRUNKEN_TIPSY.
Referenced by Condition::Meets(), and SetDrunkValue().
|
inline |
Definition at line 2462 of file Player.h.
Referenced by Spell::EffectInebriate(), HandleSobering(), LoadFromDB(), CriteriaHandler::ModifierSatisfied(), SaveToDB(), SetDrunkValue(), Update(), and UpdateInvisibilityDrunkDetect().
|
inline |
Definition at line 2166 of file Player.h.
Referenced by Group::Create(), misc_commandscript::HandleAppearCommand(), WorldSession::HandlePartyInviteOpcode(), WorldSession::HandleSetDungeonDifficultyOpcode(), SaveToDB(), and SendDungeonDifficulty().
|
inline |
Definition at line 2410 of file Player.h.
References GetOtherTeam(), and PLAYER_FLAGS_EX_MERCENARY_MODE.
Referenced by Battleground::_GetPlayerForTeam(), Arena::AddPlayer(), DuelComplete(), AuraEffect::HandleBattlegroundPlayerPosition(), WorldSession::HandleChatCanLocalWhisperTargetRequest(), WorldSession::HandleChatMessage(), WorldSession::HandleInspectOpcode(), IsGroupVisibleFor(), Unit::Kill(), Trinity::MessageDistDeliverer< PacketSender >::MessageDistDeliverer(), ReportedAfkBy(), RewardHonor(), Trinity::MessageDistDeliverer< PacketSender >::SendPacket(), spell_gen_pvp_trinket::TriggerAnimation(), and UpdateQuestObjectiveProgress().
|
inline |
Definition at line 2411 of file Player.h.
References GetTeamIdForTeam().
|
inline |
| float Player::GetExpertiseDodgeOrParryReduction | ( | WeaponAttackType | attType | ) | const |
Definition at line 5200 of file Player.cpp.
References BASE_ATTACK, m_activePlayerData, and OFF_ATTACK.
Referenced by Unit::GetUnitDodgeChance(), and Unit::GetUnitParryChance().
Definition at line 6398 of file Player.cpp.
References sChrRacesStore, and sFactionTemplateStore.
Referenced by Group::AddLeaderInvite(), Group::ChangeLeader(), Group::Create(), Group::LoadGroupFromDB(), and Group::SendUpdateToPlayer().
|
inline |
Definition at line 2464 of file Player.h.
Referenced by UpdateInvisibilityDrunkDetect().
| uint32 Player::GetFreeInventorySlotCount | ( | EnumFlag< ItemSearchLocation > | location = ItemSearchLocation::Inventory | ) | const |
Definition at line 9391 of file Player.cpp.
References Bank, BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, Equipment, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, GetBagByPos(), GetBagSize(), GetInventorySlotCount(), GetItemByPos(), GetItemInBag(), EnumFlag< T >::HasFlag(), Inventory, INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_START, PROFESSION_SLOT_END, PROFESSION_SLOT_START, REAGENT_BAG_SLOT_END, REAGENT_BAG_SLOT_START, and ReagentBank.
Referenced by Spell::CheckItems(), and CriteriaHandler::ModifierSatisfied().
|
inline |
Definition at line 2052 of file Player.h.
Referenced by AddSpell(), Trainer::Trainer::CanTeachSpell(), and RemoveSpell().
| GameObject * Player::GetGameObjectIfCanInteractWith | ( | ObjectGuid const & | guid | ) | const |
Definition at line 1871 of file Player.cpp.
References ObjectAccessor::GetGameObject(), GameObject::GetGOInfo(), GameObjectTemplate::IconName, Unit::IsInFlight(), BaseEntity::IsInWorld(), and GameObject::IsWithinDistInMap().
Referenced by CanInteractWithQuestGiver(), WorldSession::CanOpenMailBox(), GetGameObjectIfCanInteractWith(), WorldSession::HandleArtifactAddPower(), WorldSession::HandleArtifactSetAppearance(), WorldSession::HandleGossipSelectOptionOpcode(), and WorldSession::HandleGuildBankActivate().
| GameObject * Player::GetGameObjectIfCanInteractWith | ( | ObjectGuid const & | guid, |
| GameobjectTypes | type | ||
| ) | const |
Definition at line 1897 of file Player.cpp.
References GetGameObjectIfCanInteractWith(), and GameObject::GetGoType().
|
inline |
Definition at line 2868 of file Player.h.
Referenced by Spell::EffectActivateGarrisonBuilding(), Spell::EffectAddGarrisonFollower(), Spell::EffectLearnGarrisonBuilding(), GarrisonMap::GetGarrison(), WorldSession::HandleGarrisonCancelConstruction(), WorldSession::HandleGarrisonGetMapData(), WorldSession::HandleGarrisonPurchaseBuilding(), WorldSession::HandleGarrisonRequestBlueprintAndSpecializationData(), WorldSession::HandleGetGarrisonInfo(), WorldSession::HandleMoveWorldportAck(), CriteriaHandler::ModifierSatisfied(), at_garrison_enter::OnUnitEnter(), and at_garrison_exit::OnUnitExit().
Definition at line 2030 of file Player.h.
Referenced by _LoadGlyphAuras(), _LoadGlyphs(), _SaveGlyphs(), ActivateTalentGroup(), Spell::CheckCast(), Spell::EffectApplyGlyph(), and SendInitialPacketsBeforeAddToMap().
| uint32 Player::GetGossipMenuForSource | ( | WorldObject const * | source | ) | const |
Definition at line 14248 of file Player.cpp.
References Creature::GetCreatureTemplate(), GameObject::GetGOInfo(), Creature::GetGossipMenuId(), GameObjectTemplate::GetGossipMenuId(), BaseEntity::GetTypeId(), CreatureTemplate::GossipMenuIds, sObjectMgr, Object::ToCreature(), Object::ToGameObject(), TYPEID_GAMEOBJECT, and TYPEID_UNIT.
Referenced by CanSeeGossipOn(), GetGossipTextId(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), and npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipHello().
| uint32 Player::GetGossipTextId | ( | uint32 | menuId, |
| WorldObject * | source | ||
| ) |
Definition at line 14226 of file Player.cpp.
References DEFAULT_GOSSIP_MESSAGE, and sObjectMgr.
Referenced by GetGossipTextId(), boss_gloomrel::boss_gloomrelAI::OnGossipHello(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipHello(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::OnGossipHello(), npc_silverpine_bat_handler_maggotbreath::OnGossipHello(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::OnGossipHello(), go_wind_stone::go_wind_stoneAI::OnGossipHello(), npc_announcer_toc5::npc_announcer_toc5AI::OnGossipHello(), npc_wg_demolisher_engineer::OnGossipHello(), npc_wg_spirit_guide::OnGossipHello(), npc_zm_field_scout::OnGossipHello(), npc_colonel_jules::npc_colonel_julesAI::OnGossipHello(), npc_engineering_tele_trinket::npc_engineering_tele_trinketAI::OnGossipHello(), SmartScript::ProcessAction(), and SendPreparedGossip().
| uint32 Player::GetGossipTextId | ( | WorldObject * | source | ) |
Definition at line 14218 of file Player.cpp.
References DEFAULT_GOSSIP_MESSAGE, GetGossipMenuForSource(), and GetGossipTextId().
|
inline |
Definition at line 2783 of file Player.h.
Referenced by _LoadGroup(), CanRollNeedForItem(), CanUninviteFromGroup(), CheckInstanceValidity(), CreateCorpse(), DoRandomRoll(), GetGroup(), GetInstanceEntrance(), GetNextRandomRaidMember(), GetQuestObjectiveForItem(), GetsRecruitAFriendBonus(), GroupEventHappens(), HasQuestForCurrency(), HasQuestForGO(), HasQuestForItem(), IsInGroup(), IsInSameGroupWith(), IsInSameRaidWith(), RemovePet(), RewardPlayerAndGroupAtEvent(), Satisfy(), SendNewItem(), SendQuestUpdateAddItem(), SendSummonRequestFrom(), SendUpdateToOutOfRangeGroupMembers(), SetBattlegroundOrBattlefieldRaid(), SummonIfPossible(), UpdatePosition(), UpdateQuestObjectiveProgress(), and UpdateZone().
Definition at line 2781 of file Player.h.
References GetGroup().
Referenced by KillRewarder::_InitGroupData(), KillRewarder::_RewardKillCredit(), KillRewarder::_RewardPlayer(), KillRewarder::_RewardXP(), Group::AddInvite(), Group::AddMember(), Battlefield::AddOrSetPlayerToCorrectBfGroup(), Group::BroadcastAddonMessagePacket(), Group::BroadcastPacket(), QuestObjectiveCriteriaMgr::CanUpdateCriteriaTree(), npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::CheckEventFail(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::CheckEventFail(), spell_dru_t10_restoration_4p_bonus_dummy::CheckProc(), GuildAchievementMgr::CompletedAchievement(), MapManager::CreateMap(), Spell::EffectChangeRaidMarker(), Spell::EffectSummonType(), SmartAI::EndPath(), Loot::FillLoot(), MapManager::FindInstanceIdForPlayer(), Creature::ForcePartyMembersIntoCombat(), GetGroup(), spell_pri_ultimate_penitence_channel::GetHealingRules(), Unit::GetNextRandomRaidMemberOrPet(), Unit::GetPartyMembers(), ConditionMgr::GetPlayerConditionLfgValue(), ChatHandler::GetPlayerGroupAndGUIDByName(), SmartScript::GetTargets(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleChangeSubGroupOpcode(), WorldSession::HandleChatAddonMessage(), WorldSession::HandleChatMessage(), WorldSession::HandleClearRaidMarker(), WorldSession::HandleConvertRaidOpcode(), WorldSession::HandleDoReadyCheckOpcode(), group_commandscript::HandleGroupJoinCommand(), group_commandscript::HandleGroupLevelCommand(), group_commandscript::HandleGroupListCommand(), group_commandscript::HandleGroupRepairCommand(), group_commandscript::HandleGroupReviveCommand(), group_commandscript::HandleGroupSummonCommand(), Guild::HandleGuildPartyRequest(), WorldSession::HandleInitiateRolePoll(), OutdoorPvP::HandleKill(), WorldSession::HandleLeaveGroupOpcode(), WorldSession::HandleLfgLeaveOpcode(), WorldSession::HandleLfgSetRolesOpcode(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleMinimapPingOpcode(), WorldSession::HandlePartyInviteOpcode(), WorldSession::HandlePartyUninviteOpcode(), Battlefield::HandlePlayerLeaveZone(), WorldSession::HandlePlayerLogin(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleQueryCountdownTimer(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleReadyCheckResponseOpcode(), WorldSession::HandleRequestPartyJoinUpdates(), WorldSession::HandleResetInstancesOpcode(), WorldSession::HandleSetAssistantLeaderOpcode(), WorldSession::HandleSetDungeonDifficultyOpcode(), WorldSession::HandleSetEveryoneIsAssistant(), WorldSession::HandleSetPartyAssignment(), WorldSession::HandleSetPartyLeaderOpcode(), WorldSession::HandleSetRaidDifficultyOpcode(), WorldSession::HandleSetRestrictPingsToAssistants(), WorldSession::HandleSetRoleOpcode(), misc_commandscript::HandleSummonCommand(), WorldSession::HandleSwapSubGroupsOpcode(), tele_commandscript::HandleTeleGroupCommand(), WorldSession::HandleUpdateRaidTargetOpcode(), SmartAI::IsEscortInvokerInRange(), IsInSameGroupWith(), IsInSameRaidWith(), Channel::JoinChannel(), lfg::LFGMgr::JoinLfg(), WorldSession::LogoutPlayer(), lfg::LFGMgr::MakeNewGroup(), MeetsGroupStatusCondition(), CriteriaHandler::ModifierSatisfied(), go_gauntlet_gate::go_gauntlet_gateAI::OnGossipHello(), lfg::LFGPlayerScript::OnLogin(), lfg::LFGPlayerScript::OnLogout(), lfg::LFGPlayerScript::OnMapChanged(), Map::PlayerCannotEnter(), RemovedInsignia(), Group::SameSubGroup(), WorldSession::SendLfgPartyLockInfo(), Group::SendUpdateToPlayer(), Creature::SetTappedBy(), lfg::LFGMgr::TeleportPlayer(), and GameObject::Use().
Definition at line 24873 of file Player.cpp.
References GetGroup(), Group::GetGroupCategory(), and GetOriginalGroup().
|
inline |
Definition at line 2779 of file Player.h.
Referenced by Group::AddInvite(), WorldSession::HandleLeaveGroupOpcode(), WorldSession::HandlePartyInviteOpcode(), WorldSession::HandlePartyInviteResponseOpcode(), and UninviteFromGroup().
|
inline |
| Guild * Player::GetGuild | ( | ) |
Definition at line 30428 of file Player.cpp.
References GetGuildId(), and sGuildMgr.
Referenced by BuyItemFromVendorSlot(), Spell::CheckCast(), PlayerAchievementMgr::CompletedAchievement(), GuildAchievementMgr::CompletedAchievement(), CreateCorpse(), Spell::DoCreateItem(), DurabilityRepairAll(), Spell::EffectUnlockGuildVaultTab(), GiveLevel(), Battlenet::Services::ClubService::HandleAdvanceStreamViewTime(), WorldSession::HandleAutoGuildBankItem(), WorldSession::HandleAutoStoreGuildBankItem(), WorldSession::HandleChatMessageAFKOpcode(), WorldSession::HandleChatMessageDNDOpcode(), Battlenet::Services::ClubService::HandleCreateMessage(), Battlenet::Services::ClubService::HandleGetMembers(), Battlenet::Services::ClubService::HandleGetStreams(), WorldSession::HandleGuildBankActivate(), WorldSession::HandleGuildChallengeUpdateRequest(), WorldSession::HandleGuildSetRankPermissions(), WorldSession::HandleGuildShiftRank(), Guild::HandleInviteMember(), WorldSession::HandleMergeGuildBankItemWithGuildBankItem(), WorldSession::HandleMergeGuildBankItemWithItem(), WorldSession::HandleMergeItemWithGuildBankItem(), WorldSession::HandleMoveGuildBankItem(), Battlenet::Services::ClubService::HandleSetStreamFocus(), WorldSession::HandleSplitGuildBankItem(), WorldSession::HandleSplitGuildBankItemToInventory(), WorldSession::HandleSplitItemToGuildBank(), WorldSession::HandleStoreGuildBankItem(), Battlenet::Services::ClubService::HandleSubscribe(), Battlenet::Services::ClubMembershipService::HandleSubscribe(), Battlenet::Services::ClubService::HandleSubscribeStream(), WorldSession::HandleSwapGuildBankItemWithGuildBankItem(), WorldSession::HandleSwapItemWithGuildBankItem(), OnGossipSelect(), StoreLootItem(), and UpdateZone().
| Guild const * Player::GetGuild | ( | ) | const |
Definition at line 30434 of file Player.cpp.
References GetGuildId(), and sGuildMgr.
|
inline |
Definition at line 2147 of file Player.h.
Referenced by Guild::AddMember(), BuyCurrencyFromVendorSlot(), BuyItemFromVendorSlot(), CanJoinConstantChannelInZone(), GuildAchievementMgr::CompletedAchievement(), GetGuild(), GetGuild(), GetGuildName(), WorldSession::HandleCalendarAddEvent(), WorldSession::HandleCalendarCommunityInvite(), WorldSession::HandleCalendarCopyEvent(), WorldSession::HandleCalendarEventSignup(), WorldSession::HandleCalendarGetCalendar(), WorldSession::HandleCalendarInvite(), WorldSession::HandleChatAddonMessage(), WorldSession::HandleChatMessage(), guild_commandscript::HandleGuildCreateCommand(), WorldSession::HandleGuildSetFocusedAchievement(), guild_commandscript::HandleGuildUninviteCommand(), WorldSession::HandleInspectOpcode(), Guild::HandleInviteMember(), WorldSession::HandleOfferPetition(), WorldSession::HandlePetitionBuy(), WorldSession::HandlePetitionShowSignatures(), WorldSession::HandlePlayerLogin(), WorldSession::HandleRequestGuildRewardsList(), WorldSession::HandleSendMail(), WorldSession::HandleSignPetition(), WorldSession::HandleTurnInPetition(), WorldSession::LogoutPlayer(), CriteriaHandler::ModifierSatisfied(), PlayerAchievementMgr::SendAchievementEarned(), CalendarMgr::SendCalendarEvent(), and UpdateCriteria().
|
inline |
Definition at line 2150 of file Player.h.
Referenced by Guild::HandleInviteMember(), WorldSession::HandleOfferPetition(), and WorldSession::HandleSignPetition().
| std::string Player::GetGuildName | ( | ) | const |
Definition at line 29493 of file Player.cpp.
References GetGuildId(), and sGuildMgr.
| float Player::GetHealthBonusFromStamina | ( | ) | const |
Definition at line 285 of file StatSystem.cpp.
References Unit::GetLevel(), Unit::GetStat(), sHpPerStaGameTable, and STAT_STAMINA.
Referenced by UpdateMaxHealth().
|
inline |
Definition at line 2450 of file Player.h.
Referenced by AddHonorXP(), CriteriaHandler::ModifierSatisfied(), SaveToDB(), and SetHonorLevel().
| WorldSafeLocsEntry const * Player::GetInstanceEntrance | ( | uint32 | targetMapId | ) |
Definition at line 20173 of file Player.cpp.
References GetDifficultyID(), Group::GetDifficultyID(), GetGroup(), BaseEntity::GetGUID(), Group::GetRecentInstanceOwner(), MapEntry::Instanceable(), sInstanceLockMgr, sMapMgr, sMapStore, sObjectMgr, and Map::ToInstanceMap().
Referenced by WorldSession::HandleAreaTriggerOpcode().
|
inline |
Definition at line 1483 of file Player.h.
Referenced by CanStoreItem(), CanStoreItem_InSpecificSlot(), CanStoreItems(), CastAllObtainSpells(), Create(), DestroyConjuredItems(), DestroyItemCount(), DestroyZoneLimitedItem(), DurabilityLossAll(), DurabilityPointsLossAll(), DurabilityRepairAll(), GetFreeInventorySlotCount(), HasItemTotemCategory(), IsValidPos(), RemoveArenaEnchantments(), SaveToDB(), and SetInventorySlotCount().
| Item * Player::GetItemByEntry | ( | uint32 | entry, |
| ItemSearchLocation | where = ItemSearchLocation::Default |
||
| ) | const |
Definition at line 12393 of file Player.cpp.
References Continue, ForEachItem(), and Object::GetEntry().
Referenced by ActivateTalentGroup(), ApplyAzeritePowers(), CollectionMgr::CheckHeirloomUpgrades(), Spell::CheckItems(), Spell::EffectDestroyItem(), Spell::EffectLearnAzeriteEssencePower(), Spell::EffectRechargeItem(), WorldSession::HandleAzeriteEmpoweredItemSelectPower(), WorldSession::HandleAzeriteEssenceActivateEssence(), WorldSession::HandleAzeriteEssenceUnlockMilestone(), WorldSession::HandleInspectOpcode(), CriteriaHandler::ModifierSatisfied(), ModifyCurrency(), and GameObject::Use().
| Item * Player::GetItemByGuid | ( | ObjectGuid | guid | ) | const |
Definition at line 9522 of file Player.cpp.
References Continue, Everywhere, ForEachItem(), and BaseEntity::GetGUID().
Referenced by Aura::_ApplyForTarget(), _LoadInventory(), _SaveInventory(), Spell::CheckCast(), WorldSession::DoLootRelease(), Spell::EffectGiveArtifactPower(), Spell::EffectGiveArtifactPowerNoBonus(), TradeData::GetItem(), TradeData::GetSpellCastItem(), GiveLevel(), WorldSession::HandleAddToy(), WorldSession::HandleArtifactAddPower(), WorldSession::HandleArtifactSetAppearance(), WorldSession::HandleAuctionSellCommodity(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoEquipItemSlotOpcode(), WorldSession::HandleAzeriteEmpoweredItemViewed(), WorldSession::HandleBuyItemOpcode(), WorldSession::HandleConfirmArtifactRespec(), debug_commandscript::HandleDebugItemExpireCommand(), WorldSession::HandleGetItemPurchaseData(), WorldSession::HandleItemRefund(), WorldSession::HandleItemTextQuery(), WorldSession::HandlePetitionRenameGuild(), WorldSession::HandleRemoveNewItem(), WorldSession::HandleRepairItemOpcode(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSendMail(), WorldSession::HandleSignPetition(), WorldSession::HandleSocketGems(), WorldSession::HandleTransmogOutfitUpdateSlots(), WorldSession::HandleTransmogrifyItems(), WorldSession::HandleTurnInPetition(), WorldSession::HandleUseCritterItem(), WorldSession::HandleUseEquipmentSet(), CriteriaHandler::ModifierSatisfied(), SwapItem(), SpellCastTargets::Update(), Spell::UpdatePointers(), UpdateSoulboundTradeItems(), and GameObject::Use().
Definition at line 9538 of file Player.cpp.
References GetItemByPos().
Referenced by _SaveCharacterSelectOutfit(), _SaveInventory(), _StoreItem(), ActivateTalentGroup(), AutoUnequipOffhandIfNeed(), CanEquipChildItem(), CanEquipItem(), CanStoreItem_InBag(), CanStoreItem_InInventorySlots(), CanStoreItem_InSpecificSlot(), CanStoreItems(), CanUnequipItem(), CastAllObtainSpells(), CastItemCombatSpell(), CorrectMetaGemEnchants(), Create(), DestroyConjuredItems(), DestroyItem(), DestroyItemCount(), DestroyZoneLimitedItem(), PlayerAI::DoRangedAttackIfReady(), DurabilityLossAll(), DurabilityPointLossForEquipSlot(), DurabilityPointsLossAll(), DurabilityRepair(), DurabilityRepairAll(), Spell::EffectDurabilityDamage(), Spell::EffectDurabilityDamagePCT(), Spell::EffectEnchantHeldItem(), Spell::EffectScriptEffect(), EnchantmentFitsRequirements(), EquipChildItem(), EquipItem(), EquipTransmogOutfit(), FindEquipSlot(), GetBagByPos(), GetFreeInventorySlotCount(), GetItemByPos(), GetShield(), GetUseableItemByPos(), GetWeaponForAttack(), misc_commandscript::HandleAddItemCommandHelper(), AuraEffect::HandleAuraModDisarm(), AuraEffect::HandleAuraModShapeshift(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleAzeriteEmpoweredItemSelectPower(), WorldSession::HandleCancelTempEnchantmentOpcode(), debug_commandscript::HandleDebugGetItemStateCommand(), WorldSession::HandleDestroyItemOpcode(), spell_gen_fishing::HandleDummy(), spell_sha_flametongue_weapon::HandleEffectHitTarget(), WorldSession::HandleEquipmentSetSave(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandleOpenWrappedItemCallback(), WorldSession::HandleReadItem(), WorldSession::HandleSetTradeItemOpcode(), WorldSession::HandleTransmogrifyItems(), WorldSession::HandleUseEquipmentSet(), WorldSession::HandleWrapItem(), WorldPackets::Inspect::PlayerModelDisplayInfo::Initialize(), ConditionMgr::IsPlayerMeetingCondition(), IsTwoHandUsed(), IsUsingTwoHandedWeaponInOneHand(), MoveItemFromInventory(), boss_shade_of_aran::boss_aranAI::PlayerHasWeaponEquipped(), RemoveArenaEnchantments(), RemoveItem(), SetInventorySlotCount(), SetSkill(), SplitItem(), SwapItem(), ToggleMetaGemsActive(), and UpdateAverageItemLevelEquipped().
Definition at line 9545 of file Player.cpp.
References BUYBACK_SLOT_END, GetBagByPos(), INVENTORY_SLOT_BAG_0, m_items, and PLAYER_SLOT_END.
| uint32 Player::GetItemCount | ( | uint32 | item, |
| bool | inBankAlso = false, |
||
| Item * | skipItem = nullptr |
||
| ) | const |
Definition at line 9468 of file Player.cpp.
References Bank, Continue, Equipment, ForEachItem(), Item::GetCount(), Object::GetEntry(), Item::GetGemCountWithID(), ItemTemplate::GetGemProperties(), Item::GetTemplate(), Inventory, and ReagentBank.
Referenced by AdjustQuestObjectiveProgress(), CanRewardQuest(), CanTakeMoreSimilarItems(), quest_commandscript::CompleteObjective(), HasQuestForItem(), ItemRemovedQuestCheck(), CriteriaHandler::ModifierSatisfied(), and SendNewItem().
| uint32 Player::GetItemCountWithLimitCategory | ( | uint32 | limitCategory, |
| Item * | skipItem = nullptr |
||
| ) | const |
Definition at line 9494 of file Player.cpp.
References Continue, Everywhere, ForEachItem(), Item::GetCount(), and Item::GetItemLimitCategory().
Referenced by CanTakeMoreSimilarItems().
Definition at line 13006 of file Player.cpp.
References BUYBACK_SLOT_END, BUYBACK_SLOT_START, BaseEntity::GetGUID(), WorldObject::GetName(), m_items, TC_LOG_DEBUG, and Position::ToString().
Referenced by WorldSession::HandleBuybackItem().
| uint8 Player::GetItemLimitCategoryQuantity | ( | ItemLimitCategoryEntry const * | limitEntry | ) | const |
Definition at line 30787 of file Player.cpp.
References ItemLimitCategoryEntry::ID, ConditionMgr::IsPlayerMeetingCondition(), ItemLimitCategoryEntry::Quantity, and sDB2Manager.
Referenced by CanEquipUniqueItem(), CanTakeMoreSimilarItems(), and WorldSession::HandleSocketGems().
Definition at line 12409 of file Player.cpp.
References Bank, Continue, Equipment, ForEachItem(), Object::GetEntry(), Inventory, and ReagentBank.
Referenced by CollectionMgr::UpgradeHeirloom().
|
inline |
Definition at line 1469 of file Player.h.
Referenced by debug_commandscript::HandleDebugGetItemStateCommand().
|
inline |
Definition at line 2348 of file Player.h.
Referenced by ChannelMgr::GetChannelForPlayerByGuid(), and ChannelMgr::GetChannelForPlayerByNamePart().
|
inline |
Definition at line 2771 of file Player.h.
Referenced by spell_gen_pet_summoned::HandleScript().
|
inline |
Definition at line 2168 of file Player.h.
Referenced by Group::Create(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleSetRaidDifficultyOpcode(), SaveToDB(), and SendRaidDifficulty().
|
inline |
Definition at line 1332 of file Player.h.
References PLAYED_TIME_LEVEL.
Referenced by WorldSession::HandlePlayedTime().
| Loot * Player::GetLootByWorldObjectGUID | ( | ObjectGuid const & | lootWorldObjectGuid | ) | const |
|
inline |
Definition at line 2246 of file Player.h.
Referenced by CanBankItem(), CanEquipItem(), CanSellItemToVendor(), CanStoreItem(), CanStoreItems(), CanUnequipItem(), WorldSession::DoLootRelease(), WorldSession::HandleItemRefund(), WorldSession::LogoutPlayer(), and SendLoot().
| LootRoll * Player::GetLootRoll | ( | ObjectGuid const & | lootObjectGuid, |
| uint8 | lootListId | ||
| ) |
Definition at line 8997 of file Player.cpp.
References m_lootRolls.
Referenced by WorldSession::HandleLootRoll().
|
inline |
Definition at line 1983 of file Player.h.
Referenced by ItemTemplate::IsUsableByLootSpecialization(), and SaveToDB().
Definition at line 3475 of file Player.cpp.
References m_mail.
Referenced by WorldSession::HandleMailCreateTextItem(), WorldSession::HandleMailDelete(), WorldSession::HandleMailMarkAsRead(), WorldSession::HandleMailReturnToSender(), WorldSession::HandleMailTakeItem(), and WorldSession::HandleMailTakeMoney().
|
inline |
Definition at line 1919 of file Player.h.
Referenced by WorldSession::HandleGetMailList(), and WorldSession::HandleQueryNextMailTime().
|
inline |
Definition at line 2808 of file Player.h.
Referenced by InstanceMap::CannotEnter(), BattlegroundMap::CannotEnter(), ResetMap(), and Map::UpdateIteratorBack().
Definition at line 23960 of file Player.cpp.
References GetArenaPersonalRating(), and MAX_ARENA_SLOT.
Referenced by BuyCurrencyFromVendorSlot(), BuyItemFromVendorSlot(), and CriteriaHandler::ModifierSatisfied().
Definition at line 5935 of file Player.cpp.
References GetSkillMaxRankByPos(), GetSkillPermBonusByPos(), GetSkillRankByPos(), GetSkillTempBonusByPos(), mSkillStatus, and SKILL_DELETED.
Referenced by UpdateFishingSkill().
|
overridevirtual |
Implements Unit.
Definition at line 8178 of file Player.cpp.
References GetWeaponForAttack(), and SPELL_SCHOOL_MASK_NORMAL.
|
protected |
Definition at line 676 of file Player.cpp.
References Unit::GetAuraEffectsByType(), Unit::GetTotalAuraMultiplier(), IN_MILLISECONDS, MINUTE, MIRROR_TIMER_BREATH, MIRROR_TIMER_FATIGUE, MIRROR_TIMER_FEIGN_DEATH, SPELL_AURA_FEIGN_DEATH, and SPELL_AURA_MOD_WATER_BREATHING.
Referenced by UpdateLiquidMirrorTimerValuesOnAura(), and UpdateMirrorTimers().
| Item * Player::GetMItem | ( | ObjectGuid::LowType | id | ) |
Definition at line 22395 of file Player.cpp.
References mMitems.
Referenced by WorldSession::HandleMailReturnToSender(), WorldSession::HandleMailTakeItem(), and WorldPackets::Mail::MailListEntry::MailListEntry().
|
inline |
Definition at line 1890 of file Player.h.
Referenced by ActivateTaxiPathTo(), WorldSession::HandleAcceptTradeOpcode(), modify_commandscript::HandleModifyMoneyCommand(), misc_commandscript::HandlePInfoCommand(), CriteriaHandler::ModifierSatisfied(), ModifyMoney(), MoneyChanged(), SaveInventoryAndGoldToDB(), SaveToDB(), CriteriaHandler::UpdateCriteria(), and UpdateQuestObjectiveProgress().
|
inline |
Definition at line 2096 of file Player.h.
Referenced by WorldSession::HandleCompleteMovie().
|
inlineoverridevirtual |
Reimplemented from Unit.
Definition at line 1334 of file Player.h.
Referenced by PlayerAchievementMgr::CompletedAchievement(), CreateCorpse(), WorldSession::HandleAlterAppearance(), character_commandscript::HandleCharacterTitlesCommand(), misc_commandscript::HandlePInfoCommand(), titles_commandscript::HandleTitlesAddCommand(), titles_commandscript::HandleTitlesCurrentCommand(), titles_commandscript::HandleTitlesRemoveCommand(), InitDisplayIds(), WorldPackets::Query::PlayerGuidLookupData::Initialize(), WorldPackets::Inspect::PlayerModelDisplayInfo::Initialize(), SpellArea::IsFitToRequirements(), ConditionMgr::IsPlayerMeetingCondition(), CriteriaHandler::ModifierSatisfied(), go_amberpine_outhouse::go_amberpine_outhouseAI::OnGossipSelect(), SaveToDB(), PlayerAchievementMgr::SendAchievementEarned(), SendDisplayToast(), and Guild::Member::SetStats().
|
inline |
Definition at line 2384 of file Player.h.
Referenced by WorldSession::HandleSuspendTokenResponse().
Definition at line 14439 of file Player.cpp.
References Quest::GetNextQuestInChain(), Quest::HasFlag(), Object::hasQuest(), WorldObject::IsInMap(), QUEST_FLAGS_AUTO_COMPLETE, sObjectMgr, and Object::ToWorldObject().
Referenced by RewardQuest(), and SendQuestReward().
| Player * Player::GetNextRandomRaidMember | ( | float | radius | ) |
Definition at line 26596 of file Player.cpp.
References GetGroup(), Group::GetMembers(), Group::GetMembersCount(), Unit::HasInvisibilityAura(), WorldObject::IsHostileTo(), WorldObject::IsWithinDistInMap(), and urand().
| uint32 Player::GetNextResetTalentsCost | ( | ) | const |
Definition at line 3380 of file Player.cpp.
References CONFIG_NO_RESET_TALENT_COST, GameTime::GetGameTime(), GetTalentResetCost(), GetTalentResetTime(), GOLD, MONTH, and sWorld.
Referenced by Spell::EffectUntrainTalents(), WorldSession::HandleConfirmRespecWipeOpcode(), and OnGossipSelect().
| Creature * Player::GetNPCIfCanInteractWith | ( | ObjectGuid const & | guid, |
| NPCFlags | npcFlags, | ||
| NPCFlags2 | npcFlags2 | ||
| ) | const |
Definition at line 1814 of file Player.cpp.
References CREATURE_TYPE_FLAG_INTERACT_WHILE_DEAD, CREATURE_TYPE_FLAG_VISIBLE_TO_GHOSTS, Unit::GetCharmerGUID(), Unit::GetCombatReach(), Creature::GetCreatureDifficulty(), ObjectAccessor::GetCreatureOrPetOrVehicle(), WorldObject::GetReactionTo(), Unit::HasNpcFlag(), Unit::HasNpcFlag2(), Unit::IsAlive(), ObjectGuid::IsEmpty(), Unit::IsInCombat(), Unit::IsInFlight(), Unit::IsInteractionAllowedInCombat(), Unit::IsInteractionAllowedWhileHostile(), BaseEntity::IsInWorld(), WorldObject::IsWithinDistInMap(), REP_UNFRIENDLY, and CreatureDifficulty::TypeFlags.
Referenced by BuyCurrencyFromVendorSlot(), BuyItemFromVendorSlot(), CanInteractWithQuestGiver(), WorldSession::CanOpenMailBox(), WorldSession::CanUseBank(), WorldSession::HandleActivateTaxiOpcode(), WorldSession::HandleAuctionBrowseQuery(), WorldSession::HandleAuctionCancelCommoditiesPurchase(), WorldSession::HandleAuctionConfirmCommoditiesPurchase(), WorldSession::HandleAuctionGetCommodityQuote(), WorldSession::HandleAuctionHelloOpcode(), WorldSession::HandleAuctionListBiddedItems(), WorldSession::HandleAuctionListBucketsByBucketKeys(), WorldSession::HandleAuctionListItemsByBucketKey(), WorldSession::HandleAuctionListItemsByItemID(), WorldSession::HandleAuctionListOwnedItems(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionReplicateItems(), WorldSession::HandleAuctionSellCommodity(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleBankerActivateOpcode(), WorldSession::HandleBattlemasterHelloOpcode(), WorldSession::HandleBinderActivateOpcode(), WorldSession::HandleBlackMarketBidOnItem(), WorldSession::HandleBlackMarketOpen(), WorldSession::HandleBlackMarketRequestItems(), WorldSession::HandleBuybackItem(), WorldSession::HandleConfirmArtifactRespec(), WorldSession::HandleConfirmRespecWipeOpcode(), WorldSession::HandleGarrisonCancelConstruction(), WorldSession::HandleGarrisonPurchaseBuilding(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleGossipSelectOptionOpcode(), WorldSession::HandlePetitionBuy(), WorldSession::HandleQuestgiverHelloOpcode(), WorldSession::HandleRepairItemOpcode(), WorldSession::HandleSavePersonalEmblem(), WorldSession::HandleSellAllJunkItems(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSpiritHealerActivate(), WorldSession::HandleTabardVendorActivateOpcode(), WorldSession::HandleTaxiQueryAvailableNodesOpcode(), WorldSession::HandleTrainerBuySpellOpcode(), WorldSession::HandleTrainerListOpcode(), WorldSession::HandleTransmogOutfitNew(), WorldSession::HandleTransmogOutfitUpdateInfo(), WorldSession::HandleTransmogOutfitUpdateSituations(), WorldSession::HandleTransmogOutfitUpdateSlots(), WorldSession::HandleTransmogrifyItems(), WorldSession::SendListInventory(), and WorldSession::SendPetitionShowList().
|
inline |
Definition at line 2996 of file Player.h.
Referenced by Spell::EffectRespecAzeriteEmpoweredItem(), and SaveToDB().
|
inline |
Definition at line 2800 of file Player.h.
Referenced by Group::AddInvite(), Battleground::AddOrSetPlayerToCorrectBgGroup(), Group::Disband(), GetGroup(), WorldSession::HandleChatAddonMessage(), WorldSession::HandleChatMessage(), IsInGroup(), RemoveFromBattlegroundOrBattlefieldRaid(), and Group::RemoveMember().
|
inline |
|
inline |
Definition at line 2802 of file Player.h.
Referenced by RemoveFromBattlegroundOrBattlefieldRaid().
| PetStable & Player::GetOrInitPetStable | ( | ) |
Definition at line 29581 of file Player.cpp.
References m_petStable.
Referenced by Unit::InitTamedPet(), and SummonPet().
| OutdoorPvP * Player::GetOutdoorPvP | ( | ) | const |
Definition at line 26147 of file Player.cpp.
References WorldObject::GetMap(), WorldObject::GetZoneId(), and sOutdoorPvPMgr.
Referenced by npc_zm_field_scout::CanObtainBanner(), WorldSession::HandleAreaTriggerOpcode(), OutdoorPvPMgr::HandleCustomSpell(), OutdoorPvPMgr::HandleDropFlag(), OutdoorPvPMgr::HandleOpenGo(), OutdoorPvPMgr::HandlePlayerResurrects(), Unit::Kill(), and npc_zm_field_scout::OnGossipSelect().
|
inline |
Definition at line 1985 of file Player.h.
Referenced by UpdateHostileAreaState().
|
inline |
Definition at line 2806 of file Player.h.
Referenced by LootRoll::TryToStart().
| Pet * Player::GetPet | ( | ) | const |
Definition at line 22007 of file Player.cpp.
References ObjectAccessor::GetPet(), Unit::GetPetGUID(), ObjectGuid::IsEmpty(), BaseEntity::IsInWorld(), and ObjectGuid::IsPet().
Referenced by KillRewarder::_RewardXP(), ActivateTalentGroup(), Group::AddMember(), AddPetAura(), Spell::CheckCast(), spell_hun_t9_4p_bonus::CheckProc(), DisablePetControlsOnMount(), Spell::EffectActivateSpec(), Spell::EffectFeedPet(), Spell::EffectResurrectPet(), Spell::EffectSummonPet(), EnablePetControlsOnDismount(), GetSelectedPlayerPetOrOwn(), GiveLevel(), spell_hun_masters_call::HandleDummy(), spell_warl_random_sayaad::HandleDummy(), AuraEffect::HandleModPossessPet(), AuraEffect::HandleOverridePetSpecs(), WorldSession::HandlePetAbandonByNumber(), spell_hun_t9_4p_bonus::HandleProc(), WorldSession::HandleRequestPetInfo(), reset_commandscript::HandleResetLevelCommand(), WorldPackets::Party::PartyMemberFullState::Initialize(), InitStatsForLevel(), IsActionButtonDataValid(), Pet::LoadPetFromDB(), spell_warl_sayaad_precast_disorientation::OnPrecast(), PetSpellInitialize(), RemoveArenaSpellCooldowns(), RemovePet(), RemovePetAura(), DuelResetScript::ResetSpellCooldowns(), SaveToDB(), Spell::SendResurrectRequest(), SendUpdateToOutOfRangeGroupMembers(), SetGameMaster(), SetPetSlot(), TeleportTo(), UnsummonPetTemporaryIfAny(), instance_stratholme::instance_stratholme_InstanceMapScript::Update(), Update(), UpdateArmor(), UpdateAttackPowerAndDamage(), UpdateResistances(), UpdateStats(), and UpdateZone().
|
inline |
Definition at line 1339 of file Player.h.
Referenced by spell_hun_tame_beast::CheckCast(), Spell::CheckCast(), Spell::EffectResurrectPet(), WorldSession::HandlePetRename(), Pet::LoadPetFromDB(), Pet::SavePetToDB(), SaveToDB(), and SetPetSlot().
|
inline |
Definition at line 1820 of file Player.h.
Referenced by WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestConfirmAccept(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestPushResult(), and SendInitialPacketsAfterAddToMap().
Implements Unit.
Definition at line 328 of file StatSystem.cpp.
References Unit::GetClass(), and DB2Manager::GetPowerIndexByClass().
Referenced by BaseEntity::BuildMovementUpdate(), GetPowerRegen(), GetRuneBaseCooldown(), modify_commandscript::HandleModifyPowerCommand(), InitRunes(), InterruptPowerRegen(), LoadFromDB(), Regenerate(), UpdateMaxPower(), and UpdatePowerRegen().
| float Player::GetPowerRegen | ( | Powers | power | ) | const |
Definition at line 913 of file StatSystem.cpp.
References PowerTypeEntry::GetFlags(), GetPowerIndex(), Unit::HasAuraType(), Unit::IsInCombat(), m_regenInterruptTimestamp, Unit::m_unitData, MAX_POWERS_PER_CLASS, GameTime::Now(), PowerTypeEntry::RegenCombat, PowerTypeEntry::RegenInterruptTimeMS, PowerTypeEntry::RegenPeace, sDB2Manager, SPELL_AURA_INTERRUPT_REGEN, and UseRegenInterrupt.
Referenced by Regenerate().
|
overridevirtual |
Implements Unit.
Definition at line 333 of file StatSystem.cpp.
References Unit::GetClass(), and DB2Manager::GetPowerTypesByClass().
Referenced by Create(), GiveLevel(), cheat_commandscript::HandlePowerCheatCommand(), InitStatsForLevel(), LoadFromDB(), RegenerateAll(), ResurrectPlayer(), and UpdateAllStats().
|
inline |
Definition at line 1993 of file Player.h.
Referenced by _LoadTraits(), AddItemsSetItem(), ApplyAzeritePower(), ApplyItemEquipSpell(), CanUseItem(), Spell::CheckCast(), spell_warr_frothing_berserker::CheckSpecialization(), Spell::EffectCreateTraitTreeConfig(), GetPrimarySpecializationEntry(), PlayerAI::GetSpec(), WorldSession::HandleAzeriteEssenceActivateEssence(), WorldSession::HandleClassTalentsRequestNewConfig(), spell_sha_flametongue_weapon::HandleEffectHitTarget(), WorldSession::HandleInspectOpcode(), learn_commandscript::HandleLearnAllTalentsCommand(), spell_warr_victorious_state::HandleOnProc(), spell_pri_power_leech_passive::HandleOnProc(), WorldPackets::Inspect::PlayerModelDisplayInfo::Initialize(), WorldPackets::Party::PartyMemberFullState::Initialize(), ConditionMgr::IsPlayerMeetingCondition(), ItemTemplate::IsUsableByLootSpecialization(), LearnPvpTalent(), LearnSpecializationSpells(), LearnTalent(), spell_pri_entropic_rift::Load(), AzeriteItem::LoadAzeriteItemData(), CriteriaHandler::ModifierSatisfied(), at_hun_bleak_powder::OnUnitEnter(), SaveToDB(), SendTalentsInfoData(), boss_volazj::SpellHitTarget(), UpdateItemSetAuras(), spell_item_amalgams_seventh_spine::UpdateSpecAura(), and spell_warr_anger_management_proc::ValidateProc().
| ChrSpecializationEntry const * Player::GetPrimarySpecializationEntry | ( | ) | const |
Definition at line 30736 of file Player.cpp.
References AsUnderlyingType(), GetPrimarySpecialization(), and sChrSpecializationStore.
Referenced by CanUseMastery(), spell_dru_innervate::CheckCast(), spell_sindragosa_unchained_magic::FilterTargets(), spell_anduin_wrynn_wicked_star_selector::FilterTargets(), GetPrimaryStat(), GetUnitConditionVariable(), PlayerAI::IsPlayerHealer(), PlayerAI::IsPlayerRangedAttacker(), LoadFromDB(), CriteriaHandler::ModifierSatisfied(), SetVisibleItemSlot(), and UpdateMastery().
| Stats Player::GetPrimaryStat | ( | ) | const |
Definition at line 297 of file StatSystem.cpp.
References Unit::GetClass(), GetPrimarySpecializationEntry(), sChrClassesStore, STAT_AGILITY, STAT_INTELLECT, and STAT_STRENGTH.
Referenced by Unit::SpellBaseDamageBonusDone(), and UpdateArmor().
Definition at line 5873 of file Player.cpp.
References BASE_PARENT_TIER_INDEX, SkillLineEntry::CategoryID, CURRENT_EXPANSION, SkillLineEntry::ID, SkillLineEntry::ParentSkillLineID, SkillLineEntry::ParentTierIndex, sDB2Manager, SKILL_CATEGORY_PROFESSION, SKILL_CATEGORY_SECONDARY, and sSkillLineStore.
Referenced by Spell::EffectSkinning(), spell_gen_skinning::HandleSkinningEffect(), UpdateFishingSkill(), and GameObject::Use().
Definition at line 25438 of file Player.cpp.
References m_activePlayerData.
Referenced by _SaveSkills(), FindEquipSlot(), and SetSkill().
Definition at line 5950 of file Player.cpp.
References GetSkillMaxRankByPos(), GetSkillRankByPos(), mSkillStatus, and SKILL_DELETED.
Referenced by AddSpell(), learn_commandscript::HandleLearnAllRecipesCommand(), lookup_commandscript::HandleLookupSkillCommand(), misc_commandscript::HandleSetSkillCommand(), RemoveSpell(), and CriteriaHandler::UpdateCriteria().
Definition at line 5976 of file Player.cpp.
References GetSkillRankByPos(), mSkillStatus, and SKILL_DELETED.
Referenced by _LoadSkills(), AddSpell(), Spell::EffectLearnSkill(), Spell::EffectMilling(), Spell::EffectOpenLock(), Spell::EffectProspecting(), Spell::EffectSkill(), Spell::EffectSkinning(), lookup_commandscript::HandleLookupSkillCommand(), CriteriaHandler::ModifierSatisfied(), RemoveSpell(), SetSkill(), UpdateCraftSkill(), and UpdateFishingSkill().
| UF::PVPInfo const * Player::GetPvpInfoForBracket | ( | int8 | bracket | ) | const |
Definition at line 23094 of file Player.cpp.
References m_activePlayerData, and pvpInfo.
Referenced by GetArenaPersonalRating(), and CriteriaHandler::ModifierSatisfied().
|
inline |
|
inline |
Definition at line 2028 of file Player.h.
Referenced by _SaveTalents(), ActivateTalentGroup(), AddPvpTalent(), WorldSession::HandleInspectOpcode(), HasPvpTalent(), InitTalentForLevel(), LearnPvpTalent(), RemovePvpTalent(), ResetPvpTalents(), SendTalentsInfoData(), and TogglePvpTalents().
| QuestGiverStatus Player::GetQuestDialogStatus | ( | Object const * | questGiver | ) | const |
Definition at line 16096 of file Player.cpp.
References Creature::AI(), GameObject::AI(), CanSeeStartQuest(), CanTakeQuest(), CONDITION_SOURCE_TYPE_QUEST_AVAILABLE, CONFIG_QUEST_LOW_LEVEL_HIDE_DIFF, CovenantCalling, CovenantCallingQuest, CovenantCallingReward, CovenantCallingRewardCompleteNoPOI, CovenantCallingRewardCompletePOI, Future, FutureImportantQuest, FutureJourneyQuest, FutureLegendaryQuest, Object::GetEntry(), BaseEntity::GetGUID(), Unit::GetLevel(), WorldObject::GetName(), Quest::GetQuestId(), GetQuestLevel(), GetQuestStatus(), Quest::GetQuestTag(), BaseEntity::GetTypeId(), Quest::HasFlag(), Quest::HasFlagEx(), ImportantQuest, ImportantQuestRewardCompleteNoPOI, ImportantQuestRewardCompletePOI, ImportantReward, QuestMgr::IsCampaignQuestStatusVisibleForPlayer(), Quest::IsDailyOrWeekly(), WorldObject::IsHostileTo(), Quest::IsImportant(), Unit::IsInCombat(), Unit::IsInteractionAllowedInCombat(), Unit::IsInteractionAllowedWhileHostile(), Quest::IsMeta(), Quest::IsRepeatable(), Quest::IsTurnIn(), JourneyQuest, JourneyReward, JourneyRewardCompleteNoPOI, JourneyRewardCompletePOI, LegendaryQuest, LegendaryReward, LegendaryRewardCompleteNoPOI, LegendaryRewardCompletePOI, MetaQuest, MetaQuestRewardCompleteNoPOI, MetaQuestRewardCompletePOI, MetaReward, None, Quest, QUEST_FLAGS_EX_LEGENDARY, QUEST_FLAGS_HIDE_REWARD_POI, QUEST_STATUS_COMPLETE, QUEST_STATUS_INCOMPLETE, QUEST_STATUS_NONE, RepeatableQuest, RepeatableReward, RepeatableRewardCompleteNoPOI, RepeatableRewardCompletePOI, RepeatableTurnin, Reward, RewardCompleteNoPOI, RewardCompletePOI, SatisfyQuestLevel(), sConditionMgr, sObjectMgr, sWorld, TC_LOG_ERROR, Object::ToCreature(), Object::ToGameObject(), Position::ToString(), Trivial, TrivialImportantQuest, TrivialJourneyQuest, TrivialLegendaryQuest, TrivialMetaQuest, TrivialRepeatableQuest, TrivialRepeatableTurnin, TYPEID_GAMEOBJECT, and TYPEID_UNIT.
Referenced by GameObject::ActivateToQuest(), WorldSession::HandleQuestgiverStatusQueryOpcode(), SendQuestGiverStatusMultiple(), SendQuestReward(), and UpdateVisibleObjectInteractions().
Definition at line 14309 of file Player.cpp.
References Quest::GetContentTuningId(), and GetQuestLevel().
Referenced by GetQuestDialogStatus(), GetQuestLevel(), lookup_commandscript::HandleLookupQuestCommand(), lookup_commandscript::HandleLookupQuestIdCommand(), Quest::MoneyValue(), RewardReputation(), and Quest::XPValue().
Definition at line 14317 of file Player.cpp.
References Unit::GetLevel(), GetQuestMinLevel(), m_playerData, and sDB2Manager.
Definition at line 14288 of file Player.cpp.
References Quest::GetContentTuningId(), and GetQuestMinLevel().
Referenced by ReputationMgr::CanGainParagonReputationForFaction(), CanSeeStartQuest(), GetQuestLevel(), GetQuestMinLevel(), lookup_commandscript::HandleLookupQuestCommand(), lookup_commandscript::HandleLookupQuestIdCommand(), and SatisfyQuestMinLevel().
Definition at line 14293 of file Player.cpp.
References FactionTemplateEntry::FactionGroup, ChrRacesEntry::FactionID, Unit::GetRace(), m_playerData, sChrRacesStore, sContentTuningStore, sDB2Manager, and sFactionTemplateStore.
Definition at line 14933 of file Player.cpp.
References Quest::MoneyValue(), RATE_MONEY_QUEST, and sWorld.
Referenced by Quest::BuildQuestRewards(), RewardQuest(), WorldSession::SendLfgPlayerLockInfo(), WorldSession::SendLfgPlayerReward(), and SendQuestReward().
| int32 Player::GetQuestObjectiveData | ( | QuestObjective const & | objective | ) | const |
Definition at line 17042 of file Player.cpp.
References FindQuestSlot(), GetQuestSlotObjectiveData(), MAX_QUEST_LOG_SIZE, and QuestObjective::QuestID.
Definition at line 16407 of file Player.cpp.
References FindQuestSlot(), GetQuestSlotObjectiveData(), MAX_QUEST_LOG_SIZE, and sObjectMgr.
Referenced by npc_sparring_partner_combat_training::GetQuestCredits(), spell_drustvar_ping_lucille_burden_of_proof::HandleHit(), spell_re_sizing_q59941::HandleScript(), CriteriaHandler::ModifierSatisfied(), spell_re_sizing_aura_q56034::OnRemove(), spell_re_sizing_aura_q59941::OnRemove(), scene_darkmaul_plains_skeleton_army_alliance::OnSceneTriggerEvent(), scene_darkmaul_plains_skeleton_army_horde::OnSceneTriggerEvent(), at_boralus_get_your_bearings< QuestId, ObjectiveId, SpellId >::OnUnitEnter(), at_boralus_old_knight_enter_harbormasters_office::OnUnitEnter(), at_boralus_old_knight_genn_arrives_boralus::OnUnitEnter(), SendNewItem(), SendQuestUpdateAddItem(), and npc_jungle_punch_target::SpellHit().
| QuestObjective const * Player::GetQuestObjectiveForItem | ( | uint32 | itemId, |
| bool | onlyIncomplete | ||
| ) | const |
Definition at line 16971 of file Player.cpp.
References GetDifficultyID(), GetGroup(), WorldObject::GetMap(), InBattleground(), Quest::IsAllowedInRaid(), IsQuestObjectiveCompletable(), IsQuestObjectiveComplete(), Group::isRaidGroup(), m_questObjectiveStatus, Trinity::Containers::MapEqualRange(), QUEST_OBJECTIVE_ITEM, and sObjectMgr.
Referenced by HasQuestForItem(), and SendNewItem().
| bool Player::GetQuestRewardStatus | ( | uint32 | quest_id | ) | const |
Definition at line 15912 of file Player.cpp.
References IsQuestRewarded(), Quest::IsRepeatable(), Quest::IsSeasonal(), SatisfyQuestSeasonal(), and sObjectMgr.
Referenced by _LoadQuestStatus(), CanCompleteQuest(), CanRewardQuest(), lfg::LFGMgr::GetLockedDungeons(), npc_tournament_mount::npc_tournament_mountAI::GetPennantSpellId(), GetQuestStatus(), WorldSession::HandleUiMapQuestLinesRequest(), CriteriaHandler::ModifierSatisfied(), npc_lokhtos_darkbargainer::npc_lokhtos_darkbargainerAI::OnGossipHello(), boss_gloomrel::boss_gloomrelAI::OnGossipHello(), go_tele_to_dalaran_crystal::go_tele_to_dalaran_crystalAI::OnGossipHello(), go_tele_to_violet_stand::go_tele_to_violet_standAI::OnGossipHello(), AreaTrigger_at_legion_teleporter::OnTrigger(), CriteriaHandler::RequirementsSatisfied(), Satisfy(), and SatisfyQuestExclusiveGroup().
Definition at line 16366 of file Player.cpp.
References m_playerData, and MAX_QUEST_COUNTS.
Referenced by GetQuestSlotObjectiveData(), and Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::GiveClue().
Definition at line 16373 of file Player.cpp.
References m_playerData.
Referenced by _SaveQuestStatus().
| int32 Player::GetQuestSlotObjectiveData | ( | uint16 | slot, |
| QuestObjective const & | objective | ||
| ) | const |
Definition at line 16385 of file Player.cpp.
References BaseEntity::GetGUID(), WorldObject::GetName(), GetQuestSlotCounter(), GetQuestSlotObjectiveFlag(), QuestObjective::IsStoringFlag(), MAX_QUEST_COUNTS, QuestObjective::QuestID, QuestObjective::StorageIndex, TC_LOG_ERROR, and Position::ToString().
Referenced by _SaveQuestStatus(), GetQuestObjectiveData(), GetQuestObjectiveData(), GetReqKillOrCastCurrentCount(), IsQuestObjectiveComplete(), IsQuestObjectiveProgressBarComplete(), SetQuestObjectiveData(), and UpdateQuestObjectiveProgress().
Definition at line 16378 of file Player.cpp.
References m_playerData, and MAX_QUEST_COUNTS.
Referenced by GetQuestSlotObjectiveData().
Definition at line 16356 of file Player.cpp.
References m_playerData.
Referenced by AddQuest(), DailyReset(), FailQuestsWithFlag(), WorldSession::HandleQuestLogRemoveQuest(), HasPvPForcingQuest(), ResetWeeklyQuestStatus(), and SatisfyQuestLog().
Definition at line 16361 of file Player.cpp.
References m_playerData.
| QuestStatus Player::GetQuestStatus | ( | uint32 | quest_id | ) | const |
Definition at line 15929 of file Player.cpp.
References GetQuestRewardStatus(), m_QuestStatus, QUEST_STATUS_NONE, and QUEST_STATUS_REWARDED.
Referenced by GameObject::ActivateToQuest(), CanRewardQuest(), CanSeeGossipOn(), QuestObjectiveCriteriaMgr::CanUpdateCriteriaTree(), npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::CheckEventFail(), spell_item_demon_broiled_surprise::CheckRequirement(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DamageTaken(), DuelComplete(), Spell::EffectQuestClear(), Spell::EffectQuestComplete(), FailQuest(), ReputationMgr::GetMaxReputation(), GetQuestDialogStatus(), GetSpawnTrackingStateByObjective(), spell_midsummer_torch_catch::HandleDummy(), spell_defender_of_azeroth_death_gate_selector::HandleDummy(), spell_item_chicken_cover::HandleDummy(), spell_sindragosa_frost_breath::HandleInfusion(), lookup_commandscript::HandleLookupQuestCommand(), lookup_commandscript::HandleLookupQuestIdCommand(), spell_dalaran_order_campaign_intro_aura::HandlePeriodic(), WorldSession::HandlePushQuestToParty(), quest_commandscript::HandleQuestComplete(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), WorldSession::HandleQuestgiverRequestRewardOpcode(), WorldSession::HandleQuestLogRemoveQuest(), quest_commandscript::HandleQuestRemove(), quest_commandscript::HandleQuestReward(), quest_taming_the_wilds::HandleQuestStatusChange(), quest_briarpatch::HandleQuestStatusChange(), spell_festergut_blighted_spores::HandleResidue(), spell_rotface_slime_spray::HandleResidue(), spell_midsummer_fling_torch_catch::HandleScriptEffect(), SpellArea::IsFitToRequirements(), ConditionMgr::IsPlayerMeetingCondition(), LootItem::ItemAllowedForPlayer(), boss_shattered_executioner::JustDied(), npc_a_special_surprise::npc_a_special_surpriseAI::MeetQuestCondition(), CriteriaHandler::ModifierSatisfied(), spell_brewfest_barker_bunny::OnApply(), Scripts::Pandaria::TheWanderingIsle::at_inside_of_cave_of_meditation::OnExit(), go_master_surveyor::OnGossipHello(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipHello(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::OnGossipHello(), go_loosely_turned_soil::OnGossipHello(), go_gauntlet_gate::go_gauntlet_gateAI::OnGossipHello(), npc_silverpine_bat_handler_maggotbreath::OnGossipHello(), npc_erozion::OnGossipHello(), go_legion_obelisk::go_legion_obeliskAI::OnGossipHello(), go_gilded_brazier::go_gilded_brazierAI::OnGossipHello(), go_tablet_of_the_seven::go_tablet_of_the_sevenAI::OnGossipHello(), go_tele_to_violet_stand::go_tele_to_violet_standAI::OnGossipHello(), go_amberpine_outhouse::go_amberpine_outhouseAI::OnGossipHello(), go_veil_skith_cage::go_veil_skith_cageAI::OnGossipHello(), npc_silverpine_admiral_hatchet::OnGossipSelect(), at_malfurion_stormrage::OnTrigger(), at_twilight_grove::OnTrigger(), at_silverpine_forsaken_rear_guard::OnTrigger(), at_silverpine_no_escape::OnTrigger(), Scripts::EasternKingdoms::Westfall::at_westfall_two_shoed_lou_thugs::OnTrigger(), at_hor_intro_start::OnTrigger(), at_commander_dawnforge::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_min_dimwind_captured::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_cave_of_meditation::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_inside_of_cave_of_meditation::OnTrigger(), AreaTrigger_at_scent_larkorwi::OnTrigger(), AreaTrigger_at_nats_landing::OnTrigger(), AreaTrigger_at_frostgrips_hollow::OnTrigger(), at_bring_your_orphan_to::OnTrigger(), AreaTrigger_at_sholazar_waygate::OnTrigger(), at_hall_of_shadows_call_of_the_uncrowned_clone_milton::OnUnitEnter(), at_enter_the_illidari_ashtongue_allari_killcredit::OnUnitEnter(), at_human_heritage_lions_pride_inn_basement_enter::OnUnitEnter(), at_ghostlands_conversation_to_ghostlands< QuestId, ConversationId >::OnUnitEnter(), Scripts::EasternKingdoms::StormwindCity::at_stormwind_keep_tides_of_war::OnUnitEnter(), areatrigger_find_the_lost_expedition::OnUnitEnter(), areatrigger_find_the_lost_expedition_follower::OnUnitEnter(), at_northbound_linger::OnUnitEnter(), at_briarpatch_to_plains::OnUnitEnter(), at_boralus_get_your_bearings< QuestId, ObjectiveId, SpellId >::OnUnitEnter(), at_boralus_old_knight_enter_harbormasters_office::OnUnitEnter(), at_boralus_old_knight_genn_arrives_boralus::OnUnitEnter(), at_boralus_sanctum_of_the_sages_conversation::OnUnitEnter(), item_captured_frog::OnUse(), npc_doctor::npc_doctorAI::PatientDied(), npc_doctor::npc_doctorAI::PatientSaved(), PrepareQuestMenu(), SmartScript::ProcessAction(), npc_chicken_cluck::npc_chicken_cluckAI::ReceiveEmote(), RewardQuest(), SatisfyQuestDependentBreadcrumbQuests(), SatisfyQuestExclusiveGroup(), SatisfyQuestPreviousQuest(), SatisfyQuestStatus(), boss_shattered_executioner::SetData(), SkipQuests(), Scripts::Kalimdor::Durotar::npc_lazy_peon::npc_lazy_peonAI::SpellHit(), npc_restless_soul::npc_restless_soulAI::SpellHit(), npc_sparring_partner_enhanced_combat_training_priest::SpellHit(), npc_sparring_partner_enhanced_combat_training_shaman::SpellHit(), npc_sparring_partner_enhanced_combat_training_mage::SpellHit(), npc_sparring_partner_enhanced_combat_training_warlock::SpellHit(), npc_sparring_partner_enhanced_combat_training_monk::SpellHit(), npc_sparring_partner_enhanced_combat_training_druid::SpellHit(), npc_wounded_skirmisher::SpellHit(), npc_jungle_punch_target::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), Scripts::EasternKingdoms::Westfall::npc_westfall_lous_parting_thoughts_trigger::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), boss_blood_queen_lana_thel::UpdateAI(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::UpdateAI(), FollowerAI::UpdateAI(), and GameObject::Use().
|
inline |
Definition at line 1897 of file Player.h.
Referenced by AddQuest().
Definition at line 14938 of file Player.cpp.
References AddPct(), Unit::GetAuraEffectsByType(), RATE_XP_QUEST, SPELL_AURA_MOD_XP_QUEST_PCT, sWorld, and Quest::XPValue().
Referenced by Quest::BuildQuestRewards(), RewardQuest(), WorldSession::SendLfgPlayerLockInfo(), and WorldSession::SendLfgPlayerReward().
|
inline |
Definition at line 2167 of file Player.h.
Referenced by Group::Create(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleSetRaidDifficultyOpcode(), SaveToDB(), and SendRaidDifficulty().
|
inline |
Definition at line 2610 of file Player.h.
Referenced by Battleground::EndBattleground(), and BattlegroundMgr::SendBattlegroundList().
| float Player::GetRatingBonusValue | ( | CombatRating | cr | ) | const |
Definition at line 5139 of file Player.cpp.
References ApplyRatingDiminishing(), CR_RESILIENCE_PLAYER_DAMAGE, GetRatingMultiplier(), and m_activePlayerData.
Referenced by spell_item_corruption_grasping_tendrils::CalcAmount(), Unit::CalcArmorReducedDamage(), CalculateMinMaxDamage(), spell_pri_sanctuary_trigger::HandleEffectHit(), UpdateBlockPercentage(), UpdateCorruption(), UpdateCritPercentage(), UpdateDodgePercentage(), UpdateExpertise(), UpdateHealingDonePercentMod(), UpdateMastery(), UpdateMeleeHitChances(), UpdateParryPercentage(), UpdateRangedHitChances(), UpdateSpellCritChance(), and UpdateSpellHitChances().
| float Player::GetRatingMultiplier | ( | CombatRating | cr | ) | const |
Definition at line 5126 of file Player.cpp.
References GetGameTableColumnForCombatRating(), Unit::GetLevel(), and sCombatRatingsGameTable.
Referenced by GetRatingBonusValue(), and UpdateRating().
|
inline |
Definition at line 2162 of file Player.h.
Referenced by CriteriaHandler::ModifierSatisfied().
Definition at line 2750 of file Player.h.
Referenced by MapManager::CreateMap(), and MapManager::FindInstanceIdForPlayer().
Definition at line 29488 of file Player.cpp.
References ReputationMgr::GetReputation(), GetReputationMgr(), and sFactionStore.
Referenced by IsQuestObjectiveComplete(), CriteriaHandler::ModifierSatisfied(), SatisfyQuestMaxReputation(), and SatisfyQuestMinReputation().
|
inline |
Definition at line 2422 of file Player.h.
Referenced by AddQuest(), quest_commandscript::CompleteObjective(), Spell::EffectReputation(), WorldObject::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::HandlePlayerLogin(), WorldSession::HandleSetFactionAtWar(), WorldSession::HandleSetFactionInactiveOpcode(), WorldSession::HandleSetFactionNotAtWar(), ConditionMgr::IsPlayerMeetingCondition(), IsQuestObjectiveComplete(), WorldObject::IsValidAttackTarget(), CriteriaHandler::ModifierSatisfied(), ModifyCurrency(), RewardReputation(), RewardReputation(), Battleground::RewardReputationToTeam(), SatisfyQuestMaxReputation(), SatisfyQuestMinReputation(), SetReputation(), CriteriaHandler::UpdateCriteria(), and UpdateQuestObjectiveProgress().
|
inline |
| float Player::GetReputationPriceDiscount | ( | Creature const * | creature | ) | const |
Definition at line 25808 of file Player.cpp.
References WorldObject::GetFactionTemplateEntry(), and GetReputationPriceDiscount().
Referenced by ActivateTaxiPathTo(), BuyItemFromVendorSlot(), GetReputationPriceDiscount(), WorldSession::HandleRepairItemOpcode(), FlightPathMovementGenerator::LoadPath(), WorldSession::SendListInventory(), Trainer::Trainer::SendSpells(), and Trainer::Trainer::TeachSpell().
| float Player::GetReputationPriceDiscount | ( | FactionTemplateEntry const * | factionTemplate | ) | const |
Definition at line 25813 of file Player.cpp.
References FactionTemplateEntry::Faction, GetReputationRank(), and REP_NEUTRAL.
| ReputationRank Player::GetReputationRank | ( | uint32 | faction_id | ) | const |
Definition at line 6415 of file Player.cpp.
References ReputationMgr::GetRank(), GetReputationMgr(), and sFactionStore.
Referenced by BuyCurrencyFromVendorSlot(), BuyItemFromVendorSlot(), CanUseItem(), GetReputationPriceDiscount(), AuraEffect::HandleForceReaction(), spell_item_sunwell_neck< AldorSpellId, ScryersSpellId >::spell_item_sunwell_neck_AuraScript< Aldors, Scryers >::HandleProc(), ConditionMgr::IsPlayerMeetingCondition(), CriteriaHandler::ModifierSatisfied(), npc_lokhtos_darkbargainer::npc_lokhtos_darkbargainerAI::OnGossipHello(), and ReputationMgr::SetReputation().
Definition at line 16301 of file Player.cpp.
References FindQuestSlot(), Quest::GetObjectives(), GetQuestSlotObjectiveData(), MAX_QUEST_LOG_SIZE, and sObjectMgr.
Referenced by npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DamageTaken().
|
inline |
Definition at line 2875 of file Player.h.
Referenced by Spell::EffectGiveRestedExperience(), and WorldSession::HandleAreaTriggerOpcode().
|
inline |
Definition at line 1899 of file Player.h.
Referenced by CriteriaHandler::UpdateCriteria().
|
inline |
Definition at line 1896 of file Player.h.
Referenced by CriteriaHandler::UpdateCriteria().
| uint32 Player::GetRuneBaseCooldown | ( | ) | const |
Definition at line 27051 of file Player.cpp.
References GetPowerIndex(), IN_MILLISECONDS, Unit::m_unitData, MAX_POWERS_PER_CLASS, POWER_RUNES, PowerTypeEntry::RegenPeace, and sDB2Manager.
Referenced by BaseEntity::BuildMovementUpdate(), LoadFromDB(), ResyncRunes(), Spell::SendSpellGo(), and Spell::TakeRunePower().
Definition at line 2818 of file Player.h.
Referenced by BaseEntity::BuildMovementUpdate(), spell_dk_advantage_t10_4p::CheckProc(), Spell::CheckRuneCost(), RegenerateAll(), ResyncRunes(), Spell::SendSpellGo(), and Spell::TakeRunePower().
| uint8 Player::GetRunesState | ( | ) | const |
Definition at line 27046 of file Player.cpp.
References Unit::GetMaxPower(), m_runes, and POWER_RUNES.
Referenced by BaseEntity::BuildMovementUpdate(), ResyncRunes(), Spell::SendSpellGo(), and Spell::TakeRunePower().
|
inline |
Definition at line 2664 of file Player.h.
Referenced by misc_commandscript::HandleSaveCommand().
|
inline |
Definition at line 2873 of file Player.h.
Referenced by BaseEntity::BuildMovementUpdate(), Spell::EffectPlayScene(), Spell::EffectPlaySceneScriptPackage(), scene_commandscript::HandleCancelSceneCommand(), list_commandscript::HandleListScenesCommand(), WorldSession::HandlePlayerLogin(), AuraEffect::HandlePlayScene(), scene_commandscript::HandlePlaySceneCommand(), scene_commandscript::HandlePlayScenePackageCommand(), WorldSession::HandleScenePlaybackCanceled(), WorldSession::HandleScenePlaybackComplete(), WorldSession::HandleSceneTriggerEvent(), and SendInitialPacketsAfterAddToMap().
| Player * Player::GetSelectedPlayer | ( | ) | const |
Definition at line 24852 of file Player.cpp.
References ObjectAccessor::FindConnectedPlayer(), Unit::GetTarget(), and ObjectGuid::IsEmpty().
Referenced by Spell::CheckCast(), Trinity::ChatCommands::AccountIdentifier::FromTarget(), and Trinity::ChatCommands::PlayerIdentifier::FromTarget().
| Unit * Player::GetSelectedUnit | ( | ) | const |
Definition at line 24844 of file Player.cpp.
References Unit::GetTarget(), ObjectAccessor::GetUnit(), and ObjectGuid::IsEmpty().
Referenced by ChatHandler::getSelectedUnit(), and LogCommandUsage().
|
inline |
Definition at line 2256 of file Player.h.
Referenced by _LoadHomeBind(), _LoadInventory(), _LoadPlayerData(), _LoadQuestStatusRewarded(), _LoadTraits(), _LoadTransmogOutfits(), Guild::_SendBankContentUpdate(), InstanceScript::_SkipCheckRequiredBosses(), _StoreOrEquipNewItem(), ActivateTaxiPathTo(), AddEnchantmentDuration(), BattlegroundQueue::AddGroup(), Guild::AddGuildNews(), AddItem(), Guild::AddMember(), Channel::AddonSay(), InstanceMap::AddPlayerToMap(), AddSpell(), AddToWorld(), Channel::Announce(), AutoUnequipOffhandIfNeed(), World::BanCharacter(), Group::BroadcastAddonMessagePacket(), Guild::BroadcastAddonToGuild(), SocialMgr::BroadcastToFriendListers(), Guild::BroadcastToGuild(), AuctionsBucketData::BuildBucketInfo(), CalendarEvent::BuildCalendarMailBody(), BuildCreateUpdateBlockForPlayer(), AuctionHouseObject::BuildListAuctionItems(), AuctionHouseObject::BuildListAuctionItems(), AuctionHouseObject::BuildListBiddedItems(), AuctionHouseObject::BuildListBuckets(), AuctionHouseObject::BuildListBuckets(), AuctionHouseObject::BuildListOwnedItems(), BuildPlayerRepop(), AuctionHouseObject::BuyCommodity(), CanBeGameMaster(), CanJoinToBattleground(), AchievementMgr::CanUpdateCriteriaTree(), CharacterActionIpLogger::CharacterIPLogAction(), Spell::CheckCast(), AuctionHouseMgr::CheckThrottle(), Item::ClearSoulboundTradeable(), PlayerAchievementMgr::CompletedAchievement(), Create(), Guild::Create(), AuctionHouseObject::CreateCommodityQuote(), InstanceMap::CreateInstanceLockForPlayer(), Unit::DestroyForPlayer(), Guild::Disband(), DoRandomRoll(), InstanceScript::DoSendNotifyToInstance(), DuelComplete(), DurabilityRepairAll(), Spell::EffectChangeBattlePetQuality(), Spell::EffectCreateHeirloomItem(), Spell::EffectDiscoverTaxi(), Spell::EffectDuel(), Spell::EffectEnableBattlePets(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), Spell::EffectEnchantItemTmp(), Spell::EffectGrantBattlePetExperience(), Spell::EffectGrantBattlePetLevel(), Spell::EffectHealBattlePetPct(), Spell::EffectLearnSpell(), Spell::EffectLearnTransmogIllusion(), Spell::EffectLearnTransmogSet(), Spell::EffectLearnWarbandScene(), Spell::EffectPlaySound(), Spell::EffectUncageBattlePet(), Spell::EffectUnlockGuildVaultTab(), lfg::LFGMgr::FinishDungeon(), ChannelMgr::GetChannel(), ChannelMgr::GetChannelForPlayerByNamePart(), Scenario::GetCriteriasProgressFor(), SocialMgr::GetFriendInfo(), lfg::LFGMgr::GetLockedDungeons(), ReputationMgr::GetReputationRankName(), GetsRecruitAFriendBonus(), UF::ViewerDependentValue< UF::ConversationData::LastLineEndTimeTag >::GetValue(), UF::ViewerDependentValue< UF::ConversationLine::StartTimeTag >::GetValue(), WorldSession::HandleAcceptTradeOpcode(), account_commandscript::HandleAccountSetAddonCommand(), account_commandscript::HandleAccountSetSecLevelCommand(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleBeginTradeOpcode(), WorldSession::HandleChatCanLocalWhisperTargetRequest(), WorldSession::HandleChatIgnoredOpcode(), WorldSession::HandleChatMessage(), Battlenet::Services::ClubService::HandleCreateMessage(), debug_commandscript::HandleDebugSendOpcodeCommand(), WorldSession::HandleDuelAccepted(), cheat_commandscript::HandleExploreCheatCommand(), WorldSession::HandleForceSpeedChangeAck(), group_commandscript::HandleGroupLevelCommand(), group_commandscript::HandleGroupReviveCommand(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleInitiateTradeOpcode(), Guild::HandleInviteMember(), misc_commandscript::HandleKickPlayerCommand(), lookup_commandscript::HandleLookupPlayerIpCommand(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleMailTakeItem(), Guild::HandleMemberDepositMoney(), modify_commandscript::HandleModifyGenderCommand(), modify_commandscript::HandleModifyMoneyCommand(), modify_commandscript::HandleModifySpellCommand(), WorldSession::HandleMoveSetModMovementForceMagnitudeAck(), misc_commandscript::HandleMuteCommand(), WorldSession::HandlePartyInviteOpcode(), WorldSession::HandlePartyInviteResponseOpcode(), misc_commandscript::HandlePInfoCommand(), OutdoorPvP::HandlePlayerLeaveZone(), WorldSession::HandlePlayerLogin(), WorldSession::HandleQueryBattlePetName(), misc_commandscript::HandleRepairitemsCommand(), WorldSession::HandleReportPvPAFK(), reset_commandscript::HandleResetSpellsCommand(), misc_commandscript::HandleReviveCommand(), send_commandscript::HandleSendMessageCommand(), AuraEffect::HandleStoreTeleportReturnPoint(), misc_commandscript::HandleSummonCommand(), cheat_commandscript::HandleTaxiCheatCommand(), tele_commandscript::HandleTeleGroupCommand(), ticket_commandscript::HandleTicketUnAssignCommand(), misc_commandscript::HandleUnmuteCommand(), WorldSession::HandleWhoIsOpcode(), WorldSession::HandleWhoOpcode(), lfg::LFGMgr::HasIgnore(), ChatHandler::HasLowerSecurity(), InitStatsForLevel(), InitTalentForLevel(), Channel::Invite(), IsActionButtonDataValid(), IsInstanceLoginGameMasterException(), IsLoading(), IsNeverVisibleFor(), ConditionMgr::IsPlayerMeetingCondition(), SpellMgr::IsSpellValid(), ObjectMgr::IsVendorItemValid(), IsVisibleGloballyFor(), Channel::JoinChannel(), lfg::LFGMgr::JoinLfg(), Channel::KickOrBan(), Pet::learnSpells(), LeaveBattleground(), Channel::LeaveChannel(), Channel::List(), LoadFromDB(), Pet::LoadPetFromDB(), CriteriaHandler::ModifierSatisfied(), MoveItemFromInventory(), WorldSession::moveItems(), achievement_newbie::OnCompleted(), achievement_just_a_pup::OnCompleted(), npc_wg_spirit_guide::OnGossipHello(), npc_wg_queue::OnGossipHello(), go_tele_to_dalaran_crystal::go_tele_to_dalaran_crystalAI::OnGossipHello(), npc_lokhtos_darkbargainer::npc_lokhtos_darkbargainerAI::OnGossipSelect(), npc_silverpine_bat_handler_maggotbreath::OnGossipSelect(), npc_zm_field_scout::OnGossipSelect(), go_amberpine_outhouse::go_amberpine_outhouseAI::OnGossipSelect(), OnGossipSelect(), lfg::LFGPlayerScript::OnLogin(), lfg::LFGPlayerScript::OnLogout(), lfg::LFGPlayerScript::OnMapChanged(), BattlefieldWG::OnPlayerLeaveWar(), Trinity::LocalizedDo< Localizer >::operator()(), Trinity::ChatPacketSender::operator()(), CreatureTextLocalizer< Builder >::operator()(), Channel::Password(), Player(), Map::PlayerCannotEnter(), PrepareGossipMenu(), ProcessItemCast(), BattlegroundMgr::QueuePlayerForArena(), RefundItem(), RemoveFromWorld(), GuildAchievementMgr::Reset(), Guild::ResetTimes(), ResummonBattlePetTemporaryUnSummonedIfAny(), ResurrectPlayer(), RewardHonor(), RewardQuest(), RewardQuestPackage(), Satisfy(), SatisfyQuestExpansion(), SaveToDB(), Channel::Say(), GuildAchievementMgr::SendAchievementEarned(), PlayerAchievementMgr::SendAchievementInfo(), PlayerAchievementMgr::SendAllData(), GuildAchievementMgr::SendAllData(), QuestObjectiveCriteriaMgr::SendAllData(), GuildAchievementMgr::SendAllTrackedCriterias(), AuctionHouseObject::SendAuctionExpired(), AuctionHouseObject::SendAuctionInvoice(), BlackMarketMgr::SendAuctionOutbidMail(), AuctionHouseObject::SendAuctionSold(), AuctionHouseObject::SendAuctionWon(), BlackMarketMgr::SendAuctionWonMail(), CalendarMgr::SendCalendarEvent(), Scenario::SendCriteriaUpdate(), PlayerAchievementMgr::SendCriteriaUpdate(), QuestObjectiveCriteriaMgr::SendCriteriaUpdate(), Unit::SendDurabilityLoss(), SendEnchantmentDurations(), Guild::SendEventNewLeader(), Guild::SendEventPlayerLeft(), Guild::SendGuildRanksUpdate(), SendInitialPacketsAfterAddToMap(), SendInitialPacketsBeforeAddToMap(), Map::SendInitSelf(), lfg::LFGMgr::SendLfgRoleChosen(), Guild::SendLoginInfo(), Unit::SendMoveKnockBack(), SendPlayerChoice(), SendPushToPartyResponse(), SendQuestConfirmAccept(), Spell::SendResurrectRequest(), World::SendServerMessage(), WorldSession::SendTradeStatus(), Group::SendUpdateToPlayer(), Map::SendUpdateTransportVisibility(), ReputationMgr::SendVisible(), Map::SendZoneMessage(), TradeData::SetAccepted(), SetDataElementAccount(), SetDataFlagAccount(), Item::SetEnchantment(), SetGameMaster(), SetGMVisible(), SetInventorySlotCount(), Channel::SetMode(), TradeData::SetMoney(), SetMoney(), Item::SetNotRefundable(), Group::SetOfflineMembersReadyChecked(), Channel::SetOwner(), SetPetSlot(), RestMgr::SetRestBonus(), Pet::SetSpecialization(), SpawnCorpseBones(), StartLoadingActionButtons(), StoreNewItem(), Trainer::Trainer::TeachSpell(), lfg::LFGMgr::TeleportPlayer(), TeleportTo(), TextEmote(), ToggleAFK(), TradeCancel(), Channel::UnBan(), Pet::unlearnSpells(), UnsummonBattlePetTemporaryIfAny(), TradeData::Update(), Pet::Update(), Update(), Map::Update(), CriteriaHandler::UpdateCriteria(), CriteriaHandler::UpdateCriteria(), InstanceMap::UpdateInstanceLock(), InstanceMap::UpdateInstanceLock(), UpdateLocalChannels(), UpdateMirrorTimers(), spell_gen_trainer_heal_cooldown::UpdateReviveBattlePetCooldown(), UpdateSpeakTime(), VisualizeItem(), Whisper(), Unit::Whisper(), Unit::Whisper(), Whisper(), WhisperAddon(), and Quest::XPValue().
|
inline |
Definition at line 1819 of file Player.h.
Referenced by WorldSession::HandleQuestConfirmAccept(), and SendInitialPacketsAfterAddToMap().
| Item * Player::GetShield | ( | bool | useable = false | ) | const |
Definition at line 9609 of file Player.cpp.
References EQUIPMENT_SLOT_OFFHAND, ItemTemplate::GetClass(), GetItemByPos(), Item::GetTemplate(), GetUseableItemByPos(), INVENTORY_SLOT_BAG_0, Item::IsBroken(), and ITEM_CLASS_ARMOR.
Definition at line 2365 of file Player.h.
Referenced by SetSkill().
Definition at line 2373 of file Player.h.
Referenced by _SaveSkills(), GetMaxSkillValue(), GetPureMaxSkillValue(), and UpdateSkillPro().
Definition at line 2377 of file Player.h.
Referenced by GetBaseSkillValue(), GetMaxSkillValue(), GetSkillPermBonusValue(), GetSkillValue(), and ModifySkillBonus().
Definition at line 5988 of file Player.cpp.
References GetSkillPermBonusByPos(), GetSkillRankByPos(), mSkillStatus, and SKILL_DELETED.
Referenced by lookup_commandscript::HandleLookupSkillCommand().
Definition at line 2369 of file Player.h.
Referenced by _SaveSkills(), GetBaseSkillValue(), GetMaxSkillValue(), GetPureMaxSkillValue(), GetPureSkillValue(), GetSkillPermBonusValue(), GetSkillStep(), GetSkillTempBonusValue(), GetSkillValue(), HasSkill(), ModifySkillBonus(), SetSkill(), UpdateSkillPro(), and UpdateSkillsForLevel().
Definition at line 5908 of file Player.cpp.
References GetSkillRankByPos(), GetSkillStepByPos(), mSkillStatus, and SKILL_DELETED.
Referenced by _LoadSkills(), Spell::EffectSkill(), learn_commandscript::HandleLearnAllRecipesCommand(), misc_commandscript::HandleSetSkillCommand(), and SetSkill().
Definition at line 2367 of file Player.h.
Referenced by GetSkillStep().
Definition at line 2375 of file Player.h.
Referenced by GetMaxSkillValue(), GetSkillTempBonusValue(), GetSkillValue(), and ModifySkillBonus().
Definition at line 6000 of file Player.cpp.
References GetSkillRankByPos(), GetSkillTempBonusByPos(), mSkillStatus, and SKILL_DELETED.
Referenced by lookup_commandscript::HandleLookupSkillCommand().
Definition at line 5920 of file Player.cpp.
References GetSkillPermBonusByPos(), GetSkillRankByPos(), GetSkillTempBonusByPos(), mSkillStatus, and SKILL_DELETED.
Referenced by _LoadSkills(), AddItemsSetItem(), ApplyEnchantment(), Spell::CanOpenLock(), CanRollNeedForItem(), CanUseItem(), CanUseItem(), Spell::CheckItems(), GetExplicitDiscoverySpell(), spell_dru_travel_form::GetFormSpellId(), Unit::GetMountCapability(), GetSkillDiscoverySpell(), misc_commandscript::HandleSetSkillCommand(), Item::HasEnchantRequiredSkill(), ConditionMgr::IsPlayerMeetingCondition(), boss_gloomrel::boss_gloomrelAI::OnGossipHello(), SatisfyQuestSkill(), Spell::SummonGuardian(), and GameObject::Use().
|
inline |
Definition at line 1274 of file Player.h.
Referenced by Guild::BroadcastAddonToGuild(), Guild::BroadcastToGuild(), Spell::EffectDuel(), SocialMgr::GetFriendInfo(), WorldSession::HandleAddFriendOpcode(), WorldSession::HandleContactListOpcode(), Battlenet::Services::ClubService::HandleCreateMessage(), WorldSession::HandleDelFriendOpcode(), WorldSession::HandleDelIgnoreOpcode(), Guild::HandleInviteMember(), WorldSession::HandlePartyInviteOpcode(), WorldSession::HandleSetContactNotesOpcode(), lfg::LFGMgr::HasIgnore(), Channel::Invite(), and SendInitialPacketsBeforeAddToMap().
| SpawnTrackingState Player::GetSpawnTrackingStateByObjective | ( | uint32 | spawnTrackingId, |
| uint32 | questObjectiveId | ||
| ) | const |
Definition at line 17548 of file Player.cpp.
References Active, Complete, GetQuestStatus(), IsQuestObjectiveCompletable(), IsQuestObjectiveComplete(), IsQuestRewarded(), m_QuestStatus, MAX_QUEST_LOG_SIZE, None, QUEST_STATUS_NONE, and sObjectMgr.
Referenced by GetSpawnTrackingStateByObjectives(), UF::ViewerDependentValue< UF::GameObjectData::StateWorldEffectsQuestObjectiveIDTag >::GetValue(), and UF::ViewerDependentValue< UF::UnitData::StateWorldEffectsQuestObjectiveIDTag >::GetValue().
| SpawnTrackingState Player::GetSpawnTrackingStateByObjectives | ( | uint32 | spawnTrackingId, |
| std::vector< uint32 > const & | questObjectives | ||
| ) | const |
Definition at line 17526 of file Player.cpp.
References Active, Complete, GetSpawnTrackingStateByObjective(), and None.
Referenced by Creature::GetSpawnTrackingStateDataForPlayer(), GameObject::GetSpawnTrackingStateDataForPlayer(), UF::ViewerDependentValue< UF::ObjectData::DynamicFlagsTag >::GetValue(), WorldSession::HandleSpawnTrackingUpdate(), and UpdateQuestObjectiveProgress().
|
inline |
|
inline |
Definition at line 2056 of file Player.h.
Referenced by ApplyItemDependentAuras(), GameObject::GetSpellForLock(), AuraEffect::HandleShapeshiftBoosts(), Unit::ModifyAuraState(), ResetSpells(), and CriteriaHandler::UpdateCriteria().
| void Player::GetSpellModValues | ( | SpellInfo const * | spellInfo, |
| SpellModOp | op, | ||
| Spell * | spell, | ||
| double | base, | ||
| int32 * | flat, | ||
| float * | pct | ||
| ) | const |
Definition at line 22623 of file Player.cpp.
References ApplyModToSpell(), ASSERT, CalculatePct(), ChangeCastTime, CritChance, Trinity::Containers::FlatSet< Key, Compare, KeyContainer >::end(), IsAffectedBySpellmod(), SpellInfo::IsAffectedBySpellMods(), m_spellMods, m_spellModTakingSpell, UF::SpellPctModByLabel::ModifierValue, UF::SpellFlatModByLabel::ModifierValue, SpellModifier::op, SPELLMOD_FLAT, SPELLMOD_LABEL_FLAT, SPELLMOD_LABEL_PCT, SPELLMOD_PCT, SpellFlatModifierByClassMask::value, SpellPctModifierByClassMask::value, SpellFlatModifierByLabel::value, and SpellPctModifierByLabel::value.
Referenced by ApplySpellMod().
|
inline |
| bool Player::GetsRecruitAFriendBonus | ( | bool | forXP | ) |
Definition at line 26312 of file Player.cpp.
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(), and sWorld.
Referenced by CalculateReputationGain(), GiveXP(), and RestMgr::SetRestBonus().
| ObjectGuid Player::GetStableMaster | ( | ) | const |
Definition at line 29791 of file Player.cpp.
References ObjectGuid::Empty, and m_activePlayerData.
Referenced by WorldSession::HandleCloseInteraction().
| uint8 Player::GetStartLevel | ( | uint8 | race, |
| uint8 | playerClass, | ||
| Optional< int32 > | characterTemplateId | ||
| ) | const |
Definition at line 24362 of file Player.cpp.
References CLASS_DEATH_KNIGHT, CLASS_DEMON_HUNTER, CONFIG_START_ALLIED_RACE_LEVEL, CONFIG_START_DEATH_KNIGHT_PLAYER_LEVEL, CONFIG_START_DEMON_HUNTER_PLAYER_LEVEL, CONFIG_START_GM_LEVEL, CONFIG_START_PLAYER_LEVEL, WorldSession::GetAccountId(), WorldSession::GetRemoteAddress(), WorldSession::HasPermission(), IsAlliedRace, m_session, RACE_DRACTHYR_ALLIANCE, RACE_DRACTHYR_HORDE, RACE_PANDAREN_ALLIANCE, RACE_PANDAREN_HORDE, rbac::RBAC_PERM_USE_CHARACTER_TEMPLATES, rbac::RBAC_PERM_USE_START_GM_LEVEL, sCharacterTemplateDataStore, sChrRacesStore, sWorld, and TC_LOG_WARN.
Referenced by Create(), and reset_commandscript::HandleResetLevelCommand().
Definition at line 24396 of file Player.cpp.
References CLASS_DEATH_KNIGHT, CLASS_DEMON_HUNTER, CLASS_EVOKER, CONFIG_START_ALLIED_RACE_MONEY, CONFIG_START_DEATH_KNIGHT_PLAYER_MONEY, CONFIG_START_DEMON_HUNTER_PLAYER_MONEY, CONFIG_START_EVOKER_PLAYER_MONEY, CONFIG_START_PLAYER_MONEY, IsAlliedRace, RACE_PANDAREN_ALLIANCE, RACE_PANDAREN_HORDE, sChrRacesStore, and sWorld.
Referenced by Create().
| WorldLocation const * Player::GetStoredAuraTeleportLocation | ( | uint32 | spellId | ) | const |
Definition at line 2659 of file Player.cpp.
References m_storedAuraTeleportLocations, and Trinity::Containers::MapGetValuePtr().
|
inline |
Definition at line 2787 of file Player.h.
Referenced by Unit::GetPartyMembers(), WorldSession::HandleChatAddonMessage(), Group::SameSubGroup(), and SetBattlegroundOrBattlefieldRaid().
| Creature * Player::GetSummonedBattlePet | ( | ) | const |
Definition at line 22189 of file Player.cpp.
References ObjectAccessor::GetCreatureOrPetOrVehicle(), Unit::GetCritterGUID(), and GetSummonedBattlePetGUID().
Referenced by BattlePets::BattlePetMgr::CageBattlePet(), BattlePets::BattlePetMgr::DismissPet(), BattlePets::BattlePetMgr::ModifyName(), UnsummonBattlePetTemporaryIfAny(), and BattlePets::BattlePetMgr::UpdateBattlePetData().
|
inline |
Definition at line 2979 of file Player.h.
Referenced by Spell::CheckCast(), GetSummonedBattlePet(), and WorldSession::HandleDismissCritter().
|
inline |
|
inline |
Definition at line 2026 of file Player.h.
Referenced by _SaveTalents(), AddTalent(), WorldSession::HandleInspectOpcode(), HasTalent(), RemoveTalent(), and SendTalentsInfoData().
|
inline |
Definition at line 1989 of file Player.h.
Referenced by GetNextResetTalentsCost(), and SaveToDB().
|
inline |
Definition at line 1991 of file Player.h.
Referenced by GetNextResetTalentsCost(), and SaveToDB().
|
inline |
Definition at line 2406 of file Player.h.
Referenced by _LoadHomeBind(), ActivateTaxiPathTo(), SocialMgr::BroadcastToFriendListers(), BuyItemFromVendorSlot(), Group::CanJoinBattlegroundQueue(), npc_zm_field_scout::CanObtainBanner(), CanSelectQuestPackageItem(), CriteriaHandler::CanUpdateCriteriaTree(), AchievementMgr::CanUpdateCriteriaTree(), CanUseItem(), CleanupChannels(), PlayerAchievementMgr::CompletedAchievement(), ContinueTaxiFlight(), LootItem::CurrencyAllowedForPlayer(), GetBGTeam(), Garrison::GetFaction(), SocialMgr::GetFriendInfo(), lfg::LFGMgr::GetLockedDungeons(), Guild::HandleAcceptMember(), WorldSession::HandleAddFriendOpcode(), OutdoorPvPSI::HandleAreaTrigger(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleCalendarInvite(), message_commandscript::HandleChannelSetOwnership(), debug_commandscript::HandleDebugNearGraveyard(), OutdoorPvPSI::HandleDropFlag(), spell_brewfest_mount_transformation::HandleDummy(), spell_defender_of_azeroth_death_gate_selector::HandleDummy(), spell_knockback_charge_enhanced_training::HandleEffect(), spell_scene_linger_northbound::HandleEffect(), spell_resizer_hit_one_two_q56034_q59941::HandleEffect(), spell_resizer_hit_three_q56034::HandleEffect(), WorldSession::HandleGetGarrisonInfo(), Guild::HandleGuildPartyRequest(), WorldSession::HandleInitiateTradeOpcode(), Guild::HandleInviteMember(), OutdoorPvPHP::HandleKillImpl(), OutdoorPvPNA::HandleKillImpl(), OutdoorPvPZM::HandleKillImpl(), WorldSession::HandleOfferPetition(), WorldSession::HandlePartyInviteOpcode(), OutdoorPvPHP::HandlePlayerEnterZone(), OutdoorPvPNA::HandlePlayerEnterZone(), OutdoorPvPSI::HandlePlayerEnterZone(), OutdoorPvPTF::HandlePlayerEnterZone(), OutdoorPvPZM::HandlePlayerEnterZone(), OutdoorPvPHP::HandlePlayerLeaveZone(), WorldSession::HandlePlayerLogin(), WorldSession::HandleRequestCemeteryList(), spell_midsummer_fling_torch_catch::HandleScriptEffect(), WorldSession::HandleSendMail(), spell_gen_skinning::HandleSkinningEffect(), WorldSession::HandleWhoOpcode(), IncreaseCurrencyCap(), Channel::Invite(), npc_sparring_partner_combat_training::IsSummonedBy(), LootItem::ItemAllowedForPlayer(), npc_leader_northbound::JustAppeared(), boss_shattered_executioner::JustDied(), LoadFromDB(), ModifyCurrency(), npc_mageguard_dalaran::MoveInLineOfSight(), lfg::LFGPlayerScript::OnLogin(), quest_enhanced_combat_tactics::OnQuestStatusChange(), scene_alliance_and_horde_crash::OnSceneComplete(), AreaTrigger_at_legion_teleporter::OnTrigger(), at_bring_your_orphan_to::OnTrigger(), areatrigger_find_the_lost_expedition_follower::OnUnitEnter(), at_northbound_linger::OnUnitEnter(), at_briarpatch_to_plains::OnUnitEnter(), npc_rocket_propelled_warhead::PassengerBoarded(), npc_chicken_cluck::npc_chicken_cluckAI::ReceiveEmote(), RepopAtGraveyard(), RewardReputation(), Satisfy(), spell_summon_sparring_partner::SelectTarget(), spell_summon_survivor_beach::SelectTarget(), spell_summon_combat_trainer::SelectTarget(), spell_summon_leader_northbound::SelectTarget(), spell_summon_guardian_q56034_q59941::SelectTarget(), SendCurrencies(), World::SendGlobalGMMessage(), WorldSession::SendListInventory(), WorldSession::SendSpiritResurrect(), WorldSession::SendTaxiStatus(), Map::SendZoneMessage(), Creature::SendZoneUnderAttackMessage(), SetBattlegroundEntryPoint(), boss_shattered_executioner::SetData(), Channel::SetMode(), Channel::SetOwner(), UpdateArea(), and UpdateLocalChannels().
|
inline |
Definition at line 2407 of file Player.h.
References GetTeamIdForTeam().
Referenced by _LoadHomeBind(), Battlefield::AddOrSetPlayerToCorrectBfGroup(), Battlefield::AskToLeaveQueue(), spell_gen_war_mode_enlisted::CalcWarModeBonus(), MapManager::CreateMap(), MapManager::FindInstanceIdForPlayer(), Battlefield::GetClosestGraveyard(), BattlefieldTB::HandleKill(), spell_dalaran_order_campaign_intro_aura::HandlePeriodic(), Battlefield::HandlePlayerEnterZone(), OutdoorPvP::HandlePlayerEnterZone(), Battlefield::HandlePlayerLeaveZone(), OutdoorPvP::HandlePlayerLeaveZone(), BattlefieldWG::HandlePromotion(), spell_item_ultrasafe_transporter::HandleScript(), spell_item_dimensional_ripper_area52::HandleScript(), Battlefield::HasPlayer(), OutdoorPvP::HasPlayer(), WorldPackets::Query::PlayerGuidLookupData::Initialize(), Battlefield::InvitePlayerToQueue(), Battlefield::InvitePlayerToWar(), SpellArea::IsFitToRequirements(), ConditionMgr::IsPlayerMeetingCondition(), npc_guardian_pavilion::MoveInLineOfSight(), BattlefieldWG::OnCreatureCreate(), npc_wg_spirit_guide::OnGossipHello(), npc_wg_demolisher_engineer::OnGossipSelect(), npc_wg_spirit_guide::OnGossipSelect(), BattlefieldTB::OnPlayerJoinWar(), BattlefieldWG::OnPlayerJoinWar(), Battlefield::PlayerAcceptInviteToQueue(), and Battlefield::PlayerAcceptInviteToWar().
|
inline |
Definition at line 2380 of file Player.h.
Referenced by WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandleSuspendTokenResponse(), and SaveToDB().
|
inline |
Definition at line 2383 of file Player.h.
Referenced by WorldSession::HandleMoveWorldportAck(), and WorldSession::HandleSuspendTokenResponse().
|
inline |
Definition at line 2381 of file Player.h.
Referenced by WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAckOpcode(), WorldSession::HandleSuspendTokenResponse(), TeleportTo(), and Update().
|
inline |
Definition at line 2722 of file Player.h.
Referenced by Pet::SavePetToDB().
|
inline |
Definition at line 2720 of file Player.h.
Referenced by Pet::SavePetToDB().
| float Player::GetTotalBaseModValue | ( | BaseModGroup | modGroup | ) | const |
Definition at line 4986 of file Player.cpp.
References BASEMOD_END, BaseEntity::GetGUID(), WorldObject::GetName(), m_auraBaseFlatMod, m_auraBasePctMod, TC_LOG_ERROR, and Position::ToString().
|
inline |
Definition at line 1331 of file Player.h.
References PLAYED_TIME_TOTAL.
Referenced by _LoadItem(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayedTime(), CriteriaHandler::ModifierSatisfied(), WorldSession::moveItems(), and StoreNewItem().
|
inline |
Definition at line 1640 of file Player.h.
Referenced by Spell::_cast(), Spell::CheckCast(), TradeData::GetTraderData(), WorldSession::HandleSetTradeGoldOpcode(), WorldSession::HandleSetTradeItemOpcode(), WorldSession::HandleUnacceptTradeOpcode(), WorldSession::SendUpdateTrade(), SplitItem(), and SpellCastTargets::Update().
| Player * Player::GetTrader | ( | ) | const |
Definition at line 25825 of file Player.cpp.
References TradeData::GetTrader(), and m_trade.
Referenced by WorldSession::moveItems(), and WorldSession::SendTradeStatus().
| UF::TraitConfig const * Player::GetTraitConfig | ( | int32 | configId | ) | const |
Definition at line 29136 of file Player.cpp.
References m_activePlayerData.
Referenced by _SaveActions(), _SaveTraits(), ApplyTraitConfig(), WorldSession::HandleClassTalentsSetStarterBuildActive(), WorldSession::HandleInspectOpcode(), WorldSession::HandleTraitsCommitConfig(), CriteriaHandler::ModifierSatisfied(), and StartLoadingActionButtons().
| Optional< PlayerSpellTrait > Player::GetTraitInfoForSpell | ( | uint32 | spellId | ) | const |
Definition at line 29477 of file Player.cpp.
References m_spells, and Trinity::Containers::MapGetValuePtr().
|
overrideprotectedvirtual |
Reimplemented from BaseEntity.
Definition at line 3498 of file Player.cpp.
References flags, Unit::GetUpdateFieldFlagsFor(), IsInSameRaidWith(), and UF::PartyMember.
Referenced by BuildValuesUpdateForPlayerWithMask().
Definition at line 9555 of file Player.cpp.
References Unit::CanUseAttackType(), GetAttackBySlot(), ItemTemplate::GetInventoryType(), GetItemByPos(), and Item::GetTemplate().
Referenced by Aura::GetProcEffectMask(), GetShield(), GetWeaponForAttack(), HasItemFitToSpellRequirements(), HasItemTotemCategory(), and ProcessItemCast().
| WorldObject * Player::GetViewpoint | ( | ) | const |
Definition at line 26922 of file Player.cpp.
References ObjectAccessor::GetObjectByTypeMask(), ObjectGuid::IsEmpty(), m_activePlayerData, and TYPEMASK_SEER.
Referenced by CinematicMgr::EndCinematic(), WorldSession::HandleFarSightOpcode(), RemoveFromWorld(), SetClientControl(), StopCastingBindSight(), Map::Update(), and CinematicMgr::UpdateCinematicLocation().
| Item * Player::GetWeaponForAttack | ( | WeaponAttackType | attackType, |
| bool | useable = false |
||
| ) | const |
Definition at line 9577 of file Player.cpp.
References BASE_ATTACK, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, ItemTemplate::GetClass(), GetItemByPos(), Item::GetTemplate(), GetUseableItemByPos(), INVENTORY_SLOT_BAG_0, Item::IsBroken(), ItemTemplate::IsRangedWeapon(), ITEM_CLASS_WEAPON, OFF_ATTACK, and RANGED_ATTACK.
Referenced by spell_sha_lava_lash::AddBonusFlametongueDamage(), Unit::CalcArmorReducedDamage(), CheckAttackFitToAuraRequirement(), Spell::CheckItems(), SpellInfo::CheckTarget(), Unit::GetAPMultiplier(), GetMeleeDamageSchoolMask(), Spell::GetMinMaxRange(), GetUnitConditionVariable(), SetRegularAttackTime(), UpdateAttackPowerAndDamage(), UpdateDamageDoneMods(), and UpdateExpertise().
|
inline |
Definition at line 1624 of file Player.h.
Referenced by Spell::EffectProficiency().
|
inline |
Definition at line 1313 of file Player.h.
Referenced by GiveXP(), WorldSession::HandlePlayerLogin(), WorldSession::LogoutPlayer(), and SaveToDB().
|
inline |
Definition at line 1314 of file Player.h.
Referenced by GiveXP(), WorldSession::HandlePlayerLogin(), and WorldSession::LogoutPlayer().
|
static |
Definition at line 7388 of file Player.cpp.
References CHAR_SEL_CHAR_POSITION_XYZ, CHAR_SEL_CHAR_ZONE, CHAR_UPD_ZONE, CharacterDatabase, ObjectGuid::GetCounter(), PhasingHandler::GetEmptyPhaseShift(), Field::GetFloat(), Field::GetUInt16(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt64(), sMapStore, and sTerrainMgr.
Referenced by Guild::Member::LoadFromDB().
| void Player::GiveLevel | ( | uint8 | level | ) |
Definition at line 2168 of file Player.cpp.
References _ApplyAllLevelScaleItemMods(), ActivelyReachLevel, ARTIFACTS_ALL_WEAPONS_GENERAL_WEAPON_EQUIPPED_PASSIVE, CharacterDatabase, GainLevels, Unit::GetAura(), Unit::GetClass(), Unit::GetCreateMana(), Unit::GetCreateStat(), GetGuild(), GetItemByGuid(), Unit::GetLevel(), DB2Manager::GetNumTalentsAtLevel(), GetPet(), GetPowerTypes(), Unit::GetRace(), GUILD_MEMBER_DATA_LEVEL, WorldPackets::Misc::LevelUpInfo::HealthDelta, InitTalentForLevel(), InitTaxiNodesForLevel(), IsMaxLevel(), LearnDefaultSkills(), LearnSpecializationSpells(), WorldPackets::Misc::LevelUpInfo::Level, m_activePlayerData, m_Played_time, BaseEntity::m_values, MAIL_CREATURE, MAX_STATS, UF::UpdateFieldHolder::ModifyValue(), UF::ActivePlayerData::NextLevelXP, WorldPackets::Misc::LevelUpInfo::NumNewPvpTalentSlots, WorldPackets::Misc::LevelUpInfo::NumNewTalents, PLAYED_TIME_LEVEL, WorldPackets::Misc::LevelUpInfo::PowerDelta, PushQuests(), ReachLevel, ReachMaxLevel, sDB2Manager, SendDirectMessage(), MailDraft::SendMailTo(), Unit::SetCreateHealth(), Unit::SetCreateMana(), Unit::SetCreateStat(), Unit::SetFullHealth(), Unit::SetFullPower(), Unit::SetLevel(), SetToMaxOnLevelUp, BaseEntity::SetUpdateFieldValue(), sObjectMgr, sScriptMgr, StartCriteria(), STAT_STRENGTH, WorldPackets::Misc::LevelUpInfo::StatDelta, PlayerLevelInfo::stats, UpdateAllStats(), UpdateCriteria(), UpdateSkillsForLevel(), and WorldPackets::Misc::LevelUpInfo::Write().
Referenced by GiveXP().
| bool Player::GiveQuestSourceItem | ( | Quest const * | quest | ) |
Definition at line 15845 of file Player.cpp.
References ASSERT_NOTNULL, CanStoreNewItem(), EQUIP_ERR_ITEM_MAX_COUNT, EQUIP_ERR_OK, Quest::GetQuestId(), Quest::GetSrcItemCount(), Quest::GetSrcItemId(), ItemTemplate::GetStartQuest(), NULL_BAG, NULL_SLOT, SendEquipError(), SendNewItem(), sObjectMgr, and StoreNewItem().
Referenced by AddQuest().
Definition at line 2110 of file Player.cpp.
References _restMgr, WorldPackets::Character::LogXPGain::Amount, ObjectGuid::Empty, GetBattlegroundId(), BaseEntity::GetGUID(), Unit::GetLevel(), GetsRecruitAFriendBonus(), BaseEntity::GetTypeId(), GetXP(), GetXPForNextLevel(), GiveLevel(), WorldPackets::Character::LogXPGain::GroupBonus, Creature::hasLootRecipient(), HasPlayerFlag(), Unit::IsAlive(), IsMaxLevel(), LOG_XP_REASON_KILL, LOG_XP_REASON_NO_KILL, WorldPackets::Character::LogXPGain::Original, PLAYER_FLAGS_NO_XP_GAIN, WorldPackets::Character::LogXPGain::Reason, REST_TYPE_XP, SendDirectMessage(), SetXP(), sScriptMgr, Object::ToCreature(), TYPEID_UNIT, WorldPackets::Character::LogXPGain::Victim, and WorldPackets::Character::LogXPGain::Write().
Referenced by KillRewarder::_RewardXP(), CheckAreaExplore(), Spell::EffectGiveExperience(), modify_commandscript::HandleModifyXPCommand(), RewardQuest(), and GameObject::Use().
| void Player::GroupEventHappens | ( | uint32 | questId, |
| WorldObject const * | pEventObject | ||
| ) |
Definition at line 16540 of file Player.cpp.
References AreaExploredOrEventHappens(), GetCorpse(), GetGroup(), and IsAtGroupRewardDistance().
Referenced by SmartAI::EndPath(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), npc_tooga::npc_toogaAI::MoveInLineOfSight(), npc_jungle_punch_target::proceedCwEvent(), SmartAI::StopFollow(), npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI(), npc_snowfall_glade_playmate::npc_snowfall_glade_playmateAI::UpdateAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::UpdateAI(), npc_high_oracle_soo_roo::npc_high_oracle_soo_rooAI::UpdateAI(), npc_elder_kekek::npc_elder_kekekAI::UpdateAI(), npc_the_etymidian::npc_the_etymidianAI::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), npc_brann_hos::UpdateEscortAI(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::WaypointReached(), npc_emily::WaypointReached(), and npc_earthmender_wilda::npc_earthmender_wildaAI::WaypointReached().
| void Player::HandleBaseModFlatValue | ( | BaseModGroup | modGroup, |
| float | amount, | ||
| bool | apply | ||
| ) |
Definition at line 4861 of file Player.cpp.
References BASEMOD_END, FLAT_MOD, BaseEntity::GetGUID(), WorldObject::GetName(), m_auraBaseFlatMod, TC_LOG_ERROR, Position::ToString(), and UpdateBaseModGroup().
Referenced by ApplyEnchantment().
| void Player::HandleFall | ( | ) |
Definition at line 27443 of file Player.cpp.
References CHEAT_GOD, DAMAGE_FALL, EnvironmentalDamage(), MovementInfo::JumpInfo::fallTime, GetCommandStatus(), GetDebugInfo(), Unit::GetHealth(), Unit::GetMaxHealth(), Position::GetPositionZ(), Unit::GetTotalAuraModifier(), Unit::GetTotalAuraMultiplier(), HasAura, Unit::HasAuraType(), Unit::IsAlive(), Unit::isDead(), IsGameMaster(), Unit::IsImmunedToDamage(), MovementInfo::jump, m_lastFallZ, WorldObject::m_movementInfo, Position::m_positionX, Position::m_positionY, Position::m_positionZ, MaxDistFallenWithoutDying, MovementInfo::pos, RATE_DAMAGE_FALL, SPELL_AURA_FEATHER_FALL, SPELL_AURA_FLY, SPELL_AURA_HOVER, SPELL_AURA_MODIFY_FALL_DAMAGE_PCT, SPELL_AURA_SAFE_FALL, SPELL_SCHOOL_MASK_NORMAL, sWorld, TC_LOG_DEBUG, UpdateCriteria(), and WorldObject::UpdateGroundPositionZ().
Referenced by WorldSession::HandleMovementOpcode().
| bool Player::HandlePassiveSpellLearn | ( | SpellInfo const * | spellInfo | ) |
Definition at line 3056 of file Player.cpp.
References Unit::AddAura(), SpellInfo::CasterAuraState, SpellInfo::EquippedItemClass, SpellInfo::GetEffects(), Unit::GetShapeshiftForm(), SpellInfo::HasAttribute(), HasAura, Unit::HasAuraState(), HasItemFitToSpellRequirements(), SpellInfo::Id, SPELL_ATTR2_ALLOW_WHILE_NOT_SHAPESHIFTED_CASTER_FORM, SpellInfo::Stances, and UI64LIT.
Referenced by AddSpell().
|
protected |
The player sobers by 1% every 9 seconds.
Definition at line 822 of file Player.cpp.
References GetDrunkValue(), m_drunkTimer, and SetDrunkValue().
Referenced by Update().
| bool Player::HasAchieved | ( | uint32 | achievementId | ) | const |
Definition at line 27516 of file Player.cpp.
References m_achievementMgr.
Referenced by BuyCurrencyFromVendorSlot(), BuyItemFromVendorSlot(), lfg::LFGMgr::GetLockedDungeons(), npc_tournament_mount::npc_tournament_mountAI::GetPennantSpellId(), spell_gen_pony_mount_check::HandleEffectPeriodic(), CriteriaHandler::ModifierSatisfied(), npc_chromie_start::npc_chromie_startAI::OnGossipHello(), QuestObjectiveCriteriaMgr::RequiredAchievementSatisfied(), and Satisfy().
| bool Player::HasActiveSpell | ( | uint32 | spell | ) | const |
Definition at line 3639 of file Player.cpp.
References m_spells, and PLAYERSPELL_REMOVED.
Referenced by ExecutePendingSpellCastRequest().
|
inline |
Definition at line 2709 of file Player.h.
Referenced by _LoadHomeBind(), WorldSession::HandlePlayerLogin(), LoadCorpse(), LoadFromDB(), ResetSpells(), and ResetTalents().
|
inline |
Definition at line 1306 of file Player.h.
References PLAYER_EXTRA_GRANTED_LEVELS_FROM_RAF.
Referenced by CriteriaHandler::ModifierSatisfied().
|
inline |
Definition at line 1310 of file Player.h.
References PLAYER_EXTRA_FLAG_FREE_TRANSMOG_CLAIMED.
|
inline |
Definition at line 2322 of file Player.h.
References MAPID_INVALID.
Referenced by SmartAI::EndPath(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleQueryCorpseLocation(), and WorldSession::SendSpiritResurrect().
Definition at line 7341 of file Player.cpp.
References _currencyStorage.
Referenced by BuyCurrencyFromVendorSlot(), BuyItemFromVendorSlot(), CanRewardQuest(), Garrison::CheckBuildingPlacement(), Spell::CheckItems(), IsQuestObjectiveComplete(), and CriteriaHandler::ModifierSatisfied().
| bool Player::HasDataFlagAccount | ( | uint32 | dataFlagId | ) | const |
Definition at line 30333 of file Player.cpp.
References m_activePlayerData, PLAYER_DATA_FLAG_ACCOUNT_DATA_INDEX, PLAYER_DATA_FLAG_VALUE_BITS, sPlayerDataFlagAccountStore, PlayerDataFlagAccountEntry::StorageIndex, and UI64LIT.
Referenced by CriteriaHandler::ModifierSatisfied().
| bool Player::HasDataFlagCharacter | ( | uint32 | dataFlagId | ) | const |
Definition at line 30370 of file Player.cpp.
References m_activePlayerData, PLAYER_DATA_FLAG_CHARACTER_DATA_INDEX, PLAYER_DATA_FLAG_VALUE_BITS, sPlayerDataFlagCharacterStore, PlayerDataFlagCharacterEntry::StorageIndex, and UI64LIT.
Referenced by CriteriaHandler::ModifierSatisfied().
|
inline |
Definition at line 1893 of file Player.h.
References HasEnoughMoney().
Referenced by HasEnoughMoney().
|
inline |
Definition at line 1892 of file Player.h.
Referenced by AuctionHouseObject::BuyCommodity(), BuyCurrencyFromVendorSlot(), BuyItemFromVendorSlot(), CanRewardQuest(), Garrison::CheckBuildingPlacement(), Spell::CheckItems(), AuctionHouseObject::CreateCommodityQuote(), DurabilityRepair(), DurabilityRepairAll(), WorldSession::HandleAcceptTradeOpcode(), WorldSession::HandleAlterAppearance(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionSellCommodity(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleBlackMarketBidOnItem(), WorldSession::HandleBuybackItem(), WorldSession::HandleBuyBankTab(), WorldSession::HandleConfirmRespecWipeOpcode(), WorldSession::HandleMailTakeItem(), WorldSession::HandlePetitionBuy(), WorldSession::HandleSendMail(), Guild::HandleSetEmblem(), WorldSession::HandleTransmogOutfitNew(), WorldSession::HandleTransmogOutfitUpdateSlots(), WorldSession::HandleTransmogrifyItems(), IsQuestObjectiveComplete(), OnGossipSelect(), AuctionHouseMgr::PendingAuctionAdd(), AuctionHouseMgr::PendingAuctionProcess(), TradeData::SetMoney(), and Trainer::Trainer::TeachSpell().
| bool Player::HasExploredZone | ( | uint32 | areaId | ) | const |
Definition at line 6307 of file Player.cpp.
References AreaTableEntry::AreaBit, m_activePlayerData, PLAYER_DATA_FLAG_EXPLORED_ZONES_INDEX, PLAYER_EXPLORED_ZONES_BITS, and sAreaTableStore.
Referenced by CriteriaHandler::ModifierSatisfied(), and CriteriaHandler::RequirementsSatisfied().
| bool Player::HasFreeBattlegroundQueueId | ( | ) | const |
Definition at line 25727 of file Player.cpp.
References BATTLEGROUND_QUEUE_NONE, m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by Group::CanJoinBattlegroundQueue(), and WorldSession::HandleBattlemasterJoinOpcode().
| bool Player::HasGemWithLimitCategoryEquipped | ( | uint32 | limitCategory, |
| uint32 | count, | ||
| uint8 | except_slot = NULL_SLOT |
||
| ) | const |
Definition at line 9886 of file Player.cpp.
References Continue, Equipment, ForEachItem(), Item::GetGemCountWithLimitCategory(), Item::GetSlot(), Item::GetTemplate(), and Stop.
Referenced by CanEquipUniqueItem().
Definition at line 9824 of file Player.cpp.
References Bank, Continue, Equipment, ForEachItem(), Object::GetEntry(), Inventory, Item::IsInTrade(), and ReagentBank.
Referenced by BuyCurrencyFromVendorSlot(), BuyItemFromVendorSlot(), Spell::CheckItems(), lfg::LFGMgr::GetLockedDungeons(), go_wind_stone::go_wind_stoneAI::GetSummonItems(), npc_lokhtos_darkbargainer::npc_lokhtos_darkbargainerAI::OnGossipHello(), npc_tyrande_whisperwind::npc_tyrande_whisperwindAI::OnGossipHello(), npc_erozion::OnGossipHello(), go_amberpine_outhouse::go_amberpine_outhouseAI::OnGossipSelect(), npc_chromie_start::npc_chromie_startAI::OnGossipSelect(), go_apexis_relic::go_apexis_relicAI::OnGossipSelect(), go_celestial_planetarium_access::OnReportUse(), npc_lake_frog::ReceiveEmote(), spell_pot_check::RemoveItems(), and Satisfy().
| bool Player::HasItemFitToSpellRequirements | ( | SpellInfo const * | spellInfo, |
| Item const * | ignoreItem = nullptr |
||
| ) | const |
Definition at line 26152 of file Player.cpp.
References EQUIPMENT_SLOT_CHEST, EQUIPMENT_SLOT_FEET, EQUIPMENT_SLOT_HANDS, EQUIPMENT_SLOT_HEAD, EQUIPMENT_SLOT_LEGS, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_SHOULDERS, EQUIPMENT_SLOT_START, EQUIPMENT_SLOT_WAIST, EQUIPMENT_SLOT_WRISTS, SpellInfo::EquippedItemClass, SpellInfo::EquippedItemSubClassMask, SpellInfo::GetEffects(), GetUseableItemByPos(), SpellInfo::HasAttribute(), INVENTORY_SLOT_BAG_0, Item::IsFitToSpellRequirements(), SpellInfo::IsPassive(), ITEM_CLASS_ARMOR, ITEM_CLASS_WEAPON, ITEM_SUBCLASS_ARMOR_SHIELD, SPELL_ATTR8_REQUIRES_EQUIPPED_INV_TYPES, and TC_LOG_ERROR.
Referenced by ApplyItemDependentAuras(), Spell::CheckItems(), HandlePassiveSpellLearn(), and RemoveItemDependentAurasAndCasts().
| bool Player::HasItemOrGemWithIdEquipped | ( | uint32 | item, |
| uint32 | count, | ||
| uint8 | except_slot = NULL_SLOT |
||
| ) | const |
Definition at line 9843 of file Player.cpp.
References Continue, Equipment, ForEachItem(), ItemTemplate::GetGemProperties(), Item::GetSlot(), and sObjectMgr.
Referenced by CanEquipUniqueItem().
| bool Player::HasItemTotemCategory | ( | uint32 | TotemCategory | ) | const |
Definition at line 9983 of file Player.cpp.
References CHILD_EQUIPMENT_SLOT_END, CHILD_EQUIPMENT_SLOT_START, EQUIPMENT_SLOT_START, Unit::GetAuraEffectsByType(), GetBagByPos(), Bag::GetBagSize(), GetInventorySlotCount(), Item::GetTemplate(), ItemTemplate::GetTotemCategory(), GetUseableItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_START, DB2Manager::IsTotemCategoryCompatibleWith(), and SPELL_AURA_PROVIDE_TOTEM_CATEGORY.
Referenced by Spell::CheckItems().
| bool Player::HasItemWithLimitCategoryEquipped | ( | uint32 | limitCategory, |
| uint32 | count, | ||
| uint8 | except_slot = NULL_SLOT |
||
| ) | const |
Definition at line 9867 of file Player.cpp.
References Continue, Equipment, ForEachItem(), Item::GetCount(), Item::GetItemLimitCategory(), Item::GetSlot(), and Stop.
Referenced by CanEquipUniqueItem().
|
inline |
Definition at line 1308 of file Player.h.
References PLAYER_EXTRA_LEVEL_BOOSTED.
Referenced by CriteriaHandler::ModifierSatisfied().
|
inline |
Definition at line 2764 of file Player.h.
Referenced by WorldSession::HandleInstanceLockResponse(), isAllowedToLoot(), WorldSession::LogoutPlayer(), and Update().
|
inline |
Definition at line 2895 of file Player.h.
References flags.
Referenced by WorldObject::GetReactionTo(), GiveXP(), WorldSession::HandleAzeriteEssenceActivateEssence(), WorldSession::HandleLogoutRequestOpcode(), WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandlePlayerLogin(), WorldSession::HandleReclaimCorpse(), WorldPackets::Party::PartyMemberFullState::Initialize(), InitPvP(), WorldObject::IsValidAttackTarget(), LearnPvpTalent(), LearnTalent(), LoadFromDB(), CriteriaHandler::ModifierSatisfied(), PrepareGossipMenu(), SaveToDB(), SetWarModeDesired(), Update(), UpdateMirrorTimers(), UpdatePvPState(), and UpdateWarModeAuras().
|
inline |
Definition at line 2900 of file Player.h.
References flags.
Referenced by WorldSession::HandleInitiateTradeOpcode(), CriteriaHandler::ModifierSatisfied(), and Battleground::RewardReputationToTeam().
|
inline |
Definition at line 2991 of file Player.h.
References flags.
Referenced by CanNeverSee(), WorldSession::HandleTransmogOutfitUpdateSlots(), CriteriaHandler::ModifierSatisfied(), and UpdateInventorySlotCount().
| bool Player::HasPvPForcingQuest | ( | ) | const |
Definition at line 17487 of file Player.cpp.
References GetQuestSlotQuestId(), Quest::HasFlag(), MAX_QUEST_LOG_SIZE, QUEST_FLAGS_FLAGS_PVP, and sObjectMgr.
Referenced by Spell::EffectQuestClear(), WorldSession::HandleQuestLogRemoveQuest(), quest_commandscript::HandleQuestRemove(), RewardQuest(), SkipQuests(), and UpdateHostileAreaState().
| bool Player::HasPvpRulesEnabled | ( | ) | const |
Definition at line 27844 of file Player.cpp.
References HasAura, and SPELL_PVP_RULES_ENABLED.
Referenced by EnablePvpRules(), and UpdateItemLevelAreaBasedScaling().
Definition at line 27799 of file Player.cpp.
References GetPvpTalentMap().
Referenced by LearnPvpTalent().
| bool Player::HasQuestForCurrency | ( | uint32 | currencyId | ) | const |
Definition at line 17004 of file Player.cpp.
References GetDifficultyID(), GetGroup(), WorldObject::GetMap(), InBattleground(), Quest::IsAllowedInRaid(), IsQuestObjectiveCompletable(), IsQuestObjectiveComplete(), Group::isRaidGroup(), m_questObjectiveStatus, Trinity::Containers::MapEqualRange(), Trinity::Containers::MapValue, QUEST_OBJECTIVE_CURRENCY, QUEST_OBJECTIVE_HAVE_CURRENCY, QUEST_OBJECTIVE_OBTAIN_CURRENCY, and sObjectMgr.
Referenced by LootItem::CurrencyAllowedForPlayer(), LootTemplate::LootGroup::HasQuestDropForPlayer(), and LootTemplate::HasQuestDropForPlayer().
| bool Player::HasQuestForGO | ( | int32 | goId | ) | const |
Definition at line 25859 of file Player.cpp.
References ASSERT_NOTNULL, GetDifficultyID(), GetGroup(), WorldObject::GetMap(), InBattleground(), Quest::IsAllowedInRaid(), IsQuestObjectiveCompletable(), IsQuestObjectiveComplete(), m_questObjectiveStatus, Trinity::Containers::MapEqualRange(), QUEST_OBJECTIVE_GAMEOBJECT, and sObjectMgr.
Referenced by GameObject::ActivateToQuest().
| bool Player::HasQuestForItem | ( | uint32 | itemId | ) | const |
Definition at line 16930 of file Player.cpp.
References ASSERT_NOTNULL, GetDifficultyID(), GetGroup(), GetItemCount(), WorldObject::GetMap(), ItemTemplate::GetMaxCount(), ItemTemplate::GetMaxStackSize(), GetQuestObjectiveForItem(), InBattleground(), Quest::IsAllowedInRaid(), Quest::ItemDrop, Quest::ItemDropQuantity, m_QuestStatus, QUEST_ITEM_DROP_COUNT, QUEST_STATUS_INCOMPLETE, and sObjectMgr.
Referenced by LootTemplate::LootGroup::HasQuestDropForPlayer(), LootTemplate::HasQuestDropForPlayer(), and LootItem::ItemAllowedForPlayer().
|
inline |
Definition at line 1304 of file Player.h.
References PLAYER_EXTRA_HAS_RACE_CHANGED.
Referenced by CriteriaHandler::ModifierSatisfied().
| bool Player::HasSkill | ( | uint32 | skill | ) | const |
Definition at line 5899 of file Player.cpp.
References GetSkillRankByPos(), mSkillStatus, and SKILL_DELETED.
Referenced by _LoadSkills(), _LoadTraits(), AddSpell(), CanUnderstandLanguage(), CanUseItem(), FindEquipSlot(), lookup_commandscript::HandleLookupSkillCommand(), spell_gen_skinning::HandleSkinningEffect(), LootItem::ItemAllowedForPlayer(), LearnDefaultSkills(), npc_engineering_tele_trinket::npc_engineering_tele_trinketAI::OnGossipHello(), SetSkill(), UpdateFishingSkill(), and UpdateTraitConfig().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 3626 of file Player.cpp.
References m_spells, and PLAYERSPELL_REMOVED.
Referenced by ActivateTalentGroup(), CollectionMgr::AddMount(), AddSpell(), ApplyArtifactPowerRank(), BuildPlayerRepop(), CanCreateExtraItems(), CanCreatePerfectItem(), npc_engineering_tele_trinket::npc_engineering_tele_trinketAI::CanLearn(), CanRollNeedForItem(), CanUseItem(), CanUseMastery(), spell_dru_travel_form_dummy::CheckCast(), spell_hun_tame_beast::CheckCast(), Spell::CheckCast(), Spell::EffectCastButtons(), EnablePvpRules(), GetExplicitDiscoverySpell(), spell_dru_travel_form::GetFormSpellId(), GetSkillDiscoverySpell(), Trainer::Trainer::GetSpellState(), learn_commandscript::HandleLearnCommand(), lookup_commandscript::HandleLookupSpellCommand(), lookup_commandscript::HandleLookupSpellIdCommand(), quest_taming_the_wilds::HandleQuestStatusChange(), WorldSession::HandleTradeSkillSetFavorite(), learn_commandscript::HandleUnLearnCommand(), HasDiscoveredAllSpells(), HasDiscoveredAnySpell(), InitializeSelfResurrectionSpells(), IsActionButtonDataValid(), ConditionMgr::IsPlayerMeetingCondition(), IsQuestObjectiveComplete(), LootItem::ItemAllowedForPlayer(), LearnQuestRewardedSpells(), LearnTalent(), CriteriaHandler::ModifierSatisfied(), boss_gloomrel::boss_gloomrelAI::OnGossipHello(), RemoveSpell(), CriteriaHandler::RequirementsSatisfied(), SendInitialPacketsBeforeAddToMap(), SpellHistory::StartCooldown(), TeleportTo(), and PlayerAI::VerifySpellCast().
| bool Player::HasSummonPending | ( | ) | const |
Definition at line 26000 of file Player.cpp.
References GameTime::GetGameTime(), and m_summon_expire.
Referenced by Spell::CheckCast(), and SendSummonRequestFrom().
Definition at line 3633 of file Player.cpp.
References GetTalentMap(), and PLAYERSPELL_REMOVED.
Referenced by ActivateTalentGroup(), and LearnTalent().
| bool Player::HasTitle | ( | CharTitlesEntry const * | title | ) | const |
Definition at line 27016 of file Player.cpp.
References HasTitle, and CharTitlesEntry::MaskID.
| bool Player::HasTitle | ( | uint32 | bitIndex | ) | const |
Definition at line 27006 of file Player.cpp.
References m_activePlayerData, and UI64LIT.
Referenced by character_commandscript::HandleCharacterTitlesCommand(), lookup_commandscript::HandleLookupTitleCommand(), titles_commandscript::HandleTitlesRemoveCommand(), titles_commandscript::HandleTitlesSetMaskCommand(), and CriteriaHandler::ModifierSatisfied().
| bool Player::HaveAtClient | ( | BaseEntity const * | u | ) | const |
Definition at line 24425 of file Player.cpp.
References BaseEntity::GetGUID(), and m_clientGUIDs.
Referenced by Group::AddMember(), WorldSession::HandleSendPingUnit(), WorldObjectChangeAccumulator::operator()(), WorldObjectClientDestroyWork::operator()(), Map::SendInitSelf(), Trinity::MessageDistDeliverer< PacketSender >::SendPacket(), Trinity::MessageDistDelivererToHostile< PacketSender >::SendPacket(), BaseEntity::SendUpdateToPlayer(), Unit::SetOwnerGUID(), UpdateVisibilityOf(), and UpdateVisibilityOf().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 1085 of file Player.cpp.
References Unit::Heartbeat(), SendUpdateToOutOfRangeGroupMembers(), UpdateIndoorsOutdoorsAuras(), UpdateTavernRestingState(), and UpdateZoneAndAreaId().
| bool Player::InArena | ( | ) | const |
Definition at line 25780 of file Player.cpp.
References GetBattleground(), and Battleground::isArena().
Referenced by CreateCorpse(), WorldSession::HandleReclaimCorpse(), lfg::LFGMgr::JoinLfg(), achievement_arena_kills::OnCheck(), ProcessItemCast(), RewardHonor(), and ToggleAFK().
|
inline |
Definition at line 2570 of file Player.h.
Referenced by CanUninviteFromGroup(), Spell::CheckCast(), SpellInfo::CheckLocation(), CreateCorpse(), GetQuestObjectiveForItem(), AuraEffect::HandleAuraModEffectImmunity(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleConvertRaidOpcode(), WorldSession::HandleLeaveGroupOpcode(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandleReclaimCorpse(), HasQuestForCurrency(), HasQuestForGO(), HasQuestForItem(), IsAreaThatActivatesPvpTalents(), lfg::LFGMgr::JoinLfg(), Unit::Kill(), RemovePet(), CriteriaHandler::RequirementsSatisfied(), RewardHonor(), TeleportTo(), ToggleAFK(), and UpdateHostileAreaState().
| bool Player::InBattlegroundQueue | ( | bool | ignoreArena = false | ) | const |
Definition at line 25666 of file Player.cpp.
References BATTLEGROUND_AA, BATTLEGROUND_QUEUE_NONE, m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by Group::CanJoinBattlegroundQueue(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlemasterJoinOpcode(), and lfg::LFGMgr::JoinLfg().
| bool Player::InBattlegroundQueueForBattlegroundQueueType | ( | BattlegroundQueueTypeId | bgQueueTypeId | ) | const |
Definition at line 25699 of file Player.cpp.
References GetBattlegroundQueueIndex(), and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by Group::CanJoinBattlegroundQueue(), and WorldSession::HandleBattlemasterJoinOpcode().
| void Player::IncompleteQuest | ( | uint32 | quest_id | ) |
Definition at line 14921 of file Player.cpp.
References FindQuestSlot(), MAX_QUEST_LOG_SIZE, QUEST_STATE_COMPLETE, QUEST_STATUS_INCOMPLETE, RemoveQuestSlotState(), and SetQuestStatus().
Referenced by ItemRemovedQuestCheck(), and UpdateQuestObjectiveProgress().
Increase currency cap.
Definition at line 7186 of file Player.cpp.
References _currencyStorage, ALLIANCE, ASSERT, CURRENCY_MAX_CAP_ANCIENT_MANA, CURRENCY_TYPE_ANCIENT_MANA, DynamicMaximum, PlayerCurrency::EarnedQuantity, PlayerCurrency::Flags, WorldPackets::Misc::SetCurrency::Flags, GetCurrencyMaxQuantity(), CurrencyTypesEntry::GetFlags(), CurrencyTypesEntry::GetScaler(), GetTeam(), HORDE, CurrencyTypesEntry::ID, PlayerCurrency::IncreasedCapQuantity, CurrencyTypesEntry::IsAlliance(), CurrencyTypesEntry::IsHorde(), CurrencyTypesEntry::IsSuppressingChatLog(), CurrencyTypesEntry::IsTrackingQuantity(), WorldPackets::Misc::SetCurrency::MaxQuantity, None, PLAYERCURRENCY_CHANGED, PLAYERCURRENCY_NEW, PlayerCurrency::Quantity, WorldPackets::Misc::SetCurrency::Quantity, sCurrencyTypesStore, SendDirectMessage(), PlayerCurrency::state, WorldPackets::Misc::SetCurrency::SuppressChatLog, PlayerCurrency::TrackedQuantity, WorldPackets::Misc::SetCurrency::TrackedQuantity, WorldPackets::Misc::SetCurrency::Type, PlayerCurrency::WeeklyQuantity, WorldPackets::Misc::SetCurrency::WeeklyQuantity, and WorldPackets::Misc::SetCurrency::Write().
| void Player::IncreaseResetTalentsCostAndCounters | ( | uint32 | lastResetTalentsCost | ) |
Definition at line 3416 of file Player.cpp.
References GameTime::GetGameTime(), MoneySpentOnRespecs, SetTalentResetCost(), SetTalentResetTime(), TotalRespecs, and UpdateCriteria().
Referenced by WorldSession::HandleConfirmRespecWipeOpcode().
| void Player::InitDataForForm | ( | bool | reapplyMods = false | ) |
Definition at line 23380 of file Player.cpp.
References BASE_ATTACK, BASE_ATTACK_TIME, SpellShapeshiftFormEntry::CombatRoundTime, Unit::GetShapeshiftForm(), OFF_ATTACK, RANGED_ATTACK, Unit::SetBaseAttackTime(), SetRegularAttackTime(), sSpellShapeshiftFormStore, UpdateAttackPowerAndDamage(), Unit::UpdateDisplayPower(), and UpdateEquipSpellsAtFormChange().
Referenced by InitStatsForLevel().
| void Player::InitDisplayIds | ( | ) |
Definition at line 23404 of file Player.cpp.
References ChrModelEntry::DisplayID, BaseEntity::GetGUID(), WorldObject::GetName(), GetNativeGender(), Unit::GetRace(), sDB2Manager, Unit::SetDisplayId(), TC_LOG_ERROR, and Position::ToString().
Referenced by Create(), WorldSession::HandleAlterAppearance(), modify_commandscript::HandleModifyGenderCommand(), reset_commandscript::HandleResetStatsOrLevelHelper(), and LoadFromDB().
| void Player::InitializeNewTransmogOutfit | ( | UF::MutableFieldReference< UF::TransmogOutfitData, false > | outfit, |
| uint32 | id, | ||
| WorldPackets::Transmogrification::TransmogOutfitDataInfo const & | outfitData | ||
| ) |
Definition at line 31063 of file Player.cpp.
References BaseEntity::AddDynamicUpdateFieldValue(), UF::TransmogOutfitSlotData::AppearanceDisplayType, ArtifactSpecFour, ArtifactSpecOne, ArtifactSpecThree, ArtifactSpecTwo, AsUnderlyingType(), Disabled, TransmogMgr::GetAllSlots(), TransmogMgr::GetDefaultSituations(), UF::TransmogOutfitDataInfo::Icon, WorldPackets::Transmogrification::TransmogOutfitDataInfo::Icon, UF::TransmogOutfitData::Id, UF::TransmogOutfitSlotData::IllusionDisplayType, UF::TransmogOutfitDataInfo::Name, WorldPackets::Transmogrification::TransmogOutfitDataInfo::Name, UF::TransmogOutfitData::OutfitInfo, UF::TransmogOutfitDataInfo::SetType, WorldPackets::Transmogrification::TransmogOutfitDataInfo::SetType, BaseEntity::SetUpdateFieldValue(), UF::TransmogOutfitSituationInfo::SituationID, UF::TransmogOutfitData::Situations, UF::TransmogOutfitDataInfo::SituationsEnabled, WorldPackets::Transmogrification::TransmogOutfitDataInfo::SituationsEnabled, UF::TransmogOutfitSlotData::Slot, UF::TransmogOutfitSlotData::SlotOption, and UF::TransmogOutfitData::Slots.
Referenced by _LoadTransmogOutfits(), and CreateTransmogOutfit().
| void Player::InitializeSelfResurrectionSpells | ( | ) |
Definition at line 26268 of file Player.cpp.
References AddSelfResSpell(), ClearSelfResSpell(), Unit::GetAuraEffectsByType(), Unit::GetSpellHistory(), SpellHistory::HasCooldown(), HasSpell(), roll_chance(), SPELL_AURA_DUMMY, and SPELLFAMILY_WARLOCK.
Referenced by setDeathState().
| void Player::InitializeSkillFields | ( | ) |
Definition at line 5636 of file Player.cpp.
References Unit::GetClass(), Unit::GetRace(), mSkillStatus, PLAYER_MAX_SKILLS, sDB2Manager, SetSkillLineId(), SetSkillStartingRank(), SKILL_UNCHANGED, and sSkillLineStore.
Referenced by Create(), and LoadFromDB().
| void Player::InitPrimaryProfessions | ( | ) |
Definition at line 24795 of file Player.cpp.
References CONFIG_MAX_PRIMARY_TRADE_SKILL, SetFreePrimaryProfessions(), and sWorld.
Referenced by Create(), and LoadFromDB().
| void Player::InitPvP | ( | ) |
Definition at line 24006 of file Player.cpp.
References HasPlayerFlag(), PLAYER_FLAGS_IN_PVP, and UpdatePvP().
Referenced by LoadFromDB().
| void Player::InitRunes | ( | ) |
Definition at line 27104 of file Player.cpp.
References CLASS_DEATH_KNIGHT, Unit::GetClass(), GetPowerIndex(), m_runes, Unit::m_unitData, BaseEntity::m_values, MAX_POWERS_PER_CLASS, MAX_RUNES, UF::UpdateFieldHolder::ModifyValue(), POWER_RUNES, UF::UnitData::PowerRegenFlatModifier, UF::UnitData::PowerRegenInterruptedFlatModifier, SetRuneCooldown(), and BaseEntity::SetUpdateFieldValue().
Referenced by Create(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsCommand(), and LoadFromDB().
| void Player::InitStatsForLevel | ( | bool | reapplyMods = false | ) |
Definition at line 2306 of file Player.cpp.
References _ApplyAllStatBonuses(), _RemoveAllStatBonuses(), UF::UnitData::AuraState, UF::ActivePlayerData::AuraVision, BASE_ATTACK, BASE_ATTACK_TIME, UF::ActivePlayerData::BlockPercentage, UF::ActivePlayerData::CombatRatings, CONFIG_MAX_PLAYER_LEVEL, UF::ActivePlayerData::CritPercentage, CURRENT_EXPANSION, UF::ActivePlayerData::DodgePercentage, Unit::GetClass(), Unit::GetCreatePowerValue(), Unit::GetCreateStat(), Unit::GetLevel(), GetMaxLevelForExpansion(), Unit::GetMaxPower(), GetPet(), Unit::GetPower(), GetPowerTypes(), Unit::GetRace(), GetSession(), InitDataForForm(), Unit::InitStatBuffMods(), UF::ActivePlayerData::LocalRegenFlags, m_activePlayerData, Unit::m_unitData, BaseEntity::m_values, UF::UnitData::ManaCostModifier, MAX_ATTACK, MAX_COMBAT_RATING, MAX_SPELL_SCHOOL, MAX_STATS, UF::UnitData::MaxDamage, UF::ActivePlayerData::MaxLevel, UF::UnitData::MaxOffHandDamage, UF::UnitData::MaxRangedDamage, UF::UnitData::MinDamage, UF::UnitData::MinOffHandDamage, UF::UnitData::MinRangedDamage, UF::ActivePlayerData::ModDamageDoneNeg, UF::ActivePlayerData::ModDamageDonePercent, UF::ActivePlayerData::ModDamageDonePos, UF::ActivePlayerData::ModHealingDonePercent, UF::ActivePlayerData::ModHealingDonePos, UF::ActivePlayerData::ModHealingPercent, UF::UpdateFieldHolder::ModifyValue(), UF::ActivePlayerData::ModPeriodicHealingDonePercent, UF::ActivePlayerData::ModSpellPowerPercent, UF::ActivePlayerData::ModTargetPhysicalResistance, UF::ActivePlayerData::ModTargetResistance, UF::ActivePlayerData::NextLevelXP, UF::ActivePlayerData::OffhandCritPercentage, UF::ActivePlayerData::ParryPercentage, PLAYER_FLAGS_AFK, PLAYER_FLAGS_DND, PLAYER_FLAGS_GHOST, PLAYER_FLAGS_GM, POWER_ENERGY, POWER_FOCUS, POWER_MANA, POWER_RAGE, POWER_RUNIC_POWER, UF::ActivePlayerData::RangedCritPercentage, RemovePlayerFlag(), Unit::RemovePvpFlag(), Unit::RemoveUnitFlag(), Unit::RemoveVisFlag(), Unit::SetArmor(), Unit::SetAttackPower(), Unit::SetAttackPowerMultiplier(), Unit::SetBaseAttackTime(), Unit::SetBonusResistanceMod(), Unit::SetCreateHealth(), Unit::SetCreateMana(), Unit::SetCreateStat(), Unit::SetFullHealth(), Unit::SetFullPower(), Unit::SetMaxHealth(), Unit::SetMaxPower(), Unit::SetModCastingSpeed(), Unit::SetModCastingSpeedNeg(), Unit::SetModHaste(), Unit::SetModHasteRegen(), Unit::SetModRangedHaste(), Unit::SetModSpellHaste(), Unit::SetModTimeRate(), Unit::SetMountDisplayId(), SetNoRegentCostMask(), SetObjectScale(), Unit::SetPower(), Unit::SetRangedAttackPower(), Unit::SetRangedAttackPowerMultiplier(), Unit::SetResistance(), Unit::SetSpellEmpowerStage(), Unit::SetStat(), Unit::SetUnitFlag(), Unit::SetUnitFlag2(), BaseEntity::SetUpdateFieldValue(), UF::ActivePlayerData::ShieldBlock, sObjectMgr, SPELL_SCHOOL_HOLY, SPELL_SCHOOL_NORMAL, UF::ActivePlayerData::SpellCritPercentage, STAT_AGILITY, STAT_STRENGTH, PlayerLevelInfo::stats, sWorld, UNIT_BYTE2_FLAG_FFA_PVP, UNIT_BYTE2_FLAG_SANCTUARY, UNIT_FLAG2_REGENERATE_POWER, UNIT_FLAG_CONFUSED, UNIT_FLAG_DISARMED, UNIT_FLAG_FLEEING, UNIT_FLAG_IMMUNE_TO_NPC, UNIT_FLAG_IMMUNE_TO_PC, UNIT_FLAG_IN_COMBAT, UNIT_FLAG_LOOTING, UNIT_FLAG_MOUNT, UNIT_FLAG_NON_ATTACKABLE, UNIT_FLAG_NOT_ATTACKABLE_1, UNIT_FLAG_ON_TAXI, UNIT_FLAG_PACIFIED, UNIT_FLAG_PET_IN_COMBAT, UNIT_FLAG_PLAYER_CONTROLLED, UNIT_FLAG_REMOVE_CLIENT_CONTROL, UNIT_FLAG_SKINNABLE, UNIT_FLAG_STUNNED, UNIT_FLAG_UNINTERACTIBLE, UNIT_VIS_FLAGS_ALL, UpdateSkillsForLevel(), UF::ActivePlayerData::WeaponAtkSpeedMultipliers, UF::ActivePlayerData::WeaponDmgMultipliers, and UF::ActivePlayerData::XP.
Referenced by Create(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsCommand(), and LoadFromDB().
| void Player::InitTalentForLevel | ( | ) |
Definition at line 2272 of file Player.cpp.
References Unit::GetClass(), Unit::GetLevel(), DB2Manager::GetNumTalentsAtLevel(), GetPvpTalentMap(), GetSession(), m_activePlayerData, BaseEntity::m_values, MAX_PVP_TALENT_SLOTS, MAX_SPECIALIZATIONS, MAX_TALENT_COLUMNS, MAX_TALENT_TIERS, UF::ActivePlayerData::MaxTalentTiers, MIN_SPECIALIZATION_LEVEL, UF::UpdateFieldHolder::ModifyValue(), rbac::RBAC_PERM_SKIP_CHECK_MORE_TALENTS_THAN_ALLOWED, RemovePvpTalent(), RemoveTalent(), ResetTalents(), ResetTalentSpecialization(), sDB2Manager, SendTalentsInfoData(), BaseEntity::SetUpdateFieldValue(), and sPvpTalentStore.
Referenced by ActivateTalentGroup(), Create(), GiveLevel(), group_commandscript::HandleGroupLevelCommand(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsCommand(), and LoadFromDB().
|
inline |
Definition at line 1278 of file Player.h.
References PlayerTaxi::InitTaxiNodesForLevel().
Referenced by Create(), GiveLevel(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsCommand(), and LoadFromDB().
| bool Player::inRandomLfgDungeon | ( | ) | const |
Definition at line 26678 of file Player.cpp.
References Map::GetDifficultyID(), BaseEntity::GetGUID(), Map::GetId(), WorldObject::GetMap(), and sLFGMgr.
| void Player::InterruptPowerRegen | ( | Powers | power | ) |
Definition at line 1696 of file Player.cpp.
References GetPowerIndex(), m_powerFraction, m_regenInterruptTimestamp, MAX_POWERS_PER_CLASS, GameTime::Now(), and SendDirectMessage().
|
inline |
Definition at line 1291 of file Player.h.
References PLAYER_EXTRA_ACCEPT_WHISPERS.
Referenced by WorldSession::HandleChatCanLocalWhisperTargetRequest(), WorldSession::HandleChatMessage(), message_commandscript::HandleWhispersCommand(), and Whisper().
|
inlinestatic |
Definition at line 1479 of file Player.h.
Referenced by WorldSession::HandleAcceptTradeOpcode().
Definition at line 9709 of file Player.cpp.
References ACCOUNT_BANK_SLOT_BAG_END, and ACCOUNT_BANK_SLOT_BAG_START.
Definition at line 6025 of file Player.cpp.
References ACTION_BUTTON_C, ACTION_BUTTON_CMACRO, ACTION_BUTTON_COMPANION, ACTION_BUTTON_DROPDOWN, ACTION_BUTTON_EQSET, ACTION_BUTTON_ITEM, ACTION_BUTTON_MACRO, ACTION_BUTTON_MOUNT, ACTION_BUTTON_OUTFIT, ACTION_BUTTON_SPELL, DIFFICULTY_NONE, BaseEntity::GetGUID(), WorldObject::GetName(), GetPet(), GetSession(), HasSpell(), MAX_ACTION_BUTTON_ACTION_VALUE, MAX_ACTION_BUTTONS, sDB2Manager, sObjectMgr, MountEntry::SourceSpellID, sSpellMgr, TC_LOG_DEBUG, TC_LOG_ERROR, and Position::ToString().
Referenced by AddActionButton().
| bool Player::IsActiveQuest | ( | uint32 | quest_id | ) | const |
Definition at line 14434 of file Player.cpp.
References m_QuestStatus.
Referenced by quest_commandscript::HandleQuestAdd(), WorldSession::HandleQuestConfirmAccept(), spell_quest_portal_with_condition::HandleScriptEffect(), and QuestMgr::IsQuestLineQuestActiveForPlayer().
|
inline |
Definition at line 2870 of file Player.h.
Referenced by CombatLogSender::operator()().
|
static |
Definition at line 22576 of file Player.cpp.
References CritChance, Duration, EFFECT_0, EFFECT_1, EFFECT_2, EFFECT_3, EFFECT_4, Aura::GetCharges(), SpellInfo::GetDuration(), SpellInfo::GetEffects(), SpellInfo::HasAttribute(), SpellInfo::IsAffectedBySpellMod(), Aura::IsUsingCharges(), Spell::m_appliedMods, SpellModifier::op, SpellModifier::ownerAura, Points, PointsIndex0, PointsIndex1, PointsIndex2, PointsIndex3, PointsIndex4, and SPELL_ATTR0_CU_CAN_CRIT.
Referenced by GetSpellModValues().
|
inline |
Definition at line 1267 of file Player.h.
References PLAYER_FLAGS_AFK.
Referenced by Battleground::AddPlayer(), GetChatFlags(), SocialMgr::GetFriendInfo(), WorldSession::HandleChatMessageAFKOpcode(), WorldSession::HandleChatMessageDNDOpcode(), WorldPackets::Party::PartyMemberFullState::Initialize(), Battlefield::PlayerAcceptInviteToWar(), ToggleAFK(), and Whisper().
| bool Player::isAllowedToLoot | ( | Creature const * | creature | ) | const |
Definition at line 18903 of file Player.cpp.
References FREE_FOR_ALL, BaseEntity::GetGUID(), Creature::GetLootForPlayer(), Loot::GetLootMethod(), GROUP_LOOT, Loot::HasAllowedLooter(), Loot::hasItemFor(), Loot::hasItemForAll(), Loot::hasOverThresholdItem(), HasPendingBind(), Unit::isDead(), ObjectGuid::IsEmpty(), Loot::isLooted(), MASTER_LOOT, NEED_BEFORE_GREED, PERSONAL_LOOT, ROUND_ROBIN, and Loot::roundRobinPlayer.
Referenced by UF::ViewerDependentValue< UF::ObjectData::DynamicFlagsTag >::GetValue(), and AELootCreatureCheck::IsValidLootTarget().
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
Definition at line 24462 of file Player.cpp.
References duel, DUEL_STATE_CHALLENGED, Unit::GetAuraEffectsByType(), AuraEffect::GetSpellInfo(), Unit::IsAlwaysDetectableFor(), IsGroupVisibleFor(), SPELL_ATTR9_MOD_INVIS_INCLUDES_PARTY, SPELL_AURA_MOD_INVISIBILITY, and Object::ToPlayer().
| bool Player::IsAreaThatActivatesPvpTalents | ( | uint32 | areaID | ) | const |
Definition at line 27854 of file Player.cpp.
References FreeForAllPvP, InBattleground(), sAreaTableStore, and sBattlefieldMgr.
Referenced by IsInAreaThatActivatesPvpTalents(), and UpdateArea().
| bool Player::IsAtGroupRewardDistance | ( | WorldObject const * | pRewardSource | ) | const |
Definition at line 26375 of file Player.cpp.
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(), Loot::FillLoot(), GroupEventHappens(), OutdoorPvP::HandleKill(), Battleground::HandleKillPlayer(), WorldSession::HandleLootMoneyOpcode(), RewardPlayerAndGroupAtEvent(), and Group::UpdateLooterGuid().
| bool Player::IsAtRecruitAFriendDistance | ( | WorldObject const * | pOther | ) | const |
Definition at line 26390 of file Player.cpp.
References CONFIG_MAX_RECRUIT_A_FRIEND_DISTANCE, GetCorpse(), WorldObject::GetDistance(), Unit::IsAlive(), WorldObject::IsInMap(), and sWorld.
Referenced by GetsRecruitAFriendBonus().
|
inline |
Definition at line 1511 of file Player.h.
Referenced by WorldSession::HandleSellAllJunkItems().
|
static |
Definition at line 9691 of file Player.cpp.
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, REAGENT_BAG_SLOT_END, and REAGENT_BAG_SLOT_START.
Referenced by _LoadInventory(), _StoreItem(), Item::CanBeTraded(), CanStoreItem_InSpecificSlot(), CanUnequipItem(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleDestroyItemOpcode(), and SwapItem().
|
inlinestatic |
Definition at line 1475 of file Player.h.
References IsBankPos().
Referenced by _LoadInventory(), CanEquipChildItem(), Spell::EffectSummonChangeItem(), EquipChildItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), list_commandscript::HandleListItemCommand(), WorldSession::HandleSwapInvItemOpcode(), WorldSession::HandleSwapItem(), IsBankPos(), SplitItem(), and SwapItem().
Definition at line 9682 of file Player.cpp.
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, and INVENTORY_SLOT_BAG_0.
|
inline |
Definition at line 2385 of file Player.h.
References NotTeleporting.
Referenced by group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleMovementOpcode(), misc_commandscript::HandleRecallCommand(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleGroupCommand(), npc_mageguard_dalaran::MoveInLineOfSight(), ResurrectUsingRequestData(), SaveToDB(), and TransportBase::UpdatePassengerPosition().
|
inline |
Definition at line 2388 of file Player.h.
References DelayedWorldPort, WaitingForSuspendTokenResponse, and WaitingForWorldPortAck.
Referenced by LeaveBattleground(), WorldSession::LogoutPlayer(), Map::RemoveAllPlayers(), SaveToDB(), and UpdateLocalChannels().
|
inline |
Definition at line 2386 of file Player.h.
References DelayedTeleport, and WaitingForTeleportAck.
Referenced by TeleportTo().
|
inlineprivate |
Definition at line 3345 of file Player.h.
Referenced by TeleportTo().
|
inlinestatic |
Definition at line 1477 of file Player.h.
References IsChildEquipmentPos().
Referenced by AutoUnequipChildItem(), CanStoreItem_InSpecificSlot(), and IsChildEquipmentPos().
Definition at line 9704 of file Player.cpp.
References CHILD_EQUIPMENT_SLOT_END, CHILD_EQUIPMENT_SLOT_START, and INVENTORY_SLOT_BAG_0.
| bool Player::IsDailyQuestDone | ( | uint32 | quest_id | ) | const |
Definition at line 25505 of file Player.cpp.
References m_activePlayerData.
|
inline |
Definition at line 2578 of file Player.h.
References HasAura.
Referenced by Group::CanJoinBattlegroundQueue(), WorldSession::HandleBattleFieldPortOpcode(), and WorldSession::HandleBattlemasterJoinOpcode().
|
inline |
Definition at line 1289 of file Player.h.
References PLAYER_FLAGS_DEVELOPER.
Referenced by GetChatFlags(), and misc_commandscript::HandleDevCommand().
|
inline |
Definition at line 1268 of file Player.h.
References PLAYER_FLAGS_DND.
Referenced by GetChatFlags(), SocialMgr::GetFriendInfo(), WorldSession::HandleChatMessageAFKOpcode(), WorldSession::HandleChatMessageDNDOpcode(), WorldPackets::Party::PartyMemberFullState::Initialize(), ToggleDND(), and Whisper().
|
inlinestatic |
Definition at line 1472 of file Player.h.
References IsEquipmentPos().
Referenced by _LoadInventory(), BuyItemFromVendorSlot(), CanEquipChildItem(), CanStoreItem_InSpecificSlot(), CanUnequipItem(), DurabilityRepair(), Spell::EffectSummonChangeItem(), EquipChildItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoEquipItemSlotOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleCancelTempEnchantmentOpcode(), WorldSession::HandleDestroyItemOpcode(), list_commandscript::HandleListItemCommand(), IsEquipmentPos(), SplitItem(), and SwapItem().
Definition at line 9669 of file Player.cpp.
References EQUIPMENT_SLOT_END, INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, PROFESSION_SLOT_END, PROFESSION_SLOT_START, REAGENT_BAG_SLOT_END, and REAGENT_BAG_SLOT_START.
| bool Player::IsFriendlyArea | ( | AreaTableEntry const * | inArea | ) | const |
Definition at line 30414 of file Player.cpp.
References ASSERT, AreaTableEntry::FactionGroupMask, FactionTemplateEntry::FriendGroup, and WorldObject::GetFactionTemplateEntry().
Referenced by CanEnableWarModeInArea(), and IsInFriendlyArea().
|
inline |
Definition at line 1293 of file Player.h.
References PLAYER_EXTRA_GM_ON.
Referenced by Group::_homebindIfInstance(), Unit::Attack(), BuyItemFromVendorSlot(), CombatManager::CanBeginCombat(), InstanceMap::CannotEnter(), CanUnderstandLanguage(), Spell::CheckCast(), CheckInstanceValidity(), SpellInfo::CheckTarget(), instance_violet_hold::instance_violet_hold_InstanceMapScript::CheckWipe(), PlayerAchievementMgr::CompletedAchievement(), ConfirmPendingBind(), InstanceMap::CreateInstanceLockForPlayer(), Creature::ForcePartyMembersIntoCombat(), UF::ViewerDependentValue< UF::ObjectData::DynamicFlagsTag >::GetValue(), UF::ViewerDependentValue< UF::UnitData::FlagsTag >::GetValue(), UF::ViewerDependentValue< UF::UnitData::Flags2Tag >::GetValue(), UF::ViewerDependentValue< UF::UnitData::DisplayIDTag >::GetValue(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleChatMessage(), HandleFall(), mmaps_commandscript::HandleMmapPathCommand(), WorldSession::HandlePartyInviteOpcode(), AuraEffect::HandlePhaseAlwaysVisible(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLogin(), WorldSession::HandleSendMail(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleCommand(), WorldObject::IsValidAssistTarget(), WorldObject::IsValidAttackTarget(), MailSender::MailSender(), boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::MoveInLineOfSight(), npc_mageguard_dalaran::MoveInLineOfSight(), npc_reliquary_combat_trigger::MoveInLineOfSight(), npc_barnes::OnGossipHello(), npc_jaina_proudmoore::npc_jaina_proudmooreAI::OnGossipHello(), npc_thrall::npc_thrallAI::OnGossipHello(), npc_chromie_start::npc_chromie_startAI::OnGossipHello(), at_hor_intro_start::OnTrigger(), at_hor_waves_restarter::OnTrigger(), at_hor_impenetrable_door::OnTrigger(), at_hor_shadow_throne::OnTrigger(), at_hor_uther_quel_delar_start::OnTrigger(), at_tyrannus_event_starter::OnTrigger(), at_kelthuzad_center::OnTrigger(), at_skadi_gaunlet::OnTrigger(), at_ymiron_the_fallen_king_activation::OnUnitEnter(), at_rokmora_intro::OnUnitEnter(), at_fel_lord_caza_intro::OnUnitEnter(), at_azhiccar_intro::OnUnitEnter(), at_orator_conversation_intro< conversationEntry, data >::OnUnitEnter(), at_ulgrax_intro::OnUnitEnter(), at_aqusirr_intro::OnUnitEnter(), at_lord_stormsong_intro::OnUnitEnter(), at_sylvanas_windrunner_introduction::OnUnitEnter(), at_anduin_wrynn_pre_introduction::OnUnitEnter(), at_sporecaller_zancha_boundless_rot::OnUnitEnter(), at_sporecaller_zancha_intro::OnUnitEnter(), Trinity::PlayerAtMinimumRangeAway::operator()(), Map::PlayerCannotEnter(), Satisfy(), WorldSession::SendListInventory(), MailDraft::SendMailTo(), TeleportTo(), at_adarogg_intro::TryHandleOnce(), at_lava_guard_gordoth_intro::TryHandleOnce(), at_rfc_cosmetic_intro::TryHandleOnce(), at_icc_nerubar_broodkeeper::TryHandleOnce(), instance_stratholme::instance_stratholme_InstanceMapScript::Update(), generic_vehicleAI_toc5::generic_vehicleAI_toc5AI::UpdateAI(), boss_warrior_toc5::boss_warrior_toc5AI::UpdateAI(), boss_hunter_toc5::boss_hunter_toc5AI::UpdateAI(), CriteriaHandler::UpdateCriteria(), UpdateHomebindTime(), InstanceMap::UpdateInstanceLock(), InstanceMap::UpdateInstanceLock(), Unit::UpdateLiquidStatusOnPositionChange(), UpdatePvPState(), and Whisper().
|
inline |
Definition at line 1294 of file Player.h.
Referenced by WorldSession::HandleChatCanLocalWhisperTargetRequest(), and WorldSession::HandleChatMessage().
|
inline |
Definition at line 1297 of file Player.h.
References PLAYER_EXTRA_GM_CHAT.
Referenced by GetChatFlags().
|
inline |
Definition at line 1301 of file Player.h.
References PLAYER_EXTRA_GM_INVISIBLE.
Referenced by gm_commandscript::HandleGMVisibleCommand(), Channel::Invite(), and Channel::JoinChannel().
| bool Player::IsGroupVisibleFor | ( | Player const * | p | ) | const |
Definition at line 2042 of file Player.cpp.
References CONFIG_GROUP_VISIBILITY, GetEffectiveTeam(), IsInSameGroupWith(), IsInSameRaidWith(), and sWorld.
Referenced by IsAlwaysDetectableFor().
| bool Player::isHonorOrXPTarget | ( | Unit const * | victim | ) | const |
Definition at line 26295 of file Player.cpp.
References CONFIG_MIN_CREATURE_SCALED_XP_RATIO, Trinity::XP::GetGrayLevel(), Unit::GetLevel(), Unit::GetLevelForTarget(), and Object::ToCreature().
Referenced by AuraEffect::HandleChannelDeathItem(), achievement_killed_exp_or_honor_target::OnCheck(), spell_dk_soul_reaper::RemoveEffect(), and spell_warl_shadowburn::TryEnergize().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 1548 of file Player.cpp.
References SpellEffectInfo::IsAura(), SpellEffectInfo::IsEffect(), Unit::IsImmunedToSpellEffect(), SPELL_AURA_MOD_TAUNT, and SPELL_EFFECT_ATTACK_ME.
Referenced by Spell::SelectEffectTypeImplicitTargets().
| bool Player::IsImmuneToEnvironmentalDamage | ( | ) | const |
Definition at line 612 of file Player.cpp.
References Unit::isTargetableForAttack().
Referenced by EnvironmentalDamage().
| bool Player::IsInAreaThatActivatesPvpTalents | ( | ) | const |
Definition at line 27849 of file Player.cpp.
References WorldObject::GetAreaId(), and IsAreaThatActivatesPvpTalents().
Referenced by DisablePvpRules().
| bool Player::IsInAreaTrigger | ( | AreaTriggerEntry const * | areaTrigger | ) | const |
Definition at line 1909 of file Player.cpp.
References AllowWhileDead, AllowWhileGhost, AreaTriggerEntry::AreaTriggerActionSetID, Box, AreaTriggerEntry::BoxHeight, AreaTriggerEntry::BoxLength, AreaTriggerEntry::BoxWidth, AreaTriggerEntry::BoxYaw, AreaTriggerEntry::ContinentID, CORPSE, Cylinder, DEAD, Unit::getDeathState(), WorldLocation::GetMapId(), WorldObject::GetPhaseShift(), Position::GetPositionZ(), AreaTriggerEntry::GetShapeType(), GameObject::HasFlag(), AreaTriggerPolygon::Height, AreaTriggerEntry::ID, PhasingHandler::InDbPhaseShift(), Position::IsInDist(), Position::IsInPolygon2D(), Position::IsWithinBox(), Position::IsWithinVerticalCylinder(), AreaTriggerEntry::PhaseGroupID, AreaTriggerEntry::PhaseID, AreaTriggerEntry::PhaseUseFlags, Polygon, AreaTriggerEntry::Pos, AreaTriggerEntry::Radius, sAreaTriggerActionSetStore, sObjectMgr, Sphere, AreaTriggerPolygon::Vertices, DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.
Referenced by WorldSession::HandleAreaTriggerOpcode(), and UpdateTavernRestingState().
| bool Player::IsInFriendlyArea | ( | ) | const |
Definition at line 30407 of file Player.cpp.
References WorldObject::GetAreaId(), IsFriendlyArea(), and sAreaTableStore.
| bool Player::IsInGroup | ( | ObjectGuid | groupGuid | ) | const |
Definition at line 24860 of file Player.cpp.
References GetGroup(), and GetOriginalGroup().
Referenced by InstanceMap::CannotEnter().
| bool Player::IsInSameGroupWith | ( | Player const * | p | ) | const |
Definition at line 2053 of file Player.cpp.
References GetGroup(), GetGroup(), and Group::SameSubGroup().
Referenced by IsGroupVisibleFor(), and Unit::IsInPartyWith().
| bool Player::IsInSameRaidWith | ( | Player const * | p | ) | const |
Definition at line 2060 of file Player.cpp.
References GetGroup(), and GetGroup().
Referenced by Spell::CheckCast(), GetUpdateFieldFlagsFor(), WorldSession::HandleQueryCorpseLocation(), WorldSession::HandleQueryCorpseTransport(), WorldSession::HandleQuestConfirmAccept(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), IsGroupVisibleFor(), Unit::IsInRaidWith(), and GameObject::Use().
|
private |
Definition at line 20129 of file Player.cpp.
References CanBeGameMaster(), GetSession(), LANG_INSTANCE_LOGIN_GAMEMASTER_EXCEPTION, and ChatHandler::SendSysMessage().
Referenced by LoadFromDB().
|
inlinestatic |
Definition at line 1470 of file Player.h.
References IsInventoryPos().
Referenced by _LoadInventory(), BuyItemFromVendorSlot(), CanEquipChildItem(), Spell::EffectSummonChangeItem(), EquipChildItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoGuildBankItem(), list_commandscript::HandleListItemCommand(), WorldSession::HandleMergeGuildBankItemWithItem(), WorldSession::HandleMergeItemWithGuildBankItem(), WorldSession::HandleSplitGuildBankItemToInventory(), WorldSession::HandleSplitItemToGuildBank(), WorldSession::HandleStoreGuildBankItem(), WorldSession::HandleSwapItemWithGuildBankItem(), IsInventoryPos(), SplitItem(), and SwapItem().
Definition at line 9654 of file Player.cpp.
References CHILD_EQUIPMENT_SLOT_END, CHILD_EQUIPMENT_SLOT_START, INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, NULL_SLOT, REAGENT_BAG_SLOT_END, and REAGENT_BAG_SLOT_START.
| bool Player::IsInvitedForBattlegroundInstance | ( | uint32 | instanceId | ) | const |
Definition at line 25757 of file Player.cpp.
References m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by WorldSession::HandleMoveWorldportAck().
| bool Player::IsInvitedForBattlegroundQueueType | ( | BattlegroundQueueTypeId | bgQueueTypeId | ) | const |
Definition at line 25691 of file Player.cpp.
References Player::BgBattlegroundQueueID_Rec::invitedToInstance, m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by WorldSession::HandleBattleFieldPortOpcode().
| bool Player::IsInWhisperWhiteList | ( | ObjectGuid | guid | ) |
Definition at line 30053 of file Player.cpp.
References WhisperList.
Referenced by WorldSession::HandleChatCanLocalWhisperTargetRequest(), and WorldSession::HandleChatMessage().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 17925 of file Player.cpp.
References GetSession(), and WorldSession::PlayerLoading().
Referenced by AddSpellMod(), InstanceMap::CannotEnter(), Spell::EffectCreateTraitTreeConfig(), Spell::SendCastResult(), SendKnownSpells(), and Spell::SendMountResult().
| bool Player::IsLockedToDungeonEncounter | ( | uint32 | dungeonEncounterId | ) | const |
Definition at line 21893 of file Player.cpp.
References DungeonEncounterEntry::Bit, InstanceLockData::CompletedEncountersMask, InstanceLock::GetData(), Map::GetEntry(), BaseEntity::GetGUID(), WorldObject::GetMap(), Map::GetMapDifficulty(), sDungeonEncounterStore, and sInstanceLockMgr.
Referenced by CriteriaHandler::ModifierSatisfied(), and InstanceScript::SetBossState().
| bool Player::IsLockedToDungeonEncounter | ( | uint32 | dungeonEncounterId, |
| Difficulty | difficulty | ||
| ) | const |
Definition at line 21906 of file Player.cpp.
References DungeonEncounterEntry::Bit, InstanceLockData::CompletedEncountersMask, InstanceLock::GetData(), BaseEntity::GetGUID(), DungeonEncounterEntry::MapID, sDungeonEncounterStore, and sInstanceLockMgr.
|
inline |
Definition at line 2453 of file Player.h.
References PLAYER_MAX_HONOR_LEVEL.
Referenced by AddHonorXP(), and RestMgr::SetRestBonus().
| bool Player::IsMaxLevel | ( | ) | const |
Definition at line 2267 of file Player.cpp.
References Unit::GetLevel(), and m_activePlayerData.
Referenced by CheckAreaExplore(), GiveLevel(), GiveXP(), CriteriaHandler::ModifierSatisfied(), PrepareGossipMenu(), CriteriaHandler::RequirementsSatisfied(), RewardQuest(), and SendQuestReward().
| bool Player::IsMercenaryForBattlegroundQueueType | ( | BattlegroundQueueTypeId | bgQueueTypeId | ) | const |
Definition at line 25772 of file Player.cpp.
References m_bgBattlegroundQueueID, Player::BgBattlegroundQueueID_Rec::mercenary, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by Battleground::AddPlayer().
| bool Player::IsMirrorTimerActive | ( | MirrorTimerType | type | ) | const |
Definition at line 695 of file Player.cpp.
References m_mirrorTimers.
Referenced by lfg::LFGMgr::TeleportPlayer().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 24430 of file Player.cpp.
References GetSession(), and WorldObject::IsNeverVisibleFor().
| bool Player::IsOutdoorPvPActive | ( | ) | const |
Definition at line 7678 of file Player.cpp.
References Unit::HasInvisibilityAura(), Unit::HasStealthAura(), Unit::HasUnitMovementFlag(), Unit::IsAlive(), Unit::IsInFlight(), Unit::IsPvP(), and MOVEMENTFLAG_FLYING.
Referenced by OPvPCapturePoint::HandleCustomSpell(), and OutdoorPvP::HandleKill().
| bool Player::IsPetNeedBeTemporaryUnsummoned | ( | ) | const |
Definition at line 27992 of file Player.cpp.
References Unit::HasUnitMovementFlag(), Unit::IsAlive(), BaseEntity::IsInWorld(), MOVEMENTFLAG_ADV_FLYING, and MOVEMENTFLAG_FLYING.
Referenced by Pet::LoadPetFromDB(), ResummonBattlePetTemporaryUnSummonedIfAny(), and ResummonPetTemporaryUnSummonedIfAny().
| bool Player::IsQuestCompletedBitSet | ( | uint32 | questId | ) | const |
Definition at line 16484 of file Player.cpp.
References m_activePlayerData, PLAYER_DATA_FLAG_CHARACTER_QUEST_COMPLETED_INDEX, QUESTS_COMPLETED_BITS_PER_BLOCK, sDB2Manager, and UI64LIT.
Referenced by QuestMgr::GetQuestLineStatsForPlayer(), ConditionMgr::IsPlayerMeetingCondition(), QuestMgr::IsQuestLineCompletedByPlayer(), CriteriaHandler::ModifierSatisfied(), and LootItem::TrackingQuestAllowedForPlayer().
| bool Player::IsQuestObjectiveCompletable | ( | uint16 | slot, |
| Quest const * | quest, | ||
| QuestObjective const & | objective | ||
| ) | const |
Definition at line 17100 of file Player.cpp.
References ASSERT, QuestObjective::Flags, Quest::GetObjectives(), Quest::GetQuestId(), IsQuestObjectiveCompletable(), IsQuestObjectiveComplete(), QUEST_OBJECTIVE_FLAG_OPTIONAL, QUEST_OBJECTIVE_FLAG_PART_OF_PROGRESS_BAR, QUEST_OBJECTIVE_FLAG_SEQUENCED, and QuestObjective::QuestID.
Referenced by QuestObjectiveCriteriaMgr::CanUpdateCriteriaTree(), GetActiveQuestObjectiveForSpawnTracking(), GetQuestObjectiveForItem(), GetSpawnTrackingStateByObjective(), WorldSession::HandleAreaTriggerOpcode(), HasQuestForCurrency(), HasQuestForGO(), IsQuestObjectiveCompletable(), IsQuestObjectiveCompletable(), ItemRemovedQuestCheck(), and UpdateQuestObjectiveProgress().
Definition at line 17158 of file Player.cpp.
References FindQuestSlot(), IsQuestObjectiveCompletable(), MAX_QUEST_LOG_SIZE, and sObjectMgr.
| bool Player::IsQuestObjectiveComplete | ( | uint16 | slot, |
| Quest const * | quest, | ||
| QuestObjective const & | objective | ||
| ) | const |
Definition at line 17175 of file Player.cpp.
References QuestObjective::Amount, BaseEntity::GetGUID(), WorldObject::GetName(), GetQuestSlotObjectiveData(), GetReputation(), GetReputationMgr(), HasCurrency(), HasEnoughMoney(), HasSpell(), IsQuestObjectiveProgressBarComplete(), QuestObjective::ObjectID, QUEST_OBJECTIVE_AREA_TRIGGER_ENTER, QUEST_OBJECTIVE_AREA_TRIGGER_EXIT, QUEST_OBJECTIVE_AREATRIGGER, QUEST_OBJECTIVE_CRITERIA_TREE, QUEST_OBJECTIVE_CURRENCY, QUEST_OBJECTIVE_DEFEATBATTLEPET, QUEST_OBJECTIVE_GAMEOBJECT, QUEST_OBJECTIVE_HAVE_CURRENCY, QUEST_OBJECTIVE_INCREASE_REPUTATION, QUEST_OBJECTIVE_ITEM, QUEST_OBJECTIVE_KILL_WITH_LABEL, QUEST_OBJECTIVE_LEARNSPELL, QUEST_OBJECTIVE_MAX_REPUTATION, QUEST_OBJECTIVE_MIN_REPUTATION, QUEST_OBJECTIVE_MONEY, QUEST_OBJECTIVE_MONSTER, QUEST_OBJECTIVE_OBTAIN_CURRENCY, QUEST_OBJECTIVE_PLAYERKILLS, QUEST_OBJECTIVE_PROGRESS_BAR, QUEST_OBJECTIVE_TALKTO, QUEST_OBJECTIVE_WINPETBATTLEAGAINSTNPC, QUEST_OBJECTIVE_WINPVPPETBATTLES, QuestObjective::QuestID, TC_LOG_ERROR, Position::ToString(), and QuestObjective::Type.
Referenced by CanCompleteQuest(), GetQuestObjectiveForItem(), GetSpawnTrackingStateByObjective(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleQuestLogRemoveQuest(), HasQuestForCurrency(), HasQuestForGO(), IsQuestObjectiveCompletable(), IsQuestObjectiveComplete(), CriteriaHandler::ModifierSatisfied(), at_altar_altercation_reach_altar::OnUnitEnter(), and UpdateQuestObjectiveProgress().
Definition at line 17234 of file Player.cpp.
References FindQuestSlot(), IsQuestObjectiveComplete(), MAX_QUEST_LOG_SIZE, and sObjectMgr.
Definition at line 17251 of file Player.cpp.
References Quest::GetObjectives(), GetQuestSlotObjectiveData(), and QUEST_OBJECTIVE_FLAG_PART_OF_PROGRESS_BAR.
Referenced by IsQuestObjectiveComplete(), and UpdateQuestObjectiveProgress().
| bool Player::IsQuestRewarded | ( | uint32 | quest_id | ) | const |
Definition at line 24839 of file Player.cpp.
References m_RewardedQuests.
Referenced by Vignettes::CanSee(), GetQuestRewardStatus(), GetSpawnTrackingStateByObjective(), WorldSession::MeetsChrCustomizationReq(), CriteriaHandler::ModifierSatisfied(), and SatisfyQuestDependentPreviousQuests().
|
inline |
Definition at line 2863 of file Player.h.
References PLAYER_FLAGS_EX_REAGENT_BANK_UNLOCKED.
|
inline |
Definition at line 2087 of file Player.h.
Referenced by Spell::EffectResurrect(), Spell::EffectResurrectNew(), Spell::EffectResurrectWithAura(), SetResurrectRequestData(), and npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI().
|
inline |
| bool Player::IsSpellFitByClassAndRace | ( | uint32 | spell_id | ) | const |
Definition at line 25830 of file Player.cpp.
References Unit::GetClass(), Unit::GetClassMask(), Unit::GetRace(), sDB2Manager, and sSpellMgr.
Referenced by Trainer::Trainer::GetSpellState(), learn_commandscript::HandleLearnMySpellsCommand(), ResetSpells(), and Trainer::Trainer::SendSpells().
|
inline |
Definition at line 1299 of file Player.h.
References PLAYER_EXTRA_TAXICHEAT.
Referenced by cheat_commandscript::HandleCheatStatusCommand(), cheat_commandscript::HandleTaxiCheatCommand(), and WorldSession::SendTaxiMenu().
| bool Player::isTotalImmune | ( | ) | const |
Definition at line 26992 of file Player.cpp.
References Unit::GetAuraEffectsByType(), SPELL_AURA_SCHOOL_IMMUNITY, and SPELL_SCHOOL_MASK_ALL.
Referenced by CanUseBattlegroundObject().
| bool Player::IsTwoHandUsed | ( | ) | const |
Definition at line 13184 of file Player.cpp.
References CanTitanGrip(), EQUIPMENT_SLOT_MAINHAND, ItemTemplate::GetClass(), ItemTemplate::GetInventoryType(), GetItemByPos(), ItemTemplate::GetSubClass(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, INVTYPE_2HWEAPON, INVTYPE_RANGED, INVTYPE_RANGEDRIGHT, ITEM_CLASS_WEAPON, and ITEM_SUBCLASS_WEAPON_WAND.
Referenced by CanEquipItem(), and FindEquipSlot().
| bool Player::IsUseEquipedWeapon | ( | bool | mainhand | ) | const |
Definition at line 13114 of file Player.cpp.
References Unit::HasUnitFlag(), Unit::IsInFeralForm(), and UNIT_FLAG_DISARMED.
Referenced by CastItemCombatSpell(), and SpellInfo::CheckTarget().
| bool Player::isUsingLfg | ( | ) | const |
Definition at line 26673 of file Player.cpp.
References BaseEntity::GetGUID(), lfg::LFG_STATE_NONE, and sLFGMgr.
Referenced by Group::CanJoinBattlegroundQueue().
|
inline |
Definition at line 2739 of file Player.h.
Referenced by Item::GetItemLevel(), and UpdateAverageItemLevelEquipped().
| bool Player::IsUsingTwoHandedWeaponInOneHand | ( | ) | const |
Definition at line 13196 of file Player.cpp.
References EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, ItemTemplate::GetInventoryType(), GetItemByPos(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, and INVTYPE_2HWEAPON.
Referenced by CheckTitanGripPenalty().
|
inlinestatic |
Definition at line 1860 of file Player.h.
References Class, and CLASSMASK_ALL_PLAYABLE.
|
inlinestatic |
Definition at line 1859 of file Player.h.
References GENDER_FEMALE.
Referenced by Create(), WorldSession::HandleRandomizeCharNameOpcode(), ConditionMgr::isConditionTypeValid(), and LoadFromDB().
|
inline |
Definition at line 1481 of file Player.h.
References IsValidPos().
Referenced by WorldSession::HandleAutoStoreBagItemOpcode(), misc_commandscript::HandleItemMoveCommand(), WorldSession::HandleSplitItemOpcode(), WorldSession::HandleSwapInvItemOpcode(), WorldSession::HandleSwapItem(), and IsValidPos().
Definition at line 9716 of file Player.cpp.
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, EQUIPMENT_SLOT_END, GetBagByPos(), GetInventorySlotCount(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_START, NULL_BAG, NULL_SLOT, PROFESSION_SLOT_END, PROFESSION_SLOT_START, REAGENT_BAG_SLOT_END, and REAGENT_BAG_SLOT_START.
|
inlinestatic |
Definition at line 1861 of file Player.h.
References Trinity::RaceMask< T, N >::HasRace(), Race, and RACEMASK_ALL_PLAYABLE.
Referenced by WorldSession::HandleRandomizeCharNameOpcode().
| bool Player::IsVisibleGloballyFor | ( | Player const * | player | ) | const |
Definition at line 24478 of file Player.cpp.
References WorldSession::GetSecurity(), GetSession(), AccountMgr::IsPlayerAccount(), and Unit::IsVisible().
Referenced by SocialMgr::BroadcastToFriendListers(), SocialMgr::GetFriendInfo(), WorldSession::HandleAddFriendOpcode(), Channel::List(), and ChatHandler::needReportToTarget().
|
inline |
Definition at line 3026 of file Player.h.
References PLAYER_FLAGS_WAR_MODE_ACTIVE.
|
inline |
Definition at line 3025 of file Player.h.
References PLAYER_FLAGS_WAR_MODE_DESIRED.
Referenced by SetWarModeDesired(), and UpdateWarModeAuras().
|
inline |
Definition at line 3027 of file Player.h.
References PLAYER_LOCAL_FLAG_WAR_MODE.
Referenced by UpdateHostileAreaState().
| void Player::ItemAddedQuestCheck | ( | uint32 | entry, |
| uint32 | count, | ||
| Optional< bool > | boundItemFlagRequirement = {}, |
||
| bool * | hadBoundItemObjective = nullptr |
||
| ) |
Definition at line 16566 of file Player.cpp.
References ItemTemplate::Effects, ObjectGuid::Empty, ItemTemplate::GetId(), QUEST_OBJECTIVE_FLAG_2_QUEST_BOUND_ITEM, QUEST_OBJECTIVE_ITEM, ItemTemplate::QuestLogItemId, SendQuestUpdateAddItem(), sObjectMgr, ItemEffectEntry::TriggerType, and UpdateQuestObjectiveProgress().
Referenced by Spell::EffectSummonChangeItem(), EquipNewItem(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleBuybackItem(), MoveItemToInventory(), StoreNewItem(), and SwapItem().
Definition at line 16607 of file Player.cpp.
References GetItemCount(), IncompleteQuest(), IsQuestObjectiveCompletable(), m_questObjectiveStatus, Trinity::Containers::MapEqualRange(), QUEST_OBJECTIVE_ITEM, SetQuestObjectiveData(), sObjectMgr, and UpdateVisibleObjectInteractions().
Referenced by DestroyItem(), DestroyItemCount(), DestroyItemCount(), WorldSession::HandleAuctionSellCommodity(), WorldSession::HandleAutoBankItemOpcode(), MoveItemFromInventory(), SellItemToVendor(), and SwapItem().
| void Player::JoinedChannel | ( | Channel * | c | ) |
Definition at line 4753 of file Player.cpp.
References m_channels.
Referenced by Channel::JoinChannel().
| void Player::KillCreditCriteriaTreeObjective | ( | QuestObjective const & | questObjective | ) |
Definition at line 16680 of file Player.cpp.
References QuestObjective::ObjectID, QUEST_OBJECTIVE_CRITERIA_TREE, and UpdateQuestObjectiveProgress().
Referenced by QuestObjectiveCriteriaMgr::CompletedObjective().
| void Player::KillCreditGO | ( | uint32 | entry, |
| ObjectGuid | guid = ObjectGuid::Empty |
||
| ) |
Definition at line 16670 of file Player.cpp.
References QUEST_OBJECTIVE_GAMEOBJECT, and UpdateQuestObjectiveProgress().
Referenced by GameObject::Use().
| void Player::KilledMonster | ( | Creature const * | creature | ) |
Definition at line 16630 of file Player.cpp.
References ASSERT, ObjectGuid::Empty, CreatureTemplate::Entry, Creature::GetCreatureTemplate(), BaseEntity::GetGUID(), Creature::GetLabels(), CreatureTemplate::KillCredit, KilledMonsterCredit(), MAX_KILL_CREDIT, QUEST_OBJECTIVE_KILL_WITH_LABEL, and UpdateQuestObjectiveProgress().
Referenced by KillRewarder::_RewardKillCredit().
| void Player::KilledMonsterCredit | ( | uint32 | entry, |
| ObjectGuid | guid = ObjectGuid::Empty |
||
| ) |
Definition at line 16646 of file Player.cpp.
References Map::GetCreature(), Object::GetEntry(), WorldObject::GetMap(), ObjectGuid::IsEmpty(), KillCreature, KillNPC, QUEST_OBJECTIVE_MONSTER, StartCriteria(), UpdateCriteria(), and UpdateQuestObjectiveProgress().
Referenced by Scripts::Pandaria::TheWanderingIsle::npc_li_fei_combat::DamageTaken(), Spell::EffectKillCreditPersonal(), OutdoorPvPSI::HandleAreaTrigger(), OutdoorPvPNA::HandleKillImpl(), spell_give_me_sight_beyond_sight_periodic::HandlePeriodic(), Scripts::EasternKingdoms::Westfall::spell_westfall_wake_harvest_golem::HandleScriptEffect(), spell_borean_tundra_neural_needle::HandleWhisper(), KilledMonster(), npc_jayce_darkweaver_cryptic_hollow_private::OnChannelFinished(), npc_claw::OnGossipHello(), npc_colonel_jules::npc_colonel_julesAI::OnGossipHello(), go_veil_skith_cage::go_veil_skith_cageAI::OnGossipHello(), npc_jayce_darkweaver_cryptic_hollow::OnGossipSelect(), npc_cyrus_crestfall_old_knight::OnGossipSelect(), npc_7th_legion_magus_sanctum_of_the_sages::OnGossipSelect(), Scripts::Kalimdor::Durotar::npc_darkspear_jailor::OnGossipSelect(), conversation_allied_race_dk_defender_of_azeroth::OnLineStarted(), conversation_burden_of_proof_speak_with_constable::OnStart(), at_enter_the_illidari_ashtongue_allari_killcredit::OnUnitEnter(), areatrigger_stormwind_teleport_unit::OnUnitEnter(), conversation_an_unlikely_informant::OnUpdate(), Scripts::EasternKingdoms::StormwindCity::conversation_start_council_tides_of_war::OnUpdate(), conversation_boralus_hub_tour::OnUpdate(), conversation_cyrus_crestfall_shaking_hands::OnUpdate(), Scripts::Pandaria::TheWanderingIsle::npc_delivery_cart::PassengerBoarded(), SmartScript::ProcessAction(), RewardPlayerAndGroupAtEvent(), conversation_burden_of_proof_base::ScheduleEvents(), Scripts::Kalimdor::Durotar::npc_lazy_peon::npc_lazy_peonAI::SpellHit(), npc_sparring_partner_enhanced_combat_training_warrior::SpellHit(), npc_sparring_partner_enhanced_combat_training_paladin::SpellHit(), npc_sparring_partner_enhanced_combat_training_rogue::SpellHit(), npc_sparring_partner_enhanced_combat_training_priest::SpellHit(), npc_sparring_partner_enhanced_combat_training_shaman::SpellHit(), npc_sparring_partner_enhanced_combat_training_mage::SpellHit(), npc_sparring_partner_enhanced_combat_training_warlock::SpellHit(), npc_sparring_partner_enhanced_combat_training_monk::SpellHit(), npc_sparring_partner_enhanced_combat_training_druid::SpellHit(), npc_drustvar_frightend_woodsman::SpellHit(), npc_jungle_punch_target::SpellHit(), npc_danica_the_reclaimer::WaypointPathEnded(), and Scripts::KhazAlgar::CampaignsVisionsOfAShadowedSun::npc_vereesa_windrunner_oztan_isle_private::WaypointPathEnded().
| void Player::KilledPlayerCredit | ( | ObjectGuid | victimGuid | ) |
Definition at line 16664 of file Player.cpp.
References KillPlayer, QUEST_OBJECTIVE_PLAYERKILLS, StartCriteria(), and UpdateQuestObjectiveProgress().
Referenced by KillRewarder::_RewardPlayer().
| void Player::KillPlayer | ( | ) |
Definition at line 4355 of file Player.cpp.
References CalculateCorpseReclaimDelay(), CORPSE, corpseReclaimDelay, WorldLocation::GetMapId(), Unit::GetMotionMaster(), WorldObject::GetTransport(), Unit::HasAuraType(), IN_MILLISECONDS, Unit::IsFlying(), m_deathTimer, MINUTE, MotionMaster::MoveFall(), PLAYER_LOCAL_FLAG_RELEASE_TIMER, RemovePlayerLocalFlag(), Object::ReplaceAllDynamicFlags(), SendCorpseReclaimDelay(), setDeathState(), SetPlayerLocalFlag(), Unit::SetRooted(), sMapStore, SPELL_AURA_PREVENT_RESURRECTION, UNIT_DYNFLAG_NONE, UpdateCorpseReclaimDelay(), and UpdateObjectVisibility().
Referenced by WorldSession::HandleMovementOpcode(), WorldSession::HandleRepopRequest(), WorldSession::LogoutPlayer(), and Update().
| void Player::LearnCustomSpells | ( | ) |
Definition at line 25233 of file Player.cpp.
References AddSpell(), ASSERT, CONFIG_START_ALL_SPELLS, PlayerInfo::customSpells, Unit::GetClass(), BaseEntity::GetGUID(), WorldObject::GetName(), Unit::GetRace(), BaseEntity::IsInWorld(), LearnSpell(), sObjectMgr, sWorld, TC_LOG_DEBUG, and Position::ToString().
Referenced by Create(), learn_commandscript::HandleLearnAllDefaultCommand(), LoadFromDB(), and ResetSpells().
| void Player::LearnDefaultSkill | ( | SkillRaceClassInfoEntry const * | rcInfo | ) |
Definition at line 25271 of file Player.cpp.
References CLASS_DEATH_KNIGHT, SkillRaceClassInfoEntry::Flags, Unit::GetClass(), Unit::GetLevel(), Unit::GetMaxSkillValueForLevel(), GetSkillRangeType(), SkillTiersEntry::GetValueForTierIndex(), SetSkill(), SKILL_FLAG_ALWAYS_MAX_VALUE, SKILL_RANGE_LANGUAGE, SKILL_RANGE_LEVEL, SKILL_RANGE_MONO, SKILL_RANGE_RANK, SkillRaceClassInfoEntry::SkillID, SkillRaceClassInfoEntry::SkillTierID, and sObjectMgr.
Referenced by AddSpell(), and LearnDefaultSkills().
| void Player::LearnDefaultSkills | ( | ) |
Definition at line 25253 of file Player.cpp.
References ASSERT, Unit::GetClass(), Unit::GetLevel(), Unit::GetRace(), HasSkill(), LearnDefaultSkill(), SkillRaceClassInfoEntry::MinLevel, SkillRaceClassInfoEntry::SkillID, PlayerInfo::skills, and sObjectMgr.
Referenced by Create(), GiveLevel(), learn_commandscript::HandleLearnAllDefaultCommand(), LoadFromDB(), and ResetSpells().
| TalentLearnResult Player::LearnPvpTalent | ( | uint32 | talentID, |
| uint8 | slot, | ||
| int32 * | spellOnCooldown | ||
| ) |
Definition at line 27673 of file Player.cpp.
References AddPvpTalent(), GetActiveTalentGroup(), Unit::GetClass(), Unit::GetLevel(), GetPrimarySpecialization(), GetPvpTalentMap(), Unit::GetSpellHistory(), HasPlayerFlag(), HasPvpTalent(), Unit::HasUnitFlag2(), Unit::isDead(), Unit::IsInCombat(), ConditionMgr::IsPlayerMeetingCondition(), PvpTalentEntry::LevelRequired, MAX_PVP_TALENT_SLOTS, PLAYER_FLAGS_RESTING, PvpTalentEntry::PlayerConditionID, PvpTalentEntry::PvpTalentCategoryID, RemovePvpTalent(), sDB2Manager, PvpTalentEntry::SpecID, PvpTalentEntry::SpellID, sPvpTalentCategoryStore, sPvpTalentStore, TALENT_FAILED_AFFECTING_COMBAT, TALENT_FAILED_CANT_DO_THAT_RIGHT_NOW, TALENT_FAILED_CANT_REMOVE_TALENT, TALENT_FAILED_REST_AREA, TALENT_FAILED_UNKNOWN, TALENT_LEARN_OK, and UNIT_FLAG2_ALLOW_CHANGING_TALENTS.
Referenced by WorldSession::HandleLearnPvpTalentsOpcode().
| void Player::LearnQuestRewardedSpells | ( | ) |
Definition at line 25372 of file Player.cpp.
References LearnQuestRewardedSpells(), m_RewardedQuests, and sObjectMgr.
Referenced by _LoadQuestStatusRewarded(), learn_commandscript::HandleLearnAllDefaultCommand(), learn_commandscript::HandleLearnMyQuestsCommand(), LearnQuestRewardedSpells(), and ResetSpells().
| void Player::LearnQuestRewardedSpells | ( | Quest const * | quest | ) |
Definition at line 25312 of file Player.cpp.
References CastSpell, DIFFICULTY_NONE, EFFECT_0, SpellInfo::GetEffect(), SpellInfo::GetEffects(), Quest::GetRewSpell(), Quest::GetSrcSpell(), HasSpell(), LearnedOrAutomaticCharLevel, Unit::RemoveAurasDueToSpell(), SPELL_EFFECT_LEARN_SPELL, sSpellMgr, and SpellEffectInfo::TriggerSpell.
Definition at line 25385 of file Player.cpp.
References AddSpell(), AutomaticCharLevel, AutomaticSkillRank, SpellInfo::BaseLevel, CONDITION_SOURCE_TYPE_SKILL_LINE_ABILITY, DIFFICULTY_NONE, Unit::GetClassMask(), Unit::GetLevel(), BaseEntity::IsInWorld(), ConditionMgr::IsPlayerMeetingCondition(), LearnedOrAutomaticCharLevel, LearnSpell(), RemoveSpell(), sConditionMgr, sDB2Manager, SpellInfo::ShowFutureSpellPlayerConditionID, SpellInfo::SpellLevel, and sSpellMgr.
Referenced by _LoadSkills(), SetSkill(), spell_gen_battleground_mercenary_shapeshift::UpdateRacials(), UpdateSkillPro(), and UpdateSkillsForLevel().
| void Player::LearnSpecializationSpells | ( | ) |
Definition at line 30633 of file Player.cpp.
References AddOverrideSpell(), AsUnderlyingType(), DIFFICULTY_NONE, Unit::GetLevel(), GetPrimarySpecialization(), LearnSpell(), SpecializationSpellsEntry::OverridesSpellID, sDB2Manager, SpecializationSpellsEntry::SpellID, SpellInfo::SpellLevel, and sSpellMgr.
Referenced by ActivateTalentGroup(), GiveLevel(), LoadFromDB(), and ResetTalentSpecialization().
| void Player::LearnSpell | ( | uint32 | spell_id, |
| bool | dependent, | ||
| int32 | fromSkill = 0, |
||
| bool | suppressMessaging = false, |
||
| Optional< PlayerSpellTrait > | trait = {} |
||
| ) |
Definition at line 3083 of file Player.cpp.
References AddSpell(), WorldPackets::Spells::LearnedSpells::ClientLearnedSpellData, WorldPackets::Spells::LearnedSpellInfo::Favorite, BaseEntity::IsInWorld(), LearnSpell(), m_spells, QUEST_OBJECTIVE_LEARNSPELL, SendDirectMessage(), WorldPackets::Spells::LearnedSpellInfo::SpellID, sSpellMgr, WorldPackets::Spells::LearnedSpells::SuppressMessaging, WorldPackets::Spells::LearnedSpellInfo::TraitDefinitionID, UpdateQuestObjectiveProgress(), and WorldPackets::Spells::LearnedSpells::Write().
Referenced by ActivateTalentGroup(), CollectionMgr::AddMount(), AddPvpTalent(), AddSpell(), AddTalent(), ApplyAzeriteEssencePower(), ApplyTraitEntry(), Spell::EffectApplyMountEquipment(), Spell::EffectLearnSpell(), learn_commandscript::HandleLearnAllGMCommand(), learn_commandscript::HandleLearnAllLangCommand(), learn_commandscript::HandleLearnAllTalentsCommand(), learn_commandscript::HandleLearnCommand(), learn_commandscript::HandleLearnDebugSpellsCommand(), learn_commandscript::HandleLearnMySpellsCommand(), learn_commandscript::HandleLearnSkillRecipesHelper(), AuraEffect::HandleLearnSpell(), spell_gen_profession_research::HandleScript(), spell_item_book_of_glyph_mastery::HandleScript(), LearnCustomSpells(), LearnSkillRewardedSpells(), LearnSpecializationSpells(), LearnSpell(), LoadFromDB(), spell_hun_bleak_arrows::ReplaceAutoShot(), spell_hun_bleak_arrows::RestoreAutoShot(), Guild::SendLoginInfo(), Trainer::Trainer::TeachSpell(), TogglePvpTalents(), and UpdateCraftSkill().
| TalentLearnResult Player::LearnTalent | ( | uint32 | talentId, |
| int32 * | spellOnCooldown | ||
| ) |
Definition at line 27559 of file Player.cpp.
References AddTalent(), TalentEntry::ClassID, TalentEntry::ColumnIndex, GetActiveTalentGroup(), Unit::GetClass(), GetPrimarySpecialization(), Unit::GetSpellHistory(), SpellHistory::HasCooldown(), HasPlayerFlag(), HasSpell(), HasTalent(), Unit::HasUnitFlag2(), Unit::isDead(), Unit::IsInCombat(), m_activePlayerData, MAX_TALENT_COLUMNS, None, PLAYER_FLAGS_RESTING, RemoveTalent(), sDB2Manager, TalentEntry::SpecID, TalentEntry::SpellID, sTalentStore, TALENT_FAILED_AFFECTING_COMBAT, TALENT_FAILED_CANT_DO_THAT_RIGHT_NOW, TALENT_FAILED_CANT_REMOVE_TALENT, TALENT_FAILED_NO_PRIMARY_TREE_SELECTED, TALENT_FAILED_REST_AREA, TALENT_FAILED_UNKNOWN, TALENT_LEARN_OK, TC_LOG_DEBUG, TC_LOG_ERROR, TalentEntry::TierID, and UNIT_FLAG2_ALLOW_CHANGING_TALENTS.
Referenced by WorldSession::HandleLearnTalentsOpcode().
|
static |
Definition at line 23068 of file Player.cpp.
References CharacterCacheEntry::ArenaTeamId, ArenaTeam::DelMember(), MAX_ARENA_SLOT, sArenaTeamMgr, and sCharacterCache.
Referenced by DeleteFromDB(), and WorldSession::HandleCharRaceOrFactionChangeCallback().
| void Player::LeaveBattleground | ( | bool | teleportToEntryPoint = true, |
| bool | withoutDeserterDebuff = false |
||
| ) |
Definition at line 24282 of file Player.cpp.
References CastSpell, CONFIG_BATTLEGROUND_CAST_DESERTER, DELAYED_SPELL_CAST_DESERTER, GetBattleground(), BaseEntity::GetGUID(), GetSession(), Battleground::GetStatus(), Battleground::isBattleground(), IsBeingTeleportedFar(), rbac::RBAC_PERM_NO_BATTLEGROUND_DESERTER_DEBUFF, Battleground::RemovePlayerAtLeave(), ScheduleDelayedOperation(), STATUS_IN_PROGRESS, STATUS_WAIT_JOIN, and sWorld.
Referenced by misc_commandscript::HandleAppearCommand(), AuraEffect::HandleAuraDummy(), WorldSession::HandleBattlefieldLeaveOpcode(), and misc_commandscript::HandleSummonCommand().
| void Player::LeaveLFGChannel | ( | ) |
Definition at line 4849 of file Player.cpp.
References m_channels.
| void Player::LeftChannel | ( | Channel * | c | ) |
Definition at line 4758 of file Player.cpp.
References m_channels.
Referenced by Channel::KickOrBan(), Channel::LeaveChannel(), and UpdateLocalChannels().
| void Player::LoadActions | ( | PreparedQueryResult | result | ) |
Definition at line 29061 of file Player.cpp.
References _LoadActions(), and SendActionButtons().
| void Player::LoadCorpse | ( | PreparedQueryResult | result | ) |
Definition at line 19114 of file Player.cpp.
References _corpseLocation, AT_LOGIN_RESURRECT, WorldLocation::GetMapId(), HasAtLoginFlag(), Unit::IsAlive(), PLAYER_LOCAL_FLAG_RELEASE_TIMER, RemoveAtLoginFlag(), RemovePlayerLocalFlag(), ResurrectPlayer(), SetPlayerLocalFlag(), sMapStore, SpawnCorpseBones(), and WorldLocation::WorldRelocate().
Referenced by WorldSession::HandlePlayerLogin().
| bool Player::LoadFromDB | ( | ObjectGuid | guid, |
| CharacterDatabaseQueryHolder const & | holder | ||
| ) |
Definition at line 17930 of file Player.cpp.
References BaseEntity::_Create(), _garrison, _InitHonorLevelOnLoadFromDB(), _LoadAuras(), _LoadBGData(), _LoadCharacterBankTabSettings(), _LoadCUFProfiles(), _LoadCurrency(), _LoadDailyQuestStatus(), _LoadDeclinedNames(), _LoadEquipmentSets(), _LoadGlyphAuras(), _LoadGlyphs(), _LoadGroup(), _LoadHomeBind(), _LoadInventory(), _LoadMail(), _LoadMonthlyQuestStatus(), _LoadPetStable(), _LoadPlayerData(), _LoadPvpTalents(), _LoadQuestStatus(), _LoadQuestStatusObjectives(), _LoadQuestStatusObjectiveSpawnTrackings(), _LoadQuestStatusRewarded(), _LoadRandomBGStatus(), _LoadSeasonalQuestStatus(), _LoadSkills(), _LoadSpells(), _LoadStoredAuraTeleportLocations(), _LoadTalents(), _LoadTraits(), _LoadTransmogCustomSets(), _LoadTransmogOutfits(), _LoadWeeklyQuestStatus(), _restMgr, AddBattlegroundQueueId(), AddExploredZones(), Transport::AddPassenger(), Battleground::AddPlayer(), PlayerTaxi::AddTaxiDestination(), CollectionMgr::AddTransmogIllusion(), ASSERT, AT_LOGIN_RENAME, BATTLEGROUND_TYPE_NONE, BGData::bgInstanceID, BGData::bgTypeID, UF::PlayerData::BnetAccount, Map::CannotEnter(), CHAR_NAME_SUCCESS, CHAR_UPD_ADD_AT_LOGIN_FLAG, CharacterDatabase, CheckInstanceValidity(), CheckLoadedDungeonDifficultyID(), CheckLoadedLegacyRaidDifficultyID(), CheckLoadedRaidDifficultyID(), ObjectMgr::CheckPlayerName(), UF::ChrCustomizationChoice::ChrCustomizationChoiceID, UF::ChrCustomizationChoice::ChrCustomizationOptionID, ChrSpecializationEntry::ClassID, Unit::ClearInCombat(), PlayerTaxi::ClearTaxiDestinations(), CONFIG_GM_CHAT, CONFIG_GM_LOGIN_STATE, CONFIG_GM_VISIBLE_STATE, CONFIG_GM_WHISPERING_TO, TaxiNodesEntry::ContinentID, CORPSE, Battlenet::Services::Clubs::CreateClubMemberId(), DEAD, DEATH_EXPIRE_STEP, DisableAutoSort, Battleground::EventPlayerLoggedIn(), ExcludeJunkSell, MapEntry::Expansion(), flags, GetActiveTalentGroup(), GetBattlegroundEntryPoint(), Battleground::GetBattlegroundPlayerData(), BattlegroundMap::GetBG(), Battleground::GetBgMap(), Field::GetBool(), Unit::GetClass(), WorldSession::GetCollectionMgr(), ObjectGuid::GetCounter(), GetDrunkValue(), Transport::GetExpectedMapId(), Field::GetFloat(), GameTime::GetGameTime(), BaseEntity::GetGUID(), Map::GetId(), Battleground::GetInstanceID(), InstanceMap::GetInstanceScript(), Field::GetInt32(), Field::GetInt64(), WorldLocation::GetMapId(), Unit::GetMaxHealth(), Unit::GetMaxPower(), WorldObject::GetName(), Position::GetOrientation(), Transport::GetPositionWithOffset(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::GetPower(), GetPowerIndex(), GetPowerTypes(), SQLQueryHolderBase::GetPreparedResult(), GetPrimarySpecializationEntry(), Unit::GetRace(), GetRuneBaseCooldown(), GetSession(), Unit::GetSpellHistory(), Battleground::GetStatus(), Field::GetString(), PlayerTaxi::GetTaxiSource(), GetTeam(), WorldObject::GetTransport(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt64(), Field::GetUInt8(), UF::PlayerData::GuildClubMemberID, HasAtLoginFlag(), HasPlayerFlag(), BGData::HasTaxiPath(), HasTitle, CollectionMgr::HasTransmogIllusion(), UF::PlayerData::Inebriation, InitDisplayIds(), InitializeSkillFields(), InitPrimaryProfessions(), InitPvP(), InitRunes(), InitStatsForLevel(), InitTalentForLevel(), InitTaxiNodesForLevel(), Unit::IsAlive(), MapEntry::IsBattlegroundOrArena(), MapEntry::IsDungeon(), Map::IsDungeon(), IsInstanceLoginGameMasterException(), Battleground::IsPlayerInBattleground(), ConditionMgr::IsPlayerMeetingCondition(), Battleground::IsPlayerMercenaryInBattleground(), Position::IsPositionValid(), IsValidGender(), UF::ActivePlayerData::KnownTitles, LearnCustomSpells(), LearnDefaultSkills(), LearnSpecializationSpells(), LearnSpell(), UF::ActivePlayerData::LifetimeHonorableKills, CollectionMgr::LoadCharacterData(), SpellHistory::LoadFromDB(), PlayerTaxi::LoadTaxiDestinationsFromString(), PlayerTaxi::LoadTaxiMask(), WorldSafeLocsEntry::Loc, UF::PlayerData::LogoutTime, m_achievementMgr, m_activePlayerData, m_atLoginFlags, m_bgData, m_cinematic, m_createMode, m_createTime, m_deathExpireTime, Unit::m_deathState, m_fishingSteps, m_homebind, m_InstanceValid, m_lastHonorUpdateTime, WorldObject::m_movementInfo, WorldObject::m_name, m_nextSave, m_Played_time, m_playerData, m_questObjectiveCriteriaMgr, m_reputationMgr, m_social, m_taxi, Unit::m_unitData, BaseEntity::m_values, MakeChrCustomizationChoiceRange(), Trinity::Containers::MakeIteratorPair(), MAX_DEATH_COUNT, MAX_MONEY_AMOUNT, MAX_POWERS_PER_CLASS, MAX_SPECIALIZATIONS, UF::UpdateFieldHolder::ModifyValue(), UF::PlayerData::Name, None, outDebugValues(), PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_EXTRA_ACCEPT_WHISPERS, PLAYER_EXTRA_FLAG_FREE_TRANSMOG_CLAIMED, PLAYER_EXTRA_GM_CHAT, PLAYER_EXTRA_GM_INVISIBLE, PLAYER_EXTRA_GM_ON, PLAYER_FLAGS_GHOST, PLAYER_LOCAL_FLAG_FREE_TRANSMOG_CLAIMED, PLAYER_LOGIN_QUERY_LOAD_ACHIEVEMENTS, PLAYER_LOGIN_QUERY_LOAD_ARTIFACTS, PLAYER_LOGIN_QUERY_LOAD_AURA_EFFECTS, PLAYER_LOGIN_QUERY_LOAD_AURA_STORED_LOCATIONS, PLAYER_LOGIN_QUERY_LOAD_AURAS, PLAYER_LOGIN_QUERY_LOAD_AZERITE, PLAYER_LOGIN_QUERY_LOAD_AZERITE_EMPOWERED, PLAYER_LOGIN_QUERY_LOAD_AZERITE_MILESTONE_POWERS, PLAYER_LOGIN_QUERY_LOAD_AZERITE_UNLOCKED_ESSENCES, PLAYER_LOGIN_QUERY_LOAD_BANK_TAB_SETTINGS, PLAYER_LOGIN_QUERY_LOAD_BANNED, PLAYER_LOGIN_QUERY_LOAD_BG_DATA, PLAYER_LOGIN_QUERY_LOAD_CRITERIA_PROGRESS, PLAYER_LOGIN_QUERY_LOAD_CUF_PROFILES, PLAYER_LOGIN_QUERY_LOAD_CURRENCY, PLAYER_LOGIN_QUERY_LOAD_CUSTOMIZATIONS, PLAYER_LOGIN_QUERY_LOAD_DAILY_QUEST_STATUS, PLAYER_LOGIN_QUERY_LOAD_DATA_ELEMENTS, PLAYER_LOGIN_QUERY_LOAD_DATA_FLAGS, PLAYER_LOGIN_QUERY_LOAD_DECLINED_NAMES, PLAYER_LOGIN_QUERY_LOAD_EQUIPMENT_SETS, PLAYER_LOGIN_QUERY_LOAD_FROM, PLAYER_LOGIN_QUERY_LOAD_GARRISON, PLAYER_LOGIN_QUERY_LOAD_GARRISON_BLUEPRINTS, PLAYER_LOGIN_QUERY_LOAD_GARRISON_BUILDINGS, PLAYER_LOGIN_QUERY_LOAD_GARRISON_FOLLOWER_ABILITIES, PLAYER_LOGIN_QUERY_LOAD_GARRISON_FOLLOWERS, PLAYER_LOGIN_QUERY_LOAD_GLYPHS, PLAYER_LOGIN_QUERY_LOAD_GROUP, PLAYER_LOGIN_QUERY_LOAD_HOME_BIND, PLAYER_LOGIN_QUERY_LOAD_INVENTORY, PLAYER_LOGIN_QUERY_LOAD_MAIL_ITEMS, PLAYER_LOGIN_QUERY_LOAD_MAIL_ITEMS_ARTIFACT, PLAYER_LOGIN_QUERY_LOAD_MAIL_ITEMS_AZERITE, PLAYER_LOGIN_QUERY_LOAD_MAIL_ITEMS_AZERITE_EMPOWERED, PLAYER_LOGIN_QUERY_LOAD_MAIL_ITEMS_AZERITE_MILESTONE_POWER, PLAYER_LOGIN_QUERY_LOAD_MAIL_ITEMS_AZERITE_UNLOCKED_ESSENCE, PLAYER_LOGIN_QUERY_LOAD_MAILS, PLAYER_LOGIN_QUERY_LOAD_MONTHLY_QUEST_STATUS, PLAYER_LOGIN_QUERY_LOAD_PET_SLOTS, PLAYER_LOGIN_QUERY_LOAD_PVP_TALENTS, PLAYER_LOGIN_QUERY_LOAD_QUEST_STATUS, PLAYER_LOGIN_QUERY_LOAD_QUEST_STATUS_OBJECTIVES, PLAYER_LOGIN_QUERY_LOAD_QUEST_STATUS_OBJECTIVES_CRITERIA, PLAYER_LOGIN_QUERY_LOAD_QUEST_STATUS_OBJECTIVES_CRITERIA_PROGRESS, PLAYER_LOGIN_QUERY_LOAD_QUEST_STATUS_OBJECTIVES_SPAWN_TRACKING, PLAYER_LOGIN_QUERY_LOAD_QUEST_STATUS_REW, PLAYER_LOGIN_QUERY_LOAD_RANDOM_BG, PLAYER_LOGIN_QUERY_LOAD_REPUTATION, PLAYER_LOGIN_QUERY_LOAD_SEASONAL_QUEST_STATUS, PLAYER_LOGIN_QUERY_LOAD_SKILLS, PLAYER_LOGIN_QUERY_LOAD_SOCIAL_LIST, PLAYER_LOGIN_QUERY_LOAD_SPELL_CHARGES, PLAYER_LOGIN_QUERY_LOAD_SPELL_COOLDOWNS, PLAYER_LOGIN_QUERY_LOAD_SPELL_FAVORITES, PLAYER_LOGIN_QUERY_LOAD_SPELLS, PLAYER_LOGIN_QUERY_LOAD_TALENTS, PLAYER_LOGIN_QUERY_LOAD_TRAIT_CONFIGS, PLAYER_LOGIN_QUERY_LOAD_TRAIT_ENTRIES, PLAYER_LOGIN_QUERY_LOAD_TRANSMOG_OUTFIT, PLAYER_LOGIN_QUERY_LOAD_TRANSMOG_OUTFIT_SITUATION, PLAYER_LOGIN_QUERY_LOAD_TRANSMOG_OUTFIT_SLOT, PLAYER_LOGIN_QUERY_LOAD_TRANSMOG_OUTFITS, PLAYER_LOGIN_QUERY_LOAD_WEEKLY_QUEST_STATUS, PlayerConditionGrantsOnLogin, TaxiNodesEntry::Pos, MovementInfo::TransportInfo::pos, POWER_LUNAR_POWER, POWER_RUNES, PushQuests(), BGData::queueId, RATE_REST_OFFLINE_IN_TAVERN_OR_CITY, RATE_REST_OFFLINE_IN_WILDERNESS, rbac::RBAC_PERM_RESTORE_SAVED_GM_STATE, rbac::RBAC_PERM_SKIP_CHECK_CHARACTER_CREATION_RESERVEDNAME, Position::Relocate(), Unit::RemoveAllAurasOnDeath(), Unit::RemoveAllAurasRequiringDeadTarget(), Battleground::RemovePlayerAtLeave(), Unit::RemoveUnitFlag2(), ReplaceAllBagSlotFlags(), ReplaceAllPlayerFlags(), ReplaceAllPlayerFlagsEx(), MovementInfo::TransportInfo::Reset(), ResetTalentSpecialization(), REST_TYPE_HONOR, REST_TYPE_XP, SaveRecallPosition(), sBattlegroundMgr, sCharacterCache, sChrSpecializationStore, SendTransferAborted(), SetAcceptWhispers(), SetActiveTalentGroup(), SetBackpackAutoSortDisabled(), SetBackpackSellJunkDisabled(), SetBankAutoSortDisabled(), SetBankBagSlotCount(), Unit::SetCanModifyStats(), SetCharacterBankTabCount(), SetChosenTitle(), Unit::SetClass(), SetCustomizations(), SetDrunkValue(), SetDungeonDifficultyID(), Object::SetDynamicFlag(), SetFactionForRace(), SetFallInformation(), SetGameMaster(), Unit::SetGender(), SetGMChat(), SetGMVisible(), Unit::SetHealth(), SetInventorySlotCount(), SetInviteForBattlegroundQueueType(), SetLegacyRaidDifficultyID(), Unit::SetLevel(), SetLootSpecId(), SetMap(), SetMercenaryForBattlegroundQueueType(), SetMoney(), SetMultiActionBars(), SetNativeGender(), SetNumRespecs(), SetObjectScale(), SetPersonalTabard(), WorldSession::SetPlayer(), SetPlayerLocalFlag(), Unit::SetPower(), SetPrimarySpecialization(), Unit::SetRace(), SetRaidDifficultyID(), SetRuneCooldown(), SetTalentResetCost(), SetTalentResetTime(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt64(), BaseEntity::SetUpdateFieldFlagValue(), BaseEntity::SetUpdateFieldValue(), SetWatchedFactionIndex(), SetXP(), sMapMgr, sMapStore, sObjectMgr, BattlePets::SPELL_BATTLE_PET_TRAINING, sSocialMgr, StartLoadingActionButtons(), STATUS_WAIT_LEAVE, sTaxiNodesStore, sTransmogIllusionStore, sWorld, BGData::taxiPath, TC_LOG_DEBUG, TC_LOG_ERROR, TC_LOG_WARN, Map::ToBattlegroundMap(), UF::ActivePlayerData::TodayHonorableKills, Map::ToInstanceMap(), Trinity::Tokenize(), ObjectGuid::ToString(), Position::ToString(), MovementInfo::transport, UI64LIT, UNIT_DYNFLAG_REFER_A_FRIEND, UNIT_FLAG2_FORCE_MOVEMENT, UpdateAllStats(), Unit::UpdateCreatureType(), Unit::UpdateDisplayPower(), UpdateHonorFields(), UpdateItemDuration(), WorldObject::UpdatePositionData(), UpdateSkillsForLevel(), urand(), WorldLocation::WorldRelocate(), UF::PlayerData::WowAccount, DBCPosition3D::X, DBCPosition3D::Y, UF::ActivePlayerData::YesterdayHonorableKills, and DBCPosition3D::Z.
Referenced by WorldSession::HandlePlayerLogin().
|
static |
Definition at line 17872 of file Player.cpp.
References CHAR_SEL_CHAR_POSITION, CharacterDatabase, ObjectGuid::GetCounter(), Field::GetFloat(), Field::GetString(), Field::GetUInt16(), and PreparedStatementBase::setUInt64().
Referenced by misc_commandscript::HandleAppearCommand().
| bool Player::MeetPlayerCondition | ( | uint32 | conditionId | ) | const |
Definition at line 30226 of file Player.cpp.
References ConditionMgr::IsPlayerMeetingCondition().
Referenced by Item::CheckArtifactRelicSlotUnlock(), WorldSession::HandleAdventureJournalOpenQuest(), WorldSession::HandleAdventureJournalUpdateSuggestions(), WorldSession::HandleCheckIsAdventureMapPoiValid(), and Trinity::ChatPacketSender::operator()().
| bool Player::ModifierTreeSatisfied | ( | uint32 | modifierTreeId | ) | const |
Definition at line 27554 of file Player.cpp.
References m_achievementMgr.
Referenced by debug_commandscript::HandleDebugModifierTreeCommand().
| void Player::ModifyCurrency | ( | uint32 | id, |
| int32 | amount, | ||
| CurrencyGainSource | gainSource = CurrencyGainSource::Cheat, |
||
| CurrencyDestroyReason | destroyReason = CurrencyDestroyReason::Cheat |
||
| ) |
Modify currency amount.
Definition at line 7036 of file Player.cpp.
References _currencyStorage, ALLIANCE, ASSERT, CurrencyTypesEntry::AwardConditionID, CurrencyTypesEntry::CategoryID, CURRENCY_TYPE_AZERITE, CurrencyChanged(), CurrencyGained, Everywhere, CurrencyTypesEntry::FactionID, WorldPackets::Misc::SetCurrency::Flags, GarrisonBuildingRefund, GetCurrencyMaxQuantity(), GetCurrencyWeeklyCap(), GetItemByEntry(), GetReputationMgr(), CurrencyTypesEntry::GetScaler(), GetTeam(), Unit::GetTotalAuraMultiplierByMiscValue(), CurrencyTypesEntry::HasMaxQuantity(), CurrencyTypesEntry::HasTotalEarned(), HORDE, CurrencyTypesEntry::ID, CurrencyTypesEntry::IsAlliance(), CurrencyTypesEntry::IsHorde(), ConditionMgr::IsPlayerMeetingCondition(), CurrencyTypesEntry::IsSuppressingChatLog(), CurrencyTypesEntry::IsTrackingQuantity(), ITEM_ID_HEART_OF_AZEROTH, ItemRefund, WorldPackets::Misc::SetCurrency::MaxQuantity, ReputationMgr::ModifyReputation(), None, PLAYERCURRENCY_CHANGED, PLAYERCURRENCY_NEW, PlayerTraitRefund, WorldPackets::Misc::SetCurrency::Quantity, WorldPackets::Misc::SetCurrency::QuantityChange, WorldPackets::Misc::SetCurrency::QuantityGainSource, WorldPackets::Misc::SetCurrency::QuantityLostSource, QuestRewardIgnoreCaps, ReachRenownLevel, RenownRepGain, sCurrencyTypesStore, SendDirectMessage(), sFactionStore, SPELL_AURA_MOD_CURRENCY_CATEGORY_GAIN_PCT, SPELL_AURA_MOD_CURRENCY_GAIN, WorldPackets::Misc::SetCurrency::SuppressChatLog, WorldPackets::Misc::SetCurrency::TotalEarned, WorldPackets::Misc::SetCurrency::Type, UpdateCriteria(), UpdatingVersion, Vendor, WorldPackets::Misc::SetCurrency::WeeklyQuantity, WorldQuestRewardIgnoreCaps, and WorldPackets::Misc::SetCurrency::Write().
Referenced by AddCurrency(), Loot::AutoStore(), quest_commandscript::CompleteObjective(), Spell::EffectGiveCurrency(), modify_commandscript::HandleModifyCurrencyCommand(), RemoveCurrency(), ReputationMgr::SetOneFactionReputation(), and StoreLootItem().
| bool Player::ModifyMoney | ( | int64 | amount, |
| bool | sendError = true |
||
| ) |
Definition at line 24800 of file Player.cpp.
References EQUIP_ERR_TOO_MUCH_GOLD, GetMoney(), MAX_MONEY_AMOUNT, SendEquipError(), SetMoney(), and sScriptMgr.
Referenced by _StoreOrEquipNewItem(), ActivateTaxiPathTo(), ApplyTraitEntryChanges(), AuctionHouseObject::BuyCommodity(), BuyCurrencyFromVendorSlot(), Garrison::CancelBuildingConstruction(), quest_commandscript::CompleteObjective(), FlightPathMovementGenerator::DoUpdate(), DurabilityRepair(), DurabilityRepairAll(), Spell::EffectRespecAzeriteEmpoweredItem(), WorldSession::HandleAcceptTradeOpcode(), WorldSession::HandleAlterAppearance(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleBuybackItem(), WorldSession::HandleBuyBankTab(), WorldSession::HandleConfirmRespecWipeOpcode(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleMailTakeItem(), WorldSession::HandleMailTakeMoney(), Guild::HandleMemberDepositMoney(), Guild::HandleMemberWithdrawMoney(), modify_commandscript::HandleModifyMoneyCommand(), WorldSession::HandlePetitionBuy(), WorldSession::HandleSendMail(), Guild::HandleSetEmblem(), WorldSession::HandleTransmogOutfitNew(), WorldSession::HandleTransmogOutfitUpdateSlots(), WorldSession::HandleTransmogrifyItems(), OnGossipSelect(), AuctionHouseMgr::PendingAuctionProcess(), BlackMarketEntry::PlaceBid(), Garrison::PlaceBuilding(), RefundItem(), RewardPlayerWithRewardPack(), RewardQuest(), SellItemToVendor(), and Trainer::Trainer::TeachSpell().
Definition at line 5589 of file Player.cpp.
References GetSkillPermBonusByPos(), GetSkillRankByPos(), GetSkillTempBonusByPos(), ModifySkillBonus(), mSkillStatus, sDB2Manager, SetSkillPermBonus(), SetSkillTempBonus(), and SKILL_DELETED.
Referenced by AuraEffect::HandleAuraModSkill(), and ModifySkillBonus().
| void Player::MoneyChanged | ( | uint64 | value | ) |
Definition at line 16685 of file Player.cpp.
References GetMoney(), QUEST_OBJECTIVE_MONEY, and UpdateQuestObjectiveProgress().
Referenced by SetMoney().
Definition at line 11993 of file Player.cpp.
References WorldSession::GetCollectionMgr(), GetItemByPos(), GetSession(), ItemRemovedQuestCheck(), RemoveItem(), RemoveItemFromUpdateQueueOf, and CollectionMgr::RemoveTemporaryAppearance().
Referenced by AutoUnequipOffhandIfNeed(), WorldSession::HandleAcceptTradeOpcode(), WorldSession::HandleAuctionSellCommodity(), WorldSession::HandleAuctionSellItem(), and WorldSession::HandleSendMail().
| void Player::MoveItemToInventory | ( | ItemPosCountVec const & | dest, |
| Item * | pItem, | ||
| bool | update, | ||
| bool | in_characterInventoryDB = false |
||
| ) |
Definition at line 12011 of file Player.cpp.
References AddTradeableItem(), Item::GetCount(), Object::GetEntry(), BaseEntity::GetGUID(), Item::GetOwnerGUID(), Item::IsBOPTradeable(), ITEM_CHANGED, ITEM_NEW, ItemAddedQuestCheck(), ObtainAnyItem, Item::SetOwnerGUID(), Item::SetState(), StoreItem(), and UpdateCriteria().
Referenced by WorldSession::HandleMailTakeItem(), and WorldSession::moveItems().
| int32 Player::NextGroupUpdateSequenceNumber | ( | GroupCategory | category | ) |
Definition at line 26741 of file Player.cpp.
References m_groupUpdateSequences.
Referenced by Group::SendUpdateDestroyGroupToPlayer(), and Group::SendUpdateToPlayer().
|
static |
Definition at line 4387 of file Player.cpp.
References AT_LOGIN_RESURRECT, CHAR_UPD_ADD_AT_LOGIN_FLAG, CharacterDatabase, Corpse::DeleteFromDB(), ObjectGuid::GetCounter(), PreparedStatementBase::setUInt16(), and PreparedStatementBase::setUInt64().
Referenced by WorldSession::HandleCharRaceOrFactionChangeCallback(), misc_commandscript::HandleReviveCommand(), and Battleground::RemovePlayerAtLeave().
| void Player::OnGossipSelect | ( | WorldObject * | source, |
| int32 | gossipOptionId, | ||
| uint32 | menuId | ||
| ) |
Definition at line 14011 of file Player.cpp.
References AccountBanker, GossipMenuItem::ActionMenuID, GossipMenuItem::ActionPoiID, AdventureMap, ArtifactForge, AsUnderlyingType(), Auctioneer, AzeriteRespec, Banker, BarbersChoice, BATTLEGROUND_TYPE_NONE, BattleMaster, Battlemaster, Binder, BlackMarketAuctioneer, GossipMenuItem::BoxMoney, BUY_ERR_NOT_ENOUGHT_MONEY, CastSpell, WorldObject::CastSpell(), CharacterBanker, ChromieTime, ChromieTimeNpc, ContributionCollector, CornerstoneInteraction, Count, CovenantPreview, CreateGuildNeighborhood, DisableXPGain, EnableXPGain, ERR_GUILD_PLAYER_NOT_IN_GUILD, ForgeMaster, GossipMenuAddon::FriendshipFactionID, WorldPackets::NPC::GossipOptionNPCInteraction::FriendshipFactionID, GarrArchitect, GarrisonRecruitment, GarrisonTradeskillNpc, GarrMission, GarrRecruitment, GarrTalent, GarrTradeskill, Object::GetEntry(), BaseEntity::GetGUID(), GetGuild(), GossipMenu::GetItem(), GossipMenu::GetMenuId(), WorldObject::GetName(), GetNextResetTalentsCost(), GetSession(), BaseEntity::GetTypeId(), GlyphMaster, WorldPackets::NPC::GossipOptionNPCInteraction::GossipGUID, GossipMenuItem::GossipNpcOptionID, WorldPackets::NPC::GossipOptionNPCInteraction::GossipNpcOptionID, GUILD_COMMAND_VIEW_TAB, GuildBanker, GuildRename, GuildTabardVendor, HasEnoughMoney(), WorldPackets::NPC::NPCInteractionOpenResult::InteractionType, IslandQueue, ItemInteraction, ItemUpgrade, LegendaryCrafting, LFGDungeon, MailInfo, MajorFactionRenown, ModifyMoney(), NeighborhoodCharter, NewPlayerGuide, None, WorldPackets::NPC::NPCInteractionOpenResult::Npc, OpenHouseFinder, OpenNeighborhoodCharterConfirmation, GossipMenuItem::OptionNpc, GossipMenuItem::OrderIndex, PerksProgramVendor, PersonalTabardVendor, PetitionVendor, PetSpecializationMaster, PlaceholderType79, PLAYER_FLAGS_NO_XP_GAIN, PlayerTalkClass, PrepareGossipMenu(), ProfessionRespec, Professions, ProfessionsCraftingOrder, ProfessionsCustomerOrder, Unit::RemoveAurasDueToSpell(), RemovePlayerFlag(), Renown, RuneforgeLegendaryCrafting, RuneforgeLegendaryUpgrade, sBattlegroundMgr, WorldSession::SendAuctionHello(), SendBuyError(), Guild::SendCommandResult(), SendDirectMessage(), WorldSession::SendListInventory(), WorldSession::SendPetitionShowList(), SendPreparedGossip(), SendRespecWipeConfirm(), WorldSession::SendTaxiMenu(), WorldSession::SendTrainerList(), SetPlayerFlag(), SetStableMaster(), ShipmentCrafter, sObjectMgr, Soulbind, SPEC_RESET_GLYPHS, SPEC_RESET_PET_TALENTS, SPEC_RESET_SPECIALIZATION, SPEC_RESET_TALENTS, SpecializationMaster, SPELL_EXPERIENCE_ELIMINATED, Spellclick, SpiritHealer, StableMaster, Stablemaster, WorldPackets::NPC::NPCInteractionOpenResult::Success, TalentMaster, TaxiNode, Taxinode, TC_LOG_ERROR, Object::ToCreature(), ObjectGuid::ToString(), Position::ToString(), Object::ToUnit(), Trainer, TraitSystem, Transmogrifier, TRIGGERED_FULL_MASK, TYPEID_GAMEOBJECT, Vendor, WorldMap, WorldPackets::NPC::NPCInteractionOpenResult::Write(), and WorldPackets::NPC::GossipOptionNPCInteraction::Write().
Referenced by WorldSession::HandleGossipSelectOptionOpcode().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 31381 of file Player.cpp.
References WorldObject::GetMap(), Unit::OnPhaseChange(), and Map::UpdatePersonalPhasesForPlayer().
|
protected |
Definition at line 21699 of file Player.cpp.
References BASE_ATTACK, Unit::GetArmor(), Unit::GetBaseAttackTime(), Log::GetEnabledLogger(), Unit::GetMaxHealth(), Unit::GetMaxPower(), Unit::GetResistance(), Unit::GetStat(), LOG_LEVEL_DEBUG, m_activePlayerData, Unit::m_unitData, Log::OutMessageTo(), POWER_MANA, RANGED_ATTACK, sLog, SPELL_SCHOOL_MASK_ARCANE, SPELL_SCHOOL_MASK_FIRE, SPELL_SCHOOL_MASK_FROST, SPELL_SCHOOL_MASK_HOLY, SPELL_SCHOOL_MASK_NATURE, SPELL_SCHOOL_MASK_SHADOW, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, and STAT_STRENGTH.
Referenced by LoadFromDB(), and SaveToDB().
|
protected |
Definition at line 602 of file Player.cpp.
References SendDirectMessage().
Referenced by UpdateMirrorTimers().
| void Player::PetSpellInitialize | ( | ) |
Definition at line 22418 of file Player.cpp.
References WorldPackets::Pet::PetSpells::_CreatureFamily, WorldPackets::Pet::PetSpells::ActionButtons, WorldPackets::Pet::PetSpells::Actions, WorldPackets::Pet::PetSpells::CommandState, CreatureTemplate::family, CharmInfo::GetActionBarEntry(), Unit::GetCharmInfo(), CharmInfo::GetCommandState(), Creature::GetCreatureTemplate(), Pet::GetDuration(), BaseEntity::GetGUID(), GetPet(), Creature::GetReactState(), Pet::GetSpecialization(), Unit::GetSpellHistory(), Pet::IsPermanentPetFor(), Pet::m_spells, MAKE_UNIT_ACTION_BUTTON, MAX_UNIT_ACTION_BAR_INDEX, UnitActionBarEntry::packedData, WorldPackets::Pet::PetSpells::PetGUID, PETSPELL_REMOVED, WorldPackets::Pet::PetSpells::ReactState, SendDirectMessage(), WorldPackets::Pet::PetSpells::Specialization, WorldPackets::Pet::PetSpells::TimeLimit, WorldPackets::Pet::PetSpells::Write(), and SpellHistory::WritePacket().
Referenced by Spell::EffectCreateTamedPet(), Spell::EffectLearnPetSpell(), Spell::EffectSummonPet(), Spell::EffectTameCreature(), AuraEffect::HandleModPossessPet(), npc_commandscript::HandleNpcTameCommand(), pet_commandscript::HandlePetCreateCommand(), WorldSession::HandleRequestPetInfo(), Pet::learnSpell(), Pet::LoadPetFromDB(), Pet::removeSpell(), Unit::SetMinion(), Pet::SetSpecialization(), and SummonPet().
| void Player::PossessSpellInitialize | ( | ) |
Definition at line 22457 of file Player.cpp.
References WorldPackets::Pet::PetSpells::ActionButtons, CharmInfo::GetActionBarEntry(), Unit::GetCharmed(), Unit::GetCharmInfo(), BaseEntity::GetGUID(), Unit::GetSpellHistory(), MAX_UNIT_ACTION_BAR_INDEX, UnitActionBarEntry::packedData, WorldPackets::Pet::PetSpells::PetGUID, SendDirectMessage(), TC_LOG_ERROR, ObjectGuid::ToString(), WorldPackets::Pet::PetSpells::Write(), and SpellHistory::WritePacket().
Referenced by WorldSession::HandleRequestPetInfo(), and Unit::SetCharmedBy().
| void Player::PrepareGossipMenu | ( | WorldObject * | source, |
| uint32 | menuId, | ||
| bool | showQuests = false |
||
| ) |
Definition at line 13884 of file Player.cpp.
References AsUnderlyingType(), Auctioneer, AzeriteRespec, Banker, Battlemaster, Binder, CemeterySelect, CLASS_HUNTER, Count, DisableXPGain, EnableXPGain, GAMEOBJECT_TYPE_GOOBER, GAMEOBJECT_TYPE_QUESTGIVER, Unit::GetClass(), GameObject::GetGoType(), BaseEntity::GetGUID(), GetSession(), BaseEntity::GetTypeId(), GlyphMaster, GuildTabardVendor, HasPlayerFlag(), Unit::isDead(), IsMaxLevel(), Unit::IsQuestGiver(), Mailbox, None, PersonalTabardVendor, PetitionVendor, PetSpecializationMaster, PLAYER_FLAGS_NO_XP_GAIN, PlayerTalkClass, PrepareQuestMenu(), WorldSession::SendLearnNewTaxiNode(), sObjectMgr, SpecializationMaster, SpiritHealer, Stablemaster, TalentMaster, Taxinode, TC_LOG_ERROR, Object::ToCreature(), Object::ToGameObject(), Object::ToUnit(), Trainer, Transmogrify, TYPEID_GAMEOBJECT, TYPEID_UNIT, and Vendor.
Referenced by WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), npc_disciple_of_naralex::OnGossipHello(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::OnGossipHello(), npc_sinclari_vh::OnGossipHello(), go_apexis_relic::go_apexis_relicAI::OnGossipHello(), OnGossipSelect(), SmartScript::ProcessAction(), and GameObject::Use().
| void Player::PrepareQuestMenu | ( | ObjectGuid | guid | ) |
Definition at line 14333 of file Player.cpp.
References QuestMenu::AddMenuItem(), ASSERT, CanTakeQuest(), QuestMenu::ClearMenu(), ObjectAccessor::GetCreatureOrPetOrVehicle(), Object::GetEntry(), Map::GetGameObject(), WorldObject::GetInstanceId(), WorldObject::GetMap(), WorldLocation::GetMapId(), GetQuestStatus(), Quest::IsDaily(), BaseEntity::IsInWorld(), Quest::IsMonthly(), Quest::IsRepeatable(), Quest::IsTurnIn(), Quest::IsWeekly(), PlayerTalkClass, QUEST_STATUS_COMPLETE, QUEST_STATUS_INCOMPLETE, QUEST_STATUS_NONE, sMapMgr, and sObjectMgr.
Referenced by WorldSession::HandleQuestgiverHelloOpcode(), npc_lokhtos_darkbargainer::npc_lokhtos_darkbargainerAI::OnGossipHello(), npc_koltira_deathweaver::OnGossipHello(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::OnGossipHello(), npc_chromie_start::npc_chromie_startAI::OnGossipHello(), npc_chromie_middle::npc_chromie_middleAI::OnGossipHello(), npc_erozion::OnGossipHello(), npc_thrall_old_hillsbrad::OnGossipHello(), npc_brann_hos::OnGossipHello(), npc_wg_demolisher_engineer::OnGossipHello(), npc_wg_spirit_guide::OnGossipHello(), npc_wg_queue::OnGossipHello(), and PrepareGossipMenu().
| void Player::ProcessDelayedOperations | ( | ) |
Definition at line 1446 of file Player.cpp.
References PlayerTaxi::AddTaxiDestination(), CastSpell, BGData::ClearTaxiPath(), ContinueTaxiFlight(), DELAYED_BG_MOUNT_RESTORE, DELAYED_BG_TAXI_RESTORE, DELAYED_RESURRECT_PLAYER, DELAYED_SAVE_PLAYER, DELAYED_SPELL_CAST_DESERTER, BGData::HasTaxiPath(), m_bgData, m_DelayedOperations, m_taxi, BGData::mountSpell, ResurrectUsingRequestDataImpl(), SaveToDB(), and BGData::taxiPath.
Referenced by WorldSession::HandleMoveTeleportAck(), and WorldSession::HandleMoveWorldportAck().
|
private |
Definition at line 31647 of file Player.cpp.
References CollectionMgr::AddItemAppearance(), BIND_ON_ACQUIRE, BIND_ON_USE, BIND_QUEST, CanUseItem(), WorldPackets::Spells::SpellCastRequest::CastID, CastItemUseSpell(), SpellCastRequest::CastRequest, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_NOT_DURING_ARENA_MATCH, EQUIP_ERR_NOT_IN_COMBAT, EQUIP_ERR_OK, Item::GetBonding(), ItemTemplate::GetClass(), WorldSession::GetCollectionMgr(), GetDifficultyID(), Item::GetEffects(), BaseEntity::GetGUID(), ItemTemplate::GetInventoryType(), WorldObject::GetMap(), GetSession(), Item::GetTemplate(), GetUseableItemByPos(), ItemTemplate::HasFlag(), InArena(), INVTYPE_NON_EQUIP, Item::IsEquipped(), Unit::IsInCombat(), Item::IsSoulBound(), ITEM_CHANGED, ITEM_CLASS_CONSUMABLE, ITEM_FLAG_IGNORE_DEFAULT_ARENA_RESTRICTIONS, ITEM_FLAG_NOT_USEABLE_IN_ARENA, SpellCastRequest::ItemData, ItemUse, WorldPackets::Spells::SpellCastRequest::Misc, Unit::RemoveAurasWithInterruptFlags(), SendEquipError(), Item::SetBinding(), Item::SetState(), WorldPackets::Spells::SpellCastRequest::SpellID, sScriptMgr, and sSpellMgr.
Referenced by ExecutePendingSpellCastRequest().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 26746 of file Player.cpp.
References WorldObject::GetLiquidStatus(), PositionFullTerrainStatus::liquidInfo, Unit::ProcessPositionDataChanged(), UpdateLiquidMirrorTimerFlagsOnPositionChange(), and Unit::UpdateMountCapability().
|
protected |
Definition at line 18856 of file Player.cpp.
References AddQuestAndCheckCompletion(), CanTakeQuest(), sObjectMgr, and Tag.
Referenced by GiveLevel(), LoadFromDB(), and UpdateArea().
Definition at line 11722 of file Player.cpp.
References AddEnchantmentDurations(), AddItemDurations(), Object::AddToWorld(), CheckTitanGripPenalty(), EquipItem, EquipItemInSlot, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, Object::GetEntry(), BaseEntity::IsInWorld(), ITEM_FIELD_FLAG2_EQUIPPED, BaseEntity::SendUpdateToPlayer(), Item::SetItemZoneFlag(), UpdateCriteria(), and VisualizeItem().
Referenced by _LoadInventory().
|
inline |
Definition at line 2213 of file Player.h.
Referenced by DestroyItem(), EquipItem(), RemoveItem(), and UpdateAllStats().
|
inline |
Definition at line 2672 of file Player.h.
References TELE_TO_NONE.
Referenced by misc_commandscript::HandleRecallCommand().
|
private |
Already checked before
Definition at line 29837 of file Player.cpp.
References AddCurrency(), ASSERT, CanStoreNewItem(), CharacterDatabase, ItemExtendedCostEntry::CurrencyCount, ItemExtendedCostEntry::CurrencyID, DestroyItem(), EQUIP_ERR_OK, ItemExtendedCostEntry::Flags, Item::GetBagSlot(), WorldSession::GetCollectionMgr(), BaseEntity::GetGUID(), Item::GetPaidExtendedCost(), Item::GetPaidMoney(), Item::GetRefundRecipient(), GetSession(), Item::GetSlot(), Item::IsRefundable(), Item::IsRefundExpired(), ITEM_EXT_COST_CURRENCY_REQ_IS_SEASON_EARNED_1, ItemExtendedCostEntry::ItemCount, ItemExtendedCostEntry::ItemID, ItemRefund, MAX_ITEM_EXT_COST_CURRENCIES, MAX_ITEM_EXT_COST_ITEMS, ModifyMoney(), NULL_BAG, NULL_SLOT, CollectionMgr::RemoveTemporaryAppearance(), SaveInventoryAndGoldToDB(), SendItemRefundResult(), SendNewItem(), Item::SetNotRefundable(), sItemExtendedCostStore, StoreNewItem(), and TC_LOG_DEBUG.
Referenced by WorldSession::HandleItemRefund().
| void Player::Regenerate | ( | Powers | power | ) |
Definition at line 1601 of file Player.cpp.
References PowerTypeEntry::CenterPower, CHEAT_POWER, UF::HasChangesMask< Bits >::ClearChanged(), BaseEntity::DoWithSuppressingObjectUpdates(), GetCommandStatus(), Unit::GetMaxPower(), Unit::GetPower(), GetPowerIndex(), GetPowerRegen(), m_powerFraction, Unit::m_regenTimer, m_regenTimerCount, Unit::m_unitData, BaseEntity::m_values, MAX_POWERS_PER_CLASS, PowerTypeEntry::MinPower, UF::UpdateFieldHolder::ModifyValue(), UF::UnitData::Power, sDB2Manager, Unit::SetPower(), and BaseEntity::SetUpdateFieldValue().
Referenced by RegenerateAll().
| void Player::RegenerateAll | ( | ) |
Definition at line 1560 of file Player.cpp.
References CLASS_DEATH_KNIGHT, Unit::GetClass(), GetPowerTypes(), GetRuneCooldown(), Unit::HasAuraType(), Unit::IsInCombat(), Unit::IsPolymorphed(), m_baseHealthRegen, Unit::m_regenTimer, m_regenTimerCount, m_runes, POWER_RUNES, Regenerate(), RegenerateHealth(), SetRuneCooldown(), SPELL_AURA_MOD_HEALTH_REGEN_IN_COMBAT, and SPELL_AURA_MOD_REGEN_DURING_COMBAT.
Referenced by Update().
| void Player::RegenerateHealth | ( | ) |
Definition at line 1707 of file Player.cpp.
References ApplyPct(), Unit::GetHealth(), Unit::GetLevel(), Unit::GetMaxHealth(), Unit::GetTotalAuraModifier(), Unit::GetTotalAuraMultiplier(), Unit::HasAuraType(), Unit::IsInCombat(), Unit::IsPolymorphed(), Unit::IsStandState(), m_baseHealthRegen, m_healthFraction, RATE_HEALTH, Unit::SetHealth(), 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 | ) |
Definition at line 6118 of file Player.cpp.
References ACTIONBUTTON_DELETED, ACTIONBUTTON_NEW, BaseEntity::GetGUID(), WorldObject::GetName(), m_actionButtons, TC_LOG_DEBUG, Position::ToString(), and ActionButton::uState.
Referenced by WorldSession::HandleSetActionButtonOpcode().
| void Player::RemoveActiveQuest | ( | uint32 | questId, |
| bool | update = true |
||
| ) |
Definition at line 15972 of file Player.cpp.
References Quest::HasFlag(), m_questObjectiveStatus, m_QuestStatus, m_QuestStatusSave, PhasingHandler::OnConditionChange(), QUEST_DELETE_SAVE_TYPE, QUEST_FLAGS_UPDATE_PHASESHIFT, SendQuestUpdate(), SetQuestSlot(), sObjectMgr, and UpdateObjectVisibility().
Referenced by DailyReset(), Spell::EffectQuestClear(), WorldSession::HandleQuestLogRemoveQuest(), quest_commandscript::HandleQuestRemove(), quest_enter_the_illidari_shivarra::OnQuestStatusChange(), ResetWeeklyQuestStatus(), RewardQuest(), and SkipQuests().
| void Player::RemoveArenaEnchantments | ( | EnchantmentSlot | slot | ) |
Definition at line 13335 of file Player.cpp.
References ApplyEnchantment(), GetBagByPos(), GetInventorySlotCount(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_START, m_enchantDuration, REAGENT_BAG_SLOT_END, and sSpellMgr.
Referenced by Battleground::AddPlayer().
| void Player::RemoveArenaSpellCooldowns | ( | bool | removeActivePetCooldowns = false | ) |
Definition at line 3360 of file Player.cpp.
References DIFFICULTY_NONE, SpellHistory::GetCooldownDurations(), GetPet(), Unit::GetSpellHistory(), SpellInfo::HasAttribute(), SpellHistory::CooldownEntry::ItemId, SpellHistory::ResetCooldowns(), SPELL_ATTR6_DO_NOT_RESET_COOLDOWN_IN_ARENA, SpellHistory::CooldownEntry::SpellId, and sSpellMgr.
Referenced by TeleportTo().
| void Player::RemoveAtLoginFlag | ( | AtLoginFlags | flags, |
| bool | persist = false |
||
| ) |
Definition at line 28375 of file Player.cpp.
References CHAR_UPD_REM_AT_LOGIN_FLAG, CharacterDatabase, flags, BaseEntity::GetGUID(), m_atLoginFlags, PreparedStatementBase::setUInt16(), and PreparedStatementBase::setUInt64().
Referenced by WorldSession::HandlePlayerLogin(), LoadCorpse(), ResetSpells(), and ResetTalents().
|
inline |
Definition at line 3002 of file Player.h.
References UF::ActivePlayerData::AuraVision, flags, and m_activePlayerData.
|
inline |
Definition at line 1517 of file Player.h.
References UF::ActivePlayerData::BagSlotFlags, flags, and m_activePlayerData.
Referenced by WorldSession::HandleChangeBagSlotFlag().
| void Player::RemoveBattlegroundQueueId | ( | BattlegroundQueueTypeId | val | ) |
Definition at line 25735 of file Player.cpp.
References BATTLEGROUND_QUEUE_NONE, Player::BgBattlegroundQueueID_Rec::bgQueueTypeId, Player::BgBattlegroundQueueID_Rec::invitedToInstance, Player::BgBattlegroundQueueID_Rec::joinTime, m_bgBattlegroundQueueID, Player::BgBattlegroundQueueID_Rec::mercenary, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by BGQueueRemoveEvent::Execute(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::LogoutPlayer(), and Battleground::RemovePlayerAtLeave().
|
inline |
Definition at line 2957 of file Player.h.
References UF::ActivePlayerData::ConditionalTransmog, and m_activePlayerData.
Referenced by CollectionMgr::AddItemAppearance(), and CollectionMgr::RemoveTemporaryAppearance().
| void Player::RemoveCurrency | ( | uint32 | id, |
| int32 | amount, | ||
| CurrencyDestroyReason | destroyReason = CurrencyDestroyReason::Cheat |
||
| ) |
Definition at line 7181 of file Player.cpp.
References ModifyCurrency().
Referenced by _StoreOrEquipNewItem(), ApplyTraitEntryChanges(), BuyCurrencyFromVendorSlot(), Garrison::PlaceBuilding(), RewardQuest(), and Spell::TakeReagents().
| void Player::RemovedInsignia | ( | Player * | looterPlr | ) |
Definition at line 9018 of file Player.cpp.
References _corpseLocation, AREA_WINTERGRASP, BATTLEGROUND_AV, BuildPlayerRepop(), Map::ConvertCorpseToBones(), CORPSE_DYNFLAG_LOOTABLE, GetBattleground(), GetBattlegroundId(), GetGroup(), BaseEntity::GetGUID(), Unit::GetLevel(), WorldObject::GetMap(), WorldObject::GetZoneId(), WorldObject::IsInWorldPvpZone(), Loot, LOOT_INSIGNIA, Corpse::lootRecipient, LootTemplates_Creature, m_deathTimer, Corpse::m_loot, MAPID_INVALID, PLAYER_CORPSE_LOOT_ENTRY, RATE_DROP_MONEY, RepopAtGraveyard(), SendLoot(), Corpse::SetCorpseDynamicFlag(), sWorld, urand(), and WorldLocation::WorldRelocate().
Referenced by Spell::EffectSkinPlayerCorpse().
| void Player::RemoveEnchantmentDurations | ( | Item * | item | ) |
Definition at line 13309 of file Player.cpp.
References m_enchantDuration, and Item::SetEnchantmentDuration().
Referenced by _StoreItem(), DestroyItem(), EquipItem(), and RemoveItem().
| void Player::RemoveEnchantmentDurationsReferences | ( | Item * | item | ) |
Definition at line 13324 of file Player.cpp.
References m_enchantDuration.
Referenced by _SaveInventory().
Definition at line 6298 of file Player.cpp.
References UF::ActivePlayerData::BitVectors, m_activePlayerData, BaseEntity::m_values, PLAYER_DATA_FLAG_EXPLORED_ZONES_INDEX, BaseEntity::RemoveUpdateFieldFlagValue(), UF::BitVector::Values, and UF::BitVectors::Values.
Referenced by cheat_commandscript::HandleExploreCheatCommand(), and misc_commandscript::HandleHideAreaCommand().
| void Player::RemoveFromBattlegroundOrBattlefieldRaid | ( | ) |
Definition at line 26699 of file Player.cpp.
References GetOriginalGroup(), GetOriginalSubGroup(), Reference< TO, FROM, Derived >::link(), m_group, SetOriginalGroup(), GroupReference::setSubGroup(), and Reference< TO, FROM, Derived >::unlink().
Referenced by Group::Disband(), and Group::RemoveMember().
|
static |
Definition at line 2089 of file Player.cpp.
References Group::RemoveMember().
Referenced by DeleteFromDB(), WorldSession::HandleLeaveGroupOpcode(), WorldSession::HandlePartyUninviteOpcode(), and lfg::LFGMgr::UpdateBoot().
|
inline |
Definition at line 2138 of file Player.h.
References RemoveFromGroup().
Referenced by RemoveFromGroup().
|
inline |
Definition at line 2855 of file Player.h.
Referenced by message_commandscript::HandleWhispersCommand().
|
overridevirtual |
Reimplemented from Object.
Definition at line 1499 of file Player.cpp.
References WorldSession::DoLootReleaseAll(), WorldSession::GetBattlenetAccount(), ObjectGuid::GetEntry(), BaseEntity::GetGUID(), WorldObject::GetName(), GetSession(), GetViewpoint(), BaseEntity::IsInWorld(), m_items, m_lootRolls, m_session, m_zoneUpdateId, mMitems, PLAYER_SLOT_END, PLAYER_SLOT_START, POWER_COMBO_POINTS, BaseEntity::RemoveFromWorld(), Object::RemoveFromWorld(), Unit::RemoveFromWorld(), sBattlefieldMgr, Unit::SetPower(), SetViewpoint(), sOutdoorPvPMgr, StopCastingBindSight(), StopCastingCharm(), TC_LOG_ERROR, Position::ToString(), UnsummonBattlePetTemporaryIfAny(), and UnsummonPetTemporaryIfAny().
Referenced by Map::RemovePlayerFromMap().
|
inline |
Definition at line 2790 of file Player.h.
Referenced by Pet::ResetGroupUpdateFlag().
Definition at line 11907 of file Player.cpp.
References _ApplyItemMods(), ASSERT_NOTNULL, AutoUnequipChildItem(), BASE_ATTACK, CheckTitanGripPenalty(), Item::ClearEnchantment(), CR_ARMOR_PENETRATION, ObjectGuid::Empty, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, GetBagByPos(), Item::GetEnchantmentId(), Object::GetEntry(), BaseEntity::GetGUID(), GetItemByPos(), ItemTemplate::GetItemSet(), WorldObject::GetName(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, BaseEntity::IsInWorld(), ITEM_FIELD_FLAG2_EQUIPPED, m_items, MainhandOnly, MAX_ENCHANTMENT_SLOT, NULL_SLOT, OFF_ATTACK, PROFESSION_SLOT_END, REAGENT_BAG_SLOT_END, RecalculateRating(), RemoveEnchantmentDurations(), RemoveItemDurations(), RemoveItemsSetItem(), Item::RemoveItemZoneFlag(), RemoveTradeableItem(), BaseEntity::SendUpdateToPlayer(), Item::SetContainedIn(), SetInvSlot(), Item::SetSlot(), SetVisibleItemSlot(), sSpellItemEnchantmentStore, TC_LOG_DEBUG, Position::ToString(), UpdateAverageItemLevelEquipped(), and UpdateExpertise().
Referenced by AutoUnequipChildItem(), AutoUnequipOffhandIfNeed(), Create(), Spell::EffectScriptEffect(), EquipChildItem(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoDepositCharacterBank(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleUseEquipmentSet(), MoveItemFromInventory(), SellItemToVendor(), SetSkill(), and SwapItem().
| void Player::RemoveItemDependentAurasAndCasts | ( | Item * | pItem | ) |
Definition at line 26236 of file Player.cpp.
References CURRENT_MAX_SPELL, Aura::GetCasterGUID(), Unit::GetCurrentSpell(), BaseEntity::GetGUID(), Aura::GetSpellInfo(), HasItemFitToSpellRequirements(), Unit::InterruptSpell(), Unit::m_ownedAuras, and Unit::RemoveOwnedAura().
Referenced by ApplyItemDependentAuras().
| void Player::RemoveItemDurations | ( | Item * | item | ) |
Definition at line 26080 of file Player.cpp.
References m_itemDuration.
Referenced by _SaveInventory(), _StoreItem(), DestroyItem(), EquipItem(), and RemoveItem().
| void Player::RemoveItemFromBuyBackSlot | ( | uint32 | slot, |
| bool | del | ||
| ) |
Definition at line 13015 of file Player.cpp.
References BUYBACK_SLOT_END, BUYBACK_SLOT_START, ObjectGuid::Empty, ObjectGuid::GetCounter(), BaseEntity::GetGUID(), WorldObject::GetName(), Item::GetTemplate(), ITEM_FLAG_HAS_LOOT, ITEM_REMOVED, m_currentBuybackSlot, m_items, Object::RemoveFromWorld(), SetBuybackPrice(), SetBuybackTimestamp(), SetInvSlot(), Item::SetState(), sLootItemStorage, TC_LOG_DEBUG, and Position::ToString().
Referenced by AddItemToBuyBackSlot(), and WorldSession::HandleBuybackItem().
| void Player::RemoveLootRoll | ( | LootRoll * | roll | ) |
Definition at line 9011 of file Player.cpp.
References m_lootRolls.
Referenced by LootRoll::~LootRoll().
| void Player::RemoveMail | ( | uint64 | id | ) |
Definition at line 2512 of file Player.cpp.
References m_mail.
Referenced by WorldSession::HandleMailReturnToSender().
| bool Player::RemoveMItem | ( | ObjectGuid::LowType | id | ) |
Definition at line 22408 of file Player.cpp.
References mMitems.
Referenced by WorldSession::HandleMailReturnToSender(), and WorldSession::HandleMailTakeItem().
Definition at line 30622 of file Player.cpp.
References m_overrideSpells.
Referenced by ActivateTalentGroup(), AddSpell(), RemovePvpTalent(), RemoveSpecializationSpells(), RemoveSpell(), RemoveTalent(), spell_hun_bleak_arrows::RestoreAutoShot(), and TogglePvpTalents().
| void Player::RemovePet | ( | Pet * | pet, |
| PetSaveMode | mode, | ||
| bool | returnreagent = false |
||
| ) |
Definition at line 22031 of file Player.cpp.
References WorldObject::AddObjectToRemoveList(), ASSERT, CanStoreNewItem(), Unit::CombatStop(), EQUIP_ERR_OK, Unit::ExitAllAreaTriggers(), Unit::GetCharmInfo(), GetDifficultyID(), Object::GetEntry(), GetGroup(), BaseEntity::GetGUID(), WorldObject::GetMap(), WorldObject::GetName(), GetPet(), CharmInfo::GetPetNumber(), GROUP_UPDATE_FLAG_PET, InBattleground(), Pet::isControlled(), BaseEntity::IsInWorld(), m_activePlayerData, m_oldpetspell, m_petStable, Pet::m_removed, m_temporaryUnsummonedPetNumber, Unit::m_unitData, BaseEntity::m_values, MAX_SPELL_REAGENTS, UF::UpdateFieldHolder::ModifyValue(), NULL_BAG, NULL_SLOT, PET_SAVE_AS_DELETED, PET_SAVE_NOT_IN_SLOT, UF::StablePetInfo::PetNumber, PetStable::PetInfo::PetNumber, UF::StableInfo::Pets, UF::ActivePlayerData::PetStable, SpellInfo::Reagent, SpellInfo::ReagentCount, BaseEntity::RemoveDynamicUpdateFieldValue(), Pet::SavePetToDB(), SendDirectMessage(), SendNewItem(), SetGroupUpdateFlag(), Unit::SetMinion(), sSpellMgr, StoreNewItem(), TC_LOG_DEBUG, Position::ToString(), and WorldPackets::Pet::PetSpells::Write().
Referenced by ActivateTalentGroup(), Spell::EffectSummonPet(), WorldSession::HandlePetAbandon(), WorldSession::HandlePetAbandonByNumber(), WorldSession::HandlePetActionHelper(), WorldSession::HandleRepopRequest(), Pet::LoadPetFromDB(), WorldSession::LogoutPlayer(), Pet::Remove(), Battleground::RemovePlayerAtLeave(), ResetTalents(), setDeathState(), SetPetSlot(), SummonPet(), UnsummonPetTemporaryIfAny(), and Update().
| void Player::RemovePetAura | ( | PetAura const * | petSpell | ) |
Definition at line 22182 of file Player.cpp.
References PetAura::GetAura(), GetPet(), and m_petAuras.
Referenced by Pet::CastPetAuras(), AuraEffect::HandleAuraDummy(), and RemoveSpell().
|
static |
Definition at line 23052 of file Player.cpp.
References sPetitionMgr.
Referenced by Guild::AddMember(), and DeleteFromDB().
|
inline |
Definition at line 2897 of file Player.h.
References flags, m_playerData, and UF::PlayerData::PlayerFlags.
Referenced by _LoadGroup(), FlightPathMovementGenerator::DoFinalize(), AuraEffect::HandleAuraGhost(), WorldSession::HandleDeclineGuildInvites(), WorldSession::HandleMovementOpcode(), WorldSession::HandleSetPvP(), WorldSession::HandleSetTaxiBenchmark(), WorldSession::HandleTogglePvP(), InitStatsForLevel(), OnGossipSelect(), RestMgr::RemoveRestFlag(), RepopAtGraveyard(), ResetContestedPvP(), ResurrectPlayer(), SetGameMaster(), SetInGuild(), SetWarModeDesired(), ToggleAFK(), ToggleDND(), UpdatePvPFlag(), and UpdateWarModeAuras().
|
inline |
Definition at line 2902 of file Player.h.
References flags, m_playerData, and UF::PlayerData::PlayerFlagsEx.
Referenced by WorldSession::HandleDeclineNeighborhoodInvites(), and Battleground::RemovePlayerAtLeave().
|
inline |
Definition at line 2993 of file Player.h.
References flags, UF::ActivePlayerData::LocalFlags, and m_activePlayerData.
Referenced by AuraEffect::HandleAllowUsingGameobjectsWhileMounted(), AuraEffect::HandleAuraTrackStealthed(), AuraEffect::HandlePreventResurrection(), KillPlayer(), LoadCorpse(), SetAccountSecured(), and SetWarModeLocal().
| void Player::RemovePvpTalent | ( | PvpTalentEntry const * | talent, |
| uint8 | activeTalentGroup | ||
| ) |
Definition at line 27758 of file Player.cpp.
References DIFFICULTY_NONE, GetPvpTalentMap(), PvpTalentEntry::ID, PvpTalentEntry::OverridesSpellID, RemoveOverrideSpell(), RemoveSpell(), PvpTalentEntry::SpellID, and sSpellMgr.
Referenced by InitTalentForLevel(), LearnPvpTalent(), and ResetPvpTalents().
Definition at line 16477 of file Player.cpp.
References m_playerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), UF::QuestLog::ObjectiveFlags, UF::PlayerData::QuestLog, and BaseEntity::RemoveUpdateFieldFlagValue().
Referenced by SetQuestObjectiveData().
Definition at line 16456 of file Player.cpp.
References m_playerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), UF::PlayerData::QuestLog, BaseEntity::RemoveUpdateFieldFlagValue(), and UF::QuestLog::StateFlags.
Referenced by IncompleteQuest().
| void Player::RemoveRewardedQuest | ( | uint32 | questId, |
| bool | update = true |
||
| ) |
Definition at line 16005 of file Player.cpp.
References ASSERT, Quest::GetEventIdForQuest(), Quest::HasFlag(), Quest::IsSeasonal(), m_RewardedQuests, m_RewardedQuestsSave, m_SeasonalQuestChanged, m_seasonalquests, PhasingHandler::OnConditionChange(), QUEST_FLAGS_UPDATE_PHASESHIFT, QUEST_FORCE_DELETE_SAVE_TYPE, SendQuestUpdate(), SetQuestCompletedBit(), sObjectMgr, and UpdateObjectVisibility().
Referenced by Spell::EffectQuestClear(), quest_commandscript::HandleQuestRemove(), quest_enter_the_illidari_shivarra::OnQuestStatusChange(), and quest_blaze_of_glory::OnQuestStatusChange().
|
inline |
Definition at line 2971 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::SelfResSpells.
Referenced by WorldSession::HandleSelfResOpcode().
| void Player::RemoveSocial | ( | ) |
Definition at line 30725 of file Player.cpp.
References BaseEntity::GetGUID(), m_social, and sSocialMgr.
Referenced by WorldSession::LogoutPlayer().
| void Player::RemoveSpecializationSpells | ( | ) |
Definition at line 30651 of file Player.cpp.
References Unit::GetClass(), MAX_MASTERY_SPELLS, MAX_SPECIALIZATIONS, SpecializationSpellsEntry::OverridesSpellID, Unit::RemoveAurasDueToSpell(), RemoveOverrideSpell(), RemoveSpell(), sDB2Manager, and SpecializationSpellsEntry::SpellID.
Referenced by ActivateTalentGroup(), and ResetTalentSpecialization().
| void Player::RemoveSpell | ( | uint32 | spell_id, |
| bool | disabled = false, |
||
| bool | learn_low_rank = true, |
||
| bool | suppressMessaging = false |
||
| ) |
No need to check for spellInfo != nullptr here because if cur_active is true, then that means that the spell was already in m_spells, and only valid spells can be pushed there.
Definition at line 3128 of file Player.cpp.
References AddSpell(), AutoUnequipOffhandIfNeed(), CONFIG_MAX_PRIMARY_TRADE_SKILL, CONFIG_OFFHAND_CHECK_AT_SPELL_UNLEARN, DIFFICULTY_NONE, Unit::GetClass(), SpellInfo::GetEffects(), GetFreePrimaryProfessionPoints(), BaseEntity::GetGUID(), Unit::GetMaxSkillValueForLevel(), GetPureMaxSkillValue(), GetPureSkillValue(), Unit::GetRace(), GetSkillRangeType(), SkillTiersEntry::GetValueForTierIndex(), SpellInfo::HasAttribute(), SpellInfo::HasEffect(), HasSpell(), SpellInfo::IsPassive(), SpellInfo::IsPrimaryProfessionFirstRank(), SpellInfo::IsRanked(), Unit::m_canDualWield, m_canTitanGrip, m_overrideSpells, m_spells, m_titanGripPenaltySpellId, Trinity::Containers::MapValue, SpellLearnSkillNode::maxvalue, PLAYERSPELL_CHANGED, PLAYERSPELL_NEW, PLAYERSPELL_REMOVED, PLAYERSPELL_TEMPORARY, Unit::RemoveAurasDueToSpell(), RemoveOverrideSpell(), Unit::RemoveOwnedAura(), RemovePetAura(), RemoveSpell(), sDB2Manager, SendDirectMessage(), SendSupercededSpell(), Unit::SetCanDualWield(), SetCanTitanGrip(), SetFreePrimaryProfessions(), SetSkill(), SpellLearnSkillNode::skill, SKILL_FLAG_ALWAYS_MAX_VALUE, SKILL_RANGE_LANGUAGE, SKILL_RANGE_LEVEL, SKILL_RANGE_MONO, SKILL_RANGE_RANK, sObjectMgr, SPELL_ATTR0_CU_IS_TALENT, SPELL_EFFECT_DUAL_WIELD, SPELL_EFFECT_TITAN_GRIP, WorldPackets::Spells::UnlearnedSpells::SpellID, sSpellMgr, SpellLearnSkillNode::step, sTraitDefinitionStore, WorldPackets::Spells::UnlearnedSpells::SuppressMessaging, sWorld, SpellLearnSkillNode::value, and WorldPackets::Spells::UnlearnedSpells::Write().
Referenced by ActivateTalentGroup(), ApplyAzeriteEssencePower(), ApplyTraitEntry(), Guild::DeleteMember(), Spell::EffectApplyMountEquipment(), Spell::EffectUnlearnSpecialization(), AuraEffect::HandleLearnSpell(), learn_commandscript::HandleUnLearnCommand(), LearnSkillRewardedSpells(), RemovePvpTalent(), RemoveSpecializationSpells(), RemoveSpell(), RemoveTalent(), spell_hun_bleak_arrows::ReplaceAutoShot(), ResetSpells(), spell_hun_bleak_arrows::RestoreAutoShot(), SetSkill(), TogglePvpTalents(), and spell_gen_battleground_mercenary_shapeshift::UpdateRacials().
Definition at line 30700 of file Player.cpp.
References UF::ActivePlayerData::CategoryCooldownMods, m_activePlayerData, BaseEntity::m_values, UF::CategoryCooldownMod::ModCooldown, BaseEntity::RemoveDynamicUpdateFieldValue(), and BaseEntity::SetUpdateFieldValue().
Referenced by AuraEffect::HandleModSpellCategoryCooldown().
| void Player::RemoveStoredAuraTeleportLocation | ( | uint32 | spellId | ) |
Definition at line 2653 of file Player.cpp.
References StoredAuraTeleportLocation::DELETED, m_storedAuraTeleportLocations, Trinity::Containers::MapGetValuePtr(), and StoredAuraTeleportLocation::State.
Referenced by AuraEffect::HandleStoreTeleportReturnPoint().
| void Player::RemoveTalent | ( | TalentEntry const * | talent | ) |
Definition at line 2624 of file Player.cpp.
References DIFFICULTY_NONE, GetActiveTalentGroup(), SpellInfo::GetEffects(), GetTalentMap(), TalentEntry::ID, TalentEntry::OverridesSpellID, PLAYERSPELL_REMOVED, RemoveOverrideSpell(), RemoveSpell(), SPELL_EFFECT_LEARN_SPELL, TalentEntry::SpellID, and sSpellMgr.
Referenced by Spell::EffectRemoveTalent(), InitTalentForLevel(), LearnTalent(), ResetTalents(), and ResetTalentSpecialization().
| void Player::RemoveTemporarySpell | ( | uint32 | spellId | ) |
Definition at line 3044 of file Player.cpp.
References m_spells, and PLAYERSPELL_TEMPORARY.
Referenced by AddSpell(), ApplyArtifactPowerRank(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleAuraOverrideSpells(), and AuraEffect::HandleShowConfirmationPrompt().
| void Player::RemoveTimedQuest | ( | uint32 | questId | ) |
Definition at line 17482 of file Player.cpp.
References m_timedquests.
Referenced by DailyReset(), FailQuest(), WorldSession::HandleQuestLogRemoveQuest(), ResetWeeklyQuestStatus(), RewardQuest(), and SkipQuests().
|
inline |
Definition at line 2983 of file Player.h.
References flags, m_activePlayerData, and UF::ActivePlayerData::TrackCreatureMask.
Referenced by AuraEffect::HandleAuraTrackCreatures().
| void Player::RemoveTradeableItem | ( | Item * | item | ) |
Definition at line 13249 of file Player.cpp.
References BaseEntity::GetGUID(), and m_itemSoulboundTradeable.
Referenced by _SaveInventory(), _StoreItem(), DestroyItem(), Spell::EffectApplyEnchantIllusion(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), EquipItem(), WorldSession::HandleSocketGems(), and RemoveItem().
| void Player::RemoveVisibleForcedReaction | ( | uint32 | factionId | ) |
Definition at line 6526 of file Player.cpp.
References UF::ZonePlayerForcedReaction::FactionID, UF::PlayerData::ForcedReactions, m_playerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), UF::ZonePlayerForcedReaction::Reaction, and BaseEntity::SetUpdateFieldValue().
Referenced by ReputationMgr::ApplyForceReaction().
| void Player::RenameTraitConfig | ( | int32 | editedConfigId, |
| std::string && | newName | ||
| ) |
Definition at line 29349 of file Player.cpp.
References ActiveForSpec, Combat, UF::TraitConfig::CombatConfigFlags, m_activePlayerData, m_traitConfigStates, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), UF::TraitConfig::Name, None, PLAYERSPELL_CHANGED, BaseEntity::SetUpdateFieldValue(), UF::ActivePlayerData::TraitConfigs, and UF::TraitConfig::Type.
Referenced by WorldSession::HandleClassTalentsRenameConfig().
|
inline |
Definition at line 1518 of file Player.h.
References UF::ActivePlayerData::BagSlotFlags, flags, and m_activePlayerData.
Referenced by LoadFromDB().
|
inline |
Definition at line 2898 of file Player.h.
References flags, m_playerData, and UF::PlayerData::PlayerFlags.
Referenced by LoadFromDB().
|
inline |
Definition at line 2903 of file Player.h.
References flags, m_playerData, and UF::PlayerData::PlayerFlagsEx.
Referenced by LoadFromDB().
|
inline |
Definition at line 2994 of file Player.h.
References flags, UF::ActivePlayerData::LocalFlags, and m_activePlayerData.
|
inline |
Definition at line 3007 of file Player.h.
References flags, m_activePlayerData, and UF::ActivePlayerData::RequiredMountCapabilityFlags.
Referenced by AuraEffect::HandleModRequiredMountCapabilityFlags().
| void Player::RepopAtGraveyard | ( | ) |
Definition at line 4687 of file Player.cpp.
References ObjectGuid::Empty, WorldObject::GetAreaId(), AreaTableEntry::GetFlags(), WorldObject::GetInstanceScript(), WorldObject::GetMap(), WorldLocation::GetMapId(), WorldObject::GetPhaseShift(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetTeam(), WorldObject::GetTransport(), WorldObject::GetZoneId(), Unit::IsAlive(), Unit::isDead(), WorldSafeLocsEntry::Loc, WorldPackets::Misc::DeathReleaseLoc::Loc, m_deathTimer, m_homebind, WorldPackets::Misc::DeathReleaseLoc::MapID, NoGhostOnRelease, PLAYER_FLAGS_IS_OUT_OF_BOUNDS, RemovePlayerFlag(), sAreaTableStore, sBattlefieldMgr, SendDirectMessage(), sObjectMgr, SpawnCorpseBones(), TELE_REVIVE_AT_TELEPORT, TELE_TO_NONE, TeleportTo(), WorldSafeLocsEntry::TransportSpawnId, and WorldPackets::Misc::DeathReleaseLoc::Write().
Referenced by Spell::EffectStuck(), Spell::EffectTeleportGraveyard(), WorldSession::HandleInstanceLockResponse(), WorldSession::HandlePortGraveyard(), WorldSession::HandleRepopRequest(), misc_commandscript::HandleUnstuckCommand(), WorldSession::LogoutPlayer(), RemovedInsignia(), TeleportTo(), Update(), UpdateHomebindTime(), and UpdateMirrorTimers().
| void Player::ReportedAfkBy | ( | Player * | reporter | ) |
This player has been blamed to be inactive in a battleground.
Definition at line 24331 of file Player.cpp.
References BGData::bgAfkReportedCount, BGData::bgAfkReporter, CanReportAfkDueToLimit(), CastSpell, CONFIG_BATTLEGROUND_REPORT_AFK, GetBattleground(), GetEffectiveTeam(), BaseEntity::GetGUID(), Battleground::GetStatus(), HasAura, m_bgData, WorldPackets::Battleground::ReportPvPPlayerAFKResult::NumBlackMarksOnOffender, WorldPackets::Battleground::ReportPvPPlayerAFKResult::NumPlayersIHaveReported, WorldPackets::Battleground::ReportPvPPlayerAFKResult::Offender, WorldPackets::Battleground::ReportPvPPlayerAFKResult::PVP_REPORT_AFK_SUCCESS, WorldPackets::Battleground::ReportPvPPlayerAFKResult::Result, SendDirectMessage(), STATUS_IN_PROGRESS, sWorld, and WorldPackets::Battleground::ReportPvPPlayerAFKResult::Write().
Referenced by WorldSession::HandleReportPvPAFK().
| void Player::ReputationChanged | ( | FactionEntry const * | factionEntry, |
| int32 | change | ||
| ) |
Definition at line 16690 of file Player.cpp.
References FactionEntry::ID, QUEST_OBJECTIVE_INCREASE_REPUTATION, QUEST_OBJECTIVE_MAX_REPUTATION, QUEST_OBJECTIVE_MIN_REPUTATION, and UpdateQuestObjectiveProgress().
Referenced by ReputationMgr::SetOneFactionReputation().
| void Player::RequestSpellCast | ( | std::unique_ptr< SpellCastRequest > | castRequest | ) |
Definition at line 31499 of file Player.cpp.
References _pendingSpellCastRequest, CancelPendingCastRequest(), CanExecutePendingSpellCastRequest(), and ExecutePendingSpellCastRequest().
Referenced by WorldSession::HandleCastSpellOpcode(), and WorldSession::HandleUseItemOpcode().
| void Player::ResetAchievements | ( | ) |
Definition at line 27496 of file Player.cpp.
References m_achievementMgr.
Referenced by reset_commandscript::HandleResetAchievementsCommand().
| void Player::ResetAllPowers | ( | ) |
Definition at line 1770 of file Player.cpp.
References Unit::GetPowerType(), POWER_ENERGY, POWER_LUNAR_POWER, POWER_MANA, POWER_RAGE, POWER_RUNIC_POWER, Unit::SetFullHealth(), Unit::SetFullPower(), and Unit::SetPower().
Referenced by Battleground::AddPlayer(), Battleground::EndBattleground(), and DuelResetScript::OnDuelStart().
| void Player::ResetContestedPvP | ( | ) |
Definition at line 21969 of file Player.cpp.
References Unit::ClearUnitState(), m_contestedPvPTimer, PLAYER_FLAGS_CONTESTED_PVP, RemovePlayerFlag(), and UNIT_STATE_ATTACK_PLAYER.
Referenced by SetGameMaster(), TeleportTo(), and UpdateContestedPvP().
| void Player::ResetCurrencyWeekCap | ( | ) |
Reset weekly quantity.
Definition at line 7251 of file Player.cpp.
References _currencyStorage, ASSERT, ArenaTeam::FinishWeek(), GetArenaTeamId(), MAX_ARENA_SLOT, ArenaTeam::NotifyStatsChanged(), PLAYERCURRENCY_CHANGED, sArenaTeamMgr, ArenaTeam::SaveToDB(), and SendDirectMessage().
| void Player::ResetGroupUpdateSequenceIfNeeded | ( | Group const * | group | ) |
Definition at line 26730 of file Player.cpp.
References Group::GetGroupCategory(), Group::GetGUID(), and m_groupUpdateSequences.
Referenced by _LoadGroup(), and Group::AddMember().
| void Player::ResetHonorStats | ( | ) |
Definition at line 6810 of file Player.cpp.
References UF::ActivePlayerData::LifetimeHonorableKills, m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::SetUpdateFieldValue(), UF::ActivePlayerData::TodayHonorableKills, and UF::ActivePlayerData::YesterdayHonorableKills.
Referenced by reset_commandscript::HandleResetHonorCommand().
| void Player::ResetInstances | ( | InstanceResetMethod | method | ) |
Reset all solo instances and optionally send a message on success for each.
Definition at line 21835 of file Player.cpp.
References CannotReset, Map::GetId(), INSTANCE_RESET_FAILED, m_recentInstances, Manual, NotEmpty, OnChangeDifficulty, SendResetInstanceFailed(), SendResetInstanceSuccess(), sMapMgr, Success, and Map::ToInstanceMap().
Referenced by WorldSession::HandleResetInstancesOpcode(), WorldSession::HandleSetDungeonDifficultyOpcode(), and WorldSession::HandleSetRaidDifficultyOpcode().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 28390 of file Player.cpp.
References WorldObject::GetMap(), GetMapRef(), WorldObject::ResetMap(), Reference< TO, FROM, Derived >::unlink(), and Map::UpdateIteratorBack().
Referenced by WorldSession::HandleMoveWorldportAck().
| void Player::ResetMonthlyQuestStatus | ( | ) |
Definition at line 25637 of file Player.cpp.
References m_MonthlyQuestChanged, m_monthlyquests, and SetQuestCompletedBit().
| void Player::ResetPvpTalents | ( | ) |
Definition at line 3467 of file Player.cpp.
References GetPvpTalentMap(), MAX_SPECIALIZATIONS, RemovePvpTalent(), and sPvpTalentStore.
Referenced by ResetTalentSpecialization().
| void Player::ResetSeasonalQuestStatus | ( | uint16 | event_id, |
| time_t | eventStartTime | ||
| ) |
Definition at line 25608 of file Player.cpp.
References m_SeasonalQuestChanged, m_seasonalquests, and SetQuestCompletedBit().
| void Player::ResetSpells | ( | bool | myClassOnly = false | ) |
Definition at line 25182 of file Player.cpp.
References AT_LOGIN_RESET_SPELLS, DIFFICULTY_NONE, Unit::GetClass(), GetSpellMap(), HasAtLoginFlag(), SpellInfo::Id, IsSpellFitByClassAndRace(), SpellMgr::IsSpellValid(), LearnCustomSpells(), LearnDefaultSkills(), LearnQuestRewardedSpells(), RemoveAtLoginFlag(), RemoveSpell(), sChrClassesStore, ChrClassesEntry::SpellClassSet, SpellInfo::SpellFamilyName, SpellInfo::SpellLevel, and sSpellMgr.
Referenced by WorldSession::HandlePlayerLogin(), and reset_commandscript::HandleResetSpellsCommand().
| bool Player::ResetTalents | ( | bool | noCost = false | ) |
Definition at line 3427 of file Player.cpp.
References _SaveSpells(), _SaveTalents(), AT_LOGIN_RESET_TALENTS, CharacterDatabase, TalentEntry::ClassID, Unit::GetClass(), HasAtLoginFlag(), PET_SAVE_NOT_IN_SLOT, RemoveAtLoginFlag(), RemovePet(), RemoveTalent(), SendDirectMessage(), TalentEntry::SpellID, sScriptMgr, and sTalentStore.
Referenced by WorldSession::HandleConfirmRespecWipeOpcode(), WorldSession::HandlePlayerLogin(), reset_commandscript::HandleResetTalentsCommand(), and InitTalentForLevel().
| void Player::ResetTalentSpecialization | ( | ) |
Definition at line 27649 of file Player.cpp.
References ASSERT_NOTNULL, Unit::GetClass(), ChrSpecializationEntry::ID, LearnSpecializationSpells(), MAX_TALENT_COLUMNS, MAX_TALENT_TIERS, ChrSpecializationEntry::OrderIndex, RemoveSpecializationSpells(), RemoveTalent(), ResetPvpTalents(), sDB2Manager, SendTalentsInfoData(), SetActiveTalentGroup(), SetPrimarySpecialization(), and UpdateItemSetAuras().
Referenced by WorldSession::HandlePlayerLogin(), reset_commandscript::HandleResetTalentsCommand(), InitTalentForLevel(), and LoadFromDB().
| void Player::ResetWeeklyQuestStatus | ( | ) |
Definition at line 25575 of file Player.cpp.
References AbandonQuest(), DespawnPersonalSummonsForQuest(), Quest::GetLimitTime(), GetQuestSlotQuestId(), Quest::HasFlagEx(), Quest::IsWeekly(), m_WeeklyQuestChanged, m_weeklyquests, MAX_QUEST_LOG_SIZE, QUEST_FLAGS_EX_REMOVE_ON_PERIODIC_RESET, RemoveActiveQuest(), RemoveTimedQuest(), SendDirectMessage(), SetQuestCompletedBit(), and sObjectMgr.
|
inline |
Definition at line 2447 of file Player.h.
Referenced by DuelResetScript::OnDuelEnd().
|
inline |
Definition at line 2448 of file Player.h.
References POWER_MANA.
Referenced by DuelResetScript::OnDuelEnd().
| void Player::ResummonBattlePetTemporaryUnSummonedIfAny | ( | ) |
Definition at line 27978 of file Player.cpp.
References ObjectGuid::Clear(), WorldSession::GetBattlePetMgr(), GetSession(), ObjectGuid::IsEmpty(), IsPetNeedBeTemporaryUnsummoned(), m_temporaryUnsummonedBattlePet, and BattlePets::BattlePetMgr::SummonPet().
Referenced by WorldSession::HandleMoveWorldportAck().
| void Player::ResummonPetTemporaryUnSummonedIfAny | ( | ) |
Definition at line 27944 of file Player.cpp.
References Unit::GetPetGUID(), IsPetNeedBeTemporaryUnsummoned(), Pet::LoadPetFromDB(), and m_temporaryUnsummonedPetNumber.
Referenced by Unit::_ExitVehicle(), WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandlePlayerLogin(), and Battleground::RemovePlayerAtLeave().
| void Player::ResurrectPlayer | ( | float | restore_percent, |
| bool | applySickness = false |
||
| ) |
Definition at line 4269 of file Player.cpp.
References Unit::AddUnitMovementFlag(), ALIVE, CastAllObtainSpells(), CastSpell, CONFIG_DEATH_SICKNESS_LEVEL, PowerTypeEntry::DefaultPower, Unit::GetAura(), PowerTypeEntry::GetFlags(), BaseEntity::GetGUID(), Unit::GetLevel(), Unit::GetMaxHealth(), Unit::GetMaxPower(), GetPowerTypes(), Unit::GetRace(), GetSession(), WorldObject::GetZoneAndAreaId(), Unit::HasUnitState(), IN_MILLISECONDS, m_deathTimer, WorldPackets::Misc::DeathReleaseLoc::MapID, MINUTE, MOVEMENTFLAG_WATERWALKING, NotSetToDefaultOnResurrect, PLAYER_FLAGS_IS_OUT_OF_BOUNDS, POWER_MANA, Unit::RemoveAurasDueToSpell(), RemovePlayerFlag(), ChrRacesEntry::ResSicknessSpellID, sChrRacesStore, sDB2Manager, SendDirectMessage(), SetAreaSpiritHealer(), setDeathState(), Object::SetDynamicFlag(), Unit::SetHealth(), Unit::SetPower(), Unit::SetRooted(), SetToMaxOnResurrect, Unit::SetWaterWalking(), sOutdoorPvPMgr, sWorld, UNIT_DYNFLAG_REFER_A_FRIEND, UNIT_STATE_STUNNED, UpdateObjectVisibility(), UpdateZone(), and WorldPackets::Misc::DeathReleaseLoc::Write().
Referenced by Spell::EffectSelfResurrect(), Battleground::EndBattleground(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleBattleFieldPortOpcode(), group_commandscript::HandleGroupReviveCommand(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandleReclaimCorpse(), misc_commandscript::HandleReviveCommand(), LoadCorpse(), Battleground::RemovePlayerAtLeave(), ResurrectUsingRequestDataImpl(), WorldSession::SendSpiritResurrect(), and TeleportTo().
| void Player::ResurrectUsingRequestData | ( | ) |
Definition at line 26402 of file Player.cpp.
References _resurrectionData, DELAYED_RESURRECT_PLAYER, IsBeingTeleported(), ResurrectUsingRequestDataImpl(), ScheduleDelayedOperation(), and TeleportTo().
Referenced by WorldSession::HandleResurrectResponse().
| void Player::ResurrectUsingRequestDataImpl | ( | ) |
Definition at line 26416 of file Player.cpp.
References _resurrectionData, CastSpell, POWER_ENERGY, POWER_FOCUS, POWER_LUNAR_POWER, POWER_MANA, POWER_RAGE, ResurrectPlayer(), Unit::SetFullPower(), Unit::SetHealth(), Unit::SetPower(), SpawnCorpseBones(), and TRIGGERED_FULL_MASK.
Referenced by ProcessDelayedOperations(), and ResurrectUsingRequestData().
| void Player::ResyncRunes | ( | ) | const |
Definition at line 27089 of file Player.cpp.
References WorldPackets::Spells::RuneData::Cooldowns, WorldPackets::Spells::RuneData::Count, Unit::GetMaxPower(), GetRuneBaseCooldown(), GetRuneCooldown(), GetRunesState(), POWER_RUNES, WorldPackets::Spells::ResyncRunes::Runes, SendDirectMessage(), WorldPackets::Spells::RuneData::Start, and WorldPackets::Spells::ResyncRunes::Write().
| bool Player::RewardHonor | ( | Unit * | victim, |
| uint32 | groupsize, | ||
| int32 | honor = -1, |
||
| HonorGainSource | source = HonorGainSource::Kill |
||
| ) |
Calculate the amount of honor gained based on the victim and the size of the group for which the honor is divided An exact honor value can also be given (overriding the calcs)
Definition at line 6673 of file Player.cpp.
References _restMgr, AddHonorXP(), AddItem(), AddPct(), BaseEntity::ApplyModUpdateFieldValue(), AsUnderlyingType(), CONFIG_PVP_TOKEN_COUNT, CONFIG_PVP_TOKEN_ENABLE, CONFIG_PVP_TOKEN_ID, CONFIG_PVP_TOKEN_MAP_TYPE, DeliverKillingBlowToClass, DeliverKillingBlowToRace, EarnHonorableKill, WorldObject::GetAreaId(), GetBattleground(), GetBGTeam(), Unit::GetClass(), GetEffectiveTeam(), Trinity::XP::GetGrayLevel(), BaseEntity::GetGUID(), Unit::GetLevel(), Unit::GetLevelForTarget(), Unit::GetMaxPositiveAuraModifier(), Unit::GetMaxPositiveAuraModifierByMiscMask(), Unit::GetRace(), GetSession(), BaseEntity::GetTypeId(), HasAura, Unit::HasAuraType(), Trinity::Honor::hk_honor_at_level_f(), WorldPackets::Combat::PvPCredit::Honor, HonorableKills, InArena(), InBattleground(), Unit::IsFFAPvP(), Creature::IsRacialLeader(), Kill, KillPlayer, UF::ActivePlayerData::LifetimeHonorableKills, m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), WorldPackets::Combat::PvPCredit::OriginalHonor, ChatHandler::PSendSysMessage(), PVPKillInArea, WorldPackets::Combat::PvPCredit::Rank, RATE_HONOR, REST_TYPE_HONOR, SCORE_BONUS_HONOR, SendDirectMessage(), SPELL_AURA_MOD_HONOR_GAIN_PCT, SPELL_AURA_MOD_HONOR_GAIN_PCT_FROM_SOURCE, SPELL_AURA_NO_PVP_CREDIT, SPELL_AURA_PLAYER_INACTIVE, sWorld, WorldPackets::Combat::PvPCredit::Target, Object::ToCreature(), UF::ActivePlayerData::TodayHonorableKills, Object::ToPlayer(), TYPEID_PLAYER, UpdateCriteria(), UpdateHonorFields(), and WorldPackets::Combat::PvPCredit::Write().
Referenced by KillRewarder::_RewardHonor(), DuelComplete(), OutdoorPvPSI::HandleAreaTrigger(), honor_commandscript::HandleHonorAddCommand(), honor_commandscript::HandleHonorAddKillCommand(), RewardQuest(), and Battleground::UpdatePlayerScore().
| void Player::RewardPlayerAndGroupAtEvent | ( | uint32 | creature_id, |
| WorldObject * | pRewardSource | ||
| ) |
Definition at line 26350 of file Player.cpp.
References ObjectGuid::Empty, GetCorpse(), GetGroup(), BaseEntity::GetGUID(), BaseEntity::GetTypeId(), Unit::IsAlive(), IsAtGroupRewardDistance(), KilledMonsterCredit(), and TYPEID_UNIT.
Referenced by Spell::EffectKillCredit(), and SmartAI::StopFollow().
| void Player::RewardPlayerWithRewardPack | ( | RewardPackEntry const * | rewardPackEntry | ) |
Definition at line 6830 of file Player.cpp.
References AddCurrency(), AddItem(), RewardPackEntry::CharTitleID, RewardPackEntry::ID, ModifyMoney(), RewardPackEntry::Money, sCharTitlesStore, sDB2Manager, and SetTitle().
| void Player::RewardPlayerWithRewardPack | ( | uint32 | rewardPackID | ) |
Definition at line 6825 of file Player.cpp.
References RewardPlayerWithRewardPack(), and sRewardPackStore.
Referenced by RewardPlayerWithRewardPack().
| void Player::RewardQuest | ( | Quest const * | quest, |
| LootItemType | rewardType, | ||
| uint32 | rewardId, | ||
| Object * | questGiver, | ||
| bool | announce = true |
||
| ) |
Definition at line 15022 of file Player.cpp.
References AddCurrency(), CollectionMgr::AddItemAppearance(), AddQuestAndCheckCompletion(), Quest::CalculateHonorGain(), CanAddQuest(), Quest::CanIncreaseRewardedQuestCounters(), CanStoreNewItem(), CanTakeQuest(), WorldObject::CastSpell(), CharacterDatabase, CompleteAnyDailyQuestPerDay, CompleteAnyReplayQuest, CompleteDailyQuest, CompleteQuest, CompleteQuestsCount, CompleteQuestsInZone, Currency, DailyQuestReward, DestroyItemCount(), SpellInfo::Difficulty, EQUIP_ERR_OK, GenerateItemRandomBonusListId(), WorldSession::GetCollectionMgr(), Map::GetDifficultyID(), GetDifficultyID(), BaseEntity::GetGUID(), Unit::GetLevel(), WorldObject::GetMap(), GetNextQuest(), Quest::GetObjectives(), Quest::GetQuestId(), GetQuestMoneyReward(), Quest::GetQuestPackageID(), GetQuestStatus(), GetQuestXPReward(), Quest::GetRewardSkillId(), Quest::GetRewardSkillPoints(), Quest::GetRewChoiceItemsCount(), Quest::GetRewItemsCount(), Quest::GetRewMailDelaySecs(), Quest::GetRewMailSenderEntry(), Quest::GetRewMailTemplateId(), Quest::GetRewMoneyMaxLevel(), Quest::GetRewSpell(), Quest::GetRewTitle(), GetSession(), Quest::GetZoneOrSort(), GiveXP(), Quest::HasFlag(), Quest::HasFlagEx(), HasPvPForcingQuest(), SpellInfo::HasTargetType(), SpellInfo::Id, Quest::IsDaily(), Quest::IsDFQuest(), PvPInfo::IsHostile, PvPInfo::IsInHostileArea, IsMaxLevel(), Quest::IsMonthly(), ConditionMgr::IsPlayerMeetingCondition(), Quest::IsSeasonal(), BaseEntity::IsUnit(), Quest::IsWeekly(), BaseEntity::IsWorldObject(), Quest::IsWorldQuest(), Item, Quest::ItemDrop, Quest::ItemDropQuantity, MAIL_CHECK_MASK_HAS_BODY, ModifyMoney(), Money, MoneyEarnedFromQuesting, NULL_BAG, NULL_SLOT, PhasingHandler::OnConditionChange(), PlayerTalkClass, pvpInfo, Quest, QUEST_FLAGS_EX_NO_ITEM_REMOVAL, QUEST_FLAGS_EX_REWARDS_IGNORE_CAPS, QUEST_FLAGS_FLAGS_PVP, QUEST_FLAGS_PLAYER_CAST_COMPLETE, QUEST_FLAGS_REMOVE_SURPLUS_ITEMS, QUEST_FLAGS_UPDATE_PHASESHIFT, QUEST_ITEM_DROP_COUNT, QUEST_OBJECTIVE_CURRENCY, QUEST_OBJECTIVE_ITEM, Quest_Reward, QUEST_REWARD_CHOICES_COUNT, QUEST_REWARD_CURRENCY_COUNT, QUEST_STATUS_REWARDED, QuestComplete, QuestReward, QuestRewardIgnoreCaps, QuestTurnin, RATE_DROP_MONEY, RemoveActiveQuest(), RemoveCurrency(), RemoveTimedQuest(), Quest::RewardChoiceItemCount, Quest::RewardChoiceItemId, Quest::RewardChoiceItemType, Quest::RewardCurrencyCount, Quest::RewardCurrencyId, Quest::RewardDisplaySpell, RewardHonor(), Quest::RewardItemCount, Quest::RewardItemId, RewardQuestPackage(), RewardReputation(), SaveToDB(), sCharTitlesStore, sCurrencyTypesStore, SendDisplayToast(), SendItemRetrievalMail(), MailDraft::SendMailTo(), SendNewItem(), SendQuestReward(), SendQuestUpdate(), SetCanDelayTeleport(), CastSpellExtraArgs::SetCastDifficulty(), SetDailyQuestStatus(), SetMonthlyQuestStatus(), SetQuestCompletedBit(), SetRewardedQuest(), SetSeasonalQuestStatus(), SetTitle(), SetWeeklyQuestStatus(), sObjectMgr, sScriptMgr, sSpellMgr, StartCriteria(), StoreNewItem(), sWorld, TARGET_UNIT_CASTER, Object::ToCreature(), Object::ToGameObject(), Object::ToUnit(), TRIGGERED_FULL_MASK, UpdateCriteria(), UpdateObjectVisibility(), UpdatePvPState(), UpdateSkillPro(), WeeklyQuestReward, WorldQuestReward, and WorldQuestRewardIgnoreCaps.
Referenced by CollectionMgr::AddItemAppearance(), Loot::AutoStore(), Loot::AutoStoreTrackingQuests(), CompleteQuest(), lfg::LFGMgr::FinishDungeon(), WorldSession::HandleQuestgiverChooseRewardOpcode(), and quest_commandscript::HandleQuestReward().
| void Player::RewardQuestPackage | ( | uint32 | questPackageId, |
| ItemContext | context, | ||
| uint32 | onlyItemId = 0 |
||
| ) |
Definition at line 14975 of file Player.cpp.
References CollectionMgr::AddItemAppearance(), CanSelectQuestPackageItem(), CanStoreNewItem(), EQUIP_ERR_OK, GenerateItemRandomBonusListId(), WorldSession::GetCollectionMgr(), GetSession(), NULL_BAG, NULL_SLOT, sDB2Manager, SendNewItem(), and StoreNewItem().
Referenced by RewardQuest().
| void Player::RewardReputation | ( | Quest const * | quest | ) |
Definition at line 6591 of file Player.cpp.
References CalculateReputationGain(), GetQuestLevel(), GetReputationMgr(), Quest::GetRewardReputationMask(), Quest::IsDaily(), Quest::IsMonthly(), Quest::IsRepeatable(), Quest::IsWeekly(), ReputationMgr::ModifyReputation(), QUEST_REWARD_REPUTATIONS_COUNT, REPUTATION_SOURCE_DAILY_QUEST, REPUTATION_SOURCE_MONTHLY_QUEST, REPUTATION_SOURCE_QUEST, REPUTATION_SOURCE_REPEATABLE_QUEST, REPUTATION_SOURCE_WEEKLY_QUEST, Quest::RewardFactionCapIn, Quest::RewardFactionId, Quest::RewardFactionOverride, Quest::RewardFactionValue, sFactionStore, and sQuestFactionRewardStore.
| void Player::RewardReputation | ( | Unit * | victim, |
| float | rate | ||
| ) |
Definition at line 6540 of file Player.cpp.
References ALLIANCE, CalculateReputationGain(), CreatureTemplate::Entry, EXPANSION_WRATH_OF_THE_LICH_KING, GetChampioningFaction(), Creature::GetCreatureTemplate(), Map::GetDifficultyID(), Map::GetId(), Unit::GetLevelForTarget(), DB2Manager::GetLfgDungeon(), WorldObject::GetMap(), GetMaxLevelForExpansion(), ReputationMgr::GetRank(), GetReputationMgr(), GetTeam(), BaseEntity::GetTypeId(), HORDE, Map::IsNonRaidDungeon(), Creature::IsReputationGainDisabled(), m_playerData, ReputationMgr::ModifyReputation(), ReputationOnKillEntry::RepFaction1, ReputationOnKillEntry::RepFaction2, REPUTATION_SOURCE_KILL, ReputationOnKillEntry::ReputationMaxCap1, ReputationOnKillEntry::ReputationMaxCap2, ReputationOnKillEntry::RepValue1, ReputationOnKillEntry::RepValue2, sDB2Manager, sFactionStore, sObjectMgr, ReputationOnKillEntry::TeamDependent, Object::ToCreature(), and TYPEID_PLAYER.
Referenced by KillRewarder::_RewardReputation(), and RewardQuest().
| bool Player::Satisfy | ( | AccessRequirement const * | ar, |
| uint32 | target_map, | ||
| TransferAbortParams * | params = nullptr, |
||
| bool | report = false |
||
| ) |
Definition at line 20033 of file Player.cpp.
References AccessRequirement::achievement, ALLIANCE, ASSERT_NOTNULL, CONFIG_INSTANCE_IGNORE_LEVEL, MapDifficultyEntry::DifficultyID, ObjectAccessor::FindPlayer(), GetDifficultyID(), Group::GetDifficultyID(), GetGroup(), BaseEntity::GetGUID(), Group::GetLeaderGUID(), Unit::GetLevel(), GetQuestRewardStatus(), GetSession(), GetTeam(), HasAchieved(), HasItemCount(), HORDE, MapDifficultyEntry::ID, IsGameMaster(), ConditionMgr::IsPlayerMeetingCondition(), AccessRequirement::item, AccessRequirement::item2, LANG_LEVEL_MINREQUIRED, LANG_LEVEL_MINREQUIRED_AND_ITEM, AccessRequirement::levelMax, AccessRequirement::levelMin, MapDifficultyEntry::Message, params, ChatHandler::PSendSysMessage(), AccessRequirement::quest_A, AccessRequirement::quest_H, AccessRequirement::questFailedText, sDB2Manager, WorldSession::SendNotification(), sMapStore, sObjectMgr, sWorld, TRANSFER_ABORT_DIFFICULTY, and TRANSFER_ABORT_ERROR.
Referenced by Map::PlayerCannotEnter().
| bool Player::SatisfyQuestBreadcrumbQuest | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15560 of file Player.cpp.
References CanTakeQuest(), Quest::GetBreadcrumbForQuestId(), BaseEntity::GetGUID(), WorldObject::GetName(), Quest::GetQuestId(), QUEST_ERR_NONE, SendCanTakeQuestResponse(), sObjectMgr, TC_LOG_DEBUG, and Position::ToString().
Referenced by SatisfyQuestDependentQuests().
| bool Player::SatisfyQuestClass | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15605 of file Player.cpp.
References Quest::GetAllowableClasses(), Unit::GetClassMask(), BaseEntity::GetGUID(), WorldObject::GetName(), Quest::GetQuestId(), QUEST_ERR_NONE, SendCanTakeQuestResponse(), TC_LOG_DEBUG, and Position::ToString().
Referenced by CanSeeStartQuest(), CanTakeQuest(), learn_commandscript::HandleLearnMyQuestsCommand(), and WorldSession::HandlePushQuestToParty().
| bool Player::SatisfyQuestConditions | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15708 of file Player.cpp.
References CONDITION_SOURCE_TYPE_QUEST_AVAILABLE, BaseEntity::GetGUID(), WorldObject::GetName(), Quest::GetQuestId(), QUEST_ERR_NONE, sConditionMgr, SendCanTakeQuestResponse(), TC_LOG_DEBUG, and Position::ToString().
Referenced by CanTakeQuest().
| bool Player::SatisfyQuestDay | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15784 of file Player.cpp.
References Quest::GetQuestId(), Quest::IsDaily(), Quest::IsDFQuest(), m_activePlayerData, and m_DFQuests.
Referenced by CanRewardQuest(), CanSeeStartQuest(), CanTakeQuest(), WorldSession::HandlePushQuestToParty(), and SatisfyQuestExclusiveGroup().
| bool Player::SatisfyQuestDependentBreadcrumbQuests | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15584 of file Player.cpp.
References Quest::DependentBreadcrumbQuests, BaseEntity::GetGUID(), WorldObject::GetName(), Quest::GetQuestId(), GetQuestStatus(), QUEST_ERR_NONE, QUEST_STATUS_COMPLETE, QUEST_STATUS_FAILED, QUEST_STATUS_INCOMPLETE, SendCanTakeQuestResponse(), TC_LOG_DEBUG, and Position::ToString().
Referenced by SatisfyQuestDependentQuests().
| bool Player::SatisfyQuestDependentPreviousQuests | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15502 of file Player.cpp.
References ASSERT, Quest::DependentPreviousQuests, Quest::GetExclusiveGroup(), BaseEntity::GetGUID(), WorldObject::GetName(), Quest::GetQuestId(), IsQuestRewarded(), QUEST_ERR_NONE, SendCanTakeQuestResponse(), sObjectMgr, TC_LOG_DEBUG, and Position::ToString().
Referenced by SatisfyQuestDependentQuests().
| bool Player::SatisfyQuestDependentQuests | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15469 of file Player.cpp.
References SatisfyQuestBreadcrumbQuest(), SatisfyQuestDependentBreadcrumbQuests(), SatisfyQuestDependentPreviousQuests(), and SatisfyQuestPreviousQuest().
Referenced by CanSeeStartQuest(), CanTakeQuest(), and WorldSession::HandlePushQuestToParty().
| bool Player::SatisfyQuestExclusiveGroup | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15739 of file Player.cpp.
References ASSERT, Quest::GetExclusiveGroup(), BaseEntity::GetGUID(), WorldObject::GetName(), Quest::GetQuestId(), GetQuestRewardStatus(), GetQuestStatus(), Quest::IsRepeatable(), QUEST_ERR_NONE, QUEST_STATUS_NONE, SatisfyQuestDay(), SatisfyQuestSeasonal(), SatisfyQuestWeek(), SendCanTakeQuestResponse(), sObjectMgr, TC_LOG_DEBUG, and Position::ToString().
Referenced by CanSeeStartQuest(), and CanTakeQuest().
| bool Player::SatisfyQuestExpansion | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15822 of file Player.cpp.
References Quest::GetExpansion(), BaseEntity::GetGUID(), WorldObject::GetName(), Quest::GetQuestId(), GetSession(), QUEST_ERR_FAILED_EXPANSION, SendCanTakeQuestResponse(), TC_LOG_DEBUG, and Position::ToString().
Referenced by CanSeeStartQuest(), CanTakeQuest(), and WorldSession::HandlePushQuestToParty().
| bool Player::SatisfyQuestLevel | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15419 of file Player.cpp.
References SatisfyQuestMaxLevel(), and SatisfyQuestMinLevel().
Referenced by CanRewardQuest(), CanTakeQuest(), and GetQuestDialogStatus().
| bool Player::SatisfyQuestLog | ( | bool | msg | ) | const |
Definition at line 15454 of file Player.cpp.
References GetQuestSlotQuestId(), MAX_QUEST_LOG_SIZE, SendDirectMessage(), and WorldPackets::Quest::QuestLogFull::Write().
Referenced by CanAddQuest(), and WorldSession::HandlePushQuestToParty().
| bool Player::SatisfyQuestMaxLevel | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15439 of file Player.cpp.
References BaseEntity::GetGUID(), Unit::GetLevel(), Quest::GetMaxLevel(), WorldObject::GetName(), Quest::GetQuestId(), QUEST_ERR_NONE, SendCanTakeQuestResponse(), TC_LOG_DEBUG, and Position::ToString().
Referenced by WorldSession::HandlePushQuestToParty(), and SatisfyQuestLevel().
| bool Player::SatisfyQuestMaxReputation | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15660 of file Player.cpp.
References BaseEntity::GetGUID(), WorldObject::GetName(), Quest::GetQuestId(), GetReputation(), GetReputationMgr(), Quest::GetRequiredMaxRepFaction(), Quest::GetRequiredMaxRepValue(), QUEST_ERR_NONE, SendCanTakeQuestResponse(), TC_LOG_DEBUG, and Position::ToString().
Referenced by WorldSession::HandlePushQuestToParty(), and SatisfyQuestReputation().
| bool Player::SatisfyQuestMinLevel | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15424 of file Player.cpp.
References BaseEntity::GetGUID(), Unit::GetLevel(), WorldObject::GetName(), Quest::GetQuestId(), GetQuestMinLevel(), QUEST_ERR_FAILED_LOW_LEVEL, SendCanTakeQuestResponse(), TC_LOG_DEBUG, and Position::ToString().
Referenced by WorldSession::HandlePushQuestToParty(), and SatisfyQuestLevel().
| bool Player::SatisfyQuestMinReputation | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15643 of file Player.cpp.
References BaseEntity::GetGUID(), WorldObject::GetName(), Quest::GetQuestId(), GetReputation(), GetReputationMgr(), Quest::GetRequiredMinRepFaction(), Quest::GetRequiredMinRepValue(), QUEST_ERR_NONE, SendCanTakeQuestResponse(), TC_LOG_DEBUG, and Position::ToString().
Referenced by WorldSession::HandlePushQuestToParty(), and SatisfyQuestReputation().
| bool Player::SatisfyQuestMonth | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15836 of file Player.cpp.
References Quest::GetQuestId(), Quest::IsMonthly(), and m_monthlyquests.
Referenced by CanRewardQuest(), CanSeeStartQuest(), and CanTakeQuest().
| bool Player::SatisfyQuestPreviousQuest | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15475 of file Player.cpp.
References BaseEntity::GetGUID(), WorldObject::GetName(), Quest::GetPrevQuestId(), Quest::GetQuestId(), GetQuestStatus(), m_RewardedQuests, QUEST_ERR_NONE, QUEST_STATUS_INCOMPLETE, SendCanTakeQuestResponse(), TC_LOG_DEBUG, and Position::ToString().
Referenced by SatisfyQuestDependentQuests().
| bool Player::SatisfyQuestRace | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15627 of file Player.cpp.
References Quest::GetAllowableRaces(), BaseEntity::GetGUID(), WorldObject::GetName(), Quest::GetQuestId(), Unit::GetRace(), Trinity::RaceMask< T, N >::HasRace(), QUEST_ERR_FAILED_WRONG_RACE, SendCanTakeQuestResponse(), TC_LOG_DEBUG, and Position::ToString().
Referenced by CanSeeStartQuest(), CanTakeQuest(), and WorldSession::HandlePushQuestToParty().
| bool Player::SatisfyQuestReputation | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15677 of file Player.cpp.
References SatisfyQuestMaxReputation(), and SatisfyQuestMinReputation().
Referenced by CanRewardQuest(), CanSeeStartQuest(), and CanTakeQuest().
| bool Player::SatisfyQuestSeasonal | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15809 of file Player.cpp.
References Quest::GetEventIdForQuest(), Quest::GetQuestId(), Quest::IsSeasonal(), and m_seasonalquests.
Referenced by CanRewardQuest(), CanSeeStartQuest(), CanTakeQuest(), GetQuestRewardStatus(), and SatisfyQuestExclusiveGroup().
| bool Player::SatisfyQuestSkill | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15395 of file Player.cpp.
References BaseEntity::GetGUID(), WorldObject::GetName(), Quest::GetQuestId(), Quest::GetRequiredSkill(), Quest::GetRequiredSkillValue(), GetSkillValue(), QUEST_ERR_NONE, SendCanTakeQuestResponse(), TC_LOG_DEBUG, and Position::ToString().
Referenced by CanRewardQuest(), CanSeeStartQuest(), and CanTakeQuest().
| bool Player::SatisfyQuestStatus | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15682 of file Player.cpp.
References BaseEntity::GetGUID(), WorldObject::GetName(), Quest::GetQuestId(), GetQuestStatus(), QUEST_ERR_ALREADY_DONE, QUEST_ERR_ALREADY_ON1, QUEST_STATUS_NONE, QUEST_STATUS_REWARDED, SendCanTakeQuestResponse(), TC_LOG_DEBUG, and Position::ToString().
Referenced by CanTakeQuest().
| bool Player::SatisfyQuestTimed | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15724 of file Player.cpp.
References BaseEntity::GetGUID(), Quest::GetLimitTime(), WorldObject::GetName(), Quest::GetQuestId(), m_timedquests, QUEST_ERR_ONLY_ONE_TIMED, SendCanTakeQuestResponse(), TC_LOG_DEBUG, and Position::ToString().
Referenced by CanTakeQuest().
| bool Player::SatisfyQuestWeek | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15800 of file Player.cpp.
References Quest::GetQuestId(), Quest::IsWeekly(), and m_weeklyquests.
Referenced by CanRewardQuest(), CanSeeStartQuest(), CanTakeQuest(), and SatisfyQuestExclusiveGroup().
|
inline |
Definition at line 1830 of file Player.h.
Referenced by WorldSession::HandleSaveCUFProfiles().
|
inline |
|
static |
Definition at line 20818 of file Player.cpp.
References SavePlayerCustomizations().
Referenced by WorldSession::HandleCharCustomizeCallback(), and WorldSession::HandleCharRaceOrFactionChangeCallback().
|
inline |
Definition at line 2445 of file Player.h.
Referenced by DuelResetScript::OnDuelStart().
| void Player::SaveInventoryAndGoldToDB | ( | CharacterDatabaseTransaction | trans | ) |
Definition at line 20790 of file Player.cpp.
References _SaveCurrency(), _SaveInventory(), CHAR_UPD_CHAR_MONEY, CharacterDatabase, BaseEntity::GetGUID(), GetMoney(), and PreparedStatementBase::setUInt64().
Referenced by AuctionHouseObject::BuyCommodity(), WorldSession::HandleAcceptTradeOpcode(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionSellCommodity(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleMailTakeItem(), WorldSession::HandleMailTakeMoney(), Guild::HandleMemberDepositMoney(), Guild::HandleMemberWithdrawMoney(), WorldSession::HandleOpenWrappedItemCallback(), WorldSession::HandleSendMail(), and RefundItem().
|
inline |
Definition at line 2446 of file Player.h.
References POWER_MANA.
Referenced by DuelResetScript::OnDuelStart().
|
static |
Definition at line 21773 of file Player.cpp.
References CHAR_UPD_CHARACTER_POSITION, CharacterDatabase, ObjectGuid::GetCounter(), WorldLocation::GetMapId(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), PreparedStatementBase::setFloat(), PreparedStatementBase::setUInt16(), and PreparedStatementBase::setUInt64().
Referenced by tele_commandscript::DoNameTeleport(), WorldSession::HandleCharRaceOrFactionChangeCallback(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleNameCommand(), and misc_commandscript::HandleUnstuckCommand().
|
inline |
Definition at line 2667 of file Player.h.
Referenced by go_commandscript::DoTeleport(), misc_commandscript::HandleAppearCommand(), go_commandscript::HandleGoBossCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoInstanceCommand(), go_commandscript::HandleGoQuestCommand(), go_commandscript::HandleGoTicketCommand(), go_commandscript::HandleGoZoneXYCommand(), group_commandscript::HandleGroupSummonCommand(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleCommand(), tele_commandscript::HandleTeleGroupCommand(), and LoadFromDB().
| void Player::SaveToDB | ( | bool | create = false | ) |
Definition at line 20386 of file Player.cpp.
References CharacterDatabase, LoginDatabase, and SaveToDB().
Referenced by misc_commandscript::HandleFreezeCommand(), group_commandscript::HandleGroupReviveCommand(), misc_commandscript::HandleReviveCommand(), misc_commandscript::HandleSaveCommand(), WorldSession::LogoutPlayer(), ProcessDelayedOperations(), RewardQuest(), SaveToDB(), SkipQuests(), SpawnCorpseBones(), and Update().
| void Player::SaveToDB | ( | LoginDatabaseTransaction | loginTransaction, |
| CharacterDatabaseTransaction | trans, | ||
| bool | create = false |
||
| ) |
Insert query
Definition at line 20397 of file Player.cpp.
References _garrison, _restMgr, _SaveActions(), _SaveAuras(), _SaveBGData(), _SaveCharacterBankTabSettings(), _SaveCharacterSelectOutfit(), _SaveCUFProfiles(), _SaveCurrency(), _SaveCustomizations(), _SaveDailyQuestStatus(), _SaveEquipmentSets(), _SaveGlyphs(), _SaveInventory(), _SaveMail(), _SaveMonthlyQuestStatus(), _SavePlayerData(), _SaveQuestStatus(), _SaveSeasonalQuestStatus(), _SaveSkills(), _SaveSpells(), _SaveStats(), _SaveStoredAuraTeleportLocations(), _SaveTalents(), _SaveTraits(), _SaveTransmogOutfits(), _SaveWeeklyQuestStatus(), AsUnderlyingType(), CHAR_DEL_CHAR_FISHINGSTEPS, CHAR_INS_CHAR_FISHINGSTEPS, CHAR_INS_CHARACTER, CHAR_UPD_CHARACTER, CharacterDatabase, CONFIG_INTERVAL_SAVE, CONFIG_STATS_SAVE_ONLY_ON_LOGOUT, DELAYED_SAVE_PLAYER, DisableAutoSort, ExcludeJunkSell, GetActiveTalentGroup(), GetBankBagSlotCount(), WorldSession::GetBattlePetMgr(), GetCharacterBankTabCount(), Unit::GetClass(), WorldSession::GetCollectionMgr(), ObjectGuid::GetCounter(), GetDrunkValue(), GetDungeonDifficultyID(), GameTime::GetGameTime(), BaseEntity::GetGUID(), Unit::GetHealth(), GetHonorLevel(), WorldObject::GetInstanceId(), GetInventorySlotCount(), WorldSession::GetLatency(), GetLegacyRaidDifficultyID(), Unit::GetLevel(), GetLootSpecId(), WorldLocation::GetMapId(), ClientBuild::GetMinorMajorBugfixVersionForBuild(), GetMoney(), WorldObject::GetName(), GetNativeGender(), GetNumRespecs(), Position::GetOrientation(), GetPet(), GetPetStable(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetPrimarySpecialization(), Unit::GetRace(), GetRaidDifficultyID(), GetSession(), Unit::GetSpellHistory(), GetTalentResetCost(), GetTalentResetTime(), GetTeleportDest(), WorldObject::GetTransOffsetO(), WorldObject::GetTransOffsetX(), WorldObject::GetTransOffsetY(), WorldObject::GetTransOffsetZ(), WorldObject::GetTransport(), GetXP(), WorldObject::GetZoneId(), HasPlayerFlag(), IsBeingTeleported(), IsBeingTeleportedFar(), BaseEntity::IsInWorld(), WorldSession::isLogingOut(), Location, TeleportLocation::Location, LOGIN_DEL_BNET_LAST_PLAYER_CHARACTERS, LOGIN_INS_BNET_LAST_PLAYER_CHARACTERS, LoginDatabase, m_achievementMgr, m_activePlayerData, m_atLoginFlags, m_cinematic, m_createMode, m_createTime, m_deathExpireTime, m_ExtraFlags, m_fishingSteps, m_mailsUpdated, WorldObject::m_name, m_nextSave, m_Played_time, m_playerData, m_questObjectiveCriteriaMgr, m_reputationMgr, m_session, m_taxi, Unit::m_unitData, MAX_POWERS_PER_CLASS, None, outDebugValues(), PET_SAVE_AS_CURRENT, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_DATA_FLAG_EXPLORED_ZONES_INDEX, PLAYER_FLAGS_RESTING, Battlenet::RealmHandle::Realm, Battlenet::RealmHandle::Region, REST_TYPE_HONOR, REST_TYPE_XP, WorldSession::SaveInstanceTimeRestrictions(), WorldSession::SavePlayerDataAccount(), PlayerTaxi::SaveTaxiDestinationsToString(), SpellHistory::SaveToDB(), BattlePets::BattlePetMgr::SaveToDB(), CollectionMgr::SaveToDB(), WorldSession::SaveTutorialsData(), ScheduleDelayedOperation(), PreparedStatementBase::setBool(), PreparedStatementBase::setFloat(), PreparedStatementBase::setInt32(), PreparedStatementBase::setInt64(), PreparedStatementBase::setInt8(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), Battlenet::RealmHandle::Site, sRealmList, sScriptMgr, sWorld, TC_LOG_DEBUG, UI64LIT, and UpdateHonorFields().
|
overridevirtual |
Handles said message in regular chat based on declared language and in config pre-defined Range.
Reimplemented from Unit.
Definition at line 22259 of file Player.cpp.
References CHAT_MSG_SAY, CONFIG_LISTEN_RANGE_SAY, SendChatMessageToSetInRange(), sScriptMgr, and sWorld.
Referenced by WorldSession::HandleChatMessage().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 22280 of file Player.cpp.
References CHAT_MSG_SAY, CONFIG_LISTEN_RANGE_SAY, and sWorld.
|
inlineprivate |
Definition at line 3347 of file Player.h.
References DELAYED_END.
Referenced by LeaveBattleground(), ResurrectUsingRequestData(), SaveToDB(), and TeleportToBGEntryPoint().
| Optional< SellResult > Player::SellItemToVendor | ( | Item * | item, |
| uint32 | amount | ||
| ) |
Definition at line 23920 of file Player.cpp.
References AddItemToBuyBackSlot(), Item::CloneItem(), Item::GetBagSlot(), Item::GetCount(), Object::GetEntry(), Item::GetSellPrice(), Item::GetSlot(), BaseEntity::IsInWorld(), ITEM_CHANGED, ItemRemovedQuestCheck(), ModifyMoney(), MoneyEarnedFromSales, RemoveItem(), RemoveItemFromUpdateQueueOf, SELL_ERR_CANT_SELL_ITEM, SellItemsToVendors, BaseEntity::SendUpdateToPlayer(), Item::SetCount(), Item::SetState(), TC_LOG_ERROR, and UpdateCriteria().
Referenced by WorldSession::HandleSellAllJunkItems(), and WorldSession::HandleSellItemOpcode().
| void Player::SendActionButtons | ( | uint32 | state | ) | const |
Definition at line 6012 of file Player.cpp.
References ACTIONBUTTON_DELETED, WorldPackets::Spells::UpdateActionButtons::ActionButtons, m_actionButtons, WorldPackets::Spells::UpdateActionButtons::Reason, SendDirectMessage(), and WorldPackets::Spells::UpdateActionButtons::Write().
Referenced by ActivateTalentGroup(), and LoadActions().
| void Player::SendAreaSpiritHealerTime | ( | ObjectGuid const & | spiritHealerGUID, |
| int32 | timeLeft | ||
| ) | const |
| void Player::SendAreaSpiritHealerTime | ( | Unit * | spiritHealer | ) | const |
Definition at line 31411 of file Player.cpp.
References CURRENT_CHANNELED_SPELL, Unit::GetCurrentSpell(), BaseEntity::GetGUID(), and SendAreaSpiritHealerTime().
Referenced by WorldSession::HandleAreaSpiritHealerQueryOpcode(), WorldSession::HandleGossipHelloOpcode(), and SendAreaSpiritHealerTime().
| void Player::SendAttackSwingCancelAttack | ( | ) | const |
Definition at line 21788 of file Player.cpp.
References SendDirectMessage().
Referenced by Unit::CombatStop(), spell_hun_scatter_shot::HandleDummy(), and Unit::StopAttackFaction().
| void Player::SendAurasForTarget | ( | Unit * | target | ) | const |
Definition at line 25468 of file Player.cpp.
References WorldPackets::Spells::AuraUpdate::Auras, BaseEntity::GetGUID(), Unit::GetVisibleAuras(), SendDirectMessage(), WorldPackets::Spells::AuraUpdate::UnitGUID, WorldPackets::Spells::AuraUpdate::UpdateAll, and WorldPackets::Spells::AuraUpdate::Write().
Referenced by SendInitialPacketsAfterAddToMap(), and SendInitialVisiblePackets().
| void Player::SendAutoRepeatCancel | ( | Unit * | target | ) |
Definition at line 21801 of file Player.cpp.
References BaseEntity::GetGUID(), WorldPackets::Combat::CancelAutoRepeat::Guid, SendMessageToSet(), and WorldPackets::Combat::CancelAutoRepeat::Write().
Referenced by Unit::InterruptSpell().
| void Player::SendBindPointUpdate | ( | ) | const |
Definition at line 17910 of file Player.cpp.
References WorldPackets::Misc::BindPointUpdate::BindAreaID, WorldPackets::Misc::BindPointUpdate::BindMapID, WorldPackets::Misc::BindPointUpdate::BindPosition, WorldLocation::GetMapId(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), m_homebind, m_homebindAreaId, SendDirectMessage(), and WorldPackets::Misc::BindPointUpdate::Write().
Referenced by Spell::EffectBind(), spell_defender_of_azeroth_death_gate_selector::HandleDummy(), and SendInitialPacketsBeforeAddToMap().
Definition at line 13096 of file Player.cpp.
References ObjectGuid::Empty, BaseEntity::GetGUID(), WorldPackets::Item::BuyFailed::Muid, WorldPackets::Item::BuyFailed::Reason, SendDirectMessage(), WorldPackets::Item::BuyFailed::VendorGUID, and WorldPackets::Item::BuyFailed::Write().
Referenced by BuyCurrencyFromVendorSlot(), BuyItemFromVendorSlot(), WorldSession::HandleBuybackItem(), debug_commandscript::HandleDebugSendBuyErrorCommand(), WorldSession::HandlePetitionBuy(), and OnGossipSelect().
| void Player::SendCanTakeQuestResponse | ( | QuestFailedReason | reason, |
| bool | sendErrorMessage = true, |
||
| std::string | reasonText = "" |
||
| ) | const |
Definition at line 17345 of file Player.cpp.
References WorldPackets::Quest::QuestGiverInvalidQuest::Reason, WorldPackets::Quest::QuestGiverInvalidQuest::ReasonText, SendDirectMessage(), WorldPackets::Quest::QuestGiverInvalidQuest::SendErrorMessage, and WorldPackets::Quest::QuestGiverInvalidQuest::Write().
Referenced by debug_commandscript::HandleDebugSendQuestInvalidMsgCommand(), SatisfyQuestBreadcrumbQuest(), SatisfyQuestClass(), SatisfyQuestConditions(), SatisfyQuestDependentBreadcrumbQuests(), SatisfyQuestDependentPreviousQuests(), SatisfyQuestExclusiveGroup(), SatisfyQuestExpansion(), SatisfyQuestMaxLevel(), SatisfyQuestMaxReputation(), SatisfyQuestMinLevel(), SatisfyQuestMinReputation(), SatisfyQuestPreviousQuest(), SatisfyQuestRace(), SatisfyQuestSkill(), SatisfyQuestStatus(), and SatisfyQuestTimed().
| void Player::SendChatMessageToSetInRange | ( | ChatMsg | chatMsg, |
| Language | lanugageId, | ||
| std::string && | text, | ||
| float | range | ||
| ) |
Definition at line 22267 of file Player.cpp.
References Cell::VisitWorldObjects().
| void Player::SendCinematicStart | ( | uint32 | CinematicSequenceId | ) | const |
Definition at line 6198 of file Player.cpp.
References _cinematicMgr, WorldPackets::Misc::TriggerCinematic::CinematicID, sCinematicSequencesStore, SendDirectMessage(), and WorldPackets::Misc::TriggerCinematic::Write().
Referenced by debug_commandscript::HandleDebugPlayCinematicCommand(), WorldSession::HandleOpeningCinematic(), WorldSession::HandlePlayerLogin(), and GameObject::Use().
| void Player::SendCorpseReclaimDelay | ( | uint32 | delay | ) | const |
Definition at line 26589 of file Player.cpp.
References WorldPackets::Misc::CorpseReclaimDelay::Remaining, SendDirectMessage(), and WorldPackets::Misc::CorpseReclaimDelay::Write().
Referenced by BuildPlayerRepop(), WorldSession::HandlePlayerLogin(), and KillPlayer().
| void Player::SendCurrencies | ( | ) | const |
Send full data about all currencies to client.
Definition at line 6965 of file Player.cpp.
References _currencyStorage, ALLIANCE, AsUnderlyingType(), CurrencyTypesEntry::AwardConditionID, WorldPackets::Misc::SetupCurrency::Data, WorldPackets::Misc::SetupCurrency::Record::Flags, GetCurrencyMaxQuantity(), GetCurrencyWeeklyCap(), CurrencyTypesEntry::GetScaler(), GetTeam(), CurrencyTypesEntry::HasMaxEarnablePerWeek(), CurrencyTypesEntry::HasMaxQuantity(), CurrencyTypesEntry::HasTotalEarned(), HORDE, CurrencyTypesEntry::ID, CurrencyTypesEntry::IsAlliance(), CurrencyTypesEntry::IsHorde(), ConditionMgr::IsPlayerMeetingCondition(), CurrencyTypesEntry::IsTrackingQuantity(), WorldPackets::Misc::SetupCurrency::Record::MaxQuantity, WorldPackets::Misc::SetupCurrency::Record::MaxWeeklyQuantity, WorldPackets::Misc::SetupCurrency::Record::Quantity, sCurrencyTypesStore, SendDirectMessage(), WorldPackets::Misc::SetupCurrency::Record::TotalEarned, WorldPackets::Misc::SetupCurrency::Record::TrackedQuantity, WorldPackets::Misc::SetupCurrency::Record::Type, UnusedFlags, WorldPackets::Misc::SetupCurrency::Record::WeeklyQuantity, and WorldPackets::Misc::SetupCurrency::Write().
Referenced by SendInitialPacketsBeforeAddToMap().
| void Player::SendDirectMessage | ( | WorldPacket const * | data | ) | const |
Definition at line 6193 of file Player.cpp.
References m_session, and WorldSession::SendPacket().
Referenced by _LoadQuestStatus(), _StoreOrEquipNewItem(), Garrison::ActivateBuilding(), ActivateTalentGroup(), Garrison::AddFollower(), Guild::AddGuildNews(), Guild::AddMember(), Group::AddMember(), Battleground::AddPlayer(), AddSpell(), AddSpellMod(), ApplyArtifactPowerRank(), ApplyEquipCooldown(), ApplyEquipSpell(), BeforeVisibilityDestroy< Creature >(), BeforeVisibilityDestroy< GameObject >(), BeforeVisibilityDestroy< Player >(), Group::BroadcastAddonMessagePacket(), Guild::BroadcastAddonToGuild(), OutdoorPvP::BroadcastPacket(), Guild::BroadcastPacket(), Group::BroadcastPacket(), Guild::BroadcastPacketToRank(), Guild::BroadcastToGuild(), BuildPlayerRepop(), AuctionHouseObject::BuyCommodity(), Garrison::CancelBuildingConstruction(), CancelPendingCastRequest(), SceneMgr::CancelScene(), CastItemUseSpell(), CharmSpellInitialize(), CheckDuelDistance(), Unit::ClearBossEmotes(), Garrison::Plot::ClearBuildingInfo(), Garrison::Create(), InstanceMap::CreateInstanceLockForPlayer(), DailyReset(), Garrison::Delete(), BaseEntity::DestroyForPlayer(), DisablePetControlsOnMount(), Guild::Disband(), Group::Disband(), DoRandomRoll(), DuelComplete(), Spell::EffectApplyGlyph(), Spell::EffectApplyMountEquipment(), Spell::EffectDuel(), Spell::EffectGiveHonor(), Spell::EffectPlayMusic(), Spell::EffectTeleportUnits(), EnablePetControlsOnDismount(), Battleground::EndBattleground(), EquipItem(), BGQueueInviteEvent::Execute(), BGQueueRemoveEvent::Execute(), ExecutePendingSpellCastRequest(), Spell::finish(), Item::GiveArtifactXp(), GiveLevel(), GiveXP(), AzeriteItem::GiveXP(), AuraEffect::HandleAuraForceWeather(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleChatIgnoredOpcode(), spell_gen_spirit_healer_res::HandleDummy(), Unit::HandleEmoteCommand(), Guild::HandleInviteMember(), modify_commandscript::HandleModifySpellCommand(), WorldSession::HandlePartyInviteOpcode(), WorldSession::HandlePartyInviteResponseOpcode(), WorldSession::HandleQueryCountdownTimer(), WorldSession::HandleSendPingCooldown(), WorldSession::HandleSendPingUnit(), WorldSession::HandleSendPingWorldPoint(), IncreaseCurrencyCap(), InterruptPowerRegen(), BattlegroundQueue::InviteGroupToBG(), Garrison::LearnBlueprint(), Pet::learnSpell(), LearnSpell(), Channel::List(), ModifyCurrency(), OnGossipSelect(), Loot::OnLootOpened(), GameObject::OnLootRelease(), lfg::LFGPlayerScript::OnMapChanged(), AreaTrigger::ValuesUpdateForPlayerWithMaskSender::operator()(), Conversation::ValuesUpdateForPlayerWithMaskSender::operator()(), Corpse::ValuesUpdateForPlayerWithMaskSender::operator()(), Creature::ValuesUpdateForPlayerWithMaskSender::operator()(), DynamicObject::ValuesUpdateForPlayerWithMaskSender::operator()(), GameObject::ValuesUpdateForPlayerWithMaskSender::operator()(), AzeriteEmpoweredItem::ValuesUpdateForPlayerWithMaskSender::operator()(), AzeriteItem::ValuesUpdateForPlayerWithMaskSender::operator()(), Bag::ValuesUpdateForPlayerWithMaskSender::operator()(), Item::ValuesUpdateForPlayerWithMaskSender::operator()(), CombatLogSender::operator()(), Player::ValuesUpdateForPlayerWithMaskSender::operator()(), SceneObject::ValuesUpdateForPlayerWithMaskSender::operator()(), Trinity::PacketSenderRef::operator()(), Trinity::PacketSenderOwning< Packet >::operator()(), Trinity::ChatPacketSender::operator()(), CreatureTextLocalizer< Builder >::operator()(), Trinity::WorldWorldTextBuilder::MultiplePacketSender::operator()(), PauseMirrorTimer(), PetSpellInitialize(), Garrison::PlaceBuilding(), WorldObject::PlayDirectMusic(), WorldObject::PlayDirectSound(), WorldObject::PlayDistanceSound(), Battleground::PlayerAddedToBGCheckIfBGIsRunning(), WorldObject::PlayObjectSound(), SceneMgr::PlaySceneByTemplate(), PossessSpellInitialize(), Group::RemoveMember(), RemovePet(), Battleground::RemovePlayerAtLeave(), RemoveSpell(), RepopAtGraveyard(), ReportedAfkBy(), GuildAchievementMgr::Reset(), ResetCurrencyWeekCap(), ResetTalents(), ResetWeeklyQuestStatus(), ResurrectPlayer(), ResyncRunes(), RewardHonor(), SatisfyQuestLog(), GuildAchievementMgr::SendAchievementEarned(), PlayerAchievementMgr::SendAchievementInfo(), GuildAchievementMgr::SendAchievementMembers(), SendActionButtons(), GuildAchievementMgr::SendAllData(), LootRoll::SendAllPassed(), GuildAchievementMgr::SendAllTrackedCriterias(), SendAreaSpiritHealerTime(), SendAttackSwingCancelAttack(), AuctionHouseObject::SendAuctionOutbid(), AuctionHouseObject::SendAuctionWon(), SendAurasForTarget(), BattlegroundMgr::SendBattlegroundList(), SendBindPointUpdate(), Garrison::SendBlueprintAndSpecializationData(), Scenario::SendBootPlayer(), SendBuyError(), CalendarMgr::SendCalendarEvent(), SendCanTakeQuestResponse(), Spell::SendCastResult(), Spell::SendCastResult(), SendCinematicStart(), SendCorpseReclaimDelay(), Scenario::SendCriteriaUpdate(), SendCurrencies(), SendDisplayToast(), SendDungeonDifficulty(), SendEquipError(), SendEquipmentSetList(), Guild::SendEventNewLeader(), Guild::SendEventPlayerLeft(), SendExplorationExperience(), Weather::SendFineWeatherUpdateToPlayer(), SendForceSpawnTrackingUpdate(), SocialMgr::SendFriendStatus(), Guild::SendGuildRanksUpdate(), SendInitialPacketsAfterAddToMap(), SendInitialPacketsBeforeAddToMap(), ReputationMgr::SendInitialReputations(), Map::SendInitSelf(), Map::SendInitTransports(), SendInitWorldStates(), SendItemPassives(), SendItemRefundResult(), SendKnownSpells(), SendLoot(), SendLootError(), SendLootRelease(), SendLootReleaseAll(), LootRoll::SendLootRollWon(), SendMailResult(), Garrison::SendMapData(), SendMessageToSet(), SendMessageToSetInRange(), SendMessageToSetInRange(), SendMirrorTimer(), Spell::SendMountResult(), SendMovementSetCollisionHeight(), SendMovieStart(), SendNewItem(), SendNewMail(), SendNotifyLootItemRemoved(), SendNotifyLootMoneyRemoved(), ChannelMgr::SendNotOnChannelNotify(), SendOnCancelExpectedVehicleRideAura(), BaseEntity::SendOutOfRangeForPlayer(), PlayerAchievementMgr::SendPacket(), QuestObjectiveCriteriaMgr::SendPacket(), Scenario::SendPacket(), Unit::SendPetActionFeedback(), Unit::SendPetAIReaction(), Spell::SendPetCastResult(), WorldSession::SendPetitionSigns(), SendPlayerBound(), SendPlayerChoice(), SendProficiency(), SendPushToPartyResponse(), WorldSession::SendQueryPetNameResponse(), SendQuestComplete(), SendQuestConfirmAccept(), SendQuestFailed(), SendQuestGiverStatusMultiple(), SendQuestReward(), SendQuestTimerFailed(), SendQuestUpdateAddCredit(), SendQuestUpdateAddCreditSimple(), SendQuestUpdateAddItem(), SendQuestUpdateAddPlayer(), SendRaidDifficulty(), SendRaidGroupOnlyMessage(), SendRaidInfo(), SendRefundInfo(), Garrison::SendRemoteInfo(), SendRemoveControlBar(), Map::SendRemoveTransports(), OutdoorPvPHP::SendRemoveWorldStates(), OutdoorPvPNA::SendRemoveWorldStates(), OutdoorPvPSI::SendRemoveWorldStates(), OutdoorPvPTF::SendRemoveWorldStates(), OutdoorPvPZM::SendRemoveWorldStates(), SendResetFailedNotify(), SendResetInstanceFailed(), SendResetInstanceSuccess(), SendRespecWipeConfirm(), Spell::SendResurrectRequest(), LootRoll::SendRoll(), Scenario::SendScenarioState(), SendSellError(), World::SendServerMessage(), CollectionMgr::SendSingleMountUpdate(), PlayerSocial::SendSocialList(), SendSpellModifiers(), Trainer::Trainer::SendSpells(), LootRoll::SendStartRoll(), ReputationMgr::SendState(), SendSummonRequestFrom(), SendSupercededSpell(), SendTalentsInfoData(), SendTameFailure(), Trainer::Trainer::SendTeachFailure(), Item::SendTimeUpdate(), Trinity::VisibleNotifier::SendToSelf(), SendTransferAborted(), SendUnlearnSpells(), Group::SendUpdateDestroyGroupToPlayer(), Item::SendUpdateSockets(), BaseEntity::SendUpdateToPlayer(), Group::SendUpdateToPlayer(), SendUpdateWorldState(), ReputationMgr::SendVisible(), Weather::SendWeatherUpdateToPlayer(), Map::SendZoneDynamicInfo(), Map::SendZoneMessage(), Map::SendZoneWeather(), SetAttackSwingError(), SetBindPoint(), Garrison::Plot::SetBuildingInfo(), SetClientControl(), SetEquipmentSet(), GameObject::SetGoStateFor(), SetInventorySlotCount(), Unit::SetMovedUnit(), Item::SetNotRefundable(), Unit::SetOwnerGUID(), SetSkill(), Unit::SetStandState(), Scenario::SetStep(), SetTitle(), WorldObject::StopDistanceSound(), StopMirrorTimer(), TeleportTo(), SceneMgr::TriggerDelayedScenes(), Garrison::UnlearnBlueprint(), Pet::unlearnSpell(), GameObject::Update(), InstanceMap::UpdateInstanceLock(), InstanceMap::UpdateInstanceLock(), Group::UpdatePlayerOutOfRange(), UpdateQuestObjectiveProgress(), UpdateTriggerVisibility(), UpdateVisibilityOf(), UpdateVisibleObjectInteractions(), UpdateZone(), GameObject::Use(), VehicleSpellInitialize(), Whisper(), Unit::Whisper(), Unit::Whisper(), Whisper(), and WhisperAddon().
| void Player::SendDisplayToast | ( | uint32 | entry, |
| DisplayToastType | type, | ||
| bool | isBonusRoll, | ||
| uint32 | quantity, | ||
| DisplayToastMethod | method, | ||
| uint32 | questId = 0, |
||
| Item * | item = nullptr |
||
| ) | const |
Definition at line 31428 of file Player.cpp.
References WorldPackets::Misc::DisplayToast::BonusRoll, WorldPackets::Misc::DisplayToast::CurrencyID, WorldPackets::Misc::DisplayToast::DisplayToastMethod, WorldPackets::Misc::DisplayToast::Gender, GetNativeGender(), WorldPackets::Item::ItemInstance::Initialize(), WorldPackets::Misc::DisplayToast::Item, WorldPackets::Misc::DisplayToast::LootSpec, NewCurrency, NewItem, WorldPackets::Misc::DisplayToast::Quantity, WorldPackets::Misc::DisplayToast::QuestID, SendDirectMessage(), WorldPackets::Misc::DisplayToast::Type, and WorldPackets::Misc::DisplayToast::Write().
Referenced by RewardQuest().
| void Player::SendDungeonDifficulty | ( | ) | const |
Definition at line 21813 of file Player.cpp.
References WorldPackets::Misc::DungeonDifficultySet::DifficultyID, GetDungeonDifficultyID(), SendDirectMessage(), and WorldPackets::Misc::DungeonDifficultySet::Write().
Referenced by WorldSession::HandlePlayerLogin(), and WorldSession::HandleSetDungeonDifficultyOpcode().
| void Player::SendEnchantmentDurations | ( | ) |
Definition at line 13813 of file Player.cpp.
References BaseEntity::GetGUID(), GetSession(), m_enchantDuration, and WorldSession::SendItemEnchantTimeUpdate().
Referenced by SendInitialPacketsAfterAddToMap().
| void Player::SendEquipError | ( | InventoryResult | msg, |
| Item const * | item1 = nullptr, |
||
| Item const * | item2 = nullptr, |
||
| uint32 | itemId = 0 |
||
| ) | const |
Definition at line 13048 of file Player.cpp.
References WorldPackets::Item::InventoryChangeFailure::BagResult, WorldPackets::Item::InventoryChangeFailure::ContainerBSlot, EQUIP_ERR_CANT_EQUIP_LEVEL_I, EQUIP_ERR_EVENT_AUTOEQUIP_BIND_CONFIRM, EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_COUNT_EXCEEDED_IS, EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_EQUIPPED_EXCEEDED_IS, EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_SOCKETED_EXCEEDED_IS, EQUIP_ERR_OK, EQUIP_ERR_PURCHASE_LEVEL_TOO_LOW, BaseEntity::GetGUID(), Item::GetItemLimitCategory(), Item::GetRequiredLevel(), WorldPackets::Item::InventoryChangeFailure::Item, WorldPackets::Item::InventoryChangeFailure::Level, WorldPackets::Item::InventoryChangeFailure::LimitCategory, SendDirectMessage(), sObjectMgr, and WorldPackets::Item::InventoryChangeFailure::Write().
Referenced by _StoreOrEquipNewItem(), Loot::AutoStore(), BuyCurrencyFromVendorSlot(), BuyItemFromVendorSlot(), CanAddQuest(), CanRewardQuest(), CanRewardQuest(), Spell::CheckItems(), Spell::DoCreateItem(), EquipChildItem(), GiveQuestSourceItem(), misc_commandscript::HandleAddItemSetCommand(), WorldSession::HandleAddToy(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoDepositCharacterBank(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoGuildBankItem(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleBuybackItem(), WorldSession::HandleBuyBankTab(), AuraEffect::HandleChannelDeathItem(), debug_commandscript::HandleDebugSendEquipErrorCommand(), WorldSession::HandleDestroyItemOpcode(), WorldSession::HandleMergeGuildBankItemWithItem(), WorldSession::HandleMergeItemWithGuildBankItem(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandlePetitionBuy(), WorldSession::HandleReadItem(), WorldSession::HandleSocketGems(), WorldSession::HandleSplitGuildBankItemToInventory(), WorldSession::HandleSplitItemOpcode(), WorldSession::HandleSplitItemToGuildBank(), WorldSession::HandleStoreGuildBankItem(), WorldSession::HandleSwapInvItemOpcode(), WorldSession::HandleSwapItem(), WorldSession::HandleSwapItemWithGuildBankItem(), WorldSession::HandleUseEquipmentSet(), WorldSession::HandleWrapItem(), ModifyMoney(), item_only_for_flight::OnUse(), item_captured_frog::OnUse(), item_gor_dreks_ointment::OnUse(), ProcessItemCast(), SplitItem(), StoreLootItem(), SwapItem(), and TakeQuestSourceItem().
| void Player::SendEquipmentSetList | ( | ) |
Definition at line 28130 of file Player.cpp.
References _equipmentSets, EQUIPMENT_SET_DELETED, SendDirectMessage(), WorldPackets::EquipmentSet::LoadEquipmentSet::SetData, and WorldPackets::EquipmentSet::LoadEquipmentSet::Write().
Referenced by SendInitialPacketsBeforeAddToMap().
Definition at line 21808 of file Player.cpp.
References SendDirectMessage().
Referenced by CheckAreaExplore().
| void Player::SendForceSpawnTrackingUpdate | ( | uint32 | questId | ) | const |
Definition at line 17506 of file Player.cpp.
References WorldPackets::Quest::ForceSpawnTrackingUpdate::QuestID, SendDirectMessage(), and WorldPackets::Quest::ForceSpawnTrackingUpdate::Write().
Referenced by AddQuest(), CompleteQuest(), WorldSession::HandleQuestLogRemoveQuest(), and SendQuestReward().
|
inline |
Definition at line 2102 of file Player.h.
Referenced by SendInitialPacketsBeforeAddToMap().
| void Player::SendInitialPacketsAfterAddToMap | ( | ) |
Definition at line 25024 of file Player.cpp.
References _garrison, WorldPackets::Vignette::VignetteUpdate::Added, Vignettes::CanSee(), CastSpell, ClearQuestSharingInfo(), WorldPackets::Vignette::VignetteUpdate::ForceUpdate, BaseEntity::GetGUID(), Map::GetInfiniteAOIVignettes(), WorldObject::GetMap(), GetPlayerSharingQuest(), GetSceneMgr(), GetSession(), GetSharedQuestID(), WorldObject::GetZoneAndAreaId(), HasAura, Unit::HasAuraType(), Unit::HasUnitState(), Unit::m_movementCounter, WorldPackets::Movement::MoveSetCompoundState::MoverGUID, PhasingHandler::OnMapChange(), PlayerTalkClass, SendAurasForTarget(), SendDirectMessage(), SendEnchantmentDurations(), SendItemDurations(), SendItemPassives(), WorldSession::SendLoadCUFProfiles(), SetClientControl(), SMSG_MOVE_DISABLE_GRAVITY, SMSG_MOVE_DISABLE_INERTIA, SMSG_MOVE_ENABLE_DOUBLE_JUMP, SMSG_MOVE_ROOT, SMSG_MOVE_SET_CAN_ADV_FLY, SMSG_MOVE_SET_CAN_FLY, SMSG_MOVE_SET_CAN_TURN_WHILE_FALLING, SMSG_MOVE_SET_FEATHER_FALL, SMSG_MOVE_SET_HOVERING, SMSG_MOVE_SET_IGNORE_MOVEMENT_FORCES, SMSG_MOVE_SET_WATER_WALK, sObjectMgr, SPELL_AURA_ADV_FLYING, SPELL_AURA_CAN_TURN_WHILE_FALLING, SPELL_AURA_DISABLE_GRAVITY, SPELL_AURA_DISABLE_INERTIA, SPELL_AURA_FEATHER_FALL, SPELL_AURA_FLY, SPELL_AURA_HOVER, SPELL_AURA_IGNORE_MOVEMENT_FORCES, SPELL_AURA_MOD_CONFUSE, SPELL_AURA_MOD_FEAR, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, SPELL_AURA_MOD_ROOT, SPELL_AURA_MOD_ROOT_2, SPELL_AURA_MOD_ROOT_DISABLE_GRAVITY, SPELL_AURA_MOD_STUN, SPELL_AURA_MOD_STUN_DISABLE_GRAVITY, SPELL_AURA_WATER_WALK, SPELL_DH_DOUBLE_JUMP, WorldPackets::Movement::MoveSetCompoundState::StateChanges, SceneMgr::TriggerDelayedScenes(), UNIT_STATE_CONFUSED, UNIT_STATE_FLEEING, UpdateItemLevelAreaBasedScaling(), UpdateVisibilityForPlayer(), UpdateZone(), WorldPackets::Movement::MoveSetCompoundState::Write(), WorldPackets::Vignette::VignetteUpdate::Write(), and ZoneInfiniteAOI.
Referenced by WorldSession::HandleMoveWorldportAck(), and WorldSession::HandlePlayerLogin().
| void Player::SendInitialPacketsBeforeAddToMap | ( | ) |
Pass 'this' as argument because we're not stored in ObjectAccessor yet
SMSG_BINDPOINTUPDATE
SMSG_TALENTS_INFO
SMSG_INITIAL_SPELLS
SMSG_SEND_UNLEARN_SPELLS
SMSG_SEND_SPELL_HISTORY
SMSG_SEND_SPELL_CHARGES
SMSG_ACTION_BUTTONS
SMSG_INITIALIZE_FACTIONS
SMSG_SETUP_CURRENCY
SMSG_EQUIPMENT_SET_LIST
SMSG_LOGIN_SETTIMESPEED
SMSG_WORLD_SERVER_INFO
Definition at line 24905 of file Player.cpp.
References CONFIG_EXPANSION, WorldPackets::Misc::WorldServerInfo::DifficultyID, WorldPackets::Misc::LoginSetTimeSpeed::GameTime, WorldPackets::Misc::LoginSetTimeSpeed::GameTimeHolidayOffset, CollectionMgr::GetAccountHeirlooms(), CollectionMgr::GetAccountMounts(), CollectionMgr::GetAccountToys(), GetActiveTalentGroup(), WorldSession::GetCollectionMgr(), Map::GetDifficultyID(), GetGlyphs(), WorldObject::GetMap(), GetSession(), GetSocial(), Unit::GetSpellHistory(), CollectionMgr::GetWarbandScenes(), GameTime::GetWowTime(), WorldPackets::Talent::ActiveGlyphs::Glyphs, HasSpell(), WorldPackets::Misc::AccountHeirloomUpdate::Heirlooms, WorldPackets::Misc::WorldServerInfo::InstanceGroupSize, WorldPackets::Misc::AccountHeirloomUpdate::IsFullUpdate, WorldPackets::Misc::AccountMountUpdate::IsFullUpdate, WorldPackets::Misc::AccountWarbandSceneUpdate::IsFullUpdate, WorldPackets::Talent::ActiveGlyphs::IsFullUpdate, WorldPackets::Toy::AccountToyUpdate::IsFullUpdate, WorldPackets::Misc::WorldServerInfo::IsTournamentRealm, m_achievementMgr, Unit::m_movementCounter, m_overrideSpells, m_questObjectiveCriteriaMgr, m_reputationMgr, m_teleport_options, WorldPackets::Misc::AccountMountUpdate::Mounts, WorldPackets::Misc::LoginSetTimeSpeed::NewSpeed, WorldSession::ResetTimeSync(), sDB2Manager, SendBindPointUpdate(), SendCurrencies(), SendDirectMessage(), SendEquipmentSetList(), CollectionMgr::SendFavoriteAppearances(), SendInitialActionButtons(), SendKnownSpells(), PlayerSocial::SendSocialList(), SendSpellModifiers(), SendTalentsInfoData(), WorldSession::SendTimeSync(), SendUnlearnSpells(), WorldPackets::Character::InitialSetup::ServerExpansionLevel, WorldPackets::Misc::LoginSetTimeSpeed::ServerTime, WorldPackets::Misc::LoginSetTimeSpeed::ServerTimeHolidayOffset, Unit::SetMovedUnit(), SOCIAL_FLAG_ALL, sWorld, TELE_TO_SEAMLESS, WorldPackets::Toy::AccountToyUpdate::Toys, WorldPackets::Misc::AccountWarbandSceneUpdate::WarbandScenes, WorldPackets::Character::InitialSetup::Write(), WorldPackets::Misc::LoginSetTimeSpeed::Write(), WorldPackets::Misc::WorldServerInfo::Write(), WorldPackets::Misc::AccountHeirloomUpdate::Write(), WorldPackets::Misc::AccountMountUpdate::Write(), WorldPackets::Misc::AccountWarbandSceneUpdate::Write(), WorldPackets::Spells::SendSpellHistory::Write(), WorldPackets::Spells::SendSpellCharges::Write(), WorldPackets::Talent::ActiveGlyphs::Write(), WorldPackets::Toy::AccountToyUpdate::Write(), and SpellHistory::WritePacket().
Referenced by WorldSession::HandleMoveWorldportAck(), and WorldSession::HandlePlayerLogin().
| void Player::SendInitialVisiblePackets | ( | WorldObject * | target | ) | const |
Definition at line 24696 of file Player.cpp.
References WorldPackets::Vignette::VignetteUpdate::Added, Vignettes::CanSee(), Vignettes::VignetteData::Data, Vignettes::VignetteData::FillPacket(), VignetteEntry::IsInfiniteAOI(), SendAurasForTarget(), Object::ToGameObject(), Object::ToUnit(), UNIT_STATE_MELEE_ATTACKING, and WorldPackets::Vignette::VignetteUpdate::Write().
Referenced by Trinity::VisibleNotifier::SendToSelf(), UpdateVisibilityOf(), and UpdateVisibilityOf().
Definition at line 9139 of file Player.cpp.
References WorldPackets::WorldState::InitWorldStates::AreaID, WorldStateMgr::FillInitialWorldStates(), WorldObject::GetMap(), WorldLocation::GetMapId(), WorldPackets::WorldState::InitWorldStates::MapID, SendDirectMessage(), WorldPackets::WorldState::InitWorldStates::SubareaID, TC_LOG_DEBUG, and WorldPackets::WorldState::InitWorldStates::Write().
Referenced by UpdateZone().
| void Player::SendItemDurations | ( | ) |
Definition at line 13819 of file Player.cpp.
References m_itemDuration.
Referenced by SendInitialPacketsAfterAddToMap().
| void Player::SendItemPassives | ( | ) |
Definition at line 13825 of file Player.cpp.
References m_itemPassives, SendDirectMessage(), WorldPackets::Item::SendItemPassives::SpellID, and WorldPackets::Item::SendItemPassives::Write().
Referenced by SendInitialPacketsAfterAddToMap().
|
private |
Definition at line 29809 of file Player.cpp.
References WorldPackets::Item::ItemPurchaseRefundResult::Contents, ItemExtendedCostEntry::CurrencyCount, ItemExtendedCostEntry::CurrencyID, ItemExtendedCostEntry::Flags, BaseEntity::GetGUID(), Item::GetPaidMoney(), ITEM_EXT_COST_CURRENCY_REQ_IS_SEASON_EARNED_1, ItemExtendedCostEntry::ItemCount, WorldPackets::Item::ItemPurchaseRefundResult::ItemGUID, ItemExtendedCostEntry::ItemID, MAX_ITEM_EXT_COST_CURRENCIES, MAX_ITEM_EXT_COST_ITEMS, WorldPackets::Item::ItemPurchaseRefundResult::Result, SendDirectMessage(), and WorldPackets::Item::ItemPurchaseRefundResult::Write().
Referenced by RefundItem().
| void Player::SendItemRetrievalMail | ( | uint32 | itemEntry, |
| uint32 | count, | ||
| ItemContext | context | ||
| ) |
Definition at line 29940 of file Player.cpp.
References MailDraft::AddItem(), CharacterDatabase, Item::CreateItem(), BaseEntity::GetGUID(), MAIL_CREATURE, MailDraft::SendMailTo(), and UI64LIT.
Referenced by RewardQuest().
| void Player::SendKnownSpells | ( | ) |
Definition at line 2484 of file Player.cpp.
References WorldPackets::Spells::SendKnownSpells::FavoriteSpells, WorldPackets::Spells::SendKnownSpells::InitialLogin, IsLoading(), WorldPackets::Spells::SendKnownSpells::KnownSpells, m_spells, PLAYERSPELL_REMOVED, SendDirectMessage(), and WorldPackets::Spells::SendKnownSpells::Write().
Referenced by SendInitialPacketsBeforeAddToMap().
| void Player::SendLoot | ( | Loot & | loot, |
| bool | aeLooting = false |
||
| ) |
Definition at line 9075 of file Player.cpp.
References WorldPackets::Loot::LootResponse::_LootMethod, WorldPackets::Loot::LootResponse::Acquired, WorldPackets::Loot::LootResponse::AcquireReason, WorldPackets::Loot::LootResponse::AELooting, Loot::BuildLootResponse(), WorldSession::DoLootReleaseAll(), BaseEntity::GetGUID(), Loot::GetGUID(), GetLootGUID(), Loot::GetLootMethod(), GetLootTypeForClient(), WorldObject::GetMap(), WorldObject::GetName(), Loot::GetOwnerGUID(), ObjectGuid::IsItem(), LOOT_CORPSE, Loot::loot_type, WorldPackets::Loot::LootResponse::LootObj, m_AELootView, m_session, Loot::OnLootOpened(), WorldPackets::Loot::LootResponse::Owner, SendDirectMessage(), SetLootGUID(), Unit::SetUnitFlag(), TC_LOG_DEBUG, ObjectGuid::ToString(), Position::ToString(), UNIT_FLAG_LOOTING, and WorldPackets::Loot::LootResponse::Write().
Referenced by Spell::EffectMilling(), Spell::EffectPickPocket(), Spell::EffectProspecting(), Spell::EffectSkinning(), WorldSession::HandleLootOpcode(), WorldSession::HandleOpenItemOpcode(), RemovedInsignia(), and GameObject::Use().
| void Player::SendLootError | ( | ObjectGuid const & | lootObj, |
| ObjectGuid const & | owner, | ||
| LootError | error | ||
| ) | const |
Definition at line 9104 of file Player.cpp.
References WorldPackets::Loot::LootResponse::Acquired, WorldPackets::Loot::LootResponse::FailureReason, WorldPackets::Loot::LootResponse::LootObj, WorldPackets::Loot::LootResponse::Owner, SendDirectMessage(), and WorldPackets::Loot::LootResponse::Write().
Referenced by Spell::EffectPickPocket(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleLootMasterGiveOpcode(), and WorldSession::HandleOpenItemOpcode().
| void Player::SendLootRelease | ( | ObjectGuid | guid | ) | const |
Definition at line 9062 of file Player.cpp.
References BaseEntity::GetGUID(), WorldPackets::Loot::LootReleaseResponse::LootObj, WorldPackets::Loot::LootReleaseResponse::Owner, SendDirectMessage(), and WorldPackets::Loot::LootReleaseResponse::Write().
Referenced by WorldSession::DoLootRelease(), and WorldSession::HandleAutostoreLootItemOpcode().
| void Player::SendLootReleaseAll | ( | ) | const |
Definition at line 9070 of file Player.cpp.
References SendDirectMessage().
Referenced by WorldSession::HandleLogoutRequestOpcode(), and StoreLootItem().
| void Player::SendMailResult | ( | uint64 | mailId, |
| MailResponseType | mailAction, | ||
| MailResponseResult | mailError, | ||
| uint32 | equipError = 0, |
||
| ObjectGuid::LowType | itemGuid = UI64LIT(0), |
||
| uint32 | itemCount = 0 |
||
| ) | const |
Definition at line 2530 of file Player.cpp.
References WorldPackets::Mail::MailCommandResult::AttachID, WorldPackets::Mail::MailCommandResult::BagResult, WorldPackets::Mail::MailCommandResult::Command, WorldPackets::Mail::MailCommandResult::ErrorCode, WorldPackets::Mail::MailCommandResult::MailID, WorldPackets::Mail::MailCommandResult::QtyInInventory, SendDirectMessage(), and WorldPackets::Mail::MailCommandResult::Write().
Referenced by WorldSession::HandleMailCreateTextItem(), WorldSession::HandleMailDelete(), WorldSession::HandleMailReturnToSender(), WorldSession::HandleMailTakeItem(), WorldSession::HandleMailTakeMoney(), and WorldSession::HandleSendMail().
|
inlineoverridevirtual |
Reimplemented from WorldObject.
Definition at line 2310 of file Player.h.
Referenced by DuelComplete(), WorldSession::HandleMountSpecialAnimOpcode(), SendAutoRepeatCancel(), WorldSession::SendEnchantmentLog(), SendMovementSetCollisionHeight(), and SetDrunkValue().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 6181 of file Player.cpp.
References WorldObject::GetVisibilityRange(), SendDirectMessage(), and Cell::VisitWorldObjects().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 6161 of file Player.cpp.
References SendDirectMessage(), and Cell::VisitWorldObjects().
Referenced by WorldSession::HandleTextEmoteOpcode(), and TextEmote().
| void Player::SendMessageToSetInRange | ( | WorldPacket const * | data, |
| float | dist, | ||
| bool | self, | ||
| bool | own_team_only, | ||
| bool | required3dDist = false |
||
| ) | const |
Definition at line 6171 of file Player.cpp.
References SendDirectMessage(), and Cell::VisitWorldObjects().
|
protected |
Definition at line 597 of file Player.cpp.
References SendDirectMessage().
Referenced by UpdateMirrorTimers().
| void Player::SendMovementSetCollisionHeight | ( | float | height, |
| WorldPackets::Movement::UpdateCollisionHeightReason | reason | ||
| ) |
Definition at line 30078 of file Player.cpp.
References BaseEntity::GetGUID(), Unit::GetMountDisplayId(), Object::GetObjectScale(), WorldPackets::Movement::MoveSetCollisionHeight::Height, WorldPackets::Movement::MoveUpdateCollisionHeight::Height, Unit::m_movementCounter, WorldObject::m_movementInfo, Unit::m_unitData, WorldPackets::Movement::MoveSetCollisionHeight::MountDisplayID, WorldPackets::Movement::MoveSetCollisionHeight::MoverGUID, WorldPackets::Movement::MoveSetCollisionHeight::Reason, WorldPackets::Movement::MoveSetCollisionHeight::Scale, WorldPackets::Movement::MoveUpdateCollisionHeight::Scale, WorldPackets::Movement::MoveSetCollisionHeight::ScaleDuration, SendDirectMessage(), SendMessageToSet(), WorldPackets::Movement::MoveSetCollisionHeight::SequenceIndex, WorldPackets::Movement::MoveUpdateCollisionHeight::Status, WorldPackets::Movement::MoveSetCollisionHeight::Write(), and WorldPackets::Movement::MoveUpdateCollisionHeight::Write().
Referenced by AuraEffect::HandleCosmeticMounted(), and SetObjectScale().
| void Player::SendMovieStart | ( | uint32 | movieId | ) |
Definition at line 6207 of file Player.cpp.
References WorldPackets::Misc::TriggerMovie::MovieID, SendDirectMessage(), SetMovie(), and WorldPackets::Misc::TriggerMovie::Write().
Referenced by Spell::EffectPlayMovie(), debug_commandscript::HandleDebugPlayMovieCommand(), and WorldSession::HandlePlayerLogin().
| void Player::SendNewItem | ( | Item * | item, |
| uint32 | quantity, | ||
| bool | pushed, | ||
| bool | created, | ||
| bool | broadcast = false, |
||
| uint32 | dungeonEncounterId = 0 |
||
| ) |
Definition at line 13835 of file Player.cpp.
References WorldPackets::Item::ItemPushResult::BattlePetBreedID, WorldPackets::Item::ItemPushResult::BattlePetBreedQuality, WorldPackets::Item::ItemPushResult::BattlePetLevel, WorldPackets::Item::ItemPushResult::BattlePetSpeciesID, Group::BroadcastPacket(), WorldPackets::Item::ItemPushResult::ChatNotifyType, WorldPackets::Item::ItemPushResult::Created, WorldPackets::Item::ItemPushResult::DISPLAY_TYPE_ENCOUNTER_LOOT, WorldPackets::Item::ItemPushResult::DISPLAY_TYPE_NORMAL, WorldPackets::Item::ItemPushResult::EncounterID, Item::GetBagSlot(), Item::GetCount(), Object::GetEntry(), GetGroup(), BaseEntity::GetGUID(), GetItemCount(), Item::GetModifier(), GetQuestObjectiveData(), GetQuestObjectiveForItem(), Item::GetSlot(), Item::GetTemplate(), ItemTemplate::HasFlag(), WorldPackets::Item::ItemInstance::Initialize(), WorldPackets::Item::ItemPushResult::IsPersonalLoot, WorldPackets::Item::ItemPushResult::Item, ITEM_FLAG3_DONT_REPORT_LOOT_LOG_TO_PARTY, ITEM_MODIFIER_BATTLE_PET_BREED_DATA, ITEM_MODIFIER_BATTLE_PET_LEVEL, ITEM_MODIFIER_BATTLE_PET_SPECIES_ID, WorldPackets::Item::ItemPushResult::ItemGUID, WorldPackets::Item::ItemPushResult::PlayerGUID, WorldPackets::Item::ItemPushResult::ProxyItemID, WorldPackets::Item::ItemPushResult::Pushed, WorldPackets::Item::ItemPushResult::Quantity, WorldPackets::Item::ItemPushResult::QuantityInInventory, WorldPackets::Item::ItemPushResult::QuantityInQuestLog, ItemTemplate::QuestLogItemId, SendDirectMessage(), WorldPackets::Item::ItemPushResult::Slot, WorldPackets::Item::ItemPushResult::SlotInBag, and WorldPackets::Item::ItemPushResult::Write().
Referenced by _StoreOrEquipNewItem(), AddItem(), Loot::AutoStore(), BattlePets::BattlePetMgr::CageBattlePet(), quest_commandscript::CompleteObjective(), Spell::DoCreateItem(), Spell::EffectSummonChangeItem(), GiveQuestSourceItem(), misc_commandscript::HandleAddItemCommandHelper(), misc_commandscript::HandleAddItemSetCommand(), WorldSession::HandleAutostoreLootItemOpcode(), AuraEffect::HandleChannelDeathItem(), OPvPCapturePointNA::HandleCustomSpell(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandlePetitionBuy(), npc_tyrande_whisperwind::npc_tyrande_whisperwindAI::OnGossipSelect(), RefundItem(), RemovePet(), RewardQuest(), RewardQuestPackage(), npc_verdisa_beglaristrasz_eternos::StoreEssence(), and StoreLootItem().
| void Player::SendNewMail | ( | ) | const |
Definition at line 2542 of file Player.cpp.
References WorldPackets::Mail::NotifyReceivedMail::Delay, SendDirectMessage(), and WorldPackets::Mail::NotifyReceivedMail::Write().
Referenced by AddNewMailDeliverTime(), and Update().
| void Player::SendNotifyLootItemRemoved | ( | ObjectGuid | lootObj, |
| ObjectGuid | owner, | ||
| uint8 | lootListId | ||
| ) | const |
Definition at line 9121 of file Player.cpp.
References WorldPackets::Loot::LootRemoved::LootListID, WorldPackets::Loot::LootRemoved::LootObj, WorldPackets::Loot::LootRemoved::Owner, SendDirectMessage(), and WorldPackets::Loot::LootRemoved::Write().
Referenced by StoreLootItem().
| void Player::SendNotifyLootMoneyRemoved | ( | ObjectGuid | lootObj | ) | const |
Definition at line 9114 of file Player.cpp.
References WorldPackets::Loot::CoinRemoved::LootObj, SendDirectMessage(), and WorldPackets::Loot::CoinRemoved::Write().
| void Player::SendOnCancelExpectedVehicleRideAura | ( | ) | const |
Definition at line 22413 of file Player.cpp.
References SendDirectMessage().
Referenced by VehicleJoinEvent::Execute(), and AuraEffect::HandleAuraSetVehicle().
| void Player::SendPlayerBound | ( | ObjectGuid const & | binderGuid, |
| uint32 | areaId | ||
| ) | const |
Definition at line 17919 of file Player.cpp.
References SendDirectMessage(), and WorldPackets::Misc::PlayerBound::Write().
Referenced by Spell::EffectBind(), and spell_defender_of_azeroth_death_gate_selector::HandleDummy().
| void Player::SendPlayerChoice | ( | ObjectGuid | sender, |
| int32 | choiceId | ||
| ) |
Definition at line 30097 of file Player.cpp.
References PlayerChoiceResponse::Answer, WorldPackets::Quest::PlayerChoiceResponse::Answer, EnumFlag< T >::AsUnderlyingType(), PlayerChoiceResponse::ButtonTooltip, WorldPackets::Quest::PlayerChoiceResponse::ButtonTooltip, PlayerChoiceResponse::ChoiceArtFileId, WorldPackets::Quest::PlayerChoiceResponse::ChoiceArtFileID, WorldPackets::Quest::DisplayPlayerChoice::ChoiceID, PlayerChoice::CloseSoundKitId, WorldPackets::Quest::DisplayPlayerChoice::CloseUISoundKitID, PlayerChoiceResponse::Confirmation, WorldPackets::Quest::PlayerChoiceResponse::Confirmation, DEFAULT_LOCALE, PlayerChoiceResponse::Description, WorldPackets::Quest::PlayerChoiceResponse::Description, PlayerChoice::Duration, WorldPackets::Quest::DisplayPlayerChoice::ExpireTime, PlayerChoiceResponse::Flags, WorldPackets::Quest::PlayerChoiceResponse::Flags, ObjectMgr::GetLocaleString(), GetSession(), WorldSession::GetSessionDbLocaleIndex(), GameTime::GetSystemTime(), PlayerChoiceResponse::GroupID, WorldPackets::Quest::PlayerChoiceResponse::GroupID, WorldPackets::Quest::DisplayPlayerChoice::HasPowerChoice, PlayerChoiceResponse::Header, WorldPackets::Quest::PlayerChoiceResponse::Header, PlayerChoice::HideAnswerArt, WorldPackets::Quest::DisplayPlayerChoice::HideAnswerArt, PlayerChoice::HideWarboardHeader, WorldPackets::Quest::DisplayPlayerChoice::HideWarboardHeader, PlayerChoice::InfiniteRange, WorldPackets::Quest::DisplayPlayerChoice::InfiniteRange, WorldPackets::Quest::PlayerChoiceResponseRewardEntry::Item, WorldPackets::Item::ItemInstance::ItemBonus, WorldPackets::Item::ItemInstance::ItemID, PlayerChoice::KeepOpenAfterChoice, WorldPackets::Quest::DisplayPlayerChoice::KeepOpenAfterChoice, Trinity::Containers::MapGetValuePtr(), PlayerChoiceResponse::MawPower, WorldPackets::Quest::PlayerChoiceResponse::MawPower, PlayerChoice::MaxResponses, WorldPackets::Quest::PlayerChoiceResponseMawPower::MaxStacks, PlayerChoice, PlayerTalkClass, WorldPackets::Quest::PlayerChoiceResponseRewardEntry::Quantity, PlayerChoiceLocale::Question, PlayerChoice::Question, WorldPackets::Quest::DisplayPlayerChoice::Question, WorldPackets::Quest::PlayerChoiceResponseMawPower::Rarity, PlayerChoice::RequiresSelection, WorldPackets::Quest::DisplayPlayerChoice::RequiresSelection, PlayerChoiceResponse::ResponseId, WorldPackets::Quest::PlayerChoiceResponse::ResponseID, WorldPackets::Quest::PlayerChoiceResponse::ResponseIdentifier, PlayerChoiceLocale::Responses, PlayerChoice::Responses, WorldPackets::Quest::DisplayPlayerChoice::Responses, PlayerChoiceResponse::Reward, WorldPackets::Quest::PlayerChoiceResponse::Reward, PlayerChoiceResponse::RewardQuestID, WorldPackets::Quest::PlayerChoiceResponse::RewardQuestID, sConditionMgr, SendDirectMessage(), WorldPackets::Quest::DisplayPlayerChoice::SenderGUID, PlayerChoice::ShowChoicesAsColumns, WorldPackets::Quest::DisplayPlayerChoice::ShowChoicesAsColumns, PlayerChoice::ShowChoicesAsGrid, WorldPackets::Quest::DisplayPlayerChoice::ShowChoicesAsGrid, PlayerChoice::ShowChoicesAsList, WorldPackets::Quest::DisplayPlayerChoice::ShowChoicesAsList, sObjectMgr, PlayerChoiceResponse::SoundKitID, PlayerChoice::SoundKitId, WorldPackets::Quest::PlayerChoiceResponse::SoundKitID, WorldPackets::Quest::DisplayPlayerChoice::SoundKitID, WorldPackets::Quest::PlayerChoiceResponseMawPower::SpellID, PlayerChoiceResponse::SubHeader, WorldPackets::Quest::PlayerChoiceResponse::SubHeader, WorldPackets::Quest::PlayerChoiceResponseMawPower::TypeArtFileID, PlayerChoiceResponse::UiTextureAtlasElementID, WorldPackets::Quest::PlayerChoiceResponse::UiTextureAtlasElementID, PlayerChoiceResponse::UiTextureKitID, PlayerChoice::UiTextureKitId, WorldPackets::Quest::PlayerChoiceResponse::UiTextureKitID, WorldPackets::Quest::DisplayPlayerChoice::UiTextureKitID, PlayerChoiceResponse::WidgetSetID, WorldPackets::Quest::PlayerChoiceResponse::WidgetSetID, and WorldPackets::Quest::DisplayPlayerChoice::Write().
Referenced by Spell::EffectLaunchQuestChoice(), and debug_commandscript::HandleDebugSendPlayerChoiceCommand().
| void Player::SendPreparedGossip | ( | WorldObject * | source | ) |
Definition at line 13985 of file Player.cpp.
References GetGossipTextId(), BaseEntity::GetGUID(), BaseEntity::GetTypeId(), PlayerTalkClass, SendPreparedQuest(), TYPEID_GAMEOBJECT, and TYPEID_UNIT.
Referenced by WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), npc_disciple_of_naralex::OnGossipHello(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::OnGossipHello(), npc_sinclari_vh::OnGossipHello(), go_apexis_relic::go_apexis_relicAI::OnGossipHello(), OnGossipSelect(), and GameObject::Use().
| void Player::SendPreparedQuest | ( | WorldObject * | source | ) |
Definition at line 14393 of file Player.cpp.
References AddQuestAndCheckCompletion(), CanAddQuest(), CanCompleteRepeatableQuest(), CanRewardQuest(), CanTakeQuest(), QuestMenu::Empty(), BaseEntity::GetGUID(), QuestMenu::GetItem(), QuestMenu::GetMenuItemCount(), Object::hasInvolvedQuest(), Object::hasQuest(), PlayerTalkClass, QuestMenuItem::QuestIcon, QuestMenuItem::QuestId, and sObjectMgr.
Referenced by WorldSession::HandleQuestgiverHelloOpcode(), npc_thrall_old_hillsbrad::OnGossipHello(), and SendPreparedGossip().
Definition at line 23044 of file Player.cpp.
References WorldPackets::Item::SetProficiency::ProficiencyClass, WorldPackets::Item::SetProficiency::ProficiencyMask, SendDirectMessage(), and WorldPackets::Item::SetProficiency::Write().
Referenced by Spell::EffectProficiency().
| void Player::SendPushToPartyResponse | ( | Player const * | player, |
| QuestPushReason | reason, | ||
| Quest const * | quest = nullptr |
||
| ) | const |
Definition at line 17377 of file Player.cpp.
References AsUnderlyingType(), BaseEntity::GetGUID(), ObjectMgr::GetLocaleString(), Quest::GetLogTitle(), Quest::GetQuestId(), GetSession(), WorldSession::GetSessionDbLocaleIndex(), LOCALE_enUS, WorldPackets::Quest::QuestPushResultResponse::QuestTitle, WorldPackets::Quest::QuestPushResultResponse::Result, SendDirectMessage(), WorldPackets::Quest::QuestPushResultResponse::SenderGUID, sObjectMgr, and WorldPackets::Quest::QuestPushResultResponse::Write().
Referenced by debug_commandscript::HandleDebugSendQuestPartyMsgCommand(), WorldSession::HandlePushQuestToParty(), and WorldSession::HandleQuestgiverAcceptQuestOpcode().
| void Player::SendPvpRewards | ( | ) | const |
Send conquest currency points and their cap week/arena.
Definition at line 7014 of file Player.cpp.
Referenced by WorldSession::HandleRequestPvpReward().
| void Player::SendQuestComplete | ( | uint32 | questId | ) | const |
Definition at line 17266 of file Player.cpp.
References WorldPackets::Quest::QuestUpdateComplete::QuestID, SendDirectMessage(), and WorldPackets::Quest::QuestUpdateComplete::Write().
Referenced by AreaExploredOrEventHappens().
Definition at line 17356 of file Player.cpp.
References BaseEntity::GetGUID(), ObjectMgr::GetLocaleString(), Quest::GetLogTitle(), Quest::GetQuestId(), GetSession(), WorldSession::GetSessionDbLocaleIndex(), WorldPackets::Quest::QuestConfirmAcceptResponse::InitiatedBy, LOCALE_enUS, WorldPackets::Quest::QuestConfirmAcceptResponse::QuestID, WorldPackets::Quest::QuestConfirmAcceptResponse::QuestTitle, SendDirectMessage(), sObjectMgr, and WorldPackets::Quest::QuestConfirmAcceptResponse::Write().
Referenced by WorldSession::HandleQuestgiverAcceptQuestOpcode().
| void Player::SendQuestFailed | ( | uint32 | questId, |
| InventoryResult | reason = EQUIP_ERR_OK |
||
| ) | const |
Definition at line 17324 of file Player.cpp.
References WorldPackets::Quest::QuestGiverQuestFailed::QuestID, WorldPackets::Quest::QuestGiverQuestFailed::Reason, SendDirectMessage(), and WorldPackets::Quest::QuestGiverQuestFailed::Write().
Referenced by CanRewardQuest(), and FailQuest().
| void Player::SendQuestGiverStatusMultiple | ( | ) |
Definition at line 17447 of file Player.cpp.
References GAMEOBJECT_TYPE_QUESTGIVER, ObjectAccessor::GetCreatureOrPetOrVehicle(), Map::GetGameObject(), GameObject::GetGoType(), BaseEntity::GetGUID(), WorldObject::GetMap(), GetQuestDialogStatus(), Unit::HasNpcFlag(), m_clientGUIDs, WorldPackets::Quest::QuestGiverStatusMultiple::QuestGiver, SendDirectMessage(), UNIT_NPC_FLAG_QUESTGIVER, and WorldPackets::Quest::QuestGiverStatusMultiple::Write().
Referenced by WorldSession::HandleQuestgiverStatusMultipleQuery().
| void Player::SendQuestReward | ( | Quest const * | quest, |
| Creature const * | questGiver, | ||
| uint32 | xp, | ||
| bool | hideChatMessage | ||
| ) | const |
Definition at line 17276 of file Player.cpp.
References CanTakeQuest(), GetNextQuest(), GetQuestDialogStatus(), Quest::GetQuestId(), GetQuestMoneyReward(), Quest::GetRewardSkillId(), Quest::GetRewardSkillPoints(), Quest::GetRewMoneyMaxLevel(), Quest::HasFlag(), WorldPackets::Quest::QuestGiverQuestComplete::HideChatMessage, Unit::IsGossip(), IsMaxLevel(), Unit::IsQuestGiver(), WorldPackets::Quest::QuestGiverQuestComplete::LaunchGossip, WorldPackets::Quest::QuestGiverQuestComplete::LaunchQuest, WorldPackets::Quest::QuestGiverQuestComplete::MoneyReward, None, WorldPackets::Quest::QuestGiverQuestComplete::NumSkillUpsReward, QUEST_FLAGS_AUTO_COMPLETE, QUEST_FLAGS_LAUNCH_GOSSIP_COMPLETE, QUEST_FLAGS_TRACKING_EVENT, WorldPackets::Quest::QuestGiverQuestComplete::QuestID, RATE_DROP_MONEY, SendDirectMessage(), SendForceSpawnTrackingUpdate(), sGameEventMgr, WorldPackets::Quest::QuestGiverQuestComplete::SkillLineIDReward, sWorld, WorldPackets::Quest::QuestGiverQuestComplete::UseQuestReward, WorldPackets::Quest::QuestGiverQuestComplete::Write(), and WorldPackets::Quest::QuestGiverQuestComplete::XPReward.
Referenced by RewardQuest().
| void Player::SendQuestTimerFailed | ( | uint32 | questId | ) | const |
Definition at line 17335 of file Player.cpp.
References WorldPackets::Quest::QuestUpdateFailedTimer::QuestID, SendDirectMessage(), and WorldPackets::Quest::QuestUpdateFailedTimer::Write().
Referenced by FailQuest().
| void Player::SendQuestUpdate | ( | uint32 | questId, |
| bool | updateInteractions = true, |
||
| bool | updateGameObjectQuestGiverStatus = false |
||
| ) |
Definition at line 16044 of file Player.cpp.
References CastSpell, WorldObject::GetZoneAndAreaId(), HasAura, Unit::RemoveAurasDueToSpell(), SPELL_AREA_FLAG_AUTOCAST, SPELL_AREA_FLAG_AUTOREMOVE, SPELL_AREA_FLAG_IGNORE_AUTOCAST_ON_QUEST_STATUS_CHANGE, sSpellMgr, and UpdateVisibleObjectInteractions().
Referenced by AddQuest(), RemoveActiveQuest(), RemoveRewardedQuest(), RewardQuest(), SetQuestStatus(), and SkipQuests().
| void Player::SendQuestUpdateAddCredit | ( | Quest const * | quest, |
| ObjectGuid | guid, | ||
| QuestObjective const & | obj, | ||
| uint16 | count | ||
| ) | const |
Definition at line 17397 of file Player.cpp.
References QuestObjective::Amount, WorldPackets::Quest::QuestUpdateAddCredit::Count, Quest::GetQuestId(), QuestObjective::ObjectID, WorldPackets::Quest::QuestUpdateAddCredit::ObjectID, WorldPackets::Quest::QuestUpdateAddCredit::ObjectiveType, WorldPackets::Quest::QuestUpdateAddCredit::QuestID, WorldPackets::Quest::QuestUpdateAddCredit::Required, SendDirectMessage(), QuestObjective::Type, WorldPackets::Quest::QuestUpdateAddCredit::VictimGUID, and WorldPackets::Quest::QuestUpdateAddCredit::Write().
Referenced by UpdateQuestObjectiveProgress().
| void Player::SendQuestUpdateAddCreditSimple | ( | QuestObjective const & | obj | ) | const |
Definition at line 17409 of file Player.cpp.
References QuestObjective::ObjectID, WorldPackets::Quest::QuestUpdateAddCreditSimple::ObjectID, WorldPackets::Quest::QuestUpdateAddCreditSimple::ObjectiveType, QuestObjective::QuestID, WorldPackets::Quest::QuestUpdateAddCreditSimple::QuestID, SendDirectMessage(), QuestObjective::Type, and WorldPackets::Quest::QuestUpdateAddCreditSimple::Write().
Referenced by WorldSession::HandleAreaTriggerOpcode(), and UpdateQuestObjectiveProgress().
| void Player::SendQuestUpdateAddItem | ( | ItemTemplate const * | itemTemplate, |
| QuestObjective const & | obj, | ||
| uint16 | count | ||
| ) | const |
Definition at line 17418 of file Player.cpp.
References Group::BroadcastPacket(), WorldPackets::Item::ItemPushResult::ChatNotifyType, WorldPackets::Item::ItemPushResult::FakeQuestItem, GetGroup(), BaseEntity::GetGUID(), ItemTemplate::GetId(), GetQuestObjectiveData(), ItemTemplate::HasFlag(), INVENTORY_SLOT_BAG_0, WorldPackets::Item::ItemPushResult::Item, ITEM_FLAG3_DONT_REPORT_LOOT_LOG_TO_PARTY, WorldPackets::Item::ItemInstance::ItemID, WorldPackets::Item::ItemPushResult::PlayerGUID, WorldPackets::Item::ItemPushResult::ProxyItemID, WorldPackets::Item::ItemPushResult::Quantity, WorldPackets::Item::ItemPushResult::QuantityInInventory, ItemTemplate::QuestLogItemId, SendDirectMessage(), WorldPackets::Item::ItemPushResult::Slot, WorldPackets::Item::ItemPushResult::SlotInBag, and WorldPackets::Item::ItemPushResult::Write().
Referenced by ItemAddedQuestCheck().
Definition at line 17439 of file Player.cpp.
References WorldPackets::Quest::QuestUpdateAddPvPCredit::Count, Quest::GetQuestId(), WorldPackets::Quest::QuestUpdateAddPvPCredit::QuestID, SendDirectMessage(), and WorldPackets::Quest::QuestUpdateAddPvPCredit::Write().
Referenced by UpdateQuestObjectiveProgress().
| void Player::SendRaidDifficulty | ( | bool | legacy | ) | const |
Definition at line 21820 of file Player.cpp.
References WorldPackets::Misc::RaidDifficultySet::DifficultyID, GetLegacyRaidDifficultyID(), GetRaidDifficultyID(), WorldPackets::Misc::RaidDifficultySet::Legacy, SendDirectMessage(), and WorldPackets::Misc::RaidDifficultySet::Write().
Referenced by WorldSession::HandlePlayerLogin(), and WorldSession::HandleSetRaidDifficultyOpcode().
| void Player::SendRaidGroupOnlyMessage | ( | RaidGroupReason | reason, |
| int32 | delay | ||
| ) | const |
Definition at line 30741 of file Player.cpp.
References WorldPackets::Instance::RaidGroupOnly::Delay, WorldPackets::Instance::RaidGroupOnly::Reason, SendDirectMessage(), and WorldPackets::Instance::RaidGroupOnly::Write().
Referenced by WorldSession::HandleAreaTriggerOpcode(), and UpdateHomebindTime().
| void Player::SendRaidInfo | ( | ) |
Definition at line 20006 of file Player.cpp.
References WorldPackets::Instance::InstanceLock::CompletedMask, WorldPackets::Instance::InstanceLock::DifficultyID, WorldPackets::Instance::InstanceLock::Extended, BaseEntity::GetGUID(), GameTime::GetSystemTime(), WorldPackets::Instance::InstanceLock::InstanceID, WorldPackets::Instance::InstanceLock::Locked, WorldPackets::Instance::InstanceInfo::LockList, WorldPackets::Instance::InstanceLock::MapID, SendDirectMessage(), SI64LIT, sInstanceLockMgr, WorldPackets::Instance::InstanceLock::TimeRemaining, and WorldPackets::Instance::InstanceInfo::Write().
Referenced by instance_commandscript::HandleInstanceUnbindCommand(), and WorldSession::HandleRequestRaidInfoOpcode().
|
private |
Definition at line 29510 of file Player.cpp.
References WorldPackets::Item::SetItemPurchaseData::Contents, WorldPackets::Item::ItemPurchaseContents::Currencies, ItemExtendedCostEntry::CurrencyCount, WorldPackets::Item::ItemPurchaseRefundCurrency::CurrencyCount, ItemExtendedCostEntry::CurrencyID, WorldPackets::Item::ItemPurchaseRefundCurrency::CurrencyID, ItemExtendedCostEntry::Flags, BaseEntity::GetGUID(), Item::GetPaidExtendedCost(), Item::GetPaidMoney(), Item::GetRefundRecipient(), Item::IsRefundable(), Item::IsRefundExpired(), ITEM_EXT_COST_CURRENCY_REQ_IS_SEASON_EARNED_1, ItemExtendedCostEntry::ItemCount, WorldPackets::Item::ItemPurchaseRefundItem::ItemCount, WorldPackets::Item::SetItemPurchaseData::ItemGUID, ItemExtendedCostEntry::ItemID, WorldPackets::Item::ItemPurchaseRefundItem::ItemID, WorldPackets::Item::ItemPurchaseContents::Items, Item::m_itemData, MAX_ITEM_EXT_COST_CURRENCIES, MAX_ITEM_EXT_COST_ITEMS, WorldPackets::Item::ItemPurchaseContents::Money, WorldPackets::Item::SetItemPurchaseData::PurchaseTime, SendDirectMessage(), Item::SetNotRefundable(), sItemExtendedCostStore, TC_LOG_DEBUG, and WorldPackets::Item::SetItemPurchaseData::Write().
Referenced by WorldSession::HandleGetItemPurchaseData(), and SwapItem().
| void Player::SendRemoveControlBar | ( | ) | const |
Definition at line 22570 of file Player.cpp.
References SendDirectMessage(), and WorldPackets::Pet::PetSpells::Write().
Referenced by Unit::RemoveCharmedBy().
| void Player::SendResetFailedNotify | ( | uint32 | mapid | ) | const |
Definition at line 21828 of file Player.cpp.
References SendDirectMessage(), and WorldPackets::Instance::ResetFailedNotify::Write().
| void Player::SendResetInstanceFailed | ( | ResetFailedReason | reason, |
| uint32 | mapID | ||
| ) | const |
Definition at line 21879 of file Player.cpp.
References WorldPackets::Instance::InstanceResetFailed::MapID, WorldPackets::Instance::InstanceResetFailed::ResetFailedReason, SendDirectMessage(), and WorldPackets::Instance::InstanceResetFailed::Write().
Referenced by ResetInstances(), and Group::ResetInstances().
| void Player::SendResetInstanceSuccess | ( | uint32 | MapId | ) | const |
Definition at line 21872 of file Player.cpp.
References WorldPackets::Instance::InstanceReset::MapID, SendDirectMessage(), and WorldPackets::Instance::InstanceReset::Write().
Referenced by ResetInstances(), and Group::ResetInstances().
| void Player::SendRespecWipeConfirm | ( | ObjectGuid const & | guid, |
| uint32 | cost, | ||
| SpecResetType | respecType | ||
| ) | const |
Definition at line 9164 of file Player.cpp.
References WorldPackets::Talent::RespecWipeConfirm::Cost, PlayerTalkClass, WorldPackets::Talent::RespecWipeConfirm::RespecMaster, WorldPackets::Talent::RespecWipeConfirm::RespecType, SendDirectMessage(), SPEC_RESET_SPECIALIZATION, SPEC_RESET_TALENTS, SpecializationMaster, TalentMaster, and WorldPackets::Talent::RespecWipeConfirm::Write().
Referenced by Spell::EffectUntrainTalents(), WorldSession::HandleConfirmRespecWipeOpcode(), and OnGossipSelect().
| void Player::SendRespondInspectAchievements | ( | Player * | player | ) | const |
Definition at line 27501 of file Player.cpp.
References m_achievementMgr.
Referenced by WorldSession::HandleQueryInspectAchievements().
| void Player::SendSellError | ( | SellResult | msg, |
| Creature * | creature, | ||
| ObjectGuid | guid | ||
| ) | const |
Definition at line 13105 of file Player.cpp.
References ObjectGuid::Empty, BaseEntity::GetGUID(), WorldPackets::Item::SellResponse::ItemGUIDs, WorldPackets::Item::SellResponse::Reason, SendDirectMessage(), WorldPackets::Item::SellResponse::VendorGUID, and WorldPackets::Item::SellResponse::Write().
Referenced by WorldSession::HandleBuybackItem(), debug_commandscript::HandleDebugSendSellErrorCommand(), WorldSession::HandleSellAllJunkItems(), WorldSession::HandleSellItemOpcode(), and WorldSession::SendListInventory().
| void Player::SendSpellModifiers | ( | ) | const |
Definition at line 22978 of file Player.cpp.
References CalculatePct(), WorldPackets::Spells::SpellModifierData::ClassIndex, m_spellMods, WorldPackets::Spells::SpellModifier::ModifierData, WorldPackets::Spells::SetSpellModifier::Modifiers, WorldPackets::Spells::SpellModifierData::ModifierValue, WorldPackets::Spells::SpellModifier::ModIndex, SendDirectMessage(), SMSG_SET_FLAT_SPELL_MODIFIER, SMSG_SET_PCT_SPELL_MODIFIER, SPELLMOD_FLAT, SPELLMOD_PCT, and WorldPackets::Spells::SetSpellModifier::Write().
Referenced by SendInitialPacketsBeforeAddToMap().
| void Player::SendSummonRequestFrom | ( | Unit * | summoner | ) |
Definition at line 26005 of file Player.cpp.
References WorldPackets::Movement::SummonRequest::AreaID, GameTime::GetGameTime(), GetGroup(), BaseEntity::GetGUID(), WorldObject::GetInstanceId(), GetVirtualRealmAddress(), WorldObject::GetZoneId(), HasAura, HasSummonPending(), TeleportLocation::InstanceId, TeleportLocation::Location, m_summon_expire, m_summon_location, MAX_PLAYER_SUMMON_DELAY, SendDirectMessage(), WorldPackets::Movement::SummonRequest::SummonerGUID, WorldPackets::Movement::SummonRequest::SummonerVirtualRealmAddress, WorldPackets::Party::BroadcastSummonCast::Target, Object::ToPlayer(), WorldLocation::WorldRelocate(), WorldPackets::Movement::SummonRequest::Write(), and WorldPackets::Party::BroadcastSummonCast::Write().
Referenced by Spell::EffectSummonPlayer().
Definition at line 30535 of file Player.cpp.
References WorldPackets::Spells::SupercededSpells::ClientLearnedSpellData, SendDirectMessage(), WorldPackets::Spells::LearnedSpellInfo::SpellID, WorldPackets::Spells::LearnedSpellInfo::Superceded, and WorldPackets::Spells::SupercededSpells::Write().
Referenced by AddSpell(), and RemoveSpell().
| void Player::SendTalentsInfoData | ( | ) |
Definition at line 28051 of file Player.cpp.
References WorldPackets::Talent::TalentInfoUpdate::ActiveGroup, AsUnderlyingType(), DIFFICULTY_NONE, GetActiveTalentGroup(), Unit::GetClass(), BaseEntity::GetGUID(), WorldObject::GetName(), GetPrimarySpecialization(), GetPvpTalentMap(), GetTalentMap(), ChrSpecializationEntry::ID, WorldPackets::Talent::UpdateTalentData::Info, MAX_PVP_TALENT_SLOTS, MAX_SPECIALIZATIONS, PLAYERSPELL_REMOVED, WorldPackets::Talent::TalentInfoUpdate::PrimarySpecialization, WorldPackets::Talent::PvPTalent::PvPTalentID, WorldPackets::Talent::TalentGroupInfo::PvPTalents, sDB2Manager, SendDirectMessage(), WorldPackets::Talent::PvPTalent::Slot, WorldPackets::Talent::TalentGroupInfo::SpecID, PvpTalentEntry::SpellID, TalentEntry::SpellID, sPvpTalentStore, sSpellMgr, sTalentStore, WorldPackets::Talent::TalentInfoUpdate::TalentGroups, WorldPackets::Talent::TalentGroupInfo::TalentIDs, TC_LOG_ERROR, Position::ToString(), and WorldPackets::Talent::UpdateTalentData::Write().
Referenced by Spell::EffectRemoveTalent(), WorldSession::HandleConfirmRespecWipeOpcode(), learn_commandscript::HandleLearnAllTalentsCommand(), WorldSession::HandleLearnPvpTalentsOpcode(), WorldSession::HandleLearnTalentsOpcode(), WorldSession::HandlePlayerLogin(), reset_commandscript::HandleResetTalentsCommand(), InitTalentForLevel(), ResetTalentSpecialization(), and SendInitialPacketsBeforeAddToMap().
| void Player::SendTameFailure | ( | PetTameResult | result | ) |
Definition at line 22168 of file Player.cpp.
References AsUnderlyingType(), WorldPackets::Pet::PetTameFailure::Result, SendDirectMessage(), and WorldPackets::Pet::PetTameFailure::Write().
Referenced by spell_hun_tame_beast::CheckCast(), and Spell::CheckCast().
| void Player::SendTransferAborted | ( | uint32 | mapid, |
| TransferAbortReason | reason, | ||
| uint8 | arg = 0, |
||
| int32 | mapDifficultyXConditionID = 0 |
||
| ) | const |
Definition at line 25130 of file Player.cpp.
References WorldPackets::Movement::TransferAborted::Arg, WorldPackets::Movement::TransferAborted::MapDifficultyXConditionID, WorldPackets::Movement::TransferAborted::MapID, SendDirectMessage(), WorldPackets::Movement::TransferAborted::TransfertAbort, and WorldPackets::Movement::TransferAborted::Write().
Referenced by WorldSession::HandleAreaTriggerOpcode(), LoadFromDB(), and TeleportTo().
| void Player::SendUnlearnSpells | ( | ) |
Definition at line 2506 of file Player.cpp.
References SendDirectMessage(), and WorldPackets::Spells::SendUnlearnSpells::Write().
Referenced by SendInitialPacketsBeforeAddToMap().
| void Player::SendUpdateToOutOfRangeGroupMembers | ( | ) |
Definition at line 25118 of file Player.cpp.
References GetGroup(), GetPet(), GROUP_UPDATE_FLAG_NONE, and m_groupUpdateMask.
Referenced by Heartbeat().
Definition at line 9130 of file Player.cpp.
References WorldPackets::WorldState::UpdateWorldState::Hidden, SendDirectMessage(), WorldPackets::WorldState::UpdateWorldState::Value, WorldPackets::WorldState::UpdateWorldState::VariableID, and WorldPackets::WorldState::UpdateWorldState::Write().
Referenced by npc_wg_queue::OnGossipHello(), and GameEventMgr::SendWorldStateUpdate().
|
inline |
Definition at line 1292 of file Player.h.
References PLAYER_EXTRA_ACCEPT_WHISPERS.
Referenced by message_commandscript::HandleWhispersCommand(), LoadFromDB(), Player(), SetGMVisible(), and Whisper().
|
inline |
Definition at line 1491 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::NumAccountBankTabs.
Referenced by WorldSession::HandleBuyBankTab().
|
inline |
Definition at line 1497 of file Player.h.
References UF::ActivePlayerData::AccountBankTabSettings, and m_activePlayerData.
Referenced by WorldSession::HandleBuyBankTab(), and WorldSession::HandleUpdateBankTabSettings().
| void Player::SetAccountSecured | ( | bool | secured | ) |
Definition at line 31039 of file Player.cpp.
References PLAYER_LOCAL_FLAG_ACCOUNT_SECURED, RemovePlayerLocalFlag(), SetPlayerLocalFlag(), and UpdateInventorySlotCount().
|
inline |
Definition at line 2046 of file Player.h.
References UF::ActivePlayerData::ActiveCombatTraitConfigID, and m_activePlayerData.
Referenced by _LoadTraits(), and ActivateTalentGroup().
|
inline |
Definition at line 1996 of file Player.h.
Referenced by ActivateTalentGroup(), Create(), LoadFromDB(), and ResetTalentSpecialization().
|
inline |
Definition at line 2871 of file Player.h.
Referenced by WorldSession::HandleSetAdvancedCombatLogging().
| void Player::SetAreaSpiritHealer | ( | Creature * | creature | ) |
Definition at line 31395 of file Player.cpp.
References _areaSpiritHealerGUID, CastSpell, ObjectGuid::Empty, BaseEntity::GetGUID(), Unit::IsAreaSpiritHealer(), Unit::RemoveAurasDueToSpell(), and SPELL_WAITING_FOR_RESURRECT.
Referenced by WorldSession::HandleAreaSpiritHealerQueueOpcode(), WorldSession::HandleGossipHelloOpcode(), spell_gen_waiting_to_resurrect::OnRemove(), and ResurrectPlayer().
|
inline |
Definition at line 2935 of file Player.h.
References UF::PlayerData::ArenaFaction, and m_playerData.
Referenced by SetBGTeam().
|
inline |
Definition at line 2160 of file Player.h.
Referenced by ArenaTeam::AddMember().
| void Player::SetArenaTeamInfoField | ( | uint8 | slot, |
| ArenaTeamInfoType | type, | ||
| uint32 | value | ||
| ) |
Definition at line 7378 of file Player.cpp.
Referenced by _LoadArenaTeamInfo(), ArenaTeam::AddMember(), ArenaTeam::MemberLost(), ArenaTeam::MemberWon(), ArenaTeamMember::ModifyPersonalRating(), ArenaTeam::SetCaptain(), and SetInArenaTeam().
|
inline |
| void Player::SetAttackSwingError | ( | Optional< AttackSwingErr > | err | ) |
Definition at line 21793 of file Player.cpp.
References m_swingErrorMsg, SendDirectMessage(), and WorldPackets::Combat::AttackSwingError::Write().
|
inline |
Definition at line 2905 of file Player.h.
References UF::PlayerData::AvgItemLevel, and m_playerData.
Referenced by UpdateAverageItemLevelEquipped().
|
inline |
Definition at line 1510 of file Player.h.
References UF::ActivePlayerData::BackpackAutoSortDisabled, and m_activePlayerData.
Referenced by WorldSession::HandleSetBackpackAutosortDisabled(), and LoadFromDB().
|
inline |
Definition at line 1512 of file Player.h.
References UF::ActivePlayerData::BackpackSellJunkDisabled, and m_activePlayerData.
Referenced by WorldSession::HandleSetBackpackSellJunkDisabled(), and LoadFromDB().
|
inline |
Definition at line 1516 of file Player.h.
References UF::ActivePlayerData::BagSlotFlags, flags, and m_activePlayerData.
Referenced by WorldSession::HandleChangeBagSlotFlag().
|
inline |
Definition at line 1514 of file Player.h.
References UF::ActivePlayerData::BankAutoSortDisabled, and m_activePlayerData.
Referenced by WorldSession::HandleSetBankAutosortDisabled(), and LoadFromDB().
|
inline |
Definition at line 1487 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::NumBankSlots.
Referenced by LoadFromDB().
|
inline |
Definition at line 1502 of file Player.h.
References UF::BankTabSettings::DepositFlags, UF::BankTabSettings::Description, UF::BankTabSettings::Icon, UF::MutableFieldReferenceWithChangesMask< T, PublicSet >::ModifyValue(), and UF::BankTabSettings::Name.
| void Player::SetBaseModFlatValue | ( | BaseModGroup | modGroup, |
| float | val | ||
| ) |
Definition at line 4887 of file Player.cpp.
References m_auraBaseFlatMod, and UpdateBaseModGroup().
Referenced by UpdateWeaponDependentCritAuras().
| void Player::SetBaseModPctValue | ( | BaseModGroup | modGroup, |
| float | val | ||
| ) |
Definition at line 4896 of file Player.cpp.
References m_auraBasePctMod, and UpdateBaseModGroup().
Referenced by AuraEffect::HandleShieldBlockValuePercent(), and UpdateAllCritPercentages().
| void Player::SetBattlegroundEntryPoint | ( | ) |
Definition at line 24228 of file Player.cpp.
References BGData::ClearTaxiPath(), PlayerTaxi::empty(), Unit::GetAuraEffectsByType(), WorldObject::GetMap(), WorldLocation::GetMapId(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), PlayerTaxi::GetTaxiDestination(), PlayerTaxi::GetTaxiSource(), GetTeam(), Map::IsDungeon(), Unit::IsMounted(), BGData::joinPos, m_bgData, m_homebind, WorldLocation::m_mapId, m_taxi, MAPID_INVALID, BGData::mountSpell, sObjectMgr, SPELL_AURA_MOUNTED, BGData::taxiPath, TC_LOG_ERROR, WorldLocation::WorldLocation(), and WorldLocation::WorldRelocate().
Referenced by misc_commandscript::HandleAppearCommand(), WorldSession::HandleBattleFieldPortOpcode(), misc_commandscript::HandleSummonCommand(), and lfg::LFGMgr::TeleportPlayer().
| void Player::SetBattlegroundId | ( | uint32 | val, |
| BattlegroundTypeId | bgTypeId, | ||
| BattlegroundQueueTypeId | queueId | ||
| ) |
Definition at line 25704 of file Player.cpp.
References BGData::bgInstanceID, BGData::bgTypeID, m_bgData, and BGData::queueId.
Referenced by misc_commandscript::HandleAppearCommand(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleMoveWorldportAck(), misc_commandscript::HandleSummonCommand(), and Battleground::RemovePlayerAtLeave().
Definition at line 26689 of file Player.cpp.
References GetGroup(), GetSubGroup(), Reference< TO, FROM, Derived >::link(), m_group, SetOriginalGroup(), GroupReference::setSubGroup(), and Reference< TO, FROM, Derived >::unlink().
Referenced by Group::AddMember(), Battlefield::AddOrSetPlayerToCorrectBfGroup(), and Battleground::AddOrSetPlayerToCorrectBgGroup().
| void Player::SetBattlePetData | ( | BattlePets::BattlePet const * | pet = nullptr | ) |
Definition at line 22198 of file Player.cpp.
References AsUnderlyingType(), ObjectGuid::Empty, WorldPackets::BattlePet::BattlePet::Exp, WorldPackets::BattlePet::BattlePet::Guid, WorldPackets::BattlePet::BattlePet::Level, BattlePets::BattlePet::PacketInfo, BattlePets::Poor, WorldPackets::BattlePet::BattlePet::Quality, Unit::SetBattlePetCompanionExperience(), SetCurrentBattlePetBreedQuality(), SetSummonedBattlePetGUID(), and Unit::SetWildBattlePetLevel().
Referenced by BattlePets::BattlePetMgr::CageBattlePet(), BattlePets::BattlePetMgr::DismissPet(), WorldSession::HandleDismissCritter(), BattlePets::BattlePetMgr::SummonPet(), and BattlePets::BattlePetMgr::UpdateBattlePetData().
|
inline |
Definition at line 1307 of file Player.h.
References PLAYER_EXTRA_GRANTED_LEVELS_FROM_RAF.
| void Player::SetBGTeam | ( | Team | team | ) |
Definition at line 24271 of file Player.cpp.
References ALLIANCE, BGData::bgTeam, m_bgData, and SetArenaFaction().
Referenced by WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleMoveWorldportAck(), and Battleground::RemovePlayerAtLeave().
| void Player::SetBindPoint | ( | ObjectGuid | guid | ) | const |
Definition at line 9155 of file Player.cpp.
References Binder, WorldPackets::NPC::NPCInteractionOpenResult::InteractionType, WorldPackets::NPC::NPCInteractionOpenResult::Npc, SendDirectMessage(), WorldPackets::NPC::NPCInteractionOpenResult::Success, and WorldPackets::NPC::NPCInteractionOpenResult::Write().
Definition at line 1615 of file Player.h.
References UF::ActivePlayerData::BuybackPrice, and m_activePlayerData.
Referenced by AddItemToBuyBackSlot(), WorldSession::LogoutPlayer(), and RemoveItemFromBuyBackSlot().
|
inline |
Definition at line 1616 of file Player.h.
References UF::ActivePlayerData::BuybackTimestamp, and m_activePlayerData.
Referenced by AddItemToBuyBackSlot(), WorldSession::LogoutPlayer(), and RemoveItemFromBuyBackSlot().
| void Player::SetCanBlock | ( | bool | value | ) |
Definition at line 26850 of file Player.cpp.
References m_canBlock, and UpdateBlockPercentage().
Referenced by Spell::EffectBlock().
|
inlineprivate |
Definition at line 3346 of file Player.h.
Referenced by RewardQuest(), and Update().
| void Player::SetCanParry | ( | bool | value | ) |
Definition at line 26841 of file Player.cpp.
References m_canParry, and UpdateParryPercentage().
Referenced by Spell::EffectParry().
| void Player::SetCanTitanGrip | ( | bool | value, |
| uint32 | penaltySpellId = 0, |
||
| int32 | allowedItemClass = 0, |
||
| int32 | allowedItemSubClassMask = 0 |
||
| ) |
Definition at line 13144 of file Player.cpp.
References ITEM_CLASS_ARMOR, ITEM_CLASS_WEAPON, m_canTitanGrip, m_titanGripArmorSubclasses, m_titanGripPenaltySpellId, and m_titanGripWeaponSubclasses.
Referenced by Spell::EffectTitanGrip(), and RemoveSpell().
|
inline |
Definition at line 2846 of file Player.h.
Referenced by AuraEffect::HandleAuraDummy().
|
inline |
Definition at line 1489 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::NumCharacterBankTabs.
Referenced by WorldSession::HandleBuyBankTab(), and LoadFromDB().
|
inline |
Definition at line 1492 of file Player.h.
References UF::ActivePlayerData::CharacterBankTabSettings, and m_activePlayerData.
Referenced by _LoadCharacterBankTabSettings(), WorldSession::HandleBuyBankTab(), and WorldSession::HandleUpdateBankTabSettings().
|
inline |
Definition at line 2838 of file Player.h.
References m_playerData, and UF::PlayerData::PlayerTitle.
Referenced by WorldSession::HandleSetTitleOpcode(), titles_commandscript::HandleTitlesCurrentCommand(), titles_commandscript::HandleTitlesRemoveCommand(), titles_commandscript::HandleTitlesSetMaskCommand(), and LoadFromDB().
|
inline |
Definition at line 2094 of file Player.h.
Referenced by WorldSession::HandlePlayerLogin().
| void Player::SetClientControl | ( | Unit * | target, |
| bool | allowMove | ||
| ) |
Definition at line 26441 of file Player.cpp.
References ASSERT, Unit::GetCharmerGUID(), BaseEntity::GetGUID(), WorldObject::GetName(), GetViewpoint(), WorldPackets::Movement::ControlUpdate::Guid, Unit::HasUnitState(), WorldPackets::Movement::ControlUpdate::On, SendDirectMessage(), Unit::SetMovedUnit(), SetViewpoint(), TC_LOG_ERROR, ObjectGuid::ToString(), UNIT_STATE_CHARMED, UNIT_STATE_CONFUSED, UNIT_STATE_FLEEING, and WorldPackets::Movement::ControlUpdate::Write().
Referenced by Battleground::BlockMovement(), Unit::RemoveCharmedBy(), SendInitialPacketsAfterAddToMap(), Unit::SetCharmedBy(), Unit::SetConfused(), and Unit::SetFeared().
|
inline |
Definition at line 1325 of file Player.h.
Referenced by cheat_commandscript::HandleCasttimeCheatCommand(), cheat_commandscript::HandleCoolDownCheatCommand(), cheat_commandscript::HandleGodModeCheatCommand(), cheat_commandscript::HandlePowerCheatCommand(), and cheat_commandscript::HandleWaterWalkCheatCommand().
|
inline |
Definition at line 1324 of file Player.h.
Referenced by cheat_commandscript::HandleCasttimeCheatCommand(), cheat_commandscript::HandleCoolDownCheatCommand(), cheat_commandscript::HandleGodModeCheatCommand(), cheat_commandscript::HandlePowerCheatCommand(), and cheat_commandscript::HandleWaterWalkCheatCommand().
| void Player::SetContestedPvP | ( | Player * | attackedPlayer = nullptr | ) |
Definition at line 21933 of file Player.cpp.
References Unit::AddUnitState(), duel, WorldObject::GetVisibilityRange(), Unit::HasUnitState(), Unit::m_Controlled, PLAYER_FLAGS_CONTESTED_PVP, SetContestedPvPTimer(), SetPlayerFlag(), UNIT_STATE_ATTACK_PLAYER, and Cell::VisitWorldObjects().
Referenced by Unit::AtTargetAttacked(), and WorldSession::HandlePlayerLogin().
|
inline |
Definition at line 2122 of file Player.h.
Referenced by SetContestedPvP().
Initialize currency amount for custom initialization at create character.
Definition at line 7020 of file Player.cpp.
References _currencyStorage, and PLAYERCURRENCY_NEW.
| void Player::SetCurrencyFlagsFromClient | ( | uint32 | id, |
| CurrencyDbFlags | flags | ||
| ) |
Definition at line 7347 of file Player.cpp.
References _currencyStorage, ClientFlags, flags, PLAYERCURRENCY_CHANGED, and PLAYERCURRENCY_NEW.
Referenced by WorldSession::HandleSetCurrencyFlags().
|
inline |
Definition at line 2937 of file Player.h.
References UF::PlayerData::CurrentBattlePetBreedQuality, and m_playerData.
Referenced by SetBattlePetData().
|
inline |
Definition at line 2047 of file Player.h.
References UF::PlayerData::CurrentCombatTraitConfigSubTreeID, and m_playerData.
Referenced by _LoadTraits(), ActivateTalentGroup(), and ApplyTraitEntryChanges().
|
inline |
Definition at line 2921 of file Player.h.
References UF::ChrCustomizationChoice::ChrCustomizationChoiceID, UF::ChrCustomizationChoice::ChrCustomizationOptionID, UF::PlayerData::Customizations, and m_playerData.
Referenced by Create(), WorldSession::HandleAlterAppearance(), modify_commandscript::HandleModifyGenderCommand(), and LoadFromDB().
| void Player::SetDailyQuestStatus | ( | uint32 | quest_id | ) |
Definition at line 25486 of file Player.cpp.
References BaseEntity::AddDynamicUpdateFieldValue(), UF::ActivePlayerData::DailyQuestsCompleted, GameTime::GetGameTime(), m_activePlayerData, m_DailyQuestChanged, m_DFQuests, m_lastDailyQuestTime, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), and sObjectMgr.
Referenced by RewardQuest().
Definition at line 30254 of file Player.cpp.
References UF::ActivePlayerData::AccountDataElements, Float, UF::PlayerDataElement::FloatValue, GetSession(), PlayerDataElementAccountEntry::GetType(), Int64, UF::PlayerDataElement::Int64Value, m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), WorldSession::SetPlayerDataElementAccount(), BaseEntity::SetUpdateFieldValue(), sPlayerDataElementAccountStore, PlayerDataElementAccountEntry::StorageIndex, PlayerDataElementAccountEntry::Type, and UF::PlayerDataElement::Type.
Referenced by Spell::EffectSetPlayerDataElementAccount().
Definition at line 30308 of file Player.cpp.
References _playerDataElementsNeedSave, UF::ActivePlayerData::CharacterDataElements, UF::PlayerDataElement::FloatValue, Trinity::Containers::FlatSet< Key, Compare, KeyContainer >::insert(), UF::PlayerDataElement::Int64Value, m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::SetUpdateFieldValue(), sPlayerDataElementCharacterStore, PlayerDataElementCharacterEntry::StorageIndex, PlayerDataElementCharacterEntry::Type, and UF::PlayerDataElement::Type.
Referenced by Spell::EffectSetPlayerDataElementCharacter().
| void Player::SetDataFlagAccount | ( | uint32 | dataFlagId, |
| bool | on | ||
| ) |
Definition at line 30348 of file Player.cpp.
References UF::ActivePlayerData::BitVectors, GetSession(), m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), PLAYER_DATA_FLAG_ACCOUNT_DATA_INDEX, PLAYER_DATA_FLAG_VALUE_BITS, BaseEntity::RemoveUpdateFieldFlagValue(), WorldSession::SetPlayerDataFlagAccount(), BaseEntity::SetUpdateFieldFlagValue(), sPlayerDataFlagAccountStore, PlayerDataFlagAccountEntry::StorageIndex, UI64LIT, UF::BitVector::Values, and UF::BitVectors::Values.
Referenced by Spell::EffectSetPlayerDataFlagAccount().
| void Player::SetDataFlagCharacter | ( | uint32 | dataFlagId, |
| bool | on | ||
| ) |
Definition at line 30385 of file Player.cpp.
References _playerDataFlagsNeedSave, UF::ActivePlayerData::BitVectors, Trinity::Containers::FlatSet< Key, Compare, KeyContainer >::insert(), m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), PLAYER_DATA_FLAG_CHARACTER_DATA_INDEX, PLAYER_DATA_FLAG_VALUE_BITS, BaseEntity::RemoveUpdateFieldFlagValue(), BaseEntity::SetUpdateFieldFlagValue(), sPlayerDataFlagCharacterStore, PlayerDataFlagCharacterEntry::StorageIndex, UI64LIT, UF::BitVector::Values, and UF::BitVectors::Values.
Referenced by Spell::EffectSetPlayerDataFlagCharacter().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 1102 of file Player.cpp.
References CancelPendingCastRequest(), ClearResurrectRequestData(), ClearSelfResSpell(), Death, DieAnywhere, DieInInstance, DieOnMap, FailCriteria(), BaseEntity::GetGUID(), WorldObject::GetName(), InitializeSelfResurrectionSpells(), Unit::IsAlive(), JUST_DIED, PET_SAVE_NOT_IN_SLOT, POWER_COMBO_POINTS, RemovePet(), Unit::setDeathState(), SetDrunkValue(), Unit::SetPower(), TC_LOG_ERROR, Position::ToString(), and UpdateCriteria().
Referenced by BuildPlayerRepop(), KillPlayer(), and ResurrectPlayer().
|
inline |
Definition at line 1290 of file Player.h.
References PLAYER_FLAGS_DEVELOPER.
Referenced by misc_commandscript::HandleDevCommand().
Definition at line 842 of file Player.cpp.
References GetDrunkenstateByValue(), GetDrunkValue(), BaseEntity::GetGUID(), WorldPackets::Misc::CrossedInebriationThreshold::Guid, UF::PlayerData::Inebriation, WorldPackets::Misc::CrossedInebriationThreshold::ItemID, m_drunkTimer, m_playerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), SendMessageToSet(), BaseEntity::SetUpdateFieldValue(), WorldPackets::Misc::CrossedInebriationThreshold::Threshold, UpdateInvisibilityDrunkDetect(), and WorldPackets::Misc::CrossedInebriationThreshold::Write().
Referenced by Spell::EffectInebriate(), HandleSobering(), LoadFromDB(), and setDeathState().
|
inline |
Definition at line 2130 of file Player.h.
References UF::PlayerData::DuelArbiter, and m_playerData.
Referenced by DuelComplete(), and Spell::EffectDuel().
|
inline |
Definition at line 2131 of file Player.h.
References UF::PlayerData::DuelTeam, and m_playerData.
Referenced by DuelComplete(), and UpdateDuelFlag().
|
inline |
Definition at line 2169 of file Player.h.
Referenced by _LoadGroup(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleSetDungeonDifficultyOpcode(), and LoadFromDB().
|
inline |
Definition at line 2071 of file Player.h.
Referenced by WorldSession::HandleSetEmpowerMinHoldStagePercent().
| void Player::SetEquipmentSet | ( | EquipmentSetInfo::EquipmentSetData const & | newEqSet | ) |
Definition at line 28145 of file Player.cpp.
References _equipmentSets, EquipmentSetInfo::Data, EQUIPMENT_SET_CHANGED, EQUIPMENT_SET_NEW, BaseEntity::GetGUID(), WorldObject::GetName(), EquipmentSetInfo::EquipmentSetData::Guid, WorldPackets::EquipmentSet::EquipmentSetID::GUID, SendDirectMessage(), EquipmentSetInfo::EquipmentSetData::SetID, WorldPackets::EquipmentSet::EquipmentSetID::SetID, sObjectMgr, EquipmentSetInfo::State, TC_LOG_ERROR, Position::ToString(), EquipmentSetInfo::EquipmentSetData::Type, WorldPackets::EquipmentSet::EquipmentSetID::Type, and WorldPackets::EquipmentSet::EquipmentSetID::Write().
Referenced by WorldSession::HandleEquipmentSetSave().
| void Player::SetFactionForRace | ( | uint8 | race | ) |
Definition at line 6407 of file Player.cpp.
References ChrRacesEntry::FactionID, m_team, sChrRacesStore, Unit::SetFaction(), and TeamForRace().
Referenced by Create(), reset_commandscript::HandleResetStatsOrLevelHelper(), LoadFromDB(), and Unit::RestoreFaction().
| void Player::SetFallInformation | ( | uint32 | time, |
| float | z | ||
| ) |
Definition at line 27437 of file Player.cpp.
References m_lastFallTime, and m_lastFallZ.
Referenced by Unit::_ExitVehicle(), FlightPathMovementGenerator::DoFinalize(), Spell::EffectCharge(), Spell::EffectLeapBack(), AuraEffect::HandleAuraFeatherFall(), WorldSession::HandleMoveSplineDoneOpcode(), WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAck(), LoadFromDB(), MotionMaster::MoveFall(), Unit::SetCanFly(), TeleportTo(), UpdateFallInformationIfNeed(), and TransportBase::UpdatePassengerPosition().
|
inline |
Definition at line 2053 of file Player.h.
References UF::ActivePlayerData::CharacterPoints, and m_activePlayerData.
Referenced by AddSpell(), InitPrimaryProfessions(), and RemoveSpell().
| void Player::SetGameMaster | ( | bool | on | ) |
Definition at line 1971 of file Player.cpp.
References Unit::CombatStopWithPets(), FACTION_FRIENDLY, Unit::GetFaction(), GetPet(), GetSession(), Unit::HasAuraType(), m_areaUpdateId, m_ExtraFlags, WorldObject::m_serverSideVisibilityDetect, PLAYER_EXTRA_GM_ON, PLAYER_FLAGS_GM, RemovePlayerFlag(), Unit::RemovePvpFlag(), Unit::RemoveUnitFlag2(), ResetContestedPvP(), Unit::RestoreFaction(), SEC_PLAYER, SERVERSIDE_VISIBILITY_GM, PhasingHandler::SetAlwaysVisible(), Unit::SetFaction(), SetPlayerFlag(), Unit::SetPvpFlag(), Unit::SetUnitFlag2(), FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::SetValue(), SPELL_AURA_PHASE_ALWAYS_VISIBLE, sWorld, UNIT_BYTE2_FLAG_FFA_PVP, UNIT_FLAG2_ALLOW_CHEAT_SPELLS, UpdateArea(), and UpdateObjectVisibility().
Referenced by gm_commandscript::HandleGMOffCommand(), gm_commandscript::HandleGMOnCommand(), LoadFromDB(), and SetGMVisible().
|
inline |
Definition at line 1298 of file Player.h.
References PLAYER_EXTRA_GM_CHAT.
Referenced by LoadFromDB().
| void Player::SetGMVisible | ( | bool | on | ) |
Definition at line 2021 of file Player.cpp.
References GetSession(), m_channels, m_ExtraFlags, WorldObject::m_serverSideVisibility, PLAYER_EXTRA_GM_INVISIBLE, SEC_PLAYER, SERVERSIDE_VISIBILITY_GM, SetAcceptWhispers(), SetGameMaster(), and FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::SetValue().
Referenced by gm_commandscript::HandleGMVisibleCommand(), and LoadFromDB().
Definition at line 24890 of file Player.cpp.
References ASSERT, Reference< TO, FROM, Derived >::link(), m_group, GroupReference::setSubGroup(), Reference< TO, FROM, Derived >::unlink(), and UpdateObjectVisibility().
Referenced by _LoadGroup(), Group::AddMember(), Group::Disband(), and Group::RemoveMember().
|
inline |
Definition at line 2780 of file Player.h.
Referenced by Group::AddInvite(), Group::AddMember(), Player(), and Group::RemoveInvite().
|
inline |
Definition at line 2789 of file Player.h.
Referenced by Group::AddMember(), RemovePet(), Pet::SetGroupUpdateFlag(), Unit::SetMaxHealth(), Unit::SetMaxPower(), UpdatePosition(), and UpdateZone().
|
inline |
Definition at line 2146 of file Player.h.
Referenced by Guild::AddMember(), WorldSession::HandleGuildDeclineInvitation(), and Guild::HandleInviteMember().
|
inline |
Definition at line 2144 of file Player.h.
References UF::PlayerData::GuildLevel, and m_playerData.
Referenced by Guild::AddMember(), Guild::DeleteMember(), and WorldSession::HandlePlayerLogin().
|
inline |
Definition at line 2142 of file Player.h.
References UF::PlayerData::GuildRankID, and m_playerData.
Referenced by Guild::AddMember(), Guild::Member::ChangeRank(), Guild::DeleteMember(), and WorldSession::HandlePlayerLogin().
|
inline |
Definition at line 1311 of file Player.h.
References PLAYER_EXTRA_FLAG_FREE_TRANSMOG_CLAIMED.
Referenced by WorldSession::HandleTransmogOutfitUpdateSlots().
|
inline |
Definition at line 1309 of file Player.h.
References PLAYER_EXTRA_LEVEL_BOOSTED.
|
inline |
Definition at line 1305 of file Player.h.
References PLAYER_EXTRA_HAS_RACE_CHANGED.
Definition at line 2944 of file Player.h.
References UF::ActivePlayerData::Heirlooms, and m_activePlayerData.
Referenced by CollectionMgr::CheckHeirloomUpgrades().
Definition at line 2945 of file Player.h.
References flags, UF::ActivePlayerData::HeirloomFlags, and m_activePlayerData.
Referenced by CollectionMgr::CheckHeirloomUpgrades(), and CollectionMgr::UpgradeHeirloom().
| void Player::SetHomebind | ( | WorldLocation const & | loc, |
| uint32 | areaId | ||
| ) |
Definition at line 17893 of file Player.cpp.
References CHAR_UPD_PLAYER_HOMEBIND, CharacterDatabase, BaseEntity::GetGUID(), WorldLocation::GetMapId(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), m_homebind, m_homebindAreaId, PreparedStatementBase::setFloat(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt64(), and WorldLocation::WorldRelocate().
Referenced by Create(), Spell::EffectBind(), and spell_defender_of_azeroth_death_gate_selector::HandleDummy().
| void Player::SetHonorLevel | ( | uint8 | honorLevel | ) |
Definition at line 6873 of file Player.cpp.
References GetHonorLevel(), UF::PlayerData::HonorLevel, HonorLevelIncrease, m_playerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::SetUpdateFieldValue(), UpdateCriteria(), and UpdateHonorNextLevel().
Referenced by AddHonorXP().
Definition at line 7382 of file Player.cpp.
References ARENA_TEAM_ID, ARENA_TEAM_TYPE, and SetArenaTeamInfoField().
Referenced by ArenaTeam::AddMember().
|
inline |
Definition at line 1825 of file Player.h.
Referenced by WorldSession::HandlePlayerLogin().
| void Player::SetInGuild | ( | ObjectGuid::LowType | guildId | ) |
Definition at line 7362 of file Player.cpp.
References ObjectGuid::Empty, BaseEntity::GetGUID(), UF::UnitData::GuildGUID, Unit::m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), PLAYER_FLAGS_GUILD_LEVEL_ENABLED, RemovePlayerFlag(), sCharacterCache, SetPlayerFlag(), and BaseEntity::SetUpdateFieldValue().
Referenced by Guild::AddMember(), Guild::DeleteMember(), and WorldSession::HandlePlayerLogin().
| void Player::SetInventorySlotCount | ( | uint8 | slots | ) |
Definition at line 9770 of file Player.cpp.
References MailDraft::AddItem(), ASSERT, CharacterDatabase, GetInventorySlotCount(), GetItemByPos(), GetSession(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, LANG_NOT_EQUIPPED_ITEM, m_activePlayerData, BaseEntity::m_values, MAIL_CHECK_MASK_COPIED, MAIL_STATIONERY_GM, MAX_MAIL_ITEMS, UF::UpdateFieldHolder::ModifyValue(), UF::ActivePlayerData::NumBackpackSlots, SendDirectMessage(), MailDraft::SendMailTo(), and BaseEntity::SetUpdateFieldValue().
Referenced by Create(), LoadFromDB(), and UpdateInventorySlotCount().
| void Player::SetInviteForBattlegroundQueueType | ( | BattlegroundQueueTypeId | bgQueueTypeId, |
| uint32 | instanceId | ||
| ) |
Definition at line 25750 of file Player.cpp.
References Player::BgBattlegroundQueueID_Rec::invitedToInstance, m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by BattlegroundQueue::InviteGroupToBG(), and LoadFromDB().
|
inline |
Definition at line 1594 of file Player.h.
References UF::ActivePlayerData::InvSlots, and m_activePlayerData.
Referenced by _StoreItem(), AddItemToBuyBackSlot(), DestroyItem(), WorldSession::LogoutPlayer(), RemoveItem(), RemoveItemFromBuyBackSlot(), and VisualizeItem().
Definition at line 2839 of file Player.h.
References UF::ActivePlayerData::KnownTitles, and m_activePlayerData.
Referenced by titles_commandscript::HandleTitlesSetMaskCommand().
|
inline |
Definition at line 2772 of file Player.h.
Referenced by Pet::LoadPetFromDB().
|
inline |
Definition at line 2171 of file Player.h.
Referenced by _LoadGroup(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleSetRaidDifficultyOpcode(), and LoadFromDB().
|
inline |
Definition at line 2247 of file Player.h.
References UF::PlayerData::LootTargetGUID, and m_playerData.
Referenced by WorldSession::DoLootRelease(), and SendLoot().
|
inline |
Definition at line 1982 of file Player.h.
References UF::ActivePlayerData::LootSpecID, and m_activePlayerData.
Referenced by WorldSession::HandleSetLootSpecialization(), and LoadFromDB().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 28402 of file Player.cpp.
References Reference< TO, FROM, Derived >::link(), m_mapRef, and WorldObject::SetMap().
Referenced by Map::AddPlayerToMap(), Create(), WorldSession::HandleMoveWorldportAck(), and LoadFromDB().
| void Player::SetMercenaryForBattlegroundQueueType | ( | BattlegroundQueueTypeId | bgQueueTypeId, |
| bool | mercenary | ||
| ) |
Definition at line 25765 of file Player.cpp.
References m_bgBattlegroundQueueID, Player::BgBattlegroundQueueID_Rec::mercenary, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by LoadFromDB().
|
inline |
Definition at line 2202 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::ModDamageDonePercent.
| void Player::SetMoney | ( | uint64 | value | ) |
Definition at line 24826 of file Player.cpp.
References UF::ActivePlayerData::Coinage, GetSession(), m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), MoneyChanged(), MostMoneyOwned, WorldSession::PlayerLoading(), BaseEntity::SetUpdateFieldValue(), and UpdateCriteria().
Referenced by modify_commandscript::HandleModifyMoneyCommand(), LoadFromDB(), and ModifyMoney().
| void Player::SetMonthlyQuestStatus | ( | uint32 | quest_id | ) |
Definition at line 25526 of file Player.cpp.
References m_MonthlyQuestChanged, and m_monthlyquests.
Referenced by RewardQuest().
|
inline |
Definition at line 2097 of file Player.h.
Referenced by WorldSession::HandleCompleteMovie(), and SendMovieStart().
|
inline |
Definition at line 2105 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::MultiActionBars.
Referenced by WorldSession::HandleSetActionBarToggles(), and LoadFromDB().
|
inlineoverridevirtual |
Reimplemented from Unit.
Definition at line 1335 of file Player.h.
References m_playerData, and UF::PlayerData::NativeSex.
Referenced by Create(), WorldSession::HandleAlterAppearance(), modify_commandscript::HandleModifyGenderCommand(), and LoadFromDB().
|
inline |
Definition at line 1522 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::NoReagentCostMask.
Referenced by AuraEffect::HandleNoReagentUseAura(), and InitStatsForLevel().
|
inline |
Definition at line 2997 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::NumRespecs.
Referenced by Spell::EffectRespecAzeriteEmpoweredItem(), and LoadFromDB().
|
overridevirtual |
Reimplemented from Object.
Definition at line 1539 of file Player.cpp.
References DEFAULT_PLAYER_BOUNDING_RADIUS, DEFAULT_PLAYER_COMBAT_REACH, Unit::GetCollisionHeight(), BaseEntity::IsInWorld(), WorldPackets::Movement::Scale, SendMovementSetCollisionHeight(), Unit::SetBoundingRadius(), Unit::SetCombatReach(), and Object::SetObjectScale().
Referenced by Create(), InitStatsForLevel(), and LoadFromDB().
Definition at line 26711 of file Player.cpp.
References ASSERT, Reference< TO, FROM, Derived >::link(), m_originalGroup, GroupReference::setSubGroup(), and Reference< TO, FROM, Derived >::unlink().
Referenced by Group::AddMember(), Group::Disband(), RemoveFromBattlegroundOrBattlefieldRaid(), Group::RemoveMember(), and SetBattlegroundOrBattlefieldRaid().
|
inline |
Definition at line 1964 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::OverrideSpellsID.
Referenced by AuraEffect::HandleAuraOverrideSpells().
|
inline |
Definition at line 1986 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::OverrideZonePVPType.
Referenced by AuraEffect::HandleModOverrideZonePVPType().
| void Player::SetPartyType | ( | GroupCategory | category, |
| uint8 | type | ||
| ) |
Definition at line 26724 of file Player.cpp.
References ASSERT, m_playerData, BaseEntity::m_values, MAX_GROUP_CATEGORY, UF::UpdateFieldHolder::ModifyValue(), UF::PlayerData::PartyType, and BaseEntity::SetUpdateFieldValue().
Referenced by _LoadGroup(), Group::AddMember(), Group::Disband(), and Group::RemoveMember().
|
inline |
Definition at line 2805 of file Player.h.
Referenced by WorldSession::HandleOptOutOfLootOpcode().
Definition at line 20000 of file Player.cpp.
References _pendingBindId, and _pendingBindTimer.
Referenced by InstanceMap::AddPlayerToMap(), WorldSession::HandleInstanceLockResponse(), WorldSession::LogoutPlayer(), Player(), and Update().
| void Player::SetPersonalTabard | ( | uint32 | style, |
| uint32 | color, | ||
| uint32 | borderStyle, | ||
| uint32 | borderColor, | ||
| uint32 | backgroundColor | ||
| ) |
Definition at line 23058 of file Player.cpp.
References UF::CustomTabardInfo::BackgroundColor, UF::CustomTabardInfo::BorderColor, UF::CustomTabardInfo::BorderStyle, UF::CustomTabardInfo::EmblemColor, UF::CustomTabardInfo::EmblemStyle, m_playerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), UF::PlayerData::PersonalTabard, and BaseEntity::SetUpdateFieldValue().
Referenced by WorldSession::HandleSavePersonalEmblem(), and LoadFromDB().
| void Player::SetPetSlot | ( | uint32 | petNumber, |
| PetSaveMode | dstPetSlot | ||
| ) |
Definition at line 29602 of file Player.cpp.
References PetStable::ActivePets, WorldSession::AddTransactionCallback(), TransactionCallback::AfterComplete(), CanTameExoticPets(), CantControlExotic, CHAR_UPD_CHAR_PET_SLOT_BY_ID, CharacterDatabase, PetStable::CurrentPetIndex, DIFFICULTY_NONE, PetStable::GetCurrentActivePetIndex(), CreatureTemplate::GetDifficulty(), BaseEntity::GetGUID(), Pet::GetLoadPetInfo(), GetPet(), GetPetStable(), WorldSession::GetPlayer(), GetSession(), HUNTER_PET, Interacting, InternalError, IsActivePetSlot(), Unit::IsAlive(), IsStabledPetSlot(), CreatureTemplate::IsTameable(), NoPet, PET_SAVE_FIRST_ACTIVE_SLOT, PET_SAVE_FIRST_STABLE_SLOT, PET_SAVE_NOT_IN_SLOT, Unit::RemoveAurasWithInterruptFlags(), RemovePet(), WorldSession::SendPetStableResult(), PreparedStatementBase::setInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), sObjectMgr, and PetStable::StabledPets.
Referenced by WorldSession::HandleSetPetSlot().
|
inline |
Definition at line 2244 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::PetSpellPower.
|
inline |
Definition at line 2896 of file Player.h.
References flags, m_playerData, and UF::PlayerData::PlayerFlags.
Referenced by _LoadGroup(), Group::ChangeLeader(), Group::Create(), Spell::EffectEnableBattlePets(), AuraEffect::HandleAuraGhost(), OPvPCapturePointNA::HandleCustomSpell(), WorldSession::HandleDeclineGuildInvites(), WorldSession::HandleMovementOpcode(), WorldSession::HandleSetPvP(), WorldSession::HandleSetTaxiBenchmark(), WorldSession::HandleTogglePvP(), OnGossipSelect(), SetContestedPvP(), SetGameMaster(), SetInGuild(), RestMgr::SetRestFlag(), SetWarModeDesired(), ToggleAFK(), ToggleDND(), and UpdateWarModeAuras().
|
inline |
Definition at line 2901 of file Player.h.
References flags, m_playerData, and UF::PlayerData::PlayerFlagsEx.
Referenced by Battleground::AddPlayer(), and WorldSession::HandleDeclineNeighborhoodInvites().
|
inline |
Definition at line 2992 of file Player.h.
References flags, UF::ActivePlayerData::LocalFlags, and m_activePlayerData.
Referenced by WorldSession::ComputeNewClockDelta(), AuraEffect::HandleAllowUsingGameobjectsWhileMounted(), AuraEffect::HandleAuraTrackStealthed(), WorldSession::HandlePlayerLogin(), AuraEffect::HandlePreventResurrection(), WorldSession::HandleTransmogOutfitUpdateSlots(), KillPlayer(), LoadCorpse(), LoadFromDB(), SetAccountSecured(), and SetWarModeLocal().
|
inline |
Definition at line 1994 of file Player.h.
References UF::PlayerData::CurrentSpecID, and m_playerData.
Referenced by ActivateTalentGroup(), Create(), LoadFromDB(), and ResetTalentSpecialization().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 24049 of file Player.cpp.
References Unit::m_Controlled, and Unit::SetPvP().
Referenced by BattlefieldTB::OnPlayerJoinWar(), SetWarModeDesired(), and UpdatePvP().
|
inline |
Definition at line 1303 of file Player.h.
References PLAYER_EXTRA_PVP_DEATH.
Referenced by CreateCorpse().
|
inline |
Definition at line 2934 of file Player.h.
References m_playerData, and UF::PlayerData::PvpTitle.
| void Player::SetQuestCompletedBit | ( | uint32 | questId, |
| bool | completed | ||
| ) |
Definition at line 16498 of file Player.cpp.
References UF::ActivePlayerData::BitVectors, m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), PLAYER_DATA_FLAG_CHARACTER_QUEST_COMPLETED_INDEX, QUESTS_COMPLETED_BITS_PER_BLOCK, BaseEntity::RemoveUpdateFieldFlagValue(), sDB2Manager, BaseEntity::SetUpdateFieldFlagValue(), UI64LIT, UF::BitVector::Values, and UF::BitVectors::Values.
Referenced by _LoadDailyQuestStatus(), _LoadMonthlyQuestStatus(), _LoadQuestStatusRewarded(), _LoadSeasonalQuestStatus(), _LoadWeeklyQuestStatus(), DailyReset(), RemoveRewardedQuest(), ResetMonthlyQuestStatus(), ResetSeasonalQuestStatus(), ResetWeeklyQuestStatus(), RewardQuest(), and SetRewardedQuest().
| void Player::SetQuestObjectiveData | ( | QuestObjective const & | objective, |
| int32 | data | ||
| ) |
Definition at line 17051 of file Player.cpp.
References BaseEntity::GetGUID(), WorldObject::GetName(), GetQuestSlotObjectiveData(), QuestObjective::IsStoringFlag(), m_QuestStatus, m_QuestStatusSave, MAX_QUEST_COUNTS, MAX_QUEST_LOG_SIZE, QUEST_DEFAULT_SAVE_TYPE, QuestObjective::QuestID, RemoveQuestSlotObjectiveFlag(), SetQuestSlotCounter(), SetQuestSlotObjectiveFlag(), QuestStatusData::Slot, sObjectMgr, sScriptMgr, QuestObjective::StorageIndex, TC_LOG_ERROR, and Position::ToString().
Referenced by AdjustQuestObjectiveProgress(), WorldSession::HandleAreaTriggerOpcode(), ItemRemovedQuestCheck(), and UpdateQuestObjectiveProgress().
|
inline |
Definition at line 1821 of file Player.h.
Referenced by WorldSession::HandlePushQuestToParty(), and WorldSession::HandleQuestgiverAcceptQuestOpcode().
Definition at line 16420 of file Player.cpp.
References UF::QuestLog::EndTime, m_playerData, BaseEntity::m_values, MAX_QUEST_COUNTS, UF::UpdateFieldHolder::ModifyValue(), UF::QuestLog::ObjectiveFlags, UF::QuestLog::ObjectiveProgress, UF::QuestLog::QuestID, UF::PlayerData::QuestLog, UF::PlayerData::QuestLogQuestIdToIndex, BaseEntity::RemoveMapUpdateFieldValue(), BaseEntity::SetUpdateFieldValue(), and UF::QuestLog::StateFlags.
Referenced by _LoadQuestStatus(), AddQuest(), and RemoveActiveQuest().
Definition at line 16439 of file Player.cpp.
References m_playerData, BaseEntity::m_values, MAX_QUEST_COUNTS, UF::UpdateFieldHolder::ModifyValue(), UF::QuestLog::ObjectiveProgress, UF::PlayerData::QuestLog, and BaseEntity::SetUpdateFieldValue().
Referenced by _LoadQuestStatusObjectives(), and SetQuestObjectiveData().
| void Player::SetQuestSlotEndTime | ( | uint16 | slot, |
| time_t | endTime | ||
| ) |
Definition at line 16463 of file Player.cpp.
References UF::QuestLog::EndTime, m_playerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), UF::PlayerData::QuestLog, and BaseEntity::SetUpdateFieldValue().
Referenced by _LoadQuestStatus(), and AddQuest().
Definition at line 16470 of file Player.cpp.
References m_playerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), UF::QuestLog::ObjectiveFlags, UF::PlayerData::QuestLog, and BaseEntity::SetUpdateFieldFlagValue().
Referenced by _LoadQuestStatusObjectives(), and SetQuestObjectiveData().
Definition at line 16449 of file Player.cpp.
References m_playerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), UF::PlayerData::QuestLog, BaseEntity::SetUpdateFieldFlagValue(), and UF::QuestLog::StateFlags.
Referenced by _LoadQuestStatus(), CompleteQuest(), and FailQuest().
| void Player::SetQuestStatus | ( | uint32 | questId, |
| QuestStatus | status, | ||
| bool | update = true |
||
| ) |
Definition at line 15954 of file Player.cpp.
References m_QuestStatus, m_QuestStatusSave, QUEST_DEFAULT_SAVE_TYPE, SendQuestUpdate(), sObjectMgr, and sScriptMgr.
Referenced by CompleteQuest(), FailQuest(), and IncompleteQuest().
|
inline |
Definition at line 2170 of file Player.h.
Referenced by _LoadGroup(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleSetRaidDifficultyOpcode(), and LoadFromDB().
| void Player::SetRandomWinner | ( | bool | isWinner | ) |
Definition at line 29956 of file Player.cpp.
References CHAR_INS_BATTLEGROUND_RANDOM, CharacterDatabase, BaseEntity::GetGUID(), m_IsBGRandomWinner, and PreparedStatementBase::setUInt64().
Referenced by Battleground::EndBattleground().
Definition at line 2756 of file Player.h.
Referenced by MapManager::CreateMap().
|
inline |
Definition at line 1887 of file Player.h.
Referenced by AuraEffect::HandleAuraTransform().
| void Player::SetRegularAttackTime | ( | ) |
Definition at line 5382 of file Player.cpp.
References BASE_ATTACK_TIME, ItemTemplate::GetDelay(), Item::GetTemplate(), GetWeaponForAttack(), Item::IsBroken(), MAX_ATTACK, and Unit::SetBaseAttackTime().
Referenced by InitDataForForm().
Definition at line 29484 of file Player.cpp.
References GetReputationMgr(), ReputationMgr::SetReputation(), and sFactionStore.
|
inline |
Definition at line 3006 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::RequiredMountCapabilityFlags.
Referenced by AuraEffect::HandleModRequiredMountCapabilityFlags().
|
inline |
Definition at line 2876 of file Player.h.
References m_activePlayerData, UF::ActivePlayerData::RestInfo, and UF::RestInfo::StateID.
Referenced by Create(), RestMgr::LoadRestBonus(), and RestMgr::SetRestBonus().
Definition at line 2883 of file Player.h.
References m_activePlayerData, UF::ActivePlayerData::RestInfo, and UF::RestInfo::Threshold.
Referenced by RestMgr::LoadRestBonus(), and RestMgr::SetRestBonus().
| void Player::SetResurrectRequestData | ( | WorldObject const * | caster, |
| uint32 | health, | ||
| uint32 | mana, | ||
| uint32 | appliedAura | ||
| ) |
Definition at line 24070 of file Player.cpp.
References _resurrectionData, ASSERT, BaseEntity::GetGUID(), and IsResurrectRequested().
Referenced by Spell::EffectResurrect(), Spell::EffectResurrectNew(), and Spell::EffectResurrectWithAura().
| void Player::SetRewardedQuest | ( | uint32 | quest_id | ) |
Definition at line 15306 of file Player.cpp.
References m_RewardedQuests, m_RewardedQuestsSave, QUEST_DEFAULT_SAVE_TYPE, and SetQuestCompletedBit().
Referenced by RewardQuest(), and SkipQuests().
Definition at line 27063 of file Player.cpp.
References Unit::GetMaxPower(), Unit::GetPower(), m_runes, MAX_RUNES, POWER_RUNES, and Unit::SetPower().
Referenced by InitRunes(), LoadFromDB(), Spell::RefundRunePower(), RegenerateAll(), and Spell::TakeRunePower().
| void Player::SetSeasonalQuestStatus | ( | uint32 | quest_id | ) |
Definition at line 25516 of file Player.cpp.
References Quest::GetEventIdForQuest(), GameTime::GetGameTime(), m_SeasonalQuestChanged, m_seasonalquests, and sObjectMgr.
Referenced by RewardQuest().
|
inline |
Definition at line 2658 of file Player.h.
Referenced by WorldSession::HandleFarSightOpcode(), and SetViewpoint().
|
inline |
Used for serverside target changes, does not apply to players.
Definition at line 1906 of file Player.h.
References Unit::m_unitData, and UF::UnitData::Target.
Referenced by WorldSession::HandleSetSelectionOpcode(), and TeleportTo().
Definition at line 5654 of file Player.cpp.
References AchieveSkillStep, AURA_EFFECT_HANDLE_SKILL, CanStoreItem(), EQUIP_ERR_OK, ERR_INV_FULL, FindEmptyProfessionSlotFor(), Unit::GetAuraEffectsByType(), Unit::GetClass(), BaseEntity::GetGUID(), GetItemByPos(), WorldObject::GetName(), GetProfessionSlotFor(), GetPureSkillValue(), Unit::GetRace(), GetSkillLineIdByPos(), GetSkillRankByPos(), GetSkillStep(), HasSkill(), INVENTORY_SLOT_BAG_0, LearnSkillRewardedSpells(), m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), mSkillStatus, NULL_BAG, NULL_SLOT, SkillLineEntry::ParentSkillLineID, SkillLineEntry::ParentTierIndex, PLAYER_MAX_SKILLS, PROFESSION_SLOT_MAX_COUNT, PROFESSION_SLOT_PROFESSION1_TOOL, UF::ActivePlayerData::ProfessionSkillLine, RemoveItem(), RemoveSpell(), sDB2Manager, SendDirectMessage(), SetSkill(), SetSkillLineId(), SetSkillMaxRank(), SetSkillPermBonus(), SetSkillRank(), SetSkillStartingRank(), SetSkillStep(), SetSkillTempBonus(), BaseEntity::SetUpdateFieldValue(), SKILL_CHANGED, SKILL_DELETED, SKILL_NEW, SKILL_RIDING, SKILL_UNCHANGED, SkillRaised, sObjectMgr, SPELL_AURA_MOD_SKILL, SPELL_AURA_MOD_SKILL_2, SPELL_AURA_MOD_SKILL_TALENT, sSkillLineStore, sSpellMgr, StoreItem(), TC_LOG_ERROR, Position::ToString(), UpdateCriteria(), Unit::UpdateMountCapability(), and UpdateSkillEnchantments().
Referenced by _LoadSkills(), AddSpell(), Spell::EffectLearnSkill(), Spell::EffectSkill(), learn_commandscript::HandleLearnAllRecipesCommand(), misc_commandscript::HandleSetSkillCommand(), WorldSession::HandleUnlearnSkillOpcode(), LearnDefaultSkill(), RemoveSpell(), and SetSkill().
Definition at line 2366 of file Player.h.
References m_activePlayerData, UF::ActivePlayerData::Skill, and UF::SkillInfo::SkillLineID.
Referenced by _LoadSkills(), InitializeSkillFields(), and SetSkill().
Definition at line 2374 of file Player.h.
References m_activePlayerData, UF::ActivePlayerData::Skill, and UF::SkillInfo::SkillMaxRank.
Referenced by _LoadSkills(), SetSkill(), and UpdateSkillsForLevel().
Definition at line 2378 of file Player.h.
References m_activePlayerData, UF::ActivePlayerData::Skill, and UF::SkillInfo::SkillPermBonus.
Referenced by _LoadSkills(), ModifySkillBonus(), and SetSkill().
Definition at line 2370 of file Player.h.
References m_activePlayerData, UF::ActivePlayerData::Skill, and UF::SkillInfo::SkillRank.
Referenced by _LoadSkills(), SetSkill(), UpdateSkillPro(), and UpdateSkillsForLevel().
Definition at line 2372 of file Player.h.
References m_activePlayerData, UF::ActivePlayerData::Skill, and UF::SkillInfo::SkillStartingRank.
Referenced by _LoadSkills(), InitializeSkillFields(), and SetSkill().
Definition at line 2368 of file Player.h.
References m_activePlayerData, UF::ActivePlayerData::Skill, and UF::SkillInfo::SkillStep.
Referenced by _LoadSkills(), and SetSkill().
Definition at line 2376 of file Player.h.
References m_activePlayerData, UF::ActivePlayerData::Skill, and UF::SkillInfo::SkillTempBonus.
Referenced by _LoadSkills(), ModifySkillBonus(), and SetSkill().
| void Player::SetSpellFavorite | ( | uint32 | spellId, |
| bool | favorite | ||
| ) |
Definition at line 3349 of file Player.cpp.
References m_spells, PLAYERSPELL_CHANGED, and PLAYERSPELL_UNCHANGED.
Referenced by WorldSession::HandleTradeSkillSetFavorite().
| void Player::SetSpellModTakingSpell | ( | Spell * | spell, |
| bool | apply | ||
| ) |
Definition at line 22967 of file Player.cpp.
References m_spellModTakingSpell.
Referenced by Spell::_cast(), Spell::cast(), Spell::handle_delayed(), and Aura::UpdateOwner().
| void Player::SetStableMaster | ( | ObjectGuid | stableMaster | ) |
Definition at line 29799 of file Player.cpp.
References m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), UF::ActivePlayerData::PetStable, BaseEntity::SetUpdateFieldValue(), and UF::StableInfo::StableMaster.
Referenced by AuraEffect::HandleAuraOpenStable(), WorldSession::HandleCloseInteraction(), WorldSession::HandleRequestStabledPets(), and OnGossipSelect().
|
inline |
Definition at line 2980 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::SummonedBattlePetGUID.
Referenced by SetBattlePetData().
|
inline |
Definition at line 1990 of file Player.h.
Referenced by IncreaseResetTalentsCostAndCounters(), and LoadFromDB().
|
inline |
Definition at line 1992 of file Player.h.
Referenced by IncreaseResetTalentsCostAndCounters(), and LoadFromDB().
|
inlineoverridevirtual |
|
inline |
Definition at line 1300 of file Player.h.
References PLAYER_EXTRA_TAXICHEAT.
Referenced by WorldSession::HandlePlayerLogin(), cheat_commandscript::HandleTaxiCheatCommand(), and WorldSession::SendTaxiMenu().
|
inline |
Definition at line 2382 of file Player.h.
Referenced by WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandleSuspendTokenResponse(), TeleportTo(), and Update().
|
inline |
Definition at line 2721 of file Player.h.
Referenced by Pet::LoadPetFromDB().
| void Player::SetTitle | ( | CharTitlesEntry const * | title, |
| bool | lost = false |
||
| ) |
Definition at line 27021 of file Player.cpp.
References HasTitle, WorldPackets::Character::TitleEarned::Index, UF::ActivePlayerData::KnownTitles, m_activePlayerData, BaseEntity::m_values, CharTitlesEntry::MaskID, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::RemoveUpdateFieldFlagValue(), SendDirectMessage(), BaseEntity::SetUpdateFieldFlagValue(), SMSG_TITLE_EARNED, SMSG_TITLE_LOST, UI64LIT, and WorldPackets::Character::TitleEarned::Write().
Referenced by _LoadQuestStatusRewarded(), PlayerAchievementMgr::CompletedAchievement(), titles_commandscript::HandleTitlesAddCommand(), titles_commandscript::HandleTitlesCurrentCommand(), titles_commandscript::HandleTitlesRemoveCommand(), PlayerAchievementMgr::LoadFromDB(), RewardPlayerWithRewardPack(), and RewardQuest().
|
inline |
Definition at line 2982 of file Player.h.
References flags, m_activePlayerData, and UF::ActivePlayerData::TrackCreatureMask.
Referenced by AuraEffect::HandleAuraTrackCreatures().
| void Player::SetTraitConfigUseSharedActionBars | ( | int32 | traitConfigId, |
| bool | usesSharedActionBars, | ||
| bool | isLastSelectedSavedConfig | ||
| ) |
Definition at line 29434 of file Player.cpp.
References ACTIONBUTTON_DELETED, ACTIONBUTTON_NEW, ActiveForSpec, AsUnderlyingType(), CHAR_DEL_CHAR_ACTION_BY_TRAIT_CONFIG, CharacterDatabase, Combat, UF::TraitConfig::CombatConfigFlags, BaseEntity::GetGUID(), EnumFlag< T >::HasFlag(), m_actionButtons, m_activePlayerData, m_traitConfigStates, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), None, PLAYERSPELL_CHANGED, BaseEntity::RemoveUpdateFieldFlagValue(), PreparedStatementBase::setInt32(), PreparedStatementBase::setUInt64(), BaseEntity::SetUpdateFieldFlagValue(), SharedActionBars, StartLoadingActionButtons(), UF::ActivePlayerData::TraitConfigs, and UF::TraitConfig::Type.
Referenced by WorldSession::HandleClassTalentsSetUsesSharedActionBars().
| void Player::SetTraitConfigUseStarterBuild | ( | int32 | traitConfigId, |
| bool | useStarterBuild | ||
| ) |
Definition at line 29410 of file Player.cpp.
References ActiveForSpec, AsUnderlyingType(), Combat, UF::TraitConfig::CombatConfigFlags, EnumFlag< T >::HasFlag(), m_activePlayerData, m_traitConfigStates, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), None, PLAYERSPELL_CHANGED, BaseEntity::RemoveUpdateFieldFlagValue(), BaseEntity::SetUpdateFieldFlagValue(), StarterBuild, UF::ActivePlayerData::TraitConfigs, and UF::TraitConfig::Type.
Referenced by WorldSession::HandleClassTalentsSetStarterBuildActive(), and UpdateTraitConfig().
|
inline |
Definition at line 3004 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::TransportServerTime.
Referenced by WorldSession::ComputeNewClockDelta(), and WorldSession::HandlePlayerLogin().
|
inline |
Definition at line 2985 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::VersatilityBonus.
| void Player::SetViewpoint | ( | WorldObject * | target, |
| bool | apply | ||
| ) |
Definition at line 26877 of file Player.cpp.
References ObjectGuid::Empty, UF::ActivePlayerData::FarsightObject, Object::GetEntry(), BaseEntity::GetGUID(), WorldObject::GetName(), BaseEntity::GetTypeId(), Unit::GetVehicleBase(), m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), SetSeer(), BaseEntity::SetUpdateFieldValue(), TC_LOG_DEBUG, TC_LOG_FATAL, Position::ToString(), Object::ToUnit(), and UpdateVisibilityOf().
Referenced by CinematicMgr::EndCinematic(), AuraEffect::HandleBindSight(), CinematicMgr::NextCinematicCamera(), RemoveFromWorld(), and SetClientControl().
|
inline |
Definition at line 2936 of file Player.h.
References m_playerData, and UF::PlayerData::VirtualPlayerRealm.
Referenced by WorldSession::HandlePlayerLogin().
| void Player::SetVisibleForcedReaction | ( | uint32 | factionId, |
| ReputationRank | rank | ||
| ) |
Definition at line 6510 of file Player.cpp.
References UF::ZonePlayerForcedReaction::FactionID, UF::PlayerData::ForcedReactions, m_playerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), UF::ZonePlayerForcedReaction::Reaction, and BaseEntity::SetUpdateFieldValue().
Referenced by ReputationMgr::ApplyForceReaction().
Definition at line 11748 of file Player.cpp.
References UF::TransmogOutfitSlotData::AppearanceDisplayType, ArtifactSpecFour, ArtifactSpecOne, Assigned, AsUnderlyingType(), CanTitanGrip(), UF::VisibleItem::ConditionalItemAppearanceID, Default, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, Equipped, FuryTwoHandedWeapon, GetPrimarySpecializationEntry(), TransmogOutfitSlotInfoEntry::GetSlot(), TransmogMgr::GetSlotAndOption(), Item::GetTemplate(), Item::GetVisibleAppearanceModId(), Item::GetVisibleEntry(), Item::GetVisibleItemVisual(), Item::GetVisibleModifiedAppearanceId(), Item::GetVisibleSecondaryModifiedAppearanceId(), ItemTemplate::GetWeaponTransmogOutfitSlotOption(), UF::VisibleItem::HasIllusion, UF::VisibleItem::HasTransmog, Hidden, TransmogHolidayEntry::ID, UF::TransmogOutfitSlotData::IllusionDisplayType, IsHolidayActive(), UF::VisibleItem::ItemAppearanceModID, UF::VisibleItem::ItemID, UF::VisibleItem::ItemModifiedAppearanceID, UF::TransmogOutfitSlotData::ItemModifiedAppearanceID, UF::VisibleItem::ItemVisual, m_activePlayerData, m_playerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), None, ChrSpecializationEntry::OrderIndex, TransmogHolidayEntry::RequiredTransmogHoliday, UF::VisibleItem::SecondaryItemModifiedAppearanceID, TransmogOutfitSlotOptionEntry::SecondaryOptionID, TransmogOutfitSlotInfoEntry::SecondarySlotID, BaseEntity::SetUpdateFieldValue(), UF::VisibleItem::SheatheCategory, UF::TransmogOutfitSlotData::SheatheCategory, sItemModifiedAppearanceStore, TransmogMgr::TransmogOutfitSlotAndOptionInfo::Slot, TransmogMgr::TransmogOutfitSlotAndOptionInfo::SlotIndex, TransmogMgr::TransmogOutfitSlotAndOptionInfo::SlotOption, UF::TransmogOutfitSlotData::SpellItemEnchantmentID, sSpellItemEnchantmentStore, UF::TransmogOutfitMetadata::StampedOptionMainHand, UF::TransmogOutfitMetadata::StampedOptionOffHand, sTransmogHolidayStore, sTransmogOutfitSlotInfoStore, sTransmogOutfitSlotOptionInfoStore, UF::ActivePlayerData::TransmogMetadata, UF::VisibleItem::TransmogSlotOption, TwoHandedWeapon, and UF::PlayerData::VisibleItems.
Referenced by ActivateTalentGroup(), DestroyItem(), Spell::EffectApplyEnchantIllusion(), EquipTransmogOutfit(), WorldSession::HandleArtifactSetAppearance(), WorldSession::HandleTransmogrifyItems(), RemoveItem(), and VisualizeItem().
| void Player::SetWarModeDesired | ( | bool | enabled | ) |
Definition at line 30947 of file Player.cpp.
References CanEnableWarModeInArea(), HasAura, HasPlayerFlag(), Unit::IsInCombat(), IsWarModeDesired(), PLAYER_FLAGS_RESTING, PLAYER_FLAGS_WAR_MODE_DESIRED, RemovePlayerFlag(), SetPlayerFlag(), SetPvP(), SPELL_PVP_RULES_ENABLED, and UpdateWarModeAuras().
Referenced by WorldSession::HandleSetWarMode().
| void Player::SetWarModeLocal | ( | bool | enabled | ) |
Definition at line 30975 of file Player.cpp.
References PLAYER_LOCAL_FLAG_WAR_MODE, RemovePlayerLocalFlag(), and SetPlayerLocalFlag().
Referenced by UpdateWarModeAuras().
|
inline |
Definition at line 2999 of file Player.h.
References m_activePlayerData, and UF::ActivePlayerData::WatchedFactionIndex.
Referenced by Create(), reset_commandscript::HandleResetStatsOrLevelHelper(), WorldSession::HandleSetWatchedFactionOpcode(), and LoadFromDB().
| void Player::SetWeeklyQuestStatus | ( | uint32 | quest_id | ) |
Definition at line 25510 of file Player.cpp.
References m_WeeklyQuestChanged, and m_weeklyquests.
Referenced by RewardQuest().
| void Player::SetXP | ( | uint32 | xp | ) |
Definition at line 2097 of file Player.cpp.
References Unit::GetLevel(), m_activePlayerData, BaseEntity::m_values, MAX_LEVEL, UF::UpdateFieldHolder::ModifyValue(), UF::ActivePlayerData::ScalingPlayerLevelDelta, BaseEntity::SetUpdateFieldValue(), and UF::ActivePlayerData::XP.
Referenced by GiveXP(), group_commandscript::HandleGroupLevelCommand(), reset_commandscript::HandleResetLevelCommand(), and LoadFromDB().
| void Player::SkipQuests | ( | std::span< uint32 const > | questIds | ) |
Definition at line 16236 of file Player.cpp.
References AbandonQuest(), Quest::GetLimitTime(), GetQuestStatus(), Quest::HasFlag(), HasPvPForcingQuest(), PvPInfo::IsHostile, PvPInfo::IsInHostileArea, PhasingHandler::OnConditionChange(), pvpInfo, QUEST_FLAGS_FLAGS_PVP, QUEST_FLAGS_UPDATE_PHASESHIFT, QUEST_STATUS_NONE, QUEST_STATUS_REWARDED, RemoveActiveQuest(), RemoveTimedQuest(), SaveToDB(), SendQuestUpdate(), SetRewardedQuest(), sObjectMgr, sScriptMgr, TakeQuestSourceItem(), UpdateObjectVisibility(), UpdatePvPState(), and UpdateVisibleObjectInteractions().
Referenced by QuestMgr::SkipCampaignForPlayer(), and QuestMgr::SkipQuestLineForPlayer().
| void Player::SpawnCorpseBones | ( | bool | triggerSave = true | ) |
Definition at line 4453 of file Player.cpp.
References _corpseLocation, BaseEntity::GetGUID(), WorldObject::GetMap(), GetSession(), MAPID_INVALID, SaveToDB(), and WorldLocation::WorldRelocate().
Referenced by CreateCorpse(), Spell::EffectSelfResurrect(), Battleground::EndBattleground(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleBattleFieldPortOpcode(), group_commandscript::HandleGroupReviveCommand(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandleReclaimCorpse(), misc_commandscript::HandleReviveCommand(), LoadCorpse(), Battleground::RemovePlayerAtLeave(), RepopAtGraveyard(), ResurrectUsingRequestDataImpl(), and WorldSession::SendSpiritResurrect().
If trading
If current item is in trade window (only possible with packet spoofing - silent return)
Definition at line 12451 of file Player.cpp.
References AutoUnequipOffhandIfNeed(), BankItem(), CanBankItem(), CanEquipItem(), CanStoreItem(), Item::CloneItem(), EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_OK, EQUIP_ERR_SPLIT_FAILED, EQUIP_ERR_TOO_FEW_TO_SPLIT, EquipItem, Item::GetCount(), Object::GetEntry(), BaseEntity::GetGUID(), GetItemByPos(), WorldObject::GetName(), GetTradeData(), IsBankPos(), IsEquipmentPos(), IsInventoryPos(), BaseEntity::IsInWorld(), ITEM_CHANGED, Item::m_lootGenerated, SendEquipError(), BaseEntity::SendUpdateToPlayer(), Item::SetCount(), Item::SetState(), StoreItem(), TC_LOG_DEBUG, Position::ToString(), and TRADE_SLOT_INVALID.
Referenced by WorldSession::HandleSplitItemOpcode().
| void Player::StartCriteria | ( | CriteriaStartEvent | startEvent, |
| uint32 | entry, | ||
| Milliseconds | timeLost = Milliseconds::zero() |
||
| ) |
Definition at line 27521 of file Player.cpp.
References m_achievementMgr.
Referenced by AddQuest(), Arena::EndBattleground(), GiveLevel(), KilledMonsterCredit(), KilledPlayerCredit(), battleground_twin_peaks::OnFlagStateChange(), battleground_warsong_gulch::OnFlagStateChange(), RewardQuest(), and GameEvents::TriggerForPlayer().
| void Player::StartLoadingActionButtons | ( | std::function< void()> && | callback = nullptr | ) |
Definition at line 29017 of file Player.cpp.
References AsyncCallbackProcessor< T >::AddCallback(), CHAR_SEL_CHARACTER_ACTIONS_SPEC, CharacterDatabase, GetActiveTalentGroup(), ObjectGuid::GetCounter(), BaseEntity::GetGUID(), WorldSession::GetPlayer(), WorldSession::GetQueryProcessor(), GetSession(), GetTraitConfig(), UF::TraitConfig::LocalIdentifier, m_activePlayerData, PreparedStatementBase::setInt32(), PreparedStatementBase::setUInt64(), and PreparedStatementBase::setUInt8().
Referenced by ActivateTalentGroup(), LoadFromDB(), SetTraitConfigUseSharedActionBars(), and UpdateTraitConfig().
| void Player::StartTaxiMovement | ( | uint32 | mountDisplayId, |
| uint32 | path, | ||
| uint32 | pathNode, | ||
| Optional< float > | speed, | ||
| Scripting::v2::ActionResultSetter< MovementStopReason > && | scriptResult | ||
| ) |
Definition at line 23368 of file Player.cpp.
References Unit::GetMotionMaster(), Interacting, Mount, MotionMaster::MoveTaxiFlight(), and Unit::RemoveAurasWithInterruptFlags().
Referenced by ActivateTaxiPathTo(), and ContinueTaxiFlight().
| void Player::StopCastingBindSight | ( | ) | const |
Definition at line 26867 of file Player.cpp.
References BaseEntity::GetGUID(), GetViewpoint(), SPELL_AURA_BIND_SIGHT, SPELL_AURA_MOD_POSSESS, SPELL_AURA_MOD_POSSESS_PET, and Object::ToUnit().
Referenced by ActivateTaxiPathTo(), VehicleJoinEvent::Execute(), misc_commandscript::HandleUnbindSightCommand(), RemoveFromWorld(), and Unit::SetCharmedBy().
| void Player::StopCastingCharm | ( | ) |
Definition at line 22216 of file Player.cpp.
References Unit::_ExitVehicle(), ABORT, Unit::ExitVehicle(), Unit::GetCharmed(), Unit::GetCharmedGUID(), Unit::GetCharmerGUID(), GetDebugInfo(), Unit::GetDebugInfo(), BaseEntity::GetGUID(), WorldObject::GetName(), BaseEntity::GetTypeId(), Unit::HasAuraTypeWithCaster(), Unit::HasUnitTypeMask(), ObjectGuid::IsEmpty(), Unit::IsVehicle(), Unit::RemoveCharmAuras(), Unit::SetCharm(), SPELL_AURA_CONTROL_VEHICLE, TC_LOG_FATAL, Object::ToCreature(), ObjectGuid::ToString(), Position::ToString(), TYPEID_UNIT, and UNIT_MASK_PUPPET.
Referenced by ActivateTaxiPathTo(), VehicleJoinEvent::Execute(), WorldSession::HandlePetActionHelper(), Unit::RemoveAllControlled(), RemoveFromWorld(), and Unit::SetCharmedBy().
|
protected |
Definition at line 607 of file Player.cpp.
References SendDirectMessage().
Referenced by UpdateMirrorTimers().
| Item * Player::StoreItem | ( | ItemPosCountVec const & | pos, |
| Item * | pItem, | ||
| bool | update | ||
| ) |
Definition at line 11365 of file Player.cpp.
References _StoreItem(), and AutoUnequipChildItem().
Referenced by _LoadInventory(), AutoUnequipChildItem(), AutoUnequipOffhandIfNeed(), BankItem(), Create(), Spell::EffectSummonChangeItem(), EquipChildItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleBuybackItem(), WorldSession::HandleMailCreateTextItem(), WorldSession::HandleUseEquipmentSet(), MoveItemToInventory(), SetSkill(), SplitItem(), StoreNewItem(), and SwapItem().
| void Player::StoreLootItem | ( | ObjectGuid | lootWorldObjectGuid, |
| uint8 | lootSlot, | ||
| Loot * | loot, | ||
| AELootResult * | aeResult = nullptr |
||
| ) |
Definition at line 27131 of file Player.cpp.
References AELootResult::Add(), ApplyItemLootedSpell(), CanStoreNewItem(), LootItem::context, LootItem::count, Currency, EQUIP_ERR_LOOT_GONE, EQUIP_ERR_OK, LootItem::freeforall, LootItem::GetAllowedLooters(), ObjectGuid::GetCounter(), Loot::GetDungeonEncounterId(), BaseEntity::GetGUID(), Loot::GetGUID(), GetGuild(), Item::GetItemLevel(), GetLootByType, GetLootTypeForClient(), WorldObject::GetMap(), Loot::GetOwnerGUID(), Item::GetQuality(), GUILD_NEWS_ITEM_LOOTED, LootItem::HasAllowedLooter(), LootItem::is_blocked, LootItem::is_looted, NotNormalLootItem::is_looted, ObjectGuid::IsEmpty(), Item, ITEM_QUALITY_EPIC, LootItem::itemid, Loot, LOOT_ITEM, Loot::loot_type, LootAnyItem, LootItem, Loot::LootItemInSlot(), LootItem::LootListId, MinNewsItemLevel, ModifyCurrency(), Loot::NotifyItemRemoved(), NULL_BAG, NULL_SLOT, LootItem::randomBonusListId, LootItem::rollWinnerGUID, SendEquipError(), SendLootReleaseAll(), SendNewItem(), SendNotifyLootItemRemoved(), sLootItemStorage, sObjectMgr, StoreNewItem(), TrackingQuest, LootItem::type, Loot::unlootedCount, and UpdateCriteria().
Referenced by WorldSession::HandleAutostoreLootItemOpcode().
| Item * Player::StoreNewItem | ( | ItemPosCountVec const & | pos, |
| uint32 | itemId, | ||
| bool | update, | ||
| ItemRandomBonusListId | randomBonusListId = 0, |
||
| GuidSet const & | allowedLooters = GuidSet(), |
||
| ItemContext | context = ItemContext::NONE, |
||
| std::vector< int32 > const * | bonusListIDs = nullptr, |
||
| bool | addToCollection = true |
||
| ) |
Definition at line 11288 of file Player.cpp.
References AcquireItem, AddTradeableItem(), BonusData::CannotTradeBindOnPickup, CanStoreItem_InInventorySlots(), CHAR_INS_ITEM_BOP_TRADE, CharacterDatabase, CHILD_EQUIPMENT_SLOT_END, CHILD_EQUIPMENT_SLOT_START, Item::CreateItem(), Item::GetBonus(), WorldSession::GetCollectionMgr(), ObjectGuid::GetCounter(), BaseEntity::GetGUID(), ItemTemplate::GetInventoryType(), Unit::GetLevel(), ItemTemplate::GetMaxStackSize(), GetSession(), Item::GetTemplate(), GetTotalPlayedTime(), ItemTemplate::HasFlag(), INVTYPE_NON_EQUIP, Item::IsSoulBound(), ITEM_FIELD_FLAG_CHILD, ITEM_FIELD_FLAG_NEW_ITEM, ITEM_FLAG2_CAN_TRADE_BIND_ON_ACQUIRE, ItemAddedQuestCheck(), NULL_BAG, NULL_SLOT, ObtainAnyItem, CollectionMgr::OnItemAdded(), sDB2Manager, Item::SetBonuses(), Item::SetChildItem(), Item::SetCreatePlayedTime(), Item::SetFixedLevel(), Item::SetItemFlag(), Item::SetItemRandomBonusList(), Item::SetSoulboundTradeable(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt64(), sObjectMgr, StoreItem(), StoreNewItem(), UpdateAverageItemLevelTotal(), and UpdateCriteria().
Referenced by _StoreOrEquipNewItem(), AddItem(), Loot::AutoStore(), BattlePets::BattlePetMgr::CageBattlePet(), quest_commandscript::CompleteObjective(), Spell::DoCreateItem(), GiveQuestSourceItem(), misc_commandscript::HandleAddItemCommandHelper(), misc_commandscript::HandleAddItemSetCommand(), AuraEffect::HandleChannelDeathItem(), OPvPCapturePointNA::HandleCustomSpell(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandlePetitionBuy(), item_mysterious_egg::OnExpire(), item_disgusting_jar::OnExpire(), npc_tyrande_whisperwind::npc_tyrande_whisperwindAI::OnGossipSelect(), npc_erozion::OnGossipSelect(), RefundItem(), RemovePet(), RewardQuest(), RewardQuestPackage(), npc_verdisa_beglaristrasz_eternos::StoreEssence(), StoreLootItem(), StoreNewItem(), and StoreNewItemInBestSlots().
| bool Player::StoreNewItemInBestSlots | ( | uint32 | itemId, |
| uint32 | amount, | ||
| ItemContext | context | ||
| ) |
Definition at line 560 of file Player.cpp.
References AutoUnequipOffhandIfNeed(), CanEquipNewItem(), CanStoreNewItem(), EQUIP_ERR_OK, EquipNewItem(), GenerateItemRandomBonusListId(), Unit::GetClass(), BaseEntity::GetGUID(), WorldObject::GetName(), Unit::GetRace(), INVENTORY_SLOT_BAG_0, NULL_SLOT, StoreNewItem(), TC_LOG_DEBUG, TC_LOG_ERROR, and Position::ToString().
Referenced by Create().
| void Player::SummonIfPossible | ( | bool | agree | ) |
Definition at line 26040 of file Player.cpp.
References WorldPackets::Party::BroadcastSummonResponse::Accepted, AcceptSummon, FinishTaxiFlight(), GameTime::GetGameTime(), GetGroup(), BaseEntity::GetGUID(), m_summon_expire, m_summon_location, Unit::RemoveAurasWithInterruptFlags(), Summon, WorldPackets::Party::BroadcastSummonResponse::Target, TELE_TO_NONE, TeleportTo(), UpdateCriteria(), and WorldPackets::Party::BroadcastSummonResponse::Write().
Referenced by WorldSession::HandleSummonResponseOpcode().
| Pet * Player::SummonPet | ( | uint32 | entry, |
| Optional< PetSaveMode > | slot, | ||
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | ang, | ||
| uint32 | despwtime, | ||
| bool * | isNew = nullptr |
||
| ) |
Definition at line 30440 of file Player.cpp.
References Map::AddToMap(), ASSERT, CLASS_MAGE, Pet::Create(), PetStable::CurrentPetIndex, Pet::FillPetInfo(), Map::GenerateLowGuid(), Unit::GetCharmInfo(), PetStable::GetCurrentPet(), Object::GetEntry(), Unit::GetFaction(), GameTime::GetGameTime(), BaseEntity::GetGUID(), Unit::GetLevel(), WorldObject::GetMap(), GetOrInitPetStable(), Position::GetPositionX(), Position::GetPositionY(), PhasingHandler::InheritPhaseShift(), Pet::InitPetCreateSpells(), Guardian::InitStatsForLevel(), Position::IsPositionValid(), Pet::LoadPetFromDB(), Pet, PET_SAVE_AS_CURRENT, PET_SAVE_NOT_IN_SLOT, PetSpellInitialize(), POWER_MANA, Position::Relocate(), RemovePet(), Unit::ReplaceAllNpcFlags(), Unit::ReplaceAllNpcFlags2(), Pet::SavePetToDB(), Unit::SetClass(), Unit::SetCreatorGUID(), PetStable::SetCurrentUnslottedPetIndex(), Pet::SetDuration(), Unit::SetFaction(), Unit::SetFullHealth(), Unit::SetFullPower(), Unit::SetMinion(), Pet::SetPetExperience(), Unit::SetPetNameTimestamp(), Pet::SetPetNextLevelExperience(), CharmInfo::SetPetNumber(), sObjectMgr, SUMMON_PET, TC_LOG_ERROR, Object::ToCreature(), ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_NONE, and PetStable::UnslottedPets.
Referenced by Spell::EffectResurrectPet(), and Spell::EffectSummonPet().
Definition at line 12567 of file Player.cpp.
References ApplyItemDependentAuras(), AutoUnequipChildItem(), AutoUnequipOffhandIfNeed(), BankItem(), CanBankItem(), CanEquipChildItem(), CanEquipItem(), CanStoreItem(), CanUnequipItem(), WorldSession::DoLootReleaseAll(), EQUIP_ERR_BAG_IN_BAG, EQUIP_ERR_CANT_SWAP, EQUIP_ERR_OK, EQUIP_ERR_PLAYER_DEAD, EquipChildItem(), EquipItem, GetAELootView(), Bag::GetBagSize(), Item::GetChildItem(), Item::GetCount(), Object::GetEntry(), BaseEntity::GetGUID(), GetItemByGuid(), GetItemByPos(), Bag::GetItemByPos(), GetLootByWorldObjectGUID(), ItemTemplate::GetMaxStackSize(), WorldObject::GetName(), Item::GetTemplate(), Item::HasItemFlag(), INVENTORY_SLOT_BAG_0, Unit::IsAlive(), Item::IsBag(), IsBagPos(), IsBankPos(), Bag::IsEmpty(), ObjectGuid::IsEmpty(), IsEquipmentPos(), IsInventoryPos(), BaseEntity::IsInWorld(), ITEM_CHANGED, ITEM_FIELD_FLAG_CHILD, ItemAddedQuestCheck(), ItemCanGoIntoBag(), ItemRemovedQuestCheck(), Item::m_itemData, m_session, REAGENT_BAG_SLOT_END, RemoveItem(), Bag::RemoveItem(), SendEquipError(), SendRefundInfo(), BaseEntity::SendUpdateToPlayer(), Item::SetCount(), Item::SetState(), StoreItem(), Bag::StoreItem(), SwapItem(), TC_LOG_DEBUG, Item::ToBag(), and Position::ToString().
Referenced by WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoEquipItemSlotOpcode(), misc_commandscript::HandleItemMoveCommand(), WorldSession::HandleSwapInvItemOpcode(), WorldSession::HandleSwapItem(), WorldSession::HandleUseEquipmentSet(), and SwapItem().
| bool Player::TakeQuestSourceItem | ( | uint32 | questId, |
| bool | msg | ||
| ) |
Definition at line 15878 of file Player.cpp.
References ASSERT, CanUnequipItems(), DestroyItemCount(), EQUIP_ERR_OK, Quest::GetSrcItemCount(), Quest::GetSrcItemId(), ItemTemplate::GetStartQuest(), SendEquipError(), and sObjectMgr.
Referenced by Spell::EffectQuestClear(), WorldSession::HandleQuestLogRemoveQuest(), quest_commandscript::HandleQuestRemove(), and SkipQuests().
| void Player::TalkedToCreature | ( | uint32 | entry, |
| ObjectGuid | guid | ||
| ) |
Definition at line 16675 of file Player.cpp.
References QUEST_OBJECTIVE_TALKTO, and UpdateQuestObjectiveProgress().
Referenced by npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::OnGossipHello(), npc_sanitron_5000::PassengerBoarded(), and SmartScript::ProcessAction().
Definition at line 6371 of file Player.cpp.
References ALLIANCE, HORDE, PANDARIA_NEUTRAL, sChrRacesStore, and TC_LOG_ERROR.
Referenced by CharacterCache::GetCharacterTeamByGuid(), WorldSession::HandleAddFriendOpcode(), WorldSession::HandleCalendarInvite(), PlayerTaxi::InitTaxiNodesForLevel(), PlayerAchievementMgr::LoadFromDB(), and SetFactionForRace().
Definition at line 6389 of file Player.cpp.
References sChrRacesStore, TC_LOG_ERROR, and TEAM_NEUTRAL.
Referenced by WorldSession::HandleCharCreateOpcode(), WorldSession::HandleCharRaceOrFactionChangeCallback(), and WorldPackets::Query::PlayerGuidLookupData::Initialize().
| bool Player::TeleportTo | ( | TeleportLocation const & | teleportLocation, |
| TeleportToOptions | options = TELE_TO_NONE, |
||
| uint32 | teleportSpellId = 0 |
||
| ) |
Definition at line 1191 of file Player.cpp.
References CLASS_DEATH_KNIGHT, Unit::CombatStop(), MapEntry::CosmeticParentMapID, DelayedTeleport, DelayedWorldPort, DISABLE_TYPE_MAP, Unit::DisableSpline(), duel, DUEL_FLED, DuelComplete(), ObjectGuid::Empty, Unit::ExitVehicle(), MapEntry::Expansion(), GetBattleground(), Unit::GetClass(), Map::GetEntry(), Unit::GetGameObject(), BaseEntity::GetGUID(), WorldObject::GetInstanceId(), WorldObject::GetMap(), WorldLocation::GetMapId(), Unit::GetMotionMaster(), WorldObject::GetName(), GetPet(), Unit::GetPlayerMovingMe(), Position::GetPosition(), Position::GetPosition(), Position::GetPositionZ(), GetSession(), GetTeleportState(), WorldObject::GetTransport(), Unit::GetUnitMovementFlags(), WorldObject::GetVisibilityRange(), HasSpell(), WorldPackets::Movement::ShipTransferPending::ID, InBattleground(), Initiated, TeleportLocation::InstanceId, Unit::InterruptNonMeleeSpells(), MotionMaster::InterruptOnTeleport(), Unit::IsAlive(), MapEntry::IsBattleArena(), MapEntry::IsBattlegroundOrArena(), IsBeingTeleportedNear(), IsCanDelayTeleport(), DisableMgr::IsDisabledFor(), IsGameMaster(), BaseEntity::IsInWorld(), Unit::IsNonMeleeSpellCast(), MapManager::IsValidMapCoord(), WorldObject::IsWithinDist3d(), LeaveBattleground, TeleportLocation::Location, Unit::m_movementCounter, WorldObject::m_movementInfo, m_newWorldCounter, m_playerData, m_teleport_dest, m_teleport_options, m_teleportSpellId, Unit::m_vehicle, WorldPackets::Movement::TransferPending::MapID, MOVEMENTFLAG_MASK_HAS_PLAYER_STATUS_OPCODE, Moving, NotTeleporting, WorldPackets::Movement::TransferPending::OldMapPosition, WorldPackets::Movement::ShipTransferPending::OriginMapID, Map::PlayerCannotEnter(), WorldSession::PlayerLogout(), rbac::RBAC_PERM_SKIP_CHECK_DISABLE_MAP, WorldPackets::Movement::SuspendToken::Reason, Unit::RemoveAllAreaTriggers(), Unit::RemoveAllDynObjects(), Unit::RemoveArenaAuras(), RemoveArenaSpellCooldowns(), Unit::RemoveAurasWithInterruptFlags(), Map::RemovePlayerFromMap(), RepopAtGraveyard(), ResetContestedPvP(), MovementInfo::ResetJump(), ResurrectPlayer(), SendDirectMessage(), Unit::SendTeleportPacket(), SendTransferAborted(), WorldPackets::Movement::SuspendToken::SequenceIndex, SetFallInformation(), SetSelection(), SetTeleportState(), Unit::SetUnitMovementFlags(), WorldPackets::Movement::TransferPending::Ship, sMapStore, sTransportMgr, TC_LOG_DEBUG, TC_LOG_ERROR, TELE_REVIVE_AT_TELEPORT, TELE_TO_NOT_LEAVE_COMBAT, TELE_TO_NOT_LEAVE_TRANSPORT, TELE_TO_NOT_UNSUMMON_PET, TELE_TO_SEAMLESS, TELE_TO_SPELL, Position::ToString(), TRANSFER_ABORT_INSUF_EXPAN_LVL, TRANSFER_ABORT_MAP_NOT_ALLOWED, TRANSFER_ABORT_UNIQUE_MESSAGE, WorldPackets::Movement::TransferPending::TransferSpellID, TeleportLocation::TransportGuid, Turning, UnsummonPetTemporaryIfAny(), UpdatePosition(), WaitingForSuspendTokenResponse, WaitingForTeleportAck, WorldPackets::Movement::TransferPending::Write(), and WorldPackets::Movement::SuspendToken::Write().
| bool Player::TeleportTo | ( | uint32 | mapid, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | orientation, | ||
| TeleportToOptions | options = TELE_TO_NONE, |
||
| Optional< uint32 > | instanceId = {}, |
||
| uint32 | teleportSpellId = 0 |
||
| ) |
Definition at line 1181 of file Player.cpp.
References TeleportTo(), and WorldLocation::WorldLocation().
Referenced by ActivateTaxiPathTo(), FlightPathMovementGenerator::DoFinalize(), go_commandscript::DoTeleport(), Spell::EffectStuck(), Spell::EffectTeleportUnits(), Garrison::Enter(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), go_commandscript::HandleGoBossCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoInstanceCommand(), go_commandscript::HandleGoQuestCommand(), go_commandscript::HandleGoZoneXYCommand(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandleMoveSplineDoneOpcode(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandlePlayerLogin(), spell_ioc_gunship_portal::HandleScript(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleCommand(), tele_commandscript::HandleTeleGroupCommand(), misc_commandscript::HandleUnstuckCommand(), Garrison::Leave(), npc_tb_spirit_guide::OnGossipSelect(), npc_wg_spirit_guide::OnGossipSelect(), lfg::LFGPlayerScript::OnMapChanged(), BattlefieldWG::OnPlayerJoinWar(), transport_seething_shore::OnRemovePassenger(), at_icc_saurfang_portal::OnTrigger(), Battlefield::PlayerAskToLeave(), Map::RemoveAllPlayers(), RepopAtGraveyard(), ResurrectUsingRequestData(), WorldSession::SendSpiritResurrect(), BattlegroundMgr::SendToBattleground(), SummonIfPossible(), lfg::LFGMgr::TeleportPlayer(), Battleground::TeleportPlayerToExploitLocation(), Ticket::TeleportTo(), TeleportTo(), TeleportTo(), TeleportToBGEntryPoint(), battleground_strand_of_the_ancients::TeleportToEntrancePosition(), Update(), and GameObject::Use().
| bool Player::TeleportTo | ( | WorldLocation const & | loc, |
| TeleportToOptions | options = TELE_TO_NONE, |
||
| Optional< uint32 > | instanceId = {}, |
||
| uint32 | teleportSpellId = 0 |
||
| ) |
Definition at line 1186 of file Player.cpp.
References TeleportTo().
| bool Player::TeleportToBGEntryPoint | ( | ) |
Definition at line 1436 of file Player.cpp.
References DELAYED_BG_MOUNT_RESTORE, DELAYED_BG_TAXI_RESTORE, BGData::joinPos, m_bgData, WorldLocation::m_mapId, MAPID_INVALID, ScheduleDelayedOperation(), and TeleportTo().
Referenced by MapManager::CreateMap(), WorldSession::HandleAreaTriggerOpcode(), Battleground::RemovePlayerAtLeave(), and lfg::LFGMgr::TeleportPlayer().
|
overridevirtual |
Outputs an universal text which is supposed to be an action.
Reimplemented from Unit.
Definition at line 22298 of file Player.cpp.
References CHAT_MSG_EMOTE, CONFIG_LISTEN_RANGE_TEXTEMOTE, GetSession(), WorldPackets::Chat::Chat::Initialize(), LANG_UNIVERSAL, rbac::RBAC_PERM_TWO_SIDE_INTERACTION_CHAT, SendMessageToSetInRange(), sScriptMgr, sWorld, and WorldPackets::Chat::Chat::Write().
Referenced by WorldSession::HandleChatMessage().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 22321 of file Player.cpp.
References CHAT_MSG_EMOTE, CONFIG_LISTEN_RANGE_TEXTEMOTE, and sWorld.
| void Player::ToggleAFK | ( | ) |
Definition at line 1143 of file Player.cpp.
References GetSession(), InArena(), InBattleground(), isAFK(), LeaveBattleground, PLAYER_FLAGS_AFK, rbac::RBAC_PERM_CAN_AFK_ON_BATTLEGROUND, RemovePlayerFlag(), and SetPlayerFlag().
Referenced by Battleground::AddPlayer(), WorldSession::HandleChatMessageAFKOpcode(), WorldSession::HandleChatMessageDNDOpcode(), and Battlefield::PlayerAcceptInviteToWar().
| void Player::ToggleDND | ( | ) |
Definition at line 1155 of file Player.cpp.
References isDND(), PLAYER_FLAGS_DND, RemovePlayerFlag(), and SetPlayerFlag().
Referenced by WorldSession::HandleChatMessageAFKOpcode(), and WorldSession::HandleChatMessageDNDOpcode().
| void Player::ToggleMetaGemsActive | ( | uint8 | exceptslot, |
| bool | apply | ||
| ) |
Definition at line 24195 of file Player.cpp.
References ApplyEnchantment(), SpellItemEnchantmentEntry::ConditionID, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Item::GetEnchantmentId(), GetItemByPos(), Item::GetSocketColor(), INVENTORY_SLOT_BAG_0, SOCK_ENCHANTMENT_SLOT, and sSpellItemEnchantmentStore.
Referenced by WorldSession::HandleSocketGems().
| void Player::TogglePvpTalents | ( | bool | enable | ) |
Definition at line 27776 of file Player.cpp.
References AddOverrideSpell(), GetActiveTalentGroup(), GetPvpTalentMap(), LearnSpell(), RemoveOverrideSpell(), RemoveSpell(), and sPvpTalentStore.
| void Player::TradeCancel | ( | bool | sendback, |
| TradeStatus | status = TRADE_STATUS_CANCELLED |
||
| ) |
Definition at line 13212 of file Player.cpp.
References GetSession(), TradeData::GetTrader(), m_trade, and WorldSession::SendCancelTrade().
Referenced by ActivateTaxiPathTo(), CleanupsBeforeDelete(), WorldSession::HandleBusyTradeOpcode(), WorldSession::HandleCancelTradeOpcode(), and WorldSession::HandleIgnoreTradeOpcode().
| void Player::UninviteFromGroup | ( | ) |
Definition at line 2066 of file Player.cpp.
References Group::Disband(), GetGroupInvite(), Group::GetInviteeCount(), Group::GetMembersCount(), Group::IsCreated(), Group::RemoveAllInvites(), and Group::RemoveInvite().
Referenced by WorldSession::HandlePartyInviteResponseOpcode(), and WorldSession::LogoutPlayer().
|
inline |
Definition at line 2864 of file Player.h.
References PLAYER_FLAGS_EX_REAGENT_BANK_UNLOCKED.
| void Player::UnsummonBattlePetTemporaryIfAny | ( | bool | onFlyingMount = false | ) |
Definition at line 27963 of file Player.cpp.
References BattlePets::BattlePetMgr::DismissPet(), Unit::GetBattlePetCompanionGUID(), WorldSession::GetBattlePetMgr(), GetSession(), GetSummonedBattlePet(), TempSummon::IsAutoResummoned(), TempSummon::IsDismissedOnFlyingMount(), Unit::IsSummon(), m_temporaryUnsummonedBattlePet, and Unit::ToTempSummon().
Referenced by WorldSession::HandleMovementOpcode(), and RemoveFromWorld().
| void Player::UnsummonPetTemporaryIfAny | ( | ) |
Definition at line 27929 of file Player.cpp.
References Unit::GetCharmInfo(), GetPet(), CharmInfo::GetPetNumber(), Pet::isControlled(), Pet::isTemporarySummoned(), m_oldpetspell, m_temporaryUnsummonedPetNumber, Unit::m_unitData, PET_SAVE_AS_CURRENT, and RemovePet().
Referenced by Battleground::AddPlayer(), VehicleJoinEvent::Execute(), WorldSession::HandleMovementOpcode(), RemoveFromWorld(), and TeleportTo().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 886 of file Player.cpp.
References _cinematicMgr, _pendingBindId, _pendingBindTimer, _restMgr, Unit::AIUpdateTick(), BuildPlayerRepop(), CanExecutePendingSpellCastRequest(), CheckDuelDistance(), CINEMATIC_UPDATEDIFF, ConfirmPendingBind(), DelayedTeleport, DelayedWorldPort, Unit::DoMeleeAttackIfReady(), CombatManager::EndCombatBeyondRange(), ExecutePendingSpellCastRequest(), FailQuest(), Unit::GetAura(), Unit::GetCombatManager(), GetDrunkValue(), GameTime::GetGameTime(), GameTime::GetGameTimeMS(), BaseEntity::GetGUID(), WorldObject::GetInstanceId(), WorldObject::GetMap(), GetMSTimeDiffToNow(), WorldObject::GetName(), GetPet(), GetSession(), GetTeleportState(), WorldObject::GetVisibilityRange(), HandleSobering(), Unit::HasAuraType(), HasPendingBind(), HasPlayerFlag(), IN_MILLISECONDS, Unit::IsAlive(), BaseEntity::IsInWorld(), Unit::isPossessed(), WorldObject::IsWithinDistInMap(), JUST_DIED, KillPlayer(), LOGIN_UPD_MUTE_TIME, LoginDatabase, m_achievementMgr, Unit::m_deathState, m_deathTimer, m_drunkTimer, m_hostileReferenceCheckTimer, m_Last_tick, WorldSession::m_muteTime, m_nextMailDelivereTime, m_nextSave, m_Played_time, m_QuestStatus, m_QuestStatusSave, Unit::m_regenTimer, m_teleport_dest, m_teleport_options, m_teleportSpellId, m_timedquests, m_weaponChangeTimer, NotTeleporting, PET_SAVE_NOT_IN_SLOT, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_FLAGS_RESTING, QUEST_DEFAULT_SAVE_TYPE, RegenerateAll(), RemovePet(), RepopAtGraveyard(), SaveToDB(), SendNewMail(), SetCanDelayTeleport(), PreparedStatementBase::setInt64(), SetPendingBind(), PreparedStatementBase::setString(), SetTeleportState(), PreparedStatementBase::setUInt32(), SPELL_AURA_PREVENT_RESURRECTION, SPELL_PVP_RULES_ENABLED, TC_LOG_DEBUG, TeleportTo(), QuestStatusData::Timer, Position::ToString(), unReadMails, Unit::Update(), UpdateAfkReport(), UpdateContestedPvP(), UpdateDuelFlag(), UpdateEnchantTime(), UpdateHomebindTime(), UpdateItemDuration(), UpdateMirrorTimers(), UpdatePvPFlag(), and UpdateSoulboundTradeItems().
Referenced by Map::Update().
| void Player::UpdateAfkReport | ( | time_t | currTime | ) |
checks the 15 afk reports per 5 minutes limit
Definition at line 21924 of file Player.cpp.
References BGData::bgAfkReportedCount, BGData::bgAfkReportedTimer, m_bgData, and MINUTE.
Referenced by Update().
| void Player::UpdateAllCritPercentages | ( | ) |
Definition at line 536 of file StatSystem.cpp.
References BASE_ATTACK, CRIT_PERCENTAGE, OFF_ATTACK, OFFHAND_CRIT_PERCENTAGE, RANGED_ATTACK, RANGED_CRIT_PERCENTAGE, SetBaseModPctValue(), and UpdateCritPercentage().
Referenced by UpdateAllStats(), and UpdateStats().
| void Player::UpdateAllRatings | ( | ) |
Definition at line 5376 of file Player.cpp.
References MAX_COMBAT_RATING, and UpdateRating().
Referenced by UpdateAllStats().
|
overridevirtual |
Implements Unit.
Definition at line 199 of file StatSystem.cpp.
References BASE_ATTACK, CR_ARMOR_PENETRATION, GetPowerTypes(), Unit::GetTotalStatValue(), MAX_STATS, OFF_ATTACK, POWER_ENERGY, POWER_MANA, POWER_RAGE, POWER_RUNIC_POWER, RecalculateRating(), Unit::SetStat(), STAT_STRENGTH, UpdateAllCritPercentages(), UpdateAllRatings(), Unit::UpdateAllResistances(), UpdateArmor(), UpdateAttackPowerAndDamage(), UpdateBlockPercentage(), UpdateDodgePercentage(), UpdateExpertise(), UpdateMaxHealth(), UpdateMaxPower(), UpdateParryPercentage(), UpdatePowerRegen(), UpdateSpellCritChance(), UpdateSpellDamageAndHealingBonus(), and Unit::UpdateStatBuffMod().
Referenced by _ApplyAllStatBonuses(), _RemoveAllStatBonuses(), GiveLevel(), and LoadFromDB().
| void Player::UpdateAllWeaponDependentCritAuras | ( | ) |
Definition at line 8262 of file Player.cpp.
References BASE_ATTACK, MAX_ATTACK, and UpdateWeaponDependentCritAuras().
Referenced by AuraEffect::HandleAuraModCritPct(), and AuraEffect::HandleAuraModWeaponCritPercent().
| void Player::UpdateArea | ( | uint32 | newArea | ) |
Definition at line 7434 of file Player.cpp.
References _restMgr, ALLIANCE, AllianceResting, Unit::CombatStopWithPets(), DisablePvpRules(), duel, EnablePvpRules(), EnterArea, FreeForAllPvP, Unit::GetCombatManager(), AreaTableEntry::GetFlags(), AreaTableEntry::GetFlags2(), GetTeam(), HordeResting, IsAreaThatActivatesPvpTalents(), PvPInfo::IsInFFAPvPArea, PvPInfo::IsInNoPvPArea, AreaTableEntry::IsSanctuary(), LeaveArea, m_areaUpdateId, PhasingHandler::OnAreaChange(), PushQuests(), pvpInfo, Unit::RemovePvpFlag(), REST_FLAG_IN_FACTION_AREA, sAreaTableStore, Unit::SetPvpFlag(), UNIT_BYTE2_FLAG_SANCTUARY, UpdateAreaDependentAuras(), UpdateCriteria(), UpdateLocalChannels(), Unit::UpdateMountCapability(), UpdatePvPState(), UseSubzoneForChatChannel, and Unit::ValidateAttackersAndOwnTarget().
Referenced by SetGameMaster(), UpdateZone(), and UpdateZoneAndAreaId().
| void Player::UpdateAreaDependentAuras | ( | uint32 | area_id | ) |
Definition at line 26487 of file Player.cpp.
References AURA_REMOVE_BY_INTERRUPT, CastSpell, WorldLocation::GetMapId(), HasAura, Unit::m_ownedAuras, m_zoneUpdateId, Unit::RemoveOwnedAura(), SPELL_AREA_FLAG_AUTOCAST, SPELL_CAST_OK, and sSpellMgr.
Referenced by Spell::EffectUpdateZoneAurasAndPhases(), UpdateArea(), and UpdateQuestObjectiveProgress().
|
overridevirtual |
Implements Unit.
Definition at line 255 of file StatSystem.cpp.
References BASE_PCT, BASE_VALUE, CalculatePct(), AuraEffect::GetAmount(), Unit::GetFlatModifierValue(), AuraEffect::GetMiscValue(), Unit::GetPctModifierValue(), GetPet(), GetPrimaryStat(), Unit::GetStat(), Unit::GetTotalAuraModifier(), Unit::GetTotalAuraMultiplier(), Unit::SetArmor(), SPELL_AURA_MOD_ARMOR_PCT_FROM_STAT, SPELL_AURA_MOD_BONUS_ARMOR_PCT, TOTAL_PCT, TOTAL_VALUE, UNIT_MOD_ARMOR, Guardian::UpdateArmor(), and UpdateAttackPowerAndDamage().
Referenced by AuraEffect::HandleModArmorPctFromStat(), UpdateAllStats(), UpdateResistances(), and UpdateStats().
| void Player::UpdateArmorPenetration | ( | int32 | amount | ) |
Definition at line 755 of file StatSystem.cpp.
References UF::ActivePlayerData::CombatRatings, CR_ARMOR_PENETRATION, m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), and BaseEntity::SetUpdateFieldValue().
Referenced by UpdateRating().
|
overridevirtual |
Implements Unit.
Definition at line 354 of file StatSystem.cpp.
References ChrClassesEntry::AttackPowerPerAgility, ChrClassesEntry::AttackPowerPerStrength, BASE_ATTACK, CalculatePct(), Unit::CanDualWield(), SpellShapeshiftFormEntry::Flags, FlatNegative, FlatPositive, Unit::GetAttackPowerModifierValue(), Unit::GetClass(), Unit::GetGuardianPet(), Unit::GetLevel(), GetPet(), Unit::GetShapeshiftForm(), Unit::GetStat(), GetWeaponForAttack(), Unit::HasAuraType(), Unit::IsHunterPet(), Minion::IsPetGhoul(), Minion::IsSpiritWolf(), ITEM_FLAG3_ALWAYS_ALLOW_DUAL_WIELD, m_activePlayerData, MAX_SPELL_SCHOOL, Melee, OFF_ATTACK, Pct, Ranged, RANGED_ATTACK, ChrClassesEntry::RangedAttackPowerPerAgility, sChrClassesStore, Unit::SetAttackPower(), Unit::SetAttackPowerModNeg(), Unit::SetAttackPowerModPos(), Unit::SetAttackPowerMultiplier(), Unit::SetRangedAttackPower(), Unit::SetRangedAttackPowerModNeg(), Unit::SetRangedAttackPowerModPos(), Unit::SetRangedAttackPowerMultiplier(), SPELL_AURA_OVERRIDE_ATTACK_POWER_BY_SP_PCT, SPELL_AURA_OVERRIDE_SPELL_POWER_BY_AP_PCT, SPELL_SCHOOL_HOLY, sSpellShapeshiftFormStore, STAT_AGILITY, STAT_STRENGTH, Guardian::UpdateAttackPowerAndDamage(), Unit::UpdateDamagePhysical(), and UpdateSpellDamageAndHealingBonus().
Referenced by ApplySpellPowerBonus(), AuraEffect::HandleOverrideAttackPowerBySpellPower(), InitDataForForm(), UpdateAllStats(), UpdateArmor(), UpdateSpellDamageAndHealingBonus(), and UpdateStats().
| void Player::UpdateAverageItemLevelEquipped | ( | ) |
Definition at line 30914 of file Player.cpp.
References EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_START, EquippedBase, EquippedEffective, Unit::GetEffectiveLevel(), GetItemByPos(), Item::GetItemLevel(), Unit::GetLevel(), INVENTORY_SLOT_BAG_0, INVTYPE_2HWEAPON, IsUsingPvpItemLevels(), ITEM_FLAG3_IGNORE_ITEM_LEVEL_CAP_IN_PVP, ITEM_MODIFIER_TIMEWALKER_LEVEL, m_canTitanGrip, Unit::m_unitData, SetAverageItemLevel(), and Item::ToAzeriteItem().
Referenced by DestroyItem(), EquipItem(), WorldSession::HandlePlayerLogin(), and RemoveItem().
| void Player::UpdateAverageItemLevelTotal | ( | ) |
Definition at line 30857 of file Player.cpp.
References CanEquipItem(), Continue, ObjectGuid::Empty, EQUIP_ERR_OK, EQUIPMENT_SLOT_END, Everywhere, ForEachEquipmentSlot(), ForEachItem(), BaseEntity::GetGUID(), ItemTemplate::GetInventoryType(), Item::GetItemLevel(), Item::GetTemplate(), INVTYPE_NON_EQUIP, INVTYPE_PROFESSION_TOOL, Unit::m_canDualWield, m_canTitanGrip, and NULL_SLOT.
Referenced by DestroyItem(), WorldSession::HandlePlayerLogin(), and StoreNewItem().
| void Player::UpdateBaseModGroup | ( | BaseModGroup | modGroup | ) |
Definition at line 4960 of file Player.cpp.
References BASE_ATTACK, Unit::CanModifyStats(), CRIT_PERCENTAGE, OFF_ATTACK, OFFHAND_CRIT_PERCENTAGE, RANGED_ATTACK, RANGED_CRIT_PERCENTAGE, and UpdateCritPercentage().
Referenced by ApplyBaseModPctValue(), HandleBaseModFlatValue(), SetBaseModFlatValue(), and SetBaseModPctValue().
| void Player::UpdateBlockPercentage | ( | ) |
Definition at line 490 of file StatSystem.cpp.
References UF::ActivePlayerData::BlockPercentage, CanBlock(), CONFIG_STATS_LIMITS_BLOCK, CONFIG_STATS_LIMITS_ENABLE, CR_BLOCK, GetRatingBonusValue(), Unit::GetTotalAuraModifier(), m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::SetUpdateFieldStatValue(), SPELL_AURA_MOD_BLOCK_PERCENT, and sWorld.
Referenced by AuraEffect::HandleAuraModBlockPercent(), SetCanBlock(), UpdateAllStats(), and UpdateRating().
| void Player::UpdateContestedPvP | ( | uint32 | currTime | ) |
Definition at line 21958 of file Player.cpp.
References Unit::IsInCombat(), m_contestedPvPTimer, and ResetContestedPvP().
Referenced by Update().
| void Player::UpdateCorpseReclaimDelay | ( | ) |
Definition at line 26524 of file Player.cpp.
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().
| void Player::UpdateCorruption | ( | ) |
Definition at line 731 of file StatSystem.cpp.
References CastSpell, CR_CORRUPTION, CR_CORRUPTION_RESISTANCE, Disabled, GetRatingBonusValue(), ConditionMgr::IsPlayerMeetingCondition(), None, Unit::RemoveAura(), and sCorruptionEffectsStore.
Referenced by UpdateRating().
| bool Player::UpdateCraftSkill | ( | SpellInfo const * | spellInfo | ) |
Definition at line 5409 of file Player.cpp.
References CONFIG_SKILL_GAIN_CRAFTING, BaseEntity::GetGUID(), WorldObject::GetName(), GetPureSkillValue(), GetSkillDiscoverySpell(), SpellInfo::HasAttribute(), SpellInfo::Id, LearnSpell(), SpellInfo::Mechanic, MECHANIC_DISCOVERY, SkillGainChance(), SPELL_ATTR1_NO_SKILL_INCREASE, sSpellMgr, sWorld, TC_LOG_DEBUG, Position::ToString(), and UpdateSkillPro().
Referenced by Spell::DoCreateItem(), Spell::EffectCreateItem2(), and Spell::EffectEnchantItemPerm().
| void Player::UpdateCriteria | ( | CriteriaType | type, |
| uint64 | miscValue1 = 0, |
||
| uint64 | miscValue2 = 0, |
||
| uint64 | miscValue3 = 0, |
||
| WorldObject * | ref = nullptr |
||
| ) |
Definition at line 27532 of file Player.cpp.
References GetGuildId(), WorldObject::GetScenario(), CriteriaMgr::IsGroupCriteriaType(), m_achievementMgr, m_questObjectiveCriteriaMgr, and sGuildMgr.
Referenced by KillRewarder::_RewardKillCredit(), Garrison::ActivateBuilding(), ActivateTaxiPathTo(), Garrison::AddFollower(), CollectionMgr::AddHeirloom(), CollectionMgr::AddItemAppearance(), BattlePets::BattlePetMgr::AddPet(), AddSpell(), BuyItemFromVendorSlot(), CheckAreaExplore(), PlayerAchievementMgr::CompletedAchievement(), Scenario::CompleteScenario(), Unit::DealDamage(), FlightPathMovementGenerator::DoUpdate(), InstanceScript::DoUpdateCriteria(), DuelComplete(), Battleground::EndBattleground(), Arena::EndBattleground(), EnvironmentalDamage(), EquipItem(), EquipNewItem(), lfg::LFGMgr::FinishDungeon(), Item::GiveArtifactXp(), GiveLevel(), AzeriteItem::GiveXP(), BattlePets::BattlePetMgr::GrantBattlePetExperience(), BattlePets::BattlePetMgr::GrantBattlePetLevel(), WorldSession::HandleAlterAppearance(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleArtifactAddPower(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleBuyBankTab(), HandleFall(), WorldSession::HandleGameobjectReportUse(), Battleground::HandleKillPlayer(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandlePlayerLogin(), WorldSession::HandleQuestLogRemoveQuest(), reset_commandscript::HandleResetHonorCommand(), WorldSession::HandleSendMail(), WorldSession::HandleTextEmoteOpcode(), IncreaseResetTalentsCostAndCounters(), Unit::Kill(), KilledMonsterCredit(), ModifyCurrency(), ArenaTeamMember::ModifyPersonalRating(), MoveItemToInventory(), Garrison::PlaceBuilding(), LootRoll::PlayerVote(), QuickEquipItem(), RewardHonor(), RewardQuest(), SellItemToVendor(), AuctionHouseObject::SendAuctionSold(), AuctionHouseObject::SendAuctionWon(), WorldSession::SendLearnNewTaxiNode(), InstanceScript::SetBossState(), setDeathState(), SetHonorLevel(), SetMoney(), ReputationMgr::SetOneFactionReputation(), SetSkill(), StoreLootItem(), StoreNewItem(), SummonIfPossible(), GameEvents::TriggerForPlayer(), UpdateArea(), UpdateSkillPro(), UpdateZone(), and GameObject::Use().
| void Player::UpdateCritPercentage | ( | WeaponAttackType | attType | ) |
Definition at line 509 of file StatSystem.cpp.
References BASE_ATTACK, CONFIG_STATS_LIMITS_CRIT, CONFIG_STATS_LIMITS_ENABLE, CR_CRIT_MELEE, CR_CRIT_RANGED, CRIT_PERCENTAGE, UF::ActivePlayerData::CritPercentage, FLAT_MOD, GetBaseModValue(), GetRatingBonusValue(), m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), OFF_ATTACK, OFFHAND_CRIT_PERCENTAGE, UF::ActivePlayerData::OffhandCritPercentage, PCT_MOD, RANGED_ATTACK, RANGED_CRIT_PERCENTAGE, UF::ActivePlayerData::RangedCritPercentage, BaseEntity::SetUpdateFieldStatValue(), and sWorld.
Referenced by UpdateAllCritPercentages(), UpdateBaseModGroup(), and UpdateRating().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 4905 of file Player.cpp.
References ABORT, BASE_ATTACK, CLASS_SHAMAN, SpellItemEnchantmentEntry::Effect, SpellItemEnchantmentEntry::EffectScalingPoints, Unit::GetClass(), ItemTemplate::GetDelay(), Item::GetEnchantmentId(), Item::GetTemplate(), GetWeaponForAttack(), Unit::HandleStatFlatModifier(), ITEM_ENCHANTMENT_TYPE_DAMAGE, ITEM_ENCHANTMENT_TYPE_TOTEM, MAX_ENCHANTMENT_SLOT, MAX_ITEM_ENCHANTMENT_EFFECTS, OFF_ATTACK, RANGED_ATTACK, sSpellItemEnchantmentStore, TOTAL_VALUE, UNIT_MOD_DAMAGE_MAINHAND, UNIT_MOD_DAMAGE_OFFHAND, UNIT_MOD_DAMAGE_RANGED, and Unit::UpdateDamageDoneMods().
Referenced by ApplyEnchantment(), and UpdateWeaponDependentAuras().
| void Player::UpdateDodgePercentage | ( | ) |
Definition at line 699 of file StatSystem.cpp.
References CalculateDiminishingReturns(), CONFIG_STATS_LIMITS_DODGE, CONFIG_STATS_LIMITS_ENABLE, CR_DODGE, dodge_cap, UF::ActivePlayerData::DodgePercentage, Unit::GetClass(), GetDodgeFromAgility(), GetRatingBonusValue(), Unit::GetTotalAuraModifier(), m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::SetUpdateFieldStatValue(), SPELL_AURA_MOD_DODGE_PERCENT, and sWorld.
Referenced by AuraEffect::HandleAuraModDodgePercent(), UpdateAllStats(), UpdateRating(), and UpdateStats().
| void Player::UpdateDuelFlag | ( | time_t | currTime | ) |
Definition at line 21993 of file Player.cpp.
References duel, DUEL_STATE_COUNTDOWN, DUEL_STATE_IN_PROGRESS, SetDuelTeam(), and sScriptMgr.
Referenced by Update().
| void Player::UpdateEnchantTime | ( | uint32 | time | ) |
Definition at line 13272 of file Player.cpp.
References ApplyEnchantment(), ASSERT, and m_enchantDuration.
Referenced by Update().
| void Player::UpdateEquipSpellsAtFormChange | ( | ) |
Definition at line 8392 of file Player.cpp.
References ApplyItemEquipSpell(), Unit::CanUseAttackType(), GetAttackBySlot(), m_items, REAGENT_BAG_SLOT_END, and UpdateItemSetAuras().
Referenced by InitDataForForm().
| void Player::UpdateExpertise | ( | WeaponAttackType | attType | ) |
Definition at line 777 of file StatSystem.cpp.
References BASE_ATTACK, CR_EXPERTISE, GetRatingBonusValue(), AuraEffect::GetSpellInfo(), Unit::GetTotalAuraModifier(), GetWeaponForAttack(), m_activePlayerData, BaseEntity::m_values, UF::ActivePlayerData::MainhandExpertise, UF::UpdateFieldHolder::ModifyValue(), OFF_ATTACK, UF::ActivePlayerData::OffhandExpertise, RANGED_ATTACK, BaseEntity::SetUpdateFieldValue(), and SPELL_AURA_MOD_EXPERTISE.
Referenced by DestroyItem(), EquipItem(), AuraEffect::HandleAuraModExpertise(), RemoveItem(), UpdateAllStats(), and UpdateRating().
| void Player::UpdateFallInformationIfNeed | ( | MovementInfo const & | minfo, |
| uint32 | opcode | ||
| ) |
Definition at line 27880 of file Player.cpp.
References CMSG_MOVE_FALL_LAND, MovementInfo::JumpInfo::fallTime, Position::GetPositionZ(), MovementInfo::jump, m_lastFallTime, m_lastFallZ, MovementInfo::pos, and SetFallInformation().
Referenced by WorldSession::HandleMovementOpcode().
| bool Player::UpdateFishingSkill | ( | int32 | expansion | ) |
Definition at line 5502 of file Player.cpp.
References CONFIG_SKILL_GAIN_GATHERING, GetFishingStepsNeededToLevelUp(), BaseEntity::GetGUID(), GetMaxSkillValue(), WorldObject::GetName(), GetProfessionSkillForExp(), GetPureSkillValue(), HasSkill(), m_fishingSteps, SKILL_FISHING, sWorld, TC_LOG_DEBUG, Position::ToString(), and UpdateSkillPro().
Referenced by GameObject::Use().
| bool Player::UpdateGatherSkill | ( | uint32 | skillId, |
| uint32 | skillValue, | ||
| uint32 | redLevel, | ||
| uint32 | multiplicator = 1, |
||
| WorldObject const * | object = nullptr |
||
| ) |
Definition at line 5444 of file Player.cpp.
References CONFIG_SKILL_CHANCE_MINING_STEPS, CONFIG_SKILL_CHANCE_SKINNING_STEPS, CONFIG_SKILL_GAIN_GATHERING, BaseEntity::GetGUID(), WorldObject::GetName(), SkillLineEntry::ParentSkillLineID, SKILL_HERBALISM, SKILL_MINING, SKILL_SKINNING, SkillGainChance(), sSkillLineStore, sWorld, TC_LOG_DEBUG, Object::ToGameObject(), Position::ToString(), and UpdateSkillPro().
Referenced by Spell::EffectMilling(), Spell::EffectOpenLock(), Spell::EffectProspecting(), and Spell::EffectSkinning().
| void Player::UpdateHealingDonePercentMod | ( | ) |
Definition at line 583 of file StatSystem.cpp.
References AddPct(), CR_VERSATILITY_HEALING_DONE, Unit::GetAuraEffectsByType(), GetRatingBonusValue(), Unit::GetTotalAuraModifier(), m_activePlayerData, BaseEntity::m_values, MAX_SPELL_SCHOOL, UF::ActivePlayerData::ModHealingDonePercent, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::SetUpdateFieldStatValue(), SPELL_AURA_MOD_HEALING_DONE_PERCENT, and SPELL_AURA_MOD_VERSATILITY.
Referenced by UpdateRating().
| void Player::UpdateHomebindTime | ( | uint32 | time | ) |
Definition at line 23974 of file Player.cpp.
References BaseEntity::GetGUID(), WorldObject::GetName(), IsGameMaster(), m_HomebindTimer, m_InstanceValid, RAID_GROUP_ERR_NONE, RAID_GROUP_ERR_REQUIREMENTS_UNMATCH, RepopAtGraveyard(), SendRaidGroupOnlyMessage(), TC_LOG_DEBUG, and Position::ToString().
Referenced by Update().
| void Player::UpdateHonorFields | ( | ) |
called when rewarding honor and at each save
Definition at line 6642 of file Player.cpp.
References DAY, GameTime::GetGameTime(), m_activePlayerData, m_lastHonorUpdateTime, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::SetUpdateFieldValue(), UF::ActivePlayerData::TodayHonorableKills, and UF::ActivePlayerData::YesterdayHonorableKills.
Referenced by honor_commandscript::HandleHonorUpdateCommand(), LoadFromDB(), RewardHonor(), and SaveToDB().
| void Player::UpdateHonorNextLevel | ( | ) |
Definition at line 6885 of file Player.cpp.
References UF::ActivePlayerData::HonorNextLevel, m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), and BaseEntity::SetUpdateFieldValue().
Referenced by _InitHonorLevelOnLoadFromDB(), and SetHonorLevel().
| void Player::UpdateHostileAreaState | ( | AreaTableEntry const * | area | ) |
Definition at line 7591 of file Player.cpp.
References Combat, CombatZone, Contested, EnemiesPvPFlagged, FactionTemplateEntry::EnemyGroup, AreaTableEntry::FactionGroupMask, FreeForAllPvP, FactionTemplateEntry::FriendGroup, Friendly, WorldObject::GetFactionTemplateEntry(), AreaTableEntry::GetFlags(), WorldObject::GetMap(), GetOverrideZonePVPType(), WorldStateMgr::GetValue(), HasPvPForcingQuest(), Hostile, InBattleground(), PvPInfo::IsHostile, PvPInfo::IsInHostileArea, AreaTableEntry::IsSanctuary(), IsWarModeLocalActive(), None, AreaTableEntry::PvpCombatWorldStateID, pvpInfo, and sWorld.
Referenced by AuraEffect::HandleModOverrideZonePVPType(), and UpdateZone().
| void Player::UpdateIndoorsOutdoorsAuras | ( | ) |
Definition at line 6340 of file Player.cpp.
References CONFIG_VMAP_INDOOR_CHECK, WorldObject::IsOutdoors(), Unit::RemoveAurasWithAttribute(), SPELL_ATTR0_ONLY_INDOORS, SPELL_ATTR0_ONLY_OUTDOORS, and sWorld.
Referenced by WorldSession::HandleMovementOpcode(), and Heartbeat().
| void Player::UpdateInventorySlotCount | ( | ) |
Definition at line 9812 of file Player.cpp.
References EFFECT_0, Unit::GetAuraEffect(), HasPlayerLocalFlag(), INVENTORY_ACCOUNT_SECURED_BONUS_SIZE, INVENTORY_DEFAULT_SIZE, PLAYER_LOCAL_FLAG_ACCOUNT_SECURED, SetInventorySlotCount(), and SPELL_ALPACA_SADDLEBAGS.
Referenced by _LoadInventory(), and SetAccountSecured().
| void Player::UpdateInvisibilityDrunkDetect | ( | ) |
Definition at line 867 of file Player.cpp.
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, BaseEntity::IsInWorld(), 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 |
||
| ) |
Definition at line 13254 of file Player.cpp.
References BaseEntity::GetGUID(), WorldObject::GetName(), Item::GetTemplate(), ItemTemplate::HasFlag(), ITEM_FLAG_REAL_DURATION, m_itemDuration, TC_LOG_DEBUG, Position::ToString(), and Item::UpdateDuration().
Referenced by LoadFromDB(), and Update().
| void Player::UpdateItemLevelAreaBasedScaling | ( | ) |
Definition at line 30770 of file Player.cpp.
References _ApplyAllItemMods(), _RemoveAllItemMods(), _usePvpItemLevels, ActivatePvpItemLevels(), CalculatePct(), MapEntry::Flags, Map::GetEntry(), Unit::GetHealthPct(), WorldObject::GetMap(), Unit::GetMaxHealth(), HasPvpRulesEnabled(), Map::IsBattlegroundOrArena(), and Unit::SetHealth().
Referenced by DisablePvpRules(), EnablePvpRules(), and SendInitialPacketsAfterAddToMap().
| void Player::UpdateLiquidMirrorTimerFlagsOnPositionChange | ( | Optional< LiquidData > const & | newLiquidData | ) |
Definition at line 26758 of file Player.cpp.
References AllLiquids, DarkWater, WorldObject::GetCurrentWmo(), WorldObject::GetLiquidStatus(), WorldObject::GetTransport(), Unit::GetVehicle(), DB2Manager::GetWMOAreaTable(), Unit::HasAuraType(), IgnoreFatigue, Unit::IsInFlight(), LIQUID_MAP_UNDER_WATER, m_MirrorTimerFlags, m_mirrorTimers, Magma, MAP_LIQUID_STATUS_IN_CONTACT, MIRROR_TIMER_BREATH, MIRROR_TIMER_FATIGUE, NoFatigue, Slime, SPELL_AURA_FORCE_BREATH_BAR, SPELL_AURA_WATER_BREATHING, UNDERWATER_INDARKWATER, UNDERWATER_INLAVA, UNDERWATER_INSLIME, and UNDERWATER_INWATER.
Referenced by ProcessPositionDataChanged().
| void Player::UpdateLiquidMirrorTimerValuesOnAura | ( | ) |
Definition at line 26805 of file Player.cpp.
References GetMirrorTimerMaxValue(), m_mirrorTimers, and MIRROR_TIMER_BREATH.
Referenced by AuraEffect::HandleForceBreathBar(), and AuraEffect::HandleModWaterBreathing().
| void Player::UpdateLocalChannels | ( | uint32 | newZone | ) |
Definition at line 4779 of file Player.cpp.
References AutoJoin, CanJoinConstantChannelInZone(), ChannelMgr::ForTeam(), Channel::GetChannelId(), GetSession(), ChannelMgr::GetSystemChannel(), GetTeam(), Channel::GetZoneEntry(), IsBeingTeleportedFar(), Channel::JoinChannel(), Channel::LeaveChannel(), LeftChannel(), ChannelMgr::LeftChannel(), LinkedChannel, m_channels, sAreaTableStore, sChatChannelsStore, and ZoneBased.
Referenced by UpdateArea(), and UpdateZone().
| void Player::UpdateMastery | ( | ) |
Definition at line 549 of file StatSystem.cpp.
References CanUseMastery(), CR_MASTERY, BaseEntity::GetGUID(), Unit::GetOwnedAuras(), GetPrimarySpecializationEntry(), GetRatingBonusValue(), Unit::GetTotalAuraModifier(), m_activePlayerData, BaseEntity::m_values, UF::ActivePlayerData::Mastery, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::SetUpdateFieldValue(), SPELL_ATTR8_MASTERY_AFFECTS_POINTS, and SPELL_AURA_MASTERY.
Referenced by AuraEffect::HandleMastery(), and UpdateRating().
|
overridevirtual |
Implements Unit.
Definition at line 316 of file StatSystem.cpp.
References BASE_PCT, BASE_VALUE, Unit::GetCreateHealth(), Unit::GetFlatModifierValue(), GetHealthBonusFromStamina(), Unit::GetPctModifierValue(), Unit::SetMaxHealth(), TOTAL_PCT, TOTAL_VALUE, and UNIT_MOD_HEALTH.
Referenced by Create(), UpdateAllStats(), and UpdateStats().
|
overridevirtual |
Implements Unit.
Definition at line 338 of file StatSystem.cpp.
References AsUnderlyingType(), BASE_PCT, BASE_VALUE, Unit::GetCreatePowerValue(), Unit::GetFlatModifierValue(), Unit::GetPctModifierValue(), GetPowerIndex(), MAX_POWERS_PER_CLASS, Unit::SetMaxPower(), TOTAL_PCT, TOTAL_VALUE, and UNIT_MOD_POWER_START.
Referenced by UpdateAllStats().
| void Player::UpdateMeleeHitChances | ( | ) |
Definition at line 761 of file StatSystem.cpp.
References CR_HIT_MELEE, GetRatingBonusValue(), and Unit::m_modMeleeHitChance.
Referenced by UpdateRating().
|
protected |
Definition at line 700 of file Player.cpp.
References Unit::_lastLiquid, MirrorTimer::ClearChanged(), CONFIG_DISABLE_BREATHING, DAMAGE_DROWNING, DAMAGE_EXHAUSTED, DAMAGE_LAVA, EnvironmentalDamage(), MirrorTimer::ExpiredTicked, Unit::GetAuraEffectsByType(), Aura::GetDuration(), Aura::GetId(), Aura::GetMaxDuration(), Unit::GetMaxHealth(), MirrorTimer::GetMaxValue(), GetMirrorTimerMaxValue(), MirrorTimer::GetScale(), WorldSession::GetSecurity(), GetSession(), MirrorTimer::GetSpellId(), MirrorTimer::GetValue(), Unit::HasAuraType(), HasPlayerFlag(), IN_MILLISECONDS, MirrorTimer::IsActive(), Unit::IsAlive(), MirrorTimer::IsChanged(), MirrorTimer::IsPaused(), MirrorTimer::IsPausedChanged(), m_environmentalDamageTimer, m_MirrorTimerFlags, m_mirrorTimers, MIRROR_TIMER_BREATH, MIRROR_TIMER_FATIGUE, MIRROR_TIMER_FEIGN_DEATH, PauseMirrorTimer(), PLAYER_FLAGS_GHOST, RepopAtGraveyard(), SendMirrorTimer(), SPELL_AURA_FEIGN_DEATH, SPELL_AURA_FORCE_BREATH_BAR, LiquidTypeEntry::SpellID, MirrorTimer::Start(), MirrorTimer::Stop(), StopMirrorTimer(), sWorld, UNDERWATER_INDARKWATER, UNDERWATER_INLAVA, UNDERWATER_INWATER, MirrorTimer::Update(), and urand().
Referenced by Update().
| void Player::UpdateNextMailTimeAndUnreads | ( | ) |
Definition at line 2550 of file Player.cpp.
References GameTime::GetGameTime(), m_mail, m_nextMailDelivereTime, MAIL_CHECK_MASK_READ, and unReadMails.
Referenced by _LoadMail(), and WorldSession::HandleGetMailList().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 24772 of file Player.cpp.
References WorldObject::AddToNotify(), BaseEntity::IsInWorld(), NOTIFY_VISIBILITY_CHANGED, Unit::UpdateObjectVisibility(), and UpdateVisibilityForPlayer().
Referenced by Map::AddPlayerToMap(), AddQuest(), misc_commandscript::HandleAppearCommand(), debug_commandscript::HandleDebugAreaTriggersCommand(), gm_commandscript::HandleGMVisibleCommand(), WorldSession::HandleMoveInitActiveMoverComplete(), misc_commandscript::HandleSummonCommand(), KillPlayer(), quest_enhanced_combat_tactics::OnQuestStatusChange(), Map::PlayerRelocation(), RemoveActiveQuest(), RemoveRewardedQuest(), ResurrectPlayer(), RewardQuest(), SetGameMaster(), SetGroup(), SkipQuests(), and UpdateInvisibilityDrunkDetect().
| void Player::UpdateParryPercentage | ( | ) |
Definition at line 657 of file StatSystem.cpp.
References CalculateDiminishingReturns(), CanParry(), CONFIG_STATS_LIMITS_ENABLE, CONFIG_STATS_LIMITS_PARRY, CR_PARRY, Unit::GetClass(), GetRatingBonusValue(), Unit::GetTotalAuraModifier(), m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), parry_cap, UF::ActivePlayerData::ParryPercentage, BaseEntity::SetUpdateFieldStatValue(), SPELL_AURA_MOD_PARRY_PERCENT, and sWorld.
Referenced by AuraEffect::HandleAuraModParryPercent(), SetCanParry(), UpdateAllStats(), and UpdateRating().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 6142 of file Player.cpp.
References CheckAreaExplore(), GetGroup(), GROUP_UPDATE_FLAG_POSITION, SetGroupUpdateFlag(), and Unit::UpdatePosition().
Referenced by WorldSession::HandleMoveTeleportAck(), and TeleportTo().
|
inlineoverridevirtual |
Reimplemented from Unit.
Definition at line 2303 of file Player.h.
References Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), and UpdatePosition().
Referenced by UpdatePosition().
| void Player::UpdatePowerRegen | ( | Powers | power | ) |
Definition at line 847 of file StatSystem.cpp.
References AsUnderlyingType(), Unit::GetAuraEffectsByType(), Unit::GetClass(), PowerTypeEntry::GetFlags(), Unit::GetLevel(), AuraEffect::GetMiscValue(), GetPowerIndex(), Unit::GetTotalAuraModifierByMiscValue(), Unit::GetTotalAuraMultiplier(), Unit::GetTotalAuraMultiplierByMiscValue(), Unit::m_unitData, BaseEntity::m_values, MAX_POWERS_PER_CLASS, UF::UpdateFieldHolder::ModifyValue(), POWER_MANA, UF::UnitData::PowerRegenFlatModifier, PowerRegenInfo, UF::UnitData::PowerRegenInterruptedFlatModifier, RegenAffectedByHaste, PowerTypeEntry::RegenCombat, PowerTypeEntry::RegenPeace, sDB2Manager, BaseEntity::SetUpdateFieldValue(), sObjectMgr, SPELL_AURA_MOD_MANA_REGEN_PCT, SPELL_AURA_MOD_POWER_REGEN, SPELL_AURA_MOD_POWER_REGEN_PERCENT, SPELL_AURA_PREVENT_REGENERATE_POWER, and sWorld.
Referenced by ApplyManaRegenBonus(), AuraEffect::HandleAuraModRegenInterrupt(), AuraEffect::HandleAuraPreventRegeneratePower(), AuraEffect::HandleModManaRegenPct(), AuraEffect::HandleModPowerRegen(), UpdateAllStats(), and UpdateStats().
| void Player::UpdatePvP | ( | bool | state, |
| bool | override = false |
||
| ) |
Definition at line 24056 of file Player.cpp.
References PvPInfo::EndTimer, GameTime::GetGameTime(), pvpInfo, and SetPvP().
Referenced by Unit::AtTargetAttacked(), Spell::TargetInfo::DoDamageAndTriggers(), OPvPCapturePointNA::HandleCustomSpell(), WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandleSetPvP(), WorldSession::HandleTogglePvP(), InitPvP(), UpdatePvPFlag(), and UpdatePvPState().
| void Player::UpdatePvPFlag | ( | time_t | currTime | ) |
Definition at line 21976 of file Player.cpp.
References PvPInfo::EndTimer, PvPInfo::IsHostile, Unit::IsPvP(), PLAYER_FLAGS_PVP_TIMER, pvpInfo, RemovePlayerFlag(), and UpdatePvP().
Referenced by Update().
| void Player::UpdatePvPState | ( | bool | onlyFFA = false | ) |
Definition at line 24013 of file Player.cpp.
References PvPInfo::EndTimer, GameTime::GetGameTime(), Unit::HasAuraType(), HasPlayerFlag(), Unit::IsFFAPvP(), IsGameMaster(), PvPInfo::IsHostile, PvPInfo::IsInFFAPvPArea, PvPInfo::IsInNoPvPArea, Unit::IsPvP(), Unit::m_Controlled, PLAYER_FLAGS_IN_PVP, pvpInfo, Unit::RemovePvpFlag(), Unit::SetPvpFlag(), SPELL_AURA_SET_FFA_PVP, sWorld, UNIT_BYTE2_FLAG_FFA_PVP, and UpdatePvP().
Referenced by AddQuest(), Spell::EffectQuestClear(), AuraEffect::HandleModOverrideZonePVPType(), WorldSession::HandleQuestLogRemoveQuest(), quest_commandscript::HandleQuestRemove(), AuraEffect::HandleSetFFAPvP(), RewardQuest(), Unit::SetCharm(), SkipQuests(), UpdateArea(), and UpdateZone().
| void Player::UpdateQuestObjectiveProgress | ( | QuestObjectiveType | objectiveType, |
| int32 | objectId, | ||
| int64 | addCount, | ||
| ObjectGuid | victimGuid = ObjectGuid::Empty, |
||
| std::vector< QuestObjective const * > * | updatedObjectives = nullptr, |
||
| std::function< bool(QuestObjective const *)> const * | objectiveFilter = nullptr |
||
| ) |
Definition at line 16704 of file Player.cpp.
References ABORT_MSG, QuestObjective::Amount, AsUnderlyingType(), QuestObjective::CanAlwaysBeProgressedInRaid(), CanCompleteQuest(), CastSpell, CompleteQuest, QuestObjective::CompletionEffect, QuestObjectiveAction::ConversationId, Conversation::CreateConversation(), QuestObjective::Flags, QuestObjective::Flags2, QuestObjectiveAction::GameEventId, WorldObject::GetAreaId(), ObjectAccessor::GetCreatureOrPetOrVehicle(), GetCurrencyQuantity(), GetDifficultyID(), GetEffectiveTeam(), ObjectAccessor::GetGameObject(), GetGroup(), BaseEntity::GetGUID(), WorldObject::GetMap(), GetMoney(), Quest::GetObjectives(), ObjectAccessor::GetPlayer(), Position::GetPosition(), GetQuestSlotObjectiveData(), ReputationMgr::GetReputation(), GetReputationMgr(), GetSpawnTrackingStateByObjectives(), WorldObject::GetZoneId(), Quest::HasFlagEx(), SpawnData::id, QuestObjective::ID, IncompleteQuest(), Quest::IsAllowedInRaid(), ObjectGuid::IsCreatureOrVehicle(), ObjectGuid::IsEmpty(), ObjectGuid::IsGameObject(), IsQuestObjectiveCompletable(), IsQuestObjectiveComplete(), IsQuestObjectiveProgressBarComplete(), Group::isRaidGroup(), QuestObjective::IsStoringFlag(), QuestObjective::IsStoringValue(), m_questObjectiveStatus, Trinity::Containers::MapEqualRange(), WorldPackets::Quest::SpawnTrackingResponseInfo::ObjectID, PhasingHandler::OnConditionChange(), SpawnData::phaseGroup, WorldPackets::Quest::SpawnTrackingResponseInfo::PhaseGroupID, SpawnData::phaseId, WorldPackets::Quest::SpawnTrackingResponseInfo::PhaseID, SpawnData::phaseUseFlags, WorldPackets::Quest::SpawnTrackingResponseInfo::PhaseUseFlags, QUEST_FLAGS_EX_NO_CREDIT_FOR_PROXY, QUEST_OBJECTIVE_CURRENCY, QUEST_OBJECTIVE_FLAG_2_QUEST_BOUND_ITEM, QUEST_OBJECTIVE_FLAG_HIDE_CREDIT_MSG, QUEST_OBJECTIVE_FLAG_KILL_PLAYERS_SAME_FACTION, QUEST_OBJECTIVE_FLAG_OPTIONAL, QUEST_OBJECTIVE_FLAG_PART_OF_PROGRESS_BAR, QUEST_OBJECTIVE_GAMEOBJECT, QUEST_OBJECTIVE_ITEM, QUEST_OBJECTIVE_LEARNSPELL, QUEST_OBJECTIVE_MAX_REPUTATION, QUEST_OBJECTIVE_MIN_REPUTATION, QUEST_OBJECTIVE_MONEY, QUEST_OBJECTIVE_MONSTER, QUEST_OBJECTIVE_PLAYERKILLS, QUEST_OBJECTIVE_PROGRESS_BAR, QUEST_OBJECTIVE_TALKTO, QUEST_OBJECTIVE_WINPETBATTLEAGAINSTNPC, QUEST_STATUS_COMPLETE, SendDirectMessage(), SendQuestUpdateAddCredit(), SendQuestUpdateAddCreditSimple(), SendQuestUpdateAddPlayer(), SetQuestObjectiveData(), sObjectMgr, SPAWN_TYPE_CREATURE, SPAWN_TYPE_GAMEOBJECT, SpawnMetadata::spawnTrackingData, SpawnTrackingTemplateData::SpawnTrackingId, WorldPackets::Quest::SpawnTrackingResponseInfo::SpawnTrackingID, QuestStatusData::SpawnTrackingList, SpawnMetadata::spawnTrackingQuestObjectives, WorldPackets::Quest::QuestPOIUpdateResponse::SpawnTrackingResponses, SpawnMetadata::spawnTrackingStates, QuestObjectiveAction::SpellId, QuestObjective::StorageIndex, SpawnMetadata::ToSpawnData(), GameEvents::Trigger(), QuestObjective::Type, UpdateAreaDependentAuras(), QuestObjectiveAction::UpdatePhaseShift, UpdateVisibleObjectInteractions(), QuestObjectiveAction::UpdateZoneAuras, UpdateZoneDependentAuras(), WorldPackets::Quest::SpawnTrackingResponseInfo::Visible, and WorldPackets::Quest::QuestPOIUpdateResponse::Write().
Referenced by quest_commandscript::CompleteObjective(), CurrencyChanged(), Spell::EffectKillCreditLabel(), quest_taming_the_wilds::HandleQuestStatusChange(), ItemAddedQuestCheck(), KillCreditCriteriaTreeObjective(), KillCreditGO(), KilledMonster(), KilledMonsterCredit(), KilledPlayerCredit(), LearnSpell(), MoneyChanged(), ReputationChanged(), and TalkedToCreature().
| void Player::UpdateRangedHitChances | ( | ) |
Definition at line 766 of file StatSystem.cpp.
References CR_HIT_RANGED, GetRatingBonusValue(), and Unit::m_modRangedHitChance.
Referenced by UpdateRating().
| void Player::UpdateRating | ( | CombatRating | cr | ) |
Definition at line 5221 of file Player.cpp.
References Unit::ApplyAttackTimePercentMod(), Unit::ApplyCastTimePercentMod(), Unit::ApplyHasteRegenPercentMod(), ApplyRatingDiminishing(), Unit::ApplySpellHastePercentMod(), BASE_ATTACK, CalculatePct(), Unit::CanModifyStats(), UF::ActivePlayerData::CombatRatings, CR_AMPLIFY, CR_ARMOR_PENETRATION, CR_AVOIDANCE, CR_BLOCK, CR_CLEAVE, CR_CORRUPTION, CR_CORRUPTION_RESISTANCE, CR_CRIT_MELEE, CR_CRIT_RANGED, CR_CRIT_SPELL, CR_DEFENSE_SKILL, CR_DODGE, CR_EXPERTISE, CR_HASTE_MELEE, CR_HASTE_RANGED, CR_HASTE_SPELL, CR_HIT_MELEE, CR_HIT_RANGED, CR_HIT_SPELL, CR_LIFESTEAL, CR_MASTERY, CR_PARRY, CR_PVP_POWER, CR_RESILIENCE_CRIT_TAKEN, CR_RESILIENCE_PLAYER_DAMAGE, CR_SPEED, CR_STURDINESS, CR_UNUSED_12, CR_UNUSED_7, CR_VERSATILITY_DAMAGE_DONE, CR_VERSATILITY_DAMAGE_TAKEN, CR_VERSATILITY_HEALING_DONE, Unit::GetAuraEffectsByType(), GetRatingMultiplier(), Unit::GetTotalAuraMultiplier(), m_activePlayerData, m_baseRatingValue, BaseEntity::m_values, MAX_COMBAT_RATING, UF::UpdateFieldHolder::ModifyValue(), OFF_ATTACK, RANGED_ATTACK, BaseEntity::SetUpdateFieldValue(), SPELL_AURA_CONVERT_CRIT_RATING_PCT_TO_PARRY_RATING, SPELL_AURA_MOD_COMBAT_RATING_FROM_COMBAT_RATING, SPELL_AURA_MOD_RATING_PCT, UpdateArmorPenetration(), UpdateBlockPercentage(), UpdateCorruption(), UpdateCritPercentage(), UpdateDodgePercentage(), UpdateExpertise(), UpdateHealingDonePercentMod(), UpdateMastery(), UpdateMeleeHitChances(), UpdateParryPercentage(), UpdateRangedHitChances(), UpdateRating(), UpdateSpellCritChance(), UpdateSpellHitChances(), and UpdateVersatilityDamageDone().
Referenced by ApplyRatingMod(), AuraEffect::HandleConvertCritToParry(), AuraEffect::HandleModRatingPct(), UpdateAllRatings(), and UpdateRating().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 241 of file StatSystem.cpp.
References GetPet(), SPELL_SCHOOL_NORMAL, UpdateArmor(), Unit::UpdateResistances(), and Guardian::UpdateResistances().
Definition at line 13768 of file Player.cpp.
References ApplyEnchantment(), Item::GetEnchantmentId(), m_items, MAX_ENCHANTMENT_SLOT, PRISMATIC_ENCHANTMENT_SLOT, REAGENT_BAG_SLOT_END, SpellItemEnchantmentEntry::RequiredSkillID, SpellItemEnchantmentEntry::RequiredSkillRank, SOCK_ENCHANTMENT_SLOT, SOCK_ENCHANTMENT_SLOT_2, SOCK_ENCHANTMENT_SLOT_3, and sSpellItemEnchantmentStore.
Referenced by SetSkill(), and UpdateSkillPro().
Definition at line 5529 of file Player.cpp.
References BaseEntity::GetGUID(), WorldObject::GetName(), Unit::GetRace(), GetSkillMaxRankByPos(), GetSkillRankByPos(), irand(), LearnSkillRewardedSpells(), mSkillStatus, SetSkillRank(), SKILL_CHANGED, SKILL_DELETED, SKILL_NEW, SkillRaised, TC_LOG_DEBUG, Position::ToString(), UpdateCriteria(), and UpdateSkillEnchantments().
Referenced by RewardQuest(), UpdateCraftSkill(), UpdateFishingSkill(), and UpdateGatherSkill().
| void Player::UpdateSkillsForLevel | ( | ) |
Definition at line 5606 of file Player.cpp.
References SkillRaceClassInfoEntry::Flags, Unit::GetClass(), Unit::GetMaxSkillValueForLevel(), Unit::GetRace(), GetSkillRangeType(), GetSkillRankByPos(), LearnSkillRewardedSpells(), mSkillStatus, sDB2Manager, SetSkillMaxRank(), SetSkillRank(), SKILL_CHANGED, SKILL_DELETED, SKILL_FLAG_ALWAYS_MAX_VALUE, SKILL_NEW, SKILL_RANGE_LEVEL, and SkillRaceClassInfoEntry::SkillID.
Referenced by GiveLevel(), InitStatsForLevel(), and LoadFromDB().
| void Player::UpdateSoulboundTradeItems | ( | ) |
Definition at line 13231 of file Player.cpp.
References Item::CheckSoulboundTradeExpire(), BaseEntity::GetGUID(), GetItemByGuid(), Item::GetOwnerGUID(), and m_itemSoulboundTradeable.
Referenced by Update().
| void Player::UpdateSpeakTime | ( | ChatFloodThrottle::Index | index | ) |
Definition at line 21724 of file Player.cpp.
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, Count, GameTime::GetGameTime(), GetSession(), m_chatFloodData, WorldSession::m_muteTime, rbac::RBAC_PERM_SKIP_CHECK_CHAT_SPAM, Player::ChatFloodThrottle::REGULAR, sWorld, and Time.
Referenced by WorldSession::HandleChatAddonMessage(), and WorldSession::HandleChatMessage().
| void Player::UpdateSpellCritChance | ( | ) |
Definition at line 717 of file StatSystem.cpp.
References CR_CRIT_SPELL, GetRatingBonusValue(), Unit::GetTotalAuraModifier(), m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::SetUpdateFieldValue(), SPELL_AURA_MOD_CRIT_PCT, SPELL_AURA_MOD_SPELL_CRIT_CHANCE, and UF::ActivePlayerData::SpellCritPercentage.
Referenced by AuraEffect::HandleAuraModCritPct(), AuraEffect::HandleModSpellCritChance(), UpdateAllStats(), UpdateRating(), and UpdateStats().
| void Player::UpdateSpellDamageAndHealingBonus | ( | ) |
Definition at line 171 of file StatSystem.cpp.
References Unit::GetAuraEffectsByType(), Unit::HasAuraType(), m_activePlayerData, BaseEntity::m_values, MAX_SPELL_SCHOOL, UF::ActivePlayerData::ModDamageDoneNeg, UF::ActivePlayerData::ModDamageDonePos, UF::ActivePlayerData::ModHealingDonePos, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::SetUpdateFieldStatValue(), BaseEntity::SetUpdateFieldValue(), SPELL_AURA_MOD_DAMAGE_DONE, SPELL_AURA_OVERRIDE_ATTACK_POWER_BY_SP_PCT, SPELL_SCHOOL_HOLY, SPELL_SCHOOL_MASK_ALL, Unit::SpellBaseDamageBonusDone(), Unit::SpellBaseHealingBonusDone(), and UpdateAttackPowerAndDamage().
Referenced by AuraEffect::HandleModHealingDone(), AuraEffect::HandleModSpellDamagePercentFromStat(), AuraEffect::HandleModSpellHealingPercentFromStat(), AuraEffect::HandleOverrideSpellPowerByAttackPower(), UpdateAllStats(), UpdateAttackPowerAndDamage(), and UpdateStats().
| void Player::UpdateSpellHitChances | ( | ) |
Definition at line 771 of file StatSystem.cpp.
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.
Definition at line 107 of file StatSystem.cpp.
References GetPet(), Unit::GetTotalStatValue(), POWER_MANA, Unit::SetStat(), STAT_AGILITY, STAT_INTELLECT, STAT_STAMINA, STAT_STRENGTH, UpdateAllCritPercentages(), UpdateArmor(), UpdateAttackPowerAndDamage(), UpdateDodgePercentage(), UpdateMaxHealth(), UpdatePowerRegen(), UpdateSpellCritChance(), UpdateSpellDamageAndHealingBonus(), Unit::UpdateStatBuffMod(), and Guardian::UpdateStats().
| void Player::UpdateTavernRestingState | ( | ) |
Definition at line 6346 of file Player.cpp.
References _restMgr, IsInAreaTrigger(), REST_FLAG_IN_TAVERN, and sAreaTriggerStore.
Referenced by WorldSession::HandleMovementOpcode(), and Heartbeat().
| void Player::UpdateTraitConfig | ( | WorldPackets::Traits::TraitConfig && | newConfig, |
| int32 | savedConfigId, | ||
| bool | withCastTime | ||
| ) |
Definition at line 29141 of file Player.cpp.
References _SaveActions(), ApplyTraitEntryChanges(), CastSpell, CharacterDatabase, Combat, TraitMgr::COMMIT_COMBAT_TRAIT_CONFIG_CHANGES_SPELL_ID, EnumFlag< T >::HasFlag(), HasSkill(), UF::TraitConfig::LocalIdentifier, m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), Profession, SetTraitConfigUseStarterBuild(), BaseEntity::SetUpdateFieldValue(), UF::TraitConfig::SkillLineID, SPELLVALUE_BASE_POINT0, StarterBuild, StartLoadingActionButtons(), UF::ActivePlayerData::TraitConfigs, and UF::TraitConfig::Type.
Referenced by Spell::EffectChangeActiveCombatTraitConfig(), WorldSession::HandleClassTalentsSetStarterBuildActive(), and WorldSession::HandleTraitsCommitConfig().
| bool Player::UpdateTransmogOutfit | ( | uint32 | id, |
| WorldPackets::Transmogrification::TransmogOutfitDataInfo const & | outfitData | ||
| ) |
Definition at line 31108 of file Player.cpp.
References AsUnderlyingType(), UF::TransmogOutfitDataInfo::Icon, WorldPackets::Transmogrification::TransmogOutfitDataInfo::Icon, m_activePlayerData, m_changedTransmogOutfits, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), UF::TransmogOutfitDataInfo::Name, WorldPackets::Transmogrification::TransmogOutfitDataInfo::Name, UF::TransmogOutfitData::OutfitInfo, UF::TransmogOutfitDataInfo::SetType, WorldPackets::Transmogrification::TransmogOutfitDataInfo::SetType, BaseEntity::SetUpdateFieldValue(), UF::TransmogOutfitDataInfo::SituationsEnabled, WorldPackets::Transmogrification::TransmogOutfitDataInfo::SituationsEnabled, and UF::ActivePlayerData::TransmogOutfits.
Referenced by WorldSession::HandleTransmogOutfitUpdateInfo().
| void Player::UpdateTransmogOutfitSituations | ( | uint32 | id, |
| bool | situationsEnabled, | ||
| std::span< WorldPackets::Transmogrification::TransmogOutfitSituationInfo const > | situations | ||
| ) |
Definition at line 31125 of file Player.cpp.
References BaseEntity::AddDynamicUpdateFieldValue(), BaseEntity::ClearDynamicUpdateFieldValues(), UF::TransmogOutfitSituationInfo::EquipmentSetID, UF::TransmogOutfitSituationInfo::LoadoutID, m_activePlayerData, m_changedTransmogOutfits, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), UF::TransmogOutfitData::OutfitInfo, BaseEntity::SetUpdateFieldValue(), UF::TransmogOutfitSituationInfo::SituationID, UF::TransmogOutfitData::Situations, UF::TransmogOutfitDataInfo::SituationsEnabled, UF::TransmogOutfitSituationInfo::SpecID, and UF::ActivePlayerData::TransmogOutfits.
Referenced by WorldSession::HandleTransmogOutfitUpdateSituations().
| void Player::UpdateTransmogOutfitSlots | ( | uint32 | id, |
| std::span< WorldPackets::Transmogrification::TransmogOutfitSlotData const > | slots | ||
| ) |
Definition at line 31146 of file Player.cpp.
References UF::TransmogOutfitSlotData::AppearanceDisplayType, AsUnderlyingType(), UF::TransmogOutfitSlotData::Flags, UF::TransmogOutfitSlotData::IllusionDisplayType, UF::TransmogOutfitSlotData::ItemModifiedAppearanceID, m_activePlayerData, m_changedTransmogOutfits, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::SetUpdateFieldValue(), UF::TransmogOutfitSlotData::SheatheCategory, UF::DynamicUpdateFieldBase< T >::size(), UF::TransmogOutfitSlotData::Slot, UF::TransmogOutfitSlotData::SlotOption, UF::TransmogOutfitData::Slots, UF::TransmogOutfitSlotData::SpellItemEnchantmentID, and UF::ActivePlayerData::TransmogOutfits.
Referenced by WorldSession::HandleTransmogOutfitUpdateSlots().
| void Player::UpdateTriggerVisibility | ( | ) |
Definition at line 24653 of file Player.cpp.
References UpdateData::BuildPacket(), BaseEntity::BuildValuesUpdateBlockForPlayer(), UF::UnitData::DisplayID, UF::ObjectData::DynamicFlags, UF::UnitData::Flags, UF::UnitData::Flags2, BaseEntity::ForceUpdateFieldChange(), Map::GetCreature(), Map::GetGameObject(), WorldObject::GetMap(), WorldLocation::GetMapId(), Unit::HasAuraType(), UpdateData::HasData(), Unit::HasUnitFlag2(), BaseEntity::IsInWorld(), Creature::IsTrigger(), Unit::IsUninteractible(), m_clientGUIDs, Object::m_objectData, Unit::m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), SendDirectMessage(), SPELL_AURA_TRANSFORM, and UNIT_FLAG2_UNTARGETABLE_BY_CLIENT.
Referenced by gm_commandscript::HandleGMOffCommand(), and gm_commandscript::HandleGMOnCommand().
| void Player::UpdateVersatilityDamageDone | ( | ) |
Definition at line 572 of file StatSystem.cpp.
References BASE_ATTACK, CLASS_HUNTER, CR_VERSATILITY_DAMAGE_DONE, Unit::GetClass(), m_activePlayerData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), RANGED_ATTACK, BaseEntity::SetUpdateFieldValue(), Unit::UpdateDamagePhysical(), and UF::ActivePlayerData::Versatility.
Referenced by UpdateRating().
| void Player::UpdateVisibilityForPlayer | ( | ) |
Definition at line 24787 of file Player.cpp.
References WorldObject::GetSightRange(), m_seer, Trinity::VisibleNotifier::SendToSelf(), and Cell::VisitAllObjects().
Referenced by WorldSession::HandleFarSightOpcode(), WorldSession::HandleMoveWorldportAck(), quest_northbound::HandleQuestStatusChange(), npc_leader_northbound::JustAppeared(), SendInitialPacketsAfterAddToMap(), and UpdateObjectVisibility().
| void Player::UpdateVisibilityOf | ( | T * | target, |
| UpdateData & | data, | ||
| std::set< WorldObject * > & | visibleNow | ||
| ) |
Definition at line 24728 of file Player.cpp.
References WorldObject::CanSeeOrDetect(), WorldObject::GetDistance(), BaseEntity::GetGUID(), HaveAtClient(), m_clientGUIDs, TC_LOG_DEBUG, and Position::ToString().
| void Player::UpdateVisibilityOf | ( | Trinity::IteratorPair< WorldObject ** > | targets | ) |
Definition at line 24547 of file Player.cpp.
References Trinity::IteratorPair< iterator, end_iterator >::begin(), UpdateData::BuildPacket(), Trinity::IteratorPair< iterator, end_iterator >::end(), WorldLocation::GetMapId(), UpdateData::HasData(), SendDirectMessage(), SendInitialVisiblePackets(), TYPEID_AREATRIGGER, TYPEID_CONVERSATION, TYPEID_CORPSE, TYPEID_DYNAMICOBJECT, TYPEID_GAMEOBJECT, TYPEID_PLAYER, TYPEID_SCENEOBJECT, TYPEID_UNIT, and UpdateVisibilityOf().
| void Player::UpdateVisibilityOf | ( | WorldObject * | target | ) |
Definition at line 24602 of file Player.cpp.
References BeforeVisibilityDestroy< Creature >(), BeforeVisibilityDestroy< GameObject >(), BeforeVisibilityDestroy< Player >(), WorldObject::CanSeeOrDetect(), BaseEntity::DestroyForPlayer(), WorldObject::GetDistance(), BaseEntity::GetGUID(), BaseEntity::GetTypeId(), HaveAtClient(), BaseEntity::IsDestroyedObject(), m_clientGUIDs, SendInitialVisiblePackets(), BaseEntity::SendOutOfRangeForPlayer(), BaseEntity::SendUpdateToPlayer(), TC_LOG_DEBUG, Object::ToCreature(), Object::ToGameObject(), Object::ToPlayer(), ObjectGuid::ToString(), Position::ToString(), TYPEID_GAMEOBJECT, TYPEID_PLAYER, and TYPEID_UNIT.
Referenced by GameObject::DespawnForPlayer(), Trinity::VisibleNotifier::SendToSelf(), SetViewpoint(), GameObject::Update(), UpdateVisibilityOf(), Trinity::PlayerRelocationNotifier::Visit(), Trinity::VisibleNotifier::Visit(), Trinity::PlayerRelocationNotifier::Visit(), and Trinity::CreatureRelocationNotifier::Visit().
| void Player::UpdateVisibleObjectInteractions | ( | bool | allUnits, |
| bool | onlySpellClicks, | ||
| bool | gameObjectQuestGiverStatus, | ||
| bool | questObjectiveGameObjects | ||
| ) |
Definition at line 25880 of file Player.cpp.
References UpdateData::BuildPacket(), GameObject::BuildValuesUpdateForPlayerWithMask(), Creature::BuildValuesUpdateForPlayerWithMask(), UF::ObjectData::DynamicFlags, GAMEOBJECT_TYPE_CHEST, GAMEOBJECT_TYPE_GATHERING_NODE, GAMEOBJECT_TYPE_GENERIC, GAMEOBJECT_TYPE_GOOBER, GAMEOBJECT_TYPE_QUESTGIVER, GAMEOBJECT_TYPE_SPELL_FOCUS, UF::HasChangesMask< Bits >::GetChangesMask(), GameObjectTemplate::GetConditionID1(), ObjectAccessor::GetCreatureOrPetOrVehicle(), Object::GetEntry(), ObjectAccessor::GetGameObject(), GameObject::GetGOInfo(), GameObject::GetGoType(), WorldLocation::GetMapId(), GetQuestDialogStatus(), Creature::GetSpawnId(), GameObject::GetSpawnId(), UpdateData::HasData(), Unit::HasNpcFlag(), UpdateMask< Bits >::IsAnySet(), Unit::IsQuestGiver(), m_clientGUIDs, m_questObjectiveStatus, Unit::m_unitData, UF::HasChangesMask< Bits >::MarkChanged(), UF::UnitData::NpcFlags, UF::UnitData::NpcFlags2, WorldPackets::Quest::QuestGiverStatusMultiple::QuestGiver, sConditionMgr, SendDirectMessage(), sObjectMgr, SPAWN_TYPE_CREATURE, SPAWN_TYPE_GAMEOBJECT, SpawnMetadata::spawnTrackingData, SpawnMetadata::spawnTrackingQuestObjectives, UF::GameObjectData::SpawnTrackingStateAnimID, UF::GameObjectData::SpawnTrackingStateAnimKitID, UF::UnitData::StateAnimID, UF::UnitData::StateAnimKitID, UF::UnitData::StateSpellVisualID, UF::GameObjectData::StateSpellVisualID, UF::UnitData::StateWorldEffectIDs, UF::GameObjectData::StateWorldEffectIDs, UF::UnitData::StateWorldEffectsQuestObjectiveID, UF::GameObjectData::StateWorldEffectsQuestObjectiveID, UNIT_NPC_FLAG_SPELLCLICK, and WorldPackets::Quest::QuestGiverStatusMultiple::Write().
Referenced by Group::AddMember(), Group::Disband(), Spell::EffectUpdateInteractions(), WorldSession::HandleAreaTriggerOpcode(), ItemRemovedQuestCheck(), Group::RemoveMember(), SendQuestUpdate(), SkipQuests(), and UpdateQuestObjectiveProgress().
| void Player::UpdateWarModeAuras | ( | ) |
Definition at line 31004 of file Player.cpp.
References CanEnableWarModeInArea(), CastSpell, HasPlayerFlag(), IsWarModeDesired(), PLAYER_FLAGS_IN_PVP, PLAYER_FLAGS_WAR_MODE_ACTIVE, Unit::RemoveAurasDueToSpell(), Unit::RemoveAurasWithInterruptFlags(), RemovePlayerFlag(), Unit::RemovePvpFlag(), SetPlayerFlag(), Unit::SetPvpFlag(), SetWarModeLocal(), UNIT_BYTE2_FLAG_PVP, WARMODE_ENLISTED_SPELL_OUTSIDE, and WarModeLeave.
Referenced by SetWarModeDesired(), and UpdateZone().
| void Player::UpdateWeaponDependentAuras | ( | WeaponAttackType | attackType | ) |
Definition at line 8268 of file Player.cpp.
References UpdateDamageDoneMods(), Unit::UpdateDamagePctDoneMods(), and UpdateWeaponDependentCritAuras().
Referenced by _ApplyAllItemMods(), _ApplyItemMods(), and AuraEffect::HandleAuraModDisarm().
| void Player::UpdateWeaponDependentCritAuras | ( | WeaponAttackType | attackType | ) |
Definition at line 8231 of file Player.cpp.
References ABORT, BASE_ATTACK, CheckAttackFitToAuraRequirement(), CRIT_PERCENTAGE, Unit::GetTotalAuraModifier(), OFF_ATTACK, OFFHAND_CRIT_PERCENTAGE, RANGED_ATTACK, RANGED_CRIT_PERCENTAGE, SetBaseModFlatValue(), SPELL_AURA_MOD_CRIT_PCT, and SPELL_AURA_MOD_WEAPON_CRIT_PERCENT.
Referenced by UpdateAllWeaponDependentCritAuras(), and UpdateWeaponDependentAuras().
Definition at line 7492 of file Player.cpp.
References _restMgr, WorldPackets::Vignette::VignetteUpdate::Added, AutoUnequipOffhandIfNeed(), Vignettes::CanSee(), CONFIG_WEATHER, DestroyZoneLimitedItem(), EnterTopLevelArea, AreaTableEntry::GetFlags(), AreaTableEntry::GetFlags2(), GetGroup(), GetGuild(), Map::GetInfiniteAOIVignettes(), WorldObject::GetMap(), Map::GetOrGenerateZoneDefaultWeather(), GetPet(), GROUP_UPDATE_FULL, GROUP_UPDATE_PET_FULL, GUILD_MEMBER_DATA_ZONEID, WorldPackets::Vignette::VignetteDataSet::IDs, Unit::IsAlive(), PvPInfo::IsHostile, PvPInfo::IsInNoPvPArea, BaseEntity::IsInWorld(), AreaTableEntry::IsSanctuary(), LeaveTopLevelArea, LinkedChat, m_zoneUpdateId, pvpInfo, WorldPackets::Vignette::VignetteUpdate::Removed, REST_FLAG_IN_CITY, sAreaTableStore, sBattlefieldMgr, SendDirectMessage(), SendInitWorldStates(), Map::SendZoneDynamicInfo(), SetGroupUpdateFlag(), sOutdoorPvPMgr, sScriptMgr, sWorld, UpdateArea(), UpdateCriteria(), UpdateHostileAreaState(), UpdateLocalChannels(), Map::UpdatePlayerZoneStats(), UpdatePvPState(), UpdateWarModeAuras(), UpdateZoneDependentAuras(), UseSubzoneForChatChannel, WorldPackets::Vignette::VignetteUpdate::Write(), and ZoneInfiniteAOI.
Referenced by WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAck(), Map::RemovePlayerFromMap(), ResurrectPlayer(), SendInitialPacketsAfterAddToMap(), and UpdateZoneAndAreaId().
| void Player::UpdateZoneAndAreaId | ( | ) |
Definition at line 6324 of file Player.cpp.
References WorldObject::GetZoneAndAreaId(), m_areaUpdateId, m_zoneUpdateId, UpdateArea(), and UpdateZone().
Referenced by WorldSession::HandleMovementOpcode(), and Heartbeat().
| void Player::UpdateZoneDependentAuras | ( | uint32 | zone_id | ) |
Definition at line 26477 of file Player.cpp.
References CastSpell, HasAura, SPELL_AREA_FLAG_AUTOCAST, and sSpellMgr.
Referenced by UpdateQuestObjectiveProgress(), and UpdateZone().
| void Player::VehicleSpellInitialize | ( | ) |
Definition at line 22483 of file Player.cpp.
References WorldPackets::Pet::PetSpells::_CreatureFamily, WorldPackets::Pet::PetSpells::ActionButtons, WorldObject::CastSpell(), COMMAND_FOLLOW, WorldPackets::Pet::PetSpells::CommandState, WorldPackets::Pet::PetSpells::Flag, GetDifficultyID(), Object::GetEntry(), BaseEntity::GetGUID(), WorldObject::GetMap(), WorldObject::GetName(), Creature::GetReactState(), Unit::GetSpellHistory(), TempSummon::GetTimer(), Unit::GetVehicleCreatureBase(), SpellInfo::HasAttribute(), SpellInfo::Id, SpellInfo::IsPassive(), Unit::IsSummon(), Creature::m_spells, MAKE_UNIT_ACTION_BUTTON, MAX_CREATURE_SPELLS, MAX_SPELL_CONTROL_BAR, WorldPackets::Pet::PetSpells::PetGUID, WorldPackets::Pet::PetSpells::ReactState, sConditionMgr, SendDirectMessage(), WorldPackets::Pet::PetSpells::Specialization, SPELL_ATTR5_NOT_AVAILABLE_WHILE_CHARMED, sSpellMgr, TC_LOG_DEBUG, WorldPackets::Pet::PetSpells::TimeLimit, Object::ToCreature(), Position::ToString(), Unit::ToTempSummon(), WorldPackets::Pet::PetSpells::Write(), and SpellHistory::WritePacket().
Referenced by WorldSession::HandleRequestPetInfo(), and Unit::SetCharmedBy().
Definition at line 11873 of file Player.cpp.
References CollectionMgr::AddItemAppearance(), BIND_ON_ACQUIRE, BIND_ON_EQUIP, BIND_QUEST, EQUIPMENT_SLOT_END, Item::GetBonding(), WorldSession::GetCollectionMgr(), Object::GetEntry(), BaseEntity::GetGUID(), WorldObject::GetName(), GetSession(), BaseEntity::IsInWorld(), ITEM_CHANGED, m_items, Item::SetBinding(), Item::SetContainedIn(), Item::SetContainer(), SetInvSlot(), Item::SetOwnerGUID(), Item::SetSlot(), Item::SetState(), SetVisibleItemSlot(), TC_LOG_DEBUG, and Position::ToString().
Referenced by EquipItem(), and QuickEquipItem().
|
overridevirtual |
Handles whispers from Addons and players based on sender, receiver's guid and language.
Reimplemented from Unit.
Definition at line 22326 of file Player.cpp.
References ASSERT, autoReplyMsg, CHAT_MSG_WHISPER, CHAT_MSG_WHISPER_INFORM, WorldObject::GetName(), GetSession(), WorldPackets::Chat::Chat::Initialize(), isAcceptWhispers(), isAFK(), isDND(), IsGameMaster(), LANG_ADDON, LANG_COMMAND_WHISPERON, LANG_PLAYER_AFK, LANG_PLAYER_DND, LANG_UNIVERSAL, ChatHandler::PSendSysMessage(), SendDirectMessage(), ChatHandler::SendSysMessage(), SetAcceptWhispers(), sScriptMgr, and WorldPackets::Chat::Chat::Write().
Referenced by WorldSession::HandleChatMessage().
Reimplemented from Unit.
Definition at line 22362 of file Player.cpp.
References CHAT_MSG_WHISPER, DB2Manager::GetBroadcastTextValue(), Unit::GetGender(), GetSession(), WorldSession::GetSessionDbLocaleIndex(), WorldPackets::Chat::Chat::Initialize(), LANG_UNIVERSAL, sBroadcastTextStore, SendDirectMessage(), TC_LOG_ERROR, and WorldPackets::Chat::Chat::Write().
| void Player::WhisperAddon | ( | std::string const & | text, |
| std::string const & | prefix, | ||
| bool | isLogged, | ||
| Player * | receiver | ||
| ) |
Definition at line 22308 of file Player.cpp.
References CHAT_MSG_WHISPER, DEFAULT_LOCALE, GetSession(), WorldPackets::Chat::Chat::Initialize(), WorldSession::IsAddonRegistered(), LANG_ADDON, LANG_ADDON_LOGGED, SendDirectMessage(), sScriptMgr, and WorldPackets::Chat::Chat::Write().
Referenced by WorldSession::HandleChatAddonMessage().
|
overridevirtual |
Handles yelled message in regular chat based on declared language and in config pre-defined Range.
Reimplemented from Unit.
Definition at line 22285 of file Player.cpp.
References CHAT_MSG_YELL, CONFIG_LISTEN_RANGE_YELL, SendChatMessageToSetInRange(), sScriptMgr, and sWorld.
Referenced by WorldSession::HandleChatMessage().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 22293 of file Player.cpp.
References CHAT_MSG_YELL, CONFIG_LISTEN_RANGE_YELL, and sWorld.
|
friend |
Definition at line 1310 of file Item.cpp.
Referenced by MoveItemFromInventory(), and SellItemToVendor().
|
friend |
|
private |
|
private |
|
private |
Definition at line 3408 of file Player.h.
Referenced by SetAreaSpiritHealer().
|
private |
Definition at line 3336 of file Player.h.
Referenced by Player(), SendCinematicStart(), and Update().
|
private |
Definition at line 3397 of file Player.h.
Referenced by CreateCorpse(), LoadCorpse(), RemovedInsignia(), and SpawnCorpseBones().
|
protected |
Definition at line 3326 of file Player.h.
Referenced by _LoadCUFProfiles(), _SaveCUFProfiles(), and Player().
|
protected |
Definition at line 3208 of file Player.h.
Referenced by _LoadCurrency(), _SaveCurrency(), GetCurrencyIncreasedCapQuantity(), GetCurrencyQuantity(), GetCurrencyTrackedQuantity(), GetCurrencyWeeklyQuantity(), HasCurrency(), IncreaseCurrencyCap(), ModifyCurrency(), ResetCurrencyWeekCap(), SendCurrencies(), SetCreateCurrency(), and SetCurrencyFlagsFromClient().
|
protected |
Definition at line 3316 of file Player.h.
Referenced by _LoadEquipmentSets(), _LoadTransmogCustomSets(), _SaveEquipmentSets(), DeleteEquipmentSet(), SendEquipmentSetList(), and SetEquipmentSet().
|
private |
Definition at line 3389 of file Player.h.
Referenced by CreateGarrison(), DailyReset(), DeleteGarrison(), LoadFromDB(), SaveToDB(), and SendInitialPacketsAfterAddToMap().
|
private |
Definition at line 3384 of file Player.h.
Referenced by ConfirmPendingBind(), SetPendingBind(), and Update().
|
private |
Definition at line 3385 of file Player.h.
Referenced by SetPendingBind(), and Update().
|
private |
Definition at line 3418 of file Player.h.
Referenced by CancelPendingCastRequest(), CanExecutePendingSpellCastRequest(), ExecutePendingSpellCastRequest(), and RequestSpellCast().
|
private |
Definition at line 3423 of file Player.h.
Referenced by _SavePlayerData(), and SetDataElementCharacter().
|
private |
Definition at line 3424 of file Player.h.
Referenced by _SavePlayerData(), and SetDataFlagCharacter().
|
private |
Definition at line 3405 of file Player.h.
Referenced by GiveXP(), LoadFromDB(), Player(), RewardHonor(), SaveToDB(), Update(), UpdateArea(), UpdateTavernRestingState(), and UpdateZone().
|
protected |
Definition at line 3254 of file Player.h.
Referenced by ResurrectUsingRequestData(), ResurrectUsingRequestDataImpl(), and SetResurrectRequestData().
|
protected |
|
private |
Definition at line 3407 of file Player.h.
Referenced by Player(), and UpdateItemLevelAreaBasedScaling().
| std::string Player::autoReplyMsg |
Definition at line 1270 of file Player.h.
Referenced by WorldSession::HandleChatMessageAFKOpcode(), WorldSession::HandleChatMessageDNDOpcode(), and Whisper().
| std::unique_ptr<DuelInfo> Player::duel |
Definition at line 2126 of file Player.h.
Referenced by Unit::_ExitVehicle(), Unit::AtTargetAttacked(), CheckDuelDistance(), Unit::DealDamage(), DuelComplete(), Spell::EffectDuel(), WorldObject::GetReactionTo(), WorldSession::HandleCanDuel(), WorldSession::HandleDuelAccepted(), WorldSession::HandleDuelCancelled(), IsAlwaysDetectableFor(), WorldObject::IsValidAssistTarget(), WorldObject::IsValidAttackTarget(), achievement_tilted::OnCheck(), SetContestedPvP(), TeleportTo(), UpdateArea(), and UpdateDuelFlag().
|
private |
| bool Player::isDebugAreaTriggers |
Definition at line 2850 of file Player.h.
Referenced by WorldSession::HandleAreaTriggerOpcode(), debug_commandscript::HandleDebugAreaTriggersCommand(), Player(), AreaTrigger::SearchUnitInBoundedPlane(), AreaTrigger::SearchUnitInBox(), AreaTrigger::SearchUnitInCylinder(), AreaTrigger::SearchUnitInDisk(), and AreaTrigger::SearchUnitInPolygon().
| std::vector<ItemSetEffect*> Player::ItemSetEff |
Definition at line 2557 of file Player.h.
Referenced by AddItemsSetItem(), RemoveItemsSetItem(), UpdateItemSetAuras(), and ~Player().
|
private |
Definition at line 3378 of file Player.h.
Referenced by CompletedAchievement(), FailCriteria(), GetAchievementPoints(), GetCompletedAchievementIds(), HasAchieved(), LoadFromDB(), ModifierTreeSatisfied(), Player(), ResetAchievements(), SaveToDB(), SendInitialPacketsBeforeAddToMap(), SendRespondInspectAchievements(), StartCriteria(), Update(), and UpdateCriteria().
|
protected |
Definition at line 3237 of file Player.h.
Referenced by _LoadActions(), _SaveActions(), AddActionButton(), GetActionButton(), RemoveActionButton(), SendActionButtons(), and SetTraitConfigUseSharedActionBars().
| UF::UpdateField<UF::ActivePlayerData, int32(WowCS::EntityFragment::CGObject), TYPEID_ACTIVE_PLAYER> Player::m_activePlayerData |
Definition at line 3048 of file Player.h.
Referenced by _ApplyItemBonuses(), _LoadCharacterBankTabSettings(), _LoadDailyQuestStatus(), _LoadPlayerData(), _LoadSkills(), _LoadTraits(), _LoadTransmogOutfits(), _SaveActions(), _SaveCharacterBankTabSettings(), _SaveCharacterSelectOutfit(), _SaveDailyQuestStatus(), _SavePlayerData(), _SaveStats(), _SaveTransmogOutfits(), ActivateTalentGroup(), AddAuraVision(), AddConditionalTransmog(), AddExploredZones(), AddHeirloom(), AddHonorXP(), AddIllusionBlock(), AddIllusionFlag(), AddItemToBuyBackSlot(), AddPetToUpdateFields(), AddSelfResSpell(), AddSpellCategoryCooldownMod(), AddSpellMod(), AddToy(), AddTraitConfig(), AddTransmogBlock(), AddTransmogFlag(), AddUnlockedTransmogOutfits(), AddWarbandScenesBlock(), AddWarbandScenesFlag(), ApplyModDamageDoneNeg(), ApplyModDamageDonePercent(), ApplyModDamageDonePos(), ApplyModOverrideAPBySpellPowerPercent(), ApplyModOverrideSpellPowerByAPPercent(), ApplyModTargetPhysicalResistance(), ApplyModTargetResistance(), ApplySpellPowerBonus(), ApplyTraitEntryChanges(), BuildValuesCreate(), BuildValuesUpdate(), BuildValuesUpdateForPlayerWithMask(), spell_mage_improved_combustion::CalcAmount(), RestMgr::CalcExtraPerSec(), CalcPPMCritMod(), CanAlwaysSee(), CanBankItem(), CanNoReagentCast(), CanSellItemToVendor(), CheckAreaExplore(), CollectionMgr::CheckHeirloomUpgrades(), ClearSelfResSpell(), ClearValuesChangesMask(), Create(), CreateTraitConfig(), CreateTransmogOutfit(), DailyReset(), DeletePetFromDB(), DeleteTraitConfig(), Spell::EffectCreateTraitTreeConfig(), EquipTransmogOutfit(), FindEmptyProfessionSlotFor(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), GetBlockPercent(), GetChatFlags(), GetDataElementAccount(), GetDataElementCharacter(), GetExpertiseDodgeOrParryReduction(), TransmogMgr::GetNextOutfitToUnlock(), GetProfessionSlotFor(), GetPvpInfoForBracket(), GetRatingBonusValue(), GetStableMaster(), GetTraitConfig(), GetViewpoint(), GiveLevel(), WorldSession::HandleBattlePetSummon(), WorldSession::HandleBuybackItem(), WorldSession::HandleChangeBagSlotFlag(), WorldSession::HandleClassTalentsRequestNewConfig(), WorldSession::HandleClassTalentsSetStarterBuildActive(), WorldSession::HandleFarSightOpcode(), WorldSession::HandleInspectOpcode(), WorldSession::HandleOpeningCinematic(), WorldSession::HandleSelfResOpcode(), WorldSession::HandleTransmogOutfitUpdateSituations(), WorldSession::HandleTransmogOutfitUpdateSlots(), WorldSession::HandleUpdateBankTabSettings(), HasDataFlagAccount(), HasDataFlagCharacter(), HasExploredZone(), HasTitle(), WorldPackets::Query::PlayerGuidLookupData::Initialize(), InitStatsForLevel(), Guardian::InitStatsForLevel(), InitTalentForLevel(), IsDailyQuestDone(), IsMaxLevel(), ConditionMgr::IsPlayerMeetingCondition(), IsQuestCompletedBitSet(), LearnTalent(), LoadFromDB(), CriteriaHandler::ModifierSatisfied(), outDebugValues(), RemoveAuraVision(), RemoveBagSlotFlag(), RemoveConditionalTransmog(), RemoveExploredZones(), RemovePet(), RemovePlayerLocalFlag(), RemoveSelfResSpell(), RemoveSpellCategoryCooldownMod(), RemoveTrackCreatureFlag(), RenameTraitConfig(), ReplaceAllBagSlotFlags(), ReplaceAllPlayerLocalFlags(), ReplaceAllRequiredMountCapabilityFlags(), ResetHonorStats(), RewardHonor(), SatisfyQuestDay(), SaveToDB(), SetAccountBankTabCount(), SetAccountBankTabSettings(), SetActiveCombatTraitConfigID(), SetBackpackAutoSortDisabled(), SetBackpackSellJunkDisabled(), SetBagSlotFlag(), SetBankAutoSortDisabled(), SetBankBagSlotCount(), SetBuybackPrice(), SetBuybackTimestamp(), SetCharacterBankTabCount(), SetCharacterBankTabSettings(), SetDailyQuestStatus(), SetDataElementAccount(), SetDataElementCharacter(), SetDataFlagAccount(), SetDataFlagCharacter(), SetFreePrimaryProfessions(), SetHeirloom(), SetHeirloomFlags(), SetInventorySlotCount(), SetInvSlot(), SetKnownTitles(), SetLootSpecId(), SetModDamageDonePercent(), SetMoney(), SetMultiActionBars(), SetNoRegentCostMask(), SetNumRespecs(), SetOverrideSpellsId(), SetOverrideZonePVPType(), SetPetSpellPower(), SetPlayerLocalFlag(), SetQuestCompletedBit(), SetRequiredMountCapabilityFlag(), RestMgr::SetRestBonus(), SetRestState(), SetRestThreshold(), SetSkill(), SetSkillLineId(), SetSkillMaxRank(), SetSkillPermBonus(), SetSkillRank(), SetSkillStartingRank(), SetSkillStep(), SetSkillTempBonus(), SetStableMaster(), SetSummonedBattlePetGUID(), SetTitle(), SetTrackCreatureFlag(), SetTraitConfigUseSharedActionBars(), SetTraitConfigUseStarterBuild(), SetTransportServerTime(), SetVersatilityBonus(), SetViewpoint(), SetVisibleItemSlot(), SetWatchedFactionIndex(), SetXP(), Unit::SpellBaseDamageBonusDone(), StartLoadingActionButtons(), UpdateArmorPenetration(), Guardian::UpdateAttackPowerAndDamage(), UpdateAttackPowerAndDamage(), UpdateBlockPercentage(), CriteriaHandler::UpdateCriteria(), UpdateCritPercentage(), UpdateDodgePercentage(), UpdateExpertise(), UpdateHealingDonePercentMod(), UpdateHonorFields(), UpdateHonorNextLevel(), UpdateMastery(), UpdateParryPercentage(), UpdateRating(), UpdateSpellCritChance(), UpdateSpellDamageAndHealingBonus(), UpdateTraitConfig(), UpdateTransmogOutfit(), UpdateTransmogOutfitSituations(), UpdateTransmogOutfitSlots(), UpdateVersatilityDamageDone(), and CollectionMgr::UpgradeHeirloom().
|
private |
Definition at line 3401 of file Player.h.
Referenced by WorldSession::DoLootRelease(), GetLootByWorldObjectGUID(), and SendLoot().
|
protected |
Definition at line 3279 of file Player.h.
Referenced by Player(), SetGameMaster(), UpdateArea(), and UpdateZoneAndAreaId().
|
protected |
|
protected |
|
protected |
Definition at line 3203 of file Player.h.
Referenced by LoadFromDB(), Player(), RemoveAtLoginFlag(), and SaveToDB().
|
protected |
Definition at line 3239 of file Player.h.
Referenced by GetBaseModValue(), GetTotalBaseModValue(), HandleBaseModFlatValue(), Player(), and SetBaseModFlatValue().
|
protected |
Definition at line 3240 of file Player.h.
Referenced by ApplyBaseModPctValue(), GetBaseModValue(), GetTotalBaseModValue(), Player(), and SetBaseModPctValue().
|
protected |
Definition at line 3244 of file Player.h.
Referenced by ApplyHealthRegenBonus(), Player(), RegenerateAll(), and RegenerateHealth().
|
protected |
Definition at line 3243 of file Player.h.
Referenced by ApplyManaRegenBonus(), and Player().
|
protected |
Definition at line 3241 of file Player.h.
Referenced by ApplyRatingMod(), Player(), and UpdateRating().
|
protected |
Definition at line 3242 of file Player.h.
Referenced by ApplySpellPowerBonus(), and Player().
|
private |
|
protected |
Definition at line 3080 of file Player.h.
Referenced by AddBattlegroundQueueId(), GetBattlegroundQueueIndex(), GetBattlegroundQueueJoinTime(), GetBattlegroundQueueTypeId(), HasFreeBattlegroundQueueId(), InBattlegroundQueue(), IsInvitedForBattlegroundInstance(), IsInvitedForBattlegroundQueueType(), IsMercenaryForBattlegroundQueueType(), Player(), RemoveBattlegroundQueueId(), SetInviteForBattlegroundQueueType(), and SetMercenaryForBattlegroundQueueType().
|
protected |
Definition at line 3081 of file Player.h.
Referenced by _LoadBGData(), _SaveBGData(), CanReportAfkDueToLimit(), GetBattleground(), GetBGTeam(), WorldSession::HandleMoveWorldportAck(), LoadFromDB(), ProcessDelayedOperations(), ReportedAfkBy(), SetBattlegroundEntryPoint(), SetBattlegroundId(), SetBGTeam(), TeleportToBGEntryPoint(), and UpdateAfkReport().
|
protected |
|
protected |
Definition at line 3287 of file Player.h.
Referenced by Player(), and SetCanBlock().
|
protected |
Definition at line 3286 of file Player.h.
Referenced by Player(), and SetCanParry().
|
protected |
Definition at line 3288 of file Player.h.
Referenced by CanTitanGrip(), Player(), RemoveSpell(), SetCanTitanGrip(), UpdateAverageItemLevelEquipped(), and UpdateAverageItemLevelTotal().
|
private |
|
protected |
Definition at line 3317 of file Player.h.
Referenced by _SaveTransmogOutfits(), CreateTransmogOutfit(), UpdateTransmogOutfit(), UpdateTransmogOutfitSituations(), and UpdateTransmogOutfitSlots().
|
protected |
Definition at line 3258 of file Player.h.
Referenced by CleanupChannels(), JoinedChannel(), LeaveLFGChannel(), LeftChannel(), SetGMVisible(), and UpdateLocalChannels().
|
protected |
Definition at line 3198 of file Player.h.
Referenced by UpdateSpeakTime().
|
protected |
Definition at line 3262 of file Player.h.
Referenced by LoadFromDB(), Player(), and SaveToDB().
| GuidUnorderedSet Player::m_clientGUIDs |
Definition at line 2686 of file Player.h.
Referenced by Map::AddPlayerToMap(), WorldSession::HandleObjectUpdateFailedOpcode(), WorldSession::HandleObjectUpdateRescuedOpcode(), HaveAtClient(), WorldObjectClientDestroyWork::operator()(), SendQuestGiverStatusMultiple(), Trinity::VisibleNotifier::SendToSelf(), UpdateTriggerVisibility(), UpdateVisibilityOf(), UpdateVisibilityOf(), and UpdateVisibleObjectInteractions().
|
protected |
Definition at line 3063 of file Player.h.
Referenced by Player(), ResetContestedPvP(), and UpdateContestedPvP().
|
protected |
Definition at line 3261 of file Player.h.
Referenced by _LoadHomeBind(), Create(), LoadFromDB(), Player(), and SaveToDB().
|
protected |
Definition at line 3260 of file Player.h.
Referenced by Create(), LoadFromDB(), Player(), and SaveToDB().
|
protected |
Definition at line 3206 of file Player.h.
Referenced by AddItemToBuyBackSlot(), Player(), and RemoveItemFromBuyBackSlot().
|
protected |
Definition at line 3197 of file Player.h.
Referenced by _SaveCustomizations(), and Player().
|
protected |
Definition at line 3268 of file Player.h.
Referenced by _LoadDailyQuestStatus(), _SaveDailyQuestStatus(), DailyReset(), Player(), and SetDailyQuestStatus().
|
protected |
Definition at line 3282 of file Player.h.
Referenced by CalculateCorpseReclaimDelay(), GetCorpseReclaimDelay(), LoadFromDB(), Player(), SaveToDB(), and UpdateCorpseReclaimDelay().
|
protected |
Definition at line 3281 of file Player.h.
Referenced by KillPlayer(), Player(), RemovedInsignia(), RepopAtGraveyard(), ResurrectPlayer(), and Update().
|
private |
Definition at line 3367 of file Player.h.
Referenced by Player(), and ProcessDelayedOperations().
| DFQuestsDoneList Player::m_DFQuests |
Definition at line 2717 of file Player.h.
Referenced by _LoadDailyQuestStatus(), _SaveDailyQuestStatus(), DailyReset(), SatisfyQuestDay(), and SetDailyQuestStatus().
|
protected |
Definition at line 3275 of file Player.h.
Referenced by HandleSobering(), Player(), SetDrunkValue(), and Update().
|
protected |
Definition at line 3199 of file Player.h.
Referenced by GetDifficultyID(), and Player().
|
protected |
|
protected |
Definition at line 3249 of file Player.h.
Referenced by _SaveInventory(), AddEnchantmentDuration(), RemoveArenaEnchantments(), RemoveEnchantmentDurations(), RemoveEnchantmentDurationsReferences(), SendEnchantmentDurations(), and UpdateEnchantTime().
|
private |
Definition at line 3357 of file Player.h.
Referenced by Player(), and UpdateMirrorTimers().
|
protected |
Definition at line 3213 of file Player.h.
Referenced by CalculateCorpseReclaimDelay(), CreateCorpse(), Player(), SaveToDB(), SetGameMaster(), SetGMVisible(), and UpdateCorpseReclaimDelay().
|
protected |
Definition at line 3324 of file Player.h.
Referenced by LoadFromDB(), Player(), SaveToDB(), and UpdateFishingSkill().
| std::array<uint8, MAX_MOVE_TYPE> Player::m_forced_speed_changes |
Definition at line 2706 of file Player.h.
Referenced by WorldSession::HandleForceSpeedChangeAck(), Player(), and Unit::SetSpeedRate().
|
protected |
Definition at line 3298 of file Player.h.
Referenced by RemoveFromBattlegroundOrBattlefieldRaid(), SetBattlegroundOrBattlefieldRaid(), and SetGroup().
|
protected |
Definition at line 3301 of file Player.h.
Referenced by Player(), and SendUpdateToOutOfRangeGroupMembers().
|
protected |
Definition at line 3303 of file Player.h.
Referenced by NextGroupUpdateSequenceNumber(), and ResetGroupUpdateSequenceIfNeeded().
|
protected |
|
protected |
Definition at line 3061 of file Player.h.
Referenced by Player(), and RegenerateHealth().
| WorldLocation Player::m_homebind |
Definition at line 2679 of file Player.h.
Referenced by _LoadHomeBind(), Spell::EffectStuck(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandlePlayerLogin(), misc_commandscript::HandleUnstuckCommand(), LoadFromDB(), lfg::LFGPlayerScript::OnMapChanged(), Map::RemoveAllPlayers(), RepopAtGraveyard(), SendBindPointUpdate(), SetBattlegroundEntryPoint(), and SetHomebind().
| uint16 Player::m_homebindAreaId |
Definition at line 2680 of file Player.h.
Referenced by _LoadHomeBind(), Player(), SendBindPointUpdate(), and SetHomebind().
| uint32 Player::m_HomebindTimer |
Definition at line 2747 of file Player.h.
Referenced by Player(), and UpdateHomebindTime().
|
protected |
|
protected |
| bool Player::m_InstanceValid |
Definition at line 2748 of file Player.h.
Referenced by Group::_homebindIfInstance(), Group::AddMember(), BattlegroundMap::AddPlayerToMap(), WorldSession::HandleMoveWorldportAck(), LoadFromDB(), Player(), and UpdateHomebindTime().
|
protected |
Definition at line 3083 of file Player.h.
Referenced by _LoadRandomBGStatus(), Player(), and SetRandomWinner().
|
protected |
Definition at line 3250 of file Player.h.
Referenced by AddItemDurations(), RemoveItemDurations(), SendItemDurations(), and UpdateItemDuration().
|
protected |
Definition at line 3251 of file Player.h.
Referenced by ApplyEquipSpell(), and SendItemPassives().
|
protected |
Definition at line 3205 of file Player.h.
Referenced by _ApplyAllItemMods(), _ApplyAllLevelScaleItemMods(), _RemoveAllItemMods(), _SaveInventory(), _StoreItem(), AddItemToBuyBackSlot(), AddToWorld(), ApplyAllAzeriteEmpoweredItemMods(), ApplyAllAzeriteItemMods(), BuildCreateUpdateBlockForPlayer(), Create(), DestroyForPlayer(), DestroyItem(), GetAverageItemLevel(), GetItemByPos(), GetItemFromBuyBackSlot(), Player(), RemoveFromWorld(), RemoveItem(), RemoveItemFromBuyBackSlot(), UpdateEquipSpellsAtFormChange(), UpdateSkillEnchantments(), VisualizeItem(), and ~Player().
|
protected |
Definition at line 3252 of file Player.h.
Referenced by AddTradeableItem(), RemoveTradeableItem(), and UpdateSoulboundTradeItems().
|
protected |
Definition at line 3210 of file Player.h.
Referenced by _SaveInventory().
|
protected |
Definition at line 3211 of file Player.h.
Referenced by _LoadInventory(), and Player().
| time_t Player::m_Last_tick |
|
protected |
Definition at line 3272 of file Player.h.
Referenced by _LoadDailyQuestStatus(), _SaveDailyQuestStatus(), DailyReset(), Player(), and SetDailyQuestStatus().
|
private |
Definition at line 3353 of file Player.h.
Referenced by Player(), SetFallInformation(), and UpdateFallInformationIfNeed().
|
private |
Definition at line 3354 of file Player.h.
Referenced by HandleFall(), Player(), SetFallInformation(), and UpdateFallInformationIfNeed().
|
protected |
Definition at line 3191 of file Player.h.
Referenced by LoadFromDB(), Player(), and UpdateHonorFields().
|
protected |
|
protected |
Definition at line 3201 of file Player.h.
Referenced by GetDifficultyID(), and Player().
| time_t Player::m_logintime |
Definition at line 1328 of file Player.h.
Referenced by AddItemToBuyBackSlot(), and Player().
|
private |
Definition at line 3402 of file Player.h.
Referenced by AddLootRoll(), CanUninviteFromGroup(), GetLootRoll(), RemoveFromWorld(), and RemoveLootRoll().
|
protected |
Definition at line 3227 of file Player.h.
Referenced by _LoadMail(), _SaveMail(), AddMail(), GetMail(), RemoveMail(), UpdateNextMailTimeAndUnreads(), and ~Player().
| bool Player::m_mailsUpdated |
Definition at line 1879 of file Player.h.
Referenced by _SaveMail(), WorldSession::HandleMailCreateTextItem(), WorldSession::HandleMailDelete(), WorldSession::HandleMailMarkAsRead(), WorldSession::HandleMailTakeItem(), WorldSession::HandleMailTakeMoney(), Player(), and SaveToDB().
|
private |
|
private |
Definition at line 3358 of file Player.h.
Referenced by Player(), UpdateLiquidMirrorTimerFlagsOnPositionChange(), and UpdateMirrorTimers().
|
private |
Definition at line 3356 of file Player.h.
Referenced by IsMirrorTimerActive(), UpdateLiquidMirrorTimerFlagsOnPositionChange(), UpdateLiquidMirrorTimerValuesOnAura(), and UpdateMirrorTimers().
|
protected |
Definition at line 3270 of file Player.h.
Referenced by _LoadMonthlyQuestStatus(), _SaveMonthlyQuestStatus(), Player(), ResetMonthlyQuestStatus(), and SetMonthlyQuestStatus().
|
protected |
Definition at line 3097 of file Player.h.
Referenced by _LoadMonthlyQuestStatus(), _SaveMonthlyQuestStatus(), ResetMonthlyQuestStatus(), SatisfyQuestMonth(), and SetMonthlyQuestStatus().
| uint8 Player::m_movementForceModMagnitudeChanges |
Definition at line 2707 of file Player.h.
Referenced by WorldSession::HandleMoveSetModMovementForceMagnitudeAck(), and Player().
|
private |
Definition at line 3365 of file Player.h.
Referenced by Player(), and TeleportTo().
| time_t Player::m_nextMailDelivereTime |
Definition at line 1928 of file Player.h.
Referenced by AddNewMailDeliverTime(), Player(), Update(), and UpdateNextMailTimeAndUnreads().
|
protected |
Definition at line 3196 of file Player.h.
Referenced by LoadFromDB(), Player(), SaveToDB(), and Update().
|
private |
Definition at line 3375 of file Player.h.
Referenced by Player(), RemovePet(), and UnsummonPetTemporaryIfAny().
|
protected |
Definition at line 3299 of file Player.h.
Referenced by SetOriginalGroup().
Definition at line 3229 of file Player.h.
Referenced by ActivateTalentGroup(), AddOverrideSpell(), GetCastSpellInfo(), RemoveOverrideSpell(), RemoveSpell(), and SendInitialPacketsBeforeAddToMap().
| std::unordered_set<PetAura const*> Player::m_petAuras |
Definition at line 1354 of file Player.h.
Referenced by AddPetAura(), Pet::CastPetAuras(), Pet::IsPetAura(), and RemovePetAura().
|
private |
Definition at line 3370 of file Player.h.
Referenced by _LoadPetStable(), DeletePetFromDB(), GetOrInitPetStable(), and RemovePet().
| std::array<uint32, MAX_PLAYED_TIME_INDEX> Player::m_Played_time |
Definition at line 1330 of file Player.h.
Referenced by Create(), GiveLevel(), LoadFromDB(), Player(), SaveToDB(), and Update().
| UF::UpdateField<UF::PlayerData, int32(WowCS::EntityFragment::CGObject), TYPEID_PLAYER> Player::m_playerData |
Definition at line 3047 of file Player.h.
Referenced by _InitHonorLevelOnLoadFromDB(), _LoadDeclinedNames(), _SaveCharacterSelectOutfit(), _SaveCustomizations(), AddItemsSetItem(), BattlePets::BattlePetMgr::AddPet(), ApplyEnchantment(), ApplyModFakeDrunkValue(), BuildValuesCreate(), BuildValuesUpdate(), BuildValuesUpdateForPlayerWithMask(), BuildValuesUpdateWithFlag(), AchievementMgr::CanUpdateCriteriaTree(), CheckAreaExplore(), CheckDuelDistance(), ClearValuesChangesMask(), CreateCorpse(), DuelComplete(), GetBarberShopCost(), ItemBonusMgr::GetContextForPlayer(), lfg::LFGMgr::GetLockedDungeons(), GetQuestLevel(), GetQuestMinLevel(), GetQuestSlotCounter(), GetQuestSlotEndTime(), GetQuestSlotObjectiveFlag(), GetQuestSlotQuestId(), GetQuestSlotState(), Battlenet::Account::GetUpdateFieldFlagsFor(), character_commandscript::HandleCharacterTitlesCommand(), WorldSession::HandleDuelAccepted(), WorldSession::HandleInspectOpcode(), Guild::HandleInviteMember(), lookup_commandscript::HandleLookupQuestCommand(), lookup_commandscript::HandleLookupQuestIdCommand(), lookup_commandscript::HandleLookupTitleCommand(), titles_commandscript::HandleTitlesRemoveCommand(), titles_commandscript::HandleTitlesSetMaskCommand(), WorldPackets::Query::PlayerGuidLookupData::Initialize(), WorldPackets::Party::PartyInvite::Initialize(), WorldPackets::Inspect::PlayerModelDisplayInfo::Initialize(), WorldPackets::Party::PartyMemberFullState::Initialize(), ConditionMgr::IsPlayerMeetingCondition(), Channel::List(), LoadFromDB(), CriteriaHandler::ModifierSatisfied(), RemovePlayerFlag(), RemovePlayerFlagEx(), RemoveQuestSlotObjectiveFlag(), RemoveQuestSlotState(), RemoveVisibleForcedReaction(), ReplaceAllPlayerFlags(), ReplaceAllPlayerFlagsEx(), RewardReputation(), SaveToDB(), PlayerAchievementMgr::SendAchievementEarned(), PlayerAchievementMgr::SendAchievementInfo(), PlayerAchievementMgr::SendAllData(), Guild::SendEventPresenceChanged(), WorldSession::SendLfgPlayerLockInfo(), SetArenaFaction(), SetAverageItemLevel(), SetChosenTitle(), SetCurrentBattlePetBreedQuality(), SetCurrentCombatTraitConfigSubTreeID(), SetCustomizations(), SetDrunkValue(), SetDuelArbiter(), SetDuelTeam(), SetGuildLevel(), SetGuildRank(), SetHonorLevel(), SetLootGUID(), SetNativeGender(), SetPartyType(), SetPersonalTabard(), SetPlayerFlag(), SetPlayerFlagEx(), SetPrimarySpecialization(), SetPvpTitle(), SetQuestSlot(), SetQuestSlotCounter(), SetQuestSlotEndTime(), SetQuestSlotObjectiveFlag(), SetQuestSlotState(), SetVirtualPlayerRealm(), SetVisibleForcedReaction(), SetVisibleItemSlot(), Spell::SummonGuardian(), TeleportTo(), UpdateItemSetAuras(), and GameObject::Use().
|
protected |
|
protected |
Definition at line 3062 of file Player.h.
Referenced by InterruptPowerRegen(), Player(), and Regenerate().
|
private |
Definition at line 3380 of file Player.h.
Referenced by AddQuest(), AdjustQuestObjectiveProgress(), FailCriteria(), LoadFromDB(), Player(), SaveToDB(), SendInitialPacketsBeforeAddToMap(), and UpdateCriteria().
|
protected |
Definition at line 3216 of file Player.h.
Referenced by _LoadQuestStatus(), AddQuest(), GetQuestObjectiveForItem(), HasQuestForCurrency(), HasQuestForGO(), ItemRemovedQuestCheck(), RemoveActiveQuest(), UpdateQuestObjectiveProgress(), and UpdateVisibleObjectInteractions().
|
protected |
Definition at line 3215 of file Player.h.
Referenced by _LoadQuestStatus(), _LoadQuestStatusObjectives(), _LoadQuestStatusObjectiveSpawnTrackings(), _SaveQuestStatus(), AddQuest(), AreaExploredOrEventHappens(), CanCompleteQuest(), CanShareQuest(), CompleteQuest(), FailQuest(), FindQuestSlot(), GetQuestStatus(), GetSpawnTrackingStateByObjective(), HasQuestForItem(), IsActiveQuest(), RemoveActiveQuest(), SetQuestObjectiveData(), SetQuestStatus(), and Update().
|
protected |
Definition at line 3217 of file Player.h.
Referenced by _LoadQuestStatus(), _SaveQuestStatus(), AddQuest(), AreaExploredOrEventHappens(), RemoveActiveQuest(), SetQuestObjectiveData(), SetQuestStatus(), and Update().
|
protected |
Definition at line 3200 of file Player.h.
Referenced by GetDifficultyID(), and Player().
|
protected |
Definition at line 2761 of file Player.h.
Referenced by ResetInstances().
|
private |
Definition at line 3338 of file Player.h.
Referenced by _SaveInventory(), AddRefundReference(), and DeleteRefundReference().
|
protected |
Definition at line 3059 of file Player.h.
Referenced by AtExitCombat(), GetPowerRegen(), InterruptPowerRegen(), and Player().
|
protected |
Definition at line 3060 of file Player.h.
Referenced by Player(), Regenerate(), and RegenerateAll().
|
private |
Definition at line 3379 of file Player.h.
Referenced by LoadFromDB(), Player(), SaveToDB(), and SendInitialPacketsBeforeAddToMap().
|
protected |
Definition at line 3219 of file Player.h.
Referenced by _LoadQuestStatusRewarded(), IsQuestRewarded(), LearnQuestRewardedSpells(), RemoveRewardedQuest(), SatisfyQuestPreviousQuest(), and SetRewardedQuest().
|
protected |
Definition at line 3220 of file Player.h.
Referenced by _SaveQuestStatus(), RemoveRewardedQuest(), and SetRewardedQuest().
|
protected |
Definition at line 3315 of file Player.h.
Referenced by GetRunesState(), InitRunes(), RegenerateAll(), and SetRuneCooldown().
|
protected |
Definition at line 3271 of file Player.h.
Referenced by _LoadSeasonalQuestStatus(), _SaveSeasonalQuestStatus(), Player(), RemoveRewardedQuest(), ResetSeasonalQuestStatus(), and SetSeasonalQuestStatus().
|
protected |
Definition at line 3098 of file Player.h.
Referenced by _LoadSeasonalQuestStatus(), _SaveSeasonalQuestStatus(), RemoveRewardedQuest(), ResetSeasonalQuestStatus(), SatisfyQuestSeasonal(), and SetSeasonalQuestStatus().
| WorldObject* Player::m_seer |
Definition at line 2652 of file Player.h.
Referenced by Player(), UpdateVisibilityForPlayer(), Trinity::PlayerRelocationNotifier::Visit(), Trinity::MessageDistDeliverer< PacketSender >::Visit(), Trinity::MessageDistDelivererToHostile< PacketSender >::Visit(), Trinity::PlayerRelocationNotifier::Visit(), Trinity::CreatureRelocationNotifier::Visit(), Trinity::DelayedUnitRelocation::Visit(), Trinity::MessageDistDeliverer< PacketSender >::Visit(), and Trinity::MessageDistDelivererToHostile< PacketSender >::Visit().
|
protected |
Definition at line 3256 of file Player.h.
Referenced by GetStartLevel(), Player(), RemoveFromWorld(), SaveToDB(), SendDirectMessage(), SendLoot(), and SwapItem().
|
protected |
|
protected |
Definition at line 3295 of file Player.h.
Referenced by LoadFromDB(), Player(), and RemoveSocial().
|
protected |
Definition at line 3247 of file Player.h.
Referenced by AddSpellMod(), GetSpellModValues(), and SendSpellModifiers().
| Spell* Player::m_spellModTakingSpell |
Definition at line 2847 of file Player.h.
Referenced by Spell::cast(), GetSpellModValues(), Player(), SetSpellModTakingSpell(), and Spell::~Spell().
|
protected |
Definition at line 3245 of file Player.h.
Referenced by ApplySpellPenetrationBonus(), and Player().
|
protected |
Definition at line 3228 of file Player.h.
Referenced by _LoadSpells(), _SaveSpells(), AddSpell(), AddTemporarySpell(), GetTraitInfoForSpell(), HasActiveSpell(), HasSpell(), LearnSpell(), RemoveSpell(), RemoveTemporarySpell(), SendKnownSpells(), and SetSpellFavorite().
|
protected |
Definition at line 3230 of file Player.h.
Referenced by _LoadStoredAuraTeleportLocations(), _SaveStoredAuraTeleportLocations(), AddStoredAuraTeleportLocation(), GetStoredAuraTeleportLocation(), and RemoveStoredAuraTeleportLocation().
|
protected |
Definition at line 3309 of file Player.h.
Referenced by HasSummonPending(), Player(), SendSummonRequestFrom(), and SummonIfPossible().
|
protected |
Definition at line 3310 of file Player.h.
Referenced by SendSummonRequestFrom(), and SummonIfPossible().
|
protected |
Definition at line 3292 of file Player.h.
Referenced by SetAttackSwingError().
| PlayerTaxi Player::m_taxi |
Definition at line 1277 of file Player.h.
Referenced by ActivateTaxiPathTo(), CleanupAfterTaxiFlight(), ContinueTaxiFlight(), FlightPathMovementGenerator::DoFinalize(), FlightPathMovementGenerator::DoUpdate(), FinishTaxiFlight(), WorldSession::HandleMoveSplineDoneOpcode(), LoadFromDB(), FlightPathMovementGenerator::LoadPath(), ProcessDelayedOperations(), SaveToDB(), WorldSession::SendTaxiMenu(), WorldSession::SendTaxiStatus(), and SetBattlegroundEntryPoint().
|
protected |
Definition at line 3195 of file Player.h.
Referenced by Player(), and SetFactionForRace().
|
private |
Definition at line 3361 of file Player.h.
Referenced by WorldSession::HandleMoveWorldportAck(), TeleportTo(), and Update().
|
private |
Definition at line 3363 of file Player.h.
Referenced by Player(), SendInitialPacketsBeforeAddToMap(), TeleportTo(), and Update().
|
private |
|
private |
Definition at line 3364 of file Player.h.
Referenced by Player(), TeleportTo(), and Update().
|
private |
Definition at line 3374 of file Player.h.
Referenced by DisablePetControlsOnMount(), and EnablePetControlsOnDismount().
|
private |
Definition at line 3376 of file Player.h.
Referenced by ResummonBattlePetTemporaryUnSummonedIfAny(), and UnsummonBattlePetTemporaryIfAny().
|
private |
Definition at line 3373 of file Player.h.
Referenced by _LoadPetStable(), Player(), RemovePet(), ResummonPetTemporaryUnSummonedIfAny(), and UnsummonPetTemporaryIfAny().
|
protected |
Definition at line 3095 of file Player.h.
Referenced by AddTimedQuest(), RemoveTimedQuest(), SatisfyQuestTimed(), and Update().
|
protected |
Definition at line 3290 of file Player.h.
Referenced by CanTitanGrip(), Player(), and SetCanTitanGrip().
|
protected |
Definition at line 3291 of file Player.h.
Referenced by CheckTitanGripPenalty(), Player(), RemoveSpell(), and SetCanTitanGrip().
|
protected |
Definition at line 3289 of file Player.h.
Referenced by CanTitanGrip(), Player(), and SetCanTitanGrip().
|
protected |
Definition at line 3266 of file Player.h.
Referenced by GetTrader(), WorldSession::HandleAcceptTradeOpcode(), WorldSession::HandleBeginTradeOpcode(), WorldSession::HandleClearTradeItemOpcode(), WorldSession::HandleInitiateTradeOpcode(), Player(), and TradeCancel().
|
protected |
Definition at line 3235 of file Player.h.
Referenced by _LoadTraits(), _SaveTraits(), ApplyTraitEntryChanges(), CreateTraitConfig(), DeleteTraitConfig(), RenameTraitConfig(), SetTraitConfigUseSharedActionBars(), and SetTraitConfigUseStarterBuild().
| GuidUnorderedSet Player::m_visibleTransports |
Definition at line 2687 of file Player.h.
Referenced by Map::SendInitSelf(), Map::SendInitTransports(), Map::SendRemoveTransports(), and Map::SendUpdateTransportVisibility().
|
protected |
Definition at line 3276 of file Player.h.
Referenced by CanEquipItem(), EquipItem(), Player(), and Update().
|
protected |
|
protected |
Definition at line 3269 of file Player.h.
Referenced by _LoadWeeklyQuestStatus(), _SaveWeeklyQuestStatus(), Player(), ResetWeeklyQuestStatus(), and SetWeeklyQuestStatus().
|
protected |
Definition at line 3096 of file Player.h.
Referenced by _LoadWeeklyQuestStatus(), _SaveWeeklyQuestStatus(), ResetWeeklyQuestStatus(), SatisfyQuestWeek(), and SetWeeklyQuestStatus().
|
protected |
Definition at line 3278 of file Player.h.
Referenced by Player(), RemoveFromWorld(), UpdateAreaDependentAuras(), UpdateZone(), and UpdateZoneAndAreaId().
|
private |
| ItemMap Player::mMitems |
Definition at line 1932 of file Player.h.
Referenced by AddMItem(), GetMItem(), RemoveFromWorld(), RemoveMItem(), and ~Player().
|
protected |
Definition at line 3222 of file Player.h.
Referenced by _LoadSkills(), _SaveSkills(), GetBaseSkillValue(), GetMaxSkillValue(), GetPureMaxSkillValue(), GetPureSkillValue(), GetSkillPermBonusValue(), GetSkillStep(), GetSkillTempBonusValue(), GetSkillValue(), HasSkill(), InitializeSkillFields(), ModifySkillBonus(), SetSkill(), UpdateSkillPro(), and UpdateSkillsForLevel().
| std::unique_ptr<PlayerMenu> Player::PlayerTalkClass |
Definition at line 2556 of file Player.h.
Referenced by AddGossipItemFor(), AddGossipItemFor(), AddGossipItemFor(), AddQuestAndCheckCompletion(), WorldSession::CanUseBank(), ClearGossipMenuFor(), CloseGossipMenuFor(), Spell::EffectQuestStart(), GetGossipActionFor(), GetGossipSenderFor(), WorldSession::HandleAdventureJournalOpenQuest(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleCloseInteraction(), WorldSession::HandleGetMailList(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleGossipSelectOptionOpcode(), WorldSession::HandleGuildBankActivate(), WorldSession::HandleMailDelete(), WorldSession::HandleMailReturnToSender(), WorldSession::HandlePlayerChoiceResponse(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), WorldSession::HandleQuestgiverHelloOpcode(), WorldSession::HandleQuestgiverQueryQuestOpcode(), WorldSession::HandleQuestgiverRequestRewardOpcode(), WorldSession::HandleQuestgiverStatusQueryOpcode(), WorldSession::HandleQuestQueryOpcode(), WorldSession::HandleSwapInvItemOpcode(), WorldSession::HandleSwapItem(), WorldSession::HandleTrainerBuySpellOpcode(), InitGossipMenuFor(), npc_selina_dourman::OnGossipSelect(), npc_verdisa_beglaristrasz_eternos::OnGossipSelect(), npc_sinclari_vh::OnGossipSelect(), npc_lokhtos_darkbargainer::npc_lokhtos_darkbargainerAI::OnGossipSelect(), boss_gloomrel::boss_gloomrelAI::OnGossipSelect(), boss_doomrel::boss_doomrelAI::OnGossipSelect(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::OnGossipSelect(), npc_barnes::OnGossipSelect(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipSelect(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::OnGossipSelect(), npc_silverpine_bat_handler_maggotbreath::OnGossipSelect(), npc_tb_spirit_guide::OnGossipSelect(), npc_jaina_proudmoore::npc_jaina_proudmooreAI::OnGossipSelect(), npc_thrall::npc_thrallAI::OnGossipSelect(), npc_tyrande_whisperwind::npc_tyrande_whisperwindAI::OnGossipSelect(), npc_erozion::OnGossipSelect(), npc_thrall_old_hillsbrad::OnGossipSelect(), npc_taretha::OnGossipSelect(), go_hoo_the_makers_lift_controller::OnGossipSelect(), go_wind_stone::go_wind_stoneAI::OnGossipSelect(), npc_sergeant_bly::npc_sergeant_blyAI::OnGossipSelect(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::OnGossipSelect(), npc_announcer_toc5::npc_announcer_toc5AI::OnGossipSelect(), npc_brann_hos::OnGossipSelect(), npc_wg_demolisher_engineer::OnGossipSelect(), npc_wg_spirit_guide::OnGossipSelect(), npc_zm_field_scout::OnGossipSelect(), go_amberpine_outhouse::go_amberpine_outhouseAI::OnGossipSelect(), npc_engineering_tele_trinket::npc_engineering_tele_trinketAI::OnGossipSelect(), npc_wormhole::npc_wormholeAI::OnGossipSelect(), npc_argent_squire_gruntling::npc_argent_squire_gruntlingAI::OnGossipSelect(), OnGossipSelect(), ScriptMgr::OnQuestAccept(), Player(), PrepareGossipMenu(), PrepareQuestMenu(), SmartScript::ProcessAction(), RewardQuest(), WorldSession::SendAuctionHello(), BattlegroundMgr::SendBattlegroundList(), WorldSession::SendBindPoint(), SendGossipMenuFor(), SendInitialPacketsAfterAddToMap(), WorldSession::SendListInventory(), WorldSession::SendPetitionShowList(), SendPlayerChoice(), SendPreparedGossip(), SendPreparedQuest(), SendRespecWipeConfirm(), WorldSession::SendShowBank(), WorldSession::SendTaxiMenu(), and WorldSession::SendTrainerList().
| PvPInfo Player::pvpInfo |
Definition at line 2107 of file Player.h.
Referenced by AddQuest(), Spell::EffectQuestClear(), GetArenaPersonalRating(), GetPvpInfoForBracket(), WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandleQuestLogRemoveQuest(), quest_commandscript::HandleQuestRemove(), WorldSession::HandleSetPvP(), WorldSession::HandleTogglePvP(), RewardQuest(), SkipQuests(), UpdateArea(), UpdateHostileAreaState(), UpdatePvP(), UpdatePvPFlag(), UpdatePvPState(), and UpdateZone().
| uint8 Player::unReadMails |
Definition at line 1927 of file Player.h.
Referenced by AddNewMailDeliverTime(), WorldSession::HandleMailMarkAsRead(), WorldSession::HandleQueryNextMailTime(), Player(), Update(), and UpdateNextMailTimeAndUnreads().
|
protected |
Definition at line 3058 of file Player.h.
Referenced by IsInWhisperWhiteList().