![]() |
TrinityCore
|
#include <Player.h>
Inheritance diagram for Player:Classes | |
| struct | BgBattlegroundQueueID_Rec |
| struct | ChatFloodThrottle |
Public Types | |
| typedef std::unordered_map< ObjectGuid::LowType, Item * > | ItemMap |
| typedef std::list< Channel * > | JoinedChannelsList |
| typedef std::set< uint32 > | DFQuestsDoneList |
| typedef std::unordered_map< uint32, InstancePlayerBind > | BoundInstancesMap |
Public Types inherited from Unit | |
| typedef std::set< Unit * > | AttackerSet |
| typedef std::set< Unit * > | ControlList |
| typedef std::vector< Unit * > | UnitVector |
| typedef std::multimap< uint32, Aura * > | AuraMap |
| typedef std::pair< AuraMap::const_iterator, AuraMap::const_iterator > | AuraMapBounds |
| typedef std::pair< AuraMap::iterator, AuraMap::iterator > | AuraMapBoundsNonConst |
| typedef std::multimap< uint32, AuraApplication * > | AuraApplicationMap |
| typedef std::pair< AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator > | AuraApplicationMapBounds |
| typedef std::pair< AuraApplicationMap::iterator, AuraApplicationMap::iterator > | AuraApplicationMapBoundsNonConst |
| typedef std::multimap< AuraStateType, AuraApplication * > | AuraStateAurasMap |
| typedef std::pair< AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator > | AuraStateAurasMapBounds |
| typedef std::list< AuraEffect * > | AuraEffectList |
| typedef std::list< Aura * > | AuraList |
| typedef std::list< AuraApplication * > | AuraApplicationList |
| typedef std::array< DiminishingReturn, DIMINISHING_MAX > | Diminishing |
| typedef std::vector< std::pair< uint8, AuraApplication * > > | AuraApplicationProcContainer |
| typedef std::map< uint8, AuraApplication * > | VisibleAuraMap |
Static Public Member Functions | |
| static bool | BuildEnumData (PreparedQueryResult result, WorldPacket *data) |
| static WeaponAttackType | GetAttackBySlot (uint8 slot) |
| static bool | IsInventoryPos (uint16 pos) |
| static bool | IsInventoryPos (uint8 bag, uint8 slot) |
| static bool | IsEquipmentPos (uint16 pos) |
| static bool | IsEquipmentPos (uint8 bag, uint8 slot) |
| static bool | IsBagPos (uint16 pos) |
| static bool | IsBankPos (uint16 pos) |
| static bool | IsBankPos (uint8 bag, uint8 slot) |
| static uint32 | GetDefaultGossipMenuForSource (WorldObject *source) |
| static uint32 | GetZoneIdFromDB (ObjectGuid guid) |
| static bool | LoadPositionFromDB (uint32 &mapid, float &x, float &y, float &z, float &o, bool &in_flight, ObjectGuid guid) |
| static bool | IsValidGender (uint8 Gender) |
| static bool | ValidateAppearance (uint8 race, uint8 class_, uint8 gender, uint8 hairID, uint8 hairColor, uint8 faceID, uint8 facialHair, uint8 skinColor, bool create=false) |
| static void | SavePositionInDB (WorldLocation const &loc, uint16 zoneId, ObjectGuid guid, CharacterDatabaseTransaction trans) |
| static void | DeleteFromDB (ObjectGuid playerguid, uint32 accountId, bool updateRealmChars=true, bool deleteFinally=false) |
| static void | DeleteOldCharacters () |
| static void | DeleteOldCharacters (uint32 keepDays) |
| static bool | IsAffectedBySpellmod (SpellInfo const *spellInfo, SpellModifier *mod, Spell *spell=nullptr) |
| static void | ApplyModToSpell (SpellModifier *mod, Spell *spell) |
| static bool | HasSpellModApplied (SpellModifier *mod, Spell *spell) |
| static void | RemoveFromGroup (Group *group, ObjectGuid guid, RemoveMethod method=GROUP_REMOVEMETHOD_DEFAULT, ObjectGuid kicker=ObjectGuid::Empty, char const *reason=nullptr) |
| static void | RemovePetitionsAndSigns (ObjectGuid guid, CharterTypes type) |
| static void | LeaveAllArenaTeams (ObjectGuid guid) |
| static Difficulty | CheckLoadedDungeonDifficultyID (Difficulty difficulty) |
| static Difficulty | CheckLoadedRaidDifficultyID (Difficulty difficulty) |
| static void | OfflineResurrect (ObjectGuid const &guid, CharacterDatabaseTransaction trans) |
| static uint32 | TeamForRace (uint8 race) |
| static TeamId | TeamIdForRace (uint8 race) |
| static DrunkenState | GetDrunkenstateByValue (uint8 value) |
Static Public Member Functions inherited from Unit | |
| static float | CalculateAverageResistReduction (WorldObject const *caster, SpellSchoolMask schoolMask, Unit const *victim, SpellInfo const *spellInfo=nullptr) |
| static void | DealDamageMods (Unit const *victim, uint32 &damage, uint32 *absorb) |
| static uint32 | DealDamage (Unit *attacker, Unit *victim, uint32 damage, CleanDamage const *cleanDamage=nullptr, DamageEffectType damagetype=DIRECT_DAMAGE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *spellProto=nullptr, bool durabilityLoss=true) |
| static void | Kill (Unit *attacker, Unit *victim, bool durabilityLoss=true) |
| static void | DealHeal (HealInfo &healInfo) |
| static void | ProcSkillsAndAuras (Unit *actor, Unit *actionTarget, uint32 typeMaskActor, uint32 typeMaskActionTarget, uint32 spellTypeMask, uint32 spellPhaseMask, uint32 hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo) |
| static void | ApplyResilience (Unit const *victim, float *crit, int32 *damage, bool isCrit, CombatRating type) |
| static uint32 | SpellCriticalDamageBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit *victim) |
| static uint32 | SpellCriticalHealingBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit *victim) |
| static bool | IsDamageReducedByArmor (SpellSchoolMask damageSchoolMask, SpellInfo const *spellInfo=nullptr) |
| static uint32 | CalcArmorReducedDamage (Unit const *attacker, Unit *victim, uint32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=MAX_ATTACK, uint8 attackerLevel=0) |
| static uint32 | CalcSpellResistedDamage (Unit const *attacker, Unit *victim, uint32 damage, SpellSchoolMask schoolMask, SpellInfo const *spellInfo) |
| static void | CalcAbsorbResist (DamageInfo &damageInfo, Spell *spell=nullptr) |
| static void | CalcHealAbsorb (HealInfo &healInfo) |
| static void | BuildMovementPacket (Position const &pos, Position const &transportPos, MovementInfo const &movementInfo, ByteBuffer *data) |
Static Public Member Functions inherited from WorldObject | |
| static bool | InSamePhase (WorldObject const *a, WorldObject const *b) |
| static ReputationRank | GetFactionReactionTo (FactionTemplateEntry const *factionTemplateEntry, WorldObject const *target) |
Static Public Member Functions inherited from Object | |
| static ObjectGuid | GetGUID (Object const *o) |
| static WorldObject * | ToWorldObject (Object *o) |
| static WorldObject const * | ToWorldObject (Object const *o) |
| static Item * | ToItem (Object *o) |
| static Item const * | ToItem (Object const *o) |
| static Player * | ToPlayer (Object *o) |
| static Player const * | ToPlayer (Object const *o) |
| static Creature * | ToCreature (Object *o) |
| static Creature const * | ToCreature (Object const *o) |
| static Unit * | ToUnit (Object *o) |
| static Unit const * | ToUnit (Object const *o) |
| static GameObject * | ToGameObject (Object *o) |
| static GameObject const * | ToGameObject (Object const *o) |
| static Corpse * | ToCorpse (Object *o) |
| static Corpse const * | ToCorpse (Object const *o) |
| static DynamicObject * | ToDynObject (Object *o) |
| static DynamicObject const * | ToDynObject (Object const *o) |
Static Public Member Functions inherited from Position | |
| static float | NormalizeOrientation (float o) |
Protected Types | |
| typedef std::set< uint32 > | QuestSet |
| typedef std::unordered_map< uint32, time_t > | SeasonalQuestMapByQuest |
| typedef std::unordered_map< uint32, SeasonalQuestMapByQuest > | SeasonalQuestMapByEvent |
Protected Types inherited from Unit | |
| typedef std::list< DynamicObject * > | DynObjectList |
| typedef std::list< GameObject * > | GameObjectList |
Static Protected Member Functions | |
| static Item * | _LoadMailedItem (ObjectGuid const &playerGuid, Player *player, uint32 mailId, Mail *mail, Field *fields) |
Private Member Functions | |
| InventoryResult | CanStoreItem_InSpecificSlot (uint8 bag, uint8 slot, ItemPosCountVec &dest, ItemTemplate const *pProto, uint32 &count, bool swap, Item *pSrcItem) const |
| InventoryResult | CanStoreItem_InBag (uint8 bag, ItemPosCountVec &dest, ItemTemplate const *pProto, uint32 &count, bool merge, bool non_specialized, Item *pSrcItem, uint8 skip_bag, uint8 skip_slot) const |
| InventoryResult | CanStoreItem_InInventorySlots (uint8 slot_begin, uint8 slot_end, ItemPosCountVec &dest, ItemTemplate const *pProto, uint32 &count, bool merge, Item *pSrcItem, uint8 skip_bag, uint8 skip_slot) const |
| Item * | _StoreItem (uint16 pos, Item *pItem, uint32 count, bool clone, bool update) |
| Item * | _LoadItem (CharacterDatabaseTransaction trans, uint32 zoneId, uint32 timeDiff, Field *fields) |
| void | SendRefundInfo (Item *item) |
| void | RefundItem (Item *item) |
| void | SendItemRefundResult (Item *item, ItemExtendedCostEntry const *iece, uint8 error) const |
| void | AddKnownCurrency (uint32 itemId) |
| void | AdjustQuestReqItemCount (Quest const *quest, QuestStatusData &questStatusData) |
| bool | IsCanDelayTeleport () const |
| void | SetCanDelayTeleport (bool setting) |
| bool | IsHasDelayedTeleport () const |
| void | SetDelayedTeleportFlag (bool setting) |
| void | ScheduleDelayedOperation (uint32 operation) |
| bool | IsInstanceLoginGameMasterException () const |
Friends | |
| class | WorldSession |
| class | CinematicMgr |
| void | AddItemToUpdateQueueOf (Item *item, Player *player) |
| void | RemoveItemFromUpdateQueueOf (Item *item, Player *player) |
| typedef std::unordered_map< uint32 , InstancePlayerBind > Player::BoundInstancesMap |
| 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 127 of file Player.cpp.
References _activeCheats, _cinematicMgr, _restFlagMask, _restTime, _talentMgr, AT_LOGIN_NONE, BASEMOD_END, BATTLEGROUND_QUEUE_NONE, Player::BgBattlegroundQueueID_Rec::bgQueueTypeId, BUYBACK_SLOT_START, CHEAT_NONE, CinematicMgr, CONFIG_INTERVAL_SAVE, DISABLED_MIRROR_TIMER, DUNGEON_DIFFICULTY_NORMAL, GameTime::GetGameTime(), GetSession(), healthBeforeDuel, inn_triggerId, Player::BgBattlegroundQueueID_Rec::invitedToInstance, isDebugAreaTriggers, m_achievementMgr, m_ammoDPS, m_areaUpdateId, m_ArenaTeamIdInvited, m_ArmorProficiency, m_atLoginFlags, m_auraBaseFlatMod, m_auraBasePctMod, m_auraRaidUpdateMask, m_baseFeralAP, m_baseHealthRegen, m_baseManaRegen, m_baseRatingValue, m_baseSpellPower, m_bCanDelayTeleport, m_bgBattlegroundQueueID, m_bHasDelayedTeleport, m_bPassOnGroupLoot, m_canBlock, m_canParry, m_canTitanGrip, m_ChampioningFaction, m_cinematic, m_contestedPvPTimer, Unit::m_ControlledByPlayer, m_currentBuybackSlot, m_DailyQuestChanged, m_deathExpireTime, m_deathTimer, m_declinedname, m_DelayedOperations, m_drunkTimer, m_dungeonDifficulty, m_ExtraFlags, m_fishingSteps, m_foodEmoteTimerCount, m_grantableLevels, m_groupUpdateMask, m_GuildIdInvited, m_healthFraction, m_homebindAreaId, m_homebindMapId, m_HomebindTimer, m_homebindX, m_homebindY, m_homebindZ, m_hostileReferenceCheckTimer, m_ingametime, m_InstanceValid, WorldObject::m_isActive, m_IsBGRandomWinner, m_items, m_itemUpdateQueueBlocked, m_Last_tick, m_lastDailyQuestTime, m_lastFallTime, m_lastFallZ, m_lastHonorUpdateTime, m_lastpetnumber, m_lastPotionId, m_logintime, m_mailsUpdated, m_MirrorTimer, m_MirrorTimerFlags, m_MirrorTimerFlagsLast, m_MonthlyQuestChanged, m_movie, m_needsZoneUpdate, m_nextMailDelivereTime, m_nextSave, Object::m_objectType, Object::m_objectTypeId, m_oldpetspell, m_Played_time, m_powerFraction, m_raidDifficulty, Unit::m_regenTimer, m_regenTimerCount, m_reputationMgr, m_rest_bonus, m_runes, m_SeasonalQuestChanged, m_seer, m_session, m_sharedQuestId, m_social, m_spellModTakingSpell, m_spellPenetrationItemMod, m_summon_expire, m_swingErrorMsg, m_team, m_teleport_options, m_temporaryUnsummonedPetNumber, m_titanGripArmorSubclasses, m_titanGripPenaltySpellId, m_titanGripWeaponSubclasses, m_trade, Object::m_valuesCount, m_weaponChangeTimer, m_WeaponProficiency, m_WeeklyQuestChanged, m_zoneUpdateId, m_zoneUpdateTimer, manaBeforeDuel, MAX_COMBAT_RATING, MAX_POWERS, MAX_RUNES, MAX_TIMERS, mSemaphoreTeleport_Far, mSemaphoreTeleport_Near, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_END, PLAYER_MAX_BATTLEGROUND_QUEUES, PLAYER_SLOTS_COUNT, PlayerTalkClass, RAID_DIFFICULTY_10MAN_NORMAL, rbac::RBAC_PERM_CAN_FILTER_WHISPERS, SetAcceptWhispers(), SetGroupInvite(), SetLastRuneGraceTimer(), SetPendingBind(), SetRuneTimer(), sWorld, TYPEID_PLAYER, TYPEMASK_PLAYER, UNDERWATER_NONE, and unReadMails.
| Player::~Player | ( | ) |
Definition at line 341 of file Player.cpp.
References _cinematicMgr, _talentMgr, ItemSetEff, m_achievementMgr, m_declinedname, m_items, m_mail, m_reputationMgr, m_runes, mMitems, PLAYER_SLOTS_COUNT, PlayerTalkClass, and sWorld.
| void Player::_ApplyAllItemMods | ( | ) |
Definition at line 7914 of file Player.cpp.
References _ApplyAmmoBonuses(), _ApplyItemBonuses(), AddItemsSetItem(), ApplyEnchantment(), ApplyItemDependentAuras(), ApplyItemEquipSpell(), Unit::CanUseAttackType(), EQUIPMENT_SLOT_RANGED, GetAttackBySlot(), ItemTemplate::GetItemSet(), Item::GetTemplate(), INVENTORY_SLOT_BAG_END, m_items, MAX_ATTACK, TC_LOG_DEBUG, and UpdateWeaponDependentAuras().
Referenced by _ApplyAllStatBonuses(), and _LoadInventory().
| void Player::_ApplyAllLevelScaleItemMods | ( | bool | apply | ) |
Definition at line 7964 of file Player.cpp.
References _ApplyItemBonuses(), Unit::CanUseAttackType(), GetAttackBySlot(), Item::GetTemplate(), INVENTORY_SLOT_BAG_END, and m_items.
Referenced by GiveLevel(), and reset_commandscript::HandleResetLevelCommand().
| void Player::_ApplyAllStatBonuses | ( | ) |
Definition at line 1042 of file StatSystem.cpp.
References Unit::_ApplyAllAuraStatMods(), _ApplyAllItemMods(), Unit::SetCanModifyStats(), and UpdateAllStats().
Referenced by InitStatsForLevel().
| void Player::_ApplyAmmoBonuses | ( | ) |
Definition at line 7982 of file Player.cpp.
References Unit::CanModifyStats(), CheckAmmoCompatibility(), GetAmmoDPS(), ItemTemplate::GetClass(), ItemTemplate::GetDamage(), Object::GetUInt32Value(), ITEM_CLASS_PROJECTILE, m_ammoDPS, PLAYER_AMMO_ID, RANGED_ATTACK, sObjectMgr, and Unit::UpdateDamagePhysical().
Referenced by _ApplyAllItemMods(), _ApplyItemMods(), _RemoveAllItemMods(), and SetAmmo().
| void Player::_ApplyItemBonuses | ( | ItemTemplate const * | proto, |
| uint8 | slot, | ||
| bool | apply, | ||
| bool | only_level_scale = false |
||
| ) |
Definition at line 7116 of file Player.cpp.
References _ApplyWeaponDamage(), ApplyFeralAPBonus(), ApplyHealthRegenBonus(), ApplyManaRegenBonus(), ApplyRatingMod(), ApplySpellPenetrationBonus(), ApplySpellPowerBonus(), BASE_VALUE, ScalingStatDistributionEntry::Bonus, CLASS_DRUID, CR_ARMOR_PENETRATION, CR_BLOCK, CR_CRIT_MELEE, CR_CRIT_RANGED, CR_CRIT_SPELL, CR_CRIT_TAKEN_MELEE, CR_CRIT_TAKEN_RANGED, CR_CRIT_TAKEN_SPELL, CR_DEFENSE_SKILL, CR_DODGE, CR_EXPERTISE, CR_HASTE_MELEE, CR_HASTE_RANGED, CR_HASTE_SPELL, CR_HIT_MELEE, CR_HIT_RANGED, CR_HIT_SPELL, CR_HIT_TAKEN_MELEE, CR_HIT_TAKEN_RANGED, CR_HIT_TAKEN_SPELL, CR_PARRY, FlatNegative, FlatPositive, ItemTemplate::GetArcaneRes(), ItemTemplate::GetArmor(), ItemTemplate::GetArmorDamageModifier(), ScalingStatValuesEntry::getArmorMod(), GetAttackBySlot(), ItemTemplate::GetBlock(), ItemTemplate::GetClass(), Unit::GetClass(), ScalingStatValuesEntry::getDPSMod(), ItemTemplate::getFeralBonus(), ScalingStatValuesEntry::getFeralBonus(), ItemTemplate::GetFireRes(), ItemTemplate::GetFrostRes(), ItemTemplate::GetHolyRes(), ItemTemplate::GetNatureRes(), GetScalingStatDistributionFor(), ItemTemplate::GetScalingStatValue(), GetScalingStatValuesFor(), ItemTemplate::GetShadowRes(), ScalingStatValuesEntry::getSpellBonus(), ScalingStatValuesEntry::getssdMultiplier(), ItemTemplate::GetStatModifierBonusStat(), ItemTemplate::GetStatsCount(), ItemTemplate::GetStatValue(), ItemTemplate::GetSubClass(), Unit::HandleAttackPowerModifier(), HandleBaseModFlatValue(), Unit::HandleStatFlatModifier(), INVENTORY_SLOT_BAG_END, ITEM_CLASS_ARMOR, ITEM_MOD_AGILITY, ITEM_MOD_ARMOR_PENETRATION_RATING, ITEM_MOD_ATTACK_POWER, ITEM_MOD_BLOCK_RATING, ITEM_MOD_BLOCK_VALUE, ITEM_MOD_CRIT_MELEE_RATING, ITEM_MOD_CRIT_RANGED_RATING, ITEM_MOD_CRIT_RATING, ITEM_MOD_CRIT_SPELL_RATING, ITEM_MOD_CRIT_TAKEN_MELEE_RATING, ITEM_MOD_CRIT_TAKEN_RANGED_RATING, ITEM_MOD_CRIT_TAKEN_RATING, ITEM_MOD_CRIT_TAKEN_SPELL_RATING, ITEM_MOD_DEFENSE_SKILL_RATING, ITEM_MOD_DODGE_RATING, ITEM_MOD_EXPERTISE_RATING, ITEM_MOD_HASTE_MELEE_RATING, ITEM_MOD_HASTE_RANGED_RATING, ITEM_MOD_HASTE_RATING, ITEM_MOD_HASTE_SPELL_RATING, ITEM_MOD_HEALTH, ITEM_MOD_HEALTH_REGEN, ITEM_MOD_HIT_MELEE_RATING, ITEM_MOD_HIT_RANGED_RATING, ITEM_MOD_HIT_RATING, ITEM_MOD_HIT_SPELL_RATING, ITEM_MOD_HIT_TAKEN_MELEE_RATING, ITEM_MOD_HIT_TAKEN_RANGED_RATING, ITEM_MOD_HIT_TAKEN_RATING, ITEM_MOD_HIT_TAKEN_SPELL_RATING, ITEM_MOD_INTELLECT, ITEM_MOD_MANA, ITEM_MOD_MANA_REGENERATION, ITEM_MOD_PARRY_RATING, ITEM_MOD_RANGED_ATTACK_POWER, ITEM_MOD_RESILIENCE_RATING, ITEM_MOD_SPELL_DAMAGE_DONE, ITEM_MOD_SPELL_HEALING_DONE, ITEM_MOD_SPELL_PENETRATION, ITEM_MOD_SPELL_POWER, ITEM_MOD_SPIRIT, ITEM_MOD_STAMINA, ITEM_MOD_STRENGTH, ITEM_SUBCLASS_ARMOR_CLOTH, ITEM_SUBCLASS_ARMOR_LEATHER, ITEM_SUBCLASS_ARMOR_MAIL, ITEM_SUBCLASS_ARMOR_PLATE, ITEM_SUBCLASS_ARMOR_SHIELD, MAX_ATTACK, MAX_ITEM_PROTO_STATS, Melee, Ranged, SHIELD_BLOCK_VALUE, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, ScalingStatDistributionEntry::StatID, TOTAL_VALUE, UNIT_MOD_ARMOR, UNIT_MOD_HEALTH, UNIT_MOD_MANA, UNIT_MOD_RESISTANCE_ARCANE, UNIT_MOD_RESISTANCE_FIRE, UNIT_MOD_RESISTANCE_FROST, UNIT_MOD_RESISTANCE_HOLY, UNIT_MOD_RESISTANCE_NATURE, UNIT_MOD_RESISTANCE_SHADOW, UNIT_MOD_STAT_AGILITY, UNIT_MOD_STAT_INTELLECT, UNIT_MOD_STAT_SPIRIT, UNIT_MOD_STAT_STAMINA, UNIT_MOD_STAT_STRENGTH, and Unit::UpdateStatBuffMod().
Referenced by _ApplyAllItemMods(), _ApplyAllLevelScaleItemMods(), _ApplyItemMods(), and _RemoveAllItemMods().
Definition at line 7056 of file Player.cpp.
References _ApplyAmmoBonuses(), _ApplyItemBonuses(), ApplyEnchantment(), ApplyItemDependentAuras(), ApplyItemEquipSpell(), CorrectMetaGemEnchants(), EQUIPMENT_SLOT_RANGED, GetAttackBySlot(), Object::GetGUID(), ItemTemplate::GetSocketColor(), Item::GetTemplate(), INVENTORY_SLOT_BAG_END, Item::IsBroken(), MAX_ATTACK, TC_LOG_DEBUG, ObjectGuid::ToString(), and UpdateWeaponDependentAuras().
Referenced by DestroyItem(), DurabilityPointsLoss(), DurabilityRepair(), EquipItem(), and RemoveItem().
| void Player::_ApplyWeaponDamage | ( | uint8 | slot, |
| ItemTemplate const * | proto, | ||
| bool | apply | ||
| ) |
Definition at line 7382 of file Player.cpp.
References BASE_ATTACK, BASE_ATTACK_TIME, BASE_MAXDAMAGE, BASE_MINDAMAGE, Unit::CanModifyStats(), Unit::CanUseAttackType(), GetAttackBySlot(), ItemTemplate::GetDamage(), ItemTemplate::GetDelay(), ScalingStatValuesEntry::getDPSMod(), ItemTemplate::GetScalingStatValue(), GetScalingStatValuesFor(), Unit::GetWeaponDamageRange(), Unit::IsInFeralForm(), ScalingStatValuesEntry::isTwoHand(), MAX_ITEM_PROTO_DAMAGES, MAXDAMAGE, MINDAMAGE, Unit::SetAttackTime(), Unit::SetBaseWeaponDamage(), and Unit::UpdateDamagePhysical().
Referenced by _ApplyItemBonuses(), AuraEffect::HandleAuraModDisarm(), and AuraEffect::HandleAuraModShapeshift().
|
protected |
Definition at line 17661 of file Player.cpp.
References ACTIONBUTTON_DELETED, ACTIONBUTTON_UNCHANGED, AddActionButton(), Object::GetGUID(), WorldObject::GetName(), Field::GetUInt32(), Field::GetUInt8(), m_actionButtons, TC_LOG_DEBUG, and Position::ToString().
Referenced by LoadActions(), and LoadFromDB().
|
protected |
Definition at line 16734 of file Player.cpp.
References ARENA_TEAM_END, ARENA_TEAM_GAMES_SEASON, ARENA_TEAM_GAMES_WEEK, ARENA_TEAM_ID, ARENA_TEAM_MEMBER, ARENA_TEAM_PERSONAL_RATING, ARENA_TEAM_TYPE, ARENA_TEAM_WINS_SEASON, ASSERT, ArenaTeam::GetCaptain(), Object::GetGUID(), ArenaTeam::GetSlot(), ArenaTeam::GetType(), Field::GetUInt16(), Field::GetUInt32(), Object::m_uint32Values, MAX_ARENA_SLOT, PLAYER_FIELD_ARENA_TEAM_INFO_1_1, sArenaTeamMgr, SetArenaTeamInfoField(), and TC_LOG_ERROR.
Referenced by LoadFromDB().
|
protected |
Definition at line 17688 of file Player.cpp.
References AuraLoadEffectInfo::Amounts, AuraLoadEffectInfo::BaseAmounts, Field::GetBool(), Field::GetFloat(), Object::GetGUID(), Field::GetInt32(), WorldObject::GetName(), Unit::GetRace(), Field::GetUInt32(), Field::GetUInt8(), SpellInfo::HasAttribute(), SpellInfo::Id, IN_MILLISECONDS, SpellInfo::IsPositive(), SpellInfo::ProcCharges, ChrRacesEntry::ResSicknessSpellID, sChrRacesStore, AuraCreateInfo::SetBaseAmount(), AuraCreateInfo::SetCasterGUID(), AuraCreateInfo::SetCastItemGUID(), ObjectGuid::SetRawValue(), SPELL_ATTR4_FADES_WHILE_LOGGED_OUT, sSpellMgr, TC_LOG_DEBUG, TC_LOG_ERROR, Position::ToString(), and Aura::TryCreate().
Referenced by LoadFromDB().
|
protected |
Definition at line 16806 of file Player.cpp.
References BGData::bgInstanceID, BGData::bgTeam, Field::GetUInt16(), Field::GetUInt32(), BGData::joinPos, m_bgData, BGData::mountSpell, BGData::taxiPath, and WorldLocation::WorldLocation().
Referenced by LoadFromDB().
|
protected |
Definition at line 18487 of file Player.cpp.
References BindToInstance(), CHAR_DEL_CHAR_INSTANCE_BY_INSTANCE_GUID, CharacterDatabase, Field::GetBool(), GetGroup(), Object::GetGUID(), Group::GetGUID(), GetMapDifficultyData(), WorldObject::GetName(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt8(), MapEntry::IsDungeon(), m_boundInstances, MapEntry::MapName, MAX_DIFFICULTY, PreparedStatementBase::setUInt32(), sInstanceSaveMgr, sMapStore, sWorld, TC_LOG_ERROR, ObjectGuid::ToString(), and Position::ToString().
Referenced by LoadFromDB().
|
protected |
Definition at line 18328 of file Player.cpp.
References Object::GetGUID(), WorldObject::GetName(), Field::GetUInt32(), m_DailyQuestChanged, m_DFQuests, m_lastDailyQuestTime, PLAYER_FIELD_DAILY_QUESTS_1, PLAYER_MAX_DAILY_QUESTS, Object::SetUInt32Value(), sObjectMgr, TC_LOG_DEBUG, TC_LOG_ERROR, and Position::ToString().
Referenced by LoadFromDB().
|
protected |
Definition at line 16723 of file Player.cpp.
References m_declinedname, MAX_DECLINED_NAME_CASES, and DeclinedName::name.
Referenced by LoadFromDB().
|
protected |
Definition at line 16777 of file Player.cpp.
References _equipmentSets, EquipmentSetInfo::Data, EQUIPMENT_SET_UNCHANGED, EQUIPMENT_SLOT_END, 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, and EquipmentSetInfo::State.
Referenced by LoadFromDB().
|
protected |
Definition at line 17778 of file Player.cpp.
References WorldObject::CastSpell(), GetActiveTalentGroup(), GetGlyph(), GetGlyphSlot(), Object::GetGUID(), WorldObject::GetName(), MAX_GLYPH_SLOT_INDEX, SetGlyph(), sGlyphPropertiesStore, sGlyphSlotStore, TC_LOG_ERROR, and Position::ToString().
Referenced by LoadFromDB().
|
protected |
Definition at line 25523 of file Player.cpp.
References _talentMgr, GetTalentGroupsCount(), Field::GetUInt16(), Field::GetUInt8(), TalentGroupInfo::Glyphs, PlayerTalentInfo::GroupInfo, and MAX_GLYPH_SLOT_INDEX.
Referenced by LoadFromDB().
|
protected |
Definition at line 18464 of file Player.cpp.
References GetGroup(), Object::GetGUID(), PLAYER_FLAGS, PLAYER_FLAGS_GROUP_LEADER, Object::RemoveFlag(), SetDungeonDifficultyID(), Object::SetFlag(), SetGroup(), SetRaidDifficultyID(), and sGroupMgr.
Referenced by LoadFromDB().
|
protected |
Definition at line 18925 of file Player.cpp.
References PlayerInfo::areaId, CHAR_DEL_PLAYER_HOMEBIND, CHAR_INS_PLAYER_HOMEBIND, CharacterDatabase, MapEntry::Expansion(), Unit::GetClass(), Field::GetFloat(), Object::GetGUID(), WorldObject::GetName(), Unit::GetRace(), GetSession(), Field::GetUInt16(), MapEntry::Instanceable(), MapManager::IsValidMapCoord(), m_homebindAreaId, m_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, PlayerInfo::mapId, PlayerInfo::positionX, PlayerInfo::positionY, PlayerInfo::positionZ, PreparedStatementBase::setFloat(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), sMapStore, sObjectMgr, TC_LOG_DEBUG, TC_LOG_ERROR, and Position::ToString().
Referenced by LoadFromDB().
|
protected |
Definition at line 17828 of file Player.cpp.
References _ApplyAllItemMods(), _LoadItem(), MailDraft::AddItem(), BankItem(), CanBankItem(), CanEquipItem(), CanStoreItem(), CharacterDatabase, ObjectGuid::Empty, EQUIP_ERR_INTERNAL_BAG_ERROR, EQUIP_ERR_OK, Object::GetGUID(), WorldObject::GetName(), GetSession(), WorldSession::GetTrinityString(), Field::GetUInt32(), Field::GetUInt8(), WorldObject::GetZoneId(), INVENTORY_SLOT_BAG_0, IsBagPos(), IsBankPos(), IsEquipmentPos(), IsInventoryPos(), ITEM_UNCHANGED, LANG_NOT_EQUIPPED_ITEM, m_itemUpdateQueueBlocked, MAIL_CHECK_MASK_COPIED, MAIL_CHECK_MASK_NOT_RETURNABLE, MAIL_STATIONERY_GM, MAX_MAIL_ITEMS, NULL_SLOT, QuickEquipItem(), MailDraft::SendMailTo(), StoreItem(), TC_LOG_ERROR, Item::ToBag(), ObjectGuid::ToString(), and Position::ToString().
Referenced by LoadFromDB().
|
private |
Definition at line 17959 of file Player.cpp.
References AddRefundReference(), AddTradeableItem(), CHAR_DEL_ITEM_REFUND_INSTANCE, CHAR_SEL_ITEM_BOP_TRADE, CHAR_SEL_ITEM_REFUNDS, CharacterDatabase, Item::ClearSoulboundTradeable(), Item::DeleteFromDB(), Item::DeleteFromInventoryDB(), Item::FSetState(), ObjectGuid::GetCounter(), Object::GetGUID(), Object::GetGUID(), WorldLocation::GetMapId(), ItemTemplate::GetMaxStackSize(), WorldObject::GetName(), Item::GetPlayedTime(), Item::GetTemplate(), Field::GetUInt32(), HOUR, Unit::IsAlive(), Item::IsBOPTradeable(), Item::IsLimitedToAnotherMapOrZone(), Item::IsRefundable(), 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::setUInt32(), sGameEventMgr, sObjectMgr, TC_LOG_DEBUG, TC_LOG_ERROR, TC_LOG_WARN, Trinity::Tokenize(), ObjectGuid::ToString(), and Position::ToString().
Referenced by _LoadInventory().
|
protected |
Definition at line 18140 of file Player.cpp.
References _LoadMailedItem(), Mail::body, Mail::checked, Mail::COD, Mail::deliver_time, Mail::expire_time, Object::GetGUID(), Field::GetInt16(), Field::GetString(), Field::GetUInt32(), Field::GetUInt8(), m_mail, MAIL_STATE_UNCHANGED, Mail::mailTemplateId, 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 18090 of file Player.cpp.
References Mail::AddItem(), AddMItem(), CHAR_DEL_INVALID_MAIL_ITEM, CHAR_DEL_MAIL_ITEM, CharacterDatabase, Item::DeleteFromDB(), ObjectGuid::Empty, Item::FSetState(), WorldObject::GetName(), Field::GetUInt32(), ITEM_REMOVED, Item::LoadFromDB(), NewItemOrBag(), Item::SaveToDB(), PreparedStatementBase::setUInt32(), sObjectMgr, TC_LOG_ERROR, and ObjectGuid::ToString().
Referenced by _LoadMail(), and DeleteFromDB().
|
protected |
Definition at line 18428 of file Player.cpp.
References Object::GetGUID(), WorldObject::GetName(), Field::GetUInt32(), m_MonthlyQuestChanged, m_monthlyquests, sObjectMgr, TC_LOG_DEBUG, and Position::ToString().
Referenced by LoadFromDB().
|
protected |
Definition at line 26121 of file Player.cpp.
References PetStable::PetInfo::ActionBar, PetStable::PetInfo::CreatedBySpellId, PetStable::PetInfo::CreatureId, PetStable::PetInfo::DisplayId, PetStable::PetInfo::Experience, Field::GetBool(), Object::GetGUID(), Field::GetString(), Field::GetUInt16(), Field::GetUInt32(), PetStable::PetInfo::Happiness, PetStable::PetInfo::Health, PetStable::PetInfo::LastSaveTime, PetStable::PetInfo::Level, m_petStable, PetStable::PetInfo::Mana, MAX_PET_STABLES, PetStable::PetInfo::Name, PET_SAVE_AS_CURRENT, PET_SAVE_FIRST_STABLE_SLOT, PET_SAVE_LAST_STABLE_SLOT, PET_SAVE_NOT_IN_SLOT, PetStable::PetInfo::PetNumber, PetStable::PetInfo::ReactState, TC_LOG_ERROR, Position::ToString(), PetStable::PetInfo::Type, and PetStable::PetInfo::WasRenamed.
Referenced by LoadFromDB().
|
protected |
Definition at line 18206 of file Player.cpp.
References AddTimedQuest(), QuestStatusData::CreatureOrGOCount, QuestStatusData::Explored, GameTime::GetGameTime(), Object::GetGUID(), WorldObject::GetName(), GetQuestRewardStatus(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt8(), Quest::HasSpecialFlag(), IN_MILLISECONDS, QuestStatusData::ItemCount, m_QuestStatus, MAX_QUEST_LOG_SIZE, MAX_QUEST_STATUS, QuestStatusData::PlayerCount, QUEST_ITEM_OBJECTIVES_COUNT, QUEST_OBJECTIVES_COUNT, QUEST_PVP_KILL_SLOT, QUEST_SPECIAL_FLAGS_TIMED, QUEST_STATE_COMPLETE, QUEST_STATE_FAIL, QUEST_STATUS_COMPLETE, QUEST_STATUS_FAILED, QUEST_STATUS_INCOMPLETE, QUEST_STATUS_NONE, SetQuestSlot(), SetQuestSlotCounter(), SetQuestSlotState(), sObjectMgr, QuestStatusData::Status, TC_LOG_DEBUG, TC_LOG_ERROR, QuestStatusData::Timer, and Position::ToString().
Referenced by LoadFromDB().
|
protected |
Definition at line 18294 of file Player.cpp.
References AddQuestRewardedTalentCount(), Quest::CanIncreaseRewardedQuestCounters(), Quest::GetBonusTalents(), Quest::GetRewTitle(), Field::GetUInt32(), LearnQuestRewardedSpells(), m_RewardedQuests, sCharTitlesStore, SetTitle(), and sObjectMgr.
Referenced by LoadFromDB().
|
protected |
Definition at line 26093 of file Player.cpp.
References m_IsBGRandomWinner.
Referenced by LoadFromDB().
|
protected |
Definition at line 18402 of file Player.cpp.
References Object::GetGUID(), Field::GetInt64(), WorldObject::GetName(), Field::GetUInt32(), m_SeasonalQuestChanged, m_seasonalquests, sObjectMgr, TC_LOG_DEBUG, and Position::ToString().
Referenced by LoadFromDB().
|
protected |
Definition at line 24643 of file Player.cpp.
References CHAR_DEL_CHARACTER_SKILL, CharacterDatabase, Unit::GetClass(), Object::GetGUID(), Unit::GetMaxSkillValueForLevel(), WorldObject::GetName(), Unit::GetRace(), GetSkillRaceClassInfo(), GetSkillRangeType(), GetSkillValue(), Field::GetUInt16(), HasSkill(), LearnSkillRewardedSpells(), MAX_SKILL_STEP, mSkillStatus, PLAYER_MAX_SKILLS, SetSkill(), SetSkillLineId(), SetSkillMaxRank(), SetSkillPermBonus(), SetSkillRank(), SetSkillStep(), SetSkillTempBonus(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), SKILL_DELETED, SKILL_FIST_WEAPONS, SKILL_RANGE_LANGUAGE, SKILL_RANGE_LEVEL, SKILL_RANGE_MONO, SKILL_UNARMED, SKILL_UNCHANGED, SkillRaceClassInfoEntry::SkillTierID, sSkillTiersStore, TC_LOG_ERROR, and Position::ToString().
Referenced by LoadFromDB().
|
protected |
|
protected |
|
protected |
Definition at line 18377 of file Player.cpp.
References Object::GetGUID(), WorldObject::GetName(), Field::GetUInt32(), m_WeeklyQuestChanged, m_weeklyquests, sObjectMgr, TC_LOG_DEBUG, and Position::ToString().
Referenced by LoadFromDB().
| void Player::_RemoveAllItemMods | ( | ) |
Definition at line 7869 of file Player.cpp.
References _ApplyAmmoBonuses(), _ApplyItemBonuses(), ApplyEnchantment(), ApplyItemDependentAuras(), ApplyItemEquipSpell(), Unit::CanUseAttackType(), EQUIPMENT_SLOT_RANGED, GetAttackBySlot(), ItemTemplate::GetItemSet(), Item::GetTemplate(), INVENTORY_SLOT_BAG_END, m_items, RemoveItemsSetItem(), and TC_LOG_DEBUG.
Referenced by _RemoveAllStatBonuses().
| void Player::_RemoveAllStatBonuses | ( | ) |
Definition at line 1054 of file StatSystem.cpp.
References Unit::_RemoveAllAuraStatMods(), _RemoveAllItemMods(), Unit::SetCanModifyStats(), and UpdateAllStats().
Referenced by InitStatsForLevel().
|
protected |
Definition at line 19330 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(), Object::GetGUID(), m_actionButtons, PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt8().
Referenced by ActivateTalentGroup(), SaveToDB(), and UpdateTalentGroupCount().
|
protected |
Definition at line 19378 of file Player.cpp.
References CHAR_DEL_CHAR_AURA, CHAR_INS_AURA, CharacterDatabase, ObjectGuid::GetCounter(), Aura::GetEffect(), Object::GetGUID(), Unit::m_ownedAuras, MAX_SPELL_EFFECTS, PreparedStatementBase::setBool(), PreparedStatementBase::setFloat(), PreparedStatementBase::setInt32(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), and PreparedStatementBase::setUInt8().
Referenced by SaveToDB().
|
protected |
Definition at line 25453 of file Player.cpp.
References BGData::bgInstanceID, BGData::bgTeam, CHAR_DEL_PLAYER_BGDATA, CHAR_INS_PLAYER_BGDATA, CharacterDatabase, Object::GetGUID(), WorldLocation::GetMapId(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), BGData::joinPos, m_bgData, BGData::mountSpell, PreparedStatementBase::setFloat(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), and BGData::taxiPath.
Referenced by SaveToDB().
|
protected |
Definition at line 19714 of file Player.cpp.
References CHAR_DEL_CHARACTER_QUESTSTATUS_DAILY, CHAR_INS_CHARACTER_QUESTSTATUS_DAILY, CharacterDatabase, ObjectGuid::GetCounter(), Object::GetGUID(), Object::GetUInt32Value(), m_DailyQuestChanged, m_DFQuests, m_lastDailyQuestTime, PLAYER_FIELD_DAILY_QUESTS_1, PLAYER_MAX_DAILY_QUESTS, PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt64().
Referenced by SaveToDB().
|
protected |
Definition at line 25403 of file Player.cpp.
References _equipmentSets, CHAR_DEL_EQUIP_SET, CHAR_INS_EQUIP_SET, CHAR_UPD_EQUIP_SET, CharacterDatabase, EquipmentSetInfo::Data, EQUIPMENT_SET_CHANGED, EQUIPMENT_SET_DELETED, EQUIPMENT_SET_NEW, EQUIPMENT_SET_UNCHANGED, EQUIPMENT_SLOT_END, ObjectGuid::GetCounter(), Object::GetGUID(), EquipmentSetInfo::EquipmentSetData::Guid, EquipmentSetInfo::EquipmentSetData::IgnoreMask, EquipmentSetInfo::EquipmentSetData::Pieces, EquipmentSetInfo::EquipmentSetData::SetIcon, EquipmentSetInfo::EquipmentSetData::SetID, EquipmentSetInfo::EquipmentSetData::SetName, PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), and EquipmentSetInfo::State.
Referenced by SaveToDB().
|
protected |
Definition at line 25543 of file Player.cpp.
References CHAR_DEL_CHAR_GLYPHS, CHAR_INS_CHAR_GLYPHS, CharacterDatabase, ObjectGuid::GetCounter(), GetGlyph(), Object::GetGUID(), GetTalentGroupsCount(), MAX_GLYPH_SLOT_INDEX, PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt8().
Referenced by SaveToDB().
|
protected |
Definition at line 19431 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_DEL_ITEM_INSTANCE, CHAR_REP_INVENTORY_ITEM, CharacterDatabase, DeleteRefundReference(), Item::FSetState(), Item::GetBagSlot(), Item::GetContainer(), ObjectGuid::GetCounter(), Object::GetGUID(), Object::GetGUID(), GetItemByGuid(), GetItemByPos(), WorldObject::GetName(), Item::GetSlot(), Item::GetState(), Item::GetTemplate(), 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::setUInt32(), PreparedStatementBase::setUInt8(), sLootItemStorage, TC_LOG_ERROR, ObjectGuid::ToString(), Position::ToString(), and Item::UpdatePlayedTime().
Referenced by SaveInventoryAndGoldToDB(), and SaveToDB().
|
protected |
Definition at line 19570 of file Player.cpp.
References CHAR_DEL_ITEM_INSTANCE, CHAR_DEL_MAIL_BY_ID, CHAR_DEL_MAIL_ITEM, CHAR_DEL_MAIL_ITEM_BY_ID, CHAR_UPD_MAIL, CharacterDatabase, Mail::checked, Mail::COD, Mail::deliver_time, Mail::expire_time, Mail::HasItems(), Mail::items, m_mail, m_mailsUpdated, MAIL_STATE_CHANGED, MAIL_STATE_DELETED, MAIL_STATE_UNCHANGED, Mail::messageID, Mail::money, Mail::removedItems, PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), and Mail::state.
Referenced by WorldSession::HandleMailTakeItem(), WorldSession::HandleMailTakeMoney(), and SaveToDB().
|
protected |
Definition at line 19810 of file Player.cpp.
References CHAR_DEL_CHARACTER_QUESTSTATUS_MONTHLY, CHAR_INS_CHARACTER_QUESTSTATUS_MONTHLY, CharacterDatabase, ObjectGuid::GetCounter(), Object::GetGUID(), m_MonthlyQuestChanged, m_monthlyquests, and PreparedStatementBase::setUInt32().
Referenced by SaveToDB().
|
protected |
Definition at line 19640 of file Player.cpp.
References CHAR_DEL_CHAR_QUESTSTATUS_BY_QUEST, CHAR_DEL_CHAR_QUESTSTATUS_REWARDED_BY_QUEST, CHAR_INS_CHAR_QUESTSTATUS_REWARDED, CHAR_REP_CHAR_QUESTSTATUS, CharacterDatabase, CharacterDatabaseCleaner::CLEANING_FLAG_QUESTSTATUS, ObjectGuid::GetCounter(), GameTime::GetGameTime(), Object::GetGUID(), IN_MILLISECONDS, m_QuestStatus, m_QuestStatusSave, m_RewardedQuestsSave, QUEST_DEFAULT_SAVE_TYPE, QUEST_FORCE_DELETE_SAVE_TYPE, QUEST_ITEM_OBJECTIVES_COUNT, QUEST_OBJECTIVES_COUNT, QUEST_STATUS_NONE, PreparedStatementBase::setBool(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), and sWorld.
Referenced by SaveToDB().
|
protected |
Definition at line 19776 of file Player.cpp.
References CHAR_DEL_CHARACTER_QUESTSTATUS_SEASONAL, CHAR_INS_CHARACTER_QUESTSTATUS_SEASONAL, CharacterDatabase, ObjectGuid::GetCounter(), Object::GetGUID(), m_SeasonalQuestChanged, m_seasonalquests, PreparedStatementBase::setInt64(), and PreparedStatementBase::setUInt32().
Referenced by SaveToDB().
|
protected |
Definition at line 19833 of file Player.cpp.
References CHAR_DEL_CHAR_SKILL_BY_SKILL, CHAR_INS_CHAR_SKILLS, CHAR_UPD_CHAR_SKILLS, CharacterDatabase, ObjectGuid::GetCounter(), Object::GetGUID(), GetSkillMaxRankByPos(), GetSkillRankByPos(), mSkillStatus, PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), SKILL_CHANGED, SKILL_DELETED, SKILL_NEW, and SKILL_UNCHANGED.
Referenced by SaveToDB().
|
protected |
Definition at line 19888 of file Player.cpp.
References CHAR_DEL_CHAR_SPELL_BY_SPELL, CHAR_INS_CHAR_SPELL, CharacterDatabase, ObjectGuid::GetCounter(), Object::GetGUID(), m_spells, PLAYERSPELL_CHANGED, PLAYERSPELL_NEW, PLAYERSPELL_REMOVED, PLAYERSPELL_TEMPORARY, PLAYERSPELL_UNCHANGED, PreparedStatementBase::setBool(), and PreparedStatementBase::setUInt32().
Referenced by ResetTalents(), and SaveToDB().
|
protected |
Definition at line 19928 of file Player.cpp.
References AsUnderlyingType(), CHAR_DEL_CHAR_STATS, CHAR_INS_CHAR_STATS, CharacterDatabase, CONFIG_MIN_LEVEL_STAT_SAVE, CR_CRIT_TAKEN_SPELL, GetBaseSpellPowerBonus(), Object::GetFloatValue(), Object::GetGUID(), Unit::GetLevel(), Unit::GetMaxHealth(), Unit::GetMaxPower(), Unit::GetResistance(), Unit::GetStat(), Object::GetUInt32Value(), MAX_POWERS, MAX_SPELL_SCHOOL, MAX_STATS, PLAYER_BLOCK_PERCENTAGE, PLAYER_CRIT_PERCENTAGE, PLAYER_DODGE_PERCENTAGE, PLAYER_FIELD_COMBAT_RATING_1, PLAYER_PARRY_PERCENTAGE, PLAYER_RANGED_CRIT_PERCENTAGE, PLAYER_SPELL_CRIT_PERCENTAGE1, PreparedStatementBase::setFloat(), PreparedStatementBase::setUInt32(), sWorld, UNIT_FIELD_ATTACK_POWER, and UNIT_FIELD_RANGED_ATTACK_POWER.
Referenced by SaveToDB().
|
protected |
Definition at line 25576 of file Player.cpp.
References CHAR_DEL_CHAR_TALENT_BY_SPELL_SPEC, CHAR_INS_CHAR_TALENT, CharacterDatabase, ObjectGuid::GetCounter(), Object::GetGUID(), GetTalentMap(), MAX_TALENT_GROUPS, PLAYERSPELL_CHANGED, PLAYERSPELL_NEW, PLAYERSPELL_REMOVED, PLAYERSPELL_UNCHANGED, PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt8().
Referenced by ResetTalents(), and SaveToDB().
|
protected |
Definition at line 19753 of file Player.cpp.
References CHAR_DEL_CHARACTER_QUESTSTATUS_WEEKLY, CHAR_INS_CHARACTER_QUESTSTATUS_WEEKLY, CharacterDatabase, ObjectGuid::GetCounter(), Object::GetGUID(), m_WeeklyQuestChanged, m_weeklyquests, and PreparedStatementBase::setUInt32().
Referenced by SaveToDB().
|
private |
Definition at line 11684 of file Player.cpp.
References AddEnchantmentDurations(), AddItemDurations(), AddKnownCurrency(), Object::AddToWorld(), ApplyItemObtainSpells(), BIND_QUEST_ITEM, BIND_WHEN_EQUIPED, BIND_WHEN_PICKED_UP, Item::ClearSoulboundTradeable(), Item::CloneItem(), CURRENCYTOKEN_SLOT_END, CURRENCYTOKEN_SLOT_START, Object::DestroyForPlayer(), GetBagByPos(), ItemTemplate::GetBonding(), Item::GetCount(), Object::GetEntry(), Object::GetGUID(), Object::GetGUID(), GetItemByPos(), WorldObject::GetName(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, IsBagPos(), Object::IsInWorld(), ITEM_CHANGED, ITEM_REMOVED, m_items, PLAYER_FIELD_INV_SLOT_HEAD, RemoveEnchantmentDurations(), Object::RemoveFromWorld(), RemoveItemDurations(), RemoveTradeableItem(), Object::SendUpdateToPlayer(), Item::SetBinding(), Item::SetContainedIn(), Item::SetContainer(), Item::SetCount(), Object::SetGuidValue(), 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 21335 of file Player.cpp.
References AddRefundReference(), ItemExtendedCostEntry::ArenaPoints, ASSERT, AutoUnequipOffhandIfNeed(), CanEquipNewItem(), CanStoreNewItem(), DestroyItemCount(), EQUIP_ERR_OK, EquipNewItem(), VendorItem::ExtendedCost, ItemTemplate::GetBuyCount(), Object::GetGUID(), Object::GetGUID(), ItemTemplate::GetMaxStackSize(), ItemTemplate::HasFlag(), ItemExtendedCostEntry::HonorPoints, ITEM_FIELD_FLAG_REFUNDABLE, ITEM_FLAG_ITEM_PURCHASE_RECORD, ItemExtendedCostEntry::ItemCount, ItemExtendedCostEntry::ItemID, MAX_ITEM_EXTENDED_COST_REQUIREMENTS, VendorItem::maxcount, ModifyArenaPoints(), ModifyHonorPoints(), ModifyMoney(), Item::SaveRefundDataToDB(), SendDirectMessage(), SendEquipError(), SendNewItem(), Item::SetItemFlag(), Item::SetPaidExtendedCost(), Item::SetPaidMoney(), Item::SetRefundRecipient(), sItemExtendedCostStore, SMSG_BUY_ITEM, StoreNewItem(), and Creature::UpdateVendorItemCurrentCount().
Referenced by BuyItemFromVendorSlot().
| void Player::AbandonQuest | ( | uint32 | quest_id | ) |
Definition at line 15102 of file Player.cpp.
References BIND_QUEST_ITEM, DestroyItemCount(), QUEST_ITEM_DROP_COUNT, QUEST_ITEM_OBJECTIVES_COUNT, and sObjectMgr.
Referenced by WorldSession::HandleQuestLogRemoveQuest().
| void Player::ActivateTalentGroup | ( | uint8 | group | ) |
Definition at line 25662 of file Player.cpp.
References _SaveActions(), AsyncCallbackProcessor< T >::AddCallback(), WorldObject::CastSpell(), CHAR_SEL_CHARACTER_ACTIONS_SPEC, CharacterDatabase, TalentTabEntry::ClassMask, Unit::ClearAllReactives(), Unit::ExitVehicle(), GetActiveTalentGroup(), Unit::GetAuraEffectsByType(), Unit::GetClassMask(), GetGlyph(), Object::GetGUID(), GetPet(), Unit::GetPowerType(), WorldSession::GetQueryProcessor(), GetSession(), Unit::GetSingleCastAuras(), GetTalentGroupsCount(), Aura::GetUnitOwner(), HasTalent(), InitTalentForLevel(), Unit::InterruptNonMeleeSpells(), Unit::IsNonMeleeSpellCast(), LearnSpell(), MAX_GLYPH_SLOT_INDEX, MAX_TALENT_RANK, PET_SAVE_NOT_IN_SLOT, POWER_MANA, Aura::Remove(), Unit::RemoveAllControlled(), Unit::RemoveAurasDueToSpell(), RemovePet(), RemoveSpell(), SendActionButtons(), SetActiveTalentGroup(), SetGlyph(), Unit::SetPower(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), SetUsedTalentCount(), sGlyphPropertiesStore, SPELL_AURA_MOD_SHAPESHIFT, SPELL_EFFECT_LEARN_SPELL, TalentEntry::SpellRank, sSpellMgr, sTalentStore, sTalentTabStore, TalentEntry::TabID, and Unit::UnsummonAllTotems().
Referenced by Spell::EffectActivateSpec(), and UpdateTalentGroupCount().
| bool Player::ActivateTaxiPathTo | ( | std::vector< uint32 > const & | nodes, |
| Creature * | npc = nullptr, |
||
| uint32 | spellid = 0 |
||
| ) |
Definition at line 21005 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_FLIGHT_PATHS_TAKEN, ACHIEVEMENT_CRITERIA_TYPE_GOLD_SPENT_FOR_TRAVELLING, PlayerTaxi::AddTaxiDestination(), ASSERT, CLASS_DEATH_KNIGHT, PlayerTaxi::ClearTaxiDestinations(), Unit::CombatStop(), CONFIG_INSTANT_TAXI, TaxiNodesEntry::ContinentID, CURRENT_AUTOREPEAT_SPELL, CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, ERR_TAXINOSUCHPATH, ERR_TAXINOTENOUGHMONEY, ERR_TAXIOK, ERR_TAXIPLAYERALREADYMOUNTED, ERR_TAXIPLAYERBUSY, ERR_TAXIPLAYERSHAPESHIFTED, ERR_TAXIUNSPECIFIEDSERVERERROR, Unit::ExitVehicle(), Unit::GetClass(), Unit::GetCurrentSpell(), Unit::GetFaction(), GetMoney(), Position::GetOrientation(), GetReputationPriceDiscount(), GetSession(), GetTeam(), Unit::HasUnitFlag(), Unit::HasUnitState(), Unit::InterruptSpell(), Unit::IsInCombat(), Unit::IsInDisallowedMountForm(), Unit::IsMounted(), Unit::IsNonMeleeSpellCast(), m_taxi, ModifyMoney(), TaxiNodesEntry::Pos, Unit::RemoveAurasByType(), WorldSession::SendActivateTaxiReply(), WorldSession::SendDoFlight(), PlayerTaxi::SetFlightMasterFactionTemplateId(), sObjectMgr, SPELL_AURA_MOD_SHAPESHIFT, SPELL_AURA_MOUNTED, sTaxiNodesStore, StopCastingBindSight(), StopCastingCharm(), sWorld, TeleportTo(), TradeCancel(), UNIT_FLAG_REMOVE_CLIENT_CONTROL, UNIT_STATE_ROOT, UNIT_STATE_STUNNED, UpdateAchievementCriteria(), DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.
Referenced by ActivateTaxiPathTo(), Spell::EffectSendTaxi(), WorldSession::HandleActivateTaxiExpressOpcode(), WorldSession::HandleActivateTaxiOpcode(), and OPvPCapturePointNA::HandleCustomSpell().
Definition at line 21184 of file Player.cpp.
References ActivateTaxiPathTo(), TaxiPathEntry::FromTaxiNode, sTaxiPathStore, and TaxiPathEntry::ToTaxiNode.
| ActionButton * Player::AddActionButton | ( | uint8 | button, |
| uint32 | action, | ||
| uint8 | type | ||
| ) |
Definition at line 6065 of file Player.cpp.
References Object::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 1179 of file Player.h.
Referenced by Spell::EffectProficiency().
| uint32 Player::AddBattlegroundQueueId | ( | BattlegroundQueueTypeId | val | ) |
Definition at line 23073 of file Player.cpp.
References BATTLEGROUND_QUEUE_NONE, Player::BgBattlegroundQueueID_Rec::bgQueueTypeId, Player::BgBattlegroundQueueID_Rec::invitedToInstance, m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), and LoadFromDB().
| void Player::AddEnchantmentDuration | ( | Item * | item, |
| EnchantmentSlot | slot, | ||
| uint32 | duration | ||
| ) |
Definition at line 13402 of file Player.cpp.
References Object::GetGUID(), Object::GetGUID(), GetSession(), m_enchantDuration, MAX_ENCHANTMENT_SLOT, and WorldSession::SendItemEnchantTimeUpdate().
Referenced by AddEnchantmentDurations(), and ApplyEnchantment().
| void Player::AddEnchantmentDurations | ( | Item * | item | ) |
Definition at line 13317 of file Player.cpp.
References AddEnchantmentDuration(), Item::GetEnchantmentDuration(), Item::GetEnchantmentId(), and MAX_ENCHANTMENT_SLOT.
Referenced by _StoreItem(), EquipItem(), and QuickEquipItem().
Definition at line 25915 of file Player.cpp.
References CanStoreNewItem(), EQUIP_ERR_OK, GenerateItemRandomPropertyId(), GetSession(), NULL_BAG, NULL_SLOT, ChatHandler::PSendSysMessage(), SendNewItem(), and StoreNewItem().
Referenced by RewardHonor().
| void Player::AddItemDurations | ( | Item * | item | ) |
Definition at line 23344 of file Player.cpp.
References Object::GetUInt32Value(), ITEM_FIELD_DURATION, m_itemDuration, and Item::SendTimeUpdate().
Referenced by _StoreItem(), EquipItem(), and QuickEquipItem().
| void Player::AddItemToBuyBackSlot | ( | Item * | pItem | ) |
Definition at line 12975 of file Player.cpp.
References BUYBACK_SLOT_END, BUYBACK_SLOT_START, Item::GetCount(), Object::GetEntry(), GameTime::GetGameTime(), Object::GetGUID(), Object::GetGUID(), WorldObject::GetName(), Item::GetSellPrice(), Object::GetUInt32Value(), m_currentBuybackSlot, m_items, m_logintime, PLAYER_FIELD_BUYBACK_PRICE_1, PLAYER_FIELD_BUYBACK_TIMESTAMP_1, PLAYER_FIELD_VENDORBUYBACK_SLOT_1, RemoveItemFromBuyBackSlot(), Object::SetGuidValue(), Object::SetUInt32Value(), TC_LOG_DEBUG, and Position::ToString().
Referenced by WorldSession::HandleSellItemOpcode().
|
private |
Definition at line 25156 of file Player.cpp.
References PLAYER_FIELD_KNOWN_CURRENCIES, sCurrencyTypesStore, and Object::SetFlag64().
Referenced by _StoreItem(), SetArenaPoints(), and SetHonorPoints().
|
inline |
Definition at line 1417 of file Player.h.
Referenced by MailDraft::SendMailTo().
| void Player::AddMItem | ( | Item * | it | ) |
Definition at line 20576 of file Player.cpp.
References ASSERT, ObjectGuid::GetCounter(), Object::GetGUID(), and mMitems.
Referenced by _LoadMailedItem(), and MailDraft::SendMailTo().
| void Player::AddNewMailDeliverTime | ( | time_t | deliver_time | ) |
Definition at line 2868 of file Player.cpp.
References GameTime::GetGameTime(), m_nextMailDelivereTime, SendNewMail(), and unReadMails.
Referenced by MailDraft::SendMailTo().
| void Player::AddPetAura | ( | PetAura const * | petSpell | ) |
Definition at line 20398 of file Player.cpp.
References GetPet(), and m_petAuras.
Referenced by Spell::EffectDummy(), and AuraEffect::HandleAuraDummy().
Definition at line 14717 of file Player.cpp.
References ACHIEVEMENT_TIMED_TYPE_QUEST, AddTimedQuest(), AdjustQuestReqItemCount(), CHAR_INS_QUEST_TRACK, CharacterDatabase, CONFIG_QUEST_ENABLE_QUEST_TRACKER, QuestStatusData::CreatureOrGOCount, QuestStatusData::Explored, FindQuestSlot(), GitRevision::GetDate(), GameTime::GetGameTime(), Object::GetGUID(), GitRevision::GetHash(), Quest::GetLimitTime(), Quest::GetQuestId(), getQuestStatusMap(), Quest::GetRepObjectiveFaction(), Quest::GetRepObjectiveFaction2(), GetReputationMgr(), Object::GetTypeId(), GiveQuestSourceItem(), Quest::HasFlag(), Quest::HasSpecialFlag(), IN_MILLISECONDS, PvPInfo::IsHostile, QuestStatusData::ItemCount, m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, QuestStatusData::PlayerCount, pvpInfo, QUEST_DEFAULT_SAVE_TYPE, QUEST_FLAGS_FLAGS_PVP, QUEST_ITEM_OBJECTIVES_COUNT, QUEST_OBJECTIVES_COUNT, QUEST_SPECIAL_FLAGS_CAST, QUEST_SPECIAL_FLAGS_DELIVER, QUEST_SPECIAL_FLAGS_KILL, QUEST_SPECIAL_FLAGS_PLAYER_KILL, QUEST_SPECIAL_FLAGS_SPEAKTO, QUEST_SPECIAL_FLAGS_TIMED, QUEST_STATUS_INCOMPLETE, SendQuestUpdate(), SetQuestSlot(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), ReputationMgr::SetVisible(), sFactionStore, sScriptMgr, StartTimedAchievement(), QuestStatusData::Status, sWorld, QuestStatusData::Timer, Object::ToPlayer(), TYPEID_PLAYER, and UpdatePvPState().
Referenced by AddQuestAndCheckCompletion().
Definition at line 14625 of file Player.cpp.
References AddQuest(), Creature::AI(), GameObject::AI(), CanCompleteQuest(), PlayerMenu::ClearMenus(), CompleteQuest(), DestroyItem(), Item::GetBagSlot(), Object::GetEntry(), ItemTemplate::GetMaxCount(), Quest::GetQuestId(), Item::GetSlot(), Quest::GetSrcItemId(), Item::GetTemplate(), Object::GetTypeId(), GameObjectAI::OnQuestAccept(), CreatureAI::OnQuestAccept(), PlayerTalkClass, QUEST_ITEM_OBJECTIVES_COUNT, Quest::RequiredItemId, sScriptMgr, Object::ToCreature(), Object::ToGameObject(), TYPEID_CONTAINER, TYPEID_GAMEOBJECT, TYPEID_ITEM, and TYPEID_UNIT.
Referenced by Spell::EffectQuestStart(), WorldSession::HandlePushQuestToParty(), quest_commandscript::HandleQuestAdd(), WorldSession::HandleQuestConfirmAccept(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverQueryQuestOpcode(), and SendPreparedQuest().
|
inline |
Definition at line 1475 of file Player.h.
Referenced by _LoadQuestStatusRewarded(), and RewardQuest().
| void Player::AddRefundReference | ( | ObjectGuid | it | ) |
Definition at line 25863 of file Player.cpp.
References m_refundableItems.
Referenced by _LoadItem(), and _StoreOrEquipNewItem().
| void Player::AddRuneByAuraEffect | ( | uint8 | index, |
| RuneType | newType, | ||
| AuraEffect const * | aura | ||
| ) |
Definition at line 24361 of file Player.cpp.
References ConvertRune(), and SetRuneConvertAura().
Referenced by spell_dk_blood_tap::spell_dk_blood_tap_AuraScript::HandleApply(), AuraEffect::HandleAuraConvertRune(), and spell_dk_death_rune::HandleProc().
| void Player::AddRunePower | ( | uint8 | index | ) | const |
Definition at line 24453 of file Player.cpp.
References SendDirectMessage(), and SMSG_ADD_RUNE_POWER.
| bool Player::AddSpell | ( | uint32 | spellId, |
| bool | active, | ||
| bool | learning, | ||
| bool | dependent, | ||
| bool | disabled, | ||
| bool | loading = false, |
||
| uint32 | fromSkill = 0 |
||
| ) |
Definition at line 2979 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILL_LINE, ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILLLINE_SPELLS, ACHIEVEMENT_CRITERIA_TYPE_LEARN_SPELL, PlayerSpell::active, AddSpell(), WorldObject::CastSpell(), CONFIG_ALWAYS_MAXSKILL, DeleteSpellFromAllPlayers(), PlayerSpell::dependent, PlayerSpell::disabled, SpellInfo::GetEffects(), GetFreePrimaryProfessionPoints(), Unit::GetMaxSkillValueForLevel(), GetPureMaxSkillValue(), GetPureSkillValue(), GetSession(), GetTalentSpellCost(), GetTalentSpellPos(), GetUsedTalentCount(), HandlePassiveSpellLearn(), Has310Flyer(), SpellInfo::HasAttribute(), SpellInfo::HasEffect(), HasSkill(), HasSpell(), SkillLineEntry::ID, SpellInfo::IsDifferentRankOf(), SpellInfo::IsHighRankOf(), Object::IsInWorld(), SpellInfo::IsPassive(), SpellInfo::IsPrimaryProfessionFirstRank(), IsProfessionOrRidingSkill(), SpellInfo::IsRanked(), SpellMgr::IsSpellValid(), SpellInfo::IsStackableWithRanks(), IsUnlearnSpellsPacketNeededForSpell(), LearnDefaultSkill(), LearnSpell(), m_spells, MAX_TALENT_RANK, PLAYERSPELL_CHANGED, PLAYERSPELL_NEW, PLAYERSPELL_REMOVED, PLAYERSPELL_TEMPORARY, PLAYERSPELL_UNCHANGED, RemoveSpell(), RemoveTemporarySpell(), SendDirectMessage(), SendSupercededSpell(), SendUnlearnSpells(), SetFreePrimaryProfessions(), SetHas310Flyer(), SetSkill(), SetUsedTalentCount(), SKILL_LINE_ABILITY_LEARNED_ON_SKILL_LEARN, SKILL_LOCKPICKING, SKILL_MOUNTS, SKILL_RUNEFORGING, SPELL_ATTR0_CU_IS_TALENT, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, SPELL_EFFECT_LEARN_SPELL, SPELL_EFFECT_SKILL_STEP, WorldPackets::Spells::UnlearnedSpell::SpellID, sSkillLineStore, sSpellMgr, sTalentStore, PlayerSpell::state, sWorld, TC_LOG_ERROR, UpdateAchievementCriteria(), and WorldPackets::Spells::UnlearnedSpell::Write().
Referenced by _LoadSpells(), AddSpell(), LearnCustomSpells(), LearnSkillRewardedSpells(), LearnSpell(), and RemoveSpell().
| void Player::AddSpellMod | ( | SpellModifier * | mod, |
| bool | apply | ||
| ) |
Definition at line 20874 of file Player.cpp.
References AsUnderlyingType(), WorldPackets::Spells::SpellModifier::ClassIndex, Object::GetGUID(), WorldObject::GetName(), m_spellMods, SpellModifier::mask, WorldPackets::Spells::SetSpellModifier::Modifier, WorldPackets::Spells::SpellModifier::ModifierValue, WorldPackets::Spells::SpellModifier::ModIndex, SpellModifier::op, SendDirectMessage(), SMSG_SET_FLAT_SPELL_MODIFIER, SMSG_SET_PCT_SPELL_MODIFIER, SpellModifier::spellId, SPELLMOD_FLAT, TC_LOG_DEBUG, Position::ToString(), SpellModifier::type, SpellModifier::value, and WorldPackets::Spells::SetSpellModifier::Write().
Referenced by AuraEffect::ApplySpellMod().
Definition at line 2895 of file Player.cpp.
References DeleteSpellFromAllPlayers(), GetTalentMap(), GetTalentSpellPos(), Object::IsInWorld(), SpellMgr::IsSpellValid(), MAX_TALENT_RANK, PLAYERSPELL_NEW, PLAYERSPELL_REMOVED, PLAYERSPELL_UNCHANGED, sSpellMgr, sTalentStore, and TC_LOG_ERROR.
Referenced by _LoadTalents(), learn_commandscript::HandleLearnAllTalentsCommand(), and LearnTalent().
| void Player::AddTemporarySpell | ( | uint32 | spellId | ) |
Definition at line 3329 of file Player.cpp.
References PlayerSpell::active, PlayerSpell::dependent, PlayerSpell::disabled, m_spells, PLAYERSPELL_TEMPORARY, and PlayerSpell::state.
Referenced by AuraEffect::HandleAuraModShapeshift(), and AuraEffect::HandleAuraOverrideSpells().
|
inline |
Definition at line 1348 of file Player.h.
Referenced by _LoadQuestStatus(), and AddQuest().
|
overridevirtual |
Reimplemented from Object.
Definition at line 1831 of file Player.cpp.
References Object::AddToWorld(), Unit::AddToWorld(), m_items, PLAYER_SLOT_END, and PLAYER_SLOT_START.
Referenced by Map::AddPlayerToMap().
| void Player::AddTradeableItem | ( | Item * | item | ) |
Definition at line 13265 of file Player.cpp.
References Object::GetGUID(), and m_itemSoulboundTradeable.
Referenced by _LoadItem(), MoveItemToInventory(), and StoreNewItem().
|
inline |
Definition at line 1178 of file Player.h.
Referenced by Spell::EffectProficiency().
|
inline |
Definition at line 2237 of file Player.h.
Referenced by WorldSession::HandleChatMessage().
|
private |
Definition at line 15930 of file Player.cpp.
References GetItemCount(), Quest::GetQuestId(), Quest::HasSpecialFlag(), QuestStatusData::ItemCount, m_QuestStatusSave, QUEST_DEFAULT_SAVE_TYPE, QUEST_ITEM_OBJECTIVES_COUNT, QUEST_SPECIAL_FLAGS_DELIVER, Quest::RequiredItemCount, and Quest::RequiredItemId.
Referenced by AddQuest().
|
inline |
Definition at line 911 of file Player.h.
References Unit::GetAI().
| void Player::ApplyBaseModPctValue | ( | BaseModGroup | modGroup, |
| float | pct | ||
| ) |
Definition at line 4984 of file Player.cpp.
References BASEMOD_END, CalculatePct(), FLAT_MOD, Object::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 13426 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 13432 of file Player.cpp.
References AddEnchantmentDuration(), CastSpellExtraArgs::AddSpellMod(), ItemRandomSuffixEntry::AllocationPct, ApplyHealthRegenBonus(), ApplyManaRegenBonus(), ApplyRatingMod(), ApplySpellPenetrationBonus(), ApplySpellPowerBonus(), BASE_VALUE, WorldObject::CastSpell(), SpellItemEnchantmentEntry::ConditionID, CR_ARMOR_PENETRATION, CR_BLOCK, CR_CRIT_MELEE, CR_CRIT_RANGED, CR_CRIT_SPELL, CR_CRIT_TAKEN_MELEE, CR_CRIT_TAKEN_RANGED, CR_CRIT_TAKEN_SPELL, CR_DEFENSE_SKILL, CR_DODGE, CR_EXPERTISE, CR_HASTE_MELEE, CR_HASTE_RANGED, CR_HASTE_SPELL, CR_HIT_MELEE, CR_HIT_RANGED, CR_HIT_SPELL, CR_PARRY, SpellItemEnchantmentEntry::Effect, SpellItemEnchantmentEntry::EffectArg, SpellItemEnchantmentEntry::EffectPointsMin, ItemRandomSuffixEntry::Enchantment, EnchantmentFitsRequirements(), FlatNegative, FlatPositive, GetAttackBySlot(), Item::GetEnchantmentDuration(), Item::GetEnchantmentId(), Object::GetGUID(), Object::GetGUID(), Item::GetItemRandomPropertyId(), Item::GetItemSuffixFactor(), Unit::GetLevel(), WorldObject::GetName(), GetSkillValue(), Item::GetSlot(), ItemTemplate::GetSocketColor(), Item::GetTemplate(), Unit::HandleAttackPowerModifier(), HandleBaseModFlatValue(), Unit::HandleStatFlatModifier(), Item::IsBroken(), Item::IsEquipped(), ITEM_ENCHANTMENT_TYPE_COMBAT_SPELL, ITEM_ENCHANTMENT_TYPE_DAMAGE, ITEM_ENCHANTMENT_TYPE_EQUIP_SPELL, ITEM_ENCHANTMENT_TYPE_NONE, ITEM_ENCHANTMENT_TYPE_PRISMATIC_SOCKET, ITEM_ENCHANTMENT_TYPE_RESISTANCE, ITEM_ENCHANTMENT_TYPE_STAT, ITEM_ENCHANTMENT_TYPE_TOTEM, ITEM_ENCHANTMENT_TYPE_USE_SPELL, ITEM_MOD_AGILITY, ITEM_MOD_ARMOR_PENETRATION_RATING, ITEM_MOD_ATTACK_POWER, ITEM_MOD_BLOCK_RATING, ITEM_MOD_BLOCK_VALUE, ITEM_MOD_CRIT_MELEE_RATING, ITEM_MOD_CRIT_RANGED_RATING, ITEM_MOD_CRIT_RATING, ITEM_MOD_CRIT_SPELL_RATING, ITEM_MOD_DEFENSE_SKILL_RATING, ITEM_MOD_DODGE_RATING, ITEM_MOD_EXPERTISE_RATING, ITEM_MOD_HASTE_RATING, ITEM_MOD_HASTE_SPELL_RATING, ITEM_MOD_HEALTH, ITEM_MOD_HEALTH_REGEN, ITEM_MOD_HIT_MELEE_RATING, ITEM_MOD_HIT_RANGED_RATING, ITEM_MOD_HIT_RATING, ITEM_MOD_HIT_SPELL_RATING, ITEM_MOD_INTELLECT, ITEM_MOD_MANA, ITEM_MOD_MANA_REGENERATION, ITEM_MOD_PARRY_RATING, ITEM_MOD_RANGED_ATTACK_POWER, ITEM_MOD_RESILIENCE_RATING, ITEM_MOD_SPELL_DAMAGE_DONE, ITEM_MOD_SPELL_HEALING_DONE, ITEM_MOD_SPELL_PENETRATION, ITEM_MOD_SPELL_POWER, ITEM_MOD_SPIRIT, ITEM_MOD_STAMINA, ITEM_MOD_STRENGTH, MAX_ATTACK, MAX_ENCHANTMENT_SLOT, MAX_ITEM_ENCHANTMENT_EFFECTS, MAX_SPELL_EFFECTS, Melee, SpellItemEnchantmentEntry::MinLevel, PERM_ENCHANTMENT_SLOT, PLAYER_VISIBLE_ITEM_1_ENCHANTMENT, PRISMATIC_ENCHANTMENT_SLOT, Ranged, Unit::RemoveAurasDueToItemSpell(), SpellItemEnchantmentEntry::RequiredSkillID, SpellItemEnchantmentEntry::RequiredSkillRank, Object::SetUInt16Value(), SHIELD_BLOCK_VALUE, sItemRandomSuffixStore, SOCK_ENCHANTMENT_SLOT, SOCK_ENCHANTMENT_SLOT_2, SOCK_ENCHANTMENT_SLOT_3, SPELLVALUE_BASE_POINT0, sSpellItemEnchantmentStore, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, TC_LOG_DEBUG, TC_LOG_ERROR, TEMP_ENCHANTMENT_SLOT, Position::ToString(), TOTAL_VALUE, UNIT_MOD_HEALTH, UNIT_MOD_MANA, UNIT_MOD_RESISTANCE_START, UNIT_MOD_STAT_AGILITY, UNIT_MOD_STAT_INTELLECT, UNIT_MOD_STAT_SPIRIT, UNIT_MOD_STAT_STAMINA, UNIT_MOD_STAT_STRENGTH, UpdateDamageDoneMods(), and Unit::UpdateStatBuffMod().
Referenced by _ApplyAllItemMods(), _ApplyItemMods(), _RemoveAllItemMods(), ApplyEnchantment(), CorrectMetaGemEnchants(), Spell::EffectEnchantHeldItem(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), Spell::EffectEnchantItemTmp(), WorldSession::HandleCancelTempEnchantmentOpcode(), WorldSession::HandleSocketOpcode(), RemoveArenaEnchantments(), SetVirtualItemSlot(), ToggleMetaGemsActive(), UpdateEnchantTime(), and UpdateSkillEnchantments().
| void Player::ApplyEquipCooldown | ( | Item * | pItem | ) |
Definition at line 22601 of file Player.cpp.
References SpellHistory::AddCooldown(), SpellProcEntry::Cooldown, ItemTemplate::Effects, Unit::GetAura(), Object::GetEntry(), Object::GetGUID(), Object::GetGUID(), SpellHistory::GetRemainingCooldown(), Unit::GetSpellHistory(), Item::GetTemplate(), ItemTemplate::HasFlag(), IN_MILLISECONDS, ITEM_FLAG_NO_EQUIP_COOLDOWN, ITEM_SPELLTRIGGER_ON_EQUIP, ITEM_SPELLTRIGGER_ON_USE, GameTime::Now(), SendDirectMessage(), SMSG_ITEM_COOLDOWN, and sSpellMgr.
Referenced by EquipItem().
| void Player::ApplyEquipSpell | ( | SpellInfo const * | spellInfo, |
| Item * | item, | ||
| bool | apply, | ||
| bool | form_change = false |
||
| ) |
Definition at line 7594 of file Player.cpp.
References WorldObject::CastSpell(), SpellInfo::CheckShapeshift(), Unit::GetAppliedAuras(), Object::GetGUID(), Object::GetGUID(), WorldObject::GetName(), Unit::GetShapeshiftForm(), SpellInfo::Id, Unit::RemoveAurasDueToItemSpell(), Unit::RemoveAurasDueToSpell(), SPELL_CAST_OK, TC_LOG_DEBUG, and Position::ToString().
Referenced by AddItemsSetItem(), ApplyItemEquipSpell(), RemoveItemsSetItem(), and UpdateEquipSpellsAtFormChange().
| void Player::ApplyFeralAPBonus | ( | int32 | amount, |
| bool | apply | ||
| ) |
Definition at line 334 of file StatSystem.cpp.
References _ModifyUInt32(), m_baseFeralAP, and UpdateAttackPowerAndDamage().
Referenced by _ApplyItemBonuses().
| void Player::ApplyHealthRegenBonus | ( | int32 | amount, |
| bool | apply | ||
| ) |
Definition at line 919 of file StatSystem.cpp.
References _ModifyUInt32(), and m_baseHealthRegen.
Referenced by _ApplyItemBonuses(), and ApplyEnchantment().
| void Player::ApplyItemDependentAuras | ( | Item * | item, |
| bool | apply | ||
| ) |
Definition at line 7535 of file Player.cpp.
References Unit::AddAura(), SpellInfo::EquippedItemClass, GetSpellMap(), Unit::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 | form_change = false |
||
| ) |
Definition at line 7570 of file Player.cpp.
References ApplyEquipSpell(), ItemTemplate::Effects, Item::GetTemplate(), ITEM_SPELLTRIGGER_ON_EQUIP, and sSpellMgr.
Referenced by _ApplyAllItemMods(), _ApplyItemMods(), _RemoveAllItemMods(), and UpdateEquipSpellsAtFormChange().
| void Player::ApplyItemObtainSpells | ( | Item * | item, |
| bool | apply | ||
| ) |
Definition at line 7470 of file Player.cpp.
References WorldObject::CastSpell(), ItemTemplate::Effects, Item::GetTemplate(), Unit::HasAura(), ITEM_SPELLTRIGGER_ON_NO_DELAY_USE, Unit::RemoveAurasDueToSpell(), and CastSpellExtraArgs::SetCastItem().
Referenced by _StoreItem(), CastAllObtainSpells(), and DestroyItem().
| void Player::ApplyManaRegenBonus | ( | int32 | amount, |
| bool | apply | ||
| ) |
Definition at line 913 of file StatSystem.cpp.
References _ModifyUInt32(), m_baseManaRegen, POWER_MANA, and UpdatePowerRegen().
Referenced by _ApplyItemBonuses(), and ApplyEnchantment().
|
inline |
Definition at line 1870 of file Player.h.
References Object::ApplyModInt32Value(), and PLAYER_FAKE_INEBRIATION.
Referenced by AuraEffect::HandleAuraModFakeInebriation().
|
static |
Definition at line 20909 of file Player.cpp.
References Aura::GetCharges(), Aura::IsUsingCharges(), Spell::m_appliedMods, and SpellModifier::ownerAura.
Referenced by ApplySpellMod().
| void Player::ApplyRatingMod | ( | CombatRating | cr, |
| int32 | value, | ||
| bool | apply | ||
| ) |
Definition at line 5279 of file Player.cpp.
References Unit::ApplyAttackTimePercentMod(), Unit::ApplyCastTimePercentMod(), BASE_ATTACK, CR_HASTE_MELEE, CR_HASTE_RANGED, CR_HASTE_SPELL, GetRatingMultiplier(), m_baseRatingValue, OFF_ATTACK, RANGED_ATTACK, and UpdateRating().
Referenced by _ApplyItemBonuses(), ApplyEnchantment(), AuraEffect::HandleModRating(), AuraEffect::HandleModRatingFromStat(), and UpdateStats().
| template TC_GAME_API void Player::ApplySpellMod | ( | uint32 | spellId, |
| SpellModOp | op, | ||
| T & | basevalue, | ||
| Spell * | spell = nullptr |
||
| ) | const |
Definition at line 20805 of file Player.cpp.
References ApplyModToSpell(), CalculatePct(), Aura::GetSpellInfo(), HasSpellModApplied(), IsAffectedBySpellmod(), m_spellMods, m_spellModTakingSpell, SpellModifier::ownerAura, SpellInfo::Priority, SPELLMOD_CASTING_TIME, SPELLMOD_CRITICAL_CHANCE, SPELLMOD_FLAT, SPELLMOD_GLOBAL_COOLDOWN, SPELLMOD_PCT, and sSpellMgr.
Referenced by Aura::CalcMaxDuration(), AuraEffect::CalculatePeriodic(), CastItemCombatSpell(), Spell::Delayed(), Spell::DelayedChannel(), and DuelResetScript::ResetSpellCooldowns().
| void Player::ApplySpellPenetrationBonus | ( | int32 | amount, |
| bool | apply | ||
| ) |
Definition at line 242 of file StatSystem.cpp.
References Object::ApplyModInt32Value(), m_spellPenetrationItemMod, and PLAYER_FIELD_MOD_TARGET_RESISTANCE.
Referenced by _ApplyItemBonuses(), and ApplyEnchantment().
| void Player::ApplySpellPowerBonus | ( | int32 | amount, |
| bool | apply | ||
| ) |
Definition at line 178 of file StatSystem.cpp.
References _ModifyUInt32(), Object::ApplyModUInt32Value(), m_baseSpellPower, MAX_SPELL_SCHOOL, PLAYER_FIELD_MOD_DAMAGE_DONE_POS, PLAYER_FIELD_MOD_HEALING_DONE_POS, and SPELL_SCHOOL_HOLY.
Referenced by _ApplyItemBonuses(), and ApplyEnchantment().
| void Player::AreaExploredOrEventHappens | ( | uint32 | questId | ) |
Definition at line 16021 of file Player.cpp.
References CanCompleteQuest(), CompleteQuest(), QuestStatusData::Explored, FindQuestSlot(), m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, QUEST_DEFAULT_SAVE_TYPE, QUEST_STATUS_FAILED, SendQuestComplete(), and QuestStatusData::Status.
Referenced by npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DamageTaken(), Spell::EffectQuestComplete(), SmartAI::EndPath(), GroupEventHappens(), WorldSession::HandleAreaTriggerOpcode(), npc_thrall_warchief::npc_thrall_warchiefAI::OnGossipSelect(), go_headless_horseman_pumpkin::OnGossipSelect(), go_loosely_turned_soil::OnQuestReward(), at_bring_your_orphan_to::OnTrigger(), npc_doctor::npc_doctorAI::PatientSaved(), npc_shenthul::npc_shenthulAI::ReceiveEmote(), Map::ScriptsProcess(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), and npc_commander_dawnforge::npc_commander_dawnforgeAI::UpdateAI().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 24045 of file Player.cpp.
References Unit::AtExitCombat(), CLASS_DEATH_KNIGHT, Unit::GetClass(), MAX_RUNES, SetLastRuneGraceTimer(), SetRuneTimer(), and UpdatePotionCooldown().
|
inline |
Definition at line 1140 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, | ||
| bool | broadcast = false, |
||
| bool | createdByPlayer = false |
||
| ) |
Definition at line 24504 of file Player.cpp.
References CanStoreNewItem(), LootItem::count, EQUIP_ERR_OK, Loot::FillLoot(), Loot::GetMaxSlotInLootFor(), LootItem::itemid, Loot::LootItemInSlot(), NULL_BAG, NULL_SLOT, LootItem::randomPropertyId, SendEquipError(), SendNewItem(), and StoreNewItem().
Referenced by Group::CountTheRoll(), Spell::EffectCreateItem2(), Spell::EffectCreateRandomItem(), and spell_item_extract_gas::PeriodicTick().
| void Player::AutoUnequipOffhandIfNeed | ( | bool | force = false | ) |
Definition at line 23353 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(), INVENTORY_SLOT_BAG_0, INVTYPE_2HWEAPON, INVTYPE_WEAPON, INVTYPE_WEAPONOFFHAND, LANG_NOT_EQUIPPED_ITEM, MAIL_CHECK_MASK_COPIED, MAIL_CHECK_MASK_NOT_RETURNABLE, MAIL_STATIONERY_GM, MoveItemFromInventory(), NULL_BAG, NULL_SLOT, RemoveItem(), Item::SaveToDB(), MailDraft::SendMailTo(), and StoreItem().
Referenced by _StoreOrEquipNewItem(), Spell::EffectSummonChangeItem(), WorldSession::HandleAutoEquipItemOpcode(), RemoveSpell(), SplitItem(), StoreNewItemInBestSlots(), SwapItem(), and UpdateZone().
| Item * Player::BankItem | ( | ItemPosCountVec const & | dest, |
| Item * | pItem, | ||
| bool | update | ||
| ) |
Definition at line 11976 of file Player.cpp.
References StoreItem().
Referenced by _LoadInventory(), Spell::EffectSummonChangeItem(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), SplitItem(), and SwapItem().
| void Player::BindToInstance | ( | ) |
Definition at line 18688 of file Player.cpp.
References _pendingBindId, BindToInstance(), EXTEND_STATE_KEEP, GetSession(), IsGameMaster(), WorldSession::SendCalendarRaidLockoutAdded(), SendDirectMessage(), sInstanceSaveMgr, and SMSG_INSTANCE_SAVE_CREATED.
Referenced by _LoadBoundInstances(), BindToInstance(), and Update().
| InstancePlayerBind * Player::BindToInstance | ( | InstanceSave * | save, |
| bool | permanent, | ||
| BindExtensionState | extendState = EXTEND_STATE_NORMAL, |
||
| bool | load = false |
||
| ) |
Definition at line 18622 of file Player.cpp.
References InstanceSave::AddPlayer(), CHAR_INS_CHAR_INSTANCE, CHAR_UPD_CHAR_INSTANCE, CharacterDatabase, EXTEND_STATE_KEEP, EXTEND_STATE_NORMAL, InstancePlayerBind::extendState, InstanceSave::GetDifficultyID(), Object::GetGUID(), InstanceSave::GetInstanceId(), InstanceSave::GetMapId(), WorldObject::GetName(), m_boundInstances, InstancePlayerBind::perm, InstanceSave::RemovePlayer(), InstancePlayerBind::save, PreparedStatementBase::setBool(), InstanceSave::SetCanReset(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), sScriptMgr, TC_LOG_DEBUG, and Position::ToString().
Referenced by InstanceMap::AddPlayerToMap(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleInstanceLockResponse(), and InstanceMap::PermBindAllPlayers().
|
overridevirtual |
Reimplemented from Object.
Definition at line 3819 of file Player.cpp.
References BANK_SLOT_BAG_END, Object::BuildCreateUpdateBlockForPlayer(), CURRENCYTOKEN_SLOT_END, EQUIPMENT_SLOT_END, INVENTORY_SLOT_BAG_START, KEYRING_SLOT_START, and m_items.
Referenced by Map::SendInitSelf().
|
static |
Definition at line 1315 of file Player.cpp.
References AT_LOGIN_CHANGE_FACTION, AT_LOGIN_CHANGE_RACE, AT_LOGIN_CUSTOMIZE, AT_LOGIN_FIRST, AT_LOGIN_RENAME, AT_LOGIN_RESURRECT, CHAR_CUSTOMIZE_FLAG_CUSTOMIZE, CHAR_CUSTOMIZE_FLAG_FACTION, CHAR_CUSTOMIZE_FLAG_NONE, CHAR_CUSTOMIZE_FLAG_RACE, CHAR_UPD_ADD_AT_LOGIN_FLAG, CHARACTER_FLAG_DECLINED, CHARACTER_FLAG_GHOST, CHARACTER_FLAG_HIDE_CLOAK, CHARACTER_FLAG_HIDE_HELM, CHARACTER_FLAG_LOCKED_BY_BILLING, CHARACTER_FLAG_RENAME, CharacterDatabase, CLASS_DEATH_KNIGHT, CLASS_HUNTER, CLASS_WARLOCK, CONFIG_DECLINED_NAMES_USED, CREATURE_FAMILY_NONE, CreatureTemplate::family, ObjectGuid::GetCounter(), ItemTemplate::GetDisplayId(), Field::GetFloat(), ItemTemplate::GetInventoryType(), Field::GetString(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt8(), INVENTORY_SLOT_BAG_END, IsValidGender(), SpellItemEnchantmentEntry::ItemVisual, PERM_ENCHANTMENT_SLOT, PLAYER_FLAGS_GHOST, PLAYER_FLAGS_HIDE_CLOAK, PLAYER_FLAGS_HIDE_HELM, PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), sObjectMgr, sSpellItemEnchantmentStore, sWorld, TC_LOG_ERROR, TC_LOG_WARN, TEMP_ENCHANTMENT_SLOT, Trinity::Tokenize(), and ValidateAppearance().
Referenced by WorldSession::HandleCharEnum().
| void Player::BuildPetTalentsInfoData | ( | WorldPackets::Talent::PetTalentInfoUpdate & | petTalentInfo | ) | const |
Definition at line 25280 of file Player.cpp.
References CreatureTemplate::family, Creature::GetCreatureTemplate(), Pet::GetFreeTalentPoints(), GetPet(), Pet::HasSpell(), TalentEntry::ID, MAX_TALENT_RANK, TalentTabEntry::PetTalentMask, CreatureFamilyEntry::PetTalentType, sCreatureFamilyStore, TalentEntry::SpellRank, sTalentStore, sTalentTabStore, TalentEntry::TabID, WorldPackets::Talent::PetTalentInfoUpdate::Talents, and WorldPackets::Talent::PetTalentInfoUpdate::UnspentTalentPoints.
Referenced by SendTalentsInfoData().
| void Player::BuildPlayerRepop | ( | ) |
Definition at line 4320 of file Player.cpp.
References Map::AddToMap(), CalculateCorpseReclaimDelay(), WorldObject::CastSpell(), corpseReclaimDelay, CreateCorpse(), DEAD, GetCorpseLocation(), Object::GetGUID(), WorldObject::GetMap(), WorldLocation::GetMapId(), WorldObject::GetName(), Unit::GetRace(), GetSession(), Unit::HasUnitState(), WorldPackets::Misc::PreRessurect::PlayerGUID, RACE_NIGHTELF, Unit::RemoveUnitFlag(), Corpse::ResetGhostTime(), SendCorpseReclaimDelay(), WorldSession::SendPacket(), setDeathState(), Unit::SetHealth(), Unit::SetRooted(), Unit::SetWaterWalking(), sScriptMgr, StopMirrorTimers(), TC_LOG_ERROR, Position::ToString(), UNIT_FLAG_SKINNABLE, UNIT_STATE_STUNNED, and WorldPackets::Misc::PreRessurect::Write().
Referenced by Spell::EffectStuck(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandlePlayerLogin(), WorldSession::HandleRepopRequest(), WorldSession::LogoutPlayer(), RemovedInsignia(), and Update().
| void Player::BuildPlayerTalentsInfoData | ( | WorldPackets::Talent::TalentInfoUpdate & | talentInfo | ) |
Definition at line 25228 of file Player.cpp.
References WorldPackets::Talent::TalentInfoUpdate::ActiveGroup, GetActiveTalentGroup(), Unit::GetClass(), GetFreeTalentPoints(), GetGlyph(), GetTalentGroupsCount(), GetTalentTabPages(), WorldPackets::Talent::TalentGroupInfo::GlyphIDs, HasTalent(), TalentEntry::ID, MAX_GLYPH_SLOT_INDEX, MAX_TALENT_RANK, MAX_TALENT_TABS, TalentEntry::SpellRank, sTalentStore, TalentEntry::TabID, WorldPackets::Talent::TalentInfoUpdate::TalentGroups, WorldPackets::Talent::TalentGroupInfo::Talents, and WorldPackets::Talent::TalentInfoUpdate::UnspentTalentPoints.
Referenced by WorldSession::HandleInspectOpcode(), and SendTalentsInfoData().
| bool Player::BuyItemFromVendorSlot | ( | ObjectGuid | vendorguid, |
| uint32 | vendorslot, | ||
| uint32 | item, | ||
| uint32 | count, | ||
| uint8 | bag, | ||
| uint8 | slot | ||
| ) |
Definition at line 21402 of file Player.cpp.
References _StoreOrEquipNewItem(), ALLIANCE, ItemExtendedCostEntry::ArenaBracket, ItemExtendedCostEntry::ArenaPoints, BIND_WHEN_PICKED_UP, BUY_ERR_CANT_FIND_ITEM, BUY_ERR_DISTANCE_TOO_FAR, BUY_ERR_ITEM_ALREADY_SOLD, BUY_ERR_NOT_ENOUGHT_MONEY, BUY_ERR_REPUTATION_REQUIRE, VendorItemData::Empty(), EQUIP_ERR_CANT_EQUIP_RANK, EQUIP_ERR_NOT_ENOUGH_ARENA_POINTS, EQUIP_ERR_NOT_ENOUGH_HONOR_POINTS, EQUIP_ERR_NOT_EQUIPPABLE, EQUIP_ERR_VENDOR_MISSING_TURNINS, EQUIP_ERR_WRONG_SLOT, VendorItem::ExtendedCost, ItemTemplate::GetAllowableClass(), GetArenaPoints(), ItemTemplate::GetBonding(), ItemTemplate::GetBuyCount(), ItemTemplate::GetBuyPrice(), Unit::GetClassMask(), Object::GetEntry(), Object::GetGUID(), GetHonorPoints(), ItemTemplate::GetId(), VendorItemData::GetItem(), VendorItemData::GetItemCount(), GetMaxPersonalArenaRatingRequirement(), WorldObject::GetName(), GetNPCIfCanInteractWith(), GetReputationPriceDiscount(), GetReputationRank(), ItemTemplate::GetRequiredReputationFaction(), ItemTemplate::GetRequiredReputationRank(), GetTeam(), Creature::GetVendorItemCurrentCount(), Creature::GetVendorItems(), HasEnoughMoney(), ItemTemplate::HasFlag(), HasItemCount(), ItemExtendedCostEntry::HonorPoints, HORDE, INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_ITEM_END, Unit::IsAlive(), IsEquipmentPos(), IsGameMaster(), VendorItem::IsGoldRequired(), IsInventoryPos(), VendorItem::item, ITEM_FLAG2_FACTION_ALLIANCE, ITEM_FLAG2_FACTION_HORDE, ItemExtendedCostEntry::ItemCount, ItemExtendedCostEntry::ItemID, MAX_BAG_SIZE, MAX_ITEM_EXTENDED_COST_REQUIREMENTS, MAX_MONEY_AMOUNT, VendorItem::maxcount, NULL_BAG, NULL_SLOT, ItemExtendedCostEntry::RequiredArenaRating, sConditionMgr, SendBuyError(), SendEquipError(), sItemExtendedCostStore, sObjectMgr, TC_LOG_DEBUG, TC_LOG_ERROR, ObjectGuid::ToString(), Position::ToString(), and UNIT_NPC_FLAG_VENDOR.
Referenced by WorldSession::HandleBuyItemInSlotOpcode(), and WorldSession::HandleBuyItemOpcode().
| int32 Player::CalculateCorpseReclaimDelay | ( | bool | load = false | ) | const |
Definition at line 23825 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(), and KillPlayer().
|
overridevirtual |
Implements Unit.
Definition at line 529 of file StatSystem.cpp.
References BASE_ATTACK, BASE_MAXDAMAGE, BASE_MINDAMAGE, BASE_PCT, BASE_VALUE, Unit::CanUseAttackType(), GetAmmoDPS(), Unit::GetAPMultiplier(), Unit::GetFlatModifierValue(), Unit::GetLevel(), Unit::GetPctModifierValue(), Unit::GetTotalAttackPowerValue(), Unit::GetWeaponDamageRange(), Unit::IsInFeralForm(), MAXDAMAGE, MINDAMAGE, OFF_ATTACK, RANGED_ATTACK, TOTAL_PCT, TOTAL_VALUE, UNIT_MOD_DAMAGE_MAINHAND, UNIT_MOD_DAMAGE_OFFHAND, and UNIT_MOD_DAMAGE_RANGED.
| int32 Player::CalculateReputationGain | ( | ReputationSource | source, |
| uint32 | creatureOrQuestLevel, | ||
| int32 | rep, | ||
| int32 | faction, | ||
| bool | noQuestBonus = false |
||
| ) |
Definition at line 6312 of file Player.cpp.
References CalculatePct(), Trinity::XP::GetGrayLevel(), Unit::GetLevel(), GetsRecruitAFriendBonus(), Unit::GetTotalAuraModifier(), Unit::GetTotalAuraModifierByMiscValue(), RATE_REPUTATION_LOWLEVEL_KILL, RATE_REPUTATION_LOWLEVEL_QUEST, RATE_REPUTATION_RECRUIT_A_FRIEND_BONUS, REPUTATION_SOURCE_DAILY_QUEST, REPUTATION_SOURCE_KILL, REPUTATION_SOURCE_MONTHLY_QUEST, REPUTATION_SOURCE_QUEST, REPUTATION_SOURCE_REPEATABLE_QUEST, REPUTATION_SOURCE_SPELL, REPUTATION_SOURCE_WEEKLY_QUEST, sObjectMgr, SPELL_AURA_MOD_FACTION_REPUTATION_GAIN, SPELL_AURA_MOD_REPUTATION_GAIN, and sWorld.
Referenced by Spell::EffectReputation(), RewardReputation(), and RewardReputation().
| uint32 Player::CalculateTalentsPoints | ( | ) | const |
Definition at line 24616 of file Player.cpp.
References CLASS_DEATH_KNIGHT, Unit::GetClass(), Unit::GetLevel(), WorldLocation::GetMapId(), GetQuestRewardedTalentCount(), RATE_TALENT, and sWorld.
Referenced by InitTalentForLevel(), and ResetTalents().
| bool Player::CanAddQuest | ( | Quest const * | quest, |
| bool | msg | ||
| ) | const |
Definition at line 14468 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::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverQueryQuestOpcode(), and SendPreparedQuest().
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
Definition at line 22081 of file Player.cpp.
References Unit::GetCharmedOrSelf(), Object::GetGUID(), Object::GetGuidValue(), ObjectGuid::IsEmpty(), and PLAYER_FARSIGHT.
|
inlineoverridevirtual |
| InventoryResult Player::CanBankItem | ( | uint8 | bag, |
| uint8 | slot, | ||
| ItemPosCountVec & | dest, | ||
| Item * | pItem, | ||
| bool | swap, | ||
| bool | not_loading = true |
||
| ) | const |
Definition at line 11181 of file Player.cpp.
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, BANK_SLOT_ITEM_END, BANK_SLOT_ITEM_START, CanStoreItem_InBag(), CanStoreItem_InInventorySlots(), CanStoreItem_InSpecificSlot(), CanTakeMoreSimilarItems(), CanUseItem(), CURRENCYTOKEN_SLOT_END, CURRENCYTOKEN_SLOT_START, EQUIP_ERR_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_WRONG_SLOT, ItemTemplate::GetBagFamily(), GetBankBagSlotCount(), Item::GetCount(), Object::GetEntry(), Object::GetGUID(), Object::GetGUID(), ItemTemplate::GetId(), GetLootGUID(), ItemTemplate::GetMaxStackSize(), WorldObject::GetName(), Item::GetSlot(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, Item::IsBag(), Item::IsBindedNotWith(), Item::IsNotEmptyBag(), NULL_BAG, NULL_SLOT, TC_LOG_DEBUG, TC_LOG_ERROR, ObjectGuid::ToString(), and Position::ToString().
Referenced by _LoadInventory(), Spell::EffectSummonChangeItem(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), SplitItem(), and SwapItem().
| bool Player::CanBeGameMaster | ( | ) | const |
Definition at line 2285 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 1884 of file Player.h.
Referenced by UpdateBlockPercentage().
| bool Player::CanCaptureTowerPoint | ( | ) | const |
Definition at line 24187 of file Player.cpp.
References Unit::HasInvisibilityAura(), Unit::HasStealthAura(), and Unit::IsAlive().
Referenced by BattlegroundEY::CheckSomeoneJoinedPoint(), and BattlegroundEY::CheckSomeoneLeftPoint().
| bool Player::CanCompleteQuest | ( | uint32 | quest_id | ) |
Definition at line 14492 of file Player.cpp.
References CanTakeQuest(), QuestStatusData::CreatureOrGOCount, QuestStatusData::Explored, Quest::GetPlayersSlain(), GetQuestRewardStatus(), Quest::GetRepObjectiveFaction(), Quest::GetRepObjectiveValue(), GetReputation(), GetReputationMgr(), Quest::GetRewOrReqMoney(), HasEnoughMoney(), Quest::HasSpecialFlag(), Quest::IsAutoComplete(), Quest::IsRepeatable(), QuestStatusData::ItemCount, m_QuestStatus, QuestStatusData::PlayerCount, QUEST_ITEM_OBJECTIVES_COUNT, QUEST_OBJECTIVES_COUNT, QUEST_SPECIAL_FLAGS_CAST, QUEST_SPECIAL_FLAGS_DELIVER, QUEST_SPECIAL_FLAGS_EXPLORATION_OR_EVENT, QUEST_SPECIAL_FLAGS_KILL, QUEST_SPECIAL_FLAGS_PLAYER_KILL, QUEST_SPECIAL_FLAGS_SPEAKTO, QUEST_SPECIAL_FLAGS_TIMED, QUEST_STATUS_INCOMPLETE, Quest::RequiredItemCount, Quest::RequiredNpcOrGo, Quest::RequiredNpcOrGoCount, sObjectMgr, QuestStatusData::Status, and QuestStatusData::Timer.
Referenced by AddQuestAndCheckCompletion(), AreaExploredOrEventHappens(), WorldSession::HandleQuestgiverQueryQuestOpcode(), WorldSession::HandleQuestgiverRequestRewardOpcode(), ItemAddedQuestCheck(), KillCreditGO(), KilledMonsterCredit(), KilledPlayerCreditForQuest(), MoneyChanged(), ReputationChanged(), ReputationChanged2(), and TalkedToCreature().
| bool Player::CanCompleteRepeatableQuest | ( | Quest const * | quest | ) |
Definition at line 14562 of file Player.cpp.
References CanRewardQuest(), CanTakeQuest(), HasItemCount(), Quest::HasSpecialFlag(), QUEST_ITEM_OBJECTIVES_COUNT, QUEST_SPECIAL_FLAGS_DELIVER, Quest::RequiredItemCount, and Quest::RequiredItemId.
Referenced by WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestgiverCompleteQuest(), and SendPreparedQuest().
|
inlineoverridevirtual |
| InventoryResult Player::CanEquipItem | ( | uint8 | slot, |
| uint16 & | dest, | ||
| Item * | pItem, | ||
| bool | swap, | ||
| bool | not_loading = true |
||
| ) | const |
Definition at line 10980 of file Player.cpp.
References ItemTemplate::CanChangeEquipStateInCombat(), Unit::CanDualWield(), CanEquipUniqueItem(), CanStoreItem(), CanTakeMoreSimilarItems(), CanTitanGrip(), CanUnequipItem(), CanUseItem(), DEFAULT_MAX_LEVEL, EQUIP_ERR_2HANDED_EQUIPPED, EQUIP_ERR_2HSKILLNOTFOUND, EQUIP_ERR_CANT_SWAP, EQUIP_ERR_CLIENT_LOCKED_OUT, EQUIP_ERR_GENERIC_STUNNED, EQUIP_ERR_INV_FULL, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_LOOT_GONE, EQUIP_ERR_NO_SLOT_AVAILABLE, EQUIP_ERR_NOT_DURING_ARENA_MATCH, EQUIP_ERR_NOT_EQUIPPABLE, EQUIP_ERR_NOT_IN_COMBAT, EQUIP_ERR_NOT_OWNER, EQUIP_ERR_OK, EQUIP_ERR_ONLY_ONE_AMMO, EQUIP_ERR_ONLY_ONE_QUIVER, EQUIP_ERR_WRONG_SLOT, EQUIPMENT_SLOT_FINGER1, EQUIPMENT_SLOT_FINGER2, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_TRINKET1, EQUIPMENT_SLOT_TRINKET2, FindEquipSlot(), GetBattleground(), ItemTemplate::GetClass(), Item::GetCount(), Object::GetEntry(), Object::GetGUID(), Object::GetGUID(), ItemTemplate::GetInventoryType(), GetItemByPos(), Unit::GetLevel(), GetLootGUID(), WorldObject::GetName(), ItemTemplate::GetScalingStatDistribution(), ItemTemplate::GetSubClass(), Item::GetTemplate(), Unit::HasUnitState(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVTYPE_2HWEAPON, INVTYPE_RELIC, INVTYPE_WEAPON, INVTYPE_WEAPONOFFHAND, Item::IsBindedNotWith(), Unit::IsCharmed(), Unit::IsInCombat(), Unit::IsNonMeleeSpellCast(), IsTwoHandUsed(), ITEM_CLASS_QUIVER, ITEM_CLASS_WEAPON, ITEM_SUBCLASS_AMMO_POUCH, ITEM_SUBCLASS_WEAPON_POLEARM, m_weaponChangeTimer, ScalingStatDistributionEntry::Maxlevel, NULL_BAG, NULL_SLOT, sScalingStatDistributionStore, STATUS_IN_PROGRESS, TC_LOG_DEBUG, Position::ToString(), and UNIT_STATE_STUNNED.
Referenced by _LoadInventory(), CanEquipNewItem(), Create(), Spell::EffectSummonChangeItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleEquipmentSetUse(), SplitItem(), and SwapItem().
| InventoryResult Player::CanEquipNewItem | ( | uint8 | slot, |
| uint16 & | dest, | ||
| uint32 | item, | ||
| bool | swap | ||
| ) | const |
Definition at line 10966 of file Player.cpp.
References CanEquipItem(), Item::CreateItem(), and EQUIP_ERR_ITEM_NOT_FOUND.
Referenced by _StoreOrEquipNewItem(), and StoreNewItemInBestSlots().
| InventoryResult Player::CanEquipUniqueItem | ( | Item * | pItem, |
| uint8 | except_slot = NULL_SLOT, |
||
| uint32 | limit_count = 1 |
||
| ) | const |
Definition at line 24762 of file Player.cpp.
References CanEquipUniqueItem(), EQUIP_ERR_OK, Item::GetEnchantmentId(), Item::GetGemCountWithLimitCategory(), ItemTemplate::GetItemLimitCategory(), Item::GetTemplate(), Item::IsEquipped(), sObjectMgr, SOCK_ENCHANTMENT_SLOT, SpellItemEnchantmentEntry::SrcItemID, and sSpellItemEnchantmentStore.
Referenced by CanEquipItem(), CanEquipUniqueItem(), and WorldSession::HandleSocketOpcode().
| InventoryResult Player::CanEquipUniqueItem | ( | ItemTemplate const * | itemProto, |
| uint8 | except_slot = NULL_SLOT, |
||
| uint32 | limit_count = 1 |
||
| ) | const |
Definition at line 24795 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(), ItemTemplate::GetItemLimitCategory(), ItemTemplate::HasFlag(), HasGemWithLimitCategoryEquipped(), HasItemOrGemWithIdEquipped(), HasItemWithLimitCategoryEquipped(), ITEM_FLAG_UNIQUE_EQUIPPABLE, ItemLimitCategoryEntry::Quantity, and sItemLimitCategoryStore.
|
inlineoverridevirtual |
Definition at line 24632 of file Player.cpp.
References GetVirtualMapForMapAndZone(), SpellInfo::HasAttribute(), HasSpell(), and SPELL_ATTR7_IGNORE_COLD_WEATHER_FLYING.
Referenced by SpellInfo::CheckLocation().
| bool Player::CanInteractWithQuestGiver | ( | Object * | questGiver | ) | const |
Definition at line 2108 of file Player.cpp.
References GAMEOBJECT_TYPE_QUESTGIVER, GetGameObjectIfCanInteractWith(), Object::GetGUID(), GetNPCIfCanInteractWith(), Object::GetTypeId(), Unit::IsAlive(), Object::ToPlayer(), TYPEID_GAMEOBJECT, TYPEID_ITEM, TYPEID_PLAYER, TYPEID_UNIT, and UNIT_NPC_FLAG_QUESTGIVER.
Referenced by WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), and WorldSession::HandleQuestgiverRequestRewardOpcode().
| bool Player::CanJoinConstantChannelInZone | ( | ChatChannelsEntry const * | channel, |
| AreaTableEntry const * | zone | ||
| ) | const |
Definition at line 4842 of file Player.cpp.
References AREA_FLAG_ARENA_INSTANCE, AREA_FLAG_SLAVE_CAPITAL, CHANNEL_DBC_FLAG_CITY_ONLY, CHANNEL_DBC_FLAG_GUILD_REQ, CHANNEL_DBC_FLAG_ZONE_DEP, AreaTableEntry::Flags, ChatChannelsEntry::Flags, and GetGuildId().
Referenced by UpdateLocalChannels().
| bool Player::CanJoinToBattleground | ( | Battleground const * | bg | ) | const |
Definition at line 21990 of file Player.cpp.
References GetSession(), WorldSession::HasPermission(), Battleground::isArena(), Battleground::IsRandom(), 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().
| bool Player::CanNoReagentCast | ( | SpellInfo const * | spellInfo | ) | const |
Definition at line 23455 of file Player.cpp.
References Object::GetUInt32Value(), SpellInfo::HasAttribute(), Unit::HasUnitFlag(), PLAYER_NO_REAGENT_COST_1, SPELL_ATTR5_NO_REAGENT_WHILE_PREP, SpellInfo::SpellFamilyFlags, and UNIT_FLAG_PREPARATION.
Referenced by Spell::CheckItems(), spell_dk_raise_dead::CheckReagents(), and Spell::TakeReagents().
|
inline |
Definition at line 1882 of file Player.h.
Referenced by UpdateParryPercentage().
| bool Player::CanReportAfkDueToLimit | ( | ) |
Definition at line 22001 of file Player.cpp.
References BGData::bgAfkReportedCount, and m_bgData.
Referenced by ReportedAfkBy().
| bool Player::CanRewardQuest | ( | Quest const * | quest, |
| bool | msg | ||
| ) |
Definition at line 14581 of file Player.cpp.
References DISABLE_TYPE_QUEST, EQUIP_ERR_ITEM_NOT_FOUND, GetItemCount(), Quest::GetQuestId(), GetQuestRewardStatus(), GetQuestStatus(), Quest::GetRewOrReqMoney(), HasEnoughMoney(), Quest::HasSpecialFlag(), Quest::IsAutoComplete(), Quest::IsDFQuest(), DisableMgr::IsDisabledFor(), QUEST_ITEM_OBJECTIVES_COUNT, QUEST_SPECIAL_FLAGS_DELIVER, QUEST_STATUS_COMPLETE, Quest::RequiredItemCount, Quest::RequiredItemId, SatisfyQuestDay(), SatisfyQuestLevel(), SatisfyQuestMonth(), SatisfyQuestReputation(), SatisfyQuestSeasonal(), SatisfyQuestSkill(), SatisfyQuestWeek(), and SendEquipError().
Referenced by CanCompleteRepeatableQuest(), lfg::LFGMgr::FinishDungeon(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), WorldSession::SendLfgPlayerLockInfo(), and SendPreparedQuest().
Definition at line 14678 of file Player.cpp.
References CanStoreNewItem(), EQUIP_ERR_OK, Quest::GetQuestId(), Quest::GetRewChoiceItemsCount(), Quest::GetRewItemsCount(), NULL_BAG, NULL_SLOT, Quest::RewardChoiceItemCount, Quest::RewardChoiceItemId, Quest::RewardItemCount, Quest::RewardItemId, and SendQuestFailed().
| InventoryResult Player::CanRollForItemInLFG | ( | ItemTemplate const * | item, |
| WorldObject const * | lootedObject | ||
| ) | const |
Definition at line 11479 of file Player.cpp.
References CLASS_DEATH_KNIGHT, CLASS_DRUID, CLASS_HUNTER, CLASS_MAGE, CLASS_PALADIN, CLASS_PRIEST, CLASS_ROGUE, CLASS_SHAMAN, CLASS_WARLOCK, CLASS_WARRIOR, 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(), Object::GetGUID(), Map::GetId(), ItemTemplate::GetInventoryType(), Unit::GetLevel(), WorldObject::GetMap(), Unit::GetRaceMask(), ItemTemplate::GetRequiredSkill(), ItemTemplate::GetRequiredSkillRank(), ItemTemplate::GetRequiredSpell(), GetSkillValue(), ItemTemplate::GetSubClass(), HasSpell(), INVTYPE_CLOAK, ITEM_CLASS_ARMOR, ITEM_CLASS_WEAPON, ITEM_SUBCLASS_ARMOR_BUCKLER, ITEM_SUBCLASS_ARMOR_CLOTH, ITEM_SUBCLASS_ARMOR_LEATHER, ITEM_SUBCLASS_ARMOR_MAIL, ITEM_SUBCLASS_ARMOR_MISCELLANEOUS, ITEM_SUBCLASS_ARMOR_PLATE, MAX_ITEM_SUBCLASS_WEAPON, SKILL_2H_AXES, SKILL_2H_MACES, SKILL_2H_SWORDS, SKILL_ASSASSINATION, SKILL_AXES, SKILL_BOWS, SKILL_CROSSBOWS, SKILL_DAGGERS, SKILL_FISHING, SKILL_FIST_WEAPONS, SKILL_GUNS, SKILL_MACES, SKILL_POLEARMS, SKILL_STAVES, SKILL_SWORDS, SKILL_THROWN, SKILL_WANDS, and sLFGMgr.
Referenced by Group::NeedBeforeGreed().
| bool Player::CanSeeSpellClickOn | ( | Creature const * | creature | ) | const |
Definition at line 25207 of file Player.cpp.
References Object::GetEntry(), Unit::HasNpcFlag(), sConditionMgr, sObjectMgr, and UNIT_NPC_FLAG_SPELLCLICK.
Referenced by Unit::BuildValuesUpdate().
| bool Player::CanSeeStartQuest | ( | Quest const * | quest | ) | const |
Definition at line 14442 of file Player.cpp.
References CONFIG_QUEST_HIGH_LEVEL_HIDE_DIFF, DISABLE_TYPE_QUEST, Unit::GetLevel(), Quest::GetMinLevel(), Quest::GetQuestId(), DisableMgr::IsDisabledFor(), SatisfyQuestClass(), SatisfyQuestDay(), SatisfyQuestDependentQuests(), SatisfyQuestExclusiveGroup(), SatisfyQuestMonth(), SatisfyQuestRace(), SatisfyQuestReputation(), SatisfyQuestSeasonal(), SatisfyQuestSkill(), SatisfyQuestWeek(), and sWorld.
Referenced by GetQuestDialogStatus(), WorldSession::HandleQuestgiverChooseRewardOpcode(), and WorldSession::HandleQuestgiverCompleteQuest().
| bool Player::CanShareQuest | ( | uint32 | questId | ) | const |
Definition at line 15669 of file Player.cpp.
References Quest::HasFlag(), m_QuestStatus, QUEST_FLAGS_SHARABLE, QUEST_PARTY_MSG_CANT_BE_SHARED_TODAY, SendPushToPartyResponse(), sObjectMgr, and sQuestPoolMgr.
Referenced by WorldSession::HandlePushQuestToParty().
| InventoryResult Player::CanStoreItem | ( | uint8 | bag, |
| uint8 | slot, | ||
| ItemPosCountVec & | dest, | ||
| Item * | pItem, | ||
| bool | swap = false |
||
| ) | const |
Definition at line 9992 of file Player.cpp.
References CanStoreItem(), EQUIP_ERR_ITEM_NOT_FOUND, Item::GetCount(), and Object::GetEntry().
Referenced by _LoadInventory(), AutoUnequipOffhandIfNeed(), CanEquipItem(), CanStoreItem(), CanStoreNewItem(), Create(), Spell::EffectSummonChangeItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleBuybackItem(), WorldSession::HandleEquipmentSetUse(), WorldSession::HandleMailCreateTextItem(), WorldSession::HandleMailTakeItem(), WorldSession::moveItems(), SplitItem(), and SwapItem().
| InventoryResult Player::CanStoreItem | ( | uint8 | bag, |
| uint8 | slot, | ||
| ItemPosCountVec & | dest, | ||
| uint32 | entry, | ||
| uint32 | count, | ||
| Item * | pItem = nullptr, |
||
| bool | swap = false, |
||
| uint32 * | no_space_count = nullptr |
||
| ) | const |
Definition at line 10223 of file Player.cpp.
References BAG_FAMILY_MASK_KEYS, CanStoreItem_InBag(), CanStoreItem_InInventorySlots(), CanStoreItem_InSpecificSlot(), CanTakeMoreSimilarItems(), CURRENCYTOKEN_SLOT_END, CURRENCYTOKEN_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(), Object::GetGUID(), GetLootGUID(), GetMaxKeyringSize(), ItemTemplate::GetMaxStackSize(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, Item::IsBindedNotWith(), ItemTemplate::IsCurrencyToken(), Item::IsNotEmptyBag(), KEYRING_SLOT_START, NULL_BAG, NULL_SLOT, sObjectMgr, and TC_LOG_DEBUG.
|
private |
Definition at line 10104 of file Player.cpp.
References Item::CanBeMergedPartlyWith(), EQUIP_ERR_DESTROY_NONEMPTY_BAG, EQUIP_ERR_OK, EQUIP_ERR_WRONG_BAG_TYPE, GetBagByPos(), Bag::GetBagSize(), ItemTemplate::GetClass(), Item::GetCount(), GetItemByPos(), ItemTemplate::GetMaxStackSize(), ItemTemplate::GetSubClass(), Item::GetTemplate(), ItemPosCount::isContainedIn(), Item::IsNotEmptyBag(), ITEM_CLASS_CONTAINER, ITEM_SUBCLASS_CONTAINER, and ItemCanGoIntoBag().
Referenced by CanBankItem(), and CanStoreItem().
|
private |
Definition at line 10173 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 CanBankItem(), and CanStoreItem().
|
private |
Definition at line 10030 of file Player.cpp.
References BAG_FAMILY_MASK_KEYS, BUYBACK_SLOT_END, BUYBACK_SLOT_START, Item::CanBeMergedPartlyWith(), CURRENCYTOKEN_SLOT_END, CURRENCYTOKEN_SLOT_START, EQUIP_ERR_DESTROY_NONEMPTY_BAG, EQUIP_ERR_OK, EQUIP_ERR_WRONG_BAG_TYPE, GetBagByPos(), ItemTemplate::GetBagFamily(), ItemTemplate::GetContainerSlots(), Item::GetCount(), GetItemByPos(), GetMaxKeyringSize(), ItemTemplate::GetMaxStackSize(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, IsBagPos(), ItemPosCount::isContainedIn(), ItemTemplate::IsCurrencyToken(), Item::IsNotEmptyBag(), ItemCanGoIntoBag(), KEYRING_SLOT_START, and PLAYER_SLOT_END.
Referenced by CanBankItem(), and CanStoreItem().
| InventoryResult Player::CanStoreItems | ( | Item ** | items, |
| int | count, | ||
| uint32 * | itemLimitCategory | ||
| ) | const |
Definition at line 10656 of file Player.cpp.
References BAG_FAMILY_MASK_KEYS, Item::CanBeMergedPartlyWith(), CanTakeMoreSimilarItems(), CURRENCYTOKEN_SLOT_END, CURRENCYTOKEN_SLOT_START, 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(), Object::GetGUID(), Object::GetGUID(), GetItemByPos(), GetLootGUID(), GetMaxKeyringSize(), ItemTemplate::GetMaxStackSize(), WorldObject::GetName(), ItemTemplate::GetSubClass(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, Item::IsBindedNotWith(), ItemTemplate::IsCurrencyToken(), Item::IsInTrade(), ITEM_CLASS_CONTAINER, ITEM_SUBCLASS_CONTAINER, ItemCanGoIntoBag(), KEYRING_SLOT_END, KEYRING_SLOT_START, Item::m_lootGenerated, MAX_BAG_SIZE, 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 9987 of file Player.cpp.
References CanStoreItem().
Referenced by _StoreOrEquipNewItem(), AddItem(), AutoStoreLoot(), CanAddQuest(), CanRewardQuest(), Spell::CheckItems(), Group::CountTheRoll(), Spell::DoCreateItem(), GiveQuestSourceItem(), misc_commandscript::HandleAddItemCommand(), misc_commandscript::HandleAddItemSetCommand(), misc_commandscript::HandleAddItemToCommand(), AuraEffect::HandleChannelDeathItem(), OPvPCapturePointNA::HandleCustomSpell(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandlePetitionBuyOpcode(), quest_commandscript::HandleQuestComplete(), item_mysterious_egg::OnExpire(), item_disgusting_jar::OnExpire(), npc_tyrande_whisperwind::npc_tyrande_whisperwindAI::OnGossipSelect(), npc_erozion::OnGossipSelect(), RefundItem(), RemovePet(), RewardQuest(), npc_verdisa_beglaristrasz_eternos::StoreEssence(), StoreLootItem(), and StoreNewItemInBestSlots().
| InventoryResult Player::CanTakeMoreSimilarItems | ( | Item * | pItem, |
| uint32 * | itemLimitCategory = nullptr |
||
| ) | const |
Definition at line 9982 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 * | itemLimitCategory = nullptr |
||
| ) | const |
Definition at line 9926 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(), ItemTemplate::GetItemLimitCategory(), ItemTemplate::GetMaxCount(), ITEM_LIMIT_CATEGORY_MODE_HAVE, Item::m_lootGenerated, ItemLimitCategoryEntry::Quantity, sItemLimitCategoryStore, and sObjectMgr.
|
inline |
Definition at line 1116 of file Player.h.
References CanTakeMoreSimilarItems().
Referenced by CanTakeMoreSimilarItems().
| bool Player::CanTakeQuest | ( | Quest const * | quest, |
| bool | msg | ||
| ) | const |
Definition at line 14456 of file Player.cpp.
References DISABLE_TYPE_QUEST, Quest::GetQuestId(), DisableMgr::IsDisabledFor(), SatisfyQuestClass(), SatisfyQuestConditions(), SatisfyQuestDay(), SatisfyQuestDependentQuests(), SatisfyQuestExclusiveGroup(), SatisfyQuestLevel(), SatisfyQuestMonth(), SatisfyQuestRace(), SatisfyQuestReputation(), SatisfyQuestSeasonal(), SatisfyQuestSkill(), SatisfyQuestStatus(), SatisfyQuestTimed(), and SatisfyQuestWeek().
Referenced by CanCompleteQuest(), CanCompleteRepeatableQuest(), Spell::EffectQuestStart(), GetQuestDialogStatus(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestConfirmAccept(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverQueryQuestOpcode(), PrepareQuestMenu(), SatisfyQuestBreadcrumbQuest(), and SendPreparedQuest().
|
inline |
Definition at line 1889 of file Player.h.
References Unit::HasAuraType(), and SPELL_AURA_ALLOW_TAME_PET_TYPE.
Referenced by spell_hun_tame_beast::CheckCast(), Spell::CheckCast(), npc_commandscript::HandleNpcTameCommand(), WorldSession::HandleStableSwapPet(), WorldSession::HandleUnstablePet(), and Pet::LoadPetFromDB().
| bool Player::CanTitanGrip | ( | Item const * | item | ) | const |
Definition at line 13147 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(), and IsTwoHandUsed().
| InventoryResult Player::CanUnequipItem | ( | uint16 | src, |
| bool | swap | ||
| ) | const |
Definition at line 11137 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(), Object::GetGUID(), Object::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 CanEquipItem(), CanUnequipItems(), DestroyItemCount(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleDestroyItemOpcode(), WorldSession::HandleEquipmentSetUse(), and SwapItem().
| InventoryResult Player::CanUnequipItems | ( | uint32 | item, |
| uint32 | count | ||
| ) | const |
Definition at line 9382 of file Player.cpp.
References CanUnequipItem(), CURRENCYTOKEN_SLOT_END, EQUIP_ERR_OK, EQUIPMENT_SLOT_START, GetBagByPos(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, and KEYRING_SLOT_START.
Referenced by TakeQuestSourceItem().
| PartyResult Player::CanUninviteFromGroup | ( | ObjectGuid | guidMember = ObjectGuid::Empty | ) | const |
Definition at line 23899 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, Group::GetFirstMember(), GetGroup(), Object::GetGUID(), Group::GetGUID(), Group::GetMembersCount(), InBattleground(), Group::IsAssistant(), Group::IsLeader(), Group::isLFGGroup(), Group::isRollLootActive(), lfg::LFG_GROUP_KICK_VOTES_NEEDED, lfg::LFG_STATE_FINISHED_DUNGEON, and sLFGMgr.
Referenced by WorldSession::HandleGroupUninviteGuidOpcode(), and WorldSession::HandleGroupUninviteOpcode().
| InventoryResult Player::CanUseAmmo | ( | uint32 | item | ) | const |
Definition at line 11556 of file Player.cpp.
References CanUseItem(), EQUIP_ERR_AMMO_ONLY, EQUIP_ERR_BAG_FULL_4, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_OK, EQUIP_ERR_PLAYER_DEAD, ItemTemplate::GetInventoryType(), Unit::HasAura(), INVTYPE_AMMO, Unit::IsAlive(), sObjectMgr, and TC_LOG_DEBUG.
| bool Player::CanUseBattlegroundObject | ( | GameObject * | gameobject | ) | const |
Definition at line 24168 of file Player.cpp.
References GameObject::GetFaction(), WorldObject::GetFactionTemplateEntry(), Unit::HasAura(), Unit::IsAlive(), FactionTemplateEntry::IsFriendlyTo(), isTotalImmune(), sFactionTemplateStore, and SPELL_RECENTLY_DROPPED_FLAG.
Referenced by Spell::CheckCast(), and GameObject::Use().
| InventoryResult Player::CanUseItem | ( | Item * | pItem, |
| bool | not_loading = true |
||
| ) | const |
Definition at line 11368 of file Player.cpp.
References CanUseItem(), CLASS_HUNTER, CLASS_PALADIN, CLASS_SHAMAN, CLASS_WARRIOR, EQUIP_ERR_CANT_EQUIP_REPUTATION, 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(), Object::GetGUID(), WorldObject::GetName(), ItemTemplate::GetQuality(), GetReputationRank(), ItemTemplate::GetRequiredReputationFaction(), ItemTemplate::GetRequiredReputationRank(), 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::BuildListAuctionItems(), CanBankItem(), CanEquipItem(), CanUseAmmo(), CanUseItem(), WorldSession::HandleReadItem(), and WorldSession::HandleUseItemOpcode().
| InventoryResult Player::CanUseItem | ( | ItemTemplate const * | pItem | ) | const |
Definition at line 11428 of file Player.cpp.
References ALLIANCE, ItemTemplate::Effects, EQUIP_ERR_CANT_EQUIP_EVER, EQUIP_ERR_CANT_EQUIP_LEVEL_I, EQUIP_ERR_CANT_EQUIP_SKILL, EQUIP_ERR_CLIENT_LOCKED_OUT, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_NONE, EQUIP_ERR_OK, EQUIP_ERR_PROFICIENCY_NEEDED, ItemTemplate::GetAllowableClass(), ItemTemplate::GetAllowableRace(), Unit::GetClassMask(), ItemTemplate::GetHolidayID(), Unit::GetLevel(), Unit::GetRaceMask(), ItemTemplate::GetRequiredLevel(), ItemTemplate::GetRequiredSkill(), ItemTemplate::GetRequiredSkillRank(), ItemTemplate::GetRequiredSpell(), GetSkillValue(), GetTeam(), ItemTemplate::HasFlag(), HasSpell(), HORDE, IsHolidayActive(), ITEM_FLAG2_FACTION_ALLIANCE, ITEM_FLAG2_FACTION_HORDE, and ITEM_SPELLTRIGGER_LEARN_SPELL_ID.
| void Player::CastAllObtainSpells | ( | ) |
Definition at line 7452 of file Player.cpp.
References ApplyItemObtainSpells(), GetBagByPos(), Bag::GetBagSize(), GetItemByPos(), Bag::GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, and INVENTORY_SLOT_ITEM_START.
Referenced by ResurrectPlayer().
| void Player::CastItemCombatSpell | ( | DamageInfo const & | damageInfo | ) |
Definition at line 7661 of file Player.cpp.
References BASE_ATTACK, Unit::CanUseAttackType(), CastItemCombatSpell(), EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, 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 7711 of file Player.cpp.
References CastSpellExtraArgs::AddSpellMod(), ApplySpellMod(), AsUnderlyingType(), SpellEnchantProcEntry::AttributesMask, CalculatePct(), WorldObject::CastSpell(), SpellEnchantProcEntry::Chance, SpellItemEnchantmentEntry::Effect, SpellItemEnchantmentEntry::EffectArg, SpellItemEnchantmentEntry::EffectPointsMin, ItemTemplate::Effects, ENCHANT_PROC_ATTR_LIMIT_60, ENCHANT_PROC_ATTR_WHITE_HIT, Unit::FindCurrentSpellBySpellId(), Unit::GetAttackTime(), DamageInfo::GetAttackType(), ItemTemplate::GetDelay(), SpellInfo::GetEffects(), Item::GetEnchantmentId(), Object::GetGUID(), DamageInfo::GetHitMask(), Unit::GetLevel(), WorldObject::GetName(), Unit::GetPPMProcChance(), DamageInfo::GetSpellInfo(), DamageInfo::GetVictim(), Unit::GetWeaponProcChance(), SpellEnchantProcEntry::HitMask, SpellInfo::Id, SpellItemEnchantmentEntry::ID, SpellInfo::IsPositive(), ITEM_ENCHANTMENT_TYPE_COMBAT_SPELL, ITEM_SPELLTRIGGER_CHANCE_ON_HIT, MAX_ENCHANTMENT_SLOT, MAX_ITEM_ENCHANTMENT_EFFECTS, PROC_HIT_ABSORB, PROC_HIT_CRITICAL, PROC_HIT_NORMAL, SpellInfo::ProcChance, SpellEnchantProcEntry::ProcsPerMinute, roll_chance_f(), SPELLMOD_CHANCE_OF_SUCCESS, 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, | ||
| uint8 | cast_count, | ||
| uint32 | misc | ||
| ) |
Definition at line 7826 of file Player.cpp.
References Spell::Data, ItemTemplate::Effects, Item::GetEnchantmentId(), Object::GetEntry(), ItemTemplate::GetId(), Item::GetTemplate(), ITEM_ENCHANTMENT_TYPE_USE_SPELL, Spell::m_cast_count, Spell::m_CastItem, Spell::m_fromClient, Spell::m_misc, MAX_ENCHANTMENT_SLOT, MAX_ITEM_ENCHANTMENT_EFFECTS, Spell::prepare(), sSpellItemEnchantmentStore, sSpellMgr, TC_LOG_ERROR, and TRIGGERED_NONE.
Referenced by WorldSession::HandleUseItemOpcode().
| void Player::CharmSpellInitialize | ( | ) |
Definition at line 20722 of file Player.cpp.
References CharmInfo::BuildActionBar(), UnitActionBarEntry::GetAction(), Unit::GetCharmInfo(), CharmInfo::GetCharmSpell(), CharmInfo::GetCommandState(), Unit::GetFirstControlled(), Object::GetGUID(), Object::GetGUID(), WorldObject::GetName(), Creature::GetReactState(), Object::GetTypeId(), MAX_SPELL_CHARM, MAX_UNIT_ACTION_BAR_INDEX, UnitActionBarEntry::packedData, SendDirectMessage(), SMSG_PET_SPELLS, TC_LOG_ERROR, Object::ToCreature(), ObjectGuid::ToString(), Position::ToString(), and TYPEID_PLAYER.
Referenced by WorldSession::HandleRequestPetInfo(), Guardian::InitSummon(), Unit::SetCharmedBy(), Minion::setDeathState(), and Unit::SetMinion().
| bool Player::CheckAmmoCompatibility | ( | ItemTemplate const * | ammo_proto | ) | const |
Definition at line 8010 of file Player.cpp.
References ItemTemplate::GetClass(), ItemTemplate::GetSubClass(), Item::GetTemplate(), GetWeaponForAttack(), Item::IsBroken(), ITEM_CLASS_WEAPON, ITEM_SUBCLASS_ARROW, ITEM_SUBCLASS_BULLET, ITEM_SUBCLASS_WEAPON_BOW, ITEM_SUBCLASS_WEAPON_CROSSBOW, ITEM_SUBCLASS_WEAPON_GUN, and RANGED_ATTACK.
Referenced by _ApplyAmmoBonuses().
| void Player::CheckAreaExplore | ( | ) |
Definition at line 6186 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_EXPLORE_AREA, AreaTableEntry::AreaBit, CONFIG_MIN_DISCOVERED_SCALED_XP_RATIO, AreaTableEntry::ExplorationLevel, WorldObject::GetAreaId(), Object::GetGUID(), Unit::GetLevel(), WorldLocation::GetMapId(), WorldObject::GetName(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Object::GetUInt32Value(), GiveXP(), Unit::IsAlive(), Unit::IsInFlight(), IsMaxLevel(), PLAYER_EXPLORED_ZONES_1, PLAYER_EXPLORED_ZONES_SIZE, RATE_XP_EXPLORE, sAreaTableStore, SendExplorationExperience(), Object::SetUInt32Value(), sObjectMgr, sWorld, TC_LOG_DEBUG, TC_LOG_ERROR, Position::ToString(), and UpdateAchievementCriteria().
Referenced by UpdatePosition().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 7557 of file Player.cpp.
References SpellInfo::EquippedItemClass, AuraEffect::GetSpellInfo(), GetWeaponForAttack(), and Item::IsFitToSpellRequirements().
| void Player::CheckDuelDistance | ( | time_t | currTime | ) |
Definition at line 6899 of file Player.cpp.
References duel, DUEL_FLED, DuelComplete(), Map::GetGameObject(), Object::GetGuidValue(), WorldObject::GetMap(), WorldObject::IsWithinDistInMap(), PLAYER_DUEL_ARBITER, SendDirectMessage(), SMSG_DUEL_INBOUNDS, and SMSG_DUEL_OUTOFBOUNDS.
Referenced by Update().
| bool Player::CheckInstanceValidity | ( | bool | ) |
Definition at line 18872 of file Player.cpp.
References MapRefManager::begin(), CONFIG_INSTANCE_IGNORE_RAID, MapRefManager::end(), WorldObject::FindMap(), GetBoundInstance(), Map::GetDifficultyID(), GetGroup(), Map::GetId(), InstanceSave::GetInstanceId(), Map::GetInstanceId(), Map::GetPlayers(), Map::GetPlayersCountExceptGMs(), Map::IsDungeon(), LinkedListHead::isEmpty(), IsGameMaster(), Map::IsRaid(), InstancePlayerBind::save, InstanceGroupBind::save, and sWorld.
Referenced by Group::AddMember(), WorldSession::HandleMoveWorldportAck(), and LoadFromDB().
|
static |
Definition at line 26369 of file Player.cpp.
References DUNGEON_DIFFICULTY_NORMAL, and MAX_DUNGEON_DIFFICULTY.
Referenced by LoadFromDB(), and Group::LoadGroupFromDB().
|
static |
Definition at line 26377 of file Player.cpp.
References MAX_RAID_DIFFICULTY, and RAID_DIFFICULTY_10MAN_NORMAL.
Referenced by LoadFromDB(), and Group::LoadGroupFromDB().
| void Player::CheckOutdoorsAuraRequirements | ( | ) |
Definition at line 6265 of file Player.cpp.
References CONFIG_VMAP_INDOOR_CHECK, WorldObject::IsOutdoors(), Unit::RemoveAurasWithAttribute(), SPELL_ATTR0_INDOORS_ONLY, SPELL_ATTR0_OUTDOORS_ONLY, and sWorld.
Referenced by WorldSession::HandleMovementOpcode(), and Heartbeat().
| void Player::CheckTitanGripPenalty | ( | ) |
Definition at line 13196 of file Player.cpp.
References WorldObject::CastSpell(), Unit::HasAura(), IsUsingTwoHandedWeaponInOneHand(), m_titanGripPenaltySpellId, and Unit::RemoveAurasDueToSpell().
Referenced by EquipItem(), QuickEquipItem(), and RemoveItem().
| void Player::CleanupAfterTaxiFlight | ( | ) |
Definition at line 21208 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 4866 of file Player.cpp.
References ChannelMgr::ForTeam(), Channel::GetChannelId(), Object::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 373 of file Player.cpp.
References Unit::CleanupsBeforeDelete(), DUEL_INTERRUPTED, DuelComplete(), m_boundInstances, MAX_DIFFICULTY, and TradeCancel().
Referenced by WorldSession::LogoutPlayer().
|
inline |
Definition at line 1999 of file Player.h.
Referenced by Battleground::RemovePlayerAtLeave().
|
inline |
Definition at line 1343 of file Player.h.
References ObjectGuid::Empty.
Referenced by WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestConfirmAccept(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestPushResult(), and SendInitialPacketsAfterAddToMap().
|
inline |
Definition at line 1536 of file Player.h.
Referenced by WorldSession::HandleResurrectResponse(), spell_dk_raise_ally::spell_dk_raise_ally_AuraScript::OnRemove(), and setDeathState().
|
inline |
Definition at line 2236 of file Player.h.
Referenced by message_commandscript::HandleWhispersCommand(), and WorldSession::LogoutPlayer().
| void Player::CompletedAchievement | ( | AchievementEntry const * | entry | ) |
Definition at line 24919 of file Player.cpp.
References AchievementMgr::CompletedAchievement(), and m_achievementMgr.
Referenced by BattlefieldWG::DoCompleteOrIncrementAchievement(), and achievement_commandscript::HandleAchievementAddCommand().
| void Player::CompleteQuest | ( | uint32 | quest_id | ) |
Definition at line 14805 of file Player.cpp.
References CHAR_UPD_QUEST_TRACK_COMPLETE_TIME, CharacterDatabase, CONFIG_QUEST_ENABLE_QUEST_TRACKER, FindQuestSlot(), Object::GetGUID(), MAX_QUEST_LOG_SIZE, QUEST_FLAGS_TRACKING, QUEST_STATE_COMPLETE, QUEST_STATUS_COMPLETE, RewardQuest(), SetQuestSlotState(), SetQuestStatus(), PreparedStatementBase::setUInt32(), sObjectMgr, and sWorld.
Referenced by AddQuestAndCheckCompletion(), AreaExploredOrEventHappens(), quest_commandscript::HandleQuestComplete(), WorldSession::HandleQuestgiverRequestRewardOpcode(), ItemAddedQuestCheck(), boss_shattered_executioner::JustDied(), KillCreditGO(), KilledMonsterCredit(), KilledPlayerCreditForQuest(), MoneyChanged(), ReputationChanged(), ReputationChanged2(), TalkedToCreature(), and npc_clintar_spirit::npc_clintar_spiritAI::UpdateAI().
| void Player::ContinueTaxiFlight | ( | ) | const |
Definition at line 21215 of file Player.cpp.
References TaxiPathNodeEntry::ContinentID, PlayerTaxi::GetCurrentTaxiPath(), Position::GetExactDistSq(), Object::GetGUID(), WorldLocation::GetMapId(), GetSession(), PlayerTaxi::GetTaxiSource(), GetTeam(), TaxiPathNodeEntry::Loc, m_taxi, WorldSession::SendDoFlight(), sObjectMgr, sTaxiPathNodesByPath, TC_LOG_DEBUG, Position::ToString(), DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.
Referenced by WorldSession::HandlePlayerLogin(), and ProcessDelayedOperations().
Definition at line 24426 of file Player.cpp.
References SendDirectMessage(), SetCurrentRune(), and SMSG_CONVERT_RUNE.
Referenced by AddRuneByAuraEffect(), RemoveRunesByAuraEffect(), and RestoreBaseRune().
| void Player::CorrectMetaGemEnchants | ( | uint8 | slot, |
| bool | apply | ||
| ) |
Definition at line 21823 of file Player.cpp.
References ApplyEnchantment(), SpellItemEnchantmentEntry::ConditionID, EnchantmentFitsRequirements(), EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Item::GetEnchantmentId(), GetItemByPos(), ItemTemplate::GetSocketColor(), Item::GetTemplate(), 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 386 of file Player.cpp.
References Object::_Create(), PlayerInfo::action, AddActionButton(), CanEquipItem(), CanStoreItem(), CanUseAmmo(), WorldPackets::Character::CharacterCreateInfo::Class, CLASS_DEATH_KNIGHT, CONFIG_GAME_TYPE, CONFIG_START_ARENA_POINTS, CONFIG_START_DEATH_KNIGHT_PLAYER_MONEY, CONFIG_START_HONOR_POINTS, CONFIG_START_PLAYER_MONEY, ChrClassesEntry::DisplayPower, ItemTemplate::Effects, EQUIP_ERR_OK, EquipItem(), WorldPackets::Character::CharacterCreateInfo::Face, WorldPackets::Character::CharacterCreateInfo::FacialHairStyle, ItemTemplate::GetBuyCount(), GetCharStartOutfitEntry(), ItemTemplate::GetClass(), Unit::GetClass(), GameTime::GetGameTime(), GetItemByPos(), ItemTemplate::GetMaxStackSize(), GetSession(), GetStartLevel(), ItemTemplate::GetSubClass(), Unit::GetThreatManager(), WorldPackets::Character::CharacterCreateInfo::HairColor, WorldPackets::Character::CharacterCreateInfo::HairStyle, InitDisplayIds(), InitGlyphsForLevel(), ThreatManager::Initialize(), InitPrimaryProfessions(), InitRunes(), InitStatsForLevel(), InitTalentForLevel(), InitTaxiNodesForLevel(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, IsValidGender(), PlayerInfo::item, ITEM_CLASS_CONSUMABLE, ITEM_SUBCLASS_FOOD_DRINK, LearnCustomSpells(), LearnDefaultSkills(), m_items, m_Last_tick, WorldObject::m_name, m_Played_time, PlayerInfo::mapId, MAX_OUTFIT_ITEMS, WorldPackets::Character::CharacterCreateInfo::Name, NULL_BAG, NULL_SLOT, PlayerInfo::orientation, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_FIELD_WATCHED_FACTION_INDEX, PLAYER_SLOTS_COUNT, PlayerInfo::positionX, PlayerInfo::positionY, PlayerInfo::positionZ, POWER_MANA, WorldPackets::Character::CharacterCreateInfo::Race, REALM_TYPE_PVP, REALM_TYPE_RPPVP, Position::Relocate(), RemoveItem(), REST_STATE_NOT_RAF_LINKED, REST_STATE_RAF_LINKED, sChrClassesStore, SetAmmo(), SetArenaPoints(), Unit::SetClass(), SetFaceId(), SetFacialStyle(), SetFactionForRace(), Unit::SetFullHealth(), Unit::SetFullPower(), Unit::SetGender(), SetHairColorId(), SetHairStyleId(), SetHonorPoints(), Object::SetInt32Value(), Unit::SetLevel(), SetMap(), SetMoney(), SetNativeGender(), SetObjectScale(), Unit::SetPowerType(), Unit::SetPvpFlag(), Unit::SetRace(), SetRestState(), SetSkinId(), Unit::SetUnitFlag(), Unit::SetUnitFlag2(), WorldPackets::Character::CharacterCreateInfo::Sex, WorldPackets::Character::CharacterCreateInfo::Skin, sMapMgr, sObjectMgr, SPELL_CATEGORY_DRINK, SPELL_CATEGORY_FOOD, StoreItem(), StoreNewItemInBestSlots(), sWorld, TC_LOG_ERROR, UNIT_BYTE2_FLAG_PVP, UNIT_FLAG2_REGENERATE_POWER, UNIT_FLAG_PLAYER_CONTROLLED, UpdateMaxHealth(), and ValidateAppearance().
| Corpse * Player::CreateCorpse | ( | ) |
Definition at line 4502 of file Player.cpp.
References _corpseLocation, Map::AddCorpse(), CORPSE_FLAG_HIDE_CLOAK, CORPSE_FLAG_HIDE_HELM, CORPSE_FLAG_LOOTABLE, CORPSE_FLAG_UNK2, CORPSE_RESURRECTABLE_PVE, CORPSE_RESURRECTABLE_PVP, Corpse::Create(), EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, flags, Unit::GetDisplayId(), GetFaceId(), GetFacialStyle(), GetGroup(), GetGuildId(), GetHairColorId(), GetHairStyleId(), WorldObject::GetMap(), Unit::GetNativeDisplayId(), GetNativeGender(), Unit::GetRace(), GetSkinId(), Object::HasFlag(), InArena(), InBattleground(), m_ExtraFlags, m_items, PLAYER_EXTRA_PVP_DEATH, PLAYER_FLAGS, PLAYER_FLAGS_HIDE_CLOAK, PLAYER_FLAGS_HIDE_HELM, Corpse::ReplaceAllCorpseFlags(), Corpse::SaveToDB(), Corpse::SetDisplayId(), Corpse::SetFaceId(), Corpse::SetFacialStyle(), Corpse::SetGuildId(), Corpse::SetHairColorId(), Corpse::SetHairStyleId(), Corpse::SetItem(), Corpse::SetPartyGUID(), SetPvPDeath(), Corpse::SetRace(), Corpse::SetSex(), Corpse::SetSkinId(), SpawnCorpseBones(), and WorldLocation::WorldRelocate().
Referenced by BuildPlayerRepop().
| void Player::DeleteEquipmentSet | ( | uint64 | id | ) |
Definition at line 25474 of file Player.cpp.
References _equipmentSets, EQUIPMENT_SET_DELETED, and EQUIPMENT_SET_NEW.
Referenced by WorldSession::HandleEquipmentSetDelete().
|
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 3913 of file Player.cpp.
References _LoadMailedItem(), MailDraft::AddItem(), MailDraft::AddMoney(), CHAR_DEL_BATTLEGROUND_RANDOM, CHAR_DEL_CHAR_ACHIEVEMENT_PROGRESS, CHAR_DEL_CHAR_ACHIEVEMENTS, CHAR_DEL_CHAR_ACTION, CHAR_DEL_CHAR_AURA, CHAR_DEL_CHAR_DECLINED_NAME, CHAR_DEL_CHAR_EQUIPMENTSETS, CHAR_DEL_CHAR_FISHINGSTEPS, CHAR_DEL_CHAR_GIFT, CHAR_DEL_CHAR_GLYPHS, CHAR_DEL_CHAR_INSTANCE, CHAR_DEL_CHAR_INVENTORY, CHAR_DEL_CHAR_PET_BY_OWNER, CHAR_DEL_CHAR_PET_DECLINEDNAME_BY_OWNER, CHAR_DEL_CHAR_QUESTSTATUS, CHAR_DEL_CHAR_QUESTSTATUS_REWARDED, CHAR_DEL_CHAR_REPUTATION, CHAR_DEL_CHAR_SKILLS, CHAR_DEL_CHAR_SOCIAL_BY_FRIEND, CHAR_DEL_CHAR_SOCIAL_BY_GUID, CHAR_DEL_CHAR_SPELL, CHAR_DEL_CHAR_SPELL_COOLDOWNS, CHAR_DEL_CHAR_STATS, CHAR_DEL_CHAR_TALENT, CHAR_DEL_CHARACTER, CHAR_DEL_CHARACTER_ARENA_STATS, CHAR_DEL_CHARACTER_QUESTSTATUS_DAILY, CHAR_DEL_CHARACTER_QUESTSTATUS_MONTHLY, CHAR_DEL_CHARACTER_QUESTSTATUS_SEASONAL, CHAR_DEL_CHARACTER_QUESTSTATUS_WEEKLY, CHAR_DEL_GUILD_BANK_EVENTLOG_BY_PLAYER, CHAR_DEL_GUILD_EVENTLOG_BY_PLAYER, CHAR_DEL_ITEM_INSTANCE_BY_OWNER, CHAR_DEL_MAIL, CHAR_DEL_MAIL_BY_ID, CHAR_DEL_MAIL_ITEM_BY_ID, CHAR_DEL_MAIL_ITEMS, CHAR_DEL_PLAYER_ACCOUNT_DATA, CHAR_DEL_PLAYER_BGDATA, CHAR_DEL_PLAYER_GM_TICKETS, CHAR_DEL_PLAYER_HOMEBIND, CHAR_DELETE_REMOVE, CHAR_DELETE_UNLINK, CHAR_SEL_CHAR_COD_ITEM_MAIL, CHAR_SEL_CHAR_PET_IDS, CHAR_SEL_CHAR_SOCIAL, CHAR_SEL_GROUP_MEMBER, CHAR_SEL_MAILITEMS, CHAR_UPD_DELETE_INFO, CHAR_UPD_PLAYER_GM_TICKETS_ON_CHAR_DELETION, CharacterDatabase, CHARTER_TYPE_ANY, CharacterCacheEntry::Class, CLASS_DEATH_KNIGHT, CONFIG_CHARDELETE_DEATH_KNIGHT_MIN_LEVEL, CONFIG_CHARDELETE_METHOD, CONFIG_CHARDELETE_MIN_LEVEL, CONFIG_DELETE_CHARACTER_TICKET_TRACE, Corpse::DeleteFromDB(), Pet::DeleteFromDB(), ObjectAccessor::FindPlayer(), FRIEND_REMOVED, Field::GetBool(), ObjectGuid::GetCounter(), GmTicket::GetId(), Field::GetString(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt8(), LeaveAllArenaTeams(), CharacterCacheEntry::Level, MAIL_NORMAL, CharacterCacheEntry::Name, RemoveFromGroup(), RemovePetitionsAndSigns(), sCharacterCache, MailDraft::SendReturnToSender(), PreparedStatementBase::setUInt32(), sGroupMgr, sGuildMgr, SOCIAL_FLAG_ALL, sSocialMgr, sTicketMgr, sWorld, TC_LOG_ERROR, and ObjectGuid::ToString().
Referenced by AccountMgr::DeleteAccount(), DeleteOldCharacters(), character_commandscript::HandleCharacterDeletedDeleteCommand(), character_commandscript::HandleCharacterEraseCommand(), and WorldSession::HandleCharDeleteOpcode().
|
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 4280 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 4296 of file Player.cpp.
References CHAR_SEL_CHAR_OLD_CHARS, CharacterDatabase, DAY, DeleteFromDB(), GameTime::GetGameTime(), PreparedStatementBase::setUInt32(), TC_LOG_DEBUG, and TC_LOG_INFO.
| void Player::DeleteRefundReference | ( | ObjectGuid | it | ) |
Definition at line 25868 of file Player.cpp.
References m_refundableItems.
Referenced by _SaveInventory(), Item::SetNotRefundable(), and Item::SetState().
| void Player::DestroyConjuredItems | ( | bool | update | ) |
Definition at line 12431 of file Player.cpp.
References DestroyItem(), EQUIPMENT_SLOT_START, GetBagByPos(), Object::GetGUID(), GetItemByPos(), WorldObject::GetName(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, TC_LOG_DEBUG, and Position::ToString().
Referenced by Battleground::AddPlayer().
|
overridevirtual |
Reimplemented from Object.
Definition at line 3850 of file Player.cpp.
References BANK_SLOT_BAG_END, CURRENCYTOKEN_SLOT_END, Unit::DestroyForPlayer(), Object::DestroyForPlayer(), EQUIPMENT_SLOT_END, INVENTORY_SLOT_BAG_START, KEYRING_SLOT_START, and m_items.
Definition at line 12111 of file Player.cpp.
References _ApplyItemMods(), ApplyItemObtainSpells(), BASE_ATTACK, CHAR_DEL_GIFT, CharacterDatabase, Item::ClearSoulboundTradeable(), CR_ARMOR_PENETRATION, Object::DestroyForPlayer(), DestroyItem(), ObjectGuid::Empty, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, GetBagByPos(), Item::GetCount(), ObjectGuid::GetCounter(), Object::GetEntry(), Object::GetGUID(), Object::GetGUID(), GetItemByPos(), ItemTemplate::GetItemSet(), WorldObject::GetName(), Item::GetTemplate(), ItemTemplate::HasFlag(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, Object::IsInWorld(), Item::IsNotEmptyBag(), Item::IsWrapped(), ITEM_FLAG_HAS_LOOT, ITEM_REMOVED, ItemRemovedQuestCheck(), m_items, MAX_BAG_SIZE, NULL_SLOT, OFF_ATTACK, PLAYER_FIELD_INV_SLOT_HEAD, RecalculateRating(), RemoveEnchantmentDurations(), Object::RemoveFromWorld(), RemoveItemDurations(), RemoveItemsSetItem(), RemoveTradeableItem(), Item::SetContainedIn(), Object::SetGuidValue(), Item::SetNotRefundable(), Item::SetSlot(), Item::SetState(), PreparedStatementBase::setUInt32(), SetVisibleItemSlot(), sLootItemStorage, sScriptMgr, TC_LOG_DEBUG, Position::ToString(), and UpdateExpertise().
Referenced by AddQuestAndCheckCompletion(), DestroyConjuredItems(), DestroyItem(), DestroyItemCount(), DestroyItemCount(), DestroyZoneLimitedItem(), WorldSession::DoLootRelease(), Spell::EffectSummonChangeItem(), debug_commandscript::HandleDebugItemExpireCommand(), WorldSession::HandleDestroyItemOpcode(), WorldSession::HandleOpenWrappedItemCallback(), WorldSession::HandleTurnInPetitionOpcode(), RefundItem(), and Item::UpdateDuration().
Definition at line 12487 of file Player.cpp.
References DestroyItem(), Item::GetBagSlot(), Item::GetCount(), Object::GetEntry(), Object::GetGUID(), Object::GetGUID(), WorldObject::GetName(), Item::GetSlot(), Object::IsInWorld(), ITEM_CHANGED, ItemRemovedQuestCheck(), Object::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 12207 of file Player.cpp.
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, BANK_SLOT_ITEM_END, BANK_SLOT_ITEM_START, CanUnequipItem(), CURRENCYTOKEN_SLOT_END, DestroyItem(), EQUIP_ERR_OK, EQUIPMENT_SLOT_START, GetBagByPos(), Object::GetGUID(), GetItemByPos(), WorldObject::GetName(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, Object::IsInWorld(), ITEM_CHANGED, ItemRemovedQuestCheck(), KEYRING_SLOT_START, TC_LOG_DEBUG, and Position::ToString().
Referenced by _StoreOrEquipNewItem(), AbandonQuest(), WorldSession::DoLootRelease(), Spell::EffectEnchantItemPerm(), Spell::EffectFeedPet(), Spell::EffectScriptEffect(), FailQuest(), misc_commandscript::HandleAddItemCommand(), misc_commandscript::HandleAddItemToCommand(), WorldSession::HandleDestroyItemOpcode(), WorldSession::HandleSocketOpcode(), WorldSession::HandleWrapItemOpcode(), item_defias_gunpowder::OnUse(), npc_verdisa_beglaristrasz_eternos::RemoveEssence(), spell_pot_check::RemoveItems(), RewardQuest(), Spell::TakeAmmo(), Spell::TakeCastItem(), TakeQuestSourceItem(), and Spell::TakeReagents().
| void Player::DestroyZoneLimitedItem | ( | bool | update, |
| uint32 | new_zone | ||
| ) |
Definition at line 12400 of file Player.cpp.
References CURRENCYTOKEN_SLOT_END, DestroyItem(), EQUIPMENT_SLOT_START, GetBagByPos(), Object::GetGUID(), GetItemByPos(), WorldLocation::GetMapId(), WorldObject::GetName(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, KEYRING_SLOT_START, TC_LOG_DEBUG, and Position::ToString().
Referenced by UpdateZone().
Definition at line 26461 of file Player.cpp.
References ASSERT, GetGroup(), Object::GetGUID(), WorldPackets::Misc::RandomRoll::Max, WorldPackets::Misc::RandomRoll::Min, WorldPackets::Misc::RandomRoll::Result, WorldPackets::Misc::RandomRoll::Roller, SendDirectMessage(), urand(), and WorldPackets::Misc::RandomRoll::Write().
Referenced by WorldSession::HandleRandomRollOpcode(), spell_item_decahedral_dwarven_dice::HandleScript(), and spell_item_worn_troll_dice::HandleScript().
| void Player::DuelComplete | ( | DuelCompleteType | type | ) |
Definition at line 6938 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_LOSE_DUEL, ACHIEVEMENT_CRITERIA_TYPE_WIN_DUEL, Unit::AttackStop(), WorldObject::CastSpell(), CLASS_DEATH_KNIGHT, Unit::ClearComboPoints(), CONFIG_HONOR_AFTER_DUEL, duel, DUEL_FLED, DUEL_INTERRUPTED, DUEL_STATE_COMPLETED, DUEL_WON, ObjectGuid::Empty, Unit::GetAppliedAuras(), Aura::GetApplyTime(), Aura::GetCasterGUID(), Unit::GetClass(), Unit::GetComboTarget(), Unit::GetControllingPlayer(), Map::GetGameObject(), Object::GetGUID(), Object::GetGUID(), Object::GetGuidValue(), WorldObject::GetMap(), WorldObject::GetName(), GetQuestStatus(), GetSession(), GetTeam(), WorldPacket::Initialize(), Unit::IsPvP(), PLAYER_DUEL_ARBITER, PLAYER_DUEL_TEAM, QUEST_STATUS_INCOMPLETE, Unit::RemoveAura(), RewardHonor(), SendDirectMessage(), SendMessageToSet(), Object::SetGuidValue(), Object::SetUInt32Value(), SMSG_DUEL_COMPLETE, SMSG_DUEL_WINNER, sScriptMgr, sWorld, TC_LOG_DEBUG, ObjectGuid::ToString(), Position::ToString(), and UpdateAchievementCriteria().
Referenced by Unit::_ExitVehicle(), CheckDuelDistance(), CleanupsBeforeDelete(), Unit::DealDamage(), WorldSession::HandleDuelCancelled(), and TeleportTo().
| void Player::DurabilityLoss | ( | Item * | item, |
| double | percent | ||
| ) |
Definition at line 4599 of file Player.cpp.
References DurabilityPointsLoss(), Object::GetUInt32Value(), and ITEM_FIELD_MAXDURABILITY.
Referenced by DurabilityLossAll(), Spell::EffectDurabilityDamagePCT(), and Spell::EffectSummonChangeItem().
| void Player::DurabilityLossAll | ( | double | percent, |
| bool | inventory | ||
| ) |
Definition at line 4573 of file Player.cpp.
References DurabilityLoss(), EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, GetBagByPos(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, and INVENTORY_SLOT_ITEM_START.
Referenced by Spell::EffectDurabilityDamagePCT(), EnvironmentalDamage(), and WorldSession::SendSpiritResurrect().
| void Player::DurabilityPointLossForEquipSlot | ( | EquipmentSlots | slot | ) |
Definition at line 4673 of file Player.cpp.
References DurabilityPointsLoss(), GetItemByPos(), and INVENTORY_SLOT_BAG_0.
Referenced by Unit::DealDamage(), and Spell::TakeAmmo().
Definition at line 4643 of file Player.cpp.
References _ApplyItemMods(), Item::GetSlot(), Object::GetUInt32Value(), Unit::HasAuraType(), Item::IsEquipped(), ITEM_CHANGED, ITEM_FIELD_DURABILITY, ITEM_FIELD_MAXDURABILITY, 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 4617 of file Player.cpp.
References DurabilityPointsLoss(), EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, and INVENTORY_SLOT_ITEM_START.
Referenced by Spell::EffectDurabilityDamage().
| void Player::DurabilityRepair | ( | uint16 | pos, |
| bool | takeCost, | ||
| float | discountMod | ||
| ) |
Definition at line 4762 of file Player.cpp.
References _ApplyItemMods(), Item::CalculateDurabilityRepairCost(), Object::GetGUID(), GetItemByPos(), WorldObject::GetName(), Object::GetUInt32Value(), HasEnoughMoney(), Item::IsBroken(), IsEquipmentPos(), ITEM_CHANGED, ITEM_FIELD_MAXDURABILITY, 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 4679 of file Player.cpp.
References DurabilityRepair(), EQUIPMENT_SLOT_START, Object::GetGUID(), GetGuild(), GetItemByPos(), Guild::GetMemberAvailableMoneyForRepairItems(), GetSession(), Guild::HandleMemberWithdrawMoney(), HasEnoughMoney(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, MAX_BAG_SIZE, MAX_MONEY_AMOUNT, and ModifyMoney().
Referenced by group_commandscript::HandleGroupRepairCommand(), WorldSession::HandleRepairItemOpcode(), and misc_commandscript::HandleRepairitemsCommand().
Definition at line 21738 of file Player.cpp.
References EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Item::GetEnchantmentId(), ItemTemplate::GetGemProperties(), GetItemByPos(), ItemTemplate::GetSocketColor(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, Item::IsBroken(), sGemPropertiesStore, sObjectMgr, SOCK_ENCHANTMENT_SLOT, SpellItemEnchantmentEntry::SrcItemID, sSpellItemEnchantmentConditionStore, sSpellItemEnchantmentStore, TC_LOG_DEBUG, and GemPropertiesEntry::Type.
Referenced by ApplyEnchantment(), and CorrectMetaGemEnchants().
| uint32 Player::EnvironmentalDamage | ( | EnviromentalDamage | type, |
| uint32 | damage | ||
| ) |
Definition at line 638 of file Player.cpp.
References WorldPackets::CombatLog::EnvironmentalDamageLog::Absorbed, ACHIEVEMENT_CRITERIA_TYPE_DEATHS_FROM, WorldPackets::CombatLog::EnvironmentalDamageLog::Amount, BASE_ATTACK, Unit::CalcAbsorbResist(), DAMAGE_FALL, DAMAGE_FALL_TO_VOID, DAMAGE_FIRE, DAMAGE_LAVA, DAMAGE_SLIME, Unit::DealDamage(), Unit::DealDamageMods(), DIRECT_DAMAGE, DurabilityLossAll(), DamageInfo::GetAbsorb(), DamageInfo::GetDamage(), Object::GetGUID(), WorldObject::GetName(), DamageInfo::GetResist(), Unit::IsAlive(), IsImmuneToEnvironmentalDamage(), RATE_DURABILITY_LOSS_ON_DEATH, WorldPackets::CombatLog::EnvironmentalDamageLog::Resisted, SELF_DAMAGE, SendDurabilityLoss(), SendMessageToSet(), SPELL_SCHOOL_MASK_FIRE, SPELL_SCHOOL_MASK_NATURE, SPELL_SCHOOL_MASK_NORMAL, sWorld, TC_LOG_DEBUG, Position::ToString(), WorldPackets::CombatLog::EnvironmentalDamageLog::Type, UpdateAchievementCriteria(), WorldPackets::CombatLog::EnvironmentalDamageLog::Victim, and WorldPackets::CombatLog::EnvironmentalDamageLog::Write().
Referenced by Spell::EffectEnvironmentalDMG(), HandleDrowning(), HandleFall(), and WorldSession::HandleMovementOpcode().
Definition at line 11802 of file Player.cpp.
References _ApplyItemMods(), ACHIEVEMENT_CRITERIA_TYPE_EQUIP_EPIC_ITEM, ACHIEVEMENT_CRITERIA_TYPE_EQUIP_ITEM, AddEnchantmentDurations(), SpellHistory::AddGlobalCooldown(), AddItemDurations(), AddItemsSetItem(), Object::AddToWorld(), ApplyEquipCooldown(), BASE_ATTACK, SpellHistory::BuildCooldownPacket(), CheckTitanGripPenalty(), CLASS_ROGUE, Item::ClearSoulboundTradeable(), CR_ARMOR_PENETRATION, Object::DestroyForPlayer(), EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, ItemTemplate::GetClass(), Unit::GetClass(), Item::GetCount(), Object::GetEntry(), Object::GetGUID(), ItemTemplate::GetInventoryType(), GetItemByPos(), ItemTemplate::GetItemSet(), WorldObject::GetName(), Unit::GetSpellHistory(), Item::GetTemplate(), INVTYPE_RELIC, Unit::IsAlive(), Unit::IsInCombat(), Object::IsInWorld(), ITEM_CHANGED, ITEM_CLASS_WEAPON, ITEM_REMOVED, m_weaponChangeTimer, OFF_ATTACK, RecalculateRating(), RemoveEnchantmentDurations(), Object::RemoveFromWorld(), RemoveItemDurations(), RemoveTradeableItem(), SendDirectMessage(), Object::SendUpdateToPlayer(), Item::SetCount(), Item::SetNotRefundable(), Item::SetOwnerGUID(), Item::SetState(), SPELL_COOLDOWN_FLAG_INCLUDE_GCD, sSpellMgr, SpellInfo::StartRecoveryTime, TC_LOG_ERROR, Position::ToString(), UpdateAchievementCriteria(), UpdateExpertise(), and VisualizeItem().
Referenced by Create(), Spell::EffectSummonChangeItem(), EquipNewItem(), WorldSession::HandleAutoEquipItemOpcode(), SplitItem(), and SwapItem().
Definition at line 11789 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_RECEIVE_EPIC_ITEM, Item::CreateItem(), EquipItem(), ItemAddedQuestCheck(), and UpdateAchievementCriteria().
Referenced by _StoreOrEquipNewItem(), and StoreNewItemInBestSlots().
| void Player::FailQuest | ( | uint32 | quest_id | ) |
Definition at line 15053 of file Player.cpp.
References BIND_QUEST_ITEM, DestroyItemCount(), FindQuestSlot(), GetQuestStatus(), m_QuestStatus, MAX_QUEST_LOG_SIZE, QUEST_ITEM_DROP_COUNT, QUEST_ITEM_OBJECTIVES_COUNT, QUEST_SPECIAL_FLAGS_COMPLETED_AT_START, QUEST_SPECIAL_FLAGS_TIMED, QUEST_STATE_FAIL, QUEST_STATUS_COMPLETE, QUEST_STATUS_FAILED, QUEST_STATUS_INCOMPLETE, RemoveTimedQuest(), SendQuestFailed(), SendQuestTimerFailed(), SetQuestSlotState(), SetQuestSlotTimer(), SetQuestStatus(), sObjectMgr, and QuestStatusData::Timer.
Referenced by npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::CheckEventFail(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::CheckEventFail(), Spell::EffectQuestFail(), SmartAI::EndPath(), npc_clintar_spirit::npc_clintar_spiritAI::JustDied(), npc_doctor::npc_doctorAI::PatientDied(), Map::ScriptsProcess(), boss_shattered_executioner::SetData(), Update(), and npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI().
Definition at line 9232 of file Player.cpp.
References Unit::CanDualWield(), CanTitanGrip(), CLASS_DEATH_KNIGHT, CLASS_DRUID, CLASS_PALADIN, CLASS_SHAMAN, CLASS_WARLOCK, EQUIPMENT_SLOT_BACK, EQUIPMENT_SLOT_BODY, EQUIPMENT_SLOT_CHEST, EQUIPMENT_SLOT_FEET, EQUIPMENT_SLOT_FINGER1, EQUIPMENT_SLOT_FINGER2, EQUIPMENT_SLOT_HANDS, EQUIPMENT_SLOT_HEAD, EQUIPMENT_SLOT_LEGS, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_NECK, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, EQUIPMENT_SLOT_SHOULDERS, EQUIPMENT_SLOT_TABARD, EQUIPMENT_SLOT_TRINKET1, EQUIPMENT_SLOT_TRINKET2, EQUIPMENT_SLOT_WAIST, EQUIPMENT_SLOT_WRISTS, Unit::GetClass(), ItemTemplate::GetInventoryType(), GetItemByPos(), ItemTemplate::GetSubClass(), Item::GetTemplate(), 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_RANGED, INVTYPE_RANGEDRIGHT, INVTYPE_RELIC, INVTYPE_ROBE, INVTYPE_SHIELD, INVTYPE_SHOULDERS, INVTYPE_TABARD, INVTYPE_THROWN, INVTYPE_TRINKET, INVTYPE_WAIST, INVTYPE_WEAPON, INVTYPE_WEAPONMAINHAND, INVTYPE_WEAPONOFFHAND, INVTYPE_WRISTS, IsTwoHandUsed(), ITEM_SUBCLASS_ARMOR_IDOL, ITEM_SUBCLASS_ARMOR_LIBRAM, ITEM_SUBCLASS_ARMOR_MISCELLANEOUS, ITEM_SUBCLASS_ARMOR_SIGIL, ITEM_SUBCLASS_ARMOR_TOTEM, and NULL_SLOT.
Referenced by CanEquipItem().
Definition at line 15948 of file Player.cpp.
References GetQuestSlotQuestId(), and MAX_QUEST_LOG_SIZE.
Referenced by AddQuest(), AreaExploredOrEventHappens(), CompleteQuest(), Spell::EffectQuestComplete(), FailQuest(), WorldSession::HandleQuestPOIQuery(), IncompleteQuest(), RewardQuest(), SatisfyQuestLog(), SendQuestUpdateAddCreatureOrGo(), and SendQuestUpdateAddPlayer().
| void Player::FinishTaxiFlight | ( | ) |
Definition at line 21199 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::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().
| ActionButton const * Player::GetActionButton | ( | uint8 | button | ) |
Definition at line 6096 of file Player.cpp.
References ACTIONBUTTON_DELETED, and m_actionButtons.
Referenced by Spell::EffectCastButtons().
|
inline |
|
inline |
Definition at line 1480 of file Player.h.
Referenced by _LoadGlyphAuras(), _SaveActions(), ActivateTalentGroup(), BuildPlayerTalentsInfoData(), Spell::EffectApplyGlyph(), learn_commandscript::HandleLearnAllTalentsCommand(), WorldSession::HandleRemoveGlyph(), AuraEffect::HandleShapeshiftBoosts(), LearnTalent(), LoadFromDB(), ResetTalents(), SaveToDB(), SetGlyph(), and UpdateTalentGroupCount().
|
inline |
Definition at line 1152 of file Player.h.
Referenced by _ApplyAmmoBonuses(), and CalculateMinMaxDamage().
Definition at line 1616 of file Player.h.
References ARENA_TEAM_END, ARENA_TEAM_PERSONAL_RATING, Object::GetUInt32Value(), and PLAYER_FIELD_ARENA_TEAM_INFO_1_1.
Referenced by Arena::EndBattleground(), and GetMaxPersonalArenaRatingRequirement().
|
inline |
Definition at line 1853 of file Player.h.
References Object::GetUInt32Value(), and PLAYER_FIELD_ARENA_CURRENCY.
Referenced by BuyItemFromVendorSlot(), modify_commandscript::HandleModifyArenaCommand(), ModifyArenaPoints(), and SaveToDB().
Definition at line 1615 of file Player.h.
References ARENA_TEAM_END, ARENA_TEAM_ID, Object::GetUInt32Value(), and PLAYER_FIELD_ARENA_TEAM_INFO_1_1.
Referenced by ArenaTeam::AddMember(), Group::CanJoinBattlegroundQueue(), GetMaxPersonalArenaRatingRequirement(), WorldSession::HandleArenaTeamAcceptOpcode(), WorldSession::HandleArenaTeamInviteOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleInspectArenaTeamsOpcode(), WorldSession::HandleOfferPetitionOpcode(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandleSignPetition(), WorldSession::HandleTurnInPetitionOpcode(), LoadFromDB(), and AchievementMgr::UpdateAchievementCriteria().
|
inline |
Definition at line 1618 of file Player.h.
Referenced by WorldSession::HandleArenaTeamAcceptOpcode(), WorldSession::HandleArenaTeamInviteOpcode(), WorldSession::HandleOfferPetitionOpcode(), and WorldSession::HandleSignPetition().
|
inline |
Definition at line 1181 of file Player.h.
Referenced by Spell::EffectProficiency().
|
static |
Definition at line 9652 of file Player.cpp.
References BASE_ATTACK, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, MAX_ATTACK, OFF_ATTACK, and RANGED_ATTACK.
Referenced by _ApplyAllItemMods(), _ApplyAllLevelScaleItemMods(), _ApplyItemBonuses(), _ApplyItemMods(), _ApplyWeaponDamage(), _RemoveAllItemMods(), ApplyEnchantment(), spell_sha_flametongue_weapon::CheckProc(), spell_sha_windfury_weapon::CheckProc(), GetUseableItemByPos(), AuraEffect::HandleAuraModDisarm(), and UpdateEquipSpellsAtFormChange().
|
inline |
Definition at line 2166 of file Player.h.
Referenced by WorldSession::BuildPartyMemberStatsChangedPacket().
| float Player::GetAverageItemLevel | ( | ) | const |
Definition at line 26101 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(), and lfg::LFGMgr::GetLockedDungeons().
Definition at line 9574 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, and Item::ToBag().
Referenced by _StoreItem(), CanStoreItem_InBag(), CanStoreItem_InSpecificSlot(), CanStoreItems(), CanUnequipItems(), CastAllObtainSpells(), DestroyConjuredItems(), DestroyItem(), DestroyItemCount(), DestroyZoneLimitedItem(), DurabilityLossAll(), GetFreeInventorySpace(), GetItemByEntry(), GetItemByGuid(), GetItemByPos(), GetItemCount(), GetItemCountWithLimitCategory(), HasItemCount(), HasItemTotemCategory(), IsValidPos(), RemoveArenaEnchantments(), and RemoveItem().
|
inline |
Definition at line 1102 of file Player.h.
References Object::GetByteValue(), PLAYER_BYTES_2, and PLAYER_BYTES_2_OFFSET_BANK_BAG_SLOTS.
Referenced by CanBankItem(), WorldSession::HandleBuyBankSlotOpcode(), and SaveToDB().
| uint32 Player::GetBarberShopCost | ( | uint8 | newhairstyle, |
| uint8 | newhaircolor, | ||
| uint8 | newfacialhair, | ||
| BarberShopStyleEntry const * | newSkin = nullptr |
||
| ) | const |
Definition at line 24194 of file Player.cpp.
References BarberShopStyleEntry::Data, GtBarberShopCostBaseEntry::Data, GetFacialStyle(), GetHairColorId(), GetHairStyleId(), Unit::GetLevel(), GetSkinId(), GT_MAX_LEVEL, and sGtBarberShopCostBaseStore.
Referenced by WorldSession::HandleAlterAppearance().
|
inline |
Definition at line 1635 of file Player.h.
References SKILL_DEFENSE.
Referenced by UpdateCombatSkills().
| float Player::GetBaseModValue | ( | BaseModGroup | modGroup, |
| BaseModType | modType | ||
| ) | const |
Definition at line 5085 of file Player.cpp.
References BASEMOD_END, FLAT_MOD, Object::GetGUID(), WorldObject::GetName(), m_auraBaseFlatMod, m_auraBasePctMod, MOD_END, TC_LOG_ERROR, and Position::ToString().
Referenced by UpdateCritPercentage().
Definition at line 2192 of file Player.h.
Referenced by Spell::EffectActivateRune(), spell_dk_death_rune::HandleProc(), IsBaseRuneSlotsOnCooldown(), RemoveRunesByAuraEffect(), RestoreBaseRune(), and Spell::TakeRunePower().
Definition at line 5948 of file Player.cpp.
References GetSkillPermBonusByPos(), GetSkillRankByPos(), mSkillStatus, and SKILL_DELETED.
Referenced by npc_engineering_tele_trinket::npc_engineering_tele_trinketAI::CanLearn(), GetBaseWeaponSkillValue(), Trainer::Trainer::GetSpellState(), npc_prof_blacksmith::npc_prof_blacksmithAI::OnGossipHello(), npc_prof_leather::npc_prof_leatherAI::OnGossipHello(), npc_prof_tailor::npc_prof_tailorAI::OnGossipHello(), and npc_prof_alchemy::npc_prof_alchemyAI::OnGossipHello().
|
inline |
Returns base spellpower bonus from spellpower stat on items.
Definition at line 1671 of file Player.h.
Referenced by _SaveStats(), Unit::SpellBaseDamageBonusDone(), and Unit::SpellBaseHealingBonusDone().
| uint32 Player::GetBaseWeaponSkillValue | ( | WeaponAttackType | attType | ) | const |
Definition at line 23666 of file Player.cpp.
References BASE_ATTACK, GetBaseSkillValue(), Item::GetSkill(), GetWeaponForAttack(), and SKILL_UNARMED.
Referenced by UpdateCombatSkills().
| Battleground * Player::GetBattleground | ( | ) | const |
Definition at line 23024 of file Player.cpp.
References BGData::bgTypeID, GetBattlegroundId(), m_bgData, and sBattlegroundMgr.
Referenced by GameObject::ActivateToQuest(), CanEquipItem(), CanUnequipItem(), Spell::CheckCast(), SpellInfo::CheckLocation(), MapInstanced::CreateInstanceForPlayer(), Unit::DestroyForPlayer(), Spell::EffectOpenLock(), VehicleJoinEvent::Execute(), WorldSession::HandleAreaSpiritHealerQueryOpcode(), WorldSession::HandleAreaSpiritHealerQueueOpcode(), WorldSession::HandleAreaTriggerOpcode(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModEffectImmunity(), WorldSession::HandleBattlefieldLeaveOpcode(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlegroundPlayerPositionsOpcode(), bg_commandscript::HandleBgStartCommand(), bg_commandscript::HandleBgStopCommand(), debug_commandscript::HandleDebugNearGraveyard(), spell_item_rocket_boots::HandleDummy(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleMovementOpcode(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandlePVPLogDataOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), WorldSession::HandleRequestBattlefieldStatusOpcode(), InArena(), Battlefield::InvitePlayerToWar(), SpellArea::IsFitToRequirements(), Unit::Kill(), LeaveBattleground(), WorldSession::LogoutPlayer(), AchievementCriteriaData::Meets(), Unit::Mount(), achievement_bg_control_all_nodes::OnCheck(), achievement_arena_kills::OnCheck(), achievement_resilient_victory::OnCheck(), achievement_save_the_day::OnCheck(), achievement_everything_counts::OnCheck(), achievement_bg_av_perfection::OnCheck(), achievement_bg_sa_defense_of_ancients::OnCheck(), achievement_not_even_a_scratch::OnCheck(), RepopAtGraveyard(), ReportedAfkBy(), AchievementMgr::RequirementsSatisfied(), ResurrectPlayer(), RewardHonor(), SendInitWorldStates(), SendLoot(), SummonIfPossible(), TeleportTo(), and GameObject::Use().
|
inline |
Definition at line 1989 of file Player.h.
Referenced by LoadFromDB().
|
inline |
Definition at line 1971 of file Player.h.
Referenced by BattlegroundMap::CannotEnter(), MapInstanced::CreateInstanceForPlayer(), GetBattleground(), GiveXP(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleMoveWorldportAck(), misc_commandscript::HandleSummonCommand(), and RemovedInsignia().
| uint32 Player::GetBattlegroundQueueIndex | ( | BattlegroundQueueTypeId | bgQueueTypeId | ) | const |
Definition at line 23046 of file Player.cpp.
References m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by Battleground::EndBattleground(), BGQueueInviteEvent::Execute(), BGQueueRemoveEvent::Execute(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), InBattlegroundQueueForBattlegroundQueueType(), BattlegroundQueue::InviteGroupToBG(), Battleground::PlayerAddedToBGCheckIfBGIsRunning(), and Battleground::RemovePlayerAtLeave().
| BattlegroundQueueTypeId Player::GetBattlegroundQueueTypeId | ( | uint32 | index | ) | const |
Definition at line 23041 of file Player.cpp.
References Player::BgBattlegroundQueueID_Rec::bgQueueTypeId, and m_bgBattlegroundQueueID.
Referenced by WorldSession::HandleArenaTeamDisbandOpcode(), WorldSession::HandleArenaTeamLeaveOpcode(), WorldSession::HandleArenaTeamRemoveOpcode(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleRequestBattlefieldStatusOpcode(), and WorldSession::LogoutPlayer().
|
inline |
Definition at line 1972 of file Player.h.
Referenced by misc_commandscript::HandleAppearCommand(), and misc_commandscript::HandleSummonCommand().
| bool Player::GetBGAccessByLevel | ( | BattlegroundTypeId | bgTypeId | ) | const |
Definition at line 23132 of file Player.cpp.
References DEFAULT_MAX_LEVEL, Unit::GetLevel(), Battleground::GetMaxLevel(), and sBattlegroundMgr.
Referenced by WorldSession::HandleBattlemasterHelloOpcode(), and Creature::isCanInteractWithBattleMaster().
| uint32 Player::GetBGTeam | ( | ) | const |
Definition at line 21947 of file Player.cpp.
References BGData::bgTeam, GetTeam(), and m_bgData.
Referenced by Battleground::AddPlayer(), Arena::AddPlayer(), BattlegroundMgr::BuildBattlegroundStatusActive(), Battleground::EventPlayerLoggedOut(), RewardHonor(), and BattlegroundMgr::SendToBattleground().
| InstancePlayerBind * Player::GetBoundInstance | ( | uint32 | mapid, |
| Difficulty | difficulty, | ||
| bool | withExpired = false |
||
| ) |
Definition at line 18567 of file Player.cpp.
References GetDownscaledMapDifficultyData(), and m_boundInstances.
Referenced by InstanceMap::AddPlayerToMap(), InstanceMap::CannotEnter(), Spell::CheckCast(), CheckInstanceValidity(), MapInstanced::CreateInstanceForPlayer(), lfg::LFGMgr::GetCompatibleDungeons(), GetInstanceSave(), lfg::LFGMgr::GetLockedDungeons(), misc_commandscript::HandleAppearCommand(), and InstanceMap::PermBindAllPlayers().
|
inline |
Definition at line 2136 of file Player.h.
Referenced by WorldSession::HandleCalendarGetCalendar(), instance_commandscript::HandleInstanceListBindsCommand(), and instance_commandscript::HandleInstanceUnbindCommand().
|
inline |
Definition at line 2229 of file Player.h.
Referenced by RewardReputation().
| uint8 Player::GetChatTag | ( | ) | const |
Definition at line 1523 of file Player.cpp.
References CHAT_TAG_AFK, CHAT_TAG_DEV, CHAT_TAG_DND, CHAT_TAG_GM, CHAT_TAG_NONE, isAFK(), IsDeveloper(), isDND(), and isGMChat().
|
inline |
Definition at line 1553 of file Player.h.
Referenced by WorldSession::HandlePlayerLogin().
|
inline |
Definition at line 1196 of file Player.h.
Referenced by WorldSession::HandleCompleteCinematic(), and WorldSession::HandleNextCinematicCamera().
|
inline |
Definition at line 1006 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(), Spell::TakePower(), and Spell::TriggerGlobalCooldown().
| std::string Player::GetCoordsMapAreaAndZoneString | ( | ) | const |
Definition at line 26205 of file Player.cpp.
References GetMapAreaAndZoneString(), and Position::ToString().
| Corpse * Player::GetCorpse | ( | ) | const |
Definition at line 4563 of file Player.cpp.
References Map::GetCorpseByPlayer(), Object::GetGUID(), and WorldObject::GetMap().
Referenced by KillRewarder::_RewardKillCredit(), CalculateCorpseReclaimDelay(), GroupEventHappens(), WorldSession::HandleQueryCorpseTransport(), WorldSession::HandleReclaimCorpse(), IsAtGroupRewardDistance(), IsAtRecruitAFriendDistance(), and RewardPlayerAndGroupAtEvent().
|
inline |
Definition at line 1744 of file Player.h.
Referenced by BuildPlayerRepop(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandleQueryCorpseLocation(), MapManager::PlayerCannotEnter(), and WorldSession::SendSpiritResurrect().
| uint32 Player::GetCorpseReclaimDelay | ( | bool | pvp | ) | const |
Definition at line 23784 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().
Definition at line 2193 of file Player.h.
Referenced by Spell::CheckRuneCost(), Spell::EffectActivateRune(), AuraEffect::HandleAuraConvertRune(), spell_dk_blood_tap::spell_dk_blood_tap_SpellScript::HandleEffect(), ResyncRunes(), and Spell::TakeRunePower().
|
inline |
Definition at line 1875 of file Player.h.
Referenced by WorldSession::LogoutPlayer().
|
overridevirtual |
Reimplemented from Object.
Definition at line 26486 of file Player.cpp.
References Unit::GetDebugInfo().
Referenced by FlightPathMovementGenerator::DoEventIfAny(), FlightPathMovementGenerator::DoReset(), FlightPathMovementGenerator::DoUpdate(), HandleFall(), WorldSession::HandleMovementOpcode(), and StopCastingCharm().
|
inline |
|
static |
Definition at line 14252 of file Player.cpp.
References Creature::GetCreatureTemplate(), GameObject::GetGOInfo(), GameObjectTemplate::GetGossipMenuId(), Object::GetTypeId(), CreatureTemplate::GossipMenuId, Object::ToCreature(), Object::ToGameObject(), TYPEID_GAMEOBJECT, and TYPEID_UNIT.
Referenced by GetGossipTextId(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipHello(), npc_shadowfang_prisoner::npc_shadowfang_prisonerAI::OnGossipHello(), and PrepareGossipMenu().
| Difficulty Player::GetDifficultyID | ( | MapEntry const * | mapEntry | ) | const |
Definition at line 26364 of file Player.cpp.
References MapEntry::IsRaid(), m_dungeonDifficulty, and m_raidDifficulty.
Referenced by MapInstanced::CreateInstanceForPlayer(), GetInstanceSave(), WorldSession::HandleAreaTriggerOpcode(), HasQuestForGO(), HasQuestForItem(), KilledMonsterCredit(), KilledPlayerCredit(), MapManager::PlayerCannotEnter(), Satisfy(), and SendInitialPacketsBeforeAddToMap().
| void Player::GetDodgeFromAgility | ( | float & | diminishing, |
| float & | nondiminishing | ||
| ) | const |
Definition at line 5132 of file Player.cpp.
References AsUnderlyingType(), BASE_PCT, GtChanceToMeleeCritEntry::Data, Unit::GetClass(), Unit::GetCreateStat(), Unit::GetLevel(), Unit::GetPctModifierValue(), Unit::GetStat(), GT_MAX_LEVEL, MAX_CLASSES, sGtChanceToMeleeCritStore, STAT_AGILITY, and UNIT_MOD_STAT_START.
Referenced by UpdateDodgePercentage().
|
static |
Definition at line 865 of file Player.cpp.
References DRUNKEN_DRUNK, DRUNKEN_SMASHED, DRUNKEN_SOBER, and DRUNKEN_TIPSY.
Referenced by Condition::Meets(), AchievementCriteriaData::Meets(), and SetDrunkValue().
|
inline |
Definition at line 1869 of file Player.h.
References Object::GetByteValue(), PLAYER_BYTES_3, and PLAYER_BYTES_3_OFFSET_INEBRIATION.
Referenced by Spell::EffectInebriate(), HandleSobering(), LoadFromDB(), AchievementCriteriaData::Meets(), SaveToDB(), SetDrunkValue(), Update(), and UpdateInvisibilityDrunkDetect().
|
inline |
Definition at line 1621 of file Player.h.
Referenced by Group::Create(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleSetDungeonDifficultyOpcode(), ResetInstances(), SaveToDB(), and SendDungeonDifficulty().
| float Player::GetExpertiseDodgeOrParryReduction | ( | WeaponAttackType | attType | ) | const |
Definition at line 5223 of file Player.cpp.
References BASE_ATTACK, Object::GetUInt32Value(), OFF_ATTACK, PLAYER_EXPERTISE, and PLAYER_OFFHAND_EXPERTISE.
Referenced by Unit::GetUnitDodgeChance(), and Unit::GetUnitParryChance().
|
inline |
Definition at line 1021 of file Player.h.
References Object::GetByteValue(), PLAYER_BYTES, and PLAYER_BYTES_OFFSET_FACE_ID.
Referenced by CreateCorpse(), WorldSession::HandleAlterAppearance(), LoadFromDB(), and SaveToDB().
|
inline |
Definition at line 1027 of file Player.h.
References Object::GetByteValue(), PLAYER_BYTES_2, and PLAYER_BYTES_2_OFFSET_FACIAL_STYLE.
Referenced by CreateCorpse(), GetBarberShopCost(), LoadFromDB(), and SaveToDB().
|
inline |
Definition at line 1871 of file Player.h.
References Object::GetInt32Value(), and PLAYER_FAKE_INEBRIATION.
Referenced by UpdateInvisibilityDrunkDetect().
| uint32 Player::GetFreeInventorySpace | ( | ) | const |
Definition at line 9583 of file Player.cpp.
References GetBagByPos(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, and INVENTORY_SLOT_ITEM_START.
Referenced by Spell::CheckItems().
|
inline |
Definition at line 1514 of file Player.h.
References Object::GetUInt32Value(), and PLAYER_CHARACTER_POINTS2.
Referenced by AddSpell(), Trainer::Trainer::CanTeachSpell(), and RemoveSpell().
|
inline |
Definition at line 1470 of file Player.h.
References Object::GetUInt32Value(), and PLAYER_CHARACTER_POINTS1.
Referenced by BuildPlayerTalentsInfoData(), and LearnTalent().
| GameClient * Player::GetGameClient | ( | ) | const |
Definition at line 26493 of file Player.cpp.
References WorldSession::GetGameClient(), and GetSession().
Referenced by SendInitialPacketsBeforeAddToMap(), and SetClientControl().
| GameObject * Player::GetGameObjectIfCanInteractWith | ( | ObjectGuid const & | guid | ) | const |
Definition at line 2170 of file Player.cpp.
References ObjectAccessor::GetGameObject(), GameObject::GetGOInfo(), GameObjectTemplate::IconName, Unit::IsInFlight(), Object::IsInWorld(), and GameObject::IsWithinDistInMap().
Referenced by CanInteractWithQuestGiver(), WorldSession::CanOpenMailBox(), GetGameObjectIfCanInteractWith(), WorldSession::HandleGossipSelectOptionOpcode(), and WorldSession::HandleGuildBankActivate().
| GameObject * Player::GetGameObjectIfCanInteractWith | ( | ObjectGuid const & | guid, |
| GameobjectTypes | type | ||
| ) | const |
Definition at line 2196 of file Player.cpp.
References GetGameObjectIfCanInteractWith(), and GameObject::GetGoType().
Definition at line 1508 of file Player.h.
Referenced by _LoadGlyphAuras(), _SaveGlyphs(), ActivateTalentGroup(), BuildPlayerTalentsInfoData(), Spell::EffectApplyGlyph(), WorldSession::HandleRemoveGlyph(), and AuraEffect::HandleShapeshiftBoosts().
Definition at line 1506 of file Player.h.
References Object::GetUInt32Value(), and PLAYER_FIELD_GLYPH_SLOTS_1.
Referenced by _LoadGlyphAuras(), and Spell::EffectApplyGlyph().
| uint32 Player::GetGossipTextId | ( | uint32 | menuId, |
| WorldObject * | source | ||
| ) |
Definition at line 14234 of file Player.cpp.
References DEFAULT_GOSSIP_MESSAGE, sConditionMgr, 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_shadowfang_prisoner::npc_shadowfang_prisonerAI::OnGossipHello(), npc_zulaman_hostage::npc_zulaman_hostageAI::OnGossipHello(), npc_rizzle_sprysprocket::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_colonel_jules::npc_colonel_julesAI::OnGossipHello(), npc_innkeeper::npc_innkeeperAI::OnGossipHello(), npc_prof_blacksmith::npc_prof_blacksmithAI::OnGossipHello(), npc_engineering_tele_trinket::npc_engineering_tele_trinketAI::OnGossipHello(), npc_prof_leather::npc_prof_leatherAI::OnGossipHello(), npc_prof_tailor::npc_prof_tailorAI::OnGossipHello(), npc_prof_alchemy::npc_prof_alchemyAI::OnGossipHello(), npc_prof_blacksmith::npc_prof_blacksmithAI::SendActionMenu(), SendPreparedGossip(), and SendPreparedQuest().
| uint32 Player::GetGossipTextId | ( | WorldObject * | source | ) |
Definition at line 14226 of file Player.cpp.
References DEFAULT_GOSSIP_MESSAGE, GetDefaultGossipMenuForSource(), and GetGossipTextId().
|
inline |
Definition at line 1831 of file Player.h.
Referenced by WorldSession::HandleAcceptGrantLevel(), and WorldSession::HandleGrantLevel().
|
inline |
Definition at line 2159 of file Player.h.
Referenced by _LoadBoundInstances(), _LoadGroup(), Group::AddInvite(), Group::AddMember(), Battlefield::AddOrSetPlayerToCorrectBfGroup(), InstanceMap::AddPlayerToMap(), LootItem::AllowedForPlayer(), Group::BroadcastPacket(), Loot::BuildLootResponse(), CanRollForItemInLFG(), CanUninviteFromGroup(), npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::CheckEventFail(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::CheckEventFail(), CheckInstanceValidity(), spell_dru_t10_restoration_4p_bonus_dummy::CheckProc(), AchievementMgr::ConditionsSatisfied(), CreateCorpse(), MapInstanced::CreateInstanceForPlayer(), ArenaTeam::DelMember(), Group::Disband(), WorldSession::DoLootRelease(), DoRandomRoll(), SmartAI::EndPath(), Loot::FillLoot(), Loot::FillQuestLoot(), GetInstanceSave(), GetNextRandomRaidMember(), Unit::GetNextRandomRaidMemberOrPet(), Unit::GetPartyMembers(), ChatHandler::GetPlayerGroupAndGUIDByName(), GetsRecruitAFriendBonus(), GroupEventHappens(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleChatMessage(), WorldSession::HandleGroupAssistantLeaderOpcode(), WorldSession::HandleGroupChangeSubGroupOpcode(), WorldSession::HandleGroupDisbandOpcode(), WorldSession::HandleGroupInviteOpcode(), group_commandscript::HandleGroupJoinCommand(), group_commandscript::HandleGroupLevelCommand(), group_commandscript::HandleGroupListCommand(), WorldSession::HandleGroupRaidConvertOpcode(), group_commandscript::HandleGroupRepairCommand(), group_commandscript::HandleGroupReviveCommand(), WorldSession::HandleGroupSetLeaderOpcode(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleGroupUninviteGuidOpcode(), WorldSession::HandleGroupUninviteOpcode(), instance_commandscript::HandleInstanceListBindsCommand(), OutdoorPvP::HandleKill(), WorldSession::HandleLfgLeaveOpcode(), WorldSession::HandleLfgSetRolesOpcode(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMethodOpcode(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleLootRoll(), WorldSession::HandleMinimapPingOpcode(), WorldSession::HandlePartyAssignmentOpcode(), WorldSession::HandlePetRename(), Battlefield::HandlePlayerLeaveZone(), WorldSession::HandlePlayerLogin(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleRaidReadyCheckFinishedOpcode(), WorldSession::HandleRaidReadyCheckOpcode(), WorldSession::HandleRaidTargetUpdateOpcode(), WorldSession::HandleResetInstancesOpcode(), WorldSession::HandleSetDungeonDifficultyOpcode(), WorldSession::HandleSetRaidDifficultyOpcode(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleGroupCommand(), HasQuestForGO(), HasQuestForItem(), isAllowedToLoot(), SmartAI::IsEscortInvokerInRange(), IsInSameGroupWith(), IsInSameRaidWith(), GameObject::IsLootAllowedFor(), Creature::isTappedBy(), Channel::JoinChannel(), lfg::LFGMgr::JoinLfg(), boss_coren_direbrew::JustDied(), boss_headless_horseman::JustDied(), boss_apothecary_hummel::JustDied(), boss_ahune::JustDied(), Unit::Kill(), KilledMonsterCredit(), KilledPlayerCredit(), Pet::LoadPetFromDB(), WorldSession::LogoutPlayer(), lfg::LFGMgr::MakeNewGroup(), MeetsGroupStatusCondition(), go_gauntlet_gate::go_gauntlet_gateAI::OnGossipHello(), lfg::LFGPlayerScript::OnLogin(), lfg::LFGPlayerScript::OnLogout(), lfg::LFGPlayerScript::OnMapChanged(), Trinity::MostHPMissingGroupInRange::operator()(), InstanceMap::PermBindAllPlayers(), MapManager::PlayerCannotEnter(), Group::RemoveMember(), RemovePet(), Group::ResetInstances(), RewardPlayerAndGroupAtEvent(), Group::SameSubGroup(), Satisfy(), WorldSession::SendLfgPartyLockInfo(), SendLoot(), SendNewItem(), SendUpdateToOutOfRangeGroupMembers(), Group::SendUpdateToPlayer(), SetBattlegroundOrBattlefieldRaid(), Unit::SetHealth(), Creature::SetLootRecipient(), GameObject::SetLootRecipient(), Unit::SetMaxHealth(), Unit::SetMaxPower(), Unit::SetPower(), Unit::SetPowerType(), lfg::LFGMgr::TeleportPlayer(), Unit::UpdateAuraForGroup(), UpdatePosition(), UpdateZone(), and GameObject::Use().
|
inline |
Definition at line 2157 of file Player.h.
Referenced by Group::AddInvite(), WorldSession::HandleGroupAcceptOpcode(), WorldSession::HandleGroupDeclineOpcode(), WorldSession::HandleGroupDisbandOpcode(), WorldSession::HandleGroupInviteOpcode(), and UninviteFromGroup().
|
inline |
|
inline |
Definition at line 2164 of file Player.h.
Referenced by WorldSession::BuildPartyMemberStatsChangedPacket().
| Guild * Player::GetGuild | ( | ) |
Definition at line 26218 of file Player.cpp.
References GetGuildId(), and sGuildMgr.
Referenced by DurabilityRepairAll(), GiveLevel(), WorldSession::HandleGuildBankActivate(), WorldSession::HandleGuildBankSwapItems(), WorldSession::HandleGuildSetRankPermissions(), and UpdateZone().
| Guild const * Player::GetGuild | ( | ) | const |
Definition at line 26224 of file Player.cpp.
References GetGuildId(), and sGuildMgr.
|
inline |
Definition at line 1605 of file Player.h.
References Object::GetUInt32Value(), and PLAYER_GUILDID.
Referenced by Guild::AddMember(), CanJoinConstantChannelInZone(), CreateCorpse(), GetGuild(), GetGuild(), GetGuildName(), WorldSession::HandleCalendarAddEvent(), WorldSession::HandleCalendarCopyEvent(), WorldSession::HandleCalendarEventInvite(), WorldSession::HandleCalendarEventSignup(), WorldSession::HandleCalendarGetCalendar(), WorldSession::HandleCalendarGuildFilter(), WorldSession::HandleChatMessage(), guild_commandscript::HandleGuildCreateCommand(), guild_commandscript::HandleGuildUninviteCommand(), Guild::HandleInviteMember(), WorldSession::HandleOfferPetitionOpcode(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandlePetitionShowSignatures(), WorldSession::HandlePlayerLogin(), WorldSession::HandleSignPetition(), WorldSession::HandleTurnInPetitionOpcode(), WorldSession::LogoutPlayer(), and CalendarMgr::SendCalendarEvent().
|
inline |
Definition at line 1608 of file Player.h.
Referenced by Guild::HandleInviteMember(), WorldSession::HandleOfferPetitionOpcode(), and WorldSession::HandleSignPetition().
| std::string Player::GetGuildName | ( | ) | const |
Definition at line 25851 of file Player.cpp.
References GetGuildId(), and sGuildMgr.
|
inline |
Definition at line 1603 of file Player.h.
References Object::GetUInt32Value(), and PLAYER_GUILDRANK.
|
inline |
Definition at line 1025 of file Player.h.
References Object::GetByteValue(), PLAYER_BYTES, and PLAYER_BYTES_OFFSET_HAIR_COLOR_ID.
Referenced by CreateCorpse(), GetBarberShopCost(), LoadFromDB(), and SaveToDB().
|
inline |
Definition at line 1023 of file Player.h.
References Object::GetByteValue(), PLAYER_BYTES, and PLAYER_BYTES_OFFSET_HAIR_STYLE_ID.
Referenced by CreateCorpse(), GetBarberShopCost(), LoadFromDB(), and SaveToDB().
| float Player::GetHealthBonusFromStamina | ( | ) |
Definition at line 289 of file StatSystem.cpp.
References Unit::GetStat(), and STAT_STAMINA.
Referenced by UpdateMaxHealth().
|
inline |
Definition at line 1852 of file Player.h.
References Object::GetUInt32Value(), and PLAYER_FIELD_HONOR_CURRENCY.
Referenced by BuyItemFromVendorSlot(), modify_commandscript::HandleModifyHonorCommand(), ModifyHonorPoints(), and SaveToDB().
|
inline |
| InstanceSave * Player::GetInstanceSave | ( | uint32 | mapid | ) |
Definition at line 18581 of file Player.cpp.
References GetBoundInstance(), GetDifficultyID(), GetGroup(), InstancePlayerBind::perm, InstancePlayerBind::save, and sMapStore.
Referenced by LoadFromDB(), and MapManager::PlayerCannotEnter().
Definition at line 12459 of file Player.cpp.
References CURRENCYTOKEN_SLOT_END, EQUIPMENT_SLOT_START, GetBagByPos(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, and KEYRING_SLOT_START.
Referenced by Spell::CheckItems(), Spell::EffectRechargeManaGem(), and Spell::EffectStuck().
| Item * Player::GetItemByGuid | ( | ObjectGuid | guid | ) | const |
Definition at line 9516 of file Player.cpp.
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, BANK_SLOT_ITEM_START, CURRENCYTOKEN_SLOT_END, EQUIPMENT_SLOT_START, GetBagByPos(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, and KEYRING_SLOT_START.
Referenced by Aura::_ApplyForTarget(), _SaveInventory(), Spell::CheckCast(), spell_sha_flametongue_weapon::CheckProc(), spell_sha_windfury_weapon::CheckProc(), WorldSession::DoLootRelease(), TradeData::GetItem(), TradeData::GetSpellCastItem(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleAutoEquipItemSlotOpcode(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleBuyItemInSlotOpcode(), debug_commandscript::HandleDebugGetItemValueCommand(), debug_commandscript::HandleDebugItemExpireCommand(), debug_commandscript::HandleDebugSetItemValueCommand(), WorldSession::HandleEquipmentSetUse(), WorldSession::HandleGetItemPurchaseData(), WorldSession::HandleItemRefund(), WorldSession::HandleItemTextQuery(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandlePetitionRenameGuild(), WorldSession::HandleRepairItemOpcode(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSendMail(), WorldSession::HandleSignPetition(), WorldSession::HandleSocketOpcode(), WorldSession::HandleTurnInPetitionOpcode(), SendLoot(), SpellCastTargets::Update(), Spell::UpdatePointers(), and UpdateSoulboundTradeItems().
Definition at line 9550 of file Player.cpp.
References GetItemByPos().
Referenced by _SaveInventory(), _StoreItem(), AutoUnequipOffhandIfNeed(), CanEquipItem(), CanStoreItem_InBag(), CanStoreItem_InInventorySlots(), CanStoreItem_InSpecificSlot(), CanStoreItems(), CanUnequipItem(), CanUnequipItems(), CastAllObtainSpells(), CastItemCombatSpell(), CorrectMetaGemEnchants(), Create(), DestroyConjuredItems(), DestroyItem(), DestroyItemCount(), DestroyZoneLimitedItem(), PlayerAI::DoRangedAttackIfReady(), DurabilityLossAll(), DurabilityPointLossForEquipSlot(), DurabilityPointsLossAll(), DurabilityRepair(), DurabilityRepairAll(), Spell::EffectDurabilityDamage(), Spell::EffectDurabilityDamagePCT(), Spell::EffectEnchantHeldItem(), Spell::EffectScriptEffect(), EnchantmentFitsRequirements(), EquipItem(), EquippedOk(), FindEquipSlot(), GetBagByPos(), GetFreeInventorySpace(), GetItemByEntry(), GetItemByGuid(), GetItemByPos(), GetItemCount(), GetItemCountWithLimitCategory(), GetShield(), GetUseableItemByPos(), GetWeaponForAttack(), misc_commandscript::HandleAddItemCommand(), misc_commandscript::HandleAddItemToCommand(), spell_rog_deadly_poison::HandleAfterHit(), AuraEffect::HandleAuraModDisarm(), AuraEffect::HandleAuraModShapeshift(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleCancelTempEnchantmentOpcode(), debug_commandscript::HandleDebugGetItemStateCommand(), WorldSession::HandleDestroyItemOpcode(), WorldSession::HandleEquipmentSetSave(), WorldSession::HandleEquipmentSetUse(), WorldSession::HandleInspectOpcode(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandleOpenWrappedItemCallback(), WorldSession::HandleReadItem(), WorldSession::HandleSetTradeItemOpcode(), WorldSession::HandleWrapItemOpcode(), HasGemWithLimitCategoryEquipped(), HasItemCount(), HasItemOrGemWithIdEquipped(), HasItemWithLimitCategoryEquipped(), Trinity::Helpers::Entity::IsPlayerRangedAttacker(), IsTwoHandUsed(), IsUsingTwoHandedWeaponInOneHand(), MoveItemFromInventory(), RemoveArenaEnchantments(), RemoveItem(), SaveToDB(), SplitItem(), SwapItem(), and ToggleMetaGemsActive().
Definition at line 9557 of file Player.cpp.
References BANK_SLOT_BAG_END, CURRENCYTOKEN_SLOT_END, GetBagByPos(), INVENTORY_SLOT_BAG_0, KEYRING_SLOT_START, and m_items.
| uint32 Player::GetItemCount | ( | uint32 | item, |
| bool | inBankAlso = false, |
||
| Item * | skipItem = nullptr |
||
| ) | const |
Definition at line 9436 of file Player.cpp.
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, BANK_SLOT_ITEM_END, BANK_SLOT_ITEM_START, CURRENCYTOKEN_SLOT_END, EQUIPMENT_SLOT_START, GetBagByPos(), Object::GetEntry(), ItemTemplate::GetGemProperties(), GetItemByPos(), ItemTemplate::GetSocketColor(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, and KEYRING_SLOT_START.
Referenced by AdjustQuestReqItemCount(), CanRewardQuest(), CanRollOnItem(), CanTakeMoreSimilarItems(), quest_commandscript::HandleQuestComplete(), WorldSession::HandleSetAmmoOpcode(), HasQuestForItem(), ItemRemovedQuestCheck(), and SendNewItem().
| uint32 Player::GetItemCountWithLimitCategory | ( | uint32 | limitCategory, |
| Item * | skipItem = nullptr |
||
| ) | const |
Definition at line 9481 of file Player.cpp.
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, BANK_SLOT_ITEM_START, CURRENCYTOKEN_SLOT_END, EQUIPMENT_SLOT_START, GetBagByPos(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, and KEYRING_SLOT_START.
Referenced by CanTakeMoreSimilarItems().
Definition at line 13028 of file Player.cpp.
References BUYBACK_SLOT_END, BUYBACK_SLOT_START, Object::GetGUID(), WorldObject::GetName(), m_items, TC_LOG_DEBUG, and Position::ToString().
Referenced by WorldSession::HandleBuybackItem().
|
inline |
Definition at line 1092 of file Player.h.
Referenced by debug_commandscript::HandleDebugGetItemStateCommand().
|
inline |
Definition at line 1774 of file Player.h.
Referenced by ChannelMgr::GetChannelForPlayerByNamePart().
|
inline |
Definition at line 2150 of file Player.h.
Referenced by spell_gen_pet_summoned::HandleScript().
|
inline |
Definition at line 1530 of file Player.h.
Referenced by Spell::CheckCast().
Definition at line 1697 of file Player.h.
Referenced by spell_dk_death_rune::HandleProc().
|
inline |
Definition at line 1015 of file Player.h.
References PLAYED_TIME_LEVEL.
Referenced by WorldSession::HandlePlayedTime().
|
inline |
Definition at line 1700 of file Player.h.
Referenced by CanBankItem(), CanEquipItem(), CanStoreItem(), CanStoreItems(), CanUnequipItem(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleItemRefund(), WorldSession::HandleLogoutRequestOpcode(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleLootReleaseOpcode(), WorldSession::HandleSellItemOpcode(), WorldSession::LogoutPlayer(), RemoveFromWorld(), SendLoot(), StoreLootItem(), and SwapItem().
Definition at line 3810 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 1421 of file Player.h.
Referenced by WorldSession::HandleGetMailList(), and WorldSession::HandleQueryNextMailTime().
| float Player::GetManaBonusFromIntellect | ( | ) |
Definition at line 298 of file StatSystem.cpp.
References Unit::GetStat(), and STAT_INTELLECT.
Referenced by UpdateMaxPower().
| std::string Player::GetMapAreaAndZoneString | ( | ) | const |
Definition at line 26188 of file Player.cpp.
References WorldObject::FindMap(), WorldObject::GetAreaId(), WorldLocation::GetMapId(), Map::GetMapName(), GetSession(), WorldSession::GetSessionDbcLocale(), and sAreaTableStore.
Referenced by GetCoordsMapAreaAndZoneString().
|
inline |
Definition at line 2182 of file Player.h.
Referenced by InstanceMap::CannotEnter(), BattlegroundMap::CannotEnter(), ResetMap(), and Map::UpdateIteratorBack().
|
inline |
Definition at line 1174 of file Player.h.
References KEYRING_SLOT_END, and KEYRING_SLOT_START.
Referenced by CanStoreItem(), CanStoreItem_InSpecificSlot(), and CanStoreItems().
If trans is specified, arena point save query will be added to trans.
Definition at line 21574 of file Player.cpp.
References GetArenaPersonalRating(), GetArenaTeamId(), MAX_ARENA_SLOT, and sArenaTeamMgr.
Referenced by BuyItemFromVendorSlot().
Definition at line 5921 of file Player.cpp.
References GetSkillMaxRankByPos(), GetSkillPermBonusByPos(), GetSkillTempBonusByPos(), mSkillStatus, and SKILL_DELETED.
Referenced by Unit::GetDefenseSkillValue(), and UpdateFishingSkill().
|
protected |
Definition at line 692 of file Player.cpp.
References BREATH_TIMER, CONFIG_DISABLE_BREATHING, DISABLED_MIRROR_TIMER, FATIGUE_TIMER, FIRE_TIMER, GetSession(), Unit::GetTotalAuraMultiplier(), Unit::HasAuraType(), IN_MILLISECONDS, Unit::IsAlive(), MINUTE, SPELL_AURA_MOD_WATER_BREATHING, SPELL_AURA_WATER_BREATHING, and sWorld.
Referenced by HandleDrowning(), and IsMirrorTimerActive().
| float Player::GetMeleeCritFromAgility | ( | ) | const |
Definition at line 5115 of file Player.cpp.
References GtChanceToMeleeCritBaseEntry::Data, GtChanceToMeleeCritEntry::Data, Unit::GetClass(), Unit::GetLevel(), Unit::GetStat(), GT_MAX_LEVEL, sGtChanceToMeleeCritBaseStore, sGtChanceToMeleeCritStore, and STAT_AGILITY.
Referenced by UpdateAllCritPercentages().
|
overridevirtual |
Implements Unit.
Definition at line 7444 of file Player.cpp.
References GetWeaponForAttack(), and SPELL_SCHOOL_MASK_NORMAL.
| float Player::GetMissPercentageFromDefense | ( | ) | const |
Definition at line 741 of file StatSystem.cpp.
References CalculateDiminishingReturns(), CR_DEFENSE_SKILL, Unit::GetClass(), Unit::GetMaxSkillValueForLevel(), GetRatingBonusValue(), GetSkillValue(), miss_cap, and SKILL_DEFENSE.
| Item * Player::GetMItem | ( | ObjectGuid::LowType | id | ) |
Definition at line 20570 of file Player.cpp.
References mMitems.
Referenced by WorldSession::HandleMailReturnToSender(), WorldSession::HandleMailTakeItem(), and WorldPackets::Mail::MailListEntry::MailListEntry().
|
inline |
Definition at line 1392 of file Player.h.
References Object::GetUInt32Value(), and PLAYER_FIELD_COINAGE.
Referenced by ActivateTaxiPathTo(), WorldSession::HandleAcceptTradeOpcode(), modify_commandscript::HandleModifyMoneyCommand(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandleSellItemOpcode(), ModifyMoney(), SaveGoldToDB(), and SaveToDB().
|
inline |
Definition at line 1556 of file Player.h.
Referenced by WorldSession::HandleCompleteMovie().
|
inlineoverridevirtual |
Reimplemented from Unit.
Definition at line 1017 of file Player.h.
References Object::GetByteValue(), PLAYER_BYTES_3, and PLAYER_BYTES_3_OFFSET_GENDER.
Referenced by CreateCorpse(), WorldSession::HandleAlterAppearance(), character_commandscript::HandleCharacterTitlesCommand(), misc_commandscript::HandlePInfoCommand(), titles_commandscript::HandleTitlesAddCommand(), titles_commandscript::HandleTitlesCurrentCommand(), titles_commandscript::HandleTitlesRemoveCommand(), InitDisplayIds(), SpellArea::IsFitToRequirements(), go_amberpine_outhouse::go_amberpine_outhouseAI::OnGossipSelect(), SaveToDB(), and Guild::Member::SetStats().
Definition at line 14416 of file Player.cpp.
References Quest::GetNextQuestInChain(), Quest::HasFlag(), Object::hasQuest(), WorldObject::IsInMap(), QUEST_FLAGS_AUTOCOMPLETE, and sObjectMgr.
Referenced by WorldSession::HandleQuestgiverChooseRewardOpcode().
| Player * Player::GetNextRandomRaidMember | ( | float | radius | ) |
Definition at line 23873 of file Player.cpp.
References Group::GetFirstMember(), GetGroup(), Group::GetMembersCount(), Unit::HasInvisibilityAura(), WorldObject::IsHostileTo(), WorldObject::IsWithinDistInMap(), and urand().
| uint32 Player::GetNextResetTalentsCost | ( | ) | const |
Definition at line 3688 of file Player.cpp.
References CONFIG_NO_RESET_TALENT_COST, GameTime::GetGameTime(), GetTalentResetCost(), GetTalentResetTime(), GOLD, MONTH, and sWorld.
Referenced by Spell::EffectUntrainTalents(), WorldSession::HandleTalentWipeConfirmOpcode(), and OnGossipSelect().
| Creature * Player::GetNPCIfCanInteractWith | ( | ObjectGuid const & | guid, |
| NPCFlags | npcFlags | ||
| ) | const |
Definition at line 2126 of file Player.cpp.
References CREATURE_TYPE_FLAG_INTERACT_WHILE_DEAD, CREATURE_TYPE_FLAG_VISIBLE_TO_GHOSTS, Unit::GetCharmerGUID(), Unit::GetCombatReach(), ObjectAccessor::GetCreatureOrPetOrVehicle(), Creature::GetCreatureTemplate(), WorldObject::GetReactionTo(), Unit::HasNpcFlag(), Unit::IsAlive(), ObjectGuid::IsEmpty(), Unit::IsInFlight(), Object::IsInWorld(), WorldObject::IsWithinDistInMap(), REP_UNFRIENDLY, and CreatureTemplate::type_flags.
Referenced by BuyItemFromVendorSlot(), CanInteractWithQuestGiver(), WorldSession::CanOpenMailBox(), WorldSession::CanUseBank(), WorldSession::HandleActivateTaxiExpressOpcode(), WorldSession::HandleActivateTaxiOpcode(), WorldSession::HandleAuctionHelloOpcode(), WorldSession::HandleAuctionListBidderItems(), WorldSession::HandleAuctionListItems(), WorldSession::HandleAuctionListOwnerItems(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleBankerActivateOpcode(), WorldSession::HandleBattlemasterHelloOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBinderActivateOpcode(), WorldSession::HandleBuybackItem(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleGossipSelectOptionOpcode(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandleQuestgiverHelloOpcode(), WorldSession::HandleRepairItemOpcode(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSpiritHealerActivateOpcode(), WorldSession::HandleTabardVendorActivateOpcode(), WorldSession::HandleTalentWipeConfirmOpcode(), WorldSession::HandleTaxiQueryAvailableNodes(), WorldSession::HandleTrainerBuySpellOpcode(), WorldSession::HandleTrainerListOpcode(), WorldSession::SendListInventory(), and WorldSession::SendPetitionShowList().
|
inline |
Definition at line 2174 of file Player.h.
Referenced by Group::AddInvite(), Battleground::AddOrSetPlayerToCorrectBgGroup(), Group::Disband(), WorldSession::HandleChatMessage(), WorldSession::HandleGroupInviteOpcode(), RemoveFromBattlegroundOrBattlefieldRaid(), Group::RemoveMember(), and Group::SendUpdateToPlayer().
|
inline |
|
inline |
Definition at line 2176 of file Player.h.
Referenced by RemoveFromBattlegroundOrBattlefieldRaid().
| PetStable & Player::GetOrInitPetStable | ( | ) |
Definition at line 25938 of file Player.cpp.
References m_petStable.
Referenced by WorldSession::HandleBuyStableSlot(), Unit::InitTamedPet(), and SummonPet().
| OutdoorPvP * Player::GetOutdoorPvP | ( | ) | const |
Definition at line 23397 of file Player.cpp.
References WorldObject::GetZoneId(), and sOutdoorPvPMgr.
Referenced by WorldSession::HandleAreaTriggerOpcode(), and Unit::Kill().
|
inline |
Definition at line 2180 of file Player.h.
Referenced by Group::GroupLoot(), and Group::NeedBeforeGreed().
| Pet * Player::GetPet | ( | ) | const |
Definition at line 20284 of file Player.cpp.
References ObjectAccessor::GetPet(), Unit::GetPetGUID(), ObjectGuid::IsEmpty(), Object::IsInWorld(), and ObjectGuid::IsPet().
Referenced by KillRewarder::_RewardXP(), ActivateTalentGroup(), AddPetAura(), WorldSession::BuildPartyMemberStatsChangedPacket(), BuildPetTalentsInfoData(), Spell::CheckCast(), spell_hun_t9_4p_bonus::CheckProc(), Spell::EffectFeedPet(), Spell::EffectResurrectPet(), Spell::EffectSummonPet(), GetSelectedPlayerPetOrOwn(), GiveLevel(), AuraEffect::HandleAuraModPetTalentsPoints(), spell_hun_masters_call::HandleDummy(), learn_commandscript::HandleLearnAllPetTalentsCommand(), AuraEffect::HandleModPossessPet(), spell_hun_t9_4p_bonus::HandleProc(), WorldSession::HandleRequestPartyMemberStatsOpcode(), WorldSession::HandleRequestPetInfo(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetTalentsCommand(), WorldSession::HandleStablePet(), WorldSession::HandleStableSwapPet(), WorldSession::HandleUnstablePet(), InitStatsForLevel(), Unit::Kill(), LearnPetTalent(), Pet::LoadPetFromDB(), spell_hun_aspect_of_the_beast::OnApply(), spell_hun_aspect_of_the_beast::OnRemove(), PetSpellInitialize(), PrepareGossipMenu(), RemoveArenaSpellCooldowns(), RemovePet(), RemovePetAura(), ResetPetTalents(), DuelResetScript::ResetSpellCooldowns(), SaveToDB(), SendUpdateToOutOfRangeGroupMembers(), SetGameMaster(), TeleportTo(), UnsummonPetTemporaryIfAny(), instance_stratholme::instance_stratholme_InstanceMapScript::Update(), Update(), UpdateArmor(), UpdateAttackPowerAndDamage(), UpdateResistances(), and UpdateStats().
|
inline |
Definition at line 1045 of file Player.h.
Referenced by spell_hun_tame_beast::CheckCast(), Spell::CheckCast(), WorldSession::HandlePetRename(), WorldSession::HandleStablePet(), WorldSession::HandleStableSwapPet(), WorldSession::HandleUnstablePet(), Pet::LoadPetFromDB(), Pet::resetTalentsForAllPetsOf(), Pet::SavePetToDB(), and WorldSession::SendStablePet().
| uint32 Player::GetPhaseMaskForSpawn | ( | ) | const |
Definition at line 24743 of file Player.cpp.
References Unit::GetAuraEffectsByType(), WorldObject::GetPhaseMask(), IsGameMaster(), PHASEMASK_NORMAL, and SPELL_AURA_PHASE.
Referenced by gobject_commandscript::HandleGameObjectAddCommand(), npc_commandscript::HandleNpcAddCommand(), wp_commandscript::HandleWpModifyCommand(), and wp_commandscript::HandleWpShowCommand().
|
inline |
Definition at line 1341 of file Player.h.
Referenced by WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestConfirmAccept(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestPushResult(), SendInitialPacketsAfterAddToMap(), and PlayerMenu::SendQuestGiverQuestDetails().
| float Player::GetPowerRegen | ( | Powers | power | ) | const |
Definition at line 1017 of file StatSystem.cpp.
References AsUnderlyingType(), Object::GetFloatValue(), Unit::HasAuraType(), Unit::IsInCombat(), Unit::IsUnderLastManaUseEffect(), MAX_POWERS, POWER_ENERGY, POWER_HEALTH, POWER_MANA, PowerRegenInfo, SPELL_AURA_INTERRUPT_REGEN, UNIT_FIELD_POWER_REGEN_FLAT_MODIFIER, and UNIT_FIELD_POWER_REGEN_INTERRUPTED_FLAT_MODIFIER.
Referenced by Regenerate().
Definition at line 5936 of file Player.cpp.
References GetSkillMaxRankByPos(), mSkillStatus, and SKILL_DELETED.
Referenced by AddSpell(), learn_commandscript::HandleLearnAllRecipesCommand(), lookup_commandscript::HandleLookupSkillCommand(), misc_commandscript::HandleSetSkillCommand(), and RemoveSpell().
Definition at line 5962 of file Player.cpp.
References GetSkillRankByPos(), mSkillStatus, and SKILL_DELETED.
Referenced by AddSpell(), Spell::EffectLearnSkill(), Spell::EffectMilling(), Spell::EffectOpenLock(), Spell::EffectProspecting(), Spell::EffectSkinning(), lookup_commandscript::HandleLookupSkillCommand(), RemoveSpell(), UpdateCraftSkill(), and UpdateFishingSkill().
| QuestGiverStatus Player::GetQuestDialogStatus | ( | Object * | questGiver | ) |
Definition at line 15796 of file Player.cpp.
References Creature::AI(), GameObject::AI(), CanSeeStartQuest(), CanTakeQuest(), CONDITION_SOURCE_TYPE_QUEST_AVAILABLE, CONFIG_QUEST_LOW_LEVEL_HIDE_DIFF, DIALOG_STATUS_AVAILABLE, DIALOG_STATUS_AVAILABLE_REP, DIALOG_STATUS_INCOMPLETE, DIALOG_STATUS_LOW_LEVEL_AVAILABLE, DIALOG_STATUS_LOW_LEVEL_AVAILABLE_REP, DIALOG_STATUS_LOW_LEVEL_REWARD_REP, DIALOG_STATUS_NONE, DIALOG_STATUS_REWARD, DIALOG_STATUS_REWARD_REP, DIALOG_STATUS_UNAVAILABLE, Object::GetEntry(), Unit::GetLevel(), Quest::GetQuestId(), GetQuestLevel(), GetQuestRewardStatus(), GetQuestStatus(), Object::GetTypeId(), Quest::IsAutoComplete(), Quest::IsDaily(), Quest::IsDailyOrWeekly(), Quest::IsMonthly(), Quest::IsRepeatable(), Quest::IsWeekly(), QUEST_STATUS_COMPLETE, QUEST_STATUS_INCOMPLETE, QUEST_STATUS_NONE, SatisfyQuestLevel(), sConditionMgr, sObjectMgr, sWorld, TC_LOG_ERROR, Object::ToCreature(), Object::ToGameObject(), TYPEID_GAMEOBJECT, and TYPEID_UNIT.
Referenced by WorldSession::HandleQuestgiverStatusQueryOpcode(), and SendQuestGiverStatusMultiple().
Definition at line 1236 of file Player.h.
References Unit::GetLevel(), and Quest::GetQuestLevel().
Referenced by Quest::BuildQuestRewards(), GetQuestDialogStatus(), RewardReputation(), and SendQuestReward().
|
inline |
Definition at line 1474 of file Player.h.
Referenced by CalculateTalentsPoints().
| bool Player::GetQuestRewardStatus | ( | uint32 | quest_id | ) | const |
Definition at line 15639 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(), GetQuestDialogStatus(), GetQuestStatus(), 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(), npc_prof_tailor::npc_prof_tailorAI::OnGossipHello(), npc_prof_alchemy::npc_prof_alchemyAI::OnGossipHello(), AreaTrigger_at_legion_teleporter::OnTrigger(), Satisfy(), and SatisfyQuestExclusiveGroup().
Definition at line 15967 of file Player.cpp.
References Object::GetUInt64Value(), MAX_QUEST_OFFSET, PLAYER_QUEST_LOG_1_1, and QUEST_COUNTS_OFFSET.
Referenced by SendQuestUpdateAddCreatureOrGo(), and SendQuestUpdateAddPlayer().
Definition at line 15957 of file Player.cpp.
References Object::GetUInt32Value(), MAX_QUEST_OFFSET, PLAYER_QUEST_LOG_1_1, and QUEST_ID_OFFSET.
Referenced by Spell::EffectQuestClear(), FindQuestSlot(), WorldSession::HandleQuestLogRemoveQuest(), WorldSession::HandleQuestPOIQuery(), quest_commandscript::HandleQuestRemove(), HasPvPForcingQuest(), HasQuestForGO(), HasQuestForItem(), ItemAddedQuestCheck(), ItemRemovedQuestCheck(), KillCreditGO(), KilledMonsterCredit(), KilledPlayerCredit(), MoneyChanged(), ReputationChanged(), ReputationChanged2(), and TalkedToCreature().
Definition at line 15962 of file Player.cpp.
References Object::GetUInt32Value(), MAX_QUEST_OFFSET, PLAYER_QUEST_LOG_1_1, and QUEST_STATE_OFFSET.
Definition at line 15972 of file Player.cpp.
References Object::GetUInt32Value(), MAX_QUEST_OFFSET, PLAYER_QUEST_LOG_1_1, and QUEST_TIME_OFFSET.
| QuestStatus Player::GetQuestStatus | ( | uint32 | quest_id | ) | const |
Definition at line 15655 of file Player.cpp.
References GetQuestRewardStatus(), m_QuestStatus, QUEST_STATUS_NONE, and QUEST_STATUS_REWARDED.
Referenced by GameObject::ActivateToQuest(), LootItem::AllowedForPlayer(), CanRewardQuest(), npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::CheckEventFail(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::CheckEventFail(), spell_item_demon_broiled_surprise::CheckRequirement(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DamageTaken(), DuelComplete(), Spell::EffectQuestClear(), FailQuest(), GetQuestDialogStatus(), WorldSession::HandleAreaTriggerOpcode(), spell_midsummer_torch_catch::HandleDummy(), spell_item_chicken_cover::HandleDummy(), spell_sindragosa_frost_breath::HandleInfusion(), lookup_commandscript::HandleLookupQuestCommand(), lookup_commandscript::HandleLookupQuestIdCommand(), WorldSession::HandlePushQuestToParty(), quest_commandscript::HandleQuestComplete(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), WorldSession::HandleQuestgiverRequestRewardOpcode(), quest_commandscript::HandleQuestRemove(), quest_commandscript::HandleQuestReward(), spell_festergut_blighted_spores::HandleResidue(), spell_rotface_slime_spray::HandleResidue(), spell_midsummer_fling_torch_catch::HandleScriptEffect(), SpellArea::IsFitToRequirements(), npc_clintar_spirit::npc_clintar_spiritAI::JustDied(), boss_shattered_executioner::JustDied(), npc_a_special_surprise::npc_a_special_surpriseAI::MeetQuestCondition(), spell_brewfest_barker_bunny::OnApply(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipHello(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::OnGossipHello(), go_loosely_turned_soil::OnGossipHello(), go_gauntlet_gate::go_gauntlet_gateAI::OnGossipHello(), npc_erozion::OnGossipHello(), npc_rizzle_sprysprocket::OnGossipHello(), npc_thrall_warchief::npc_thrall_warchiefAI::OnGossipHello(), go_legion_obelisk::go_legion_obeliskAI::OnGossipHello(), go_gilded_brazier::go_gilded_brazierAI::OnGossipHello(), go_tablet_of_the_seven::go_tablet_of_the_sevenAI::OnGossipHello(), go_tele_to_violet_stand::go_tele_to_violet_standAI::OnGossipHello(), go_amberpine_outhouse::go_amberpine_outhouseAI::OnGossipHello(), go_veil_skith_cage::go_veil_skith_cageAI::OnGossipHello(), npc_rizzle_sprysprocket::OnGossipSelect(), AreaTrigger_at_sentry_point::OnTrigger(), at_malfurion_stormrage::OnTrigger(), at_twilight_grove::OnTrigger(), at_ancient_leaf::OnTrigger(), areatrigger_orgrimmar_herald_of_war::OnTrigger(), at_hor_intro_start::OnTrigger(), at_commander_dawnforge::OnTrigger(), AreaTrigger_at_scent_larkorwi::OnTrigger(), AreaTrigger_at_nats_landing::OnTrigger(), AreaTrigger_at_frostgrips_hollow::OnTrigger(), at_bring_your_orphan_to::OnTrigger(), AreaTrigger_at_sholazar_waygate::OnTrigger(), item_captured_frog::OnUse(), npc_doctor::npc_doctorAI::PatientDied(), npc_doctor::npc_doctorAI::PatientSaved(), PrepareQuestMenu(), npc_shenthul::npc_shenthulAI::ReceiveEmote(), npc_chicken_cluck::npc_chicken_cluckAI::ReceiveEmote(), SatisfyQuestDependentBreadcrumbQuests(), SatisfyQuestExclusiveGroup(), SatisfyQuestPreviousQuest(), SatisfyQuestStatus(), boss_shattered_executioner::SetData(), npc_restless_soul::npc_restless_soulAI::SpellHit(), npc_wounded_skirmisher::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), npc_clintar_spirit::npc_clintar_spiritAI::StartEvent(), npc_clintar_spirit::npc_clintar_spiritAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), boss_blood_queen_lana_thel::UpdateAI(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::UpdateAI(), and FollowerAI::UpdateAI().
|
inline |
Definition at line 1399 of file Player.h.
Referenced by AddQuest(), and npc_jungle_punch_target::SpellHit().
Definition at line 14844 of file Player.cpp.
References AddPct(), Unit::GetAuraEffectsByType(), Quest::GetQuestId(), Quest::GetXPReward(), Quest::IsDFQuest(), IsQuestRewarded(), RATE_XP_QUEST, SPELL_AURA_MOD_XP_QUEST_PCT, and sWorld.
Referenced by Quest::BuildQuestRewards(), and RewardQuest().
|
inline |
Definition at line 1622 of file Player.h.
Referenced by Group::Create(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleSetRaidDifficultyOpcode(), ResetInstances(), SaveToDB(), and SendRaidDifficulty().
|
inline |
Definition at line 2006 of file Player.h.
Referenced by Battleground::EndBattleground(), and BattlegroundMgr::SendBattlegroundList().
| float Player::GetRatingBonusValue | ( | CombatRating | cr | ) | const |
Definition at line 5218 of file Player.cpp.
References AsUnderlyingType(), GetRatingMultiplier(), Object::GetUInt32Value(), and PLAYER_FIELD_COMBAT_RATING_1.
Referenced by Unit::CalcArmorReducedDamage(), GetMissPercentageFromDefense(), WorldObject::MagicSpellHitResult(), UpdateBlockPercentage(), UpdateCritPercentage(), UpdateDodgePercentage(), UpdateExpertise(), UpdateMeleeHitChances(), UpdateParryPercentage(), UpdateRangedHitChances(), UpdateSpellCritChance(), and UpdateSpellHitChances().
| float Player::GetRatingMultiplier | ( | CombatRating | cr | ) | const |
Definition at line 5202 of file Player.cpp.
References GtCombatRatingsEntry::Data, GtOCTClassCombatRatingScalarEntry::Data, Unit::GetClass(), Unit::GetLevel(), GT_MAX_LEVEL, GT_MAX_RATING, sGtCombatRatingsStore, and sGtOCTClassCombatRatingScalarStore.
Referenced by ApplyRatingMod(), and GetRatingBonusValue().
Definition at line 25846 of file Player.cpp.
References ReputationMgr::GetReputation(), GetReputationMgr(), and sFactionStore.
Referenced by CanCompleteQuest(), ReputationChanged(), ReputationChanged2(), and SatisfyQuestReputation().
|
inline |
Definition at line 1834 of file Player.h.
Referenced by AddQuest(), CanCompleteQuest(), 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(), quest_commandscript::HandleQuestComplete(), WorldSession::HandleSetFactionAtWar(), WorldSession::HandleSetFactionCheat(), WorldSession::HandleSetFactionInactiveOpcode(), WorldObject::IsValidAttackTarget(), ReputationChanged(), ReputationChanged2(), RewardReputation(), RewardReputation(), Battleground::RewardReputationToTeam(), SatisfyQuestReputation(), SendInitialPacketsBeforeAddToMap(), SetReputation(), and AchievementMgr::UpdateAchievementCriteria().
|
inline |
| float Player::GetReputationPriceDiscount | ( | Creature const * | creature | ) | const |
Definition at line 23150 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 23155 of file Player.cpp.
References FactionTemplateEntry::Faction, GetReputationRank(), and REP_NEUTRAL.
| ReputationRank Player::GetReputationRank | ( | uint32 | faction_id | ) | const |
Definition at line 6305 of file Player.cpp.
References ReputationMgr::GetRank(), GetReputationMgr(), and sFactionStore.
Referenced by BuyItemFromVendorSlot(), CanUseItem(), GetReputationPriceDiscount(), AuraEffect::HandleForceReaction(), spell_item_sunwell_neck< AldorSpellId, ScryersSpellId >::spell_item_sunwell_neck_AuraScript< Aldors, Scryers >::HandleProc(), npc_lokhtos_darkbargainer::npc_lokhtos_darkbargainerAI::OnGossipHello(), npc_prof_blacksmith::npc_prof_blacksmithAI::OnGossipHello(), and ReputationMgr::SetReputation().
Definition at line 15915 of file Player.cpp.
References m_QuestStatus, QUEST_OBJECTIVES_COUNT, Quest::RequiredNpcOrGo, and sObjectMgr.
Referenced by npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DamageTaken().
|
inline |
Definition at line 1032 of file Player.h.
Referenced by GetXPRestBonus(), LoadFromDB(), and Update().
|
inline |
Definition at line 1035 of file Player.h.
References Object::GetByteValue(), PLAYER_BYTES_2, and PLAYER_BYTES_2_OFFSET_REST_STATE.
Referenced by SaveToDB().
| uint32 Player::GetResurrectionSpellId | ( | ) |
Definition at line 23505 of file Player.cpp.
References Unit::GetAuraEffectsByType(), Unit::GetSpellHistory(), Unit::HasAura(), HasItemCount(), HasSpell(), roll_chance_i(), SPELL_AURA_DUMMY, and TC_LOG_ERROR.
Referenced by Unit::Kill(), and setDeathState().
|
inline |
Definition at line 1398 of file Player.h.
Referenced by WorldSession::HandleQueryQuestsCompleted(), and AchievementMgr::UpdateAchievementCriteria().
Definition at line 2195 of file Player.h.
Referenced by spell_dk_death_rune::HandleProc(), and Spell::TakeRunePower().
Definition at line 2194 of file Player.h.
Referenced by Spell::CheckRuneCost(), Spell::EffectActivateRune(), AuraEffect::HandleAuraConvertRune(), spell_dk_blood_tap::spell_dk_blood_tap_SpellScript::HandleEffect(), spell_dk_death_rune::HandleProc(), IsBaseRuneSlotsOnCooldown(), RegenerateAll(), ResyncRunes(), Spell::TakeRunePower(), and Update().
|
inline |
Definition at line 2191 of file Player.h.
Referenced by Spell::EffectActivateRune(), spell_dk_blood_tap::spell_dk_blood_tap_SpellScript::HandleEffect(), and Spell::TakeRunePower().
Definition at line 1695 of file Player.h.
Referenced by SetRuneCooldown(), and Update().
Definition at line 24317 of file Player.cpp.
References Unit::GetAuraEffectsByType(), POWER_RUNE, RUNE_BASE_COOLDOWN, and SPELL_AURA_MOD_POWER_REGEN_PERCENT.
Referenced by UpdateRuneRegen().
|
inline |
Definition at line 2062 of file Player.h.
Referenced by misc_commandscript::HandleSaveCommand().
| ScalingStatDistributionEntry const * Player::GetScalingStatDistributionFor | ( | ItemTemplate const & | itemTemplate | ) | const |
Definition at line 7094 of file Player.cpp.
References ItemTemplate::GetScalingStatDistribution(), and sScalingStatDistributionStore.
Referenced by _ApplyItemBonuses(), and GetScalingStatValuesFor().
| ScalingStatValuesEntry const * Player::GetScalingStatValuesFor | ( | ItemTemplate const & | itemTemplate | ) | const |
Definition at line 7102 of file Player.cpp.
References Unit::GetLevel(), GetScalingStatDistributionFor(), ItemTemplate::GetScalingStatValue(), ScalingStatDistributionEntry::Maxlevel, and sScalingStatValuesStore.
Referenced by _ApplyItemBonuses(), and _ApplyWeaponDamage().
| Player * Player::GetSelectedPlayer | ( | ) | const |
Definition at line 22382 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 22374 of file Player.cpp.
References Unit::GetTarget(), ObjectAccessor::GetUnit(), and ObjectGuid::IsEmpty().
Referenced by ChatHandler::getSelectedUnit(), and LogCommandUsage().
|
inline |
Definition at line 1705 of file Player.h.
Referenced by _LoadHomeBind(), _LoadInventory(), InstanceScript::_SkipCheckRequiredBosses(), ActivateTalentGroup(), ActivateTaxiPathTo(), AddEnchantmentDuration(), BattlegroundQueue::AddGroup(), AddItem(), Guild::AddMember(), InstanceMap::AddPlayerToMap(), AddSpell(), Channel::Announce(), AutoUnequipOffhandIfNeed(), World::BanCharacter(), BindToInstance(), Group::BroadcastPacket(), Group::BroadcastReadyCheck(), SocialMgr::BroadcastToFriendListers(), AchievementMgr::BuildAllDataPacket(), CalendarEvent::BuildCalendarMailBody(), AuctionHouseObject::BuildListAuctionItems(), BuildPlayerRepop(), CanBeGameMaster(), CanJoinToBattleground(), CharacterActionIpLogger::CharacterIPLogAction(), Spell::CheckCast(), AchievementMgr::CompletedAchievement(), ContinueTaxiFlight(), Group::CountTheRoll(), Create(), Guild::Create(), ArenaTeam::DelMember(), Unit::DestroyForPlayer(), Group::Disband(), DuelComplete(), DurabilityRepairAll(), Spell::EffectDiscoverTaxi(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), Spell::EffectEnchantItemTmp(), Spell::EffectPlaySound(), lfg::LFGMgr::FinishDungeon(), ChannelMgr::GetChannel(), ChannelMgr::GetChannelForPlayerByNamePart(), SocialMgr::GetFriendInfo(), GetGameClient(), lfg::LFGMgr::GetLockedDungeons(), GetMapAreaAndZoneString(), getMaxTimer(), ReputationMgr::GetReputationRankName(), GetsRecruitAFriendBonus(), GiveLevel(), Group::GroupLoot(), WorldSession::HandleAcceptGrantLevel(), WorldSession::HandleAcceptTradeOpcode(), account_commandscript::HandleAccountSetAddonCommand(), account_commandscript::HandleAccountSetSecLevelCommand(), BattlegroundAV::HandleAreaTrigger(), BattlegroundAB::HandleAreaTrigger(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleAuctionPlaceBid(), AuraEffect::HandleAuraOpenStable(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleBeginTradeOpcode(), WorldSession::HandleChatIgnoredOpcode(), WorldSession::HandleChatMessage(), cheat_commandscript::HandleExploreCheatCommand(), WorldSession::HandleForceSpeedChangeAck(), ticket_commandscript::HandleGMTicketUnAssignCommand(), WorldSession::HandleGrantLevel(), WorldSession::HandleGroupDeclineOpcode(), group_commandscript::HandleGroupLevelCommand(), group_commandscript::HandleGroupReviveCommand(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleInitiateTradeOpcode(), misc_commandscript::HandleKickPlayerCommand(), lookup_commandscript::HandleLookupPlayerIpCommand(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleMailTakeItem(), Guild::HandleMemberDepositMoney(), modify_commandscript::HandleModifyGenderCommand(), modify_commandscript::HandleModifyMoneyCommand(), modify_commandscript::HandleModifySpellCommand(), misc_commandscript::HandleMuteCommand(), misc_commandscript::HandlePInfoCommand(), Battlefield::HandlePlayerLeaveZone(), OutdoorPvP::HandlePlayerLeaveZone(), WorldSession::HandlePlayerLogin(), misc_commandscript::HandleRepairitemsCommand(), WorldSession::HandleReportPvPAFK(), reset_commandscript::HandleResetSpellsCommand(), misc_commandscript::HandleReviveCommand(), send_commandscript::HandleSendMessageCommand(), misc_commandscript::HandleSummonCommand(), cheat_commandscript::HandleTaxiCheatCommand(), tele_commandscript::HandleTeleGroupCommand(), misc_commandscript::HandleUnmuteCommand(), WorldSession::HandleWhoIsOpcode(), WorldSession::HandleWhoOpcode(), InitStatsForLevel(), InitTalentForLevel(), Channel::Invite(), Battlefield::InvitePlayerToQueue(), Battlefield::InvitePlayerToWar(), IsInstanceLoginGameMasterException(), IsLoading(), IsNeverVisible(), SpellMgr::IsSpellValid(), ObjectMgr::IsVendorItemValid(), IsVisibleGloballyFor(), Channel::JoinChannel(), lfg::LFGMgr::JoinLfg(), Channel::KickOrBan(), LeaveBattleground(), Channel::LeaveChannel(), Channel::List(), LoadFromDB(), Pet::LoadPetFromDB(), WorldSession::moveItems(), Group::NeedBeforeGreed(), Group::OfflineReadyCheck(), npc_wg_spirit_guide::OnGossipHello(), npc_wg_queue::OnGossipHello(), go_tele_to_dalaran_crystal::go_tele_to_dalaran_crystalAI::OnGossipHello(), npc_lokhtos_darkbargainer::npc_lokhtos_darkbargainerAI::OnGossipSelect(), go_amberpine_outhouse::go_amberpine_outhouseAI::OnGossipSelect(), npc_innkeeper::npc_innkeeperAI::OnGossipSelect(), npc_argent_squire_gruntling::npc_argent_squire_gruntlingAI::OnGossipSelect(), OnGossipSelect(), lfg::LFGPlayerScript::OnLogin(), lfg::LFGPlayerScript::OnLogout(), lfg::LFGPlayerScript::OnMapChanged(), BattlefieldWG::OnPlayerLeaveWar(), item_defias_gunpowder::OnUse(), Trinity::LocalizedPacketDo< Builder >::operator()(), Trinity::LocalizedPacketListDo< Builder >::operator()(), CreatureTextLocalizer< Builder >::operator()(), Channel::Password(), InstanceMap::PermBindAllPlayers(), Player(), Battlefield::PlayerAcceptInviteToQueue(), Battlefield::PlayerAcceptInviteToWar(), MapManager::PlayerCannotEnter(), PrepareGossipMenu(), RepopAtGraveyard(), AchievementMgr::ResetAchievementCriteria(), ResurrectPlayer(), RewardHonor(), Satisfy(), SaveToDB(), npc_prof_blacksmith::npc_prof_blacksmithAI::SendActionMenu(), npc_prof_leather::npc_prof_leatherAI::SendActionMenu(), npc_prof_tailor::npc_prof_tailorAI::SendActionMenu(), npc_prof_alchemy::npc_prof_alchemyAI::SendActionMenu(), AuctionHouseMgr::SendAuctionCancelledToBidderMail(), AuctionHouseMgr::SendAuctionExpiredMail(), AuctionHouseMgr::SendAuctionOutbiddedMail(), AuctionHouseMgr::SendAuctionSalePendingMail(), AuctionHouseMgr::SendAuctionSuccessfulMail(), AuctionHouseMgr::SendAuctionWonMail(), CalendarMgr::SendCalendarEvent(), SendCorpseReclaimDelay(), AchievementMgr::SendCriteriaUpdate(), SendEnchantmentDurations(), SendInitialPacketsAfterAddToMap(), lfg::LFGMgr::SendLfgRoleChosen(), Group::SendLootAllPassed(), Group::SendLootRoll(), Group::SendLootRollWon(), Group::SendLootStartRoll(), Group::SendLootStartRollToPlayer(), Channel::SendMemberCount(), SendPreparedQuest(), SendQuestConfirmAccept(), Spell::SendResurrectRequest(), Group::SendUpdateToPlayer(), ReputationMgr::SendVisible(), Map::SendZoneMessage(), TradeData::SetAccepted(), Item::SetEnchantment(), SetGameMaster(), SetGMVisible(), Channel::SetMode(), TradeData::SetMoney(), Channel::SetOwner(), SetRestBonus(), Guild::Member::SetStats(), SpawnCorpseBones(), lfg::LFGMgr::TeleportPlayer(), TeleportTo(), TextEmote(), ToggleAFK(), TradeCancel(), Channel::UnBan(), UnbindInstance(), TradeData::Update(), Pet::Update(), Update(), Map::Update(), AchievementMgr::UpdateAchievementCriteria(), UpdateLocalChannels(), Group::UpdatePlayerOutOfRange(), UpdateSpeakTime(), Whisper(), Unit::Whisper(), Unit::Whisper(), and Whisper().
|
inline |
Definition at line 1340 of file Player.h.
Referenced by SendInitialPacketsAfterAddToMap().
| Item * Player::GetShield | ( | bool | useable = false | ) | const |
Definition at line 9633 of file Player.cpp.
References EQUIPMENT_SLOT_OFFHAND, ItemTemplate::GetClass(), GetItemByPos(), Item::GetTemplate(), GetUseableItemByPos(), INVENTORY_SLOT_BAG_0, Item::IsBroken(), and ITEM_CLASS_ARMOR.
|
overridevirtual |
Implements Unit.
Definition at line 5109 of file Player.cpp.
References Unit::GetStat(), m_auraBaseFlatMod, m_auraBasePctMod, SHIELD_BLOCK_VALUE, and STAT_STRENGTH.
Referenced by UpdateShieldBlockValue().
Definition at line 1791 of file Player.h.
References Object::GetUInt16Value(), PLAYER_SKILL_INFO_1_1, SKILL_ID_FIELD_OFFSET, and SKILL_ID_SHORT_OFFSET.
Referenced by SetSkill().
Definition at line 1797 of file Player.h.
References Object::GetUInt16Value(), PLAYER_SKILL_INFO_1_1, SKILL_MAX_RANK_FIELD_OFFSET, and SKILL_MAX_RANK_SHORT_OFFSET.
Referenced by _SaveSkills(), GetMaxSkillValue(), GetPureMaxSkillValue(), UpdateSkill(), UpdateSkillPro(), UpdateSkillsForLevel(), and UpdateWeaponsSkillsToMaxSkillsForLevel().
Definition at line 1801 of file Player.h.
References Object::GetUInt16Value(), PLAYER_SKILL_INFO_1_1, SKILL_PERM_BONUS_FIELD_OFFSET, and SKILL_PERM_BONUS_SHORT_OFFSET.
Referenced by GetBaseSkillValue(), GetMaxSkillValue(), GetSkillPermBonusValue(), GetSkillValue(), and ModifySkillBonus().
Definition at line 5974 of file Player.cpp.
References GetSkillPermBonusByPos(), mSkillStatus, and SKILL_DELETED.
Referenced by lookup_commandscript::HandleLookupSkillCommand().
Definition at line 1795 of file Player.h.
References Object::GetUInt16Value(), PLAYER_SKILL_INFO_1_1, SKILL_RANK_FIELD_OFFSET, and SKILL_RANK_SHORT_OFFSET.
Referenced by _SaveSkills(), GetBaseSkillValue(), GetPureSkillValue(), GetSkillValue(), SetSkill(), UpdateSkill(), and UpdateSkillPro().
Definition at line 5894 of file Player.cpp.
References GetSkillStepByPos(), mSkillStatus, and SKILL_DELETED.
Referenced by learn_commandscript::HandleLearnAllRecipesCommand(), and misc_commandscript::HandleSetSkillCommand().
Definition at line 1793 of file Player.h.
References Object::GetUInt16Value(), PLAYER_SKILL_INFO_1_1, SKILL_STEP_FIELD_OFFSET, and SKILL_STEP_SHORT_OFFSET.
Referenced by GetSkillStep().
Definition at line 1799 of file Player.h.
References Object::GetUInt16Value(), PLAYER_SKILL_INFO_1_1, SKILL_TEMP_BONUS_FIELD_OFFSET, and SKILL_TEMP_BONUS_SHORT_OFFSET.
Referenced by GetMaxSkillValue(), GetSkillTempBonusValue(), GetSkillValue(), and ModifySkillBonus().
Definition at line 5986 of file Player.cpp.
References GetSkillTempBonusByPos(), mSkillStatus, and SKILL_DELETED.
Referenced by lookup_commandscript::HandleLookupSkillCommand().
Definition at line 5906 of file Player.cpp.
References GetSkillPermBonusByPos(), GetSkillRankByPos(), GetSkillTempBonusByPos(), mSkillStatus, and SKILL_DELETED.
Referenced by _LoadSkills(), AddItemsSetItem(), Group::AddMember(), ApplyEnchantment(), Spell::CanOpenLock(), CanRollForItemInLFG(), CanUseItem(), CanUseItem(), Spell::CheckCast(), Spell::CheckItems(), Unit::GetDefenseSkillValue(), GetExplicitDiscoverySpell(), GetMissPercentageFromDefense(), GetSkillDiscoverySpell(), misc_commandscript::HandleSetSkillCommand(), Item::HasEnchantRequiredSkill(), LearnDefaultSkill(), boss_gloomrel::boss_gloomrelAI::OnGossipHello(), Group::RemoveMember(), Group::ResetMaxEnchantingLevel(), SatisfyQuestSkill(), Spell::SummonGuardian(), UpdateDodgePercentage(), UpdateParryPercentage(), and GameObject::Use().
|
inline |
Definition at line 1019 of file Player.h.
References Object::GetByteValue(), PLAYER_BYTES, and PLAYER_BYTES_OFFSET_SKIN_ID.
Referenced by CreateCorpse(), GetBarberShopCost(), WorldSession::HandleAlterAppearance(), LoadFromDB(), and SaveToDB().
|
inline |
Definition at line 960 of file Player.h.
Referenced by Spell::EffectDuel(), SocialMgr::GetFriendInfo(), WorldSession::HandleAddFriendOpcode(), WorldSession::HandleArenaTeamInviteOpcode(), WorldSession::HandleContactListOpcode(), WorldSession::HandleDelFriendOpcode(), WorldSession::HandleDelIgnoreOpcode(), WorldSession::HandleGroupInviteOpcode(), Guild::HandleInviteMember(), WorldSession::HandleSetContactNotesOpcode(), lfg::LFGMgr::HasIgnore(), Channel::Invite(), and SendInitialPacketsBeforeAddToMap().
| float Player::GetSpellCritFromIntellect | ( | ) | const |
Definition at line 5185 of file Player.cpp.
References GtChanceToSpellCritBaseEntry::Data, GtChanceToSpellCritEntry::Data, Unit::GetClass(), Unit::GetLevel(), Unit::GetStat(), GT_MAX_LEVEL, sGtChanceToSpellCritBaseStore, sGtChanceToSpellCritStore, and STAT_INTELLECT.
Referenced by UpdateSpellCritChance().
|
inline |
|
inline |
Definition at line 1518 of file Player.h.
Referenced by ApplyItemDependentAuras(), GameObject::GetSpellForLock(), AuraEffect::HandleAuraModShapeshift(), AuraEffect::HandleShapeshiftBoosts(), Unit::ModifyAuraState(), ResetSpells(), Unit::SpellDamageBonusDone(), Unit::SpellHealingBonusDone(), and AchievementMgr::UpdateAchievementCriteria().
| bool Player::GetsRecruitAFriendBonus | ( | bool | forXP | ) |
Definition at line 23565 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 SetRestBonus().
Definition at line 22042 of file Player.cpp.
References CLASS_DEATH_KNIGHT, CONFIG_START_DEATH_KNIGHT_PLAYER_LEVEL, CONFIG_START_GM_LEVEL, CONFIG_START_PLAYER_LEVEL, WorldSession::HasPermission(), m_session, rbac::RBAC_PERM_USE_START_GM_LEVEL, and sWorld.
Referenced by Create().
| WorldLocation Player::GetStartPosition | ( | ) | const |
Definition at line 22055 of file Player.cpp.
References ASSERT, CLASS_DEATH_KNIGHT, Unit::GetClass(), Unit::GetRace(), HasSpell(), PlayerInfo::mapId, PlayerInfo::positionX, PlayerInfo::positionY, PlayerInfo::positionZ, sObjectMgr, and WorldLocation::WorldLocation().
Referenced by misc_commandscript::HandleUnstuckCommand().
|
inline |
Definition at line 2163 of file Player.h.
Referenced by Unit::GetPartyMembers(), Group::SameSubGroup(), and SetBattlegroundOrBattlefieldRaid().
|
inline |
Definition at line 1482 of file Player.h.
Referenced by _LoadGlyphs(), _SaveGlyphs(), ActivateTalentGroup(), BuildPlayerTalentsInfoData(), InitTalentForLevel(), LoadFromDB(), OnGossipSelect(), PrepareGossipMenu(), SaveToDB(), and UpdateTalentGroupCount().
|
inline |
|
inline |
Definition at line 1510 of file Player.h.
Referenced by _SaveTalents(), AddTalent(), HasTalent(), and ResetTalents().
|
inline |
Definition at line 1476 of file Player.h.
Referenced by GetNextResetTalentsCost(), and SaveToDB().
|
inline |
Definition at line 1478 of file Player.h.
Referenced by GetNextResetTalentsCost(), and SaveToDB().
|
inline |
Definition at line 1818 of file Player.h.
Referenced by Battleground::_GetPlayerForTeam(), ActivateTaxiPathTo(), GameObject::ActivateToQuest(), BattlegroundQueue::AddGroup(), Arena::AddPlayer(), LootItem::AllowedForPlayer(), SocialMgr::BroadcastToFriendListers(), BuyItemFromVendorSlot(), Group::CanJoinBattlegroundQueue(), OPvPCapturePointZM_Graveyard::CanTalkTo(), CanUseItem(), BattlegroundAV::CheckAchievementCriteriaMeet(), BattlegroundSA::CheckAchievementCriteriaMeet(), BattlegroundAB::CheckAchievementCriteriaMeet(), BattlegroundEY::CheckSomeoneLeftPoint(), CleanupChannels(), AchievementMgr::CompletedAchievement(), ContinueTaxiFlight(), DuelComplete(), BattlegroundAV::EventPlayerAssaultsPoint(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundEY::EventPlayerCapturedFlag(), BattlegroundWS::EventPlayerClickedOnFlag(), BattlegroundAB::EventPlayerClickedOnFlag(), BattlegroundEY::EventPlayerClickedOnFlag(), BattlegroundAV::EventPlayerDefendsPoint(), BattlegroundWS::EventPlayerDroppedFlag(), BattlegroundEY::EventPlayerDroppedFlag(), BattlegroundEY::EventTeamCapturedPoint(), GetBGTeam(), Battleground::GetClosestGraveyard(), BattlegroundAB::GetClosestGraveyard(), BattlegroundAV::GetClosestGraveyard(), BattlegroundEY::GetClosestGraveyard(), BattlegroundIC::GetClosestGraveyard(), BattlegroundWS::GetClosestGraveyard(), SocialMgr::GetFriendInfo(), lfg::LFGMgr::GetLockedDungeons(), Guild::HandleAcceptMember(), WorldSession::HandleAddFriendOpcode(), BattlegroundAV::HandleAreaTrigger(), OutdoorPvPSI::HandleAreaTrigger(), BattlegroundAB::HandleAreaTrigger(), BattlegroundEY::HandleAreaTrigger(), WorldSession::HandleArenaTeamAcceptOpcode(), WorldSession::HandleArenaTeamInviteOpcode(), WorldSession::HandleCalendarEventInvite(), message_commandscript::HandleChannelSetOwnership(), WorldSession::HandleChatMessage(), debug_commandscript::HandleDebugNearGraveyard(), OutdoorPvPSI::HandleDropFlag(), spell_brewfest_mount_transformation::HandleDummy(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleInitiateTradeOpcode(), Guild::HandleInviteMember(), OutdoorPvPHP::HandleKillImpl(), OutdoorPvPNA::HandleKillImpl(), OutdoorPvPZM::HandleKillImpl(), Battleground::HandleKillPlayer(), BattlegroundAV::HandleKillPlayer(), BattlegroundIC::HandleKillPlayer(), BattlegroundAV::HandleKillUnit(), WorldSession::HandleOfferPetitionOpcode(), OutdoorPvPEP::HandlePlayerEnterZone(), OutdoorPvPHP::HandlePlayerEnterZone(), OutdoorPvPNA::HandlePlayerEnterZone(), OutdoorPvPSI::HandlePlayerEnterZone(), OutdoorPvPTF::HandlePlayerEnterZone(), OutdoorPvPZM::HandlePlayerEnterZone(), OutdoorPvPEP::HandlePlayerLeaveZone(), OutdoorPvPHP::HandlePlayerLeaveZone(), WorldSession::HandlePlayerLogin(), BattlegroundAV::HandleQuestComplete(), spell_midsummer_fling_torch_catch::HandleScriptEffect(), WorldSession::HandleSendMail(), WorldSession::HandleWhoOpcode(), Channel::Invite(), IsGroupVisibleFor(), boss_shattered_executioner::JustDied(), Unit::Kill(), LoadFromDB(), AchievementCriteriaData::Meets(), Trinity::MessageDistDeliverer::MessageDistDeliverer(), npc_mageguard_dalaran::MoveInLineOfSight(), achievement_bg_control_all_nodes::OnCheck(), lfg::LFGPlayerScript::OnLogin(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::OnPlayerEnter(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::OnPlayerEnter(), instance_forge_of_souls::instance_forge_of_souls_InstanceScript::OnPlayerEnter(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnPlayerEnter(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::OnPlayerEnter(), instance_nexus::instance_nexus_InstanceMapScript::OnPlayerEnter(), instance_ulduar::instance_ulduar_InstanceMapScript::OnPlayerEnter(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::OnPlayerEnter(), AreaTrigger_at_legion_teleporter::OnTrigger(), at_bring_your_orphan_to::OnTrigger(), npc_rocket_propelled_warhead::PassengerBoarded(), npc_chicken_cluck::npc_chicken_cluckAI::ReceiveEmote(), RepopAtGraveyard(), ReportedAfkBy(), Group::ResetInstances(), RewardHonor(), RewardReputation(), Satisfy(), AchievementMgr::SendAchievementEarned(), World::SendGlobalGMMessage(), WorldSession::SendListInventory(), SendLoot(), Trinity::MessageDistDeliverer::SendPacket(), WorldSession::SendSpiritResurrect(), SendTaxiNodeStatusMultiple(), WorldSession::SendTaxiStatus(), BattlegroundMgr::SendToBattleground(), Map::SendZoneMessage(), Creature::SendZoneUnderAttackMessage(), SetBattlegroundEntryPoint(), boss_shattered_executioner::SetData(), Channel::SetMode(), Channel::SetOwner(), UpdateArea(), UpdateLocalChannels(), BattlegroundEY::UpdatePointStatuses(), and UpdateZone().
|
inline |
Definition at line 1819 of file Player.h.
References ALLIANCE, TEAM_ALLIANCE, and TEAM_HORDE.
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup(), BattlegroundIC::AddPlayer(), Battlefield::AskToLeaveQueue(), BattlegroundSA::CaptureGraveyard(), BattlegroundSA::CheckAchievementCriteriaMeet(), MapInstanced::CreateInstanceForPlayer(), BattlegroundIC::DestroyGate(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundIC::EventPlayerClickedOnFlag(), Battlefield::GetClosestGraveyard(), BattlegroundIC::GetClosestGraveyard(), BattlegroundSA::GetClosestGraveyard(), BattlegroundIC::HandleAreaTrigger(), WorldSession::HandleGrantLevel(), WorldSession::HandleInspectOpcode(), BattlegroundIC::HandleKillPlayer(), BfCapturePoint::HandlePlayerEnter(), OPvPCapturePoint::HandlePlayerEnter(), Battlefield::HandlePlayerEnterZone(), OutdoorPvP::HandlePlayerEnterZone(), BfCapturePoint::HandlePlayerLeave(), OPvPCapturePoint::HandlePlayerLeave(), Battlefield::HandlePlayerLeaveZone(), OutdoorPvP::HandlePlayerLeaveZone(), BattlegroundIC::HandlePlayerResurrect(), BattlefieldWG::HandlePromotion(), spell_item_ultrasafe_transporter::HandleScript(), spell_item_dimensional_ripper_area52::HandleScript(), Battlefield::HasPlayer(), OutdoorPvP::HasPlayer(), Battlefield::InvitePlayerToQueue(), Battlefield::InvitePlayerToWar(), SpellArea::IsFitToRequirements(), BfCapturePoint::IsInsideObjective(), OPvPCapturePoint::IsInsideObjective(), BattlegroundIC::IsSpellAllowed(), AchievementCriteriaData::Meets(), npc_guardian_pavilion::MoveInLineOfSight(), BattlefieldWG::OnCreatureCreate(), npc_wg_spirit_guide::OnGossipHello(), npc_wg_demolisher_engineer::OnGossipSelect(), npc_wg_spirit_guide::OnGossipSelect(), BattlefieldWG::OnPlayerJoinWar(), Battlefield::PlayerAcceptInviteToQueue(), Battlefield::PlayerAcceptInviteToWar(), RewardReputation(), BattlegroundSA::TeleportToEntrancePosition(), BattlegroundSA::TitanRelicActivated(), and OPvPCapturePoint::Update().
|
inline |
Definition at line 1804 of file Player.h.
Referenced by WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAck(), and SaveToDB().
|
inline |
Definition at line 1805 of file Player.h.
Referenced by WorldSession::HandleMoveWorldportAck().
|
inline |
Definition at line 2112 of file Player.h.
Referenced by Pet::SavePetToDB().
| float Player::GetTotalBaseModValue | ( | BaseModGroup | modGroup | ) | const |
Definition at line 5097 of file Player.cpp.
References BASEMOD_END, Object::GetGUID(), WorldObject::GetName(), m_auraBaseFlatMod, m_auraBasePctMod, TC_LOG_ERROR, and Position::ToString().
|
inline |
Definition at line 1014 of file Player.h.
References PLAYED_TIME_TOTAL.
Referenced by misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayedTime(), WorldSession::moveItems(), SendRefundInfo(), and StoreNewItem().
|
inline |
Definition at line 1193 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 23167 of file Player.cpp.
References TradeData::GetTrader(), and m_trade.
Referenced by WorldSession::moveItems().
Definition at line 9567 of file Player.cpp.
References Unit::CanUseAttackType(), GetAttackBySlot(), and GetItemByPos().
Referenced by Aura::GetProcEffectMask(), GetShield(), GetWeaponForAttack(), WorldSession::HandleUseItemOpcode(), HasItemFitToSpellRequirements(), and HasItemTotemCategory().
|
inline |
Definition at line 1472 of file Player.h.
Referenced by AddSpell(), InitTalentForLevel(), RemoveSpell(), and ResetTalents().
| WorldObject * Player::GetViewpoint | ( | ) | const |
Definition at line 24160 of file Player.cpp.
References Object::GetGuidValue(), ObjectAccessor::GetObjectByTypeMask(), ObjectGuid::IsEmpty(), PLAYER_FARSIGHT, 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 9605 of file Player.cpp.
References BASE_ATTACK, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, ItemTemplate::GetClass(), GetItemByPos(), Item::GetTemplate(), GetUseableItemByPos(), INVENTORY_SLOT_BAG_0, Item::IsBroken(), Unit::IsInFeralForm(), ITEM_CLASS_WEAPON, OFF_ATTACK, and RANGED_ATTACK.
Referenced by Unit::CalcArmorReducedDamage(), CheckAmmoCompatibility(), CheckAttackFitToAuraRequirement(), Spell::CheckItems(), SpellInfo::CheckTarget(), Spell::EffectEnchantItemTmp(), Spell::EffectWeaponDmg(), Unit::GetAPMultiplier(), GetBaseWeaponSkillValue(), GetMeleeDamageSchoolMask(), Spell::GetMinMaxRange(), spell_sha_flametongue_weapon::HandleProc(), spell_sha_windfury_weapon::HandleProc(), SetRegularAttackTime(), SetSheath(), Spell::TakeAmmo(), UpdateDamageDoneMods(), UpdateExpertise(), Spell::UpdateSpellCastDataAmmo(), and UpdateWeaponSkill().
|
inline |
Definition at line 1180 of file Player.h.
Referenced by Spell::EffectProficiency().
|
inline |
Definition at line 996 of file Player.h.
References Object::GetUInt32Value(), and PLAYER_XP.
Referenced by GiveXP(), WorldSession::HandlePlayerLogin(), WorldSession::LogoutPlayer(), and SaveToDB().
|
inline |
Definition at line 997 of file Player.h.
References Object::GetUInt32Value(), and PLAYER_NEXT_LEVEL_XP.
Referenced by WorldSession::HandlePlayerLogin(), and WorldSession::LogoutPlayer().
Definition at line 9134 of file Player.cpp.
References Object::GetGUID(), WorldObject::GetName(), GetRestBonus(), SetRestBonus(), TC_LOG_DEBUG, and Position::ToString().
Referenced by GiveXP().
|
static |
Definition at line 6723 of file Player.cpp.
References CHAR_SEL_CHAR_POSITION_XYZ, CHAR_SEL_CHAR_ZONE, CHAR_UPD_ZONE, CharacterDatabase, ObjectGuid::GetCounter(), Field::GetFloat(), Field::GetUInt16(), PHASEMASK_NORMAL, PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), sMapMgr, and sMapStore.
Referenced by Guild::Member::LoadFromDB().
| void Player::GiveLevel | ( | uint8 | level | ) |
Definition at line 2437 of file Player.cpp.
References _ApplyAllLevelScaleItemMods(), ACHIEVEMENT_CRITERIA_TYPE_REACH_LEVEL, PlayerClassLevelInfo::basehealth, PlayerClassLevelInfo::basemana, CharacterDatabase, CONFIG_ALWAYS_MAXSKILL, CONFIG_MAX_RECRUIT_A_FRIEND_BONUS_PLAYER_LEVEL, Unit::GetClass(), Unit::GetCreateHealth(), Unit::GetCreateMana(), Unit::GetCreateStat(), GetGuild(), Unit::GetLevel(), GetPet(), Unit::GetRace(), Unit::GetRaceMask(), GetSession(), GUILD_MEMBER_DATA_LEVEL, Object::HasByteFlag(), WorldPackets::Misc::LevelUpInfo::HealthDelta, InitGlyphsForLevel(), InitTalentForLevel(), InitTaxiNodesForLevel(), WorldPackets::Misc::LevelUpInfo::Level, m_grantableLevels, m_Played_time, MAIL_CREATURE, MAX_STATS, PLAYED_TIME_LEVEL, PLAYER_FIELD_BYTES, PLAYER_FIELD_BYTES_OFFSET_RAF_GRANTABLE_LEVEL, PLAYER_NEXT_LEVEL_XP, POWER_MANA, WorldPackets::Misc::LevelUpInfo::PowerDelta, SendDirectMessage(), MailDraft::SendMailTo(), SendQuestGiverStatusMultiple(), Object::SetByteFlag(), Unit::SetCreateHealth(), Unit::SetCreateMana(), Unit::SetCreateStat(), Unit::SetFullHealth(), Unit::SetFullPower(), Unit::SetLevel(), Object::SetUInt32Value(), sObjectMgr, sScriptMgr, STAT_STRENGTH, WorldPackets::Misc::LevelUpInfo::StatDelta, PlayerLevelInfo::stats, sWorld, UpdateAchievementCriteria(), UpdateAllStats(), UpdateSkillsForLevel(), UpdateWeaponsSkillsToMaxSkillsForLevel(), and WorldPackets::Misc::LevelUpInfo::Write().
Referenced by GiveXP(), and WorldSession::HandleAcceptGrantLevel().
| bool Player::GiveQuestSourceItem | ( | Quest const * | quest | ) |
Definition at line 15572 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 2385 of file Player.cpp.
References GetBattlegroundId(), Unit::GetLevel(), GetsRecruitAFriendBonus(), Object::GetTypeId(), Object::GetUInt32Value(), GetXP(), GetXPRestBonus(), GiveLevel(), Object::HasFlag(), Creature::hasLootRecipient(), Unit::IsAlive(), IsMaxLevel(), PLAYER_FLAGS, PLAYER_FLAGS_NO_XP_GAIN, PLAYER_NEXT_LEVEL_XP, SendLogXPGain(), SetXP(), sScriptMgr, Object::ToCreature(), and TYPEID_UNIT.
Referenced by KillRewarder::_RewardXP(), CheckAreaExplore(), modify_commandscript::HandleModifyXPCommand(), and RewardQuest().
| void Player::GroupEventHappens | ( | uint32 | questId, |
| WorldObject const * | pEventObject | ||
| ) |
Definition at line 16045 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(), SmartScript::ProcessAction(), 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_rinji::npc_rinjiAI::WaypointReached(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::WaypointReached(), npc_gilthares::npc_giltharesAI::WaypointReached(), npc_emily::WaypointReached(), and npc_earthmender_wilda::npc_earthmender_wildaAI::WaypointReached().
| void Player::HandleBaseModFlatValue | ( | BaseModGroup | modGroup, |
| float | amount, | ||
| bool | apply | ||
| ) |
Definition at line 4971 of file Player.cpp.
References BASEMOD_END, FLAT_MOD, Object::GetGUID(), WorldObject::GetName(), m_auraBaseFlatMod, TC_LOG_ERROR, Position::ToString(), and UpdateBaseModGroup().
Referenced by _ApplyItemBonuses(), ApplyEnchantment(), and AuraEffect::HandleShieldBlockValue().
|
protected |
Definition at line 737 of file Player.cpp.
References Unit::_lastLiquid, BREATH_TIMER, DAMAGE_DROWNING, DAMAGE_EXHAUSTED, DAMAGE_LAVA, DISABLED_MIRROR_TIMER, EnvironmentalDamage(), FATIGUE_TIMER, FIRE_TIMER, Unit::GetLevel(), Unit::GetMaxHealth(), getMaxTimer(), Object::HasFlag(), IN_MILLISECONDS, Unit::IsAlive(), m_MirrorTimer, m_MirrorTimerFlags, m_MirrorTimerFlagsLast, MAX_TIMERS, PLAYER_FLAGS, PLAYER_FLAGS_GHOST, RepopAtGraveyard(), SendMirrorTimer(), LiquidTypeEntry::SpellID, StopMirrorTimer(), UNDERWATER_EXIST_TIMERS, UNDERWATER_INDARKWATER, UNDERWATER_INLAVA, UNDERWATER_INWATER, and urand().
Referenced by Update().
| void Player::HandleFall | ( | ) |
Definition at line 24833 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_FALL_WITHOUT_DYING, CHEAT_GOD, DAMAGE_FALL, EnvironmentalDamage(), MovementInfo::fallTime, GetCommandStatus(), GetDebugInfo(), Unit::GetHealth(), Unit::GetMaxHealth(), Position::GetPositionZ(), Unit::GetTotalAuraModifier(), Unit::HasAura(), Unit::HasAuraType(), Unit::IsAlive(), Unit::isDead(), IsGameMaster(), Unit::IsImmunedToDamage(), m_lastFallZ, WorldObject::m_movementInfo, Position::m_positionX, Position::m_positionY, Position::m_positionZ, MovementInfo::pos, RATE_DAMAGE_FALL, SPELL_AURA_FEATHER_FALL, SPELL_AURA_FLY, SPELL_AURA_HOVER, SPELL_AURA_SAFE_FALL, SPELL_SCHOOL_MASK_NORMAL, sWorld, TC_LOG_DEBUG, UpdateAchievementCriteria(), and WorldObject::UpdateGroundPositionZ().
Referenced by WorldSession::HandleMovementOpcode().
| bool Player::HandlePassiveSpellLearn | ( | SpellInfo const * | spellInfo | ) |
Definition at line 3354 of file Player.cpp.
References Unit::AddAura(), SpellInfo::CasterAuraState, SpellInfo::EquippedItemClass, SpellInfo::GetEffects(), Unit::GetShapeshiftForm(), SpellInfo::HasAttribute(), Unit::HasAura(), Unit::HasAuraState(), HasItemFitToSpellRequirements(), SpellInfo::Id, SPELL_ATTR2_NOT_NEED_SHAPESHIFT, SpellInfo::Stances, and UI64LIT.
Referenced by AddSpell().
|
protected |
The player sobers by 1% every 9 seconds.
Definition at line 856 of file Player.cpp.
References GetDrunkValue(), m_drunkTimer, and SetDrunkValue().
Referenced by Update().
| bool Player::Has310Flyer | ( | bool | checkAllSpells, |
| uint32 | excludeSpellId = 0 |
||
| ) |
Definition at line 3634 of file Player.cpp.
References SpellInfo::GetEffects(), m_ExtraFlags, m_spells, PLAYER_EXTRA_HAS_310_FLYER, SetHas310Flyer(), SKILL_MOUNTS, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, and sSpellMgr.
Referenced by AddSpell(), and RemoveSpell().
| bool Player::HasAchieved | ( | uint32 | achievementId | ) | const |
Definition at line 24894 of file Player.cpp.
References AchievementMgr::HasAchieved(), and m_achievementMgr.
Referenced by lfg::LFGMgr::GetLockedDungeons(), npc_tournament_mount::npc_tournament_mountAI::GetPennantSpellId(), spell_gen_pony_mount_check::HandleEffectPeriodic(), npc_chromie_start::npc_chromie_startAI::OnGossipHello(), and Satisfy().
| bool Player::HasActiveSpell | ( | uint32 | spell | ) | const |
Definition at line 3894 of file Player.cpp.
References m_spells, and PLAYERSPELL_REMOVED.
Referenced by WorldSession::HandleCastSpellOpcode().
|
inline |
Definition at line 2101 of file Player.h.
Referenced by WorldSession::HandlePlayerLogin(), LoadCorpse(), LoadFromDB(), ResetSpells(), Pet::resetTalents(), ResetTalents(), and Pet::resetTalentsForAllPetsOf().
|
inline |
Definition at line 991 of file Player.h.
References PLAYER_EXTRA_GRANTED_LEVELS_FROM_RAF.
|
inline |
Definition at line 1743 of file Player.h.
References MAPID_INVALID.
Referenced by SmartAI::EndPath(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleQueryCorpseLocation(), MapManager::PlayerCannotEnter(), and WorldSession::SendSpiritResurrect().
|
inline |
Definition at line 1395 of file Player.h.
References HasEnoughMoney().
Referenced by HasEnoughMoney().
|
inline |
Definition at line 1394 of file Player.h.
Referenced by BuyItemFromVendorSlot(), CanCompleteQuest(), CanRewardQuest(), DurabilityRepair(), DurabilityRepairAll(), WorldSession::HandleAcceptTradeOpcode(), WorldSession::HandleAlterAppearance(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleBuybackItem(), WorldSession::HandleBuyBankSlotOpcode(), Guild::HandleBuyBankTab(), WorldSession::HandleBuyStableSlot(), WorldSession::HandleMailTakeItem(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandleSendMail(), Guild::HandleSetEmblem(), WorldSession::HandleTalentWipeConfirmOpcode(), OnGossipSelect(), AuctionHouseMgr::PendingAuctionAdd(), AuctionHouseMgr::PendingAuctionProcess(), ProcessCastaction(), ProcessUnlearnAction(), TradeData::SetMoney(), and Trainer::Trainer::TeachSpell().
| bool Player::HasFreeBattlegroundQueueId | ( | ) | const |
Definition at line 23087 of file Player.cpp.
References BATTLEGROUND_QUEUE_NONE, m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by Group::CanJoinBattlegroundQueue(), WorldSession::HandleBattlemasterJoinArena(), and WorldSession::HandleBattlemasterJoinOpcode().
| bool Player::HasGemWithLimitCategoryEquipped | ( | uint32 | limitCategory, |
| uint32 | count, | ||
| uint8 | except_slot = NULL_SLOT |
||
| ) | const |
Definition at line 9899 of file Player.cpp.
References EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Item::GetEnchantmentId(), Item::GetGemCountWithLimitCategory(), GetItemByPos(), ItemTemplate::GetSocketColor(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, and PRISMATIC_ENCHANTMENT_SLOT.
Referenced by CanEquipUniqueItem().
Definition at line 9761 of file Player.cpp.
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, BANK_SLOT_ITEM_END, BANK_SLOT_ITEM_START, CURRENCYTOKEN_SLOT_END, EQUIPMENT_SLOT_START, GetBagByPos(), Item::GetCount(), Object::GetEntry(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, Item::IsInTrade(), and KEYRING_SLOT_START.
Referenced by BuyItemFromVendorSlot(), CanCompleteRepeatableQuest(), Spell::CheckItems(), spell_dk_raise_dead::CheckReagents(), lfg::LFGMgr::GetLockedDungeons(), GetResurrectionSpellId(), 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 23402 of file Player.cpp.
References EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, EQUIPMENT_SLOT_START, EQUIPMENT_SLOT_TABARD, SpellInfo::EquippedItemClass, SpellInfo::EquippedItemSubClassMask, SpellInfo::GetEffects(), GetUseableItemByPos(), INVENTORY_SLOT_BAG_0, Item::IsFitToSpellRequirements(), SpellInfo::IsPassive(), ITEM_CLASS_ARMOR, ITEM_CLASS_WEAPON, ITEM_SUBCLASS_ARMOR_BUCKLER, ITEM_SUBCLASS_ARMOR_SHIELD, 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 9834 of file Player.cpp.
References EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Item::GetCount(), Object::GetEntry(), Item::GetGemCountWithID(), ItemTemplate::GetGemProperties(), GetItemByPos(), ItemTemplate::GetSocketColor(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, and sObjectMgr.
Referenced by CanEquipUniqueItem().
| bool Player::HasItemTotemCategory | ( | uint32 | TotemCategory | ) | const |
Definition at line 10000 of file Player.cpp.
References CURRENCYTOKEN_SLOT_END, EQUIPMENT_SLOT_START, GetBagByPos(), Item::GetTemplate(), ItemTemplate::GetTotemCategory(), GetUseableItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, IsTotemCategoryCompatiableWith(), and KEYRING_SLOT_START.
Referenced by Spell::CheckItems().
| bool Player::HasItemWithLimitCategoryEquipped | ( | uint32 | limitCategory, |
| uint32 | count, | ||
| uint8 | except_slot = NULL_SLOT |
||
| ) | const |
Definition at line 9872 of file Player.cpp.
References EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Item::GetCount(), GetItemByPos(), ItemTemplate::GetItemLimitCategory(), Item::GetTemplate(), and INVENTORY_SLOT_BAG_0.
Referenced by CanEquipUniqueItem().
|
inline |
Definition at line 993 of file Player.h.
References PLAYER_EXTRA_LEVEL_BOOSTED.
|
inline |
Definition at line 2143 of file Player.h.
Referenced by WorldSession::HandleInstanceLockResponse(), isAllowedToLoot(), WorldSession::LogoutPlayer(), and Update().
| bool Player::HasPvPForcingQuest | ( | ) | const |
Definition at line 16700 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(), and UpdateZone().
| bool Player::HasQuestForGO | ( | int32 | goId | ) | const |
Definition at line 23201 of file Player.cpp.
References QuestStatusData::CreatureOrGOCount, GetDifficultyID(), GetGroup(), WorldObject::GetMap(), GetQuestSlotQuestId(), Quest::IsAllowedInRaid(), m_QuestStatus, MAX_QUEST_LOG_SIZE, QUEST_OBJECTIVES_COUNT, QUEST_STATUS_INCOMPLETE, Quest::RequiredNpcOrGo, Quest::RequiredNpcOrGoCount, sObjectMgr, and QuestStatusData::Status.
Referenced by GameObject::ActivateToQuest().
| bool Player::HasQuestForItem | ( | uint32 | itemId, |
| uint32 | excludeQuestId = 0, |
||
| bool | turnIn = false |
||
| ) | const |
Definition at line 16468 of file Player.cpp.
References ASSERT_NOTNULL, GetDifficultyID(), GetGroup(), GetItemCount(), WorldObject::GetMap(), ItemTemplate::GetMaxCount(), GetQuestSlotQuestId(), InBattleground(), Quest::IsAllowedInRaid(), QuestStatusData::ItemCount, Quest::ItemDrop, Quest::ItemDropQuantity, m_QuestStatus, MAX_QUEST_LOG_SIZE, QUEST_ITEM_DROP_COUNT, QUEST_ITEM_OBJECTIVES_COUNT, QUEST_STATUS_COMPLETE, QUEST_STATUS_INCOMPLETE, Quest::RequiredItemCount, Quest::RequiredItemId, sObjectMgr, and QuestStatusData::Status.
Referenced by LootItem::AllowedForPlayer(), LootTemplate::LootGroup::HasQuestDropForPlayer(), LootTemplate::HasQuestDropForPlayer(), and RewardQuest().
|
inline |
Definition at line 989 of file Player.h.
References PLAYER_EXTRA_HAS_RACE_CHANGED.
|
inline |
| bool Player::HasSkill | ( | uint32 | skill | ) | const |
Definition at line 5885 of file Player.cpp.
References mSkillStatus, and SKILL_DELETED.
Referenced by _LoadSkills(), AddSpell(), LootItem::AllowedForPlayer(), CanUseItem(), WorldSession::HandleChatMessage(), lookup_commandscript::HandleLookupSkillCommand(), LearnDefaultSkills(), npc_engineering_tele_trinket::npc_engineering_tele_trinketAI::OnGossipHello(), npc_prof_leather::npc_prof_leatherAI::OnGossipHello(), npc_prof_tailor::npc_prof_tailorAI::OnGossipHello(), and npc_prof_alchemy::npc_prof_alchemyAI::OnGossipHello().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 3881 of file Player.cpp.
References m_spells, and PLAYERSPELL_REMOVED.
Referenced by AddSpell(), LootItem::AllowedForPlayer(), CanCreateExtraItems(), CanCreatePerfectItem(), CanFlyInZone(), npc_engineering_tele_trinket::npc_engineering_tele_trinketAI::CanLearn(), CanRollForItemInLFG(), CanUseItem(), Spell::EffectCastButtons(), GetExplicitDiscoverySpell(), Trinity::Helpers::Entity::GetPlayerSpecialization(), GetResurrectionSpellId(), GetSkillDiscoverySpell(), Trainer::Trainer::GetSpellState(), GetStartPosition(), learn_commandscript::HandleLearnCommand(), lookup_commandscript::HandleLookupSpellCommand(), lookup_commandscript::HandleLookupSpellIdCommand(), AuraEffect::HandleShapeshiftBoosts(), learn_commandscript::HandleUnLearnCommand(), npc_prof_alchemy::npc_prof_alchemyAI::HasAlchemySpell(), HasDiscoveredAllSpells(), HasDiscoveredAnySpell(), npc_prof_tailor::npc_prof_tailorAI::HasTailorSpell(), npc_prof_blacksmith::npc_prof_blacksmithAI::HasWeaponSub(), IsActionButtonDataValid(), Trainer::Trainer::IsTrainerValidForPlayer(), LearnQuestRewardedSpells(), LearnTalent(), boss_gloomrel::boss_gloomrelAI::OnGossipHello(), npc_prof_blacksmith::npc_prof_blacksmithAI::OnGossipHello(), npc_prof_leather::npc_prof_leatherAI::OnGossipHello(), npc_prof_tailor::npc_prof_tailorAI::OnGossipHello(), npc_prof_alchemy::npc_prof_alchemyAI::OnGossipHello(), ProcessCastaction(), RemoveSpell(), npc_prof_blacksmith::npc_prof_blacksmithAI::SendActionMenu(), SendUnlearnSpells(), SpellHistory::StartCooldown(), TeleportTo(), and PlayerAI::VerifySpellCast().
|
static |
Definition at line 20922 of file Player.cpp.
References Spell::m_appliedMods, and SpellModifier::ownerAura.
Referenced by ApplySpellMod().
| bool Player::HasSummonPending | ( | ) | const |
Definition at line 23277 of file Player.cpp.
References GameTime::GetGameTime(), and m_summon_expire.
Referenced by Spell::CheckCast(), and SendSummonRequestFrom().
Definition at line 3888 of file Player.cpp.
References GetTalentMap(), and PLAYERSPELL_REMOVED.
Referenced by ActivateTalentGroup(), BuildPlayerTalentsInfoData(), and LearnTalent().
| bool Player::HasTitle | ( | CharTitlesEntry const * | title | ) | const |
Definition at line 24286 of file Player.cpp.
References HasTitle(), and CharTitlesEntry::MaskID.
| bool Player::HasTitle | ( | uint32 | bitIndex | ) | const |
Definition at line 24276 of file Player.cpp.
References Object::HasFlag(), MAX_TITLE_INDEX, and PLAYER__FIELD_KNOWN_TITLES.
Referenced by character_commandscript::HandleCharacterTitlesCommand(), lookup_commandscript::HandleLookupTitleCommand(), titles_commandscript::HandleTitlesRemoveCommand(), titles_commandscript::HandleTitlesSetMaskCommand(), HasTitle(), LoadFromDB(), and AchievementCriteriaData::Meets().
| bool Player::HaveAtClient | ( | Object const * | u | ) | const |
Definition at line 22065 of file Player.cpp.
References Object::GetGUID(), and m_clientGUIDs.
Referenced by Group::AddMember(), WorldObjectChangeAccumulator::BuildPacket(), WorldObject::DestroyForNearbyPlayers(), Map::SendInitSelf(), Trinity::MessageDistDeliverer::SendPacket(), Trinity::MessageDistDelivererToHostile::SendPacket(), Object::SendUpdateToPlayer(), Unit::SetOwnerGUID(), UpdateVisibilityOf(), and UpdateVisibilityOf().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 1255 of file Player.cpp.
References CheckOutdoorsAuraRequirements(), Unit::Heartbeat(), and SendUpdateToOutOfRangeGroupMembers().
| bool Player::InArena | ( | ) | const |
Definition at line 23123 of file Player.cpp.
References GetBattleground(), and Battleground::isArena().
Referenced by CreateCorpse(), WorldSession::HandleArenaTeamLeaveOpcode(), WorldSession::HandleReclaimCorpse(), WorldSession::HandleUseItemOpcode(), lfg::LFGMgr::JoinLfg(), achievement_arena_kills::OnCheck(), RewardHonor(), and ToggleAFK().
|
inline |
Definition at line 1969 of file Player.h.
Referenced by CanUninviteFromGroup(), Spell::CheckCast(), SpellInfo::CheckLocation(), CreateCorpse(), AuraEffect::HandleAuraModEffectImmunity(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleGroupDisbandOpcode(), WorldSession::HandleGroupRaidConvertOpcode(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandleReclaimCorpse(), HasQuestForItem(), lfg::LFGMgr::JoinLfg(), Unit::Kill(), RemovePet(), ResurrectPlayer(), RewardHonor(), TeleportTo(), ToggleAFK(), and UpdateZone().
| bool Player::InBattlegroundQueue | ( | bool | ignoreArena = false | ) | const |
Definition at line 23032 of file Player.cpp.
References BATTLEGROUND_AA, BATTLEGROUND_QUEUE_NONE, m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by Group::CanJoinBattlegroundQueue(), WorldSession::HandleBattlemasterJoinOpcode(), and lfg::LFGMgr::JoinLfg().
| bool Player::InBattlegroundQueueForBattlegroundQueueType | ( | BattlegroundQueueTypeId | bgQueueTypeId | ) | const |
Definition at line 23062 of file Player.cpp.
References GetBattlegroundQueueIndex(), and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by Group::CanJoinBattlegroundQueue().
| void Player::IncompleteQuest | ( | uint32 | quest_id | ) |
Definition at line 14832 of file Player.cpp.
References FindQuestSlot(), MAX_QUEST_LOG_SIZE, QUEST_STATE_COMPLETE, QUEST_STATUS_INCOMPLETE, RemoveQuestSlotState(), and SetQuestStatus().
Referenced by ItemRemovedQuestCheck(), MoneyChanged(), ReputationChanged(), and ReputationChanged2().
| void Player::IncreaseResetTalentsCostAndCounters | ( | uint32 | lastResetTalentsCost | ) |
Definition at line 3724 of file Player.cpp.
References _talentMgr, ACHIEVEMENT_CRITERIA_TYPE_GOLD_SPENT_FOR_TALENTS, ACHIEVEMENT_CRITERIA_TYPE_NUMBER_OF_TALENT_RESETS, GameTime::GetGameTime(), PlayerTalentInfo::ResetTalentsCost, PlayerTalentInfo::ResetTalentsTime, and UpdateAchievementCriteria().
Referenced by WorldSession::HandleTalentWipeConfirmOpcode().
| void Player::InitDataForForm | ( | bool | reapplyMods = false | ) |
Definition at line 21286 of file Player.cpp.
References BASE_ATTACK, BASE_ATTACK_TIME, SpellShapeshiftFormEntry::CombatRoundTime, Unit::GetShapeshiftForm(), OFF_ATTACK, RANGED_ATTACK, Unit::SetAttackTime(), SetRegularAttackTime(), sSpellShapeshiftFormStore, UpdateAttackPowerAndDamage(), Unit::UpdateDisplayPower(), and UpdateEquipSpellsAtFormChange().
Referenced by AuraEffect::HandleAuraModShapeshift(), and InitStatsForLevel().
| void Player::InitDisplayIds | ( | ) |
Definition at line 21310 of file Player.cpp.
References PlayerInfo::displayId_f, PlayerInfo::displayId_m, GENDER_FEMALE, GENDER_MALE, Unit::GetClass(), Object::GetGUID(), WorldObject::GetName(), GetNativeGender(), Unit::GetRace(), Unit::SetDisplayId(), Unit::SetNativeDisplayId(), sObjectMgr, TC_LOG_ERROR, and Position::ToString().
Referenced by Create(), modify_commandscript::HandleModifyGenderCommand(), reset_commandscript::HandleResetStatsOrLevelHelper(), and LoadFromDB().
| void Player::InitGlyphsForLevel | ( | ) |
Definition at line 24231 of file Player.cpp.
References Unit::GetLevel(), PLAYER_GLYPHS_ENABLED, SetGlyphSlot(), Object::SetUInt32Value(), and sGlyphSlotStore.
Referenced by Create(), GiveLevel(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsCommand(), and LoadFromDB().
| void Player::InitPrimaryProfessions | ( | ) |
Definition at line 22331 of file Player.cpp.
References CONFIG_MAX_PRIMARY_TRADE_SKILL, SetFreePrimaryProfessions(), and sWorld.
Referenced by Create(), and LoadFromDB().
| void Player::InitPvP | ( | ) |
Definition at line 21634 of file Player.cpp.
References Object::HasFlag(), PLAYER_FLAGS, PLAYER_FLAGS_IN_PVP, and UpdatePvP().
Referenced by LoadFromDB().
| void Player::InitRunes | ( | ) |
Definition at line 24470 of file Player.cpp.
References CLASS_DEATH_KNIGHT, Unit::GetClass(), Runes::lastUsedRune, m_runes, MAX_RUNES, NUM_RUNE_TYPES, PLAYER_RUNE_REGEN_1, RUNE_BLOOD, runeSlotTypes, Runes::runeState, SetBaseRune(), SetCurrentRune(), Object::SetFloatValue(), SetLastRuneGraceTimer(), SetRuneConvertAura(), SetRuneCooldown(), Runes::SetRuneState(), and SetRuneTimer().
Referenced by Create(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsCommand(), and LoadFromDB().
| void Player::InitStatsForLevel | ( | bool | reapplyMods = false | ) |
Definition at line 2582 of file Player.cpp.
References _ApplyAllStatBonuses(), _RemoveAllStatBonuses(), AsUnderlyingType(), BASE_ATTACK, BASE_ATTACK_TIME, PlayerClassLevelInfo::basehealth, PlayerClassLevelInfo::basemana, CONFIG_MAX_PLAYER_LEVEL, DEFAULT_MAX_LEVEL, Unit::GetClass(), Unit::GetCreatePowerValue(), Unit::GetLevel(), GetMaxLevelForExpansion(), Unit::GetMaxPower(), GetPet(), Unit::GetPower(), Unit::GetRace(), GetSession(), InitDataForForm(), Unit::InitStatBuffMods(), Unit::m_createStats, MAX_ATTACK, MAX_COMBAT_RATING, MAX_POWERS, MAX_SPELL_SCHOOL, MAX_STATS, PLAYER_ALLOW_ONLY_ABILITY, PLAYER_BLOCK_PERCENTAGE, PLAYER_CRIT_PERCENTAGE, PLAYER_DODGE_PERCENTAGE, PLAYER_FIELD_BYTES2, PLAYER_FIELD_COMBAT_RATING_1, PLAYER_FIELD_MAX_LEVEL, PLAYER_FIELD_MOD_DAMAGE_DONE_NEG, PLAYER_FIELD_MOD_DAMAGE_DONE_PCT, PLAYER_FIELD_MOD_DAMAGE_DONE_POS, PLAYER_FIELD_MOD_HEALING_DONE_POS, PLAYER_FIELD_MOD_TARGET_PHYSICAL_RESISTANCE, PLAYER_FIELD_MOD_TARGET_RESISTANCE, PLAYER_FLAGS, PLAYER_FLAGS_AFK, PLAYER_FLAGS_DND, PLAYER_FLAGS_GHOST, PLAYER_FLAGS_GM, PLAYER_NEXT_LEVEL_XP, PLAYER_NO_REAGENT_COST_1, PLAYER_OFFHAND_CRIT_PERCENTAGE, PLAYER_PARRY_PERCENTAGE, PLAYER_RANGED_CRIT_PERCENTAGE, PLAYER_SHIELD_BLOCK, PLAYER_SPELL_CRIT_PERCENTAGE1, POWER_ENERGY, POWER_FOCUS, POWER_HAPPINESS, POWER_MANA, POWER_RAGE, POWER_RUNIC_POWER, Object::RemoveFlag(), Unit::RemovePvpFlag(), Unit::RemoveUnitFlag(), Unit::RemoveVisFlag(), Unit::SetArmor(), Unit::SetAttackPower(), Unit::SetAttackPowerModNeg(), Unit::SetAttackPowerModPos(), Unit::SetAttackPowerMultiplier(), Unit::SetCreateHealth(), Unit::SetCreateMana(), Unit::SetCreateStat(), Object::SetFloatValue(), Unit::SetFullHealth(), Unit::SetFullPower(), Object::SetInt32Value(), Unit::SetMaxHealth(), Unit::SetMaxPower(), Unit::SetModCastingSpeed(), Unit::SetMountDisplayId(), SetObjectScale(), Unit::SetPower(), Unit::SetRangedAttackPower(), Unit::SetRangedAttackPowerModNeg(), Unit::SetRangedAttackPowerModPos(), Unit::SetRangedAttackPowerMultiplier(), Unit::SetResistance(), Unit::SetStat(), Object::SetUInt32Value(), Unit::SetUnitFlag(), Unit::SetUnitFlag2(), sObjectMgr, SPELL_SCHOOL_HOLY, SPELL_SCHOOL_NORMAL, STAT_AGILITY, STAT_STRENGTH, PlayerLevelInfo::stats, sWorld, UNIT_BYTE2_FLAG_FFA_PVP, UNIT_BYTE2_FLAG_SANCTUARY, UNIT_FIELD_AURASTATE, UNIT_FIELD_BASEATTACKTIME, UNIT_FIELD_MAXDAMAGE, UNIT_FIELD_MAXOFFHANDDAMAGE, UNIT_FIELD_MAXRANGEDDAMAGE, UNIT_FIELD_MINDAMAGE, UNIT_FIELD_MINOFFHANDDAMAGE, UNIT_FIELD_MINRANGEDDAMAGE, UNIT_FIELD_POWER_COST_MODIFIER, UNIT_FIELD_POWER_COST_MULTIPLIER, UNIT_FIELD_RESISTANCEBUFFMODSNEGATIVE, UNIT_FIELD_RESISTANCEBUFFMODSPOSITIVE, UNIT_FLAG2_REGENERATE_POWER, UNIT_FLAG_CONFUSED, UNIT_FLAG_DISARMED, UNIT_FLAG_FLEEING, UNIT_FLAG_IMMUNE_TO_NPC, UNIT_FLAG_IMMUNE_TO_PC, UNIT_FLAG_IN_COMBAT, UNIT_FLAG_LOOTING, UNIT_FLAG_MOUNT, UNIT_FLAG_NON_ATTACKABLE, UNIT_FLAG_NOT_ATTACKABLE_1, UNIT_FLAG_ON_TAXI, UNIT_FLAG_PACIFIED, UNIT_FLAG_PET_IN_COMBAT, UNIT_FLAG_PLAYER_CONTROLLED, UNIT_FLAG_REMOVE_CLIENT_CONTROL, UNIT_FLAG_SILENCED, UNIT_FLAG_SKINNABLE, UNIT_FLAG_STUNNED, UNIT_FLAG_UNINTERACTIBLE, UNIT_VIS_FLAGS_ALL, and UpdateSkillsForLevel().
Referenced by Create(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsCommand(), and LoadFromDB().
| void Player::InitTalentForLevel | ( | ) |
Definition at line 2542 of file Player.cpp.
References CalculateTalentsPoints(), CONFIG_MIN_DUALSPEC_LEVEL, Unit::GetLevel(), GetSession(), GetTalentGroupsCount(), GetUsedTalentCount(), rbac::RBAC_PERM_SKIP_CHECK_MORE_TALENTS_THAN_ALLOWED, ResetTalents(), SendTalentsInfoData(), SetActiveTalentGroup(), SetFreeTalentPoints(), and SetTalentGroupsCount().
Referenced by ActivateTalentGroup(), Create(), GiveLevel(), group_commandscript::HandleGroupLevelCommand(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsCommand(), LoadFromDB(), and RewardQuest().
|
inline |
Definition at line 964 of file Player.h.
References Unit::GetClass(), Unit::GetLevel(), Unit::GetRace(), and PlayerTaxi::InitTaxiNodesForLevel().
Referenced by Create(), GiveLevel(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsCommand(), and LoadFromDB().
| bool Player::inRandomLfgDungeon | ( | ) | const |
Definition at line 23954 of file Player.cpp.
References Map::GetDifficultyID(), Object::GetGUID(), Map::GetId(), WorldObject::GetMap(), and sLFGMgr.
|
inline |
Definition at line 974 of file Player.h.
References PLAYER_EXTRA_ACCEPT_WHISPERS.
Referenced by WorldSession::HandleChatMessage(), message_commandscript::HandleWhispersCommand(), and Whisper().
Definition at line 6011 of file Player.cpp.
References ACTION_BUTTON_C, ACTION_BUTTON_CMACRO, ACTION_BUTTON_EQSET, ACTION_BUTTON_ITEM, ACTION_BUTTON_MACRO, ACTION_BUTTON_SPELL, Object::GetGUID(), WorldObject::GetName(), HasSpell(), MAX_ACTION_BUTTON_ACTION_VALUE, MAX_ACTION_BUTTONS, sObjectMgr, sSpellMgr, TC_LOG_DEBUG, TC_LOG_ERROR, and Position::ToString().
Referenced by AddActionButton().
| bool Player::IsActiveQuest | ( | uint32 | quest_id | ) | const |
Definition at line 14411 of file Player.cpp.
References m_QuestStatus.
Referenced by quest_commandscript::HandleQuestAdd(), WorldSession::HandleQuestConfirmAccept(), and spell_quest_portal_with_condition::HandleScriptEffect().
|
static |
Definition at line 20784 of file Player.cpp.
References Aura::GetCharges(), SpellInfo::GetDuration(), SpellInfo::HasAttribute(), SpellInfo::IsAffectedBySpellMod(), Aura::IsUsingCharges(), Spell::m_appliedMods, SpellModifier::op, SpellModifier::ownerAura, SPELL_ATTR0_CU_CAN_CRIT, SPELLMOD_CRITICAL_CHANCE, and SPELLMOD_DURATION.
Referenced by ApplySpellMod().
|
inline |
Definition at line 953 of file Player.h.
References Object::HasFlag(), PLAYER_FLAGS, and PLAYER_FLAGS_AFK.
Referenced by WorldSession::BuildPartyMemberStatsChangedPacket(), GetChatTag(), SocialMgr::GetFriendInfo(), WorldSession::HandleChatMessage(), WorldSession::HandleRequestPartyMemberStatsOpcode(), Battlefield::PlayerAcceptInviteToWar(), WorldSession::SendBfEntered(), ToggleAFK(), and Whisper().
| bool Player::isAllowedToLoot | ( | Creature const * | creature | ) | const |
Definition at line 17609 of file Player.cpp.
References FREE_FOR_ALL, GetGroup(), Object::GetGUID(), Group::GetLootMethod(), Creature::GetLootRecipient(), Creature::GetLootRecipientGroup(), Creature::GetLootRecipientGUID(), GROUP_LOOT, Loot::hasItemFor(), Loot::hasItemForAll(), Loot::hasOverThresholdItem(), HasPendingBind(), Creature::IsDamageEnoughForLootingAndReward(), Unit::isDead(), ObjectGuid::IsEmpty(), Loot::isLooted(), Creature::loot, LOOT_SKINNING, Loot::loot_type, MASTER_LOOT, NEED_BEFORE_GREED, ROUND_ROBIN, and Loot::roundRobinPlayer.
Referenced by Unit::BuildValuesUpdate().
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
Definition at line 22095 of file Player.cpp.
References duel, DUEL_STATE_CHALLENGED, Unit::IsAlwaysDetectableFor(), IsGroupVisibleFor(), and Object::ToPlayer().
| bool Player::IsAtGroupRewardDistance | ( | WorldObject const * | pRewardSource | ) | const |
Definition at line 23639 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::_RewardGroup(), SmartAI::EndPath(), GroupEventHappens(), Group::GroupLoot(), OutdoorPvP::HandleKill(), Battleground::HandleKillPlayer(), WorldSession::HandleLootMoneyOpcode(), Group::MasterLoot(), Group::NeedBeforeGreed(), RewardPlayerAndGroupAtEvent(), and Group::UpdateLooterGuid().
| bool Player::IsAtRecruitAFriendDistance | ( | WorldObject const * | pOther | ) | const |
Definition at line 23654 of file Player.cpp.
References CONFIG_MAX_RECRUIT_A_FRIEND_DISTANCE, GetCorpse(), WorldObject::GetDistance(), Unit::IsAlive(), WorldObject::IsInMap(), and sWorld.
Referenced by GetsRecruitAFriendBonus().
|
static |
Definition at line 9696 of file Player.cpp.
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, and INVENTORY_SLOT_BAG_START.
Referenced by _LoadInventory(), _StoreItem(), Item::CanBeTraded(), CanStoreItem_InSpecificSlot(), CanUnequipItem(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleDestroyItemOpcode(), and SwapItem().
|
inlinestatic |
Definition at line 1098 of file Player.h.
References IsBankPos().
Referenced by _LoadInventory(), Spell::EffectSummonChangeItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), list_commandscript::HandleListItemCommand(), WorldSession::HandleSwapInvItemOpcode(), WorldSession::HandleSwapItem(), IsBankPos(), SplitItem(), and SwapItem().
Definition at line 9685 of file Player.cpp.
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, BANK_SLOT_ITEM_END, BANK_SLOT_ITEM_START, and INVENTORY_SLOT_BAG_0.
| bool Player::IsBaseRuneSlotsOnCooldown | ( | RuneType | runeType | ) | const |
Definition at line 24495 of file Player.cpp.
References GetBaseRune(), GetRuneCooldown(), and MAX_RUNES.
|
inline |
Definition at line 1806 of file Player.h.
Referenced by group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleMovementOpcode(), misc_commandscript::HandleRecallCommand(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleGroupCommand(), npc_mageguard_dalaran::MoveInLineOfSight(), ResurrectUsingRequestData(), SaveToDB(), and Transport::UpdatePassengerPositions().
|
inline |
Definition at line 1808 of file Player.h.
Referenced by WorldSession::HandleMoveWorldportAck(), LeaveBattleground(), WorldSession::LogoutPlayer(), Map::RemoveAllPlayers(), SaveToDB(), and UpdateLocalChannels().
|
inline |
Definition at line 1807 of file Player.h.
Referenced by WorldSession::HandleMoveTeleportAck(), and TeleportTo().
|
inlineprivate |
Definition at line 2515 of file Player.h.
Referenced by TeleportTo().
| bool Player::IsDailyQuestDone | ( | uint32 | quest_id | ) |
Definition at line 22927 of file Player.cpp.
References Object::GetUInt32Value(), PLAYER_FIELD_DAILY_QUESTS_1, PLAYER_MAX_DAILY_QUESTS, and sObjectMgr.
|
inline |
Definition at line 1976 of file Player.h.
References Unit::HasAura().
Referenced by Group::CanJoinBattlegroundQueue(), WorldSession::HandleBattleFieldPortOpcode(), and WorldSession::HandleBattlemasterJoinOpcode().
|
inline |
Definition at line 972 of file Player.h.
References Object::HasFlag(), PLAYER_FLAGS, and PLAYER_FLAGS_DEVELOPER.
Referenced by GetChatTag(), and misc_commandscript::HandleDevCommand().
|
inline |
Definition at line 954 of file Player.h.
References Object::HasFlag(), PLAYER_FLAGS, and PLAYER_FLAGS_DND.
Referenced by WorldSession::BuildPartyMemberStatsChangedPacket(), GetChatTag(), SocialMgr::GetFriendInfo(), WorldSession::HandleChatMessage(), WorldSession::HandleRequestPartyMemberStatsOpcode(), and Whisper().
|
inlinestatic |
Definition at line 1095 of file Player.h.
References IsEquipmentPos().
Referenced by _LoadInventory(), BuyItemFromVendorSlot(), CanUnequipItem(), DurabilityRepair(), Spell::EffectSummonChangeItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoEquipItemSlotOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleCancelTempEnchantmentOpcode(), WorldSession::HandleDestroyItemOpcode(), list_commandscript::HandleListItemCommand(), IsEquipmentPos(), SplitItem(), and SwapItem().
Definition at line 9676 of file Player.cpp.
References EQUIPMENT_SLOT_END, INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, and INVENTORY_SLOT_BAG_START.
|
inline |
Definition at line 976 of file Player.h.
References PLAYER_EXTRA_GM_ON.
Referenced by Group::_homebindIfInstance(), Unit::Attack(), BindToInstance(), GameObject::BuildValuesUpdate(), Unit::BuildValuesUpdate(), BuyItemFromVendorSlot(), CombatManager::CanBeginCombat(), InstanceMap::CannotEnter(), Spell::CheckCast(), CheckInstanceValidity(), SpellInfo::CheckTarget(), instance_violet_hold::instance_violet_hold_InstanceMapScript::CheckWipe(), AchievementMgr::CompletedAchievement(), GetPhaseMaskForSpawn(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleChatMessage(), HandleFall(), WorldSession::HandleGroupInviteOpcode(), group_commandscript::HandleGroupListCommand(), mmaps_commandscript::HandleMmapPathCommand(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLogin(), WorldSession::HandleSendMail(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleCommand(), WorldObject::IsValidAssistTarget(), WorldObject::IsValidAttackTarget(), MailSender::MailSender(), boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::MoveInLineOfSight(), npc_mageguard_dalaran::MoveInLineOfSight(), npc_reliquary_combat_trigger::MoveInLineOfSight(), npc_barnes::OnGossipHello(), npc_jaina_proudmoore::npc_jaina_proudmooreAI::OnGossipHello(), npc_thrall::npc_thrallAI::OnGossipHello(), npc_chromie_start::npc_chromie_startAI::OnGossipHello(), at_ancient_leaf::OnTrigger(), at_hor_intro_start::OnTrigger(), at_hor_waves_restarter::OnTrigger(), at_hor_impenetrable_door::OnTrigger(), at_hor_shadow_throne::OnTrigger(), at_hor_uther_quel_delar_start::OnTrigger(), at_tyrannus_event_starter::OnTrigger(), at_kelthuzad_center::OnTrigger(), at_skadi_gaunlet::OnTrigger(), at_trigger_the_beast_movement::OnTrigger(), at_the_beast_room::OnTrigger(), Trinity::PlayerAtMinimumRangeAway::operator()(), InstanceMap::PermBindAllPlayers(), MapManager::PlayerCannotEnter(), Unit::ProcessTerrainStatusUpdate(), AchievementMgr::ResetAchievementCriteria(), Satisfy(), WorldSession::SendListInventory(), Spell::SendLoot(), MailDraft::SendMailTo(), TeleportTo(), at_icc_nerubar_broodkeeper::TryHandleOnce(), instance_stratholme::instance_stratholme_InstanceMapScript::Update(), AchievementMgr::UpdateAchievementCriteria(), generic_vehicleAI_toc5::generic_vehicleAI_toc5AI::UpdateAI(), boss_warrior_toc5::boss_warrior_toc5AI::UpdateAI(), boss_hunter_toc5::boss_hunter_toc5AI::UpdateAI(), UpdateHomebindTime(), UpdatePvPState(), and Whisper().
|
inline |
Definition at line 977 of file Player.h.
Referenced by WorldSession::HandleChatMessage().
|
inline |
Definition at line 980 of file Player.h.
References PLAYER_EXTRA_GM_CHAT.
Referenced by GetChatTag().
|
inline |
Definition at line 984 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 2311 of file Player.cpp.
References CONFIG_GROUP_VISIBILITY, GetTeam(), IsInSameGroupWith(), IsInSameRaidWith(), and sWorld.
Referenced by IsAlwaysDetectableFor().
|
inlineprivate |
Definition at line 2517 of file Player.h.
Referenced by TeleportTo(), and Update().
| bool Player::isHonorOrXPTarget | ( | Unit const * | victim | ) | const |
Definition at line 23548 of file Player.cpp.
References CONFIG_MIN_CREATURE_SCALED_XP_RATIO, Trinity::XP::GetGrayLevel(), Unit::GetLevel(), and Object::ToCreature().
Referenced by AuraEffect::HandleChannelDeathItem(), spell_warl_drain_soul::HandleTick(), achievement_killed_exp_or_honor_target::OnCheck(), and RaiseDeadCheck::operator()().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 1894 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 632 of file Player.cpp.
References Unit::isTargetableForAttack().
Referenced by EnvironmentalDamage().
| bool Player::IsInAreaTriggerRadius | ( | AreaTriggerEntry const * | trigger | ) | const |
Definition at line 2208 of file Player.cpp.
References AreaTriggerEntry::BoxHeight, AreaTriggerEntry::BoxLength, AreaTriggerEntry::BoxWidth, AreaTriggerEntry::BoxYaw, AreaTriggerEntry::ContinentID, WorldObject::GetDistance(), WorldLocation::GetMapId(), Position::IsWithinBox(), AreaTriggerEntry::Pos, AreaTriggerEntry::Radius, DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.
Referenced by WorldSession::HandleAreaTriggerOpcode(), BattlegroundWS::HandleFlagRoomCapturePoint(), and Update().
| bool Player::IsInSameGroupWith | ( | Player const * | p | ) | const |
Definition at line 2322 of file Player.cpp.
References GetGroup(), and Group::SameSubGroup().
Referenced by IsGroupVisibleFor(), and Unit::IsInPartyWith().
| bool Player::IsInSameRaidWith | ( | Player const * | p | ) | const |
Definition at line 2329 of file Player.cpp.
References GetGroup().
Referenced by Unit::BuildValuesUpdate(), Spell::CheckCast(), Object::GetUpdateFieldData(), WorldSession::HandleGrantLevel(), WorldSession::HandleQuestConfirmAccept(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), IsGroupVisibleFor(), Unit::IsInRaidWith(), and GameObject::Use().
|
private |
Definition at line 18861 of file Player.cpp.
References CanBeGameMaster(), GetSession(), LANG_INSTANCE_LOGIN_GAMEMASTER_EXCEPTION, and ChatHandler::SendSysMessage().
Referenced by LoadFromDB().
|
inlinestatic |
Definition at line 1093 of file Player.h.
References IsInventoryPos().
Referenced by _LoadInventory(), BuyItemFromVendorSlot(), Spell::EffectSummonChangeItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleGuildBankSwapItems(), list_commandscript::HandleListItemCommand(), IsInventoryPos(), SplitItem(), and SwapItem().
Definition at line 9663 of file Player.cpp.
References CURRENCYTOKEN_SLOT_END, INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, KEYRING_SLOT_START, and NULL_SLOT.
| bool Player::IsInvitedForBattlegroundInstance | ( | uint32 | instanceId | ) | const |
Definition at line 23115 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 23054 of file Player.cpp.
References Player::BgBattlegroundQueueID_Rec::invitedToInstance, m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by WorldSession::HandleBattleFieldPortOpcode(), and WorldSession::LogoutPlayer().
| bool Player::IsInWhisperWhiteList | ( | ObjectGuid | guid | ) |
Definition at line 26170 of file Player.cpp.
References WhisperList.
Referenced by WorldSession::HandleChatMessage().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 16881 of file Player.cpp.
References GetSession(), and WorldSession::PlayerLoading().
Referenced by InstanceMap::CannotEnter(), Spell::SendCastResult(), SendInitialSpells(), and Spell::SendMountResult().
| bool Player::IsMaxLevel | ( | ) | const |
Definition at line 2537 of file Player.cpp.
References Unit::GetLevel(), Object::GetUInt32Value(), and PLAYER_FIELD_MAX_LEVEL.
Referenced by CheckAreaExplore(), Quest::GetRewOrReqMoney(), GiveXP(), WorldSession::HandleArenaTeamInviteOpcode(), WorldSession::HandleOfferPetitionOpcode(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandleSignPetition(), RewardQuest(), SendQuestReward(), and SetRestBonus().
| bool Player::IsMirrorTimerActive | ( | MirrorTimerType | type | ) | const |
Definition at line 732 of file Player.cpp.
References getMaxTimer(), and m_MirrorTimer.
Referenced by lfg::LFGMgr::TeleportPlayer().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 22070 of file Player.cpp.
References GetSession(), and WorldObject::IsNeverVisible().
| bool Player::IsOutdoorPvPActive | ( | ) | const |
Definition at line 6933 of file Player.cpp.
References Unit::HasInvisibilityAura(), Unit::HasStealthAura(), Unit::HasUnitMovementFlag(), Unit::IsAlive(), Unit::IsInFlight(), Unit::IsPvP(), and MOVEMENTFLAG_FLYING.
Referenced by OPvPCapturePoint::HandleCustomSpell(), OutdoorPvP::HandleKill(), and OPvPCapturePoint::Update().
| bool Player::IsPetNeedBeTemporaryUnsummoned | ( | ) | const |
Definition at line 25202 of file Player.cpp.
References Unit::IsAlive(), Object::IsInWorld(), and Unit::IsMounted().
Referenced by Pet::LoadPetFromDB(), and ResummonPetTemporaryUnSummonedIfAny().
| bool Player::IsQuestRewarded | ( | uint32 | quest_id | ) | const |
Definition at line 22369 of file Player.cpp.
References m_RewardedQuests.
Referenced by GetQuestRewardStatus(), GetQuestXPReward(), and SatisfyQuestDependentPreviousQuests().
|
inline |
Definition at line 1549 of file Player.h.
Referenced by Spell::EffectResurrect(), Spell::EffectResurrectNew(), SetResurrectRequestData(), and npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI().
|
inline |
| bool Player::IsSpellFitByClassAndRace | ( | uint32 | spell_id | ) | const |
Definition at line 23172 of file Player.cpp.
References Unit::GetClass(), Unit::GetClassMask(), Unit::GetRace(), Unit::GetRaceMask(), GetSkillRaceClassInfo(), and sSpellMgr.
Referenced by Trainer::Trainer::GetSpellState(), ResetSpells(), and Trainer::Trainer::SendSpells().
|
inline |
Definition at line 982 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 24262 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 13211 of file Player.cpp.
References CanTitanGrip(), EQUIPMENT_SLOT_MAINHAND, ItemTemplate::GetInventoryType(), GetItemByPos(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, and INVTYPE_2HWEAPON.
Referenced by CanEquipItem(), and FindEquipSlot().
| bool Player::IsUseEquipedWeapon | ( | bool | mainhand | ) | const |
Definition at line 13141 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 23949 of file Player.cpp.
References Object::GetGUID(), lfg::LFG_STATE_NONE, and sLFGMgr.
Referenced by Group::CanJoinBattlegroundQueue(), and WorldSession::HandleBattlemasterJoinArena().
| bool Player::IsUsingTwoHandedWeaponInOneHand | ( | ) | const |
Definition at line 13217 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 1363 of file Player.h.
References GENDER_FEMALE.
Referenced by BuildEnumData(), Create(), ConditionMgr::isConditionTypeValid(), and LoadFromDB().
|
inline |
Definition at line 1100 of file Player.h.
References IsValidPos().
Referenced by WorldSession::HandleAutoStoreBagItemOpcode(), misc_commandscript::HandleItemMoveCommand(), WorldSession::HandleSplitItemOpcode(), WorldSession::HandleSwapInvItemOpcode(), WorldSession::HandleSwapItem(), and IsValidPos().
Definition at line 9707 of file Player.cpp.
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, BANK_SLOT_ITEM_END, BANK_SLOT_ITEM_START, EQUIPMENT_SLOT_END, GetBagByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, KEYRING_SLOT_END, KEYRING_SLOT_START, NULL_BAG, and NULL_SLOT.
| bool Player::IsVisibleGloballyFor | ( | Player const * | player | ) | const |
Definition at line 22110 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().
Definition at line 16062 of file Player.cpp.
References CanCompleteQuest(), CompleteQuest(), GetQuestSlotQuestId(), Quest::HasSpecialFlag(), QuestStatusData::ItemCount, m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, QUEST_DEFAULT_SAVE_TYPE, QUEST_ITEM_OBJECTIVES_COUNT, QUEST_SPECIAL_FLAGS_DELIVER, QUEST_STATUS_INCOMPLETE, Quest::RequiredItemCount, Quest::RequiredItemId, sObjectMgr, QuestStatusData::Status, and UpdateVisibleGameobjectsOrSpellClicks().
Referenced by Spell::EffectSummonChangeItem(), EquipNewItem(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleBuybackItem(), MoveItemToInventory(), StoreNewItem(), and SwapItem().
Definition at line 16099 of file Player.cpp.
References GetItemCount(), GetQuestSlotQuestId(), Quest::HasSpecialFlag(), IncompleteQuest(), QuestStatusData::ItemCount, m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, QUEST_DEFAULT_SAVE_TYPE, QUEST_ITEM_OBJECTIVES_COUNT, QUEST_SPECIAL_FLAGS_DELIVER, Quest::RequiredItemCount, Quest::RequiredItemId, sObjectMgr, and UpdateVisibleGameobjectsOrSpellClicks().
Referenced by DestroyItem(), DestroyItemCount(), DestroyItemCount(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleSellItemOpcode(), MoveItemFromInventory(), and SwapItem().
| void Player::JoinedChannel | ( | Channel * | c | ) |
Definition at line 4856 of file Player.cpp.
References m_channels.
Referenced by Channel::JoinChannel().
| void Player::KillCreditGO | ( | uint32 | entry, |
| ObjectGuid | guid = ObjectGuid::Empty |
||
| ) |
Definition at line 16271 of file Player.cpp.
References CanCompleteQuest(), CompleteQuest(), QuestStatusData::CreatureOrGOCount, GetQuestSlotQuestId(), Quest::HasSpecialFlag(), m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, QUEST_DEFAULT_SAVE_TYPE, QUEST_OBJECTIVES_COUNT, QUEST_SPECIAL_FLAGS_CAST, QUEST_STATUS_INCOMPLETE, Quest::RequiredNpcOrGo, Quest::RequiredNpcOrGoCount, SendQuestUpdateAddCreatureOrGo(), sObjectMgr, and QuestStatusData::Status.
Referenced by quest_commandscript::HandleQuestComplete().
| void Player::KilledMonster | ( | CreatureTemplate const * | cInfo, |
| ObjectGuid | guid | ||
| ) |
Definition at line 16141 of file Player.cpp.
References ASSERT, ObjectGuid::Empty, CreatureTemplate::Entry, CreatureTemplate::KillCredit, KilledMonsterCredit(), and MAX_KILL_CREDIT.
Referenced by KillRewarder::_RewardKillCredit(), and quest_commandscript::HandleQuestComplete().
| void Player::KilledMonsterCredit | ( | uint32 | entry, |
| ObjectGuid | guid = ObjectGuid::Empty |
||
| ) |
Definition at line 16153 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_KILL_CREATURE, ACHIEVEMENT_TIMED_TYPE_CREATURE, CanCompleteQuest(), CompleteQuest(), QuestStatusData::CreatureOrGOCount, Map::GetCreature(), GetDifficultyID(), Object::GetEntry(), GetGroup(), WorldObject::GetMap(), GetQuestSlotQuestId(), Quest::HasSpecialFlag(), Quest::IsAllowedInRaid(), ObjectGuid::IsEmpty(), m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, QUEST_DEFAULT_SAVE_TYPE, QUEST_OBJECTIVES_COUNT, QUEST_SPECIAL_FLAGS_KILL, QUEST_STATUS_INCOMPLETE, Quest::RequiredNpcOrGo, Quest::RequiredNpcOrGoCount, SendQuestUpdateAddCreatureOrGo(), sObjectMgr, StartTimedAchievement(), QuestStatusData::Status, and UpdateAchievementCriteria().
Referenced by Spell::EffectKillCreditPersonal(), OutdoorPvPSI::HandleAreaTrigger(), OutdoorPvPNA::HandleKillImpl(), spell_borean_tundra_neural_needle::HandleWhisper(), KilledMonster(), npc_claw::OnGossipHello(), npc_colonel_jules::npc_colonel_julesAI::OnGossipHello(), go_veil_skith_cage::go_veil_skith_cageAI::OnGossipHello(), RewardPlayerAndGroupAtEvent(), and npc_jungle_punch_target::SpellHit().
| void Player::KilledPlayerCredit | ( | uint16 | count = 1 | ) |
Definition at line 16217 of file Player.cpp.
References GetDifficultyID(), GetGroup(), WorldObject::GetMap(), GetQuestSlotQuestId(), WorldObject::GetZoneId(), Quest::GetZoneOrSort(), Quest::HasSpecialFlag(), Quest::IsAllowedInRaid(), KilledPlayerCreditForQuest(), m_QuestStatus, MAX_QUEST_LOG_SIZE, QUEST_SPECIAL_FLAGS_PLAYER_KILL, QUEST_STATUS_INCOMPLETE, sObjectMgr, and QuestStatusData::Status.
Referenced by KillRewarder::_RewardPlayer().
Definition at line 16246 of file Player.cpp.
References CanCompleteQuest(), CompleteQuest(), Quest::GetPlayersSlain(), Quest::GetQuestId(), m_QuestStatus, m_QuestStatusSave, QuestStatusData::PlayerCount, QUEST_DEFAULT_SAVE_TYPE, and SendQuestUpdateAddPlayer().
Referenced by quest_commandscript::HandleQuestComplete(), and KilledPlayerCredit().
| void Player::KillPlayer | ( | ) |
Definition at line 4462 of file Player.cpp.
References Object::ApplyModFlag(), CalculateCorpseReclaimDelay(), CORPSE, corpseReclaimDelay, WorldLocation::GetMapId(), Unit::GetMotionMaster(), WorldObject::GetTransport(), Unit::HasAuraType(), IN_MILLISECONDS, Unit::IsFlying(), m_deathTimer, MINUTE, MotionMaster::MoveFall(), PLAYER_FIELD_BYTE_RELEASE_TIMER, PLAYER_FIELD_BYTES, Unit::ReplaceAllDynamicFlags(), SendCorpseReclaimDelay(), setDeathState(), Unit::SetRooted(), sMapStore, SPELL_AURA_PREVENT_RESURRECTION, StopMirrorTimers(), UNIT_DYNFLAG_NONE, UpdateCorpseReclaimDelay(), and UpdateObjectVisibility().
Referenced by WorldSession::HandleMovementOpcode(), WorldSession::HandleRepopRequest(), WorldSession::LogoutPlayer(), and Update().
| void Player::LearnCustomSpells | ( | ) |
Definition at line 22698 of file Player.cpp.
References AddSpell(), ASSERT, CONFIG_START_ALL_SPELLS, PlayerInfo::customSpells, Unit::GetClass(), Object::GetGUID(), WorldObject::GetName(), Unit::GetRace(), Object::IsInWorld(), LearnSpell(), sObjectMgr, sWorld, TC_LOG_DEBUG, and Position::ToString().
Referenced by Create(), learn_commandscript::HandleLearnAllDefaultCommand(), LoadFromDB(), and ResetSpells().
Definition at line 22733 of file Player.cpp.
References CLASS_DEATH_KNIGHT, CONFIG_ALWAYS_MAXSKILL, SkillRaceClassInfoEntry::Flags, Unit::GetClass(), Unit::GetLevel(), Unit::GetMaxSkillValueForLevel(), Unit::GetRace(), GetSkillRaceClassInfo(), GetSkillRangeType(), GetSkillValue(), IsProfessionOrRidingSkill(), SetSkill(), SKILL_FIST_WEAPONS, SKILL_FLAG_ALWAYS_MAX_VALUE, SKILL_LOCKPICKING, SKILL_RANGE_LANGUAGE, SKILL_RANGE_LEVEL, SKILL_RANGE_MONO, SKILL_RANGE_RANK, SKILL_UNARMED, SkillRaceClassInfoEntry::SkillTierID, sSkillTiersStore, sWorld, TC_LOG_DEBUG, and SkillTiersEntry::Value.
Referenced by AddSpell(), and LearnDefaultSkills().
| void Player::LearnDefaultSkills | ( | ) |
Definition at line 22718 of file Player.cpp.
References ASSERT, Unit::GetClass(), Unit::GetRace(), HasSkill(), LearnDefaultSkill(), PlayerInfo::skills, and sObjectMgr.
Referenced by Create(), learn_commandscript::HandleLearnAllDefaultCommand(), LoadFromDB(), and ResetSpells().
| void Player::LearnPetTalent | ( | ObjectGuid | petGuid, |
| uint32 | talentId, | ||
| uint32 | talentRank | ||
| ) |
Definition at line 25021 of file Player.cpp.
References CreatureTemplate::family, Creature::GetCreatureTemplate(), Pet::GetFreeTalentPoints(), Object::GetGUID(), GetPet(), Pet::HasSpell(), Pet::learnSpell(), MAX_PET_TALENT_RANK, MAX_TALENT_RANK, TalentTabEntry::PetTalentMask, CreatureFamilyEntry::PetTalentType, TalentEntry::PrereqRank, TalentEntry::PrereqTalent, sCreatureFamilyStore, Pet::SetFreeTalentPoints(), TalentEntry::SpellRank, sTalentStore, sTalentTabStore, TalentEntry::TabID, TC_LOG_DEBUG, TC_LOG_ERROR, and TalentEntry::TierID.
Referenced by WorldSession::HandleLearnPreviewTalentsPet(), and WorldSession::HandlePetLearnTalent().
| void Player::LearnQuestRewardedSpells | ( | ) |
Definition at line 22837 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 22787 of file Player.cpp.
References WorldObject::CastSpell(), SpellEffectInfo::Effect, EFFECT_0, EFFECT_1, SpellInfo::GetEffect(), SpellInfo::GetEffects(), Quest::GetRewSpell(), Quest::GetSrcSpell(), HasSpell(), Unit::RemoveAurasDueToSpell(), SPELL_EFFECT_LEARN_SPELL, SPELL_EFFECT_TRADE_SKILL, SpellInfo::SpellLevel, sSpellMgr, and SpellEffectInfo::TriggerSpell.
Definition at line 22850 of file Player.cpp.
References AddSpell(), Unit::GetClassMask(), Unit::GetRaceMask(), GetSkillLineAbilitiesBySkill(), Object::IsInWorld(), LearnSpell(), RemoveSpell(), SKILL_LINE_ABILITY_LEARNED_ON_SKILL_LEARN, SKILL_LINE_ABILITY_LEARNED_ON_SKILL_VALUE, and sSpellMgr.
Referenced by _LoadSkills(), SetSkill(), and UpdateSkillPro().
Definition at line 3381 of file Player.cpp.
References AddSpell(), Object::IsInWorld(), LearnSpell(), m_spells, SendDirectMessage(), WorldPackets::Spells::LearnedSpell::SpellID, sSpellMgr, and WorldPackets::Spells::LearnedSpell::Write().
Referenced by ActivateTalentGroup(), AddSpell(), Spell::EffectLearnSpell(), learn_commandscript::HandleLearnAllGMCommand(), learn_commandscript::HandleLearnAllLangCommand(), learn_commandscript::HandleLearnAllTalentsCommand(), learn_commandscript::HandleLearnCommand(), learn_commandscript::HandleLearnDebugSpellsCommand(), learn_commandscript::HandleLearnMySpellsCommand(), learn_commandscript::HandleLearnSkillRecipesHelper(), spell_gen_profession_research::HandleScript(), spell_item_book_of_glyph_mastery::HandleScript(), LearnCustomSpells(), LearnSkillRewardedSpells(), LearnSpell(), LearnTalent(), Trainer::Trainer::TeachSpell(), and UpdateCraftSkill().
Definition at line 24924 of file Player.cpp.
References AddTalent(), TalentTabEntry::ClassMask, GetActiveTalentGroup(), Unit::GetClassMask(), GetFreeTalentPoints(), HasSpell(), HasTalent(), LearnSpell(), MAX_TALENT_RANK, TalentEntry::PrereqRank, TalentEntry::PrereqTalent, SetFreeTalentPoints(), TalentEntry::SpellRank, sTalentStore, sTalentTabStore, TalentEntry::TabID, TC_LOG_DEBUG, TC_LOG_ERROR, and TalentEntry::TierID.
Referenced by WorldSession::HandleLearnPreviewTalents(), and WorldSession::HandleLearnTalentOpcode().
|
static |
Definition at line 20956 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 21952 of file Player.cpp.
References BG_DESERTION_TYPE_LEAVE_BG, WorldObject::CastSpell(), CHAR_INS_DESERTER_TRACK, CharacterDatabase, CONFIG_BATTLEGROUND_CAST_DESERTER, CONFIG_BATTLEGROUND_TRACK_DESERTERS, DELAYED_SPELL_CAST_DESERTER, GetBattleground(), Object::GetGUID(), GetSession(), Battleground::GetStatus(), Battleground::isBattleground(), IsBeingTeleportedFar(), rbac::RBAC_PERM_NO_BATTLEGROUND_DESERTER_DEBUFF, Battleground::RemovePlayerAtLeave(), ScheduleDelayedOperation(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), STATUS_IN_PROGRESS, STATUS_WAIT_JOIN, and sWorld.
Referenced by misc_commandscript::HandleAppearCommand(), BattlegroundAV::HandleAreaTrigger(), BattlegroundAB::HandleAreaTrigger(), AuraEffect::HandleAuraDummy(), WorldSession::HandleBattlefieldLeaveOpcode(), misc_commandscript::HandleSummonCommand(), TeleportTo(), and ToggleAFK().
| void Player::LeaveLFGChannel | ( | ) |
Definition at line 4953 of file Player.cpp.
References m_channels.
| void Player::LeftChannel | ( | Channel * | c | ) |
Definition at line 4861 of file Player.cpp.
References m_channels.
Referenced by Channel::KickOrBan(), Channel::LeaveChannel(), and UpdateLocalChannels().
| void Player::LoadActions | ( | PreparedQueryResult | result | ) |
Definition at line 25833 of file Player.cpp.
References _LoadActions(), and SendActionButtons().
| void Player::LoadCorpse | ( | PreparedQueryResult | result | ) |
Definition at line 17808 of file Player.cpp.
References _corpseLocation, Object::ApplyModByteFlag(), AT_LOGIN_RESURRECT, WorldLocation::GetMapId(), HasAtLoginFlag(), Unit::IsAlive(), PLAYER_FIELD_BYTE_RELEASE_TIMER, PLAYER_FIELD_BYTES, PLAYER_FIELD_BYTES_OFFSET_FLAGS, RemoveAtLoginFlag(), ResurrectPlayer(), sMapStore, SpawnCorpseBones(), and WorldLocation::WorldRelocate().
Referenced by WorldSession::HandlePlayerLogin().
| bool Player::LoadFromDB | ( | ObjectGuid | guid, |
| CharacterDatabaseQueryHolder const & | holder | ||
| ) |
Definition at line 16886 of file Player.cpp.
References Object::_Create(), _LoadActions(), _LoadArenaTeamInfo(), _LoadAuras(), _LoadBGData(), _LoadBoundInstances(), _LoadDailyQuestStatus(), _LoadDeclinedNames(), _LoadEquipmentSets(), _LoadGlyphAuras(), _LoadGlyphs(), _LoadGroup(), _LoadHomeBind(), Object::_LoadIntoDataField(), _LoadInventory(), _LoadMail(), _LoadMonthlyQuestStatus(), _LoadPetStable(), _LoadQuestStatus(), _LoadQuestStatusRewarded(), _LoadRandomBGStatus(), _LoadSeasonalQuestStatus(), _LoadSkills(), _LoadSpells(), _LoadTalents(), _LoadWeeklyQuestStatus(), AddBattlegroundQueueId(), Transport::AddPassenger(), Battleground::AddPlayer(), PlayerTaxi::AddTaxiDestination(), ASSERT, AT_LOGIN_RENAME, BATTLEGROUND_TYPE_NONE, BGData::bgInstanceID, BattlegroundMgr::BGQueueTypeId(), BGData::bgTypeID, Transport::CalculatePassengerPosition(), Map::CANNOT_ENTER_DIFFICULTY_UNAVAILABLE, Map::CANNOT_ENTER_INSTANCE_BIND_MISMATCH, Map::CANNOT_ENTER_MAX_PLAYERS, Map::CANNOT_ENTER_TOO_MANY_INSTANCES, Map::CANNOT_ENTER_ZONE_IN_COMBAT, CHAR_NAME_SUCCESS, CHAR_UPD_ADD_AT_LOGIN_FLAG, CharacterDatabase, AchievementMgr::CheckAllAchievementCriteria(), CheckInstanceValidity(), CheckLoadedDungeonDifficultyID(), CheckLoadedRaidDifficultyID(), ObjectMgr::CheckPlayerName(), Unit::ClearInCombat(), PlayerTaxi::ClearTaxiDestinations(), CONFIG_GM_CHAT, CONFIG_GM_LOGIN_STATE, CONFIG_GM_VISIBLE_STATE, CONFIG_GM_WHISPERING_TO, TaxiNodesEntry::ContinentID, CORPSE, DEAD, DEATH_EXPIRE_STEP, ObjectGuid::Empty, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Battleground::EventPlayerLoggedIn(), MapEntry::Expansion(), GetActiveTalentGroup(), GetArenaTeamId(), Battleground::GetArenaType(), GetBattlegroundEntryPoint(), BattlegroundMap::GetBG(), Battleground::GetBgMap(), Battleground::GetBracketId(), Unit::GetClass(), ObjectGuid::GetCounter(), Field::GetCString(), Map::GetDifficultyID(), GetDrunkValue(), GetFaceId(), GetFacialStyle(), Field::GetFloat(), GameTime::GetGameTime(), Object::GetGUID(), GetHairColorId(), GetHairStyleId(), Map::GetId(), Battleground::GetInstanceID(), GetInstanceSave(), WorldLocation::GetMapId(), Map::GetMapName(), WorldObject::GetName(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), SQLQueryHolderBase::GetPreparedResult(), Unit::GetRace(), GetRestBonus(), GetSession(), GetSkinId(), Unit::GetSpellHistory(), Battleground::GetStatus(), Field::GetString(), GetTalentGroupsCount(), PlayerTaxi::GetTaxiSource(), GetTeam(), Battleground::GetTypeID(), Field::GetUInt16(), Field::GetUInt32(), Object::GetUInt32Value(), Field::GetUInt8(), HasAtLoginFlag(), Object::HasFlag(), BGData::HasTaxiPath(), HasTitle(), InitDisplayIds(), InitGlyphsForLevel(), InitPrimaryProfessions(), InitPvP(), InitRunes(), InitStatsForLevel(), InitTalentForLevel(), InitTaxiNodesForLevel(), Unit::IsAlive(), MapEntry::IsBattlegroundOrArena(), Map::IsDungeon(), IsInstanceLoginGameMasterException(), Battleground::IsPlayerInBattleground(), Position::IsPositionValid(), IsValidGender(), Trinity::IsValidMapCoord(), KNOWN_TITLES_SIZE, LANG_INSTANCE_BIND_MISMATCH, LearnCustomSpells(), LearnDefaultSkills(), AchievementMgr::LoadFromDB(), SpellHistory::LoadFromDB(), ReputationMgr::LoadFromDB(), PlayerTaxi::LoadTaxiDestinationsFromString(), PlayerTaxi::LoadTaxiMask(), m_achievementMgr, m_atLoginFlags, m_bgData, m_cinematic, m_deathExpireTime, Unit::m_deathState, m_fishingSteps, m_grantableLevels, m_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, m_InstanceValid, m_items, m_lastHonorUpdateTime, WorldObject::m_movementInfo, WorldObject::m_name, m_nextSave, m_Played_time, m_reputationMgr, m_rest_bonus, m_social, m_taxi, PlayerInfo::mapId, MAX_ARENA_SLOT, MAX_DEATH_COUNT, MAX_MONEY_AMOUNT, MAX_POWERS, MAX_TALENT_GROUP, MAX_TALENT_GROUPS, MIN_TALENT_GROUPS, outDebugValues(), PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER__FIELD_KNOWN_TITLES, PLAYER_AMMO_ID, PLAYER_BYTES_3, PLAYER_BYTES_3_OFFSET_INEBRIATION, PLAYER_CHOSEN_TITLE, PLAYER_DUEL_ARBITER, PLAYER_DUEL_TEAM, PLAYER_EXPLORED_ZONES_1, PLAYER_EXPLORED_ZONES_SIZE, PLAYER_EXTRA_ACCEPT_WHISPERS, PLAYER_EXTRA_GM_CHAT, PLAYER_EXTRA_GM_INVISIBLE, PLAYER_EXTRA_GM_ON, PLAYER_FARSIGHT, PLAYER_FIELD_BYTES, PLAYER_FIELD_BYTES_OFFSET_ACTION_BAR_TOGGLES, PLAYER_FIELD_BYTES_OFFSET_RAF_GRANTABLE_LEVEL, PLAYER_FIELD_INV_SLOT_HEAD, PLAYER_FIELD_KILLS, PLAYER_FIELD_KILLS_OFFSET_TODAY_KILLS, PLAYER_FIELD_KILLS_OFFSET_YESTERDAY_KILLS, PLAYER_FIELD_KNOWN_CURRENCIES, PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, PLAYER_FIELD_TODAY_CONTRIBUTION, PLAYER_FIELD_WATCHED_FACTION_INDEX, PLAYER_FIELD_YESTERDAY_CONTRIBUTION, PLAYER_FLAGS, PLAYER_FLAGS_GHOST, PLAYER_LOGIN_QUERY_LOAD_ACHIEVEMENTS, PLAYER_LOGIN_QUERY_LOAD_ACTIONS, PLAYER_LOGIN_QUERY_LOAD_ARENA_INFO, PLAYER_LOGIN_QUERY_LOAD_AURAS, PLAYER_LOGIN_QUERY_LOAD_BANNED, PLAYER_LOGIN_QUERY_LOAD_BG_DATA, PLAYER_LOGIN_QUERY_LOAD_BOUND_INSTANCES, PLAYER_LOGIN_QUERY_LOAD_CRITERIA_PROGRESS, PLAYER_LOGIN_QUERY_LOAD_DAILY_QUEST_STATUS, PLAYER_LOGIN_QUERY_LOAD_DECLINED_NAMES, PLAYER_LOGIN_QUERY_LOAD_EQUIPMENT_SETS, PLAYER_LOGIN_QUERY_LOAD_FROM, PLAYER_LOGIN_QUERY_LOAD_GLYPHS, PLAYER_LOGIN_QUERY_LOAD_GROUP, PLAYER_LOGIN_QUERY_LOAD_HOME_BIND, PLAYER_LOGIN_QUERY_LOAD_INVENTORY, PLAYER_LOGIN_QUERY_LOAD_MAIL_ITEMS, PLAYER_LOGIN_QUERY_LOAD_MAILS, PLAYER_LOGIN_QUERY_LOAD_MONTHLY_QUEST_STATUS, PLAYER_LOGIN_QUERY_LOAD_PET_SLOTS, PLAYER_LOGIN_QUERY_LOAD_QUEST_STATUS, PLAYER_LOGIN_QUERY_LOAD_QUEST_STATUS_REW, PLAYER_LOGIN_QUERY_LOAD_RANDOM_BG, PLAYER_LOGIN_QUERY_LOAD_REPUTATION, PLAYER_LOGIN_QUERY_LOAD_SEASONAL_QUEST_STATUS, PLAYER_LOGIN_QUERY_LOAD_SKILLS, PLAYER_LOGIN_QUERY_LOAD_SOCIAL_LIST, PLAYER_LOGIN_QUERY_LOAD_SPELL_COOLDOWNS, PLAYER_LOGIN_QUERY_LOAD_SPELLS, PLAYER_LOGIN_QUERY_LOAD_TALENTS, PLAYER_LOGIN_QUERY_LOAD_WEEKLY_QUEST_STATUS, PLAYER_NEXT_LEVEL_XP, PLAYER_TRACK_CREATURES, PLAYER_TRACK_RESOURCES, MovementInfo::TransportInfo::pos, TaxiNodesEntry::Pos, PlayerInfo::positionX, PlayerInfo::positionY, PlayerInfo::positionZ, ChatHandler::PSendSysMessage(), RATE_REST_OFFLINE_IN_TAVERN_OR_CITY, RATE_REST_OFFLINE_IN_WILDERNESS, rbac::RBAC_PERM_RESTORE_SAVED_GM_STATE, rbac::RBAC_PERM_SKIP_CHECK_CHARACTER_CREATION_RESERVEDNAME, Position::Relocate(), Unit::RemoveAllAurasOnDeath(), Unit::RemoveAllAurasRequiringDeadTarget(), Battleground::RemovePlayerAtLeave(), Unit::RemoveUnitFlag2(), MovementInfo::TransportInfo::Reset(), sArenaTeamMgr, SaveRecallPosition(), sBattlegroundMgr, sCharacterCache, SendTransferAborted(), SetAcceptWhispers(), SetActiveTalentGroup(), SetArenaPoints(), SetArenaTeamInfoField(), SetBankBagSlotCount(), Object::SetByteValue(), Unit::SetCanModifyStats(), Unit::SetChannelObjectGuid(), Unit::SetChannelSpellId(), Unit::SetClass(), Unit::SetCreatorGUID(), SetDrunkValue(), SetDungeonDifficultyID(), Object::SetDynamicFlag(), SetFaceId(), SetFacialStyle(), SetFactionForRace(), SetFallInformation(), SetGameMaster(), Unit::SetGender(), SetGMChat(), SetGMVisible(), Object::SetGuidValue(), SetHairColorId(), SetHairStyleId(), Unit::SetHealth(), SetHonorPoints(), Unit::SetHoverHeight(), Object::SetInt32Value(), SetInviteForBattlegroundQueueType(), Unit::SetLevel(), SetMap(), SetMoney(), SetNativeGender(), SetObjectScale(), Unit::SetOwnerGUID(), WorldSession::SetPlayer(), Unit::SetPower(), Unit::SetRace(), SetRaidDifficultyID(), SetRestBonus(), SetRestState(), SetSkinId(), SetTalentGroupsCount(), SetTalentResetCost(), SetTalentResetTime(), PreparedStatementBase::setUInt16(), Object::SetUInt16Value(), PreparedStatementBase::setUInt32(), Object::SetUInt32Value(), Object::SetUInt64Value(), SetVisibleItemSlot(), SetXP(), sInstanceSaveMgr, sMapMgr, sMapStore, sObjectMgr, sSocialMgr, STATUS_WAIT_LEAVE, sTaxiNodesStore, sWorld, AreaTriggerTeleport::target_mapId, AreaTriggerTeleport::target_X, AreaTriggerTeleport::target_Y, AreaTriggerTeleport::target_Z, BGData::taxiPath, TC_LOG_DEBUG, TC_LOG_ERROR, TC_LOG_WARN, Map::ToBattlegroundMap(), ObjectGuid::ToString(), Position::ToString(), TRANSFER_ABORT_DIFFICULTY, TRANSFER_ABORT_MAX_PLAYERS, TRANSFER_ABORT_TOO_MANY_INSTANCES, TRANSFER_ABORT_ZONE_IN_COMBAT, MovementInfo::transport, UNIT_DYNFLAG_REFER_A_FRIEND, UNIT_FIELD_CHARM, UNIT_FIELD_CHARMEDBY, UNIT_FIELD_SUMMON, UNIT_FLAG2_FORCE_MOVEMENT, UpdateAllStats(), Unit::UpdateDisplayPower(), UpdateHonorFields(), UpdateItemDuration(), WorldObject::UpdatePositionData(), UpdateSkillsForLevel(), urand(), ValidateAppearance(), DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.
Referenced by WorldSession::HandlePlayerLogin().
| void Player::LoadPet | ( | ) |
Definition at line 18194 of file Player.cpp.
References Object::IsInWorld(), Pet::LoadPetFromDB(), and m_petStable.
Referenced by WorldSession::HandlePlayerLogin().
|
static |
Definition at line 16828 of file Player.cpp.
References CHAR_SEL_CHAR_POSITION, CharacterDatabase, ObjectGuid::GetCounter(), Field::GetFloat(), Field::GetString(), Field::GetUInt16(), and PreparedStatementBase::setUInt32().
Referenced by misc_commandscript::HandleAppearCommand().
| void Player::ModifyArenaPoints | ( | int32 | value, |
| CharacterDatabaseTransaction | trans = CharacterDatabaseTransaction(nullptr) |
||
| ) |
If trans is specified, honor save query will be added to trans.
Definition at line 6696 of file Player.cpp.
References CHAR_UPD_CHAR_ARENA_POINTS, CharacterDatabase, GetArenaPoints(), Object::GetGUID(), SetArenaPoints(), and PreparedStatementBase::setUInt32().
Referenced by _StoreOrEquipNewItem(), Battleground::EndBattleground(), modify_commandscript::HandleModifyArenaCommand(), RefundItem(), and RewardQuest().
| void Player::ModifyHonorPoints | ( | int32 | value, |
| CharacterDatabaseTransaction | trans = CharacterDatabaseTransaction(nullptr) |
||
| ) |
Definition at line 6680 of file Player.cpp.
References CHAR_UPD_CHAR_HONOR_POINTS, CharacterDatabase, Object::GetGUID(), GetHonorPoints(), SetHonorPoints(), and PreparedStatementBase::setUInt32().
Referenced by _StoreOrEquipNewItem(), modify_commandscript::HandleModifyHonorCommand(), RefundItem(), and RewardHonor().
| bool Player::ModifyMoney | ( | int32 | amount, |
| bool | sendError = true |
||
| ) |
Definition at line 22336 of file Player.cpp.
References EQUIP_ERR_TOO_MUCH_GOLD, GetMoney(), MAX_MONEY_AMOUNT, SendEquipError(), SetMoney(), and sScriptMgr.
Referenced by _StoreOrEquipNewItem(), ActivateTaxiPathTo(), FlightPathMovementGenerator::DoUpdate(), DurabilityRepair(), DurabilityRepairAll(), WorldSession::HandleAcceptTradeOpcode(), WorldSession::HandleAlterAppearance(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleBuybackItem(), WorldSession::HandleBuyBankSlotOpcode(), Guild::HandleBuyBankTab(), WorldSession::HandleBuyStableSlot(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleMailTakeItem(), WorldSession::HandleMailTakeMoney(), Guild::HandleMemberDepositMoney(), Guild::HandleMemberWithdrawMoney(), modify_commandscript::HandleModifyMoneyCommand(), WorldSession::HandlePetitionBuyOpcode(), quest_commandscript::HandleQuestComplete(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSendMail(), Guild::HandleSetEmblem(), WorldSession::HandleTalentWipeConfirmOpcode(), OnGossipSelect(), AuctionHouseMgr::PendingAuctionProcess(), ProcessCastaction(), ProcessUnlearnAction(), RefundItem(), RewardQuest(), and Trainer::Trainer::TeachSpell().
Definition at line 5692 of file Player.cpp.
References GetSkillPermBonusByPos(), GetSkillTempBonusByPos(), mSkillStatus, SetSkillPermBonus(), SetSkillTempBonus(), and SKILL_DELETED.
Referenced by AuraEffect::HandleAuraModSkill().
| void Player::MoneyChanged | ( | uint32 | value | ) |
Definition at line 16382 of file Player.cpp.
References CanCompleteQuest(), CompleteQuest(), GetQuestSlotQuestId(), Quest::GetRewOrReqMoney(), IncompleteQuest(), m_QuestStatus, MAX_QUEST_LOG_SIZE, QUEST_STATUS_COMPLETE, QUEST_STATUS_INCOMPLETE, sObjectMgr, and QuestStatusData::Status.
Referenced by SetMoney().
Definition at line 12066 of file Player.cpp.
References GetItemByPos(), ItemRemovedQuestCheck(), RemoveItem(), and RemoveItemFromUpdateQueueOf.
Referenced by AutoUnequipOffhandIfNeed(), WorldSession::HandleAcceptTradeOpcode(), WorldSession::HandleAuctionSellItem(), and WorldSession::HandleSendMail().
| void Player::MoveItemToInventory | ( | ItemPosCountVec const & | dest, |
| Item * | pItem, | ||
| bool | update, | ||
| bool | in_characterInventoryDB = false |
||
| ) |
Definition at line 12083 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_RECEIVE_EPIC_ITEM, AddTradeableItem(), Item::GetCount(), Object::GetEntry(), Object::GetGUID(), Item::GetOwnerGUID(), Item::IsBOPTradeable(), ITEM_CHANGED, ITEM_NEW, ItemAddedQuestCheck(), Item::SetOwnerGUID(), Item::SetState(), StoreItem(), and UpdateAchievementCriteria().
Referenced by WorldSession::HandleMailTakeItem(), and WorldSession::moveItems().
| float Player::OCTRegenHPPerSpirit | ( | ) | const |
Definition at line 5237 of file Player.cpp.
References GtOCTRegenHPEntry::Data, GtRegenHPPerSptEntry::Data, Unit::GetClass(), Unit::GetLevel(), Unit::GetStat(), GT_MAX_LEVEL, sGtOCTRegenHPStore, sGtRegenHPPerSptStore, and STAT_SPIRIT.
Referenced by RegenerateHealth().
| float Player::OCTRegenMPPerSpirit | ( | ) | const |
Definition at line 5260 of file Player.cpp.
References GtRegenMPPerSptEntry::Data, Unit::GetClass(), Unit::GetLevel(), Unit::GetStat(), GT_MAX_LEVEL, sGtRegenMPPerSptStore, and STAT_SPIRIT.
Referenced by UpdatePowerRegen().
|
static |
Definition at line 4493 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, |
| uint32 | gossipListId, | ||
| uint32 | menuId | ||
| ) |
Definition at line 14088 of file Player.cpp.
References BATTLEGROUND_TYPE_NONE, GossipMenuItem::BoxMoney, BUY_ERR_NOT_ENOUGHT_MONEY, WorldObject::CastSpell(), CONFIG_MIN_DUALSPEC_LEVEL, Object::GetEntry(), PlayerMenu::GetGossipMenu(), Object::GetGUID(), Object::GetGUID(), GossipMenu::GetItem(), GossipMenu::GetItemData(), Unit::GetLevel(), GossipMenu::GetMenuId(), WorldObject::GetName(), GetNextResetTalentsCost(), GetSession(), GetTalentGroupsCount(), Object::GetTypeId(), GOSSIP_OPTION_ARMORER, GOSSIP_OPTION_AUCTIONEER, GOSSIP_OPTION_BANKER, GOSSIP_OPTION_BATTLEFIELD, GOSSIP_OPTION_DUALSPEC_INFO, GOSSIP_OPTION_GOSSIP, GOSSIP_OPTION_INNKEEPER, GOSSIP_OPTION_LEARNDUALSPEC, GOSSIP_OPTION_OUTDOORPVP, GOSSIP_OPTION_PETITIONER, GOSSIP_OPTION_QUESTGIVER, GOSSIP_OPTION_SPIRITGUIDE, GOSSIP_OPTION_SPIRITHEALER, GOSSIP_OPTION_STABLEPET, GOSSIP_OPTION_TABARDDESIGNER, GOSSIP_OPTION_TAXIVENDOR, GOSSIP_OPTION_TRAINER, GOSSIP_OPTION_UNLEARNPETTALENTS, GOSSIP_OPTION_UNLEARNTALENTS, GOSSIP_OPTION_VENDOR, GossipMenuItemData::GossipActionMenuId, GossipMenuItemData::GossipActionPoi, HasEnoughMoney(), Unit::isDead(), ModifyMoney(), GossipMenuItem::OptionType, PlayerTalkClass, PrepareGossipMenu(), PrepareQuestMenu(), ResetPetTalents(), sBattlegroundMgr, WorldSession::SendAuctionHello(), SendBuyError(), PlayerMenu::SendCloseGossip(), WorldSession::SendListInventory(), WorldSession::SendPetitionShowList(), PlayerMenu::SendPointOfInterest(), SendPreparedGossip(), SendPreparedQuest(), SendRespecWipeConfirm(), WorldSession::SendShowBank(), WorldSession::SendStablePet(), WorldSession::SendTabardVendorActivate(), WorldSession::SendTaxiMenu(), WorldSession::SendTrainerList(), SetBindPoint(), sOutdoorPvPMgr, sWorld, TC_LOG_ERROR, Object::ToCreature(), ObjectGuid::ToString(), Position::ToString(), and TYPEID_GAMEOBJECT.
Referenced by WorldSession::HandleGossipSelectOptionOpcode().
|
protected |
Definition at line 19975 of file Player.cpp.
References BASE_ATTACK, Unit::GetArmor(), Unit::GetAttackTime(), Object::GetFloatValue(), Unit::GetMaxHealth(), Unit::GetMaxPower(), Unit::GetResistance(), Unit::GetStat(), LOG_LEVEL_DEBUG, PLAYER_BLOCK_PERCENTAGE, POWER_MANA, RANGED_ATTACK, sLog, SPELL_SCHOOL_ARCANE, SPELL_SCHOOL_FIRE, SPELL_SCHOOL_FROST, SPELL_SCHOOL_HOLY, SPELL_SCHOOL_NATURE, SPELL_SCHOOL_SHADOW, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, TC_LOG_DEBUG, UNIT_FIELD_MAXDAMAGE, UNIT_FIELD_MAXOFFHANDDAMAGE, UNIT_FIELD_MAXRANGEDDAMAGE, UNIT_FIELD_MINDAMAGE, UNIT_FIELD_MINOFFHANDDAMAGE, and UNIT_FIELD_MINRANGEDDAMAGE.
Referenced by LoadFromDB(), and SaveToDB().
| void Player::PetSpellInitialize | ( | ) |
Definition at line 20594 of file Player.cpp.
References CharmInfo::BuildActionBar(), CreatureTemplate::family, Unit::GetCharmInfo(), CharmInfo::GetCommandState(), Creature::GetCreatureTemplate(), Pet::GetDuration(), Object::GetGUID(), GetPet(), Creature::GetReactState(), Unit::GetSpellHistory(), Pet::IsPermanentPetFor(), Pet::m_spells, MAKE_UNIT_ACTION_BUTTON, MAX_UNIT_ACTION_BAR_INDEX, PETSPELL_REMOVED, ByteBuffer::put(), SendDirectMessage(), SMSG_PET_SPELLS, TC_LOG_DEBUG, ByteBuffer::wpos(), 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(), Pet::resetTalents(), Unit::SetMinion(), and SummonPet().
| void Player::PossessSpellInitialize | ( | ) |
Definition at line 20643 of file Player.cpp.
References CharmInfo::BuildActionBar(), Unit::GetCharmed(), Unit::GetCharmInfo(), Object::GetGUID(), MAX_UNIT_ACTION_BAR_INDEX, SendDirectMessage(), SMSG_PET_SPELLS, TC_LOG_ERROR, and ObjectGuid::ToString().
Referenced by WorldSession::HandleRequestPetInfo(), and Unit::SetCharmedBy().
| void Player::PrepareGossipMenu | ( | WorldObject * | source, |
| uint32 | menuId = 0, |
||
| bool | showQuests = false |
||
| ) |
Find localizations from database.
Find localizations from database.
Definition at line 13887 of file Player.cpp.
References GossipMenu::AddGossipMenuItemData(), GossipMenu::AddMenuItem(), Creature::CanResetTalents(), CLASS_HUNTER, PlayerMenu::ClearMenus(), CONFIG_MIN_DUALSPEC_LEVEL, DEFAULT_LOCALE, VendorItemData::Empty(), GAMEOBJECT_TYPE_GOOBER, GAMEOBJECT_TYPE_QUESTGIVER, Unit::GetClass(), GetDefaultGossipMenuForSource(), Unit::GetGender(), PlayerMenu::GetGossipMenu(), GameObject::GetGoType(), Object::GetGUID(), Object::GetGUID(), Unit::GetLevel(), ObjectMgr::GetLocaleString(), GossipMenu::GetMenuId(), WorldObject::GetName(), GetPet(), GetSession(), WorldSession::GetSessionDbLocaleIndex(), GetTalentGroupsCount(), BroadcastTextEntry::GetText(), Object::GetTypeId(), Object::GetUInt32Value(), GOSSIP_OPTION_ARMORER, GOSSIP_OPTION_AUCTIONEER, GOSSIP_OPTION_BANKER, GOSSIP_OPTION_BATTLEFIELD, GOSSIP_OPTION_DUALSPEC_INFO, GOSSIP_OPTION_GOSSIP, GOSSIP_OPTION_INNKEEPER, GOSSIP_OPTION_LEARNDUALSPEC, GOSSIP_OPTION_OUTDOORPVP, GOSSIP_OPTION_PETITIONER, GOSSIP_OPTION_QUESTGIVER, GOSSIP_OPTION_SPIRITGUIDE, GOSSIP_OPTION_SPIRITHEALER, GOSSIP_OPTION_STABLEPET, GOSSIP_OPTION_TABARDDESIGNER, GOSSIP_OPTION_TAXIVENDOR, GOSSIP_OPTION_TRAINER, GOSSIP_OPTION_UNLEARNPETTALENTS, GOSSIP_OPTION_UNLEARNTALENTS, GOSSIP_OPTION_VENDOR, HUNTER_PET, Unit::isDead(), Trainer::Trainer::IsTrainerValidForPlayer(), m_spells, PlayerTalkClass, PrepareQuestMenu(), sConditionMgr, GossipMenu::SetMenuId(), sObjectMgr, sOutdoorPvPMgr, sWorld, TC_LOG_ERROR, Object::ToCreature(), Object::ToGameObject(), Position::ToString(), TYPEID_GAMEOBJECT, TYPEID_UNIT, UNIT_NPC_FLAG_QUESTGIVER, and UNIT_NPC_FLAGS.
Referenced by WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleQuestgiverHelloOpcode(), npc_andorov::OnGossipHello(), npc_disciple_of_naralex::OnGossipHello(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::OnGossipHello(), npc_sinclari_vh::OnGossipHello(), go_apexis_relic::go_apexis_relicAI::OnGossipHello(), OnGossipSelect(), Spell::SendLoot(), and GameObject::Use().
| void Player::PrepareQuestMenu | ( | ObjectGuid | guid | ) |
Definition at line 14271 of file Player.cpp.
References QuestMenu::AddMenuItem(), ASSERT, CanTakeQuest(), QuestMenu::ClearMenu(), ObjectAccessor::GetCreatureOrPetOrVehicle(), Object::GetEntry(), Map::GetGameObject(), WorldObject::GetInstanceId(), WorldObject::GetMap(), WorldLocation::GetMapId(), PlayerMenu::GetQuestMenu(), GetQuestStatus(), Quest::IsAutoComplete(), Quest::IsDaily(), Object::IsInWorld(), Quest::IsMonthly(), Quest::IsRepeatable(), Quest::IsWeekly(), PlayerTalkClass, QUEST_STATUS_COMPLETE, QUEST_STATUS_INCOMPLETE, QUEST_STATUS_NONE, sMapMgr, and sObjectMgr.
Referenced by npc_lokhtos_darkbargainer::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_thrall_warchief::npc_thrall_warchiefAI::OnGossipHello(), npc_brann_hos::OnGossipHello(), npc_wg_demolisher_engineer::OnGossipHello(), npc_wg_spirit_guide::OnGossipHello(), npc_wg_queue::OnGossipHello(), npc_innkeeper::npc_innkeeperAI::OnGossipHello(), npc_prof_blacksmith::npc_prof_blacksmithAI::OnGossipHello(), npc_prof_leather::npc_prof_leatherAI::OnGossipHello(), npc_prof_tailor::npc_prof_tailorAI::OnGossipHello(), npc_prof_alchemy::npc_prof_alchemyAI::OnGossipHello(), OnGossipSelect(), and PrepareGossipMenu().
| void Player::ProcessDelayedOperations | ( | ) |
Definition at line 1792 of file Player.cpp.
References PlayerTaxi::AddTaxiDestination(), WorldObject::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().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 24000 of file Player.cpp.
References WorldObject::GetLiquidStatus(), WorldObject::GetTransport(), Unit::IsInFlight(), LIQUID_MAP_UNDER_WATER, m_MirrorTimerFlags, MAP_ALL_LIQUIDS, MAP_LIQUID_STATUS_IN_CONTACT, MAP_LIQUID_TYPE_DARK_WATER, MAP_LIQUID_TYPE_MAGMA, MAP_LIQUID_TYPE_SLIME, Unit::ProcessTerrainStatusUpdate(), UNDERWATER_INDARKWATER, UNDERWATER_INLAVA, UNDERWATER_INSLIME, and UNDERWATER_INWATER.
Definition at line 11912 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_EQUIP_EPIC_ITEM, ACHIEVEMENT_CRITERIA_TYPE_EQUIP_ITEM, AddEnchantmentDurations(), AddItemDurations(), Object::AddToWorld(), CheckTitanGripPenalty(), EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, Object::GetEntry(), Object::IsInWorld(), Object::SendUpdateToPlayer(), UpdateAchievementCriteria(), and VisualizeItem().
Referenced by _LoadInventory().
|
inline |
Definition at line 1660 of file Player.h.
Referenced by DestroyItem(), EquipItem(), RemoveItem(), and UpdateAllStats().
|
inline |
Definition at line 2066 of file Player.h.
Referenced by misc_commandscript::HandleRecallCommand().
|
private |
Already checked before
Definition at line 25966 of file Player.cpp.
References ItemExtendedCostEntry::ArenaPoints, ASSERT, CanStoreNewItem(), CharacterDatabase, DestroyItem(), EQUIP_ERR_OK, Item::GetBagSlot(), Object::GetGUID(), Item::GetPaidExtendedCost(), Item::GetPaidMoney(), Item::GetRefundRecipient(), Item::GetSlot(), ItemExtendedCostEntry::HonorPoints, Item::IsRefundable(), Item::IsRefundExpired(), ItemExtendedCostEntry::ItemCount, ItemExtendedCostEntry::ItemID, MAX_ITEM_EXTENDED_COST_REQUIREMENTS, ModifyArenaPoints(), ModifyHonorPoints(), ModifyMoney(), NULL_BAG, NULL_SLOT, SaveInventoryAndGoldToDB(), SendItemRefundResult(), SendNewItem(), Item::SetNotRefundable(), sItemExtendedCostStore, StoreNewItem(), and TC_LOG_DEBUG.
Referenced by WorldSession::HandleItemRefund().
| void Player::Regenerate | ( | Powers | power | ) |
Definition at line 1969 of file Player.cpp.
References AsUnderlyingType(), Unit::GetMaxPower(), Unit::GetPower(), GetPowerRegen(), m_powerFraction, Unit::m_regenTimer, m_regenTimerCount, Unit::SetPower(), UNIT_FIELD_POWER1, and Object::UpdateUInt32Value().
Referenced by RegenerateAll().
| void Player::RegenerateAll | ( | ) |
Definition at line 1906 of file Player.cpp.
References AURA_INTERRUPT_FLAG_NOT_SEATED, CLASS_DEATH_KNIGHT, Unit::GetAuraEffectsByType(), Unit::GetClass(), GetRuneCooldown(), Unit::HasAuraType(), Unit::IsInCombat(), Unit::IsPolymorphed(), m_baseHealthRegen, m_foodEmoteTimerCount, Unit::m_regenTimer, m_regenTimerCount, MAX_RUNES, POWER_ENERGY, POWER_MANA, POWER_RAGE, POWER_RUNIC_POWER, Regenerate(), RegenerateHealth(), Unit::SendPlaySpellVisualKit(), SetRuneCooldown(), SPELL_AURA_MOD_HEALTH_REGEN_IN_COMBAT, SPELL_AURA_MOD_POWER_REGEN, SPELL_AURA_MOD_REGEN, SPELL_AURA_MOD_REGEN_DURING_COMBAT, SPELL_VISUAL_KIT_DRINK, and SPELL_VISUAL_KIT_FOOD.
Referenced by Update().
| void Player::RegenerateHealth | ( | ) |
Definition at line 2025 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, OCTRegenHPPerSpirit(), 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 6081 of file Player.cpp.
References ACTIONBUTTON_DELETED, ACTIONBUTTON_NEW, Object::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 15706 of file Player.cpp.
References m_QuestStatus, m_QuestStatusSave, QUEST_DELETE_SAVE_TYPE, and SendQuestUpdate().
Referenced by Spell::EffectQuestClear(), WorldSession::HandleQuestLogRemoveQuest(), quest_commandscript::HandleQuestRemove(), and RewardQuest().
| void Player::RemoveAmmo | ( | ) |
Definition at line 11608 of file Player.cpp.
References Unit::CanModifyStats(), m_ammoDPS, PLAYER_AMMO_ID, RANGED_ATTACK, Object::SetUInt32Value(), and Unit::UpdateDamagePhysical().
Referenced by AuraEffect::HandleAuraDummy(), and WorldSession::HandleSetAmmoOpcode().
| void Player::RemoveArenaEnchantments | ( | EnchantmentSlot | slot | ) |
Definition at line 13356 of file Player.cpp.
References ApplyEnchantment(), GetBagByPos(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, m_enchantDuration, and sSpellMgr.
Referenced by Battleground::AddPlayer().
| void Player::RemoveArenaSpellCooldowns | ( | bool | removeActivePetCooldowns = false | ) |
Definition at line 3670 of file Player.cpp.
References SpellHistory::GetCooldownDurations(), GetPet(), Unit::GetSpellHistory(), IN_MILLISECONDS, MINUTE, SpellHistory::ResetCooldowns(), and sSpellMgr.
Referenced by TeleportTo().
| void Player::RemoveAtLoginFlag | ( | AtLoginFlags | flags, |
| bool | persist = false |
||
| ) |
Definition at line 25490 of file Player.cpp.
References CHAR_UPD_REM_AT_LOGIN_FLAG, CharacterDatabase, flags, Object::GetGUID(), m_atLoginFlags, PreparedStatementBase::setUInt16(), and PreparedStatementBase::setUInt32().
Referenced by WorldSession::HandlePlayerLogin(), LoadCorpse(), ResetSpells(), Pet::resetTalents(), ResetTalents(), and Pet::resetTalentsForAllPetsOf().
| void Player::RemoveBattlegroundQueueId | ( | BattlegroundQueueTypeId | val | ) |
Definition at line 23095 of file Player.cpp.
References BATTLEGROUND_QUEUE_NONE, Player::BgBattlegroundQueueID_Rec::bgQueueTypeId, Player::BgBattlegroundQueueID_Rec::invitedToInstance, m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by BGQueueRemoveEvent::Execute(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::LogoutPlayer(), and Battleground::RemovePlayerAtLeave().
| void Player::RemovedInsignia | ( | Player * | looterPlr | ) |
Definition at line 8045 of file Player.cpp.
References _corpseLocation, BuildPlayerRepop(), Map::ConvertCorpseToBones(), CORPSE_DYNFLAG_LOOTABLE, GetBattlegroundId(), Object::GetGUID(), Object::GetGUID(), Unit::GetLevel(), WorldObject::GetMap(), Loot::gold, WorldObject::IsInWorldPvpZone(), Corpse::loot, LOOT_INSIGNIA, Corpse::lootRecipient, m_deathTimer, RepopAtGraveyard(), SendLoot(), Corpse::SetCorpseDynamicFlag(), and WorldLocation::WorldRelocate().
Referenced by Spell::EffectSkinPlayerCorpse().
| void Player::RemoveEnchantmentDurations | ( | Item * | item | ) |
Definition at line 13330 of file Player.cpp.
References m_enchantDuration, and Item::SetEnchantmentDuration().
Referenced by _StoreItem(), DestroyItem(), EquipItem(), and RemoveItem().
| void Player::RemoveEnchantmentDurationsReferences | ( | Item * | item | ) |
Definition at line 13345 of file Player.cpp.
References m_enchantDuration.
Referenced by _SaveInventory().
| void Player::RemoveFromBattlegroundOrBattlefieldRaid | ( | ) |
Definition at line 23975 of file Player.cpp.
References GetOriginalGroup(), GetOriginalSubGroup(), Reference< TO, FROM >::link(), m_group, SetOriginalGroup(), GroupReference::setSubGroup(), and Reference< TO, FROM >::unlink().
Referenced by Group::Disband(), and Group::RemoveMember().
|
static |
Definition at line 2358 of file Player.cpp.
References Group::RemoveMember().
Referenced by DeleteFromDB(), WorldSession::HandleGroupDisbandOpcode(), WorldSession::HandleGroupUninviteGuidOpcode(), WorldSession::HandleGroupUninviteOpcode(), and lfg::LFGMgr::UpdateBoot().
|
inline |
Definition at line 1598 of file Player.h.
References Object::GetGUID(), and RemoveFromGroup().
Referenced by RemoveFromGroup().
|
inline |
Definition at line 2239 of file Player.h.
Referenced by message_commandscript::HandleWhispersCommand().
|
overridevirtual |
Reimplemented from Object.
Definition at line 1843 of file Player.cpp.
References Unit::ClearComboPointHolders(), Unit::ClearComboPoints(), WorldSession::DoLootRelease(), ObjectGuid::GetEntry(), Object::GetGUID(), GetLootGUID(), WorldObject::GetName(), GetViewpoint(), ObjectGuid::IsEmpty(), Object::IsInWorld(), m_items, m_session, Object::m_uint32Values, m_zoneUpdateId, mMitems, PLAYER_SLOT_END, PLAYER_SLOT_START, Object::RemoveFromWorld(), Unit::RemoveFromWorld(), sBattlefieldMgr, SetViewpoint(), sOutdoorPvPMgr, StopCastingBindSight(), StopCastingCharm(), TC_LOG_ERROR, Position::ToString(), and UnsummonPetTemporaryIfAny().
Referenced by Map::RemovePlayerFromMap().
| void Player::RemoveGhoul | ( | ) |
Definition at line 4457 of file Player.cpp.
References Unit::RemoveAura(), and SPELL_DK_RAISE_ALLY.
Referenced by WorldSession::HandleRepopRequest(), ResurrectUsingRequestData(), and StopCastingCharm().
Definition at line 11981 of file Player.cpp.
References _ApplyItemMods(), ASSERT_NOTNULL, BASE_ATTACK, CheckTitanGripPenalty(), Item::ClearEnchantment(), CR_ARMOR_PENETRATION, ObjectGuid::Empty, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, GetBagByPos(), Object::GetEntry(), Object::GetGUID(), GetItemByPos(), ItemTemplate::GetItemSet(), Item::GetItemSuffixFactor(), WorldObject::GetName(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, Object::IsInWorld(), m_items, NULL_SLOT, OFF_ATTACK, PLAYER_FIELD_INV_SLOT_HEAD, PROP_ENCHANTMENT_SLOT_0, PROP_ENCHANTMENT_SLOT_1, PROP_ENCHANTMENT_SLOT_3, PROP_ENCHANTMENT_SLOT_4, RecalculateRating(), RemoveEnchantmentDurations(), RemoveItemDurations(), RemoveItemsSetItem(), RemoveTradeableItem(), Object::SendUpdateToPlayer(), Item::SetContainedIn(), Object::SetGuidValue(), Item::SetSlot(), SetVisibleItemSlot(), TC_LOG_DEBUG, Position::ToString(), and UpdateExpertise().
Referenced by AutoUnequipOffhandIfNeed(), Create(), Spell::EffectScriptEffect(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleEquipmentSetUse(), WorldSession::HandleSellItemOpcode(), MoveItemFromInventory(), and SwapItem().
| void Player::RemoveItemDependentAurasAndCasts | ( | Item * | pItem | ) |
Definition at line 23473 of file Player.cpp.
References CURRENT_MAX_SPELL, Aura::GetCasterGUID(), Unit::GetCurrentSpell(), Object::GetGUID(), Aura::GetSpellInfo(), HasItemFitToSpellRequirements(), Unit::InterruptSpell(), Unit::m_ownedAuras, Unit::RemoveOwnedAura(), and SPELL_STATE_DELAYED.
Referenced by ApplyItemDependentAuras().
| void Player::RemoveItemDurations | ( | Item * | item | ) |
Definition at line 23332 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 13037 of file Player.cpp.
References BUYBACK_SLOT_END, BUYBACK_SLOT_START, ObjectGuid::Empty, ObjectGuid::GetCounter(), Object::GetGUID(), Object::GetGUID(), WorldObject::GetName(), Item::GetTemplate(), ITEM_FLAG_HAS_LOOT, ITEM_REMOVED, m_currentBuybackSlot, m_items, PLAYER_FIELD_BUYBACK_PRICE_1, PLAYER_FIELD_BUYBACK_TIMESTAMP_1, PLAYER_FIELD_VENDORBUYBACK_SLOT_1, Object::RemoveFromWorld(), Object::SetGuidValue(), Item::SetState(), Object::SetUInt32Value(), sLootItemStorage, TC_LOG_DEBUG, and Position::ToString().
Referenced by AddItemToBuyBackSlot(), and WorldSession::HandleBuybackItem().
| void Player::RemoveMail | ( | uint32 | id | ) |
Definition at line 2816 of file Player.cpp.
References m_mail.
Referenced by WorldSession::HandleMailReturnToSender().
| bool Player::RemoveMItem | ( | ObjectGuid::LowType | id | ) |
Definition at line 20583 of file Player.cpp.
References mMitems.
Referenced by WorldSession::HandleMailReturnToSender(), and WorldSession::HandleMailTakeItem().
| void Player::RemovePet | ( | Pet * | pet, |
| PetSaveMode | mode, | ||
| bool | returnreagent = false |
||
| ) |
Definition at line 20308 of file Player.cpp.
References WorldObject::AddObjectToRemoveList(), ASSERT, CanStoreNewItem(), CHAR_UPD_CHAR_PET_SLOT_BY_ID, CharacterDatabase, Unit::CombatStop(), EQUIP_ERR_OK, Unit::GetCharmInfo(), Object::GetEntry(), GetGroup(), Object::GetGUID(), WorldObject::GetName(), GetPet(), CharmInfo::GetPetNumber(), Object::GetUInt32Value(), GROUP_UPDATE_PET, InBattleground(), Pet::isControlled(), Object::IsInWorld(), m_oldpetspell, m_petStable, Pet::m_removed, m_temporaryUnsummonedPetNumber, MAX_SPELL_REAGENTS, NULL_BAG, NULL_SLOT, PET_SAVE_AS_DELETED, PET_SAVE_NOT_IN_SLOT, SpellInfo::Reagent, SpellInfo::ReagentCount, Pet::SavePetToDB(), SendDirectMessage(), SendNewItem(), SetGroupUpdateFlag(), Unit::SetMinion(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), SMSG_PET_SPELLS, sSpellMgr, StoreNewItem(), TC_LOG_DEBUG, Position::ToString(), and UNIT_CREATED_BY_SPELL.
Referenced by ActivateTalentGroup(), Spell::EffectSummonPet(), WorldSession::HandlePetAbandon(), WorldSession::HandlePetActionHelper(), WorldSession::HandleRepopRequest(), WorldSession::HandleStablePet(), WorldSession::HandleStableSwapPet(), WorldSession::HandleUnstablePet(), Pet::LoadPetFromDB(), WorldSession::LogoutPlayer(), Pet::Remove(), Battleground::RemovePlayerAtLeave(), ResetTalents(), setDeathState(), SummonPet(), UnsummonPetTemporaryIfAny(), and Update().
| void Player::RemovePetAura | ( | PetAura const * | petSpell | ) |
Definition at line 20405 of file Player.cpp.
References PetAura::GetAura(), GetPet(), and m_petAuras.
Referenced by Pet::CastPetAuras(), AuraEffect::HandleAuraDummy(), and RemoveSpell().
|
static |
Definition at line 20950 of file Player.cpp.
References sPetitionMgr.
Referenced by Guild::AddMember(), ArenaTeam::AddMember(), and DeleteFromDB().
Definition at line 15999 of file Player.cpp.
References MAX_QUEST_OFFSET, PLAYER_QUEST_LOG_1_1, QUEST_STATE_OFFSET, and Object::RemoveFlag().
Referenced by IncompleteQuest().
| void Player::RemoveRestFlag | ( | RestFlag | restFlag | ) |
Definition at line 26449 of file Player.cpp.
References _restFlagMask, _restTime, PLAYER_FLAGS, PLAYER_FLAGS_RESTING, and Object::RemoveFlag().
Referenced by Update(), UpdateArea(), and UpdateZone().
| void Player::RemoveRewardedQuest | ( | uint32 | questId, |
| bool | update = true |
||
| ) |
Definition at line 15719 of file Player.cpp.
References ASSERT, Quest::GetEventIdForQuest(), Quest::IsSeasonal(), m_RewardedQuests, m_RewardedQuestsSave, m_SeasonalQuestChanged, m_seasonalquests, QUEST_FORCE_DELETE_SAVE_TYPE, SendQuestUpdate(), and sObjectMgr.
Referenced by Spell::EffectQuestClear(), and quest_commandscript::HandleQuestRemove().
| void Player::RemoveRuneConvertAura | ( | uint8 | index, |
| AuraEffect const * | aura | ||
| ) |
Definition at line 24356 of file Player.cpp.
References RuneInfo::ConvertAuras, m_runes, and Runes::runes.
Referenced by RemoveRunesByAuraEffect().
| void Player::RemoveRunesByAuraEffect | ( | AuraEffect const * | aura | ) |
Definition at line 24367 of file Player.cpp.
References RuneInfo::ConvertAuras, ConvertRune(), GetBaseRune(), m_runes, MAX_RUNES, RemoveRuneConvertAura(), and Runes::runes.
Referenced by AuraEffect::HandleAuraConvertRune(), Aura::HandleAuraSpecificMods(), and spell_dk_death_rune::PeriodicTick().
| void Player::RemoveSocial | ( | ) |
Definition at line 26480 of file Player.cpp.
References Object::GetGUID(), m_social, and sSocialMgr.
Referenced by WorldSession::LogoutPlayer().
| void Player::RemoveSpell | ( | uint32 | spell_id, |
| bool | disabled = false, |
||
| bool | learn_low_rank = true |
||
| ) |
No need to check for spellInfo != nullptr here because if cur_active is true, then that means that the spell was already in m_spells, and only valid spells can be pushed there.
Definition at line 3418 of file Player.cpp.
References AddSpell(), AutoUnequipOffhandIfNeed(), CONFIG_MAX_PRIMARY_TRADE_SKILL, CONFIG_OFFHAND_CHECK_AT_SPELL_UNLEARN, SpellInfo::GetEffects(), GetFreePrimaryProfessionPoints(), Object::GetGUID(), Unit::GetMaxSkillValueForLevel(), GetPureMaxSkillValue(), GetPureSkillValue(), GetTalentSpellCost(), GetUsedTalentCount(), Has310Flyer(), SpellInfo::HasAttribute(), SpellInfo::HasEffect(), HasSpell(), SpellInfo::IsPassive(), SpellInfo::IsPrimaryProfessionFirstRank(), SpellInfo::IsRanked(), SpellInfo::IsStackableWithRanks(), IsUnlearnSpellsPacketNeededForSpell(), Unit::m_canDualWield, m_canTitanGrip, m_spells, m_titanGripPenaltySpellId, MAX_SPELL_EFFECTS, SpellLearnSkillNode::maxvalue, PLAYERSPELL_CHANGED, PLAYERSPELL_NEW, PLAYERSPELL_REMOVED, PLAYERSPELL_TEMPORARY, Unit::RemoveAurasDueToSpell(), Unit::RemoveOwnedAura(), RemovePetAura(), RemoveSpell(), SendDirectMessage(), SendSupercededSpell(), SendUnlearnSpells(), Unit::SetCanDualWield(), SetCanTitanGrip(), SetFreePrimaryProfessions(), SetSkill(), SetUsedTalentCount(), SpellLearnSkillNode::skill, SKILL_MOUNTS, SPELL_ATTR0_CU_IS_TALENT, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, SPELL_EFFECT_DUAL_WIELD, SPELL_EFFECT_TITAN_GRIP, WorldPackets::Spells::UnlearnedSpell::SpellID, sSkillLineStore, sSpellMgr, SpellLearnSkillNode::step, sWorld, SpellLearnSkillNode::value, and WorldPackets::Spells::UnlearnedSpell::Write().
Referenced by ActivateTalentGroup(), AddSpell(), Spell::EffectUnlearnSpecialization(), learn_commandscript::HandleUnLearnCommand(), LearnSkillRewardedSpells(), ProfessionUnlearnSpells(), RemoveSpell(), ResetSpells(), ResetTalents(), and SetSkill().
| void Player::RemoveTemporarySpell | ( | uint32 | spellId | ) |
Definition at line 3342 of file Player.cpp.
References m_spells, and PLAYERSPELL_TEMPORARY.
Referenced by AddSpell(), AuraEffect::HandleAuraModShapeshift(), and AuraEffect::HandleAuraOverrideSpells().
| void Player::RemoveTimedAchievement | ( | AchievementCriteriaTimedTypes | type, |
| uint32 | entry | ||
| ) |
Definition at line 24904 of file Player.cpp.
References m_achievementMgr, and AchievementMgr::RemoveTimedAchievement().
Referenced by WorldSession::HandleQuestLogRemoveQuest().
|
inline |
Definition at line 1349 of file Player.h.
Referenced by FailQuest(), WorldSession::HandleQuestLogRemoveQuest(), and RewardQuest().
| void Player::RemoveTradeableItem | ( | Item * | item | ) |
Definition at line 13270 of file Player.cpp.
References Object::GetGUID(), and m_itemSoulboundTradeable.
Referenced by _SaveInventory(), _StoreItem(), DestroyItem(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), EquipItem(), WorldSession::HandleSocketOpcode(), and RemoveItem().
| void Player::RepopAtGraveyard | ( | ) |
Definition at line 4792 of file Player.cpp.
References AREA_FLAG_NEED_FLY, WorldSafeLocsEntry::Continent, AreaTableEntry::Flags, WorldObject::GetAreaId(), GetBattleground(), WorldObject::GetMap(), WorldLocation::GetMapId(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetSession(), GetTeam(), WorldObject::GetTransport(), WorldObject::GetZoneId(), Unit::IsAlive(), Unit::isDead(), WorldPackets::Misc::DeathReleaseLoc::Loc, WorldSafeLocsEntry::Loc, m_deathTimer, m_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, WorldPackets::Misc::DeathReleaseLoc::MapID, PLAYER_FLAGS, PLAYER_FLAGS_IS_OUT_OF_BOUNDS, Object::RemoveFlag(), sAreaTableStore, sBattlefieldMgr, WorldSession::SendPacket(), sObjectMgr, SpawnCorpseBones(), TELE_REVIVE_AT_TELEPORT, TeleportTo(), WorldPackets::Misc::DeathReleaseLoc::Write(), DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.
Referenced by Spell::EffectStuck(), HandleDrowning(), WorldSession::HandleInstanceLockResponse(), WorldSession::HandlePlayerLogin(), WorldSession::HandleRepopRequest(), misc_commandscript::HandleUnstuckCommand(), WorldSession::LogoutPlayer(), RemovedInsignia(), TeleportTo(), Update(), and UpdateHomebindTime().
| void Player::ReportedAfkBy | ( | Player * | reporter | ) |
This player has been blamed to be inactive in a battleground.
Definition at line 22011 of file Player.cpp.
References BGData::bgAfkReportedCount, BGData::bgAfkReporter, CanReportAfkDueToLimit(), WorldObject::CastSpell(), CONFIG_BATTLEGROUND_REPORT_AFK, GetBattleground(), Object::GetGUID(), Object::GetGUID(), Battleground::GetStatus(), GetTeam(), Unit::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 | ) |
Definition at line 16412 of file Player.cpp.
References CanCompleteQuest(), CompleteQuest(), GetQuestSlotQuestId(), GetReputation(), GetReputationMgr(), FactionEntry::ID, IncompleteQuest(), m_QuestStatus, MAX_QUEST_LOG_SIZE, QUEST_STATUS_COMPLETE, QUEST_STATUS_INCOMPLETE, sObjectMgr, and QuestStatusData::Status.
Referenced by ReputationMgr::SetOneFactionReputation().
| void Player::ReputationChanged2 | ( | FactionEntry const * | factionEntry | ) |
Definition at line 16440 of file Player.cpp.
References CanCompleteQuest(), CompleteQuest(), GetQuestSlotQuestId(), GetReputation(), GetReputationMgr(), FactionEntry::ID, IncompleteQuest(), m_QuestStatus, MAX_QUEST_LOG_SIZE, QUEST_STATUS_COMPLETE, QUEST_STATUS_INCOMPLETE, sObjectMgr, and QuestStatusData::Status.
| void Player::ResetAchievementCriteria | ( | AchievementCriteriaCondition | condition, |
| uint32 | value, | ||
| bool | evenIfCriteriaComplete = false |
||
| ) |
Definition at line 24909 of file Player.cpp.
References m_achievementMgr, and AchievementMgr::ResetAchievementCriteria().
Referenced by Battleground::AddPlayer(), Arena::EndBattleground(), Battleground::RemovePlayerAtLeave(), and setDeathState().
| void Player::ResetAchievements | ( | ) |
Definition at line 24884 of file Player.cpp.
References m_achievementMgr, and AchievementMgr::Reset().
Referenced by reset_commandscript::HandleResetAchievementsCommand().
| void Player::ResetAllPowers | ( | ) |
Definition at line 2086 of file Player.cpp.
References Unit::GetPowerType(), POWER_ENERGY, 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 20246 of file Player.cpp.
References Unit::ClearUnitState(), m_contestedPvPTimer, PLAYER_FLAGS, PLAYER_FLAGS_CONTESTED_PVP, Object::RemoveFlag(), and UNIT_STATE_ATTACK_PLAYER.
Referenced by SetGameMaster(), TeleportTo(), and UpdateContestedPvP().
| void Player::ResetDailyQuestStatus | ( | ) |
Definition at line 22967 of file Player.cpp.
References m_DailyQuestChanged, m_DFQuests, m_lastDailyQuestTime, PLAYER_FIELD_DAILY_QUESTS_1, PLAYER_MAX_DAILY_QUESTS, and Object::SetUInt32Value().
| void Player::ResetInstances | ( | uint8 | method, |
| bool | isRaid | ||
| ) |
Reset all solo instances and optionally send a message on success for each.
Definition at line 20128 of file Player.cpp.
References InstanceSave::CanReset(), InstanceSave::DeleteFromDB(), DUNGEON_DIFFICULTY_HEROIC, GetDungeonDifficultyID(), InstanceSave::GetInstanceId(), InstanceSave::GetMapId(), GetRaidDifficultyID(), INSTANCE_RESET_ALL, INSTANCE_RESET_CHANGE_DIFFICULTY, MapEntry::InstanceType, Map::IsDungeon(), MapEntry::IsRaid(), m_boundInstances, MAP_RAID, InstanceSave::RemovePlayer(), InstanceMap::Reset(), SendResetInstanceSuccess(), sMapMgr, sMapStore, and Map::ToInstanceMap().
Referenced by Group::AddMember(), WorldSession::HandleResetInstancesOpcode(), WorldSession::HandleSetDungeonDifficultyOpcode(), and WorldSession::HandleSetRaidDifficultyOpcode().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 25505 of file Player.cpp.
References WorldObject::GetMap(), GetMapRef(), WorldObject::ResetMap(), Reference< TO, FROM >::unlink(), and Map::UpdateIteratorBack().
Referenced by WorldSession::HandleMoveWorldportAck().
| void Player::ResetMonthlyQuestStatus | ( | ) |
Definition at line 23014 of file Player.cpp.
References m_MonthlyQuestChanged, and m_monthlyquests.
| void Player::ResetPetTalents | ( | ) |
Definition at line 9161 of file Player.cpp.
References Unit::GetCharmInfo(), Object::GetGUID(), GetPet(), Pet::getPetType(), HUNTER_PET, Pet::m_usedTalentCount, Pet::resetTalents(), SendTalentsInfoData(), TC_LOG_ERROR, and ObjectGuid::ToString().
Referenced by npc_pet_trainer::npc_pet_trainerAI::OnGossipSelect(), and OnGossipSelect().
| void Player::ResetSeasonalQuestStatus | ( | uint16 | event_id, |
| time_t | eventStartTime | ||
| ) |
Definition at line 22989 of file Player.cpp.
References m_SeasonalQuestChanged, and m_seasonalquests.
| void Player::ResetSpells | ( | bool | myClassOnly = false | ) |
Definition at line 22642 of file Player.cpp.
References AT_LOGIN_RESET_SPELLS, Unit::GetClass(), SpellInfo::GetFirstRankSpell(), GetSpellMap(), GetTalentSpellCost(), 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 | involuntarily = false | ) |
Definition at line 3735 of file Player.cpp.
References _SaveSpells(), _SaveTalents(), AT_LOGIN_RESET_TALENTS, CalculateTalentsPoints(), CharacterDatabase, TalentTabEntry::ClassMask, GetActiveTalentGroup(), Unit::GetClassMask(), SpellInfo::GetEffects(), GetTalentMap(), GetUsedTalentCount(), HasAtLoginFlag(), MAX_TALENT_RANK, PET_SAVE_NOT_IN_SLOT, PLAYERSPELL_REMOVED, RemoveAtLoginFlag(), RemovePet(), RemoveSpell(), SendDirectMessage(), SetFreeTalentPoints(), SPELL_EFFECT_LEARN_SPELL, TalentEntry::SpellRank, sScriptMgr, sSpellMgr, sTalentStore, sTalentTabStore, and TalentEntry::TabID.
Referenced by WorldSession::HandlePlayerLogin(), reset_commandscript::HandleResetTalentsCommand(), WorldSession::HandleTalentWipeConfirmOpcode(), and InitTalentForLevel().
| void Player::ResetWeeklyQuestStatus | ( | ) |
Definition at line 22979 of file Player.cpp.
References m_WeeklyQuestChanged, and m_weeklyquests.
| void Player::RestoreBaseRune | ( | uint8 | index | ) |
Definition at line 24378 of file Player.cpp.
References RuneInfo::ConvertAuras, ConvertRune(), Trinity::Containers::EraseIf(), GetBaseRune(), m_runes, MAX_RUNES, Runes::runes, SPELL_ATTR0_PASSIVE, and SPELL_AURA_CONVERT_RUNE.
Referenced by Spell::TakeRunePower().
|
inline |
Definition at line 1863 of file Player.h.
References Unit::SetHealth().
Referenced by DuelResetScript::OnDuelEnd().
|
inline |
Definition at line 1864 of file Player.h.
References POWER_MANA, and Unit::SetPower().
Referenced by DuelResetScript::OnDuelEnd().
| void Player::ResummonPetTemporaryUnSummonedIfAny | ( | ) |
Definition at line 25183 of file Player.cpp.
References Unit::GetPetGUID(), IsPetNeedBeTemporaryUnsummoned(), Pet::LoadPetFromDB(), and m_temporaryUnsummonedPetNumber.
Referenced by Unit::_ExitVehicle(), WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAck(), and Battleground::RemovePlayerAtLeave().
| void Player::ResurrectPlayer | ( | float | restore_percent, |
| bool | applySickness = false |
||
| ) |
Definition at line 4374 of file Player.cpp.
References Unit::AddUnitMovementFlag(), ALIVE, CastAllObtainSpells(), WorldObject::CastSpell(), CONFIG_DEATH_SICKNESS_LEVEL, Unit::GetAura(), GetBattleground(), Object::GetGUID(), Unit::GetLevel(), Unit::GetMaxHealth(), Unit::GetMaxPower(), Unit::GetRace(), GetSession(), WorldObject::GetZoneAndAreaId(), Unit::HasUnitState(), IN_MILLISECONDS, InBattleground(), m_deathTimer, WorldPackets::Misc::DeathReleaseLoc::MapID, MINUTE, MOVEMENTFLAG_WATERWALKING, PLAYER_FLAGS, PLAYER_FLAGS_IS_OUT_OF_BOUNDS, POWER_ENERGY, POWER_MANA, POWER_RAGE, Unit::RemoveAurasDueToSpell(), Object::RemoveFlag(), ChrRacesEntry::ResSicknessSpellID, sChrRacesStore, WorldSession::SendPacket(), setDeathState(), Object::SetDynamicFlag(), Unit::SetHealth(), Unit::SetPower(), Unit::SetRooted(), Unit::SetWaterWalking(), sOutdoorPvPMgr, sWorld, UNIT_DYNFLAG_REFER_A_FRIEND, UNIT_STATE_STUNNED, UpdateObjectVisibility(), UpdateZone(), and WorldPackets::Misc::DeathReleaseLoc::Write().
Referenced by Battleground::_ProcessResurrect(), Spell::EffectSelfResurrect(), Battleground::EndBattleground(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleBattleFieldPortOpcode(), group_commandscript::HandleGroupReviveCommand(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandleReclaimCorpse(), misc_commandscript::HandleReviveCommand(), LoadCorpse(), Battleground::RemovePlayerAtLeave(), BfGraveyard::Resurrect(), ResurrectUsingRequestDataImpl(), WorldSession::SendSpiritResurrect(), and TeleportTo().
| void Player::ResurrectUsingRequestData | ( | ) |
Definition at line 23679 of file Player.cpp.
References _resurrectionData, WorldObject::CastSpell(), DELAYED_RESURRECT_PLAYER, IsBeingTeleported(), RemoveGhoul(), ResurrectUsingRequestDataImpl(), ScheduleDelayedOperation(), and TeleportTo().
Referenced by WorldSession::HandleResurrectResponse().
| void Player::ResurrectUsingRequestDataImpl | ( | ) |
Definition at line 23701 of file Player.cpp.
References _resurrectionData, POWER_ENERGY, POWER_MANA, POWER_RAGE, ResurrectPlayer(), Unit::SetFullPower(), Unit::SetHealth(), Unit::SetPower(), and SpawnCorpseBones().
Referenced by ProcessDelayedOperations(), and ResurrectUsingRequestData().
| void Player::ResyncRunes | ( | ) | const |
Definition at line 24436 of file Player.cpp.
References CLASS_DEATH_KNIGHT, WorldPackets::Spells::ResyncRune::Cooldown, WorldPackets::Spells::ResyncRunes::Count, Unit::GetClass(), GetCurrentRune(), GetRuneCooldown(), MAX_RUNES, RUNE_BASE_COOLDOWN, WorldPackets::Spells::ResyncRunes::Runes, WorldPackets::Spells::ResyncRune::RuneType, SendDirectMessage(), and WorldPackets::Spells::ResyncRunes::Write().
Referenced by SendInitialPacketsBeforeAddToMap(), and SetRuneCooldown().
| bool Player::RewardHonor | ( | Unit * | victim, |
| uint32 | groupsize, | ||
| int32 | honor = -1, |
||
| bool | pvptoken = false |
||
| ) |
Calculate the amount of honor gained based on the victim and the size of the group for which the honor is divided An exact honor value can also be given (overriding the calcs)
Definition at line 6525 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_EARN_HONORABLE_KILL, ACHIEVEMENT_CRITERIA_TYPE_HK_CLASS, ACHIEVEMENT_CRITERIA_TYPE_HK_RACE, ACHIEVEMENT_CRITERIA_TYPE_HONORABLE_KILL, ACHIEVEMENT_CRITERIA_TYPE_HONORABLE_KILL_AT_AREA, ACHIEVEMENT_CRITERIA_TYPE_SPECIAL_PVP_KILL, AddItem(), AddPct(), Object::ApplyModUInt16Value(), Object::ApplyModUInt32Value(), CONFIG_PVP_TOKEN_COUNT, CONFIG_PVP_TOKEN_ENABLE, CONFIG_PVP_TOKEN_ID, CONFIG_PVP_TOKEN_MAP_TYPE, WorldObject::GetAreaId(), GetBattleground(), GetBGTeam(), Object::GetByteValue(), Unit::GetClass(), Trinity::XP::GetGrayLevel(), Object::GetGUID(), Unit::GetLevel(), Unit::GetMaxPositiveAuraModifier(), Unit::GetRace(), GetSession(), GetTeam(), Object::GetTypeId(), Unit::HasAura(), Unit::HasAuraType(), Trinity::Honor::hk_honor_at_level_f(), InArena(), InBattleground(), Unit::IsFFAPvP(), Creature::IsRacialLeader(), ModifyHonorPoints(), PLAYER_FIELD_BYTES, PLAYER_FIELD_BYTES_OFFSET_LIFETIME_MAX_PVP_RANK, PLAYER_FIELD_KILLS, PLAYER_FIELD_KILLS_OFFSET_TODAY_KILLS, PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, PLAYER_FIELD_TODAY_CONTRIBUTION, ChatHandler::PSendSysMessage(), RATE_HONOR, SCORE_BONUS_HONOR, SendDirectMessage(), SMSG_PVP_CREDIT, SPELL_AURA_MOD_HONOR_GAIN_PCT, SPELL_AURA_NO_PVP_CREDIT, SPELL_AURA_PLAYER_INACTIVE, sWorld, Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, UpdateAchievementCriteria(), and UpdateHonorFields().
Referenced by KillRewarder::_RewardHonor(), DuelComplete(), Spell::EffectAddHonor(), OutdoorPvPSI::HandleAreaTrigger(), honor_commandscript::HandleHonorAddCommand(), honor_commandscript::HandleHonorAddKillCommand(), RewardQuest(), and Battleground::UpdatePlayerScore().
| void Player::RewardPlayerAndGroupAtEvent | ( | uint32 | creature_id, |
| WorldObject * | pRewardSource | ||
| ) |
Definition at line 23611 of file Player.cpp.
References ObjectGuid::Empty, GetCorpse(), GetGroup(), Object::GetGUID(), Object::GetTypeId(), Unit::IsAlive(), IsAtGroupRewardDistance(), KilledMonsterCredit(), GroupReference::next(), and TYPEID_UNIT.
Referenced by Spell::EffectKillCredit(), and SmartAI::StopFollow().
| void Player::RewardPlayerAndGroupAtKill | ( | Unit * | victim, |
| bool | isBattleGround | ||
| ) |
Definition at line 23606 of file Player.cpp.
References KillRewarder::Reward().
Referenced by Unit::Kill(), and Battleground::RewardXPAtKill().
| void Player::RewardQuest | ( | Quest const * | quest, |
| uint32 | reward, | ||
| Object * | questGiver, | ||
| bool | announce = true |
||
| ) |
Definition at line 14862 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_DAILY_QUEST, ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_DAILY_QUEST_DAILY, ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST, ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST_COUNT, ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUESTS_IN_ZONE, ACHIEVEMENT_CRITERIA_TYPE_MONEY_FROM_QUEST_REWARD, AddQuestRewardedTalentCount(), ASSERT_NOTNULL, BIND_QUEST_ITEM, Quest::CalculateHonorGain(), Quest::CanIncreaseRewardedQuestCounters(), CanStoreNewItem(), WorldObject::CastSpell(), CharacterDatabase, DestroyItemCount(), EQUIP_ERR_OK, FindQuestSlot(), GenerateItemRandomPropertyId(), Quest::GetBonusTalents(), Object::GetGUID(), Unit::GetLevel(), WorldObject::GetMap(), Quest::GetQuestId(), GetQuestXPReward(), Quest::GetRewArenaPoints(), Quest::GetRewChoiceItemsCount(), Quest::GetRewDisplaySpell(), Quest::GetRewItemsCount(), Quest::GetRewMailDelaySecs(), Quest::GetRewMailSenderEntry(), Quest::GetRewMailTemplateId(), Quest::GetRewOrReqMoney(), Quest::GetRewSpell(), Quest::GetRewTitle(), Quest::GetZoneOrSort(), GiveXP(), SpellInfo::HasEffect(), Quest::HasFlag(), HasPvPForcingQuest(), HasQuestForItem(), InitTalentForLevel(), Quest::IsDaily(), Quest::IsDFQuest(), PvPInfo::IsHostile, PvPInfo::IsInHostileArea, IsMaxLevel(), Quest::IsMonthly(), Quest::IsRepeatable(), Quest::IsSeasonal(), SpellInfo::IsSelfCast(), Object::IsUnit(), Quest::IsWeekly(), Quest::ItemDrop, Quest::ItemDropQuantity, MAIL_CHECK_MASK_HAS_BODY, MAX_QUEST_LOG_SIZE, ModifyArenaPoints(), ModifyMoney(), NULL_BAG, NULL_SLOT, pvpInfo, QUEST_FLAGS_FLAGS_PVP, QUEST_ITEM_DROP_COUNT, QUEST_ITEM_OBJECTIVES_COUNT, RemoveActiveQuest(), RemoveTimedQuest(), Quest::RequiredItemCount, Quest::RequiredItemId, Quest::RewardChoiceItemCount, Quest::RewardChoiceItemId, RewardHonor(), Quest::RewardItemCount, Quest::RewardItemId, RewardReputation(), SaveToDB(), sCharTitlesStore, SendItemRetrievalMail(), MailDraft::SendMailTo(), SendNewItem(), SendQuestGiverStatusMultiple(), SendQuestReward(), SendQuestUpdate(), SetCanDelayTeleport(), SetDailyQuestStatus(), SetMonthlyQuestStatus(), SetQuestSlot(), SetRewardedQuest(), SetSeasonalQuestStatus(), SetTitle(), SetWeeklyQuestStatus(), sObjectMgr, SPELL_EFFECT_CREATE_ITEM, SPELL_EFFECT_LEARN_SPELL, sScriptMgr, sSpellMgr, StoreNewItem(), UpdateAchievementCriteria(), and UpdatePvPState().
Referenced by CompleteQuest(), lfg::LFGMgr::FinishDungeon(), WorldSession::HandleQuestgiverChooseRewardOpcode(), and quest_commandscript::HandleQuestReward().
| void Player::RewardReputation | ( | Quest const * | quest | ) |
Definition at line 6442 of file Player.cpp.
References CalculateReputationGain(), GetQuestLevel(), GetReputationMgr(), GetTeamId(), 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::RewardFactionId, Quest::RewardFactionOverride, Quest::RewardFactionValue, sFactionStore, and sQuestFactionRewardStore.
| void Player::RewardReputation | ( | Unit * | victim, |
| float | rate | ||
| ) |
Definition at line 6392 of file Player.cpp.
References ALLIANCE, CalculateReputationGain(), CreatureTemplate::Entry, GetChampioningFaction(), Creature::GetCreatureTemplate(), Map::GetDifficultyID(), Map::GetId(), Unit::GetLevel(), GetLFGDungeon(), WorldObject::GetMap(), ReputationMgr::GetRank(), GetReputationMgr(), GetTeam(), Object::GetTypeId(), HORDE, Map::IsNonRaidDungeon(), Creature::IsReputationGainDisabled(), ReputationMgr::ModifyReputation(), ReputationOnKillEntry::RepFaction1, ReputationOnKillEntry::RepFaction2, REPUTATION_SOURCE_KILL, ReputationOnKillEntry::ReputationMaxCap1, ReputationOnKillEntry::ReputationMaxCap2, ReputationOnKillEntry::RepValue1, ReputationOnKillEntry::RepValue2, sFactionStore, sObjectMgr, ReputationOnKillEntry::TeamDependent, Object::ToCreature(), and TYPEID_PLAYER.
Referenced by KillRewarder::_RewardReputation(), and RewardQuest().
| bool Player::Satisfy | ( | AccessRequirement const * | ar, |
| uint32 | target_map, | ||
| bool | report = false |
||
| ) |
Definition at line 18788 of file Player.cpp.
References AccessRequirement::achievement, ALLIANCE, ASSERT_NOTNULL, CONFIG_INSTANCE_IGNORE_LEVEL, DISABLE_TYPE_MAP, ObjectAccessor::FindPlayer(), GetDifficultyID(), Group::GetDifficultyID(), GetDownscaledMapDifficultyData(), GetGroup(), Object::GetGUID(), Group::GetLeaderGUID(), Unit::GetLevel(), GetQuestRewardStatus(), GetSession(), GetTeam(), HasAchieved(), HasItemCount(), HORDE, DisableMgr::IsDisabledFor(), IsGameMaster(), AccessRequirement::item, AccessRequirement::item2, LANG_INSTANCE_CLOSED, LANG_LEVEL_MINREQUIRED, LANG_LEVEL_MINREQUIRED_AND_ITEM, AccessRequirement::levelMax, AccessRequirement::levelMin, MapDifficultyEntry::Message, ChatHandler::PSendSysMessage(), AccessRequirement::quest_A, AccessRequirement::quest_H, AccessRequirement::questFailedText, WorldSession::SendAreaTriggerMessage(), SendTransferAborted(), sMapStore, sObjectMgr, sWorld, and TRANSFER_ABORT_DIFFICULTY.
Referenced by MapManager::PlayerCannotEnter().
| bool Player::SatisfyQuestBreadcrumbQuest | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15274 of file Player.cpp.
References CanTakeQuest(), Quest::GetBreadcrumbForQuestId(), Object::GetGUID(), WorldObject::GetName(), Quest::GetQuestId(), INVALIDREASON_DONT_HAVE_REQ, SendCanTakeQuestResponse(), sObjectMgr, TC_LOG_DEBUG, and Position::ToString().
Referenced by SatisfyQuestDependentQuests().
| bool Player::SatisfyQuestClass | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15319 of file Player.cpp.
References Quest::GetAllowableClasses(), Unit::GetClassMask(), Object::GetGUID(), WorldObject::GetName(), Quest::GetQuestId(), INVALIDREASON_DONT_HAVE_REQ, SendCanTakeQuestResponse(), TC_LOG_DEBUG, and Position::ToString().
Referenced by CanSeeStartQuest(), CanTakeQuest(), and learn_commandscript::HandleLearnMyQuestsCommand().
| bool Player::SatisfyQuestConditions | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15428 of file Player.cpp.
References CONDITION_SOURCE_TYPE_QUEST_AVAILABLE, Object::GetGUID(), WorldObject::GetName(), Quest::GetQuestId(), INVALIDREASON_DONT_HAVE_REQ, sConditionMgr, SendCanTakeQuestResponse(), TC_LOG_DEBUG, and Position::ToString().
Referenced by CanTakeQuest().
| bool Player::SatisfyQuestDay | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15504 of file Player.cpp.
References Quest::GetQuestId(), Object::GetUInt32Value(), INVALIDREASON_DAILY_QUESTS_REMAINING, Quest::IsDaily(), Quest::IsDFQuest(), m_DFQuests, PLAYER_FIELD_DAILY_QUESTS_1, PLAYER_MAX_DAILY_QUESTS, SendCanTakeQuestResponse(), and TC_LOG_DEBUG.
Referenced by CanRewardQuest(), CanSeeStartQuest(), CanTakeQuest(), WorldSession::HandlePushQuestToParty(), and SatisfyQuestExclusiveGroup().
| bool Player::SatisfyQuestDependentBreadcrumbQuests | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15298 of file Player.cpp.
References Quest::DependentBreadcrumbQuests, Object::GetGUID(), WorldObject::GetName(), Quest::GetQuestId(), GetQuestStatus(), INVALIDREASON_DONT_HAVE_REQ, 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 15216 of file Player.cpp.
References ASSERT, Quest::DependentPreviousQuests, Quest::GetExclusiveGroup(), Object::GetGUID(), WorldObject::GetName(), Quest::GetQuestId(), INVALIDREASON_DONT_HAVE_REQ, IsQuestRewarded(), SendCanTakeQuestResponse(), sObjectMgr, TC_LOG_DEBUG, and Position::ToString().
Referenced by SatisfyQuestDependentQuests().
| bool Player::SatisfyQuestDependentQuests | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15183 of file Player.cpp.
References SatisfyQuestBreadcrumbQuest(), SatisfyQuestDependentBreadcrumbQuests(), SatisfyQuestDependentPreviousQuests(), and SatisfyQuestPreviousQuest().
Referenced by CanSeeStartQuest(), and CanTakeQuest().
| bool Player::SatisfyQuestExclusiveGroup | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15459 of file Player.cpp.
References ASSERT, Quest::GetExclusiveGroup(), Object::GetGUID(), WorldObject::GetName(), Quest::GetQuestId(), GetQuestRewardStatus(), GetQuestStatus(), INVALIDREASON_DONT_HAVE_REQ, Quest::IsRepeatable(), QUEST_STATUS_NONE, SatisfyQuestDay(), SatisfyQuestSeasonal(), SatisfyQuestWeek(), SendCanTakeQuestResponse(), sObjectMgr, TC_LOG_DEBUG, and Position::ToString().
Referenced by CanSeeStartQuest(), and CanTakeQuest().
| bool Player::SatisfyQuestLevel | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15143 of file Player.cpp.
References Object::GetGUID(), Unit::GetLevel(), Quest::GetMaxLevel(), Quest::GetMinLevel(), WorldObject::GetName(), Quest::GetQuestId(), INVALIDREASON_DONT_HAVE_REQ, INVALIDREASON_QUEST_FAILED_LOW_LEVEL, SendCanTakeQuestResponse(), TC_LOG_DEBUG, and Position::ToString().
Referenced by CanRewardQuest(), CanTakeQuest(), and GetQuestDialogStatus().
| bool Player::SatisfyQuestLog | ( | bool | msg | ) | const |
Definition at line 15169 of file Player.cpp.
References FindQuestSlot(), MAX_QUEST_LOG_SIZE, SendDirectMessage(), and SMSG_QUESTLOG_FULL.
Referenced by CanAddQuest(), and WorldSession::HandlePushQuestToParty().
| bool Player::SatisfyQuestMonth | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15563 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 15189 of file Player.cpp.
References Object::GetGUID(), WorldObject::GetName(), Quest::GetPrevQuestId(), Quest::GetQuestId(), GetQuestStatus(), INVALIDREASON_DONT_HAVE_REQ, m_RewardedQuests, 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 15341 of file Player.cpp.
References Quest::GetAllowableRaces(), Object::GetGUID(), WorldObject::GetName(), Quest::GetQuestId(), Unit::GetRaceMask(), INVALIDREASON_QUEST_FAILED_WRONG_RACE, SendCanTakeQuestResponse(), TC_LOG_DEBUG, and Position::ToString().
Referenced by CanSeeStartQuest(), and CanTakeQuest().
| bool Player::SatisfyQuestReputation | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15360 of file Player.cpp.
References Object::GetGUID(), WorldObject::GetName(), Quest::GetQuestId(), Quest::GetRepObjectiveFaction2(), Quest::GetRepObjectiveValue2(), GetReputation(), GetReputationMgr(), Quest::GetRequiredMaxRepFaction(), Quest::GetRequiredMaxRepValue(), Quest::GetRequiredMinRepFaction(), Quest::GetRequiredMinRepValue(), INVALIDREASON_DONT_HAVE_REQ, SendCanTakeQuestResponse(), TC_LOG_DEBUG, and Position::ToString().
Referenced by CanRewardQuest(), CanSeeStartQuest(), and CanTakeQuest().
| bool Player::SatisfyQuestSeasonal | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15550 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 15119 of file Player.cpp.
References Object::GetGUID(), WorldObject::GetName(), Quest::GetQuestId(), Quest::GetRequiredSkill(), Quest::GetRequiredSkillValue(), GetSkillValue(), INVALIDREASON_DONT_HAVE_REQ, 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 15402 of file Player.cpp.
References Object::GetGUID(), WorldObject::GetName(), Quest::GetQuestId(), GetQuestStatus(), INVALIDREASON_QUEST_ALREADY_DONE, INVALIDREASON_QUEST_ALREADY_ON, 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 15444 of file Player.cpp.
References Object::GetGUID(), WorldObject::GetName(), Quest::GetQuestId(), Quest::HasSpecialFlag(), INVALIDREASON_QUEST_ONLY_ONE_TIMED, m_timedquests, QUEST_SPECIAL_FLAGS_TIMED, SendCanTakeQuestResponse(), TC_LOG_DEBUG, and Position::ToString().
Referenced by CanTakeQuest().
| bool Player::SatisfyQuestWeek | ( | Quest const * | qInfo, |
| bool | msg | ||
| ) | const |
Definition at line 15541 of file Player.cpp.
References Quest::GetQuestId(), Quest::IsWeekly(), and m_weeklyquests.
Referenced by CanRewardQuest(), CanSeeStartQuest(), CanTakeQuest(), and SatisfyQuestExclusiveGroup().
| void Player::SaveGoldToDB | ( | CharacterDatabaseTransaction | trans | ) | const |
Definition at line 19322 of file Player.cpp.
References CHAR_UPD_CHAR_MONEY, CharacterDatabase, Object::GetGUID(), GetMoney(), and PreparedStatementBase::setUInt32().
Referenced by WorldSession::HandleMailTakeMoney(), Guild::HandleMemberDepositMoney(), Guild::HandleMemberWithdrawMoney(), and SaveInventoryAndGoldToDB().
|
inline |
Definition at line 1861 of file Player.h.
References Unit::GetHealth().
Referenced by DuelResetScript::OnDuelStart().
| void Player::SaveInventoryAndGoldToDB | ( | CharacterDatabaseTransaction | trans | ) |
Definition at line 19316 of file Player.cpp.
References _SaveInventory(), and SaveGoldToDB().
Referenced by WorldSession::HandleAcceptTradeOpcode(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleMailTakeItem(), WorldSession::HandleOpenWrappedItemCallback(), WorldSession::HandleSendMail(), and RefundItem().
|
inline |
Definition at line 1862 of file Player.h.
References Unit::GetPower(), and POWER_MANA.
Referenced by DuelResetScript::OnDuelStart().
|
static |
Definition at line 20047 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::setUInt32().
Referenced by tele_commandscript::DoNameTeleport(), WorldSession::HandleCharRaceOrFactionChangeCallback(), misc_commandscript::HandleSummonCommand(), and tele_commandscript::HandleTeleNameCommand().
|
inline |
Definition at line 2065 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::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 18989 of file Player.cpp.
References CharacterDatabase, and SaveToDB().
Referenced by misc_commandscript::HandleFreezeCommand(), group_commandscript::HandleGroupReviveCommand(), misc_commandscript::HandleReviveCommand(), misc_commandscript::HandleSaveCommand(), WorldSession::LogoutPlayer(), ProcessDelayedOperations(), RewardQuest(), SaveToDB(), SpawnCorpseBones(), and Update().
| void Player::SaveToDB | ( | CharacterDatabaseTransaction | trans, |
| bool | create = false |
||
| ) |
Insert query
Definition at line 18998 of file Player.cpp.
References _SaveActions(), _SaveAuras(), _SaveBGData(), _SaveDailyQuestStatus(), _SaveEquipmentSets(), _SaveGlyphs(), _SaveInventory(), _SaveMail(), _SaveMonthlyQuestStatus(), _SaveQuestStatus(), _SaveSeasonalQuestStatus(), _SaveSkills(), _SaveSpells(), _SaveStats(), _SaveTalents(), _SaveWeeklyQuestStatus(), CHAR_DEL_CHAR_FISHINGSTEPS, CHAR_INS_CHAR_FISHINGSTEPS, CHAR_INS_CHARACTER, CHAR_UPD_CHARACTER, CharacterDatabase, CONFIG_INTERVAL_SAVE, CONFIG_STATS_SAVE_ONLY_ON_LOGOUT, DELAYED_SAVE_PLAYER, EQUIPMENT_SLOT_END, GetActiveTalentGroup(), GetArenaPoints(), GetBankBagSlotCount(), Object::GetByteValue(), Unit::GetClass(), ObjectGuid::GetCounter(), GetDrunkValue(), GetDungeonDifficultyID(), GetFaceId(), GetFacialStyle(), GameTime::GetGameTime(), Object::GetGUID(), Object::GetGUID(), GetHairColorId(), GetHairStyleId(), Unit::GetHealth(), GetHonorPoints(), WorldObject::GetInstanceId(), GetItemByPos(), WorldSession::GetLatency(), Unit::GetLevel(), WorldLocation::GetMapId(), GetMoney(), WorldObject::GetName(), GetNativeGender(), Position::GetOrientation(), GetPet(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::GetPower(), Unit::GetRace(), GetRaidDifficultyID(), GetRestState(), GetSession(), GetSkinId(), Unit::GetSpellHistory(), GetTalentGroupsCount(), GetTalentResetCost(), GetTalentResetTime(), GetTeleportDest(), WorldObject::GetTransOffsetO(), WorldObject::GetTransOffsetX(), WorldObject::GetTransOffsetY(), WorldObject::GetTransOffsetZ(), WorldObject::GetTransport(), Object::GetUInt16Value(), Object::GetUInt32Value(), Object::GetUInt64Value(), GetXP(), WorldObject::GetZoneId(), Object::HasFlag(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, IsBeingTeleported(), IsBeingTeleportedFar(), Object::IsInWorld(), WorldSession::isLogingOut(), KNOWN_TITLES_SIZE, m_achievementMgr, m_atLoginFlags, m_cinematic, m_deathExpireTime, m_ExtraFlags, m_fishingSteps, m_grantableLevels, m_mailsUpdated, WorldObject::m_name, m_nextSave, m_petStable, m_Played_time, m_reputationMgr, m_rest_bonus, m_session, m_taxi, MAX_POWERS, outDebugValues(), PET_SAVE_AS_CURRENT, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER__FIELD_KNOWN_TITLES, PLAYER_AMMO_ID, PLAYER_CHOSEN_TITLE, PLAYER_EXPLORED_ZONES_1, PLAYER_EXPLORED_ZONES_SIZE, PLAYER_FIELD_BYTES, PLAYER_FIELD_BYTES_OFFSET_ACTION_BAR_TOGGLES, PLAYER_FIELD_KILLS, PLAYER_FIELD_KILLS_OFFSET_TODAY_KILLS, PLAYER_FIELD_KILLS_OFFSET_YESTERDAY_KILLS, PLAYER_FIELD_KNOWN_CURRENCIES, PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, PLAYER_FIELD_TODAY_CONTRIBUTION, PLAYER_FIELD_WATCHED_FACTION_INDEX, PLAYER_FIELD_YESTERDAY_CONTRIBUTION, PLAYER_FLAGS, PLAYER_FLAGS_RESTING, PLAYER_VISIBLE_ITEM_1_ENTRYID, WorldSession::PlayerLogout(), WorldSession::SaveInstanceTimeRestrictions(), PlayerTaxi::SaveTaxiDestinationsToString(), AchievementMgr::SaveToDB(), ReputationMgr::SaveToDB(), SpellHistory::SaveToDB(), WorldSession::SaveTutorialsData(), ScheduleDelayedOperation(), PreparedStatementBase::setFloat(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), sScriptMgr, sWorld, TC_LOG_DEBUG, and UpdateHonorFields().
|
overridevirtual |
Handles said message in regular chat based on declared language and in config pre-defined Range.
Reimplemented from Unit.
Definition at line 20461 of file Player.cpp.
References CHAT_MSG_SAY, CONFIG_LISTEN_RANGE_SAY, WorldPackets::Chat::Chat::Initialize(), SendMessageToSetInRange(), sScriptMgr, sWorld, and WorldPackets::Chat::Chat::Write().
Referenced by WorldSession::HandleChatMessage().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 20471 of file Player.cpp.
References CHAT_MSG_SAY, CONFIG_LISTEN_RANGE_SAY, and sWorld.
|
inlineprivate |
Definition at line 2519 of file Player.h.
References DELAYED_END.
Referenced by LeaveBattleground(), ResurrectUsingRequestData(), SaveToDB(), and TeleportToBGEntryPoint().
| void Player::SendActionButtons | ( | uint32 | state | ) | const |
Definition at line 5998 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::SendAttackSwingBadFacingAttack | ( | ) | const |
Definition at line 20082 of file Player.cpp.
References SendDirectMessage().
Referenced by Update().
| void Player::SendAttackSwingCancelAttack | ( | ) | const |
Definition at line 20067 of file Player.cpp.
References SendDirectMessage().
Referenced by Unit::CombatStop(), spell_hun_scatter_shot::HandleDummy(), and Unit::StopAttackFaction().
| void Player::SendAttackSwingCantAttack | ( | ) | const |
Definition at line 20062 of file Player.cpp.
References SendDirectMessage().
Referenced by Update().
| void Player::SendAttackSwingDeadTarget | ( | ) | const |
Definition at line 20072 of file Player.cpp.
References SendDirectMessage().
| void Player::SendAttackSwingNotInRange | ( | ) | const |
Definition at line 20077 of file Player.cpp.
References SendDirectMessage().
Referenced by Update().
| void Player::SendAurasForTarget | ( | Unit * | target, |
| bool | force = false |
||
| ) | const |
Definition at line 22885 of file Player.cpp.
References WorldPackets::Spells::AuraUpdateAll::Auras, Object::GetGUID(), Unit::GetVisibleAuras(), SendDirectMessage(), WorldPackets::Spells::AuraUpdateAll::UnitGUID, and WorldPackets::Spells::AuraUpdateAll::Write().
Referenced by SendInitialVisiblePackets(), and Map::SendInitSelf().
| void Player::SendAutoRepeatCancel | ( | Unit * | target | ) |
Definition at line 20087 of file Player.cpp.
References Object::GetPackGUID(), WorldPackets::Combat::CancelAutoRepeat::Guid, SendMessageToSet(), and WorldPackets::Combat::CancelAutoRepeat::Write().
Referenced by Unit::InterruptSpell().
| void Player::SendBattlefieldWorldStates | ( | ) | const |
Send misc stuff that needs to be sent on every login, like the battle timers.
Definition at line 9120 of file Player.cpp.
References BATTLEFIELD_BATTLEID_WG, CONFIG_WINTERGRASP_ENABLE, GameTime::GetGameTime(), sBattlefieldMgr, SendUpdateWorldState(), sWorld, WS_BATTLEFIELD_WG_ACTIVE, and WS_BATTLEFIELD_WG_TIME_NEXT_BATTLE.
Referenced by SendInitWorldStates().
| void Player::SendBGWeekendWorldStates | ( | ) | const |
Definition at line 9105 of file Player.cpp.
References BattlemasterListEntry::HolidayWorldState, BattlemasterListEntry::ID, BattlegroundMgr::IsBGWeekend(), sBattlemasterListStore, and SendUpdateWorldState().
Referenced by SendInitWorldStates().
| void Player::SendBindPointUpdate | ( | ) |
Definition at line 16866 of file Player.cpp.
References WorldPackets::Misc::BindPointUpdate::BindAreaID, WorldPackets::Misc::BindPointUpdate::BindMapID, WorldPackets::Misc::BindPointUpdate::BindPosition, m_homebindAreaId, m_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, SendDirectMessage(), and WorldPackets::Misc::BindPointUpdate::Write().
Referenced by Spell::EffectBind(), and SendInitialPacketsBeforeAddToMap().
Definition at line 13119 of file Player.cpp.
References ObjectGuid::Empty, Object::GetGUID(), SendDirectMessage(), and SMSG_BUY_FAILED.
Referenced by BuyItemFromVendorSlot(), WorldSession::HandleBuybackItem(), debug_commandscript::HandleDebugSendBuyErrorCommand(), WorldSession::HandlePetitionBuyOpcode(), OnGossipSelect(), ProcessCastaction(), and ProcessUnlearnAction().
| void Player::SendCanTakeQuestResponse | ( | QuestFailedReason | msg | ) | const |
Definition at line 16580 of file Player.cpp.
References SendDirectMessage(), SMSG_QUESTGIVER_QUEST_INVALID, and TC_LOG_DEBUG.
Referenced by debug_commandscript::HandleDebugSendQuestInvalidMsgCommand(), SatisfyQuestBreadcrumbQuest(), SatisfyQuestClass(), SatisfyQuestConditions(), SatisfyQuestDay(), SatisfyQuestDependentBreadcrumbQuests(), SatisfyQuestDependentPreviousQuests(), SatisfyQuestExclusiveGroup(), SatisfyQuestLevel(), SatisfyQuestPreviousQuest(), SatisfyQuestRace(), SatisfyQuestReputation(), SatisfyQuestSkill(), SatisfyQuestStatus(), and SatisfyQuestTimed().
| void Player::SendCinematicStart | ( | uint32 | CinematicSequenceId | ) | const |
Definition at line 6168 of file Player.cpp.
References _cinematicMgr, WorldPackets::Misc::TriggerCinematic::CinematicID, sCinematicSequencesStore, SendDirectMessage(), CinematicMgr::SetActiveCinematicCamera(), 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 23866 of file Player.cpp.
References GetSession(), WorldPackets::Misc::CorpseReclaimDelay::Remaining, WorldSession::SendPacket(), and WorldPackets::Misc::CorpseReclaimDelay::Write().
Referenced by BuildPlayerRepop(), and KillPlayer().
| void Player::SendDirectMessage | ( | WorldPacket const * | data | ) | const |
Definition at line 6163 of file Player.cpp.
References m_session, and WorldSession::SendPacket().
Referenced by _StoreOrEquipNewItem(), Group::AddMember(), InstanceMap::AddPlayerToMap(), AddRunePower(), AddSpell(), AddSpellMod(), ApplyEquipCooldown(), BindToInstance(), OutdoorPvP::BroadcastPacket(), Group::BroadcastPacket(), Group::BroadcastReadyCheck(), CharmSpellInitialize(), CheckDuelDistance(), ConvertRune(), Object::DestroyForPlayer(), Group::Disband(), DoRandomRoll(), DuelComplete(), Spell::EffectDuel(), Spell::EffectPlayMusic(), Battleground::EndBattleground(), EquipItem(), BGQueueInviteEvent::Execute(), BGQueueRemoveEvent::Execute(), GiveLevel(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleArenaTeamInviteOpcode(), Aura::HandleAuraSpecificMods(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleChatIgnoredOpcode(), debug_commandscript::HandleDebugSendOpcodeCommand(), spell_gen_spirit_healer_res::HandleDummy(), WorldSession::HandleGrantLevel(), WorldSession::HandleGroupDeclineOpcode(), WorldSession::HandleGroupInviteOpcode(), Guild::HandleInviteMember(), modify_commandscript::HandleModifySpellCommand(), WorldSession::HandleTurnInPetitionOpcode(), BattlegroundQueue::InviteGroupToBG(), Unit::Kill(), Pet::learnSpell(), LearnSpell(), Channel::List(), Group::MasterLoot(), Trinity::LocalizedPacketDo< Builder >::operator()(), Trinity::LocalizedPacketListDo< Builder >::operator()(), CreatureTextLocalizer< Builder >::operator()(), InstanceMap::PermBindAllPlayers(), PetSpellInitialize(), WorldObject::PlayDirectMusic(), WorldObject::PlayDirectSound(), WorldObject::PlayDistanceSound(), Battleground::PlayerAddedToBGCheckIfBGIsRunning(), PossessSpellInitialize(), Group::RemoveMember(), RemovePet(), Battleground::RemovePlayerAtLeave(), RemoveSpell(), ReportedAfkBy(), AchievementMgr::Reset(), Pet::resetTalents(), ResetTalents(), Pet::resetTalentsForAllPetsOf(), ResyncRunes(), RewardHonor(), SatisfyQuestLog(), SendActionButtons(), AchievementMgr::SendAllAchievementData(), BattlegroundMgr::SendAreaSpiritHealerQueryOpcode(), Battlefield::SendAreaSpiritHealerQueryOpcode(), SendAttackSwingBadFacingAttack(), SendAttackSwingCancelAttack(), SendAttackSwingCantAttack(), SendAttackSwingDeadTarget(), SendAttackSwingNotInRange(), SendAurasForTarget(), Guild::SendBankList(), BattlegroundMgr::SendBattlegroundList(), SendBindPointUpdate(), SendBuyError(), CalendarMgr::SendCalendarEvent(), SendCanTakeQuestResponse(), Spell::SendCastResult(), SendCinematicStart(), Unit::SendComboPoints(), AchievementMgr::SendCriteriaProgressRemoved(), AchievementMgr::SendCriteriaUpdate(), GameClient::SendDirectMessage(), SendDuelCountdown(), SendDungeonDifficulty(), SendDurabilityLoss(), SendEquipError(), SendEquipmentSetList(), SendExplorationExperience(), Weather::SendFineWeatherUpdateToPlayer(), ReputationMgr::SendForceReactions(), SocialMgr::SendFriendStatus(), SendInitialPacketsAfterAddToMap(), SendInitialPacketsBeforeAddToMap(), ReputationMgr::SendInitialReputations(), SendInitialSpells(), Map::SendInitSelf(), Map::SendInitTransports(), SendInitWorldStates(), Battlefield::SendInitWorldStatesTo(), SendInstanceResetWarning(), SendItemRefundResult(), SendLogXPGain(), SendLoot(), Group::SendLootAllPassed(), SendLootError(), SendLootRelease(), Group::SendLootRoll(), Group::SendLootRollWon(), Group::SendLootStartRoll(), Group::SendLootStartRollToPlayer(), SendMailResult(), Channel::SendMemberCount(), SendMessageToSet(), SendMessageToSetInRange(), SendMessageToSetInRange(), SendMirrorTimer(), Spell::SendMountResult(), Unit::SendMoveKnockBack(), SendMovementSetCollisionHeight(), SendMovieStart(), SendNewItem(), SendNewMail(), CreatureTextMgr::SendNonChatPacket(), SendNotifyLootItemRemoved(), SendNotifyLootMoneyRemoved(), ChannelMgr::SendNotOnChannelNotify(), SendOnCancelExpectedVehicleRideAura(), Group::SendOriginalGroupUpdateToPlayer(), Trinity::MessageDistDeliverer::SendPacket(), Trinity::MessageDistDelivererToHostile::SendPacket(), Unit::SendPetActionFeedback(), Unit::SendPetAIReaction(), Spell::SendPetCastResult(), WorldSession::SendPetitionSigns(), SendPlayerBound(), SendProficiency(), SendPushToPartyResponse(), WorldSession::SendQueryPetNameResponse(), SendQuestComplete(), SendQuestConfirmAccept(), SendQuestFailed(), SendQuestGiverStatusMultiple(), SendQuestReward(), SendQuestTimerFailed(), SendQuestUpdateAddCreatureOrGo(), SendQuestUpdateAddItem(), SendQuestUpdateAddPlayer(), SendRaidDifficulty(), SendRaidInfo(), SendRefundInfo(), SendRemoveControlBar(), Map::SendRemoveTransports(), SendResetFailedNotify(), SendResetInstanceFailed(), SendResetInstanceSuccess(), SendRespecWipeConfirm(), AchievementMgr::SendRespondInspectAchievements(), Spell::SendResurrectRequest(), SendSavedInstances(), SendSellError(), World::SendServerMessage(), PlayerSocial::SendSocialList(), Spell::SendSpellGo(), Trainer::Trainer::SendSpells(), ReputationMgr::SendState(), SendSummonRequestFrom(), SendSupercededSpell(), SendTalentsInfoData(), SendTameFailure(), SendTaxiNodeStatusMultiple(), Trainer::Trainer::SendTeachFailure(), Trainer::Trainer::SendTeachSucceeded(), Unit::SendTeleportPacket(), Item::SendTimeUpdate(), Trinity::VisibleNotifier::SendToSelf(), SendTransferAborted(), BattlegroundSA::SendTransportInit(), BattlegroundSA::SendTransportsRemove(), SendUnlearnSpells(), Item::SendUpdateSockets(), Object::SendUpdateToPlayer(), Group::SendUpdateToPlayer(), SendUpdateWorldState(), ReputationMgr::SendVisible(), Weather::SendWeatherUpdateToPlayer(), Map::SendZoneDynamicInfo(), Map::SendZoneMessage(), Map::SendZoneWeather(), SetBindPoint(), Unit::SetCanFly(), SetClientControl(), Unit::SetDisableGravity(), SetEquipmentSet(), Unit::SetFeatherFall(), Unit::SetHover(), Unit::SetOwnerGUID(), Unit::SetRooted(), Unit::SetStandState(), SetTitle(), SetViewpoint(), Unit::SetWaterWalking(), StopMirrorTimer(), TeleportTo(), Pet::unlearnSpell(), GameObject::Update(), UpdateHomebindTime(), Group::UpdatePlayerOutOfRange(), UpdateTriggerVisibility(), UpdateVisibleGameobjectsOrSpellClicks(), GameObject::Use(), VehicleSpellInitialize(), Whisper(), Unit::Whisper(), Unit::Whisper(), Whisper(), and WhisperAddon().
| void Player::SendDuelCountdown | ( | uint32 | counter | ) |
Definition at line 25856 of file Player.cpp.
References SendDirectMessage(), and SMSG_DUEL_COUNTDOWN.
Referenced by WorldSession::HandleDuelAccepted().
| void Player::SendDungeonDifficulty | ( | bool | changeCurrentDifficuly, |
| bool | changeGroupDifficuly | ||
| ) | const |
Definition at line 20102 of file Player.cpp.
References WorldPackets::Misc::DungeonDifficultySet::ChangeCurrentDifficulyID, WorldPackets::Misc::DungeonDifficultySet::ChangeGroupDifficulyID, WorldPackets::Misc::DungeonDifficultySet::DifficultyID, GetDungeonDifficultyID(), SendDirectMessage(), and WorldPackets::Misc::DungeonDifficultySet::Write().
Referenced by WorldSession::HandlePlayerLogin().
| void Player::SendDurabilityLoss | ( | ) |
Definition at line 4568 of file Player.cpp.
References SendDirectMessage().
Referenced by EnvironmentalDamage().
| void Player::SendEnchantmentDurations | ( | ) |
Definition at line 13841 of file Player.cpp.
References Object::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 13070 of file Player.cpp.
References WorldPackets::Item::InventoryChangeFailure::BagResult, WorldPackets::Item::InventoryChangeFailure::ContainerBSlot, EQUIP_ERR_CANT_EQUIP_LEVEL_I, EQUIP_ERR_EVENT_AUTOEQUIP_BIND_CONFIRM, EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_COUNT_EXCEEDED_IS, EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_EQUIPPED_EXCEEDED_IS, EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_SOCKETED_EXCEEDED_IS, EQUIP_ERR_OK, EQUIP_ERR_PURCHASE_LEVEL_TOO_LOW, Object::GetGUID(), ItemTemplate::GetItemLimitCategory(), ItemTemplate::GetRequiredLevel(), Item::GetTemplate(), WorldPackets::Item::InventoryChangeFailure::Item, WorldPackets::Item::InventoryChangeFailure::Level, WorldPackets::Item::InventoryChangeFailure::LimitCategory, SendDirectMessage(), sObjectMgr, and WorldPackets::Item::InventoryChangeFailure::Write().
Referenced by _StoreOrEquipNewItem(), AutoStoreLoot(), BuyItemFromVendorSlot(), CanAddQuest(), CanRewardQuest(), Spell::CheckItems(), Group::CountTheRoll(), Spell::DoCreateItem(), Spell::EffectRechargeManaGem(), GiveQuestSourceItem(), misc_commandscript::HandleAddItemSetCommand(), WorldSession::HandleAutoBankItemOpcode(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleBuybackItem(), AuraEffect::HandleChannelDeathItem(), debug_commandscript::HandleDebugSendEquipErrorCommand(), WorldSession::HandleDestroyItemOpcode(), WorldSession::HandleEquipmentSetUse(), WorldSession::HandleGuildBankSwapItems(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandleReadItem(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSetAmmoOpcode(), WorldSession::HandleSocketOpcode(), WorldSession::HandleSplitItemOpcode(), WorldSession::HandleSwapInvItemOpcode(), WorldSession::HandleSwapItem(), WorldSession::HandleUseItemOpcode(), WorldSession::HandleWrapItemOpcode(), ModifyMoney(), item_only_for_flight::OnUse(), item_petrov_cluster_bombs::OnUse(), item_captured_frog::OnUse(), ProcessUnlearnAction(), SetAmmo(), SplitItem(), StoreLootItem(), SwapItem(), and TakeQuestSourceItem().
| void Player::SendEquipmentSetList | ( | ) |
Definition at line 25356 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 20094 of file Player.cpp.
References SendDirectMessage(), and SMSG_EXPLORATION_EXPERIENCE.
Referenced by CheckAreaExplore().
|
inline |
Definition at line 1562 of file Player.h.
Referenced by SendInitialPacketsBeforeAddToMap().
| void Player::SendInitialPacketsAfterAddToMap | ( | ) |
Definition at line 22470 of file Player.cpp.
References WorldObject::CastSpell(), ClearQuestSharingInfo(), Object::GetGUID(), Unit::GetMovementCounterAndInc(), Object::GetPackGUID(), GetPlayerSharingQuest(), GetSession(), GetSharedQuestID(), WorldObject::GetZoneAndAreaId(), Unit::HasAuraType(), Unit::HasUnitState(), PlayerTalkClass, ByteBuffer::put(), WorldSession::ResetTimeSync(), SendDirectMessage(), SendEnchantmentDurations(), SendItemDurations(), PlayerMenu::SendQuestGiverQuestDetails(), SendQuestGiverStatusMultiple(), SendTaxiNodeStatusMultiple(), WorldSession::SendTimeSync(), SetClientControl(), ByteBuffer::size(), SMSG_FORCE_MOVE_ROOT, SMSG_MOVE_FEATHER_FALL, SMSG_MOVE_SET_CAN_FLY, SMSG_MOVE_SET_HOVER, SMSG_MOVE_WATER_WALK, SMSG_MULTIPLE_MOVES, sObjectMgr, SPELL_AURA_FEATHER_FALL, SPELL_AURA_FLY, SPELL_AURA_HOVER, SPELL_AURA_MOD_CONFUSE, SPELL_AURA_MOD_FEAR, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, SPELL_AURA_MOD_ROOT, SPELL_AURA_MOD_STUN, SPELL_AURA_WATER_WALK, UNIT_STATE_CONFUSED, UNIT_STATE_FLEEING, UpdateVisibilityForPlayer(), and UpdateZone().
Referenced by WorldSession::HandleMoveWorldportAck(), and WorldSession::HandlePlayerLogin().
| void Player::SendInitialPacketsBeforeAddToMap | ( | ) |
Pass 'this' as argument because we're not stored in ObjectAccessor yet SMSG_CONTACT_LIST
SMSG_BINDPOINTUPDATE
SMSG_TALENTS_INFO
SMSG_INSTANCE_DIFFICULTY
SMSG_INITIAL_SPELLS
SMSG_SEND_UNLEARN_SPELLS
SMSG_ACTION_BUTTONS
SMSG_INITIALIZE_FACTIONS
SMSG_ALL_ACHIEVEMENT_DATA
SMSG_EQUIPMENT_SET_LIST
SMSG_LOGIN_SET_TIME_SPEED
SMSG_SET_FORCED_REACTIONS
SMSG_RESYNC_RUNES
Definition at line 22405 of file Player.cpp.
References WorldPackets::Misc::LoginSetTimeSpeed::GameTime, WorldPackets::Misc::LoginSetTimeSpeed::GameTimeHolidayOffset, GetDifficultyID(), Object::GetEntry(), GetGameClient(), WorldObject::GetMap(), GetReputationMgr(), GetSocial(), GameTime::GetWowTime(), m_achievementMgr, m_reputationMgr, WorldPackets::Misc::LoginSetTimeSpeed::NewSpeed, ResyncRunes(), AchievementMgr::SendAllAchievementData(), SendBindPointUpdate(), SendDirectMessage(), SendEquipmentSetList(), ReputationMgr::SendForceReactions(), SendInitialActionButtons(), ReputationMgr::SendInitialReputations(), SendInitialSpells(), PlayerSocial::SendSocialList(), SendTalentsInfoData(), SendUnlearnSpells(), GameClient::SetMovedUnit(), SMSG_INSTANCE_DIFFICULTY, SOCIAL_FLAG_ALL, and WorldPackets::Misc::LoginSetTimeSpeed::Write().
Referenced by WorldSession::HandleMoveWorldportAck(), and WorldSession::HandlePlayerLogin().
| void Player::SendInitialSpells | ( | ) |
Definition at line 2749 of file Player.cpp.
References Unit::GetSpellHistory(), WorldPackets::Spells::InitialSpells::InitialLogin, IsLoading(), m_spells, PLAYERSPELL_REMOVED, SendDirectMessage(), WorldPackets::Spells::InitialSpells::Spells, WorldPackets::Spells::InitialSpells::Write(), and SpellHistory::WritePacket().
Referenced by SendInitialPacketsBeforeAddToMap().
| void Player::SendInitialVisiblePackets | ( | Unit * | target | ) | const |
Definition at line 22247 of file Player.cpp.
References Unit::GetVictim(), Unit::HasUnitState(), Unit::IsAlive(), SendAurasForTarget(), Unit::SendMeleeAttackStart(), and UNIT_STATE_MELEE_ATTACKING.
Referenced by Trinity::VisibleNotifier::SendToSelf(), and UpdateVisibilityOf().
Definition at line 8498 of file Player.cpp.
References AREA_WINTERGRASP, WorldPackets::WorldState::InitWorldStates::AreaID, BATTLEFIELD_WG, BATTLEGROUND_AB, BATTLEGROUND_AV, BATTLEGROUND_BE, BATTLEGROUND_DS, BATTLEGROUND_EY, BATTLEGROUND_IC, BATTLEGROUND_NA, BATTLEGROUND_RL, BATTLEGROUND_RV, BATTLEGROUND_SA, BATTLEGROUND_WS, CONFIG_ARENA_SEASON_ID, CONFIG_ARENA_SEASON_IN_PROGRESS, Battleground::FillInitialWorldStates(), InstanceScript::FillInitialWorldStates(), OutdoorPvP::FillInitialWorldStates(), Battlefield::FillInitialWorldStates(), GetBattleground(), WorldObject::GetInstanceScript(), WorldLocation::GetMapId(), Battlefield::GetTypeId(), OutdoorPvP::GetTypeId(), Battleground::GetTypeID(), WorldPackets::WorldState::InitWorldStates::MapID, OUTDOOR_PVP_EP, OUTDOOR_PVP_HP, OUTDOOR_PVP_NA, OUTDOOR_PVP_SI, OUTDOOR_PVP_TF, OUTDOOR_PVP_ZM, sBattlefieldMgr, SendBattlefieldWorldStates(), SendBGWeekendWorldStates(), SendDirectMessage(), sOutdoorPvPMgr, WorldPackets::WorldState::InitWorldStates::SubareaID, sWorld, TC_LOG_DEBUG, WorldPackets::WorldState::InitWorldStates::Worldstates, and WorldPackets::WorldState::InitWorldStates::Write().
Referenced by UpdateZone().
| void Player::SendInstanceResetWarning | ( | uint32 | mapid, |
| Difficulty | difficulty, | ||
| uint32 | time, | ||
| bool | welcome | ||
| ) | const |
Definition at line 22573 of file Player.cpp.
References RAID_INSTANCE_WARNING_HOURS, RAID_INSTANCE_WARNING_MIN, RAID_INSTANCE_WARNING_MIN_SOON, RAID_INSTANCE_WELCOME, SendDirectMessage(), and SMSG_RAID_INSTANCE_MESSAGE.
Referenced by WorldSession::HandleMoveWorldportAck().
| void Player::SendItemDurations | ( | ) |
Definition at line 13849 of file Player.cpp.
References m_itemDuration.
Referenced by SendInitialPacketsAfterAddToMap().
|
private |
Definition at line 25946 of file Player.cpp.
References ItemExtendedCostEntry::ArenaPoints, Object::GetGUID(), Item::GetPaidMoney(), ItemExtendedCostEntry::HonorPoints, ItemExtendedCostEntry::ItemCount, ItemExtendedCostEntry::ItemID, MAX_ITEM_EXTENDED_COST_REQUIREMENTS, SendDirectMessage(), and SMSG_ITEM_REFUND_RESULT.
Referenced by RefundItem().
Definition at line 26064 of file Player.cpp.
References MailDraft::AddItem(), CharacterDatabase, Item::CreateItem(), Object::GetGUID(), MAIL_CREATURE, and MailDraft::SendMailTo().
Referenced by Group::CountTheRoll(), and RewardQuest().
| void Player::SendLogXPGain | ( | uint32 | GivenXP, |
| Unit * | victim, | ||
| uint32 | BonusXP, | ||
| bool | recruitAFriend = false, |
||
| float | group_rate = 1.0f |
||
| ) | const |
Definition at line 2366 of file Player.cpp.
References ObjectGuid::Empty, Object::GetGUID(), SendDirectMessage(), and SMSG_LOG_XPGAIN.
Referenced by GiveXP().
| void Player::SendLoot | ( | ObjectGuid | guid, |
| LootType | loot_type | ||
| ) |
Definition at line 8084 of file Player.cpp.
References WorldPackets::Loot::LootResponse::AcquireReason, Loot::AddLooter(), ALL_PERMISSION, AREA_WINTERGRASP, BATTLEGROUND_AV, Loot::BuildLootResponse(), Creature::CanGeneratePickPocketLoot(), GameObjectTemplate::chest, Loot::clear(), Loot::containerID, CORPSE_BONES, ItemTemplate::DisenchantID, WorldSession::DoLootRelease(), Loot::empty(), Loot::FillLoot(), FREE_FOR_ALL, GAMEOBJECT_TYPE_CHEST, Loot::generateMoneyLoot(), GetBattleground(), ObjectAccessor::GetCorpse(), ObjectGuid::GetCounter(), Map::GetCreature(), Creature::GetCreatureTemplate(), Object::GetEntry(), GameObject::getFishLoot(), GameObject::getFishLootJunk(), Map::GetGameObject(), GameTime::GetGameTime(), GameObject::GetGOInfo(), GetGroup(), Object::GetGUID(), Object::GetGUID(), GetItemByGuid(), Unit::GetLevel(), GameObject::GetLootGenerationTime(), GetLootGUID(), GameObjectTemplate::GetLootId(), Group::GetLootMethod(), GameObject::GetLootMode(), Creature::GetLootRecipient(), Creature::GetLootRecipientGroup(), Creature::GetLootRecipientGUID(), GameObject::getLootState(), GetLootTypeForClient(), WorldObject::GetMap(), Group::GetMasterLooterGuid(), WorldObject::GetName(), GameObject::GetOwnerGUID(), GameObject::GetRespawnDelay(), GameObject::GetRespawnTime(), GetTeam(), Item::GetTemplate(), GameObject::GetTemplateAddon(), Corpse::GetType(), WorldObject::GetZoneId(), GO_ACTIVATED, GO_READY, Loot::gold, GROUP_LOOT, GROUP_PERMISSION, GameObjectTemplate::groupLootRules, Object::HasDynamicFlag(), Map::Instanceable(), INTERACTION_DISTANCE, Unit::IsAlive(), ObjectGuid::IsCorpse(), ObjectGuid::IsEmpty(), WorldObject::IsFriendlyTo(), ObjectGuid::IsGameObject(), ObjectGuid::IsItem(), Loot::isLooted(), GameObject::isSpawnedByDefault(), GameObject::IsWithinDistInMap(), WorldObject::IsWithinDistInMap(), Corpse::loot, Creature::loot, GameObject::loot, Item::loot, LOOT_CORPSE, LOOT_DISENCHANTING, LOOT_ERROR_ALREADY_PICKPOCKETED, LOOT_ERROR_DIDNT_KILL, LOOT_FISHING, LOOT_FISHING_JUNK, LOOT_FISHINGHOLE, LOOT_INSIGNIA, LOOT_MILLING, LOOT_NONE, LOOT_PICKPOCKETING, LOOT_PROSPECTING, LOOT_SKINNING, Loot::loot_type, Corpse::lootRecipient, LootTemplates_Creature, LootTemplates_Disenchant, LootTemplates_Gameobject, LootTemplates_Item, LootTemplates_Milling, LootTemplates_Pickpocketing, LootTemplates_Prospecting, LootTemplates_Skinning, Item::m_lootGenerated, m_session, MASTER_LOOT, MASTER_PERMISSION, ItemTemplate::MaxMoneyLoot, ItemTemplate::MinMoneyLoot, NEED_BEFORE_GREED, NONE_PERMISSION, WorldPackets::Loot::LootResponse::Owner, OWNER_PERMISSION, CreatureTemplate::pickpocketLootId, PLAYER_CORPSE_LOOT_ENTRY, RATE_DROP_MONEY, RESTRICTED_PERMISSION, ROUND_ROBIN, ROUND_ROBIN_PERMISSION, SendDirectMessage(), SendLootError(), SendLootRelease(), GameObject::SetLootGenerationTime(), SetLootGUID(), Creature::SetLootRecipient(), GameObject::SetLootState(), Unit::SetUnitFlag(), CreatureTemplate::SkinLootId, sLootItemStorage, Creature::StartPickPocketRefillTimer(), sWorld, TC_LOG_DEBUG, ObjectGuid::ToString(), Position::ToString(), GameObjectTemplate::type, UNIT_DYNFLAG_LOOTABLE, UNIT_FLAG_LOOTING, Loot::unlootedCount, Group::UpdateLooterGuid(), urand(), and WorldPackets::Loot::LootResponse::Write().
Referenced by Spell::EffectMilling(), Spell::EffectPickPocket(), Spell::EffectProspecting(), Spell::EffectSkinning(), WorldSession::HandleLootOpcode(), WorldSession::HandleOpenItemOpcode(), RemovedInsignia(), Spell::SendLoot(), and GameObject::Use().
| void Player::SendLootError | ( | ObjectGuid const & | owner, |
| LootError | error | ||
| ) | const |
Definition at line 8467 of file Player.cpp.
References WorldPackets::Loot::LootResponse::FailureReason, WorldPackets::Loot::LootResponse::Owner, SendDirectMessage(), and WorldPackets::Loot::LootResponse::Write().
Referenced by WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), and SendLoot().
| void Player::SendLootRelease | ( | ObjectGuid | guid | ) | const |
Definition at line 8077 of file Player.cpp.
References SendDirectMessage(), and SMSG_LOOT_RELEASE_RESPONSE.
Referenced by WorldSession::DoLootRelease(), WorldSession::HandleAutostoreLootItemOpcode(), SendLoot(), and StoreLootItem().
| void Player::SendMailResult | ( | uint32 | mailId, |
| MailResponseType | mailAction, | ||
| MailResponseResult | mailError, | ||
| uint32 | equipError = 0, |
||
| ObjectGuid::LowType | item_guid = 0, |
||
| uint32 | item_count = 0 |
||
| ) | const |
Definition at line 2829 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 1733 of file Player.h.
References WorldObject::GetVisibilityRange(), and WorldObject::SendMessageToSetInRange().
Referenced by Spell::Delayed(), Unit::Dismount(), DuelComplete(), EnvironmentalDamage(), gm_commandscript::HandleGMFlyCommand(), WorldSession::HandleMountSpecialAnimOpcode(), WorldSession::HandleMoveKnockBackAck(), WorldSession::HandleMoveTimeSkippedOpcode(), Unit::Kill(), Pet::LoadPetFromDB(), SendAutoRepeatCancel(), WorldSession::SendEnchantmentLog(), and SetDrunkValue().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 6152 of file Player.cpp.
References WorldObject::GetVisibilityRange(), SendDirectMessage(), and Cell::VisitWorldObjects().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 6134 of file Player.cpp.
References SendDirectMessage(), and Cell::VisitWorldObjects().
Referenced by Say(), TextEmote(), and Yell().
| void Player::SendMessageToSetInRange | ( | WorldPacket const * | data, |
| float | dist, | ||
| bool | self, | ||
| bool | own_team_only, | ||
| bool | required3dDist = false |
||
| ) | const |
Definition at line 6143 of file Player.cpp.
References SendDirectMessage(), and Cell::VisitWorldObjects().
|
protected |
Definition at line 614 of file Player.cpp.
References DISABLED_MIRROR_TIMER, SendDirectMessage(), and StopMirrorTimer().
Referenced by HandleDrowning().
| void Player::SendMovementSetCollisionHeight | ( | float | height | ) |
Definition at line 26179 of file Player.cpp.
References Unit::GetMovementCounterAndInc(), Object::GetPackGUID(), SendDirectMessage(), and SMSG_MOVE_SET_COLLISION_HGT.
| void Player::SendMovieStart | ( | uint32 | movieId | ) |
Definition at line 6178 of file Player.cpp.
References WorldPackets::Misc::TriggerMovie::MovieID, SendDirectMessage(), SetMovie(), and WorldPackets::Misc::TriggerMovie::Write().
Referenced by debug_commandscript::HandleDebugPlayMovieCommand().
| void Player::SendNewItem | ( | Item * | item, |
| uint32 | count, | ||
| bool | received, | ||
| bool | created, | ||
| bool | broadcast = false, |
||
| bool | sendChatMessage = true |
||
| ) |
Definition at line 13857 of file Player.cpp.
References Group::BroadcastPacket(), Item::GetBagSlot(), Item::GetCount(), Object::GetEntry(), GetGroup(), Object::GetGUID(), GetItemCount(), Item::GetItemRandomPropertyId(), Item::GetItemSuffixFactor(), Item::GetSlot(), SendDirectMessage(), and SMSG_ITEM_PUSH_RESULT.
Referenced by _StoreOrEquipNewItem(), AddItem(), AutoStoreLoot(), Spell::DoCreateItem(), Spell::EffectSummonChangeItem(), GiveQuestSourceItem(), misc_commandscript::HandleAddItemCommand(), misc_commandscript::HandleAddItemSetCommand(), misc_commandscript::HandleAddItemToCommand(), AuraEffect::HandleChannelDeathItem(), OPvPCapturePointNA::HandleCustomSpell(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandlePetitionBuyOpcode(), quest_commandscript::HandleQuestComplete(), npc_tyrande_whisperwind::npc_tyrande_whisperwindAI::OnGossipSelect(), RefundItem(), RemovePet(), RewardQuest(), npc_verdisa_beglaristrasz_eternos::StoreEssence(), and StoreLootItem().
| void Player::SendNewMail | ( | ) | const |
Definition at line 2841 of file Player.cpp.
References WorldPackets::Mail::NotifyReceivedMail::Delay, SendDirectMessage(), and WorldPackets::Mail::NotifyReceivedMail::Write().
Referenced by AddNewMailDeliverTime(), and Update().
| void Player::SendNotifyLootItemRemoved | ( | uint8 | lootListId | ) | const |
Definition at line 8481 of file Player.cpp.
References WorldPackets::Loot::LootRemoved::LootListID, SendDirectMessage(), and WorldPackets::Loot::LootRemoved::Write().
Referenced by StoreLootItem().
| void Player::SendNotifyLootMoneyRemoved | ( | ) | const |
Definition at line 8475 of file Player.cpp.
References SendDirectMessage(), and WorldPackets::Loot::CoinRemoved::Write().
| void Player::SendOnCancelExpectedVehicleRideAura | ( | ) | const |
Definition at line 20588 of file Player.cpp.
References SendDirectMessage(), and SMSG_ON_CANCEL_EXPECTED_RIDE_VEHICLE_AURA.
Referenced by VehicleJoinEvent::Execute(), and AuraEffect::HandleAuraSetVehicle().
| void Player::SendPlayerBound | ( | ObjectGuid const & | binderGuid, |
| uint32 | areaId | ||
| ) | const |
Definition at line 16875 of file Player.cpp.
References SendDirectMessage(), and WorldPackets::Misc::PlayerBound::Write().
Referenced by Spell::EffectBind().
| void Player::SendPreparedGossip | ( | WorldObject * | source | ) |
Definition at line 14053 of file Player.cpp.
References QuestMenu::Empty(), PlayerMenu::GetGossipMenu(), GetGossipTextId(), Object::GetGUID(), GossipMenu::GetMenuId(), PlayerMenu::GetQuestMenu(), Object::GetTypeId(), Unit::HasNpcFlag(), PlayerTalkClass, PlayerMenu::SendGossipMenu(), SendPreparedQuest(), Object::ToCreature(), TYPEID_GAMEOBJECT, TYPEID_UNIT, and UNIT_NPC_FLAG_GOSSIP.
Referenced by WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleQuestgiverHelloOpcode(), npc_andorov::OnGossipHello(), npc_disciple_of_naralex::OnGossipHello(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::OnGossipHello(), npc_sinclari_vh::OnGossipHello(), go_apexis_relic::go_apexis_relicAI::OnGossipHello(), OnGossipSelect(), Spell::SendLoot(), and GameObject::Use().
| void Player::SendPreparedQuest | ( | ObjectGuid | guid | ) |
Definition at line 14331 of file Player.cpp.
References QEmote::_Delay, QEmote::_Emote, AddQuestAndCheckCompletion(), CanAddQuest(), CanCompleteRepeatableQuest(), CanRewardQuest(), CanTakeQuest(), GossipTextOption::Emotes, QuestMenu::Empty(), ObjectAccessor::GetCreatureOrPetOrVehicle(), GetGossipTextId(), QuestMenu::GetItem(), ObjectMgr::GetLocaleString(), QuestMenu::GetMenuItemCount(), ObjectAccessor::GetObjectByTypeMask(), PlayerMenu::GetQuestMenu(), GetSession(), WorldSession::GetSessionDbLocaleIndex(), Object::hasInvolvedQuest(), Object::hasQuest(), LOCALE_enUS, GossipText::Options, PlayerTalkClass, QuestMenuItem::QuestIcon, QuestMenuItem::QuestId, PlayerMenu::SendCloseGossip(), PlayerMenu::SendQuestGiverQuestDetails(), PlayerMenu::SendQuestGiverQuestList(), PlayerMenu::SendQuestGiverRequestItems(), sObjectMgr, GossipTextOption::Text_0, GossipTextOption::Text_1, TYPEMASK_GAMEOBJECT, TYPEMASK_ITEM, and TYPEMASK_UNIT.
Referenced by npc_thrall_old_hillsbrad::OnGossipHello(), OnGossipSelect(), and SendPreparedGossip().
Definition at line 20942 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, |
| QuestShareMessages | msg | ||
| ) | const |
Definition at line 16609 of file Player.cpp.
References Object::GetGUID(), MSG_QUEST_PUSH_RESULT, SendDirectMessage(), and TC_LOG_DEBUG.
Referenced by CanShareQuest(), debug_commandscript::HandleDebugSendQuestPartyMsgCommand(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), and WorldSession::HandleQuestPushResult().
| void Player::SendQuestComplete | ( | uint32 | questId | ) | const |
Definition at line 16526 of file Player.cpp.
References SendDirectMessage(), and SMSG_QUESTUPDATE_COMPLETE.
Referenced by AreaExploredOrEventHappens().
Definition at line 16588 of file Player.cpp.
References Object::GetGUID(), ObjectMgr::GetLocaleString(), Quest::GetLogTitle(), Quest::GetQuestId(), GetSession(), WorldSession::GetSessionDbLocaleIndex(), LOCALE_enUS, SendDirectMessage(), SMSG_QUEST_CONFIRM_ACCEPT, sObjectMgr, and TC_LOG_DEBUG.
Referenced by WorldSession::HandleQuestgiverAcceptQuestOpcode().
| void Player::SendQuestFailed | ( | uint32 | questId, |
| InventoryResult | reason = EQUIP_ERR_OK |
||
| ) | const |
Definition at line 16558 of file Player.cpp.
References SendDirectMessage(), and SMSG_QUESTGIVER_QUEST_FAILED.
Referenced by CanRewardQuest(), and FailQuest().
| void Player::SendQuestGiverStatusMultiple | ( | ) |
Definition at line 16670 of file Player.cpp.
References GAMEOBJECT_TYPE_QUESTGIVER, ObjectAccessor::GetCreatureOrPetOrVehicle(), Map::GetGameObject(), GameObject::GetGoType(), Object::GetGUID(), WorldObject::GetMap(), GetQuestDialogStatus(), Unit::HasNpcFlag(), WorldObject::IsHostileTo(), m_clientGUIDs, WorldPackets::Quest::QuestGiverStatusMultiple::QuestGiver, SendDirectMessage(), UNIT_NPC_FLAG_QUESTGIVER, and WorldPackets::Quest::QuestGiverStatusMultiple::Write().
Referenced by GiveLevel(), WorldSession::HandleQuestgiverStatusMultipleQuery(), RewardQuest(), and SendInitialPacketsAfterAddToMap().
Definition at line 16536 of file Player.cpp.
References Quest::CalculateHonorGain(), Quest::GetBonusTalents(), Quest::GetQuestId(), GetQuestLevel(), Quest::GetRewArenaPoints(), Quest::GetRewOrReqMoney(), IsMaxLevel(), SendDirectMessage(), sGameEventMgr, and SMSG_QUESTGIVER_QUEST_COMPLETE.
Referenced by RewardQuest().
| void Player::SendQuestTimerFailed | ( | uint32 | questId | ) | const |
Definition at line 16569 of file Player.cpp.
References SendDirectMessage(), SMSG_QUESTUPDATE_FAILEDTIMER, and TC_LOG_DEBUG.
Referenced by FailQuest().
| void Player::SendQuestUpdate | ( | uint32 | questId | ) |
Definition at line 15745 of file Player.cpp.
References WorldObject::CastSpell(), WorldObject::GetZoneAndAreaId(), Unit::HasAura(), Unit::RemoveAurasDueToSpell(), sSpellMgr, and UpdateVisibleGameobjectsOrSpellClicks().
Referenced by AddQuest(), RemoveActiveQuest(), RemoveRewardedQuest(), RewardQuest(), and SetQuestStatus().
| void Player::SendQuestUpdateAddCreatureOrGo | ( | Quest const * | quest, |
| ObjectGuid | guid, | ||
| uint32 | creatureOrGOIdx, | ||
| uint16 | oldCount, | ||
| uint16 | addCount | ||
| ) |
Definition at line 16630 of file Player.cpp.
References ASSERT, FindQuestSlot(), Quest::GetQuestId(), GetQuestSlotCounter(), MAX_QUEST_LOG_SIZE, Quest::RequiredNpcOrGo, Quest::RequiredNpcOrGoCount, SendDirectMessage(), SetQuestSlotCounter(), SMSG_QUESTUPDATE_ADD_KILL, sScriptMgr, and TC_LOG_DEBUG.
Referenced by KillCreditGO(), KilledMonsterCredit(), and TalkedToCreature().
Definition at line 16621 of file Player.cpp.
References SendDirectMessage(), SMSG_QUESTUPDATE_ADD_ITEM, and TC_LOG_DEBUG.
Definition at line 16655 of file Player.cpp.
References ASSERT, FindQuestSlot(), Quest::GetPlayersSlain(), Quest::GetQuestId(), GetQuestSlotCounter(), MAX_QUEST_LOG_SIZE, QUEST_PVP_KILL_SLOT, SendDirectMessage(), SetQuestSlotCounter(), and SMSG_QUESTUPDATE_ADD_PVP_KILL.
Referenced by KilledPlayerCreditForQuest().
| void Player::SendRaidDifficulty | ( | bool | changeCurrentDifficuly, |
| bool | changeGroupDifficuly | ||
| ) | const |
Definition at line 20111 of file Player.cpp.
References WorldPackets::Misc::RaidDifficultySet::ChangeCurrentDifficulyID, WorldPackets::Misc::RaidDifficultySet::ChangeGroupDifficulyID, WorldPackets::Misc::RaidDifficultySet::DifficultyID, GetRaidDifficultyID(), SendDirectMessage(), and WorldPackets::Misc::RaidDifficultySet::Write().
Referenced by WorldSession::HandlePlayerLogin().
| void Player::SendRaidInfo | ( | ) |
Definition at line 18710 of file Player.cpp.
References EXTEND_STATE_EXPIRED, EXTEND_STATE_EXTENDED, InstancePlayerBind::extendState, InstanceSave::GetDifficultyID(), GameTime::GetGameTime(), InstanceSave::GetInstanceId(), InstanceSave::GetMapId(), InstanceSave::GetResetTime(), m_boundInstances, MAX_DIFFICULTY, InstancePlayerBind::perm, ByteBuffer::put(), InstancePlayerBind::save, SendDirectMessage(), sInstanceSaveMgr, SMSG_RAID_INSTANCE_INFO, and ByteBuffer::wpos().
Referenced by WorldSession::HandleRequestRaidInfoOpcode().
|
private |
Definition at line 25875 of file Player.cpp.
References ItemExtendedCostEntry::ArenaPoints, Object::GetGUID(), Object::GetGUID(), Item::GetPaidExtendedCost(), Item::GetPaidMoney(), Item::GetPlayedTime(), Item::GetRefundRecipient(), GetTotalPlayedTime(), ItemExtendedCostEntry::HonorPoints, Item::IsRefundable(), ItemExtendedCostEntry::ItemCount, ItemExtendedCostEntry::ItemID, MAX_ITEM_EXTENDED_COST_REQUIREMENTS, SendDirectMessage(), Item::SetNotRefundable(), sItemExtendedCostStore, SMSG_ITEM_REFUND_INFO_RESPONSE, TC_LOG_DEBUG, and Item::UpdatePlayedTime().
Referenced by WorldSession::HandleGetItemPurchaseData(), and SwapItem().
| void Player::SendRemoveControlBar | ( | ) | const |
Definition at line 20777 of file Player.cpp.
References SendDirectMessage(), and SMSG_PET_SPELLS.
Referenced by Unit::RemoveCharmedBy().
| void Player::SendResetFailedNotify | ( | uint32 | mapid | ) | const |
Definition at line 20120 of file Player.cpp.
References SendDirectMessage(), and SMSG_RESET_FAILED_NOTIFY.
Definition at line 20183 of file Player.cpp.
References SendDirectMessage(), and SMSG_INSTANCE_RESET_FAILED.
Referenced by Group::ResetInstances().
| void Player::SendResetInstanceSuccess | ( | uint32 | MapId | ) | const |
Definition at line 20176 of file Player.cpp.
References SendDirectMessage(), and SMSG_INSTANCE_RESET.
Referenced by ResetInstances(), and Group::ResetInstances().
| void Player::SendRespecWipeConfirm | ( | ObjectGuid const & | guid, |
| uint32 | cost | ||
| ) | const |
Definition at line 9153 of file Player.cpp.
References WorldPackets::Talent::RespecWipeConfirm::Cost, WorldPackets::Talent::RespecWipeConfirm::RespecMaster, SendDirectMessage(), and WorldPackets::Talent::RespecWipeConfirm::Write().
Referenced by Spell::EffectUntrainTalents(), WorldSession::HandleTalentWipeConfirmOpcode(), and OnGossipSelect().
| void Player::SendRespondInspectAchievements | ( | Player * | player | ) | const |
Definition at line 24889 of file Player.cpp.
References m_achievementMgr, and AchievementMgr::SendRespondInspectAchievements().
Referenced by WorldSession::HandleQueryInspectAchievements().
| void Player::SendSavedInstances | ( | ) |
Definition at line 18749 of file Player.cpp.
References WorldPacket::Initialize(), m_boundInstances, MAX_DIFFICULTY, SendDirectMessage(), SMSG_UPDATE_INSTANCE_OWNERSHIP, and SMSG_UPDATE_LAST_INSTANCE.
Referenced by TeleportTo().
| void Player::SendSellError | ( | SellResult | msg, |
| Creature * | creature, | ||
| ObjectGuid | guid, | ||
| uint32 | param | ||
| ) | const |
Definition at line 13130 of file Player.cpp.
References ObjectGuid::Empty, Object::GetGUID(), SendDirectMessage(), and SMSG_SELL_ITEM.
Referenced by WorldSession::HandleBuybackItem(), debug_commandscript::HandleDebugSendSellErrorCommand(), WorldSession::HandleSellItemOpcode(), and WorldSession::SendListInventory().
| void Player::SendSummonRequestFrom | ( | Unit * | summoner | ) |
Definition at line 23282 of file Player.cpp.
References GameTime::GetGameTime(), Object::GetGUID(), WorldObject::GetZoneId(), Unit::HasAura(), HasSummonPending(), IN_MILLISECONDS, m_summon_expire, m_summon_location, MAX_PLAYER_SUMMON_DELAY, SendDirectMessage(), SMSG_SUMMON_REQUEST, and WorldLocation::WorldRelocate().
Referenced by Spell::EffectSummonPlayer().
Definition at line 26357 of file Player.cpp.
References SendDirectMessage(), and SMSG_SUPERCEDED_SPELL.
Referenced by AddSpell(), and RemoveSpell().
| void Player::SendTalentsInfoData | ( | bool | pet | ) |
Definition at line 25337 of file Player.cpp.
References BuildPetTalentsInfoData(), BuildPlayerTalentsInfoData(), WorldPackets::Talent::UpdateTalentData::Info, SendDirectMessage(), and WorldPackets::Talent::UpdateTalentData::Write().
Referenced by Spell::EffectApplyGlyph(), learn_commandscript::HandleLearnAllTalentsCommand(), learn_commandscript::HandleLearnCommand(), WorldSession::HandleLearnPreviewTalents(), WorldSession::HandleLearnPreviewTalentsPet(), WorldSession::HandleLearnTalentOpcode(), modify_commandscript::HandleModifyTalentCommand(), WorldSession::HandlePetLearnTalent(), WorldSession::HandlePlayerLogin(), WorldSession::HandleRemoveGlyph(), reset_commandscript::HandleResetTalentsCommand(), WorldSession::HandleTalentWipeConfirmOpcode(), learn_commandscript::HandleUnLearnCommand(), Pet::InitTalentForLevel(), InitTalentForLevel(), Pet::LoadPetFromDB(), ResetPetTalents(), SendInitialPacketsBeforeAddToMap(), and UpdateTalentGroupCount().
| void Player::SendTameFailure | ( | uint8 | result | ) |
Definition at line 2809 of file Player.cpp.
References SendDirectMessage(), and SMSG_PET_TAME_FAILURE.
Referenced by spell_hun_tame_beast::CheckCast(), and Spell::CheckCast().
| void Player::SendTaxiNodeStatusMultiple | ( | ) |
Definition at line 21265 of file Player.cpp.
References ObjectAccessor::GetCreature(), WorldLocation::GetMapId(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetTeam(), Unit::HasNpcFlag(), WorldObject::IsHostileTo(), PlayerTaxi::IsTaximaskNodeKnown(), m_clientGUIDs, m_taxi, SendDirectMessage(), SMSG_TAXINODE_STATUS, sObjectMgr, and UNIT_NPC_FLAG_FLIGHTMASTER.
Referenced by SendInitialPacketsAfterAddToMap().
| void Player::SendTransferAborted | ( | uint32 | mapid, |
| TransferAbortReason | reason, | ||
| uint8 | arg = 0 |
||
| ) | const |
Definition at line 22564 of file Player.cpp.
References WorldPackets::Movement::TransferAborted::Arg, WorldPackets::Movement::TransferAborted::MapID, SendDirectMessage(), WorldPackets::Movement::TransferAborted::TransfertAbort, and WorldPackets::Movement::TransferAborted::Write().
Referenced by WorldSession::HandleAreaTriggerOpcode(), LoadFromDB(), Satisfy(), and TeleportTo().
| void Player::SendUnlearnSpells | ( | ) |
Definition at line 2770 of file Player.cpp.
References HasSpell(), m_spells, PLAYERSPELL_REMOVED, SendDirectMessage(), WorldPackets::Spells::SendUnlearnSpells::Spells, sSpellMgr, and WorldPackets::Spells::SendUnlearnSpells::Write().
Referenced by AddSpell(), RemoveSpell(), and SendInitialPacketsBeforeAddToMap().
| void Player::SendUpdateToOutOfRangeGroupMembers | ( | ) |
Definition at line 22551 of file Player.cpp.
References GetGroup(), GetPet(), GROUP_UPDATE_FLAG_NONE, m_auraRaidUpdateMask, and m_groupUpdateMask.
Referenced by Heartbeat().
Definition at line 8488 of file Player.cpp.
References SendDirectMessage(), WorldPackets::WorldState::UpdateWorldState::Value, WorldPackets::WorldState::UpdateWorldState::VariableID, and WorldPackets::WorldState::UpdateWorldState::Write().
Referenced by BattlegroundEY::CheckSomeoneJoinedPoint(), BattlegroundEY::CheckSomeoneLeftPoint(), debug_commandscript::HandleDebugUpdateWorldStateCommand(), BfCapturePoint::HandlePlayerEnter(), OPvPCapturePoint::HandlePlayerEnter(), BfCapturePoint::HandlePlayerLeave(), OPvPCapturePoint::HandlePlayerLeave(), npc_wg_queue::OnGossipHello(), instance_the_black_morass::instance_the_black_morass_InstanceMapScript::OnPlayerEnter(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::OnPlayerEnter(), SendBattlefieldWorldStates(), SendBGWeekendWorldStates(), OutdoorPvPEP::SendRemoveWorldStates(), OutdoorPvPHP::SendRemoveWorldStates(), OutdoorPvPNA::SendRemoveWorldStates(), OutdoorPvPSI::SendRemoveWorldStates(), OutdoorPvPTF::SendRemoveWorldStates(), OutdoorPvPZM::SendRemoveWorldStates(), GameEventMgr::SendWorldStateUpdate(), and BattlegroundEY::UpdatePointStatuses().
|
inline |
Definition at line 975 of file Player.h.
References PLAYER_EXTRA_ACCEPT_WHISPERS.
Referenced by message_commandscript::HandleWhispersCommand(), LoadFromDB(), Player(), SetGMVisible(), and Whisper().
|
inline |
Definition at line 1481 of file Player.h.
Referenced by ActivateTalentGroup(), InitTalentForLevel(), LoadFromDB(), and UpdateTalentGroupCount().
| void Player::SetAmmo | ( | uint32 | item | ) |
Definition at line 11586 of file Player.cpp.
References _ApplyAmmoBonuses(), CanUseAmmo(), EQUIP_ERR_OK, Object::GetUInt32Value(), PLAYER_AMMO_ID, SendEquipError(), and Object::SetUInt32Value().
Referenced by Create(), and WorldSession::HandleSetAmmoOpcode().
|
inline |
Definition at line 1849 of file Player.h.
References PLAYER_BYTES_3, PLAYER_BYTES_3_OFFSET_ARENA_FACTION, and Object::SetByteValue().
Referenced by SetBGTeam().
| void Player::SetArenaPoints | ( | uint32 | value | ) |
Definition at line 6671 of file Player.cpp.
References AddKnownCurrency(), CONFIG_MAX_ARENA_POINTS, ITEM_ARENA_POINTS_ID, PLAYER_FIELD_ARENA_CURRENCY, Object::SetUInt32Value(), and sWorld.
Referenced by Create(), LoadFromDB(), and ModifyArenaPoints().
|
inline |
Definition at line 1617 of file Player.h.
Referenced by ArenaTeam::AddMember(), WorldSession::HandleArenaTeamDeclineOpcode(), and WorldSession::HandleArenaTeamInviteOpcode().
| void Player::SetArenaTeamInfoField | ( | uint8 | slot, |
| ArenaTeamInfoType | type, | ||
| uint32 | value | ||
| ) |
Definition at line 6718 of file Player.cpp.
References ARENA_TEAM_END, PLAYER_FIELD_ARENA_TEAM_INFO_1_1, and Object::SetUInt32Value().
Referenced by _LoadArenaTeamInfo(), ArenaTeam::AddMember(), ArenaTeam::DelMember(), LoadFromDB(), ArenaTeam::MemberLost(), ArenaTeam::MemberWon(), ArenaTeamMember::ModifyPersonalRating(), ArenaTeam::SetCaptain(), and SetInArenaTeam().
|
inline |
|
inline |
|
inline |
Definition at line 1103 of file Player.h.
References PLAYER_BYTES_2, PLAYER_BYTES_2_OFFSET_BANK_BAG_SLOTS, and Object::SetByteValue().
Referenced by WorldSession::HandleBuyBankSlotOpcode(), and LoadFromDB().
| void Player::SetBaseModFlatValue | ( | BaseModGroup | modGroup, |
| float | val | ||
| ) |
Definition at line 4997 of file Player.cpp.
References m_auraBaseFlatMod, and UpdateBaseModGroup().
Referenced by UpdateWeaponDependentCritAuras().
| void Player::SetBaseModPctValue | ( | BaseModGroup | modGroup, |
| float | val | ||
| ) |
Definition at line 5006 of file Player.cpp.
References m_auraBasePctMod, and UpdateBaseModGroup().
Referenced by AuraEffect::HandleShieldBlockValuePercent(), and UpdateAllCritPercentages().
Definition at line 2200 of file Player.h.
Referenced by InitRunes().
| void Player::SetBattlegroundEntryPoint | ( | ) |
Definition at line 21898 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_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, WorldLocation::m_mapId, m_taxi, MAPID_INVALID, BGData::mountSpell, sObjectMgr, SPELL_AURA_MOUNTED, BGData::taxiPath, TC_LOG_ERROR, and WorldLocation::WorldLocation().
Referenced by misc_commandscript::HandleAppearCommand(), WorldSession::HandleBattleFieldPortOpcode(), misc_commandscript::HandleSummonCommand(), and lfg::LFGMgr::TeleportPlayer().
| void Player::SetBattlegroundId | ( | uint32 | val, |
| BattlegroundTypeId | bgTypeId | ||
| ) |
Definition at line 23067 of file Player.cpp.
References BGData::bgInstanceID, BGData::bgTypeID, and m_bgData.
Referenced by misc_commandscript::HandleAppearCommand(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleMoveWorldportAck(), misc_commandscript::HandleSummonCommand(), and Battleground::RemovePlayerAtLeave().
Definition at line 23965 of file Player.cpp.
References GetGroup(), GetSubGroup(), Reference< TO, FROM >::link(), m_group, SetOriginalGroup(), GroupReference::setSubGroup(), and Reference< TO, FROM >::unlink().
Referenced by Group::AddMember(), Battlefield::AddOrSetPlayerToCorrectBfGroup(), and Battleground::AddOrSetPlayerToCorrectBgGroup().
|
inline |
Definition at line 992 of file Player.h.
References PLAYER_EXTRA_GRANTED_LEVELS_FROM_RAF.
Referenced by WorldSession::HandleAcceptGrantLevel().
| void Player::SetBGTeam | ( | uint32 | team | ) |
Definition at line 21941 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 9147 of file Player.cpp.
References SendDirectMessage(), and WorldPackets::Misc::BinderConfirm::Write().
Referenced by npc_innkeeper::npc_innkeeperAI::OnGossipSelect(), and OnGossipSelect().
| void Player::SetCanBlock | ( | bool | value | ) |
Definition at line 24067 of file Player.cpp.
References m_canBlock, and UpdateBlockPercentage().
Referenced by Spell::EffectBlock().
|
inlineprivate |
Definition at line 2516 of file Player.h.
Referenced by RewardQuest(), and Update().
| void Player::SetCanParry | ( | bool | value | ) |
Definition at line 24058 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 13171 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 2230 of file Player.h.
Referenced by AuraEffect::HandleAuraDummy().
|
inline |
Definition at line 1554 of file Player.h.
Referenced by WorldSession::HandlePlayerLogin().
| void Player::SetClientControl | ( | Unit * | target, |
| bool | allowMove | ||
| ) |
Definition at line 23718 of file Player.cpp.
References ASSERT, Unit::GetCharmerGUID(), GetGameClient(), Object::GetGUID(), WorldObject::GetName(), Object::GetPackGUID(), GetViewpoint(), Unit::HasUnitState(), SendDirectMessage(), GameClient::SetMovedUnit(), SetViewpoint(), PackedGuid::size(), SMSG_CLIENT_CONTROL_UPDATE, TC_LOG_ERROR, ObjectGuid::ToString(), UNIT_STATE_CHARMED, UNIT_STATE_CONFUSED, and UNIT_STATE_FLEEING.
Referenced by Battleground::BlockMovement(), Unit::RemoveCharmedBy(), SendInitialPacketsAfterAddToMap(), Unit::SetCharmedBy(), Unit::SetConfused(), and Unit::SetFeared().
|
inline |
Definition at line 1008 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 1007 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 20210 of file Player.cpp.
References Unit::AddUnitState(), duel, WorldObject::GetVisibilityRange(), Unit::HasUnitState(), Unit::m_Controlled, PLAYER_FLAGS, PLAYER_FLAGS_CONTESTED_PVP, SetContestedPvPTimer(), Object::SetFlag(), UNIT_STATE_ATTACK_PLAYER, and Cell::VisitWorldObjects().
Referenced by Unit::AtTargetAttacked(), and WorldSession::HandlePlayerLogin().
|
inline |
Definition at line 1583 of file Player.h.
Referenced by SetContestedPvP().
Definition at line 2201 of file Player.h.
Referenced by ConvertRune(), and InitRunes().
| void Player::SetDailyQuestStatus | ( | uint32 | quest_id | ) |
Definition at line 22902 of file Player.cpp.
References GameTime::GetGameTime(), Object::GetUInt32Value(), m_DailyQuestChanged, m_DFQuests, m_lastDailyQuestTime, PLAYER_FIELD_DAILY_QUESTS_1, PLAYER_MAX_DAILY_QUESTS, Object::SetUInt32Value(), and sObjectMgr.
Referenced by RewardQuest().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 1266 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_CONDITION_NO_DEATH, ACHIEVEMENT_CRITERIA_TYPE_DEATH, ACHIEVEMENT_CRITERIA_TYPE_DEATH_AT_MAP, ACHIEVEMENT_CRITERIA_TYPE_DEATH_IN_DUNGEON, Unit::ClearComboPoints(), ClearResurrectRequestData(), Object::GetGUID(), WorldObject::GetName(), GetResurrectionSpellId(), Object::GetUInt32Value(), Unit::IsAlive(), JUST_DIED, PET_SAVE_NOT_IN_SLOT, PLAYER_SELF_RES_SPELL, RemovePet(), ResetAchievementCriteria(), Unit::setDeathState(), SetDrunkValue(), Object::SetUInt32Value(), TC_LOG_ERROR, Position::ToString(), and UpdateAchievementCriteria().
Referenced by BuildPlayerRepop(), KillPlayer(), and ResurrectPlayer().
|
inlineprivate |
Definition at line 2518 of file Player.h.
Referenced by TeleportTo().
|
inline |
Definition at line 973 of file Player.h.
References Object::ApplyModFlag(), PLAYER_FLAGS, and PLAYER_FLAGS_DEVELOPER.
Referenced by misc_commandscript::HandleDevCommand().
Definition at line 876 of file Player.cpp.
References GetDrunkenstateByValue(), GetDrunkValue(), Object::GetGUID(), WorldPackets::Misc::CrossedInebriationThreshold::Guid, WorldPackets::Misc::CrossedInebriationThreshold::ItemID, m_drunkTimer, PLAYER_BYTES_3, PLAYER_BYTES_3_OFFSET_INEBRIATION, SendMessageToSet(), Object::SetByteValue(), WorldPackets::Misc::CrossedInebriationThreshold::Threshold, UpdateInvisibilityDrunkDetect(), and WorldPackets::Misc::CrossedInebriationThreshold::Write().
Referenced by Spell::EffectInebriate(), HandleSobering(), LoadFromDB(), and setDeathState().
|
inline |
Definition at line 1623 of file Player.h.
Referenced by _LoadGroup(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleSetDungeonDifficultyOpcode(), and LoadFromDB().
| void Player::SetEquipmentSet | ( | EquipmentSetInfo::EquipmentSetData const & | eqset | ) |
Definition at line 25371 of file Player.cpp.
References _equipmentSets, EquipmentSetInfo::Data, EQUIPMENT_SET_CHANGED, EQUIPMENT_SET_NEW, Object::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(), and WorldPackets::EquipmentSet::EquipmentSetID::Write().
Referenced by WorldSession::HandleEquipmentSetSave().
|
inline |
Definition at line 1022 of file Player.h.
References PLAYER_BYTES, PLAYER_BYTES_OFFSET_FACE_ID, and Object::SetByteValue().
Referenced by Create(), and LoadFromDB().
|
inline |
Definition at line 1028 of file Player.h.
References PLAYER_BYTES_2, PLAYER_BYTES_2_OFFSET_FACIAL_STYLE, and Object::SetByteValue().
Referenced by Create(), WorldSession::HandleAlterAppearance(), and LoadFromDB().
| void Player::SetFactionForRace | ( | uint8 | race | ) |
Definition at line 6297 of file Player.cpp.
References ChrRacesEntry::FactionID, m_team, sChrRacesStore, Unit::SetFaction(), and TeamForRace().
Referenced by Create(), reset_commandscript::HandleResetStatsOrLevelHelper(), LoadFromDB(), Unit::RestoreFaction(), and SetGameMaster().
| void Player::SetFallInformation | ( | uint32 | time, |
| float | z | ||
| ) |
Definition at line 24827 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 Transport::UpdatePassengerPositions().
|
inline |
Definition at line 1515 of file Player.h.
References PLAYER_CHARACTER_POINTS2, and Object::SetUInt32Value().
Referenced by AddSpell(), InitPrimaryProfessions(), and RemoveSpell().
| void Player::SetFreeTalentPoints | ( | uint32 | points | ) |
Definition at line 3804 of file Player.cpp.
References PLAYER_CHARACTER_POINTS1, Object::SetUInt32Value(), and sScriptMgr.
Referenced by learn_commandscript::HandleLearnAllTalentsCommand(), modify_commandscript::HandleModifyTalentCommand(), InitTalentForLevel(), LearnTalent(), and ResetTalents().
| void Player::SetGameMaster | ( | bool | on | ) |
Definition at line 2230 of file Player.cpp.
References Unit::CombatStopWithPets(), FACTION_FRIENDLY, Unit::GetAuraEffectsByType(), Unit::GetFaction(), GetPet(), Unit::GetRace(), GetSession(), m_areaUpdateId, m_ExtraFlags, WorldObject::m_serverSideVisibilityDetect, PHASEMASK_ANYWHERE, PHASEMASK_NORMAL, PLAYER_EXTRA_GM_ON, PLAYER_FLAGS, PLAYER_FLAGS_GM, Object::RemoveFlag(), Unit::RemovePvpFlag(), Unit::RemoveUnitFlag2(), ResetContestedPvP(), SEC_PLAYER, SERVERSIDE_VISIBILITY_GM, Unit::SetFaction(), SetFactionForRace(), Object::SetFlag(), SetPhaseMask(), Unit::SetPvpFlag(), Unit::SetUnitFlag2(), FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::SetValue(), SPELL_AURA_PHASE, 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().
Definition at line 24256 of file Player.cpp.
References _talentMgr, GetActiveTalentGroup(), TalentGroupInfo::Glyphs, PlayerTalentInfo::GroupInfo, PLAYER_FIELD_GLYPHS_1, and Object::SetUInt32Value().
Referenced by _LoadGlyphAuras(), ActivateTalentGroup(), Spell::EffectApplyGlyph(), and WorldSession::HandleRemoveGlyph().
Definition at line 1505 of file Player.h.
References PLAYER_FIELD_GLYPH_SLOTS_1, and Object::SetUInt32Value().
Referenced by InitGlyphsForLevel().
|
inline |
Definition at line 981 of file Player.h.
References PLAYER_EXTRA_GM_CHAT.
Referenced by LoadFromDB().
| void Player::SetGMVisible | ( | bool | on | ) |
Definition at line 2290 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().
|
inline |
Definition at line 1832 of file Player.h.
Referenced by WorldSession::HandleAcceptGrantLevel().
Definition at line 22390 of file Player.cpp.
References ASSERT, Reference< TO, FROM >::link(), m_group, GroupReference::setSubGroup(), Reference< TO, FROM >::unlink(), and UpdateObjectVisibility().
Referenced by _LoadGroup(), Group::AddMember(), Group::Disband(), and Group::RemoveMember().
|
inline |
Definition at line 2158 of file Player.h.
Referenced by Group::AddInvite(), Group::AddMember(), Player(), and Group::RemoveInvite().
|
inline |
Definition at line 2165 of file Player.h.
Referenced by Group::AddMember(), WorldSession::HandlePetRename(), Pet::LoadPetFromDB(), RemovePet(), Pet::SetDisplayId(), Unit::SetHealth(), Unit::SetMaxHealth(), Unit::SetMaxPower(), Unit::SetPower(), Unit::SetPowerType(), Unit::UpdateAuraForGroup(), UpdatePosition(), and UpdateZone().
|
inline |
Definition at line 1604 of file Player.h.
Referenced by Guild::AddMember(), WorldSession::HandleGuildDeclineOpcode(), and Guild::HandleInviteMember().
|
inline |
Definition at line 1602 of file Player.h.
References PLAYER_GUILDRANK, and Object::SetUInt32Value().
Referenced by Guild::AddMember(), Guild::DeleteMember(), and WorldSession::HandlePlayerLogin().
|
inline |
Definition at line 1026 of file Player.h.
References PLAYER_BYTES, PLAYER_BYTES_OFFSET_HAIR_COLOR_ID, and Object::SetByteValue().
Referenced by Create(), WorldSession::HandleAlterAppearance(), and LoadFromDB().
|
inline |
Definition at line 1024 of file Player.h.
References PLAYER_BYTES, PLAYER_BYTES_OFFSET_HAIR_STYLE_ID, and Object::SetByteValue().
Referenced by Create(), WorldSession::HandleAlterAppearance(), and LoadFromDB().
|
inline |
Definition at line 987 of file Player.h.
References PLAYER_EXTRA_HAS_310_FLYER.
Referenced by AddSpell(), and Has310Flyer().
|
inline |
Definition at line 994 of file Player.h.
References PLAYER_EXTRA_LEVEL_BOOSTED.
|
inline |
Definition at line 990 of file Player.h.
References PLAYER_EXTRA_HAS_RACE_CHANGED.
| void Player::SetHomebind | ( | WorldLocation const & | loc, |
| uint32 | areaId | ||
| ) |
Definition at line 16849 of file Player.cpp.
References CHAR_UPD_PLAYER_HOMEBIND, CharacterDatabase, Object::GetGUID(), WorldLocation::GetMapId(), Position::GetPosition(), m_homebindAreaId, m_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, PreparedStatementBase::setFloat(), PreparedStatementBase::setUInt16(), and PreparedStatementBase::setUInt32().
Referenced by Spell::EffectBind().
| void Player::SetHonorPoints | ( | uint32 | value | ) |
Definition at line 6662 of file Player.cpp.
References AddKnownCurrency(), CONFIG_MAX_HONOR_POINTS, ITEM_HONOR_POINTS_ID, PLAYER_FIELD_HONOR_CURRENCY, Object::SetUInt32Value(), and sWorld.
Referenced by Create(), reset_commandscript::HandleResetHonorCommand(), LoadFromDB(), and ModifyHonorPoints().
Definition at line 6712 of file Player.cpp.
References ARENA_TEAM_ID, ARENA_TEAM_TYPE, and SetArenaTeamInfoField().
Referenced by ArenaTeam::AddMember().
|
inline |
Definition at line 1346 of file Player.h.
Referenced by WorldSession::HandlePlayerLogin().
| void Player::SetInGuild | ( | ObjectGuid::LowType | guildId | ) |
Definition at line 26212 of file Player.cpp.
References Object::GetGUID(), PLAYER_GUILDID, sCharacterCache, and Object::SetUInt32Value().
Referenced by Guild::AddMember(), Guild::DeleteMember(), and WorldSession::HandlePlayerLogin().
| void Player::SetInviteForBattlegroundQueueType | ( | BattlegroundQueueTypeId | bgQueueTypeId, |
| uint32 | instanceId | ||
| ) |
Definition at line 23108 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 2151 of file Player.h.
Referenced by Pet::LoadPetFromDB().
Definition at line 1698 of file Player.h.
Referenced by AtExitCombat(), InitRunes(), Player(), and SetRuneCooldown().
|
inline |
Definition at line 2199 of file Player.h.
Referenced by Spell::TakeRunePower().
|
inline |
Definition at line 1701 of file Player.h.
Referenced by WorldSession::DoLootRelease(), and SendLoot().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 25517 of file Player.cpp.
References Reference< TO, FROM >::link(), m_mapRef, and WorldObject::SetMap().
Referenced by Map::AddPlayerToMap(), Create(), WorldSession::HandleMoveWorldportAck(), and LoadFromDB().
| void Player::SetMoney | ( | uint32 | value | ) |
Definition at line 22362 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_GOLD_VALUE_OWNED, MoneyChanged(), PLAYER_FIELD_COINAGE, Object::SetUInt32Value(), and UpdateAchievementCriteria().
Referenced by Create(), modify_commandscript::HandleModifyMoneyCommand(), LoadFromDB(), and ModifyMoney().
| void Player::SetMonthlyQuestStatus | ( | uint32 | quest_id | ) |
Definition at line 22961 of file Player.cpp.
References m_MonthlyQuestChanged, and m_monthlyquests.
Referenced by RewardQuest().
|
inline |
Definition at line 1557 of file Player.h.
Referenced by WorldSession::HandleCompleteMovie(), and SendMovieStart().
|
inline |
Definition at line 1565 of file Player.h.
References PLAYER_FIELD_BYTES, PLAYER_FIELD_BYTES_OFFSET_ACTION_BAR_TOGGLES, and Object::SetByteValue().
Referenced by WorldSession::HandleSetActionBarToggles().
|
inlineoverridevirtual |
Reimplemented from Unit.
Definition at line 1018 of file Player.h.
References PLAYER_BYTES_3, PLAYER_BYTES_3_OFFSET_GENDER, and Object::SetByteValue().
Referenced by Create(), modify_commandscript::HandleModifyGenderCommand(), and LoadFromDB().
|
inline |
Definition at line 1574 of file Player.h.
Referenced by WorldSession::HandleZoneUpdateOpcode().
|
inline |
Definition at line 1107 of file Player.h.
References PLAYER_NO_REAGENT_COST_1, and Object::SetUInt32Value().
Referenced by AuraEffect::HandleNoReagentUseAura().
|
overridevirtual |
Reimplemented from Object.
Definition at line 1887 of file Player.cpp.
References DEFAULT_PLAYER_BOUNDING_RADIUS, DEFAULT_PLAYER_COMBAT_REACH, Unit::SetBoundingRadius(), Unit::SetCombatReach(), and Object::SetObjectScale().
Referenced by Create(), InitStatsForLevel(), and LoadFromDB().
Definition at line 23987 of file Player.cpp.
References ASSERT, Reference< TO, FROM >::link(), m_originalGroup, GroupReference::setSubGroup(), and Reference< TO, FROM >::unlink().
Referenced by Group::AddMember(), Group::Disband(), RemoveFromBattlegroundOrBattlefieldRaid(), Group::RemoveMember(), and SetBattlegroundOrBattlefieldRaid().
|
inline |
Definition at line 2179 of file Player.h.
Referenced by WorldSession::HandleOptOutOfLootOpcode().
Definition at line 18704 of file Player.cpp.
References _pendingBindId, and _pendingBindTimer.
Referenced by InstanceMap::AddPlayerToMap(), WorldSession::HandleInstanceLockResponse(), WorldSession::LogoutPlayer(), Player(), and Update().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 22317 of file Player.cpp.
References WorldObject::GetPhaseMask(), Unit::GetVehicleRoot(), Unit::SetPhaseMask(), and UpdateObjectVisibility().
Referenced by misc_commandscript::HandleAppearCommand(), misc_commandscript::HandleSummonCommand(), and SetGameMaster().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 21677 of file Player.cpp.
References Unit::m_Controlled, and Unit::SetPvP().
Referenced by UpdatePvP().
|
inline |
Definition at line 988 of file Player.h.
References PLAYER_EXTRA_PVP_DEATH.
Referenced by CreateCorpse().
|
inline |
Definition at line 1342 of file Player.h.
Referenced by WorldSession::HandlePushQuestToParty(), and WorldSession::HandleQuestgiverAcceptQuestOpcode().
Definition at line 15977 of file Player.cpp.
References MAX_QUEST_OFFSET, PLAYER_QUEST_LOG_1_1, QUEST_COUNTS_OFFSET, QUEST_ID_OFFSET, QUEST_STATE_OFFSET, QUEST_TIME_OFFSET, and Object::SetUInt32Value().
Referenced by _LoadQuestStatus(), AddQuest(), Spell::EffectQuestClear(), WorldSession::HandleQuestLogRemoveQuest(), quest_commandscript::HandleQuestRemove(), and RewardQuest().
Definition at line 15986 of file Player.cpp.
References Object::GetUInt64Value(), MAX_QUEST_OFFSET, PLAYER_QUEST_LOG_1_1, QUEST_COUNTS_OFFSET, and Object::SetUInt64Value().
Referenced by _LoadQuestStatus(), SendQuestUpdateAddCreatureOrGo(), and SendQuestUpdateAddPlayer().
Definition at line 15994 of file Player.cpp.
References MAX_QUEST_OFFSET, PLAYER_QUEST_LOG_1_1, QUEST_STATE_OFFSET, and Object::SetFlag().
Referenced by _LoadQuestStatus(), CompleteQuest(), and FailQuest().
Definition at line 16004 of file Player.cpp.
References MAX_QUEST_OFFSET, PLAYER_QUEST_LOG_1_1, QUEST_TIME_OFFSET, and Object::SetUInt32Value().
Referenced by FailQuest().
| void Player::SetQuestStatus | ( | uint32 | questId, |
| QuestStatus | status, | ||
| bool | update = true |
||
| ) |
Definition at line 15690 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 1624 of file Player.h.
Referenced by _LoadGroup(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleSetRaidDifficultyOpcode(), and LoadFromDB().
| void Player::SetRandomWinner | ( | bool | isWinner | ) |
Definition at line 26080 of file Player.cpp.
References CHAR_INS_BATTLEGROUND_RANDOM, CharacterDatabase, Object::GetGUID(), m_IsBGRandomWinner, and PreparedStatementBase::setUInt32().
Referenced by Battleground::EndBattleground().
|
inline |
Definition at line 1389 of file Player.h.
Referenced by AuraEffect::HandleAuraTransform().
| void Player::SetRegularAttackTime | ( | ) |
Definition at line 5404 of file Player.cpp.
References BASE_ATTACK_TIME, ItemTemplate::GetDelay(), Item::GetTemplate(), GetWeaponForAttack(), Item::IsBroken(), MAX_ATTACK, and Unit::SetAttackTime().
Referenced by InitDataForForm().
Definition at line 25841 of file Player.cpp.
References GetReputationMgr(), ReputationMgr::SetReputation(), and sFactionStore.
| void Player::SetRestBonus | ( | float | rest_bonus_new | ) |
Definition at line 20974 of file Player.cpp.
References GetSession(), GetsRecruitAFriendBonus(), Object::GetUInt32Value(), IsMaxLevel(), m_rest_bonus, PLAYER_NEXT_LEVEL_XP, PLAYER_REST_STATE_EXPERIENCE, REST_STATE_NOT_RAF_LINKED, REST_STATE_RAF_LINKED, REST_STATE_RESTED, SetRestState(), and Object::SetUInt32Value().
Referenced by GetXPRestBonus(), LoadFromDB(), and Update().
Definition at line 26434 of file Player.cpp.
References _restFlagMask, _restTime, GameTime::GetGameTime(), inn_triggerId, PLAYER_FLAGS, PLAYER_FLAGS_RESTING, and Object::SetFlag().
Referenced by WorldSession::HandleAreaTriggerOpcode(), UpdateArea(), and UpdateZone().
|
inline |
Definition at line 1036 of file Player.h.
References PLAYER_BYTES_2, PLAYER_BYTES_2_OFFSET_REST_STATE, and Object::SetByteValue().
Referenced by Create(), LoadFromDB(), and SetRestBonus().
| void Player::SetResurrectRequestData | ( | WorldObject const * | caster, |
| uint32 | health, | ||
| uint32 | mana, | ||
| uint32 | appliedAura | ||
| ) |
Definition at line 21726 of file Player.cpp.
References _resurrectionData, ASSERT, Object::GetGUID(), and IsResurrectRequested().
Referenced by Spell::EffectResurrect(), and Spell::EffectResurrectNew().
| void Player::SetRewardedQuest | ( | uint32 | quest_id | ) |
Definition at line 15047 of file Player.cpp.
References m_RewardedQuests, m_RewardedQuestsSave, and QUEST_DEFAULT_SAVE_TYPE.
Referenced by Spell::EffectQuestComplete(), and RewardQuest().
| void Player::SetRuneConvertAura | ( | uint8 | index, |
| AuraEffect const * | aura | ||
| ) |
Definition at line 24351 of file Player.cpp.
References RuneInfo::ConvertAuras, m_runes, and Runes::runes.
Referenced by AddRuneByAuraEffect(), and InitRunes().
Definition at line 24329 of file Player.cpp.
References RuneInfo::Cooldown, GetRuneTimer(), Unit::IsInCombat(), m_runes, ResyncRunes(), Runes::runes, SetLastRuneGraceTimer(), Runes::SetRuneState(), and SetRuneTimer().
Referenced by Spell::EffectActivateRune(), spell_dk_blood_tap::spell_dk_blood_tap_SpellScript::HandleEffect(), InitRunes(), RegenerateAll(), and Spell::TakeRunePower().
Definition at line 1696 of file Player.h.
Referenced by AtExitCombat(), InitRunes(), Player(), SetRuneCooldown(), and Update().
| void Player::SetSeasonalQuestStatus | ( | uint32 | quest_id | ) |
Definition at line 22951 of file Player.cpp.
References Quest::GetEventIdForQuest(), GameTime::GetGameTime(), m_SeasonalQuestChanged, m_seasonalquests, and sObjectMgr.
Referenced by RewardQuest().
|
inline |
Definition at line 2056 of file Player.h.
Referenced by WorldSession::HandleFarSightOpcode(), and SetViewpoint().
|
inline |
Used for serverside target changes, does not apply to players.
Definition at line 1408 of file Player.h.
References Object::SetGuidValue(), and UNIT_FIELD_TARGET.
Referenced by WorldSession::HandleSetSelectionOpcode(), and TeleportTo().
|
inline |
Definition at line 1810 of file Player.h.
Referenced by WorldSession::HandleMoveWorldportAck(), and TeleportTo().
|
inline |
Definition at line 1809 of file Player.h.
Referenced by WorldSession::HandleMoveTeleportAck(), and TeleportTo().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 9204 of file Player.cpp.
References BASE_ATTACK, GetWeaponForAttack(), OFF_ATTACK, RANGED_ATTACK, Unit::SetSheath(), SetVirtualItemSlot(), SHEATH_STATE_MELEE, SHEATH_STATE_RANGED, and SHEATH_STATE_UNARMED.
Referenced by WorldSession::HandleSetSheathedOpcode().
Definition at line 5773 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILL_LEVEL, ACHIEVEMENT_CRITERIA_TYPE_REACH_SKILL_LEVEL, AURA_EFFECT_HANDLE_SKILL, Unit::GetAuraEffectsByType(), Object::GetGUID(), WorldObject::GetName(), GetSkillLineAbilitiesBySkill(), GetSkillLineIdByPos(), GetSkillRankByPos(), LearnSkillRewardedSpells(), mSkillStatus, PLAYER_MAX_SKILLS, RemoveSpell(), SetSkillLineId(), SetSkillMaxRank(), SetSkillPermBonus(), SetSkillRank(), SetSkillStep(), SetSkillTempBonus(), SKILL_CHANGED, SKILL_DELETED, SKILL_NEW, SPELL_AURA_MOD_SKILL, SPELL_AURA_MOD_SKILL_TALENT, sSkillLineStore, sSpellMgr, TC_LOG_ERROR, Position::ToString(), UpdateAchievementCriteria(), and UpdateSkillEnchantments().
Referenced by _LoadSkills(), AddSpell(), Spell::EffectLearnSkill(), learn_commandscript::HandleLearnAllRecipesCommand(), misc_commandscript::HandleSetSkillCommand(), WorldSession::HandleUnlearnSkillOpcode(), LearnDefaultSkill(), and RemoveSpell().
Definition at line 1792 of file Player.h.
References PLAYER_SKILL_INFO_1_1, Object::SetUInt16Value(), SKILL_ID_FIELD_OFFSET, and SKILL_ID_SHORT_OFFSET.
Referenced by _LoadSkills(), and SetSkill().
Definition at line 1798 of file Player.h.
References PLAYER_SKILL_INFO_1_1, Object::SetUInt16Value(), SKILL_MAX_RANK_FIELD_OFFSET, and SKILL_MAX_RANK_SHORT_OFFSET.
Referenced by _LoadSkills(), SetSkill(), and UpdateSkillsForLevel().
Definition at line 1802 of file Player.h.
References PLAYER_SKILL_INFO_1_1, Object::SetUInt16Value(), SKILL_PERM_BONUS_FIELD_OFFSET, and SKILL_PERM_BONUS_SHORT_OFFSET.
Referenced by _LoadSkills(), ModifySkillBonus(), and SetSkill().
Definition at line 1796 of file Player.h.
References PLAYER_SKILL_INFO_1_1, Object::SetUInt16Value(), SKILL_RANK_FIELD_OFFSET, and SKILL_RANK_SHORT_OFFSET.
Referenced by _LoadSkills(), SetSkill(), UpdateSkill(), UpdateSkillPro(), UpdateSkillsForLevel(), and UpdateWeaponsSkillsToMaxSkillsForLevel().
Definition at line 1794 of file Player.h.
References PLAYER_SKILL_INFO_1_1, Object::SetUInt16Value(), SKILL_STEP_FIELD_OFFSET, and SKILL_STEP_SHORT_OFFSET.
Referenced by _LoadSkills(), and SetSkill().
Definition at line 1800 of file Player.h.
References PLAYER_SKILL_INFO_1_1, Object::SetInt16Value(), SKILL_TEMP_BONUS_FIELD_OFFSET, and SKILL_TEMP_BONUS_SHORT_OFFSET.
Referenced by _LoadSkills(), ModifySkillBonus(), and SetSkill().
|
inline |
Definition at line 1020 of file Player.h.
References PLAYER_BYTES, PLAYER_BYTES_OFFSET_SKIN_ID, and Object::SetByteValue().
Referenced by Create(), WorldSession::HandleAlterAppearance(), and LoadFromDB().
| void Player::SetSpellModTakingSpell | ( | Spell * | spell, |
| bool | apply | ||
| ) |
Definition at line 20930 of file Player.cpp.
References m_spellModTakingSpell.
Referenced by Spell::_cast(), Spell::cast(), Spell::handle_delayed(), and Aura::UpdateOwner().
|
inline |
Definition at line 1483 of file Player.h.
Referenced by InitTalentForLevel(), LoadFromDB(), and UpdateTalentGroupCount().
|
inline |
Definition at line 1477 of file Player.h.
Referenced by LoadFromDB().
|
inline |
Definition at line 1479 of file Player.h.
Referenced by LoadFromDB().
|
inlineoverridevirtual |
|
inline |
Definition at line 983 of file Player.h.
References PLAYER_EXTRA_TAXICHEAT.
Referenced by WorldSession::HandlePlayerLogin(), cheat_commandscript::HandleTaxiCheatCommand(), and WorldSession::SendTaxiMenu().
|
inline |
Definition at line 2113 of file Player.h.
Referenced by Pet::LoadPetFromDB().
| void Player::SetTitle | ( | CharTitlesEntry const * | title, |
| bool | lost = false |
||
| ) |
Definition at line 24291 of file Player.cpp.
References Object::HasFlag(), CharTitlesEntry::MaskID, PLAYER__FIELD_KNOWN_TITLES, Object::RemoveFlag(), SendDirectMessage(), Object::SetFlag(), and SMSG_TITLE_EARNED.
Referenced by _LoadQuestStatusRewarded(), AchievementMgr::CompletedAchievement(), titles_commandscript::HandleTitlesAddCommand(), titles_commandscript::HandleTitlesCurrentCommand(), titles_commandscript::HandleTitlesRemoveCommand(), AchievementMgr::LoadFromDB(), and RewardQuest().
|
inline |
Definition at line 1473 of file Player.h.
Referenced by ActivateTalentGroup(), AddSpell(), and RemoveSpell().
| void Player::SetViewpoint | ( | WorldObject * | target, |
| bool | apply | ||
| ) |
Definition at line 24094 of file Player.cpp.
References Object::AddGuidValue(), WorldObject::BuildUpdate(), ByteBuffer::clear(), Object::GetEntry(), Object::GetGUID(), Object::GetGUID(), WorldObject::GetName(), Object::GetTypeId(), Unit::GetVehicleBase(), Unit::HasUnitTypeMask(), IN_MILLISECONDS, Minion::IsRisenAlly(), m_deathTimer, MINUTE, PLAYER_FARSIGHT, Object::RemoveGuidValue(), SendDirectMessage(), SetSeer(), SMSG_FORCED_DEATH_UPDATE, TC_LOG_DEBUG, TC_LOG_FATAL, Position::ToString(), Object::ToUnit(), TYPEID_UNIT, UNIT_MASK_MINION, and UpdateVisibilityOf().
Referenced by CinematicMgr::BeginCinematic(), CinematicMgr::EndCinematic(), AuraEffect::HandleBindSight(), RemoveFromWorld(), and SetClientControl().
Definition at line 9184 of file Player.cpp.
References ApplyEnchantment(), ASSERT, Item::ClearEnchantment(), Item::GetEnchantmentCharges(), Item::GetEnchantmentId(), Item::SetEnchantmentCharges(), and TEMP_ENCHANTMENT_SLOT.
Referenced by SetSheath().
Definition at line 11936 of file Player.cpp.
References Item::GetEnchantmentId(), Object::GetEntry(), PERM_ENCHANTMENT_SLOT, PLAYER_VISIBLE_ITEM_1_ENCHANTMENT, PLAYER_VISIBLE_ITEM_1_ENTRYID, Object::SetUInt16Value(), Object::SetUInt32Value(), and TEMP_ENCHANTMENT_SLOT.
Referenced by DestroyItem(), LoadFromDB(), RemoveItem(), and VisualizeItem().
| void Player::SetWeeklyQuestStatus | ( | uint32 | quest_id | ) |
Definition at line 22945 of file Player.cpp.
References m_WeeklyQuestChanged, and m_weeklyquests.
Referenced by RewardQuest().
|
inline |
Definition at line 998 of file Player.h.
References PLAYER_XP, and Object::SetUInt32Value().
Referenced by GiveXP(), group_commandscript::HandleGroupLevelCommand(), reset_commandscript::HandleResetLevelCommand(), and LoadFromDB().
| void Player::SpawnCorpseBones | ( | bool | triggerSave = true | ) |
Definition at line 4555 of file Player.cpp.
References _corpseLocation, Object::GetGUID(), WorldObject::GetMap(), GetSession(), SaveToDB(), and WorldLocation::WorldRelocate().
Referenced by Battleground::_ProcessResurrect(), CreateCorpse(), Spell::EffectSelfResurrect(), Battleground::EndBattleground(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleBattleFieldPortOpcode(), group_commandscript::HandleGroupReviveCommand(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandleReclaimCorpse(), misc_commandscript::HandleReviveCommand(), LoadCorpse(), Battleground::RemovePlayerAtLeave(), RepopAtGraveyard(), BfGraveyard::Resurrect(), ResurrectUsingRequestDataImpl(), and WorldSession::SendSpiritResurrect().
If trading
If current item is in trade window (only possible with packet spoofing - silent return)
Definition at line 12512 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(), Object::GetGUID(), Object::GetGUID(), GetItemByPos(), WorldObject::GetName(), GetTradeData(), IsBankPos(), IsEquipmentPos(), IsInventoryPos(), Object::IsInWorld(), ITEM_CHANGED, Item::m_lootGenerated, SendEquipError(), Object::SendUpdateToPlayer(), Item::SetCount(), Item::SetState(), StoreItem(), TC_LOG_DEBUG, Position::ToString(), and TRADE_SLOT_INVALID.
Referenced by WorldSession::HandleSplitItemOpcode().
| void Player::StartTimedAchievement | ( | AchievementCriteriaTimedTypes | type, |
| uint32 | entry, | ||
| uint32 | timeLost = 0 |
||
| ) |
Definition at line 24899 of file Player.cpp.
References m_achievementMgr, and AchievementMgr::StartTimedAchievement().
Referenced by AddQuest(), BattlegroundWS::EventPlayerClickedOnFlag(), and KilledMonsterCredit().
| void Player::StopCastingBindSight | ( | ) | const |
Definition at line 24084 of file Player.cpp.
References Object::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 20412 of file Player.cpp.
References Unit::_ExitVehicle(), ABORT, Unit::ExitVehicle(), Unit::GetCharmed(), Unit::GetCharmedGUID(), Unit::GetCharmerGUID(), GetDebugInfo(), Unit::GetDebugInfo(), Object::GetGUID(), WorldObject::GetName(), Object::GetTypeId(), Unit::HasAuraTypeWithCaster(), Unit::HasUnitTypeMask(), ObjectGuid::IsEmpty(), Unit::IsGhouled(), Unit::IsVehicle(), Unit::RemoveCharmAuras(), RemoveGhoul(), 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 626 of file Player.cpp.
References DISABLED_MIRROR_TIMER, m_MirrorTimer, and SendDirectMessage().
Referenced by HandleDrowning(), SendMirrorTimer(), and StopMirrorTimers().
| void Player::StopMirrorTimers | ( | ) |
Definition at line 725 of file Player.cpp.
References BREATH_TIMER, FATIGUE_TIMER, FIRE_TIMER, and StopMirrorTimer().
Referenced by BuildPlayerRepop(), and KillPlayer().
| Item * Player::StoreItem | ( | ItemPosCountVec const & | pos, |
| Item * | pItem, | ||
| bool | update | ||
| ) |
Definition at line 11659 of file Player.cpp.
References _StoreItem().
Referenced by _LoadInventory(), AutoUnequipOffhandIfNeed(), BankItem(), Create(), Spell::EffectSummonChangeItem(), WorldSession::HandleAutoEquipItemOpcode(), WorldSession::HandleAutoStoreBagItemOpcode(), WorldSession::HandleAutoStoreBankItemOpcode(), WorldSession::HandleBuybackItem(), WorldSession::HandleEquipmentSetUse(), WorldSession::HandleMailCreateTextItem(), MoveItemToInventory(), SplitItem(), StoreNewItem(), and SwapItem().
Definition at line 24531 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_LOOT_EPIC_ITEM, ACHIEVEMENT_CRITERIA_TYPE_LOOT_ITEM, ACHIEVEMENT_CRITERIA_TYPE_LOOT_TYPE, LootItem::AllowedForPlayer(), CanStoreNewItem(), Loot::containerID, LootItem::count, EQUIP_ERR_LOOT_GONE, EQUIP_ERR_OK, LootItem::freeforall, LootItem::GetAllowedLooters(), Object::GetGUID(), GetLootGUID(), GetLootTypeForClient(), Loot::GetPlayerQuestItems(), NotNormalLootItem::index, LootItem::is_blocked, LootItem::is_looted, NotNormalLootItem::is_looted, ObjectGuid::IsEmpty(), LootItem::itemid, LootItem::itemIndex, Loot::loot_type, Loot::LootItemInSlot(), Loot::NotifyItemRemoved(), Loot::NotifyQuestItemRemoved(), NULL_BAG, NULL_SLOT, LootItem::randomPropertyId, LootItem::rollWinnerGUID, SendEquipError(), SendLootRelease(), SendNewItem(), SendNotifyLootItemRemoved(), sLootItemStorage, StoreNewItem(), Loot::unlootedCount, and UpdateAchievementCriteria().
Referenced by Loot::FillNotNormalLootFor(), and WorldSession::HandleAutostoreLootItemOpcode().
| Item * Player::StoreNewItem | ( | ItemPosCountVec const & | pos, |
| uint32 | itemId, | ||
| bool | update, | ||
| int32 | randomPropertyId = 0, |
||
| GuidSet const & | allowedLooters = GuidSet() |
||
| ) |
Definition at line 11619 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM, ACHIEVEMENT_CRITERIA_TYPE_RECEIVE_EPIC_ITEM, AddTradeableItem(), CHAR_INS_ITEM_BOP_TRADE, CharacterDatabase, Item::CreateItem(), ObjectGuid::GetCounter(), Object::GetGUID(), ItemTemplate::GetMaxStackSize(), Item::GetTemplate(), GetTotalPlayedTime(), Item::IsSoulBound(), ItemAddedQuestCheck(), Item::SetCreatePlayedTime(), Item::SetItemRandomProperties(), Item::SetSoulboundTradeable(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), StoreItem(), and UpdateAchievementCriteria().
Referenced by _StoreOrEquipNewItem(), AddItem(), AutoStoreLoot(), Group::CountTheRoll(), Spell::DoCreateItem(), GiveQuestSourceItem(), misc_commandscript::HandleAddItemCommand(), misc_commandscript::HandleAddItemSetCommand(), misc_commandscript::HandleAddItemToCommand(), AuraEffect::HandleChannelDeathItem(), OPvPCapturePointNA::HandleCustomSpell(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandlePetitionBuyOpcode(), quest_commandscript::HandleQuestComplete(), item_mysterious_egg::OnExpire(), item_disgusting_jar::OnExpire(), npc_tyrande_whisperwind::npc_tyrande_whisperwindAI::OnGossipSelect(), npc_erozion::OnGossipSelect(), RefundItem(), RemovePet(), RewardQuest(), npc_verdisa_beglaristrasz_eternos::StoreEssence(), StoreLootItem(), and StoreNewItemInBestSlots().
Definition at line 577 of file Player.cpp.
References AutoUnequipOffhandIfNeed(), CanEquipNewItem(), CanStoreNewItem(), EQUIP_ERR_OK, EquipNewItem(), GenerateItemRandomPropertyId(), Unit::GetClass(), Object::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 23305 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_ACCEPTED_SUMMONINGS, FinishTaxiFlight(), GetBattleground(), GameTime::GetGameTime(), m_summon_expire, m_summon_location, TeleportTo(), and UpdateAchievementCriteria().
Referenced by WorldSession::HandleSummonResponseOpcode().
| Pet * Player::SummonPet | ( | uint32 | entry, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | ang, | ||
| PetType | petType, | ||
| uint32 | despwtime | ||
| ) |
Definition at line 26230 of file Player.cpp.
References Map::AddToMap(), ASSERT, CLASS_MAGE, Pet::Create(), PetStable::CurrentPet, Pet::FillPetInfo(), Map::GenerateLowGuid(), Unit::GetAuraEffectsByType(), Unit::GetCharmInfo(), Object::GetEntry(), Unit::GetFaction(), GameTime::GetGameTime(), Object::GetGUID(), Object::GetGUID(), Unit::GetLevel(), WorldObject::GetMap(), Unit::GetMaxPower(), GetOrInitPetStable(), WorldObject::GetPhaseMask(), Position::GetPositionX(), Position::GetPositionY(), PetStable::GetUnslottedHunterPet(), HUNTER_PET, Pet::InitPetCreateSpells(), Guardian::InitStatsForLevel(), Pet::InitTalentForLevel(), Minion::IsPetGhoul(), Position::IsPositionValid(), Pet::LoadPetFromDB(), Pet, PET_SAVE_AS_CURRENT, PET_SAVE_NOT_IN_SLOT, PetSpellInitialize(), POWER_MANA, Position::Relocate(), Unit::RemoveAurasDueToSpell(), RemovePet(), Unit::ReplaceAllNpcFlags(), Pet::SavePetToDB(), Unit::SetClass(), Unit::SetCreatorGUID(), Pet::SetDuration(), Unit::SetFaction(), Unit::SetFullHealth(), Unit::SetMinion(), WorldObject::SetName(), Pet::SetPetExperience(), Unit::SetPetNameTimestamp(), Pet::SetPetNextLevelExperience(), CharmInfo::SetPetNumber(), Unit::SetPower(), sObjectMgr, SPELL_AURA_OVERRIDE_CLASS_SCRIPTS, SUMMON_PET, TC_LOG_ERROR, Object::ToCreature(), ObjectGuid::ToString(), and UNIT_NPC_FLAG_NONE.
Referenced by Spell::EffectResurrectPet(), and Spell::EffectSummonPet().
Definition at line 12628 of file Player.cpp.
References ApplyItemDependentAuras(), AutoUnequipOffhandIfNeed(), BankItem(), CanBankItem(), CanEquipItem(), CanStoreItem(), CanUnequipItem(), WorldSession::DoLootRelease(), EQUIP_ERR_BAG_IN_BAG, EQUIP_ERR_CANT_SWAP, EQUIP_ERR_OK, EQUIP_ERR_PLAYER_DEAD, EquipItem(), Bag::GetBagSize(), Item::GetCount(), Object::GetEntry(), Object::GetGUID(), GetItemByPos(), Bag::GetItemByPos(), GetLootGUID(), ItemTemplate::GetMaxStackSize(), WorldObject::GetName(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, Unit::IsAlive(), Item::IsBag(), IsBagPos(), IsBankPos(), Bag::IsEmpty(), IsEquipmentPos(), IsInventoryPos(), Object::IsInWorld(), ITEM_CHANGED, ItemAddedQuestCheck(), ItemCanGoIntoBag(), ItemRemovedQuestCheck(), m_session, RemoveItem(), Bag::RemoveItem(), SendEquipError(), SendRefundInfo(), Object::SendUpdateToPlayer(), Item::SetCount(), Item::SetState(), StoreItem(), Bag::StoreItem(), TC_LOG_DEBUG, Item::ToBag(), and Position::ToString().
Referenced by WorldSession::HandleAutoEquipItemSlotOpcode(), WorldSession::HandleEquipmentSetUse(), misc_commandscript::HandleItemMoveCommand(), WorldSession::HandleSwapInvItemOpcode(), and WorldSession::HandleSwapItem().
Definition at line 16009 of file Player.cpp.
References Object::GetUInt32Value(), MAX_QUEST_OFFSET, PLAYER_QUEST_LOG_1_1, and Object::SetUInt32Value().
Referenced by WorldSession::HandleQuestLogSwapQuest().
| bool Player::TakeQuestSourceItem | ( | uint32 | questId, |
| bool | msg | ||
| ) |
Definition at line 15605 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(), and quest_commandscript::HandleQuestRemove().
| void Player::TalkedToCreature | ( | uint32 | entry, |
| ObjectGuid | guid | ||
| ) |
Definition at line 16325 of file Player.cpp.
References CanCompleteQuest(), CompleteQuest(), QuestStatusData::CreatureOrGOCount, GetQuestSlotQuestId(), Quest::HasSpecialFlag(), m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, QUEST_DEFAULT_SAVE_TYPE, QUEST_OBJECTIVES_COUNT, QUEST_SPECIAL_FLAGS_CAST, QUEST_SPECIAL_FLAGS_KILL, QUEST_SPECIAL_FLAGS_SPEAKTO, QUEST_STATUS_INCOMPLETE, Quest::RequiredNpcOrGo, Quest::RequiredNpcOrGoCount, SendQuestUpdateAddCreatureOrGo(), sObjectMgr, and QuestStatusData::Status.
Referenced by npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::OnGossipHello(), npc_innkeeper::npc_innkeeperAI::OnGossipHello(), and npc_clintar_spirit::npc_clintar_spiritAI::UpdateAI().
Definition at line 6271 of file Player.cpp.
References ALLIANCE, HORDE, sChrRacesStore, and TC_LOG_ERROR.
Referenced by CharacterCache::GetCharacterTeamByGuid(), Unit::GetModelForForm(), WorldSession::HandleAddFriendOpcode(), WorldSession::HandleCalendarEventInvite(), WorldSession::HandleCharCreateOpcode(), WorldSession::HandleCharRaceOrFactionChangeCallback(), PlayerTaxi::InitTaxiNodesForLevel(), AchievementMgr::LoadFromDB(), and SetFactionForRace().
Definition at line 6288 of file Player.cpp.
References sChrRacesStore, TC_LOG_ERROR, and TEAM_NEUTRAL.
| bool Player::TeleportTo | ( | uint32 | mapid, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | orientation, | ||
| uint32 | options = 0 |
||
| ) |
Definition at line 1539 of file Player.cpp.
References Unit::AddUnitMovementFlag(), AURA_INTERRUPT_FLAG_CHANGE_MAP, AURA_INTERRUPT_FLAG_MOVE, AURA_INTERRUPT_FLAG_TURNING, CLASS_DEATH_KNIGHT, Unit::CombatStop(), DISABLE_TYPE_MAP, Unit::DisableSpline(), duel, DUEL_FLED, DuelComplete(), ObjectGuid::Empty, Unit::ExitVehicle(), MapEntry::Expansion(), GetBattleground(), Unit::GetClass(), Unit::GetGameObject(), Object::GetGUID(), Object::GetGuidValue(), WorldObject::GetMap(), WorldLocation::GetMapId(), Unit::GetMotionMaster(), WorldObject::GetName(), Position::GetOrientation(), GetPet(), Position::GetPosition(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetSession(), WorldObject::GetTransport(), Unit::GetUnitMovementFlags(), WorldObject::GetVisibilityRange(), HasSpell(), WorldPackets::Movement::ShipTransferPending::ID, InBattleground(), Unit::InterruptNonMeleeSpells(), MotionMaster::InterruptOnTeleport(), Unit::IsAlive(), MapEntry::IsBattleArena(), MapEntry::IsBattlegroundOrArena(), IsBeingTeleportedNear(), IsCanDelayTeleport(), DisableMgr::IsDisabledFor(), IsGameMaster(), IsHasDelayedTeleport(), Object::IsInWorld(), Unit::IsMovedByClient(), Unit::IsNonMeleeSpellCast(), MapManager::IsValidMapCoord(), WorldObject::IsWithinDist3d(), LeaveBattleground(), WorldObject::m_movementInfo, m_teleport_dest, m_teleport_options, Unit::m_vehicle, WorldPackets::Movement::TransferPending::MapID, WorldPackets::Movement::NewWorld::MapID, MOVEMENTFLAG_MASK_HAS_PLAYER_STATUS_OPCODE, MOVEMENTFLAG_ONTRANSPORT, WorldPackets::Movement::ShipTransferPending::OriginMapID, PLAYER_DUEL_ARBITER, MovementInfo::TransportInfo::pos, WorldPackets::Movement::NewWorld::Pos, Unit::PurgeAndApplyPendingMovementChanges(), rbac::RBAC_PERM_SKIP_CHECK_DISABLE_MAP, Unit::RemoveAllDynObjects(), Unit::RemoveArenaAuras(), RemoveArenaSpellCooldowns(), Unit::RemoveAurasWithInterruptFlags(), Map::RemovePlayerFromMap(), RepopAtGraveyard(), ResetContestedPvP(), ResurrectPlayer(), SendDirectMessage(), SendSavedInstances(), Unit::SendTeleportPacket(), SendTransferAborted(), SetDelayedTeleportFlag(), SetFallInformation(), SetSelection(), SetSemaphoreTeleportFar(), SetSemaphoreTeleportNear(), Unit::SetUnitMovementFlags(), WorldPackets::Movement::TransferPending::Ship, sMapMgr, sMapStore, TC_LOG_DEBUG, TC_LOG_ERROR, TELE_REVIVE_AT_TELEPORT, TELE_TO_NOT_LEAVE_COMBAT, TELE_TO_NOT_LEAVE_TRANSPORT, TELE_TO_NOT_UNSUMMON_PET, TELE_TO_SPELL, TELE_TO_TRANSPORT_TELEPORT, Position::ToString(), TRANSFER_ABORT_INSUF_EXPAN_LVL, TRANSFER_ABORT_MAP_NOT_ALLOWED, TRANSFER_ABORT_UNIQUE_MESSAGE, MovementInfo::transport, UnsummonPetTemporaryIfAny(), UpdatePosition(), WorldLocation::WorldLocation(), WorldPackets::Movement::TransferPending::Write(), and WorldPackets::Movement::NewWorld::Write().
Referenced by ActivateTaxiPathTo(), Transport::DelayedTeleportTransport(), FlightPathMovementGenerator::DoFinalize(), go_commandscript::DoTeleport(), Spell::EffectTeleportUnits(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), go_commandscript::HandleGoBossCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoInstanceCommand(), go_commandscript::HandleGoZoneXYCommand(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandleMoveSplineDoneOpcode(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandlePlayerLogin(), spell_ioc_gunship_portal::HandleScript(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleCommand(), tele_commandscript::HandleTeleGroupCommand(), misc_commandscript::HandleUnstuckCommand(), WorldSession::HandleWorldTeleportOpcode(), npc_wg_spirit_guide::OnGossipSelect(), lfg::LFGPlayerScript::OnMapChanged(), BattlefieldWG::OnPlayerJoinWar(), at_icc_saurfang_portal::OnTrigger(), Battlefield::PlayerAskToLeave(), BfGraveyard::RelocateDeadPlayers(), Battleground::RelocateDeadPlayers(), Map::RemoveAllPlayers(), RepopAtGraveyard(), ResurrectUsingRequestData(), WorldSession::SendSpiritResurrect(), BattlegroundMgr::SendToBattleground(), SummonIfPossible(), lfg::LFGMgr::TeleportPlayer(), GmTicket::TeleportTo(), TeleportTo(), TeleportToBGEntryPoint(), BattlegroundSA::TeleportToEntrancePosition(), Update(), and GameObject::Use().
| bool Player::TeleportTo | ( | WorldLocation const & | loc, |
| uint32 | options = 0 |
||
| ) |
Definition at line 1777 of file Player.cpp.
References WorldLocation::GetMapId(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), and TeleportTo().
| bool Player::TeleportToBGEntryPoint | ( | ) |
Definition at line 1782 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 MapInstanced::CreateInstanceForPlayer(), 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 20491 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 20511 of file Player.cpp.
References CHAT_MSG_EMOTE, CONFIG_LISTEN_RANGE_TEXTEMOTE, and sWorld.
| void Player::ToggleAFK | ( | ) |
Definition at line 1509 of file Player.cpp.
References GetSession(), InArena(), InBattleground(), isAFK(), LeaveBattleground(), PLAYER_FLAGS, PLAYER_FLAGS_AFK, rbac::RBAC_PERM_CAN_AFK_ON_BATTLEGROUND, and Object::ToggleFlag().
Referenced by Battleground::AddPlayer(), WorldSession::HandleChatMessage(), and Battlefield::PlayerAcceptInviteToWar().
| void Player::ToggleDND | ( | ) |
Definition at line 1518 of file Player.cpp.
References PLAYER_FLAGS, PLAYER_FLAGS_DND, and Object::ToggleFlag().
Referenced by WorldSession::HandleChatMessage().
| void Player::ToggleMetaGemsActive | ( | uint8 | exceptslot, |
| bool | apply | ||
| ) |
Definition at line 21865 of file Player.cpp.
References ApplyEnchantment(), SpellItemEnchantmentEntry::ConditionID, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Item::GetEnchantmentId(), GetItemByPos(), ItemTemplate::GetSocketColor(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, SOCK_ENCHANTMENT_SLOT, and sSpellItemEnchantmentStore.
Referenced by WorldSession::HandleSocketOpcode().
| void Player::TradeCancel | ( | bool | sendback, |
| TradeStatus | status = TRADE_STATUS_TRADE_CANCELED |
||
| ) |
Definition at line 13233 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::UnbindInstance | ( | BoundInstancesMap::iterator & | itr, |
| Difficulty | difficulty, | ||
| bool | unload = false |
||
| ) |
Definition at line 18600 of file Player.cpp.
References CHAR_DEL_CHAR_INSTANCE_BY_INSTANCE_GUID, CharacterDatabase, Object::GetGUID(), GetSession(), m_boundInstances, WorldSession::SendCalendarRaidLockoutRemoved(), and PreparedStatementBase::setUInt32().
| void Player::UnbindInstance | ( | uint32 | mapid, |
| Difficulty | difficulty, | ||
| bool | unload = false |
||
| ) |
Definition at line 18594 of file Player.cpp.
References m_boundInstances, and UnbindInstance().
Referenced by Group::ConvertLeaderInstancesToGroup(), MapInstanced::CreateInstanceForPlayer(), instance_commandscript::HandleInstanceUnbindCommand(), and UnbindInstance().
| void Player::UninviteFromGroup | ( | ) |
Definition at line 2335 of file Player.cpp.
References Group::Disband(), GetGroupInvite(), Group::GetInviteeCount(), Group::GetMembersCount(), Group::IsCreated(), Group::RemoveAllInvites(), and Group::RemoveInvite().
Referenced by WorldSession::HandleGroupDeclineOpcode(), and WorldSession::LogoutPlayer().
| void Player::UnsummonPetTemporaryIfAny | ( | ) |
Definition at line 25168 of file Player.cpp.
References Unit::GetCharmInfo(), GetPet(), CharmInfo::GetPetNumber(), Object::GetUInt32Value(), Pet::isControlled(), Pet::isTemporarySummoned(), m_oldpetspell, m_temporaryUnsummonedPetNumber, PET_SAVE_AS_CURRENT, RemovePet(), and UNIT_CREATED_BY_SPELL.
Referenced by Battleground::AddPlayer(), VehicleJoinEvent::Execute(), RemoveFromWorld(), and TeleportTo().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 920 of file Player.cpp.
References _cinematicMgr, _pendingBindId, _pendingBindTimer, _restTime, Unit::AIUpdateTick(), ATTACK_DISPLAY_DELAY, Unit::AttackerStateUpdate(), BASE_ATTACK, BindToInstance(), BuildPlayerRepop(), CheckDuelDistance(), CINEMATIC_UPDATEDIFF, CLASS_DEATH_KNIGHT, CombatManager::EndCombatBeyondRange(), FailQuest(), Unit::getAttackTimer(), Unit::GetClass(), Unit::GetCombatManager(), GetDrunkValue(), GameTime::GetGameTime(), GameTime::GetGameTimeMS(), Object::GetGUID(), GetInnTriggerId(), WorldObject::GetInstanceId(), WorldObject::GetMap(), GetMSTimeDiffToNow(), WorldObject::GetName(), GetPet(), GetRestBonus(), GetRuneCooldown(), GetRuneTimer(), GetSession(), Object::GetUInt32Value(), Unit::GetVictim(), WorldObject::GetVisibilityRange(), WorldObject::GetZoneAndAreaId(), HandleDrowning(), HandleSobering(), Unit::HasAuraType(), Object::HasFlag(), Position::HasInArc(), HasPendingBind(), HasRestFlag(), Unit::HasUnitState(), Unit::haveOffhandWeapon(), IN_MILLISECONDS, Unit::IsAlive(), Unit::isAttackReady(), Unit::IsGhouled(), IsHasDelayedTeleport(), IsInAreaTriggerRadius(), Object::IsInWorld(), Unit::isPossessed(), WorldObject::IsValidAttackTarget(), WorldObject::IsWithinDistInMap(), Unit::IsWithinMeleeRange(), JUST_DIED, KillPlayer(), LOGIN_UPD_MUTE_TIME, LoginDatabase, m_achievementMgr, CinematicMgr::m_activeCinematicCameraId, m_areaUpdateId, CinematicMgr::m_cinematicCamera, CinematicMgr::m_cinematicDiff, Unit::m_deathState, m_deathTimer, m_drunkTimer, m_hostileReferenceCheckTimer, m_Last_tick, CinematicMgr::m_lastCinematicCheck, WorldSession::m_muteTime, m_nextMailDelivereTime, m_nextSave, M_PI, m_Played_time, m_QuestStatus, m_QuestStatusSave, Unit::m_regenTimer, m_swingErrorMsg, m_teleport_dest, m_teleport_options, m_timedquests, m_weaponChangeTimer, m_zoneUpdateId, m_zoneUpdateTimer, MAX_RUNES, OFF_ATTACK, PET_SAVE_NOT_IN_SLOT, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_FLAGS, PLAYER_FLAGS_RESTING, PLAYER_NEXT_LEVEL_XP, QUEST_DEFAULT_SAVE_TYPE, RATE_REST_INGAME, RegenerateAll(), RemovePet(), RemoveRestFlag(), RepopAtGraveyard(), Unit::resetAttackTimer(), REST_FLAG_IN_TAVERN, roll_chance_i(), sAreaTriggerStore, SaveToDB(), SendAttackSwingBadFacingAttack(), SendAttackSwingCantAttack(), SendAttackSwingNotInRange(), SendNewMail(), Unit::setAttackTimer(), SetCanDelayTeleport(), PreparedStatementBase::setInt64(), SetPendingBind(), SetRestBonus(), SetRuneTimer(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), SPELL_AURA_PREVENT_RESURRECTION, sWorld, TC_LOG_DEBUG, TeleportTo(), QuestStatusData::Timer, Position::ToString(), UNIT_STATE_CASTING, UNIT_STATE_CHARGING, UNIT_STATE_MELEE_ATTACKING, unReadMails, Unit::Update(), UpdateAfkReport(), UpdateArea(), CinematicMgr::UpdateCinematicLocation(), UpdateContestedPvP(), UpdateDuelFlag(), UpdateEnchantTime(), UpdateHomebindTime(), UpdateItemDuration(), UpdatePvPFlag(), UpdateSoulboundTradeItems(), AchievementMgr::UpdateTimedAchievements(), UpdateZone(), and ZONE_UPDATE_INTERVAL.
Referenced by Map::Update().
| void Player::UpdateAchievementCriteria | ( | AchievementCriteriaTypes | type, |
| uint32 | miscValue1 = 0, |
||
| uint32 | miscValue2 = 0, |
||
| WorldObject * | ref = nullptr |
||
| ) |
Definition at line 24914 of file Player.cpp.
References m_achievementMgr, and AchievementMgr::UpdateAchievementCriteria().
Referenced by KillRewarder::_RewardKillCredit(), ActivateTaxiPathTo(), AddSpell(), CheckAreaExplore(), Group::CountTheRoll(), Unit::DealDamage(), FlightPathMovementGenerator::DoUpdate(), DuelComplete(), Battleground::EndBattleground(), Arena::EndBattleground(), EnvironmentalDamage(), EquipItem(), EquipNewItem(), lfg::LFGMgr::FinishDungeon(), GiveLevel(), WorldSession::HandleAlterAppearance(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleBuyBankSlotOpcode(), HandleFall(), WorldSession::HandleGameobjectReportUse(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleLootRoll(), WorldSession::HandlePlayerLogin(), WorldSession::HandleQuestLogRemoveQuest(), reset_commandscript::HandleResetHonorCommand(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSendMail(), WorldSession::HandleTextEmoteOpcode(), IncreaseResetTalentsCostAndCounters(), Unit::Kill(), KilledMonsterCredit(), ArenaTeamMember::ModifyPersonalRating(), MoveItemToInventory(), QuickEquipItem(), RewardHonor(), RewardQuest(), AuctionHouseMgr::SendAuctionSuccessfulMail(), AuctionHouseMgr::SendAuctionWonMail(), setDeathState(), SetMoney(), ReputationMgr::SetOneFactionReputation(), SetSkill(), StoreLootItem(), StoreNewItem(), SummonIfPossible(), BattlegroundAB::UpdatePlayerScore(), BattlegroundAV::UpdatePlayerScore(), BattlegroundEY::UpdatePlayerScore(), BattlegroundWS::UpdatePlayerScore(), UpdateSkill(), UpdateSkillPro(), and GameObject::Use().
| void Player::UpdateAfkReport | ( | time_t | currTime | ) |
checks the 15 afk reports per 5 minutes limit
Definition at line 20201 of file Player.cpp.
References BGData::bgAfkReportedCount, BGData::bgAfkReportedTimer, m_bgData, and MINUTE.
Referenced by Update().
| void Player::UpdateAllCritPercentages | ( | ) |
Definition at line 675 of file StatSystem.cpp.
References BASE_ATTACK, CRIT_PERCENTAGE, GetMeleeCritFromAgility(), OFF_ATTACK, OFFHAND_CRIT_PERCENTAGE, RANGED_ATTACK, RANGED_CRIT_PERCENTAGE, SetBaseModPctValue(), and UpdateCritPercentage().
Referenced by UpdateAllStats(), UpdateStats(), and UpdateWeaponSkill().
| void Player::UpdateAllRatings | ( | ) |
Definition at line 5398 of file Player.cpp.
References MAX_COMBAT_RATING, and UpdateRating().
Referenced by UpdateAllStats().
| void Player::UpdateAllSpellCritChances | ( | ) |
Definition at line 878 of file StatSystem.cpp.
References MAX_SPELL_SCHOOL, SPELL_SCHOOL_NORMAL, and UpdateSpellCritChance().
Referenced by AuraEffect::HandleAuraModCritPct(), AuraEffect::HandleModSpellCritChance(), UpdateAllStats(), UpdateRating(), and UpdateStats().
|
overridevirtual |
Implements Unit.
Definition at line 208 of file StatSystem.cpp.
References BASE_ATTACK, CR_ARMOR_PENETRATION, Unit::GetTotalStatValue(), MAX_POWERS, MAX_STATS, OFF_ATTACK, POWER_ENERGY, POWER_MANA, POWER_RAGE, POWER_RUNIC_POWER, RecalculateRating(), Unit::SetStat(), STAT_STRENGTH, UpdateAllCritPercentages(), UpdateAllRatings(), Unit::UpdateAllResistances(), UpdateAllSpellCritChances(), UpdateArmor(), UpdateAttackPowerAndDamage(), UpdateDefenseBonusesMod(), UpdateExpertise(), UpdateMaxHealth(), UpdateMaxPower(), UpdatePowerRegen(), UpdateShieldBlockValue(), and UpdateSpellDamageAndHealingBonus().
Referenced by _ApplyAllStatBonuses(), _RemoveAllStatBonuses(), GiveLevel(), and LoadFromDB().
| void Player::UpdateAllWeaponDependentCritAuras | ( | ) |
Definition at line 7522 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 6769 of file Player.cpp.
References ALLIANCE, AREA_FLAG_ARENA, AREA_FLAG_REST_ZONE_ALLIANCE, AREA_FLAG_REST_ZONE_HORDE, Unit::CombatStopWithPets(), duel, AreaTableEntry::Flags, Unit::GetCombatManager(), GetTeam(), PvPInfo::IsInFFAPvPArea, PvPInfo::IsInNoPvPArea, AreaTableEntry::IsSanctuary(), m_areaUpdateId, pvpInfo, Unit::RemovePvpFlag(), RemoveRestFlag(), REST_FLAG_IN_FACTION_AREA, sAreaTableStore, Unit::SetPvpFlag(), SetRestFlag(), UNIT_BYTE2_FLAG_SANCTUARY, UpdateAreaDependentAuras(), UpdatePvPState(), and Unit::ValidateAttackersAndOwnTarget().
Referenced by SetGameMaster(), Update(), and UpdateZone().
| void Player::UpdateAreaDependentAuras | ( | uint32 | area_id | ) |
Definition at line 23764 of file Player.cpp.
References WorldObject::CastSpell(), WorldLocation::GetMapId(), Unit::HasAura(), Unit::m_ownedAuras, m_zoneUpdateId, Unit::RemoveOwnedAura(), SPELL_CAST_OK, and sSpellMgr.
Referenced by UpdateArea().
|
overridevirtual |
Implements Unit.
Definition at line 263 of file StatSystem.cpp.
References BASE_PCT, BASE_VALUE, CalculatePct(), Unit::GetAuraEffectsByType(), Unit::GetFlatModifierValue(), Unit::GetPctModifierValue(), GetPet(), Unit::GetStat(), Unit::SetArmor(), SPELL_AURA_MOD_RESISTANCE_OF_STAT_PERCENT, SPELL_SCHOOL_MASK_NORMAL, STAT_AGILITY, TOTAL_PCT, TOTAL_VALUE, UNIT_MOD_ARMOR, and Guardian::UpdateArmor().
Referenced by UpdateAllStats(), UpdateResistances(), and UpdateStats().
| void Player::UpdateArmorPenetration | ( | int32 | amount | ) |
Definition at line 856 of file StatSystem.cpp.
References AsUnderlyingType(), CR_ARMOR_PENETRATION, PLAYER_FIELD_COMBAT_RATING_1, and Object::SetUInt32Value().
Referenced by UpdateRating().
|
overridevirtual |
Implements Unit.
Definition at line 340 of file StatSystem.cpp.
References BASE_ATTACK, CalculatePct(), Unit::CanDualWield(), CLASS_DEATH_KNIGHT, CLASS_DRUID, CLASS_HUNTER, CLASS_MAGE, CLASS_PALADIN, CLASS_PRIEST, CLASS_ROGUE, CLASS_SHAMAN, CLASS_WARLOCK, CLASS_WARRIOR, CLASSMASK_WAND_USERS, EFFECT_0, EFFECT_1, EQUIPMENT_SLOT_MAINHAND, FlatNegative, FlatPositive, FORM_BEAR, FORM_CAT, FORM_DIREBEAR, FORM_MOONKIN, Unit::GetAttackPowerModifierValue(), Unit::GetAuraEffect(), Unit::GetAuraEffectsByType(), Unit::GetClass(), Unit::GetClassMask(), Unit::GetGuardianPet(), Unit::GetLevel(), GetPet(), Unit::GetShapeshiftForm(), Unit::GetStat(), ItemTemplate::GetTotalAPBonus(), Unit::GetTotalAuraModifier(), Unit::haveOffhandWeapon(), Unit::IsHunterPet(), Unit::IsInFeralForm(), Minion::IsPetGhoul(), Minion::IsRisenAlly(), Minion::IsSpiritWolf(), m_baseFeralAP, m_items, Melee, OFF_ATTACK, Pct, Ranged, RANGED_ATTACK, Unit::SetAttackPower(), Unit::SetAttackPowerModNeg(), Unit::SetAttackPowerModPos(), Unit::SetAttackPowerMultiplier(), Unit::SetRangedAttackPower(), Unit::SetRangedAttackPowerModNeg(), Unit::SetRangedAttackPowerModPos(), Unit::SetRangedAttackPowerMultiplier(), SPELL_AURA_DUMMY, SPELL_AURA_MOD_ATTACK_POWER_OF_ARMOR, SPELL_AURA_MOD_ATTACK_POWER_OF_STAT_PERCENT, SPELL_AURA_MOD_RANGED_ATTACK_POWER_OF_STAT_PERCENT, SPELLFAMILY_DRUID, STAT_AGILITY, STAT_STRENGTH, Guardian::UpdateAttackPowerAndDamage(), Unit::UpdateDamagePhysical(), and UpdateSpellDamageAndHealingBonus().
Referenced by ApplyFeralAPBonus(), AuraEffect::HandleAuraModAttackPowerOfStatPercent(), AuraEffect::HandleAuraModRangedAttackPowerOfStatPercent(), InitDataForForm(), UpdateAllStats(), and UpdateStats().
| void Player::UpdateBaseModGroup | ( | BaseModGroup | modGroup | ) |
Definition at line 5070 of file Player.cpp.
References BASE_ATTACK, Unit::CanModifyStats(), CRIT_PERCENTAGE, OFF_ATTACK, OFFHAND_CRIT_PERCENTAGE, RANGED_ATTACK, RANGED_CRIT_PERCENTAGE, SHIELD_BLOCK_VALUE, UpdateCritPercentage(), and UpdateShieldBlockValue().
Referenced by ApplyBaseModPctValue(), HandleBaseModFlatValue(), SetBaseModFlatValue(), and SetBaseModPctValue().
| void Player::UpdateBlockPercentage | ( | ) |
Definition at line 613 of file StatSystem.cpp.
References CanBlock(), CONFIG_STATS_LIMITS_BLOCK, CONFIG_STATS_LIMITS_ENABLE, CR_BLOCK, Unit::GetDefenseSkillValue(), Unit::GetMaxSkillValueForLevel(), GetRatingBonusValue(), Unit::GetTotalAuraModifier(), PLAYER_BLOCK_PERCENTAGE, Object::SetStatFloatValue(), SPELL_AURA_MOD_BLOCK_PERCENT, and sWorld.
Referenced by AuraEffect::HandleAuraModBlockPercent(), SetCanBlock(), UpdateDefenseBonusesMod(), and UpdateRating().
| void Player::UpdateCombatSkills | ( | Unit * | victim, |
| WeaponAttackType | attType, | ||
| bool | defense | ||
| ) |
Definition at line 5659 of file Player.cpp.
References CLASS_ROGUE, CLASS_WARRIOR, GetBaseDefenseSkillValue(), GetBaseWeaponSkillValue(), Unit::GetClass(), Trinity::XP::GetGrayLevel(), Unit::GetLevel(), Unit::GetLevelForTarget(), Unit::GetStat(), roll_chance_f(), STAT_INTELLECT, UpdateDefense(), and UpdateWeaponSkill().
Referenced by Unit::ProcSkillsAndReactives().
| void Player::UpdateContestedPvP | ( | uint32 | currTime | ) |
Definition at line 20235 of file Player.cpp.
References Unit::IsInCombat(), m_contestedPvPTimer, and ResetContestedPvP().
Referenced by Update().
| void Player::UpdateCorpseReclaimDelay | ( | ) |
Definition at line 23801 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().
| bool Player::UpdateCraftSkill | ( | uint32 | spellid | ) |
Definition at line 5463 of file Player.cpp.
References CONFIG_SKILL_GAIN_CRAFTING, Object::GetGUID(), WorldObject::GetName(), GetPureSkillValue(), GetSkillDiscoverySpell(), LearnSpell(), SpellInfo::Mechanic, MECHANIC_DISCOVERY, SkillGainChance(), sSpellMgr, sWorld, TC_LOG_DEBUG, Position::ToString(), and UpdateSkillPro().
Referenced by Spell::DoCreateItem(), Spell::EffectCreateItem2(), and Spell::EffectEnchantItemPerm().
| void Player::UpdateCritPercentage | ( | WeaponAttackType | attType | ) |
Definition at line 636 of file StatSystem.cpp.
References BASE_ATTACK, CONFIG_STATS_LIMITS_CRIT, CONFIG_STATS_LIMITS_ENABLE, CR_CRIT_MELEE, CR_CRIT_RANGED, CRIT_PERCENTAGE, FLAT_MOD, GetBaseModValue(), Unit::GetMaxSkillValueForLevel(), GetRatingBonusValue(), Unit::GetWeaponSkillValue(), OFF_ATTACK, OFFHAND_CRIT_PERCENTAGE, PCT_MOD, PLAYER_CRIT_PERCENTAGE, PLAYER_OFFHAND_CRIT_PERCENTAGE, PLAYER_RANGED_CRIT_PERCENTAGE, RANGED_ATTACK, RANGED_CRIT_PERCENTAGE, Object::SetStatFloatValue(), and sWorld.
Referenced by UpdateAllCritPercentages(), UpdateBaseModGroup(), and UpdateRating().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 5015 of file Player.cpp.
References ABORT, BASE_ATTACK, CLASS_SHAMAN, SpellItemEnchantmentEntry::Effect, SpellItemEnchantmentEntry::EffectPointsMin, 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::UpdateDefense | ( | ) |
Definition at line 4965 of file Player.cpp.
References CONFIG_SKILL_GAIN_DEFENSE, SKILL_DEFENSE, sWorld, UpdateDefenseBonusesMod(), and UpdateSkill().
Referenced by UpdateCombatSkills().
| void Player::UpdateDefenseBonusesMod | ( | ) |
Definition at line 606 of file StatSystem.cpp.
References UpdateBlockPercentage(), UpdateDodgePercentage(), and UpdateParryPercentage().
Referenced by AuraEffect::HandleAuraModSkill(), UpdateAllStats(), UpdateDefense(), UpdateRating(), and UpdateWeaponsSkillsToMaxSkillsForLevel().
| void Player::UpdateDodgePercentage | ( | ) |
Definition at line 809 of file StatSystem.cpp.
References CalculateDiminishingReturns(), CONFIG_STATS_LIMITS_DODGE, CONFIG_STATS_LIMITS_ENABLE, CR_DEFENSE_SKILL, CR_DODGE, dodge_cap, Unit::GetClass(), GetDodgeFromAgility(), Unit::GetMaxSkillValueForLevel(), GetRatingBonusValue(), GetSkillValue(), Unit::GetTotalAuraModifier(), PLAYER_DODGE_PERCENTAGE, Object::SetStatFloatValue(), SKILL_DEFENSE, SPELL_AURA_MOD_DODGE_PERCENT, and sWorld.
Referenced by AuraEffect::HandleAuraModDodgePercent(), UpdateDefenseBonusesMod(), UpdateRating(), and UpdateStats().
| void Player::UpdateDuelFlag | ( | time_t | currTime | ) |
Definition at line 20270 of file Player.cpp.
References duel, DUEL_STATE_COUNTDOWN, DUEL_STATE_IN_PROGRESS, PLAYER_DUEL_TEAM, Object::SetUInt32Value(), and sScriptMgr.
Referenced by Update().
| void Player::UpdateEnchantTime | ( | uint32 | time | ) |
Definition at line 13293 of file Player.cpp.
References ApplyEnchantment(), ASSERT, and m_enchantDuration.
Referenced by Update().
| void Player::UpdateEquipSpellsAtFormChange | ( | ) |
Definition at line 7631 of file Player.cpp.
References ApplyEquipSpell(), ApplyItemEquipSpell(), Unit::CanUseAttackType(), GetAttackBySlot(), INVENTORY_SLOT_BAG_END, ItemSetEff, m_items, MAX_ITEM_SET_SPELLS, and ItemSetEffect::spells.
Referenced by InitDataForForm().
| void Player::UpdateExpertise | ( | WeaponAttackType | attType | ) |
Definition at line 884 of file StatSystem.cpp.
References BASE_ATTACK, CR_EXPERTISE, GetRatingBonusValue(), AuraEffect::GetSpellInfo(), Unit::GetTotalAuraModifier(), GetWeaponForAttack(), OFF_ATTACK, PLAYER_EXPERTISE, PLAYER_OFFHAND_EXPERTISE, RANGED_ATTACK, Object::SetUInt32Value(), and SPELL_AURA_MOD_EXPERTISE.
Referenced by DestroyItem(), EquipItem(), AuraEffect::HandleAuraModExpertise(), RemoveItem(), UpdateAllStats(), and UpdateRating().
| void Player::UpdateFallInformationIfNeed | ( | MovementInfo const & | minfo, |
| uint16 | opcode | ||
| ) |
Definition at line 25162 of file Player.cpp.
References MovementInfo::fallTime, Position::GetPositionZ(), m_lastFallTime, m_lastFallZ, MSG_MOVE_FALL_LAND, MovementInfo::pos, and SetFallInformation().
Referenced by WorldSession::HandleMovementOpcode().
| bool Player::UpdateFishingSkill | ( | ) |
Definition at line 5537 of file Player.cpp.
References CONFIG_SKILL_GAIN_GATHERING, GetFishingStepsNeededToLevelUp(), Object::GetGUID(), GetMaxSkillValue(), WorldObject::GetName(), GetPureSkillValue(), 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 |
||
| ) |
Definition at line 5496 of file Player.cpp.
References CONFIG_SKILL_CHANCE_MINING_STEPS, CONFIG_SKILL_CHANCE_SKINNING_STEPS, CONFIG_SKILL_GAIN_GATHERING, Object::GetGUID(), WorldObject::GetName(), SKILL_HERBALISM, SKILL_INSCRIPTION, SKILL_JEWELCRAFTING, SKILL_LOCKPICKING, SKILL_MINING, SKILL_SKINNING, SkillGainChance(), sWorld, TC_LOG_DEBUG, Position::ToString(), and UpdateSkillPro().
Referenced by Spell::EffectMilling(), Spell::EffectOpenLock(), Spell::EffectProspecting(), and Spell::EffectSkinning().
| void Player::UpdateHomebindTime | ( | uint32 | time | ) |
Definition at line 21594 of file Player.cpp.
References Object::GetGUID(), WorldObject::GetName(), IsGameMaster(), m_HomebindTimer, m_InstanceValid, RepopAtGraveyard(), SendDirectMessage(), SMSG_RAID_GROUP_ONLY, TC_LOG_DEBUG, and Position::ToString().
Referenced by Update().
| void Player::UpdateHonorFields | ( | ) |
called when rewarding honor and at each save
Definition at line 6491 of file Player.cpp.
References DAY, GameTime::GetGameTime(), Object::GetUInt16Value(), Object::GetUInt32Value(), m_lastHonorUpdateTime, PLAYER_FIELD_KILLS, PLAYER_FIELD_KILLS_OFFSET_TODAY_KILLS, PLAYER_FIELD_KILLS_OFFSET_YESTERDAY_KILLS, PLAYER_FIELD_TODAY_CONTRIBUTION, PLAYER_FIELD_YESTERDAY_CONTRIBUTION, Object::SetUInt16Value(), and Object::SetUInt32Value().
Referenced by honor_commandscript::HandleHonorUpdateCommand(), LoadFromDB(), RewardHonor(), and SaveToDB().
| void Player::UpdateInvisibilityDrunkDetect | ( | ) |
Definition at line 901 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, Object::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 13275 of file Player.cpp.
References Object::GetGUID(), WorldObject::GetName(), Item::GetTemplate(), ItemTemplate::HasFlag(), ITEM_FLAGS_CU_DURATION_REAL_TIME, m_itemDuration, TC_LOG_DEBUG, Position::ToString(), and Item::UpdateDuration().
Referenced by LoadFromDB(), and Update().
| void Player::UpdateLocalChannels | ( | uint32 | newZone | ) |
Definition at line 4882 of file Player.cpp.
References CanJoinConstantChannelInZone(), CHANNEL_DBC_FLAG_CITY_ONLY, CHANNEL_DBC_FLAG_GLOBAL, ChatChannelsEntry::Flags, ChannelMgr::ForTeam(), Channel::GetChannelId(), GetSession(), ChannelMgr::GetSystemChannel(), GetTeam(), Channel::GetZoneEntry(), ChatChannelsEntry::ID, IsBeingTeleportedFar(), Channel::JoinChannel(), Channel::LeaveChannel(), LeftChannel(), ChannelMgr::LeftChannel(), m_channels, sAreaTableStore, and sChatChannelsStore.
Referenced by UpdateZone().
|
overridevirtual |
Implements Unit.
Definition at line 308 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 320 of file StatSystem.cpp.
References AsUnderlyingType(), BASE_PCT, BASE_VALUE, Unit::GetCreatePowerValue(), Unit::GetFlatModifierValue(), GetManaBonusFromIntellect(), Unit::GetPctModifierValue(), POWER_MANA, Unit::SetMaxPower(), TOTAL_PCT, TOTAL_VALUE, and UNIT_MOD_POWER_START.
Referenced by UpdateAllStats(), and UpdateStats().
| void Player::UpdateMeleeHitChances | ( | ) |
Definition at line 862 of file StatSystem.cpp.
References CR_HIT_MELEE, GetRatingBonusValue(), and Unit::m_modMeleeHitChance.
Referenced by UpdateRating().
| void Player::UpdateMirrorTimers | ( | ) |
Definition at line 718 of file Player.cpp.
References m_MirrorTimerFlags, and m_MirrorTimerFlagsLast.
Referenced by AuraEffect::HandleWaterBreathing().
| void Player::UpdateNextMailTimeAndUnreads | ( | ) |
Definition at line 2849 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 22294 of file Player.cpp.
References WorldObject::AddToNotify(), Object::IsInWorld(), NOTIFY_VISIBILITY_CHANGED, Unit::UpdateObjectVisibility(), and UpdateVisibilityForPlayer().
Referenced by Map::AddPlayerToMap(), gm_commandscript::HandleGMVisibleCommand(), spell_ulduar_squeezed_lifeless::spell_ulduar_squeezed_lifeless_SpellScript::HandleInstaKill(), KillPlayer(), Map::PlayerRelocation(), ResurrectPlayer(), SetGameMaster(), SetGroup(), SetPhaseMask(), and UpdateInvisibilityDrunkDetect().
| void Player::UpdateParryPercentage | ( | ) |
Definition at line 767 of file StatSystem.cpp.
References CalculateDiminishingReturns(), CanParry(), CONFIG_STATS_LIMITS_ENABLE, CONFIG_STATS_LIMITS_PARRY, CR_DEFENSE_SKILL, CR_PARRY, Unit::GetClass(), Unit::GetMaxSkillValueForLevel(), GetRatingBonusValue(), GetSkillValue(), Unit::GetTotalAuraModifier(), parry_cap, PLAYER_PARRY_PERCENTAGE, Object::SetStatFloatValue(), SKILL_DEFENSE, SPELL_AURA_MOD_PARRY_PERCENT, and sWorld.
Referenced by AuraEffect::HandleAuraModParryPercent(), SetCanParry(), UpdateDefenseBonusesMod(), and UpdateRating().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 6105 of file Player.cpp.
References CheckAreaExplore(), GetGroup(), WorldObject::GetZoneAndAreaId(), GROUP_UPDATE_FLAG_POSITION, m_needsZoneUpdate, SetGroupUpdateFlag(), Unit::UpdatePosition(), and UpdateZone().
Referenced by WorldSession::HandleMoveTeleportAck(), and TeleportTo().
|
inlineoverridevirtual |
Reimplemented from Unit.
Definition at line 1729 of file Player.h.
References Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), and UpdatePosition().
Referenced by UpdatePosition().
| void Player::UpdatePotionCooldown | ( | Spell * | spell = nullptr | ) |
Definition at line 21698 of file Player.cpp.
References Unit::GetSpellHistory(), Spell::IsIgnoringCooldowns(), Unit::IsInCombat(), ITEM_SPELLTRIGGER_ON_USE, m_lastPotionId, Spell::m_spellInfo, SpellHistory::SendCooldownEvent(), sObjectMgr, and sSpellMgr.
Referenced by AtExitCombat(), and Spell::finish().
| void Player::UpdatePowerRegen | ( | Powers | power | ) |
Definition at line 935 of file StatSystem.cpp.
References AsUnderlyingType(), CalculatePct(), Unit::GetAuraEffectsByType(), Unit::GetLevel(), Unit::GetStat(), Unit::GetTotalAuraModifier(), Unit::GetTotalAuraModifierByMiscValue(), Unit::GetTotalAuraMultiplierByMiscValue(), Unit::HasAuraTypeWithValue(), m_baseManaRegen, MAX_POWERS, OCTRegenMPPerSpirit(), POWER_ENERGY, POWER_HEALTH, POWER_MANA, POWER_RAGE, POWER_RUNIC_POWER, PowerRegenInfo, Object::SetFloatValue(), SPELL_AURA_MOD_MANA_REGEN_FROM_STAT, SPELL_AURA_MOD_MANA_REGEN_INTERRUPT, SPELL_AURA_MOD_POWER_REGEN, SPELL_AURA_MOD_POWER_REGEN_PERCENT, SPELL_AURA_PREVENT_REGENERATE_POWER, STAT_INTELLECT, sWorld, UNIT_FIELD_POWER_REGEN_FLAT_MODIFIER, and UNIT_FIELD_POWER_REGEN_INTERRUPTED_FLAT_MODIFIER.
Referenced by ApplyManaRegenBonus(), AuraEffect::HandleAuraPreventRegeneratePower(), AuraEffect::HandleModManaRegen(), AuraEffect::HandleModPowerRegen(), UpdateAllStats(), and UpdateStats().
| void Player::UpdatePvP | ( | bool | state, |
| bool | override = false |
||
| ) |
Definition at line 21684 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::HandleTogglePvP(), InitPvP(), UpdatePvPFlag(), and UpdatePvPState().
| void Player::UpdatePvPFlag | ( | time_t | currTime | ) |
Definition at line 20253 of file Player.cpp.
References PvPInfo::EndTimer, PvPInfo::IsHostile, Unit::IsPvP(), PLAYER_FLAGS, PLAYER_FLAGS_PVP_TIMER, pvpInfo, Object::RemoveFlag(), and UpdatePvP().
Referenced by Update().
| void Player::UpdatePvPState | ( | bool | onlyFFA = false | ) |
Definition at line 21641 of file Player.cpp.
References PvPInfo::EndTimer, GameTime::GetGameTime(), Object::HasFlag(), Unit::IsFFAPvP(), IsGameMaster(), PvPInfo::IsHostile, PvPInfo::IsInFFAPvPArea, PvPInfo::IsInNoPvPArea, Unit::IsPvP(), Unit::m_Controlled, PLAYER_FLAGS, PLAYER_FLAGS_IN_PVP, pvpInfo, Unit::RemovePvpFlag(), Unit::SetPvpFlag(), sWorld, UNIT_BYTE2_FLAG_FFA_PVP, and UpdatePvP().
Referenced by AddQuest(), Spell::EffectQuestClear(), WorldSession::HandleQuestLogRemoveQuest(), quest_commandscript::HandleQuestRemove(), RewardQuest(), Unit::SetCharm(), UpdateArea(), and UpdateZone().
| void Player::UpdateRangedHitChances | ( | ) |
Definition at line 867 of file StatSystem.cpp.
References CR_HIT_RANGED, GetRatingBonusValue(), and Unit::m_modRangedHitChance.
Referenced by UpdateRating().
| void Player::UpdateRating | ( | CombatRating | cr | ) |
Definition at line 5311 of file Player.cpp.
References AsUnderlyingType(), BASE_ATTACK, CalculatePct(), Unit::CanModifyStats(), CR_ARMOR_PENETRATION, CR_BLOCK, CR_CRIT_MELEE, CR_CRIT_RANGED, CR_CRIT_SPELL, CR_CRIT_TAKEN_MELEE, CR_CRIT_TAKEN_RANGED, CR_CRIT_TAKEN_SPELL, CR_DEFENSE_SKILL, CR_DODGE, CR_EXPERTISE, CR_HASTE_MELEE, CR_HASTE_RANGED, CR_HASTE_SPELL, CR_HIT_MELEE, CR_HIT_RANGED, CR_HIT_SPELL, CR_HIT_TAKEN_MELEE, CR_HIT_TAKEN_RANGED, CR_HIT_TAKEN_SPELL, CR_PARRY, CR_WEAPON_SKILL, CR_WEAPON_SKILL_MAINHAND, CR_WEAPON_SKILL_OFFHAND, CR_WEAPON_SKILL_RANGED, Unit::GetAuraEffectsByType(), Unit::GetStat(), m_baseRatingValue, OFF_ATTACK, PLAYER_FIELD_COMBAT_RATING_1, RANGED_ATTACK, Object::SetUInt32Value(), SPELL_AURA_MOD_RATING_FROM_STAT, UpdateAllSpellCritChances(), UpdateArmorPenetration(), UpdateBlockPercentage(), UpdateCritPercentage(), UpdateDefenseBonusesMod(), UpdateDodgePercentage(), UpdateExpertise(), UpdateMeleeHitChances(), UpdateParryPercentage(), UpdateRangedHitChances(), and UpdateSpellHitChances().
Referenced by ApplyRatingMod(), and UpdateAllRatings().
|
overridevirtual |
Implements Unit.
Definition at line 248 of file StatSystem.cpp.
References GetPet(), Unit::GetTotalAuraModValue(), Unit::SetResistance(), SPELL_SCHOOL_NORMAL, UNIT_MOD_RESISTANCE_START, UpdateArmor(), and Guardian::UpdateResistances().
| void Player::UpdateRuneRegen | ( | RuneType | rune | ) |
Definition at line 1033 of file StatSystem.cpp.
References GetRuneTypeBaseCooldown(), IN_MILLISECONDS, NUM_RUNE_TYPES, PLAYER_RUNE_REGEN_1, and Object::SetFloatValue().
Referenced by AuraEffect::HandleModPowerRegen().
| void Player::UpdateShieldBlockValue | ( | ) |
Definition at line 524 of file StatSystem.cpp.
References GetShieldBlockValue(), PLAYER_SHIELD_BLOCK, and Object::SetUInt32Value().
Referenced by UpdateAllStats(), UpdateBaseModGroup(), and UpdateStats().
Definition at line 5421 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_REACH_SKILL_LEVEL, GetSkillMaxRankByPos(), GetSkillRankByPos(), mSkillStatus, SetSkillRank(), SKILL_CHANGED, SKILL_DELETED, SKILL_NEW, UpdateAchievementCriteria(), and UpdateSkillEnchantments().
Referenced by UpdateDefense(), and UpdateWeaponSkill().
Definition at line 13796 of file Player.cpp.
References ApplyEnchantment(), Item::GetEnchantmentId(), INVENTORY_SLOT_BAG_END, m_items, MAX_ENCHANTMENT_SLOT, PRISMATIC_ENCHANTMENT_SLOT, SpellItemEnchantmentEntry::RequiredSkillID, SpellItemEnchantmentEntry::RequiredSkillRank, SOCK_ENCHANTMENT_SLOT, SOCK_ENCHANTMENT_SLOT_2, SOCK_ENCHANTMENT_SLOT_3, and sSpellItemEnchantmentStore.
Referenced by SetSkill(), UpdateSkill(), and UpdateSkillPro().
Definition at line 5560 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_REACH_SKILL_LEVEL, Object::GetGUID(), WorldObject::GetName(), GetSkillMaxRankByPos(), GetSkillRankByPos(), irand(), LearnSkillRewardedSpells(), mSkillStatus, SetSkillRank(), SKILL_CHANGED, SKILL_DELETED, SKILL_NEW, TC_LOG_DEBUG, Position::ToString(), UpdateAchievementCriteria(), and UpdateSkillEnchantments().
Referenced by UpdateCraftSkill(), UpdateFishingSkill(), and UpdateGatherSkill().
| void Player::UpdateSkillsForLevel | ( | ) |
update only level dependent max skill values
maximize skill always
update max skill value if current max skill not maximized
Definition at line 5704 of file Player.cpp.
References CONFIG_ALWAYS_MAX_SKILL_FOR_LEVEL, SkillRaceClassInfoEntry::Flags, Unit::GetClass(), Unit::GetMaxSkillValueForLevel(), Unit::GetRace(), GetSkillMaxRankByPos(), GetSkillRaceClassInfo(), GetSkillRangeType(), mSkillStatus, SetSkillMaxRank(), SetSkillRank(), SKILL_CHANGED, SKILL_DELETED, SKILL_FLAG_ALWAYS_MAX_VALUE, SKILL_NEW, SKILL_RANGE_LEVEL, and sWorld.
Referenced by GiveLevel(), InitStatsForLevel(), and LoadFromDB().
| void Player::UpdateSoulboundTradeItems | ( | ) |
Definition at line 13252 of file Player.cpp.
References Item::CheckSoulboundTradeExpire(), Object::GetGUID(), GetItemByGuid(), Item::GetOwnerGUID(), and m_itemSoulboundTradeable.
Referenced by Update().
| void Player::UpdateSpeakTime | ( | ChatFloodThrottle::Index | index | ) |
Definition at line 19998 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, GameTime::GetGameTime(), GetSession(), m_chatFloodData, WorldSession::m_muteTime, rbac::RBAC_PERM_SKIP_CHECK_CHAT_SPAM, Player::ChatFloodThrottle::REGULAR, sWorld, and Time.
Referenced by WorldSession::HandleChatMessage().
| void Player::UpdateSpellCritChance | ( | uint32 | school | ) |
Definition at line 831 of file StatSystem.cpp.
References CR_CRIT_SPELL, GetRatingBonusValue(), GetSpellCritFromIntellect(), Unit::GetTotalAuraModifier(), Unit::GetTotalAuraModifierByMiscMask(), PLAYER_SPELL_CRIT_PERCENTAGE1, Object::SetFloatValue(), SPELL_AURA_MOD_CRIT_PCT, SPELL_AURA_MOD_SPELL_CRIT_CHANCE, SPELL_AURA_MOD_SPELL_CRIT_CHANCE_SCHOOL, and SPELL_SCHOOL_NORMAL.
Referenced by AuraEffect::HandleModSpellCritChanceShool(), and UpdateAllSpellCritChances().
| void Player::UpdateSpellDamageAndHealingBonus | ( | ) |
Definition at line 188 of file StatSystem.cpp.
References Unit::GetAuraEffectsByType(), Object::GetInt32Value(), MAX_SPELL_SCHOOL, PLAYER_FIELD_MOD_DAMAGE_DONE_NEG, PLAYER_FIELD_MOD_DAMAGE_DONE_POS, PLAYER_FIELD_MOD_HEALING_DONE_POS, Object::SetInt32Value(), Object::SetStatInt32Value(), SPELL_AURA_MOD_DAMAGE_DONE, SPELL_SCHOOL_HOLY, SPELL_SCHOOL_MASK_ALL, Unit::SpellBaseDamageBonusDone(), and Unit::SpellBaseHealingBonusDone().
Referenced by AuraEffect::HandleModHealingDone(), AuraEffect::HandleModSpellDamagePercentFromAttackPower(), AuraEffect::HandleModSpellDamagePercentFromStat(), AuraEffect::HandleModSpellHealingPercentFromAttackPower(), AuraEffect::HandleModSpellHealingPercentFromStat(), UpdateAllStats(), UpdateAttackPowerAndDamage(), and UpdateStats().
| void Player::UpdateSpellHitChances | ( | ) |
Definition at line 872 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 99 of file StatSystem.cpp.
References ApplyRatingMod(), Unit::GetAuraEffectsByType(), GetPet(), Unit::GetTotalStatValue(), Unit::HasAuraTypeWithMiscvalue(), MAX_COMBAT_RATING, POWER_MANA, Unit::SetStat(), SPELL_AURA_MOD_ATTACK_POWER_OF_STAT_PERCENT, SPELL_AURA_MOD_RANGED_ATTACK_POWER_OF_STAT_PERCENT, SPELL_AURA_MOD_RATING_FROM_STAT, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, UpdateAllCritPercentages(), UpdateAllSpellCritChances(), UpdateArmor(), UpdateAttackPowerAndDamage(), UpdateDodgePercentage(), UpdateMaxHealth(), UpdateMaxPower(), UpdatePowerRegen(), UpdateShieldBlockValue(), UpdateSpellDamageAndHealingBonus(), and Guardian::UpdateStats().
| void Player::UpdateTalentGroupCount | ( | uint8 | count | ) |
Definition at line 25615 of file Player.cpp.
References _SaveActions(), ActivateTalentGroup(), CHAR_DEL_CHAR_ACTION_EXCEPT_SPEC, CHAR_INS_CHAR_ACTION, CharacterDatabase, GetActiveTalentGroup(), ObjectGuid::GetCounter(), Object::GetGUID(), GetTalentGroupsCount(), m_actionButtons, SendTalentsInfoData(), SetActiveTalentGroup(), SetTalentGroupsCount(), PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt8().
Referenced by Spell::EffectSpecCount().
| void Player::UpdateTriggerVisibility | ( | ) |
Definition at line 22205 of file Player.cpp.
References UpdateData::BuildPacket(), Object::BuildValuesUpdateBlockForPlayer(), Map::GetCreature(), Map::GetGameObject(), WorldObject::GetMap(), Unit::HasAuraType(), UpdateData::HasData(), Unit::HasUnitFlag(), Object::IsInWorld(), Creature::IsTrigger(), m_clientGUIDs, Object::RemoveFieldNotifyFlag(), SendDirectMessage(), Object::SetFieldNotifyFlag(), SPELL_AURA_TRANSFORM, UF_FLAG_PUBLIC, and UNIT_FLAG_UNINTERACTIBLE.
Referenced by gm_commandscript::HandleGMOffCommand(), and gm_commandscript::HandleGMOnCommand().
| void Player::UpdateVisibilityForPlayer | ( | ) |
Definition at line 22309 of file Player.cpp.
References WorldObject::GetSightRange(), m_seer, Trinity::VisibleNotifier::SendToSelf(), and Cell::VisitAllObjects().
Referenced by WorldSession::HandleFarSightOpcode(), SendInitialPacketsAfterAddToMap(), and UpdateObjectVisibility().
| void Player::UpdateVisibilityOf | ( | T * | target, |
| UpdateData & | data, | ||
| std::set< Unit * > & | visibleNow | ||
| ) |
Definition at line 22258 of file Player.cpp.
References WorldObject::CanSeeOrDetect(), WorldObject::GetDistance(), Object::GetGUID(), HaveAtClient(), m_clientGUIDs, TC_LOG_DEBUG, Position::ToString(), and UpdateVisibilityOf_helper().
| void Player::UpdateVisibilityOf | ( | WorldObject * | target | ) |
Definition at line 22169 of file Player.cpp.
References BeforeVisibilityDestroy< Creature >(), WorldObject::CanSeeOrDetect(), Object::DestroyForPlayer(), WorldObject::GetDistance(), Object::GetGUID(), Object::GetGUID(), Object::GetTypeId(), HaveAtClient(), Object::IsUnit(), m_clientGUIDs, SendInitialVisiblePackets(), Object::SendUpdateToPlayer(), TC_LOG_DEBUG, Object::ToCreature(), ObjectGuid::ToString(), Position::ToString(), and TYPEID_UNIT.
Referenced by Trinity::VisibleNotifier::SendToSelf(), SetViewpoint(), Trinity::PlayerRelocationNotifier::Visit(), Trinity::VisibleNotifier::Visit(), Trinity::PlayerRelocationNotifier::Visit(), and Trinity::CreatureRelocationNotifier::Visit().
| void Player::UpdateVisibleGameobjectsOrSpellClicks | ( | ) |
Definition at line 23237 of file Player.cpp.
References UpdateData::BuildPacket(), Object::BuildValuesUpdateBlockForPlayer(), ObjectAccessor::GetCreatureOrPetOrVehicle(), Object::GetEntry(), ObjectAccessor::GetGameObject(), Unit::HasNpcFlag(), m_clientGUIDs, sConditionMgr, SendDirectMessage(), sObjectMgr, and UNIT_NPC_FLAG_SPELLCLICK.
Referenced by Group::AddMember(), Group::Disband(), ItemAddedQuestCheck(), ItemRemovedQuestCheck(), Group::RemoveMember(), and SendQuestUpdate().
| void Player::UpdateWeaponDependentAuras | ( | WeaponAttackType | attackType | ) |
Definition at line 7528 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 7494 of file Player.cpp.
References ABORT, BASE_ATTACK, Unit::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().
| void Player::UpdateWeaponSkill | ( | Unit * | victim, |
| WeaponAttackType | attType | ||
| ) |
Definition at line 5621 of file Player.cpp.
References BASE_ATTACK, CONFIG_SKILL_GAIN_WEAPON, CREATURE_FLAG_EXTRA_NO_SKILL_GAINS, CreatureTemplate::flags_extra, FORM_TREE, Creature::GetCreatureTemplate(), Unit::GetShapeshiftForm(), Item::GetSkill(), ItemTemplate::GetSubClass(), Item::GetTemplate(), Object::GetTypeId(), GetWeaponForAttack(), Unit::IsInFeralForm(), ITEM_SUBCLASS_WEAPON_FISHING_POLE, ITEM_SUBCLASS_WEAPON_FIST_WEAPON, SKILL_FIST_WEAPONS, SKILL_UNARMED, sWorld, Object::ToCreature(), TYPEID_UNIT, UpdateAllCritPercentages(), and UpdateSkill().
Referenced by UpdateCombatSkills().
| void Player::UpdateWeaponsSkillsToMaxSkillsForLevel | ( | ) |
Definition at line 5747 of file Player.cpp.
References GetSkillMaxRankByPos(), IsProfessionOrRidingSkill(), mSkillStatus, SetSkillRank(), SKILL_CHANGED, SKILL_DEFENSE, SKILL_DELETED, SKILL_NEW, and UpdateDefenseBonusesMod().
Referenced by GiveLevel(), and misc_commandscript::HandleMaxSkillCommand().
Definition at line 6805 of file Player.cpp.
References ALLIANCE, AREA_FLAG_CAPITAL, AREA_FLAG_WINTERGRASP, AREATEAM_ALLY, AREATEAM_HORDE, AREATEAM_NONE, AutoUnequipOffhandIfNeed(), CONFIG_WEATHER, DestroyZoneLimitedItem(), AreaTableEntry::FactionGroupMask, AreaTableEntry::Flags, GetGroup(), GetGuild(), WorldObject::GetMap(), Map::GetOrGenerateZoneDefaultWeather(), GetTeam(), GROUP_UPDATE_FULL, GUILD_MEMBER_DATA_ZONEID, HasPvPForcingQuest(), HORDE, InBattleground(), Unit::IsAlive(), PvPInfo::IsHostile, PvPInfo::IsInHostileArea, PvPInfo::IsInNoPvPArea, Object::IsInWorld(), AreaTableEntry::IsSanctuary(), m_zoneUpdateId, m_zoneUpdateTimer, pvpInfo, RemoveRestFlag(), REST_FLAG_IN_CITY, sAreaTableStore, sBattlefieldMgr, SendInitWorldStates(), Map::SendZoneDynamicInfo(), SetGroupUpdateFlag(), SetRestFlag(), sOutdoorPvPMgr, sScriptMgr, sWorld, UpdateArea(), UpdateLocalChannels(), Map::UpdatePlayerZoneStats(), UpdatePvPState(), UpdateZoneDependentAuras(), and ZONE_UPDATE_INTERVAL.
Referenced by WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAck(), Map::RemovePlayerFromMap(), ResurrectPlayer(), SendInitialPacketsAfterAddToMap(), Update(), and UpdatePosition().
| void Player::UpdateZoneDependentAuras | ( | uint32 | zone_id | ) |
Definition at line 23754 of file Player.cpp.
References WorldObject::CastSpell(), Unit::HasAura(), and sSpellMgr.
Referenced by UpdateZone().
|
static |
Definition at line 26385 of file Player.cpp.
References CLASS_DEATH_KNIGHT, GENDER_FEMALE, GetCharFacialHairEntry(), GetCharSectionEntry(), RACE_DRAENEI, RACE_NIGHTELF, RACE_TAUREN, RACE_UNDEAD_PLAYER, SECTION_FLAG_DEATH_KNIGHT, SECTION_FLAG_PLAYER, SECTION_TYPE_FACE, SECTION_TYPE_FACIAL_HAIR, SECTION_TYPE_HAIR, and SECTION_TYPE_SKIN.
Referenced by BuildEnumData(), Create(), WorldSession::HandleAlterAppearance(), WorldSession::HandleCharCustomizeCallback(), and LoadFromDB().
| void Player::VehicleSpellInitialize | ( | ) |
Definition at line 20671 of file Player.cpp.
References WorldObject::CastSpell(), SpellHistory::GetCooldownsSizeForPacket(), Object::GetEntry(), Object::GetGUID(), Object::GetGUID(), WorldObject::GetName(), Creature::GetReactState(), Unit::GetSpellHistory(), TempSummon::GetTimer(), Unit::GetVehicleCreatureBase(), SpellInfo::IsPassive(), Unit::IsSummon(), Creature::m_spells, MAKE_UNIT_ACTION_BUTTON, MAX_CREATURE_SPELLS, MAX_SPELL_CONTROL_BAR, sConditionMgr, SendDirectMessage(), SMSG_PET_SPELLS, sSpellMgr, TC_LOG_DEBUG, Object::ToCreature(), Position::ToString(), Unit::ToTempSummon(), and SpellHistory::WritePacket().
Referenced by WorldSession::HandleRequestPetInfo(), and Unit::SetCharmedBy().
Definition at line 11951 of file Player.cpp.
References BIND_QUEST_ITEM, BIND_WHEN_EQUIPED, BIND_WHEN_PICKED_UP, EQUIPMENT_SLOT_END, ItemTemplate::GetBonding(), Object::GetEntry(), Object::GetGUID(), Object::GetGUID(), WorldObject::GetName(), Item::GetTemplate(), ITEM_CHANGED, m_items, PLAYER_FIELD_INV_SLOT_HEAD, Item::SetBinding(), Item::SetContainedIn(), Item::SetContainer(), Object::SetGuidValue(), 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 20516 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 20552 of file Player.cpp.
References CHAT_MSG_WHISPER, Unit::GetGender(), GetSession(), WorldSession::GetSessionDbLocaleIndex(), BroadcastTextEntry::GetText(), WorldPackets::Chat::Chat::Initialize(), LANG_UNIVERSAL, SendDirectMessage(), sObjectMgr, TC_LOG_ERROR, and WorldPackets::Chat::Chat::Write().
| void Player::WhisperAddon | ( | std::string const & | text, |
| Player * | receiver | ||
| ) |
Definition at line 20501 of file Player.cpp.
References CHAT_MSG_WHISPER, WorldPackets::Chat::Chat::Initialize(), LANG_ADDON, SendDirectMessage(), sScriptMgr, and WorldPackets::Chat::Chat::Write().
Referenced by WorldSession::HandleChatMessage().
|
overridevirtual |
Handles yelled message in regular chat based on declared language and in config pre-defined Range.
Reimplemented from Unit.
Definition at line 20476 of file Player.cpp.
References CHAT_MSG_YELL, CONFIG_LISTEN_RANGE_YELL, WorldPackets::Chat::Chat::Initialize(), SendMessageToSetInRange(), sScriptMgr, sWorld, and WorldPackets::Chat::Chat::Write().
Referenced by WorldSession::HandleChatMessage().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 20486 of file Player.cpp.
References CHAT_MSG_YELL, CONFIG_LISTEN_RANGE_YELL, and sWorld.
|
friend |
Definition at line 696 of file Item.cpp.
Referenced by MoveItemFromInventory().
|
friend |
|
private |
|
private |
|
private |
Definition at line 2566 of file Player.h.
Referenced by CreateCorpse(), LoadCorpse(), RemovedInsignia(), and SpawnCorpseBones().
|
protected |
Definition at line 2483 of file Player.h.
Referenced by _LoadEquipmentSets(), _SaveEquipmentSets(), DeleteEquipmentSet(), SendEquipmentSetList(), and SetEquipmentSet().
|
private |
Definition at line 2557 of file Player.h.
Referenced by BindToInstance(), SetPendingBind(), and Update().
|
private |
Definition at line 2558 of file Player.h.
Referenced by SetPendingBind(), and Update().
|
protected |
Definition at line 2457 of file Player.h.
Referenced by Player(), RemoveRestFlag(), and SetRestFlag().
|
protected |
Definition at line 2454 of file Player.h.
Referenced by Player(), RemoveRestFlag(), SetRestFlag(), and Update().
|
protected |
Definition at line 2413 of file Player.h.
Referenced by ResurrectUsingRequestData(), ResurrectUsingRequestDataImpl(), and SetResurrectRequestData().
|
protected |
Definition at line 2394 of file Player.h.
Referenced by _LoadGlyphs(), IncreaseResetTalentsCostAndCounters(), Player(), SetGlyph(), and ~Player().
| std::string Player::autoReplyMsg |
Definition at line 956 of file Player.h.
Referenced by WorldSession::HandleChatMessage(), and Whisper().
| std::unique_ptr<DuelInfo> Player::duel |
Definition at line 1587 of file Player.h.
Referenced by Unit::_ExitVehicle(), Unit::AtTargetAttacked(), Spell::CheckCast(), CheckDuelDistance(), Unit::DealDamage(), DuelComplete(), Spell::EffectDuel(), WorldObject::GetReactionTo(), WorldSession::HandleDuelAccepted(), WorldSession::HandleDuelCancelled(), IsAlwaysDetectableFor(), WorldObject::IsValidAssistTarget(), WorldObject::IsValidAttackTarget(), achievement_tilted::OnCheck(), SetContestedPvP(), TeleportTo(), UpdateArea(), and UpdateDuelFlag().
|
private |
|
protected |
Definition at line 2455 of file Player.h.
Referenced by Player(), and SetRestFlag().
| bool Player::isDebugAreaTriggers |
Definition at line 2234 of file Player.h.
Referenced by WorldSession::HandleAreaTriggerOpcode(), debug_commandscript::HandleDebugAreaTriggersCommand(), and Player().
| std::vector<ItemSetEffect*> Player::ItemSetEff |
Definition at line 1957 of file Player.h.
Referenced by AddItemsSetItem(), RemoveItemsSetItem(), UpdateEquipSpellsAtFormChange(), and ~Player().
|
private |
Definition at line 2552 of file Player.h.
Referenced by CompletedAchievement(), HasAchieved(), LoadFromDB(), Player(), RemoveTimedAchievement(), ResetAchievementCriteria(), ResetAchievements(), SaveToDB(), SendInitialPacketsBeforeAddToMap(), SendRespondInspectAchievements(), StartTimedAchievement(), Update(), UpdateAchievementCriteria(), and ~Player().
|
protected |
Definition at line 2396 of file Player.h.
Referenced by _LoadActions(), _SaveActions(), AddActionButton(), GetActionButton(), RemoveActionButton(), SendActionButtons(), and UpdateTalentGroupCount().
|
protected |
Definition at line 2451 of file Player.h.
Referenced by _ApplyAmmoBonuses(), Player(), and RemoveAmmo().
|
protected |
Definition at line 2437 of file Player.h.
Referenced by Player(), SetGameMaster(), Update(), and UpdateArea().
|
protected |
|
protected |
|
protected |
Definition at line 2369 of file Player.h.
Referenced by LoadFromDB(), Player(), RemoveAtLoginFlag(), and SaveToDB().
|
protected |
Definition at line 2398 of file Player.h.
Referenced by GetBaseModValue(), GetShieldBlockValue(), GetTotalBaseModValue(), HandleBaseModFlatValue(), Player(), and SetBaseModFlatValue().
|
protected |
Definition at line 2399 of file Player.h.
Referenced by ApplyBaseModPctValue(), GetBaseModValue(), GetShieldBlockValue(), GetTotalBaseModValue(), Player(), and SetBaseModPctValue().
|
protected |
Definition at line 2468 of file Player.h.
Referenced by Player(), and SendUpdateToOutOfRangeGroupMembers().
|
protected |
Definition at line 2402 of file Player.h.
Referenced by ApplyFeralAPBonus(), Player(), and UpdateAttackPowerAndDamage().
|
protected |
Definition at line 2404 of file Player.h.
Referenced by ApplyHealthRegenBonus(), Player(), RegenerateAll(), and RegenerateHealth().
|
protected |
Definition at line 2403 of file Player.h.
Referenced by ApplyManaRegenBonus(), Player(), and UpdatePowerRegen().
|
protected |
Definition at line 2400 of file Player.h.
Referenced by ApplyRatingMod(), Player(), and UpdateRating().
|
protected |
Definition at line 2401 of file Player.h.
Referenced by ApplySpellPowerBonus(), and Player().
|
private |
|
protected |
Definition at line 2273 of file Player.h.
Referenced by AddBattlegroundQueueId(), GetBattlegroundQueueIndex(), GetBattlegroundQueueTypeId(), HasFreeBattlegroundQueueId(), InBattlegroundQueue(), IsInvitedForBattlegroundInstance(), IsInvitedForBattlegroundQueueType(), Player(), RemoveBattlegroundQueueId(), and SetInviteForBattlegroundQueueType().
|
protected |
Definition at line 2274 of file Player.h.
Referenced by _LoadBGData(), _SaveBGData(), CanReportAfkDueToLimit(), GetBattleground(), GetBGTeam(), LoadFromDB(), ProcessDelayedOperations(), ReportedAfkBy(), SetBattlegroundEntryPoint(), SetBattlegroundId(), SetBGTeam(), TeleportToBGEntryPoint(), and UpdateAfkReport().
|
private |
| BoundInstancesMap Player::m_boundInstances[MAX_DIFFICULTY] |
Definition at line 2134 of file Player.h.
Referenced by _LoadBoundInstances(), BindToInstance(), CleanupsBeforeDelete(), Group::ConvertLeaderInstancesToGroup(), GetBoundInstance(), ResetInstances(), SendRaidInfo(), SendSavedInstances(), UnbindInstance(), and UnbindInstance().
|
protected |
|
protected |
Definition at line 2445 of file Player.h.
Referenced by Player(), and SetCanBlock().
|
protected |
Definition at line 2444 of file Player.h.
Referenced by Player(), and SetCanParry().
|
protected |
Definition at line 2446 of file Player.h.
Referenced by CanTitanGrip(), Player(), RemoveSpell(), and SetCanTitanGrip().
|
private |
|
protected |
Definition at line 2417 of file Player.h.
Referenced by CleanupChannels(), JoinedChannel(), LeaveLFGChannel(), LeftChannel(), SetGMVisible(), and UpdateLocalChannels().
|
protected |
Definition at line 2365 of file Player.h.
Referenced by UpdateSpeakTime().
|
protected |
Definition at line 2419 of file Player.h.
Referenced by LoadFromDB(), Player(), and SaveToDB().
| GuidUnorderedSet Player::m_clientGUIDs |
Definition at line 2083 of file Player.h.
Referenced by Map::AddPlayerToMap(), WorldObject::DestroyForNearbyPlayers(), HaveAtClient(), SendQuestGiverStatusMultiple(), SendTaxiNodeStatusMultiple(), Trinity::VisibleNotifier::SendToSelf(), UpdateTriggerVisibility(), UpdateVisibilityOf(), UpdateVisibilityOf(), and UpdateVisibleGameobjectsOrSpellClicks().
|
protected |
Definition at line 2258 of file Player.h.
Referenced by Player(), ResetContestedPvP(), and UpdateContestedPvP().
|
protected |
Definition at line 2372 of file Player.h.
Referenced by AddItemToBuyBackSlot(), Player(), and RemoveItemFromBuyBackSlot().
|
protected |
Definition at line 2425 of file Player.h.
Referenced by _LoadDailyQuestStatus(), _SaveDailyQuestStatus(), Player(), ResetDailyQuestStatus(), and SetDailyQuestStatus().
|
protected |
Definition at line 2440 of file Player.h.
Referenced by CalculateCorpseReclaimDelay(), GetCorpseReclaimDelay(), LoadFromDB(), Player(), SaveToDB(), and UpdateCorpseReclaimDelay().
|
protected |
Definition at line 2439 of file Player.h.
Referenced by KillPlayer(), Player(), RemovedInsignia(), RepopAtGraveyard(), ResurrectPlayer(), SetViewpoint(), and Update().
|
protected |
Definition at line 2481 of file Player.h.
Referenced by _LoadDeclinedNames(), Player(), and ~Player().
|
private |
Definition at line 2542 of file Player.h.
Referenced by Player(), and ProcessDelayedOperations().
| DFQuestsDoneList Player::m_DFQuests |
Definition at line 2109 of file Player.h.
Referenced by _LoadDailyQuestStatus(), _SaveDailyQuestStatus(), ResetDailyQuestStatus(), SatisfyQuestDay(), and SetDailyQuestStatus().
|
protected |
Definition at line 2432 of file Player.h.
Referenced by HandleSobering(), Player(), SetDrunkValue(), and Update().
|
protected |
Definition at line 2366 of file Player.h.
Referenced by GetDifficultyID(), and Player().
|
protected |
Definition at line 2409 of file Player.h.
Referenced by _SaveInventory(), AddEnchantmentDuration(), RemoveArenaEnchantments(), RemoveEnchantmentDurations(), RemoveEnchantmentDurationsReferences(), SendEnchantmentDurations(), and UpdateEnchantTime().
|
protected |
Definition at line 2377 of file Player.h.
Referenced by CalculateCorpseReclaimDelay(), CreateCorpse(), Has310Flyer(), Player(), SaveToDB(), SetGameMaster(), SetGMVisible(), and UpdateCorpseReclaimDelay().
|
protected |
Definition at line 2491 of file Player.h.
Referenced by LoadFromDB(), Player(), SaveToDB(), and UpdateFishingSkill().
|
protected |
Definition at line 2255 of file Player.h.
Referenced by Player(), and RegenerateAll().
|
protected |
Definition at line 2489 of file Player.h.
Referenced by GiveLevel(), LoadFromDB(), Player(), and SaveToDB().
|
protected |
Definition at line 2464 of file Player.h.
Referenced by RemoveFromBattlegroundOrBattlefieldRaid(), SetBattlegroundOrBattlefieldRaid(), and SetGroup().
|
protected |
Definition at line 2467 of file Player.h.
Referenced by Player(), and SendUpdateToOutOfRangeGroupMembers().
|
protected |
|
protected |
Definition at line 2256 of file Player.h.
Referenced by Player(), and RegenerateHealth().
| uint16 Player::m_homebindAreaId |
Definition at line 2074 of file Player.h.
Referenced by _LoadHomeBind(), Player(), SendBindPointUpdate(), and SetHomebind().
| uint32 Player::m_homebindMapId |
Definition at line 2073 of file Player.h.
Referenced by _LoadHomeBind(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandlePlayerLogin(), misc_commandscript::HandleUnstuckCommand(), LoadFromDB(), lfg::LFGPlayerScript::OnMapChanged(), Player(), Map::RemoveAllPlayers(), RepopAtGraveyard(), SendBindPointUpdate(), SetBattlegroundEntryPoint(), and SetHomebind().
| uint32 Player::m_HomebindTimer |
Definition at line 2131 of file Player.h.
Referenced by Player(), and UpdateHomebindTime().
| float Player::m_homebindX |
Definition at line 2075 of file Player.h.
Referenced by _LoadHomeBind(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandlePlayerLogin(), misc_commandscript::HandleUnstuckCommand(), LoadFromDB(), lfg::LFGPlayerScript::OnMapChanged(), Player(), Map::RemoveAllPlayers(), RepopAtGraveyard(), SendBindPointUpdate(), SetBattlegroundEntryPoint(), and SetHomebind().
| float Player::m_homebindY |
Definition at line 2076 of file Player.h.
Referenced by _LoadHomeBind(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandlePlayerLogin(), misc_commandscript::HandleUnstuckCommand(), LoadFromDB(), lfg::LFGPlayerScript::OnMapChanged(), Player(), Map::RemoveAllPlayers(), RepopAtGraveyard(), SendBindPointUpdate(), SetBattlegroundEntryPoint(), and SetHomebind().
| float Player::m_homebindZ |
Definition at line 2077 of file Player.h.
Referenced by _LoadHomeBind(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandlePlayerLogin(), misc_commandscript::HandleUnstuckCommand(), LoadFromDB(), lfg::LFGPlayerScript::OnMapChanged(), Player(), Map::RemoveAllPlayers(), RepopAtGraveyard(), SendBindPointUpdate(), SetBattlegroundEntryPoint(), and SetHomebind().
|
protected |
|
protected |
| bool Player::m_InstanceValid |
Definition at line 2132 of file Player.h.
Referenced by Group::_homebindIfInstance(), Group::AddMember(), BattlegroundMap::AddPlayerToMap(), WorldSession::HandleMoveWorldportAck(), LoadFromDB(), Player(), and UpdateHomebindTime().
|
protected |
Definition at line 2276 of file Player.h.
Referenced by _LoadRandomBGStatus(), Player(), and SetRandomWinner().
|
protected |
Definition at line 2410 of file Player.h.
Referenced by AddItemDurations(), RemoveItemDurations(), SendItemDurations(), and UpdateItemDuration().
|
protected |
Definition at line 2371 of file Player.h.
Referenced by _ApplyAllItemMods(), _ApplyAllLevelScaleItemMods(), _RemoveAllItemMods(), _SaveInventory(), _StoreItem(), AddItemToBuyBackSlot(), AddToWorld(), BuildCreateUpdateBlockForPlayer(), Create(), CreateCorpse(), DestroyForPlayer(), DestroyItem(), GetAverageItemLevel(), GetItemByPos(), GetItemFromBuyBackSlot(), LoadFromDB(), Player(), RemoveFromWorld(), RemoveItem(), RemoveItemFromBuyBackSlot(), UpdateAttackPowerAndDamage(), UpdateEquipSpellsAtFormChange(), UpdateSkillEnchantments(), VisualizeItem(), and ~Player().
|
protected |
Definition at line 2411 of file Player.h.
Referenced by AddTradeableItem(), RemoveTradeableItem(), and UpdateSoulboundTradeItems().
|
protected |
Definition at line 2374 of file Player.h.
Referenced by _SaveInventory().
|
protected |
Definition at line 2375 of file Player.h.
Referenced by _LoadInventory(), and Player().
| time_t Player::m_Last_tick |
|
protected |
Definition at line 2429 of file Player.h.
Referenced by _LoadDailyQuestStatus(), _SaveDailyQuestStatus(), Player(), ResetDailyQuestStatus(), and SetDailyQuestStatus().
|
private |
Definition at line 2525 of file Player.h.
Referenced by Player(), SetFallInformation(), and UpdateFallInformationIfNeed().
|
private |
Definition at line 2526 of file Player.h.
Referenced by HandleFall(), Player(), SetFallInformation(), and UpdateFallInformationIfNeed().
|
protected |
Definition at line 2358 of file Player.h.
Referenced by LoadFromDB(), Player(), and UpdateHonorFields().
|
protected |
|
protected |
Definition at line 2392 of file Player.h.
Referenced by Player(), and UpdatePotionCooldown().
| time_t Player::m_logintime |
Definition at line 1011 of file Player.h.
Referenced by AddItemToBuyBackSlot(), and Player().
|
protected |
|
protected |
Definition at line 2390 of file Player.h.
Referenced by _LoadMail(), _SaveMail(), GetMail(), RemoveMail(), UpdateNextMailTimeAndUnreads(), and ~Player().
| bool Player::m_mailsUpdated |
Definition at line 1381 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 2528 of file Player.h.
Referenced by HandleDrowning(), IsMirrorTimerActive(), Player(), and StopMirrorTimer().
|
private |
Definition at line 2529 of file Player.h.
Referenced by HandleDrowning(), Player(), ProcessTerrainStatusUpdate(), and UpdateMirrorTimers().
|
private |
Definition at line 2530 of file Player.h.
Referenced by HandleDrowning(), Player(), and UpdateMirrorTimers().
|
protected |
Definition at line 2427 of file Player.h.
Referenced by _LoadMonthlyQuestStatus(), _SaveMonthlyQuestStatus(), Player(), ResetMonthlyQuestStatus(), and SetMonthlyQuestStatus().
|
protected |
Definition at line 2288 of file Player.h.
Referenced by _LoadMonthlyQuestStatus(), _SaveMonthlyQuestStatus(), ResetMonthlyQuestStatus(), SatisfyQuestMonth(), and SetMonthlyQuestStatus().
|
protected |
Definition at line 2493 of file Player.h.
Referenced by Player(), and UpdatePosition().
| time_t Player::m_nextMailDelivereTime |
Definition at line 1430 of file Player.h.
Referenced by AddNewMailDeliverTime(), Player(), Update(), and UpdateNextMailTimeAndUnreads().
|
protected |
Definition at line 2364 of file Player.h.
Referenced by LoadFromDB(), Player(), SaveToDB(), and Update().
|
private |
Definition at line 2550 of file Player.h.
Referenced by Player(), RemovePet(), and UnsummonPetTemporaryIfAny().
|
protected |
Definition at line 2465 of file Player.h.
Referenced by SetOriginalGroup().
| std::unordered_set<PetAura const*> Player::m_petAuras |
Definition at line 1055 of file Player.h.
Referenced by AddPetAura(), Pet::CastPetAuras(), Pet::IsPetAura(), and RemovePetAura().
|
private |
Definition at line 2546 of file Player.h.
Referenced by _LoadPetStable(), GetOrInitPetStable(), LoadPet(), RemovePet(), and SaveToDB().
| uint32 Player::m_Played_time[MAX_PLAYED_TIME_INDEX] |
Definition at line 1013 of file Player.h.
Referenced by Create(), GiveLevel(), LoadFromDB(), Player(), SaveToDB(), and Update().
|
protected |
|
protected |
Definition at line 2257 of file Player.h.
Referenced by Player(), and Regenerate().
|
protected |
Definition at line 2379 of file Player.h.
Referenced by _LoadQuestStatus(), _SaveQuestStatus(), AddQuest(), AreaExploredOrEventHappens(), CanCompleteQuest(), CanShareQuest(), FailQuest(), GetQuestStatus(), GetReqKillOrCastCurrentCount(), HasQuestForGO(), HasQuestForItem(), IsActiveQuest(), ItemAddedQuestCheck(), ItemRemovedQuestCheck(), KillCreditGO(), KilledMonsterCredit(), KilledPlayerCredit(), KilledPlayerCreditForQuest(), MoneyChanged(), RemoveActiveQuest(), ReputationChanged(), ReputationChanged2(), SetQuestStatus(), TalkedToCreature(), and Update().
|
protected |
Definition at line 2380 of file Player.h.
Referenced by _SaveQuestStatus(), AddQuest(), AdjustQuestReqItemCount(), AreaExploredOrEventHappens(), ItemAddedQuestCheck(), ItemRemovedQuestCheck(), KillCreditGO(), KilledMonsterCredit(), KilledPlayerCreditForQuest(), RemoveActiveQuest(), SetQuestStatus(), TalkedToCreature(), and Update().
|
protected |
Definition at line 2367 of file Player.h.
Referenced by GetDifficultyID(), and Player().
|
protected |
|
private |
Definition at line 2505 of file Player.h.
Referenced by _SaveInventory(), AddRefundReference(), and DeleteRefundReference().
|
protected |
Definition at line 2254 of file Player.h.
Referenced by Player(), Regenerate(), and RegenerateAll().
|
private |
Definition at line 2553 of file Player.h.
Referenced by LoadFromDB(), Player(), SaveToDB(), SendInitialPacketsBeforeAddToMap(), and ~Player().
|
protected |
Definition at line 2456 of file Player.h.
Referenced by LoadFromDB(), Player(), SaveToDB(), and SetRestBonus().
|
protected |
Definition at line 2382 of file Player.h.
Referenced by _LoadQuestStatusRewarded(), IsQuestRewarded(), LearnQuestRewardedSpells(), RemoveRewardedQuest(), SatisfyQuestPreviousQuest(), and SetRewardedQuest().
|
protected |
Definition at line 2383 of file Player.h.
Referenced by _SaveQuestStatus(), RemoveRewardedQuest(), and SetRewardedQuest().
|
protected |
Definition at line 2482 of file Player.h.
Referenced by InitRunes(), Player(), RemoveRuneConvertAura(), RemoveRunesByAuraEffect(), RestoreBaseRune(), SetRuneConvertAura(), SetRuneCooldown(), and ~Player().
|
protected |
Definition at line 2428 of file Player.h.
Referenced by _LoadSeasonalQuestStatus(), _SaveSeasonalQuestStatus(), Player(), RemoveRewardedQuest(), ResetSeasonalQuestStatus(), and SetSeasonalQuestStatus().
|
protected |
Definition at line 2289 of file Player.h.
Referenced by _LoadSeasonalQuestStatus(), _SaveSeasonalQuestStatus(), RemoveRewardedQuest(), ResetSeasonalQuestStatus(), SatisfyQuestSeasonal(), and SetSeasonalQuestStatus().
| WorldObject* Player::m_seer |
Definition at line 2048 of file Player.h.
Referenced by Player(), UpdateVisibilityForPlayer(), Trinity::PlayerRelocationNotifier::Visit(), Trinity::MessageDistDeliverer::Visit(), Trinity::MessageDistDelivererToHostile::Visit(), Trinity::PlayerRelocationNotifier::Visit(), Trinity::CreatureRelocationNotifier::Visit(), Trinity::DelayedUnitRelocation::Visit(), Trinity::MessageDistDeliverer::Visit(), and Trinity::MessageDistDelivererToHostile::Visit().
|
protected |
Definition at line 2415 of file Player.h.
Referenced by GetStartLevel(), Player(), RemoveFromWorld(), SaveToDB(), SendDirectMessage(), SendLoot(), and SwapItem().
|
protected |
|
protected |
Definition at line 2461 of file Player.h.
Referenced by LoadFromDB(), Player(), and RemoveSocial().
|
protected |
Definition at line 2407 of file Player.h.
Referenced by AddSpellMod(), and ApplySpellMod().
| Spell* Player::m_spellModTakingSpell |
Definition at line 2231 of file Player.h.
Referenced by ApplySpellMod(), Spell::cast(), Player(), SetSpellModTakingSpell(), and Spell::~Spell().
|
protected |
Definition at line 2405 of file Player.h.
Referenced by ApplySpellPenetrationBonus(), and Player().
|
protected |
Definition at line 2391 of file Player.h.
Referenced by _SaveSpells(), AddSpell(), AddTemporarySpell(), Has310Flyer(), HasActiveSpell(), HasSpell(), LearnSpell(), PrepareGossipMenu(), RemoveSpell(), RemoveTemporarySpell(), SendInitialSpells(), and SendUnlearnSpells().
|
protected |
Definition at line 2475 of file Player.h.
Referenced by HasSummonPending(), Player(), SendSummonRequestFrom(), and SummonIfPossible().
|
protected |
Definition at line 2476 of file Player.h.
Referenced by SendSummonRequestFrom(), and SummonIfPossible().
|
protected |
| PlayerTaxi Player::m_taxi |
Definition at line 963 of file Player.h.
Referenced by ActivateTaxiPathTo(), CleanupAfterTaxiFlight(), ContinueTaxiFlight(), FlightPathMovementGenerator::DoFinalize(), FlightPathMovementGenerator::DoUpdate(), FinishTaxiFlight(), WorldSession::HandleMoveSplineDoneOpcode(), LoadFromDB(), FlightPathMovementGenerator::LoadPath(), ProcessDelayedOperations(), SaveToDB(), WorldSession::SendTaxiMenu(), SendTaxiNodeStatusMultiple(), WorldSession::SendTaxiStatus(), and SetBattlegroundEntryPoint().
|
protected |
Definition at line 2363 of file Player.h.
Referenced by Player(), and SetFactionForRace().
|
private |
Definition at line 2537 of file Player.h.
Referenced by TeleportTo(), and Update().
|
private |
Definition at line 2538 of file Player.h.
Referenced by Player(), TeleportTo(), and Update().
|
private |
Definition at line 2549 of file Player.h.
Referenced by Player(), RemovePet(), ResummonPetTemporaryUnSummonedIfAny(), and UnsummonPetTemporaryIfAny().
|
protected |
Definition at line 2286 of file Player.h.
Referenced by SatisfyQuestTimed(), and Update().
|
protected |
Definition at line 2448 of file Player.h.
Referenced by CanTitanGrip(), Player(), and SetCanTitanGrip().
|
protected |
Definition at line 2449 of file Player.h.
Referenced by CheckTitanGripPenalty(), Player(), RemoveSpell(), and SetCanTitanGrip().
|
protected |
Definition at line 2447 of file Player.h.
Referenced by CanTitanGrip(), Player(), and SetCanTitanGrip().
|
protected |
Definition at line 2423 of file Player.h.
Referenced by GetTrader(), WorldSession::HandleAcceptTradeOpcode(), WorldSession::HandleBeginTradeOpcode(), WorldSession::HandleClearTradeItemOpcode(), WorldSession::HandleInitiateTradeOpcode(), Player(), and TradeCancel().
|
protected |
Definition at line 2433 of file Player.h.
Referenced by CanEquipItem(), EquipItem(), Player(), and Update().
|
protected |
|
protected |
Definition at line 2426 of file Player.h.
Referenced by _LoadWeeklyQuestStatus(), _SaveWeeklyQuestStatus(), Player(), ResetWeeklyQuestStatus(), and SetWeeklyQuestStatus().
|
protected |
Definition at line 2287 of file Player.h.
Referenced by _LoadWeeklyQuestStatus(), _SaveWeeklyQuestStatus(), ResetWeeklyQuestStatus(), SatisfyQuestWeek(), and SetWeeklyQuestStatus().
|
protected |
Definition at line 2435 of file Player.h.
Referenced by Player(), RemoveFromWorld(), Update(), UpdateAreaDependentAuras(), and UpdateZone().
|
protected |
Definition at line 2436 of file Player.h.
Referenced by Player(), Update(), and UpdateZone().
|
private |
| ItemMap Player::mMitems |
Definition at line 1434 of file Player.h.
Referenced by AddMItem(), GetMItem(), RemoveFromWorld(), RemoveMItem(), and ~Player().
|
private |
|
private |
|
protected |
Definition at line 2385 of file Player.h.
Referenced by _LoadSkills(), _SaveSkills(), GetBaseSkillValue(), GetMaxSkillValue(), GetPureMaxSkillValue(), GetPureSkillValue(), GetSkillPermBonusValue(), GetSkillStep(), GetSkillTempBonusValue(), GetSkillValue(), HasSkill(), ModifySkillBonus(), SetSkill(), UpdateSkill(), UpdateSkillPro(), UpdateSkillsForLevel(), and UpdateWeaponsSkillsToMaxSkillsForLevel().
| PlayerMenu* Player::PlayerTalkClass |
Definition at line 1956 of file Player.h.
Referenced by AddGossipItemFor(), AddGossipItemFor(), AddGossipItemFor(), AddQuestAndCheckCompletion(), ClearGossipMenuFor(), CloseGossipMenuFor(), Spell::EffectQuestStart(), GetGossipActionFor(), GetGossipSenderFor(), WorldSession::HandleGossipHelloOpcode(), OPvPCapturePointZM_Graveyard::HandleGossipOption(), WorldSession::HandleGossipSelectOptionOpcode(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestgiverCancel(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), WorldSession::HandleQuestgiverHelloOpcode(), WorldSession::HandleQuestgiverQueryQuestOpcode(), WorldSession::HandleQuestgiverRequestRewardOpcode(), WorldSession::HandleQuestgiverStatusQueryOpcode(), WorldSession::HandleQuestQueryOpcode(), InitGossipMenuFor(), npc_verdisa_beglaristrasz_eternos::OnGossipSelect(), npc_brann_bronzebeard_ulduar_intro::npc_brann_bronzebeard_ulduar_introAI::OnGossipSelect(), npc_lorekeeper::npc_lorekeeperAI::OnGossipSelect(), npc_sinclari_vh::OnGossipSelect(), npc_stable_master::npc_stable_masterAI::OnGossipSelect(), npc_lokhtos_darkbargainer::npc_lokhtos_darkbargainerAI::OnGossipSelect(), boss_gloomrel::boss_gloomrelAI::OnGossipSelect(), boss_doomrel::boss_doomrelAI::OnGossipSelect(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::OnGossipSelect(), npc_barnes::OnGossipSelect(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipSelect(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::OnGossipSelect(), npc_shadowfang_prisoner::npc_shadowfang_prisonerAI::OnGossipSelect(), npc_zulaman_hostage::npc_zulaman_hostageAI::OnGossipSelect(), npc_jaina_proudmoore::npc_jaina_proudmooreAI::OnGossipSelect(), npc_thrall::npc_thrallAI::OnGossipSelect(), npc_tyrande_whisperwind::npc_tyrande_whisperwindAI::OnGossipSelect(), npc_erozion::OnGossipSelect(), npc_thrall_old_hillsbrad::OnGossipSelect(), npc_taretha::OnGossipSelect(), npc_thrall_warchief::npc_thrall_warchiefAI::OnGossipSelect(), go_wind_stone::go_wind_stoneAI::OnGossipSelect(), npc_sergeant_bly::npc_sergeant_blyAI::OnGossipSelect(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::OnGossipSelect(), npc_announcer_toc5::npc_announcer_toc5AI::OnGossipSelect(), npc_jaina_or_sylvanas_intro_hor::npc_jaina_or_sylvanas_intro_horAI::OnGossipSelect(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::OnGossipSelect(), npc_brann_hos::OnGossipSelect(), npc_wg_demolisher_engineer::OnGossipSelect(), npc_wg_spirit_guide::OnGossipSelect(), npc_barada::npc_baradaAI::OnGossipSelect(), go_amberpine_outhouse::go_amberpine_outhouseAI::OnGossipSelect(), npc_innkeeper::npc_innkeeperAI::OnGossipSelect(), npc_prof_blacksmith::npc_prof_blacksmithAI::OnGossipSelect(), npc_engineering_tele_trinket::npc_engineering_tele_trinketAI::OnGossipSelect(), npc_prof_leather::npc_prof_leatherAI::OnGossipSelect(), npc_prof_tailor::npc_prof_tailorAI::OnGossipSelect(), npc_prof_alchemy::npc_prof_alchemyAI::OnGossipSelect(), npc_wormhole::npc_wormholeAI::OnGossipSelect(), npc_experience::npc_experienceAI::OnGossipSelect(), npc_argent_squire_gruntling::npc_argent_squire_gruntlingAI::OnGossipSelect(), npc_zafod_boombox::OnGossipSelect(), OnGossipSelect(), ScriptMgr::OnQuestAccept(), Player(), PrepareGossipMenu(), PrepareQuestMenu(), WorldSession::SendBindPoint(), SendGossipMenuFor(), SendInitialPacketsAfterAddToMap(), Spell::SendLoot(), SendPreparedGossip(), SendPreparedQuest(), and ~Player().
| PvPInfo Player::pvpInfo |
Definition at line 1567 of file Player.h.
Referenced by AddQuest(), Spell::EffectQuestClear(), WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAck(), WorldSession::HandleQuestLogRemoveQuest(), quest_commandscript::HandleQuestRemove(), WorldSession::HandleTogglePvP(), RewardQuest(), UpdateArea(), UpdatePvP(), UpdatePvPFlag(), UpdatePvPState(), and UpdateZone().
| uint8 Player::unReadMails |
Definition at line 1429 of file Player.h.
Referenced by AddNewMailDeliverTime(), WorldSession::HandleMailMarkAsRead(), WorldSession::HandleQueryNextMailTime(), Player(), Update(), and UpdateNextMailTimeAndUnreads().
|
protected |
Definition at line 2253 of file Player.h.
Referenced by IsInWhisperWhiteList().