|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <Player.h>
Classes | |
| struct | BgBattlegroundQueueID_Rec |
Public Member Functions | |
| bool | ActivateTaxiPathTo (std::vector< uint32 > const &nodes, Creature *npcnpc=NULL, uint32 spellid=0) |
| bool | ActivateTaxiPathTo (uint32 taxi_path_id, uint32 spellid=0) |
| void | AddRefundReference (uint32 it) |
| void | AddToWorld () override |
| void | AutoStoreLoot (uint32 loot_id, LootStore const &store, bool broadcast=false) |
| void | AutoStoreLoot (uint8 bag, uint8 slot, uint32 loot_id, LootStore const &store, bool broadcast=false) |
| void | AutoUnequipOffhandIfNeed (bool force=false) |
| InventoryResult | CanBankItem (uint8 bag, uint8 slot, ItemPosCountVec &dest, Item *pItem, bool swap, bool not_loading=true) const |
| InventoryResult | CanEquipItem (uint8 slot, uint16 &dest, Item *pItem, bool swap, bool not_loading=true) const |
| InventoryResult | CanEquipNewItem (uint8 slot, uint16 &dest, uint32 item, bool swap) const |
| InventoryResult | CanEquipUniqueItem (Item *pItem, uint8 except_slot=NULL_SLOT, uint32 limit_count=1) const |
| InventoryResult | CanEquipUniqueItem (ItemTemplate const *itemProto, uint8 except_slot=NULL_SLOT, uint32 limit_count=1) const |
| bool | CanInteractWithQuestGiver (Object *questGiver) |
| bool | CanNoReagentCast (SpellInfo const *spellInfo) const |
| InventoryResult | CanRollForItemInLFG (ItemTemplate const *item, WorldObject const *lootedObject) const |
| InventoryResult | CanStoreItem (uint8 bag, uint8 slot, ItemPosCountVec &dest, Item *pItem, bool swap=false) const |
| InventoryResult | CanStoreItem (uint8 bag, uint8 slot, ItemPosCountVec &dest, uint32 entry, uint32 count, Item *pItem=NULL, bool swap=false, uint32 *no_space_count=NULL) const |
| InventoryResult | CanStoreItems (Item **pItem, int count) const |
| InventoryResult | CanStoreNewItem (uint8 bag, uint8 slot, ItemPosCountVec &dest, uint32 item, uint32 count, uint32 *no_space_count=NULL) const |
| InventoryResult | CanTakeMoreSimilarItems (Item *pItem) const |
| InventoryResult | CanTakeMoreSimilarItems (uint32 entry, uint32 count) const |
| InventoryResult | CanTakeMoreSimilarItems (uint32 entry, uint32 count, Item *pItem, uint32 *no_space_count=NULL) const |
| InventoryResult | CanUnequipItem (uint16 src, bool swap) const |
| InventoryResult | CanUnequipItems (uint32 item, uint32 count) const |
| InventoryResult | CanUseItem (Item *pItem, bool not_loading=true) const |
| InventoryResult | CanUseItem (ItemTemplate const *pItem) const |
| void | CleanupAfterTaxiFlight () |
| void | CleanupsBeforeDelete (bool finalCleanup=true) override |
| void | ContinueTaxiFlight () |
| bool | Create (uint32 guidlow, CharacterCreateInfo *createInfo) |
| void | DeleteRefundReference (uint32 it) |
| Item * | EquipItem (uint16 pos, Item *pItem, bool update) |
| Item * | EquipNewItem (uint16 pos, uint32 item, bool update) |
| uint8 | FindEquipSlot (ItemTemplate const *proto, uint32 slot, bool swap) const |
| Bag * | GetBagByPos (uint8 slot) const |
| uint8 | GetBankBagSlotCount () const |
| uint32 | GetBarberShopCost (uint8 newhairstyle, uint8 newhaircolor, uint8 newfacialhair, BarberShopStyleEntry const *newSkin=NULL) |
| uint8 | GetChatTag () const |
| bool | GetCommandStatus (uint32 command) const |
| uint32 | GetCurrency (uint32 id, bool usePrecision) const |
| return count of currency witch has plr | |
| uint32 | GetCurrencyOnWeek (uint32 id, bool usePrecision) const |
| return count of currency gaind on current week | |
| uint32 | GetCurrencyWeekCap (uint32 id, bool usePrecision) const |
| return week cap by currency id | |
| GameObject * | GetGameObjectIfCanInteractWith (uint64 guid, GameobjectTypes type) const |
| float | GetInnAreaBoxOrientation () const |
| float | GetInnAreaBoxX () const |
| float | GetInnAreaBoxY () const |
| float | GetInnAreaBoxZ () const |
| float | GetInnAreaRadius () const |
| uint32 | GetInnPosMapId () const |
| float | GetInnPosX () const |
| float | GetInnPosY () const |
| float | GetInnPosZ () const |
| Item * | GetItemByEntry (uint32 entry) const |
| Item * | GetItemByGuid (uint64 guid) const |
| Item * | GetItemByPos (uint16 pos) const |
| Item * | GetItemByPos (uint8 bag, uint8 slot) const |
| uint32 | GetItemCount (uint32 item, bool inBankAlso=false, Item *skipItem=NULL) const |
| uint32 | GetItemCountWithLimitCategory (uint32 limitCategory, Item *skipItem=NULL) const |
| std::vector< Item * > & | GetItemUpdateQueue () |
| uint32 | GetLevelPlayedTime () const |
| uint32 | GetLootSpecialization () const |
| uint32 | GetLootSpecOrClassSpec () const |
| Creature * | GetNPCIfCanInteractWith (uint64 guid, uint32 npcflagmask) |
| Pet * | GetPet () const |
| float | GetRestBonus () const |
| RestType | GetRestType () const |
| Item * | GetShield (bool useable=false) const |
| PlayerSocial * | GetSocial () |
| time_t | GetTimeInnEnter () const |
| uint32 | GetTotalPlayedTime () const |
| Item * | GetUseableItemByPos (uint8 bag, uint8 slot) const |
| Item * | GetWeaponForAttack (WeaponAttackType attackType, bool useable=false) const |
| void | GiveLevel (uint8 level) |
| void | GiveXP (uint32 xp, Unit *victim, float group_rate=1.0f) |
| bool | HasCurrency (uint32 id, uint32 count) const |
| return presence related currency | |
| bool | HasItemCount (uint32 item, uint32 count=1, bool inBankAlso=false) const |
| bool | HasItemFitToSpellRequirements (SpellInfo const *spellInfo, Item const *ignoreItem=NULL) const |
| bool | HasItemOrGemWithIdEquipped (uint32 item, uint32 count, uint8 except_slot=NULL_SLOT) const |
| bool | HasItemOrGemWithLimitCategoryEquipped (uint32 limitCategory, uint32 count, uint8 except_slot=NULL_SLOT) const |
| void | InitStatsForLevel (bool reapplyMods=false) |
| void | InitTaxiNodesForLevel () |
| void | InnEnter (time_t time, uint32 mapid, float x, float y, float z, float radius=0.0f, float boxX=0.0f, float boxY=0.0f, float boxZ=0.0f, float boxOrientation=0.0f) |
| bool | isAcceptWhispers () const |
| bool | isAFK () const |
| bool | isDND () const |
| bool | IsGameMaster () const |
| bool | isGMChat () const |
| bool | isGMVisible () const |
| bool | IsInCurrentInnArea (float padding=0.0f) const |
| bool | IsInWater () const override |
| bool | isTaxiCheater () const |
| bool | IsUnderWater () const override |
| bool | IsValidPos (uint16 pos, bool explicit_pos) |
| bool | IsValidPos (uint8 bag, uint8 slot, bool explicit_pos) |
| void | ModifyCurrencyFlag (uint32 id, uint8 flag) |
| Player (WorldSession *session) | |
| void | RemoveFromWorld () override |
| void | RemovePet (Pet *pet, PetSaveMode mode, bool returnreagent=false) |
| void | ResetCurrencyWeekCap () |
| void | Say (std::string const &text, const Language language) |
| Handles said message in regular chat based on declared language and in config pre-defined Range. | |
| void | SendCurrencies () const |
| send full data about all currencies to client | |
| void | SendInitialPacketsAfterAddToMap () |
| void | SendInitialPacketsBeforeAddToMap () |
| void | SendInstanceResetWarning (uint32 mapid, DifficultyID difficulty, uint32 time) |
| void | SendNewCurrency (uint32 id) const |
| send initialization of new currency for client | |
| void | SendPvpRewards () const |
| send conquest currency points and their cap week/arena | |
| void | SendTransferAborted (uint32 mapid, TransferAbortReason reason, uint8 arg=0) |
| void | SetAcceptWhispers (bool on) |
| void | SetBankBagSlotCount (uint8 count) |
| void | SetCommandStatusOff (uint32 command) |
| void | SetCommandStatusOn (uint32 command) |
| void | SetCurrency (uint32 id, uint32 count, bool printLog=true) |
| initialize currency count for custom initialization at create character | |
| void | setDeathState (DeathState s) override |
| void | SetGameMaster (bool on) |
| void | SetGMChat (bool on) |
| void | SetGMVisible (bool on) |
| void | SetInWater (bool apply) |
| void | SetLootSpecialization (uint32 specialization) |
| void | SetObjectScale (float scale) override |
| void | SetPvPDeath (bool on) |
| void | SetRestBonus (float rest_bonus_new) |
| void | SetRestType (RestType n_r_type) |
| void | SetSheath (SheathState sheathed) override |
| void | SetSummonPoint (uint32 mapid, float x, float y, float z) |
| void | SetTaxiCheater (bool on) |
| void | SetVirtualItemSlot (uint8 i, Item *item) |
| Item * | StoreItem (ItemPosCountVec const &pos, Item *pItem, bool update) |
| void | StoreLootItem (uint8 lootSlot, Loot *loot, uint64 lootGuid=0) |
| Item * | StoreNewItem (ItemPosCountVec const &pos, uint32 item, bool update, int32 randomPropertyId=0, AllowedLooterSet const &allowedLooters=AllowedLooterSet()) |
| bool | StoreNewItemInBestSlots (uint32 item_id, uint32 item_count) |
| void | SummonIfPossible (bool agree) |
| Pet * | SummonPet (uint32 entry, float x, float y, float z, float ang, PetType petType, uint32 despwtime) |
| bool | TeleportTo (uint32 mapid, float x, float y, float z, float orientation, uint32 options=0) |
| bool | TeleportTo (WorldLocation const &loc, uint32 options=0) |
| bool | TeleportToBGEntryPoint () |
| void | TextEmote (std::string const &text) |
| Outputs an universal text which is supposed to be an action. | |
| void | ToggleAFK () |
| void | ToggleDND () |
| void | Update (uint32 time) override |
| void | UpdateInnerTime (time_t time) |
| void | UpdateRestAreaState () |
| void | Whisper (std::string const &text, const Language language, uint64 receiver) |
| Handles whispers from Addons and players based on sender, receiver's guid and language. | |
| void | WhisperAddon (std::string const &text, std::string const &prefix, Player *receiver) |
| void | Yell (std::string const &text, const Language language) |
| Handles yelled message in regular chat based on declared language and in config pre-defined Range. | |
| ~Player () | |
| Public Member Functions inherited from Unit | |
| void | _addAttacker (Unit *pAttacker) |
| void | _AddAura (UnitAura *aura, Unit *caster) |
| void | _ApplyAllAuraStatMods () |
| void | _ApplyAura (AuraApplication *aurApp, uint32 effMask) |
| void | _ApplyAuraEffect (Aura *aura, uint8 effIndex) |
| AuraApplication * | _CreateAuraApplication (Aura *aura, uint32 effMask) |
| void | _EnterVehicle (Vehicle *vehicle, int8 seatId, AuraApplication const *aurApp=NULL) |
| void | _ExitVehicle (Position const *exitPosition=NULL) |
| bool | _IsValidAssistTarget (Unit const *target, SpellInfo const *bySpell) const |
| bool | _IsValidAttackTarget (Unit const *target, SpellInfo const *bySpell, WorldObject const *obj=NULL) const |
| void | _RegisterAuraEffect (AuraEffect *aurEff, bool apply) |
| void | _RegisterDynObject (DynamicObject *dynObj) |
| void | _RemoveAllAuraStatMods () |
| void | _removeAttacker (Unit *pAttacker) |
| void | _RemoveNoStackAurasDueToAura (Aura *aura) |
| Aura * | _TryStackingOrRefreshingExistingAura (SpellInfo const *newAura, uint32 effMask, Unit *caster, int32 *baseAmount=NULL, Item *castItem=NULL, uint64 casterGUID=0) |
| void | _UnapplyAura (AuraApplication *aurApp, AuraRemoveMode removeMode) |
| void | _UnapplyAura (AuraApplicationMap::iterator &i, AuraRemoveMode removeMode) |
| void | _UnregisterDynObject (DynamicObject *dynObj) |
| Aura * | AddAura (SpellInfo const *spellInfo, uint32 effMask, Unit *target) |
| Aura * | AddAura (uint32 spellId, Unit *target) |
| void | AddComboPointHolder (uint32 lowguid) |
| void | AddExtraUnitMovementFlag (uint16 f) |
| void | addFollower (FollowerReference *pRef) |
| void | AddGameObject (GameObject *gameObj) |
| void | addHatedBy (HostileReference *pHostileReference) |
| void | AddInterruptMask (uint32 mask) |
| void | AddPetAura (PetAura const *petSpell) |
| void | AddPlayerToVision (Player *player) |
| void | AddThreat (Unit *victim, float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *threatSpell=NULL) |
| void | AddToWorld () override |
| void | AddUnitMovementFlag (uint32 f) |
| void | AddUnitState (uint32 f) |
| void | AddUnitTypeMask (uint32 mask) |
| void | ApplyAttackTimePercentMod (WeaponAttackType att, float val, bool apply) |
| void | ApplyCastTimePercentMod (float val, bool apply) |
| void | ApplyDiminishingAura (DiminishingGroup group, bool apply) |
| float | ApplyDiminishingToDuration (DiminishingGroup group, int32 &duration, Unit *caster, DiminishingLevels Level, int32 limitduration) |
| float | ApplyEffectModifiers (SpellInfo const *spellProto, uint8 effect_index, float value) const |
| void | ApplyResilience (Unit const *victim, int32 *damage, bool isCrit) const |
| void | ApplyResistanceBuffModsMod (SpellSchools school, bool positive, float val, bool apply) |
| void | ApplyResistanceBuffModsPercentMod (SpellSchools school, bool positive, float val, bool apply) |
| void | ApplySpellDispelImmunity (const SpellInfo *spellProto, DispelType type, bool apply) |
| void | ApplySpellImmune (uint32 spellId, uint32 op, uint32 type, bool apply) |
| void | ApplyStatBuffMod (Stats stat, float val, bool apply) |
| void | ApplyStatPercentBuffMod (Stats stat, float val, bool apply) |
| float | ApplyTotalThreatModifier (float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL) |
| bool | Attack (Unit *victim, bool meleeAttack) |
| void | AttackerStateUpdate (Unit *victim, WeaponAttackType attType=WeaponAttackType::BASE_ATTACK, bool extra=false) |
| bool | AttackStop () |
| uint32 | BuildAuraStateUpdateForTarget (Unit *target) const |
| void | CalcAbsorbResist (Unit *victim, SpellSchoolMask schoolMask, DamageEffectType damagetype, uint32 const damage, uint32 *absorb, uint32 *resist, SpellInfo const *spellInfo=NULL) |
| uint32 | CalcArmorReducedDamage (Unit *victim, const uint32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=WeaponAttackType::MAX_ATTACK) |
| void | CalcHealAbsorb (Unit *victim, SpellInfo const *spellInfo, uint32 &healAmount, uint32 &absorb) |
| int32 | CalcSpellDuration (SpellInfo const *spellProto) |
| uint32 | CalcSpellResistance (Unit *victim, SpellSchoolMask schoolMask, SpellInfo const *spellInfo) const |
| uint32 | CalculateDamage (WeaponAttackType attType, bool normalized, bool addTotalPct) |
| float | CalculateDefaultCoefficient (SpellInfo const *spellInfo, DamageEffectType damagetype) const |
| float | CalculateLevelPenalty (SpellInfo const *spellProto) const |
| void | CalculateMeleeDamage (Unit *victim, uint32 damage, CalcDamageInfo *damageInfo, WeaponAttackType attackType=WeaponAttackType::BASE_ATTACK) |
| int32 | CalculateSpellDamage (Unit const *target, SpellInfo const *spellProto, uint8 effect_index, int32 const *basePoints=NULL) const |
| void | CalculateSpellDamageTaken (SpellNonMeleeDamage *damageInfo, int32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=WeaponAttackType::BASE_ATTACK, bool crit=false) |
| bool | CanDualWield () const |
| bool | CanFreeMove () const |
| bool | CanHaveThreatList () const |
| bool | CanModifyStats () const |
| bool | CanProc () const |
| bool | CanUseAttackType (WeaponAttackType attacktype) const |
| void | CastCustomSpell (uint32 spellId, CustomSpellValues const &value, Unit *victim=NULL, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastCustomSpell (uint32 spellId, SpellValueMod mod, int32 value, Unit *victim, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastCustomSpell (uint32 spellId, SpellValueMod mod, int32 value, Unit *victim=NULL, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastCustomSpell (Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastSpell (float x, float y, float z, uint32 spellId, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastSpell (GameObject *go, uint32 spellId, bool triggered, Item *castItem=NULL, AuraEffect *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastSpell (SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastSpell (Unit *victim, SpellInfo const *spellInfo, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastSpell (Unit *victim, SpellInfo const *spellInfo, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastSpell (Unit *victim, uint32 spellId, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastSpell (Unit *victim, uint32 spellId, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0) |
| void | CastStop (uint32 except_spellid=0) |
| void | ChangeSeat (int8 seatId, bool next=true) |
| void | CleanupBeforeRemoveFromMap (bool finalCleanup) |
| void | CleanupsBeforeDelete (bool finalCleanup=true) override |
| void | ClearAllReactives () |
| void | ClearComboPointHolders () |
| void | ClearDiminishings () |
| void | ClearInCombat () |
| void | ClearPhases (bool update=false) |
| void | ClearUnitState (uint32 f) |
| void | CombatStart (Unit *target, bool initialAggro=true) |
| void | CombatStop (bool includingCast=false) |
| void | CombatStopWithPets (bool includingCast=false) |
| uint32 | CountPctFromCurHealth (int32 pct) const |
| uint32 | CountPctFromMaxHealth (int32 pct) const |
| int32 | CountPctFromMaxPower (Powers power, int32 pct) const |
| Pet * | CreateTamedPetFrom (Creature *creatureTarget, uint32 spell_id=0) |
| Pet * | CreateTamedPetFrom (uint32 creatureEntry, uint32 spell_id=0) |
| bool | CreateVehicleKit (uint32 id, uint32 creatureEntry, bool loading=false) |
| uint32 | DealDamage (Unit *victim, uint32 damage, CleanDamage const *cleanDamage=NULL, DamageEffectType damagetype=DIRECT_DAMAGE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *spellProto=NULL, bool durabilityLoss=true) |
| void | DealDamageMods (Unit *victim, uint32 &damage, uint32 *absorb) |
| int32 | DealHeal (Unit *victim, uint32 addhealth) |
| void | DealMeleeDamage (CalcDamageInfo *damageInfo, bool durabilityLoss) |
| void | DealSpellDamage (SpellNonMeleeDamage *damageInfo, bool durabilityLoss) |
| void | DelayOwnedAuras (uint32 spellId, uint64 caster, int32 delaytime) |
| void | DeleteCharmInfo () |
| void | DeleteThreatList () |
| void | DeMorph () |
| void | Dismount () |
| void | EnergizeBySpell (Unit *victim, uint32 SpellID, int32 Damage, Powers powertype) |
| void | EnterVehicle (Unit *base, int8 seatId=-1) |
| void | ExitVehicle (Position const *exitPosition=NULL) |
| Spell * | FindCurrentSpellBySpellId (uint32 spell_id) const |
| void | FinishSpell (CurrentSpellTypes spellType, bool ok=true) |
| Player * | GetAffectingPlayer () const |
| UnitAI * | GetAI () |
| void | GetAllMinionsByEntry (std::list< Creature * > &Minions, uint32 entry) |
| float | GetAPMultiplier (WeaponAttackType attType, bool normalized) |
| AuraApplicationMap & | GetAppliedAuras () |
| AuraApplicationMap const & | GetAppliedAuras () const |
| uint32 | GetArmor () const |
| void | GetAttackableUnitListInRange (std::list< Unit * > &list, float fMaxSearchRange) const |
| Unit * | getAttackerForHelper () const |
| AttackerSet const & | getAttackers () const |
| uint32 | GetAttackTime (WeaponAttackType att) const |
| uint32 | getAttackTimer (WeaponAttackType type) const |
| Aura * | GetAura (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0) const |
| AuraApplication * | GetAuraApplication (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0, AuraApplication *except=NULL) const |
| AuraApplication * | GetAuraApplicationOfRankedSpell (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0, AuraApplication *except=NULL) const |
| uint32 | GetAuraCount (uint32 spellId) const |
| AuraEffect * | GetAuraEffect (AuraType type, SpellFamilyNames family, uint32 familyFlag1, uint32 familyFlag2, uint32 familyFlag3, uint64 casterGUID=0) const |
| AuraEffect * | GetAuraEffect (AuraType type, SpellFamilyNames name, uint32 iconId, uint8 effIndex) const |
| AuraEffect * | GetAuraEffect (uint32 spellId, uint8 effIndex, uint64 casterGUID=0) const |
| AuraEffect * | GetAuraEffectOfRankedSpell (uint32 spellId, uint8 effIndex, uint64 casterGUID=0) const |
| AuraEffectList const & | GetAuraEffectsByType (AuraType type) const |
| Aura * | GetAuraOfRankedSpell (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0) const |
| uint32 | GetCastingTimeForBonus (SpellInfo const *spellProto, DamageEffectType damagetype, uint32 CastingTime) const |
| Unit * | GetCharm () const |
| Unit * | GetCharmer () const |
| uint64 | GetCharmerGUID () const |
| Unit * | GetCharmerOrOwner () const |
| uint64 | GetCharmerOrOwnerGUID () const |
| uint64 | GetCharmerOrOwnerOrOwnGUID () const |
| Unit * | GetCharmerOrOwnerOrSelf () const |
| Player * | GetCharmerOrOwnerPlayerOrPlayerItself () const |
| uint64 | GetCharmGUID () const |
| CharmInfo * | GetCharmInfo () |
| uint8 | getClass () const |
| uint32 | getClassMask () const |
| float | GetCombatReach () const |
| uint32 | GetCombatTimer () const |
| uint32 | GetCreateHealth () const |
| uint32 | GetCreateMana () const |
| int32 | GetCreatePowers (Powers power) const |
| float | GetCreateStat (Stats stat) const |
| uint64 | GetCreatorGUID () const |
| uint32 | GetCreatureType () const |
| uint32 | GetCreatureTypeMask () const |
| uint32 | GetCritDamageReduction (uint32 damage) const |
| uint64 | GetCritterGUID () const |
| Spell * | GetCurrentSpell (CurrentSpellTypes spellType) const |
| Spell * | GetCurrentSpell (uint32 spellType) const |
| int32 | GetCurrentSpellCastTime (uint32 spell_id) const |
| uint32 | GetDamageReduction (uint32 damage) const |
| DeathState | getDeathState () const |
| DiminishingLevels | GetDiminishing (DiminishingGroup group) |
| TransportBase * | GetDirectTransport () const |
| Returns the transport this unit is on directly (if on vehicle and transport, return vehicle). | |
| uint32 | GetDiseasesByCaster (uint64 casterGUID, bool remove=false) |
| void | GetDispellableAuraList (Unit *caster, uint32 dispelMask, DispelChargesList &dispelList) |
| uint32 | GetDisplayId () const |
| uint32 | GetDoTsByCaster (uint64 casterGUID) const |
| AuraEffect * | GetDummyAuraEffect (SpellFamilyNames name, uint32 iconId, uint8 effIndex) const |
| DynamicObject * | GetDynObject (uint32 spellId) |
| uint16 | GetExtraUnitMovementFlags () const |
| uint32 | getFaction () const |
| FactionTemplateEntry const * | GetFactionTemplateEntry () const |
| Unit * | GetFirstControlled () const |
| Minion * | GetFirstMinion () const |
| virtual float | GetFollowAngle () const |
| GameObject * | GetGameObject (uint32 spellId) const |
| uint8 | getGender () const |
| Guardian * | GetGuardianPet () const |
| uint32 | GetHealth () const |
| int32 | GetHealthGain (int32 dVal) |
| float | GetHealthPct () const |
| HostileRefManager & | getHostileRefManager () |
| uint32 | GetInterruptMask () const |
| time_t | GetLastDamagedTime () const |
| uint8 | getLevel () const |
| uint8 | getLevelForTarget (WorldObject const *) const override |
| Unit * | GetMagicHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo) |
| uint32 | GetMaxHealth () const |
| int32 | GetMaxNegativeAuraModifier (AuraType auratype) const |
| int32 | GetMaxNegativeAuraModifierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
| int32 | GetMaxNegativeAuraModifierByMiscMask (AuraType auratype, uint32 misc_mask) const |
| int32 | GetMaxNegativeAuraModifierByMiscValue (AuraType auratype, int32 misc_value) const |
| int32 | GetMaxPositiveAuraModifier (AuraType auratype) const |
| int32 | GetMaxPositiveAuraModifierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
| int32 | GetMaxPositiveAuraModifierByMiscMask (AuraType auratype, uint32 misc_mask, const AuraEffect *except=NULL) const |
| int32 | GetMaxPositiveAuraModifierByMiscValue (AuraType auratype, int32 misc_value) const |
| int32 | GetMaxPower (Powers power) const |
| uint16 | GetMaxSkillValueForLevel (Unit const *target=NULL) const |
| uint32 | GetMechanicImmunityMask () const |
| int32 | GetMechanicResistChance (SpellInfo const *spellInfo) const |
| Unit * | GetMeleeHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo=NULL) |
| float | GetMeleeReach () const |
| uint64 | GetMinionGUID () const |
| int32 | GetMinPower (Powers power) const |
| uint32 | GetModelForForm (ShapeshiftForm form) const |
| uint32 | GetModelForTotem (uint32 totemType) const |
| float | GetModifierValue (UnitMods unitMod, UnitModifierType modifierType) const |
| MotionMaster * | GetMotionMaster () |
| const MotionMaster * | GetMotionMaster () const |
| MountCapabilityEntry const * | GetMountCapability (uint32 mountType) const |
| uint32 | GetMountID () const |
| uint32 | GetMovementCounter () const |
| uint32 | GetNativeDisplayId () const |
| float | GetNegStat (Stats stat) const |
| Unit * | GetNextRandomRaidMemberOrPet (float radius) |
| Aura * | GetOwnedAura (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0, Aura *except=NULL) const |
| AuraMap & | GetOwnedAuras () |
| AuraMap const & | GetOwnedAuras () const |
| Unit * | GetOwner () const |
| uint64 | GetOwnerGUID () const |
| void | GetPartyMembers (std::list< Unit * > &units) |
| uint64 | GetPetGUID () const |
| float | GetPositionZMinusOffset () const |
| float | GetPosStat (Stats stat) const |
| int32 | GetPower (Powers power) const |
| uint32 | GetPowerIndex (uint32 powerType) const |
| Powers | getPowerType () const |
| Powers | GetPowerTypeByAuraGroup (UnitMods unitMod) const |
| float | GetPPMProcChance (uint32 WeaponSpeed, float PPM, const SpellInfo *spellProto) const |
| void | GetProcAurasTriggeredOnEvent (AuraApplicationList &aurasTriggeringProc, AuraApplicationList *procAuras, ProcEventInfo eventInfo) |
| uint8 | getRace () const |
| uint32 | getRaceMask () const |
| void | GetRandomContactPoint (const Unit *target, float &x, float &y, float &z, float distance2dMin, float distance2dMax) const |
| ReputationRank | GetReactionTo (Unit const *target) const |
| uint32 | GetRedirectThreatPercent () const |
| Unit * | GetRedirectThreatTarget () |
| uint32 | GetRemainingPeriodicAmount (uint64 caster, uint32 spellId, AuraType auraType, uint8 effectIndex=0) const |
| uint32 | GetResistance (SpellSchoolMask mask) const |
| uint32 | GetResistance (SpellSchools school) const |
| float | GetResistanceBuffMods (SpellSchools school, bool positive) const |
| uint32 | GetSchoolImmunityMask () const |
| ShapeshiftForm | GetShapeshiftForm () const |
| SharedVisionList const & | GetSharedVisionList () |
| SheathState | GetSheath () const |
| AuraList & | GetSingleCastAuras () |
| AuraList const & | GetSingleCastAuras () const |
| float | GetSpeed (UnitMoveType mtype) const |
| float | GetSpeedRate (UnitMoveType mtype) const |
| float | GetSpellMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
| float | GetSpellMinRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
| Player * | GetSpellModOwner () const |
| SpellSchools | GetSpellSchoolByAuraGroup (UnitMods unitMod) const |
| uint8 | getStandState () const |
| float | GetStat (Stats stat) const |
| Stats | GetStatByAuraGroup (UnitMods unitMod) const |
| uint64 | GetTarget () const |
| ThreatManager & | getThreatManager () |
| float | GetTotalAttackPowerValue (WeaponAttackType attType) const |
| int32 | GetTotalAuraModifier (AuraType auratype) const |
| int32 | GetTotalAuraModifierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
| int32 | GetTotalAuraModifierByMiscMask (AuraType auratype, uint32 misc_mask) const |
| int32 | GetTotalAuraModifierByMiscValue (AuraType auratype, int32 misc_value) const |
| float | GetTotalAuraModValue (UnitMods unitMod) const |
| float | GetTotalAuraMultiplier (AuraType auratype) const |
| float | GetTotalAuraMultiplierByAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
| float | GetTotalAuraMultiplierByMiscMask (AuraType auratype, uint32 misc_mask) const |
| float | GetTotalAuraMultiplierByMiscValue (AuraType auratype, int32 misc_value) const |
| float | GetTotalStatValue (Stats stat) const |
| uint32 | getTransForm () const |
| uint64 | GetTransGUID () const override |
| float | GetUnitBlockChance () const |
| float | GetUnitCriticalChance (WeaponAttackType attackType, const Unit *victim) const |
| float | GetUnitDodgeChance () const |
| uint32 | GetUnitMeleeSkill (Unit const *target=NULL) const |
| float | GetUnitMissChance (WeaponAttackType attType) const |
| uint32 | GetUnitMovementFlags () const |
| float | GetUnitParryChance () const |
| Vehicle * | GetVehicle () const |
| Unit * | GetVehicleBase () const |
| Creature * | GetVehicleCreatureBase () const |
| Vehicle * | GetVehicleKit () const |
| Unit * | GetVictim () const |
| uint32 | getVirtualRealm () const |
| AuraApplication * | GetVisibleAura (uint8 slot) const |
| VisibleAuraMap const * | GetVisibleAuras () |
| float | GetWeaponDamageRange (WeaponAttackType attType, WeaponDamageRange type) const |
| float | GetWeaponProcChance () const |
| void | HandleEmoteCommand (uint32 anim_id) |
| void | HandleProcExtraAttackFor (Unit *victim) |
| bool | HandleSpellClick (Unit *clicker, int8 seatId=-1) |
| bool | HandleStatModifier (UnitMods unitMod, UnitModifierType modifierType, float amount, bool apply) |
| bool | HasAura (uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0) const |
| bool | HasAuraEffect (uint32 spellId, uint8 effIndex, uint64 caster=0) const |
| bool | HasAuraState (AuraStateType flag, SpellInfo const *spellProto=NULL, Unit const *Caster=NULL) const |
| bool | HasAuraType (AuraType auraType) const |
| bool | HasAuraTypeWithAffectMask (AuraType auratype, SpellInfo const *affectedSpell) const |
| bool | HasAuraTypeWithCaster (AuraType auratype, uint64 caster) const |
| bool | HasAuraTypeWithFamilyFlags (AuraType auraType, uint32 familyName, uint32 familyFlags) const |
| bool | HasAuraTypeWithMiscvalue (AuraType auratype, int32 miscvalue) const |
| bool | HasAuraTypeWithValue (AuraType auratype, int32 value) const |
| bool | HasAuraWithMechanic (uint32 mechanicMask) const |
| bool | HasBreakableByDamageAuraType (AuraType type, uint32 excludeAura=0) const |
| bool | HasBreakableByDamageCrowdControlAura (Unit *excludeCasterChannel=NULL) const |
| uint16 | HasExtraUnitMovementFlag (uint16 f) const |
| bool | HasInvisibilityAura () const |
| bool | HasNegativeAuraWithAttribute (uint32 flag, uint64 guid=0) const |
| bool | HasNegativeAuraWithInterruptFlag (uint32 flag, uint64 guid=0) const |
| bool | HasSharedVision () const |
| bool | HasStealthAura () const |
| bool | HasUnitMovementFlag (uint32 f) const |
| bool | HasUnitState (const uint32 f) const |
| uint32 | HasUnitTypeMask (uint32 mask) const |
| bool | HasVisionObscured (Unit const *target) const |
| bool | haveOffhandWeapon () const |
| int32 | HealBySpell (Unit *victim, SpellInfo const *spellInfo, uint32 addHealth, bool critical=false) |
| bool | HealthAbovePct (int32 pct) const |
| bool | HealthAbovePctHealed (int32 pct, uint32 heal) const |
| bool | HealthBelowPct (int32 pct) const |
| bool | HealthBelowPctDamaged (int32 pct, uint32 damage) const |
| void | IncrDiminishing (DiminishingGroup group) |
| CharmInfo * | InitCharmInfo () |
| void | InitStatBuffMods () |
| bool | InitTamedPet (Pet *pet, uint8 level, uint32 spell_id) const |
| void | InterruptNonMeleeSpells (bool withDelayed, uint32 spellid=0, bool withInstant=true) |
| void | InterruptSpell (CurrentSpellTypes spellType, bool withDelayed=true, bool withInstant=true) |
| bool | IsAlive () const |
| bool | IsArmorer () const |
| bool | isAttackingPlayer () const |
| bool | isAttackReady (WeaponAttackType type=WeaponAttackType::BASE_ATTACK) const |
| bool | IsAuctioner () const |
| bool | IsBanker () const |
| bool | IsBattleMaster () const |
| bool | isBlockCritical () |
| bool | IsBMAuctioner () const |
| bool | IsCharmed () const |
| bool | IsCharmedOwnedByPlayerOrPlayer () const |
| bool | IsContestedGuard () const |
| bool | IsControlledByPlayer () const |
| bool | isDead () const |
| bool | IsDuringRemoveFromWorld () const |
| bool | isDying () const |
| bool | IsFalling () const |
| bool | isFeared () const |
| bool | IsFlying () const |
| bool | IsFriendlyTo (Unit const *unit) const |
| bool | isFrozen () const |
| bool | IsFullHealth () const |
| bool | IsGossip () const |
| bool | IsGuardian () const |
| bool | IsGuildMaster () const |
| bool | IsHostileTo (Unit const *unit) const |
| bool | IsHostileToPlayers () const |
| bool | IsHunterPet () const |
| bool | IsImmunedToDamage (SpellInfo const *spellInfo) const |
| bool | IsImmunedToDamage (SpellSchoolMask meleeSchoolMask) const |
| virtual bool | IsImmunedToSpell (SpellInfo const *spellInfo) const |
| virtual bool | IsImmunedToSpellEffect (SpellInfo const *spellInfo, uint32 index) const |
| bool | isInAccessiblePlaceFor (Creature const *c) const |
| bool | isInBackInMap (Unit const *target, float distance, float arc=M_PI) const |
| bool | IsInCombat () const |
| bool | IsInDisallowedMountForm () const |
| bool | IsInFeralForm () const |
| bool | IsInFlight () const |
| bool | isInFrontInMap (Unit const *target, float distance, float arc=M_PI) const |
| bool | IsInnkeeper () const |
| bool | IsInPartyWith (Unit const *unit) const |
| bool | IsInRaidWith (Unit const *unit) const |
| bool | isInRoots () const |
| bool | IsLevitating () const |
| bool | IsMounted () const |
| bool | isMoving () const |
| bool | IsNeutralToAll () const |
| bool | IsNonMeleeSpellCasted (bool withDelayed, bool skipChanneled=false, bool skipAutorepeat=false, bool isAutoshoot=false, bool skipInstant=true) const |
| bool | IsOnVehicle (const Unit *vehicle) const |
| bool | IsPet () const |
| bool | IsPolymorphed () const |
| bool | isPossessed () const |
| bool | isPossessedByPlayer () const |
| bool | isPossessing () const |
| bool | isPossessing (Unit *u) const |
| bool | IsPvP () const |
| bool | IsQuestGiver () const |
| AuraEffect * | IsScriptOverriden (SpellInfo const *spell, int32 script) const |
| bool | IsServiceProvider () const |
| bool | IsSitState () const |
| bool | isSpellBlocked (Unit *victim, SpellInfo const *spellProto, WeaponAttackType attackType=WeaponAttackType::BASE_ATTACK) |
| bool | isSpellCrit (Unit *victim, SpellInfo const *spellProto, SpellSchoolMask schoolMask, WeaponAttackType attackType=WeaponAttackType::BASE_ATTACK) const |
| bool | IsSpiritGuide () const |
| bool | IsSpiritHealer () const |
| bool | IsSpiritService () const |
| bool | IsSplineEnabled () const |
| bool | IsStandState () const |
| bool | IsStopped () const |
| bool | IsSummon () const |
| bool | IsTabardDesigner () const |
| bool | isTargetableForAttack (bool checkFakeDeath=true) const |
| bool | IsTaxi () const |
| bool | IsTotem () const |
| bool | IsTrainer () const |
| bool | isTurning () const |
| bool | IsValidAssistTarget (Unit const *target) const |
| bool | IsValidAttackTarget (Unit const *target) const |
| bool | IsVehicle () const |
| bool | IsVendor () const |
| bool | IsVisible () const |
| bool | IsWalking () const |
| bool | IsWithinCombatRange (const Unit *obj, float dist2compare) const |
| bool | IsWithinMeleeRange (const Unit *obj, float dist=MELEE_RANGE) const |
| void | JumpTo (float speedXY, float speedZ, bool forward=true) |
| void | JumpTo (WorldObject *obj, float speedZ) |
| void | Kill (Unit *victim, bool durabilityLoss=true) |
| void | KnockbackFrom (float x, float y, float speedXY, float speedZ) |
| SpellMissInfo | MagicSpellHitResult (Unit *victim, SpellInfo const *spellInfo) |
| uint32 | MeleeDamageBonusDone (Unit *pVictim, uint32 damage, WeaponAttackType attType, SpellInfo const *spellProto=NULL) |
| uint32 | MeleeDamageBonusTaken (Unit *attacker, uint32 pdamage, WeaponAttackType attType, SpellInfo const *spellProto=NULL) |
| SpellMissInfo | MeleeSpellHitResult (Unit *victim, SpellInfo const *spellInfo) |
| float | MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, uint32 spellId) const |
| void | ModifyAuraState (AuraStateType flag, bool apply) |
| int32 | ModifyHealth (int32 val) |
| int32 | ModifyPower (Powers power, int32 val) |
| int32 | ModifyPowerPct (Powers power, float pct, bool apply=true) |
| void | ModifyRedirectThreat (int32 amount) |
| void | ModSpellCastTime (SpellInfo const *spellProto, int32 &castTime, Spell *spell=NULL) |
| int32 | ModSpellDuration (SpellInfo const *spellProto, Unit const *target, int32 duration, bool positive, uint32 effectMask) |
| void | MonsterMoveWithSpeed (float x, float y, float z, float speed, bool generatePath=false, bool forceDestination=false) |
| void | Mount (uint32 mount, uint32 vehicleId=0, uint32 creatureEntry=0) |
| void | NearTeleportTo (float x, float y, float z, float orientation, bool casting=false) |
| void | OutDebugInfo () const |
| void | PlayOneShotAnimKit (uint32 id) |
| void | ProcDamageAndSpell (Unit *victim, uint32 procAttacker, uint32 procVictim, uint32 procEx, uint32 amount, WeaponAttackType attType=WeaponAttackType::BASE_ATTACK, SpellInfo const *procSpell=NULL, SpellInfo const *procAura=NULL) |
| void | ProcDamageAndSpellFor (bool isVictim, Unit *target, uint32 procFlag, uint32 procExtra, WeaponAttackType attType, SpellInfo const *procSpell, uint32 damage, SpellInfo const *procAura=NULL) |
| void | propagateSpeedChange () |
| -------—End of Pet responses methods-------— | |
| void | RemoveAllAttackers () |
| void | RemoveAllAuras () |
| void | RemoveAllAurasExceptType (AuraType type) |
| void | RemoveAllAurasExceptType (AuraType type1, AuraType type2) |
| void | RemoveAllAurasOnDeath () |
| void | RemoveAllAurasRequiringDeadTarget () |
| void | RemoveAllControlled () |
| void | RemoveAllDynObjects () |
| void | RemoveAllGameObjects () |
| void | RemoveAllMinionsByEntry (uint32 entry) |
| void | RemoveAreaAurasDueToLeaveWorld () |
| void | RemoveArenaAuras () |
| void | RemoveAura (Aura *aur, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (AuraApplication *aurApp, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (uint32 spellId, uint64 casterGUID=0, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAuraFromStack (uint32 spellId, uint64 casterGUID=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAurasByType (AuraType auraType, uint64 casterGUID=0, Aura *except=NULL, bool negative=true, bool positive=true) |
| void | RemoveAurasDueToItemSpell (uint32 spellId, uint64 castItemGuid) |
| void | RemoveAurasDueToSpell (uint32 spellId, uint64 casterGUID=0, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAurasDueToSpellByDispel (uint32 spellId, uint32 dispellerSpellId, uint64 casterGUID, Unit *dispeller, uint8 chargesRemoved=1) |
| void | RemoveAurasDueToSpellBySteal (uint32 spellId, uint64 casterGUID, Unit *stealer) |
| void | RemoveAurasWithAttribute (uint32 flags) |
| void | RemoveAurasWithFamily (SpellFamilyNames family, uint32 familyFlag1, uint32 familyFlag2, uint32 familyFlag3, uint64 casterGUID) |
| void | RemoveAurasWithInterruptFlags (uint32 flag, uint32 except=0) |
| void | RemoveAurasWithMechanic (uint32 mechanic_mask, AuraRemoveMode removemode=AURA_REMOVE_BY_DEFAULT, uint32 except=0) |
| void | RemoveBindSightAuras () |
| void | RemoveCharmAuras () |
| void | RemoveCharmedBy (Unit *charmer) |
| void | RemoveComboPointHolder (uint32 lowguid) |
| void | RemoveDynObject (uint32 spellId) |
| void | RemoveExtraUnitMovementFlag (uint16 f) |
| void | removeFollower (FollowerReference *) |
| void | RemoveFromWorld () override |
| void | RemoveGameObject (GameObject *gameObj, bool del) |
| void | RemoveGameObject (uint32 spellid, bool del) |
| void | removeHatedBy (HostileReference *) |
| void | RemoveMovementImpairingAuras () |
| void | RemoveNotOwnSingleTargetAuras (uint32 newPhase=0, bool phaseid=false) |
| void | RemoveOwnedAura (Aura *aura, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAura (AuraMap::iterator &i, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAura (uint32 spellId, uint64 casterGUID=0, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemovePetAura (PetAura const *petSpell) |
| void | RemovePlayerFromVision (Player *player) |
| void | RemoveStandFlags (uint8 flags) |
| void | RemoveUnitMovementFlag (uint32 f) |
| void | RemoveVehicleKit (bool remove=false) |
| void | RemoveVisibleAura (uint8 slot) |
| void | resetAttackTimer (WeaponAttackType type=WeaponAttackType::BASE_ATTACK) |
| void | ResetRedirectThreat () |
| void | RestoreDisplayId () |
| void | RestoreFaction () |
| void | RewardRage (uint32 baseRage, bool attacker) |
| MeleeHitOutcome | RollMeleeOutcomeAgainst (const Unit *victim, WeaponAttackType attType) const |
| MeleeHitOutcome | RollMeleeOutcomeAgainst (const Unit *victim, WeaponAttackType attType, int32 crit_chance, int32 miss_chance, int32 dodge_chance, int32 parry_chance, int32 block_chance) const |
| Unit * | SelectNearbyTarget (Unit *exclude=NULL, float dist=NOMINAL_MELEE_RANGE) const |
| void | SendAttackStateUpdate (CalcDamageInfo *damageInfo) |
| void | SendAttackStateUpdate (uint32 HitInfoHitInfo, Unit *target, uint8 SwingType, SpellSchoolMask damageSchoolMask, uint32 Damage, uint32 AbsorbDamage, uint32 Resist, VictimState TargetState, uint32 BlockedAmount) |
| void | SendChangeCurrentVictimOpcode (HostileReference *pHostileReference) |
| void | SendClearTarget () |
| void | SendClearThreatListOpcode (ObjectGuid UnitGUID) |
| void | SendDurabilityLoss (Player *receiver, uint32 percent) |
| void | SendEnergizeSpellLog (Unit *victim, uint32 spellID, int32 damage, Powers powertype) |
| void | SendHealSpellLog (ObjectGuid CasterGUID, ObjectGuid TargetGUID, uint32 SpellID, uint32 Damage, uint32 OverHeal, uint32 Absorb, bool critical=false) |
| void | SendMeleeAttackStart (Unit *victim) |
| void | SendMeleeAttackStop (Unit *victim=NULL) |
| void | SendMoveKnockBack (Player *player, float speedXY, float speedZ, float vcos, float vsin) |
| void | SendPeriodicAuraLog (SpellPeriodicAuraLogInfo *pInfo) |
| void | SendPetActionFeedback (uint8 msg) const |
| -------—Pet responses methods--------------— | |
| void | SendPetAIReaction (ObjectGuid UnitGUID) const |
| void | SendPetTalk (uint32 pettalk) const |
| void | SendPlaySpellVisual (uint32 SpellVisualId, float x, float y, float z, float orientation, uint8 SpeedTime, uint16 MissReason, uint16 ReflectStatus) |
| void | SendPlaySpellVisualKit (uint32 SpellVisualId, uint32 Duration, int32 Type) |
| void | SendRemoveFromThreatListOpcode (HostileReference *pHostileReference) |
| void | SendSetVehicleRecId (uint32 vehicleId) |
| void | SendSpellDamageImmune (Unit *target, uint32 spellId) |
| void | SendSpellDamageResist (Unit *target, uint32 spellId) |
| void | SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo) |
| void | SendSpellNonMeleeDamageLog (SpellNonMeleeDamage *log) |
| void | SendSpellNonMeleeDamageLog (Unit *target, uint32 SpellID, uint32 Damage, SpellSchoolMask damageSchoolMask, uint32 AbsorbedDamage, uint32 Resist, bool PhysicalDamage, uint32 Blocked, bool CriticalHit=false) |
| void | SendTeleportPacket (Position &pos) |
| void | SendThreatListUpdate () |
| void | SetAI (UnitAI *newAI) |
| void | SetAnimTier (AnimTier tier) |
| void | SetArmor (int32 val) |
| void | SetAttackTime (WeaponAttackType att, uint32 val) |
| void | setAttackTimer (WeaponAttackType type, uint32 time) |
| void | SetAuraStack (uint32 spellId, Unit *target, uint32 stack) |
| void | SetAutoattackOverrideRange (uint32 range) |
| void | SetAutoattackOverrideSpell (SpellInfo const *spellInfo) |
| void | SetBaseWeaponDamage (WeaponAttackType attType, WeaponDamageRange damageRange, float value) |
| void | SetCanDualWield (bool value) |
| bool | SetCanFly (bool enable) |
| void | SetCanModifyStats (bool modifyStats) |
| void | SetCantProc (bool apply) |
| void | SetCharm (Unit *target, bool apply) |
| bool | SetCharmedBy (Unit *charmer, CharmType type, AuraApplication const *aurApp=NULL) |
| void | SetCharmerGUID (uint64 owner) |
| void | SetClass (uint8 newClass) |
| void | SetContestedPvP (Player *attackedPlayer=NULL) |
| void | SetControlled (bool apply, UnitState state) |
| void | SetCreateHealth (uint32 val) |
| void | SetCreateMana (uint32 val) |
| void | SetCreateStat (Stats stat, float val) |
| void | SetCreatorGUID (uint64 creator) |
| void | SetCritterGUID (uint64 guid) |
| void | SetCurrentCastedSpell (Spell *pSpell) |
| bool | SetDisableGravity (bool disable, bool packetOnly=false) |
| virtual void | SetDisplayId (uint32 modelId) |
| void | SetExtraUnitMovementFlags (uint16 f) |
| void | SetFacingTo (float ori) |
| void | SetFacingToObject (WorldObject *object) |
| void | setFaction (uint32 faction) |
| bool | SetFall (bool enable) |
| bool | SetFeatherFall (bool enable, bool packetOnly=false) |
| void | SetFieldPowerType (uint32 powerType) |
| void | SetFullHealth () |
| void | SetGender (uint8 gender) |
| void | SetHealth (uint32 val) |
| bool | SetHover (bool enable, bool packetOnly=false) |
| void | SetInCombatState (bool PvP, Unit *enemy=NULL) |
| void | SetInCombatWith (Unit *enemy) |
| void | SetInFront (WorldObject const *target) |
| void | SetLastDamagedTime (time_t val) |
| void | SetLevel (uint8 lvl) |
| void | SetMaxHealth (uint32 val) |
| void | SetMaxPower (Powers power, int32 val) |
| void | SetMinion (Minion *minion, bool apply) |
| void | SetMinionGUID (uint64 guid) |
| void | SetModifierValue (UnitMods unitMod, UnitModifierType modifierType, float value) |
| void | SetNativeDisplayId (uint32 modelId) |
| void | SetOwnerGUID (uint64 owner) |
| void | SetPetGUID (uint64 guid) |
| bool | SetPhased (uint32 id, bool update, bool apply) OVERRIDE |
| void | SetPhaseMask (uint32 newPhaseMask, bool update) override |
| void | SetPower (Powers power, int32 val) |
| void | setPowerType (Powers power) |
| void | SetPvP (bool state) |
| void | SetRace (uint8 race) |
| void | SetRedirectThreat (uint64 guid, uint32 pct) |
| void | SetResistance (SpellSchools school, int32 val) |
| void | SetResistanceBuffMods (SpellSchools school, bool positive, float val) |
| void | SetShapeshiftForm (ShapeshiftForm form) |
| void | SetSpeed (UnitMoveType mtype, float rate, bool forced=false) |
| void | SetStandFlags (uint8 flags) |
| void | SetStandState (uint8 state) |
| void | SetStat (Stats stat, int32 val) |
| bool | SetSwim (bool enable) |
| void | setTransForm (uint32 spellid) |
| void | SetUnitMovementFlags (uint32 f) |
| void | SetVehicle (Vehicle *vehicle) |
| void | SetVisible (bool x) |
| void | SetVisibleAura (uint8 slot, AuraApplication *aur) |
| bool | SetWalk (bool enable) |
| bool | SetWaterWalking (bool enable, bool packetOnly=false) |
| int32 | SpellBaseDamageBonusDone (SpellSchoolMask schoolMask) const |
| int32 | SpellBaseDamageBonusTaken (SpellSchoolMask schoolMask) const |
| int32 | SpellBaseHealingBonusDone (SpellSchoolMask schoolMask) const |
| int32 | SpellBaseHealingBonusTaken (SpellSchoolMask schoolMask) const |
| uint32 | SpellCriticalDamageBonus (SpellInfo const *spellProto, uint32 damage, Unit *victim) |
| uint32 | SpellCriticalHealingBonus (SpellInfo const *spellProto, uint32 damage, Unit *victim) |
| uint32 | SpellDamageBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, uint32 stack=1) const |
| uint32 | SpellDamageBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, uint32 stack=1) const |
| uint32 | SpellHealingBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype, uint32 stack=1) const |
| uint32 | SpellHealingBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype, uint32 stack=1) const |
| SpellMissInfo | SpellHitResult (Unit *victim, SpellInfo const *spellInfo, bool canReflect=false) |
| uint32 | SpellNonMeleeDamageLog (Unit *victim, uint32 spellID, uint32 damage) |
| void | StartReactiveTimer (ReactiveType reactive) |
| void | StopAttackFaction (uint32 faction_id) |
| void | StopMoving () |
| -------—End of Pet responses methods-------— | |
| void | TauntApply (Unit *victim) |
| void | TauntFadeOut (Unit *taunter) |
| Pet * | ToPet () |
| Pet const * | ToPet () const |
| TempSummon * | ToTempSummon () |
| TempSummon const * | ToTempSummon () const |
| Totem * | ToTotem () |
| Totem const * | ToTotem () const |
| void | TrackGameObject (GameObject *gameObj) |
| void | TriggerAurasProcOnEvent (AuraApplicationList *myProcAuras, AuraApplicationList *targetProcAuras, Unit *actionTarget, uint32 typeMaskActor, uint32 typeMaskActionTarget, uint32 spellTypeMask, uint32 spellPhaseMask, uint32 hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo) |
| void | TriggerAurasProcOnEvent (CalcDamageInfo &damageInfo) |
| void | TriggerAurasProcOnEvent (ProcEventInfo &eventInfo, AuraApplicationList &procAuras) |
| void | UnsummonAllTotems () |
| void | Update (uint32 time) OVERRIDE |
| void | UpdateAuraForGroup (uint8 slot) |
| void | UpdateCharmAI () |
| void | UpdateHeight (float newZ) |
| Only server-side height update, does not broadcast to client. | |
| void | UpdateInterruptMask () |
| void | UpdateObjectVisibility (bool forced=true) override |
| void | UpdateOrientation (float orientation) |
| Only server-side orientation update, does not broadcast to client. | |
| bool | UpdatePosition (const Position &pos, bool teleport=false) |
| void | UpdateReactives (uint32 p_time) |
| void | UpdateSpeed (UnitMoveType mtype, bool forced) |
| void | WriteMovementInfo (WorldPacket &data, Movement::ExtraMovementStatusElement *extras=NULL) |
| virtual | ~Unit () |
| Public Member Functions inherited from WorldObject | |
| void | _Create (uint32 guidlow, HighGuid guidhigh, uint32 phaseMask) |
| void | AddObjectToRemoveList () |
| void | AddToNotify (uint16 f) |
| void | BuildUpdate (UpdateDataMapType &) |
| bool | CanSeeOrDetect (WorldObject const *obj, bool ignoreStealth=false, bool distanceCheck=false) const |
| void | ClearPhases (bool update=false) |
| void | DestroyForNearbyPlayers () |
| Map * | FindMap () const |
| Creature * | FindNearestCreature (uint32 entry, float range, bool alive=true) const |
| GameObject * | FindNearestGameObject (uint32 entry, float range) const |
| GameObject * | FindNearestGameObjectOfType (GameobjectTypes type, float range) const |
| uint32 | GetAreaId () const |
| Map const * | GetBaseMap () const |
| void | GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float angle=0) const |
| void | GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const |
| void | GetCreatureListWithEntryInGrid (std::list< Creature * > &lList, uint32 uiEntry, float fMaxSearchRange) const |
| float | GetDistance (float x, float y, float z) const |
| float | GetDistance (Position const &pos) const |
| float | GetDistance (WorldObject const *obj) const |
| float | GetDistance2d (float x, float y) const |
| float | GetDistance2d (WorldObject const *obj) const |
| bool | GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const |
| float | GetDistanceZ (WorldObject const *obj) const |
| void | GetFirstCollisionPosition (Position &pos, float dist, float angle) |
| void | GetGameObjectListWithEntryInGrid (std::list< GameObject * > &lList, uint32 uiEntry, float fMaxSearchRange) const |
| float | GetGridActivationRange () const |
| uint32 | GetInstanceId () const |
| InstanceScript * | GetInstanceScript () |
| Map * | GetMap () const |
| std::string const & | GetName () const |
| virtual std::string const & | GetNameForLocaleIdx (LocaleConstant) const |
| void | GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float searcher_size, float distance2d, float absAngle) const |
| void | GetNearPoint2D (float &x, float &y, float distance, float absAngle) const |
| void | GetNearPosition (Position &pos, float dist, float angle) |
| uint16 | GetNotifyFlags () const |
| float | GetObjectSize () const |
| uint32 | GetPhaseMask () const |
| std::set< uint32 > const & | GetPhases () const |
| void | GetPlayerListInGrid (std::list< Player * > &lList, float fMaxSearchRange) const |
| void | GetRandomNearPosition (Position &pos, float radius) |
| void | GetRandomPoint (Position const &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const |
| void | GetRandomPoint (Position const &srcPos, float distance, Position &pos) const |
| float | GetSightRange (WorldObject const *target=NULL) const |
| virtual float | GetStationaryO () const |
| virtual float | GetStationaryX () const |
| virtual float | GetStationaryY () const |
| virtual float | GetStationaryZ () const |
| std::set< uint32 > const & | GetTerrainSwaps () const |
| float | GetTransOffsetO () const |
| float | GetTransOffsetX () const |
| float | GetTransOffsetY () const |
| float | GetTransOffsetZ () const |
| Transport * | GetTransport () const |
| int8 | GetTransSeat () const |
| uint32 | GetTransTime () const |
| float | GetVisibilityRange () const |
| std::set< uint32 > const & | GetWorldMapSwaps () const |
| void | GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const |
| uint32 | GetZoneId () const |
| ZoneScript * | GetZoneScript () const |
| bool | HasPhaseList (uint32 phase) |
| bool | InSamePhase (uint32 phasemask) const |
| bool | InSamePhase (WorldObject const *obj) const |
| bool | isActiveObject () const |
| bool | isInBack (WorldObject const *target, float arc=M_PI) const |
| bool | IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const |
| bool | isInFront (WorldObject const *target, float arc=M_PI) const |
| bool | IsInMap (WorldObject const *obj) const |
| bool | IsInRange (WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const |
| bool | IsInRange2d (float x, float y, float minRange, float maxRange) const |
| bool | IsInRange3d (float x, float y, float z, float minRange, float maxRange) const |
| bool | isNeedNotify (uint16 f) const |
| bool | IsPermanentWorldObject () const |
| bool | IsPhased (uint32 phase) const |
| bool | IsPhased (WorldObject const *obj) const |
| bool | IsSelfOrInSameMap (WorldObject const *obj) const |
| bool | IsTerrainSwaped (uint32 terrainSwap) const |
| bool | IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true) const |
| bool | IsWithinDist2d (float x, float y, float dist) const |
| bool | IsWithinDist2d (Position const *pos, float dist) const |
| bool | IsWithinDist3d (float x, float y, float z, float dist) const |
| bool | IsWithinDist3d (Position const *pos, float dist) const |
| bool | IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true) const |
| bool | IsWithinLOS (float x, float y, float z) const |
| bool | IsWithinLOSInMap (WorldObject const *obj) const |
| bool | IsWorldObject () const |
| void | MonsterSay (const char *text, Language language, WorldObject const *target) |
| void | MonsterSay (int32 textId, Language language, WorldObject const *target) |
| void | MonsterTextEmote (const char *text, WorldObject const *target, bool IsBossEmote=false) |
| void | MonsterTextEmote (int32 textId, WorldObject const *target, bool IsBossEmote=false) |
| void | MonsterWhisper (const char *text, Player const *target, bool IsBossWhisper=false) |
| void | MonsterWhisper (int32 textId, Player const *target, bool IsBossWhisper=false) |
| void | MonsterYell (const char *text, Language language, WorldObject const *target) |
| void | MonsterYell (int32 textId, Language language, WorldObject const *target) |
| void | MovePosition (Position &pos, float dist, float angle) |
| void | MovePositionToFirstCollision (Position &pos, float dist, float angle) |
| bool | NotifyExecuted (uint16 f) const |
| void | PlayDirectSound (uint32 sound_id, Player *target=NULL) |
| void | PlayDistanceSound (uint32 sound_id, Player *target) |
| void | RebuildTerrainSwaps () |
| void | RebuildWorldMapAreaSwaps () |
| void | ResetAllNotifies () |
| virtual void | SaveRespawnTime () |
| void | SendObjectDeSpawnAnim (uint64 guid) |
| void | SendPlaySound (uint32 SoundSound, bool OnlySelf) |
| void | setActive (bool isActiveObject) |
| void | SetName (std::string const &newname) |
| void | SetNotified (uint16 f) |
| void | SetTransport (Transport *t) |
| void | SetWorldObject (bool apply) |
| void | SetZoneScript () |
| TempSummon * | SummonCreature (uint32 id, float x, float y, float z, float ang=0, TempSummonType spwtype=TempSummonType::TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0) const |
| TempSummon * | SummonCreature (uint32 id, Position const &pos, TempSummonType spwtype=TempSummonType::TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const |
| void | SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=NULL) |
| GameObject * | SummonGameObject (uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime) |
| Creature * | SummonTrigger (float x, float y, float z, float ang, uint32 dur, CreatureAI *(*GetAI)(Creature *)=NULL) |
| void | UpdateAllowedPositionZ (float x, float y, float &z) const |
| void | UpdateAreaPhase () |
| void | UpdateGroundPositionZ (float x, float y, float &z) const |
| template<class NOTIFIER> | |
| void | VisitNearbyGridObject (float const &radius, NOTIFIER ¬ifier) const |
| template<class NOTIFIER> | |
| void | VisitNearbyObject (float const &radius, NOTIFIER ¬ifier) const |
| template<class NOTIFIER> | |
| void | VisitNearbyWorldObject (float const &radius, NOTIFIER ¬ifier) const |
| virtual | ~WorldObject () |
| Public Member Functions inherited from Object | |
| bool | AddUInt64Value (uint16 index, uint64 value) |
| void | ApplyModFlag (uint16 index, uint32 flag, bool apply) |
| void | ApplyModFlag64 (uint16 index, uint64 flag, bool apply) |
| void | ApplyModInt32Value (uint16 index, int32 val, bool apply) |
| void | ApplyModPositiveFloatValue (uint16 index, float val, bool apply) |
| void | ApplyModSignedFloatValue (uint16 index, float val, bool apply) |
| void | ApplyModUInt32Value (uint16 index, int32 val, bool apply) |
| void | ApplyPercentModFloatValue (uint16 index, float val, bool apply) |
| void | BuildFieldsUpdate (Player *, UpdateDataMapType &) const |
| void | BuildOutOfRangeUpdateBlock (UpdateData *data) const |
| void | BuildValuesUpdateBlockForPlayer (UpdateData *data, Player *target) const |
| void | ClearUpdateMask (bool remove) |
| void | ForceValuesUpdateAtIndex (uint32) |
| uint8 | GetByteValue (uint16 index, uint8 offset) const |
| uint32 | GetDynamicUInt32Value (uint32 tab, uint16 index) const |
| uint32 | GetEntry () const |
| float | GetFloatValue (uint16 index) const |
| uint64 | GetGUID () const |
| uint32 | GetGUIDHigh () const |
| uint32 | GetGUIDLow () const |
| uint32 | GetGUIDMid () const |
| int32 | GetInt32Value (uint16 index) const |
| ObjectGuid | GetObjectGUID () const |
| float | GetObjectScale () const |
| const ByteBuffer & | GetPackGUID () const |
| TypeID | GetTypeId () const |
| uint16 | GetUInt16Value (uint16 index, uint8 offset) const |
| uint32 | GetUInt32Value (uint16 index) const |
| uint64 | GetUInt64Value (uint16 index) const |
| uint16 | GetValuesCount () const |
| bool | HasByteFlag (uint16 index, uint8 offset, uint8 flag) const |
| bool | HasFlag (uint16 index, uint32 flag) const |
| bool | HasFlag64 (uint16 index, uint64 flag) const |
| virtual bool | hasInvolvedQuest (uint32) const |
| virtual bool | hasQuest (uint32) const |
| bool | IsInWorld () const |
| bool | isType (uint16 mask) const |
| void | RemoveByteFlag (uint16 index, uint8 offset, uint8 newFlag) |
| void | RemoveFieldNotifyFlag (uint16 flag) |
| void | RemoveFlag (uint16 index, uint32 oldFlag) |
| void | RemoveFlag64 (uint16 index, uint64 oldFlag) |
| bool | RemoveUInt64Value (uint16 index, uint64 value) |
| void | SendDestroyObject (Player *target, ObjectGuid Guid, bool onDeath=false) const |
| void | SendUpdateToPlayer (Player *player) |
| void | SetByteFlag (uint16 index, uint8 offset, uint8 newFlag) |
| void | SetByteValue (uint16 index, uint8 offset, uint8 value) |
| void | SetDynamicUInt32Value (uint32 tab, uint16 index, uint32 value) |
| void | SetEntry (uint32 entry) |
| void | SetFieldNotifyFlag (uint16 flag) |
| void | SetFlag (uint16 index, uint32 newFlag) |
| void | SetFlag64 (uint16 index, uint64 newFlag) |
| void | SetFloatValue (uint16 index, float value) |
| void | SetInt16Value (uint16 index, uint8 offset, int16 value) |
| void | SetInt32Value (uint16 index, int32 value) |
| void | SetStatFloatValue (uint16 index, float value) |
| void | SetStatInt32Value (uint16 index, int32 value) |
| void | SetUInt16Value (uint16 index, uint8 offset, uint16 value) |
| void | SetUInt32Value (uint16 index, uint32 value) |
| void | SetUInt64Value (uint16 index, uint64 value) |
| AreaTrigger * | ToAreaTrigger () |
| AreaTrigger const * | ToAreaTrigger () const |
| Corpse * | ToCorpse () |
| Corpse const * | ToCorpse () const |
| Creature * | ToCreature () |
| Creature const * | ToCreature () const |
| DynamicObject * | ToDynObject () |
| DynamicObject const * | ToDynObject () const |
| GameObject * | ToGameObject () |
| GameObject const * | ToGameObject () const |
| void | ToggleByteFlag (uint16 index, uint8 offset, uint8 flag) |
| void | ToggleFlag (uint16 index, uint32 flag) |
| void | ToggleFlag64 (uint16 index, uint64 flag) |
| Player * | ToPlayer () |
| Player const * | ToPlayer () const |
| Unit * | ToUnit () |
| Unit const * | ToUnit () const |
| void | UpdateUInt32Value (uint16 index, uint32 value) |
| virtual | ~Object () |
| Public Member Functions inherited from WorldLocation | |
| uint32 | GetMapId () const |
| WorldLocation (const WorldLocation &loc) | |
| WorldLocation (uint32 _mapid=MAPID_INVALID, float _x=0, float _y=0, float _z=0, float _o=0) | |
| void | WorldRelocate (const WorldLocation &loc) |
| Public Member Functions inherited from Position | |
| float | GetAngle (float x, float y) const |
| float | GetAngle (Position const *pos) const |
| float | GetExactDist (float x, float y, float z) const |
| float | GetExactDist (Position const *pos) const |
| float | GetExactDist2d (const float x, const float y) const |
| float | GetExactDist2d (Position const *pos) const |
| float | GetExactDist2dSq (float x, float y) const |
| float | GetExactDist2dSq (Position const *pos) const |
| float | GetExactDistSq (float x, float y, float z) const |
| float | GetExactDistSq (Position const *pos) const |
| float | GetOrientation () const |
| void | GetPosition (float &x, float &y) const |
| void | GetPosition (float &x, float &y, float &z) const |
| void | GetPosition (float &x, float &y, float &z, float &o) const |
| void | GetPosition (Position *pos) const |
| void | GetPositionOffsetTo (Position const &endPos, Position &retOffset) const |
| float | GetPositionX () const |
| float | GetPositionY () const |
| float | GetPositionZ () const |
| float | GetRelativeAngle (float x, float y) const |
| float | GetRelativeAngle (Position const *pos) const |
| void | GetSinCos (float x, float y, float &vsin, float &vcos) const |
| bool | HasInArc (float arcangle, Position const *pos, float border=2.0f) const |
| bool | HasInLine (WorldObject const *target, float width) const |
| bool | IsInDist (float x, float y, float z, float dist) const |
| bool | IsInDist (Position const *pos, float dist) const |
| bool | IsInDist2d (float x, float y, float dist) const |
| bool | IsInDist2d (Position const *pos, float dist) const |
| bool | IsPositionValid () const |
| bool | operator!= (Position const &a) |
| bool | operator== (Position const &a) |
| Position::PositionXYZOStreamer | PositionXYZOStream () |
| Position::PositionXYZStreamer | PositionXYZStream () |
| void | Relocate (float x, float y) |
| void | Relocate (float x, float y, float z) |
| void | Relocate (float x, float y, float z, float orientation) |
| void | Relocate (Position const &pos) |
| void | Relocate (Position const *pos) |
| void | RelocateOffset (Position const &offset) |
| void | SetOrientation (float orientation) |
| std::string | ToString () const |
| Public Member Functions inherited from GridObject< Player > | |
| void | AddToGrid (GridRefManager< Player > &m) |
| bool | IsInGrid () const |
| void | RemoveFromGrid () |
| virtual | ~GridObject () |
Static Public Member Functions | |
| static bool | BuildEnumData (PreparedQueryResult result, ByteBuffer *dataBuffer, ByteBuffer *bitBuffer, bool boosted=false) |
| static WeaponAttackType | GetAttackBySlot (uint8 slot) |
| static bool | IsBagPos (uint16 pos) |
| static bool | IsBankPos (uint16 pos) |
| static bool | IsBankPos (uint8 bag, uint8 slot) |
| static bool | IsEquipmentPos (uint16 pos) |
| static bool | IsEquipmentPos (uint8 bag, uint8 slot) |
| static bool | IsInventoryPos (uint16 pos) |
| static bool | IsInventoryPos (uint8 bag, uint8 slot) |
| Static Public Member Functions inherited from Unit | |
| static Creature * | GetCreature (WorldObject &object, uint64 guid) |
| static ReputationRank | GetFactionReactionTo (FactionTemplateEntry const *factionTemplateEntry, Unit const *target) |
| static Player * | GetPlayer (WorldObject &object, uint64 guid) |
| static Unit * | GetUnit (WorldObject &object, uint64 guid) |
| static bool | IsDamageReducedByArmor (SpellSchoolMask damageSchoolMask, SpellInfo const *spellInfo=NULL, uint8 effIndex=MAX_SPELL_EFFECTS) |
| Static Public Member Functions inherited from Position | |
| static float | NormalizeOrientation (float o) |
Friends | |
| void | Item::AddToUpdateQueueOf (Player *player) |
| void | Item::RemoveFromUpdateQueueOf (Player *player) |
| class | WorldSession |
Additional Inherited Members | |
| Public Types inherited from Unit | |
| typedef std::set< Unit * > | AttackerSet |
| typedef std::list< AuraApplication * > | AuraApplicationList |
| 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::list< AuraEffect * > | AuraEffectList |
| typedef std::list< Aura * > | AuraList |
| 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< AuraStateType, AuraApplication * > | AuraStateAurasMap |
| typedef std::pair< AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator > | AuraStateAurasMapBounds |
| typedef std::set< uint32 > | ComboPointHolderSet |
| typedef std::set< Unit * > | ControlList |
| typedef std::list< DiminishingReturn > | Diminishing |
| typedef std::set< PetAura const * > | PetAuraSet |
| typedef std::map< uint8, AuraApplication * > | VisibleAuraMap |
| Protected Types inherited from Unit | |
| typedef std::list< DynamicObject * > | DynObjectList |
| typedef std::list< GameObject * > | GameObjectList |
| Protected Member Functions inherited from Unit | |
| void | _DeleteRemovedAuras () |
| void | _UpdateAutoRepeatSpell () |
| void | _UpdateSpells (uint32 time) |
| void | BuildValuesUpdate (uint8 updatetype, ByteBuffer *data, Player *target) const override |
| void | DisableSpline () |
| virtual SpellSchoolMask | GetMeleeDamageSchoolMask () const |
| bool | IsAlwaysDetectableFor (WorldObject const *seer) const override |
| bool | IsAlwaysVisibleFor (WorldObject const *seer) const override |
| void | SendMissileCancel (uint32 spellId, bool cancel=true) |
| void | SetConfused (bool apply) |
| void | SetFeared (bool apply) |
| void | SetRooted (bool apply, bool packetOnly=false) |
| void | SetStunned (bool apply) |
| Unit (bool isWorldObject) | |
| Protected Member Functions inherited from WorldObject | |
| virtual bool | IsInvisibleDueToDespawn () const |
| void | SetLocationInstanceId (uint32 _instanceId) |
| void | SetLocationMapId (uint32 _mapId) |
| WorldObject (bool isWorldObject) | |
| Protected Member Functions inherited from Object | |
| std::string | _ConcatFields (uint16 startIndex, uint16 size) const |
| void | _Create (uint32 guidlow, uint32 entry, HighGuid guidhigh) |
| void | _InitValues () |
| void | _LoadIntoDataField (std::string const &data, uint32 startOffset, uint32 count) |
| void | BuildDynamicValuesUpdate (uint8 updateType, ByteBuffer *data, Player *target) const |
| void | BuildMovementUpdate (ByteBuffer *data, uint16 flags) const |
| uint32 | GetUpdateFieldData (Player const *target, uint32 *&flags) const |
| Object () | |
| Protected Attributes inherited from Unit | |
| LiquidTypeEntry const * | _lastLiquid |
| UnitAI * | i_AI |
| UnitAI * | i_disabledAI |
| MotionMaster | i_motionMaster |
| AuraApplicationMap | m_appliedAuras |
| AttackerSet | m_attackers |
| Unit * | m_attacking |
| uint32 | m_attackTimer [uint8(WeaponAttackType::MAX_ATTACK)] |
| float | m_auraModifiersGroup [UNIT_MOD_END][MODIFIER_TYPE_END] |
| AuraStateAurasMap | m_auraStateAuras |
| AuraMap::iterator | m_auraUpdateIterator |
| bool | m_AutoRepeatFirstCast |
| bool | m_canModifyStats |
| CharmInfo * | m_charmInfo |
| float | m_createStats [MAX_STATS] |
| Spell * | m_currentSpells [CURRENT_MAX_SPELL] |
| DeathState | m_deathState |
| DynObjectList | m_dynObj |
| GameObjectList | m_gameObj |
| AuraApplicationList | m_interruptableAuras |
| uint32 | m_interruptMask |
| bool | m_isSorted |
| AuraEffectList | m_modAuras [TOTAL_AURAS] |
| uint32 | m_movementCounter |
| Incrementing counter used in movement packets. | |
| uint32 | m_overrideAutoattackRange |
| SpellInfo const * | m_overrideAutoattackSpellInfo |
| AuraMap | m_ownedAuras |
| int32 | m_procDeep |
| uint32 | m_reactiveTimer [MAX_REACTIVE] |
| uint32 | m_regenTimer |
| AuraList | m_removedAuras |
| uint32 | m_removedAurasCount |
| AuraList | m_scAuras |
| SharedVisionList | m_sharedVision |
| float | m_speed_rate [MAX_MOVE_TYPE] |
| ThreatManager | m_ThreatManager |
| uint32 | m_transform |
| uint32 | m_unitTypeMask |
| Vehicle * | m_vehicle |
| Vehicle * | m_vehicleKit |
| VisibleAuraMap | m_visibleAuras |
| float | m_weaponDamage [uint8(WeaponAttackType::MAX_ATTACK)][2] |
| Protected Attributes inherited from WorldObject | |
| bool | m_isActive |
| const bool | m_isWorldObject |
| std::string | m_name |
| Transport * | m_transport |
| ZoneScript * | m_zoneScript |
| Protected Attributes inherited from Object | |
| union { | |
| float * m_floatValues | |
| int32 * m_int32Values | |
| uint32 * m_uint32Values | |
| }; | |
| UpdateMask | _changesMask |
| std::vector< bool * > | m_dynamicChange |
| std::vector< uint32 * > | m_dynamicTab |
| uint16 | m_fieldNotifyFlags |
| uint16 | m_objectType |
| TypeID | m_objectTypeId |
| bool | m_objectUpdated |
| uint16 | m_updateFlag |
| uint16 | m_valuesCount |
| typedef UNORDERED_MAP< uint32 , InstancePlayerBind > Player::BoundInstancesMap |
| typedef std::set<uint64> Player::ClientGUIDs |
| typedef std::set<uint32> Player::DFQuestsDoneList |
| typedef UNORDERED_MAP<uint32, Item*> Player::ItemMap |
|
protected |
|
protected |
|
protected |
|
protected |
|
explicit |
Definition at line 507 of file Player.cpp.
References _activeCheats, _ConquestCurrencytotalWeekCap, _CUFProfiles, _maxPersonalArenaRate, _readyCheckTimer, _researchDigsites, _resurrectionData, _talentMgr, _voidStorageItems, AT_LOGIN_NONE, BASEMOD_END, BATTLEGROUND_QUEUE_NONE, BUYBACK_SLOT_START, CHEAT_NONE, cinematicClientStartTime, cinematicSequence, cinematicVisibilityTimer, CONFIG_INTERVAL_SAVE, DIFFICULTY_10MAN_NORMAL, DIFFICULTY_NORMAL, DISABLED_MIRROR_TIMER, duel, FLAT_MOD, GetSession(), inCinematic, inn_area_box_orientation, inn_area_box_x, inn_area_box_y, inn_area_box_z, inn_area_radius, inn_pos_mapid, inn_pos_x, inn_pos_y, inn_pos_z, isDebugAreaTriggers, m_achievementMgr, m_areaUpdateId, m_ArmorProficiency, m_atLoginFlags, m_auraBaseMod, m_auraRaidUpdateMask, m_baseHealthRegen, m_baseManaRegen, m_baseRatingValue, m_baseSpellPower, m_battlePetMgr, m_bCanDelayTeleport, m_bgBattlegroundQueueID, m_bHasDelayedTeleport, m_bPassOnGroupLoot, m_canBlock, m_canDodge, Unit::m_canDualWield, m_canParry, m_canTitanGrip, m_ChampioningFaction, m_ChampioningType, m_chiPowerDegenTimerCount, m_cinematic, m_comboPoints, m_comboTarget, m_contestedPvPTimer, Unit::m_ControlledByPlayer, m_currentBuybackSlot, m_DailyQuestChanged, m_deathExpireTime, m_deathTimer, m_declinedname, m_DelayedOperations, m_divider, m_drunkTimer, m_dungeonDifficulty, Object::m_dynamicChange, Object::m_dynamicTab, m_ExtraFlags, m_focusRegenTimerCount, m_forced_speed_changes, m_forcedTeleportFar, m_forcedTeleportFarSemaphore, m_grantableLevels, m_groupUpdateMask, m_GuildIdInvited, m_holyPowerRegenTimerCount, m_HomebindTimer, m_InstanceValid, WorldObject::m_isActive, m_IsBGRandomWinner, m_isInWater, m_items, m_itemUpdateQueueBlocked, m_Last_tick, m_lastDailyQuestTime, m_lastFallTime, m_lastFallZ, m_lastHonorUpdateTime, m_lastpetnumber, m_lastPotionId, m_logintime, m_lootGuid, m_mailsLoaded, m_mailsUpdated, m_MirrorTimer, m_MirrorTimerFlags, m_MirrorTimerFlagsLast, m_MonthlyQuestChanged, Unit::m_movedPlayer, m_mover, m_nextMailDelivereTime, m_nextSave, Object::m_objectType, Object::m_objectTypeId, m_oldpetspell, m_powerFraction, m_raidDifficulty, Unit::m_regenTimer, m_regenTimerCount, m_reputationMgr, m_rest_bonus, m_restTime, m_runes, m_SeasonalQuestChanged, m_seer, m_session, m_social, m_speakCount, m_speakTime, m_spellModTakingSpell, m_spellPenetrationItemMod, m_stableSlots, m_summon_expire, m_summon_mapid, m_summon_x, m_summon_y, m_summon_z, m_swingErrorMsg, m_teleport_options, m_temporaryUnsummonedPetNumber, m_trade, Object::m_valuesCount, m_weaponChangeTimer, m_WeaponProficiency, m_WeeklyQuestChanged, m_zoneUpdateId, m_zoneUpdateTimer, MAX_COMBAT_RATING, MAX_CUF_PROFILES, MAX_MOVE_TYPE, MAX_POWERS_PER_CLASS, MAX_TIMERS, mSemaphoreTeleport_Far, mSemaphoreTeleport_Near, PCT_MOD, PLAYER_DYNAMIC_END, PLAYER_END, PLAYER_MAX_BATTLEGROUND_QUEUES, PLAYER_SLOTS_COUNT, PlayerTalkClass, rbac::RBAC_PERM_CAN_FILTER_WHISPERS, rest_type, REST_TYPE_NO, SetAcceptWhispers(), SetGroupInvite(), SetPendingBind(), sWorld, time_inn_enter, TYPEID_PLAYER, TYPEMASK_PLAYER, UNDERWATER_NONE, Unit::Unit(), unReadMails, VOID_STORAGE_MAX_SLOT, and WorldSession.
Referenced by BuildCreateUpdateBlockForPlayer(), CanSeeSpellClickOn(), ConvertInstancesToGroup(), DeleteFromDB(), DestroyForPlayer(), FindEquipSlot(), GetNextRandomRaidMember(), GetSelectedPlayer(), GetsRecruitAFriendBonus(), GetTrader(), GroupEventHappens(), IsAlwaysDetectableFor(), IsGroupVisibleFor(), IsInSameGroupWith(), IsInSameRaidWith(), IsVisibleGloballyFor(), Item::AddToUpdateQueueOf, Item::RemoveFromUpdateQueueOf, RemovedInsignia(), RemovePetitionsAndSigns(), ReportedAfkBy(), RewardHonor(), RewardPlayerAndGroupAtEvent(), Satisfy(), SendActionButtons(), SendInspectResult(), SendLoot(), SendMessageToSet(), SendPushToPartyResponse(), SendQuestConfirmAccept(), SendRespondInspectAchievements(), TradeCancel(), Whisper(), and WhisperAddon().
| Player::~Player | ( | ) |
Definition at line 755 of file Player.cpp.
References _CUFProfiles, _researchDigsites, _talentMgr, _voidStorageItems, ClearResurrectRequestData(), ItemSetEff, m_achievementMgr, m_battlePetMgr, m_declinedname, m_items, m_mail, m_reputationMgr, m_runes, m_spells, MAX_CUF_PROFILES, MAX_DIGSITES_PER_CONTINENT, mMitems, PLAYER_SLOTS_COUNT, PlayerTalkClass, RESEARCH_CONTINENT_COUNT, sWorld, and VOID_STORAGE_MAX_SLOT.
| void Player::_ApplyAllItemMods | ( | ) |
Definition at line 9216 of file Player.cpp.
References _ApplyItemBonuses(), _ApplyWeaponDependentAuraMods(), AddItemsSetItem(), ApplyEnchantment(), ApplyItemEquipSpell(), Unit::CanUseAttackType(), GetAttackBySlot(), INVENTORY_SLOT_BAG_END, ItemTemplate::ItemSet, m_items, MAX_ATTACK, and SF_LOG_DEBUG.
Referenced by _ApplyAllStatBonuses(), and _LoadInventory().
| void Player::_ApplyAllLevelScaleItemMods | ( | bool | apply | ) |
Definition at line 9262 of file Player.cpp.
References _ApplyItemBonuses(), Unit::CanUseAttackType(), GetAttackBySlot(), INVENTORY_SLOT_BAG_END, and m_items.
Referenced by GiveLevel(), and reset_commandscript::HandleResetLevelCommand().
| void Player::_ApplyAllStatBonuses | ( | ) |
Definition at line 796 of file StatSystem.cpp.
References Unit::_ApplyAllAuraStatMods(), _ApplyAllItemMods(), Unit::SetCanModifyStats(), and UpdateAllStats().
Referenced by InitStatsForLevel().
| void Player::_ApplyItemBonuses | ( | ItemTemplate const * | proto, |
| uint8 | slot, | ||
| bool | apply, | ||
| bool | only_level_scale = false ) |
Definition at line 8430 of file Player.cpp.
References _ApplyWeaponDamage(), ApplyHealthRegenBonus(), ApplyManaRegenBonus(), ApplyRatingMod(), ApplySpellPenetrationBonus(), ApplySpellPowerBonus(), Unit::ApplyStatBuffMod(), ItemTemplate::ArmorDamageModifier, BASE_ATTACK, BASE_VALUE, Unit::CanUseAttackType(), ItemTemplate::Class, CR_ARMOR_PENETRATION, CR_BLOCK, CR_CRIT_MELEE, CR_CRIT_RANGED, CR_CRIT_SPELL, CR_DEFENSE_SKILL, CR_DODGE, CR_EXPERTISE, CR_HASTE_MELEE, CR_HASTE_RANGED, CR_HASTE_SPELL, CR_HIT_MELEE, CR_HIT_RANGED, CR_HIT_SPELL, CR_MASTERY, CR_PARRY, CR_PVP_POWER, CR_RESILIENCE_PLAYER_DAMAGE_TAKEN, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, ItemTemplate::Flags2, ItemTemplate::GetArmor(), ScalingStatValuesEntry::GetArmor(), Unit::getLevel(), ScalingStatValuesEntry::GetStatMultiplier(), Unit::HandleStatModifier(), INVENTORY_SLOT_BAG_END, ItemTemplate::InventoryType, ItemTemplate::IsRangedInventoryType(), ITEM_CLASS_ARMOR, ITEM_FLAGS_EXTRA_CASTER_WEAPON, ITEM_MOD_AGILITY, ITEM_MOD_ARCANE_RESISTANCE, ITEM_MOD_ARMOR_PENETRATION_RATING, ITEM_MOD_ATTACK_POWER, ITEM_MOD_BLOCK_RATING, ITEM_MOD_CRIT_MELEE_RATING, ITEM_MOD_CRIT_RANGED_RATING, ITEM_MOD_CRIT_RATING, ITEM_MOD_CRIT_SPELL_RATING, ITEM_MOD_CRIT_TAKEN_RANGED_RATING, ITEM_MOD_DEFENSE_SKILL_RATING, ITEM_MOD_DODGE_RATING, ITEM_MOD_EXPERTISE_RATING, ITEM_MOD_FIRE_RESISTANCE, ITEM_MOD_FROST_RESISTANCE, ITEM_MOD_HASTE_MELEE_RATING, ITEM_MOD_HASTE_RANGED_RATING, ITEM_MOD_HASTE_RATING, ITEM_MOD_HASTE_SPELL_RATING, ITEM_MOD_HEALTH, ITEM_MOD_HEALTH_REGEN, ITEM_MOD_HIT_MELEE_RATING, ITEM_MOD_HIT_RANGED_RATING, ITEM_MOD_HIT_RATING, ITEM_MOD_HIT_SPELL_RATING, ITEM_MOD_HOLY_RESISTANCE, ITEM_MOD_INTELLECT, ITEM_MOD_MANA, ITEM_MOD_MANA_REGENERATION, ITEM_MOD_MASTERY_RATING, ITEM_MOD_NATURE_RESISTANCE, ITEM_MOD_PARRY_RATING, ITEM_MOD_PVP_POWER, ITEM_MOD_RANGED_ATTACK_POWER, ITEM_MOD_RESILIENCE_RATING, ITEM_MOD_SHADOW_RESISTANCE, ITEM_MOD_SPELL_PENETRATION, ITEM_MOD_SPELL_POWER, ITEM_MOD_SPIRIT, ITEM_MOD_STAMINA, ITEM_MOD_STRENGTH, ITEM_SUBCLASS_ARMOR_CLOTH, ITEM_SUBCLASS_ARMOR_LEATHER, ITEM_SUBCLASS_ARMOR_MAIL, ITEM_SUBCLASS_ARMOR_PLATE, ITEM_SUBCLASS_ARMOR_SHIELD, ItemTemplate::ItemStat, _ItemStat::ItemStatType, _ItemStat::ItemStatValue, MAX_ITEM_PROTO_STATS, ScalingStatDistributionEntry::MaxLevel, ScalingStatDistributionEntry::Modifier, OFF_ATTACK, RANGED_ATTACK, ItemTemplate::ScalingStatDistribution, ScalingStatValuesEntry::Spellpower, sScalingStatDistributionStore, sScalingStatValuesStore, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, ScalingStatDistributionEntry::StatMod, ItemTemplate::SubClass, TOTAL_VALUE, UNIT_MOD_ARMOR, UNIT_MOD_ATTACK_POWER, UNIT_MOD_ATTACK_POWER_RANGED, UNIT_MOD_HEALTH, UNIT_MOD_MANA, UNIT_MOD_RESISTANCE_ARCANE, UNIT_MOD_RESISTANCE_FIRE, UNIT_MOD_RESISTANCE_FROST, UNIT_MOD_RESISTANCE_HOLY, UNIT_MOD_RESISTANCE_NATURE, UNIT_MOD_RESISTANCE_SHADOW, UNIT_MOD_STAT_AGILITY, UNIT_MOD_STAT_INTELLECT, UNIT_MOD_STAT_SPIRIT, UNIT_MOD_STAT_STAMINA, and UNIT_MOD_STAT_STRENGTH.
Referenced by _ApplyAllItemMods(), _ApplyAllLevelScaleItemMods(), _ApplyItemMods(), and _RemoveAllItemMods().
Definition at line 8399 of file Player.cpp.
References _ApplyItemBonuses(), _ApplyWeaponDependentAuraMods(), ApplyEnchantment(), ApplyItemEquipSpell(), _Socket::Color, CorrectMetaGemEnchants(), GetAttackBySlot(), Object::GetGUIDLow(), Item::GetTemplate(), INVENTORY_SLOT_BAG_END, Item::IsBroken(), MAX_ATTACK, SF_LOG_DEBUG, SF_LOG_INFO, and ItemTemplate::Socket.
Referenced by DestroyItem(), DurabilityPointsLoss(), DurabilityRepair(), EquipItem(), and RemoveItem().
| void Player::_ApplyWeaponDamage | ( | uint8 | slot, |
| ItemTemplate const * | proto, | ||
| ScalingStatValuesEntry const * | ssv, | ||
| bool | apply ) |
Definition at line 8684 of file Player.cpp.
References BASE_ATTACK, BASE_ATTACK_TIME, BASE_MAXDAMAGE, BASE_MINDAMAGE, Unit::CanModifyStats(), ItemTemplate::DamageMax, ItemTemplate::DamageMin, ItemTemplate::Delay, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, ItemTemplate::Flags2, ScalingStatValuesEntry::GetDPSAndDamageMultiplier(), Unit::IsInFeralForm(), ItemTemplate::IsRangedInventoryType(), ITEM_FLAGS_EXTRA_CASTER_WEAPON, MAXDAMAGE, MINDAMAGE, OFF_ATTACK, RANGED_ATTACK, Unit::SetAttackTime(), Unit::SetBaseWeaponDamage(), ItemTemplate::SubClass, and UpdateDamagePhysical().
Referenced by _ApplyItemBonuses(), AuraEffect::HandleAuraModDisarm(), and AuraEffect::HandleAuraModShapeshift().
| void Player::_ApplyWeaponDependentAuraCritMod | ( | Item * | item, |
| WeaponAttackType | attackType, | ||
| AuraEffect const * | aura, | ||
| bool | apply ) |
Definition at line 8756 of file Player.cpp.
References BASE_ATTACK, BASEMOD_END, Unit::CanUseAttackType(), CRIT_PERCENTAGE, SpellInfo::EquippedItemClass, FLAT_MOD, AuraEffect::GetAmount(), AuraEffect::GetSpellInfo(), HandleBaseModValue(), Item::IsBroken(), Item::IsFitToSpellRequirements(), OFF_ATTACK, OFFHAND_CRIT_PERCENTAGE, RANGED_ATTACK, and RANGED_CRIT_PERCENTAGE.
Referenced by _ApplyWeaponDependentAuraMods(), and AuraEffect::HandleAuraModWeaponCritPercent().
| void Player::_ApplyWeaponDependentAuraDamageMod | ( | Item * | item, |
| WeaponAttackType | attackType, | ||
| AuraEffect const * | aura, | ||
| bool | apply ) |
Definition at line 8779 of file Player.cpp.
References Object::ApplyModUInt32Value(), BASE_ATTACK, Unit::CanUseAttackType(), CLASSMASK_WAND_USERS, SpellInfo::EquippedItemClass, AuraEffect::GetAmount(), AuraEffect::GetAuraType(), Unit::getClassMask(), AuraEffect::GetMiscValue(), AuraEffect::GetSpellInfo(), Unit::HandleStatModifier(), Item::IsBroken(), Item::IsFitToSpellRequirements(), OFF_ATTACK, PLAYER_FIELD_MOD_DAMAGE_DONE_POS, RANGED_ATTACK, SPELL_AURA_MOD_DAMAGE_DONE, SPELL_AURA_MOD_DAMAGE_PERCENT_DONE, SPELL_SCHOOL_MASK_NORMAL, TOTAL_PCT, TOTAL_VALUE, UNIT_MOD_DAMAGE_MAINHAND, UNIT_MOD_DAMAGE_OFFHAND, UNIT_MOD_DAMAGE_RANGED, and UNIT_MOD_END.
Referenced by _ApplyWeaponDependentAuraMods(), AuraEffect::HandleModDamageDone(), and AuraEffect::HandleModDamagePercentDone().
| void Player::_ApplyWeaponDependentAuraMods | ( | Item * | item, |
| WeaponAttackType | attackType, | ||
| bool | apply ) |
Definition at line 8741 of file Player.cpp.
References _ApplyWeaponDependentAuraCritMod(), _ApplyWeaponDependentAuraDamageMod(), Unit::GetAuraEffectsByType(), SPELL_AURA_MOD_DAMAGE_DONE, SPELL_AURA_MOD_DAMAGE_PERCENT_DONE, and SPELL_AURA_MOD_WEAPON_CRIT_PERCENT.
Referenced by _ApplyAllItemMods(), _ApplyItemMods(), _RemoveAllItemMods(), and AuraEffect::HandleAuraModDisarm().
|
protected |
Definition at line 7889 of file Player.cpp.
References _ConquestCurrencytotalWeekCap, Skyfire::Currency::BgConquestRatingCalculator(), CONFIG_CURRENCY_MAX_HONOR_POINTS, CONFIG_CURRENCY_MAX_JUSTICE_POINTS, Skyfire::Currency::ConquestRatingCalculator(), CURRENCY_FLAG_HIGH_PRECISION, CURRENCY_PRECISION, CURRENCY_TYPE_CONQUEST_META_ARENA, CURRENCY_TYPE_CONQUEST_META_RBG, CURRENCY_TYPE_CONQUEST_POINTS, CURRENCY_TYPE_HONOR_POINTS, CURRENCY_TYPE_JUSTICE_POINTS, CurrencyTypesEntry::Flags, GetSession(), CurrencyTypesEntry::ID, Object::IsInWorld(), WorldSession::SendPacket(), SMSG_UPDATE_CURRENCY_WEEK_LIMIT, sWorld, and CurrencyTypesEntry::WeekCap.
Referenced by _LoadCurrency().
|
protected |
Definition at line 12930 of file Player.cpp.
References ACTIONBUTTON_DELETED, ACTIONBUTTON_UNCHANGED, addActionButton(), Field::GetUInt32(), Field::GetUInt8(), m_actionButtons, and SF_LOG_ERROR.
Referenced by ActivateSpec(), and LoadFromDB().
|
protected |
Definition at line 12956 of file Player.cpp.
References Object::GetGUIDLow(), Field::GetInt32(), Field::GetUInt32(), Field::GetUInt64(), Field::GetUInt8(), SpellInfo::Id, IN_MILLISECONDS, SpellInfo::IsPositive(), SpellInfo::ProcCharges, SF_LOG_DEBUG, SF_LOG_ERROR, SF_LOG_INFO, sSpellMgr, and Aura::TryCreate().
Referenced by LoadFromDB().
|
protected |
Definition at line 12098 of file Player.cpp.
References Field::GetUInt16(), Field::GetUInt32(), m_bgData, and WorldLocation::WorldLocation().
Referenced by LoadFromDB().
|
protected |
Definition at line 13804 of file Player.cpp.
References BindToInstance(), CHAR_DEL_CHAR_INSTANCE_BY_INSTANCE_GUID, CharacterDatabase, Field::GetBool(), GetGroup(), Group::GetGUID(), Object::GetGUIDLow(), GetMapDifficultyData(), WorldObject::GetName(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt8(), GUID_LOPART(), MapEntry::IsInstance(), m_boundInstances, MapEntry::name, PreparedStatement::setUInt32(), SF_LOG_ERROR, sInstanceSaveMgr, and sMapStore.
Referenced by LoadFromDB().
|
protected |
Definition at line 12849 of file Player.cpp.
References _CUFProfiles, Object::GetGUIDLow(), WorldObject::GetName(), Field::GetString(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt8(), MAX_CUF_PROFILES, and SF_LOG_ERROR.
Referenced by LoadFromDB().
|
protected |
Definition at line 7471 of file Player.cpp.
References _ConquestCurrencytotalWeekCap, _currencyStorage, _GetCurrencyWeekCap(), CurrencyTypesEntry::Category, CURRENCY_CATEGORY_META_CONQUEST, PlayerCurrency::Flags, Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt8(), PLAYERCURRENCY_UNCHANGED, PlayerCurrency::Quantity, sCurrencyTypesStore, PlayerCurrency::state, PlayerCurrency::TrackedQuantity, and PlayerCurrency::WeeklyQuantity.
Referenced by LoadFromDB().
|
protected |
Definition at line 13648 of file Player.cpp.
References Object::GetGUIDLow(), Field::GetUInt32(), m_DailyQuestChanged, m_DFQuests, m_lastDailyQuestTime, PLAYER_MAX_DAILY_QUESTS, SF_LOG_DEBUG, SF_LOG_ERROR, and sObjectMgr.
Referenced by LoadFromDB().
|
protected |
Definition at line 12056 of file Player.cpp.
References m_declinedname, and MAX_DECLINED_NAME_CASES.
Referenced by LoadFromDB().
|
protected |
Definition at line 12067 of file Player.cpp.
References EQUIPMENT_SET_UNCHANGED, EQUIPMENT_SLOT_END, Field::GetString(), Field::GetUInt32(), Field::GetUInt64(), Field::GetUInt8(), EquipmentSet::Guid, EquipmentSet::IconName, EquipmentSet::IgnoreMask, EquipmentSet::Items, m_EquipmentSets, MAX_EQUIPMENT_SET_INDEX, EquipmentSet::Name, and EquipmentSet::state.
Referenced by LoadFromDB().
|
protected |
Definition at line 13031 of file Player.cpp.
References Unit::CastSpell(), GetActiveSpec(), GetGlyph(), GetGlyphSlot(), WorldObject::m_name, MAX_GLYPH_SLOT_INDEX, SetGlyph(), SF_LOG_ERROR, sGlyphPropertiesStore, and sGlyphSlotStore.
Referenced by LoadFromDB().
|
protected |
Definition at line 21661 of file Player.cpp.
References _talentMgr, GetSpecsCount(), Field::GetUInt16(), Field::GetUInt8(), and MAX_GLYPH_SLOT_INDEX.
Referenced by LoadFromDB().
|
protected |
Definition at line 13785 of file Player.cpp.
References Object::GetGUID(), Unit::getLevel(), LEVELREQUIREMENT_HEROIC, SetDungeonDifficulty(), SetGroup(), SetRaidDifficulty(), and sGroupMgr.
Referenced by LoadFromDB().
|
protected |
Definition at line 14236 of file Player.cpp.
References PlayerInfo::areaId, CHAR_DEL_PLAYER_HOMEBIND, CHAR_INS_PLAYER_HOMEBIND, CharacterDatabase, MapEntry::Expansion(), Unit::getClass(), Field::GetFloat(), Object::GetGUIDLow(), 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, PreparedStatement::setFloat(), PreparedStatement::setUInt16(), PreparedStatement::setUInt32(), SF_LOG_DEBUG, SF_LOG_ERROR, sMapStore, and sObjectMgr.
Referenced by LoadFromDB().
|
protected |
Definition at line 22448 of file Player.cpp.
References _instanceResetTimes.
Referenced by LoadFromDB().
|
protected |
Definition at line 13075 of file Player.cpp.
References _ApplyAllItemMods(), _LoadItem(), MailDraft::AddItem(), BankItem(), CanBankItem(), CanEquipItem(), CanStoreItem(), CharacterDatabase, EQUIP_ERR_INTERNAL_BAG_ERROR, EQUIP_ERR_OK, Object::GetGUIDLow(), WorldObject::GetName(), GetSession(), WorldSession::GetSkyFireString(), 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_STATIONERY_GM, MAX_MAIL_ITEMS, NULL_SLOT, QuickEquipItem(), MailDraft::SendMailTo(), SF_LOG_ERROR, StoreItem(), and Item::ToBag().
Referenced by LoadFromDB().
|
private |
Definition at line 13251 of file Player.cpp.
References AddRefundReference(), AddTradeableItem(), Tokenizer::begin(), CHAR_DEL_ITEM_REFUND_INSTANCE, CHAR_SEL_ITEM_BOP_TRADE, CHAR_SEL_ITEM_REFUNDS, CharacterDatabase, Item::ClearSoulboundTradeable(), Item::DeleteFromDB(), Item::DeleteFromInventoryDB(), Tokenizer::end(), Item::FSetState(), Object::GetEntry(), Object::GetGUID(), Object::GetGUIDLow(), WorldLocation::GetMapId(), ItemTemplate::GetMaxStackSize(), WorldObject::GetName(), Item::GetPlayedTime(), Item::GetTemplate(), Field::GetUInt32(), Object::HasFlag(), HOUR, Unit::IsAlive(), Item::IsLimitedToAnotherMapOrZone(), Item::IsSoulBound(), ITEM_FIELD_DYNAMIC_FLAGS, ITEM_FLAG_BOP_TRADEABLE, ITEM_FLAG_REFUNDABLE, ITEM_PROTO_FLAG_CONJURED, ITEM_REMOVED, Item::LoadFromDB(), MINUTE, NewItemOrBag(), Object::RemoveFlag(), Item::SaveToDB(), Item::SetPaidExtendedCost(), Item::SetPaidMoney(), Item::SetRefundRecipient(), Item::SetSoulboundTradeable(), PreparedStatement::setUInt32(), SF_LOG_DEBUG, SF_LOG_ERROR, sGameEventMgr, and sObjectMgr.
Referenced by _LoadInventory().
|
protected |
Definition at line 13447 of file Player.cpp.
References _LoadMailedItems(), Mail::body, CHAR_SEL_MAIL, CharacterDatabase, Mail::checked, Mail::COD, Mail::deliver_time, Mail::expire_time, Field::GetBool(), Object::GetGUIDLow(), Field::GetInt16(), Field::GetString(), Field::GetUInt32(), Field::GetUInt64(), Field::GetUInt8(), m_mail, m_mailsLoaded, MAIL_STATE_UNCHANGED, Mail::mailTemplateId, Mail::messageID, Mail::messageType, Mail::money, Mail::receiver, Mail::sender, PreparedStatement::setUInt32(), SF_LOG_ERROR, sMailTemplateStore, Mail::state, Mail::stationery, and Mail::subject.
Referenced by WorldSession::HandleGetMailList().
|
protected |
Definition at line 13379 of file Player.cpp.
References Mail::AddItem(), AddMItem(), CHAR_DEL_INVALID_MAIL_ITEM, CHAR_DEL_ITEM_INSTANCE, CHAR_DEL_MAIL_ITEM, CHAR_SEL_MAILITEMS, CharacterDatabase, Item::FSetState(), Object::GetGUIDLow(), Field::GetUInt32(), HIGHGUID_PLAYER, ITEM_REMOVED, Item::LoadFromDB(), MAKE_NEW_GUID(), Mail::messageID, NewItemOrBag(), Item::SaveToDB(), PreparedStatement::setUInt32(), SF_LOG_ERROR, and sObjectMgr.
Referenced by _LoadMail().
|
protected |
Definition at line 13434 of file Player.cpp.
References m_nextMailDelivereTime, and unReadMails.
Referenced by LoadFromDB().
|
protected |
Definition at line 13744 of file Player.cpp.
References Object::GetGUIDLow(), Field::GetUInt32(), m_MonthlyQuestChanged, m_monthlyquests, SF_LOG_DEBUG, and sObjectMgr.
Referenced by LoadFromDB().
|
protected |
Definition at line 13578 of file Player.cpp.
References Object::GetGUIDLow(), WorldObject::GetName(), GetQuestSlotQuestId(), Field::GetUInt32(), QuestObjective::Index, m_questObjectiveStatus, MAX_QUEST_LOG_SIZE, SetQuestSlotCounter(), SF_LOG_ERROR, and sObjectMgr.
Referenced by LoadFromDB().
|
protected |
Definition at line 13506 of file Player.cpp.
References AddTimedQuest(), QuestStatusData::Explored, Object::GetGUIDLow(), WorldObject::GetName(), GetQuestRewardStatus(), Field::GetUInt32(), Field::GetUInt8(), Quest::HasSpecialFlag(), IN_MILLISECONDS, m_QuestStatus, MAX_QUEST_LOG_SIZE, MAX_QUEST_STATUS, QUEST_SPECIAL_FLAGS_TIMED, QUEST_STATE_COMPLETE, QUEST_STATE_FAIL, QUEST_STATUS_COMPLETE, QUEST_STATUS_FAILED, QUEST_STATUS_INCOMPLETE, QUEST_STATUS_NONE, SetQuestSlot(), SetQuestSlotState(), SF_LOG_DEBUG, SF_LOG_ERROR, sObjectMgr, QuestStatusData::Status, sWorld, and QuestStatusData::Timer.
Referenced by LoadFromDB().
|
protected |
Definition at line 13617 of file Player.cpp.
References Quest::GetCharTitleId(), Field::GetUInt32(), learnQuestRewardedSpells(), m_RewardedQuests, sCharTitlesStore, SetTitle(), and sObjectMgr.
Referenced by LoadFromDB().
|
protected |
Definition at line 22420 of file Player.cpp.
References m_IsBGRandomWinner.
Referenced by LoadFromDB().
|
protected |
Definition at line 23229 of file Player.cpp.
References _researchDigsites, ResearchDigsite::ChangeArchaeologyFind(), CHAR_DEL_CHAR_RESEARCH_DIGSITE, CharacterDatabase, DeleteResearchDigsite(), Object::GetGUIDLow(), WorldObject::GetName(), Field::GetUInt32(), Field::GetUInt8(), ResearchSiteEntry::MapId, MAX_DIGSITES_PER_CONTINENT, RESEARCH_CONTINENT_COUNT, ResearchContinents, SaveResearchDigsiteToDB(), ResearchDigsite::SelectNewArchaeologyFind(), PreparedStatement::setUInt32(), SF_LOG_DEBUG, SF_LOG_ERROR, sObjectMgr, and sResearchSiteStore.
Referenced by LoadFromDB().
|
protected |
Definition at line 23567 of file Player.cpp.
References _researchHistory, ResearchProjectHistory::firstResearchTimestamp, Object::GetGUIDLow(), WorldObject::GetName(), Field::GetUInt32(), ResearchProjectHistory::researchCount, SF_LOG_ERROR, and sResearchProjectStore.
Referenced by LoadFromDB().
|
protected |
Definition at line 23590 of file Player.cpp.
References _researchProjects, Object::GetGUIDLow(), WorldObject::GetName(), Field::GetUInt32(), ResearchProjectEntry::ResearchBranchId, SF_LOG_DEBUG, SF_LOG_ERROR, and sResearchProjectStore.
Referenced by LoadFromDB().
|
protected |
Definition at line 13721 of file Player.cpp.
References Object::GetGUIDLow(), Field::GetUInt32(), m_SeasonalQuestChanged, m_seasonalquests, SF_LOG_DEBUG, and sObjectMgr.
Referenced by LoadFromDB().
|
protected |
Definition at line 20815 of file Player.cpp.
References SkillLineEntry::categoryId, CHAR_DEL_CHARACTER_SKILL, CharacterDatabase, CLASS_DEATH_KNIGHT, CONFIG_START_HEROIC_PLAYER_LEVEL, Unit::getClass(), Object::GetGUIDLow(), Unit::getLevel(), GetPureSkillValue(), GetSkillRangeType(), Field::GetUInt16(), learnSkillRewardedSpells(), mSkillStatus, PLAYER_FIELD_PROFESSION_SKILL_LINE, PLAYER_FIELD_SKILL_LINEIDS, PLAYER_FIELD_SKILL_MAX_RANKS, PLAYER_FIELD_SKILL_MODIFIERS, PLAYER_FIELD_SKILL_RANKS, PLAYER_FIELD_SKILL_STEPS, PLAYER_FIELD_SKILL_TALENTS, PLAYER_MAX_SKILLS, SetSkill(), PreparedStatement::setUInt16(), Object::SetUInt16Value(), PreparedStatement::setUInt32(), Object::SetUInt32Value(), SF_LOG_ERROR, SKILL_2H_AXES, SKILL_2H_SWORDS, SKILL_AXES, SKILL_CATEGORY_PROFESSION, SKILL_CATEGORY_SECONDARY, SKILL_DEFENSE, SKILL_FIRST_AID, SKILL_POLEARMS, SKILL_RANGE_LANGUAGE, SKILL_RANGE_MONO, SKILL_SWORDS, SKILL_UNARMED, SKILL_UNCHANGED, sSkillLineStore, and sWorld.
Referenced by LoadFromDB().
| void Player::_LoadSpellCooldowns | ( | PreparedQueryResult | result | ) |
Definition at line 4359 of file Player.cpp.
References AddSpellCooldown(), Object::GetGUIDLow(), Field::GetUInt32(), SF_LOG_DEBUG, SF_LOG_ERROR, and sSpellMgr.
Referenced by LoadFromDB().
|
protected |
Definition at line 13766 of file Player.cpp.
References addSpell(), GetActiveSpec(), Unit::getClass(), Unit::getLevel(), Unit::getRaceMask(), GetSpellsForLevels(), GetTalentSpecialization(), HasSpell(), and learnSpell().
Referenced by LoadFromDB().
|
protected |
|
protected |
Definition at line 13205 of file Player.cpp.
References _voidStorageItems, Object::GetGUIDLow(), WorldObject::GetName(), Field::GetUInt32(), Field::GetUInt64(), Field::GetUInt8(), SF_LOG_ERROR, sObjectMgr, UI64FMTD, and VOID_STORAGE_MAX_SLOT.
Referenced by LoadFromDB().
|
protected |
Definition at line 13699 of file Player.cpp.
References Object::GetGUIDLow(), Field::GetUInt32(), m_WeeklyQuestChanged, m_weeklyquests, SF_LOG_DEBUG, and sObjectMgr.
Referenced by LoadFromDB().
| void Player::_RemoveAllItemMods | ( | ) |
Definition at line 9171 of file Player.cpp.
References _ApplyItemBonuses(), _ApplyWeaponDependentAuraMods(), ApplyEnchantment(), ApplyItemEquipSpell(), Unit::CanUseAttackType(), GetAttackBySlot(), INVENTORY_SLOT_BAG_END, ItemTemplate::ItemSet, m_items, MAX_ATTACK, RemoveItemsSetItem(), and SF_LOG_DEBUG.
Referenced by _RemoveAllStatBonuses().
| void Player::_RemoveAllStatBonuses | ( | ) |
Definition at line 808 of file StatSystem.cpp.
References Unit::_RemoveAllAuraStatMods(), _RemoveAllItemMods(), Unit::SetCanModifyStats(), and UpdateAllStats().
Referenced by InitStatsForLevel().
|
protected |
Definition at line 14624 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, GetActiveSpec(), Object::GetGUIDLow(), m_actionButtons, PreparedStatement::setUInt32(), and PreparedStatement::setUInt8().
Referenced by ActivateSpec(), SaveToDB(), and UpdateSpecCount().
|
protected |
Definition at line 14672 of file Player.cpp.
References CHAR_DEL_CHAR_AURA, CHAR_INS_AURA, CharacterDatabase, Aura::GetEffect(), Object::GetGUIDLow(), Unit::m_ownedAuras, MAX_SPELL_EFFECTS, PreparedStatement::setInt32(), PreparedStatement::setUInt32(), PreparedStatement::setUInt64(), and PreparedStatement::setUInt8().
Referenced by SaveToDB().
|
protected |
Definition at line 21545 of file Player.cpp.
References CHAR_DEL_PLAYER_BGDATA, CHAR_INS_PLAYER_BGDATA, CharacterDatabase, Object::GetGUIDLow(), m_bgData, PreparedStatement::setFloat(), PreparedStatement::setUInt16(), and PreparedStatement::setUInt32().
Referenced by SaveToDB().
|
protected |
Definition at line 14885 of file Player.cpp.
References _CUFProfiles, CHAR_DEL_CHAR_CUF_PROFILES, CHAR_REP_CHAR_CUF_PROFILES, CharacterDatabase, Object::GetGUIDLow(), MAX_CUF_PROFILES, PreparedStatement::setString(), PreparedStatement::setUInt16(), PreparedStatement::setUInt32(), and PreparedStatement::setUInt8().
Referenced by SaveToDB().
|
protected |
Definition at line 7503 of file Player.cpp.
References _currencyStorage, CHAR_REP_PLAYER_CURRENCY, CHAR_UPD_PLAYER_CURRENCY, CharacterDatabase, Object::GetGUIDLow(), PLAYERCURRENCY_CHANGED, PLAYERCURRENCY_NEW, PLAYERCURRENCY_UNCHANGED, sCurrencyTypesStore, PreparedStatement::setUInt16(), PreparedStatement::setUInt32(), and PreparedStatement::setUInt8().
Referenced by SaveInventoryAndGoldToDB(), and SaveToDB().
|
protected |
Definition at line 15089 of file Player.cpp.
References CHAR_DEL_QUEST_STATUS_DAILY_CHAR, CHAR_INS_CHARACTER_DAILYQUESTSTATUS, CharacterDatabase, Object::GetGUIDLow(), m_DailyQuestChanged, m_DFQuests, m_lastDailyQuestTime, PreparedStatement::setUInt32(), and PreparedStatement::setUInt64().
Referenced by SaveToDB().
|
protected |
Definition at line 21494 of file Player.cpp.
References CHAR_DEL_EQUIP_SET, CHAR_INS_EQUIP_SET, CHAR_UPD_EQUIP_SET, CharacterDatabase, EQUIPMENT_SET_CHANGED, EQUIPMENT_SET_DELETED, EQUIPMENT_SET_NEW, EQUIPMENT_SET_UNCHANGED, EQUIPMENT_SLOT_END, Object::GetGUIDLow(), EquipmentSet::Guid, EquipmentSet::IconName, EquipmentSet::IgnoreMask, EquipmentSet::Items, m_EquipmentSets, EquipmentSet::Name, PreparedStatement::setString(), PreparedStatement::setUInt32(), PreparedStatement::setUInt64(), and EquipmentSet::state.
Referenced by SaveToDB().
|
protected |
Definition at line 21680 of file Player.cpp.
References CHAR_DEL_CHAR_GLYPHS, CHAR_INS_CHAR_GLYPHS, CharacterDatabase, GetGlyph(), Object::GetGUIDLow(), GetSpecsCount(), MAX_GLYPH_SLOT_INDEX, PreparedStatement::setUInt16(), PreparedStatement::setUInt32(), and PreparedStatement::setUInt8().
Referenced by SaveToDB().
|
protected |
Definition at line 22460 of file Player.cpp.
References _instanceResetTimes, CHAR_DEL_ACCOUNT_INSTANCE_LOCK_TIMES, CHAR_INS_ACCOUNT_INSTANCE_LOCK_TIMES, CharacterDatabase, GetSession(), PreparedStatement::setUInt32(), and PreparedStatement::setUInt64().
Referenced by SaveToDB().
|
protected |
Definition at line 14728 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(), Object::GetGUIDLow(), GetItemByGuid(), GetItemByPos(), WorldObject::GetName(), Item::GetSlot(), Item::GetState(), HIGHGUID_ITEM, INVENTORY_SLOT_BAG_0, ITEM_CHANGED, ITEM_NEW, ITEM_REMOVED, ITEM_UNCHANGED, m_enchantDuration, m_items, m_itemUpdateQueue, m_refundableItems, MAKE_NEW_GUID(), Item::SaveToDB(), PreparedStatement::setUInt32(), PreparedStatement::setUInt8(), SF_LOG_ERROR, and Item::UpdatePlayedTime().
Referenced by SaveInventoryAndGoldToDB(), and SaveToDB().
|
protected |
Definition at line 14923 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_mailsLoaded, m_mailsUpdated, MAIL_STATE_CHANGED, MAIL_STATE_DELETED, MAIL_STATE_UNCHANGED, Mail::messageID, Mail::money, Mail::removedItems, PreparedStatement::setUInt32(), PreparedStatement::setUInt8(), and Mail::state.
Referenced by WorldSession::HandleMailTakeItem(), WorldSession::HandleMailTakeMoney(), and SaveToDB().
|
protected |
Definition at line 15178 of file Player.cpp.
References CHAR_DEL_QUEST_STATUS_MONTHLY_CHAR, CHAR_INS_CHARACTER_MONTHLYQUESTSTATUS, CharacterDatabase, Object::GetGUIDLow(), m_MonthlyQuestChanged, m_monthlyquests, and PreparedStatement::setUInt32().
Referenced by SaveToDB().
|
protected |
Definition at line 15062 of file Player.cpp.
References ASSERT, CHAR_DEL_CHAR_QUESTSTATUS_OBJECTIVE, CHAR_REP_CHAR_QUESTSTATUS_OBJECTIVE, CharacterDatabase, Object::GetGUIDLow(), GetQuestObjectiveCounter(), m_questObjectiveStatusSave, PreparedStatement::setUInt32(), and sObjectMgr.
Referenced by SaveToDB().
|
protected |
Definition at line 14996 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, Object::GetGUIDLow(), IN_MILLISECONDS, m_QuestStatus, m_QuestStatusSave, m_RewardedQuestsSave, Skyfire::AutoPtr< Pointer, Lock >::null(), QUEST_STATUS_NONE, PreparedStatement::setBool(), PreparedStatement::setUInt32(), PreparedStatement::setUInt8(), and sWorld.
Referenced by RewardQuest(), and SaveToDB().
|
protected |
Definition at line 23620 of file Player.cpp.
References _researchHistory, CHAR_DEL_CHAR_RESEARCH_HISTORY, CHAR_INS_CHAR_RESEARCH_HISTORY, CharacterDatabase, Object::GetGUIDLow(), and PreparedStatement::setUInt32().
Referenced by SaveToDB().
|
protected |
Definition at line 23637 of file Player.cpp.
References _researchProjects, CHAR_DEL_CHAR_RESEARCH_PROJECTS, CHAR_INS_CHAR_RESEARCH_PROJECT, CharacterDatabase, Object::GetGUIDLow(), and PreparedStatement::setUInt32().
Referenced by SaveToDB().
|
protected |
Definition at line 15150 of file Player.cpp.
References CHAR_DEL_QUEST_STATUS_SEASONAL_CHAR, CHAR_INS_CHARACTER_SEASONALQUESTSTATUS, CharacterDatabase, Object::GetGUIDLow(), m_SeasonalQuestChanged, m_seasonalquests, and PreparedStatement::setUInt32().
Referenced by SaveToDB().
|
protected |
Definition at line 15200 of file Player.cpp.
References CHAR_DEL_CHAR_SKILL_BY_SKILL, CHAR_INS_CHAR_SKILLS, CHAR_UDP_CHAR_SKILLS, CharacterDatabase, Object::GetGUIDLow(), Object::GetUInt16Value(), mSkillStatus, PLAYER_FIELD_SKILL_MAX_RANKS, PLAYER_FIELD_SKILL_RANKS, PreparedStatement::setUInt16(), PreparedStatement::setUInt32(), SKILL_CHANGED, SKILL_DELETED, SKILL_NEW, and SKILL_UNCHANGED.
Referenced by SaveToDB().
| void Player::_SaveSpellCooldowns | ( | SQLTransaction & | trans | ) |
Definition at line 4393 of file Player.cpp.
References CHAR_DEL_CHAR_SPELL_COOLDOWN, CharacterDatabase, Object::GetGUIDLow(), infinityCooldownDelayCheck, m_spellCooldowns, and PreparedStatement::setUInt32().
Referenced by SaveToDB().
|
protected |
Definition at line 15256 of file Player.cpp.
References CHAR_DEL_CHAR_SPELL_BY_SPELL, CHAR_INS_CHAR_SPELL, CharacterDatabase, Object::GetGUIDLow(), m_spells, PLAYERSPELL_CHANGED, PLAYERSPELL_NEW, PLAYERSPELL_REMOVED, PLAYERSPELL_UNCHANGED, PreparedStatement::setBool(), and PreparedStatement::setUInt32().
Referenced by RemoveTalent(), ResetTalents(), and SaveToDB().
|
protected |
Definition at line 15296 of file Player.cpp.
References CHAR_DEL_CHAR_STATS, CHAR_INS_CHAR_STATS, CharacterDatabase, CONFIG_MIN_LEVEL_STAT_SAVE, CR_RESILIENCE_PLAYER_DAMAGE_TAKEN, GetBaseSpellPowerBonus(), Object::GetFloatValue(), Object::GetGUIDLow(), Unit::getLevel(), Unit::GetMaxHealth(), Unit::GetMaxPower(), Unit::GetResistance(), Unit::GetStat(), Object::GetUInt32Value(), MAX_POWERS_PER_CLASS, MAX_SPELL_SCHOOL, MAX_STATS, PLAYER_FIELD_BLOCK_PERCENTAGE, PLAYER_FIELD_COMBAT_RATINGS, PLAYER_FIELD_CRIT_PERCENTAGE, PLAYER_FIELD_DODGE_PERCENTAGE, PLAYER_FIELD_MASTERY, PLAYER_FIELD_OFFHAND_CRIT_PERCENTAGE, PLAYER_FIELD_PARRY_PERCENTAGE, PLAYER_FIELD_PVP_POWER_DAMAGE, PLAYER_FIELD_PVP_POWER_HEALING, PLAYER_FIELD_RANGED_CRIT_PERCENTAGE, PLAYER_FIELD_SPELL_CRIT_PERCENTAGE, PreparedStatement::setFloat(), PreparedStatement::setUInt32(), sWorld, UNIT_FIELD_ATTACK_POWER, and UNIT_FIELD_RANGED_ATTACK_POWER.
Referenced by SaveToDB().
|
protected |
Definition at line 21714 of file Player.cpp.
References CHAR_DEL_CHAR_TALENT_BY_SPELL_SPEC, CHAR_INS_CHAR_TALENT, CharacterDatabase, Object::GetGUIDLow(), GetTalentMap(), MAX_TALENT_SPECS, PLAYERSPELL_CHANGED, PLAYERSPELL_NEW, PLAYERSPELL_REMOVED, PLAYERSPELL_UNCHANGED, PreparedStatement::setUInt32(), and PreparedStatement::setUInt8().
Referenced by RemoveTalent(), ResetTalents(), and SaveToDB().
|
protected |
Definition at line 14853 of file Player.cpp.
References _voidStorageItems, CHAR_DEL_CHAR_VOID_STORAGE_ITEM_BY_SLOT, CHAR_REP_CHAR_VOID_STORAGE_ITEM, CharacterDatabase, Object::GetGUIDLow(), PreparedStatement::setUInt32(), PreparedStatement::setUInt64(), PreparedStatement::setUInt8(), and VOID_STORAGE_MAX_SLOT.
Referenced by SaveToDB().
|
protected |
Definition at line 15127 of file Player.cpp.
References CHAR_DEL_QUEST_STATUS_WEEKLY_CHAR, CHAR_INS_CHARACTER_WEEKLYQUESTSTATUS, CharacterDatabase, Object::GetGUIDLow(), m_WeeklyQuestChanged, m_weeklyquests, and PreparedStatement::setUInt32().
Referenced by SaveToDB().
|
private |
Definition at line 1902 of file PlayerStorage.cpp.
References AddEnchantmentDurations(), AddItemDurations(), Object::AddToWorld(), BIND_QUEST_ITEM, BIND_WHEN_EQUIPED, BIND_WHEN_PICKED_UP, ItemTemplate::Bonding, Unit::CastSpell(), Item::ClearSoulboundTradeable(), Item::CloneItem(), Object::DestroyForPlayer(), GetBagByPos(), Item::GetCount(), Object::GetEntry(), Object::GetGUID(), Object::GetGUIDLow(), GetItemByPos(), Item::GetTemplate(), Unit::HasAura(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, IsBagPos(), Object::IsInWorld(), ITEM_CHANGED, ITEM_FIELD_CONTAINED_IN, ITEM_FIELD_OWNER, ITEM_REMOVED, ITEM_SPELLTRIGGER_ON_NO_DELAY_USE, m_items, MAX_ITEM_PROTO_SPELLS, PLAYER_FIELD_INV_SLOTS, RemoveEnchantmentDurations(), Object::RemoveFromWorld(), RemoveItemDurations(), RemoveTradeableItem(), Object::SendUpdateToPlayer(), Item::SetBinding(), Item::SetContainer(), Item::SetCount(), Item::SetNotRefundable(), Item::SetOwnerGUID(), Item::SetSlot(), Item::SetState(), Object::SetUInt64Value(), SF_LOG_DEBUG, _Spell::SpellId, ItemTemplate::Spells, _Spell::SpellTrigger, and Bag::StoreItem().
Referenced by StoreItem().
|
inline |
Definition at line 16951 of file Player.cpp.
References AddRefundReference(), AutoUnequipOffhandIfNeed(), ItemTemplate::BuyCount, CanEquipNewItem(), CanStoreNewItem(), DestroyItemCount(), EQUIP_ERR_OK, EquipNewItem(), VendorItem::ExtendedCost, ItemTemplate::Flags, Object::GetGUID(), Object::GetGUIDLow(), ItemTemplate::GetMaxStackSize(), GetSession(), ITEM_EXT_COST_CURRENCY_REQ_IS_SEASON_EARNED_1, ITEM_FIELD_DYNAMIC_FLAGS, ITEM_FLAG_REFUNDABLE, ITEM_PROTO_FLAG_REFUNDABLE, MAX_ITEM_EXT_COST_CURRENCIES, VendorItem::maxcount, ModifyCurrency(), ModifyMoney(), ItemExtendedCostEntry::RequiredCurrency, ItemExtendedCostEntry::RequiredCurrencyCount, ItemExtendedCostEntry::RequiredItem, ItemExtendedCostEntry::RequiredItemCount, ItemExtendedCostEntry::RequirementFlags, Item::SaveRefundDataToDB(), SendEquipError(), SendNewItem(), WorldSession::SendPacket(), Object::SetFlag(), Item::SetPaidExtendedCost(), Item::SetPaidMoney(), Item::SetRefundRecipient(), sItemExtendedCostStore, SMSG_BUY_ITEM, StoreNewItem(), Creature::UpdateVendorItemCurrentCount(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by BuyItemFromVendorSlot().
| void Player::ActivateSpec | ( | uint8 | spec | ) |
Definition at line 21799 of file Player.cpp.
References _LoadActions(), _SaveActions(), Unit::CastSpell(), CHAR_SEL_CHARACTER_ACTIONS_SPEC, CharacterDatabase, Unit::ClearAllReactives(), Unit::ClearComboPointHolders(), Unit::ExitVehicle(), GetActiveSpec(), Unit::getClass(), GetGlyph(), Object::GetGUIDLow(), GetPet(), Unit::getPowerType(), GetSpecsCount(), InitTalentForLevel(), Unit::InterruptNonMeleeSpells(), Unit::IsNonMeleeSpellCasted(), learnSpell(), MAX_GLYPH_SLOT_INDEX, PET_SAVE_NOT_IN_SLOT, TalentEntry::playerClass, POWER_MANA, Unit::RemoveAllControlled(), Unit::RemoveAurasDueToSpell(), RemovePet(), SendActionButtons(), SetActiveSpec(), SetGlyph(), Unit::SetPower(), PreparedStatement::setUInt32(), PreparedStatement::setUInt8(), SetUsedTalentCount(), sGlyphPropertiesStore, TalentEntry::SpellId, sTalentStore, and Unit::UnsummonAllTotems().
Referenced by UpdateSpecCount().
| bool Player::ActivateTaxiPathTo | ( | std::vector< uint32 > const & | nodes, |
| Creature * | npc = NULL, | ||
| uint32 | spellid = 0 ) |
Definition at line 16547 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_FLIGHT_PATHS_TAKEN, ACHIEVEMENT_CRITERIA_TYPE_GOLD_SPENT_FOR_TRAVELLING, CLASS_DEATH_KNIGHT, Unit::CombatStop(), CONFIG_INSTANT_TAXI, CURRENT_AUTOREPEAT_SPELL, CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, ERR_TAXI_NO_SUCH_PATH, ERR_TAXI_NOT_ENOUGH_MONEY, ERR_TAXI_OK, ERR_TAXI_PLAYER_ALREADY_MOUNTED, ERR_TAXI_PLAYER_BUSY, ERR_TAXI_PLAYER_SHAPESHIFTED, ERR_TAXI_TOO_FAR_AWAY, ERR_TAXI_UNSPECIFIED_SERVER_ERROR, Unit::ExitVehicle(), Unit::getClass(), Unit::GetCurrentSpell(), WorldLocation::GetMapId(), GetMoney(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetReputationPriceDiscount(), GetSession(), GetTeam(), Object::HasFlag(), Unit::HasUnitState(), INTERACTION_DISTANCE, Unit::InterruptSpell(), Unit::IsInCombat(), Unit::IsInDisallowedMountForm(), Unit::IsMounted(), Unit::IsNonMeleeSpellCasted(), m_taxi, TaxiNodesEntry::map_id, ModifyMoney(), Unit::RemoveAurasByType(), WorldSession::SendActivateTaxiReply(), WorldSession::SendDoFlight(), sObjectMgr, SPELL_AURA_MOD_SHAPESHIFT, SPELL_AURA_MOUNTED, sTaxiNodesStore, StopCastingBindSight(), StopCastingCharm(), sWorld, TeleportTo(), TradeCancel(), UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE, UNIT_STATE_ROOT, UNIT_STATE_STUNNED, UpdateAchievementCriteria(), TaxiNodesEntry::x, TaxiNodesEntry::y, and TaxiNodesEntry::z.
Referenced by ActivateTaxiPathTo(), WorldSession::HandleActivateTaxiExpressOpcode(), WorldSession::HandleActivateTaxiOpcode(), Aura::HandleAuraSpecificMods(), OPvPCapturePointNA::HandleCustomSpell(), and LuaTaxiMgr::StartTaxi().
Definition at line 16733 of file Player.cpp.
References ActivateTaxiPathTo(), TaxiPathEntry::from, sTaxiPathStore, and TaxiPathEntry::to.
| ActionButton * Player::addActionButton | ( | uint8 | button, |
| uint32 | action, | ||
| ActionButtonType | type ) |
Definition at line 6805 of file Player.cpp.
References Object::GetGUIDLow(), IsActionButtonDataValid(), m_actionButtons, ActionButton::SetActionAndType(), and SF_LOG_DEBUG.
Referenced by _LoadActions(), Create(), and WorldSession::HandleSetActionButtonOpcode().
|
inline |
Definition at line 1669 of file Player.h.
References m_ArmorProficiency.
Referenced by Spell::EffectProficiency().
| uint32 Player::AddBattlegroundQueueId | ( | BattlegroundQueueTypeId | val | ) |
Definition at line 19260 of file Player.cpp.
References BATTLEGROUND_QUEUE_NONE, m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), and LoadFromDB().
|
inline |
Definition at line 2711 of file Player.h.
References m_bgData.
Referenced by WorldSession::HandleBattlemasterJoinArena(), and WorldSession::HandleBattlemasterJoinOpcode().
Definition at line 18439 of file Player.cpp.
References Unit::AddComboPointHolder(), GetComboPoints(), Object::GetGUID(), Object::GetGUIDLow(), ObjectAccessor::GetUnit(), m_comboTarget, Unit::RemoveAurasByType(), SendComboPoints(), SetComboPoints(), SPELL_AURA_RETAIN_COMBO_POINTS, and Unit::Unit().
Referenced by LuaPlayer::AddComboPoints(), AuraEffect::HandleAuraRetainComboPoints(), and Unit::ProcDamageAndSpellFor().
| void Player::AddEnchantmentDuration | ( | Item * | item, |
| EnchantmentSlot | slot, | ||
| uint32 | duration ) |
Definition at line 10895 of file Player.cpp.
References Object::GetGUID(), GetSession(), m_enchantDuration, MAX_ENCHANTMENT_SLOT, and WorldSession::SendItemEnchantTimeUpdate().
Referenced by AddEnchantmentDurations(), and ApplyEnchantment().
| void Player::AddEnchantmentDurations | ( | Item * | item | ) |
Definition at line 10818 of file Player.cpp.
References AddEnchantmentDuration(), Item::GetEnchantmentDuration(), Item::GetEnchantmentId(), MAX_ENCHANTMENT_SLOT, PRISMATIC_ENCHANTMENT_SLOT, and PROP_ENCHANTMENT_SLOT_0.
Referenced by _StoreItem(), EquipItem(), and QuickEquipItem().
| void Player::AddInstanceEnterTime | ( | uint32 | instanceId, |
| time_t | enterTime ) |
Definition at line 14230 of file Player.cpp.
References _instanceResetTimes, and HOUR.
Referenced by InstanceMap::AddPlayerToMap().
Definition at line 22238 of file Player.cpp.
References CanStoreNewItem(), EQUIP_ERR_OK, Item::GenerateItemRandomPropertyId(), GetSession(), NULL_BAG, NULL_SLOT, ChatHandler::PSendSysMessage(), SendNewItem(), and StoreNewItem().
Referenced by spell_q9452_cast_net::spell_q9452_cast_net_SpellScript::HandleDummy(), OnArchaeologyFindUsed(), and RewardHonor().
| void Player::AddItemDurations | ( | Item * | item | ) |
Definition at line 19508 of file Player.cpp.
References Object::GetUInt32Value(), ITEM_FIELD_EXPIRATION, m_itemDuration, and Item::SendTimeUpdate().
Referenced by _StoreItem(), EquipItem(), and QuickEquipItem().
| void Player::AddItemToBuyBackSlot | ( | Item * | pItem | ) |
Definition at line 3178 of file PlayerStorage.cpp.
References BUYBACK_SLOT_END, BUYBACK_SLOT_START, Item::GetCount(), Object::GetEntry(), Object::GetGUID(), Item::GetTemplate(), Object::GetUInt32Value(), m_currentBuybackSlot, m_items, m_logintime, PLAYER_FIELD_BUYBACK_PRICE, PLAYER_FIELD_BUYBACK_TIMESTAMP, PLAYER_FIELD_VENDORBUYBACK_SLOTS, RemoveItemFromBuyBackSlot(), Object::SetUInt32Value(), Object::SetUInt64Value(), and SF_LOG_DEBUG.
|
private |
Definition at line 21101 of file Player.cpp.
References sCurrencyTypesStore, and Object::SetFlag64().
|
inline |
|
inline |
| void Player::AddMItem | ( | Item * | it | ) |
Definition at line 94 of file PlayerMail.cpp.
References ASSERT, Object::GetGUIDLow(), and mMitems.
Referenced by _LoadMailedItems(), and MailDraft::SendMailTo().
| void Player::AddNewMailDeliverTime | ( | time_t | deliver_time | ) |
Definition at line 65 of file PlayerMail.cpp.
References m_nextMailDelivereTime, SendNewMail(), and unReadMails.
Referenced by MailDraft::SendMailTo().
Definition at line 479 of file PlayerQuestState.cpp.
References ACHIEVEMENT_TIMED_TYPE_QUEST, AddTimedQuest(), AdjustQuestReqItemCount(), Creature::AI(), CanCompleteQuest(), CompleteQuest(), QuestStatusData::Explored, FindQuestSlot(), Quest::GetLimitTime(), Quest::GetQuestId(), getQuestStatusMap(), GetReputationMgr(), Object::GetTypeId(), WorldObject::GetZoneAndAreaId(), GiveQuestSourceItem(), Quest::HasFlag(), Quest::HasSpecialFlag(), QuestObjective::Id, IN_MILLISECONDS, Quest::m_questObjectives, m_questObjectiveStatus, m_questObjectiveStatusSave, m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, Object::Object(), QuestObjective::ObjectId, pvpInfo, QUEST_FLAGS_FLAGS_PVP, QUEST_OBJECTIVE_TYPE_CURRENCY, QUEST_OBJECTIVE_TYPE_DUMMY, QUEST_OBJECTIVE_TYPE_FACTION_REP, QUEST_OBJECTIVE_TYPE_FACTION_REP2, QUEST_OBJECTIVE_TYPE_MONEY, QUEST_OBJECTIVE_TYPE_SPELL, QUEST_SPECIAL_FLAGS_TIMED, QUEST_STATUS_INCOMPLETE, SetQuestSlot(), ReputationMgr::SetVisible(), sFactionStore, UnitAI::sQuestAccept(), sScriptMgr, StartTimedAchievement(), QuestStatusData::Status, QuestStatusData::Timer, Object::ToCreature(), Object::ToGameObject(), Object::ToPlayer(), QuestObjective::Type, TYPEID_CONTAINER, TYPEID_GAMEOBJECT, TYPEID_ITEM, TYPEID_PLAYER, TYPEID_UNIT, UpdateAreaDependentAuras(), UpdateForQuestWorldObjects(), UpdateObjectVisibility(), UpdatePhasing(), UpdatePvPState(), and UpdateZoneDependentAuras().
Referenced by Spell::EffectQuestStart(), WorldSession::HandlePushQuestToParty(), quest_commandscript::HandleQuestAdd(), and SendPreparedQuest().
| void Player::AddRefundReference | ( | uint32 | it | ) |
Definition at line 22149 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 20547 of file Player.cpp.
References ConvertRune(), and SetRuneConvertAura().
Referenced by AuraEffect::HandleAuraConvertRune().
| void Player::AddRunePower | ( | uint8 | index | ) |
Definition at line 20605 of file Player.cpp.
References GetSession(), WorldSession::SendPacket(), and SMSG_ADD_RUNE_POWER.
| bool Player::addSpell | ( | uint32 | spellId, |
| bool | active, | ||
| bool | learning, | ||
| bool | dependent, | ||
| bool | disabled, | ||
| bool | loading = false ) |
Definition at line 3634 of file Player.cpp.
References ABILITY_LEARNED_ON_GET_RACE_OR_CLASS_SKILL, ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILL_LINE, ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILLLINE_SPELLS, ACHIEVEMENT_CRITERIA_TYPE_LEARN_SPELL, PlayerSpell::active, addSpell(), Skyfire::SpellBook::BuildSupercededSpellPacket(), Unit::CastSpell(), DeleteSpellFromAllPlayers(), PlayerSpell::dependent, PlayerSpell::disabled, GetFreePrimaryProfessionPoints(), Unit::GetMaxSkillValueForLevel(), GetPureMaxSkillValue(), GetPureSkillValue(), GetSession(), GetSkillRangeType(), GetSkillStep(), GetTalentSpellCost(), GetUsedTalentCount(), SpellInfo::HasEffect(), HasSkill(), HasSpell(), SkillLineEntry::id, SpellInfo::IsDifferentRankOf(), SpellInfo::IsHighRankOf(), Object::IsInWorld(), IsNeedCastPassiveSpellAtLearn(), SpellInfo::IsPassive(), SpellInfo::IsPrimaryProfessionFirstRank(), SpellInfo::IsRanked(), SpellMgr::IsSpellValid(), SpellInfo::IsStackableWithRanks(), learnSpell(), m_spells, SpellLearnSkillNode::maxvalue, PLAYERSPELL_CHANGED, PLAYERSPELL_NEW, PLAYERSPELL_REMOVED, PLAYERSPELL_TEMPORARY, PLAYERSPELL_UNCHANGED, RemoveTemporarySpell(), WorldSession::SendPacket(), SetFreePrimaryProfessions(), SetSkill(), SetUsedTalentCount(), SF_LOG_ERROR, SpellLearnSkillNode::skill, SKILL_RANGE_LANGUAGE, SKILL_RANGE_LEVEL, SKILL_RANGE_MONO, SKILL_RUNEFORGING, SMSG_REMOVED_SPELL, SPELL_EFFECT_LEARN_SPELL, SPELL_EFFECT_SKILL_STEP, sSkillLineStore, sSpellMgr, PlayerSpell::state, SpellLearnSkillNode::step, UpdateAchievementCriteria(), SpellLearnSkillNode::value, and ByteBuffer::WriteBits().
Referenced by _LoadSpells(), addSpell(), learnDefaultSpells(), learnSkillRewardedSpells(), learnSpell(), AchievementMgr< Guild >::LoadFromDB(), and removeSpell().
| void Player::AddSpellAndCategoryCooldowns | ( | SpellInfo const * | spellInfo, |
| uint32 | itemId, | ||
| Spell * | spell = NULL, | ||
| bool | infinityCooldown = false ) |
Definition at line 17511 of file Player.cpp.
References AddSpellCooldown(), ApplySpellMod(), ASSERT, SpellInfo::AttributesEx6, SpellInfo::CategoryRecoveryTime, DAY, SpellCategoryEntry::Flags, Unit::GetAttackTime(), SpellInfo::GetCategory(), Unit::GetTotalAuraModifierByMiscValue(), HOUR, SpellInfo::Id, IN_MILLISECONDS, infinityCooldownDelay, SpellInfo::IsAutoRepeatRangedSpell(), Skyfire::LocalTime(), MAX_ITEM_SPELLS, MINUTE, RANGED_ATTACK, SpellInfo::RecoveryTime, sObjectMgr, SPELL_ATTR6_IGNORE_CATEGORY_COOLDOWN_MODS, SPELL_AURA_MOD_SPELL_CATEGORY_COOLDOWN, SPELL_CATEGORY_FLAG_COOLDOWN_EXPIRES_AT_MIDNIGHT, SPELLMOD_COOLDOWN, sSpellCategoryStore, and sSpellsByCategoryStore.
Referenced by Aura::_ApplyForTarget(), Unit::AddGameObject(), spell_pvp_trinket_wotf_shared_cd::spell_pvp_trinket_wotf_shared_cd_SpellScript::HandleScript(), SendCooldownEvent(), Spell::SendSpellCooldown(), and Unit::SetMinion().
Definition at line 17633 of file Player.cpp.
References SpellCooldown::end, SpellCooldown::itemid, and m_spellCooldowns.
Referenced by _LoadSpellCooldowns(), spell_rog_cheat_death::spell_rog_cheat_death_AuraScript::Absorb(), AddSpellAndCategoryCooldowns(), ApplyEquipCooldown(), Unit::HandleAuraProc(), Unit::HandleAuraProcOnPowerAmount(), Aura::HandleAuraSpecificMods(), Unit::HandleDummyAuraProc(), Unit::HandleOverrideClassScriptAuraProc(), Unit::HandleProcTriggerSpell(), and ProhibitSpellSchool().
| void Player::AddSpellMod | ( | SpellModifier * | mod, |
| bool | apply ) |
Definition at line 16254 of file Player.cpp.
References AddPct(), ByteBuffer::bitwpos(), m_spellMods, SpellModifier::mask, SpellModifier::op, SpellModifier::ownerAura, ByteBuffer::PutBits(), SendDirectMessage(), SF_LOG_DEBUG, SMSG_SET_FLAT_SPELL_MODIFIER, SMSG_SET_PCT_SPELL_MODIFIER, SpellModifier::spellId, SPELLMOD_FLAT, SPELLMOD_PCT, SpellModifier::type, SpellModifier::value, and ByteBuffer::WriteBits().
Referenced by AuraEffect::ApplySpellMod().
Definition at line 3580 of file Player.cpp.
References DeleteSpellFromAllPlayers(), GetTalentMap(), GetTalentSpellPos(), Object::IsInWorld(), SpellMgr::IsSpellValid(), PLAYERSPELL_NEW, PLAYERSPELL_UNCHANGED, SF_LOG_ERROR, PlayerTalent::spec, sSpellMgr, and PlayerTalent::state.
Referenced by _LoadTalents(), LuaPlayer::AddTalent(), learn_commandscript::HandleLearnAllMyTalentsCommand(), and LearnTalent().
| void Player::AddTemporarySpell | ( | uint32 | spellId | ) |
Definition at line 3971 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 1856 of file Player.h.
References m_timedquests.
Referenced by _LoadQuestStatus(), and AddQuest().
|
overridevirtual |
Reimplemented from Object.
Definition at line 2418 of file Player.cpp.
References Unit::AddToWorld(), m_items, PLAYER_SLOT_END, and PLAYER_SLOT_START.
Referenced by Map::AddPlayerToMap().
| void Player::AddTradeableItem | ( | Item * | item | ) |
Definition at line 53 of file PlayerTrade.cpp.
References m_itemSoulboundTradeable.
Referenced by _LoadItem(), MoveItemToInventory(), and StoreNewItem().
| uint8 Player::AddVoidStorageItem | ( | const VoidStorageItem & | item | ) |
Definition at line 22508 of file Player.cpp.
References _voidStorageItems, VoidStorageItem::CreatorGuid, GetNextVoidStorageFreeSlot(), GetSession(), VoidStorageItem::ItemEntry, VoidStorageItem::ItemId, VoidStorageItem::ItemRandomPropertyId, VoidStorageItem::ItemSuffixFactor, WorldSession::SendVoidStorageTransferResult(), VOID_STORAGE_MAX_SLOT, and VOID_TRANSFER_ERROR_FULL.
Referenced by WorldSession::HandleVoidStorageTransfer().
| void Player::AddVoidStorageItemAtSlot | ( | uint8 | slot, |
| const VoidStorageItem & | item ) |
Definition at line 22523 of file Player.cpp.
References _voidStorageItems, VoidStorageItem::CreatorGuid, Object::GetGUIDLow(), WorldObject::GetName(), GetSession(), VoidStorageItem::ItemId, VoidStorageItem::ItemRandomPropertyId, VoidStorageItem::ItemSuffixFactor, WorldSession::SendVoidStorageTransferResult(), SF_LOG_ERROR, UI64FMTD, VOID_STORAGE_MAX_SLOT, VOID_TRANSFER_ERROR_FULL, and VOID_TRANSFER_ERROR_INTERNAL_ERROR_1.
|
inline |
Definition at line 1665 of file Player.h.
References m_WeaponProficiency.
Referenced by Spell::EffectProficiency().
|
inline |
Definition at line 3148 of file Player.h.
References WhisperList.
Referenced by WorldSession::HandleMessagechatOpcode().
|
private |
Definition at line 1484 of file PlayerQuestState.cpp.
References QuestObjective::Amount, GetItemCount(), Quest::GetQuestId(), Quest::GetQuestObjectiveCountType(), QuestObjective::Id, Quest::m_questObjectives, m_questObjectiveStatus, m_QuestStatusSave, QuestObjective::ObjectId, QUEST_OBJECTIVE_TYPE_ITEM, and QuestObjective::Type.
Referenced by AddQuest().
| void Player::ApplyEnchantment | ( | Item * | item, |
| bool | apply ) |
Definition at line 11158 of file Player.cpp.
References ApplyEnchantment(), ApplyReforgeEnchantment(), and MAX_ENCHANTMENT_SLOT.
| void Player::ApplyEnchantment | ( | Item * | item, |
| EnchantmentSlot | slot, | ||
| bool | apply, | ||
| bool | apply_dur = true, | ||
| bool | ignore_condition = false ) |
Definition at line 11168 of file Player.cpp.
References AddEnchantmentDuration(), SpellItemEnchantmentEntry::amount, ApplyHealthRegenBonus(), ApplyManaRegenBonus(), ApplyRatingMod(), ApplySpellPenetrationBonus(), ApplySpellPowerBonus(), Unit::ApplyStatBuffMod(), BASE_VALUE, Unit::CastCustomSpell(), Unit::CastSpell(), CLASS_SHAMAN, _Socket::Color, CR_ARMOR_PENETRATION, CR_BLOCK, CR_CRIT_MELEE, CR_CRIT_RANGED, CR_CRIT_SPELL, CR_DEFENSE_SKILL, CR_DODGE, CR_EXPERTISE, CR_HASTE_MELEE, CR_HASTE_RANGED, CR_HASTE_SPELL, CR_HIT_MELEE, CR_HIT_RANGED, CR_HIT_SPELL, CR_MASTERY, CR_PARRY, CR_PVP_POWER, CR_RESILIENCE_PLAYER_DAMAGE_TAKEN, ItemTemplate::Delay, ItemRandomSuffixEntry::enchant_id, SpellItemEnchantmentEntry::EnchantmentCondition, EnchantmentFitsRequirements(), EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, FLAT_MOD, SpellItemEnchantmentEntry::GemID, Unit::getClass(), Item::GetEnchantmentDuration(), Item::GetEnchantmentId(), Object::GetGUID(), Item::GetItemRandomPropertyId(), Item::GetItemSuffixFactor(), Unit::getLevel(), GetSkillValue(), Item::GetSlot(), Item::GetTemplate(), HandleBaseModValue(), Unit::HandleStatModifier(), 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_MASTERY_RATING, ITEM_MOD_PARRY_RATING, ITEM_MOD_PVP_POWER, ITEM_MOD_RANGED_ATTACK_POWER, ITEM_MOD_RESILIENCE_RATING, ITEM_MOD_SPELL_PENETRATION, ITEM_MOD_SPELL_POWER, ITEM_MOD_SPIRIT, ITEM_MOD_STAMINA, ITEM_MOD_STRENGTH, MAX_ENCHANTMENT_SLOT, MAX_ITEM_ENCHANTMENT_EFFECTS, PERM_ENCHANTMENT_SLOT, PLAYER_FIELD_VISIBLE_ITEMS, ItemRandomSuffixEntry::prefix, PRISMATIC_ENCHANTMENT_SLOT, Unit::RemoveAurasDueToItemSpell(), SpellItemEnchantmentEntry::requiredMaxLevel, SpellItemEnchantmentEntry::requiredMinLevel, SpellItemEnchantmentEntry::requiredSkill, SpellItemEnchantmentEntry::requiredSkillValue, Object::SetUInt16Value(), SF_LOG_DEBUG, SF_LOG_ERROR, SHIELD_BLOCK_VALUE, sItemRandomSuffixStore, sObjectMgr, SOCK_ENCHANTMENT_SLOT, SOCK_ENCHANTMENT_SLOT_2, SOCK_ENCHANTMENT_SLOT_3, ItemTemplate::Socket, SpellItemEnchantmentEntry::spellid, sSpellItemEnchantmentStore, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, TEMP_ENCHANTMENT_SLOT, TOTAL_VALUE, SpellItemEnchantmentEntry::type, UNIT_MOD_ATTACK_POWER, UNIT_MOD_ATTACK_POWER_RANGED, UNIT_MOD_DAMAGE_MAINHAND, UNIT_MOD_DAMAGE_OFFHAND, UNIT_MOD_DAMAGE_RANGED, UNIT_MOD_HEALTH, UNIT_MOD_MANA, UNIT_MOD_RESISTANCE_START, UNIT_MOD_STAT_AGILITY, UNIT_MOD_STAT_INTELLECT, UNIT_MOD_STAT_SPIRIT, UNIT_MOD_STAT_STAMINA, and UNIT_MOD_STAT_STRENGTH.
Referenced by _ApplyAllItemMods(), _ApplyItemMods(), _RemoveAllItemMods(), ApplyEnchantment(), LuaItem::ClearEnchantment(), CorrectMetaGemEnchants(), Spell::EffectEnchantHeldItem(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), Spell::EffectEnchantItemTmp(), WorldSession::HandleCancelTempEnchantmentOpcode(), RemoveArenaEnchantments(), LuaItem::SetEnchantment(), SetVirtualItemSlot(), ToggleMetaGemsActive(), UpdateEnchantTime(), and UpdateSkillEnchantments().
| void Player::ApplyEquipCooldown | ( | Item * | pItem | ) |
Definition at line 18751 of file Player.cpp.
References AddSpellCooldown(), Object::GetEntry(), Object::GetGUID(), GetSession(), Item::GetTemplate(), Object::HasFlag(), ITEM_FIELD_DYNAMIC_FLAGS, ITEM_PROTO_FLAG_NO_EQUIP_COOLDOWN, ITEM_SPELLTRIGGER_ON_USE, m_spellCooldowns, MAX_ITEM_PROTO_SPELLS, WorldSession::SendPacket(), SMSG_ITEM_COOLDOWN, _Spell::SpellId, ItemTemplate::Spells, and _Spell::SpellTrigger.
Referenced by EquipItem().
| void Player::ApplyEquipSpell | ( | SpellInfo const * | spellInfo, |
| Item * | item, | ||
| bool | apply, | ||
| bool | form_change = false ) |
Definition at line 8848 of file Player.cpp.
References Unit::CastSpell(), SpellInfo::CheckShapeshift(), Unit::GetAppliedAuras(), Object::GetGUID(), Unit::GetShapeshiftForm(), SpellInfo::Id, Unit::RemoveAurasDueToItemSpell(), Unit::RemoveAurasDueToSpell(), SF_LOG_DEBUG, and SPELL_CAST_OK.
Referenced by AddItemsSetItem(), ApplyItemEquipSpell(), RemoveItemsSetItem(), and UpdateEquipSpellsAtFormChange().
| void Player::ApplyHealthRegenBonus | ( | int32 | amount, |
| bool | apply ) |
Definition at line 729 of file StatSystem.cpp.
References _ModifyUInt32(), and m_baseHealthRegen.
Referenced by _ApplyItemBonuses(), ApplyEnchantment(), and ApplyReforgeEnchantment().
| void Player::ApplyItemEquipSpell | ( | Item * | item, |
| bool | apply, | ||
| bool | form_change = false ) |
Definition at line 8818 of file Player.cpp.
References ApplyEquipSpell(), Item::GetTemplate(), ITEM_SPELLTRIGGER_ON_EQUIP, MAX_ITEM_PROTO_SPELLS, _Spell::SpellId, ItemTemplate::Spells, _Spell::SpellTrigger, and sSpellMgr.
Referenced by _ApplyAllItemMods(), _ApplyItemMods(), _RemoveAllItemMods(), and UpdateEquipSpellsAtFormChange().
| void Player::ApplyManaRegenBonus | ( | int32 | amount, |
| bool | apply ) |
Definition at line 723 of file StatSystem.cpp.
References _ModifyUInt32(), m_baseManaRegen, and UpdateManaRegen().
Referenced by _ApplyItemBonuses(), ApplyEnchantment(), and ApplyReforgeEnchantment().
| void Player::ApplyRatingMod | ( | CombatRating | cr, |
| int32 | value, | ||
| bool | apply ) |
Definition at line 5966 of file Player.cpp.
References Unit::ApplyAttackTimePercentMod(), Unit::ApplyCastTimePercentMod(), BASE_ATTACK, CLASS_DEATH_KNIGHT, CR_HASTE_MELEE, CR_HASTE_RANGED, CR_HASTE_SPELL, Unit::getClass(), GetRatingMultiplier(), m_baseRatingValue, OFF_ATTACK, RANGED_ATTACK, UpdateAllRunesRegen(), and UpdateRating().
Referenced by _ApplyItemBonuses(), ApplyEnchantment(), ApplyReforgeEnchantment(), AuraEffect::HandleModRating(), AuraEffect::HandleModRatingFromStat(), RecalculateRating(), and UpdateStats().
| void Player::ApplyReforgeEnchantment | ( | Item * | item, |
| bool | apply ) |
Definition at line 10919 of file Player.cpp.
References ApplyHealthRegenBonus(), ApplyManaRegenBonus(), Object::ApplyModInt32Value(), ApplyRatingMod(), ApplySpellPowerBonus(), Unit::ApplyStatBuffMod(), BASE_VALUE, CR_ARMOR_PENETRATION, CR_BLOCK, CR_CRIT_MELEE, CR_CRIT_RANGED, CR_CRIT_SPELL, CR_DEFENSE_SKILL, CR_DODGE, CR_EXPERTISE, CR_HASTE_MELEE, CR_HASTE_RANGED, CR_HASTE_SPELL, CR_HIT_MELEE, CR_HIT_RANGED, CR_HIT_SPELL, CR_MASTERY, CR_PARRY, CR_RESILIENCE_PLAYER_DAMAGE_TAKEN, ItemReforgeEntry::FinalMultiplier, ItemReforgeEntry::FinalStat, FLAT_MOD, Object::GetDynamicUInt32Value(), Item::GetReforgableStat(), HandleBaseModValue(), Unit::HandleStatModifier(), ITEM_DYNAMIC_MODIFIERS, ITEM_MOD_AGILITY, ITEM_MOD_ARMOR_PENETRATION_RATING, ITEM_MOD_ATTACK_POWER, ITEM_MOD_BLOCK_RATING, ITEM_MOD_BLOCK_VALUE, ITEM_MOD_CRIT_MELEE_RATING, ITEM_MOD_CRIT_RANGED_RATING, ITEM_MOD_CRIT_RATING, ITEM_MOD_CRIT_SPELL_RATING, ITEM_MOD_DEFENSE_SKILL_RATING, ITEM_MOD_DODGE_RATING, ITEM_MOD_EXPERTISE_RATING, ITEM_MOD_HASTE_RATING, ITEM_MOD_HASTE_SPELL_RATING, ITEM_MOD_HEALTH, ITEM_MOD_HEALTH_REGEN, ITEM_MOD_HIT_MELEE_RATING, ITEM_MOD_HIT_RANGED_RATING, ITEM_MOD_HIT_RATING, ITEM_MOD_HIT_SPELL_RATING, ITEM_MOD_INTELLECT, ITEM_MOD_MANA, ITEM_MOD_MANA_REGENERATION, ITEM_MOD_MASTERY_RATING, ITEM_MOD_PARRY_RATING, ITEM_MOD_RANGED_ATTACK_POWER, ITEM_MOD_RESILIENCE_RATING, ITEM_MOD_SPELL_PENETRATION, ITEM_MOD_SPELL_POWER, ITEM_MOD_SPIRIT, ITEM_MOD_STAMINA, ITEM_MOD_STRENGTH, m_spellPenetrationItemMod, PLAYER_FIELD_MOD_TARGET_RESISTANCE, SHIELD_BLOCK_VALUE, sItemReforgeStore, ItemReforgeEntry::SourceMultiplier, ItemReforgeEntry::SourceStat, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, TOTAL_VALUE, UNIT_MOD_ATTACK_POWER, UNIT_MOD_ATTACK_POWER_RANGED, UNIT_MOD_HEALTH, UNIT_MOD_MANA, UNIT_MOD_STAT_AGILITY, UNIT_MOD_STAT_INTELLECT, UNIT_MOD_STAT_SPIRIT, UNIT_MOD_STAT_STAMINA, and UNIT_MOD_STAT_STRENGTH.
Referenced by ApplyEnchantment(), and WorldSession::HandleReforgeItemOpcode().
| T Player::ApplySpellMod | ( | uint32 | spellId, |
| SpellModOp | op, | ||
| T & | basevalue, | ||
| Spell * | spell = NULL ) |
Definition at line 3623 of file Player.h.
References ASSERT, CalculatePct(), SpellModifier::charges, DropModCharge(), IsAffectedBySpellmod(), m_spellMods, m_spellModTakingSpell, SpellModifier::op, SpellModifier::ownerAura, SPELLMOD_CASTING_TIME, SPELLMOD_FLAT, SPELLMOD_PCT, sSpellMgr, SpellModifier::type, and SpellModifier::value.
Referenced by AddSpellAndCategoryCooldowns(), Aura::CalcMaxDuration(), AuraEffect::CalculatePeriodic(), CastItemCombatSpell(), Unit::HandleDummyAuraProc(), and Spell::HandleHolyPower().
| void Player::ApplySpellPenetrationBonus | ( | int32 | amount, |
| bool | apply ) |
Definition at line 199 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 119 of file StatSystem.cpp.
References _ModifyUInt32(), Object::ApplyModUInt32Value(), Unit::HasAuraType(), m_baseSpellPower, MAX_SPELL_SCHOOL, PLAYER_FIELD_MOD_DAMAGE_DONE_POS, PLAYER_FIELD_MOD_HEALING_DONE_POS, SPELL_AURA_OVERRIDE_AP_BY_SPELL_POWER_PCT, SPELL_AURA_OVERRIDE_SPELL_POWER_BY_AP_PCT, SPELL_SCHOOL_HOLY, and UpdateAttackPowerAndDamage().
Referenced by _ApplyItemBonuses(), ApplyEnchantment(), and ApplyReforgeEnchantment().
| void Player::AreaExploredOrEventHappens | ( | uint32 | questId | ) |
Definition at line 1572 of file PlayerQuestState.cpp.
References CanCompleteQuest(), CompleteQuest(), QuestStatusData::Explored, FindQuestSlot(), m_QuestStatus, m_QuestStatusSave, and MAX_QUEST_LOG_SIZE.
Referenced by LuaPlayer::AreaExploredOrEventHappens(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DamageTaken(), Spell::EffectQuestComplete(), SmartAI::EndPath(), GroupEventHappens(), WorldSession::HandleAreaTriggerOpcode(), at_bring_your_orphan_to::OnTrigger(), npc_doctor::npc_doctorAI::PatientSaved(), Map::ScriptsProcess(), npc_commander_dawnforge::npc_commander_dawnforgeAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), and npc_skywing::npc_skywingAI::WaypointReached().
|
inline |
Definition at line 1594 of file Player.h.
References AutoStoreLoot(), NULL_BAG, and NULL_SLOT.
| void Player::AutoStoreLoot | ( | uint8 | bag, |
| uint8 | slot, | ||
| uint32 | loot_id, | ||
| LootStore const & | store, | ||
| bool | broadcast = false ) |
Definition at line 20654 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 AutoStoreLoot(), Group::CountTheRoll(), Spell::EffectCreateItem2(), Spell::EffectCreateRandomItem(), and AuraEffect::HandlePeriodicTriggerSpellAuraTick().
| void Player::AutoUnequipOffhandIfNeed | ( | bool | force = false | ) |
Definition at line 19517 of file Player.cpp.
References MailDraft::AddItem(), Unit::CanDualWield(), CanStoreItem(), CanTitanGrip(), CharacterDatabase, Item::DeleteFromInventoryDB(), EQUIP_ERR_OK, EQUIPMENT_SLOT_OFFHAND, GetItemByPos(), GetSession(), WorldSession::GetSkyFireString(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, ItemTemplate::InventoryType, INVTYPE_2HWEAPON, INVTYPE_WEAPON, INVTYPE_WEAPONOFFHAND, IsTwoHandUsed(), LANG_NOT_EQUIPPED_ITEM, MAIL_CHECK_MASK_COPIED, MAIL_STATIONERY_GM, MoveItemFromInventory(), NULL_BAG, NULL_SLOT, RemoveItem(), Item::SaveToDB(), MailDraft::SendMailTo(), and StoreItem().
Referenced by _StoreOrEquipNewItem(), Spell::EffectSummonChangeItem(), FindEquipSlot(), removeSpell(), SplitItem(), StoreNewItemInBestSlots(), SwapItem(), and UpdateZone().
| Item * Player::BankItem | ( | ItemPosCountVec const & | dest, |
| Item * | pItem, | ||
| bool | update ) |
Definition at line 2212 of file PlayerStorage.cpp.
References StoreItem().
Referenced by _LoadInventory(), Spell::EffectSummonChangeItem(), SplitItem(), and SwapItem().
| void Player::BindToInstance | ( | ) |
Definition at line 13987 of file Player.cpp.
References _pendingBindId, BindToInstance(), ByteBuffer::FlushBits(), GetSession(), IsGameMaster(), WorldSession::SendCalendarRaidLockout(), WorldSession::SendPacket(), sInstanceSaveMgr, SMSG_INSTANCE_SAVE_CREATED, and ByteBuffer::WriteBit().
Referenced by _LoadBoundInstances(), BindToInstance(), and Update().
| InstancePlayerBind * Player::BindToInstance | ( | InstanceSave * | save, |
| bool | permanent, | ||
| bool | load = false ) |
Definition at line 13932 of file Player.cpp.
References InstanceSave::AddPlayer(), CHAR_INS_CHAR_INSTANCE, CHAR_UPD_CHAR_INSTANCE, CharacterDatabase, InstanceSave::GetDifficulty(), Object::GetGUIDLow(), InstanceSave::GetInstanceId(), InstanceSave::GetMapId(), WorldObject::GetName(), m_boundInstances, InstancePlayerBind::perm, InstanceSave::RemovePlayer(), InstancePlayerBind::save, PreparedStatement::setBool(), InstanceSave::SetCanReset(), PreparedStatement::setUInt32(), SF_LOG_DEBUG, and sScriptMgr.
Referenced by InstanceMap::AddPlayerToMap(), LuaPlayer::BindToInstance(), misc_commandscript::HandleAppearCommand(), and InstanceMap::PermBindAllPlayers().
|
overridevirtual |
Reimplemented from Object.
Definition at line 4626 of file Player.cpp.
References BANK_SLOT_BAG_END, Object::BuildCreateUpdateBlockForPlayer(), EQUIPMENT_SLOT_END, INVENTORY_SLOT_BAG_START, m_items, and Player().
Referenced by Map::SendInitSelf().
| void Player::BuildEnchantmentsInfoData | ( | WorldPacket * | data | ) |
Definition at line 21313 of file Player.cpp.
References ByteBuffer::appendPackGUID(), EQUIPMENT_SLOT_END, Item::GetEnchantmentId(), Object::GetEntry(), GetItemByPos(), Object::GetUInt64Value(), INVENTORY_SLOT_BAG_0, ITEM_FIELD_CREATOR, MAX_ENCHANTMENT_SLOT, ByteBuffer::put(), and ByteBuffer::wpos().
|
static |
Definition at line 1860 of file Player.cpp.
References ByteBuffer::append(), AT_LOGIN_CHANGE_FACTION, AT_LOGIN_CHANGE_RACE, AT_LOGIN_CUSTOMIZE, AT_LOGIN_FIRST, AT_LOGIN_RENAME, SpellItemEnchantmentEntry::aura_id, CHAR_CUSTOMIZE_FLAG_CUSTOMIZE, CHAR_CUSTOMIZE_FLAG_FACTION, CHAR_CUSTOMIZE_FLAG_RACE, CHARACTER_FLAG_DECLINED, CHARACTER_FLAG_GHOST, CHARACTER_FLAG_HIDE_CLOAK, CHARACTER_FLAG_HIDE_HELM, CHARACTER_FLAG_LOCKED_BY_BILLING, CHARACTER_FLAG_RENAME, CLASS_DEATH_KNIGHT, CLASS_HUNTER, CLASS_WARLOCK, CONFIG_DECLINED_NAMES_USED, ItemTemplate::DisplayInfoID, CreatureTemplate::family, Field::GetFloat(), Field::GetString(), Field::GetUInt16(), Field::GetUInt32(), GetUInt32ValueFromArray(), Field::GetUInt8(), HIGHGUID_GUILD, HIGHGUID_PLAYER, INVENTORY_SLOT_BAG_END, ItemTemplate::InventoryType, MAKE_NEW_GUID(), PERM_ENCHANTMENT_SLOT, PLAYER_FLAGS_GHOST, PLAYER_FLAGS_HIDE_CLOAK, PLAYER_FLAGS_HIDE_HELM, sObjectMgr, sSpellItemEnchantmentStore, sWorld, TEMP_ENCHANTMENT_SLOT, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), and ByteBuffer::WriteByteSeq().
Referenced by WorldSession::HandleCharEnum().
| void Player::BuildPetTalentsInfoData | ( | WorldPacket * | data | ) |
Definition at line 21234 of file Player.cpp.
References Creature::GetCreatureTemplate(), Pet::GetFreeTalentPoints(), GetPet(), CreatureFamilyEntry::petTalentType, ByteBuffer::put(), sCreatureFamilyStore, and ByteBuffer::wpos().
| void Player::BuildPlayerRepop | ( | ) |
Definition at line 5152 of file Player.cpp.
References Map::AddToMap(), Skyfire::PlayerPackets::BuildPreResurrectPacket(), Unit::CastSpell(), CreateCorpse(), GetCorpse(), Object::GetGUID(), Object::GetGUIDLow(), WorldObject::GetMap(), WorldObject::GetName(), Unit::getRace(), GetSession(), Unit::HasUnitState(), RACE_NIGHTELF, Object::RemoveFlag(), Corpse::ResetGhostTime(), WorldSession::SendPacket(), Object::SetByteValue(), Unit::SetHealth(), Unit::SetRooted(), Unit::SetWaterWalking(), SF_LOG_ERROR, StopMirrorTimers(), UNIT_BYTE1_FLAG_ALWAYS_STAND, UNIT_FIELD_ANIM_TIER, UNIT_FIELD_FLAGS, UNIT_FLAG_SKINNABLE, and UNIT_STATE_STUNNED.
Referenced by WorldSession::HandleRepopRequestOpcode(), RemovedInsignia(), and Update().
| void Player::BuildPlayerTalentsInfoData | ( | WorldPacket * | data | ) |
Definition at line 21189 of file Player.cpp.
References ByteBuffer::bitwpos(), ByteBuffer::FlushBits(), GetActiveSpec(), Unit::getClass(), GetGlyph(), GetSpecsCount(), GetTalentSpecialization(), HasTalent(), MAX_GLYPH_SLOT_INDEX, TalentEntry::playerClass, ByteBuffer::PutBits(), TalentEntry::SpellId, sTalentStore, TalentEntry::TalentID, and ByteBuffer::WriteBits().
Referenced by SendTalentsInfoData().
| bool Player::BuyCurrencyFromVendorSlot | ( | ObjectGuid | VendorGUID, |
| uint32 | vendorSlot, | ||
| uint32 | currency, | ||
| uint32 | count ) |
Definition at line 17023 of file Player.cpp.
References BUY_ERR_CANT_FIND_ITEM, BUY_ERR_DISTANCE_TOO_FAR, BUY_ERR_REPUTATION_REQUIRE, DestroyItemCount(), VendorItemData::Empty(), EQUIP_ERR_CANT_BUY_QUANTITY, EQUIP_ERR_CANT_EQUIP_RANK, EQUIP_ERR_VENDOR_MISSING_TURNINS, VendorItem::ExtendedCost, GetGuildId(), GetGuildLevel(), VendorItemData::GetItem(), VendorItemData::GetItemCount(), GetMaxPersonalArenaRatingRequirement(), GetNPCIfCanInteractWith(), GetReputationRank(), Creature::GetVendorItems(), GUID_LOPART(), HasAchieved(), HasCurrency(), HasItemCount(), Unit::IsAlive(), VendorItem::item, ITEM_EXT_COST_CURRENCY_REQ_IS_SEASON_EARNED_1, ITEM_EXT_COST_FLAG_REQUIRE_GUILD, ITEM_VENDOR_TYPE_CURRENCY, MAX_ITEM_EXT_COST_CURRENCIES, MAX_ITEM_EXT_COST_ITEMS, VendorItem::maxcount, ModifyCurrency(), ItemExtendedCostEntry::RequiredAchievement, ItemExtendedCostEntry::RequiredArenaSlot, ItemExtendedCostEntry::RequiredCurrency, ItemExtendedCostEntry::RequiredCurrencyCount, ItemExtendedCostEntry::RequiredFactionId, ItemExtendedCostEntry::RequiredFactionStanding, ItemExtendedCostEntry::RequiredGuildLevel, ItemExtendedCostEntry::RequiredItem, ItemExtendedCostEntry::RequiredItemCount, ItemExtendedCostEntry::RequiredPersonalArenaRating, ItemExtendedCostEntry::RequirementFlags, sCurrencyTypesStore, SendBuyFailed(), SendEquipError(), SF_LOG_DEBUG, SF_LOG_ERROR, sItemExtendedCostStore, VendorItem::Type, and UNIT_NPC_FLAG_VENDOR.
Referenced by WorldSession::HandleBuyItemOpcode().
| bool Player::BuyItemFromVendorSlot | ( | uint64 | vendorguid, |
| uint32 | vendorslot, | ||
| uint32 | item, | ||
| uint8 | count, | ||
| uint8 | bag, | ||
| uint8 | slot ) |
Definition at line 17183 of file Player.cpp.
References _StoreOrEquipNewItem(), ItemTemplate::BuyCount, ItemTemplate::BuyPrice, CalculatePct(), CONFIG_EXPANSION, VendorItemData::Empty(), EQUIP_ERR_CANT_BUY_QUANTITY, EQUIP_ERR_CANT_EQUIP_RANK, EQUIP_ERR_CANT_EQUIP_REPUTATION, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_NOT_ENOUGH_MONEY, EQUIP_ERR_NOT_EQUIPPABLE, EQUIP_ERR_OUT_OF_RANGE, EQUIP_ERR_VENDOR_MISSING_TURNINS, EQUIP_ERR_VENDOR_SOLD_OUT, EQUIP_ERR_WRONG_SLOT, VendorItem::ExtendedCost, Object::GetGUID(), GetGuild(), GetGuildId(), GetGuildLevel(), VendorItemData::GetItem(), VendorItemData::GetItemCount(), GetMaxPersonalArenaRatingRequirement(), WorldObject::GetName(), GetNPCIfCanInteractWith(), GetReputationPriceDiscount(), GetReputationRank(), Unit::GetTotalAuraModifier(), Creature::GetVendorItemCurrentCount(), Creature::GetVendorItems(), GUID_LOPART(), GUILD_NEWS_ITEM_PURCHASED, HasAchieved(), HasCurrency(), HasEnoughMoney(), HasItemCount(), Unit::IsAlive(), IsEquipmentPos(), VendorItem::IsGoldRequired(), IsInventoryPos(), VendorItem::item, ITEM_EXT_COST_CURRENCY_REQ_IS_SEASON_EARNED_1, ITEM_EXT_COST_FLAG_REQUIRE_GUILD, ITEM_QUALITY_EPIC, ItemTemplate::ItemId, ItemTemplate::ItemLevel, MAX_BAG_SIZE, MAX_ITEM_EXT_COST_CURRENCIES, MAX_ITEM_EXT_COST_ITEMS, MAX_MONEY_AMOUNT, VendorItem::maxcount, MinNewsItemLevel, NULL_BAG, NULL_SLOT, ItemTemplate::Quality, ItemExtendedCostEntry::RequiredAchievement, ItemExtendedCostEntry::RequiredArenaSlot, ItemExtendedCostEntry::RequiredCurrency, ItemExtendedCostEntry::RequiredCurrencyCount, ItemExtendedCostEntry::RequiredFactionId, ItemExtendedCostEntry::RequiredFactionStanding, ItemExtendedCostEntry::RequiredGuildLevel, ItemExtendedCostEntry::RequiredItem, ItemExtendedCostEntry::RequiredItemCount, ItemExtendedCostEntry::RequiredPersonalArenaRating, ItemTemplate::RequiredReputationFaction, ItemTemplate::RequiredReputationRank, ItemExtendedCostEntry::RequirementFlags, sCurrencyTypesStore, SendEquipError(), SF_LOG_DEBUG, SF_LOG_ERROR, sItemExtendedCostStore, sObjectMgr, SPELL_AURA_MOD_VENDOR_ITEMS_PRICES, sWorld, and UNIT_NPC_FLAG_VENDOR.
Referenced by WorldSession::HandleBuyItemInSlotOpcode(), and WorldSession::HandleBuyItemOpcode().
| void Player::CalculateMinMaxDamage | ( | WeaponAttackType | attType, |
| bool | normalized, | ||
| bool | addTotalPct, | ||
| float & | min_damage, | ||
| float & | max_damage ) |
Definition at line 380 of file StatSystem.cpp.
References BASE_ATTACK, BASE_ATTACK_TIME, BASE_MAXDAMAGE, BASE_MINDAMAGE, BASE_PCT, BASE_VALUE, Unit::CanUseAttackType(), FORM_BEAR, FORM_CAT, Unit::GetAPMultiplier(), Unit::GetModifierValue(), Unit::GetShapeshiftForm(), Unit::GetTotalAttackPowerValue(), Unit::GetWeaponDamageRange(), GetWeaponForAttack(), 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.
Referenced by Unit::CalculateDamage(), and UpdateDamagePhysical().
| int32 Player::CalculateReputationGain | ( | ReputationSource | source, |
| uint32 | creatureOrQuestLevel, | ||
| int32 | rep, | ||
| int32 | faction, | ||
| bool | noQuestBonus = false ) |
Definition at line 7105 of file Player.cpp.
References CalculatePct(), Skyfire::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 20794 of file Player.cpp.
References Unit::getLevel().
Referenced by InitTalentForLevel().
| bool Player::CanAddQuest | ( | Quest const * | quest, |
| bool | msg ) |
Definition at line 257 of file PlayerQuestState.cpp.
References CanStoreNewItem(), EQUIP_ERR_ITEM_MAX_COUNT, EQUIP_ERR_OK, Quest::GetSrcItemId(), NULL_BAG, NULL_SLOT, QUEST_SOURCE_ITEM_COUNT, SatisfyQuestLog(), and SendEquipError().
Referenced by Spell::EffectQuestStart(), WorldSession::HandlePushQuestToParty(), quest_commandscript::HandleQuestAdd(), and SendPreparedQuest().
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
Definition at line 18082 of file Player.cpp.
References Object::GetGUID(), Object::GetUInt64Value(), m_mover, PLAYER_FIELD_FARSIGHT_OBJECT, and WorldObject::WorldObject().
| InventoryResult Player::CanBankItem | ( | uint8 | bag, |
| uint8 | slot, | ||
| ItemPosCountVec & | dest, | ||
| Item * | pItem, | ||
| bool | swap, | ||
| bool | not_loading = true ) const |
Definition at line 1468 of file PlayerStorage.cpp.
References ItemTemplate::BagFamily, BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, BANK_SLOT_ITEM_END, BANK_SLOT_ITEM_START, CanStoreItem_InBag(), CanStoreItem_InInventorySlots(), CanStoreItem_InSpecificSlot(), CanTakeMoreSimilarItems(), CanUseItem(), 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, GetBankBagSlotCount(), Item::GetCount(), Object::GetEntry(), Object::GetGUIDLow(), WorldObject::GetName(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, Item::IsBag(), Item::IsBindedNotWith(), Item::IsCurrencyToken(), Item::IsNotEmptyBag(), ItemTemplate::ItemId, Item::m_lootGenerated, NULL_BAG, NULL_SLOT, SF_LOG_DEBUG, SF_LOG_ERROR, and ItemTemplate::Stackable.
Referenced by _LoadInventory(), Spell::EffectSummonChangeItem(), SplitItem(), and SwapItem().
|
inline |
Definition at line 2613 of file Player.h.
References m_canBlock.
Referenced by LuaPlayer::CanBlock(), and UpdateBlockPercentage().
| bool Player::CanCaptureTowerPoint | ( | ) |
Definition at line 20340 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 280 of file PlayerQuestState.cpp.
References QuestObjective::Amount, CanTakeQuest(), QuestStatusData::Explored, Quest::GetFlags(), GetQuestObjectiveCounter(), GetReputation(), GetReputationMgr(), HasEnoughMoney(), Quest::HasSpecialFlag(), HasSpell(), QuestObjective::Id, Quest::IsAutoComplete(), Quest::IsRepeatable(), Quest::m_questObjectives, m_QuestStatus, m_RewardedQuests, QuestObjective::ObjectId, QUEST_FLAGS_AUTOCOMPLETE, QUEST_OBJECTIVE_TYPE_DUMMY, QUEST_OBJECTIVE_TYPE_FACTION_REP, QUEST_OBJECTIVE_TYPE_FACTION_REP2, QUEST_OBJECTIVE_TYPE_MONEY, QUEST_OBJECTIVE_TYPE_SPELL, QUEST_SPECIAL_FLAGS_EXPLORATION_OR_EVENT, QUEST_SPECIAL_FLAGS_TIMED, QUEST_STATUS_INCOMPLETE, sObjectMgr, QuestStatusData::Status, QuestStatusData::Timer, and QuestObjective::Type.
Referenced by AddQuest(), AreaExploredOrEventHappens(), Spell::EffectQuestStart(), WorldSession::HandlePushQuestToParty(), quest_commandscript::HandleQuestAdd(), ItemAddedQuestCheck(), KillCreditGO(), KilledMonsterCredit(), KilledPlayerCredit(), MoneyChanged(), QuestObjectiveSatisfy(), ReputationChangedQuestCheck(), SendPreparedQuest(), and TalkedToCreature().
| bool Player::CanCompleteRepeatableQuest | ( | Quest const * | quest | ) |
Definition at line 353 of file PlayerQuestState.cpp.
References CanRewardQuest(), CanTakeQuest(), HasItemCount(), Quest::m_questObjectives, and QUEST_OBJECTIVE_TYPE_ITEM.
Referenced by WorldSession::HandlePushQuestToParty(), and SendPreparedQuest().
|
inline |
Definition at line 2609 of file Player.h.
References m_canDodge.
| InventoryResult Player::CanEquipItem | ( | uint8 | slot, |
| uint16 & | dest, | ||
| Item * | pItem, | ||
| bool | swap, | ||
| bool | not_loading = true ) const |
Definition at line 1265 of file PlayerStorage.cpp.
References ItemTemplate::CanChangeEquipStateInCombat(), Unit::CanDualWield(), CanEquipUniqueItem(), CanStoreItem(), CanTakeMoreSimilarItems(), CanTitanGrip(), CanUnequipItem(), CanUseItem(), ItemTemplate::Class, 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, EQUIPMENT_SLOT_FINGER1, EQUIPMENT_SLOT_FINGER2, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_TRINKET1, EQUIPMENT_SLOT_TRINKET2, FindEquipSlot(), GetBattleground(), Item::GetCount(), Object::GetEntry(), GetItemByPos(), Unit::getLevel(), Item::GetTemplate(), Unit::HasUnitState(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, ItemTemplate::InventoryType, INVTYPE_2HWEAPON, INVTYPE_RELIC, INVTYPE_WEAPON, INVTYPE_WEAPONOFFHAND, Item::IsBindedNotWith(), Unit::IsInCombat(), Unit::IsNonMeleeSpellCasted(), IsTwoHandUsed(), ITEM_CLASS_QUIVER, ITEM_CLASS_WEAPON, ITEM_SUBCLASS_AMMO_POUCH, ITEM_SUBCLASS_WEAPON_POLEARM, Item::m_lootGenerated, m_weaponChangeTimer, ScalingStatDistributionEntry::MaxLevel, NULL_BAG, NULL_SLOT, ItemTemplate::ScalingStatDistribution, SF_LOG_DEBUG, sScalingStatDistributionStore, STATUS_IN_PROGRESS, ItemTemplate::SubClass, and UNIT_STATE_STUNNED.
Referenced by _LoadInventory(), LuaPlayer::CanEquipItem(), CanEquipNewItem(), Create(), Spell::EffectSummonChangeItem(), LuaPlayer::EquipItem(), SplitItem(), and SwapItem().
| InventoryResult Player::CanEquipNewItem | ( | uint8 | slot, |
| uint16 & | dest, | ||
| uint32 | item, | ||
| bool | swap ) const |
Definition at line 1251 of file PlayerStorage.cpp.
References CanEquipItem(), Item::CreateItem(), and EQUIP_ERR_ITEM_NOT_FOUND.
Referenced by _StoreOrEquipNewItem(), LuaPlayer::CanEquipItem(), and StoreNewItemInBestSlots().
| InventoryResult Player::CanEquipUniqueItem | ( | Item * | pItem, |
| uint8 | except_slot = NULL_SLOT, | ||
| uint32 | limit_count = 1 ) const |
Definition at line 3355 of file PlayerStorage.cpp.
References CanEquipUniqueItem(), EQUIP_ERR_OK, SpellItemEnchantmentEntry::GemID, Item::GetEnchantmentId(), Item::GetGemCountWithLimitCategory(), Item::GetTemplate(), Item::IsEquipped(), ItemTemplate::ItemLimitCategory, sObjectMgr, SOCK_ENCHANTMENT_SLOT, and sSpellItemEnchantmentStore.
Referenced by CanEquipItem(), and CanEquipUniqueItem().
| InventoryResult Player::CanEquipUniqueItem | ( | ItemTemplate const * | itemProto, |
| uint8 | except_slot = NULL_SLOT, | ||
| uint32 | limit_count = 1 ) const |
Definition at line 3388 of file PlayerStorage.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::Flags, HasItemOrGemWithIdEquipped(), HasItemOrGemWithLimitCategoryEquipped(), ITEM_PROTO_FLAG_UNIQUE_EQUIPPED, ItemTemplate::ItemId, ItemTemplate::ItemLimitCategory, ItemLimitCategoryEntry::maxCount, and sItemLimitCategoryStore.
|
inlineoverridevirtual |
Implements Unit.
Definition at line 3166 of file Player.h.
References WorldObject::m_movementInfo, and MOVEMENTFLAG_CAN_FLY.
Referenced by LuaPlayer::CanFly().
| bool Player::CanInteractWithQuestGiver | ( | Object * | questGiver | ) |
Definition at line 2818 of file Player.cpp.
References GAMEOBJECT_TYPE_QUESTGIVER, GetGameObjectIfCanInteractWith(), Object::GetGUID(), GetNPCIfCanInteractWith(), Object::GetTypeId(), Unit::IsAlive(), Object::Object(), Object::ToPlayer(), TYPEID_GAMEOBJECT, TYPEID_ITEM, TYPEID_PLAYER, TYPEID_UNIT, and UNIT_NPC_FLAG_QUESTGIVER.
| bool Player::CanJoinConstantChannelInZone | ( | ChatChannelsEntry const * | channel, |
| AreaTableEntry const * | zone ) |
Definition at line 5635 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, ChatChannelsEntry::flags, GetGuildId(), and AreaTableEntry::m_flags.
Referenced by UpdateLocalChannels().
| bool Player::CanJoinToBattleground | ( | Battleground const * | bg | ) | const |
Definition at line 18008 of file Player.cpp.
References GetSession(), Unit::HasAura(), 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().
| bool Player::CanNoReagentCast | ( | SpellInfo const * | spellInfo | ) | const |
Definition at line 19602 of file Player.cpp.
References SpellInfo::AttributesEx5, Object::GetUInt32Value(), Object::HasFlag(), PLAYER_FIELD_NO_REAGENT_COST_MASK, SPELL_ATTR5_NO_REAGENT_WHILE_PREP, SpellInfo::SpellFamilyFlags, UNIT_FIELD_FLAGS, and UNIT_FLAG_PREPARATION.
Referenced by Spell::CheckItems(), and Spell::TakeReagents().
|
inline |
Definition at line 2611 of file Player.h.
References m_canParry.
Referenced by LuaPlayer::CanParry(), and UpdateParryPercentage().
| bool Player::CanReportAfkDueToLimit | ( | ) |
| bool Player::CanRewardQuest | ( | Quest const * | quest, |
| bool | msg ) |
Definition at line 372 of file PlayerQuestState.cpp.
References QuestObjective::Amount, EQUIP_ERR_ITEM_NOT_FOUND, Quest::GetFlags(), GetItemCount(), Quest::GetQuestId(), GetQuestRewardStatus(), GetQuestStatus(), HasCurrency(), HasEnoughMoney(), Quest::IsAutoComplete(), Quest::IsDFQuest(), Quest::m_questObjectives, QuestObjective::ObjectId, QUEST_FLAGS_AUTOCOMPLETE, QUEST_OBJECTIVE_TYPE_CURRENCY, QUEST_OBJECTIVE_TYPE_ITEM, QUEST_OBJECTIVE_TYPE_MONEY, QUEST_STATUS_COMPLETE, SatisfyQuestDay(), SatisfyQuestMonth(), SatisfyQuestSeasonal(), SatisfyQuestWeek(), SendEquipError(), and QuestObjective::Type.
Referenced by CanCompleteRepeatableQuest(), CanRewardQuest(), lfg::LFGMgr::FinishDungeon(), WorldSession::SendLfgPlayerLockInfo(), and SendPreparedQuest().
Definition at line 425 of file PlayerQuestState.cpp.
References CanRewardQuest(), CanStoreNewItem(), EQUIP_ERR_OK, Quest::GetRewardPackageItemId(), Quest::GetRewChoiceItemCount(), Quest::GetRewChoiceItemsCount(), Quest::GetRewItemsCount(), Quest::IsRewChoiceItemValid(), NULL_BAG, NULL_SLOT, Quest::RewardItemId, Quest::RewardItemIdCount, and SendEquipError().
| InventoryResult Player::CanRollForItemInLFG | ( | ItemTemplate const * | item, |
| WorldObject const * | lootedObject ) const |
Definition at line 1751 of file PlayerStorage.cpp.
References ItemTemplate::AllowableClass, ItemTemplate::AllowableRace, ItemTemplate::Class, CLASS_DEATH_KNIGHT, CLASS_DRUID, CLASS_HUNTER, CLASS_MAGE, CLASS_MONK, 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, Unit::getClass(), Unit::getClassMask(), Map::GetDifficulty(), GetGroup(), Object::GetGUID(), Map::GetId(), Unit::getLevel(), WorldObject::GetMap(), Unit::getRaceMask(), GetSkillValue(), HasSpell(), ItemTemplate::InventoryType, 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, ITEM_SUBCLASS_LEATHER, MAX_ITEM_SUBCLASS_WEAPON, ItemTemplate::RequiredSkill, ItemTemplate::RequiredSkillRank, ItemTemplate::RequiredSpell, SKILL_2H_AXES, SKILL_2H_MACES, SKILL_2H_SWORDS, SKILL_AXES, SKILL_BOWS, SKILL_CROSSBOWS, SKILL_DAGGERS, SKILL_FISHING, SKILL_FIST_WEAPONS, SKILL_GUNS, SKILL_MACES, SKILL_POLEARMS, SKILL_STAVES, SKILL_SWORDS, SKILL_WANDS, sLFGMgr, ItemTemplate::SubClass, and WorldObject::WorldObject().
Referenced by Group::NeedBeforeGreed().
| bool Player::CanSeeSpellClickOn | ( | Creature const * | creature | ) | const |
Definition at line 21165 of file Player.cpp.
References Vehicle::GetCreatureEntry(), Object::GetEntry(), Unit::GetVehicleKit(), Object::HasFlag(), Player(), sConditionMgr, sObjectMgr, UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_SPELLCLICK.
Referenced by Unit::BuildValuesUpdate().
| bool Player::CanSeeStartQuest | ( | Quest const * | quest | ) |
Definition at line 230 of file PlayerQuestState.cpp.
References CONFIG_QUEST_HIGH_LEVEL_HIDE_DIFF, DISABLE_TYPE_QUEST, Unit::getLevel(), Quest::GetMinLevel(), Quest::GetQuestId(), DisableMgr::IsDisabledFor(), SatisfyQuestClass(), SatisfyQuestDay(), SatisfyQuestExclusiveGroup(), SatisfyQuestMonth(), SatisfyQuestNextChain(), SatisfyQuestPrevChain(), SatisfyQuestPreviousQuest(), SatisfyQuestRace(), SatisfyQuestReputation(), SatisfyQuestSeasonal(), SatisfyQuestSkill(), SatisfyQuestWeek(), and sWorld.
Referenced by WorldSession::getDialogStatus().
| bool Player::CanShareQuest | ( | uint32 | questId | ) | const |
Definition at line 1390 of file PlayerQuestState.cpp.
References Quest::HasFlag(), m_QuestStatus, QUEST_FLAGS_PUSHABLE, QUEST_STATUS_INCOMPLETE, and sObjectMgr.
Referenced by LuaPlayer::CanShareQuest(), and WorldSession::HandleQuestConfirmAccept().
| bool Player::CanSpeak | ( | ) | const |
Definition at line 15397 of file Player.cpp.
References GetSession(), and WorldSession::m_muteTime.
Referenced by LuaPlayer::CanSpeak(), WorldSession::HandleMessagechatOpcode(), and misc_commandscript::HandleUnmuteCommand().
| InventoryResult Player::CanStoreItem | ( | uint8 | bag, |
| uint8 | slot, | ||
| ItemPosCountVec & | dest, | ||
| Item * | pItem, | ||
| bool | swap = false ) const |
Definition at line 506 of file PlayerStorage.cpp.
References CanStoreItem(), EQUIP_ERR_ITEM_NOT_FOUND, Item::GetCount(), and Object::GetEntry().
Referenced by _LoadInventory(), AutoUnequipOffhandIfNeed(), CanEquipItem(), CanStoreItem(), CanStoreNewItem(), Create(), Spell::EffectSummonChangeItem(), WorldSession::moveItems(), SplitItem(), and SwapItem().
| InventoryResult Player::CanStoreItem | ( | uint8 | bag, |
| uint8 | slot, | ||
| ItemPosCountVec & | dest, | ||
| uint32 | entry, | ||
| uint32 | count, | ||
| Item * | pItem = NULL, | ||
| bool | swap = false, | ||
| uint32 * | no_space_count = NULL ) const |
Definition at line 701 of file PlayerStorage.cpp.
References ItemTemplate::BagFamily, CanStoreItem_InBag(), CanStoreItem_InInventorySlots(), CanStoreItem_InSpecificSlot(), CanTakeMoreSimilarItems(), 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, INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, Item::IsBindedNotWith(), Item::IsNotEmptyBag(), Item::m_lootGenerated, NULL_BAG, NULL_SLOT, SF_LOG_DEBUG, sObjectMgr, and ItemTemplate::Stackable.
|
private |
Definition at line 580 of file PlayerStorage.cpp.
References Item::CanBeMergedPartlyWith(), ItemTemplate::Class, EQUIP_ERR_DESTROY_NONEMPTY_BAG, EQUIP_ERR_OK, EQUIP_ERR_WRONG_BAG_TYPE, GetBagByPos(), Bag::GetBagSize(), Item::GetCount(), GetItemByPos(), ItemTemplate::GetMaxStackSize(), Item::GetTemplate(), ItemPosCount::isContainedIn(), Item::IsNotEmptyBag(), ITEM_CLASS_CONTAINER, ITEM_SUBCLASS_CONTAINER, ItemCanGoIntoBag(), and ItemTemplate::SubClass.
Referenced by CanBankItem(), and CanStoreItem().
|
private |
Definition at line 650 of file PlayerStorage.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 514 of file PlayerStorage.cpp.
References BUYBACK_SLOT_END, BUYBACK_SLOT_START, Item::CanBeMergedPartlyWith(), ItemTemplate::ContainerSlots, EQUIP_ERR_DESTROY_NONEMPTY_BAG, EQUIP_ERR_OK, EQUIP_ERR_WRONG_BAG_TYPE, GetBagByPos(), Item::GetCount(), GetItemByPos(), ItemTemplate::GetMaxStackSize(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, IsBagPos(), ItemPosCount::isContainedIn(), Item::IsNotEmptyBag(), ItemCanGoIntoBag(), and PLAYER_SLOT_END.
Referenced by CanBankItem(), and CanStoreItem().
| InventoryResult Player::CanStoreItems | ( | Item ** | pItem, |
| int | count ) const |
Definition at line 995 of file PlayerStorage.cpp.
References ItemTemplate::BagFamily, Item::CanBeMergedPartlyWith(), CanTakeMoreSimilarItems(), ItemTemplate::Class, EQUIP_ERR_INV_FULL, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_LOOT_GONE, EQUIP_ERR_NOT_OWNER, EQUIP_ERR_OK, GetBagByPos(), Item::GetCount(), Object::GetEntry(), GetItemByPos(), ItemTemplate::GetMaxStackSize(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, Item::IsBindedNotWith(), Item::IsInTrade(), ITEM_CLASS_CONTAINER, ITEM_SUBCLASS_CONTAINER, ItemCanGoIntoBag(), Item::m_lootGenerated, MAX_BAG_SIZE, SF_LOG_DEBUG, ItemTemplate::Stackable, and ItemTemplate::SubClass.
Referenced by WorldSession::HandleAcceptTradeOpcode().
| InventoryResult Player::CanStoreNewItem | ( | uint8 | bag, |
| uint8 | slot, | ||
| ItemPosCountVec & | dest, | ||
| uint32 | item, | ||
| uint32 | count, | ||
| uint32 * | no_space_count = NULL ) const |
Definition at line 501 of file PlayerStorage.cpp.
References CanStoreItem().
Referenced by _StoreOrEquipNewItem(), LuaPlayer::AddItem(), AddItem(), AutoStoreLoot(), CanAddQuest(), CanRewardQuest(), Spell::CheckItems(), Group::CountTheRoll(), Spell::DoCreateItem(), GiveQuestSourceItem(), misc_commandscript::HandleAddItemCommand(), misc_commandscript::HandleAddItemSetCommand(), AuraEffect::HandleChannelDeathItem(), OPvPCapturePointNA::HandleCustomSpell(), WorldSession::HandleLootMasterGiveOpcode(), quest_commandscript::HandleQuestComplete(), WorldSession::HandleVoidStorageTransfer(), RefundItem(), RemovePet(), RewardQuest(), npc_aquementas::npc_aquementasAI::SendItem(), StoreLootItem(), and StoreNewItemInBestSlots().
|
inline |
Definition at line 1565 of file Player.h.
References CanTakeMoreSimilarItems(), Item::GetCount(), and Object::GetEntry().
Referenced by CanBankItem(), CanEquipItem(), CanStoreItem(), CanStoreItems(), CanTakeMoreSimilarItems(), and CanTakeMoreSimilarItems().
|
inline |
Definition at line 1569 of file Player.h.
References CanTakeMoreSimilarItems().
| InventoryResult Player::CanTakeMoreSimilarItems | ( | uint32 | entry, |
| uint32 | count, | ||
| Item * | pItem, | ||
| uint32 * | no_space_count = NULL ) const |
Definition at line 447 of file PlayerStorage.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, GetItemCount(), GetItemCountWithLimitCategory(), ITEM_LIMIT_CATEGORY_MODE_HAVE, ItemTemplate::ItemId, ItemTemplate::ItemLimitCategory, Item::m_lootGenerated, ItemTemplate::MaxCount, ItemLimitCategoryEntry::maxCount, ItemLimitCategoryEntry::mode, sItemLimitCategoryStore, and sObjectMgr.
| bool Player::CanTakeQuest | ( | Quest const * | quest, |
| bool | msg ) |
Definition at line 244 of file PlayerQuestState.cpp.
References DISABLE_TYPE_QUEST, Quest::GetQuestId(), DisableMgr::IsDisabledFor(), SatisfyQuestClass(), SatisfyQuestConditions(), SatisfyQuestDay(), SatisfyQuestExclusiveGroup(), SatisfyQuestLevel(), SatisfyQuestMonth(), SatisfyQuestNextChain(), SatisfyQuestPrevChain(), SatisfyQuestPreviousQuest(), SatisfyQuestRace(), SatisfyQuestReputation(), SatisfyQuestSeasonal(), SatisfyQuestSkill(), SatisfyQuestStatus(), SatisfyQuestTimed(), and SatisfyQuestWeek().
Referenced by CanCompleteQuest(), CanCompleteRepeatableQuest(), Spell::EffectQuestComplete(), Spell::EffectQuestStart(), WorldSession::getDialogStatus(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), PrepareQuestMenu(), and SendPreparedQuest().
|
inline |
Definition at line 2624 of file Player.h.
References Unit::HasAuraType(), IsGameMaster(), and SPELL_AURA_ALLOW_TAME_PET_TYPE.
Referenced by LuaPlayer::CanTameExoticPets(), spell_hun_tame_beast::spell_hun_tame_beast_SpellScript::CheckCast(), npc_commandscript::HandleNpcTameCommand(), and Pet::LoadPetFromDB().
|
inline |
Definition at line 2616 of file Player.h.
References m_canTitanGrip.
Referenced by AutoUnequipOffhandIfNeed(), CanEquipItem(), LuaPlayer::CanTitanGrip(), FindEquipSlot(), and IsTwoHandUsed().
| InventoryResult Player::CanUnequipItem | ( | uint16 | src, |
| bool | swap ) const |
Definition at line 1427 of file PlayerStorage.cpp.
References ItemTemplate::CanChangeEquipStateInCombat(), 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(), GetItemByPos(), Item::GetTemplate(), IsBagPos(), IsEquipmentPos(), Unit::IsInCombat(), Item::IsNotEmptyBag(), Item::m_lootGenerated, SF_LOG_DEBUG, and STATUS_IN_PROGRESS.
Referenced by CanEquipItem(), CanUnequipItems(), DestroyItemCount(), and SwapItem().
| InventoryResult Player::CanUnequipItems | ( | uint32 | item, |
| uint32 | count ) const |
Definition at line 1205 of file PlayerStorage.cpp.
References CanUnequipItem(), EQUIP_ERR_OK, 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 TakeQuestSourceItem().
| PartyResult Player::CanUninviteFromGroup | ( | ) | const |
Definition at line 20050 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(), Group::GetGUID(), Object::GetGUID(), Group::GetMembersCount(), InBattleground(), Group::IsAssistant(), Group::IsLeader(), Group::isLFGGroup(), Group::isRollLootActive(), lfg::LFG_GROUP_KICK_VOTES_NEEDED, lfg::LFG_STATE_FINISHED_DUNGEON, GroupReference::next(), and sLFGMgr.
Referenced by WorldSession::HandleGroupUninviteGuidOpcode().
| bool Player::CanUseBattlegroundObject | ( | GameObject * | gameobject | ) |
Definition at line 20321 of file Player.cpp.
References GAMEOBJECT_FIELD_FACTION_TEMPLATE, Unit::GetFactionTemplateEntry(), Object::GetUInt32Value(), Unit::HasAura(), Unit::IsAlive(), FactionTemplateEntry::IsFriendlyTo(), isTotalImmune(), sFactionTemplateStore, and SPELL_RECENTLY_DROPPED_FLAG.
Referenced by GameObject::Use().
| InventoryResult Player::CanUseItem | ( | Item * | pItem, |
| bool | not_loading = true ) const |
Definition at line 1654 of file PlayerStorage.cpp.
References CanUseItem(), ItemTemplate::Class, 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, Unit::getClass(), Object::GetEntry(), GetReputationRank(), Item::GetSkill(), GetSkillValue(), Item::GetTemplate(), HasSkill(), Unit::IsAlive(), Item::IsBindedNotWith(), ITEM_CLASS_ARMOR, ITEM_QUALITY_HEIRLOOM, ItemTemplate::Quality, ItemTemplate::RequiredReputationFaction, ItemTemplate::RequiredReputationRank, SF_LOG_DEBUG, SKILL_MAIL, and SKILL_PLATE_MAIL.
Referenced by AuctionHouseObject::BuildListAuctionItems(), CanBankItem(), CanEquipItem(), LuaPlayer::CanUseItem(), and CanUseItem().
| InventoryResult Player::CanUseItem | ( | ItemTemplate const * | pItem | ) | const |
Definition at line 1712 of file PlayerStorage.cpp.
References ALLIANCE, ItemTemplate::AllowableClass, ItemTemplate::AllowableRace, 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_OK, EQUIP_ERR_PROFICIENCY_NEEDED, ItemTemplate::Flags2, Unit::getClassMask(), Unit::getLevel(), Unit::getRaceMask(), GetSkillValue(), GetTeam(), HasSpell(), ItemTemplate::HolidayId, HORDE, IsHolidayActive(), ITEM_FLAGS_EXTRA_ALLIANCE_ONLY, ITEM_FLAGS_EXTRA_HORDE_ONLY, ItemTemplate::RequiredLevel, ItemTemplate::RequiredSkill, ItemTemplate::RequiredSkillRank, and ItemTemplate::RequiredSpell.
| void Player::CastItemCombatSpell | ( | Unit * | target, |
| WeaponAttackType | attType, | ||
| uint32 | procVictim, | ||
| uint32 | procEx ) |
Definition at line 8913 of file Player.cpp.
References BASE_ATTACK, Unit::CanUseAttackType(), CastItemCombatSpell(), EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_START, GetItemByPos(), INVENTORY_SLOT_BAG_0, Unit::IsAlive(), Unit::IsInFeralForm(), IsUseEquipedWeapon(), ITEM_CLASS_WEAPON, OFF_ATTACK, RANGED_ATTACK, and Unit::Unit().
Referenced by CastItemCombatSpell(), Unit::DealMeleeDamage(), and Spell::DoAllEffectOnTarget().
| void Player::CastItemCombatSpell | ( | Unit * | target, |
| WeaponAttackType | attType, | ||
| uint32 | procVictim, | ||
| uint32 | procEx, | ||
| Item * | item, | ||
| ItemTemplate const * | proto ) |
Definition at line 8952 of file Player.cpp.
References SpellItemEnchantmentEntry::amount, ApplySpellMod(), Unit::CastSpell(), SpellEnchantProcEntry::customChance, ItemTemplate::Delay, Unit::FindCurrentSpellBySpellId(), Unit::GetAttackTime(), Item::GetEnchantmentId(), Object::GetGUIDLow(), WorldObject::GetName(), Unit::GetPPMProcChance(), Unit::GetWeaponProcChance(), SpellInfo::HasEffect(), SpellItemEnchantmentEntry::ID, SpellInfo::Id, SpellInfo::IsPositive(), ITEM_ENCHANTMENT_TYPE_COMBAT_SPELL, ITEM_SPELLTRIGGER_CHANCE_ON_HIT, Unit::m_extraAttacks, MAX_ENCHANTMENT_SLOT, MAX_ITEM_ENCHANTMENT_EFFECTS, MAX_ITEM_SPELLS, SpellEnchantProcEntry::PPMChance, PRISMATIC_ENCHANTMENT_SLOT, PROC_FLAG_TAKEN_DAMAGE, SpellInfo::ProcChance, SpellEnchantProcEntry::procEx, PROP_ENCHANTMENT_SLOT_0, roll_chance_f(), SF_LOG_ERROR, SPELL_EFFECT_ADD_EXTRA_ATTACKS, _Spell::SpellId, SpellItemEnchantmentEntry::spellid, SPELLMOD_CHANCE_OF_SUCCESS, ItemTemplate::SpellPPMRate, ItemTemplate::Spells, _Spell::SpellTrigger, sSpellItemEnchantmentStore, sSpellMgr, TEMP_ENCHANTMENT_SLOT, SpellItemEnchantmentEntry::type, and Unit::Unit().
| void Player::CastItemUseSpell | ( | Item * | item, |
| SpellCastTargets const & | targets, | ||
| uint8 | cast_count, | ||
| uint32 | glyphIndex, | ||
| SpellResearchData const * | researchData = NULL ) |
Definition at line 9064 of file Player.cpp.
References EQUIP_ERR_INTERNAL_BAG_ERROR, Item::GetEnchantmentId(), Object::GetEntry(), Item::GetTemplate(), SpellItemEnchantmentEntry::ID, ITEM_ENCHANTMENT_TYPE_USE_SPELL, ITEM_SPELLTRIGGER_ON_USE, ItemTemplate::ItemId, m_battlePetMgr, Spell::m_cast_count, Spell::m_CastItem, Spell::m_glyphIndex, Spell::m_researchData, MAX_ENCHANTMENT_SLOT, MAX_ITEM_ENCHANTMENT_EFFECTS, MAX_ITEM_PROTO_SPELLS, Spell::prepare(), PRISMATIC_ENCHANTMENT_SLOT, PROP_ENCHANTMENT_SLOT_0, sBattlePetItemXSpeciesStore, SendEquipError(), Spell::SetSpellValue(), SF_LOG_ERROR, _Spell::SpellId, SpellItemEnchantmentEntry::spellid, ItemTemplate::Spells, _Spell::SpellTrigger, SPELLVALUE_BASE_POINT0, sSpellItemEnchantmentStore, sSpellMgr, TRIGGERED_FULL_MASK, TRIGGERED_NONE, and SpellItemEnchantmentEntry::type.
Referenced by WorldSession::HandleUseItemOpcode().
| void Player::CharmSpellInitialize | ( | ) |
Definition at line 16142 of file Player.cpp.
References CharmInfo::BuildActionBar(), ByteBuffer::FlushBits(), UnitActionBarEntry::GetAction(), Unit::GetCharmInfo(), CharmInfo::GetCharmSpell(), CharmInfo::GetCommandState(), Unit::GetFirstControlled(), Object::GetGUID(), Creature::GetReactState(), GetSession(), Object::GetTypeId(), MAX_SPELL_CHARM, MAX_UNIT_ACTION_BAR_INDEX, WorldSession::SendPacket(), SF_LOG_ERROR, SMSG_PET_SPELLS_MESSAGE, Object::ToCreature(), TYPEID_PLAYER, UI64FMTD, Unit::Unit(), ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), and ByteBuffer::WriteByteSeq().
Referenced by Guardian::InitSummon(), Unit::SetCharmedBy(), and Unit::SetMinion().
| void Player::CheckAreaExploreAndOutdoor | ( | void | ) |
Definition at line 6996 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_EXPLORE_AREA, CONFIG_MAX_PLAYER_LEVEL, CONFIG_VMAP_INDOOR_CHECK, GetAreaEntryByAreaFlagAndMap(), Map::GetAreaFlag(), WorldObject::GetBaseMap(), Object::GetGUIDLow(), Unit::getLevel(), WorldLocation::GetMapId(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Object::GetUInt32Value(), GiveXP(), Unit::IsAlive(), Unit::IsInFlight(), AreaTableEntry::m_ExplorationLevel, AreaTableEntry::m_ID, PLAYER_EXPLORED_ZONES_SIZE, PLAYER_FIELD_EXPLORED_ZONES, RATE_XP_EXPLORE, Unit::RemoveAurasWithAttribute(), SendExplorationExperience(), Object::SetUInt32Value(), SF_LOG_ERROR, SF_LOG_INFO, sObjectMgr, SPELL_ATTR0_OUTDOORS_ONLY, sWorld, and UpdateAchievementCriteria().
Referenced by UpdatePosition().
| void Player::CheckDuelDistance | ( | time_t | currTime | ) |
Definition at line 8238 of file Player.cpp.
References duel, DUEL_FLED, DuelComplete(), Map::GetGameObject(), WorldObject::GetMap(), GetSession(), Object::GetUInt64Value(), WorldObject::IsWithinDistInMap(), PLAYER_FIELD_DUEL_ARBITER, WorldSession::SendPacket(), SMSG_DUEL_INBOUNDS, and SMSG_DUEL_OUTOFBOUNDS.
Referenced by Update().
| bool Player::CheckInstanceCount | ( | uint32 | instanceId | ) | const |
Definition at line 14223 of file Player.cpp.
References _instanceResetTimes, CONFIG_MAX_INSTANCES_PER_HOUR, and sWorld.
Referenced by MapManager::CanPlayerEnter().
| bool Player::CheckInstanceLoginValid | ( | ) |
Definition at line 14198 of file Player.cpp.
References WorldObject::FindMap(), GetGroup(), WorldObject::GetMap(), IsGameMaster(), and sMapMgr.
Referenced by WorldSession::HandlePlayerLogin().
|
static |
Definition at line 20770 of file Player.cpp.
References DIFFICULTY_NORMAL, MAP_DUNGEON, DifficultyEntry::maptype, and sDifficultyStore.
Referenced by LoadFromDB(), and Group::LoadGroupFromDB().
|
static |
Definition at line 20782 of file Player.cpp.
References DIFFICULTY_10MAN_NORMAL, MAP_RAID, DifficultyEntry::maptype, and sDifficultyStore.
Referenced by LoadFromDB(), and Group::LoadGroupFromDB().
| void Player::CleanupAfterTaxiFlight | ( | ) |
Definition at line 16748 of file Player.cpp.
References Unit::Dismount(), Unit::getHostileRefManager(), m_taxi, Object::RemoveFlag(), HostileRefManager::setOnlineOfflineState(), UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE, and UNIT_FLAG_TAXI_FLIGHT.
Referenced by misc_commandscript::HandleAppearCommand(), go_commandscript::HandleGoCreatureCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoObjectCommand(), go_commandscript::HandleGoTaxinodeCommand(), go_commandscript::HandleGoTicketCommand(), go_commandscript::HandleGoTriggerCommand(), go_commandscript::HandleGoXYZCommand(), go_commandscript::HandleGoZoneXYCommand(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleMoveSplineDoneOpcode(), WorldSession::HandleMoveWorldportAckOpcode(), misc_commandscript::HandleRecallCommand(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleCommand(), tele_commandscript::HandleTeleGroupCommand(), tele_commandscript::HandleTeleNameCommand(), SummonIfPossible(), and lfg::LFGMgr::TeleportPlayer().
| void Player::CleanupChannels | ( | ) |
Definition at line 5659 of file Player.cpp.
References ChannelMgr::forTeam(), Channel::GetName(), WorldObject::GetName(), GetTeam(), Channel::LeaveChannel(), m_channels, and SF_LOG_DEBUG.
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 802 of file Player.cpp.
References Unit::CleanupsBeforeDelete(), DUEL_INTERRUPTED, DuelComplete(), m_boundInstances, and TradeCancel().
Referenced by WorldSession::HandleCharCreateCallback().
|
inline |
Definition at line 2746 of file Player.h.
References m_bgData.
Referenced by Battleground::RemovePlayerAtLeave().
| void Player::ClearComboPoints | ( | ) |
Definition at line 18488 of file Player.cpp.
References Object::GetGUIDLow(), ObjectAccessor::GetUnit(), m_comboPoints, m_comboTarget, Unit::RemoveAurasByType(), SendComboPoints(), SPELL_AURA_RETAIN_COMBO_POINTS, and Unit::Unit().
Referenced by Unit::ClearAllReactives(), Unit::ClearComboPointHolders(), LuaPlayer::ClearComboPoints(), DuelComplete(), setDeathState(), and Unit::UpdateReactives().
|
inline |
Definition at line 2197 of file Player.h.
References _resurrectionData.
Referenced by WorldSession::HandleResurrectResponseOpcode(), setDeathState(), and ~Player().
|
inline |
Definition at line 3144 of file Player.h.
References WhisperList.
Referenced by message_commandscript::HandleWhispersCommand().
| void Player::CompletedAchievement | ( | AchievementEntry const * | entry | ) |
Definition at line 21048 of file Player.cpp.
References m_achievementMgr.
Referenced by BattlefieldWG::DoCompleteOrIncrementAchievement(), and achievement_commandscript::HandleAchievementAddCommand().
| void Player::CompleteQuest | ( | uint32 | quest_id | ) |
Definition at line 585 of file PlayerQuestState.cpp.
References FindQuestSlot(), WorldObject::GetZoneAndAreaId(), MAX_QUEST_LOG_SIZE, QUEST_FLAGS_TRACKING_EVENT, QUEST_STATE_COMPLETE, QUEST_STATUS_COMPLETE, RewardQuest(), SendQuestComplete(), SetQuestSlotState(), SetQuestStatus(), sObjectMgr, UpdateAreaDependentAuras(), UpdateForQuestWorldObjects(), and UpdateZoneDependentAuras().
Referenced by AddQuest(), AreaExploredOrEventHappens(), LuaPlayer::CompleteQuest(), Spell::EffectQuestComplete(), Spell::EffectQuestStart(), WorldSession::HandlePushQuestToParty(), quest_commandscript::HandleQuestAdd(), quest_commandscript::HandleQuestComplete(), ItemAddedQuestCheck(), KillCreditGO(), KilledMonsterCredit(), KilledPlayerCredit(), MoneyChanged(), QuestObjectiveSatisfy(), ReputationChangedQuestCheck(), SendPreparedQuest(), TalkedToCreature(), and npc_maxx_a_million_escort::npc_maxx_a_million_escortAI::WaypointReached().
| void Player::ContinueTaxiFlight | ( | ) |
Definition at line 16756 of file Player.cpp.
References Object::GetGUIDLow(), WorldLocation::GetMapId(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetSession(), GetTeam(), m_taxi, MAP_SIZE, TaxiPathNodeEntry::mapid, WorldSession::SendDoFlight(), SF_LOG_DEBUG, Path< PathElem, PathNode >::size(), sObjectMgr, sTaxiPathNodesByPath, TaxiPathNodeEntry::x, TaxiPathNodeEntry::y, and TaxiPathNodeEntry::z.
Referenced by WorldSession::HandlePlayerLogin(), and ProcessDelayedOperations().
convert the player's binds to the group
Definition at line 14099 of file Player.cpp.
References Group::BindToInstance(), Group::GetBoundInstance(), m_boundInstances, Player(), and UnbindInstance().
Referenced by Group::ChangeLeader(), and Group::Create().
Definition at line 20583 of file Player.cpp.
References GetSession(), WorldSession::SendPacket(), SetCurrentRune(), and SMSG_CONVERT_RUNE.
Referenced by AddRuneByAuraEffect(), RemoveRunesByAuraEffect(), and RestoreBaseRune().
| void Player::CorrectMetaGemEnchants | ( | uint8 | slot, |
| bool | apply ) |
Definition at line 17855 of file Player.cpp.
References ApplyEnchantment(), _Socket::Color, SpellItemEnchantmentEntry::EnchantmentCondition, EnchantmentFitsRequirements(), EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Item::GetEnchantmentId(), GetItemByPos(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, SOCK_ENCHANTMENT_SLOT, ItemTemplate::Socket, and sSpellItemEnchantmentStore.
Referenced by _ApplyItemMods().
| bool Player::Create | ( | uint32 | guidlow, |
| CharacterCreateInfo * | createInfo ) |
Definition at line 815 of file Player.cpp.
References Object::_Create(), PlayerInfo::action, addActionButton(), ALLIANCE, ItemTemplate::BuyCount, CanEquipItem(), CanStoreItem(), CharacterCreateInfo::Class, ItemTemplate::Class, CLASS_DEATH_KNIGHT, CONFIG_CURRENCY_START_CONQUEST_POINTS, CONFIG_CURRENCY_START_HONOR_POINTS, CONFIG_CURRENCY_START_JUSTICE_POINTS, CONFIG_GAME_TYPE, CONFIG_START_ALL_EXPLORED, CONFIG_START_ALL_REP, CONFIG_START_GM_LEVEL, CONFIG_START_HEROIC_PLAYER_LEVEL, CONFIG_START_PLAYER_LEVEL, CONFIG_START_PLAYER_MONEY, CURRENCY_TYPE_CONQUEST_POINTS, CURRENCY_TYPE_HONOR_POINTS, CURRENCY_TYPE_JUSTICE_POINTS, EQUIP_ERR_OK, EquipItem(), CharacterCreateInfo::Face, CharacterCreateInfo::FacialHair, CharacterCreateInfo::Gender, GetCharStartOutfitEntry(), Unit::getClass(), GetItemByPos(), Unit::GetMaxPower(), ItemTemplate::GetMaxStackSize(), Unit::getPowerType(), GetReputationMgr(), GetSession(), GetTeam(), CharacterCreateInfo::HairColor, CharacterCreateInfo::HairStyle, HIGHGUID_PLAYER, HORDE, InitDisplayIds(), InitGlyphsForLevel(), 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, KNOWN_TITLES_SIZE, learnDefaultSpells(), m_items, m_Last_tick, WorldObject::m_name, m_Played_time, m_session, PlayerInfo::mapId, MAX_OUTFIT_ITEMS, CharacterCreateInfo::Name, NULL_BAG, NULL_SLOT, OBJECT_FIELD_DATA, PlayerInfo::orientation, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_EXPLORED_ZONES_SIZE, PLAYER_FIELD_ARENA_FACTION, PLAYER_FIELD_COINAGE, PLAYER_FIELD_EXPLORED_ZONES, PLAYER_FIELD_GUILD_DELETE_DATE, PLAYER_FIELD_GUILD_RANK_ID, PLAYER_FIELD_HAIR_COLOR_ID, PLAYER_FIELD_KNOWN_TITLES, PLAYER_FIELD_LFG_BONUS_FACTION_ID, PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, PLAYER_FIELD_PLAYER_TITLE, PLAYER_FIELD_REST_STATE, PLAYER_FIELD_VIRTUAL_PLAYER_REALM, PLAYER_FIELD_WATCHED_FACTION_INDEX, PLAYER_FIELD_YESTERDAY_HONORABLE_KILLS, PLAYER_SLOTS_COUNT, PlayerInfo::positionX, PlayerInfo::positionY, PlayerInfo::positionZ, POWER_MANA, POWER_RUNES, POWER_RUNIC_POWER, ChrClassesEntry::powerType, CharacterCreateInfo::Race, rbac::RBAC_PERM_USE_START_GM_LEVEL, REALM_TYPE_PVP, REALM_TYPE_RPPVP, Position::Relocate(), RemoveItem(), REST_STATE_NOT_RAF_LINKED, REST_STATE_RAF_LINKED, sChrClassesStore, Object::SetByteFlag(), Object::SetByteValue(), Unit::SetClass(), SetCurrency(), setFactionForRace(), Unit::SetFieldPowerType(), Object::SetFlag(), Object::SetFloatValue(), Unit::SetFullHealth(), Unit::SetGender(), SetGuildLevel(), Object::SetInt32Value(), SetMap(), Unit::SetMaxPower(), SetObjectScale(), Unit::SetPower(), Unit::SetRace(), ReputationMgr::SetReputation(), Object::SetUInt32Value(), Object::SetUInt64Value(), SF_LOG_ERROR, sFactionStore, CharacterCreateInfo::Skin, sMapMgr, sObjectMgr, SPELL_CATEGORY_DRINK, SPELL_CATEGORY_FOOD, _Spell::SpellCategory, ItemTemplate::Spells, StoreItem(), StoreNewItemInBestSlots(), ItemTemplate::SubClass, sWorld, UNIT_BYTE2_FLAG_PVP, UNIT_FIELD_FLAGS, UNIT_FIELD_FLAGS2, UNIT_FIELD_HOVER_HEIGHT, UNIT_FIELD_LEVEL, UNIT_FIELD_SHAPESHIFT_FORM, UNIT_FLAG2_REGENERATE_POWER, UNIT_FLAG_PVP_ATTACKABLE, UpdateMaxHealth(), and UpdateMaxPower().
Referenced by WorldSession::HandleCharCreateCallback().
| void Player::CreateCorpse | ( | ) |
Definition at line 5311 of file Player.cpp.
References CORPSE_FIELD_DISPLAY_ID, CORPSE_FIELD_FACIAL_HAIR_STYLE_ID, CORPSE_FIELD_FLAGS, CORPSE_FIELD_ITEMS, CORPSE_FIELD_SKIN_ID, 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, Unit::getGender(), WorldObject::GetMap(), Unit::GetNativeDisplayId(), Unit::getRace(), Object::GetUInt32Value(), Object::HasFlag(), HIGHGUID_CORPSE, InArena(), InBattleground(), m_ExtraFlags, m_items, PLAYER_EXTRA_PVP_DEATH, PLAYER_FIELD_HAIR_COLOR_ID, PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FIELD_REST_STATE, PLAYER_FLAGS_HIDE_CLOAK, PLAYER_FLAGS_HIDE_HELM, Corpse::SaveToDB(), SetPvPDeath(), Object::SetUInt32Value(), sObjectAccessor, sObjectMgr, and SpawnCorpseBones().
Referenced by BuildPlayerRepop(), and LuaPlayer::CreateCorpse().
|
static |
Definition at line 15432 of file Player.cpp.
References CHAR_SEL_CHAR_PLAYERBYTES2, CHAR_UPD_GENDER_PLAYERBYTES, CharacterDatabase, Field::GetUInt32(), GUID_LOPART(), PreparedStatement::setUInt32(), and PreparedStatement::setUInt8().
Referenced by WorldSession::HandleCharCustomize(), and WorldSession::HandleCharFactionOrRaceChange().
| void Player::DeleteEquipmentSet | ( | uint64 | setGuid | ) |
Definition at line 21566 of file Player.cpp.
References EQUIPMENT_SET_DELETED, EQUIPMENT_SET_NEW, and m_EquipmentSets.
|
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 4775 of file Player.cpp.
References MailDraft::AddItem(), MailDraft::AddMoney(), CHAR_DEL_CHAR_ACHIEVEMENT_PROGRESS, CHAR_DEL_CHAR_ACHIEVEMENTS, CHAR_DEL_CHAR_ACTION, CHAR_DEL_CHAR_AURA, CHAR_DEL_CHAR_DECLINED_NAME, CHAR_DEL_CHAR_EQUIPMENTSETS, CHAR_DEL_CHAR_GIFT, CHAR_DEL_CHAR_GLYPHS, CHAR_DEL_CHAR_INSTANCE, CHAR_DEL_CHAR_INVENTORY, CHAR_DEL_CHAR_PET_BY_OWNER, CHAR_DEL_CHAR_PET_DECLINEDNAME_BY_OWNER, CHAR_DEL_CHAR_QUESTSTATUS, CHAR_DEL_CHAR_QUESTSTATUS_DAILY, CHAR_DEL_CHAR_QUESTSTATUS_OBJECTIVE_ALL, 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_COOLDOWN, CHAR_DEL_CHAR_TALENT, CHAR_DEL_CHARACTER, CHAR_DEL_GUILD_BANK_EVENTLOG_BY_PLAYER, CHAR_DEL_GUILD_EVENTLOG_BY_PLAYER, CHAR_DEL_ITEM_INSTANCE, CHAR_DEL_ITEM_INSTANCE_BY_OWNER, CHAR_DEL_ITEM_INSTANCE_TRANSMOG_BY_OWNER, CHAR_DEL_MAIL, CHAR_DEL_MAIL_BY_ID, CHAR_DEL_MAIL_ITEM_BY_ID, CHAR_DEL_MAIL_ITEMS, CHAR_DEL_PLAYER_ACCOUNT_DATA, CHAR_DEL_PLAYER_BGDATA, CHAR_DEL_PLAYER_GM_TICKETS, CHAR_DEL_PLAYER_HOMEBIND, CHAR_DELETE_REMOVE, CHAR_DELETE_UNLINK, CHAR_SEL_CHAR_COD_ITEM_MAIL, CHAR_SEL_CHAR_PETS, CHAR_SEL_CHAR_SOCIAL, CHAR_SEL_GROUP_MEMBER, CHAR_SEL_MAILITEMS, CHAR_UPD_DELETE_INFO, CharacterDatabase, CLASS_DEATH_KNIGHT, CONFIG_CHARDELETE_HEROIC_MIN_LEVEL, CONFIG_CHARDELETE_METHOD, CONFIG_CHARDELETE_MIN_LEVEL, Pet::DeleteFromDB(), ObjectAccessor::FindPlayer(), FRIEND_REMOVED, Item::FSetState(), Field::GetBool(), GetGuildIdFromDB(), Field::GetString(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt64(), Field::GetUInt8(), GUID_LOPART(), HIGHGUID_PLAYER, ITEM_REMOVED, Item::LoadFromDB(), MAIL_NORMAL, MAKE_NEW_GUID(), NewItemOrBag(), Player(), RemoveFromGroup(), RemovePetitionsAndSigns(), Item::SaveToDB(), MailDraft::SendReturnToSender(), PreparedStatement::setUInt32(), SF_LOG_ERROR, sGroupMgr, sGuildMgr, sObjectAccessor, sObjectMgr, sSocialMgr, and sWorld.
Referenced by AccountMgr::DeleteAccount(), DeleteOldCharacters(), character_commandscript::HandleCharacterDeletedDeleteCommand(), character_commandscript::HandleCharacterEraseCommand(), and WorldSession::HandleCharDeleteOpcode().
|
static |
Characters which were kept back in the database after being deleted and are now too old (see config option "CharDelete.KeepDays"), will be completely deleted.
Definition at line 5113 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 | overrite the config option by another amount of days |
Definition at line 5129 of file Player.cpp.
References CHAR_SEL_CHAR_OLD_CHARS, CharacterDatabase, DAY, DeleteFromDB(), PreparedStatement::setUInt32(), SF_LOG_DEBUG, SF_LOG_INFO, and UI64FMTD.
| void Player::DeleteRefundReference | ( | uint32 | it | ) |
Definition at line 22154 of file Player.cpp.
References m_refundableItems.
Referenced by _SaveInventory(), Item::SetNotRefundable(), and Item::SetState().
| void Player::DeleteResearchDigsite | ( | ResearchDigsite * | digsite | ) |
Definition at line 23219 of file Player.cpp.
References CHAR_DEL_CHAR_RESEARCH_DIGSITE, CharacterDatabase, ResearchDigsite::GetDigsiteId(), Object::GetGUIDLow(), and PreparedStatement::setUInt32().
Referenced by _LoadResearchDigsites(), and UpdateResearchDigsites().
| void Player::DeleteVoidStorageItem | ( | uint8 | slot | ) |
Definition at line 22542 of file Player.cpp.
References _voidStorageItems, GetSession(), WorldSession::SendVoidStorageTransferResult(), VOID_STORAGE_MAX_SLOT, and VOID_TRANSFER_ERROR_INTERNAL_ERROR_1.
Referenced by WorldSession::HandleVoidStorageTransfer().
| void Player::DestroyConjuredItems | ( | bool | update | ) |
Definition at line 2633 of file PlayerStorage.cpp.
References DestroyItem(), EQUIPMENT_SLOT_START, GetBagByPos(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, and SF_LOG_DEBUG.
Referenced by Battleground::AddPlayer().
|
overridevirtual |
Reimplemented from Object.
Definition at line 4650 of file Player.cpp.
References BANK_SLOT_BAG_END, Object::DestroyForPlayer(), INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, m_items, and Player().
Definition at line 2343 of file PlayerStorage.cpp.
References _ApplyItemMods(), BASE_ATTACK, CHAR_DEL_GIFT, CharacterDatabase, Item::ClearSoulboundTradeable(), CR_ARMOR_PENETRATION, Object::DestroyForPlayer(), DestroyItem(), EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, GetBagByPos(), Item::GetCount(), Object::GetEntry(), Object::GetGUIDLow(), GetItemByPos(), Item::GetTemplate(), Object::HasFlag(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, Object::IsInWorld(), Item::IsNotEmptyBag(), ITEM_FIELD_CONTAINED_IN, ITEM_FIELD_DYNAMIC_FLAGS, ITEM_FLAG_WRAPPED, ITEM_PROTO_FLAG_OPENABLE, ITEM_REMOVED, ITEM_SPELLTRIGGER_ON_NO_DELAY_USE, Item::ItemContainerDeleteLootMoneyAndLootItemsFromDB(), ItemRemovedQuestCheck(), ItemTemplate::ItemSet, m_items, MAX_BAG_SIZE, MAX_ITEM_PROTO_SPELLS, NULL_SLOT, OFF_ATTACK, PLAYER_FIELD_INV_SLOTS, RecalculateRating(), Unit::RemoveAurasDueToSpell(), RemoveEnchantmentDurations(), Object::RemoveFromWorld(), RemoveItemDependentAurasAndCasts(), RemoveItemDurations(), RemoveItemsSetItem(), RemoveTradeableItem(), Item::SetNotRefundable(), Item::SetSlot(), Item::SetState(), PreparedStatement::setUInt32(), Object::SetUInt64Value(), SetVisibleItemSlot(), SF_LOG_DEBUG, _Spell::SpellId, ItemTemplate::Spells, _Spell::SpellTrigger, and UpdateExpertise().
Referenced by DestroyConjuredItems(), DestroyItem(), DestroyItemCount(), DestroyItemCount(), DestroyZoneLimitedItem(), WorldSession::DoLootRelease(), Spell::EffectDestroyItem(), Spell::EffectSummonChangeItem(), WorldSession::HandleBattlePetLearn(), debug_commandscript::HandleDebugItemExpireCommand(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandleVoidStorageTransfer(), RefundItem(), and Item::UpdateDuration().
Definition at line 2683 of file PlayerStorage.cpp.
References DestroyItem(), Item::GetBagSlot(), Item::GetCount(), Object::GetEntry(), Object::GetGUIDLow(), Item::GetSlot(), Object::IsInWorld(), ITEM_CHANGED, ItemRemovedQuestCheck(), Object::SendUpdateToPlayer(), Item::SetCount(), Item::SetState(), and SF_LOG_DEBUG.
| void Player::DestroyItemCount | ( | uint32 | item, |
| uint32 | count, | ||
| bool | update, | ||
| bool | unequip_check = false ) |
Definition at line 2445 of file PlayerStorage.cpp.
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, BANK_SLOT_ITEM_END, BANK_SLOT_ITEM_START, CanUnequipItem(), DestroyItem(), EQUIP_ERR_OK, EQUIPMENT_SLOT_START, GetBagByPos(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, Object::IsInWorld(), ITEM_CHANGED, ItemRemovedQuestCheck(), and SF_LOG_DEBUG.
Referenced by _StoreOrEquipNewItem(), BuyCurrencyFromVendorSlot(), WorldSession::DoLootRelease(), Spell::EffectCreateItem2(), Spell::EffectEnchantItemPerm(), Spell::EffectFeedPet(), FailQuest(), misc_commandscript::HandleAddItemCommand(), LuaPlayer::RemoveItem(), spell_pot_check::spell_pot_check_SpellScript::RemoveItems(), RewardQuest(), SolveResearchProject(), TakeQuestSourceItem(), and Spell::TakeReagents().
| void Player::DestroyZoneLimitedItem | ( | bool | update, |
| uint32 | new_zone ) |
Definition at line 2608 of file PlayerStorage.cpp.
References DestroyItem(), EQUIPMENT_SLOT_START, GetBagByPos(), GetItemByPos(), WorldLocation::GetMapId(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, and SF_LOG_DEBUG.
Referenced by UpdateZone().
| void Player::DropModCharge | ( | SpellModifier * | mod, |
| Spell * | spell ) |
Definition at line 16410 of file Player.cpp.
References SpellModifier::charges, Spell::m_appliedMods, SpellModifier::ownerAura, SpellModifier::spellId, and sSpellMgr.
Referenced by ApplySpellMod().
| void Player::DuelComplete | ( | DuelCompleteType | type | ) |
Definition at line 8277 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_LOSE_DUEL, ACHIEVEMENT_CRITERIA_TYPE_WIN_DUEL, CLASS_DEATH_KNIGHT, ClearComboPoints(), CONFIG_HONOR_AFTER_DUEL, duel, DUEL_FLED, DUEL_INTERRUPTED, DUEL_WON, ByteBuffer::FlushBits(), Unit::GetAppliedAuras(), Aura::GetApplyTime(), Aura::GetCasterGUID(), Unit::getClass(), GetComboTarget(), Map::GetGameObject(), Object::GetGUID(), WorldObject::GetMap(), WorldObject::GetName(), Unit::GetPetGUID(), GetSession(), Object::GetUInt64Value(), WorldPacket::Initialize(), PLAYER_FIELD_DUEL_ARBITER, PLAYER_FIELD_DUEL_TEAM, QUEST_STATUS_INCOMPLETE, Unit::RemoveAura(), SendMessageToSet(), WorldSession::SendPacket(), Object::SetUInt32Value(), Object::SetUInt64Value(), SF_LOG_DEBUG, SMSG_DUEL_COMPLETE, SMSG_DUEL_WINNER, sScriptMgr, sWorld, UpdateAchievementCriteria(), ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), and ByteBuffer::WriteString().
Referenced by Unit::_ExitVehicle(), CheckDuelDistance(), CleanupsBeforeDelete(), Unit::DealDamage(), WorldSession::HandleDuelResponseOpcode(), and TeleportTo().
| void Player::DurabilityLoss | ( | Item * | item, |
| double | percent ) |
Definition at line 5413 of file Player.cpp.
References DurabilityPointsLoss(), Unit::GetTotalAuraMultiplier(), Object::GetUInt32Value(), ITEM_FIELD_MAX_DURABILITY, and SPELL_AURA_MOD_DURABILITY_LOSS.
Referenced by LuaPlayer::DurabilityLoss(), DurabilityLossAll(), and Spell::EffectSummonChangeItem().
| void Player::DurabilityLossAll | ( | double | percent, |
| bool | inventory ) |
Definition at line 5390 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 LuaPlayer::DurabilityLossAll(), and EnvironmentalDamage().
| void Player::DurabilityPointLossForEquipSlot | ( | EquipmentSlots | slot | ) |
Definition at line 5483 of file Player.cpp.
References DurabilityPointsLoss(), GetItemByPos(), and INVENTORY_SLOT_BAG_0.
Referenced by Unit::DealDamage(), and LuaPlayer::DurabilityPointLossForEquipSlot().
Definition at line 5456 of file Player.cpp.
References _ApplyItemMods(), Item::GetSlot(), Object::GetUInt32Value(), Item::IsEquipped(), ITEM_CHANGED, ITEM_FIELD_DURABILITY, ITEM_FIELD_MAX_DURABILITY, Item::SetState(), and Object::SetUInt32Value().
Referenced by DurabilityLoss(), DurabilityPointLossForEquipSlot(), LuaPlayer::DurabilityPointsLoss(), and DurabilityPointsLossAll().
| void Player::DurabilityPointsLossAll | ( | int32 | points, |
| bool | inventory ) |
Definition at line 5433 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 LuaPlayer::DurabilityPointsLossAll().
Definition at line 5505 of file Player.cpp.
References _ApplyItemMods(), ItemTemplate::Class, GetGuildId(), GetItemByPos(), GetSession(), Item::GetTemplate(), Object::GetUInt32Value(), Guild::HandleMemberWithdrawMoney(), HasEnoughMoney(), IsEquipmentPos(), ITEM_CHANGED, ITEM_FIELD_DURABILITY, ITEM_FIELD_MAX_DURABILITY, ItemTemplate::ItemLevel, ItemSubClassToDurabilityMultiplierId(), ModifyMoney(), DurabilityCostsEntry::multiplier, ItemTemplate::Quality, DurabilityQualityEntry::quality_mod, RATE_REPAIRCOST, sDurabilityCostsStore, sDurabilityQualityStore, Item::SetState(), Object::SetUInt32Value(), SF_LOG_DEBUG, SF_LOG_ERROR, sGuildMgr, ItemTemplate::SubClass, and sWorld.
Referenced by LuaPlayer::DurabilityRepair(), and DurabilityRepairAll().
| uint32 Player::DurabilityRepairAll | ( | bool | cost, |
| float | discountMod, | ||
| bool | guildBank ) |
Definition at line 5489 of file Player.cpp.
References DurabilityRepair(), EQUIPMENT_SLOT_START, INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, and MAX_BAG_SIZE.
Referenced by LuaPlayer::DurabilityRepairAll(), and misc_commandscript::HandleRepairitemsCommand().
Definition at line 17771 of file Player.cpp.
References _Socket::Color, GemPropertiesEntry::color, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, SpellItemEnchantmentEntry::GemID, ItemTemplate::GemProperties, Item::GetEnchantmentId(), GetItemByPos(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, Item::IsBroken(), SF_LOG_DEBUG, sGemPropertiesStore, sObjectMgr, SOCK_ENCHANTMENT_SLOT, ItemTemplate::Socket, sSpellItemEnchantmentConditionStore, and sSpellItemEnchantmentStore.
Referenced by ApplyEnchantment(), and CorrectMetaGemEnchants().
| uint32 Player::EnvironmentalDamage | ( | EnviromentalDamage | type, |
| uint32 | damage ) |
Definition at line 1115 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_DEATHS_FROM, Unit::CalcAbsorbResist(), DAMAGE_FALL, DAMAGE_FALL_TO_VOID, DAMAGE_LAVA, DAMAGE_SLIME, Unit::DealDamage(), Unit::DealDamageMods(), DIRECT_DAMAGE, DurabilityLossAll(), Object::GetGUID(), Unit::IsAlive(), IsImmuneToEnvironmentalDamage(), SELF_DAMAGE, Unit::SendDurabilityLoss(), SendMessageToSet(), SF_LOG_DEBUG, SMSG_ENVIRONMENTALDAMAGELOG, SPELL_SCHOOL_MASK_FIRE, SPELL_SCHOOL_MASK_NATURE, SPELL_SCHOOL_MASK_NORMAL, UpdateAchievementCriteria(), ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
Referenced by HandleDrowning(), HandleFall(), and WorldSession::HandleMovementOpcodes().
Definition at line 2022 of file PlayerStorage.cpp.
References _ApplyItemMods(), ACHIEVEMENT_CRITERIA_TYPE_EQUIP_EPIC_ITEM, ACHIEVEMENT_CRITERIA_TYPE_EQUIP_ITEM, AddEnchantmentDurations(), GlobalCooldownMgr::AddGlobalCooldown(), AddItemDurations(), AddItemsSetItem(), Object::AddToWorld(), ApplyEquipCooldown(), BASE_ATTACK, ByteBuffer::bitwpos(), ItemTemplate::Class, CLASS_ROGUE, Item::ClearSoulboundTradeable(), CR_ARMOR_PENETRATION, Object::DestroyForPlayer(), EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, Unit::getClass(), Item::GetCount(), Object::GetEntry(), GetGlobalCooldownMgr(), Object::GetGUID(), GetItemByPos(), GetSession(), Item::GetTemplate(), ItemTemplate::InventoryType, INVTYPE_RELIC, Unit::IsAlive(), Unit::IsInCombat(), Object::IsInWorld(), ITEM_CHANGED, ITEM_CLASS_WEAPON, ITEM_REMOVED, ItemTemplate::ItemSet, m_weaponChangeTimer, OFF_ATTACK, RecalculateRating(), RemoveEnchantmentDurations(), Object::RemoveFromWorld(), RemoveItemDurations(), RemoveTradeableItem(), WorldSession::SendPacket(), Object::SendUpdateToPlayer(), Item::SetCount(), Item::SetNotRefundable(), Item::SetOwnerGUID(), Item::SetState(), SF_LOG_ERROR, SMSG_SPELL_COOLDOWN, sSpellMgr, SpellInfo::StartRecoveryTime, UpdateAchievementCriteria(), UpdateExpertise(), VisualizeItem(), ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), and ByteBuffer::WriteByteSeq().
Referenced by Create(), Spell::EffectSummonChangeItem(), LuaPlayer::EquipItem(), EquipNewItem(), SplitItem(), and SwapItem().
Definition at line 2010 of file PlayerStorage.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 811 of file PlayerQuestState.cpp.
References DestroyItemCount(), FindQuestSlot(), m_QuestStatus, MAX_QUEST_LOG_SIZE, QUEST_OBJECTIVE_TYPE_ITEM, QUEST_SOURCE_ITEM_IDS_COUNT, QUEST_SPECIAL_FLAGS_TIMED, QUEST_STATE_FAIL, QUEST_STATUS_FAILED, RemoveTimedQuest(), SendQuestFailed(), SendQuestTimerFailed(), SetQuestSlotState(), SetQuestSlotTimer(), SetQuestStatus(), sObjectMgr, and QuestStatusData::Timer.
Referenced by npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::CheckEventFail(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::CheckEventFail(), SmartAI::EndPath(), LuaPlayer::FailQuest(), npc_injured_goblin::npc_injured_goblinAI::JustDied(), npc_stinky::npc_stinkyAI::JustDied(), npc_doctor::npc_doctorAI::PatientDied(), Map::ScriptsProcess(), Update(), and npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI().
| uint8 Player::FindEquipSlot | ( | ItemTemplate const * | proto, |
| uint32 | slot, | ||
| bool | swap ) const |
Definition at line 10499 of file Player.cpp.
References AutoUnequipOffhandIfNeed(), Unit::CanDualWield(), CanTitanGrip(), CLASS_DEATH_KNIGHT, CLASS_DRUID, CLASS_PALADIN, CLASS_SHAMAN, EQUIPMENT_SLOT_BACK, EQUIPMENT_SLOT_BODY, EQUIPMENT_SLOT_CHEST, EQUIPMENT_SLOT_FEET, EQUIPMENT_SLOT_FINGER1, EQUIPMENT_SLOT_FINGER2, EQUIPMENT_SLOT_HANDS, EQUIPMENT_SLOT_HEAD, EQUIPMENT_SLOT_LEGS, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_NECK, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_SHOULDERS, EQUIPMENT_SLOT_TABARD, EQUIPMENT_SLOT_TRINKET1, EQUIPMENT_SLOT_TRINKET2, EQUIPMENT_SLOT_WAIST, EQUIPMENT_SLOT_WRISTS, Unit::getClass(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_START, ItemTemplate::InventoryType, INVTYPE_2HWEAPON, INVTYPE_BAG, INVTYPE_BODY, INVTYPE_CHEST, INVTYPE_CLOAK, INVTYPE_FEET, INVTYPE_FINGER, INVTYPE_HANDS, INVTYPE_HEAD, INVTYPE_HOLDABLE, INVTYPE_LEGS, INVTYPE_NECK, INVTYPE_RANGED, INVTYPE_RANGEDRIGHT, INVTYPE_RELIC, INVTYPE_ROBE, INVTYPE_SHIELD, INVTYPE_SHOULDERS, INVTYPE_TABARD, INVTYPE_THROWN, INVTYPE_TRINKET, INVTYPE_WAIST, INVTYPE_WEAPON, INVTYPE_WEAPONMAINHAND, INVTYPE_WEAPONOFFHAND, INVTYPE_WRISTS, IsTwoHandUsed(), ITEM_SUBCLASS_WEAPON_POLEARM, ITEM_SUBCLASS_WEAPON_STAFF, NULL_SLOT, Player(), and ItemTemplate::SubClass.
Referenced by CanEquipItem().
Definition at line 1500 of file PlayerQuestState.cpp.
References GetQuestSlotQuestId(), and MAX_QUEST_LOG_SIZE.
Referenced by AddQuest(), AreaExploredOrEventHappens(), CompleteQuest(), Spell::EffectQuestComplete(), FailQuest(), IncompleteQuest(), RewardQuest(), SatisfyQuestLog(), SendQuestUpdateAddCredit(), and SendQuestUpdateAddPlayer().
| void Player::GainSpellComboPoints | ( | int8 | count | ) |
Definition at line 18476 of file Player.cpp.
References m_comboPoints, and SendComboPoints().
| uint32 Player::GetAchievementPoints | ( | ) | const |
Definition at line 21008 of file Player.cpp.
References m_achievementMgr.
Referenced by Guild::Member::SetStats().
| ActionButton const * Player::GetActionButton | ( | uint8 | button | ) |
Definition at line 6834 of file Player.cpp.
References ACTIONBUTTON_DELETED, and m_actionButtons.
Referenced by Spell::EffectCastButtons().
|
inline |
Definition at line 2126 of file Player.h.
References m_actionButtons.
|
inline |
Definition at line 2077 of file Player.h.
References _talentMgr.
Referenced by _LoadGlyphAuras(), _LoadSpells(), _SaveActions(), ActivateSpec(), Battleground::AddPlayer(), BuildPlayerTalentsInfoData(), Spell::EffectApplyGlyph(), LuaPlayer::GetActiveSpec(), GetManaSpecializationMultiplier(), GiveLevel(), WorldSession::HandleCastSpellOpcode(), spell_dru_eclipse_energize::spell_dru_eclipse_energize_SpellScript::HandleEnergize(), learn_commandscript::HandleLearnAllMyTalentsCommand(), AuraEffect::HandleShapeshiftBoosts(), IsCurrentSpecMasterySpell(), LearnTalent(), LoadFromDB(), RegenerateAll(), RemoveTalent(), ResetTalents(), SaveToDB(), SendActionButtons(), SendInspectResult(), SetGlyph(), and UpdateSpecCount().
Definition at line 2304 of file Player.h.
Referenced by Battleground::EndBattleground(), and GetMaxPersonalArenaRatingRequirement().
|
inline |
Definition at line 1677 of file Player.h.
References m_ArmorProficiency.
Referenced by Spell::EffectProficiency().
|
static |
Definition at line 209 of file PlayerStorage.cpp.
References BASE_ATTACK, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, MAX_ATTACK, and OFF_ATTACK.
Referenced by _ApplyAllItemMods(), _ApplyAllLevelScaleItemMods(), _ApplyItemMods(), _RemoveAllItemMods(), GetUseableItemByPos(), AuraEffect::HandleAuraModDisarm(), Unit::HandleDummyAuraProc(), and UpdateEquipSpellsAtFormChange().
|
inline |
Definition at line 2997 of file Player.h.
References m_auraRaidUpdateMask.
| float Player::GetAverageItemLevel | ( | ) |
Definition at line 22428 of file Player.cpp.
References EQUIPMENT_SLOT_BODY, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_START, EQUIPMENT_SLOT_TABARD, and m_items.
Referenced by spell_gen_vehicle_scaling::spell_gen_vehicle_scaling_AuraScript::CalculateAmount(), and lfg::LFGMgr::GetLockedDungeons().
Definition at line 148 of file PlayerStorage.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(), DestroyConjuredItems(), DestroyItem(), DestroyItemCount(), DestroyZoneLimitedItem(), DurabilityLossAll(), GetItemByEntry(), GetItemByGuid(), GetItemByPos(), GetItemCount(), GetItemCountWithLimitCategory(), WorldSession::HandleVoidStorageTransfer(), HasItemCount(), IsValidPos(), RemoveArenaEnchantments(), and RemoveItem().
|
inline |
Definition at line 1552 of file Player.h.
References Object::GetByteValue(), and PLAYER_FIELD_REST_STATE.
Referenced by CanBankItem(), and AchievementMgr< T >::UpdateAchievementCriteria().
| uint32 Player::GetBarberShopCost | ( | uint8 | newhairstyle, |
| uint8 | newhaircolor, | ||
| uint8 | newfacialhair, | ||
| BarberShopStyleEntry const * | newSkin = NULL ) |
Definition at line 20347 of file Player.cpp.
References GtBarberShopCostBaseEntry::cost, Object::GetByteValue(), Unit::getLevel(), GT_MAX_LEVEL, BarberShopStyleEntry::hair_id, PLAYER_FIELD_HAIR_COLOR_ID, PLAYER_FIELD_REST_STATE, and sGtBarberShopCostBaseStore.
| float Player::GetBaseModValue | ( | BaseModGroup | modGroup, |
| BaseModType | modType ) const |
Definition at line 5792 of file Player.cpp.
References BASEMOD_END, m_auraBaseMod, MOD_END, PCT_MOD, and SF_LOG_ERROR.
Definition at line 3057 of file Player.h.
References m_runes.
Referenced by Spell::EffectActivateRune(), GetRuneBaseCooldown(), IsBaseRuneSlotsOnCooldown(), RemoveRunesByAuraEffect(), RestoreBaseRune(), and UpdateRuneRegen().
Definition at line 6614 of file Player.cpp.
References Object::GetUInt16Value(), mSkillStatus, PLAYER_FIELD_SKILL_RANKS, PLAYER_FIELD_SKILL_TALENTS, and SKILL_DELETED.
Referenced by npc_engineering_tele_trinket::CanLearn(), LuaPlayer::GetBaseSkillValue(), GetTrainerSpellState(), and AchievementMgr< T >::UpdateAchievementCriteria().
|
inline |
Returns base spellpower bonus from spellpower stat on items, without spellpower from intellect stat.
Definition at line 2364 of file Player.h.
References m_baseSpellPower.
Referenced by _SaveStats(), Unit::SpellBaseDamageBonusDone(), and Unit::SpellBaseHealingBonusDone().
| Battleground * Player::GetBattleground | ( | ) | const |
Definition at line 19212 of file Player.cpp.
References GetBattlegroundId(), m_bgData, and sBattlegroundMgr.
Referenced by GameObject::ActivateToQuest(), CanEquipItem(), CanUnequipItem(), SpellInfo::CheckLocation(), MapInstanced::CreateInstanceForPlayer(), Unit::DealDamage(), Object::DestroyForPlayer(), Spell::EffectOpenLock(), VehicleJoinEvent::Execute(), debug_commandscript::GetSOTABattlegroundForBoatCommand(), WorldSession::HandleAreaTriggerOpcode(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraModEffectImmunity(), spell_item_rocket_boots::spell_item_rocket_boots_SpellScript::HandleDummy(), WorldSession::HandleMovementOpcodes(), spell_gen_gunship_portal::spell_gen_gunship_portal_SpellScript::HandleScript(), InArena(), Battlefield::InvitePlayerToWar(), SpellArea::IsFitToRequirements(), IsPetNeedBeTemporaryUnsummoned(), Unit::Kill(), LeaveBattleground(), AchievementCriteriaData::Meets(), Unit::Mount(), RepopAtGraveyard(), ReportedAfkBy(), ResurrectPlayer(), RewardHonor(), SendInitWorldStates(), SendLoot(), GameObject::SetDestructibleState(), SummonIfPossible(), TeleportTo(), GameObject::Update(), and GameObject::Use().
|
inline |
Definition at line 2733 of file Player.h.
References m_bgData, and WorldLocation::WorldLocation().
Referenced by LoadFromDB().
|
inline |
Definition at line 2697 of file Player.h.
References m_bgData.
Referenced by BattlegroundMap::CanEnter(), MapInstanced::CreateInstanceForPlayer(), GetBattleground(), LuaPlayer::GetBattlegroundId(), GiveXP(), misc_commandscript::HandleAppearCommand(), misc_commandscript::HandleSummonCommand(), and RemovedInsignia().
| uint32 Player::GetBattlegroundQueueIndex | ( | BattlegroundQueueTypeId | bgQueueTypeId | ) | const |
Definition at line 19233 of file Player.cpp.
References m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by Battleground::AddPlayer(), Battleground::EndBattleground(), BGQueueInviteEvent::Execute(), BGQueueRemoveEvent::Execute(), InBattlegroundQueueForBattlegroundQueueType(), BattlegroundQueue::InviteGroupToBG(), Battleground::PlayerAddedToBGCheckIfBGIsRunning(), and Battleground::RemovePlayerAtLeave().
|
inline |
Definition at line 2707 of file Player.h.
References m_bgData.
Referenced by Battleground::AddPlayer(), BattlegroundMgr::BuildStatusFailedPacket(), Battleground::EndBattleground(), BGQueueInviteEvent::Execute(), BGQueueRemoveEvent::Execute(), BattlegroundQueue::InviteGroupToBG(), Battleground::PlayerAddedToBGCheckIfBGIsRunning(), and Battleground::RemovePlayerAtLeave().
| BattlegroundQueueTypeId Player::GetBattlegroundQueueTypeId | ( | uint32 | index | ) | const |
Definition at line 19228 of file Player.cpp.
References m_bgBattlegroundQueueID.
|
inline |
Definition at line 2701 of file Player.h.
References m_bgData.
Referenced by LuaPlayer::GetBattlegroundTypeId(), misc_commandscript::HandleAppearCommand(), and misc_commandscript::HandleSummonCommand().
|
inline |
Definition at line 2573 of file Player.h.
References m_battlePetMgr.
Referenced by Battleground::AddPlayer(), AchievementMgr< Guild >::CompletedAchievement(), Spell::EffectBattlePetsUnlock(), Spell::EffectHealBattlePetPct(), Spell::EffectSummonType(), battlepet_commandscript::HandleBattlePetDebugCommand(), WorldSession::HandleBattlePetDelete(), WorldSession::HandleBattlePetFinalNotify(), battlepet_commandscript::HandleBattlePetHealCommand(), WorldSession::HandleBattlePetInput(), WorldSession::HandleBattlePetInputFirstPet(), WorldSession::HandleBattlePetLearn(), battlepet_commandscript::HandleBattlePetLevelupCommand(), WorldSession::HandleBattlePetModifyName(), WorldSession::HandleBattlePetQueryName(), WorldSession::HandleBattlePetQuitNotify(), WorldSession::HandleBattlePetRequestJournal(), WorldSession::HandleBattlePetRequestUpdate(), WorldSession::HandleBattlePetSetBattleSlot(), WorldSession::HandleBattlePetSetFlags(), WorldSession::HandleBattlePetSummonCompanion(), WorldSession::HandleBattlePetWildRequest(), WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAckOpcode(), WorldSession::HandlePetBattleQueueProposeMatchResult(), RemoveFromWorld(), TeleportTo(), UpdateVisibilityOf(), and UpdateVisibilityOf().
| bool Player::GetBGAccessByLevel | ( | BattlegroundTypeId | bgTypeId | ) | const |
Definition at line 19319 of file Player.cpp.
References DEFAULT_MAX_LEVEL, Unit::getLevel(), Battleground::GetMaxLevel(), and sBattlegroundMgr.
Referenced by Creature::isCanInteractWithBattleMaster().
| uint32 Player::GetBGTeam | ( | ) | const |
Definition at line 17979 of file Player.cpp.
References GetTeam(), and m_bgData.
Referenced by Battleground::AddPlayer(), BattlegroundMgr::BuildBattlegroundStatusPacket(), BattlegroundMgr::BuildPvpLogDataPacket(), Battleground::EventPlayerLoggedOut(), BattlegroundVOP::HandleKillPlayer(), RewardHonor(), and BattlegroundMgr::SendToBattleground().
|
inlineoverridevirtual |
Reimplemented from Unit.
Definition at line 2608 of file Player.h.
References Object::GetUInt32Value(), and PLAYER_FIELD_SHIELD_BLOCK.
| InstancePlayerBind * Player::GetBoundInstance | ( | uint32 | mapid, |
| DifficultyID | difficulty ) |
Definition at line 13877 of file Player.cpp.
References GetDownscaledMapDifficultyData(), and m_boundInstances.
Referenced by InstanceMap::AddPlayerToMap(), Spell::CheckCast(), MapInstanced::CreateInstanceForPlayer(), lfg::LFGMgr::GetCompatibleDungeons(), GetInstanceSave(), lfg::LFGMgr::GetLockedDungeons(), misc_commandscript::HandleAppearCommand(), and InstanceMap::PermBindAllPlayers().
|
inline |
Definition at line 2928 of file Player.h.
References m_boundInstances.
Referenced by instance_commandscript::HandleInstanceListBindsCommand(), instance_commandscript::HandleInstanceUnbindCommand(), and SendRaidInfo().
|
inline |
Definition at line 3122 of file Player.h.
References m_ChampioningFaction.
Referenced by LuaPlayer::GetChampioningFaction(), and RewardReputation().
|
inline |
Definition at line 3130 of file Player.h.
References m_ChampioningType.
Referenced by RewardReputation().
| uint8 Player::GetChatTag | ( | ) | const |
Definition at line 2074 of file Player.cpp.
References CHAT_TAG_AFK, CHAT_TAG_DEV, CHAT_TAG_DND, CHAT_TAG_GM, CHAT_TAG_NONE, Object::HasFlag(), isAFK(), isDND(), isGMChat(), PLAYER_FIELD_PLAYER_FLAGS, and PLAYER_FLAGS_DEVELOPER.
Referenced by LuaPlayer::GetChatTag().
|
inline |
Definition at line 2217 of file Player.h.
References m_cinematic.
Referenced by WorldSession::HandlePlayerLogin().
| bool Player::GetCinematicPosition | ( | float & | x, |
| float & | y, | ||
| float & | z ) const |
Definition at line 6932 of file Player.cpp.
References cinematicClientStartTime, cinematicSequence, getMSTime(), inCinematic, and Skyfire::IsValidMapCoord().
Referenced by UpdateCinematicVisibility().
| float Player::GetCollisionHeight | ( | bool | mounted | ) | const |
Return collision height sent to client.
Dismounting case - use basic default model data
Definition at line 22604 of file Player.cpp.
References ASSERT, CreatureModelDataEntry::CollisionHeight, GetCollisionHeight(), Unit::GetNativeDisplayId(), Object::GetObjectScale(), Object::GetUInt32Value(), CreatureDisplayInfoEntry::ModelId, CreatureModelDataEntry::MountHeight, sCreatureDisplayInfoStore, sCreatureModelDataStore, and UNIT_FIELD_MOUNT_DISPLAY_ID.
Referenced by GetCollisionHeight(), and SetObjectScale().
|
inline |
Definition at line 1982 of file Player.h.
References m_comboPoints.
Referenced by AddComboPoints(), SpellEffectInfo::CalcValue(), and LuaPlayer::GetComboPoints().
|
inline |
Definition at line 1983 of file Player.h.
References m_comboTarget.
Referenced by Unit::ClearComboPointHolders(), DuelComplete(), LuaPlayer::GetComboTarget(), AuraEffect::HandleAuraDummy(), and AuraEffect::HandleAuraRetainComboPoints().
|
inline |
Definition at line 1407 of file Player.h.
References _activeCheats.
Referenced by Unit::DealDamage(), cheat_commandscript::HandleCheatStatusCommand(), and cheat_commandscript::HandleWaterWalkCheatCommand().
| std::string Player::GetCoordsMapAreaAndZoneString | ( | ) |
Definition at line 22655 of file Player.cpp.
References GetMapAreaAndZoneString(), and Position::ToString().
| Corpse * Player::GetCorpse | ( | ) | const |
Definition at line 5385 of file Player.cpp.
References Object::GetGUID(), and sObjectAccessor.
Referenced by KillRewarder::_RewardKillCredit(), BuildPlayerRepop(), MapManager::CanPlayerEnter(), SmartAI::EndPath(), LuaPlayer::GetCorpse(), GroupEventHappens(), WorldSession::HandleCorpseQueryOpcode(), WorldSession::HandleMoveWorldportAckOpcode(), WorldSession::HandleReclaimCorpseOpcode(), IsAtGroupRewardDistance(), IsAtRecruitAFriendDistance(), LoadCorpse(), RewardPlayerAndGroupAtEvent(), and SendCorpseReclaimDelay().
| uint32 Player::GetCorpseReclaimDelay | ( | bool | pvp | ) | const |
Definition at line 19932 of file Player.cpp.
References CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVE, CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVP, copseReclaimDelay, DEATH_EXPIRE_STEP, m_deathExpireTime, and sWorld.
Referenced by SendCorpseReclaimDelay().
|
inline |
Replaces a CUF profile at position 0-4
Definition at line 1869 of file Player.h.
References _CUFProfiles.
Referenced by WorldSession::SendLoadCUFProfiles().
|
inline |
Retrieves a CUF profile at position 0-4
Definition at line 1873 of file Player.h.
References _CUFProfiles, and MAX_CUF_PROFILES.
Referenced by WorldSession::SendLoadCUFProfiles().
return count of currency witch has plr
Definition at line 7648 of file Player.cpp.
References _currencyStorage, CURRENCY_FLAG_HIGH_PRECISION, CURRENCY_PRECISION, CurrencyTypesEntry::Flags, and sCurrencyTypesStore.
Referenced by LuaPlayer::GetHonorPoints(), modify_commandscript::HandleModifyHonorCommand(), IsResearchBranchUnlocked(), and OnArchaeologyFindUsed().
return count of currency gaind on current week
Definition at line 7660 of file Player.cpp.
References _currencyStorage, CURRENCY_FLAG_HIGH_PRECISION, CURRENCY_PRECISION, CurrencyTypesEntry::Flags, and sCurrencyTypesStore.
Referenced by SendPvpRewards().
|
protected |
Definition at line 7964 of file Player.cpp.
References CONFIG_CURRENCY_MAX_HONOR_POINTS, CONFIG_CURRENCY_MAX_JUSTICE_POINTS, CURRENCY_TYPE_HONOR_POINTS, CURRENCY_TYPE_JUSTICE_POINTS, CurrencyTypesEntry::ID, sWorld, and CurrencyTypesEntry::TotalCap.
Referenced by ModifyCurrency().
|
protected |
Definition at line 7946 of file Player.cpp.
References _maxPersonalArenaRate, Skyfire::Currency::BgConquestRatingCalculator(), Skyfire::Currency::ConquestRatingCalculator(), CURRENCY_PRECISION, CURRENCY_TYPE_CONQUEST_META_ARENA, CURRENCY_TYPE_CONQUEST_META_RBG, CURRENCY_TYPE_CONQUEST_POINTS, GetCurrencyWeekCap(), GetRBGPersonalRating(), CurrencyTypesEntry::ID, and CurrencyTypesEntry::WeekCap.
return week cap by currency id
Definition at line 7854 of file Player.cpp.
References CURRENCY_FLAG_HIGH_PRECISION, CURRENCY_PRECISION, CurrencyTypesEntry::Flags, GetCurrencyWeekCap(), and sCurrencyTypesStore.
Referenced by GetCurrencyWeekCap(), GetCurrencyWeekCap(), ModifyCurrency(), SendCurrencies(), SendNewCurrency(), SendPvpRewards(), and UpdateConquestCurrencyCap().
| ResearchDigsite * Player::GetCurrentResearchDigsite | ( | ) |
Definition at line 23479 of file Player.cpp.
References _researchDigsites, WorldLocation::GetMapId(), IsWithinResearchDigsite(), MAX_DIGSITES_PER_CONTINENT, RESEARCH_CONTINENT_COUNT, and ResearchContinents.
Referenced by spell_archaeology_survey::spell_archaeology_survey_SpellScript::CheckCast(), spell_archaeology_survey::spell_archaeology_survey_SpellScript::HandleSummon(), and spell_archaeology_survey::spell_archaeology_survey_SpellScript::SetTelescopeOrientation().
Definition at line 3061 of file Player.h.
References m_runes.
Referenced by Spell::CheckRuneCost(), Spell::EffectActivateRune(), AuraEffect::HandleAuraConvertRune(), ResyncRunes(), and Spell::TakeRunePower().
|
inline |
Definition at line 2600 of file Player.h.
References m_deathTimer.
|
inline |
Definition at line 3049 of file Player.h.
References m_declinedname.
Referenced by WorldSession::SendNameQueryOpcode().
|
static |
Definition at line 12032 of file Player.cpp.
References Creature::GetCreatureTemplate(), GameObject::GetGOInfo(), GameObjectTemplate::GetGossipMenuId(), Object::GetTypeId(), CreatureTemplate::GossipMenuId, Object::ToCreature(), Object::ToGameObject(), TYPEID_GAMEOBJECT, TYPEID_UNIT, and WorldObject::WorldObject().
Referenced by GetGossipTextId(), npc_wg_quest_giver::OnGossipHello(), and PrepareGossipMenu().
| DifficultyID Player::GetDifficulty | ( | MapEntry const * | mapEntry | ) | const |
Definition at line 20762 of file Player.cpp.
References MapEntry::IsRaid(), m_dungeonDifficulty, and m_raidDifficulty.
Referenced by MapManager::CanPlayerEnter(), MapInstanced::CreateInstanceForPlayer(), GetInstanceSave(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleMoveWorldportAckOpcode(), HasQuestForGO(), HasQuestForItem(), KillCreditGO(), KilledMonsterCredit(), KilledPlayerCredit(), Satisfy(), SendInitialPacketsAfterAddToMap(), and SendInitialPacketsBeforeAddToMap().
|
inline |
Definition at line 1838 of file Player.h.
References m_divider.
Referenced by WorldSession::HandlePushQuestToParty().
| void Player::GetDodgeFromAgility | ( | float & | diminishing, |
| float & | nondiminishing ) |
Definition at line 5836 of file Player.cpp.
References BASE_PCT, CLASS_DEATH_KNIGHT, CLASS_PALADIN, CLASS_WARRIOR, Unit::getClass(), Unit::GetCreateStat(), Unit::getLevel(), Unit::GetStat(), GT_MAX_LEVEL, Unit::m_auraModifiersGroup, MAX_CLASSES, GtChanceToMeleeCritEntry::ratio, sGtChanceToMeleeCritStore, STAT_AGILITY, and UNIT_MOD_STAT_START.
Referenced by UpdateDodgePercentage().
|
static |
Definition at line 1346 of file Player.cpp.
References DRUNKEN_DRUNK, DRUNKEN_SMASHED, DRUNKEN_SOBER, and DRUNKEN_TIPSY.
Referenced by AchievementCriteriaData::Meets(), Condition::Meets(), and SetDrunkValue().
|
inline |
Definition at line 2594 of file Player.h.
References Object::GetByteValue(), and PLAYER_FIELD_ARENA_FACTION.
Referenced by Spell::EffectInebriate(), LuaPlayer::GetDrunkValue(), AuraEffect::HandleAuraModFakeInebriation(), HandleSobering(), LoadFromDB(), AchievementCriteriaData::Meets(), SaveToDB(), SetDrunkValue(), and Update().
|
inline |
Definition at line 2315 of file Player.h.
References m_dungeonDifficulty.
Referenced by Group::AddMember(), MapManager::CanPlayerEnter(), Group::Create(), LuaPlayer::GetDifficulty(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleGroupInviteOpcode(), misc_commandscript::HandleSummonCommand(), ResetInstances(), SaveToDB(), and SendDungeonDifficulty().
| float Player::GetExpertiseDodgeOrParryReduction | ( | WeaponAttackType | attType | ) | const |
Definition at line 5932 of file Player.cpp.
References BASE_ATTACK, Object::GetUInt32Value(), OFF_ATTACK, PLAYER_FIELD_MAINHAND_EXPERTISE, PLAYER_FIELD_OFFHAND_EXPERTISE, PLAYER_FIELD_RANGED_EXPERTISE, and RANGED_ATTACK.
Definition at line 12166 of file Player.cpp.
References GetUInt32ValueFromArray().
|
inline |
Definition at line 2131 of file Player.h.
References Object::GetUInt32Value(), and PLAYER_FIELD_CHARACTER_POINTS.
Referenced by addSpell(), GetTrainerSpellState(), and removeSpell().
| GameObject * Player::GetGameObjectIfCanInteractWith | ( | uint64 | guid, |
| GameobjectTypes | type ) const |
Definition at line 2887 of file Player.cpp.
References CONTACT_DISTANCE, GAMEOBJECT_TYPE_FISHINGHOLE, GAMEOBJECT_TYPE_GUILD_BANK, GAMEOBJECT_TYPE_MAILBOX, Unit::GetGameObject(), Object::GetGUIDLow(), WorldObject::GetMap(), WorldObject::GetName(), INTERACTION_DISTANCE, and SF_LOG_DEBUG.
Referenced by CanInteractWithQuestGiver(), and WorldSession::HandleGuildBankerActivate().
|
inline |
Definition at line 2180 of file Player.h.
References m_GlobalCooldownMgr.
Referenced by EquipItem().
Definition at line 2113 of file Player.h.
References _talentMgr.
Referenced by _LoadGlyphAuras(), _SaveGlyphs(), ActivateSpec(), BuildPlayerTalentsInfoData(), Spell::EffectApplyGlyph(), AuraEffect::HandleShapeshiftBoosts(), and SendInspectResult().
Definition at line 2108 of file Player.h.
References Object::GetUInt32Value(), and PLAYER_FIELD_GLYPH_SLOTS.
Referenced by _LoadGlyphAuras(), and Spell::EffectApplyGlyph().
| uint32 Player::GetGossipTextId | ( | uint32 | menuId, |
| WorldObject * | source ) |
Definition at line 12014 of file Player.cpp.
References DEFAULT_GOSSIP_MESSAGE, sConditionMgr, sObjectMgr, and WorldObject::WorldObject().
Referenced by LuaPlayer::GetGossipTextId(), GetGossipTextId(), npc_prof_blacksmith::SendActionMenu(), npc_prof_alchemy::SendConfirmLearn(), npc_prof_blacksmith::SendConfirmLearn(), npc_prof_tailor::SendConfirmLearn(), npc_prof_alchemy::SendConfirmUnlearn(), npc_prof_blacksmith::SendConfirmUnlearn(), npc_prof_leather::SendConfirmUnlearn(), npc_prof_tailor::SendConfirmUnlearn(), SendPreparedGossip(), and SendPreparedQuest().
| uint32 Player::GetGossipTextId | ( | WorldObject * | source | ) |
Definition at line 12006 of file Player.cpp.
References DEFAULT_GOSSIP_MESSAGE, GetDefaultGossipMenuForSource(), GetGossipTextId(), and WorldObject::WorldObject().
|
inline |
Definition at line 2546 of file Player.h.
References m_grantableLevels.
Referenced by WorldSession::HandleAcceptGrantLevel().
|
inline |
Definition at line 2972 of file Player.h.
References m_group.
Referenced by _LoadBoundInstances(), Group::AddInvite(), AchievementMgr< T >::AdditionalRequirementsSatisfied(), Group::AddMember(), Battlefield::AddOrSetPlayerToCorrectBfGroup(), InstanceMap::AddPlayerToMap(), Group::BroadcastAddonMessagePacket(), Group::BroadcastPacket(), ChatHandler::BuildChatPacket(), InstanceMap::CanEnter(), MapManager::CanPlayerEnter(), CanRollForItemInLFG(), CanUninviteFromGroup(), npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::CheckEventFail(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::CheckEventFail(), CheckInstanceLoginValid(), AchievementMgr< Guild >::CompletedAchievement(), MapInstanced::CreateInstanceForPlayer(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DamageTaken(), Group::Disband(), WorldSession::DoLootRelease(), SmartAI::EndPath(), Loot::FillLoot(), Loot::FillNonQuestNonFFAConditionalLoot(), Loot::FillQuestLoot(), LuaPlayer::GetGroup(), GetInstanceSave(), GetNextRandomRaidMember(), Unit::GetNextRandomRaidMemberOrPet(), Unit::GetPartyMembers(), ChatHandler::GetPlayerGroupAndGUIDByName(), GetsRecruitAFriendBonus(), GroupEventHappens(), WorldSession::HandleAddonMessagechatOpcode(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), debug_commandscript::HandleDebugLfgGroupCommand(), Unit::HandleDummyAuraProc(), WorldSession::HandleGrantLevel(), WorldSession::HandleGroupAssistantLeaderOpcode(), WorldSession::HandleGroupChangeSubGroupOpcode(), WorldSession::HandleGroupDisbandOpcode(), WorldSession::HandleGroupEveryoneIsAssistantOpcode(), WorldSession::HandleGroupInviteOpcode(), group_commandscript::HandleGroupJoinCommand(), group_commandscript::HandleGroupListCommand(), WorldSession::HandleGroupRaidConvertOpcode(), WorldSession::HandleGroupSetLeaderOpcode(), WorldSession::HandleGroupSetRolesOpcode(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleGroupUninviteGuidOpcode(), Guild::HandleGuildPartyRequest(), instance_commandscript::HandleInstanceListBindsCommand(), OutdoorPvP::HandleKill(), lfg_commandscript::HandleLfgGroupInfoCommand(), WorldSession::HandleLfgLeaveOpcode(), WorldSession::HandleLfgSetRolesOpcode(), WorldSession::HandleLootMethodOpcode(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleLootRoll(), WorldSession::HandleMessagechatOpcode(), WorldSession::HandleMinimapPingOpcode(), Battlefield::HandlePlayerLeaveZone(), WorldSession::HandlePlayerLogin(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleRaidReadyCheckConfirmOpcode(), WorldSession::HandleRaidReadyCheckOpcode(), WorldSession::HandleRaidTargetUpdateOpcode(), WorldSession::HandleRandomRollOpcode(), WorldSession::HandleSetPartyAssignmentOpcode(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleGroupCommand(), HasQuestForGO(), HasQuestForItem(), isAllowedToLoot(), SmartAI::IsEscortInvokerInRange(), LuaPlayer::IsInGroup(), IsInSameGroupWith(), IsInSameRaidWith(), GameObject::IsLootAllowedFor(), Creature::isTappedBy(), Channel::JoinChannel(), lfg::LFGMgr::JoinLfg(), boss_headless_horseman::boss_headless_horsemanAI::JustDied(), Unit::Kill(), KillCreditGO(), KilledMonsterCredit(), KilledPlayerCredit(), Pet::LoadPetFromDB(), lfg::LFGMgr::MakeNewGroup(), lfg::LFGPlayerScript::OnLogin(), lfg::LFGPlayerScript::OnLogout(), lfg::LFGPlayerScript::OnMapChanged(), InstanceMap::PermBindAllPlayers(), ProcessDelayedOperations(), ReadyCheckComplete(), LuaPlayer::RemoveFromGroup(), RemoveFromGroup(), RemovePet(), Group::ResetInstances(), RewardPlayerAndGroupAtEvent(), Group::SameSubGroup(), Satisfy(), SendInitialPacketsBeforeAddToMap(), WorldSession::SendLfgPartyLockInfo(), WorldSession::SendLfgPlayerLockInfo(), SendLoot(), SendNewItem(), LuaPlayer::SendPacketToGroup(), WorldSession::SendRolePollInform(), SendUpdateToOutOfRangeGroupMembers(), Group::SendUpdateToPlayer(), SetBattlegroundOrBattlefieldRaid(), Unit::SetHealth(), Creature::SetLootRecipient(), GameObject::SetLootRecipient(), Unit::SetMaxHealth(), Unit::SetMaxPower(), Unit::SetPower(), Unit::setPowerType(), lfg::LFGMgr::TeleportPlayer(), Unit::UpdateAuraForGroup(), UpdatePosition(), and UpdateZone().
|
inline |
|
inline |
Definition at line 2964 of file Player.h.
References m_groupInvite.
Referenced by Group::AddInvite(), LuaPlayer::GetGroupInvite(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleGroupInviteResponseOpcode(), and UninviteFromGroup().
|
inline |
|
inline |
Definition at line 2989 of file Player.h.
References m_groupUpdateMask.
Referenced by WorldSession::BuildPartyMemberStatsChangedPacket().
| Guild * Player::GetGuild | ( | ) |
Definition at line 22662 of file Player.cpp.
References GetGuildId(), and sGuildMgr.
Referenced by BuyItemFromVendorSlot(), AchievementMgr< Guild >::CompletedAchievement(), Spell::DoCreateItem(), Spell::EffectUnlockGuildVaultTab(), GiveLevel(), achievement_commandscript::HandleAchievementAddCommand(), WorldSession::HandleGuildBankerActivate(), WorldSession::HandleGuildBankSwapItems(), WorldSession::HandleGuildSetRankPermissionsOpcode(), WorldSession::HandleMirrorImageDataRequest(), WorldSession::HandleWhoOpcode(), LuaPlayer::SendGuildInvite(), LuaPlayer::SendPacketToGuild(), LuaPlayer::SendPacketToRankedInGuild(), StoreLootItem(), and UpdateZone().
|
inline |
Definition at line 2291 of file Player.h.
References Object::GetUInt32Value(), and OBJECT_FIELD_DATA.
Referenced by Guild::AddMember(), ChatHandler::BuildChatPacket(), BuyCurrencyFromVendorSlot(), BuyItemFromVendorSlot(), CanJoinConstantChannelInZone(), AchievementMgr< Guild >::CompletedAchievement(), DurabilityRepair(), LuaPlayer::GetGuild(), GetGuild(), LuaPlayer::GetGuildId(), LuaPlayer::GetGuildName(), GetGuildName(), WorldSession::HandleAddonMessagechatOpcode(), WorldSession::HandleCalendarEventInvite(), guild_commandscript::HandleGuildCreateCommand(), WorldSession::HandleGuildFinderGetRecruits(), WorldSession::HandleGuildFinderPostRequest(), WorldSession::HandleGuildFinderSetGuildPost(), guild_commandscript::HandleGuildRankCommand(), guild_commandscript::HandleGuildUninviteCommand(), Guild::HandleInviteMember(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleOfferPetitionOpcode(), WorldSession::HandlePlayerLogin(), WorldSession::HandleSendMail(), WorldSession::HandleWhoOpcode(), LuaPlayer::IsInGuild(), RewardQuest(), CalendarMgr::SendCalendarEvent(), SendInspectResult(), LuaPlayer::SetGuildRank(), and UpdateAchievementCriteria().
Definition at line 8020 of file Player.cpp.
References CHAR_SEL_GUILD_MEMBER, CharacterDatabase, GUID_LOPART(), and PreparedStatement::setUInt32().
Referenced by Guild::AddMember(), DeleteFromDB(), WorldSession::HandleCalendarEventInvite(), guild_commandscript::HandleGuildRankCommand(), guild_commandscript::HandleGuildUninviteCommand(), CalendarMgr::LoadFromDB(), and CalendarMgr::SendCalendarEvent().
|
inline |
Definition at line 2298 of file Player.h.
References m_GuildIdInvited.
Referenced by Guild::HandleInviteMember(), and WorldSession::HandleOfferPetitionOpcode().
|
inline |
Definition at line 2283 of file Player.h.
References Object::GetUInt32Value(), and PLAYER_FIELD_GUILD_LEVEL.
Referenced by BuyCurrencyFromVendorSlot(), and BuyItemFromVendorSlot().
| std::string Player::GetGuildName | ( | ) |
Definition at line 21986 of file Player.cpp.
References GetGuildId(), and sGuildMgr.
Referenced by Guild::HandleInviteMember().
| float Player::GetHealthBonusFromStamina | ( | ) |
Definition at line 238 of file StatSystem.cpp.
References Unit::getLevel(), Unit::GetStat(), sGtOCTHpPerStaminaStore, and STAT_STAMINA.
Referenced by LuaPlayer::GetHealthBonusFromStamina(), and UpdateMaxHealth().
|
inline |
Definition at line 1847 of file Player.h.
References m_ingametime.
Referenced by LuaPlayer::GetInGameTime().
|
inline |
Definition at line 1481 of file Player.h.
References inn_area_box_orientation.
Referenced by debug_commandscript::BuildInnAreaBounds().
|
inline |
Definition at line 1469 of file Player.h.
References inn_area_box_x.
Referenced by debug_commandscript::BuildInnAreaBounds().
|
inline |
Definition at line 1473 of file Player.h.
References inn_area_box_y.
Referenced by debug_commandscript::BuildInnAreaBounds().
|
inline |
Definition at line 1477 of file Player.h.
References inn_area_box_z.
Referenced by debug_commandscript::BuildInnAreaBounds().
|
inline |
Definition at line 1465 of file Player.h.
References inn_area_radius.
Referenced by debug_commandscript::BuildInnAreaBounds().
|
inline |
Definition at line 1449 of file Player.h.
References inn_pos_mapid.
Referenced by debug_commandscript::BuildInnAreaBounds().
|
inline |
Definition at line 1453 of file Player.h.
References inn_pos_x.
Referenced by debug_commandscript::BuildInnAreaBounds().
|
inline |
Definition at line 1457 of file Player.h.
References inn_pos_y.
Referenced by debug_commandscript::BuildInnAreaBounds().
|
inline |
Definition at line 1461 of file Player.h.
References inn_pos_z.
Referenced by debug_commandscript::BuildInnAreaBounds().
| InstanceSave * Player::GetInstanceSave | ( | uint32 | mapid | ) |
Definition at line 13891 of file Player.cpp.
References GetBoundInstance(), GetDifficulty(), GetGroup(), InstancePlayerBind::perm, InstancePlayerBind::save, and sMapStore.
Referenced by MapManager::CanPlayerEnter(), and LoadFromDB().
Definition at line 2660 of file PlayerStorage.cpp.
References 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::CheckItems(), Spell::EffectDestroyItem(), Spell::EffectRechargeManaGem(), and LuaPlayer::GetItemByEntry().
Definition at line 95 of file PlayerStorage.cpp.
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, BANK_SLOT_ITEM_START, EQUIPMENT_SLOT_START, GetBagByPos(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, and INVENTORY_SLOT_ITEM_END.
Referenced by Aura::_ApplyForTarget(), _SaveInventory(), WorldSession::DoLootRelease(), Unit::HandleAuraProcOnPowerAmount(), WorldSession::HandleAutoEquipItemSlotOpcode(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleBattlePetLearn(), debug_commandscript::HandleDebugGetItemValueCommand(), debug_commandscript::HandleDebugItemExpireCommand(), debug_commandscript::HandleDebugSetItemValueCommand(), Unit::HandleDummyAuraProc(), WorldSession::HandleLootMoneyOpcode(), Unit::HandleOverrideClassScriptAuraProc(), Unit::HandleProcTriggerSpell(), WorldSession::HandleTransmogrifyItems(), WorldSession::HandleVoidStorageTransfer(), SendLoot(), and SpellCastTargets::Update().
Definition at line 124 of file PlayerStorage.cpp.
References GetItemByPos().
Referenced by _SaveInventory(), _StoreItem(), AutoUnequipOffhandIfNeed(), BuildEnchantmentsInfoData(), CanEquipItem(), CanStoreItem_InBag(), CanStoreItem_InInventorySlots(), CanStoreItem_InSpecificSlot(), CanStoreItems(), CanUnequipItem(), CanUnequipItems(), CastItemCombatSpell(), CorrectMetaGemEnchants(), Create(), DestroyConjuredItems(), DestroyItem(), DestroyItemCount(), DestroyZoneLimitedItem(), DurabilityLossAll(), DurabilityPointLossForEquipSlot(), DurabilityPointsLossAll(), DurabilityRepair(), Spell::EffectEnchantHeldItem(), EnchantmentFitsRequirements(), EquipItem(), EquippedOk(), FindEquipSlot(), GetBagByPos(), LuaPlayer::GetEquippedItemBySlot(), GetItemByEntry(), GetItemByGuid(), LuaPlayer::GetItemByPos(), GetItemByPos(), GetItemCount(), GetItemCountWithLimitCategory(), GetShield(), GetUseableItemByPos(), GetWeaponForAttack(), misc_commandscript::HandleAddItemCommand(), spell_rog_deadly_poison::spell_rog_deadly_poison_SpellScript::HandleAfterHit(), AuraEffect::HandleAuraModDisarm(), AuraEffect::HandleAuraModShapeshift(), WorldSession::HandleCancelTempEnchantmentOpcode(), debug_commandscript::HandleDebugGetItemStateCommand(), WorldSession::HandleMirrorImageDataRequest(), WorldSession::HandleOpenItemOpcode(), WorldSession::HandleReforgeItemOpcode(), WorldSession::HandleTransmogrifyItems(), WorldSession::HandleVoidStorageTransfer(), HasItemCount(), HasItemOrGemWithIdEquipped(), HasItemOrGemWithLimitCategoryEquipped(), IsTwoHandUsed(), MoveItemFromInventory(), spell_monk_grapple_weapon::spell_monk_grapple_weapon_SpellScript::PrepareSpellScript(), RemoveArenaEnchantments(), RemoveItem(), SaveToDB(), SendInspectResult(), SplitItem(), SwapItem(), and ToggleMetaGemsActive().
Definition at line 131 of file PlayerStorage.cpp.
References BANK_SLOT_BAG_END, GetBagByPos(), INVENTORY_SLOT_BAG_0, and m_items.
Definition at line 27 of file PlayerStorage.cpp.
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, BANK_SLOT_ITEM_END, BANK_SLOT_ITEM_START, _Socket::Color, EQUIPMENT_SLOT_START, ItemTemplate::GemProperties, GetBagByPos(), Object::GetEntry(), GetItemByPos(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, and ItemTemplate::Socket.
Referenced by AdjustQuestReqItemCount(), CanRewardQuest(), CanTakeMoreSimilarItems(), LuaPlayer::GetItemCount(), quest_commandscript::HandleQuestComplete(), HasQuestForItem(), ItemRemovedQuestCheck(), and SendNewItem().
Definition at line 67 of file PlayerStorage.cpp.
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, BANK_SLOT_ITEM_START, EQUIPMENT_SLOT_START, GetBagByPos(), GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, and INVENTORY_SLOT_ITEM_END.
Referenced by CanTakeMoreSimilarItems().
Definition at line 3232 of file PlayerStorage.cpp.
References BUYBACK_SLOT_END, BUYBACK_SLOT_START, m_items, and SF_LOG_DEBUG.
|
inline |
Definition at line 1527 of file Player.h.
References m_itemUpdateQueue.
Referenced by debug_commandscript::HandleDebugGetItemStateCommand().
|
inline |
Definition at line 2300 of file Player.h.
References m_lastGuildInviterGUID.
|
inline |
Definition at line 2951 of file Player.h.
References m_lastpetnumber.
Referenced by spell_gen_pet_summoned::spell_gen_pet_summoned_SpellScript::HandleScript().
|
inline |
Definition at line 8086 of file Player.cpp.
References CHAR_SEL_CHAR_LEVEL, CharacterDatabase, Field::GetUInt8(), GUID_LOPART(), and PreparedStatement::setUInt32().
Referenced by character_commandscript::HandleCharacterLevelCommand(), character_commandscript::HandleLevelUpCommand(), Guild::MassInviteToEvent(), CalendarMgr::SendCalendarEvent(), and CalendarMgr::SendCalendarEventInvite().
|
inline |
Definition at line 1425 of file Player.h.
References m_Played_time, and PLAYED_TIME_LEVEL.
Referenced by LuaPlayer::GetLevelPlayedTime().
|
inline |
Definition at line 2393 of file Player.h.
References m_lootGuid.
Referenced by WorldSession::DoLootRelease(), WorldSession::HandleLootMoneyOpcode(), SendLoot(), StoreLootItem(), and SwapItem().
|
inline |
Definition at line 1607 of file Player.h.
References Object::GetUInt32Value(), and PLAYER_FIELD_LOOT_SPEC_ID.
Referenced by SetLootSpecialization().
| uint32 Player::GetLootSpecOrClassSpec | ( | ) | const |
|
inline |
Definition at line 2401 of file Player.h.
References m_lootView.
Referenced by WorldSession::HandleAutostoreLootItemOpcode(), and WorldSession::HandleLootMoneyOpcode().
Definition at line 79 of file PlayerMail.cpp.
References m_mail.
|
inline |
Definition at line 2011 of file Player.h.
References m_mail.
Referenced by WorldSession::HandleGetMailList().
|
inline |
Definition at line 2015 of file Player.h.
References m_mail.
Referenced by WorldSession::HandleGetMailList().
|
inline |
Definition at line 2005 of file Player.h.
References m_mail.
Referenced by WorldSession::HandleSendMail().
| float Player::GetManaSpecializationMultiplier | ( | ) |
Definition at line 259 of file StatSystem.cpp.
References GetActiveSpec(), GetTalentSpecialization(), SPEC_DRUID_BALANCE, SPEC_DRUID_RESTORATION, SPEC_PALADIN_HOLY, SPEC_SHAMAN_ELEMENTAL, and SPEC_SHAMAN_RESTORATION.
Referenced by UpdateMaxPower().
| std::string Player::GetMapAreaAndZoneString | ( | ) |
Definition at line 22637 of file Player.cpp.
References WorldObject::FindMap(), GetAreaEntryByAreaID(), WorldObject::GetAreaId(), WorldLocation::GetMapId(), Map::GetMapName(), GetSession(), and WorldSession::GetSessionDbcLocale().
Referenced by GetCoordsMapAreaAndZoneString().
|
inline |
Definition at line 3038 of file Player.h.
References m_mapRef.
Referenced by BattlegroundMap::CanEnter(), InstanceMap::CanEnter(), ResetMap(), and Map::UpdateIteratorBack().
Definition at line 17387 of file Player.cpp.
References GetArenaPersonalRating(), and MAX_ARENA_SLOT.
Referenced by BuyCurrencyFromVendorSlot(), and BuyItemFromVendorSlot().
Definition at line 6581 of file Player.cpp.
References Object::GetUInt16Value(), mSkillStatus, PLAYER_FIELD_SKILL_MAX_RANKS, PLAYER_FIELD_SKILL_MODIFIERS, PLAYER_FIELD_SKILL_TALENTS, and SKILL_DELETED.
Referenced by LuaPlayer::GetMaxSkillValue().
|
protected |
Definition at line 1177 of file Player.cpp.
References BREATH_TIMER, CONFIG_DISABLE_BREATHING, DISABLED_MIRROR_TIMER, FATIGUE_TIMER, FIRE_TIMER, GetSession(), Unit::HasAuraType(), IN_MILLISECONDS, Unit::IsAlive(), MINUTE, SPELL_AURA_WATER_BREATHING, and sWorld.
Referenced by HandleDrowning(), and IsMirrorTimerActive().
| float Player::GetMeleeCritFromAgility | ( | ) |
Definition at line 5820 of file Player.cpp.
References GtChanceToMeleeCritBaseEntry::base, Unit::getClass(), Unit::getLevel(), Unit::GetStat(), GT_MAX_LEVEL, GtChanceToMeleeCritEntry::ratio, sGtChanceToMeleeCritBaseStore, sGtChanceToMeleeCritStore, and STAT_AGILITY.
Referenced by UpdateAllCritPercentages().
Definition at line 88 of file PlayerMail.cpp.
References mMitems.
Referenced by WorldSession::HandleGetMailList(), WorldSession::HandleMailReturnToSender(), and WorldSession::HandleMailTakeItem().
|
inline |
Definition at line 1945 of file Player.h.
References Object::GetUInt64Value(), and PLAYER_FIELD_COINAGE.
Referenced by ActivateTaxiPathTo(), LuaPlayer::GetCoinage(), WorldSession::HandleAcceptTradeOpcode(), modify_commandscript::HandleModifyMoneyCommand(), misc_commandscript::HandlePInfoCommand(), HasEnoughMoney(), HasEnoughMoney(), ModifyMoney(), SaveGoldToDB(), SaveToDB(), and AchievementMgr< T >::UpdateAchievementCriteria().
Definition at line 183 of file PlayerQuestState.cpp.
References ASSERT, ObjectAccessor::GetCreatureOrPetOrVehicle(), Map::GetGameObject(), WorldObject::GetInstanceId(), WorldObject::GetMap(), WorldLocation::GetMapId(), Quest::GetNextQuestInChain(), GUID_HIPART(), Quest::HasFlag(), HIGHGUID_GAMEOBJECT, HIGHGUID_PET, HIGHGUID_PLAYER, HIGHGUID_UNIT, HIGHGUID_VEHICLE, Object::IsInWorld(), QUEST_FLAGS_PLAYER_CAST_ACCEPT, sMapMgr, and sObjectMgr.
| Player * Player::GetNextRandomRaidMember | ( | float | radius | ) |
Definition at line 20024 of file Player.cpp.
References Group::GetFirstMember(), GetGroup(), Group::GetMembersCount(), Unit::HasInvisibilityAura(), Unit::IsHostileTo(), WorldObject::IsWithinDistInMap(), GroupReference::next(), and Player().
Referenced by LuaPlayer::GetNextRandomRaidMember().
| uint32 Player::GetNextResetSpecializationCost | ( | ) | const |
Definition at line 4431 of file Player.cpp.
References GetSpecializationResetCost(), GetSpecializationResetTime(), GOLD, MONTH, and sWorld.
Referenced by SendTalentWipeConfirm().
| uint32 Player::GetNextResetTalentsCost | ( | ) | const |
Definition at line 4464 of file Player.cpp.
References GetTalentResetCost(), GetTalentResetTime(), GOLD, MONTH, and sWorld.
Referenced by ResetTalents(), and SendTalentWipeConfirm().
| uint8 Player::GetNextVoidStorageFreeSlot | ( | ) | const |
Definition at line 22488 of file Player.cpp.
References _voidStorageItems, and VOID_STORAGE_MAX_SLOT.
Referenced by AddVoidStorageItem().
Definition at line 2836 of file Player.cpp.
References CREATURE_TYPEFLAGS_DEAD_INTERACT, CREATURE_TYPEFLAGS_GHOST, Unit::GetCharmerGUID(), ObjectAccessor::GetCreatureOrPetOrVehicle(), Creature::GetCreatureTemplate(), Unit::getFaction(), GetRank(), GetReputationMgr(), Object::HasFlag(), INTERACTION_DISTANCE, Unit::IsAlive(), Unit::IsHostileTo(), Unit::IsInFlight(), Object::IsInWorld(), WorldObject::IsWithinDistInMap(), REP_UNFRIENDLY, sFactionStore, sFactionTemplateStore, CreatureTemplate::type_flags, and UNIT_FIELD_NPC_FLAGS.
Referenced by BuyCurrencyFromVendorSlot(), BuyItemFromVendorSlot(), CanInteractWithQuestGiver(), WorldSession::HandleActivateTaxiExpressOpcode(), WorldSession::HandleActivateTaxiOpcode(), WorldSession::HandleAuctionHelloOpcode(), WorldSession::HandleAuctionListBidderItems(), WorldSession::HandleAuctionListItems(), WorldSession::HandleAuctionListOwnerItems(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleAuctionSellItem(), WorldSession::HandleBankerActivateOpcode(), WorldSession::HandleBinderActivateOpcode(), WorldSession::HandleBuybackItem(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleGossipSelectOptionOpcode(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandlePetitionShowListOpcode(), WorldSession::HandleQuestgiverHelloOpcode(), WorldSession::HandleReforgeItemOpcode(), WorldSession::HandleRepairItemOpcode(), WorldSession::HandleSellItemOpcode(), WorldSession::HandleSpiritHealerActivateOpcode(), WorldSession::HandleTaxiQueryAvailableNodes(), WorldSession::HandleTrainerBuySpellOpcode(), WorldSession::HandleTransmogrifyItems(), WorldSession::HandleVoidStorageQuery(), WorldSession::HandleVoidStorageTransfer(), WorldSession::HandleVoidStorageUnlock(), WorldSession::HandleVoidSwapItem(), WorldSession::SendListInventory(), WorldSession::SendPetitionShowList(), and WorldSession::SendTrainerList().
| uint8 Player::GetNumOfVoidStorageFreeSlots | ( | ) | const |
Definition at line 22497 of file Player.cpp.
References _voidStorageItems, and VOID_STORAGE_MAX_SLOT.
Referenced by WorldSession::HandleVoidStorageTransfer().
|
inline |
Definition at line 3015 of file Player.h.
References m_originalGroup.
Referenced by Group::AddInvite(), Battleground::AddOrSetPlayerToCorrectBgGroup(), Group::Disband(), LuaPlayer::GetOriginalGroup(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleMessagechatOpcode(), RemoveFromBattlegroundOrBattlefieldRaid(), and Group::RemoveMember().
|
inline |
Definition at line 3019 of file Player.h.
References m_originalGroup.
|
inline |
Definition at line 3023 of file Player.h.
References m_originalGroup.
Referenced by LuaPlayer::GetOriginalSubGroup(), and RemoveFromBattlegroundOrBattlefieldRaid().
| OutdoorPvP * Player::GetOutdoorPvP | ( | ) | const |
Definition at line 19552 of file Player.cpp.
References WorldObject::GetZoneId(), and sOutdoorPvPMgr.
Referenced by WorldSession::HandleAreaTriggerOpcode(), and Unit::Kill().
|
inline |
Definition at line 3033 of file Player.h.
References m_bPassOnGroupLoot.
Referenced by Group::GroupLoot(), and Group::NeedBeforeGreed().
| Pet * Player::GetPet | ( | ) | const |
Definition at line 15640 of file Player.cpp.
References ObjectAccessor::GetPet(), Unit::GetPetGUID(), IS_PET_GUID(), and Object::IsInWorld().
Referenced by KillRewarder::_RewardXP(), ActivateSpec(), Unit::Attack(), Skyfire::PetTransport::BoardOwnerHunterPet(), WorldSession::BuildPartyMemberStatsChangedPacket(), BuildPetTalentsInfoData(), Unit::DealDamage(), Spell::EffectFeedPet(), Spell::EffectSummonDeadPet(), Spell::EffectSummonPet(), GiveLevel(), AuraEffect::HandleAuraModPetTalentsPoints(), misc_commandscript::HandleFreezeCommand(), AuraEffect::HandleModPossessPet(), pet_commandscript::HandlePetLearnCommand(), pet_commandscript::HandlePetUnlearnCommand(), WorldSession::HandlePlayerLogin(), reset_commandscript::HandleResetLevelCommand(), InitStatsForLevel(), Unit::Kill(), PetSpellInitialize(), PrepareGossipMenu(), RemoveArenaSpellCooldowns(), Skyfire::PetTransport::RemoveOwnerHunterPet(), RemovePet(), ResetPetTalents(), SaveToDB(), SendUpdateToOutOfRangeGroupMembers(), SetGameMaster(), TeleportTo(), UnsummonPetTemporaryIfAny(), Update(), UpdateArmor(), UpdateAttackPowerAndDamage(), UpdateResistances(), and UpdateStats().
Definition at line 6599 of file Player.cpp.
References Object::GetUInt16Value(), mSkillStatus, PLAYER_FIELD_SKILL_MAX_RANKS, and SKILL_DELETED.
Referenced by addSpell(), LuaPlayer::GetPureMaxSkillValue(), learn_commandscript::HandleLearnAllRecipesCommand(), lookup_commandscript::HandleLookupSkillCommand(), misc_commandscript::HandleSetSkillCommand(), removeSpell(), and AchievementMgr< T >::UpdateAchievementCriteria().
Definition at line 6631 of file Player.cpp.
References Object::GetUInt16Value(), mSkillStatus, PLAYER_FIELD_SKILL_RANKS, and SKILL_DELETED.
Referenced by _LoadSkills(), addSpell(), Spell::EffectMilling(), Spell::EffectOpenLock(), Spell::EffectProspecting(), LuaPlayer::GetPureSkillValue(), lookup_commandscript::HandleLookupSkillCommand(), removeSpell(), UpdateCraftSkill(), and UpdateFishingSkill().
Definition at line 1741 of file Player.h.
References Unit::getLevel(), and Quest::GetQuestLevel().
Referenced by WorldSession::getDialogStatus(), LuaPlayer::GetQuestLevel(), and RewardReputation().
Definition at line 2312 of file PlayerQuestState.cpp.
References m_questObjectiveStatus.
Referenced by _SaveQuestObjectiveStatus(), CanCompleteQuest(), GetReqKillOrCastCurrentCount(), npc_transient::npc_transientAI::GiveClueCredit(), HasQuestForGO(), HasQuestForItem(), ItemAddedQuestCheck(), ItemRemovedQuestCheck(), KillCreditGO(), KilledMonsterCredit(), KilledPlayerCredit(), QuestObjectiveSatisfy(), and TalkedToCreature().
| bool Player::GetQuestRewardStatus | ( | uint32 | quest_id | ) | const |
Definition at line 1361 of file PlayerQuestState.cpp.
References Quest::IsRepeatable(), m_RewardedQuests, and sObjectMgr.
Referenced by _LoadQuestStatus(), CanRewardQuest(), WorldSession::getDialogStatus(), lfg::LFGMgr::GetLockedDungeons(), spell_gen_on_tournament_mount::spell_gen_on_tournament_mount_AuraScript::GetPennatSpellId(), LuaPlayer::GetQuestRewardStatus(), AchievementMgr< T >::RequirementsSatisfied(), and Satisfy().
Definition at line 1519 of file PlayerQuestState.cpp.
References Object::GetUInt64Value(), MAX_QUEST_OFFSET, PLAYER_FIELD_QUEST_LOG, and QUEST_COUNTS_OFFSET.
Referenced by SendQuestUpdateAddCredit(), and SendQuestUpdateAddPlayer().
Definition at line 1509 of file PlayerQuestState.cpp.
References Object::GetUInt32Value(), MAX_QUEST_OFFSET, PLAYER_FIELD_QUEST_LOG, and QUEST_ID_OFFSET.
Referenced by _LoadQuestObjectiveStatus(), Spell::EffectQuestClear(), FindQuestSlot(), quest_commandscript::HandleQuestRemove(), HasPvPForcingQuest(), HasQuestForGO(), HasQuestForItem(), ItemAddedQuestCheck(), ItemRemovedQuestCheck(), KillCreditGO(), KilledMonsterCredit(), KilledPlayerCredit(), MoneyChanged(), QuestObjectiveSatisfy(), ReputationChangedQuestCheck(), and TalkedToCreature().
Definition at line 1514 of file PlayerQuestState.cpp.
References Object::GetUInt32Value(), MAX_QUEST_OFFSET, PLAYER_FIELD_QUEST_LOG, and QUEST_STATE_OFFSET.
Definition at line 1524 of file PlayerQuestState.cpp.
References Object::GetUInt32Value(), MAX_QUEST_OFFSET, PLAYER_FIELD_QUEST_LOG, and QUEST_TIME_OFFSET.
| QuestStatus Player::GetQuestStatus | ( | uint32 | quest_id | ) | const |
Definition at line 1375 of file PlayerQuestState.cpp.
References m_QuestStatus, m_RewardedQuests, QUEST_STATUS_NONE, QUEST_STATUS_REWARDED, and sObjectMgr.
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::spell_item_demon_broiled_surprise_SpellScript::CheckRequirement(), npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DamageTaken(), npc_mist::npc_mistAI::DoComplete(), Spell::EffectQuestClear(), SmartAI::EndPath(), WorldSession::getDialogStatus(), LuaPlayer::GetQuestStatus(), WorldSession::HandleAreaTriggerOpcode(), spell_item_chicken_cover::spell_item_chicken_cover_SpellScript::HandleDummy(), spell_sindragosa_frost_breath::spell_sindragosa_frost_breath_SpellScript::HandleInfusion(), lookup_commandscript::HandleLookupQuestCommand(), WorldSession::HandlePushQuestToParty(), quest_commandscript::HandleQuestComplete(), quest_commandscript::HandleQuestReward(), SpellArea::IsFitToRequirements(), npc_magmoth_crusher::npc_magmoth_crusherAI::JustDied(), npc_nerubar_victim::npc_nerubar_victimAI::JustDied(), npc_netherweb_victim::npc_netherweb_victimAI::JustDied(), npc_stinky::npc_stinkyAI::JustDied(), npc_a_special_surprise::npc_a_special_surpriseAI::MeetQuestCondition(), npc_creditmarker_visit_with_ancestors::npc_creditmarker_visit_with_ancestorsAI::MoveInLineOfSight(), npc_jaomin_ro::npc_jaomin_roAI::MoveInLineOfSight(), npc_kservant::npc_kservantAI::MoveInLineOfSight(), npc_master_shang_xi_temple::npc_master_shang_xi_templeAI::MoveInLineOfSight(), npc_shu_pool_of_reflection::npc_shu_pool_of_reflectionAI::MoveInLineOfSight(), npc_skywing::npc_skywingAI::MoveInLineOfSight(), npc_tooga::npc_toogaAI::MoveInLineOfSight(), npc_transient::npc_transientAI::MoveInLineOfSight(), go_demon_portal::OnGossipHello(), go_gauntlet_gate::OnGossipHello(), npc_marshal_dughan::OnGossipHello(), npc_Spirit_of_Master_Shang_Xi::OnGossipHello(), at_bring_your_orphan_to::OnTrigger(), npc_doctor::npc_doctorAI::PatientDied(), npc_doctor::npc_doctorAI::PatientSaved(), PlayerHasActiveQuest(), PrepareQuestMenu(), SatisfyQuestExclusiveGroup(), SatisfyQuestNextChain(), SatisfyQuestPreviousQuest(), SatisfyQuestStatus(), npc_drakuru_shackles::npc_drakuru_shacklesAI::SpellHit(), npc_greengill_slave::npc_greengill_slaveAI::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), npc_lazy_peon::npc_lazy_peonAI::SpellHit(), npc_restless_soul::npc_restless_soulAI::SpellHit(), npc_sinkhole_kill_credit::npc_sinkhole_kill_creditAI::SpellHit(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::UpdateAI(), npc_dragonmaw_peon::npc_dragonmaw_peonAI::UpdateAI(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::UpdateAI(), npc_seaforium_depth_charge::npc_seaforium_depth_chargeAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), GameObject::Use(), and npc_stinky::npc_stinkyAI::WaypointReached().
|
inline |
Definition at line 1961 of file Player.h.
References m_QuestStatus.
Referenced by AddQuest(), and npc_jungle_punch_target::npc_jungle_punch_targetAI::SpellHit().
|
inline |
Definition at line 2316 of file Player.h.
References m_raidDifficulty.
Referenced by Group::AddMember(), Group::Create(), LuaPlayer::GetDifficulty(), misc_commandscript::HandleAppearCommand(), ResetInstances(), SaveToDB(), and SendRaidDifficulty().
| ResearchDigsiteInfo const * Player::GetRandomResearchDigsiteForContinent | ( | uint32 | mapId | ) |
Definition at line 23507 of file Player.cpp.
References _researchDigsites, HasCompletedAllRareProjectsForRace(), IsResearchDigsiteAvailable(), MAX_DIGSITES_PER_CONTINENT, RESEARCH_CONTINENT_COUNT, roll_chance_i(), Skyfire::Containers::SelectRandomContainerElement(), and sObjectMgr.
Referenced by TryToSpawnResearchDigsiteOnContinent().
Definition at line 23758 of file Player.cpp.
References GetSkillValue(), HasCompletedAllCommonProjectsForRace(), HasCompletedResearchProject(), rand32(), roll_chance_f(), Skyfire::Containers::SelectRandomContainerElement(), SKILL_ARCHAEOLOGY, sObjectMgr, and sResearchProjectStore.
Referenced by UpdateResearchProjects().
|
inline |
Definition at line 2757 of file Player.h.
References m_IsBGRandomWinner.
Referenced by BattlegroundMgr::BuildBattlegroundListPacket(), and Battleground::EndBattleground().
|
inline |
Definition at line 2275 of file Player.h.
References Object::GetUInt32Value(), and PLAYER_FIELD_GUILD_RANK_ID.
Referenced by LuaPlayer::GetGuildRank(), and GetNPCIfCanInteractWith().
Definition at line 8030 of file Player.cpp.
References CHAR_SEL_GUILD_MEMBER, CharacterDatabase, GUID_LOPART(), and PreparedStatement::setUInt32().
| float Player::GetRatingBonusValue | ( | CombatRating | cr | ) | const |
Definition at line 5924 of file Player.cpp.
References CR_RESILIENCE_PLAYER_DAMAGE_TAKEN, GetRatingMultiplier(), Object::GetUInt32Value(), and PLAYER_FIELD_COMBAT_RATINGS.
Referenced by GetRuneTypeBaseCooldown(), Unit::MeleeDamageBonusTaken(), UpdateBlockPercentage(), UpdateCritPercentage(), UpdateDodgePercentage(), UpdateExpertise(), UpdateMastery(), UpdateMeleeHitChances(), UpdateParryPercentage(), UpdatePvpPower(), UpdateRangedHitChances(), UpdateSpellCritChance(), and UpdateSpellHitChances().
| float Player::GetRatingMultiplier | ( | CombatRating | cr | ) | const |
Definition at line 5908 of file Player.cpp.
References Unit::getClass(), Unit::getLevel(), GT_MAX_LEVEL, GT_MAX_RATING, GtCombatRatingsEntry::ratio, GtOCTClassCombatRatingScalarEntry::ratio, sGtCombatRatingsStore, and sGtOCTClassCombatRatingScalarStore.
Referenced by ApplyRatingMod(), and GetRatingBonusValue().
|
inline |
Definition at line 2309 of file Player.h.
Referenced by GetCurrencyWeekCap().
Definition at line 21981 of file Player.cpp.
References ReputationMgr::GetReputation(), GetReputationMgr(), and sFactionStore.
Referenced by CanCompleteQuest(), ReputationChangedQuestCheck(), and SatisfyQuestReputation().
|
inline |
Definition at line 2555 of file Player.h.
References m_reputationMgr.
Referenced by Unit::_IsValidAttackTarget(), AddQuest(), CanCompleteQuest(), Create(), Spell::EffectReputation(), GetNPCIfCanInteractWith(), Unit::GetReactionTo(), LuaPlayer::GetReputation(), GetReputation(), GetReputationRank(), OutdoorPvPSI::HandleAreaTrigger(), character_commandscript::HandleCharacterReputationCommand(), spell_gen_oracle_wolvar_reputation::spell_gen_oracle_wolvar_reputation_SpellScript::HandleDummy(), AuraEffect::HandleForceReaction(), lookup_commandscript::HandleLookupFactionCommand(), modify_commandscript::HandleModifyRepCommand(), quest_commandscript::HandleQuestComplete(), WorldSession::HandleSetFactionAtWar(), WorldSession::HandleSetFactionCheat(), WorldSession::HandleSetFactionNotAtWar(), ReputationChangedQuestCheck(), RewardReputation(), RewardReputation(), SatisfyQuestReputation(), SendInitialPacketsBeforeAddToMap(), LuaPlayer::SetReputation(), SetReputation(), and AchievementMgr< T >::UpdateAchievementCriteria().
|
inline |
Definition at line 2559 of file Player.h.
References m_reputationMgr.
| float Player::GetReputationPriceDiscount | ( | Creature const * | creature | ) | const |
Definition at line 19337 of file Player.cpp.
References FactionTemplateEntry::faction, Unit::GetFactionTemplateEntry(), GetReputationRank(), and REP_NEUTRAL.
Referenced by ActivateTaxiPathTo(), and BuyItemFromVendorSlot().
| ReputationRank Player::GetReputationRank | ( | uint32 | faction_id | ) | const |
Definition at line 7098 of file Player.cpp.
References ReputationMgr::GetRank(), GetReputationMgr(), and sFactionStore.
Referenced by BuyCurrencyFromVendorSlot(), BuyItemFromVendorSlot(), CanUseItem(), GetReputationPriceDiscount(), LuaPlayer::GetReputationRank(), Unit::HandleDummyAuraProc(), and AuraEffect::HandleForceReaction().
Definition at line 1470 of file PlayerQuestState.cpp.
References GetQuestObjectiveCounter(), Quest::GetQuestObjectiveCountType(), Quest::m_questObjectives, QUEST_OBJECTIVE_TYPE_ITEM, QUEST_OBJECTIVE_TYPE_NPC, and sObjectMgr.
Referenced by npc_unkor_the_ruthless::npc_unkor_the_ruthlessAI::DamageTaken(), LuaPlayer::GetReqKillOrCastCurrentCount(), and npc_creditmarker_visit_with_ancestors::npc_creditmarker_visit_with_ancestorsAI::MoveInLineOfSight().
| ResearchDigsite * Player::GetResearchDigsiteForFind | ( | GameObject const * | go | ) | const |
Definition at line 23322 of file Player.cpp.
References _researchDigsites, ResearchDigsite::GetArchaeologyFind(), WorldObject::GetDistance(), Object::GetEntry(), Object::GetGUID(), WorldLocation::GetMapId(), GameObject::GetOwnerGUID(), ArchaeologyFindInfo::goEntry, INTERACTION_DISTANCE, MAX_DIGSITES_PER_CONTINENT, RESEARCH_CONTINENT_COUNT, ResearchContinents, ArchaeologyFindInfo::x, ArchaeologyFindInfo::y, and ArchaeologyFindInfo::z.
Referenced by OnArchaeologyFindUsed().
|
inline |
Definition at line 1434 of file Player.h.
References m_rest_bonus.
Referenced by LuaPlayer::GetRestBonus(), GetXPRestBonus(), debug_commandscript::HandleDebugRestCommand(), LoadFromDB(), and Update().
|
inline |
Definition at line 2780 of file Player.h.
References m_restTime.
Referenced by LuaPlayer::GetRestTime(), and isRested().
|
inline |
Definition at line 1440 of file Player.h.
References rest_type.
Referenced by WorldSession::HandleAreaTriggerOpcode(), debug_commandscript::HandleDebugRestCommand(), UpdateRestAreaState(), and UpdateZone().
| uint32 Player::GetResurrectionSpellId | ( | ) |
Definition at line 19654 of file Player.cpp.
References Unit::GetAuraEffectsByType(), HasSpell(), HasSpellCooldown(), roll_chance_i(), SF_LOG_ERROR, and SPELL_AURA_DUMMY.
Referenced by Unit::Kill(), and setDeathState().
|
inline |
Definition at line 1966 of file Player.h.
References m_RewardedQuests.
Referenced by AchievementMgr< T >::UpdateAchievementCriteria().
|
inline |
Definition at line 1957 of file Player.h.
References m_RewardedQuests.
Referenced by AchievementMgr< T >::UpdateAchievementCriteria().
Definition at line 3069 of file Player.h.
References GetBaseRune(), and GetRuneTypeBaseCooldown().
Referenced by Spell::TakeRunePower(), and UpdateRuneRegen().
Definition at line 3065 of file Player.h.
References m_runes.
Referenced by Spell::CheckRuneCost(), Spell::EffectActivateRune(), AuraEffect::HandleAuraConvertRune(), IsBaseRuneSlotsOnCooldown(), RegenerateAll(), ResyncRunes(), and Spell::TakeRunePower().
|
inline |
Definition at line 20513 of file Player.cpp.
References CR_HASTE_MELEE, Unit::GetAuraEffectsByType(), GetRatingBonusValue(), Unit::GetTotalAuraModifier(), POWER_RUNES, RUNE_BASE_COOLDOWN, SPELL_AURA_MOD_MELEE_HASTE, SPELL_AURA_MOD_MELEE_HASTE_2, SPELL_AURA_MOD_MELEE_HASTE_3, and SPELL_AURA_MOD_POWER_REGEN_PERCENT.
Referenced by GetRuneBaseCooldown(), and UpdateAllRunesRegen().
|
inline |
Definition at line 2827 of file Player.h.
References m_nextSave.
Referenced by misc_commandscript::HandleSaveCommand().
| Player * Player::GetSelectedPlayer | ( | ) | const |
Definition at line 18392 of file Player.cpp.
References ObjectAccessor::GetPlayer(), Object::GetUInt64Value(), Player(), and UNIT_FIELD_TARGET.
Referenced by Spell::CheckCast(), LuaPlayer::GetSelectedPlayer(), and WorldSession::HandlePetBattleRequestPvp().
| Unit * Player::GetSelectedUnit | ( | ) | const |
Definition at line 18385 of file Player.cpp.
References Object::GetUInt64Value(), ObjectAccessor::GetUnit(), Unit::Unit(), and UNIT_FIELD_TARGET.
Referenced by ChatHandler::ExecuteCommandInTable(), LuaPlayer::GetSelectedUnit(), LuaPlayer::GetSelection(), Unit::HandleDummyAuraProc(), and ResolveAmpuleTarget().
|
inline |
Definition at line 2417 of file Player.h.
References m_session, and WorldSession.
Referenced by _GetCurrencyWeekCap(), _LoadHomeBind(), _LoadInventory(), Pet::_LoadSpellCooldowns(), _SaveInstanceTimeRestrictions(), _StoreOrEquipNewItem(), ActivateTaxiPathTo(), AddEnchantmentDuration(), BattlegroundQueue::AddGroup(), LuaPlayer::AddItem(), AddItem(), Guild::AddMember(), Battleground::AddPlayer(), InstanceMap::AddPlayerToMap(), AddRunePower(), addSpell(), AddVoidStorageItem(), AddVoidStorageItemAtSlot(), Channel::Announce(), ApplyEquipCooldown(), AutoUnequipOffhandIfNeed(), World::BanCharacter(), BindToInstance(), Group::BroadcastAddonMessagePacket(), Group::BroadcastPacket(), Group::BroadcastReadyCheck(), SocialMgr::BroadcastToFriendListers(), AuctionHouseObject::BuildListAuctionItems(), BuildPlayerRepop(), CanJoinToBattleground(), MapManager::CanPlayerEnter(), CanSpeak(), CharmSpellInitialize(), Spell::CheckCast(), CheckDuelDistance(), ContinueTaxiFlight(), ConvertRune(), Group::CountTheRoll(), Guild::Create(), Create(), DeleteVoidStorageItem(), Object::DestroyForPlayer(), Group::Disband(), DuelComplete(), DurabilityRepair(), Spell::EffectDuel(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), Spell::EffectEnchantItemTmp(), Spell::EffectUnlockGuildVaultTab(), EquipItem(), BGQueueInviteEvent::Execute(), BGQueueRemoveEvent::Execute(), lfg::LFGMgr::FinishDungeon(), LuaPlayer::GetAccountId(), LuaPlayer::GetAccountName(), ChannelMgr::GetChannel(), LuaPlayer::GetDbcLocale(), LuaPlayer::GetDbLocaleIndex(), SocialMgr::GetFriendInfo(), LuaPlayer::GetGMRank(), LuaPlayer::GetLatency(), lfg::LFGMgr::GetLockedDungeons(), GetMapAreaAndZoneString(), getMaxTimer(), LuaGroup::GetMembers(), LuaPlayer::GetNearbyGameObject(), LuaPlayer::GetPlayerIP(), LuaGlobalFunctions::GetPlayersInMap(), LuaPlayer::GetRecruiterId(), GetsRecruitAFriendBonus(), GetVoidStorageItem(), GiveLevel(), Guild::GiveXP(), LuaPlayer::GossipSendPOI(), Group::GroupLoot(), WorldSession::HandleAcceptGrantLevel(), WorldSession::HandleAcceptTradeOpcode(), account_commandscript::HandleAccountSetAddonCommand(), account_commandscript::HandleAccountSetGmLevelCommand(), BattlegroundAB::HandleAreaTrigger(), BattlegroundAV::HandleAreaTrigger(), WorldSession::HandleAreaTriggerOpcode(), AuraEffect::HandleAuraForceWeather(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleBeginTradeOpcode(), character_commandscript::HandleCharacterEraseCommand(), character_commandscript::HandleCharacterLevel(), character_commandscript::HandleCharacterRenameCommand(), WorldSession::HandleChatIgnoredOpcode(), spell_gen_spirit_healer_res::spell_gen_spirit_healer_res_SpellScript::HandleDummy(), Unit::HandleDummyAuraProc(), cheat_commandscript::HandleExploreCheatCommand(), ticket_commandscript::HandleGMTicketUnAssignCommand(), WorldSession::HandleGrantLevel(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleGroupInviteResponseOpcode(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleInitiateTradeOpcode(), Guild::HandleInviteMember(), misc_commandscript::HandleKickPlayerCommand(), lookup_commandscript::HandleLookupPlayerIpCommand(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleMailTakeItem(), Guild::HandleMemberDepositMoney(), WorldSession::HandleMessagechatOpcode(), modify_commandscript::HandleModifyASpeedCommand(), modify_commandscript::HandleModifyBWalkCommand(), modify_commandscript::HandleModifyEnergyCommand(), modify_commandscript::HandleModifyFlyCommand(), modify_commandscript::HandleModifyGenderCommand(), modify_commandscript::HandleModifyHPCommand(), modify_commandscript::HandleModifyManaCommand(), modify_commandscript::HandleModifyMoneyCommand(), modify_commandscript::HandleModifyMountCommand(), modify_commandscript::HandleModifyRageCommand(), modify_commandscript::HandleModifyRunicPowerCommand(), modify_commandscript::HandleModifySpeedCommand(), modify_commandscript::HandleModifySpellCommand(), modify_commandscript::HandleModifySwimCommand(), misc_commandscript::HandleMuteCommand(), WorldSession::HandleOfferPetitionOpcode(), WorldSession::HandlePetitionDeclineOpcode(), misc_commandscript::HandlePInfoCommand(), Battlefield::HandlePlayerLeaveZone(), OutdoorPvP::HandlePlayerLeaveZone(), WorldSession::HandlePlayerLogin(), AuraEffect::HandlePlayScene(), misc_commandscript::HandleRepairitemsCommand(), reset_commandscript::HandleResetSpellsCommand(), reset_commandscript::HandleResetTalentsCommand(), misc_commandscript::HandleReviveCommand(), WorldSession::HandleSendMail(), send_commandscript::HandleSendMessageCommand(), misc_commandscript::HandleSummonCommand(), cheat_commandscript::HandleTaxiCheatCommand(), tele_commandscript::HandleTeleGroupCommand(), tele_commandscript::HandleTeleNameCommand(), ticket_commandscript::HandleTicketUnAssignCommand(), misc_commandscript::HandleUnmuteCommand(), WorldSession::HandleWhoisOpcode(), WorldSession::HandleWhoOpcode(), ChatHandler::HasLowerSecurity(), Totem::InitStats(), InitTalentForLevel(), Channel::Invite(), BattlegroundQueue::InviteGroupToBG(), Battlefield::InvitePlayerToQueue(), Battlefield::InvitePlayerToWar(), LuaPlayer::IsARecruiter(), isBeingLoaded(), IsNeverVisible(), SpellMgr::IsSpellValid(), ObjectMgr::IsVendorItemValid(), IsVisibleGloballyFor(), Channel::JoinChannel(), lfg::LFGMgr::JoinLfg(), LuaGlobalFunctions::Kick(), Channel::KickOrBan(), LuaPlayer::KickPlayer(), Pet::learnSpell(), learnSpell(), Channel::LeaveChannel(), Channel::List(), LoadFromDB(), BattlegroundSA::LogBoatDebugMarker(), LuaPlayer::LogoutPlayer(), Group::MasterLoot(), ModifyCurrency(), ModifySpellCooldown(), WorldObject::MonsterWhisper(), WorldObject::MonsterWhisper(), WorldSession::moveItems(), Group::NeedBeforeGreed(), Group::OfflineReadyCheck(), OnArchaeologyFindUsed(), OnGossipSelect(), lfg::LFGPlayerScript::OnLogin(), lfg::LFGPlayerScript::OnLogout(), lfg::LFGPlayerScript::OnMapChanged(), BattlefieldWG::OnPlayerLeaveWar(), lfg::LFGGroupScript::OnRemoveMember(), CreatureTextLocalizer< Builder >::operator()(), Skyfire::LocalizedPacketDo< Builder >::operator()(), Skyfire::LocalizedPacketListDo< Builder >::operator()(), Channel::Password(), InstanceMap::PermBindAllPlayers(), PetSpellInitialize(), Player(), Battlefield::PlayerAcceptInviteToQueue(), Battlefield::PlayerAcceptInviteToWar(), PossessSpellInitialize(), PrepareGossipMenu(), ProhibitSpellSchool(), ReadMovementInfo(), rbac_commandscript::ReadParams(), Group::RemoveMember(), RemovePet(), RemovePetitionsAndSigns(), removeSpell(), RepopAtGraveyard(), ResurrectPlayer(), ResyncRunes(), RewardHonor(), Satisfy(), SatisfyQuestLog(), SaveToDB(), AchievementMgr< Guild >::SendAchievementInfo(), SendActionButtons(), npc_prof_alchemy::SendActionMenu(), npc_prof_blacksmith::SendActionMenu(), npc_prof_leather::SendActionMenu(), npc_prof_tailor::SendActionMenu(), AchievementMgr< Guild >::SendAllAchievementData(), Battlefield::SendAreaSpiritHealerQueryOpcode(), BattlegroundMgr::SendAreaSpiritHealerQueryOpcode(), SendAttackSwingCancelAttack(), SendAttackSwingError(), AuctionHouseMgr::SendAuctionCancelledToBidderMail(), AuctionHouseMgr::SendAuctionExpiredMail(), LuaPlayer::SendAuctionMenu(), BlackMarketMgr::SendAuctionOutbidded(), AuctionHouseMgr::SendAuctionOutbiddedMail(), AuctionHouseMgr::SendAuctionSuccessfulMail(), BlackMarketMgr::SendAuctionWon(), AuctionHouseMgr::SendAuctionWonMail(), SendAurasForTarget(), SendAutoRepeatCancel(), LuaPlayer::SendBroadcastMessage(), SendBuyFailed(), SendCanTakeQuestResponse(), Spell::SendCastResult(), SendCinematicStart(), SendComboPoints(), SendCorpseReclaimDelay(), SendCurrencies(), SendDeclineGuildInvitation(), Object::SendDestroyObject(), SendDuelCountdown(), SendDungeonDifficulty(), Unit::SendDurabilityLoss(), SendEnchantmentDurations(), SendEquipError(), SendEquipmentSetList(), SendExplorationExperience(), WeatherMgr::SendFineWeatherUpdateToPlayer(), SocialMgr::SendFriendStatus(), SendGameError(), TicketMgr::SendGmTicketUpdate(), LuaPlayer::SendGuildInvite(), SendInitialPacketsAfterAddToMap(), SendInitialPacketsBeforeAddToMap(), SendInitialSpells(), Map::SendInitSelf(), Map::SendInitTransports(), SendInitWorldStates(), BattlefieldWG::SendInitWorldStatesTo(), SendInstanceResetWarning(), SendItemRefundResult(), LuaPlayer::SendListInventory(), SendLogXPGain(), Group::SendLootAllPassed(), Group::SendLootRoll(), Group::SendLootRollWon(), Group::SendLootStartRoll(), Group::SendLootStartRollToPlayer(), SendMailResult(), SendMessageToSet(), SendMessageToSetInRange(), SendMessageToSetInRange(), SendMirrorTimer(), Unit::SendMoveKnockBack(), SendNewCurrency(), SendNewItem(), SendNewMail(), CreatureTextMgr::SendNonChatPacket(), LuaPlayer::SendNotification(), SendNotifyLootItemRemoved(), SendNotifyLootMoneyRemoved(), SendOnCancelExpectedVehicleRideAura(), Skyfire::MessageDistDeliverer::SendPacket(), LuaPlayer::SendPacketToPlayer(), Unit::SendPetActionFeedback(), Unit::SendPetAIReaction(), Unit::SendPetTalk(), WorldObject::SendPlaySound(), SendPreparedQuest(), SendProficiency(), SendPushToPartyResponse(), SendPvpRewards(), SendQuestComplete(), SendQuestConfirmAccept(), SendQuestFailed(), SendQuestReward(), SendQuestTimerFailed(), SendQuestUpdateAddCredit(), SendQuestUpdateAddPlayer(), SendRaidDifficulty(), SendRaidInfo(), SendRefundInfo(), SendRemoveControlBar(), Map::SendRemoveTransports(), SendResearchHistory(), SendResetFailedNotify(), SendResetInstanceFailed(), SendResetInstanceSuccess(), Spell::SendResurrectRequest(), SendSavedInstances(), SendSellResponse(), World::SendServerMessage(), LuaPlayer::SendShowBank(), PlayerSocial::SendSocialList(), LuaPlayer::SendSpiritResurrect(), SendSurveyCastInfo(), LuaPlayer::SendTabardVendorActivate(), SendTalentsInfoData(), SendTalentWipeConfirm(), LuaPlayer::SendTaxiMenu(), SendTimeSync(), Item::SendTimeUpdate(), LuaPlayer::SendTrainerList(), SendTransferAborted(), Group::SendUpdateToPlayer(), Object::SendUpdateToPlayer(), SendUpdateWorldState(), LuaPlayer::SendVendorWindow(), Weather::SendWeatherUpdateToPlayer(), SetBindPoint(), SetClientControl(), SetDrunkValue(), Group::SetDungeonDifficulty(), Item::SetEnchantment(), SetEquipmentSet(), SetGameMaster(), SetGMVisible(), Channel::SetMode(), Channel::SetOwner(), Group::SetRaidDifficulty(), SetRestBonus(), SetSkill(), Unit::SetStandState(), Guild::Member::SetStats(), SetTitle(), ShowNeutralPlayerFactionSelectUI(), SolveResearchProject(), SpawnCorpseBones(), StopCinematic(), StopMirrorTimer(), LuaPlayer::SummonPlayer(), lfg::LFGMgr::TeleportPlayer(), TeleportTo(), TextEmote(), TradeCancel(), Channel::UnBan(), UnbindInstance(), Pet::unlearnSpell(), Map::Update(), Update(), WorldObject::UpdateAreaPhase(), UpdateConquestCurrencyCap(), UpdateForQuestWorldObjects(), UpdateHomebindTime(), UpdateLocalChannels(), UpdatePhasing(), Group::UpdatePlayerOutOfRange(), UpdatePosition(), UpdateSpeakTime(), UpdateTriggerVisibility(), GameObject::Use(), VehicleSpellInitialize(), Whisper(), and WhisperAddon().
| Item * Player::GetShield | ( | bool | useable = false | ) | const |
Definition at line 190 of file PlayerStorage.cpp.
References ItemTemplate::Class, EQUIPMENT_SLOT_OFFHAND, GetItemByPos(), Item::GetTemplate(), GetUseableItemByPos(), INVENTORY_SLOT_BAG_0, Item::IsBroken(), and ITEM_CLASS_ARMOR.
Definition at line 6646 of file Player.cpp.
References Object::GetUInt16Value(), mSkillStatus, PLAYER_FIELD_SKILL_TALENTS, and SKILL_DELETED.
Referenced by LuaPlayer::GetSkillPermBonusValue(), and lookup_commandscript::HandleLookupSkillCommand().
Definition at line 6551 of file Player.cpp.
References Object::GetUInt16Value(), mSkillStatus, PLAYER_FIELD_SKILL_STEPS, and SKILL_DELETED.
Referenced by addSpell(), learn_commandscript::HandleLearnAllRecipesCommand(), misc_commandscript::HandleSetSkillCommand(), and removeSpell().
Definition at line 6661 of file Player.cpp.
References Object::GetUInt16Value(), mSkillStatus, PLAYER_FIELD_SKILL_MODIFIERS, and SKILL_DELETED.
Referenced by LuaPlayer::GetSkillTempBonusValue(), and lookup_commandscript::HandleLookupSkillCommand().
Definition at line 6563 of file Player.cpp.
References Object::GetUInt16Value(), mSkillStatus, PLAYER_FIELD_SKILL_MODIFIERS, PLAYER_FIELD_SKILL_RANKS, PLAYER_FIELD_SKILL_TALENTS, and SKILL_DELETED.
Referenced by AddItemsSetItem(), Group::AddMember(), ApplyEnchantment(), CanRollForItemInLFG(), CanUseItem(), CanUseItem(), Spell::CheckItems(), GetExplicitDiscoverySpell(), Unit::GetMountCapability(), GetRandomResearchProjectForRace(), GetSkillDiscoverySpell(), LuaPlayer::GetSkillValue(), HasCompletedAllCommonProjectsForRace(), Item::HasEnchantRequiredSkill(), IsResearchDigsiteAvailable(), Group::RemoveMember(), Group::ResetMaxEnchantingLevel(), SatisfyQuestSkill(), Spell::SummonGuardian(), and GameObject::Use().
|
inline |
Definition at line 1346 of file Player.h.
References m_social.
Referenced by Spell::EffectDuel(), SocialMgr::GetFriendInfo(), WorldSession::HandleAddFriendOpcodeCallBack(), WorldSession::HandleGroupInviteOpcode(), Guild::HandleInviteMember(), lfg::LFGMgr::HasIgnore(), Channel::Invite(), and SendInitialPacketsBeforeAddToMap().
|
inline |
Definition at line 2069 of file Player.h.
References _talentMgr.
Referenced by GetNextResetSpecializationCost().
|
inline |
Definition at line 2071 of file Player.h.
References _talentMgr.
Referenced by GetNextResetSpecializationCost().
|
inline |
Definition at line 2079 of file Player.h.
References _talentMgr.
Referenced by _LoadGlyphs(), _SaveGlyphs(), ActivateSpec(), BuildPlayerTalentsInfoData(), LuaPlayer::GetSpecsCount(), InitTalentForLevel(), LoadFromDB(), OnGossipSelect(), PrepareGossipMenu(), SaveToDB(), and UpdateSpecCount().
Definition at line 17504 of file Player.cpp.
References m_spellCooldowns.
Referenced by Spell::EffectHealBattlePetPct(), LuaPlayer::GetSpellCooldownDelay(), Aura::HandleAuraSpecificMods(), Unit::HandleDummyAuraProc(), ModifySpellCooldown(), and ProhibitSpellSchool().
|
inline |
Definition at line 2150 of file Player.h.
References m_spellCooldowns.
Referenced by spell_mage_cold_snap::spell_mage_cold_snap_SpellScript::HandleDummy().
|
inline |
Definition at line 2588 of file Player.h.
References m_spellCooldowns.
| float Player::GetSpellCritFromIntellect | ( | ) |
Definition at line 5892 of file Player.cpp.
References GtChanceToSpellCritBaseEntry::base, Unit::getClass(), Unit::getLevel(), Unit::GetStat(), GT_MAX_LEVEL, GtChanceToSpellCritEntry::ratio, sGtChanceToSpellCritBaseStore, sGtChanceToSpellCritStore, and STAT_INTELLECT.
Referenced by UpdateSpellCritChance().
|
inline |
|
inline |
Definition at line 2141 of file Player.h.
References m_spells.
Referenced by AuraEffect::HandleShapeshiftBoosts(), Unit::ModifyAuraState(), resetSpells(), and AchievementMgr< T >::UpdateAchievementCriteria().
|
inline |
Definition at line 2368 of file Player.h.
References m_spellPenetrationItemMod.
| bool Player::GetsRecruitAFriendBonus | ( | bool | forXP | ) |
Definition at line 19716 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(), GroupReference::next(), Player(), and sWorld.
Referenced by CalculateReputationGain(), LuaPlayer::GiveXP(), and GiveXP().
| WorldLocation Player::GetStartPosition | ( | ) | const |
Definition at line 18057 of file Player.cpp.
References CLASS_DEATH_KNIGHT, Unit::getClass(), Unit::getRace(), HasSpell(), PlayerInfo::mapId, PlayerInfo::positionX, PlayerInfo::positionY, PlayerInfo::positionZ, sObjectMgr, and WorldLocation::WorldLocation().
Referenced by Spell::EffectStuck(), and misc_commandscript::HandleUnstuckCommand().
|
inline |
Definition at line 2985 of file Player.h.
References m_group.
Referenced by Unit::GetPartyMembers(), LuaPlayer::GetSubGroup(), Group::SameSubGroup(), and SetBattlegroundOrBattlefieldRaid().
|
inline |
Definition at line 2122 of file Player.h.
References _talentMgr.
|
inline |
Definition at line 2118 of file Player.h.
References _talentMgr.
Referenced by _SaveTalents(), AddTalent(), HasTalent(), RemoveTalent(), and ResetTalents().
|
inline |
Definition at line 2067 of file Player.h.
References _talentMgr.
Referenced by GetNextResetTalentsCost(), and SaveToDB().
|
inline |
Definition at line 2073 of file Player.h.
References _talentMgr.
Referenced by GetNextResetTalentsCost(), and SaveToDB().
Definition at line 2075 of file Player.h.
References _talentMgr.
Referenced by _LoadSpells(), Battleground::AddPlayer(), BuildPlayerTalentsInfoData(), GetManaSpecializationMultiplier(), GiveLevel(), WorldSession::HandleCastSpellOpcode(), spell_dru_eclipse_energize::spell_dru_eclipse_energize_SpellScript::HandleEnergize(), IsCurrentSpecMasterySpell(), LoadFromDB(), RegenerateAll(), ResetTalents(), SaveToDB(), and SendInspectResult().
|
inline |
Definition at line 2527 of file Player.h.
References m_team.
Referenced by Battleground::_GetPlayerForTeam(), ActivateTaxiPathTo(), GameObject::ActivateToQuest(), BattlegroundQueue::AddGroup(), Battleground::AddPlayer(), LootItem::AllowedForPlayer(), SocialMgr::BroadcastToFriendListers(), Group::CanJoinBattlegroundQueue(), OPvPCapturePointZM_GraveYard::CanTalkTo(), AchievementMgr< T >::CanUpdateCriteria(), CanUseItem(), BattlegroundAB::CheckAchievementCriteriaMeet(), BattlegroundAV::CheckAchievementCriteriaMeet(), BattlegroundBFG::CheckAchievementCriteriaMeet(), BattlegroundSA::CheckAchievementCriteriaMeet(), BattlegroundWS::CheckAchievementCriteriaMeet(), BattlegroundEY::CheckSomeoneLeftPoint(), CleanupChannels(), ContinueTaxiFlight(), Create(), Battleground::EndBattleground(), BattlegroundAV::EventPlayerAssaultsPoint(), BattlegroundEY::EventPlayerCapturedFlag(), BattlegroundTP::EventPlayerCapturedFlag(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundAB::EventPlayerClickedOnFlag(), BattlegroundBFG::EventPlayerClickedOnFlag(), BattlegroundEY::EventPlayerClickedOnFlag(), BattlegroundTP::EventPlayerClickedOnFlag(), BattlegroundWS::EventPlayerClickedOnFlag(), BattlegroundAV::EventPlayerDefendsPoint(), BattlegroundEY::EventPlayerDroppedFlag(), BattlegroundTP::EventPlayerDroppedFlag(), BattlegroundWS::EventPlayerDroppedFlag(), BattlegroundEY::EventTeamCapturedPoint(), GetBGTeam(), Battleground::GetClosestGraveYard(), BattlegroundAB::GetClosestGraveYard(), BattlegroundAV::GetClosestGraveYard(), BattlegroundBFG::GetClosestGraveYard(), BattlegroundEY::GetClosestGraveYard(), BattlegroundIC::GetClosestGraveYard(), BattlegroundTP::GetClosestGraveYard(), BattlegroundVOP::GetClosestGraveYard(), BattlegroundWS::GetClosestGraveYard(), SocialMgr::GetFriendInfo(), lfg::LFGMgr::GetLockedDungeons(), Guild::HandleAcceptMember(), BattlegroundAB::HandleAreaTrigger(), BattlegroundAV::HandleAreaTrigger(), BattlegroundEY::HandleAreaTrigger(), OutdoorPvPSI::HandleAreaTrigger(), WorldSession::HandleCalendarEventInvite(), message_commandscript::HandleChannelSetOwnership(), debug_commandscript::HandleDebugSpawnVehicleCommand(), OutdoorPvPSI::HandleDropFlag(), spell_item_brewfest_mount_transformation::spell_item_brewfest_mount_transformation_SpellScript::HandleDummy(), spell_item_teach_language::spell_item_teach_language_SpellScript::HandleDummy(), spell_q6124_6129_apply_salve::spell_q6124_6129_apply_salve_SpellScript::HandleDummy(), WorldSession::HandleGroupInviteOpcode(), Guild::HandleGuildPartyRequest(), WorldSession::HandleInitiateTradeOpcode(), Guild::HandleInviteMember(), OutdoorPvPHP::HandleKillImpl(), OutdoorPvPNA::HandleKillImpl(), OutdoorPvPZM::HandleKillImpl(), Battleground::HandleKillPlayer(), BattlegroundAV::HandleKillPlayer(), BattlegroundIC::HandleKillPlayer(), BattlegroundAV::HandleKillUnit(), WorldSession::HandleMessagechatOpcode(), WorldSession::HandleOfferPetitionOpcode(), OutdoorPvPHP::HandlePlayerEnterZone(), OutdoorPvPNA::HandlePlayerEnterZone(), OutdoorPvPSI::HandlePlayerEnterZone(), OutdoorPvPTF::HandlePlayerEnterZone(), OutdoorPvPZM::HandlePlayerEnterZone(), OutdoorPvPHP::HandlePlayerLeaveZone(), BattlegroundAV::HandleQuestComplete(), WorldSession::HandleSendMail(), WorldSession::HandleWhoOpcode(), Channel::Invite(), LuaPlayer::IsAlliance(), IsGroupVisibleFor(), LuaPlayer::IsHorde(), LoadFromDB(), AchievementCriteriaData::Meets(), npc_mageguard_dalaran::npc_mageguard_dalaranAI::MoveInLineOfSight(), lfg::LFGPlayerScript::OnLogin(), at_bring_your_orphan_to::OnTrigger(), PrepareGossipMenu(), npc_pet_gen_mojo::npc_pet_gen_mojoAI::ReceiveEmote(), Battleground::RemovePlayerAtLeave(), RepopAtGraveyard(), ReportedAfkBy(), RewardHonor(), RewardReputation(), Satisfy(), World::SendGlobalGMMessage(), SendLoot(), Skyfire::MessageDistDeliverer::SendPacket(), Creature::SendZoneUnderAttackMessage(), SetBattlegroundEntryPoint(), Channel::SetMode(), Channel::SetOwner(), Map::SummonCreature(), UpdateLocalChannels(), BattlegroundEY::UpdatePointStatuses(), UpdateZone(), and npc_isla_starmane::npc_isla_starmaneAI::WaypointReached().
|
inline |
Definition at line 2531 of file Player.h.
References ALLIANCE, m_team, TEAM_ALLIANCE, and TEAM_HORDE.
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup(), BattlegroundIC::AddPlayer(), BattlegroundSA::AddPlayer(), Battlefield::AskToLeaveQueue(), BattlegroundSA::CaptureGraveyard(), BattlegroundSA::CheckAchievementCriteriaMeet(), BattlegroundIC::DestroyGate(), BattlegroundIC::DoAction(), BattlegroundTP::EventPlayerCapturedFlag(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundIC::EventPlayerClickedOnFlag(), BattlegroundSA::EventPlayerUsedGO(), Battlefield::GetClosestGraveYard(), BattlegroundIC::GetClosestGraveYard(), BattlegroundSA::GetClosestGraveYard(), LuaGlobalFunctions::GetPlayersInMap(), LuaPlayer::GetTeam(), BattlegroundIC::HandleAreaTrigger(), WorldSession::HandleGrantLevel(), WorldSession::HandleGuildFinderBrowse(), WorldSession::HandleGuildFinderSetGuildPost(), BattlefieldWG::HandleKill(), BattlegroundIC::HandleKillPlayer(), BfCapturePoint::HandlePlayerEnter(), OPvPCapturePoint::HandlePlayerEnter(), Battlefield::HandlePlayerEnterZone(), OutdoorPvP::HandlePlayerEnterZone(), BfCapturePoint::HandlePlayerLeave(), OPvPCapturePoint::HandlePlayerLeave(), Battlefield::HandlePlayerLeaveZone(), OutdoorPvP::HandlePlayerLeaveZone(), BattlegroundIC::HandlePlayerResurrect(), Battlefield::HasPlayer(), OutdoorPvP::HasPlayer(), Battlefield::InvitePlayerToQueue(), Battlefield::InvitePlayerToWar(), SpellArea::IsFitToRequirements(), BfCapturePoint::IsInsideObjective(), OPvPCapturePoint::IsInsideObjective(), BattlegroundIC::IsSpellAllowed(), AchievementCriteriaData::Meets(), BattlefieldWG::OnCreatureCreate(), BattlefieldWG::OnPlayerJoinWar(), Battlefield::PlayerAcceptInviteToQueue(), Battlefield::PlayerAcceptInviteToWar(), and OPvPCapturePoint::Update().
|
inline |
Definition at line 2489 of file Player.h.
References m_teleport_dest, and WorldLocation::WorldLocation().
Referenced by WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAckOpcode(), and SaveToDB().
|
inline |
Definition at line 2893 of file Player.h.
References m_temporaryUnsummonedPetNumber.
Referenced by Pet::SavePetToDB().
|
inline |
| float Player::GetTotalBaseModValue | ( | BaseModGroup | modGroup | ) | const |
Definition at line 5806 of file Player.cpp.
References BASEMOD_END, FLAT_MOD, m_auraBaseMod, PCT_MOD, and SF_LOG_ERROR.
|
inline |
Definition at line 2637 of file Player.h.
References FLAT_MOD, m_auraBaseMod, and PCT_MOD.
Referenced by UpdateCritPercentage().
|
inline |
Definition at line 1424 of file Player.h.
References m_Played_time, and PLAYED_TIME_TOTAL.
Referenced by LuaPlayer::GetTotalPlayedTime(), misc_commandscript::HandlePInfoCommand(), WorldSession::moveItems(), SendRefundInfo(), and StoreNewItem().
|
inline |
Definition at line 1694 of file Player.h.
References m_trade.
Referenced by SplitItem(), and SpellCastTargets::Update().
|
inline |
Definition at line 1690 of file Player.h.
References m_trade, and Player().
Referenced by UpdatePosition().
| TrainerSpellState Player::GetTrainerSpellState | ( | TrainerSpell const * | trainer_spell | ) | const |
Definition at line 4694 of file Player.cpp.
References GetBaseSkillValue(), GetFreePrimaryProfessionPoints(), Unit::getLevel(), HasSpell(), SpellInfo::IsPrimaryProfessionFirstRank(), IsSpellFitByClassAndRace(), TrainerSpell::learnedSpell, MAX_SPELL_EFFECTS, TrainerSpell::reqLevel, TrainerSpell::reqSkill, TrainerSpell::reqSkillValue, sSpellMgr, TRAINER_SPELL_GRAY, TRAINER_SPELL_GREEN, TRAINER_SPELL_GREEN_DISABLED, and TRAINER_SPELL_RED.
Definition at line 12158 of file Player.cpp.
References Tokenizer::size().
Referenced by BuildEnumData(), and GetFloatValueFromArray().
Definition at line 141 of file PlayerStorage.cpp.
References Unit::CanUseAttackType(), GetAttackBySlot(), and GetItemByPos().
Referenced by GetShield(), GetWeaponForAttack(), HasItemFitToSpellRequirements(), Aura::IsProcTriggeredOnEvent(), and Unit::IsTriggeredAtSpellProcEvent().
|
inline |
Definition at line 2065 of file Player.h.
References _talentMgr.
Referenced by addSpell(), InitTalentForLevel(), and removeSpell().
| WorldObject * Player::GetViewpoint | ( | ) | const |
Definition at line 20314 of file Player.cpp.
References ObjectAccessor::GetObjectByTypeMask(), Object::GetUInt64Value(), PLAYER_FIELD_FARSIGHT_OBJECT, TYPEMASK_SEER, and WorldObject::WorldObject().
Referenced by RemoveFromWorld(), StopCastingBindSight(), and Map::Update().
| VoidStorageItem * Player::GetVoidStorageItem | ( | uint64 | id, |
| uint8 & | slot ) const |
Definition at line 22574 of file Player.cpp.
References _voidStorageItems, and VOID_STORAGE_MAX_SLOT.
| VoidStorageItem * Player::GetVoidStorageItem | ( | uint8 | slot | ) | const |
Definition at line 22563 of file Player.cpp.
References _voidStorageItems, GetSession(), WorldSession::SendVoidStorageTransferResult(), VOID_STORAGE_MAX_SLOT, and VOID_TRANSFER_ERROR_INTERNAL_ERROR_1.
Referenced by WorldSession::HandleVoidStorageQuery(), WorldSession::HandleVoidStorageTransfer(), and WorldSession::HandleVoidSwapItem().
| Item * Player::GetWeaponForAttack | ( | WeaponAttackType | attackType, |
| bool | useable = false ) const |
Definition at line 157 of file PlayerStorage.cpp.
References BASE_ATTACK, ItemTemplate::Class, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, GetItemByPos(), Item::GetTemplate(), GetUseableItemByPos(), INVENTORY_SLOT_BAG_0, Item::IsBroken(), Unit::IsInFeralForm(), ITEM_CLASS_WEAPON, OFF_ATTACK, and RANGED_ATTACK.
Referenced by CalculateMinMaxDamage(), Spell::CheckItems(), SpellInfo::CheckTarget(), Unit::GetAPMultiplier(), AuraEffect::HandleAuraModWeaponCritPercent(), Unit::HandleDummyAuraProc(), AuraEffect::HandleModDamageDone(), AuraEffect::HandleModDamagePercentDone(), Unit::haveOffhandWeapon(), SetRegularAttackTime(), SetSheath(), and UpdateExpertise().
|
inline |
Definition at line 1673 of file Player.h.
References m_WeaponProficiency.
Referenced by Spell::EffectProficiency().
Definition at line 10370 of file Player.cpp.
References GetRestBonus(), SetRestBonus(), and SF_LOG_INFO.
Referenced by LuaPlayer::GetXPRestBonus(), LuaPlayer::GiveXP(), and GiveXP().
Definition at line 8040 of file Player.cpp.
References CHAR_SEL_CHAR_POSITION_XYZ, CHAR_SEL_CHAR_ZONE, CHAR_UPD_ZONE, CharacterDatabase, Field::GetFloat(), Field::GetUInt16(), GUID_LOPART(), PreparedStatement::setUInt16(), PreparedStatement::setUInt32(), sMapMgr, and sMapStore.
Referenced by Guild::Member::LoadFromDB().
| void Player::GiveLevel | ( | uint8 | level | ) |
Definition at line 3166 of file Player.cpp.
References _ApplyAllLevelScaleItemMods(), ACHIEVEMENT_CRITERIA_TYPE_REACH_LEVEL, CharacterDatabase, CONFIG_ALWAYS_MAXSKILL, CONFIG_MAX_RECRUIT_A_FRIEND_BONUS_PLAYER_LEVEL, CONFIG_START_PETBAR_LEVEL, GetActiveSpec(), Unit::getClass(), Unit::GetCreateHealth(), Unit::GetCreateMana(), Unit::GetCreateStat(), GetGuild(), Unit::getLevel(), Unit::GetMaxPower(), GetPet(), Unit::GetPower(), Unit::getRace(), Unit::getRaceMask(), GetSession(), GetSpellsForLevels(), GetTalentSpecialization(), GUILD_MEMBER_DATA_LEVEL, Object::HasByteFlag(), HasSpell(), InitGlyphsForLevel(), InitTalentForLevel(), InitTaxiNodesForLevel(), learnSpell(), m_grantableLevels, m_Played_time, MAIL_CREATURE, MAX_POWERS_PER_CLASS, MAX_STATS, PetSpellInitialize(), PLAYED_TIME_LEVEL, PLAYER_FIELD_LIFETIME_MAX_RANK, PLAYER_FIELD_NEXT_LEVEL_XP, POWER_ENERGY, POWER_FOCUS, POWER_MANA, POWER_RAGE, MailDraft::SendMailTo(), WorldSession::SendPacket(), Object::SetByteFlag(), Unit::SetCreateHealth(), Unit::SetCreateMana(), Unit::SetCreateStat(), Unit::SetFullHealth(), Unit::SetLevel(), Unit::SetPower(), Object::SetUInt32Value(), SMSG_LEVELUP_INFO, sObjectMgr, sScriptMgr, STAT_STRENGTH, PlayerLevelInfo::stats, sWorld, UpdateAchievementCriteria(), UpdateAllStats(), UpdateSkillsForLevel(), and UpdateSkillsToMaxSkillsForLevel().
Referenced by LuaPlayer::GiveLevel(), LuaPlayer::GiveXP(), GiveXP(), and character_commandscript::HandleCharacterLevel().
| bool Player::GiveQuestSourceItem | ( | Quest const * | quest | ) |
Definition at line 1299 of file PlayerQuestState.cpp.
References CanStoreNewItem(), EQUIP_ERR_ITEM_MAX_COUNT, EQUIP_ERR_OK, Quest::GetSrcItemId(), NULL_BAG, NULL_SLOT, QUEST_SOURCE_ITEM_COUNT, SendEquipError(), SendNewItem(), and StoreNewItem().
Referenced by AddQuest().
Definition at line 3105 of file Player.cpp.
References CONFIG_MAX_PLAYER_LEVEL, GetBattlegroundId(), Unit::getLevel(), GetsRecruitAFriendBonus(), Object::GetTypeId(), Object::GetUInt32Value(), GetXPRestBonus(), WorldObject::GetZoneId(), GiveLevel(), Unit::HasAura(), Object::HasFlag(), Creature::hasLootRecipient(), Unit::IsAlive(), PLAYER_FIELD_NEXT_LEVEL_XP, PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FIELD_XP, PLAYER_FLAGS_NO_XP_GAIN, SendLogXPGain(), Object::SetUInt32Value(), sScriptMgr, sWorld, Object::ToCreature(), TYPEID_UNIT, and Unit::Unit().
Referenced by KillRewarder::_RewardXP(), CheckAreaExploreAndOutdoor(), and RewardQuest().
| void Player::GroupEventHappens | ( | uint32 | questId, |
| WorldObject const * | pEventObject ) |
Definition at line 1593 of file PlayerQuestState.cpp.
References AreaExploredOrEventHappens(), GetCorpse(), GetGroup(), IsAtGroupRewardDistance(), GroupReference::next(), Player(), and WorldObject::WorldObject().
Referenced by npc_mist::npc_mistAI::DoComplete(), SmartAI::EndPath(), LuaPlayer::GroupEventHappens(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), npc_tooga::npc_toogaAI::MoveInLineOfSight(), npc_overlord_morghor::npc_overlord_morghorAI::NextStep(), npc_jungle_punch_target::npc_jungle_punch_targetAI::proceedCwEvent(), SmartScript::ProcessAction(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), npc_crusade_persuaded::npc_crusade_persuadedAI::UpdateAI(), npc_elder_kekek::npc_elder_kekekAI::UpdateAI(), npc_high_oracle_soo_roo::npc_high_oracle_soo_rooAI::UpdateAI(), npc_professor_phizzlethorpe::npc_professor_phizzlethorpeAI::UpdateAI(), npc_snowfall_glade_playmate::npc_snowfall_glade_playmateAI::UpdateAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::UpdateAI(), npc_the_etymidian::npc_the_etymidianAI::UpdateAI(), npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI(), npc_brann_hos::npc_brann_hosAI::UpdateEscortAI(), npc_akuno::npc_akunoAI::WaypointReached(), npc_apothecary_hanes::npc_Apothecary_HanesAI::WaypointReached(), npc_bessy::npc_bessyAI::WaypointReached(), npc_bonker_togglevolt::npc_bonker_togglevoltAI::WaypointReached(), npc_deathstalker_erland::npc_deathstalker_erlandAI::WaypointReached(), npc_earthmender_wilda::npc_earthmender_wildaAI::WaypointReached(), npc_emily::npc_emilyAI::WaypointReached(), npc_engineer_helice::npc_engineer_heliceAI::WaypointReached(), npc_gilthares::npc_giltharesAI::WaypointReached(), npc_injured_goblin::npc_injured_goblinAI::WaypointReached(), npc_injured_rainspeaker_oracle::npc_injured_rainspeaker_oracleAI::WaypointReached(), npc_isla_starmane::npc_isla_starmaneAI::WaypointReached(), npc_kayra_longmane::npc_kayra_longmaneAI::WaypointReached(), npc_kservant::npc_kservantAI::WaypointReached(), npc_mootoo_the_younger::npc_mootoo_the_youngerAI::WaypointReached(), npc_ranger_lilatha::npc_ranger_lilathaAI::WaypointReached(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::WaypointReached(), npc_stinky::npc_stinkyAI::WaypointReached(), npc_willix::npc_willixAI::WaypointReached(), and npc_wounded_blood_elf::npc_wounded_blood_elfAI::WaypointReached().
| void Player::HandleBaseModValue | ( | BaseModGroup | modGroup, |
| BaseModType | modType, | ||
| float | amount, | ||
| bool | apply ) |
Definition at line 5767 of file Player.cpp.
References ApplyPercentModFloatVar(), BASE_ATTACK, BASEMOD_END, Unit::CanModifyStats(), CRIT_PERCENTAGE, FLAT_MOD, m_auraBaseMod, MOD_END, OFF_ATTACK, OFFHAND_CRIT_PERCENTAGE, RANGED_ATTACK, RANGED_CRIT_PERCENTAGE, SF_LOG_ERROR, and UpdateCritPercentage().
Referenced by _ApplyWeaponDependentAuraCritMod(), ApplyEnchantment(), ApplyReforgeEnchantment(), AuraEffect::HandleAuraModCritPct(), AuraEffect::HandleAuraModWeaponCritPercent(), and AuraEffect::HandleShieldBlockValue().
|
protected |
Definition at line 1220 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_FIELD_PLAYER_FLAGS, PLAYER_FLAGS_GHOST, RepopAtGraveyard(), SendMirrorTimer(), StopMirrorTimer(), UNDERWARER_INDARKWATER, UNDERWATER_EXIST_TIMERS, UNDERWATER_INLAVA, and UNDERWATER_INWATER.
Referenced by Update().
| void Player::HandleFall | ( | MovementInfo const & | movementInfo | ) |
Definition at line 20949 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_FALL_WITHOUT_DYING, AURA_INTERRUPT_FLAG_LANDING, DAMAGE_FALL, EnvironmentalDamage(), MovementInfo::JumpInfo::fallTime, Unit::GetHealth(), Unit::GetMaxHealth(), Position::GetPositionZ(), Unit::GetTotalAuraModifier(), Unit::HasAura(), Unit::HasAuraType(), Unit::IsAlive(), Unit::isDead(), IsGameMaster(), Unit::IsImmunedToDamage(), MovementInfo::jump, m_lastFallZ, Position::m_positionX, Position::m_positionY, Position::m_positionZ, MovementInfo::pos, RATE_DAMAGE_FALL, Unit::RemoveAurasWithInterruptFlags(), SF_LOG_DEBUG, SPELL_AURA_FEATHER_FALL, SPELL_AURA_FLY, SPELL_AURA_HOVER, SPELL_AURA_SAFE_FALL, SPELL_SCHOOL_MASK_NORMAL, sWorld, UpdateAchievementCriteria(), and WorldObject::UpdateGroundPositionZ().
Referenced by WorldSession::HandleMovementOpcodes().
|
protected |
The player sobers by 1% every 9 seconds.
Definition at line 1337 of file Player.cpp.
References GetDrunkValue(), m_drunkTimer, and SetDrunkValue().
Referenced by Update().
| bool Player::HasAchieved | ( | uint32 | achievementId | ) | const |
Definition at line 21013 of file Player.cpp.
References m_achievementMgr.
Referenced by BuyCurrencyFromVendorSlot(), BuyItemFromVendorSlot(), lfg::LFGMgr::GetLockedDungeons(), spell_gen_on_tournament_mount::spell_gen_on_tournament_mount_AuraScript::GetPennatSpellId(), LuaPlayer::HasAchieved(), and Satisfy().
| bool Player::HasActiveSpell | ( | uint32 | spell | ) | const |
Definition at line 4687 of file Player.cpp.
References m_spells, and PLAYERSPELL_REMOVED.
Referenced by WorldSession::HandleCastSpellOpcode().
|
inline |
Definition at line 2876 of file Player.h.
References m_atLoginFlags.
Referenced by WorldSession::HandlePlayerLogin(), LuaPlayer::HasAtLoginFlag(), resetSpells(), ResetTalents(), and Pet::resetTalentsForAllPetsOf().
| bool Player::HasCompletedAllCommonProjectsForRace | ( | uint32 | researchBranchId, |
| bool | onlyAvailable ) const |
Definition at line 23741 of file Player.cpp.
References GetSkillValue(), HasCompletedResearchProject(), SKILL_ARCHAEOLOGY, sObjectMgr, and sResearchProjectStore.
Referenced by GetRandomResearchProjectForRace().
| bool Player::HasCompletedAllRareProjectsForRace | ( | uint32 | researchBranchId | ) | const |
Definition at line 23731 of file Player.cpp.
References HasCompletedResearchProject(), and sResearchProjectStore.
Referenced by GetRandomResearchDigsiteForContinent().
|
inline |
Definition at line 3214 of file Player.h.
References _researchHistory.
Referenced by GetRandomResearchProjectForRace(), HasCompletedAllCommonProjectsForRace(), and HasCompletedAllRareProjectsForRace().
return presence related currency
Definition at line 7672 of file Player.cpp.
References _currencyStorage.
Referenced by BuyCurrencyFromVendorSlot(), BuyItemFromVendorSlot(), and CanRewardQuest().
| bool Player::HasEnoughMoney | ( | int64 | amount | ) | const |
Definition at line 18366 of file Player.cpp.
References GetMoney().
|
inline |
Definition at line 1950 of file Player.h.
References GetMoney().
Referenced by BuyItemFromVendorSlot(), CanCompleteQuest(), CanRewardQuest(), DurabilityRepair(), WorldSession::HandleAcceptTradeOpcode(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), Guild::HandleBuyBankTab(), WorldSession::HandleReforgeItemOpcode(), Guild::HandleSetEmblem(), WorldSession::HandleVoidStorageTransfer(), OnGossipSelect(), ProcessCastaction(), ProcessUnlearnAction(), and ResetTalents().
| bool Player::HasFreeBattlegroundQueueId | ( | ) |
Definition at line 19274 of file Player.cpp.
References BATTLEGROUND_QUEUE_NONE, m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by Group::CanJoinBattlegroundQueue().
Definition at line 311 of file PlayerStorage.cpp.
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, BANK_SLOT_ITEM_END, BANK_SLOT_ITEM_START, 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, and Item::IsInTrade().
Referenced by BuyCurrencyFromVendorSlot(), BuyItemFromVendorSlot(), CanCompleteRepeatableQuest(), Spell::CheckItems(), Spell::EffectCreateItem2(), go_wind_stone::GetItems(), lfg::LFGMgr::GetLockedDungeons(), LuaPlayer::HasItem(), spell_pot_check::spell_pot_check_SpellScript::RemoveItems(), Satisfy(), Spell::SendCastResult(), and npc_aquementas::npc_aquementasAI::SendItem().
| bool Player::HasItemFitToSpellRequirements | ( | SpellInfo const * | spellInfo, |
| Item const * | ignoreItem = NULL ) const |
Definition at line 19557 of file Player.cpp.
References EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_START, EQUIPMENT_SLOT_TABARD, SpellInfo::EquippedItemClass, GetUseableItemByPos(), INVENTORY_SLOT_BAG_0, Item::IsFitToSpellRequirements(), ITEM_CLASS_ARMOR, ITEM_CLASS_WEAPON, and SF_LOG_ERROR.
Referenced by Spell::CheckItems(), and RemoveItemDependentAurasAndCasts().
| bool Player::HasItemOrGemWithIdEquipped | ( | uint32 | item, |
| uint32 | count, | ||
| uint8 | except_slot = NULL_SLOT ) const |
Definition at line 375 of file PlayerStorage.cpp.
References _Socket::Color, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, ItemTemplate::GemProperties, Item::GetCount(), Object::GetEntry(), Item::GetGemCountWithID(), GetItemByPos(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, sObjectMgr, and ItemTemplate::Socket.
Referenced by CanEquipUniqueItem().
| bool Player::HasItemOrGemWithLimitCategoryEquipped | ( | uint32 | limitCategory, |
| uint32 | count, | ||
| uint8 | except_slot = NULL_SLOT ) const |
Definition at line 413 of file PlayerStorage.cpp.
References _Socket::Color, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Item::GetCount(), Item::GetEnchantmentId(), Item::GetGemCountWithLimitCategory(), GetItemByPos(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, ItemTemplate::ItemLimitCategory, PRISMATIC_ENCHANTMENT_SLOT, and ItemTemplate::Socket.
Referenced by CanEquipUniqueItem().
|
inline |
Definition at line 2938 of file Player.h.
References _pendingBindId.
Referenced by LuaPlayer::HasPendingBind(), isAllowedToLoot(), and Update().
| bool Player::HasPvPForcingQuest | ( | ) | const |
Definition at line 2289 of file PlayerQuestState.cpp.
References GetQuestSlotQuestId(), Quest::HasFlag(), MAX_QUEST_LOG_SIZE, QUEST_FLAGS_FLAGS_PVP, and sObjectMgr.
Referenced by Spell::EffectQuestClear(), quest_commandscript::HandleQuestRemove(), RewardQuest(), and UpdateZone().
| bool Player::HasQuestForGO | ( | int32 | goId | ) | const |
Definition at line 19375 of file Player.cpp.
References GetDifficulty(), GetGroup(), WorldObject::GetMap(), GetQuestObjectiveCounter(), Quest::GetQuestObjectiveCountType(), GetQuestSlotQuestId(), Quest::IsAllowedInRaid(), Quest::m_questObjectives, m_QuestStatus, MAX_QUEST_LOG_SIZE, QUEST_OBJECTIVE_TYPE_GO, QUEST_STATUS_INCOMPLETE, sObjectMgr, and QuestStatusData::Status.
Referenced by GameObject::ActivateToQuest(), and LuaPlayer::HasQuestForGO().
| bool Player::HasQuestForItem | ( | uint32 | itemId | ) | const |
Definition at line 2045 of file PlayerQuestState.cpp.
References GetDifficulty(), GetGroup(), GetItemCount(), WorldObject::GetMap(), ItemTemplate::GetMaxStackSize(), GetQuestObjectiveCounter(), Quest::GetQuestObjectiveCountType(), GetQuestSlotQuestId(), InBattleground(), Quest::IsAllowedInRaid(), Quest::m_questObjectives, m_QuestStatus, MAX_QUEST_LOG_SIZE, ItemTemplate::MaxCount, QUEST_OBJECTIVE_TYPE_ITEM, QUEST_SOURCE_ITEM_IDS_COUNT, QUEST_STATUS_INCOMPLETE, Quest::RequiredSourceItemCount, Quest::RequiredSourceItemId, sObjectMgr, and QuestStatusData::Status.
Referenced by LootItem::AllowedForPlayer(), LootTemplate::HasQuestDropForPlayer(), LootTemplate::LootGroup::HasQuestDropForPlayer(), and LuaPlayer::HasQuestForItem().
|
inline |
Definition at line 3215 of file Player.h.
References _researchProjects.
| bool Player::HasSkill | ( | uint32 | skill | ) | const |
Definition at line 6542 of file Player.cpp.
References mSkillStatus, and SKILL_DELETED.
Referenced by addSpell(), LuaPlayer::AdvanceAllSkills(), LuaPlayer::AdvanceSkill(), LootItem::AllowedForPlayer(), CanUseItem(), spell_archaeology_survey::spell_archaeology_survey_SpellScript::CheckCast(), lookup_commandscript::HandleLookupSkillCommand(), WorldSession::HandleMessagechatOpcode(), LuaPlayer::HasSkill(), IsResearchDigsiteAvailable(), LoadFromDB(), OnArchaeologyFindUsed(), and UpdateResearchProjects().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 4674 of file Player.cpp.
References m_spells, and PLAYERSPELL_REMOVED.
Referenced by _LoadSpells(), addSpell(), LootItem::AllowedForPlayer(), CanCompleteQuest(), CanCreateExtraItems(), npc_engineering_tele_trinket::CanLearn(), CanRollForItemInLFG(), CanUseItem(), Spell::EffectCastButtons(), GetExplicitDiscoverySpell(), GetResurrectionSpellId(), GetSkillDiscoverySpell(), GetStartPosition(), GetTrainerSpellState(), GiveLevel(), learn_commandscript::HandleLearnCommand(), lookup_commandscript::HandleLookupSpellCommand(), lookup_commandscript::HandleLookupSpellIdCommand(), AuraEffect::HandleShapeshiftBoosts(), learn_commandscript::HandleUnLearnCommand(), npc_prof_alchemy::HasAlchemySpell(), HasDiscoveredAllSpells(), LuaPlayer::HasSpell(), npc_prof_tailor::HasTailorSpell(), npc_prof_blacksmith::HasWeaponSub(), IsActionButtonDataValid(), IsKnowHowFlyIn(), learnQuestRewardedSpells(), learnSpell(), LearnTalent(), AchievementMgr< Guild >::LoadFromDB(), ProcessCastaction(), removeSpell(), AchievementMgr< T >::RequirementsSatisfied(), ResetTalents(), npc_prof_blacksmith::SendActionMenu(), and TeleportTo().
| bool Player::HasSpellCooldown | ( | uint32 | spell_id | ) | const |
Definition at line 17498 of file Player.cpp.
References m_spellCooldowns.
Referenced by spell_rog_cheat_death::spell_rog_cheat_death_AuraScript::Absorb(), Spell::EffectCastButtons(), GetResurrectionSpellId(), Aura::HandleAuraSpecificMods(), Unit::HandleDummyAuraProc(), WorldSession::HandlePetCastSpellOpcode(), spell_gen_divine_storm_cd_reset::spell_gen_divine_storm_cd_reset_SpellScript::HandleScript(), and LuaPlayer::HasSpellCooldown().
Definition at line 4681 of file Player.cpp.
References GetTalentMap(), and PLAYERSPELL_REMOVED.
Referenced by BuildPlayerTalentsInfoData(), LuaPlayer::HasTalent(), and SendInspectResult().
|
inline |
Definition at line 3113 of file Player.h.
References CharTitlesEntry::bit_index, and HasTitle().
| bool Player::HasTitle | ( | uint32 | bitIndex | ) |
Definition at line 20424 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(), LuaPlayer::HasTitle(), HasTitle(), and LoadFromDB().
| bool Player::HaveAtClient | ( | WorldObject const * | u | ) | const |
Definition at line 18066 of file Player.cpp.
References Object::GetGUID(), m_clientGUIDs, and WorldObject::WorldObject().
Referenced by Group::AddMember(), WorldObjectChangeAccumulator::BuildPacket(), Transport::BuildUpdate(), WorldObject::DestroyForNearbyPlayers(), Map::SendInitSelf(), Skyfire::MessageDistDeliverer::SendPacket(), Unit::SetOwnerGUID(), UpdateVisibilityOf(), and UpdateVisibilityOf().
| bool Player::InArena | ( | ) | const |
Definition at line 19310 of file Player.cpp.
References GetBattleground(), and Battleground::isArena().
Referenced by CreateCorpse(), LuaPlayer::InArena(), Battlefield::InvitePlayerToWar(), lfg::LFGMgr::JoinLfg(), RewardHonor(), ToggleAFK(), and AuraEffect::UpdatePeriodic().
|
inline |
Definition at line 2692 of file Player.h.
References m_bgData.
Referenced by CanUninviteFromGroup(), SpellInfo::CheckLocation(), CreateCorpse(), AuraEffect::HandleAuraModEffectImmunity(), HasQuestForItem(), LuaPlayer::InBattleground(), lfg::LFGMgr::JoinLfg(), Unit::Kill(), RemovePet(), ResurrectPlayer(), RewardHonor(), TeleportTo(), ToggleAFK(), GameObject::Update(), and UpdateZone().
| bool Player::InBattlegroundQueue | ( | ) | const |
Definition at line 19220 of file Player.cpp.
References BATTLEGROUND_QUEUE_NONE, m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by Group::CanJoinBattlegroundQueue(), LuaPlayer::InBattlegroundQueue(), and lfg::LFGMgr::JoinLfg().
| bool Player::InBattlegroundQueueForBattlegroundQueueType | ( | BattlegroundQueueTypeId | bgQueueTypeId | ) | const |
Definition at line 19249 of file Player.cpp.
References GetBattlegroundQueueIndex(), and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by Group::CanJoinBattlegroundQueue().
| void Player::IncompleteQuest | ( | uint32 | quest_id | ) |
Definition at line 612 of file PlayerQuestState.cpp.
References FindQuestSlot(), MAX_QUEST_LOG_SIZE, QUEST_STATE_COMPLETE, QUEST_STATUS_INCOMPLETE, RemoveQuestSlotState(), and SetQuestStatus().
Referenced by LuaPlayer::IncompleteQuest(), ItemRemovedQuestCheck(), MoneyChanged(), and ReputationChangedQuestCheck().
| void Player::InitDataForForm | ( | bool | reapplyMods = false | ) |
Definition at line 16873 of file Player.cpp.
References SpellShapeshiftFormEntry::attackSpeed, BASE_ATTACK, BASE_ATTACK_TIME, FORM_BEAR, FORM_CAT, FORM_GHOUL, FORM_WISE_SERPENT, Unit::getClass(), Unit::getPowerType(), Unit::GetShapeshiftForm(), MAX_POWERS, OFF_ATTACK, POWER_ENERGY, POWER_MANA, POWER_RAGE, ChrClassesEntry::powerType, RANGED_ATTACK, sChrClassesStore, Unit::SetAttackTime(), Unit::setPowerType(), SetRegularAttackTime(), sSpellShapeshiftFormStore, UpdateAttackPowerAndDamage(), and UpdateEquipSpellsAtFormChange().
Referenced by AuraEffect::HandleAuraModShapeshift(), and InitStatsForLevel().
| void Player::InitDisplayIds | ( | ) |
Definition at line 16925 of file Player.cpp.
References PlayerInfo::displayId_f, PlayerInfo::displayId_m, GENDER_FEMALE, GENDER_MALE, Unit::getClass(), Unit::getGender(), Object::GetGUIDLow(), Unit::getRace(), Unit::SetDisplayId(), Unit::SetNativeDisplayId(), SF_LOG_ERROR, and sObjectMgr.
Referenced by Create(), modify_commandscript::HandleModifyGenderCommand(), reset_commandscript::HandleResetStatsOrLevelHelper(), LoadFromDB(), and LuaPlayer::SetGender().
| void Player::InitGlyphsForLevel | ( | ) |
Definition at line 20384 of file Player.cpp.
References Unit::getLevel(), MAX_GLYPH_SLOT_INDEX, PLAYER_FIELD_GLYPH_SLOTS_ENABLED, SetGlyphSlot(), Object::SetUInt32Value(), and sGlyphSlotStore.
Referenced by Create(), GiveLevel(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsCommand(), and LoadFromDB().
| void Player::Initialize | ( | uint32 | guid | ) |
Definition at line 12051 of file Player.cpp.
References Object::_Create(), and HIGHGUID_PLAYER.
| void Player::InitPrimaryProfessions | ( | ) |
Definition at line 18337 of file Player.cpp.
References CONFIG_MAX_PRIMARY_TRADE_SKILL, SetFreePrimaryProfessions(), and sWorld.
Referenced by Create(), and LoadFromDB().
| void Player::InitRunes | ( | ) |
Definition at line 20622 of file Player.cpp.
References CLASS_DEATH_KNIGHT, Unit::getClass(), m_runes, MAX_RUNES, NUM_RUNE_TYPES, PLAYER_FIELD_RUNE_REGEN, RUNE_BLOOD, runeSlotTypes, SetBaseRune(), SetCurrentRune(), Object::SetFloatValue(), SetRuneConvertAura(), and SetRuneCooldown().
Referenced by Create(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsCommand(), and LoadFromDB().
| void Player::InitStatsForLevel | ( | bool | reapplyMods = false | ) |
Definition at line 3323 of file Player.cpp.
References _ApplyAllStatBonuses(), _RemoveAllStatBonuses(), CONFIG_MAX_PLAYER_LEVEL, Unit::getClass(), Unit::GetCreatePowers(), Unit::getLevel(), Unit::GetMaxPower(), GetPet(), Unit::GetPower(), Unit::getRace(), InitDataForForm(), Unit::InitStatBuffMods(), MAX_COMBAT_RATING, MAX_POWERS, MAX_SPELL_SCHOOL, MAX_STATS, PLAYER_FIELD_BLOCK_PERCENTAGE, PLAYER_FIELD_COMBAT_RATINGS, PLAYER_FIELD_CRIT_PERCENTAGE, PLAYER_FIELD_DODGE_PERCENTAGE, PLAYER_FIELD_MASTERY, PLAYER_FIELD_MAX_LEVEL, PLAYER_FIELD_MOD_DAMAGE_DONE_NEG, PLAYER_FIELD_MOD_DAMAGE_DONE_PERCENT, PLAYER_FIELD_MOD_DAMAGE_DONE_POS, PLAYER_FIELD_MOD_HEALING_DONE_PERCENT, PLAYER_FIELD_MOD_HEALING_DONE_POS, PLAYER_FIELD_MOD_HEALING_PERCENT, PLAYER_FIELD_MOD_SPELL_POWER_PERCENT, PLAYER_FIELD_MOD_TARGET_PHYSICAL_RESISTANCE, PLAYER_FIELD_MOD_TARGET_RESISTANCE, PLAYER_FIELD_NEXT_LEVEL_XP, PLAYER_FIELD_NO_REAGENT_COST_MASK, PLAYER_FIELD_OFFHAND_CRIT_PERCENTAGE, PLAYER_FIELD_PARRY_PERCENTAGE, PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FIELD_PVP_POWER_DAMAGE, PLAYER_FIELD_PVP_POWER_HEALING, PLAYER_FIELD_RANGED_CRIT_PERCENTAGE, PLAYER_FIELD_SHIELD_BLOCK, PLAYER_FIELD_SPELL_CRIT_PERCENTAGE, PLAYER_FIELD_WEAPON_DMG_MULTIPLIERS, PLAYER_FLAGS_AFK, PLAYER_FLAGS_ALLOW_ONLY_ABILITY, PLAYER_FLAGS_DND, PLAYER_FLAGS_GHOST, PLAYER_FLAGS_GM, POWER_DEMONIC_FURY, POWER_ENERGY, POWER_FOCUS, POWER_MANA, POWER_RAGE, POWER_RUNIC_POWER, Object::RemoveByteFlag(), Object::RemoveFlag(), Unit::RemoveStandFlags(), Unit::SetArmor(), Unit::SetCreateHealth(), Unit::SetCreateMana(), Unit::SetCreateStat(), Object::SetFlag(), Object::SetFloatValue(), Unit::SetFullHealth(), Object::SetInt32Value(), Unit::SetMaxHealth(), Unit::SetMaxPower(), SetObjectScale(), Unit::SetPower(), Unit::SetResistance(), Unit::SetResistanceBuffMods(), Unit::SetStat(), Object::SetUInt32Value(), sObjectMgr, STAT_STRENGTH, PlayerLevelInfo::stats, sWorld, UNIT_BYTE2_FLAG_FFA_PVP, UNIT_BYTE2_FLAG_SANCTUARY, UNIT_FIELD_ATTACK_POWER, UNIT_FIELD_ATTACK_POWER_MULTIPLIER, UNIT_FIELD_ATTACK_ROUND_BASE_TIME, UNIT_FIELD_AURA_STATE, UNIT_FIELD_FLAGS, UNIT_FIELD_FLAGS2, UNIT_FIELD_MAX_DAMAGE, UNIT_FIELD_MAX_OFF_HAND_DAMAGE, UNIT_FIELD_MAX_RANGED_DAMAGE, UNIT_FIELD_MIN_DAMAGE, UNIT_FIELD_MIN_OFF_HAND_DAMAGE, UNIT_FIELD_MIN_RANGED_DAMAGE, UNIT_FIELD_MOD_CASTING_SPEED, UNIT_FIELD_MOD_HASTE, UNIT_FIELD_MOD_RANGED_HASTE, UNIT_FIELD_MOD_SPELL_HASTE, UNIT_FIELD_MOUNT_DISPLAY_ID, UNIT_FIELD_POWER_COST_MODIFIER, UNIT_FIELD_POWER_COST_MULTIPLIER, UNIT_FIELD_RANGED_ATTACK_POWER, UNIT_FIELD_RANGED_ATTACK_POWER_MULTIPLIER, UNIT_FIELD_RANGED_ATTACK_ROUND_BASE_TIME, UNIT_FIELD_SHAPESHIFT_FORM, UNIT_FLAG2_REGENERATE_POWER, UNIT_FLAG_CONFUSED, UNIT_FLAG_DISABLE_MOVE, 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_NOT_SELECTABLE, UNIT_FLAG_PACIFIED, UNIT_FLAG_PET_IN_COMBAT, UNIT_FLAG_PVP_ATTACKABLE, UNIT_FLAG_SILENCED, UNIT_FLAG_SKINNABLE, UNIT_FLAG_STUNNED, UNIT_FLAG_TAXI_FLIGHT, UNIT_STAND_FLAGS_ALL, and UpdateSkillsForLevel().
Referenced by Create(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsCommand(), and LoadFromDB().
| void Player::InitTalentForLevel | ( | ) |
Definition at line 3283 of file Player.cpp.
References CalculateTalentsPoints(), CONFIG_MIN_DUALSPEC_LEVEL, Unit::getLevel(), GetSession(), GetSpecsCount(), GetUsedTalentCount(), PLAYER_FIELD_MAX_TALENT_TIERS, ResetTalents(), SendTalentsInfoData(), SetActiveSpec(), SetSpecsCount(), and Object::SetUInt32Value().
Referenced by ActivateSpec(), Create(), GiveLevel(), character_commandscript::HandleCharacterLevel(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsCommand(), and LoadFromDB().
|
inline |
Definition at line 1352 of file Player.h.
References Unit::getClass(), Unit::getLevel(), Unit::getRace(), and m_taxi.
Referenced by Create(), GiveLevel(), reset_commandscript::HandleResetLevelCommand(), reset_commandscript::HandleResetStatsCommand(), and LoadFromDB().
| void Player::InnEnter | ( | time_t | time, |
| uint32 | mapid, | ||
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | radius = 0.0f, | ||
| float | boxX = 0.0f, | ||
| float | boxY = 0.0f, | ||
| float | boxZ = 0.0f, | ||
| float | boxOrientation = 0.0f ) |
Definition at line 1796 of file Player.cpp.
References inn_area_box_orientation, inn_area_box_x, inn_area_box_y, inn_area_box_z, inn_area_radius, inn_pos_mapid, inn_pos_x, inn_pos_y, inn_pos_z, and time_inn_enter.
Referenced by WorldSession::HandleAreaTriggerOpcode(), UpdateRestAreaState(), and UpdateZone().
| bool Player::inRandomLfgDungeon | ( | ) |
Definition at line 20108 of file Player.cpp.
References Map::GetDifficulty(), Object::GetGUID(), Map::GetId(), WorldObject::GetMap(), and sLFGMgr.
Referenced by LuaPlayer::InRandomLfgDungeon().
|
inline |
Definition at line 1361 of file Player.h.
References m_ExtraFlags, and PLAYER_EXTRA_ACCEPT_WHISPERS.
Referenced by WorldSession::HandleMessagechatOpcode(), message_commandscript::HandleWhispersCommand(), LuaPlayer::IsAcceptingWhispers(), and Whisper().
| bool Player::IsActionButtonDataValid | ( | uint8 | button, |
| uint32 | action, | ||
| ActionButtonType | type ) |
Definition at line 6755 of file Player.cpp.
References ACTION_BUTTON_C, ACTION_BUTTON_CMACRO, ACTION_BUTTON_DROPDOWN, ACTION_BUTTON_EQSET, ACTION_BUTTON_ITEM, ACTION_BUTTON_MACRO, ACTION_BUTTON_SPELL, Object::GetGUID(), WorldObject::GetName(), GUID_LOPART(), HasSpell(), MAX_ACTION_BUTTON_ACTION_VALUE, MAX_ACTION_BUTTONS, SF_LOG_ERROR, sObjectMgr, and sSpellMgr.
Referenced by addActionButton().
| bool Player::IsActiveQuest | ( | uint32 | quest_id | ) | const |
Definition at line 178 of file PlayerQuestState.cpp.
References m_QuestStatus.
Referenced by LuaPlayer::HasQuest(), and LuaPlayer::IsActiveQuest().
| bool Player::IsAffectedBySpellmod | ( | SpellInfo const * | spellInfo, |
| SpellModifier * | mod, | ||
| Spell * | spell = NULL ) |
Definition at line 16238 of file Player.cpp.
References SpellModifier::charges, SpellInfo::GetDuration(), SpellInfo::IsAffectedBySpellMod(), Spell::m_appliedMods, SpellModifier::op, SpellModifier::ownerAura, and SPELLMOD_DURATION.
Referenced by ApplySpellMod().
|
inline |
Definition at line 1333 of file Player.h.
References Object::HasFlag(), PLAYER_FIELD_PLAYER_FLAGS, and PLAYER_FLAGS_AFK.
Referenced by WorldSession::BuildPartyMemberStatsChangedPacket(), GetChatTag(), SocialMgr::GetFriendInfo(), LuaPlayer::IsAFK(), Battlefield::PlayerAcceptInviteToWar(), Unit::SetCharmedBy(), ToggleAFK(), and Whisper().
| bool Player::isAllowedToLoot | ( | const Creature * | creature | ) |
Definition at line 12883 of file Player.cpp.
References FREE_FOR_ALL, GetGroup(), Object::GetGUID(), Group::GetLootMethod(), Creature::GetLootRecipient(), Creature::GetLootRecipientGroup(), GROUP_LOOT, Loot::hasItemFor(), Loot::hasOverThresholdItem(), HasPendingBind(), Creature::IsDamageEnoughForLootingAndReward(), Unit::isDead(), Loot::isLooted(), Creature::loot, MASTER_LOOT, NEED_BEFORE_GREED, ROUND_ROBIN, and Loot::roundRobinPlayer.
Referenced by Unit::BuildValuesUpdate().
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
Definition at line 18095 of file Player.cpp.
References Unit::IsAlwaysDetectableFor(), IsGroupVisibleFor(), Player(), Object::ToPlayer(), and WorldObject::WorldObject().
| bool Player::IsAtGroupRewardDistance | ( | WorldObject const * | pRewardSource | ) | const |
Definition at line 19789 of file Player.cpp.
References CONFIG_GROUP_XP_DISTANCE, GetCorpse(), WorldObject::GetDistance(), WorldObject::GetInstanceId(), WorldLocation::GetMapId(), Unit::IsAlive(), sWorld, and WorldObject::WorldObject().
Referenced by SmartAI::EndPath(), GroupEventHappens(), OutdoorPvP::HandleKill(), Battleground::HandleKillPlayer(), and RewardPlayerAndGroupAtEvent().
| bool Player::IsAtRecruitAFriendDistance | ( | WorldObject const * | pOther | ) | const |
Definition at line 19803 of file Player.cpp.
References CONFIG_MAX_RECRUIT_A_FRIEND_DISTANCE, GetCorpse(), WorldObject::GetDistance(), WorldObject::GetInstanceId(), WorldLocation::GetMapId(), Unit::IsAlive(), sWorld, and WorldObject::WorldObject().
Referenced by GetsRecruitAFriendBonus().
|
static |
Definition at line 250 of file PlayerStorage.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(), and SwapItem().
|
inlinestatic |
Definition at line 1542 of file Player.h.
References IsBankPos().
Referenced by _LoadInventory(), Spell::EffectSummonChangeItem(), list_commandscript::HandleListItemCommand(), IsBankPos(), SplitItem(), and SwapItem().
Definition at line 239 of file PlayerStorage.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 20645 of file Player.cpp.
References GetBaseRune(), GetRuneCooldown(), and MAX_RUNES.
|
inline |
Definition at line 2520 of file Player.h.
References m_forcedTeleportFarSemaphore.
Referenced by InstanceMap::CanEnter().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 12175 of file Player.cpp.
References GetSession(), and WorldSession::PlayerLoading().
|
inline |
Definition at line 2493 of file Player.h.
References mSemaphoreTeleport_Far, and mSemaphoreTeleport_Near.
Referenced by group_commandscript::HandleGroupSummonCommand(), misc_commandscript::HandleRecallCommand(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleGroupCommand(), tele_commandscript::HandleTeleNameCommand(), npc_mageguard_dalaran::npc_mageguard_dalaranAI::MoveInLineOfSight(), ResurectUsingRequestData(), SaveToDB(), and lfg::LFGMgr::TeleportPlayer().
|
inline |
Definition at line 2501 of file Player.h.
References mSemaphoreTeleport_Far.
Referenced by LeaveBattleground(), Map::RemoveAllPlayers(), SaveToDB(), and UpdateLocalChannels().
|
inline |
Definition at line 2497 of file Player.h.
References mSemaphoreTeleport_Near.
|
inlineprivate |
Definition at line 3537 of file Player.h.
References m_bCanDelayTeleport.
Referenced by TeleportTo().
| bool Player::IsCurrentSpecMasterySpell | ( | SpellInfo const * | spellInfo | ) | const |
Definition at line 4013 of file Player.cpp.
References GetActiveSpec(), GetTalentSpecialization(), SpellInfo::Id, and sChrSpecializationStore.
Referenced by AuraEffect::HandleShapeshiftBoosts(), and IsNeedCastPassiveSpellAtLearn().
|
inline |
Definition at line 1337 of file Player.h.
References Object::HasFlag(), PLAYER_FIELD_PLAYER_FLAGS, and PLAYER_FLAGS_DND.
Referenced by WorldSession::BuildPartyMemberStatsChangedPacket(), GetChatTag(), SocialMgr::GetFriendInfo(), LuaPlayer::IsDND(), and Whisper().
|
inlinestatic |
Definition at line 1536 of file Player.h.
References IsEquipmentPos().
Referenced by _LoadInventory(), BuyItemFromVendorSlot(), CanUnequipItem(), DurabilityRepair(), Spell::EffectSummonChangeItem(), WorldSession::HandleCancelTempEnchantmentOpcode(), list_commandscript::HandleListItemCommand(), IsEquipmentPos(), SplitItem(), and SwapItem().
Definition at line 230 of file PlayerStorage.cpp.
References EQUIPMENT_SLOT_END, INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, and INVENTORY_SLOT_BAG_START.
|
inline |
Definition at line 2513 of file Player.h.
References m_forcedTeleportFar.
Referenced by TeleportTo().
|
inline |
Definition at line 1369 of file Player.h.
References m_ExtraFlags, and PLAYER_EXTRA_GM_ON.
Referenced by ThreatManager::_addThreat(), Group::_homebindIfInstance(), Unit::_IsValidAssistTarget(), Unit::_IsValidAttackTarget(), Unit::Attack(), BindToInstance(), GameObject::BuildValuesUpdate(), Unit::BuildValuesUpdate(), InstanceMap::CanEnter(), MapManager::CanPlayerEnter(), CanTameExoticPets(), CheckInstanceLoginValid(), SpellInfo::CheckTarget(), instance_violet_hold::instance_violet_hold_InstanceMapScript::CheckWipe(), misc_commandscript::HandleAppearCommand(), HandleFall(), gm_commandscript::HandleGMCommand(), WorldSession::HandleGroupInviteOpcode(), group_commandscript::HandleGroupListCommand(), WorldSession::HandleMessagechatOpcode(), mmaps_commandscript::HandleMmapPathCommand(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLogin(), misc_commandscript::HandleSummonCommand(), LuaPlayer::IsGM(), ThreatCalcHelper::isValidProcess(), LeaveBattleground(), MailSender::MailSender(), npc_mageguard_dalaran::npc_mageguard_dalaranAI::MoveInLineOfSight(), spell_malygos_vortex_visual::spell_malygos_vortex_visual_AuraScript::OnRemove(), Skyfire::PlayerAtMinimumRangeAway::operator()(), InstanceMap::PermBindAllPlayers(), Satisfy(), Spell::SendLoot(), MailDraft::SendMailTo(), Unit::TauntApply(), Unit::TauntFadeOut(), TeleportTo(), Creature::Update(), AchievementMgr< T >::UpdateAchievementCriteria(), boss_hunter_toc5::boss_hunter_toc5AI::UpdateAI(), boss_warrior_toc5::boss_warrior_toc5AI::UpdateAI(), generic_vehicleAI_toc5::generic_vehicleAI_toc5AI::UpdateAI(), UpdateHomebindTime(), UpdatePvPState(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::VortexHandling(), and Whisper().
|
inline |
Definition at line 1374 of file Player.h.
References m_ExtraFlags, and PLAYER_EXTRA_GM_CHAT.
Referenced by GetChatTag(), and LuaPlayer::IsGMChat().
|
inline |
Definition at line 1390 of file Player.h.
References m_ExtraFlags, and PLAYER_EXTRA_GM_INVISIBLE.
Referenced by gm_commandscript::HandleGMVisibleCommand(), Channel::Invite(), and LuaPlayer::IsGMVisible().
| bool Player::IsGroupVisibleFor | ( | Player const * | p | ) | const |
Definition at line 3013 of file Player.cpp.
References CONFIG_GROUP_VISIBILITY, GetTeam(), IsInSameGroupWith(), IsInSameRaidWith(), Player(), and sWorld.
Referenced by IsAlwaysDetectableFor(), and LuaPlayer::IsGroupVisibleFor().
|
inlineprivate |
Definition at line 3545 of file Player.h.
References m_bHasDelayedTeleport.
Referenced by TeleportTo(), and Update().
| bool Player::isHonorOrXPTarget | ( | Unit const * | victim | ) |
Definition at line 19697 of file Player.cpp.
References CREATURE_FLAG_EXTRA_NO_XP_AT_KILL, Skyfire::XP::GetGrayLevel(), Unit::getLevel(), Object::ToCreature(), and Unit::Unit().
Referenced by AuraEffect::HandlePeriodicDamageAurasTick(), LuaPlayer::IsHonorOrXPTarget(), and Unit::IsTriggeredAtSpellProcEvent().
| bool Player::IsImmuneToEnvironmentalDamage | ( | ) |
Definition at line 1109 of file Player.cpp.
References Unit::isTargetableForAttack().
Referenced by EnvironmentalDamage(), and LuaPlayer::IsImmuneToEnvironmentalDamage().
|
inline |
Definition at line 2907 of file Player.h.
References cinematicSequence, and inCinematic.
Referenced by WorldSession::HandleMovementOpcodes().
| bool Player::IsInCurrentInnArea | ( | float | padding = 0.0f | ) | const |
Definition at line 1810 of file Player.cpp.
References Skyfire::Rest::InnAreaBounds::BoxOrientation, Skyfire::Rest::InnAreaBounds::BoxX, Skyfire::Rest::InnAreaBounds::BoxY, Skyfire::Rest::InnAreaBounds::BoxZ, WorldLocation::GetMapId(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Skyfire::Rest::HasInnAreaBounds(), inn_area_box_orientation, inn_area_box_x, inn_area_box_y, inn_area_box_z, inn_area_radius, inn_pos_mapid, inn_pos_x, inn_pos_y, inn_pos_z, Skyfire::Rest::IsInsideInnArea(), Skyfire::Rest::InnAreaBounds::MapId, Skyfire::Rest::InnAreaBounds::Radius, Skyfire::Rest::InnAreaBounds::X, Skyfire::Rest::InnAreaBounds::Y, and Skyfire::Rest::InnAreaBounds::Z.
Referenced by debug_commandscript::HandleDebugRestCommand(), and UpdateRestAreaState().
| bool Player::IsInSameGroupWith | ( | Player const * | p | ) | const |
Definition at line 3023 of file Player.cpp.
References GetGroup(), Player(), and Group::SameSubGroup().
Referenced by IsGroupVisibleFor(), Unit::IsInPartyWith(), and LuaPlayer::IsInSameGroupWith().
| bool Player::IsInSameRaidWith | ( | Player const * | p | ) | const |
Definition at line 3030 of file Player.cpp.
References GetGroup(), and Player().
Referenced by Unit::BuildValuesUpdate(), Spell::CheckCast(), Object::GetUpdateFieldData(), IsGroupVisibleFor(), Unit::IsInRaidWith(), LuaPlayer::IsInSameRaidWith(), and GameObject::Use().
|
inlinestatic |
Definition at line 1531 of file Player.h.
References IsInventoryPos().
Referenced by _LoadInventory(), BuyItemFromVendorSlot(), Spell::EffectSummonChangeItem(), WorldSession::HandleGuildBankSwapItems(), list_commandscript::HandleListItemCommand(), IsInventoryPos(), SplitItem(), and SwapItem().
Definition at line 219 of file PlayerStorage.cpp.
References INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, INVENTORY_SLOT_ITEM_START, and NULL_SLOT.
| bool Player::IsInvitedForBattlegroundInstance | ( | uint32 | instanceId | ) | const |
Definition at line 19302 of file Player.cpp.
References m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
| bool Player::IsInvitedForBattlegroundQueueType | ( | BattlegroundQueueTypeId | bgQueueTypeId | ) | const |
Definition at line 19241 of file Player.cpp.
References m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
|
inlineoverridevirtual |
Reimplemented from Unit.
Definition at line 1319 of file Player.h.
References m_isInWater.
Referenced by WorldSession::HandleMovementOpcodes(), LuaPlayer::IsInWater(), and IsUnderWater().
| bool Player::IsInWhisperWhiteList | ( | uint64 | guid | ) |
Definition at line 22479 of file Player.cpp.
References WhisperList.
Referenced by WorldSession::HandleMessagechatOpcode().
Definition at line 20800 of file Player.cpp.
References GetVirtualMapForMapAndZone(), and HasSpell().
Referenced by LuaPlayer::CanFlyInZone(), and SpellInfo::CheckLocation().
|
inline |
Definition at line 2405 of file Player.h.
References m_lootView.
Referenced by WorldSession::HandleAutostoreLootItemOpcode().
|
inline |
Definition at line 1994 of file Player.h.
References m_mailsLoaded.
Referenced by MailDraft::SendMailTo().
| bool Player::IsMirrorTimerActive | ( | MirrorTimerType | type | ) |
Definition at line 1215 of file Player.cpp.
References getMaxTimer(), and m_MirrorTimer.
Referenced by lfg::LFGMgr::TeleportPlayer().
| bool Player::IsNeedCastPassiveSpellAtLearn | ( | SpellInfo const * | spellInfo | ) | const |
Definition at line 3998 of file Player.cpp.
References SpellInfo::AttributesEx2, SpellInfo::AttributesEx8, SpellInfo::CasterAuraState, Unit::GetShapeshiftForm(), Unit::HasAuraState(), IsCurrentSpecMasterySpell(), SPELL_ATTR2_NOT_NEED_SHAPESHIFT, SPELL_ATTR8_MASTERY_SPECIALIZATION, and SpellInfo::Stances.
Referenced by addSpell().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 18071 of file Player.cpp.
References GetSession(), and WorldObject::IsNeverVisible().
| bool Player::IsOutdoorPvPActive | ( | ) |
Definition at line 8272 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(), LuaPlayer::IsOutdoorPvPActive(), and OPvPCapturePoint::Update().
| bool Player::IsPetNeedBeTemporaryUnsummoned | ( | ) | const |
Definition at line 21147 of file Player.cpp.
References Unit::GetAuraEffectsByType(), GetBattleground(), Unit::HasAuraType(), Unit::IsAlive(), Battleground::isArena(), Object::IsInWorld(), Unit::IsMounted(), Skyfire::PetTransport::ShouldTemporarilyUnsummonMountedPet(), sMountCapabilityStore, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, SPELL_AURA_MOUNTED, and sSpellMgr.
Referenced by Pet::LoadPetFromDB(), and ResummonPetTemporaryUnSummonedIfAny().
| bool Player::IsQuestRewarded | ( | uint32 | quest_id | ) | const |
Definition at line 18380 of file Player.cpp.
References m_RewardedQuests.
Referenced by WorldSession::getDialogStatus(), and LuaPlayer::HasReceivedQuestReward().
| bool Player::IsResearchBranchUnlocked | ( | uint32 | researchBranchId | ) | const |
Definition at line 23712 of file Player.cpp.
References _researchHistory, ResearchBranchEntry::FragmentCurrencyId, GetCurrency(), sResearchBranchStore, and sResearchProjectStore.
Referenced by UpdateResearchProjects().
| bool Player::IsResearchDigsiteAvailable | ( | ResearchDigsiteInfo const * | digsiteInfo | ) | const |
Definition at line 23542 of file Player.cpp.
References Unit::getLevel(), GetSkillValue(), HasSkill(), ResearchDigsiteInfo::requiredLevel, ResearchDigsiteInfo::requiredSkillValue, and SKILL_ARCHAEOLOGY.
Referenced by GetRandomResearchDigsiteForContinent(), and UpdateResearchDigsites().
|
inline |
Definition at line 2211 of file Player.h.
References _resurrectionData.
Referenced by Spell::EffectResurrect(), Spell::EffectResurrectNew(), Spell::EffectResurrectWithAura(), IsRessurectRequestedBy(), SetResurrectRequestData(), and npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI().
|
inline |
Definition at line 2203 of file Player.h.
References _resurrectionData, and IsRessurectRequested().
|
inline |
Definition at line 2775 of file Player.h.
References GetRestTime(), and IN_MILLISECONDS.
Referenced by LuaPlayer::IsRested().
| bool Player::IsSpellFitByClassAndRace | ( | uint32 | spell_id | ) | const |
Definition at line 19350 of file Player.cpp.
References Unit::getClassMask(), Unit::getRaceMask(), and sSpellMgr.
Referenced by GetTrainerSpellState(), learn_commandscript::HandleLearnAllMySpellsCommand(), and resetSpells().
|
inline |
Definition at line 1382 of file Player.h.
References m_ExtraFlags, and PLAYER_EXTRA_TAXICHEAT.
Referenced by LuaPlayer::IsTaxiCheater(), and WorldSession::SendTaxiMenu().
| bool Player::isTotalImmune | ( | ) |
Definition at line 20410 of file Player.cpp.
References Unit::GetAuraEffectsByType(), SPELL_AURA_SCHOOL_IMMUNITY, and SPELL_SCHOOL_MASK_ALL.
Referenced by CanUseBattlegroundObject().
| bool Player::isTotalImmunity | ( | ) |
Definition at line 20457 of file Player.cpp.
References Unit::GetAuraEffectsByType(), SPELL_AURA_SCHOOL_IMMUNITY, SPELL_SCHOOL_MASK_ALL, SPELL_SCHOOL_MASK_MAGIC, and SPELL_SCHOOL_MASK_NORMAL.
| bool Player::IsTwoHandUsed | ( | ) | const |
Definition at line 3349 of file PlayerStorage.cpp.
References CanTitanGrip(), EQUIPMENT_SLOT_MAINHAND, GetItemByPos(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, ItemTemplate::InventoryType, and INVTYPE_2HWEAPON.
Referenced by AutoUnequipOffhandIfNeed(), CanEquipItem(), and FindEquipSlot().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 2920 of file Player.cpp.
References WorldObject::GetBaseMap(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Map::GetWaterLevel(), and IsInWater().
| bool Player::IsUseEquipedWeapon | ( | bool | mainhand | ) | const |
Definition at line 3343 of file PlayerStorage.cpp.
References Object::HasFlag(), Unit::IsInFeralForm(), UNIT_FIELD_FLAGS, and UNIT_FLAG_DISARMED.
Referenced by CastItemCombatSpell(), and SpellInfo::CheckTarget().
| bool Player::isUsingLfg | ( | ) |
Definition at line 20097 of file Player.cpp.
References Object::GetGUID(), lfg::LFG_STATE_NONE, and sLFGMgr.
Referenced by Group::CanJoinBattlegroundQueue(), and LuaPlayer::IsUsingLfg().
|
inlinestatic |
Definition at line 1902 of file Player.h.
References CLASSMASK_ALL_PLAYABLE.
|
inlinestatic |
Definition at line 1898 of file Player.h.
References GENDER_FEMALE.
Referenced by Create(), WorldSession::HandleRandomizeCharNameOpcode(), ConditionMgr::isConditionTypeValid(), and LoadFromDB().
|
inline |
Definition at line 1547 of file Player.h.
References IsValidPos().
Referenced by misc_commandscript::HandleItemMoveCommand(), and IsValidPos().
Definition at line 261 of file PlayerStorage.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, NULL_BAG, and NULL_SLOT.
|
inlinestatic |
Definition at line 1906 of file Player.h.
References RACEMASK_ALL_PLAYABLE.
Referenced by WorldSession::HandleRandomizeCharNameOpcode().
| bool Player::IsVisibleGloballyFor | ( | Player const * | player | ) | const |
Definition at line 18107 of file Player.cpp.
References WorldSession::GetSecurity(), GetSession(), AccountMgr::IsPlayerAccount(), Unit::IsVisible(), and Player().
Referenced by SocialMgr::BroadcastToFriendListers(), SocialMgr::GetFriendInfo(), WorldSession::HandleAddFriendOpcodeCallBack(), WorldSession::HandleWhoOpcode(), LuaPlayer::IsVisibleForPlayer(), Channel::List(), and ChatHandler::needReportToTarget().
|
inline |
Definition at line 3175 of file Player.h.
References Object::HasFlag(), PLAYER_FIELD_PLAYER_FLAGS, and PLAYER_FLAGS_VOID_UNLOCKED.
Referenced by WorldSession::HandleVoidStorageQuery(), WorldSession::HandleVoidStorageTransfer(), WorldSession::HandleVoidStorageUnlock(), WorldSession::HandleVoidSwapItem(), and LoadFromDB().
| bool Player::IsWithinResearchDigsite | ( | ResearchDigsite * | digsite | ) | const |
Definition at line 23457 of file Player.cpp.
References ResearchDigsite::GetDigsiteId(), GetDigsitePOIPolygon(), Position::GetPositionX(), and Position::GetPositionY().
Referenced by GetCurrentResearchDigsite().
Definition at line 1610 of file PlayerQuestState.cpp.
References QuestObjective::Amount, CanCompleteQuest(), CompleteQuest(), GetQuestObjectiveCounter(), Quest::GetQuestObjectiveCountType(), GetQuestSlotQuestId(), QuestObjective::Id, Quest::m_questObjectives, m_questObjectiveStatus, m_questObjectiveStatusSave, m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, QuestObjective::ObjectId, QUEST_OBJECTIVE_TYPE_ITEM, QUEST_STATUS_INCOMPLETE, SendQuestUpdateAddCredit(), sObjectMgr, QuestStatusData::Status, QuestObjective::Type, and UpdateForQuestWorldObjects().
Referenced by LuaPlayer::EquipItem(), EquipNewItem(), MoveItemToInventory(), StoreNewItem(), and SwapItem().
Definition at line 1659 of file PlayerQuestState.cpp.
References QuestObjective::Amount, GetItemCount(), GetQuestObjectiveCounter(), Quest::GetQuestObjectiveCountType(), GetQuestSlotQuestId(), QuestObjective::Id, IncompleteQuest(), Quest::m_questObjectives, m_questObjectiveStatus, m_questObjectiveStatusSave, m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, QuestObjective::ObjectId, QUEST_OBJECTIVE_TYPE_ITEM, QUEST_STATUS_COMPLETE, sObjectMgr, QuestStatusData::Status, QuestObjective::Type, and UpdateForQuestWorldObjects().
Referenced by DestroyItem(), DestroyItemCount(), DestroyItemCount(), MoveItemFromInventory(), and SwapItem().
| void Player::JoinedChannel | ( | Channel * | c | ) |
Definition at line 5649 of file Player.cpp.
References m_channels.
Referenced by Channel::JoinChannel().
Definition at line 1821 of file PlayerQuestState.cpp.
References QuestObjective::Amount, CanCompleteQuest(), CompleteQuest(), GetDifficulty(), GetGroup(), WorldObject::GetMap(), GetQuestObjectiveCounter(), Quest::GetQuestObjectiveCountType(), GetQuestSlotQuestId(), QuestObjective::Id, Quest::IsAllowedInRaid(), Quest::m_questObjectives, m_questObjectiveStatus, m_questObjectiveStatusSave, m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, QuestObjective::ObjectId, QUEST_OBJECTIVE_TYPE_GO, QUEST_STATUS_INCOMPLETE, SendQuestUpdateAddCredit(), sObjectMgr, QuestStatusData::Status, and QuestObjective::Type.
Referenced by quest_commandscript::HandleQuestComplete(), LuaPlayer::KillGOCredit(), and GameObject::Use().
| void Player::KilledMonster | ( | CreatureTemplate const * | cInfo, |
| uint64 | guid ) |
Definition at line 1703 of file PlayerQuestState.cpp.
References ASSERT, CreatureTemplate::Entry, CreatureTemplate::KillCredit, KilledMonsterCredit(), and MAX_KILL_CREDIT.
Referenced by KillRewarder::_RewardKillCredit(), quest_commandscript::HandleQuestComplete(), npc_ogre_brute::npc_ogre_bruteAI::MovementInform(), and npc_drakuru_shackles::npc_drakuru_shacklesAI::SpellHit().
Definition at line 1715 of file PlayerQuestState.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_KILL_CREATURE, ACHIEVEMENT_TIMED_TYPE_CREATURE, QuestObjective::Amount, CanCompleteQuest(), CompleteQuest(), Map::GetCreature(), GetDifficulty(), Object::GetEntry(), GetGroup(), WorldObject::GetMap(), GetQuestObjectiveCounter(), Quest::GetQuestObjectiveCountType(), GetQuestSlotQuestId(), QuestObjective::Id, Quest::IsAllowedInRaid(), Quest::m_questObjectives, m_questObjectiveStatus, m_questObjectiveStatusSave, m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, QuestObjective::ObjectId, QUEST_OBJECTIVE_TYPE_NPC, QUEST_STATUS_INCOMPLETE, SendQuestUpdateAddCredit(), sObjectMgr, StartTimedAchievement(), QuestStatusData::Status, QuestObjective::Type, and UpdateAchievementCriteria().
Referenced by npc_transient::npc_transientAI::GiveClueCredit(), OutdoorPvPSI::HandleAreaTrigger(), spell_q12659_ahunaes_knife::spell_q12659_ahunaes_knife_SpellScript::HandleDummy(), spell_q12937_relief_for_the_fallen::spell_q12937_relief_for_the_fallen_SpellScript::HandleDummy(), spell_q9874_liquid_fire::spell_q9874_liquid_fire_SpellScript::HandleDummy(), OutdoorPvPNA::HandleKillImpl(), spell_q12805_lifeblood_dummy::spell_q12805_lifeblood_dummy_SpellScript::HandleScript(), npc_magmoth_crusher::npc_magmoth_crusherAI::JustDied(), npc_nerubar_victim::npc_nerubar_victimAI::JustDied(), npc_netherweb_victim::npc_netherweb_victimAI::JustDied(), KilledMonster(), LuaPlayer::KilledMonsterCredit(), npc_creditmarker_visit_with_ancestors::npc_creditmarker_visit_with_ancestorsAI::MoveInLineOfSight(), spell_gen_rice_pudding::spell_gen_rice_pudding_SpellScript::PrepareSpellScript(), RewardPlayerAndGroupAtEvent(), npc_jungle_punch_target::npc_jungle_punch_targetAI::SpellHit(), npc_lazy_peon::npc_lazy_peonAI::SpellHit(), TryApplyHarrisAmpule(), npc_dragonmaw_peon::npc_dragonmaw_peonAI::UpdateAI(), and npc_seaforium_depth_charge::npc_seaforium_depth_chargeAI::UpdateAI().
| void Player::KilledPlayerCredit | ( | ) |
Definition at line 1774 of file PlayerQuestState.cpp.
References QuestObjective::Amount, CanCompleteQuest(), CompleteQuest(), GetDifficulty(), GetGroup(), WorldObject::GetMap(), GetQuestObjectiveCounter(), Quest::GetQuestObjectiveCountType(), GetQuestSlotQuestId(), QuestObjective::Id, Quest::IsAllowedInRaid(), Quest::m_questObjectives, m_questObjectiveStatus, m_questObjectiveStatusSave, m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, QuestObjective::ObjectId, QUEST_OBJECTIVE_TYPE_PLAYER, QUEST_STATUS_INCOMPLETE, SendQuestUpdateAddPlayer(), sObjectMgr, QuestStatusData::Status, and QuestObjective::Type.
Referenced by KillRewarder::_RewardPlayer(), and LuaPlayer::KilledPlayerCredit().
| void Player::KillPlayer | ( | ) |
Definition at line 5284 of file Player.cpp.
References Object::ApplyModFlag(), CORPSE, WorldLocation::GetMapId(), WorldObject::GetTransport(), Unit::HasAuraType(), Unit::i_motionMaster, IN_MILLISECONDS, Unit::IsFlying(), m_deathTimer, MINUTE, OBJECT_FIELD_DYNAMIC_FLAGS, PLAYER_FIELD_BYTE_RELEASE_TIMER, PLAYER_FIELD_LIFETIME_MAX_RANK, setDeathState(), Unit::SetRooted(), Object::SetUInt32Value(), sMapStore, SPELL_AURA_PREVENT_RESURRECTION, StopMirrorTimers(), UNIT_DYNFLAG_NONE, UpdateCorpseReclaimDelay(), and UpdateObjectVisibility().
Referenced by WorldSession::HandleMovementOpcodes(), WorldSession::HandleRepopRequestOpcode(), LuaPlayer::KillPlayer(), and Update().
| void Player::learnDefaultSpells | ( | ) |
Definition at line 18837 of file Player.cpp.
References addSpell(), Unit::getClass(), Unit::getRace(), Object::IsInWorld(), learnSpell(), SF_LOG_DEBUG, sObjectMgr, PlayerInfo::spell, and sSpellMgr.
Referenced by Create(), learn_commandscript::HandleLearnAllDefaultCommand(), LoadFromDB(), and resetSpells().
| void Player::learnQuestRewardedSpells | ( | ) |
Definition at line 18938 of file Player.cpp.
References learnQuestRewardedSpells(), m_RewardedQuests, and sObjectMgr.
Referenced by _LoadQuestStatusRewarded(), learn_commandscript::HandleLearnAllDefaultCommand(), learnQuestRewardedSpells(), and resetSpells().
| void Player::learnQuestRewardedSpells | ( | Quest const * | quest | ) |
Definition at line 18858 of file Player.cpp.
References Unit::CastSpell(), SpellEffectInfo::Effect, SpellInfo::Effects, SpellInfo::GetFirstRankSpell(), Quest::GetRewSpellCast(), Quest::GetSrcSpell(), HasSpell(), SpellInfo::Id, m_spells, MAX_SPELL_EFFECTS, PLAYERSPELL_REMOVED, Unit::RemoveAurasDueToSpell(), SPELL_EFFECT_LEARN_SPELL, SPELL_EFFECT_TRADE_SKILL, sSpellMgr, and SpellEffectInfo::TriggerSpell.
Definition at line 18951 of file Player.cpp.
References ABILITY_LEARNED_ON_GET_PROFESSION_SKILL, addSpell(), SkillLineAbilityEntry::classmask, Unit::getClassMask(), Unit::getRaceMask(), Object::IsInWorld(), SkillLineAbilityEntry::learnOnGetSkill, learnSpell(), SkillLineAbilityEntry::racemask, removeSpell(), SkillLineAbilityEntry::skillId, SkillLineAbilityEntry::spellId, sSkillLineAbilityStore, and sSpellMgr.
Referenced by _LoadSkills(), SetSkill(), and UpdateSkillPro().
| void Player::learnSpell | ( | uint32 | spell_id, |
| bool | dependent ) |
Definition at line 4021 of file Player.cpp.
References addSpell(), GetSession(), HasSpell(), Object::IsInWorld(), learnSpell(), m_spells, WorldSession::PlayerLoading(), WorldSession::SendPacket(), SMSG_LEARNED_SPELL, SPELL_BATTLE_PET_TRAINING_PASSIVE, SPELL_TRACK_PETS, sSpellMgr, UpdateForQuestWorldObjects(), WorldSession, ByteBuffer::WriteBit(), and ByteBuffer::WriteBits().
Referenced by _LoadSpells(), ActivateSpec(), addSpell(), AchievementMgr< Guild >::CompletedAchievement(), Spell::EffectBattlePetsUnlock(), Spell::EffectLearnSpell(), GiveLevel(), learn_commandscript::HandleLearnAllGMCommand(), learn_commandscript::HandleLearnAllLangCommand(), learn_commandscript::HandleLearnAllMySpellsCommand(), learn_commandscript::HandleLearnCommand(), learn_commandscript::HandleLearnSkillRecipesHelper(), spell_gen_profession_research::spell_gen_profession_research_SpellScript::HandleScript(), spell_item_book_of_glyph_mastery::spell_item_book_of_glyph_mastery_SpellScript::HandleScript(), learnDefaultSpells(), learnSkillRewardedSpells(), LuaPlayer::LearnSpell(), learnSpell(), learnSpellHighRank(), LearnTalent(), Guild::SendLoginInfo(), and UpdateCraftSkill().
| void Player::learnSpellHighRank | ( | uint32 | spellid | ) |
Definition at line 20807 of file Player.cpp.
References learnSpell(), learnSpellHighRank(), and sSpellMgr.
Referenced by learn_commandscript::HandleLearnAllMyTalentsCommand(), learn_commandscript::HandleLearnCommand(), and learnSpellHighRank().
| bool Player::LearnTalent | ( | uint16 | talentId | ) |
Definition at line 21053 of file Player.cpp.
References AddTalent(), GetActiveSpec(), Unit::getClass(), Object::GetUInt32Value(), HasSpell(), learnSpell(), PLAYER_FIELD_MAX_TALENT_TIERS, TalentEntry::playerClass, TalentEntry::Row, SF_LOG_ERROR, SF_LOG_INFO, TalentEntry::SpellId, and sTalentStore.
| void Player::LeaveBattleground | ( | bool | teleportToEntryPoint = true | ) |
Definition at line 17984 of file Player.cpp.
References Unit::CastSpell(), CONFIG_BATTLEGROUND_CAST_DESERTER, DELAYED_SPELL_CAST_DESERTER, GetBattleground(), Object::GetGUID(), IsBeingTeleportedFar(), IsGameMaster(), ScheduleDelayedOperation(), STATUS_IN_PROGRESS, STATUS_WAIT_JOIN, and sWorld.
Referenced by misc_commandscript::HandleAppearCommand(), BattlegroundAB::HandleAreaTrigger(), BattlegroundAV::HandleAreaTrigger(), AuraEffect::HandleAuraDummy(), misc_commandscript::HandleSummonCommand(), LuaPlayer::LeaveBattleground(), TeleportTo(), and ToggleAFK().
| void Player::LeaveLFGChannel | ( | ) |
Definition at line 5755 of file Player.cpp.
References m_channels.
| void Player::LeftChannel | ( | Channel * | c | ) |
Definition at line 5654 of file Player.cpp.
References m_channels.
Referenced by Channel::KickOrBan(), Channel::LeaveChannel(), and UpdateLocalChannels().
| void Player::LoadCorpse | ( | ) |
Definition at line 13061 of file Player.cpp.
References Object::ApplyModFlag(), GetCorpse(), Object::GetGUID(), Unit::IsAlive(), PLAYER_FIELD_BYTE_RELEASE_TIMER, PLAYER_FIELD_LIFETIME_MAX_RANK, ResurrectPlayer(), sMapStore, and sObjectAccessor.
Referenced by WorldSession::HandlePlayerLogin().
| bool Player::LoadFromDB | ( | uint32 | guid, |
| SQLQueryHolder * | holder ) |
Definition at line 12180 of file Player.cpp.
References Object::_Create(), _LoadActions(), _LoadAuras(), _LoadBGData(), _LoadBoundInstances(), _LoadCUFProfiles(), _LoadCurrency(), _LoadDailyQuestStatus(), _LoadDeclinedNames(), _LoadEquipmentSets(), _LoadGlyphAuras(), _LoadGlyphs(), _LoadGroup(), _LoadHomeBind(), _LoadInstanceTimeRestrictions(), Object::_LoadIntoDataField(), _LoadInventory(), _LoadMailInit(), _LoadMonthlyQuestStatus(), _LoadQuestObjectiveStatus(), _LoadQuestStatus(), _LoadQuestStatusRewarded(), _LoadRandomBGStatus(), _LoadResearchDigsites(), _LoadResearchHistory(), _LoadResearchProjects(), _LoadSeasonalQuestStatus(), _LoadSkills(), _LoadSpellCooldowns(), _LoadSpells(), _LoadTalents(), _LoadVoidStorage(), _LoadWeeklyQuestStatus(), AddBattlegroundQueueId(), Battleground::AddOrSetPlayerToCorrectBgGroup(), ASSERT, AT_LOGIN_RENAME, AT_LOGIN_RESET_TALENTS, BATTLEGROUND_TYPE_NONE, CHAR_NAME_SUCCESS, CHAR_UPD_ADD_AT_LOGIN_FLAG, CharacterDatabase, CheckLoadedDungeonDifficultyID(), CheckLoadedRaidDifficultyID(), ObjectMgr::CheckPlayerName(), Unit::ClearInCombat(), CONFIG_GM_CHAT, CONFIG_GM_LOGIN_STATE, CONFIG_GM_VISIBLE_STATE, CONFIG_GM_WHISPERING_TO, DEAD, DEATH_EXPIRE_STEP, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Battleground::EventPlayerLoggedIn(), MapEntry::Expansion(), HashMapHolder< T >::Find(), GetActiveSpec(), Battleground::GetArenaType(), GetBattlegroundEntryPoint(), Unit::getClass(), GetDrunkValue(), Field::GetFloat(), Object::GetGUID(), Object::GetGUIDLow(), Battleground::GetInstanceID(), GetInstanceSave(), WorldLocation::GetMapId(), Unit::GetMaxHealth(), WorldObject::GetName(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::GetPowerIndex(), SQLQueryHolder::GetPreparedResult(), Unit::getRace(), GetRestBonus(), GetSession(), GetSpecsCount(), Battleground::GetStatus(), Field::GetString(), GetTalentSpecialization(), GetTeam(), Battleground::GetTypeID(), Field::GetUInt16(), Field::GetUInt32(), Object::GetUInt32Value(), Field::GetUInt64(), Field::GetUInt8(), Object::HasFlag(), HasSkill(), HasTitle(), HIGHGUID_MO_TRANSPORT, HIGHGUID_PLAYER, InitDisplayIds(), InitGlyphsForLevel(), InitPrimaryProfessions(), InitRunes(), InitStatsForLevel(), InitTalentForLevel(), InitTaxiNodesForLevel(), Unit::IsAlive(), Map::IsBattlegroundOrArena(), MapEntry::IsBattlegroundOrArena(), Battleground::IsPlayerInBattleground(), Position::IsPositionValid(), IsValidGender(), Skyfire::IsValidMapCoord(), IsVoidStorageUnlocked(), KNOWN_TITLES_SIZE, learnDefaultSpells(), m_achievementMgr, m_atLoginFlags, m_battlePetMgr, m_bgData, m_cinematic, m_deathExpireTime, Unit::m_deathState, m_grantableLevels, m_items, m_lastHonorUpdateTime, WorldObject::m_movementInfo, WorldObject::m_name, m_nextSave, m_Played_time, m_reputationMgr, m_rest_bonus, m_social, m_stableSlots, m_taxi, WorldObject::m_transport, MAKE_NEW_GUID(), TaxiNodesEntry::map_id, PlayerInfo::mapId, MAX_DEATH_COUNT, MAX_MONEY_AMOUNT, MAX_PET_STABLES, MAX_POWERS, MAX_POWERS_PER_CLASS, MAX_TALENT_SPEC, MAX_TALENT_SPECS, MIN_TALENT_SPECS, OBJECT_FIELD_DYNAMIC_FLAGS, OBJECT_FIELD_GUID, outDebugValues(), PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_EXPLORED_ZONES_SIZE, PLAYER_EXTRA_ACCEPT_WHISPERS, PLAYER_EXTRA_GM_CHAT, PLAYER_EXTRA_GM_INVISIBLE, PLAYER_EXTRA_GM_ON, PLAYER_FIELD_ARENA_FACTION, PLAYER_FIELD_CURRENT_SPEC_ID, PLAYER_FIELD_DUEL_ARBITER, PLAYER_FIELD_DUEL_TEAM, PLAYER_FIELD_EXPLORED_ZONES, PLAYER_FIELD_FARSIGHT_OBJECT, PLAYER_FIELD_HAIR_COLOR_ID, PLAYER_FIELD_INV_SLOTS, PLAYER_FIELD_KNOWN_TITLES, PLAYER_FIELD_LFG_BONUS_FACTION_ID, PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, PLAYER_FIELD_LIFETIME_MAX_RANK, PLAYER_FIELD_NEXT_LEVEL_XP, PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FIELD_PLAYER_TITLE, PLAYER_FIELD_REST_STATE, PLAYER_FIELD_TRACK_CREATURE_MASK, PLAYER_FIELD_TRACK_RESOURCE_MASK, PLAYER_FIELD_VIRTUAL_PLAYER_REALM, PLAYER_FIELD_WATCHED_FACTION_INDEX, PLAYER_FIELD_XP, PLAYER_FIELD_YESTERDAY_HONORABLE_KILLS, PLAYER_FLAGS_GHOST, PLAYER_LOGIN_QUERY_LOAD_ACHIEVEMENTS, PLAYER_LOGIN_QUERY_LOAD_ACTIONS, PLAYER_LOGIN_QUERY_LOAD_AURAS, PLAYER_LOGIN_QUERY_LOAD_BANNED, PLAYER_LOGIN_QUERY_LOAD_BATTLE_PET_SLOTS, PLAYER_LOGIN_QUERY_LOAD_BATTLE_PETS, PLAYER_LOGIN_QUERY_LOAD_BG_DATA, PLAYER_LOGIN_QUERY_LOAD_BOUND_INSTANCES, PLAYER_LOGIN_QUERY_LOAD_CRITERIA_PROGRESS, PLAYER_LOGIN_QUERY_LOAD_CUF_PROFILES, PLAYER_LOGIN_QUERY_LOAD_CURRENCY, 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_INSTANCE_LOCK_TIMES, PLAYER_LOGIN_QUERY_LOAD_INVENTORY, PLAYER_LOGIN_QUERY_LOAD_MAIL_COUNT, PLAYER_LOGIN_QUERY_LOAD_MAIL_DATE, PLAYER_LOGIN_QUERY_LOAD_MONTHLY_QUEST_STATUS, PLAYER_LOGIN_QUERY_LOAD_QUEST_OBJECTIVE_STATUS, 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_RESEARCH_DIGSITES, PLAYER_LOGIN_QUERY_LOAD_RESEARCH_HISTORY, PLAYER_LOGIN_QUERY_LOAD_RESEARCH_PROJECTS, 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_VOID_STORAGE, PLAYER_LOGIN_QUERY_LOAD_WEEKLY_QUEST_STATUS, PlayerInfo::positionX, PlayerInfo::positionY, PlayerInfo::positionZ, POWER_ECLIPSE, 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(), RelocateToHomebind, Unit::RemoveAllAurasOnDeath(), Unit::RemoveAllAurasRequiringDeadTarget(), Object::RemoveFlag(), Battleground::RemovePlayerAtLeave(), SaveRecallPosition(), sBattlegroundMgr, sChrSpecializationStore, SetAcceptWhispers(), SetActiveSpec(), SetAtLoginFlag(), Object::SetByteValue(), Unit::SetCanModifyStats(), Unit::SetClass(), Unit::SetCreatorGUID(), SetDrunkValue(), SetDungeonDifficulty(), setFactionForRace(), SetFallInformation(), Object::SetFlag(), Object::SetFloatValue(), SetGameMaster(), Unit::SetGender(), SetGMChat(), SetGMVisible(), Unit::SetHealth(), Object::SetInt32Value(), SetInviteForBattlegroundQueueType(), SetMap(), SetMoney(), SetObjectScale(), Unit::SetOwnerGUID(), WorldSession::SetPlayer(), Unit::SetPower(), Unit::SetRace(), SetRaidDifficulty(), SetRestBonus(), SetSpecsCount(), SetTalentResetCost(), SetTalentResetTime(), SetTalentSpecialization(), PreparedStatement::setUInt16(), Object::SetUInt16Value(), PreparedStatement::setUInt32(), Object::SetUInt32Value(), Object::SetUInt64Value(), SetVisibleItemSlot(), SF_LOG_DEBUG, SF_LOG_ERROR, sInstanceSaveMgr, Tokenizer::size(), SKILL_ARCHAEOLOGY, sMapMgr, sMapStore, sObjectMgr, sSocialMgr, STATUS_WAIT_LEAVE, sTaxiNodesStore, sWorld, AreaTriggerStruct::target_mapId, AreaTriggerStruct::target_Orientation, AreaTriggerStruct::target_X, AreaTriggerStruct::target_Y, AreaTriggerStruct::target_Z, UNIT_DYNFLAG_REFER_A_FRIEND, UNIT_FIELD_CHANNEL_OBJECT, UNIT_FIELD_CHANNEL_SPELL, UNIT_FIELD_CHARM, UNIT_FIELD_CHARMED_BY, UNIT_FIELD_FLAGS2, UNIT_FIELD_HOVER_HEIGHT, UNIT_FIELD_LEVEL, UNIT_FIELD_MAX_POWER, UNIT_FIELD_POWER, UNIT_FIELD_SUMMON, UNIT_FLAG2_FORCE_MOVEMENT, UpdateAllStats(), UpdateHonorFields(), UpdateItemDuration(), UpdateResearchDigsites(), UpdateResearchProjects(), UpdateSkillsForLevel(), WorldLocation::WorldLocation(), TaxiNodesEntry::x, TaxiNodesEntry::y, and TaxiNodesEntry::z.
Referenced by WorldSession::HandlePlayerLogin().
| void Player::LoadPet | ( | ) |
Definition at line 13494 of file Player.cpp.
References Object::IsInWorld(), and Pet::LoadPetFromDB().
Referenced by WorldSession::HandlePlayerLogin().
|
static |
Definition at line 12120 of file Player.cpp.
References CHAR_SEL_CHAR_POSITION, CharacterDatabase, Field::GetFloat(), Field::GetString(), Field::GetUInt16(), GUID_LOPART(), and PreparedStatement::setUInt32().
Referenced by misc_commandscript::HandleAppearCommand().
|
inline |
Definition at line 3183 of file Player.h.
References PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FLAGS_VOID_UNLOCKED, and Object::RemoveFlag().
| void Player::ModifyCurrency | ( | uint32 | id, |
| int32 | count, | ||
| bool | printLog = true, | ||
| bool | ignoreMultipliers = false ) |
Definition at line 7691 of file Player.cpp.
References _ConquestCurrencytotalWeekCap, _currencyStorage, ACHIEVEMENT_CRITERIA_TYPE_CURRENCY, ASSERT, CurrencyTypesEntry::Category, CURRENCY_CATEGORY_ARCHAEOLOGY, CURRENCY_CATEGORY_META_CONQUEST, CURRENCY_FLAG_HIGH_PRECISION, CURRENCY_PRECISION, CURRENCY_TYPE_CONQUEST_POINTS, CurrencyTypesEntry::Flags, PlayerCurrency::Flags, ByteBuffer::FlushBits(), GetCurrencyTotalCap(), GetCurrencyWeekCap(), GetSession(), Unit::GetTotalAuraMultiplierByMiscValue(), ModifyCurrency(), PLAYERCURRENCY_CHANGED, PLAYERCURRENCY_NEW, PlayerCurrency::Quantity, sCurrencyTypesStore, SendCurrencies(), SendNewCurrency(), WorldSession::SendPacket(), SMSG_UPDATE_CURRENCY, SPELL_AURA_MOD_CURRENCY_GAIN, PlayerCurrency::state, PlayerCurrency::TrackedQuantity, UpdateAchievementCriteria(), PlayerCurrency::WeeklyQuantity, and ByteBuffer::WriteBit().
Referenced by _StoreOrEquipNewItem(), BuyCurrencyFromVendorSlot(), Battleground::EndBattleground(), modify_commandscript::HandleModifyCurrencyCommand(), modify_commandscript::HandleModifyHonorCommand(), ModifyCurrency(), OnArchaeologyFindUsed(), RefundItem(), RewardHonor(), RewardQuest(), and SolveResearchProject().
Definition at line 7678 of file Player.cpp.
References _currencyStorage, PLAYERCURRENCY_CHANGED, and PLAYERCURRENCY_NEW.
Referenced by WorldSession::HandleChangeCurrencyFlags().
| bool Player::ModifyMoney | ( | int64 | amount, |
| bool | sendError = true ) |
Definition at line 18342 of file Player.cpp.
References EQUIP_ERR_TOO_MUCH_GOLD, GetMoney(), MAX_MONEY_AMOUNT, SendEquipError(), SetMoney(), and sScriptMgr.
Referenced by _StoreOrEquipNewItem(), ActivateTaxiPathTo(), DurabilityRepair(), WorldSession::HandleAcceptTradeOpcode(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), Guild::HandleBuyBankTab(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleMailTakeItem(), WorldSession::HandleMailTakeMoney(), Guild::HandleMemberDepositMoney(), Guild::HandleMemberWithdrawMoney(), modify_commandscript::HandleModifyMoneyCommand(), quest_commandscript::HandleQuestComplete(), WorldSession::HandleReforgeItemOpcode(), WorldSession::HandleSendMail(), Guild::HandleSetEmblem(), WorldSession::HandleTransmogrifyItems(), WorldSession::HandleVoidStorageTransfer(), WorldSession::HandleVoidStorageUnlock(), LuaPlayer::ModifyMoney(), OnGossipSelect(), ProcessCastaction(), ProcessUnlearnAction(), RefundItem(), ResetTalents(), and RewardQuest().
Definition at line 6295 of file Player.cpp.
References Object::GetUInt16Value(), mSkillStatus, PLAYER_FIELD_SKILL_MODIFIERS, PLAYER_FIELD_SKILL_TALENTS, Object::SetUInt16Value(), and SKILL_DELETED.
Referenced by AuraEffect::HandleAuraModSkill().
Definition at line 17641 of file Player.cpp.
References Object::GetGUIDLow(), WorldObject::GetName(), Object::GetObjectGUID(), GetSession(), GetSpellCooldownDelay(), IN_MILLISECONDS, m_spellCooldowns, WorldSession::SendModifyCooldown(), and SF_LOG_DEBUG.
Referenced by spell_warr_shockwave::spell_warr_shockwave_SpellScript::HandleCast().
| void Player::MoneyChanged | ( | uint32 | value | ) |
Definition at line 1914 of file PlayerQuestState.cpp.
References QuestObjective::Amount, CanCompleteQuest(), CompleteQuest(), Quest::GetQuestObjectiveCountType(), GetQuestSlotQuestId(), IncompleteQuest(), Quest::m_questObjectives, m_QuestStatus, MAX_QUEST_LOG_SIZE, QUEST_OBJECTIVE_TYPE_MONEY, QUEST_STATUS_COMPLETE, QUEST_STATUS_INCOMPLETE, sObjectMgr, QuestStatusData::Status, and QuestObjective::Type.
Referenced by SetMoney().
Definition at line 2301 of file PlayerStorage.cpp.
References GetItemByPos(), ItemRemovedQuestCheck(), and RemoveItem().
Referenced by AutoUnequipOffhandIfNeed(), WorldSession::HandleAcceptTradeOpcode(), and WorldSession::HandleSendMail().
| void Player::MoveItemToInventory | ( | ItemPosCountVec const & | dest, |
| Item * | pItem, | ||
| bool | update, | ||
| bool | in_characterInventoryDB = false ) |
Definition at line 2318 of file PlayerStorage.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_RECEIVE_EPIC_ITEM, AddTradeableItem(), Item::GetCount(), Object::GetEntry(), Object::GetGUID(), Item::GetOwnerGUID(), Object::HasFlag(), ITEM_CHANGED, ITEM_FIELD_DYNAMIC_FLAGS, ITEM_FLAG_BOP_TRADEABLE, ITEM_NEW, ItemAddedQuestCheck(), Item::SetOwnerGUID(), Item::SetState(), StoreItem(), and UpdateAchievementCriteria().
Referenced by WorldSession::HandleMailTakeItem(), and WorldSession::moveItems().
| float Player::OCTRegenMPPerSpirit | ( | ) |
Definition at line 5948 of file Player.cpp.
References Unit::getClass(), Unit::getLevel(), Unit::GetStat(), GT_MAX_LEVEL, GtRegenMPPerSptEntry::ratio, sGtRegenMPPerSptStore, and STAT_SPIRIT.
Referenced by UpdateManaRegen().
| bool Player::OnArchaeologyFindUsed | ( | GameObject * | go | ) |
Definition at line 23358 of file Player.cpp.
References AddItem(), ResearchDigsiteInfo::branchId, GameObject::Delete(), GetCurrency(), ResearchDigsite::GetDigsiteInfo(), GameObject::getLootState(), GetResearchDigsiteForFind(), GetSession(), GO_ACTIVATED, GO_READY, HasSkill(), ModifyCurrency(), ChatHandler::PSendSysMessage(), rand32(), roll_chance_i(), SaveResearchDigsiteToDB(), ResearchDigsite::SelectNewArchaeologyFind(), SendSurveyCastInfo(), GameObject::SetLootState(), GameObject::SetRespawnTime(), SKILL_ARCHAEOLOGY, sResearchBranchStore, UpdateResearchDigsites(), UpdateResearchProjects(), and UpdateSkillPro().
Referenced by Spell::EffectOpenLock(), and SendLoot().
| void Player::OnGossipSelect | ( | WorldObject * | source, |
| uint32 | gossipListId, | ||
| uint32 | menuId ) |
Definition at line 11859 of file Player.cpp.
References BATTLEGROUND_TYPE_NONE, GossipMenuItem::BoxMoney, BUY_ERR_NOT_ENOUGHT_MONEY, Unit::CastSpell(), CONFIG_MIN_DUALSPEC_LEVEL, Object::GetEntry(), Object::GetGUID(), Object::GetGUIDLow(), GossipMenu::GetItem(), GossipMenu::GetItemData(), Unit::getLevel(), GossipMenu::GetMenuId(), GetSession(), GetSpecsCount(), Object::GetTypeId(), GOSSIP_OPTION_ARMORER, GOSSIP_OPTION_AUCTIONEER, GOSSIP_OPTION_BANKER, GOSSIP_OPTION_BATTLEFIELD, 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_UNLEARN_SPEC, 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(), WorldSession::SendBattleGroundList(), SendBuyFailed(), WorldSession::SendListInventory(), WorldSession::SendPetitionShowList(), SendPreparedGossip(), SendPreparedQuest(), WorldSession::SendShowBank(), WorldSession::SendStablePet(), WorldSession::SendTabardVendorActivate(), SendTalentWipeConfirm(), WorldSession::SendTaxiMenu(), WorldSession::SendTrainerList(), SetBindPoint(), SF_LOG_ERROR, sOutdoorPvPMgr, sWorld, Object::ToCreature(), TYPEID_GAMEOBJECT, and WorldObject::WorldObject().
|
protected |
Definition at line 15342 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_FIELD_BLOCK_PERCENTAGE, PLAYER_FIELD_MASTERY, PLAYER_FIELD_PVP_POWER_DAMAGE, PLAYER_FIELD_PVP_POWER_HEALING, POWER_MANA, RANGED_ATTACK, SF_LOG_DEBUG, sLog, SPELL_SCHOOL_ARCANE, SPELL_SCHOOL_FIRE, SPELL_SCHOOL_FROST, SPELL_SCHOOL_HOLY, SPELL_SCHOOL_NATURE, SPELL_SCHOOL_SHADOW, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, UNIT_FIELD_MAX_DAMAGE, UNIT_FIELD_MAX_OFF_HAND_DAMAGE, UNIT_FIELD_MAX_RANGED_DAMAGE, UNIT_FIELD_MIN_DAMAGE, UNIT_FIELD_MIN_OFF_HAND_DAMAGE, and UNIT_FIELD_MIN_RANGED_DAMAGE.
Referenced by LoadFromDB(), and SaveToDB().
| void Player::PetSpellInitialize | ( | ) |
Definition at line 15884 of file Player.cpp.
References ByteBuffer::bitwpos(), CharmInfo::BuildActionBar(), CONFIG_START_PETBAR_LEVEL, CreatureTemplate::family, ByteBuffer::FlushBits(), SpellInfo::GetCategory(), Unit::GetCharmInfo(), Creature::GetCreatureTemplate(), Pet::GetDuration(), Object::GetGUID(), Unit::getLevel(), GetPet(), GetSession(), Pet::GetSpecialization(), IN_MILLISECONDS, Pet::IsPermanentPetFor(), Creature::m_CreatureCategoryCooldowns, Creature::m_CreatureSpellCooldowns, Pet::m_spells, MAKE_UNIT_ACTION_BUTTON, MAX_UNIT_ACTION_BAR_INDEX, PETSPELL_REMOVED, ByteBuffer::PutBits(), WorldSession::SendPacket(), SF_LOG_DEBUG, SMSG_PET_SPELLS_MESSAGE, sSpellMgr, sWorld, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), and ByteBuffer::WriteByteSeq().
Referenced by Spell::EffectLearnPetSpell(), Spell::EffectSummonPet(), GiveLevel(), AuraEffect::HandleModPossessPet(), npc_commandscript::HandleNpcTameCommand(), pet_commandscript::HandlePetCreateCommand(), Pet::learnSpell(), Pet::LoadPetFromDB(), Unit::SetMinion(), Pet::SetSpec(), and SummonPet().
| void Player::PossessSpellInitialize | ( | ) |
Definition at line 15991 of file Player.cpp.
References CharmInfo::BuildActionBar(), ByteBuffer::FlushBits(), Unit::GetCharm(), Unit::GetCharmInfo(), Object::GetGUID(), GetSession(), MAX_UNIT_ACTION_BAR_INDEX, WorldSession::SendPacket(), SF_LOG_ERROR, SMSG_PET_SPELLS_MESSAGE, UI64FMTD, Unit::Unit(), ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), and ByteBuffer::WriteByteSeq().
Referenced by Unit::SetCharmedBy().
| void Player::PrepareGossipMenu | ( | WorldObject * | source, |
| uint32 | menuId = 0, | ||
| bool | showQuests = false ) |
Definition at line 11668 of file Player.cpp.
References GossipMenu::AddGossipMenuItemData(), GossipMenu::AddMenuItem(), CLASS_HUNTER, PlayerMenu::ClearMenus(), CONFIG_MIN_DUALSPEC_LEVEL, VendorItemData::Empty(), GAMEOBJECT_TYPE_GOOBER, GAMEOBJECT_TYPE_QUESTGIVER, Unit::getClass(), GetDefaultGossipMenuForSource(), PlayerMenu::GetGossipMenu(), GameObject::GetGoType(), Object::GetGUID(), Object::GetGUIDLow(), Unit::getLevel(), ObjectMgr::GetLocaleString(), GossipMenu::GetMenuId(), WorldObject::GetName(), GetPet(), GetSession(), WorldSession::GetSessionDbLocaleIndex(), GetSpecsCount(), GetTeam(), Object::GetTypeId(), Object::GetUInt32Value(), GOSSIP_OPTION_ARMORER, GOSSIP_OPTION_AUCTIONEER, GOSSIP_OPTION_BANKER, GOSSIP_OPTION_BATTLEFIELD, 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_UNLEARN_SPEC, GOSSIP_OPTION_UNLEARNPETTALENTS, GOSSIP_OPTION_UNLEARNTALENTS, GOSSIP_OPTION_VENDOR, HUNTER_PET, Unit::isDead(), m_spells, MAKE_PAIR32(), PlayerTalkClass, PrepareQuestMenu(), sConditionMgr, WorldSession::SendLearnNewTaxiNode(), GossipMenu::SetMenuId(), SF_LOG_ERROR, sObjectMgr, sOutdoorPvPMgr, sWorld, Object::ToCreature(), Object::ToGameObject(), TRAINER_TYPE_CLASS, TRAINER_TYPE_PETS, TYPEID_GAMEOBJECT, TYPEID_UNIT, UNIT_FIELD_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER, and WorldObject::WorldObject().
Referenced by npc_marshal_dughan::OnGossipHello(), OnGossipSelect(), Spell::SendLoot(), and GameObject::Use().
| void Player::PrepareQuestMenu | ( | uint64 | guid | ) |
Definition at line 28 of file PlayerQuestState.cpp.
References QuestMenu::AddMenuItem(), ASSERT, CanTakeQuest(), QuestMenu::ClearMenu(), ObjectAccessor::GetCreatureOrPetOrVehicle(), Object::GetEntry(), Map::GetGameObject(), WorldObject::GetInstanceId(), WorldObject::GetMap(), WorldLocation::GetMapId(), GetQuestStatus(), Quest::IsAutoComplete(), Object::IsInWorld(), PlayerTalkClass, QUEST_STATUS_COMPLETE, QUEST_STATUS_INCOMPLETE, QUEST_STATUS_NONE, sMapMgr, and sObjectMgr.
Referenced by LuaPlayer::GossipAddQuests(), npc_Spirit_of_Master_Shang_Xi::OnGossipHello(), OnGossipSelect(), and PrepareGossipMenu().
| void Player::ProcessDelayedOperations | ( | ) |
Definition at line 2352 of file Player.cpp.
References _resurrectionData, Unit::CastSpell(), ContinueTaxiFlight(), DELAYED_BG_GROUP_RESTORE, DELAYED_BG_MOUNT_RESTORE, DELAYED_BG_TAXI_RESTORE, DELAYED_RESURRECT_PLAYER, DELAYED_SAVE_PLAYER, DELAYED_SPELL_CAST_DESERTER, GetGroup(), Object::GetGUID(), Unit::GetMaxHealth(), Unit::GetMaxPower(), m_bgData, m_DelayedOperations, m_taxi, POWER_ECLIPSE, POWER_ENERGY, POWER_MANA, POWER_RAGE, ResurrectPlayer(), SaveToDB(), Unit::SetFullHealth(), Unit::SetHealth(), Unit::SetPower(), and SpawnCorpseBones().
Referenced by WorldSession::HandleMoveTeleportAck(), and WorldSession::HandleMoveWorldportAckOpcode().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 16812 of file Player.cpp.
References AddSpellCooldown(), ASSERT, ByteBuffer::bitwpos(), ByteBuffer::FlushBits(), Object::GetGUID(), SpellInfo::GetSchoolMask(), GetSession(), GetSpellCooldownDelay(), IN_MILLISECONDS, SpellInfo::IsCooldownStartedOnEvent(), m_spells, PLAYERSPELL_REMOVED, SpellInfo::PreventionType, ByteBuffer::PutBits(), WorldSession::SendPacket(), SMSG_SPELL_COOLDOWN, SPELL_PREVENTION_TYPE_SILENCE, sSpellMgr, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), and ByteBuffer::WriteByteSeq().
| void Player::QuestObjectiveSatisfy | ( | uint32 | objectId, |
| uint32 | amount, | ||
| uint8 | type = 0u, | ||
| uint64 | guid = 0u ) |
Definition at line 2000 of file PlayerQuestState.cpp.
References QuestObjective::Amount, CanCompleteQuest(), CompleteQuest(), GetQuestObjectiveCounter(), Quest::GetQuestObjectiveCountType(), GetQuestSlotQuestId(), QuestObjective::Id, Quest::m_questObjectives, m_questObjectiveStatus, m_questObjectiveStatusSave, m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, QuestObjective::ObjectId, QUEST_STATUS_INCOMPLETE, SendQuestUpdateAddCredit(), sObjectMgr, QuestStatusData::Status, and QuestObjective::Type.
Definition at line 2152 of file PlayerStorage.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_EQUIP_EPIC_ITEM, ACHIEVEMENT_CRITERIA_TYPE_EQUIP_ITEM, AddEnchantmentDurations(), AddItemDurations(), Object::AddToWorld(), Object::GetEntry(), Object::IsInWorld(), Object::SendUpdateToPlayer(), UpdateAchievementCriteria(), and VisualizeItem().
Referenced by _LoadInventory().
| void Player::ReadMovementInfo | ( | WorldPacket & | data, |
| MovementInfo * | mi, | ||
| Movement::ExtraMovementStatusElement * | extras = NULL ) |
Anti-cheat checks. Please keep them in seperate if () blocks to maintain a clear overview. Might be subject to latency, so just remove improper flags.
This must be a packet spoofing attempt. MOVEMENTFLAG_ROOT sent from the client is not valid in conjunction with any of the moving movement flags such as MOVEMENTFLAG_FORWARD. It will freeze clients that receive this player's movement info.
Cannot hover without SPELL_AURA_HOVER
Cannot ascend and descend at the same time
Cannot move left and right at the same time
Cannot strafe left and right at the same time
Cannot pitch up and down at the same time
Cannot move forwards and backwards at the same time
Cannot walk on water without SPELL_AURA_WATER_WALK
Cannot feather fall without SPELL_AURA_FEATHER_FALL
Cannot fly if no fly auras present. Exception is being a GM. Note that we check for account level instead of Player::IsGameMaster() because in some situations it may be feasable to use .gm fly on as a GM without having .gm on, e.g. aerial combat.
Definition at line 22773 of file Player.cpp.
References MovementInfo::AddMovementFlag(), ASSERT, MovementInfo::JumpInfo::cosAngle, MovementInfo::JumpInfo::fallTime, MovementInfo::flags, MovementInfo::flags2, GetMovementStatusElementsSequence(), WorldPacket::GetOpcode(), GetOpcodeNameForLogging(), GetSession(), MovementInfo::guid, MovementInfo::TransportInfo::guid, Unit::HasAuraType(), MovementInfo::HasMovementFlag(), MovementInfo::jump, m_mover, M_PI, Position::m_positionX, Position::m_positionY, Position::m_positionZ, MOVEMENTFLAG_ASCENDING, MOVEMENTFLAG_BACKWARD, MOVEMENTFLAG_CAN_FLY, MOVEMENTFLAG_DESCENDING, MOVEMENTFLAG_DISABLE_GRAVITY, MOVEMENTFLAG_FALLING, MOVEMENTFLAG_FALLING_SLOW, MOVEMENTFLAG_FLYING, MOVEMENTFLAG_FORWARD, MOVEMENTFLAG_HOVER, MOVEMENTFLAG_LEFT, MOVEMENTFLAG_PITCH_DOWN, MOVEMENTFLAG_PITCH_UP, MOVEMENTFLAG_RIGHT, MOVEMENTFLAG_ROOT, MOVEMENTFLAG_SPLINE_ELEVATION, MOVEMENTFLAG_STRAFE_LEFT, MOVEMENTFLAG_STRAFE_RIGHT, MOVEMENTFLAG_WATERWALKING, MSECount, MSECounter, MSEEnd, MSEExtraElement, MSEFallCosAngle, MSEFallHorizontalSpeed, MSEFallSinAngle, MSEFallTime, MSEFallVerticalSpeed, MSEForces, MSEForcesCount, MSEGuidByte0, MSEGuidByte1, MSEGuidByte2, MSEGuidByte3, MSEGuidByte4, MSEGuidByte5, MSEGuidByte6, MSEGuidByte7, MSEHasCounter, MSEHasFallData, MSEHasFallDirection, MSEHasGuidByte0, MSEHasGuidByte1, MSEHasGuidByte2, MSEHasGuidByte3, MSEHasGuidByte4, MSEHasGuidByte5, MSEHasGuidByte6, MSEHasGuidByte7, MSEHasMountDisplayId, MSEHasMovementFlags, MSEHasMovementFlags2, MSEHasOrientation, MSEHasPitch, MSEHasSpline, MSEHasSplineElevation, MSEHasTimestamp, MSEHasTransportData, MSEHasTransportGuidByte0, MSEHasTransportGuidByte1, MSEHasTransportGuidByte2, MSEHasTransportGuidByte3, MSEHasTransportGuidByte4, MSEHasTransportGuidByte5, MSEHasTransportGuidByte6, MSEHasTransportGuidByte7, MSEHasTransportTime2, MSEHasTransportTime3, MSEMountDisplayIdWithCheck, MSEMountDisplayIdWithoutCheck, MSEMovementFlags, MSEMovementFlags2, MSEOneBit, MSEOrientation, MSEOrientationWithoutCheck, MSEPitch, MSEPositionX, MSEPositionY, MSEPositionZ, MSESplineElevation, MSETimestamp, MSETransportGuidByte0, MSETransportGuidByte1, MSETransportGuidByte2, MSETransportGuidByte3, MSETransportGuidByte4, MSETransportGuidByte5, MSETransportGuidByte6, MSETransportGuidByte7, MSETransportOrientation, MSETransportPositionX, MSETransportPositionY, MSETransportPositionZ, MSETransportSeat, MSETransportTime, MSETransportTime2, MSETransportTime3, MSEZeroBit, MovementInfo::pitch, MovementInfo::pos, MovementInfo::TransportInfo::pos, Movement::PrintInvalidSequenceElement(), ByteBuffer::read(), ByteBuffer::read_skip(), ByteBuffer::ReadBit(), ByteBuffer::ReadBits(), ByteBuffer::ReadByteSeq(), Movement::ExtraMovementStatusElement::ReadNextElement(), REMOVE_VIOLATING_FLAGS, MovementInfo::TransportInfo::seat, SEC_PLAYER, Position::SetOrientation(), Object::SetUInt32Value(), SF_LOG_ERROR, MovementInfo::JumpInfo::sinAngle, SPELL_AURA_FEATHER_FALL, SPELL_AURA_FLY, SPELL_AURA_HOVER, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, SPELL_AURA_WATER_WALK, MovementInfo::splineElevation, MovementInfo::time, MovementInfo::TransportInfo::time, MovementInfo::TransportInfo::time2, MovementInfo::TransportInfo::time3, Object::ToPlayer(), MovementInfo::transport, UNIT_FIELD_MOUNT_DISPLAY_ID, MovementInfo::JumpInfo::xyspeed, and MovementInfo::JumpInfo::zspeed.
Referenced by WorldSession::HandleChangeSeatsOnControlledVehicle(), and WorldSession::HandleMoveSetVehicleRecAck().
| void Player::ReadyCheckComplete | ( | ) |
Definition at line 22754 of file Player.cpp.
References _readyCheckTimer, GetGroup(), Object::GetGUID(), Group::IsLeader(), Group::ReadyCheck(), Group::ReadyCheckInProgress(), Group::ReadyCheckResetResponded(), and Group::SendReadyCheckCompleted().
Referenced by Update().
|
inline |
Definition at line 2352 of file Player.h.
References ApplyRatingMod().
Referenced by DestroyItem(), EquipItem(), RemoveItem(), and UpdateAllStats().
|
private |
Already checked before
Definition at line 22304 of file Player.cpp.
References ASSERT, CanStoreNewItem(), CharacterDatabase, DestroyItem(), EQUIP_ERR_OK, Item::GetBagSlot(), Object::GetGUIDLow(), Item::GetPaidExtendedCost(), Item::GetPaidMoney(), Item::GetRefundRecipient(), Item::GetSlot(), Object::HasFlag(), Item::IsRefundExpired(), ITEM_EXT_COST_CURRENCY_REQ_IS_SEASON_EARNED_1, ITEM_FIELD_DYNAMIC_FLAGS, ITEM_FLAG_REFUNDABLE, MAX_ITEM_EXT_COST_CURRENCIES, MAX_ITEM_EXT_COST_ITEMS, ModifyCurrency(), ModifyMoney(), NULL_BAG, NULL_SLOT, ItemExtendedCostEntry::RequiredCurrency, ItemExtendedCostEntry::RequiredCurrencyCount, ItemExtendedCostEntry::RequiredItem, ItemExtendedCostEntry::RequiredItemCount, ItemExtendedCostEntry::RequirementFlags, SaveInventoryAndGoldToDB(), SendItemRefundResult(), SendNewItem(), Item::SetNotRefundable(), SF_LOG_DEBUG, sItemExtendedCostStore, and StoreNewItem().
Referenced by WorldSession::HandleItemRefund().
| void Player::Regenerate | ( | Powers | power | ) |
Definition at line 2559 of file Player.cpp.
References AddPct(), CalculatePct(), Unit::GetAuraEffectsByType(), Object::GetFloatValue(), Unit::GetMaxPower(), Unit::GetPower(), Unit::GetPowerIndex(), Unit::GetTotalAuraModifierByMiscValue(), Unit::HasAuraType(), Unit::HasAuraTypeWithValue(), IN_MILLISECONDS, Unit::IsInCombat(), m_chiPowerDegenTimerCount, m_powerFraction, Unit::m_regenTimer, m_regenTimerCount, MAX_POWERS, POWER_CHI, POWER_DEMONIC_FURY, POWER_ENERGY, POWER_FOCUS, POWER_HEALTH, POWER_HOLY_POWER, POWER_MANA, POWER_RAGE, POWER_RUNES, POWER_RUNIC_POWER, RATE_POWER_ENERGY, RATE_POWER_FOCUS, RATE_POWER_MANA, RATE_POWER_RAGE_LOSS, RATE_POWER_RUNICPOWER_LOSS, Unit::SetPower(), SPELL_AURA_INTERRUPT_REGEN, SPELL_AURA_MOD_POWER_REGEN, SPELL_AURA_MOD_POWER_REGEN_PERCENT, SPELL_AURA_PREVENT_REGENERATE_POWER, sWorld, UNIT_FIELD_MOD_CASTING_SPEED, UNIT_FIELD_MOD_HASTE, UNIT_FIELD_MOD_RANGED_HASTE, UNIT_FIELD_POWER, UNIT_FIELD_POWER_REGEN_FLAT_MODIFIER, UNIT_FIELD_POWER_REGEN_INTERRUPTED_FLAT_MODIFIER, and Object::UpdateUInt32Value().
Referenced by LuaPlayer::Regenerate(), and RegenerateAll().
| void Player::RegenerateAll | ( | ) |
Definition at line 2479 of file Player.cpp.
References CLASS_DEATH_KNIGHT, CLASS_HUNTER, CLASS_MONK, CLASS_PALADIN, CLASS_WARLOCK, GetActiveSpec(), Unit::getClass(), GetRuneCooldown(), GetTalentSpecialization(), Unit::HasAuraType(), Unit::IsInCombat(), Unit::IsPolymorphed(), m_baseHealthRegen, m_chiPowerDegenTimerCount, m_focusRegenTimerCount, m_holyPowerRegenTimerCount, Unit::m_regenTimer, m_regenTimerCount, MAX_RUNES, POWER_CHI, POWER_DEMONIC_FURY, POWER_ENERGY, POWER_FOCUS, POWER_HOLY_POWER, POWER_MANA, POWER_RAGE, POWER_RUNIC_POWER, Regenerate(), RegenerateHealth(), SetRuneCooldown(), SPEC_WARLOCK_DEMONOLOGY, SPELL_AURA_MOD_HEALTH_REGEN_IN_COMBAT, and SPELL_AURA_MOD_REGEN_DURING_COMBAT.
Referenced by LuaPlayer::RegenerateAll(), and Update().
| void Player::RegenerateHealth | ( | ) |
Definition at line 2730 of file Player.cpp.
References AddPct(), ApplyPct(), Unit::GetAuraEffectsByType(), Unit::GetHealth(), Unit::getLevel(), Unit::GetMaxHealth(), Unit::GetTotalAuraModifier(), Unit::HasAuraType(), IN_MILLISECONDS, Unit::IsInCombat(), Unit::IsPolymorphed(), Unit::IsStandState(), m_baseHealthRegen, Unit::ModifyHealth(), RATE_HEALTH, SPELL_AURA_MOD_HEALTH_REGEN_IN_COMBAT, SPELL_AURA_MOD_HEALTH_REGEN_PERCENT, SPELL_AURA_MOD_REGEN, SPELL_AURA_MOD_REGEN_DURING_COMBAT, and sWorld.
Referenced by RegenerateAll(), and LuaPlayer::RegenerateHealth().
| void Player::removeActionButton | ( | uint8 | button | ) |
Definition at line 6820 of file Player.cpp.
References ACTIONBUTTON_DELETED, ACTIONBUTTON_NEW, Object::GetGUIDLow(), m_actionButtons, and SF_LOG_DEBUG.
Referenced by WorldSession::HandleSetActionButtonOpcode().
| void Player::RemoveActiveQuest | ( | uint32 | quest_id | ) |
Definition at line 1438 of file PlayerQuestState.cpp.
References m_questObjectiveStatus, m_questObjectiveStatusSave, m_QuestStatus, m_QuestStatusSave, and sObjectMgr.
Referenced by Spell::EffectQuestClear(), quest_commandscript::HandleQuestRemove(), LuaPlayer::RemoveActiveQuest(), and RewardQuest().
| void Player::RemoveAllSpellCooldown | ( | ) |
Definition at line 4350 of file Player.cpp.
References m_spellCooldowns, and SendClearAllCooldowns().
Referenced by misc_commandscript::HandleCooldownCommand(), and LuaPlayer::ResetAllCooldowns().
| void Player::RemoveArenaEnchantments | ( | EnchantmentSlot | slot | ) |
Definition at line 10849 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 4317 of file Player.cpp.
References SpellInfo::CategoryRecoveryTime, GetPet(), IN_MILLISECONDS, m_spellCooldowns, MINUTE, SpellInfo::RecoveryTime, RemoveSpellCooldown(), SendClearCooldown(), and sSpellMgr.
Referenced by TeleportTo().
| void Player::RemoveAtLoginFlag | ( | AtLoginFlags | flags, |
| bool | persist = false ) |
Definition at line 21581 of file Player.cpp.
References CHAR_UPD_REM_AT_LOGIN_FLAG, CharacterDatabase, Object::GetGUIDLow(), m_atLoginFlags, PreparedStatement::setUInt16(), and PreparedStatement::setUInt32().
Referenced by WorldSession::HandlePlayerLogin(), resetSpells(), ResetTalents(), and Pet::resetTalentsForAllPetsOf().
| void Player::RemoveBattlegroundQueueId | ( | BattlegroundQueueTypeId | val | ) |
Definition at line 19282 of file Player.cpp.
References BATTLEGROUND_QUEUE_NONE, m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by BGQueueRemoveEvent::Execute(), and Battleground::RemovePlayerAtLeave().
|
inline |
Definition at line 2715 of file Player.h.
References m_bgData.
Referenced by Battleground::RemovePlayerAtLeave().
| void Player::RemoveCategoryCooldown | ( | uint32 | cat | ) |
Definition at line 4293 of file Player.cpp.
References RemoveSpellCooldown(), and sSpellsByCategoryStore.
| void Player::RemovedInsignia | ( | Player * | looterPlr | ) |
Definition at line 9282 of file Player.cpp.
References BuildPlayerRepop(), CORPSE_DYNFLAG_LOOTABLE, CORPSE_FIELD_DYNAMIC_FLAGS, GetBattlegroundId(), Object::GetGUID(), Unit::getLevel(), Loot::gold, Corpse::loot, LOOT_INSIGNIA, Corpse::lootRecipient, m_deathTimer, Player(), RepopAtGraveyard(), SendLoot(), Object::SetFlag(), and sObjectAccessor.
Referenced by Spell::EffectSkinPlayerCorpse(), and LuaPlayer::RemovedInsignia().
| void Player::RemoveEnchantmentDurations | ( | Item * | item | ) |
Definition at line 10834 of file Player.cpp.
References m_enchantDuration, and Item::SetEnchantmentDuration().
Referenced by _StoreItem(), DestroyItem(), EquipItem(), and RemoveItem().
| void Player::RemoveFromBattlegroundOrBattlefieldRaid | ( | ) |
Definition at line 20129 of file Player.cpp.
References GetOriginalGroup(), GetOriginalSubGroup(), m_group, and SetOriginalGroup().
Referenced by Group::Disband(), and Group::RemoveMember().
|
static |
Definition at line 3059 of file Player.cpp.
References Group::RemoveMember().
Referenced by DeleteFromDB(), WorldSession::HandleGroupDisbandOpcode(), WorldSession::HandleGroupUninviteGuidOpcode(), LuaPlayer::RemoveFromGroup(), RemoveFromGroup(), and lfg::LFGMgr::UpdateBoot().
|
inline |
Definition at line 2264 of file Player.h.
References GetGroup(), Object::GetGUID(), GROUP_REMOVEMETHOD_DEFAULT, and RemoveFromGroup().
|
inline |
Definition at line 3153 of file Player.h.
References WhisperList.
Referenced by message_commandscript::HandleWhispersCommand().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 2430 of file Player.cpp.
References GetBattlePetMgr(), WorldObject::GetName(), GetViewpoint(), Object::IsInWorld(), m_items, Object::m_uint32Values, m_zoneUpdateId, mMitems, PLAYER_SLOT_END, PLAYER_SLOT_START, Unit::RemoveFromWorld(), sBattlefieldMgr, SetViewpoint(), SF_LOG_ERROR, sOutdoorPvPMgr, StopCastingBindSight(), StopCastingCharm(), BattlePetMgr::UnSummonCurrentBattlePet(), UnsummonPetTemporaryIfAny(), and WorldObject::WorldObject().
Referenced by Map::RemovePlayerFromMap().
Definition at line 2217 of file PlayerStorage.cpp.
References _ApplyItemMods(), BASE_ATTACK, Item::ClearEnchantment(), CR_ARMOR_PENETRATION, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, GetBagByPos(), Object::GetEntry(), GetItemByPos(), Item::GetItemSuffixFactor(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, Object::IsInWorld(), ITEM_FIELD_CONTAINED_IN, ItemTemplate::ItemSet, m_items, NULL_SLOT, OFF_ATTACK, PLAYER_FIELD_INV_SLOTS, PROP_ENCHANTMENT_SLOT_0, PROP_ENCHANTMENT_SLOT_1, PROP_ENCHANTMENT_SLOT_3, PROP_ENCHANTMENT_SLOT_4, RecalculateRating(), RemoveEnchantmentDurations(), RemoveItemDependentAurasAndCasts(), RemoveItemDurations(), RemoveItemsSetItem(), RemoveTradeableItem(), Object::SendUpdateToPlayer(), Item::SetSlot(), Object::SetUInt64Value(), SetVisibleItemSlot(), SF_LOG_DEBUG, and UpdateExpertise().
Referenced by AutoUnequipOffhandIfNeed(), Create(), LuaPlayer::EquipItem(), MoveItemFromInventory(), and SwapItem().
| void Player::RemoveItemDependentAurasAndCasts | ( | Item * | pItem | ) |
Definition at line 19622 of file Player.cpp.
References CURRENT_MAX_SPELL, Aura::GetCasterGUID(), Unit::GetCurrentSpell(), Object::GetGUID(), Aura::GetSpellInfo(), HasItemFitToSpellRequirements(), Unit::InterruptSpell(), Aura::IsPassive(), Unit::m_ownedAuras, Unit::RemoveOwnedAura(), and SPELL_STATE_DELAYED.
Referenced by DestroyItem(), and RemoveItem().
| void Player::RemoveItemDurations | ( | Item * | item | ) |
Definition at line 19496 of file Player.cpp.
References m_itemDuration.
Referenced by _StoreItem(), DestroyItem(), EquipItem(), and RemoveItem().
| void Player::RemoveItemFromBuyBackSlot | ( | uint32 | slot, |
| bool | del ) |
Definition at line 3240 of file PlayerStorage.cpp.
References BUYBACK_SLOT_END, BUYBACK_SLOT_START, ITEM_REMOVED, m_currentBuybackSlot, m_items, PLAYER_FIELD_BUYBACK_PRICE, PLAYER_FIELD_BUYBACK_TIMESTAMP, PLAYER_FIELD_VENDORBUYBACK_SLOTS, Object::RemoveFromWorld(), Item::SetState(), Object::SetUInt32Value(), Object::SetUInt64Value(), and SF_LOG_DEBUG.
Referenced by AddItemToBuyBackSlot().
| void Player::RemoveLootedObject | ( | uint64 | guid | ) |
Definition at line 9341 of file Player.cpp.
References m_lootView.
Referenced by WorldSession::DoLootRelease().
| void Player::RemoveMail | ( | uint32 | id | ) |
Definition at line 12 of file PlayerMail.cpp.
References m_mail.
Referenced by WorldSession::HandleMailReturnToSender().
| bool Player::RemoveMItem | ( | uint32 | id | ) |
Definition at line 101 of file PlayerMail.cpp.
References mMitems.
Referenced by WorldSession::HandleMailReturnToSender(), and WorldSession::HandleMailTakeItem().
| void Player::RemovePet | ( | Pet * | pet, |
| PetSaveMode | mode, | ||
| bool | returnreagent = false ) |
Definition at line 15663 of file Player.cpp.
References WorldObject::AddObjectToRemoveList(), CanStoreNewItem(), Unit::CombatStop(), EQUIP_ERR_OK, ByteBuffer::FlushBits(), Object::GetEntry(), GetGroup(), Object::GetGUID(), Unit::GetOwnerGUID(), GetPet(), GetSession(), Object::GetUInt32Value(), GROUP_UPDATE_PET, InBattleground(), Pet::isControlled(), Object::IsInWorld(), m_oldpetspell, Pet::m_removed, m_temporaryUnsummonedPetNumber, MAX_SPELL_REAGENTS, NULL_BAG, NULL_SLOT, PET_SAVE_NOT_IN_SLOT, SpellInfo::Reagent, SpellInfo::ReagentCount, Pet::SavePetToDB(), SendNewItem(), WorldSession::SendPacket(), SetGroupUpdateFlag(), Unit::SetMinion(), SF_LOG_DEBUG, SMSG_PET_SPELLS_MESSAGE, sSpellMgr, StoreNewItem(), UNIT_FIELD_CREATED_BY_SPELL, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), and ByteBuffer::WriteByteSeq().
Referenced by ActivateSpec(), Spell::EffectDismissPet(), Spell::EffectSummonPet(), misc_commandscript::HandleFreezeCommand(), WorldSession::HandlePetActionHelper(), WorldSession::HandleRepopRequestOpcode(), Pet::Remove(), Battleground::RemovePlayerAtLeave(), ResetTalents(), setDeathState(), UnsummonPetTemporaryIfAny(), and Update().
Definition at line 16445 of file Player.cpp.
References CHAR_DEL_ALL_PETITION_SIGNATURES, CHAR_DEL_PETITION_BY_OWNER, CHAR_DEL_PETITION_BY_OWNER_AND_TYPE, CHAR_DEL_PETITION_SIGNATURE, CHAR_DEL_PETITION_SIGNATURE_BY_OWNER, CHAR_DEL_PETITION_SIGNATURE_BY_OWNER_AND_TYPE, CHAR_SEL_PETITION_SIG_BY_GUID, CHAR_SEL_PETITION_SIG_BY_GUID_TYPE, CharacterDatabase, ObjectAccessor::FindPlayer(), GetSession(), GUID_LOPART(), HIGHGUID_ITEM, HIGHGUID_PLAYER, MAKE_NEW_GUID(), Player(), WorldSession::SendPetitionQueryOpcode(), PreparedStatement::setUInt32(), and PreparedStatement::setUInt8().
Referenced by Guild::AddMember(), and DeleteFromDB().
Definition at line 1550 of file PlayerQuestState.cpp.
References MAX_QUEST_OFFSET, PLAYER_FIELD_QUEST_LOG, QUEST_STATE_OFFSET, and Object::RemoveFlag().
Referenced by IncompleteQuest().
| void Player::RemoveRewardedQuest | ( | uint32 | quest_id | ) |
Definition at line 1459 of file PlayerQuestState.cpp.
References m_RewardedQuests, and m_RewardedQuestsSave.
Referenced by Spell::EffectQuestClear(), quest_commandscript::HandleQuestRemove(), and LuaPlayer::RemoveRewardedQuest().
| void Player::RemoveRunesByAuraEffect | ( | AuraEffect const * | aura | ) |
Definition at line 20552 of file Player.cpp.
References ConvertRune(), GetBaseRune(), m_runes, MAX_RUNES, and SetRuneConvertAura().
Referenced by AuraEffect::HandleAuraConvertRune(), Aura::HandleAuraSpecificMods(), and AuraEffect::HandlePeriodicDummyAuraTick().
| void Player::removeSpell | ( | uint32 | spell_id, |
| bool | disabled = false, | ||
| bool | learn_low_rank = true ) |
Definition at line 4073 of file Player.cpp.
References ABILITY_LEARNED_ON_GET_RACE_OR_CLASS_SKILL, addSpell(), AutoUnequipOffhandIfNeed(), Skyfire::SpellBook::BuildSupercededSpellPacket(), SkillLineEntry::categoryId, CONFIG_MAX_PRIMARY_TRADE_SKILL, CONFIG_OFFHAND_CHECK_AT_SPELL_UNLEARN, SpellEffectInfo::Effect, SpellInfo::Effects, GetFreePrimaryProfessionPoints(), Object::GetGUID(), Unit::GetMaxSkillValueForLevel(), GetPureMaxSkillValue(), GetPureSkillValue(), GetSession(), GetSkillStep(), GetTalentSpellCost(), GetTalentSpellPos(), GetUsedTalentCount(), HasSpell(), SkillLineEntry::id, SpellInfo::IsPassive(), SpellInfo::IsPrimaryProfessionFirstRank(), IsProfessionSkill(), SpellInfo::IsRanked(), SpellInfo::IsStackableWithRanks(), Unit::m_canDualWield, m_canTitanGrip, m_spells, MAX_SPELL_EFFECTS, SpellLearnSkillNode::maxvalue, PLAYERSPELL_CHANGED, PLAYERSPELL_NEW, PLAYERSPELL_REMOVED, PLAYERSPELL_TEMPORARY, Unit::RemoveOwnedAura(), Unit::RemovePetAura(), removeSpell(), WorldSession::SendPacket(), Unit::SetCanDualWield(), SetCanTitanGrip(), SetFreePrimaryProfessions(), SetSkill(), SetUsedTalentCount(), SpellLearnSkillNode::skill, SKILL_CATEGORY_CLASS, SKILL_CATEGORY_PROFESSION, SKILL_CATEGORY_SECONDARY, SKILL_RUNEFORGING, SMSG_REMOVED_SPELL, SPELL_EFFECT_DUAL_WIELD, sSkillLineStore, sSpellMgr, SpellLearnSkillNode::step, sWorld, SpellLearnSkillNode::value, and ByteBuffer::WriteBits().
Referenced by Guild::DeleteMember(), Spell::EffectUnlearnSpecialization(), learn_commandscript::HandleUnLearnCommand(), learnSkillRewardedSpells(), ProfessionUnlearnSpells(), LuaPlayer::RemoveSpell(), removeSpell(), RemoveTalent(), resetSpells(), ResetTalents(), and SetSkill().
| void Player::RemoveSpellCategoryCooldown | ( | uint32 | cat, |
| bool | update = false ) |
Definition at line 4301 of file Player.cpp.
References m_spellCooldowns, RemoveSpellCooldown(), and sSpellsByCategoryStore.
| void Player::RemoveSpellCooldown | ( | uint32 | spell_id, |
| bool | update = false ) |
Definition at line 4284 of file Player.cpp.
References m_spellCooldowns, and SendClearCooldown().
Referenced by spell_dru_eclipse::spell_dru_eclipse_AuraScript::ApplyEffect(), Aura::HandleAuraSpecificMods(), misc_commandscript::HandleCooldownCommand(), spell_item_rocket_boots::spell_item_rocket_boots_SpellScript::HandleDummy(), spell_mage_cold_snap::spell_mage_cold_snap_SpellScript::HandleDummy(), spell_sha_lava_surge_proc::spell_sha_lava_surge_proc_SpellScript::HandleDummy(), Unit::HandleDummyAuraProc(), spell_mage_glyph_of_ice_block::spell_mage_glyph_of_ice_block_AuraScript::HandleEffectProc(), spell_pal_grand_crusader::spell_pal_grand_crusader_AuraScript::HandleEffectProc(), spell_gen_divine_storm_cd_reset::spell_gen_divine_storm_cd_reset_SpellScript::HandleScript(), AuraEffect::HandleShapeshiftBoosts(), Unit::ProcDamageAndSpellFor(), RemoveArenaSpellCooldowns(), RemoveCategoryCooldown(), RemoveSpellCategoryCooldown(), and LuaPlayer::ResetSpellCooldown().
| void Player::RemoveSpellMods | ( | Spell * | spell | ) |
Definition at line 16377 of file Player.cpp.
References AURA_REMOVE_BY_EXPIRE, Aura::DropCharge(), Aura::IsUsingCharges(), Spell::m_appliedMods, m_spellMods, MAX_SPELLMOD, and SpellModifier::ownerAura.
| bool Player::RemoveTalent | ( | uint32 | talentId | ) |
Definition at line 4596 of file Player.cpp.
References _SaveSpells(), _SaveTalents(), CharacterDatabase, SpellEffectInfo::Effect, SpellInfo::Effects, GetActiveSpec(), GetTalentMap(), MAX_SPELL_EFFECTS, PLAYERSPELL_REMOVED, removeSpell(), SendTalentsInfoData(), SPELL_EFFECT_LEARN_SPELL, TalentEntry::SpellId, sSpellMgr, sTalentStore, and SpellEffectInfo::TriggerSpell.
Referenced by Spell::EffectRemoveTalent().
| void Player::RemoveTemporarySpell | ( | uint32 | spellId | ) |
Definition at line 3985 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 21023 of file Player.cpp.
References m_achievementMgr.
|
inline |
Definition at line 1860 of file Player.h.
References m_timedquests.
Referenced by FailQuest(), and RewardQuest().
| void Player::RemoveTradeableItem | ( | Item * | item | ) |
Definition at line 59 of file PlayerTrade.cpp.
References m_itemSoulboundTradeable.
Referenced by _StoreItem(), DestroyItem(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), EquipItem(), and RemoveItem().
| void Player::RepopAtGraveyard | ( | ) |
Definition at line 5585 of file Player.cpp.
References AREA_FLAG_NEED_FLY, GetAreaEntryByAreaID(), WorldObject::GetAreaId(), GetBattleground(), WorldLocation::GetMapId(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetSession(), GetTeam(), WorldObject::GetTransport(), WorldObject::GetZoneId(), WorldSafeLocsEntry::ID, Unit::IsAlive(), Unit::isDead(), m_deathTimer, AreaTableEntry::m_flags, m_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, AreaTableEntry::m_MinElevation, WorldSafeLocsEntry::map_id, ResurrectPlayer(), sBattlefieldMgr, WorldSession::SendPacket(), SMSG_DEATH_RELEASE_LOC, sObjectMgr, SpawnCorpseBones(), TeleportTo(), WorldSafeLocsEntry::x, WorldSafeLocsEntry::y, and WorldSafeLocsEntry::z.
Referenced by HandleDrowning(), WorldSession::HandleRepopRequestOpcode(), WorldSession::HandleReturnToGraveyard(), misc_commandscript::HandleUnstuckCommand(), RemovedInsignia(), TeleportTo(), Update(), and UpdateHomebindTime().
| void Player::ReportedAfkBy | ( | Player * | reporter | ) |
This player has been blamed to be inactive in a battleground.
Definition at line 18036 of file Player.cpp.
References CanReportAfkDueToLimit(), Unit::CastSpell(), GetBattleground(), Object::GetGUIDLow(), Battleground::GetStatus(), GetTeam(), Unit::HasAura(), m_bgData, Player(), and STATUS_IN_PROGRESS.
Referenced by WorldSession::HandleReportPvPAFK().
| void Player::ReputationChanged | ( | FactionEntry const * | factionEntry | ) |
Definition at line 1952 of file PlayerQuestState.cpp.
References ReputationChangedQuestCheck().
| void Player::ReputationChanged2 | ( | FactionEntry const * | factionEntry | ) |
Definition at line 1957 of file PlayerQuestState.cpp.
References ReputationChangedQuestCheck().
| void Player::ReputationChangedQuestCheck | ( | FactionEntry const * | factionEntry | ) |
Definition at line 1962 of file PlayerQuestState.cpp.
References QuestObjective::Amount, CanCompleteQuest(), CompleteQuest(), Quest::GetQuestObjectiveCountType(), GetQuestSlotQuestId(), GetReputation(), GetReputationMgr(), IncompleteQuest(), Quest::m_questObjectives, m_QuestStatus, MAX_QUEST_LOG_SIZE, QUEST_OBJECTIVE_TYPE_FACTION_REP2, QUEST_STATUS_COMPLETE, QUEST_STATUS_INCOMPLETE, sObjectMgr, QuestStatusData::Status, and QuestObjective::Type.
Referenced by ReputationChanged(), and ReputationChanged2().
| void Player::ResetAchievementCriteria | ( | AchievementCriteriaTypes | type, |
| uint64 | miscValue1 = 0, | ||
| uint64 | miscValue2 = 0, | ||
| bool | evenIfCriteriaComplete = false ) |
Definition at line 21028 of file Player.cpp.
References m_achievementMgr.
Referenced by Battleground::AddPlayer(), Battleground::EndBattleground(), spell_algalon_supermassive_fail::spell_algalon_supermassive_fail_SpellScript::RecalculateDamage(), and setDeathState().
| void Player::ResetAchievements | ( | ) |
Definition at line 20998 of file Player.cpp.
References m_achievementMgr.
Referenced by reset_commandscript::HandleResetAchievementsCommand(), and LuaPlayer::ResetAchievements().
| void Player::ResetAllPowers | ( | ) |
Definition at line 2778 of file Player.cpp.
References Unit::GetMaxHealth(), Unit::GetMaxPower(), Unit::getPowerType(), POWER_DEMONIC_FURY, POWER_ECLIPSE, POWER_ENERGY, POWER_MANA, POWER_RAGE, POWER_RUNIC_POWER, Unit::SetHealth(), and Unit::SetPower().
Referenced by Battleground::AddPlayer(), and Battleground::EndBattleground().
| void Player::ResetContestedPvP | ( | ) |
Definition at line 15606 of file Player.cpp.
References Unit::ClearUnitState(), m_contestedPvPTimer, PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FLAGS_CONTESTED_PVP, Object::RemoveFlag(), and UNIT_STATE_ATTACK_PLAYER.
Referenced by SetGameMaster(), TeleportTo(), and UpdateContestedPvP().
| void Player::ResetCurrencyWeekCap | ( | ) |
Definition at line 7865 of file Player.cpp.
References _currencyStorage, MAX_ARENA_SLOT, PLAYERCURRENCY_CHANGED, SendDirectMessage(), and SMSG_WEEKLY_RESET_CURRENCY.
| void Player::ResetDailyQuestStatus | ( | ) |
Definition at line 19170 of file Player.cpp.
References m_DailyQuestChanged, m_DFQuests, and m_lastDailyQuestTime.
| void Player::ResetInstances | ( | InstanceResetMethod | method, |
| bool | isRaid ) |
Reset all solo instances and optionally send a message on success for each.
Definition at line 15510 of file Player.cpp.
References InstanceSave::CanReset(), InstanceSave::DeleteFromDB(), DIFFICULTY_HEROIC, GetDungeonDifficulty(), InstanceSave::GetInstanceId(), InstanceSave::GetMapId(), GetRaidDifficulty(), INSTANCE_RESET_ALL, INSTANCE_RESET_CHANGE_DIFFICULTY, Map::IsInstance(), MapEntry::IsRaid(), m_boundInstances, MAP_RAID, MapEntry::map_type, InstanceSave::RemovePlayer(), SendResetInstanceSuccess(), sMapMgr, and sMapStore.
Referenced by Group::AddMember().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 21643 of file Player.cpp.
References WorldObject::GetMap(), GetMapRef(), WorldObject::ResetMap(), Reference< TO, FROM >::unlink(), and Map::UpdateIteratorBack().
Referenced by WorldSession::HandleMoveWorldportAckOpcode().
| void Player::ResetMonthlyQuestStatus | ( | ) |
Definition at line 19202 of file Player.cpp.
References m_MonthlyQuestChanged, and m_monthlyquests.
| void Player::ResetPetTalents | ( | ) |
Definition at line 10429 of file Player.cpp.
References Unit::GetCharmInfo(), Object::GetGUIDLow(), GetPet(), Pet::getPetType(), Object::GetTypeId(), HUNTER_PET, Pet::m_usedTalentCount, Pet::resetTalents(), and SF_LOG_ERROR.
Referenced by OnGossipSelect(), and LuaPlayer::ResetPetTalents().
| void Player::ResetSeasonalQuestStatus | ( | uint16 | event_id | ) |
Definition at line 19192 of file Player.cpp.
References m_SeasonalQuestChanged, and m_seasonalquests.
| void Player::resetSpells | ( | bool | myClassOnly = false | ) |
Definition at line 18782 of file Player.cpp.
References AT_LOGIN_RESET_SPELLS, Unit::getClass(), SpellInfo::GetFirstRankSpell(), GetSpellMap(), GetTalentSpellCost(), HasAtLoginFlag(), SpellInfo::Id, IsSpellFitByClassAndRace(), SpellMgr::IsSpellValid(), learnDefaultSpells(), learnQuestRewardedSpells(), RemoveAtLoginFlag(), removeSpell(), sChrClassesStore, ChrClassesEntry::spellfamily, SpellInfo::SpellFamilyName, SpellInfo::SpellLevel, and sSpellMgr.
Referenced by WorldSession::HandlePlayerLogin(), and reset_commandscript::HandleResetSpellsCommand().
| bool Player::ResetTalents | ( | bool | noCost = false, |
| bool | resetTalents = true, | ||
| bool | resetSpecialization = true ) |
Definition at line 4497 of file Player.cpp.
References _SaveSpells(), _SaveTalents(), ACHIEVEMENT_CRITERIA_TYPE_GOLD_SPENT_FOR_TALENTS, ACHIEVEMENT_CRITERIA_TYPE_NUMBER_OF_TALENT_RESETS, AT_LOGIN_RESET_TALENTS, BUY_ERR_NOT_ENOUGHT_MONEY, CharacterDatabase, CONFIG_NO_RESET_TALENT_COST, SpellEffectInfo::Effect, SpellInfo::Effects, GetActiveSpec(), Unit::getClass(), Unit::getLevel(), GetNextResetTalentsCost(), Unit::getRaceMask(), GetSpellsForLevels(), GetTalentMap(), GetTalentSpecialization(), HasAtLoginFlag(), HasEnoughMoney(), HasSpell(), SpellInfo::Id, MAX_SPELL_EFFECTS, ModifyMoney(), PET_SAVE_NOT_IN_SLOT, PLAYER_FIELD_CURRENT_SPEC_ID, TalentEntry::playerClass, PLAYERSPELL_REMOVED, RemoveAtLoginFlag(), RemovePet(), removeSpell(), SendBuyFailed(), SetTalentResetCost(), SetTalentResetTime(), SetTalentSpecialization(), Object::SetUInt32Value(), SPELL_EFFECT_LEARN_SPELL, TalentEntry::SpellId, sScriptMgr, sSpellMgr, sTalentStore, sWorld, SpellEffectInfo::TriggerSpell, UpdateAchievementCriteria(), and UpdateTalentSpecializationManaBonus().
Referenced by WorldSession::HandlePlayerLogin(), reset_commandscript::HandleResetTalentsCommand(), and InitTalentForLevel().
|
protected |
Definition at line 21954 of file Player.cpp.
References getMSTime(), m_timeSyncClient, m_timeSyncServer, and m_timeSyncTimer.
Referenced by SendInitialPacketsAfterAddToMap().
| void Player::ResetWeeklyQuestStatus | ( | ) |
Definition at line 19182 of file Player.cpp.
References m_WeeklyQuestChanged, and m_weeklyquests.
Definition at line 16370 of file Player.cpp.
References CURRENT_MAX_SPELL, Unit::m_currentSpells, and RestoreSpellMods().
| void Player::RestoreBaseRune | ( | uint8 | index | ) |
Definition at line 20564 of file Player.cpp.
References SpellInfo::Attributes, ConvertRune(), AuraEffect::GetAuraType(), AuraEffect::GetBase(), GetBaseRune(), AuraEffect::GetSpellInfo(), m_runes, MAX_RUNES, Aura::Remove(), SetRuneConvertAura(), SPELL_ATTR0_PASSIVE, and SPELL_AURA_CONVERT_RUNE.
Referenced by Spell::TakeRunePower().
Definition at line 16319 of file Player.cpp.
References SpellModifier::charges, Aura::GetCharges(), Aura::GetSpellInfo(), SpellInfo::Id, Aura::IsUsingCharges(), Spell::m_appliedMods, Spell::m_spellInfo, m_spellMods, SpellModifier::mask, MAX_SPELLMOD, SpellModifier::ownerAura, and SpellInfo::SpellFamilyFlags.
Referenced by RestoreAllSpellMods().
| void Player::ResummonPetTemporaryUnSummonedIfAny | ( | ) |
Definition at line 21128 of file Player.cpp.
References Unit::GetPetGUID(), IsPetNeedBeTemporaryUnsummoned(), Pet::LoadPetFromDB(), and m_temporaryUnsummonedPetNumber.
Referenced by Unit::_ExitVehicle(), WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAckOpcode(), and Battleground::RemovePlayerAtLeave().
| void Player::ResurectUsingRequestData | ( | ) |
Teleport before resurrecting by player, otherwise the player might get attacked from creatures near his corpse
Definition at line 19817 of file Player.cpp.
References _resurrectionData, Unit::CastSpell(), DELAYED_RESURRECT_PLAYER, Unit::GetMaxHealth(), Unit::GetMaxPower(), IsBeingTeleported(), POWER_ECLIPSE, POWER_ENERGY, POWER_FOCUS, POWER_MANA, POWER_RAGE, ResurrectPlayer(), ScheduleDelayedOperation(), Unit::SetFullHealth(), Unit::SetHealth(), Unit::SetPower(), SpawnCorpseBones(), and TeleportTo().
Referenced by WorldSession::HandleResurrectResponseOpcode().
| void Player::ResurrectPlayer | ( | float | restore_percent, |
| bool | applySickness = false ) |
Definition at line 5203 of file Player.cpp.
References ALIVE, Unit::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, MINUTE, OBJECT_FIELD_DYNAMIC_FLAGS, POWER_ECLIPSE, POWER_ENERGY, POWER_FOCUS, POWER_MANA, POWER_RAGE, RACE_NIGHTELF, Unit::RemoveAurasDueToSpell(), WorldSession::SendPacket(), Object::SetByteValue(), setDeathState(), Object::SetFlag(), Unit::SetHealth(), Unit::SetPower(), Unit::SetRooted(), Unit::SetWaterWalking(), SMSG_DEATH_RELEASE_LOC, sOutdoorPvPMgr, sWorld, UNIT_DYNFLAG_REFER_A_FRIEND, UNIT_FIELD_ANIM_TIER, UNIT_STATE_STUNNED, UpdateObjectVisibility(), and UpdateZone().
Referenced by Battleground::_ProcessRessurect(), MapManager::CanPlayerEnter(), Spell::EffectSelfResurrect(), Battleground::EndBattleground(), WorldSession::HandleMoveWorldportAckOpcode(), WorldSession::HandleReclaimCorpseOpcode(), misc_commandscript::HandleReviveCommand(), LoadCorpse(), ProcessDelayedOperations(), Battleground::RemovePlayerAtLeave(), RepopAtGraveyard(), ResurectUsingRequestData(), BfGraveyard::Resurrect(), and LuaPlayer::ResurrectPlayer().
| void Player::ResyncRunes | ( | uint8 | count | ) |
Definition at line 20593 of file Player.cpp.
References GetCurrentRune(), GetRuneCooldown(), GetSession(), WorldSession::SendPacket(), SMSG_RESYNC_RUNES, and ByteBuffer::WriteBits().
Referenced by Spell::EffectActivateRune().
| 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 7316 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, AddItem(), AddPct(), Object::ApplyModUInt32Value(), CONFIG_PVP_TOKEN_COUNT, CONFIG_PVP_TOKEN_ENABLE, CONFIG_PVP_TOKEN_ID, CONFIG_PVP_TOKEN_MAP_TYPE, CURRENCY_TYPE_HONOR_POINTS, WorldObject::GetAreaId(), GetBattleground(), GetBGTeam(), Unit::getClass(), Skyfire::XP::GetGrayLevel(), Object::GetGUID(), Unit::getLevel(), Unit::GetMaxPositiveAuraModifier(), Unit::getRace(), GetSession(), GetTeam(), Object::GetTypeId(), Object::GetUInt32Value(), Unit::HasAura(), Unit::HasAuraType(), Object::HasByteFlag(), Skyfire::Honor::hk_honor_at_level_f(), InArena(), InBattleground(), Creature::IsRacialLeader(), ModifyCurrency(), Player(), PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, PLAYER_FIELD_PLAYER_TITLE, PLAYER_FIELD_YESTERDAY_HONORABLE_KILLS, ChatHandler::PSendSysMessage(), RATE_HONOR, SCORE_BONUS_HONOR, WorldSession::SendPacket(), 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, Unit::Unit(), UNIT_BYTE2_FLAG_FFA_PVP, UNIT_FIELD_SHAPESHIFT_FORM, UpdateAchievementCriteria(), UpdateHonorFields(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by KillRewarder::_RewardHonor(), OutdoorPvPSI::HandleAreaTrigger(), honor_commandscript::HandleHonorAddCommand(), honor_commandscript::HandleHonorAddKillCommand(), RewardQuest(), and Battleground::UpdatePlayerScore().
| void Player::RewardPlayerAndGroupAtEvent | ( | uint32 | creature_id, |
| WorldObject * | pRewardSource ) |
Definition at line 19762 of file Player.cpp.
References GetCorpse(), GetGroup(), Object::GetGUID(), Object::GetTypeId(), Unit::IsAlive(), IsAtGroupRewardDistance(), KilledMonsterCredit(), GroupReference::next(), Player(), TYPEID_UNIT, and WorldObject::WorldObject().
| void Player::RewardPlayerAndGroupAtKill | ( | Unit * | victim, |
| bool | isBattleGround ) |
Definition at line 19757 of file Player.cpp.
References KillRewarder::Reward(), and Unit::Unit().
Referenced by Unit::Kill(), and Battleground::RewardXPAtKill().
| void Player::RewardQuest | ( | Quest const * | quest, |
| uint32 | reward, | ||
| Object * | questGiver, | ||
| bool | announce = true ) |
Definition at line 624 of file PlayerQuestState.cpp.
References _SaveQuestStatus(), 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, AddPct(), QuestObjective::Amount, Quest::CalculateHonorGain(), CanStoreNewItem(), Unit::CastSpell(), CharacterDatabase, CONFIG_MAX_PLAYER_LEVEL, DestroyItemCount(), EQUIP_ERR_OK, FindQuestSlot(), Item::GenerateItemRandomPropertyId(), Unit::GetAuraEffectsByType(), Quest::GetCharTitleId(), GetGuildId(), Unit::getLevel(), Quest::GetQuestId(), Quest::GetRewardPackageItemId(), Quest::GetRewardSkillId(), Quest::GetRewardSkillPoints(), Quest::GetRewChoiceItemCount(), Quest::GetRewChoiceItemsCount(), Quest::GetRewItemsCount(), Quest::GetRewMailDelaySecs(), Quest::GetRewMailTemplateId(), Quest::GetRewMoney(), Quest::GetRewMoneyMaxLevel(), Quest::GetRewSpell(), Quest::GetRewSpellCast(), Quest::GetZoneOrSort(), GiveXP(), Quest::HasFlag(), HasPvPForcingQuest(), Quest::IsDaily(), Quest::IsDFQuest(), Quest::IsMonthly(), Quest::IsSeasonal(), Quest::IsWeekly(), Quest::m_questObjectives, m_RewardedQuests, m_RewardedQuestsSave, MAIL_CHECK_MASK_HAS_BODY, MAX_QUEST_LOG_SIZE, ModifyCurrency(), ModifyMoney(), NULL_BAG, NULL_SLOT, Object::Object(), QuestObjective::ObjectId, pvpInfo, QUEST_FLAGS_FLAGS_PVP, QUEST_OBJECTIVE_TYPE_CURRENCY, QUEST_OBJECTIVE_TYPE_ITEM, QUEST_OBJECTIVE_TYPE_MONEY, QUEST_REWARD_CURRENCY_COUNT, QUEST_SOURCE_ITEM_IDS_COUNT, RATE_DROP_MONEY, RATE_XP_GUILD_MODIFIER, RATE_XP_QUEST, RemoveActiveQuest(), RemoveTimedQuest(), Quest::RequiredSourceItemCount, Quest::RequiredSourceItemId, Quest::RewardCurrencyCount, Quest::RewardCurrencyId, RewardHonor(), Quest::RewardItemId, Quest::RewardItemIdCount, RewardReputation(), sCharTitlesStore, MailDraft::SendMailTo(), SendNewItem(), SendQuestReward(), SetCanDelayTeleport(), SetDailyQuestStatus(), SetMonthlyQuestStatus(), SetQuestSlot(), SetSeasonalQuestStatus(), SetTitle(), SetWeeklyQuestStatus(), sGuildMgr, SPELL_AURA_MOD_XP_QUEST_PCT, StoreNewItem(), sWorld, QuestObjective::Type, UpdateAchievementCriteria(), UpdatePvPState(), UpdateSkillPro(), and Quest::XPValue().
Referenced by CompleteQuest(), lfg::LFGMgr::FinishDungeon(), quest_commandscript::HandleQuestReward(), and LuaPlayer::RewardQuest().
| void Player::RewardReputation | ( | Quest const * | quest | ) |
Definition at line 7241 of file Player.cpp.
References CalculateReputationGain(), GetQuestLevel(), GetReputationMgr(), Quest::IsDaily(), Quest::IsMonthly(), Quest::IsRepeatable(), Quest::IsWeekly(), ReputationMgr::ModifyReputation(), QUEST_REPUTATIONS_COUNT, REPUTATION_SOURCE_DAILY_QUEST, REPUTATION_SOURCE_MONTHLY_QUEST, REPUTATION_SOURCE_QUEST, REPUTATION_SOURCE_REPEATABLE_QUEST, REPUTATION_SOURCE_WEEKLY_QUEST, Quest::RewardFactionId, Quest::RewardFactionValueId, Quest::RewardFactionValueIdOverride, sFactionStore, and sQuestFactionRewardStore.
| void Player::RewardReputation | ( | Unit * | victim, |
| float | rate ) |
Definition at line 7185 of file Player.cpp.
References ALLIANCE, CalculateReputationGain(), CreatureTemplate::Entry, GetChampioningFaction(), GetChampioningType(), Creature::GetCreatureTemplate(), Map::GetDifficulty(), Map::GetId(), Unit::getLevel(), GetLFGDungeon(), WorldObject::GetMap(), ReputationMgr::GetRank(), GetReputationMgr(), GetTeam(), Object::GetTypeId(), HORDE, Map::IsNonRaidInstance(), Creature::IsReputationGainDisabled(), ReputationMgr::ModifyReputation(), ReputationOnKillEntry::RepFaction1, ReputationOnKillEntry::RepFaction2, REPUTATION_SOURCE_KILL, ReputationOnKillEntry::RepValue1, ReputationOnKillEntry::RepValue2, sFactionStore, sObjectMgr, ReputationOnKillEntry::TeamDependent, Object::ToCreature(), TYPEID_PLAYER, and Unit::Unit().
Referenced by KillRewarder::_RewardReputation(), and RewardQuest().
| bool Player::Satisfy | ( | AccessRequirement const * | ar, |
| uint32 | target_map, | ||
| bool | report = false ) |
Definition at line 14123 of file Player.cpp.
References AccessRequirement::achievement, ALLIANCE, CONFIG_INSTANCE_IGNORE_LEVEL, DISABLE_TYPE_MAP, MapDifficulty::ErrorMessage, ObjectAccessor::FindPlayer(), GetDifficulty(), GetDownscaledMapDifficultyData(), GetGroup(), Object::GetGUID(), Group::GetLeaderGUID(), Unit::getLevel(), GetQuestRewardStatus(), GetSession(), GetTeam(), HasAchieved(), MapDifficulty::hasErrorMessage, HasItemCount(), HORDE, DisableMgr::IsDisabledFor(), IsGameMaster(), AccessRequirement::item, AccessRequirement::item2, LANG_INSTANCE_CLOSED, LANG_LEVEL_MINREQUIRED, LANG_LEVEL_MINREQUIRED_AND_ITEM, AccessRequirement::levelMax, AccessRequirement::levelMin, Player(), ChatHandler::PSendSysMessage(), AccessRequirement::quest_A, AccessRequirement::quest_H, AccessRequirement::questFailedText, WorldSession::SendNotification(), SendTransferAborted(), sMapStore, sObjectMgr, sWorld, and TRANSFER_ABORT_DIFFICULTY.
Referenced by MapManager::CanPlayerEnter(), and Spell::CheckCast().
| bool Player::SatisfyQuestClass | ( | Quest const * | qInfo, |
| bool | msg ) const |
Definition at line 1004 of file PlayerQuestState.cpp.
References Unit::getClassMask(), Quest::GetQuestId(), Quest::GetRequiredClasses(), INVALIDREASON_DONT_HAVE_REQ, SendCanTakeQuestResponse(), and SF_LOG_DEBUG.
Referenced by CanSeeStartQuest(), and CanTakeQuest().
| bool Player::SatisfyQuestConditions | ( | Quest const * | qInfo, |
| bool | msg ) |
Definition at line 1104 of file PlayerQuestState.cpp.
References CONDITION_SOURCE_TYPE_QUEST_ACCEPT, Quest::GetQuestId(), INVALIDREASON_DONT_HAVE_REQ, sConditionMgr, SendCanTakeQuestResponse(), and SF_LOG_DEBUG.
Referenced by CanTakeQuest().
| bool Player::SatisfyQuestDay | ( | Quest const * | qInfo, |
| bool | msg ) |
Definition at line 1231 of file PlayerQuestState.cpp.
References Quest::GetQuestId(), INVALIDREASON_DAILY_QUESTS_REMAINING, Quest::IsDaily(), Quest::IsDFQuest(), m_DFQuests, PLAYER_MAX_DAILY_QUESTS, SendCanTakeQuestResponse(), and SF_LOG_DEBUG.
Referenced by CanRewardQuest(), CanSeeStartQuest(), CanTakeQuest(), and SatisfyQuestExclusiveGroup().
| bool Player::SatisfyQuestExclusiveGroup | ( | Quest const * | qInfo, |
| bool | msg ) |
Definition at line 1134 of file PlayerQuestState.cpp.
References Quest::GetExclusiveGroup(), Quest::GetQuestId(), GetQuestStatus(), INVALIDREASON_DONT_HAVE_REQ, Quest::IsRepeatable(), m_RewardedQuests, QUEST_STATUS_NONE, SatisfyQuestDay(), SatisfyQuestSeasonal(), SatisfyQuestWeek(), SendCanTakeQuestResponse(), SF_LOG_DEBUG, and sObjectMgr.
Referenced by CanSeeStartQuest(), and CanTakeQuest().
| bool Player::SatisfyQuestLevel | ( | Quest const * | qInfo, |
| bool | msg ) |
Definition at line 873 of file PlayerQuestState.cpp.
References Unit::getLevel(), Quest::GetMaxLevel(), Quest::GetMinLevel(), Quest::GetQuestId(), INVALIDREASON_DONT_HAVE_REQ, INVALIDREASON_QUEST_FAILED_LOW_LEVEL, SendCanTakeQuestResponse(), and SF_LOG_DEBUG.
Referenced by CanTakeQuest(), and WorldSession::getDialogStatus().
| bool Player::SatisfyQuestLog | ( | bool | msg | ) |
Definition at line 896 of file PlayerQuestState.cpp.
References FindQuestSlot(), GetSession(), MAX_QUEST_LOG_SIZE, WorldSession::SendPacket(), SF_LOG_DEBUG, and SMSG_QUESTLOG_FULL.
Referenced by CanAddQuest(), and WorldSession::HandlePushQuestToParty().
| bool Player::SatisfyQuestMonth | ( | Quest const * | qInfo, |
| bool | msg ) |
Definition at line 1290 of file PlayerQuestState.cpp.
References Quest::GetQuestId(), Quest::IsMonthly(), and m_monthlyquests.
Referenced by CanRewardQuest(), CanSeeStartQuest(), and CanTakeQuest().
| bool Player::SatisfyQuestNextChain | ( | Quest const * | qInfo, |
| bool | msg ) |
Definition at line 1177 of file PlayerQuestState.cpp.
References Quest::GetNextQuestInChain(), Quest::GetQuestId(), GetQuestStatus(), INVALIDREASON_DONT_HAVE_REQ, QUEST_STATUS_NONE, SendCanTakeQuestResponse(), and SF_LOG_DEBUG.
Referenced by CanSeeStartQuest(), and CanTakeQuest().
| bool Player::SatisfyQuestPrevChain | ( | Quest const * | qInfo, |
| bool | msg ) |
Definition at line 1200 of file PlayerQuestState.cpp.
References Quest::GetQuestId(), INVALIDREASON_DONT_HAVE_REQ, m_QuestStatus, Quest::prevChainQuests, QUEST_STATUS_NONE, SendCanTakeQuestResponse(), and SF_LOG_DEBUG.
Referenced by CanSeeStartQuest(), and CanTakeQuest().
| bool Player::SatisfyQuestPreviousQuest | ( | Quest const * | qInfo, |
| bool | msg ) |
Definition at line 911 of file PlayerQuestState.cpp.
References Quest::GetExclusiveGroup(), Quest::GetQuestId(), GetQuestStatus(), INVALIDREASON_DONT_HAVE_REQ, m_RewardedQuests, Quest::prevQuests, QUEST_STATUS_NONE, SendCanTakeQuestResponse(), SF_LOG_DEBUG, and sObjectMgr.
Referenced by CanSeeStartQuest(), and CanTakeQuest().
| bool Player::SatisfyQuestRace | ( | Quest const * | qInfo, |
| bool | msg ) |
Definition at line 1025 of file PlayerQuestState.cpp.
References Quest::GetQuestId(), Unit::getRaceMask(), Quest::GetRequiredRaces(), INVALIDREASON_QUEST_FAILED_WRONG_RACE, SendCanTakeQuestResponse(), and SF_LOG_DEBUG.
Referenced by CanSeeStartQuest(), and CanTakeQuest().
| bool Player::SatisfyQuestReputation | ( | Quest const * | qInfo, |
| bool | msg ) |
Definition at line 1042 of file PlayerQuestState.cpp.
References QuestObjective::Amount, Quest::GetQuestId(), Quest::GetQuestObjectiveCountType(), GetReputation(), GetReputationMgr(), Quest::GetRequiredMaxRepFaction(), Quest::GetRequiredMaxRepValue(), Quest::GetRequiredMinRepFaction(), Quest::GetRequiredMinRepValue(), INVALIDREASON_DONT_HAVE_REQ, Quest::m_questObjectives, QuestObjective::ObjectId, QUEST_OBJECTIVE_TYPE_FACTION_REP2, SendCanTakeQuestResponse(), SF_LOG_DEBUG, and QuestObjective::Type.
Referenced by CanSeeStartQuest(), and CanTakeQuest().
| bool Player::SatisfyQuestSeasonal | ( | Quest const * | qInfo, |
| bool | msg ) |
Definition at line 1277 of file PlayerQuestState.cpp.
References Quest::GetQuestId(), Quest::IsSeasonal(), m_seasonalquests, and sGameEventMgr.
Referenced by CanRewardQuest(), CanSeeStartQuest(), CanTakeQuest(), and SatisfyQuestExclusiveGroup().
| bool Player::SatisfyQuestSkill | ( | Quest const * | qInfo, |
| bool | msg ) const |
Definition at line 850 of file PlayerQuestState.cpp.
References Quest::GetQuestId(), Quest::GetRequiredSkill(), Quest::GetRequiredSkillValue(), GetSkillValue(), INVALIDREASON_DONT_HAVE_REQ, SendCanTakeQuestResponse(), and SF_LOG_DEBUG.
Referenced by CanSeeStartQuest(), and CanTakeQuest().
| bool Player::SatisfyQuestStatus | ( | Quest const * | qInfo, |
| bool | msg ) |
Definition at line 1090 of file PlayerQuestState.cpp.
References Quest::GetQuestId(), GetQuestStatus(), INVALIDREASON_QUEST_ALREADY_ON, QUEST_STATUS_NONE, SendCanTakeQuestResponse(), and SF_LOG_DEBUG.
Referenced by CanTakeQuest(), and WorldSession::HandlePushQuestToParty().
| bool Player::SatisfyQuestTimed | ( | Quest const * | qInfo, |
| bool | msg ) |
Definition at line 1120 of file PlayerQuestState.cpp.
References Quest::GetQuestId(), Quest::HasSpecialFlag(), INVALIDREASON_QUEST_ONLY_ONE_TIMED, m_timedquests, QUEST_SPECIAL_FLAGS_TIMED, SendCanTakeQuestResponse(), and SF_LOG_DEBUG.
Referenced by CanTakeQuest().
| bool Player::SatisfyQuestWeek | ( | Quest const * | qInfo, |
| bool | msg ) |
Definition at line 1268 of file PlayerQuestState.cpp.
References Quest::GetQuestId(), Quest::IsWeekly(), and m_weeklyquests.
Referenced by CanRewardQuest(), CanSeeStartQuest(), CanTakeQuest(), and SatisfyQuestExclusiveGroup().
|
inline |
Definition at line 1865 of file Player.h.
References _CUFProfiles.
Referenced by WorldSession::HandleSaveCUFProfiles().
| void Player::SaveGoldToDB | ( | SQLTransaction & | trans | ) |
Definition at line 14616 of file Player.cpp.
References CHAR_UDP_CHAR_MONEY, CharacterDatabase, Object::GetGUIDLow(), GetMoney(), PreparedStatement::setUInt32(), and PreparedStatement::setUInt64().
Referenced by WorldSession::HandleMailTakeMoney(), Guild::HandleMemberDepositMoney(), Guild::HandleMemberWithdrawMoney(), and SaveInventoryAndGoldToDB().
| void Player::SaveInventoryAndGoldToDB | ( | SQLTransaction & | trans | ) |
Definition at line 14609 of file Player.cpp.
References _SaveCurrency(), _SaveInventory(), and SaveGoldToDB().
Referenced by WorldSession::HandleAcceptTradeOpcode(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionRemoveItem(), WorldSession::HandleMailTakeItem(), WorldSession::HandleSendMail(), and RefundItem().
|
static |
Definition at line 15406 of file Player.cpp.
References CHAR_UPD_CHARACTER_POSITION, CharacterDatabase, GUID_LOPART(), PreparedStatement::setFloat(), PreparedStatement::setUInt16(), and PreparedStatement::setUInt32().
Referenced by WorldSession::HandleCharFactionOrRaceChange(), misc_commandscript::HandleSummonCommand(), and tele_commandscript::HandleTeleNameCommand().
| void Player::SaveRecallPosition | ( | ) |
Definition at line 6866 of file Player.cpp.
References WorldLocation::GetMapId(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), m_recallMap, m_recallO, m_recallX, m_recallY, and m_recallZ.
Referenced by misc_commandscript::HandleAppearCommand(), go_commandscript::HandleGoCreatureCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoObjectCommand(), go_commandscript::HandleGoTaxinodeCommand(), go_commandscript::HandleGoTicketCommand(), go_commandscript::HandleGoTriggerCommand(), go_commandscript::HandleGoXYZCommand(), go_commandscript::HandleGoZoneXYCommand(), group_commandscript::HandleGroupSummonCommand(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleCommand(), tele_commandscript::HandleTeleGroupCommand(), tele_commandscript::HandleTeleNameCommand(), and LoadFromDB().
| void Player::SaveResearchDigsiteToDB | ( | ResearchDigsite * | digsite | ) |
Definition at line 23201 of file Player.cpp.
References CHAR_DEL_CHAR_RESEARCH_DIGSITE, CHAR_INS_CHAR_RESEARCH_DIGSITE, CharacterDatabase, ResearchDigsite::GetArchaeologyFind(), ResearchDigsite::GetDigsiteId(), Object::GetGUIDLow(), ResearchDigsite::GetRemainingFindCount(), PreparedStatement::setUInt32(), and PreparedStatement::setUInt8().
Referenced by _LoadResearchDigsites(), OnArchaeologyFindUsed(), and TryToSpawnResearchDigsiteOnContinent().
| void Player::SaveToDB | ( | bool | create = false | ) |
Insert query
Definition at line 14300 of file Player.cpp.
References _SaveActions(), _SaveAuras(), _SaveBGData(), _SaveCUFProfiles(), _SaveCurrency(), _SaveDailyQuestStatus(), _SaveEquipmentSets(), _SaveGlyphs(), _SaveInstanceTimeRestrictions(), _SaveInventory(), _SaveMail(), _SaveMonthlyQuestStatus(), _SaveQuestObjectiveStatus(), _SaveQuestStatus(), _SaveResearchHistory(), _SaveResearchProjects(), _SaveSeasonalQuestStatus(), _SaveSkills(), _SaveSpellCooldowns(), _SaveSpells(), _SaveStats(), _SaveTalents(), _SaveVoidStorage(), _SaveWeeklyQuestStatus(), CHAR_INS_CHARACTER, CHAR_UPD_CHARACTER, CharacterDatabase, CONFIG_INTERVAL_SAVE, CONFIG_STATS_SAVE_ONLY_ON_LOGOUT, DELAYED_SAVE_PLAYER, EQUIPMENT_SLOT_END, finiteAlways(), GetActiveSpec(), Object::GetByteValue(), Unit::getClass(), GetDrunkValue(), GetDungeonDifficulty(), Unit::getGender(), Object::GetGUIDLow(), Unit::GetHealth(), WorldObject::GetInstanceId(), GetItemByPos(), Unit::getLevel(), WorldLocation::GetMapId(), GetMoney(), WorldObject::GetName(), Position::GetOrientation(), GetPet(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::GetPowerIndex(), Unit::getRace(), GetRaidDifficulty(), GetSession(), GetSpecsCount(), GetTalentResetCost(), GetTalentResetTime(), GetTalentSpecialization(), GetTeleportDest(), Object::GetUInt16Value(), Object::GetUInt32Value(), WorldObject::GetZoneId(), Object::HasFlag(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, IsBeingTeleported(), IsBeingTeleportedFar(), Object::IsInWorld(), KNOWN_TITLES_SIZE, m_achievementMgr, m_atLoginFlags, m_battlePetMgr, m_cinematic, m_deathExpireTime, m_ExtraFlags, m_grantableLevels, m_mailsUpdated, WorldObject::m_name, m_nextSave, m_Played_time, m_reputationMgr, m_rest_bonus, m_session, m_stableSlots, m_taxi, MAX_POWERS, MAX_POWERS_PER_CLASS, MAX_TALENT_SPECS, outDebugValues(), PET_SAVE_AS_CURRENT, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_EXPLORED_ZONES_SIZE, PLAYER_FIELD_EXPLORED_ZONES, PLAYER_FIELD_HAIR_COLOR_ID, PLAYER_FIELD_KNOWN_TITLES, PLAYER_FIELD_LFG_BONUS_FACTION_ID, PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, PLAYER_FIELD_LIFETIME_MAX_RANK, PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FIELD_PLAYER_TITLE, PLAYER_FIELD_REST_STATE, PLAYER_FIELD_VISIBLE_ITEMS, PLAYER_FIELD_WATCHED_FACTION_INDEX, PLAYER_FIELD_XP, PLAYER_FIELD_YESTERDAY_HONORABLE_KILLS, PLAYER_FLAGS_RESTING, WorldSession::SaveTutorialsData(), ScheduleDelayedOperation(), PreparedStatement::setFloat(), PreparedStatement::setString(), PreparedStatement::setUInt16(), PreparedStatement::setUInt32(), PreparedStatement::setUInt64(), PreparedStatement::setUInt8(), SF_LOG_DEBUG, sWorld, UNIT_FIELD_POWER, and UpdateHonorFields().
Referenced by WorldSession::HandleCharCreateCallback(), misc_commandscript::HandleFreezeCommand(), misc_commandscript::HandleReviveCommand(), misc_commandscript::HandleSaveCommand(), misc_commandscript::HandleUnFreezeCommand(), ProcessDelayedOperations(), LuaPlayer::SaveToDB(), SpawnCorpseBones(), and Update().
| void Player::Say | ( | std::string const & | text, |
| const Language | language ) |
Handles said message in regular chat based on declared language and in config pre-defined Range.
Definition at line 15797 of file Player.cpp.
References ChatHandler::BuildChatPacket(), CHAT_MSG_SAY, CONFIG_LISTEN_RANGE_SAY, SendMessageToSetInRange(), sScriptMgr, and sWorld.
Referenced by Unit::HandleDummyAuraProc(), WorldSession::HandleMessagechatOpcode(), LuaPlayer::Say(), LuaUnit::SendUnitSay(), npc_jungle_punch_target::npc_jungle_punch_targetAI::SpellHit(), and boss_headless_horseman::boss_headless_horsemanAI::UpdateAI().
|
inlineprivate |
Definition at line 3553 of file Player.h.
References DELAYED_END, and m_DelayedOperations.
Referenced by LeaveBattleground(), ResurectUsingRequestData(), SaveToDB(), and TeleportToBGEntryPoint().
| void Player::SendActionButtons | ( | uint32 | state | ) | const |
Definition at line 6676 of file Player.cpp.
References ActionButton::GetAction(), GetActiveSpec(), Object::GetGUIDLow(), ActionButton::GetHiType(), GetSession(), ActionButton::GetType(), ActionButtonPACKET::id, MAX_ACTION_BUTTONS, Player(), WorldSession::SendPacket(), SF_LOG_DEBUG, SF_LOG_INFO, SMSG_UPDATE_ACTION_BUTTONS, ActionButtonPACKET::unk, ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
Referenced by ActivateSpec(), and SendInitialActionButtons().
| void Player::SendAttackSwingCancelAttack | ( | ) |
Definition at line 15465 of file Player.cpp.
References Skyfire::PlayerPackets::BuildCancelCombatPacket(), GetSession(), and WorldSession::SendPacket().
Referenced by Unit::CombatStop(), spell_hun_scatter_shot::spell_hun_scatter_shot_SpellScript::HandleDummy(), and Unit::StopAttackFaction().
| void Player::SendAttackSwingError | ( | AttackSwingError | error | ) |
Definition at line 15457 of file Player.cpp.
References ByteBuffer::FlushBits(), GetSession(), WorldSession::SendPacket(), SMSG_ATTACKSWING_ERROR, and ByteBuffer::WriteBits().
Referenced by Update().
| void Player::SendAurasForTarget | ( | Unit * | target | ) |
Blizz sends certain movement packets sometimes even before CreateObject These movement packets are usually found in SMSG_COMPRESSED_MOVES
Definition at line 18981 of file Player.cpp.
References AFLAG_ANY_EFFECT_AMOUNT_SENT, AFLAG_CASTER, AFLAG_DURATION, SpellInfo::AttributesEx5, ByteBuffer::FlushBits(), AuraApplication::GetBase(), Aura::GetCasterGUID(), Aura::GetCasterLevel(), Aura::GetCharges(), Aura::GetDuration(), Aura::GetEffect(), AuraApplication::GetEffectMask(), AuraApplication::GetFlags(), Object::GetGUID(), Aura::GetId(), Aura::GetMaxDuration(), GetSession(), AuraApplication::GetSlot(), Aura::GetSpellInfo(), Aura::GetStackAmount(), Unit::GetVisibleAuras(), Unit::HasAuraType(), AuraApplication::HasEffect(), MAX_SPELL_EFFECTS, WorldSession::SendPacket(), Unit::SetFeatherFall(), Unit::SetHover(), Unit::SetWaterWalking(), SMSG_AURA_UPDATE, SPELL_ATTR5_HIDE_DURATION, SPELL_AURA_FEATHER_FALL, SPELL_AURA_HOVER, SPELL_AURA_WATER_WALK, SpellInfo::StackAmount, Unit::Unit(), ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), and ByteBuffer::WriteByteSeq().
Referenced by SendInitialPacketsAfterAddToMap(), and SendInitialVisiblePackets().
| void Player::SendAutoRepeatCancel | ( | Unit * | target | ) |
Definition at line 15471 of file Player.cpp.
References Object::GetGUID(), GetSession(), WorldSession::SendPacket(), SMSG_CANCEL_AUTO_REPEAT, Unit::Unit(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by Unit::InterruptSpell().
| void Player::SendBattlefieldWorldStates | ( | ) |
Send misc stuff that needs to be sent on every login, like the battle timers.
Definition at line 10352 of file Player.cpp.
References BATTLEFIELD_BATTLEID_WG, ClockWorldState, CONFIG_WINTERGRASP_ENABLE, sBattlefieldMgr, SendUpdateWorldState(), and sWorld.
Referenced by SendInitWorldStates().
| void Player::SendBGWeekendWorldStates | ( | ) |
Definition at line 10337 of file Player.cpp.
References BattlemasterListEntry::HolidayWorldStateId, BattlemasterListEntry::id, BattlegroundMgr::IsBGWeekend(), sBattlemasterListStore, and SendUpdateWorldState().
Referenced by SendInitWorldStates().
| void Player::SendBuyFailed | ( | BuyResult | msg, |
| ObjectGuid | VendorGUID, | ||
| uint32 | item ) |
Definition at line 10736 of file Player.cpp.
References GetSession(), WorldSession::SendPacket(), SF_LOG_DEBUG, SMSG_BUY_FAILED, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by BuyCurrencyFromVendorSlot(), debug_commandscript::HandleDebugSendBuyErrorCommand(), OnGossipSelect(), ProcessCastaction(), ProcessUnlearnAction(), and ResetTalents().
| void Player::SendCanTakeQuestResponse | ( | QuestFailedReason | msg | ) | const |
Definition at line 2180 of file PlayerQuestState.cpp.
References ByteBuffer::FlushBits(), GetSession(), WorldSession::SendPacket(), SF_LOG_DEBUG, SMSG_QUESTGIVER_QUEST_INVALID, and ByteBuffer::WriteBit().
Referenced by debug_commandscript::HandleDebugSendQuestInvalidMsgCommand(), SatisfyQuestClass(), SatisfyQuestConditions(), SatisfyQuestDay(), SatisfyQuestExclusiveGroup(), SatisfyQuestLevel(), SatisfyQuestNextChain(), SatisfyQuestPrevChain(), SatisfyQuestPreviousQuest(), SatisfyQuestRace(), SatisfyQuestReputation(), SatisfyQuestSkill(), SatisfyQuestStatus(), and SatisfyQuestTimed().
| void Player::SendCinematicStart | ( | uint32 | CinematicSequenceId | ) |
Definition at line 6960 of file Player.cpp.
References Unit::AddAura(), cinematicClientStartTime, cinematicSequence, cinematicStartO, cinematicStartX, cinematicStartY, cinematicStartZ, cinematicVisibilityTimer, Unit::getHostileRefManager(), WorldSession::GetLatency(), getMSTime(), Position::GetOrientation(), GetSession(), inCinematic, Position::m_positionX, Position::m_positionY, Position::m_positionZ, sCinematicSequenceMgr, SendDirectMessage(), Unit::SetFall(), HostileRefManager::setOnlineOfflineState(), SMSG_TRIGGER_CINEMATIC, and StopCinematic().
Referenced by debug_commandscript::HandleDebugPlayCinematicCommand(), WorldSession::HandlePlayerLogin(), and GameObject::Use().
| void Player::SendClearAllCooldowns | ( | Unit * | target | ) |
Definition at line 21610 of file Player.cpp.
References ByteBuffer::FlushBits(), Object::GetGUID(), m_spellCooldowns, SendDirectMessage(), SMSG_CLEAR_COOLDOWNS, Unit::Unit(), ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), and ByteBuffer::WriteByteSeq().
Referenced by RemoveAllSpellCooldown().
Definition at line 21596 of file Player.cpp.
References ByteBuffer::FlushBits(), Object::GetGUID(), SendDirectMessage(), SMSG_CLEAR_COOLDOWN, Unit::Unit(), ByteBuffer::WriteBit(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCastSpellOpcode(), RemoveArenaSpellCooldowns(), RemoveSpellCooldown(), and LuaPlayer::SendClearCooldowns().
| void Player::SendComboPoints | ( | ) |
Definition at line 18399 of file Player.cpp.
References ByteBuffer::append(), ByteBuffer::FlushBits(), Object::GetGUID(), Object::GetPackGUID(), GetSession(), ObjectAccessor::GetUnit(), WorldPacket::Initialize(), m_comboPoints, m_comboTarget, m_mover, WorldSession::SendPacket(), ByteBuffer::size(), SMSG_PET_UPDATE_COMBO_POINTS, SMSG_UPDATE_COMBO_POINTS, Unit::Unit(), ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
Referenced by AddComboPoints(), ClearComboPoints(), and GainSpellComboPoints().
| void Player::SendCooldownEvent | ( | SpellInfo const * | spellInfo, |
| uint32 | itemId = 0, | ||
| Spell * | spell = NULL, | ||
| bool | setCooldown = true ) |
Definition at line 17720 of file Player.cpp.
References AddSpellAndCategoryCooldowns(), Object::GetGUID(), SpellInfo::Id, SendDirectMessage(), SMSG_COOLDOWN_EVENT, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by Aura::_UnapplyForTarget(), Unit::RemoveGameObject(), Unit::SetMinion(), and UpdatePotionCooldown().
| void Player::SendCorpseReclaimDelay | ( | bool | load = false | ) |
corpse reclaim delay 30 * 1000ms or longer at often deaths
Definition at line 19971 of file Player.cpp.
References CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVE, CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVP, copseReclaimDelay, CORPSE_RESURRECTABLE_PVP, DEATH_EXPIRE_STEP, GetCorpse(), GetCorpseReclaimDelay(), Corpse::GetGhostTime(), GetSession(), Corpse::GetType(), IN_MILLISECONDS, m_deathExpireTime, m_ExtraFlags, MAX_DEATH_COUNT, PLAYER_EXTRA_PVP_DEATH, WorldSession::SendPacket(), SMSG_CORPSE_RECLAIM_DELAY, sWorld, and ByteBuffer::WriteBit().
| void Player::SendCurrencies | ( | ) | const |
send full data about all currencies to client
Definition at line 7584 of file Player.cpp.
References _currencyStorage, ByteBuffer::append(), ByteBuffer::bitwpos(), CurrencyTypesEntry::Category, CURRENCY_CATEGORY_META_CONQUEST, CURRENCY_FLAG_HIGH_PRECISION, CURRENCY_PRECISION, CurrencyTypesEntry::Flags, ByteBuffer::FlushBits(), GetCurrencyWeekCap(), GetSession(), CurrencyTypesEntry::ID, ByteBuffer::PutBits(), sCurrencyTypesStore, WorldSession::SendPacket(), SMSG_SETUP_CURRENCY, ByteBuffer::WriteBit(), and ByteBuffer::WriteBits().
Referenced by ModifyCurrency(), SendInitialPacketsBeforeAddToMap(), and UpdateResearchProjects().
| void Player::SendDeclineGuildInvitation | ( | std::string | declinerName, |
| bool | autoDecline = false ) |
Definition at line 23874 of file Player.cpp.
References ByteBuffer::FlushBits(), GetSession(), WorldSession::SendPacket(), SMSG_GUILD_DECLINE, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), and ByteBuffer::WriteString().
Referenced by Guild::HandleInviteMember().
| void Player::SendDirectMessage | ( | WorldPacket * | data | ) |
Definition at line 6904 of file Player.cpp.
References m_session.
Referenced by Group::AddMember(), AddSpellMod(), Map::AddToMap(), Spell::EffectBind(), Battleground::EndBattleground(), WorldSession::HandleBattlePetInputFirstPet(), WorldSession::HandleBattlePetWildRequest(), WorldSession::HandleGuildFinderBrowse(), WorldSession::HandleGuildFinderGetApplications(), WorldSession::HandleGuildFinderGetRecruits(), WorldSession::HandleGuildFinderPostRequest(), WorldSession::HandlePetBattleRequestPvp(), Unit::Kill(), GameObject::ModifyHealth(), CreatureTextLocalizer< Builder >::operator()(), Skyfire::LocalizedPacketDo< Builder >::operator()(), Skyfire::LocalizedPacketListDo< Builder >::operator()(), WorldObject::PlayDirectSound(), WorldObject::PlayDistanceSound(), Battleground::PlayerAddedToBGCheckIfBGIsRunning(), Battleground::RemovePlayerAtLeave(), ResetCurrencyWeekCap(), BattlegroundSA::SendBoatTransportUpdates(), CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInvite(), SendCinematicStart(), SendClearAllCooldowns(), SendClearCooldown(), SendCooldownEvent(), SendInspectResult(), SendLoot(), SendLootRelease(), GuildFinderMgr::SendMembershipRequestListUpdate(), SendMovieStart(), SendSpellCooldown(), SendSpellCooldowns(), Unit::SendTeleportPacket(), BattlegroundSA::SendTransportInit(), BattlegroundSA::SendTransportsRemove(), SetMover(), Unit::SetOwnerGUID(), GameObject::Update(), Battleground::UpdateWorldStateForPlayer(), and GameObject::Use().
| void Player::SendDuelCountdown | ( | uint32 | counter | ) |
Definition at line 22142 of file Player.cpp.
References GetSession(), WorldSession::SendPacket(), and SMSG_DUEL_COUNTDOWN.
Referenced by WorldSession::HandleDuelResponseOpcode().
| void Player::SendDungeonDifficulty | ( | ) |
Definition at line 15489 of file Player.cpp.
References GetDungeonDifficulty(), GetSession(), WorldSession::SendPacket(), and SMSG_SET_DUNGEON_DIFFICULTY.
Referenced by Group::AddMember(), WorldSession::HandlePlayerLogin(), SendInitialPacketsAfterAddToMap(), and Group::SetDungeonDifficulty().
| void Player::SendEnchantmentDurations | ( | ) |
Definition at line 11592 of file Player.cpp.
References Object::GetGUID(), GetSession(), m_enchantDuration, and WorldSession::SendItemEnchantTimeUpdate().
Referenced by SendInitialPacketsAfterAddToMap().
| void Player::SendEquipError | ( | InventoryResult | msg, |
| Item * | pItem, | ||
| Item * | pItem2 = NULL, | ||
| uint32 | itemid = 0 ) |
Definition at line 3266 of file PlayerStorage.cpp.
References EQUIP_ERR_CANT_EQUIP_LEVEL_I, 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_NO_OUTPUT, EQUIP_ERR_OK, EQUIP_ERR_PURCHASE_LEVEL_TOO_LOW, Object::GetGUID(), GetSession(), Item::GetTemplate(), ItemTemplate::ItemLimitCategory, ItemTemplate::RequiredLevel, WorldSession::SendPacket(), SF_LOG_DEBUG, SMSG_INVENTORY_CHANGE_FAILURE, sObjectMgr, ByteBuffer::WriteBits(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by _StoreOrEquipNewItem(), AutoStoreLoot(), BuyCurrencyFromVendorSlot(), BuyItemFromVendorSlot(), CanAddQuest(), CanRewardQuest(), CanRewardQuest(), CastItemUseSpell(), Spell::CheckItems(), Group::CountTheRoll(), Spell::DoCreateItem(), Spell::EffectRechargeManaGem(), GiveQuestSourceItem(), WorldSession::HandleAcceptTradeOpcode(), misc_commandscript::HandleAddItemSetCommand(), WorldSession::HandleAutoEquipItemSlotOpcode(), AuraEffect::HandleChannelDeathItem(), debug_commandscript::HandleDebugSendEquipErrorCommand(), WorldSession::HandleGuildBankSwapItems(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleOpenItemOpcode(), ModifyMoney(), ProcessUnlearnAction(), SplitItem(), StoreLootItem(), SwapItem(), and TakeQuestSourceItem().
| void Player::SendEquipmentSetList | ( | ) |
Definition at line 21356 of file Player.cpp.
References ByteBuffer::append(), EQUIPMENT_SET_DELETED, EQUIPMENT_SLOT_END, GetSession(), HIGHGUID_ITEM, m_EquipmentSets, MAKE_NEW_GUID(), WorldSession::SendPacket(), SMSG_LOAD_EQUIPMENT_SET, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), and ByteBuffer::WriteByteSeq().
Referenced by SendInitialPacketsBeforeAddToMap().
Definition at line 15481 of file Player.cpp.
References GetSession(), WorldSession::SendPacket(), and SMSG_EXPLORATION_EXPERIENCE.
Referenced by CheckAreaExploreAndOutdoor().
Definition at line 3325 of file PlayerStorage.cpp.
References GetSession(), WorldSession::SendPacket(), SF_LOG_DEBUG, SMSG_DISPLAY_GAME_ERROR, and ByteBuffer::WriteBit().
|
inline |
Definition at line 2226 of file Player.h.
References SendActionButtons().
Referenced by SendInitialPacketsBeforeAddToMap().
| void Player::SendInitialPacketsAfterAddToMap | ( | ) |
Definition at line 18646 of file Player.cpp.
References AURA_EFFECT_HANDLE_SEND_FOR_CLIENT, Unit::CastSpell(), Unit::GetAuraEffectsByType(), GetDifficulty(), WorldObject::GetMap(), GetSession(), WorldObject::GetZoneAndAreaId(), Unit::HasAuraType(), m_battlePetMgr, ResetTimeSync(), sDifficultyStore, SendAurasForTarget(), SendDungeonDifficulty(), SendEnchantmentDurations(), SendItemDurations(), WorldSession::SendLoadCUFProfiles(), SendRaidDifficulty(), SendTimeSync(), Unit::SetRooted(), SPELL_AURA_FEATHER_FALL, SPELL_AURA_FLY, SPELL_AURA_HOVER, SPELL_AURA_MOD_FEAR, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, SPELL_AURA_MOD_ROOT, SPELL_AURA_MOD_STUN, SPELL_AURA_NONE, SPELL_AURA_SAFE_FALL, SPELL_AURA_TRANSFORM, SPELL_AURA_WATER_WALK, UpdateVisibilityForPlayer(), and UpdateZone().
Referenced by WorldSession::HandleMoveWorldportAckOpcode(), and WorldSession::HandlePlayerLogin().
| void Player::SendInitialPacketsBeforeAddToMap | ( | ) |
Pass 'this' as argument because we're not stored in ObjectAccessor yet
Definition at line 18521 of file Player.cpp.
References ByteBuffer::AppendPackedTime(), DIFFICULTY_10MAN_HEROIC, DIFFICULTY_10MAN_NORMAL, DIFFICULTY_25MAN_HEROIC, DIFFICULTY_25MAN_LFR, DIFFICULTY_25MAN_NORMAL, DIFFICULTY_40MAN, DIFFICULTY_FLEX, DIFFICULTY_HEROIC, ByteBuffer::FlushBits(), GetDifficulty(), GetGroup(), WorldObject::GetMap(), Group::GetMembersCount(), GetReputationMgr(), GetSession(), GetSocial(), WorldPacket::Initialize(), m_achievementMgr, m_homebindAreaId, m_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, m_reputationMgr, SendCurrencies(), SendEquipmentSetList(), ReputationMgr::SendForceReactions(), SendInitialActionButtons(), SendInitialSpells(), WorldSession::SendPacket(), PlayerSocial::SendSocialList(), SendTalentsInfoData(), SetMover(), SMSG_BIND_POINT_UPDATE, SMSG_LOGIN_SET_TIME_SPEED, SMSG_SEND_UNLEARN_SPELLS, SMSG_WORLD_SERVER_INFO, sWorld, WEEK, ByteBuffer::WriteBit(), and ByteBuffer::WriteBits().
Referenced by WorldSession::HandleMoveWorldportAckOpcode(), and WorldSession::HandlePlayerLogin().
| void Player::SendInitialSpells | ( | ) |
Definition at line 3494 of file Player.cpp.
References ByteBuffer::bitwpos(), ByteBuffer::FlushBits(), GetSession(), infinityCooldownDelayCheck, m_spellCooldowns, m_spells, PLAYERSPELL_REMOVED, ByteBuffer::PutBits(), WorldSession::SendPacket(), SendSpellCooldowns(), SF_LOG_DEBUG, SMSG_SEND_KNOWN_SPELLS, ByteBuffer::WriteBit(), and ByteBuffer::WriteBits().
Referenced by SendInitialPacketsBeforeAddToMap().
| void Player::SendInitialVisiblePackets | ( | Unit * | target | ) |
Definition at line 18259 of file Player.cpp.
References Unit::GetVictim(), Unit::HasUnitState(), Unit::IsAlive(), SendAurasForTarget(), Unit::SendMeleeAttackStart(), Unit::Unit(), and UNIT_STATE_MELEE_ATTACKING.
Referenced by UpdateVisibilityOf().
Definition at line 9743 of file Player.cpp.
References WorldStateBuilder::AppendState(), BATTLEFIELD_WG, BATTLEGROUND_AB, BATTLEGROUND_AV, BATTLEGROUND_BE, BATTLEGROUND_BFG, BATTLEGROUND_DS, BATTLEGROUND_EY, BATTLEGROUND_IC, BATTLEGROUND_NA, BATTLEGROUND_RL, BATTLEGROUND_RV, BATTLEGROUND_SA, BATTLEGROUND_TP, BATTLEGROUND_VOP, BATTLEGROUND_WS, Battlefield::FillInitialWorldStates(), Battleground::FillInitialWorldStates(), InstanceScript::FillInitialWorldStates(), OutdoorPvP::FillInitialWorldStates(), GetBattleground(), WorldObject::GetInstanceScript(), WorldLocation::GetMapId(), GetSession(), Battleground::GetTypeID(), Battlefield::GetTypeId(), OutdoorPvP::GetTypeId(), OUTDOOR_PVP_HP, OUTDOOR_PVP_NA, OUTDOOR_PVP_SI, OUTDOOR_PVP_TF, OUTDOOR_PVP_ZM, sBattlefieldMgr, SendBattlefieldWorldStates(), SendBGWeekendWorldStates(), WorldStateBuilder::SendPacket(), SF_LOG_DEBUG, and sOutdoorPvPMgr.
Referenced by UpdateZone().
| void Player::SendInspectResult | ( | Player const * | player | ) |
Definition at line 21991 of file Player.cpp.
References ByteBuffer::append(), ByteBuffer::bitwpos(), EQUIPMENT_SLOT_END, ByteBuffer::FlushBits(), GetActiveSpec(), Unit::getClass(), Item::GetEnchantmentId(), Object::GetEntry(), Guild::GetExperience(), GetGlyph(), Guild::GetGUID(), Object::GetGUID(), GetGuildId(), GetItemByPos(), Guild::GetLevel(), Guild::GetMembersCount(), GetTalentSpecialization(), Object::GetUInt64Value(), HasTalent(), INVENTORY_SLOT_BAG_0, ITEM_FIELD_CREATOR, MAX_ENCHANTMENT_SLOT, MAX_GLYPH_SLOT_INDEX, Player(), TalentEntry::playerClass, ByteBuffer::PutBits(), SendDirectMessage(), sGuildMgr, SMSG_INSPECT_RESULTS, TalentEntry::SpellId, sTalentStore, TalentEntry::TalentID, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), ByteBuffer::WriteByteSeq(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
| void Player::SendInstanceResetWarning | ( | uint32 | mapid, |
| DifficultyID | difficulty, | ||
| uint32 | time ) |
Definition at line 18727 of file Player.cpp.
References ByteBuffer::FlushBits(), GetSession(), RAID_INSTANCE_WARNING_HOURS, RAID_INSTANCE_WARNING_MIN, RAID_INSTANCE_WARNING_MIN_SOON, RAID_INSTANCE_WELCOME, WorldSession::SendPacket(), SMSG_RAID_INSTANCE_MESSAGE, and ByteBuffer::WriteBit().
Referenced by WorldSession::HandleMoveWorldportAckOpcode().
| void Player::SendItemDurations | ( | ) |
Definition at line 11598 of file Player.cpp.
References m_itemDuration.
Referenced by SendInitialPacketsAfterAddToMap().
|
private |
Definition at line 22261 of file Player.cpp.
References CURRENCY_FLAG_HIGH_PRECISION, CURRENCY_PRECISION, CurrencyTypesEntry::Flags, ByteBuffer::FlushBits(), Object::GetGUID(), Item::GetPaidMoney(), GetSession(), ITEM_EXT_COST_CURRENCY_REQ_IS_SEASON_EARNED_1, MAX_ITEM_EXT_COST_CURRENCIES, MAX_ITEM_EXT_COST_ITEMS, ItemExtendedCostEntry::RequiredCurrency, ItemExtendedCostEntry::RequiredCurrencyCount, ItemExtendedCostEntry::RequiredItem, ItemExtendedCostEntry::RequiredItemCount, ItemExtendedCostEntry::RequirementFlags, sCurrencyTypesStore, WorldSession::SendPacket(), SMSG_ITEM_PURCHASE_REFUND_RESULT, ByteBuffer::WriteBit(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by RefundItem().
| void Player::SendLogXPGain | ( | uint32 | GivenXP, |
| Unit * | victim, | ||
| uint32 | BonusXP, | ||
| bool | recruitAFriend = false, | ||
| float | group_rate = 1.0f ) |
Definition at line 3068 of file Player.cpp.
References Object::GetGUID(), GetSession(), WorldSession::SendPacket(), SMSG_LOG_XPGAIN, Unit::Unit(), ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
Referenced by LuaPlayer::GiveXP(), and GiveXP().
Definition at line 9346 of file Player.cpp.
References AddLootedObject(), Loot::AddLooter(), ALL_PERMISSION, BATTLEGROUND_AV, GameObjectTemplate::chest, Loot::clear(), CORPSE_BONES, ItemTemplate::DisenchantID, Loot::FillLoot(), FREE_FOR_ALL, GAMEOBJECT_TYPE_CHEST, Loot::generateMoneyLoot(), GetBattleground(), ObjectAccessor::GetCorpse(), Map::GetCreature(), Creature::GetCreatureTemplate(), Object::GetEntry(), GameObject::getFishLoot(), Map::GetGameObject(), GameObject::GetGOInfo(), GetGroup(), Object::GetGUID(), GetItemByGuid(), Unit::getLevel(), GetLootGUID(), GameObjectTemplate::GetLootId(), GameObject::GetLootMode(), Creature::GetLootRecipient(), GameObject::getLootState(), WorldObject::GetMap(), GameObject::GetOwnerGUID(), GameObject::GetRespawnTime(), GetTeam(), Item::GetTemplate(), Corpse::GetType(), GO_ACTIVATED, GO_READY, Loot::gold, GROUP_LOOT, GROUP_PERMISSION, GameObjectTemplate::groupLootRules, INTERACTION_DISTANCE, IS_CORPSE_GUID(), IS_GAMEOBJECT_GUID(), IS_ITEM_GUID(), Unit::IsAlive(), Unit::IsFriendlyTo(), GameObject::isSpawnedByDefault(), WorldObject::IsWithinDistInMap(), Item::ItemContainerLoadLootFromDB(), Item::ItemContainerSaveLootToDB(), Corpse::loot, Creature::loot, GameObject::loot, Item::loot, LOOT_CORPSE, LOOT_DISENCHANTING, LOOT_FISHING, LOOT_FISHINGHOLE, LOOT_INSIGNIA, LOOT_MILLING, LOOT_PICKPOCKETING, LOOT_PROSPECTING, LOOT_SKINNING, Loot::loot_type, Corpse::lootForBody, Creature::lootForBody, Creature::lootForPickPocketed, Corpse::lootRecipient, LootTemplates_Creature, LootTemplates_Disenchant, LootTemplates_Gameobject, LootTemplates_Item, LootTemplates_Milling, LootTemplates_Pickpocketing, LootTemplates_Prospecting, LootTemplates_Skinning, Item::m_lootGenerated, m_lootView, m_session, MASTER_LOOT, MASTER_PERMISSION, ItemTemplate::MaxMoneyLoot, ItemTemplate::MinMoneyLoot, NEED_BEFORE_GREED, NONE_PERMISSION, OnArchaeologyFindUsed(), OWNER_PERMISSION, CreatureTemplate::pickpocketLootId, Player(), RATE_DROP_MONEY, ROUND_ROBIN, ROUND_ROBIN_PERMISSION, SendDirectMessage(), SendLootRelease(), Object::SetFlag(), SetLootGUID(), GameObject::SetLootState(), SF_LOG_DEBUG, CreatureTemplate::SkinLootId, SMSG_LOOT_RESPONSE, sWorld, GameObjectTemplate::type, UNIT_FIELD_FLAGS, UNIT_FLAG_LOOTING, Loot::unlootedCount, Group::UpdateLooterGuid(), and LootView::WriteData().
Referenced by Spell::EffectMilling(), Spell::EffectProspecting(), WorldSession::HandleLootOpcode(), WorldSession::HandleOpenItemOpcode(), RemovedInsignia(), Spell::SendLoot(), and GameObject::Use().
| void Player::SendLootRelease | ( | ObjectGuid | guid | ) |
Definition at line 9311 of file Player.cpp.
References SendDirectMessage(), SMSG_LOOT_RELEASE_RESPONSE, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by WorldSession::DoLootRelease(), WorldSession::HandleAutostoreLootItemOpcode(), SendLoot(), and StoreLootItem().
| void Player::SendMailResult | ( | uint32 | mailId, |
| MailResponseType | mailAction, | ||
| MailResponseResult | mailError, | ||
| uint32 | equipError = 0, | ||
| uint32 | item_guid = 0, | ||
| uint32 | item_count = 0 ) |
Definition at line 25 of file PlayerMail.cpp.
References GetSession(), WorldSession::SendPacket(), and SMSG_SEND_MAIL_RESULT.
Referenced by WorldSession::HandleMailCreateTextItem(), WorldSession::HandleMailReturnToSender(), WorldSession::HandleMailTakeItem(), WorldSession::HandleMailTakeMoney(), and WorldSession::HandleSendMail().
|
inlineoverridevirtual |
Reimplemented from WorldObject.
Definition at line 2443 of file Player.h.
References WorldObject::GetVisibilityRange(), and SendMessageToSetInRange().
Referenced by DuelComplete(), EnvironmentalDamage(), modify_commandscript::HandleModifyMountCommand(), WorldSession::HandleMountSpecialAnimOpcode(), WorldSession::HandleMoveSetVehicleRecAck(), Unit::Kill(), WorldSession::SendEnchantmentLog(), LuaPlayer::SendPacket(), and Weather::UpdateWeather().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 6893 of file Player.cpp.
References GetSession(), WorldObject::GetVisibilityRange(), Player(), WorldSession::SendPacket(), and WorldObject::VisitNearbyWorldObject().
| void Player::SendMessageToSetInRange | ( | WorldPacket * | data, |
| float | dist, | ||
| bool | self, | ||
| bool | own_team_only ) |
Definition at line 6884 of file Player.cpp.
References GetSession(), WorldSession::SendPacket(), and WorldObject::VisitNearbyWorldObject().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 6875 of file Player.cpp.
References GetSession(), WorldSession::SendPacket(), and WorldObject::VisitNearbyWorldObject().
Referenced by Say(), SendMessageToSet(), TextEmote(), and Yell().
|
protected |
Definition at line 1082 of file Player.cpp.
References DISABLED_MIRROR_TIMER, ByteBuffer::FlushBits(), GetSession(), WorldSession::SendPacket(), SMSG_START_MIRROR_TIMER, StopMirrorTimer(), and ByteBuffer::WriteBit().
Referenced by HandleDrowning().
| void Player::SendMovementSetCanTransitionBetweenSwimAndFly | ( | bool | apply | ) |
These methods send different packets to the client in apply and unapply case. These methods are only sent to the current unit.
Definition at line 22588 of file Player.cpp.
References NULL_OPCODE, Movement::PacketSender::Send(), SMSG_MOVE_SET_CAN_TRANSITION_BETWEEN_SWIM_AND_FLY, and SMSG_MOVE_UNSET_CAN_TRANSITION_BETWEEN_SWIM_AND_FLY.
| void Player::SendMovementSetCollisionHeight | ( | float | height | ) |
Definition at line 22595 of file Player.cpp.
References Movement::ExtraMovementStatusElement::Data, Movement::ExtraMovementStatusElement::floatData, Movement::ExtraMovementStatusElement::floatData2, MSEExtraFloat, MSEExtraFloat2, NULL_OPCODE, Movement::PacketSender::Send(), SMSG_MOVE_SET_COLLISION_HEIGHT, and SMSG_MOVE_UPDATE_COLLISION_HEIGHT.
Referenced by SetObjectScale().
| void Player::SendMovieStart | ( | uint32 | MovieId | ) |
Definition at line 6989 of file Player.cpp.
References SendDirectMessage(), and SMSG_TRIGGER_MOVIE.
Referenced by debug_commandscript::HandleDebugPlayMovieCommand().
| void Player::SendNewCurrency | ( | uint32 | id | ) | const |
send initialization of new currency for client
Definition at line 7542 of file Player.cpp.
References _currencyStorage, CURRENCY_FLAG_HIGH_PRECISION, CURRENCY_PRECISION, CurrencyTypesEntry::Flags, ByteBuffer::FlushBits(), GetCurrencyWeekCap(), GetSession(), CurrencyTypesEntry::ID, sCurrencyTypesStore, WorldSession::SendPacket(), SMSG_SETUP_CURRENCY, ByteBuffer::WriteBit(), and ByteBuffer::WriteBits().
Referenced by ModifyCurrency().
| void Player::SendNewItem | ( | Item * | item, |
| uint32 | count, | ||
| bool | received, | ||
| bool | created, | ||
| bool | broadcast = false ) |
Definition at line 11604 of file Player.cpp.
References Group::BroadcastPacket(), ByteBuffer::FlushBits(), Item::GetBagSlot(), Item::GetCount(), Object::GetEntry(), GetGroup(), Object::GetGUID(), GetItemCount(), Item::GetItemRandomPropertyId(), Item::GetItemSuffixFactor(), GetSession(), Item::GetSlot(), WorldSession::SendPacket(), SMSG_ITEM_PUSH_RESULT, ByteBuffer::WriteBit(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by _StoreOrEquipNewItem(), LuaPlayer::AddItem(), AddItem(), AutoStoreLoot(), Spell::DoCreateItem(), GiveQuestSourceItem(), misc_commandscript::HandleAddItemCommand(), misc_commandscript::HandleAddItemSetCommand(), AuraEffect::HandleChannelDeathItem(), OPvPCapturePointNA::HandleCustomSpell(), WorldSession::HandleLootMasterGiveOpcode(), quest_commandscript::HandleQuestComplete(), WorldSession::HandleVoidStorageTransfer(), RefundItem(), RemovePet(), RewardQuest(), and StoreLootItem().
| void Player::SendNewMail | ( | ) |
Definition at line 38 of file PlayerMail.cpp.
References GetSession(), WorldSession::SendPacket(), and SMSG_RECEIVED_MAIL.
Referenced by AddNewMailDeliverTime(), and Update().
| void Player::SendNotifyLootItemRemoved | ( | uint8 | lootSlot, |
| ObjectGuid | guid ) |
Definition at line 9690 of file Player.cpp.
References GetSession(), WorldSession::SendPacket(), SMSG_LOOT_REMOVED, ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
Referenced by StoreLootItem().
| void Player::SendNotifyLootMoneyRemoved | ( | ObjectGuid | guid | ) |
Definition at line 9681 of file Player.cpp.
References GetSession(), WorldSession::SendPacket(), SMSG_LOOT_CLEAR_MONEY, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
| void Player::SendOnCancelExpectedVehicleRideAura | ( | ) |
Definition at line 15878 of file Player.cpp.
References GetSession(), WorldSession::SendPacket(), and SMSG_ON_CANCEL_EXPECTED_RIDE_VEHICLE_AURA.
Referenced by VehicleJoinEvent::Execute(), and AuraEffect::HandleAuraSetVehicle().
| void Player::SendPreparedGossip | ( | WorldObject * | source | ) |
Definition at line 11815 of file Player.cpp.
References GetGossipTextId(), Object::GetGUID(), Object::GetTypeId(), Object::HasFlag(), PlayerTalkClass, SendPreparedQuest(), Object::ToCreature(), TYPEID_GAMEOBJECT, TYPEID_UNIT, UNIT_FIELD_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP, and WorldObject::WorldObject().
Referenced by npc_marshal_dughan::OnGossipHello(), OnGossipSelect(), Spell::SendLoot(), and GameObject::Use().
| void Player::SendPreparedQuest | ( | uint64 | guid | ) |
Definition at line 88 of file PlayerQuestState.cpp.
References QEmote::_Delay, QEmote::_Emote, AddQuest(), CanAddQuest(), CanCompleteQuest(), CanCompleteRepeatableQuest(), CanRewardQuest(), CanTakeQuest(), CompleteQuest(), GossipTextOption::Emotes, QuestMenu::Empty(), ObjectAccessor::GetCreatureOrPetOrVehicle(), GetGossipTextId(), QuestMenu::GetItem(), ObjectMgr::GetLocaleString(), QuestMenu::GetMenuItemCount(), ObjectAccessor::GetObjectByTypeMask(), GetSession(), WorldSession::GetSessionDbLocaleIndex(), Object::hasInvolvedQuest(), Object::hasQuest(), Object::Object(), GossipText::Options, PlayerTalkClass, QUEST_FLAGS_AUTOCOMPLETE, QuestMenuItem::QuestIcon, QuestMenuItem::QuestId, sObjectMgr, GossipTextOption::Text_0, GossipTextOption::Text_1, TYPEMASK_GAMEOBJECT, TYPEMASK_ITEM, and TYPEMASK_UNIT.
Referenced by OnGossipSelect(), and SendPreparedGossip().
Definition at line 16438 of file Player.cpp.
References GetSession(), WorldSession::SendPacket(), and SMSG_SET_PROFICIENCY.
Referenced by Spell::EffectProficiency().
Definition at line 2234 of file PlayerQuestState.cpp.
References Object::GetGUID(), GetSession(), Player(), WorldSession::SendPacket(), SF_LOG_DEBUG, SMSG_QUEST_PUSH_RESULT, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by debug_commandscript::HandleDebugSendQuestPartyMsgCommand(), WorldSession::HandlePushQuestToParty(), and WorldSession::HandleQuestgiverAcceptQuestOpcode().
| void Player::SendPvpRewards | ( | ) | const |
send conquest currency points and their cap week/arena
Definition at line 7632 of file Player.cpp.
References CURRENCY_TYPE_CONQUEST_META_ARENA, CURRENCY_TYPE_CONQUEST_META_RBG, CURRENCY_TYPE_CONQUEST_POINTS, GetCurrencyOnWeek(), GetCurrencyWeekCap(), GetSession(), WorldSession::SendPacket(), and SMSG_REQUEST_PVP_REWARDS_RESPONSE.
| void Player::SendQuestComplete | ( | Quest const * | quest | ) |
Definition at line 2111 of file PlayerQuestState.cpp.
References Quest::GetQuestId(), GetSession(), WorldSession::SendPacket(), SF_LOG_DEBUG, and SMSG_QUESTUPDATE_COMPLETE.
Referenced by CompleteQuest().
Definition at line 2191 of file PlayerQuestState.cpp.
References ByteBuffer::FlushBits(), Object::GetGUID(), ObjectMgr::GetLocaleString(), Quest::GetQuestId(), GetSession(), WorldSession::GetSessionDbLocaleIndex(), Quest::GetTitle(), Player(), WorldSession::SendPacket(), SF_LOG_DEBUG, SMSG_QUEST_CONFIRM_ACCEPT, sObjectMgr, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), ByteBuffer::WriteByteSeq(), and ByteBuffer::WriteString().
| void Player::SendQuestFailed | ( | uint32 | questId, |
| InventoryResult | reason = EQUIP_ERR_OK ) |
Definition at line 2157 of file PlayerQuestState.cpp.
References GetSession(), WorldSession::SendPacket(), SF_LOG_DEBUG, and SMSG_QUESTGIVER_QUEST_FAILED.
Referenced by FailQuest().
Definition at line 2122 of file PlayerQuestState.cpp.
References CONFIG_MAX_PLAYER_LEVEL, ByteBuffer::FlushBits(), Quest::GetBonusTalents(), Unit::getLevel(), Quest::GetQuestId(), Quest::GetRewardSkillId(), Quest::GetRewardSkillPoints(), Quest::GetRewMoney(), Quest::GetRewMoneyMaxLevel(), GetSession(), RATE_DROP_MONEY, WorldSession::SendPacket(), SF_LOG_DEBUG, sGameEventMgr, SMSG_QUESTGIVER_QUEST_COMPLETE, sWorld, and ByteBuffer::WriteBit().
Referenced by RewardQuest().
| void Player::SendQuestTimerFailed | ( | uint32 | questId | ) |
Definition at line 2169 of file PlayerQuestState.cpp.
References GetSession(), WorldSession::SendPacket(), SF_LOG_DEBUG, and SMSG_QUESTUPDATE_FAILEDTIMER.
Referenced by FailQuest().
| void Player::SendQuestUpdateAddCredit | ( | Quest const * | quest, |
| QuestObjective const * | objective, | ||
| ObjectGuid | guid, | ||
| uint16 | oldCount, | ||
| uint16 | addCount ) |
Definition at line 2253 of file PlayerQuestState.cpp.
References QuestObjective::Amount, FindQuestSlot(), Quest::GetQuestId(), GetQuestSlotCounter(), GetSession(), QuestObjective::Index, MAX_QUEST_LOG_SIZE, QuestObjective::ObjectId, WorldSession::SendPacket(), SetQuestSlotCounter(), SF_LOG_DEBUG, SMSG_QUESTUPDATE_ADD_CREDIT, QuestObjective::Type, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by quest_commandscript::HandleQuestComplete(), ItemAddedQuestCheck(), KillCreditGO(), KilledMonsterCredit(), QuestObjectiveSatisfy(), and TalkedToCreature().
| void Player::SendQuestUpdateAddPlayer | ( | Quest const * | quest, |
| QuestObjective const * | objective, | ||
| uint16 | oldCount, | ||
| uint16 | addCount ) |
Definition at line 2274 of file PlayerQuestState.cpp.
References FindQuestSlot(), Quest::GetQuestId(), GetQuestSlotCounter(), GetSession(), QuestObjective::Index, MAX_QUEST_LOG_SIZE, WorldSession::SendPacket(), SetQuestSlotCounter(), SF_LOG_DEBUG, and SMSG_QUESTUPDATE_ADD_PVP_KILL.
Referenced by KilledPlayerCredit().
| void Player::SendRaidDifficulty | ( | int32 | forcedDifficulty = -1 | ) |
Definition at line 15496 of file Player.cpp.
References GetRaidDifficulty(), GetSession(), WorldSession::SendPacket(), and SMSG_SET_RAID_DIFFICULTY.
Referenced by Group::AddMember(), SendInitialPacketsAfterAddToMap(), and Group::SetRaidDifficulty().
| void Player::SendRaidInfo | ( | ) |
Definition at line 14008 of file Player.cpp.
References ByteBuffer::append(), ByteBuffer::bitwpos(), ByteBuffer::FlushBits(), GetBoundInstances(), InstanceSave::GetDifficulty(), InstanceSave::GetInstanceId(), WorldObject::GetInstanceScript(), InstanceSave::GetMapId(), InstanceSave::GetResetTime(), GetSession(), ByteBuffer::PutBits(), WorldSession::SendPacket(), sMapMgr, SMSG_RAID_INSTANCE_INFO, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
|
private |
Definition at line 22163 of file Player.cpp.
References CURRENCY_FLAG_HIGH_PRECISION, CURRENCY_PRECISION, CurrencyTypesEntry::Flags, ByteBuffer::FlushBits(), Object::GetGUID(), Object::GetGUIDLow(), Item::GetPaidExtendedCost(), Item::GetPaidMoney(), Item::GetPlayedTime(), Item::GetRefundRecipient(), GetSession(), GetTotalPlayedTime(), Object::HasFlag(), ITEM_EXT_COST_CURRENCY_REQ_IS_SEASON_EARNED_1, ITEM_FIELD_DYNAMIC_FLAGS, ITEM_FLAG_REFUNDABLE, MAX_ITEM_EXT_COST_CURRENCIES, MAX_ITEM_EXT_COST_ITEMS, ItemExtendedCostEntry::RequiredCurrency, ItemExtendedCostEntry::RequiredCurrencyCount, ItemExtendedCostEntry::RequiredItem, ItemExtendedCostEntry::RequiredItemCount, ItemExtendedCostEntry::RequirementFlags, sCurrencyTypesStore, WorldSession::SendPacket(), Item::SetNotRefundable(), SF_LOG_DEBUG, sItemExtendedCostStore, SMSG_SET_ITEM_PURCHASE_DATA, Item::UpdatePlayedTime(), ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
Referenced by WorldSession::HandleItemRefundInfoRequest(), and SwapItem().
| void Player::SendRemoveControlBar | ( | ) |
Definition at line 16204 of file Player.cpp.
References ByteBuffer::FlushBits(), GetSession(), WorldSession::SendPacket(), SMSG_PET_SPELLS_MESSAGE, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), and ByteBuffer::WriteByteSeq().
Referenced by Unit::RemoveCharmedBy().
| void Player::SendResearchHistory | ( | ) |
Definition at line 23652 of file Player.cpp.
References _researchHistory, ByteBuffer::FlushBits(), GetSession(), WorldSession::SendPacket(), SMSG_RESEARCH_SETUP_HISTORY, and ByteBuffer::WriteBits().
| void Player::SendResetFailedNotify | ( | uint32 | mapid | ) |
Definition at line 15503 of file Player.cpp.
References GetSession(), WorldSession::SendPacket(), and SMSG_RESET_FAILED_NOTIFY.
Definition at line 15567 of file Player.cpp.
References ByteBuffer::FlushBits(), GetSession(), WorldSession::SendPacket(), SMSG_INSTANCE_RESET_FAILED, and ByteBuffer::WriteBits().
Referenced by Group::ResetInstances().
| void Player::SendResetInstanceSuccess | ( | uint32 | MapId | ) |
Definition at line 15560 of file Player.cpp.
References GetSession(), WorldSession::SendPacket(), and SMSG_INSTANCE_RESET.
Referenced by Group::ResetInstances(), and ResetInstances().
| void Player::SendRespondInspectAchievements | ( | Player * | player | ) | const |
Definition at line 21003 of file Player.cpp.
References m_achievementMgr, and Player().
Referenced by WorldSession::HandleQueryInspectAchievements().
| void Player::SendSavedInstances | ( | ) |
Definition at line 14059 of file Player.cpp.
References GetSession(), WorldPacket::Initialize(), m_boundInstances, WorldSession::SendPacket(), SMSG_UPDATE_INSTANCE_OWNERSHIP, and SMSG_UPDATE_LAST_INSTANCE.
Referenced by TeleportTo().
| void Player::SendSellResponse | ( | SellResult | msg, |
| ObjectGuid | VendorGUID, | ||
| ObjectGuid | ItemGUID ) |
Definition at line 10749 of file Player.cpp.
References GetSession(), WorldSession::SendPacket(), SF_LOG_DEBUG, SMSG_SELL_RESPONSE, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by debug_commandscript::HandleDebugSendSellErrorCommand().
Definition at line 17658 of file Player.cpp.
References ByteBuffer::FlushBits(), Object::GetGUID(), SendDirectMessage(), SMSG_SPELL_COOLDOWN, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by Spell::EffectHealBattlePetPct().
| void Player::SendSpellCooldowns | ( | ) |
Definition at line 17678 of file Player.cpp.
References ByteBuffer::FlushBits(), Object::GetGUID(), IN_MILLISECONDS, m_spellCooldowns, SendDirectMessage(), SMSG_SPELL_COOLDOWN, sSpellMgr, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by SendInitialSpells().
| void Player::SendSurveyCastInfo | ( | ResearchDigsite * | digsite, |
| bool | success ) |
Definition at line 23304 of file Player.cpp.
References ResearchDigsiteInfo::branchId, ByteBuffer::FlushBits(), ResearchDigsite::GetDigsiteInfo(), ResearchDigsite::GetRemainingFindCount(), GetSession(), MAX_FINDS_PER_DIGSITE, WorldSession::SendPacket(), SMSG_ARCHAEOLOGY_SURVERY_CAST, and ByteBuffer::WriteBit().
Referenced by spell_archaeology_survey::spell_archaeology_survey_SpellScript::HandleSummon(), and OnArchaeologyFindUsed().
| void Player::SendTalentsInfoData | ( | ) |
Definition at line 21306 of file Player.cpp.
References BuildPlayerTalentsInfoData(), GetSession(), WorldSession::SendPacket(), and SMSG_UPDATE_TALENT_DATA.
Referenced by Spell::EffectApplyGlyph(), learn_commandscript::HandleLearnCommand(), WorldSession::HandlePlayerLogin(), reset_commandscript::HandleResetTalentsCommand(), learn_commandscript::HandleUnLearnCommand(), InitTalentForLevel(), RemoveTalent(), LuaPlayer::ResetTalents(), SendInitialPacketsBeforeAddToMap(), and UpdateSpecCount().
| void Player::SendTalentWipeConfirm | ( | ObjectGuid | guid, |
| bool | resetType ) |
Definition at line 10409 of file Player.cpp.
References CONFIG_NO_RESET_TALENT_COST, GetNextResetSpecializationCost(), GetNextResetTalentsCost(), GetSession(), WorldSession::SendPacket(), SMSG_RESPEC_WIPE_CONFIRM, sWorld, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by WorldSession::HandleRespecWipeConfirmOpcode(), and OnGossipSelect().
|
protected |
Definition at line 21961 of file Player.cpp.
References Object::GetGUIDLow(), getMSTime(), WorldObject::GetName(), GetSession(), Unit::m_movementCounter, m_timeSyncQueue, m_timeSyncServer, m_timeSyncTimer, WorldSession::SendPacket(), SF_LOG_ERROR, and SMSG_TIME_SYNC_REQUEST.
Referenced by SendInitialPacketsAfterAddToMap(), and Update().
| void Player::SendTransferAborted | ( | uint32 | mapid, |
| TransferAbortReason | reason, | ||
| uint8 | arg = 0 ) |
Definition at line 18715 of file Player.cpp.
References ByteBuffer::FlushBits(), GetSession(), WorldSession::SendPacket(), SMSG_TRANSFER_ABORTED, ByteBuffer::WriteBit(), and ByteBuffer::WriteBits().
Referenced by InstanceMap::CanEnter(), MapManager::CanPlayerEnter(), Satisfy(), and TeleportTo().
| void Player::SendUpdateToOutOfRangeGroupMembers | ( | ) |
Definition at line 18702 of file Player.cpp.
References GetGroup(), GetPet(), GROUP_UPDATE_FLAG_NONE, m_auraRaidUpdateMask, and m_groupUpdateMask.
Referenced by Update().
Definition at line 9734 of file Player.cpp.
References GetSession(), WorldSession::SendPacket(), SMSG_UPDATE_WORLD_STATE, and ByteBuffer::WriteBit().
Referenced by debug_commandscript::HandleDebugUpdateWorldStateCommand(), BfCapturePoint::HandlePlayerEnter(), OPvPCapturePoint::HandlePlayerEnter(), OPvPCapturePointHP::HandlePlayerEnter(), OPvPCapturePointNA::HandlePlayerEnter(), OPvPCapturePointTF::HandlePlayerEnter(), OPvPCapturePointZM_Beacon::HandlePlayerEnter(), BfCapturePoint::HandlePlayerLeave(), OPvPCapturePoint::HandlePlayerLeave(), OPvPCapturePointHP::HandlePlayerLeave(), OPvPCapturePointNA::HandlePlayerLeave(), OPvPCapturePointTF::HandlePlayerLeave(), OPvPCapturePointZM_Beacon::HandlePlayerLeave(), SendBattlefieldWorldStates(), SendBGWeekendWorldStates(), OutdoorPvPHP::SendRemoveWorldStates(), OutdoorPvPNA::SendRemoveWorldStates(), OutdoorPvPSI::SendRemoveWorldStates(), OutdoorPvPTF::SendRemoveWorldStates(), OutdoorPvPZM::SendRemoveWorldStates(), and GameEventMgr::SendWorldStateUpdate().
|
inline |
Definition at line 1365 of file Player.h.
References m_ExtraFlags, and PLAYER_EXTRA_ACCEPT_WHISPERS.
Referenced by message_commandscript::HandleWhispersCommand(), LoadFromDB(), Player(), LuaPlayer::SetAcceptWhispers(), SetGMVisible(), and Whisper().
|
inline |
Definition at line 2078 of file Player.h.
References _talentMgr.
Referenced by ActivateSpec(), InitTalentForLevel(), and LoadFromDB().
|
inline |
Definition at line 2880 of file Player.h.
References m_atLoginFlags.
Referenced by character_commandscript::HandleCharacterChangeFactionCommand(), character_commandscript::HandleCharacterChangeRaceCommand(), character_commandscript::HandleCharacterCustomizeCommand(), character_commandscript::HandleCharacterRenameCommand(), WorldSession::HandleCharCreateCallback(), LoadFromDB(), and LuaPlayer::SetAtLoginFlag().
|
inline |
Definition at line 3001 of file Player.h.
References m_auraRaidUpdateMask.
|
inline |
Definition at line 1556 of file Player.h.
References PLAYER_FIELD_REST_STATE, and Object::SetByteValue().
|
inline |
Definition at line 2630 of file Player.h.
References m_auraBaseMod.
Referenced by UpdateAllCritPercentages().
| void Player::SetBattlegroundEntryPoint | ( | ) |
Definition at line 17930 of file Player.cpp.
References Unit::GetAuraEffectsByType(), WorldObject::GetMap(), WorldLocation::GetMapId(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetTeam(), Unit::IsMounted(), m_bgData, m_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, m_taxi, MAPID_INVALID, SF_LOG_ERROR, sObjectMgr, SPELL_AURA_MOUNTED, and WorldLocation::WorldLocation().
Referenced by misc_commandscript::HandleAppearCommand(), misc_commandscript::HandleSummonCommand(), and lfg::LFGMgr::TeleportPlayer().
| void Player::SetBattlegroundId | ( | uint32 | val, |
| BattlegroundTypeId | bgTypeId ) |
Definition at line 19254 of file Player.cpp.
References m_bgData.
Referenced by misc_commandscript::HandleAppearCommand(), misc_commandscript::HandleSummonCommand(), and Battleground::RemovePlayerAtLeave().
Definition at line 20119 of file Player.cpp.
References GetGroup(), GetSubGroup(), m_group, and SetOriginalGroup().
Referenced by Group::AddMember(), Battlefield::AddOrSetPlayerToCorrectBfGroup(), and Battleground::AddOrSetPlayerToCorrectBgGroup().
| void Player::SetBGTeam | ( | uint32 | team | ) |
Definition at line 17973 of file Player.cpp.
References ALLIANCE, m_bgData, PLAYER_FIELD_ARENA_FACTION, and Object::SetByteValue().
Referenced by Battleground::RemovePlayerAtLeave().
| void Player::SetBindPoint | ( | uint64 | guid | ) |
Definition at line 10383 of file Player.cpp.
References ByteBuffer::FlushBits(), GetSession(), WorldSession::SendPacket(), SMSG_BINDER_CONFIRM, ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
Referenced by OnGossipSelect().
| void Player::SetCanBlock | ( | bool | value | ) |
Definition at line 20245 of file Player.cpp.
References m_canBlock, and UpdateBlockPercentage().
|
inlineprivate |
Definition at line 3541 of file Player.h.
References m_bCanDelayTeleport.
Referenced by RewardQuest(), and Update().
| void Player::SetCanDodge | ( | bool | value | ) |
Definition at line 20227 of file Player.cpp.
References m_canDodge, and UpdateDodgePercentage().
| void Player::SetCanParry | ( | bool | value | ) |
Definition at line 20236 of file Player.cpp.
References m_canParry, and UpdateParryPercentage().
|
inline |
|
inline |
Definition at line 3126 of file Player.h.
References m_ChampioningFaction.
Referenced by AuraEffect::HandleAuraDummy().
|
inline |
Definition at line 3134 of file Player.h.
References m_ChampioningType.
Referenced by AuraEffect::HandleAuraDummy().
|
inline |
Definition at line 2218 of file Player.h.
References m_cinematic.
Referenced by WorldSession::HandleCharCreateCallback(), and WorldSession::HandlePlayerLogin().
Definition at line 19853 of file Player.cpp.
References Object::GetGUID(), GetSession(), WorldSession::SendPacket(), SetMover(), SMSG_CLIENT_CONTROL_UPDATE, Unit::Unit(), ByteBuffer::WriteBit(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by Battleground::BlockMovement(), Unit::RemoveCharmedBy(), Unit::SetCharmedBy(), Unit::SetConfused(), Unit::SetFeared(), and LuaPlayer::SetPlayerLock().
|
inline |
|
inline |
Definition at line 1415 of file Player.h.
References _activeCheats.
Referenced by cheat_commandscript::HandleCasttimeCheatCommand(), cheat_commandscript::HandleCoolDownCheatCommand(), cheat_commandscript::HandleGodModeCheatCommand(), cheat_commandscript::HandlePowerCheatCommand(), and cheat_commandscript::HandleWaterWalkCheatCommand().
|
inline |
Definition at line 1411 of file Player.h.
References _activeCheats.
Referenced by cheat_commandscript::HandleCasttimeCheatCommand(), cheat_commandscript::HandleCoolDownCheatCommand(), cheat_commandscript::HandleGodModeCheatCommand(), cheat_commandscript::HandlePowerCheatCommand(), and cheat_commandscript::HandleWaterWalkCheatCommand().
|
inline |
Definition at line 2246 of file Player.h.
References m_contestedPvPTimer.
Referenced by Unit::SetContestedPvP().
initialize currency count for custom initialization at create character
Definition at line 7842 of file Player.cpp.
References _currencyStorage, PLAYERCURRENCY_NEW, PlayerCurrency::Quantity, and PlayerCurrency::state.
Referenced by Create().
Definition at line 3087 of file Player.h.
References m_runes.
Referenced by ConvertRune(), and InitRunes().
| void Player::SetDailyQuestStatus | ( | uint32 | quest_id | ) |
Definition at line 19122 of file Player.cpp.
References m_DailyQuestChanged, m_DFQuests, m_lastDailyQuestTime, PLAYER_MAX_DAILY_QUESTS, and sObjectMgr.
Referenced by RewardQuest().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 1747 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_CONDITION_NO_DEATH, ACHIEVEMENT_CRITERIA_TYPE_BG_OBJECTIVE_CAPTURE, ACHIEVEMENT_CRITERIA_TYPE_DEATH, ACHIEVEMENT_CRITERIA_TYPE_DEATH_AT_MAP, ACHIEVEMENT_CRITERIA_TYPE_DEATH_IN_DUNGEON, ACHIEVEMENT_CRITERIA_TYPE_GET_KILLING_BLOWS, ACHIEVEMENT_CRITERIA_TYPE_HONORABLE_KILL, ClearComboPoints(), ClearResurrectRequestData(), Object::GetGUIDLow(), WorldObject::GetName(), GetResurrectionSpellId(), Object::GetUInt32Value(), Unit::IsAlive(), JUST_DIED, PET_SAVE_NOT_IN_SLOT, PLAYER_FIELD_SELF_RES_SPELL, RemovePet(), ResetAchievementCriteria(), Unit::setDeathState(), SetDrunkValue(), Object::SetUInt32Value(), SF_LOG_ERROR, and UpdateAchievementCriteria().
Referenced by KillPlayer(), and ResurrectPlayer().
|
inlineprivate |
Definition at line 3549 of file Player.h.
References m_bHasDelayedTeleport.
Referenced by TeleportTo().
|
inline |
Definition at line 1842 of file Player.h.
References m_divider.
Referenced by WorldSession::HandlePushQuestToParty(), and WorldSession::HandleQuestgiverAcceptQuestOpcode().
Definition at line 1357 of file Player.cpp.
References GetDrunkenstateByValue(), GetDrunkValue(), Object::GetObjectGUID(), GetSession(), Unit::GetTotalAuraModifier(), Unit::HasAuraType(), INVISIBILITY_DRUNK, m_drunkTimer, WorldObject::m_invisibilityDetect, PLAYER_FIELD_ARENA_FACTION, WorldSession::SendCrossedInebriationThreshold(), Object::SetByteValue(), SPELL_AURA_MOD_FAKE_INEBRIATE, and UpdateObjectVisibility().
Referenced by Spell::EffectInebriate(), HandleSobering(), LoadFromDB(), setDeathState(), and LuaPlayer::SetDrunkValue().
|
inline |
Definition at line 2317 of file Player.h.
References m_dungeonDifficulty.
Referenced by _LoadGroup(), Group::AddMember(), misc_commandscript::HandleAppearCommand(), LoadFromDB(), and Group::SetDungeonDifficulty().
| void Player::SetEquipmentSet | ( | uint32 | index, |
| EquipmentSet const & | eqset ) |
Definition at line 21433 of file Player.cpp.
References EQUIPMENT_SET_CHANGED, EQUIPMENT_SET_NEW, WorldObject::GetName(), GetSession(), EquipmentSet::Guid, m_EquipmentSets, WorldSession::SendPacket(), SF_LOG_ERROR, SMSG_EQUIPMENT_SET_ID, sObjectMgr, EquipmentSet::state, UI64FMTD, ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
| void Player::setFactionForRace | ( | uint8 | race | ) |
Definition at line 7090 of file Player.cpp.
References ChrRacesEntry::FactionID, m_team, sChrRacesStore, Unit::setFaction(), and TeamForRace().
Referenced by Create(), reset_commandscript::HandleResetStatsOrLevelHelper(), misc_commandscript::HandleUnFreezeCommand(), LoadFromDB(), Unit::RestoreFaction(), LuaPlayer::SetFactionForRace(), and SetGameMaster().
| void Player::SetFallInformation | ( | uint32 | time, |
| float | z ) |
Definition at line 20943 of file Player.cpp.
References m_lastFallTime, and m_lastFallZ.
Referenced by Unit::_ExitVehicle(), AuraEffect::HandleAuraFeatherFall(), WorldSession::HandleMoveSplineDoneOpcode(), LoadFromDB(), TeleportTo(), and UpdateFallInformationIfNeed().
|
inline |
Definition at line 2514 of file Player.h.
References m_forcedTeleportFar, and SetSemaphoreTeleportForcedFar().
Referenced by lfg::LFGMgr::TeleportPlayer().
|
inline |
Definition at line 2135 of file Player.h.
References PLAYER_FIELD_CHARACTER_POINTS, and Object::SetUInt32Value().
Referenced by addSpell(), InitPrimaryProfessions(), and removeSpell().
| void Player::SetGameMaster | ( | bool | on | ) |
Definition at line 2944 of file Player.cpp.
References Unit::CombatStopWithPets(), Unit::getFaction(), Unit::getHostileRefManager(), GetPet(), Unit::getRace(), GetSession(), m_areaUpdateId, m_ExtraFlags, WorldObject::m_serverSideVisibilityDetect, PHASEMASK_ANYWHERE, PLAYER_EXTRA_GM_ON, PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FLAGS_GM, Object::RemoveByteFlag(), Object::RemoveFlag(), ResetContestedPvP(), SEC_PLAYER, SERVERSIDE_VISIBILITY_GM, Object::SetByteFlag(), Unit::setFaction(), setFactionForRace(), Object::SetFlag(), HostileRefManager::setOnlineOfflineState(), Unit::SetPhaseMask(), sWorld, UNIT_BYTE2_FLAG_FFA_PVP, UNIT_FIELD_FLAGS2, UNIT_FIELD_SHAPESHIFT_FORM, UNIT_FLAG2_ALLOW_CHEAT_SPELLS, UpdateArea(), and UpdateObjectVisibility().
Referenced by gm_commandscript::HandleGMCommand(), LoadFromDB(), LuaPlayer::SetGameMaster(), and SetGMVisible().
Definition at line 20404 of file Player.cpp.
References _talentMgr, GetActiveSpec(), PLAYER_FIELD_GLYPHS, and Object::SetUInt32Value().
Referenced by _LoadGlyphAuras(), ActivateSpec(), and Spell::EffectApplyGlyph().
Definition at line 2103 of file Player.h.
References PLAYER_FIELD_GLYPH_SLOTS, and Object::SetUInt32Value().
Referenced by InitGlyphsForLevel().
|
inline |
Definition at line 1378 of file Player.h.
References m_ExtraFlags, and PLAYER_EXTRA_GM_CHAT.
Referenced by LoadFromDB(), and LuaPlayer::SetGMChat().
| void Player::SetGMVisible | ( | bool | on | ) |
Definition at line 2995 of file Player.cpp.
References GetSession(), m_ExtraFlags, WorldObject::m_serverSideVisibility, PLAYER_EXTRA_GM_INVISIBLE, SEC_PLAYER, SERVERSIDE_VISIBILITY_GM, SetAcceptWhispers(), and SetGameMaster().
Referenced by gm_commandscript::HandleGMVisibleCommand(), LoadFromDB(), and LuaPlayer::SetGMVisible().
|
inline |
Definition at line 2550 of file Player.h.
References m_grantableLevels.
Referenced by WorldSession::HandleAcceptGrantLevel().
Definition at line 18506 of file Player.cpp.
References ASSERT, m_group, and UpdateObjectVisibility().
Referenced by _LoadGroup(), Group::AddMember(), Group::Disband(), and Group::RemoveMember().
|
inline |
Definition at line 2968 of file Player.h.
References m_groupInvite.
Referenced by Group::AddInvite(), Group::AddMember(), Player(), and Group::RemoveInvite().
|
inline |
Definition at line 2993 of file Player.h.
References m_groupUpdateMask.
Referenced by Group::AddMember(), Pet::LoadPetFromDB(), RemovePet(), Unit::SetHealth(), Unit::SetLevel(), Unit::SetMaxHealth(), Unit::SetMaxPower(), Unit::SetPower(), Unit::setPowerType(), Unit::UpdateAuraForGroup(), UpdatePosition(), and UpdateZone().
|
inline |
Definition at line 2287 of file Player.h.
References m_GuildIdInvited.
Referenced by Guild::AddMember(), WorldSession::HandleGuildDeclineOpcode(), and Guild::HandleInviteMember().
|
inline |
Definition at line 2279 of file Player.h.
References PLAYER_FIELD_GUILD_LEVEL, and Object::SetUInt32Value().
Referenced by Guild::AddMember(), Create(), Guild::DeleteMember(), and WorldSession::HandlePlayerLogin().
| void Player::SetHomebind | ( | WorldLocation const & | loc, |
| uint32 | areaId ) |
Definition at line 12141 of file Player.cpp.
References CHAR_UPD_PLAYER_HOMEBIND, CharacterDatabase, Object::GetGUIDLow(), WorldLocation::GetMapId(), Position::GetPosition(), m_homebindAreaId, m_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, PreparedStatement::setFloat(), PreparedStatement::setUInt16(), PreparedStatement::setUInt32(), and WorldLocation::WorldLocation().
Referenced by Spell::EffectBind(), and LuaPlayer::SetBindPoint().
|
inline |
Definition at line 1851 of file Player.h.
References m_ingametime.
Referenced by WorldSession::HandlePlayerLogin().
| void Player::SetInGuild | ( | uint32 | guildId | ) |
Definition at line 8009 of file Player.cpp.
References Object::ApplyModFlag(), CONFIG_GUILD_LEVELING_ENABLED, HIGHGUID_GUILD, MAKE_NEW_GUID(), OBJECT_FIELD_DATA, OBJECT_FIELD_TYPE, PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FLAGS_GUILD_LEVEL_ENABLED, Object::SetUInt16Value(), Object::SetUInt64Value(), and sWorld.
Referenced by Guild::AddMember(), Guild::DeleteMember(), WorldSession::HandleGuildDeclineOpcode(), and WorldSession::HandlePlayerLogin().
| void Player::SetInviteForBattlegroundQueueType | ( | BattlegroundQueueTypeId | bgQueueTypeId, |
| uint32 | instanceId ) |
Definition at line 19295 of file Player.cpp.
References m_bgBattlegroundQueueID, and PLAYER_MAX_BATTLEGROUND_QUEUES.
Referenced by BattlegroundQueue::InviteGroupToBG(), and LoadFromDB().
| void Player::SetInWater | ( | bool | apply | ) |
Definition at line 2926 of file Player.cpp.
References AURA_INTERRUPT_FLAG_NOT_ABOVEWATER, AURA_INTERRUPT_FLAG_NOT_UNDERWATER, Unit::getHostileRefManager(), m_isInWater, Unit::RemoveAurasWithInterruptFlags(), and HostileRefManager::updateThreatTables().
Referenced by WorldSession::HandleMovementOpcodes().
|
inline |
Definition at line 2299 of file Player.h.
References m_lastGuildInviterGUID.
Referenced by WorldSession::HandleGuildDeclineOpcode(), and Guild::HandleInviteMember().
|
inline |
Definition at line 2955 of file Player.h.
References m_lastpetnumber.
Referenced by Pet::LoadPetFromDB().
|
inline |
Definition at line 2190 of file Player.h.
References m_lastPotionId.
Referenced by Spell::SendSpellCooldown().
|
inline |
|
inline |
Definition at line 2397 of file Player.h.
References m_lootGuid.
Referenced by WorldSession::DoLootRelease(), and SendLoot().
| void Player::SetLootSpecialization | ( | uint32 | specialization | ) |
Definition at line 23886 of file Player.cpp.
References GetLootSpecialization(), PLAYER_FIELD_LOOT_SPEC_ID, and Object::SetUInt32Value().
Referenced by WorldSession::HandleSetLootSpecialization().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 21655 of file Player.cpp.
References m_mapRef, and WorldObject::SetMap().
Referenced by Map::AddPlayerToMap(), Create(), WorldSession::HandleMoveWorldportAckOpcode(), and LoadFromDB().
| void Player::SetMoney | ( | uint64 | value | ) |
Definition at line 18373 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_GOLD_VALUE_OWNED, MoneyChanged(), PLAYER_FIELD_COINAGE, Object::SetUInt64Value(), and UpdateAchievementCriteria().
Referenced by modify_commandscript::HandleModifyMoneyCommand(), LoadFromDB(), ModifyMoney(), and LuaPlayer::SetCoinage().
| void Player::SetMonthlyQuestStatus | ( | uint32 | quest_id | ) |
Definition at line 19164 of file Player.cpp.
References m_MonthlyQuestChanged, and m_monthlyquests.
Referenced by RewardQuest().
| void Player::SetMover | ( | Unit * | target | ) |
Definition at line 19869 of file Player.cpp.
References Object::GetGUID(), m_mover, SendDirectMessage(), SMSG_MOVE_SET_ACTIVE_MOVER, Unit::Unit(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by Unit::RemoveCharmedBy(), SendInitialPacketsBeforeAddToMap(), Unit::SetCharmedBy(), and SetClientControl().
|
overridevirtual |
Reimplemented from Object.
Definition at line 2470 of file Player.cpp.
References DEFAULT_COMBAT_REACH, DEFAULT_WORLD_OBJECT_SIZE, GetCollisionHeight(), Object::IsInWorld(), Unit::IsMounted(), SendMovementSetCollisionHeight(), Object::SetFloatValue(), Object::SetObjectScale(), UNIT_FIELD_BOUNDING_RADIUS, and UNIT_FIELD_COMBAT_REACH.
Referenced by Create(), InitStatsForLevel(), and LoadFromDB().
Definition at line 20141 of file Player.cpp.
References ASSERT, and m_originalGroup.
Referenced by Group::AddMember(), Group::Disband(), RemoveFromBattlegroundOrBattlefieldRaid(), Group::RemoveMember(), and SetBattlegroundOrBattlefieldRaid().
|
inline |
Definition at line 3029 of file Player.h.
References m_bPassOnGroupLoot.
Referenced by WorldSession::HandleOptOutOfLootOpcode().
Definition at line 14002 of file Player.cpp.
References _pendingBindId, and _pendingBindTimer.
Referenced by InstanceMap::AddPlayerToMap(), Player(), and Update().
| void Player::SetPvP | ( | bool | state | ) |
Definition at line 17477 of file Player.cpp.
References Unit::m_Controlled, and Unit::SetPvP().
Referenced by UpdatePvP().
|
inline |
Definition at line 1395 of file Player.h.
References m_ExtraFlags, and PLAYER_EXTRA_PVP_DEATH.
Referenced by CreateCorpse(), and LuaPlayer::SetPvPDeath().
Definition at line 1529 of file PlayerQuestState.cpp.
References MAX_QUEST_OFFSET, PLAYER_FIELD_QUEST_LOG, QUEST_COUNTS_OFFSET, QUEST_ID_OFFSET, QUEST_STATE_OFFSET, QUEST_TIME_OFFSET, and Object::SetUInt32Value().
Referenced by _LoadQuestStatus(), AddQuest(), Spell::EffectQuestClear(), quest_commandscript::HandleQuestRemove(), and RewardQuest().
Definition at line 1537 of file PlayerQuestState.cpp.
References Object::GetUInt64Value(), MAX_QUEST_OFFSET, PLAYER_FIELD_QUEST_LOG, QUEST_COUNTS_OFFSET, and Object::SetUInt64Value().
Referenced by _LoadQuestObjectiveStatus(), SendQuestUpdateAddCredit(), and SendQuestUpdateAddPlayer().
Definition at line 1545 of file PlayerQuestState.cpp.
References MAX_QUEST_OFFSET, PLAYER_FIELD_QUEST_LOG, QUEST_STATE_OFFSET, and Object::SetFlag().
Referenced by _LoadQuestStatus(), CompleteQuest(), and FailQuest().
Definition at line 1555 of file PlayerQuestState.cpp.
References MAX_QUEST_OFFSET, PLAYER_FIELD_QUEST_LOG, QUEST_TIME_OFFSET, and Object::SetUInt32Value().
Referenced by FailQuest().
| void Player::SetQuestStatus | ( | uint32 | quest_id, |
| QuestStatus | status ) |
Definition at line 1402 of file PlayerQuestState.cpp.
References Unit::CastSpell(), WorldObject::GetZoneAndAreaId(), Unit::HasAura(), m_QuestStatus, m_QuestStatusSave, Unit::RemoveAurasDueToSpell(), sObjectMgr, sSpellMgr, UpdateForQuestWorldObjects(), and UpdatePhasing().
Referenced by CompleteQuest(), FailQuest(), IncompleteQuest(), and LuaPlayer::SetQuestStatus().
|
inline |
Definition at line 2318 of file Player.h.
References m_raidDifficulty.
Referenced by _LoadGroup(), Group::AddMember(), misc_commandscript::HandleAppearCommand(), LoadFromDB(), and Group::SetRaidDifficulty().
| void Player::SetRandomWinner | ( | bool | isWinner | ) |
Definition at line 22407 of file Player.cpp.
References CHAR_INS_BATTLEGROUND_RANDOM, CharacterDatabase, Object::GetGUIDLow(), m_IsBGRandomWinner, and PreparedStatement::setUInt32().
Referenced by Battleground::EndBattleground().
|
inline |
Definition at line 2271 of file Player.h.
References PLAYER_FIELD_GUILD_RANK_ID, and Object::SetUInt32Value().
Referenced by Guild::AddMember(), Guild::DeleteMember(), WorldSession::HandlePlayerLogin(), and LuaPlayer::SetGuildRank().
|
inline |
Definition at line 3007 of file Player.h.
References _readyCheckTimer.
Referenced by WorldSession::HandleRaidReadyCheckConfirmOpcode(), and WorldSession::HandleRaidReadyCheckOpcode().
|
inline |
Definition at line 1936 of file Player.h.
References m_regenTimerCount.
Referenced by AuraEffect::HandleAuraTransform().
| void Player::SetRegularAttackTime | ( | ) |
Definition at line 6094 of file Player.cpp.
References BASE_ATTACK_TIME, ItemTemplate::Delay, Item::GetTemplate(), GetWeaponForAttack(), Item::IsBroken(), MAX_ATTACK, and Unit::SetAttackTime().
Referenced by InitDataForForm().
Definition at line 21977 of file Player.cpp.
References GetReputationMgr(), ReputationMgr::SetReputation(), and sFactionStore.
| void Player::SetRestBonus | ( | float | rest_bonus_new | ) |
Definition at line 16519 of file Player.cpp.
References CONFIG_MAX_PLAYER_LEVEL, Unit::getLevel(), GetSession(), Object::GetUInt32Value(), m_rest_bonus, PLAYER_FIELD_NEXT_LEVEL_XP, PLAYER_FIELD_REST_STATE, PLAYER_FIELD_REST_STATE_BONUS_POOL, REST_STATE_NOT_RAF_LINKED, REST_STATE_RAF_LINKED, REST_STATE_RESTED, Object::SetByteValue(), Object::SetUInt32Value(), and sWorld.
Referenced by GetXPRestBonus(), LoadFromDB(), LuaPlayer::SetRestBonus(), and Update().
|
inline |
Definition at line 2784 of file Player.h.
References m_restTime.
Referenced by LuaPlayer::SetRestTime().
|
inline |
Definition at line 1444 of file Player.h.
References rest_type.
Referenced by WorldSession::HandleAreaTriggerOpcode(), UpdateRestAreaState(), and UpdateZone().
| void Player::SetResurrectRequestData | ( | Unit * | caster, |
| uint32 | health, | ||
| uint32 | mana, | ||
| uint32 | appliedAura ) |
Definition at line 17760 of file Player.cpp.
References _resurrectionData, ASSERT, Object::GetGUID(), IsRessurectRequested(), and Unit::Unit().
Referenced by Spell::EffectResurrect(), Spell::EffectResurrectNew(), and Spell::EffectResurrectWithAura().
| void Player::SetRuneConvertAura | ( | uint8 | index, |
| AuraEffect const * | aura ) |
Definition at line 20542 of file Player.cpp.
References m_runes.
Referenced by AddRuneByAuraEffect(), InitRunes(), RemoveRunesByAuraEffect(), and RestoreBaseRune().
Definition at line 20536 of file Player.cpp.
References m_runes.
Referenced by Spell::EffectActivateRune(), InitRunes(), RegenerateAll(), and Spell::TakeRunePower().
|
inline |
Definition at line 2831 of file Player.h.
References m_nextSave.
| void Player::SetSeasonalQuestStatus | ( | uint32 | quest_id | ) |
Definition at line 19154 of file Player.cpp.
References m_SeasonalQuestChanged, m_seasonalquests, sGameEventMgr, and sObjectMgr.
Referenced by RewardQuest().
|
inline |
Definition at line 2818 of file Player.h.
References m_seer, and WorldObject::WorldObject().
|
inline |
Used for serverside target changes, does not apply to players.
Definition at line 1976 of file Player.h.
References Object::SetUInt64Value(), and UNIT_FIELD_TARGET.
Referenced by TeleportTo().
|
inline |
Definition at line 2509 of file Player.h.
References mSemaphoreTeleport_Far.
Referenced by WorldSession::HandleMoveWorldportAckOpcode(), and TeleportTo().
|
inline |
Definition at line 2521 of file Player.h.
References m_forcedTeleportFarSemaphore.
Referenced by WorldSession::HandleMoveWorldportAckOpcode(), SetForcedTeleportFar(), and lfg::LFGMgr::TeleportPlayer().
|
inline |
Definition at line 2505 of file Player.h.
References mSemaphoreTeleport_Near.
Referenced by WorldSession::HandleMoveTeleportAck(), and TeleportTo().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 10471 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(), and LuaPlayer::SetSheath().
Definition at line 6377 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILL_LEVEL, ACHIEVEMENT_CRITERIA_TYPE_REACH_SKILL_LEVEL, AURA_EFFECT_HANDLE_SKILL, SkillLineEntry::categoryId, Unit::GetAuraEffectsByType(), GetSession(), Object::GetUInt16Value(), Object::GetUInt32Value(), Object::IsInWorld(), learnSkillRewardedSpells(), mSkillStatus, PLAYER_FIELD_PROFESSION_SKILL_LINE, PLAYER_FIELD_SKILL_LINEIDS, PLAYER_FIELD_SKILL_MAX_RANKS, PLAYER_FIELD_SKILL_MODIFIERS, PLAYER_FIELD_SKILL_RANKS, PLAYER_FIELD_SKILL_STEPS, PLAYER_FIELD_SKILL_TALENTS, PLAYER_MAX_SKILLS, WorldSession::PlayerLoading(), removeSpell(), Object::SetUInt16Value(), Object::SetUInt32Value(), SF_LOG_ERROR, SKILL_ARCHAEOLOGY, SKILL_CATEGORY_PROFESSION, SKILL_CHANGED, SKILL_DELETED, SKILL_NEW, SPELL_AURA_MOD_SKILL, SPELL_AURA_MOD_SKILL_TALENT, sSkillLineAbilityStore, sSkillLineStore, sSpellMgr, UpdateAchievementCriteria(), UpdateForQuestWorldObjects(), UpdateResearchDigsites(), UpdateResearchProjects(), UpdateSkillEnchantments(), and WorldSession.
Referenced by _LoadSkills(), addSpell(), learn_commandscript::HandleLearnAllRecipesCommand(), misc_commandscript::HandleSetSkillCommand(), WorldSession::HandleUnlearnSkillOpcode(), removeSpell(), and LuaPlayer::SetSkill().
|
inline |
Definition at line 2070 of file Player.h.
References _talentMgr.
|
inline |
Definition at line 2072 of file Player.h.
References _talentMgr.
|
inline |
Definition at line 2080 of file Player.h.
References _talentMgr.
Referenced by InitTalentForLevel(), LoadFromDB(), and UpdateSpecCount().
| void Player::SetSpellModTakingSpell | ( | Spell * | spell, |
| bool | apply ) |
Definition at line 16426 of file Player.cpp.
References Spell::getState(), m_spellModTakingSpell, and SPELL_STATE_FINISHED.
Referenced by Aura::UpdateOwner().
| void Player::SetSummonPoint | ( | uint32 | mapid, |
| float | x, | ||
| float | y, | ||
| float | z ) |
Definition at line 19456 of file Player.cpp.
References m_summon_expire, m_summon_mapid, m_summon_x, m_summon_y, m_summon_z, and MAX_PLAYER_SUMMON_DELAY.
Referenced by LuaPlayer::SummonPlayer().
|
inline |
Definition at line 2068 of file Player.h.
References _talentMgr.
Referenced by LoadFromDB(), and ResetTalents().
|
inline |
Definition at line 2074 of file Player.h.
References _talentMgr.
Referenced by LoadFromDB(), and ResetTalents().
Definition at line 2076 of file Player.h.
References _talentMgr.
Referenced by LoadFromDB(), and ResetTalents().
|
inlinevirtual |
|
inline |
Definition at line 1386 of file Player.h.
References m_ExtraFlags, and PLAYER_EXTRA_TAXICHEAT.
Referenced by WorldSession::HandlePlayerLogin(), cheat_commandscript::HandleTaxiCheatCommand(), WorldSession::SendTaxiMenu(), and LuaPlayer::SetTaxiCheat().
|
inline |
Definition at line 2897 of file Player.h.
References m_temporaryUnsummonedPetNumber.
Referenced by Pet::LoadPetFromDB().
| void Player::SetTitle | ( | CharTitlesEntry const * | title, |
| bool | lost = false ) |
Definition at line 20434 of file Player.cpp.
References CharTitlesEntry::bit_index, GetSession(), Object::HasFlag(), PLAYER_FIELD_KNOWN_TITLES, Object::RemoveFlag(), WorldSession::SendTitleEarned(), WorldSession::SendTitleLost(), and Object::SetFlag().
Referenced by _LoadQuestStatusRewarded(), titles_commandscript::HandleTitlesAddCommand(), titles_commandscript::HandleTitlesCurrentCommand(), titles_commandscript::HandleTitlesRemoveCommand(), RewardQuest(), LuaPlayer::SetKnownTitle(), and LuaPlayer::UnsetKnownTitle().
Definition at line 15421 of file Player.cpp.
References Tokenizer::size().
|
inline |
Definition at line 2066 of file Player.h.
References _talentMgr.
Referenced by ActivateSpec(), addSpell(), and removeSpell().
| void Player::SetViewpoint | ( | WorldObject * | target, |
| bool | apply ) |
Definition at line 20275 of file Player.cpp.
References Object::AddUInt64Value(), Object::GetEntry(), Object::GetGUID(), WorldObject::GetName(), Object::GetTypeId(), Unit::GetVehicle(), Object::isType(), m_seer, PLAYER_FIELD_FARSIGHT_OBJECT, Object::RemoveUInt64Value(), SF_LOG_DEBUG, SF_LOG_FATAL, TYPEMASK_UNIT, Unit::Unit(), UpdateVisibilityOf(), and WorldObject::WorldObject().
Referenced by AuraEffect::HandleBindSight(), Unit::RemoveCharmedBy(), RemoveFromWorld(), and Unit::SetCharmedBy().
Definition at line 10451 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 2173 of file PlayerStorage.cpp.
References Item::GetEnchantmentId(), Item::GetVisibleEntry(), PERM_ENCHANTMENT_SLOT, PLAYER_FIELD_VISIBLE_ITEMS, Object::SetUInt16Value(), Object::SetUInt32Value(), and TEMP_ENCHANTMENT_SLOT.
Referenced by DestroyItem(), WorldSession::HandleTransmogrifyItems(), LoadFromDB(), RemoveItem(), and VisualizeItem().
|
inline |
Definition at line 1940 of file Player.h.
References m_weaponChangeTimer.
| void Player::SetWeeklyQuestStatus | ( | uint32 | quest_id | ) |
Definition at line 19148 of file Player.cpp.
References m_WeeklyQuestChanged, and m_weeklyquests.
Referenced by RewardQuest().
| void Player::ShowNeutralPlayerFactionSelectUI | ( | ) |
Definition at line 19884 of file Player.cpp.
References GetSession(), WorldSession::SendPacket(), and SMSG_SHOW_NEURTRAL_PLAYER_FACTION_SELECT_UI.
Referenced by npc_Spirit_of_Master_Shang_Xi::OnGossipSelect().
| void Player::SolveResearchProject | ( | Spell * | spell | ) |
Definition at line 23668 of file Player.cpp.
References _researchHistory, _researchProjects, ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_ARCHAEOLOGY_PROJECTS, DestroyItemCount(), ResearchProjectHistory::firstResearchTimestamp, SpellResearchData::fragmentCount, SpellResearchData::fragmentCurrencyId, GetSession(), Spell::GetSpellInfo(), SpellResearchData::keystoneCount, SpellResearchData::keystoneItemId, Spell::m_researchData, ModifyCurrency(), ResearchProjectEntry::RequiredFragmentCount, ResearchProjectEntry::ResearchBranchId, ResearchProjectHistory::researchCount, SpellInfo::ResearchProject, WorldSession::SendPacket(), SMSG_RESEARCH_COMPLETE, sResearchBranchStore, sResearchProjectStore, UpdateAchievementCriteria(), and UpdateResearchProjects().
| void Player::SpawnCorpseBones | ( | ) |
Definition at line 5378 of file Player.cpp.
References Object::GetGUID(), GetSession(), SaveToDB(), and sObjectAccessor.
Referenced by MapManager::CanPlayerEnter(), CreateCorpse(), Spell::EffectSelfResurrect(), Battleground::EndBattleground(), WorldSession::HandleMoveWorldportAckOpcode(), WorldSession::HandleReclaimCorpseOpcode(), misc_commandscript::HandleReviveCommand(), ProcessDelayedOperations(), Battleground::RemovePlayerAtLeave(), RepopAtGraveyard(), ResurectUsingRequestData(), LuaPlayer::ResurrectPlayer(), and LuaPlayer::SpawnBones().
If trading
If current item is in trade window (only possible with packet spoofing - silent return)
Definition at line 2707 of file PlayerStorage.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(), GetItemByPos(), GetTradeData(), IsBankPos(), IsEquipmentPos(), IsInventoryPos(), Object::IsInWorld(), ITEM_CHANGED, Item::m_lootGenerated, SendEquipError(), Object::SendUpdateToPlayer(), Item::SetCount(), Item::SetState(), SF_LOG_DEBUG, StoreItem(), and TRADE_SLOT_INVALID.
| void Player::StartTimedAchievement | ( | AchievementCriteriaTimedTypes | type, |
| uint32 | entry, | ||
| uint32 | timeLost = 0 ) |
Definition at line 21018 of file Player.cpp.
References m_achievementMgr.
Referenced by AddQuest(), BattlegroundTP::EventPlayerClickedOnFlag(), BattlegroundWS::EventPlayerClickedOnFlag(), and KilledMonsterCredit().
| void Player::StopCastingBindSight | ( | ) |
Definition at line 20262 of file Player.cpp.
References Object::GetGUID(), GetViewpoint(), SPELL_AURA_BIND_SIGHT, SPELL_AURA_MOD_POSSESS, SPELL_AURA_MOD_POSSESS_PET, TYPEMASK_UNIT, Unit::Unit(), and WorldObject::WorldObject().
Referenced by ActivateTaxiPathTo(), VehicleJoinEvent::Execute(), misc_commandscript::HandleUnbindSightCommand(), RemoveFromWorld(), and Unit::SetCharmedBy().
| void Player::StopCastingCharm | ( | ) |
Definition at line 15768 of file Player.cpp.
References ASSERT, Unit::ExitVehicle(), Unit::GetCharm(), Unit::GetCharmerGUID(), Unit::GetCharmGUID(), Object::GetEntry(), Object::GetGUID(), WorldObject::GetName(), Object::GetTypeId(), Unit::HasUnitTypeMask(), Unit::IsVehicle(), Unit::RemoveCharmAuras(), Unit::SetCharm(), SF_LOG_FATAL, Object::ToCreature(), TYPEID_UNIT, UI64FMTD, Unit::Unit(), and UNIT_MASK_PUPPET.
Referenced by ActivateTaxiPathTo(), VehicleJoinEvent::Execute(), Unit::RemoveAllControlled(), RemoveFromWorld(), and Unit::SetCharmedBy().
| void Player::StopCinematic | ( | ) |
Definition at line 6909 of file Player.cpp.
References cinematicClientStartTime, cinematicSequence, cinematicStartO, cinematicStartX, cinematicStartY, cinematicStartZ, cinematicVisibilityTimer, Unit::getHostileRefManager(), GetSession(), inCinematic, Object::IsInWorld(), Unit::RemoveAura(), WorldSession::SendQuestgiverStatusMultiple(), Unit::SetFall(), HostileRefManager::setOnlineOfflineState(), UpdateObjectVisibility(), and Unit::UpdatePosition().
Referenced by WorldSession::HandleCompleteCinematic(), SendCinematicStart(), and Update().
|
protected |
Definition at line 1101 of file Player.cpp.
References DISABLED_MIRROR_TIMER, GetSession(), m_MirrorTimer, WorldSession::SendPacket(), and SMSG_STOP_MIRROR_TIMER.
Referenced by HandleDrowning(), SendMirrorTimer(), and StopMirrorTimers().
| void Player::StopMirrorTimers | ( | ) |
Definition at line 1208 of file Player.cpp.
References BREATH_TIMER, FATIGUE_TIMER, FIRE_TIMER, and StopMirrorTimer().
Referenced by BuildPlayerRepop(), AuraEffect::HandleSpiritOfRedemption(), and KillPlayer().
| Item * Player::StoreItem | ( | ItemPosCountVec const & | pos, |
| Item * | pItem, | ||
| bool | update ) |
Definition at line 1877 of file PlayerStorage.cpp.
References _StoreItem().
Referenced by _LoadInventory(), AutoUnequipOffhandIfNeed(), BankItem(), Create(), Spell::EffectSummonChangeItem(), WorldSession::HandleMailCreateTextItem(), MoveItemToInventory(), SplitItem(), StoreNewItem(), and SwapItem().
Definition at line 20681 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_LOOT_EPIC_ITEM, ACHIEVEMENT_CRITERIA_TYPE_LOOT_ITEM, ACHIEVEMENT_CRITERIA_TYPE_LOOT_TYPE, CanStoreNewItem(), CONFIG_EXPANSION, Loot::containerID, LootItem::count, Loot::DeleteLootItemFromContainerItemDB(), EQUIP_ERR_LOOT_GONE, EQUIP_ERR_OK, LootItem::freeforall, LootItem::GetAllowedLooters(), Object::GetGUID(), GetGuild(), GetLootGUID(), Loot::GetPlayerQuestItems(), GUILD_NEWS_ITEM_LOOTED, QuestItem::index, LootItem::is_blocked, LootItem::is_looted, QuestItem::is_looted, ITEM_QUALITY_EPIC, LootItem::itemid, Loot::loot_type, Loot::LootItemInSlot(), MinNewsItemLevel, Loot::NotifyItemRemoved(), Loot::NotifyQuestItemRemoved(), NULL_BAG, NULL_SLOT, LootItem::randomPropertyId, SendEquipError(), SendLootRelease(), SendNewItem(), SendNotifyLootItemRemoved(), sObjectMgr, StoreNewItem(), sWorld, Loot::unlootedCount, and UpdateAchievementCriteria().
Referenced by Loot::FillNotNormalLootFor(), and WorldSession::HandleAutostoreLootItemOpcode().
| Item * Player::StoreNewItem | ( | ItemPosCountVec const & | pos, |
| uint32 | item, | ||
| bool | update, | ||
| int32 | randomPropertyId = 0, | ||
| AllowedLooterSet const & | allowedLooters = AllowedLooterSet() ) |
Definition at line 1839 of file PlayerStorage.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM, ACHIEVEMENT_CRITERIA_TYPE_RECEIVE_EPIC_ITEM, AddTradeableItem(), CHAR_INS_ITEM_BOP_TRADE, CharacterDatabase, Item::CreateItem(), Object::GetGUIDLow(), ItemTemplate::GetMaxStackSize(), Item::GetTemplate(), GetTotalPlayedTime(), Item::IsSoulBound(), ITEM_FIELD_CREATE_PLAYED_TIME, ItemAddedQuestCheck(), Item::SetItemRandomProperties(), Item::SetSoulboundTradeable(), PreparedStatement::setString(), PreparedStatement::setUInt32(), Object::SetUInt32Value(), StoreItem(), and UpdateAchievementCriteria().
Referenced by _StoreOrEquipNewItem(), LuaPlayer::AddItem(), AddItem(), AutoStoreLoot(), Group::CountTheRoll(), Spell::DoCreateItem(), GiveQuestSourceItem(), misc_commandscript::HandleAddItemCommand(), misc_commandscript::HandleAddItemSetCommand(), AuraEffect::HandleChannelDeathItem(), OPvPCapturePointNA::HandleCustomSpell(), WorldSession::HandleLootMasterGiveOpcode(), quest_commandscript::HandleQuestComplete(), WorldSession::HandleVoidStorageTransfer(), RefundItem(), RemovePet(), RewardQuest(), npc_aquementas::npc_aquementasAI::SendItem(), StoreLootItem(), and StoreNewItemInBestSlots().
Definition at line 1170 of file PlayerStorage.cpp.
References AutoUnequipOffhandIfNeed(), CanEquipNewItem(), CanStoreNewItem(), EQUIP_ERR_OK, EquipNewItem(), Item::GenerateItemRandomPropertyId(), Unit::getClass(), Unit::getRace(), INVENTORY_SLOT_BAG_0, NULL_SLOT, SF_LOG_DEBUG, SF_LOG_ERROR, and StoreNewItem().
Referenced by Create().
| void Player::SummonIfPossible | ( | bool | agree | ) |
Definition at line 19465 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_ACCEPTED_SUMMONINGS, CleanupAfterTaxiFlight(), GetBattleground(), Unit::GetMotionMaster(), Position::GetOrientation(), Unit::IsInFlight(), m_summon_expire, m_summon_mapid, m_summon_x, m_summon_y, m_summon_z, MotionMaster::MovementExpired(), TeleportTo(), and UpdateAchievementCriteria().
| Pet * Player::SummonPet | ( | uint32 | entry, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | ang, | ||
| PetType | petType, | ||
| uint32 | despwtime ) |
Definition at line 22668 of file Player.cpp.
References Map::AddToMap(), CLASS_MAGE, Pet::Create(), Unit::GetCharmInfo(), Object::GetEntry(), Unit::getFaction(), Object::GetGUID(), Object::GetGUIDLow(), Unit::getLevel(), WorldObject::GetMap(), Unit::GetMaxPower(), WorldObject::GetPhases(), Position::GetPositionX(), Position::GetPositionY(), HIGHGUID_PET, Pet::InitPetCreateSpells(), Guardian::InitStatsForLevel(), Pet::InitTalentForLevel(), Position::IsPositionValid(), Pet::LoadPetFromDB(), PET_SAVE_AS_CURRENT, PetSpellInitialize(), POWER_MANA, Position::Relocate(), Pet::SavePetToDB(), Unit::SetClass(), Unit::SetCreatorGUID(), Pet::SetDuration(), Unit::SetFullHealth(), Unit::SetMinion(), CharmInfo::SetPetNumber(), Unit::SetPhased(), Unit::SetPower(), Unit::setPowerType(), Object::SetUInt32Value(), SF_LOG_ERROR, sObjectMgr, SUMMON_PET, Object::ToCreature(), UNIT_FIELD_ANIM_TIER, UNIT_FIELD_FACTION_TEMPLATE, UNIT_FIELD_NPC_FLAGS, UNIT_FIELD_PET_EXPERIENCE, UNIT_FIELD_PET_NAME_TIMESTAMP, and UNIT_FIELD_PET_NEXT_LEVEL_EXPERIENCE.
Referenced by Spell::EffectSummonDeadPet(), Spell::EffectSummonPet(), and LuaPlayer::SummonPet().
Definition at line 2822 of file PlayerStorage.cpp.
References AutoUnequipOffhandIfNeed(), BankItem(), CanBankItem(), CanEquipItem(), CanStoreItem(), CanUnequipItem(), EQUIP_ERR_BAG_IN_BAG, EQUIP_ERR_CANT_SWAP, EQUIP_ERR_CLIENT_LOCKED_OUT, EQUIP_ERR_OK, EQUIP_ERR_PLAYER_DEAD, EquipItem(), Bag::GetBagSize(), Item::GetCount(), Object::GetEntry(), Bag::GetItemByPos(), GetItemByPos(), GetLootGUID(), ItemTemplate::GetMaxStackSize(), Item::GetTemplate(), Unit::IsAlive(), Item::IsBag(), IsBagPos(), IsBankPos(), Bag::IsEmpty(), IsEquipmentPos(), IsInventoryPos(), Object::IsInWorld(), ITEM_CHANGED, ItemAddedQuestCheck(), ItemCanGoIntoBag(), ItemRemovedQuestCheck(), Item::m_lootGenerated, m_session, Bag::RemoveItem(), RemoveItem(), SendEquipError(), SendRefundInfo(), Object::SendUpdateToPlayer(), Item::SetCount(), Item::SetState(), SF_LOG_DEBUG, Bag::StoreItem(), StoreItem(), and Item::ToBag().
Referenced by WorldSession::HandleAutoEquipItemSlotOpcode(), and misc_commandscript::HandleItemMoveCommand().
Definition at line 1560 of file PlayerQuestState.cpp.
References Object::GetUInt32Value(), MAX_QUEST_OFFSET, PLAYER_FIELD_QUEST_LOG, and Object::SetUInt32Value().
Referenced by WorldSession::HandleQuestLogSwapQuest().
Definition at line 22554 of file Player.cpp.
References _voidStorageItems, and VOID_STORAGE_MAX_SLOT.
Referenced by WorldSession::HandleVoidSwapItem().
| bool Player::TakeQuestSourceItem | ( | uint32 | questId, |
| bool | msg ) |
Definition at line 1323 of file PlayerQuestState.cpp.
References CanUnequipItems(), DestroyItemCount(), EQUIP_ERR_OK, Quest::GetQuestObjectiveCountType(), Quest::GetSrcItemId(), Quest::m_questObjectives, QUEST_OBJECTIVE_TYPE_ITEM, QUEST_SOURCE_ITEM_COUNT, SendEquipError(), sObjectMgr, and ItemTemplate::StartQuest.
Referenced by Spell::EffectQuestClear(), and quest_commandscript::HandleQuestRemove().
Definition at line 1869 of file PlayerQuestState.cpp.
References QuestObjective::Amount, CanCompleteQuest(), CompleteQuest(), GetQuestObjectiveCounter(), GetQuestSlotQuestId(), QuestObjective::Id, Quest::m_questObjectives, m_questObjectiveStatus, m_questObjectiveStatusSave, m_QuestStatus, m_QuestStatusSave, MAX_QUEST_LOG_SIZE, QuestObjective::ObjectId, QUEST_OBJECTIVE_TYPE_NPC_INTERACT, QUEST_STATUS_INCOMPLETE, SendQuestUpdateAddCredit(), sObjectMgr, QuestStatusData::Status, and QuestObjective::Type.
Referenced by LuaPlayer::TalkedToCreature().
Definition at line 7072 of file Player.cpp.
References ALLIANCE, HORDE, PANDAREN_NEUTRAL, sChrRacesStore, and SF_LOG_ERROR.
Referenced by Unit::GetModelForForm(), ObjectMgr::GetPlayerTeamByGUID(), WorldSession::HandleAddFriendOpcodeCallBack(), WorldSession::HandleCalendarEventInvite(), WorldSession::HandleCharCreateCallback(), WorldSession::HandleCharCreateOpcode(), PlayerTaxi::InitTaxiNodes(), PlayerTaxi::InitTaxiNodesForRace(), AchievementMgr< Guild >::LoadFromDB(), and setFactionForRace().
| bool Player::TeleportTo | ( | uint32 | mapid, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | orientation, | ||
| uint32 | options = 0 ) |
Definition at line 2090 of file Player.cpp.
References 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(), Unit::ExitVehicle(), MapEntry::Expansion(), GetBattleground(), GetBattlePetMgr(), Unit::getClass(), Unit::GetGameObject(), Object::GetGUIDLow(), WorldObject::GetMap(), WorldLocation::GetMapId(), WorldObject::GetName(), Position::GetOrientation(), GetPet(), Position::GetPosition(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetSession(), WorldObject::GetTransport(), Object::GetUInt64Value(), Unit::GetUnitMovementFlags(), WorldObject::GetVisibilityRange(), HasSpell(), InBattleground(), Unit::InterruptNonMeleeSpells(), MapEntry::IsBattleArena(), MapEntry::IsBattlegroundOrArena(), IsCanDelayTeleport(), DisableMgr::IsDisabledFor(), IsForcedTeleportFar(), IsGameMaster(), IsHasDelayedTeleport(), Object::IsInWorld(), Unit::IsNonMeleeSpellCasted(), MapManager::IsValidMapCoord(), WorldObject::IsWithinDist3d(), LeaveBattleground(), WorldObject::m_movementInfo, m_teleport_dest, m_teleport_options, WorldObject::m_transport, Unit::m_vehicle, MOVEMENTFLAG_MASK_HAS_PLAYER_STATUS_OPCODE, PLAYER_FIELD_DUEL_ARBITER, rbac::RBAC_PERM_SKIP_CHECK_DISABLE_MAP, Position::Relocate(), Unit::RemoveAllDynObjects(), Unit::RemoveArenaAuras(), RemoveArenaSpellCooldowns(), Unit::RemoveAurasWithInterruptFlags(), Map::RemovePlayerFromMap(), RepopAtGraveyard(), ResetContestedPvP(), WorldSession::SendPacket(), SendSavedInstances(), Unit::SendTeleportPacket(), SendTransferAborted(), SetDelayedTeleportFlag(), SetFallInformation(), SetSelection(), SetSemaphoreTeleportFar(), SetSemaphoreTeleportNear(), Unit::SetUnitMovementFlags(), SF_LOG_DEBUG, SF_LOG_ERROR, sMapMgr, sMapStore, SMSG_NEW_WORLD, SMSG_TRANSFER_PENDING, TELE_TO_NOT_LEAVE_COMBAT, TELE_TO_NOT_LEAVE_TRANSPORT, TELE_TO_NOT_UNSUMMON_PET, TELE_TO_SPELL, TRANSFER_ABORT_INSUF_EXPAN_LVL, TRANSFER_ABORT_MAP_NOT_ALLOWED, BattlePetMgr::UnSummonCurrentBattlePet(), UnsummonPetTemporaryIfAny(), WorldLocation::WorldLocation(), and ByteBuffer::WriteBit().
Referenced by ActivateTaxiPathTo(), BattlegroundSA::AddPlayer(), BattlegroundIC::DoAction(), Spell::EffectStuck(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), go_commandscript::HandleGoCreatureCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoObjectCommand(), go_commandscript::HandleGoTaxinodeCommand(), go_commandscript::HandleGoTriggerCommand(), go_commandscript::HandleGoXYZCommand(), go_commandscript::HandleGoZoneXYCommand(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleMoveSplineDoneOpcode(), WorldSession::HandleMoveWorldportAckOpcode(), WorldSession::HandlePlayerLogin(), misc_commandscript::HandleRecallCommand(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleCommand(), tele_commandscript::HandleTeleGroupCommand(), tele_commandscript::HandleTeleNameCommand(), misc_commandscript::HandleUnstuckCommand(), WorldSession::HandleWorldTeleportOpcode(), Unit::NearTeleportTo(), lfg::LFGPlayerScript::OnMapChanged(), BattlefieldWG::OnPlayerJoinWar(), Battleground::RelocateDeadPlayers(), BfGraveyard::RelocateDeadPlayers(), Map::RemoveAllPlayers(), RepopAtGraveyard(), ResurectUsingRequestData(), BattlegroundMgr::SendToBattleground(), SummonIfPossible(), LuaPlayer::Teleport(), lfg::LFGMgr::TeleportPlayer(), TeleportTo(), TicketInfo::TeleportTo(), TeleportToBGEntryPoint(), Transport::TeleportTransport(), Update(), and GameObject::Use().
| bool Player::TeleportTo | ( | WorldLocation const & | loc, |
| uint32 | options = 0 ) |
Definition at line 2336 of file Player.cpp.
References WorldLocation::GetMapId(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), TeleportTo(), and WorldLocation::WorldLocation().
| bool Player::TeleportToBGEntryPoint | ( | ) |
Definition at line 2341 of file Player.cpp.
References DELAYED_BG_GROUP_RESTORE, DELAYED_BG_MOUNT_RESTORE, DELAYED_BG_TAXI_RESTORE, m_bgData, MAPID_INVALID, ScheduleDelayedOperation(), and TeleportTo().
Referenced by MapInstanced::CreateInstanceForPlayer(), WorldSession::HandleAreaTriggerOpcode(), Battleground::RemovePlayerAtLeave(), and lfg::LFGMgr::TeleportPlayer().
| void Player::TextEmote | ( | std::string const & | text | ) |
Outputs an universal text which is supposed to be an action.
Definition at line 15817 of file Player.cpp.
References ChatHandler::BuildChatPacket(), CHAT_MSG_EMOTE, CONFIG_LISTEN_RANGE_TEXTEMOTE, GetSession(), LANG_UNIVERSAL, rbac::RBAC_PERM_TWO_SIDE_INTERACTION_CHAT, SendMessageToSetInRange(), sScriptMgr, and sWorld.
Referenced by WorldSession::HandleMessagechatOpcode(), LuaUnit::SendUnitEmote(), and LuaPlayer::TextEmote().
| void Player::ToggleAFK | ( | ) |
Definition at line 2060 of file Player.cpp.
References InArena(), InBattleground(), isAFK(), LeaveBattleground(), PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FLAGS_AFK, and Object::ToggleFlag().
Referenced by Battleground::AddPlayer(), Battlefield::PlayerAcceptInviteToWar(), Unit::SetCharmedBy(), and LuaPlayer::ToggleAFK().
| void Player::ToggleDND | ( | ) |
Definition at line 2069 of file Player.cpp.
References PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FLAGS_DND, and Object::ToggleFlag().
Referenced by LuaPlayer::ToggleDND().
| void Player::ToggleMetaGemsActive | ( | uint8 | exceptslot, |
| bool | apply ) |
Definition at line 17897 of file Player.cpp.
References ApplyEnchantment(), _Socket::Color, SpellItemEnchantmentEntry::EnchantmentCondition, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Item::GetEnchantmentId(), GetItemByPos(), Item::GetTemplate(), INVENTORY_SLOT_BAG_0, SOCK_ENCHANTMENT_SLOT, ItemTemplate::Socket, and sSpellItemEnchantmentStore.
| void Player::TradeCancel | ( | bool | sendback, |
| TradeStatus | status = TRADE_STATUS_CANCELLED ) |
Definition at line 10 of file PlayerTrade.cpp.
References GetSession(), m_trade, Player(), and WorldSession::SendCancelTrade().
Referenced by ActivateTaxiPathTo(), and CleanupsBeforeDelete().
| ResearchDigsite * Player::TryToSpawnResearchDigsiteOnContinent | ( | uint32 | mapId | ) |
Definition at line 23495 of file Player.cpp.
References GetRandomResearchDigsiteForContinent(), MAX_FINDS_PER_DIGSITE, SaveResearchDigsiteToDB(), and ResearchDigsite::SelectNewArchaeologyFind().
Referenced by UpdateResearchDigsites().
| void Player::UnbindInstance | ( | BoundInstancesMap::iterator & | itr, |
| DifficultyID | difficulty, | ||
| bool | unload = false ) |
Definition at line 13910 of file Player.cpp.
References CHAR_DEL_CHAR_INSTANCE_BY_INSTANCE_GUID, CharacterDatabase, Object::GetGUIDLow(), GetSession(), m_boundInstances, WorldSession::SendCalendarRaidLockout(), and PreparedStatement::setUInt32().
| void Player::UnbindInstance | ( | uint32 | mapid, |
| DifficultyID | difficulty, | ||
| bool | unload = false ) |
Definition at line 13904 of file Player.cpp.
References m_boundInstances, and UnbindInstance().
Referenced by InstanceSaveManager::_ResetSave(), ConvertInstancesToGroup(), MapInstanced::CreateInstanceForPlayer(), instance_commandscript::HandleInstanceUnbindCommand(), misc_commandscript::HandleSummonCommand(), LuaPlayer::UnbindInstance(), and UnbindInstance().
| void Player::UninviteFromGroup | ( | ) |
Definition at line 3037 of file Player.cpp.
References Group::Disband(), GetGroupInvite(), Group::GetMembersCount(), Group::IsCreated(), Group::RemoveAllInvites(), and Group::RemoveInvite().
Referenced by WorldSession::HandleGroupInviteResponseOpcode().
|
inline |
Definition at line 3179 of file Player.h.
References PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FLAGS_VOID_UNLOCKED, and Object::SetFlag().
Referenced by WorldSession::HandleVoidStorageUnlock().
| void Player::UnsummonPetTemporaryIfAny | ( | ) |
Definition at line 21113 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_FIELD_CREATED_BY_SPELL.
Referenced by Battleground::AddPlayer(), VehicleJoinEvent::Execute(), RemoveFromWorld(), and TeleportTo().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 1387 of file Player.cpp.
References _instanceResetTimes, _pendingBindId, _pendingBindTimer, _readyCheckTimer, ATTACK_DISPLAY_DELAY, Unit::AttackerStateUpdate(), ATTACKSWINGERR_BADFACING, ATTACKSWINGERR_DEADTARGET, ATTACKSWINGERR_NOTINRANGE, BASE_ATTACK, BindToInstance(), Skyfire::PetTransport::BoardOwnerHunterPet(), BuildPlayerRepop(), CheckDuelDistance(), cinematicClientStartTime, cinematicSequence, cinematicVisibilityTimer, FailQuest(), Unit::getAttackTimer(), WorldObject::GetBaseMap(), Unit::GetCharmer(), GetDrunkValue(), Object::GetGUIDLow(), WorldObject::GetInstanceId(), WorldObject::GetMap(), getMSTime(), WorldObject::GetName(), GetPet(), GetRestBonus(), GetSession(), GetTimeInnEnter(), WorldObject::GetTransport(), Object::GetUInt32Value(), Unit::GetVictim(), WorldObject::GetVisibilityRange(), WorldObject::GetZoneAndAreaId(), HandleDrowning(), HandleSobering(), Unit::HasAuraType(), Object::HasFlag(), Position::HasInArc(), HasPendingBind(), Pet::HasTransportExitGrace(), Unit::HasUnitState(), Unit::haveOffhandWeapon(), IN_MILLISECONDS, inCinematic, Unit::IsAlive(), Unit::isAttackReady(), Unit::IsCharmed(), IsHasDelayedTeleport(), Object::IsInWorld(), Unit::isPossessed(), WorldObject::IsWithinDistInMap(), Unit::IsWithinMeleeRange(), JUST_DIED, KillPlayer(), LOGIN_UPD_MUTE_TIME, LoginDatabase, m_achievementMgr, m_areaUpdateId, Unit::m_deathState, m_deathTimer, m_drunkTimer, m_Last_tick, WorldSession::m_muteTime, m_nextMailDelivereTime, m_nextSave, Unit::m_overrideAutoattackRange, Unit::m_overrideAutoattackSpellInfo, M_PI, m_Played_time, m_QuestStatus, m_QuestStatusSave, Unit::m_regenTimer, m_spellModTakingSpell, m_swingErrorMsg, m_teleport_dest, m_teleport_options, m_timedquests, m_timeSyncTimer, m_weaponChangeTimer, m_zoneUpdateId, m_zoneUpdateTimer, OFF_ATTACK, PET_SAVE_NOT_IN_SLOT, PLAYED_TIME_LEVEL, PLAYED_TIME_TOTAL, PLAYER_FIELD_NEXT_LEVEL_XP, PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FLAGS_RESTING, RATE_REST_INGAME, ReadyCheckComplete(), RegenerateAll(), RemovePet(), RepopAtGraveyard(), Unit::resetAttackTimer(), roll_chance_i(), SaveToDB(), SendAttackSwingError(), SendNewMail(), SendTimeSync(), SendUpdateToOutOfRangeGroupMembers(), Unit::setAttackTimer(), SetCanDelayTeleport(), PreparedStatement::setInt64(), SetPendingBind(), SetRestBonus(), PreparedStatement::setString(), PreparedStatement::setUInt32(), SF_LOG_DEBUG, SF_LOG_FATAL, Skyfire::PetTransport::ShouldRemovePetForOwnerRange(), Skyfire::PetTransport::ShouldTryBoardPetBeforeOwnerRangeRemoval(), SPELL_AURA_PREVENT_RESURRECTION, sScriptMgr, StopCinematic(), sWorld, TeleportTo(), QuestStatusData::Timer, TYPEID_UNIT, Unit::Unit(), UNIT_STATE_CASTING, UNIT_STATE_MELEE_ATTACKING, unReadMails, Unit::Update(), UpdateAfkReport(), UpdateArea(), UpdateCharmedAI(), UpdateCinematicVisibility(), UpdateContestedPvP(), UpdateDuelFlag(), UpdateEnchantTime(), UpdateHomebindTime(), UpdateInnerTime(), UpdateItemDuration(), UpdatePvPFlag(), UpdateRestAreaState(), UpdateSoulboundTradeItems(), UpdateZone(), and ZONE_UPDATE_INTERVAL.
Referenced by Map::Update().
| void Player::UpdateAchievementCriteria | ( | AchievementCriteriaTypes | type, |
| uint64 | miscValue1 = 0, | ||
| uint64 | miscValue2 = 0, | ||
| uint64 | miscValue3 = 0, | ||
| Unit * | unit = NULL ) |
Definition at line 21033 of file Player.cpp.
References GetGuildId(), m_achievementMgr, sAchievementMgr, sGuildMgr, Unit::Unit(), and Guild::UpdateAchievementCriteria().
Referenced by KillRewarder::_RewardKillCredit(), ActivateTaxiPathTo(), addSpell(), CheckAreaExploreAndOutdoor(), Group::CountTheRoll(), Unit::DealDamage(), DuelComplete(), Battleground::EndBattleground(), EnvironmentalDamage(), LuaPlayer::EquipItem(), EquipItem(), EquipNewItem(), lfg::LFGMgr::FinishDungeon(), GiveLevel(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleAuctionSellItem(), HandleFall(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleLootRoll(), reset_commandscript::HandleResetHonorCommand(), WorldSession::HandleSendMail(), WorldSession::HandleTextEmoteOpcode(), Unit::Kill(), KilledMonsterCredit(), ModifyCurrency(), MoveItemToInventory(), QuickEquipItem(), ResetTalents(), RewardHonor(), RewardQuest(), AuctionHouseMgr::SendAuctionSuccessfulMail(), AuctionHouseMgr::SendAuctionWonMail(), setDeathState(), SetMoney(), SetSkill(), SolveResearchProject(), StoreLootItem(), StoreNewItem(), SummonIfPossible(), BattlegroundAB::UpdatePlayerScore(), BattlegroundAV::UpdatePlayerScore(), BattlegroundBFG::UpdatePlayerScore(), BattlegroundEY::UpdatePlayerScore(), BattlegroundTP::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 15585 of file Player.cpp.
References m_bgData, and MINUTE.
Referenced by Update().
| void Player::UpdateAllCritPercentages | ( | ) |
Definition at line 532 of file StatSystem.cpp.
References BASE_ATTACK, CRIT_PERCENTAGE, GetMeleeCritFromAgility(), OFF_ATTACK, OFFHAND_CRIT_PERCENTAGE, PCT_MOD, RANGED_ATTACK, RANGED_CRIT_PERCENTAGE, SetBaseModValue(), and UpdateCritPercentage().
Referenced by UpdateAllStats(), and UpdateStats().
| void Player::UpdateAllRatings | ( | ) |
Definition at line 6088 of file Player.cpp.
References MAX_COMBAT_RATING, and UpdateRating().
Referenced by UpdateAllStats().
| void Player::UpdateAllRunesRegen | ( | ) |
Definition at line 789 of file StatSystem.cpp.
References GetRuneTypeBaseCooldown(), IN_MILLISECONDS, NUM_RUNE_TYPES, PLAYER_FIELD_RUNE_REGEN, and Object::SetFloatValue().
Referenced by ApplyRatingMod().
| void Player::UpdateAllSpellCritChances | ( | ) |
Definition at line 688 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 163 of file StatSystem.cpp.
References BASE_ATTACK, CR_ARMOR_PENETRATION, Unit::GetTotalStatValue(), MAX_POWERS, MAX_SPELL_SCHOOL, MAX_STATS, OFF_ATTACK, POWER_MANA, RecalculateRating(), Unit::SetStat(), SPELL_SCHOOL_NORMAL, STAT_STRENGTH, UpdateAllCritPercentages(), UpdateAllRatings(), UpdateAllSpellCritChances(), UpdateArmor(), UpdateAttackPowerAndDamage(), UpdateBlockPercentage(), UpdateDodgePercentage(), UpdateExpertise(), UpdateManaRegen(), UpdateMastery(), UpdateMaxHealth(), UpdateMaxPower(), UpdateParryPercentage(), UpdatePvpPower(), UpdateResistances(), and UpdateSpellDamageAndHealingBonus().
Referenced by _ApplyAllStatBonuses(), _RemoveAllStatBonuses(), GiveLevel(), and LoadFromDB().
| void Player::UpdateArea | ( | uint32 | newArea | ) |
Definition at line 8101 of file Player.cpp.
References AREA_FLAG_ARENA, Unit::CombatStopWithPets(), GetAreaEntryByAreaID(), AreaTableEntry::IsSanctuary(), m_areaUpdateId, AreaTableEntry::m_flags, pvpInfo, Object::RemoveByteFlag(), Object::SetByteFlag(), UNIT_BYTE2_FLAG_SANCTUARY, UNIT_FIELD_SHAPESHIFT_FORM, UpdateAreaDependentAuras(), WorldObject::UpdateAreaPhase(), and UpdatePvPState().
Referenced by SetGameMaster(), Update(), and UpdateZone().
| void Player::UpdateAreaDependentAuras | ( | uint32 | area_id | ) |
Definition at line 19900 of file Player.cpp.
References Unit::CastSpell(), Creature::DespawnOrUnsummon(), Object::GetEntry(), WorldLocation::GetMapId(), Position::GetPositionX(), Unit::GetVehicleBase(), Unit::GetVehicleCreatureBase(), Unit::HasAura(), Unit::m_ownedAuras, m_zoneUpdateId, Unit::RemoveOwnedAura(), SPELL_CAST_OK, and sSpellMgr.
Referenced by AddQuest(), CompleteQuest(), and UpdateArea().
|
overridevirtual |
Implements Unit.
Definition at line 220 of file StatSystem.cpp.
References BASE_PCT, BASE_VALUE, Unit::GetModifierValue(), GetPet(), Unit::SetArmor(), TOTAL_PCT, TOTAL_VALUE, UNIT_MOD_ARMOR, Guardian::UpdateArmor(), and UpdateAttackPowerAndDamage().
Referenced by UpdateAllStats(), UpdateResistances(), and UpdateStats().
| void Player::UpdateArmorPenetration | ( | int32 | amount | ) |
Definition at line 664 of file StatSystem.cpp.
References CR_ARMOR_PENETRATION, PLAYER_FIELD_COMBAT_RATINGS, and Object::SetUInt32Value().
Referenced by UpdateRating().
|
overridevirtual |
Implements Unit.
Definition at line 300 of file StatSystem.cpp.
References ChrClassesEntry::APPerAgility, ChrClassesEntry::APPerStrenth, BASE_ATTACK, BASE_PCT, BASE_VALUE, CalculatePct(), Unit::CanDualWield(), SpellShapeshiftFormEntry::flags1, Unit::getClass(), Object::GetFloatValue(), Unit::GetGuardianPet(), Object::GetInt32Value(), Unit::getLevel(), Unit::GetModifierValue(), GetPet(), Unit::GetShapeshiftForm(), Unit::GetStat(), Unit::HasAuraType(), Unit::haveOffhandWeapon(), Unit::IsHunterPet(), Minion::IsPetGhoul(), Minion::IsSpiritWolf(), MAX_SPELL_SCHOOL, OFF_ATTACK, PLAYER_FIELD_MOD_DAMAGE_DONE_POS, PLAYER_FIELD_MOD_HEALING_DONE_POS, PLAYER_FIELD_OVERRIDE_APBY_SPELL_POWER_PERCENT, RANGED_ATTACK, ChrClassesEntry::RAPPerAgility, sChrClassesStore, Object::SetFloatValue(), Object::SetInt32Value(), Unit::SetModifierValue(), SPELL_AURA_OVERRIDE_AP_BY_SPELL_POWER_PCT, SPELL_AURA_OVERRIDE_SPELL_POWER_BY_AP_PCT, SPELL_SCHOOL_HOLY, sSpellShapeshiftFormStore, STAT_AGILITY, STAT_STRENGTH, TOTAL_PCT, TOTAL_VALUE, UNIT_FIELD_ATTACK_POWER, UNIT_FIELD_ATTACK_POWER_MOD_POS, UNIT_FIELD_ATTACK_POWER_MULTIPLIER, UNIT_FIELD_RANGED_ATTACK_POWER, UNIT_FIELD_RANGED_ATTACK_POWER_MOD_POS, UNIT_FIELD_RANGED_ATTACK_POWER_MULTIPLIER, UNIT_MOD_ATTACK_POWER, UNIT_MOD_ATTACK_POWER_RANGED, Guardian::UpdateAttackPowerAndDamage(), UpdateDamagePhysical(), and UpdateSpellDamageAndHealingBonus().
Referenced by ApplySpellPowerBonus(), AuraEffect::HandleOverrideAttackPowerBySpellPower(), InitDataForForm(), UpdateAllStats(), UpdateArmor(), UpdateSpellDamageAndHealingBonus(), and UpdateStats().
| void Player::UpdateBlockPercentage | ( | ) |
Definition at line 474 of file StatSystem.cpp.
References CanBlock(), CONFIG_STATS_LIMITS_BLOCK, CONFIG_STATS_LIMITS_ENABLE, CR_BLOCK, GetRatingBonusValue(), Unit::GetTotalAuraModifier(), PLAYER_FIELD_BLOCK_PERCENTAGE, Object::SetStatFloatValue(), SPELL_AURA_MOD_BLOCK_PERCENT, and sWorld.
Referenced by AuraEffect::HandleAuraModBlockPercent(), SetCanBlock(), UpdateAllStats(), and UpdateRating().
|
private |
Definition at line 20481 of file Player.cpp.
References Unit::Attack(), Unit::DealDamage(), DIRECT_DAMAGE, Unit::GetAuraEffectsByType(), Unit::GetCharmer(), Object::GetGUID(), Unit::GetHealth(), Unit::GetMotionMaster(), Unit::GetVictim(), Unit::IsInCombat(), Creature::IsInEvadeMode(), Unit::IsValidAttackTarget(), MotionMaster::MoveChase(), MotionMaster::MoveFollow(), PET_FOLLOW_ANGLE, PET_FOLLOW_DIST, Creature::SelectNearestTarget(), SPELL_AURA_MOD_CHARM, SPELL_SCHOOL_MASK_NORMAL, Object::ToCreature(), and Unit::Unit().
Referenced by Update().
| void Player::UpdateCinematicVisibility | ( | ) |
Definition at line 6949 of file Player.cpp.
References GetCinematicPosition(), WorldObject::GetMap(), WorldObject::GetSightRange(), Skyfire::VisibleNotifier::SendToSelf(), and Map::VisitAll().
Referenced by Update().
|
protected |
Updates weekly conquest point cap (dynamic cap).
Definition at line 7989 of file Player.cpp.
References CURRENCY_FLAG_HIGH_PRECISION, CURRENCY_TYPE_CONQUEST_POINTS, CurrencyTypesEntry::Flags, GetCurrencyWeekCap(), GetSession(), sCurrencyTypesStore, WorldSession::SendPacket(), and SMSG_UPDATE_CURRENCY_WEEK_LIMIT.
| void Player::UpdateContestedPvP | ( | uint32 | currTime | ) |
Definition at line 15594 of file Player.cpp.
References Unit::IsInCombat(), m_contestedPvPTimer, and ResetContestedPvP().
Referenced by Update().
| void Player::UpdateCorpseReclaimDelay | ( | ) |
Definition at line 19949 of file Player.cpp.
References CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVE, CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVP, DEATH_EXPIRE_STEP, m_deathExpireTime, m_ExtraFlags, MAX_DEATH_COUNT, PLAYER_EXTRA_PVP_DEATH, and sWorld.
Referenced by KillPlayer().
| bool Player::UpdateCraftSkill | ( | uint32 | spellid | ) |
Definition at line 6162 of file Player.cpp.
References CONFIG_SKILL_GAIN_CRAFTING, GetPureSkillValue(), GetSkillDiscoverySpell(), learnSpell(), SpellInfo::Mechanic, MECHANIC_DISCOVERY, SF_LOG_DEBUG, SkillGainChance(), sSpellMgr, sWorld, and UpdateSkillPro().
Referenced by Spell::DoCreateItem(), Spell::EffectEnchantItemPerm(), and spell_gen_profession_research::spell_gen_profession_research_SpellScript::HandleScript().
| void Player::UpdateCritPercentage | ( | WeaponAttackType | attType | ) |
Definition at line 495 of file StatSystem.cpp.
References BASE_ATTACK, CONFIG_STATS_LIMITS_CRIT, CONFIG_STATS_LIMITS_ENABLE, CR_CRIT_MELEE, CR_CRIT_RANGED, CRIT_PERCENTAGE, Unit::GetMaxSkillValueForLevel(), GetRatingBonusValue(), GetTotalPercentageModValue(), OFF_ATTACK, OFFHAND_CRIT_PERCENTAGE, PLAYER_FIELD_CRIT_PERCENTAGE, PLAYER_FIELD_OFFHAND_CRIT_PERCENTAGE, PLAYER_FIELD_RANGED_CRIT_PERCENTAGE, RANGED_ATTACK, RANGED_CRIT_PERCENTAGE, Object::SetStatFloatValue(), and sWorld.
Referenced by HandleBaseModValue(), UpdateAllCritPercentages(), and UpdateRating().
|
overridevirtual |
Implements Unit.
Definition at line 449 of file StatSystem.cpp.
References BASE_ATTACK, CalculateMinMaxDamage(), OFF_ATTACK, RANGED_ATTACK, Object::SetStatFloatValue(), UNIT_FIELD_MAX_DAMAGE, UNIT_FIELD_MAX_OFF_HAND_DAMAGE, UNIT_FIELD_MAX_RANGED_DAMAGE, UNIT_FIELD_MIN_DAMAGE, UNIT_FIELD_MIN_OFF_HAND_DAMAGE, and UNIT_FIELD_MIN_RANGED_DAMAGE.
Referenced by _ApplyWeaponDamage(), and UpdateAttackPowerAndDamage().
| void Player::UpdateDodgePercentage | ( | ) |
Definition at line 607 of file StatSystem.cpp.
References CONFIG_STATS_LIMITS_DODGE, CONFIG_STATS_LIMITS_ENABLE, CR_DODGE, Unit::getClass(), GetDodgeFromAgility(), GetRatingBonusValue(), Unit::GetTotalAuraModifier(), m_diminishing_k, MAX_CLASSES, PLAYER_FIELD_DODGE_PERCENTAGE, Object::SetStatFloatValue(), SPELL_AURA_MOD_DODGE_PERCENT, and sWorld.
Referenced by AuraEffect::HandleAuraModDodgePercent(), SetCanDodge(), UpdateAllStats(), UpdateRating(), and UpdateStats().
| void Player::UpdateDuelFlag | ( | time_t | currTime | ) |
Definition at line 15624 of file Player.cpp.
References duel, PLAYER_FIELD_DUEL_TEAM, Object::SetUInt32Value(), and sScriptMgr.
Referenced by Update().
| void Player::UpdateEnchantTime | ( | uint32 | time | ) |
Definition at line 10794 of file Player.cpp.
References ApplyEnchantment(), ASSERT, and m_enchantDuration.
Referenced by Update().
| void Player::UpdateEquipSpellsAtFormChange | ( | ) |
Definition at line 8884 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 694 of file StatSystem.cpp.
References BASE_ATTACK, CR_EXPERTISE, Unit::GetAuraEffectsByType(), GetRatingBonusValue(), GetWeaponForAttack(), Item::IsFitToSpellRequirements(), OFF_ATTACK, PLAYER_FIELD_MAINHAND_EXPERTISE, PLAYER_FIELD_OFFHAND_EXPERTISE, PLAYER_FIELD_RANGED_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 21107 of file Player.cpp.
References MovementInfo::JumpInfo::fallTime, Position::GetPositionZ(), MovementInfo::jump, m_lastFallTime, m_lastFallZ, MSG_MOVE_FALL_LAND, MovementInfo::pos, and SetFallInformation().
Referenced by WorldSession::HandleMovementOpcodes().
| bool Player::UpdateFishingSkill | ( | ) |
Definition at line 6221 of file Player.cpp.
References CONFIG_SKILL_GAIN_GATHERING, GetPureSkillValue(), SF_LOG_DEBUG, SKILL_FISHING, sWorld, and UpdateSkillPro().
Referenced by GameObject::Use().
| void Player::UpdateForQuestWorldObjects | ( | ) |
Definition at line 19410 of file Player.cpp.
References UpdateData::BuildPacket(), Object::BuildValuesUpdateBlockForPlayer(), HashMapHolder< T >::Find(), Vehicle::GetCreatureEntry(), ObjectAccessor::GetCreatureOrPetOrVehicle(), Object::GetEntry(), WorldLocation::GetMapId(), GetSession(), Unit::GetVehicleKit(), UpdateData::HasData(), Object::HasFlag(), IS_CRE_OR_VEH_GUID(), IS_GAMEOBJECT_GUID(), m_clientGUIDs, Object::RemoveFieldNotifyFlag(), WorldSession::SendPacket(), Object::SetFieldNotifyFlag(), sObjectMgr, UF_FLAG_PUBLIC, UF_FLAG_VIEWER_DEPENDENT, UNIT_FIELD_NPC_FLAGS, and UNIT_NPC_FLAG_SPELLCLICK.
Referenced by Group::AddMember(), AddQuest(), CompleteQuest(), Group::Disband(), ItemAddedQuestCheck(), ItemRemovedQuestCheck(), learnSpell(), Group::RemoveMember(), SetQuestStatus(), and SetSkill().
| bool Player::UpdateGatherSkill | ( | uint32 | SkillId, |
| uint32 | SkillValue, | ||
| uint32 | RedLevel, | ||
| uint32 | Multiplicator = 1 ) |
Definition at line 6194 of file Player.cpp.
References CONFIG_SKILL_CHANCE_MINING_STEPS, CONFIG_SKILL_CHANCE_SKINNING_STEPS, CONFIG_SKILL_GAIN_GATHERING, SF_LOG_DEBUG, SKILL_HERBALISM, SKILL_INSCRIPTION, SKILL_JEWELCRAFTING, SKILL_MINING, SKILL_SKINNING, SkillGainChance(), sWorld, and UpdateSkillPro().
Referenced by Spell::EffectMilling(), Spell::EffectOpenLock(), and Spell::EffectProspecting().
| void Player::UpdateHomebindTime | ( | uint32 | time | ) |
Definition at line 17402 of file Player.cpp.
References Object::GetGUIDLow(), WorldObject::GetName(), GetSession(), IsGameMaster(), m_HomebindTimer, m_InstanceValid, RepopAtGraveyard(), WorldSession::SendPacket(), SF_LOG_DEBUG, and SMSG_RAID_GROUP_ONLY.
Referenced by Update().
| void Player::UpdateHonorFields | ( | ) |
called when rewarding honor and at each save
Definition at line 7285 of file Player.cpp.
References DAY, Object::GetUInt32Value(), m_lastHonorUpdateTime, MAKE_PAIR32(), PAIR32_LOPART(), PLAYER_FIELD_YESTERDAY_HONORABLE_KILLS, and Object::SetUInt32Value().
Referenced by honor_commandscript::HandleHonorUpdateCommand(), LoadFromDB(), RewardHonor(), and SaveToDB().
|
inline |
| void Player::UpdateItemDuration | ( | uint32 | time, |
| bool | realtimeonly = false ) |
Definition at line 10777 of file Player.cpp.
References ItemTemplate::FlagsCu, Item::GetTemplate(), ITEM_FLAGS_CU_DURATION_REAL_TIME, m_itemDuration, SF_LOG_DEBUG, and Item::UpdateDuration().
Referenced by LoadFromDB(), and Update().
| void Player::UpdateLocalChannels | ( | uint32 | newZone | ) |
Definition at line 5672 of file Player.cpp.
References CanJoinConstantChannelInZone(), CHANNEL_DBC_FLAG_CITY_ONLY, CHANNEL_DBC_FLAG_GLOBAL, ChannelMgr::forTeam(), GetAreaEntryByAreaID(), ChannelMgr::GetJoinChannel(), Channel::GetName(), GetSession(), GetTeam(), IsBeingTeleportedFar(), Channel::JoinChannel(), LANG_CHANNEL_CITY, Channel::LeaveChannel(), ChannelMgr::LeftChannel(), LeftChannel(), AreaTableEntry::m_AreaName, m_channels, sChatChannelsStore, and sObjectMgr.
Referenced by UpdateZone().
| void Player::UpdateManaRegen | ( | ) |
Definition at line 734 of file StatSystem.cpp.
References CalculatePct(), Unit::GetMaxPower(), Unit::GetTotalAuraModifier(), Unit::GetTotalAuraModifierByMiscValue(), Unit::GetTotalAuraMultiplierByMiscValue(), OCTRegenMPPerSpirit(), POWER_MANA, Object::SetStatFloatValue(), SPELL_AURA_MOD_MANA_REGEN_INTERRUPT, SPELL_AURA_MOD_POWER_REGEN, SPELL_AURA_MOD_POWER_REGEN_PERCENT, UNIT_FIELD_POWER_REGEN_FLAT_MODIFIER, and UNIT_FIELD_POWER_REGEN_INTERRUPTED_FLAT_MODIFIER.
Referenced by ApplyManaRegenBonus(), AuraEffect::HandleAuraModRegenInterrupt(), AuraEffect::HandleModPowerRegen(), UpdateAllStats(), and UpdateStats().
| void Player::UpdateMastery | ( | ) |
Definition at line 545 of file StatSystem.cpp.
References CR_MASTERY, GetRatingBonusValue(), Unit::GetTotalAuraModifier(), PLAYER_FIELD_MASTERY, Object::SetFloatValue(), and SPELL_AURA_MASTERY.
Referenced by AuraEffect::HandleAuraMastery(), UpdateAllStats(), and UpdateRating().
|
overridevirtual |
Implements Unit.
Definition at line 274 of file StatSystem.cpp.
References BASE_PCT, BASE_VALUE, Unit::GetCreateHealth(), GetHealthBonusFromStamina(), Unit::GetModifierValue(), Unit::SetMaxHealth(), TOTAL_PCT, TOTAL_VALUE, and UNIT_MOD_HEALTH.
Referenced by Create(), UpdateAllStats(), and UpdateStats().
|
overridevirtual |
Implements Unit.
Definition at line 286 of file StatSystem.cpp.
References BASE_PCT, BASE_VALUE, Unit::GetCreatePowers(), GetManaSpecializationMultiplier(), Unit::GetModifierValue(), POWER_MANA, Unit::SetMaxPower(), TOTAL_PCT, TOTAL_VALUE, and UNIT_MOD_POWER_START.
Referenced by Create(), UpdateAllStats(), and UpdateTalentSpecializationManaBonus().
| void Player::UpdateMeleeHitChances | ( | ) |
Definition at line 670 of file StatSystem.cpp.
References CR_HIT_MELEE, GetRatingBonusValue(), Unit::GetTotalAuraModifier(), Unit::m_modMeleeHitChance, and SPELL_AURA_MOD_HIT_CHANCE.
Referenced by AuraEffect::HandleModHitChance(), and UpdateRating().
| void Player::UpdateMirrorTimers | ( | ) |
Definition at line 1201 of file Player.cpp.
References m_MirrorTimerFlags, and m_MirrorTimerFlagsLast.
Referenced by AuraEffect::HandleWaterBreathing().
| void Player::UpdateNextMailTimeAndUnreads | ( | ) |
Definition at line 46 of file PlayerMail.cpp.
References m_mail, m_nextMailDelivereTime, MAIL_CHECK_MASK_READ, and unReadMails.
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 18318 of file Player.cpp.
References WorldObject::AddToNotify(), NOTIFY_VISIBILITY_CHANGED, Unit::UpdateObjectVisibility(), and UpdateVisibilityForPlayer().
Referenced by Map::AddPlayerToMap(), AddQuest(), spell_ulduar_squeezed_lifeless::spell_ulduar_squeezed_lifeless_SpellScript::HandleInstaKill(), KillPlayer(), Map::PlayerRelocation(), Map::RemovePlayerFromMap(), ResurrectPlayer(), SetDrunkValue(), SetGameMaster(), SetGroup(), and StopCinematic().
| void Player::UpdateParryPercentage | ( | ) |
Definition at line 569 of file StatSystem.cpp.
References CanParry(), CONFIG_STATS_LIMITS_ENABLE, CONFIG_STATS_LIMITS_PARRY, CR_PARRY, Unit::getClass(), GetRatingBonusValue(), Unit::GetTotalAuraModifier(), m_diminishing_k, MAX_CLASSES, PLAYER_FIELD_PARRY_PERCENTAGE, Object::SetStatFloatValue(), SPELL_AURA_MOD_PARRY_PERCENT, and sWorld.
Referenced by AuraEffect::HandleAuraModParryPercent(), SetCanParry(), UpdateAllStats(), and UpdateRating().
| void Player::UpdatePhasing | ( | ) |
Definition at line 23894 of file Player.cpp.
References WorldObject::GetPhases(), GetSession(), WorldObject::GetTerrainSwaps(), WorldObject::GetWorldMapSwaps(), Object::IsInWorld(), WorldObject::RebuildTerrainSwaps(), and WorldSession::SendSetPhaseShift().
Referenced by Map::AddPlayerToMap(), AddQuest(), and SetQuestStatus().
|
inline |
Definition at line 2440 of file Player.h.
References Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), and UpdatePosition().
Referenced by UpdatePosition().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 6843 of file Player.cpp.
References CheckAreaExploreAndOutdoor(), GetGroup(), GetSession(), GetTrader(), GROUP_UPDATE_FLAG_POSITION, INTERACTION_DISTANCE, WorldObject::IsWithinDistInMap(), WorldSession::SendCancelTrade(), SetGroupUpdateFlag(), TRADE_STATUS_CANCELLED, and Unit::UpdatePosition().
Referenced by WorldSession::HandleMoveTeleportAck().
| void Player::UpdatePotionCooldown | ( | Spell * | spell = NULL | ) |
Definition at line 17737 of file Player.cpp.
References Unit::IsInCombat(), ITEM_SPELLTRIGGER_ON_USE, m_lastPotionId, Spell::m_spellInfo, MAX_ITEM_SPELLS, SendCooldownEvent(), sObjectMgr, and sSpellMgr.
Referenced by Unit::ClearInCombat().
| void Player::UpdatePvP | ( | bool | state, |
| bool | override = false ) |
Definition at line 17484 of file Player.cpp.
References pvpInfo, and SetPvP().
Referenced by Unit::CombatStart(), OPvPCapturePointNA::HandleCustomSpell(), WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAckOpcode(), WorldSession::HandleTogglePvP(), UpdatePvPFlag(), and UpdatePvPState().
| void Player::UpdatePvPFlag | ( | time_t | currTime | ) |
Definition at line 15613 of file Player.cpp.
References Unit::IsPvP(), pvpInfo, and UpdatePvP().
Referenced by Update().
| void Player::UpdatePvpPower | ( | ) |
Definition at line 106 of file StatSystem.cpp.
References CR_PVP_POWER, GetRatingBonusValue(), Unit::GetTotalAuraModifier(), PLAYER_FIELD_PVP_POWER_DAMAGE, PLAYER_FIELD_PVP_POWER_HEALING, Object::SetFloatValue(), and SPELL_AURA_MOD_RATING.
Referenced by UpdateAllStats(), and UpdateRating().
| void Player::UpdatePvPState | ( | bool | onlyFFA = false | ) |
Definition at line 17441 of file Player.cpp.
References Object::HasByteFlag(), Object::HasFlag(), IsGameMaster(), Unit::IsPvP(), Unit::m_Controlled, PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FLAGS_IN_PVP, pvpInfo, Object::RemoveByteFlag(), Object::SetByteFlag(), sWorld, UNIT_BYTE2_FLAG_FFA_PVP, UNIT_FIELD_SHAPESHIFT_FORM, and UpdatePvP().
Referenced by AddQuest(), Spell::EffectQuestClear(), quest_commandscript::HandleQuestRemove(), RewardQuest(), Unit::SetCharm(), UpdateArea(), and UpdateZone().
| void Player::UpdateRangedHitChances | ( | ) |
Definition at line 676 of file StatSystem.cpp.
References CR_HIT_RANGED, GetRatingBonusValue(), Unit::GetTotalAuraModifier(), Unit::m_modRangedHitChance, and SPELL_AURA_MOD_HIT_CHANCE.
Referenced by AuraEffect::HandleModHitChance(), and UpdateRating().
| void Player::UpdateRating | ( | CombatRating | cr | ) |
Definition at line 5999 of file Player.cpp.
References BASE_ATTACK, CalculatePct(), Unit::CanModifyStats(), CR_ARMOR_PENETRATION, CR_BLOCK, CR_CRIT_MELEE, CR_CRIT_RANGED, CR_CRIT_SPELL, 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_MASTERY, CR_PARRY, CR_PVP_POWER, CR_RESILIENCE_CRIT_TAKEN, CR_RESILIENCE_PLAYER_DAMAGE_TAKEN, 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_RATINGS, RANGED_ATTACK, Object::SetUInt32Value(), SPELL_AURA_MOD_RATING_FROM_STAT, UpdateAllSpellCritChances(), UpdateArmorPenetration(), UpdateBlockPercentage(), UpdateCritPercentage(), UpdateDodgePercentage(), UpdateExpertise(), UpdateMastery(), UpdateMeleeHitChances(), UpdateParryPercentage(), UpdatePvpPower(), UpdateRangedHitChances(), and UpdateSpellHitChances().
Referenced by ApplyRatingMod(), and UpdateAllRatings().
| void Player::UpdateResearchDigsites | ( | ) |
Definition at line 23427 of file Player.cpp.
References _researchDigsites, DeleteResearchDigsite(), IsResearchDigsiteAvailable(), MAX_DIGSITES_PER_CONTINENT, MAX_FINDS_PER_DIGSITE, PLAYER_DYNAMIC_FIELD_RESEARCH_SITE_PROGRESS, PLAYER_DYNAMIC_FIELD_RESERACH_SITE, RESEARCH_CONTINENT_COUNT, ResearchContinents, Object::SetDynamicUInt32Value(), and TryToSpawnResearchDigsiteOnContinent().
Referenced by LoadFromDB(), OnArchaeologyFindUsed(), and SetSkill().
| void Player::UpdateResearchProjects | ( | ) |
Definition at line 23806 of file Player.cpp.
References _researchHistory, _researchProjects, GetRandomResearchProjectForRace(), HasSkill(), IsResearchBranchUnlocked(), PLAYER_FIELD_RESEARCHING, RESEARCH_BRANCH_COUNT, SendCurrencies(), Object::SetUInt16Value(), SKILL_ARCHAEOLOGY, and sResearchBranchStore.
Referenced by LoadFromDB(), OnArchaeologyFindUsed(), SetSkill(), and SolveResearchProject().
|
overridevirtual |
Implements Unit.
Definition at line 205 of file StatSystem.cpp.
References GetPet(), Unit::GetTotalAuraModValue(), Unit::SetResistance(), SPELL_SCHOOL_NORMAL, UNIT_MOD_RESISTANCE_START, UpdateArmor(), and Guardian::UpdateResistances().
Referenced by UpdateAllStats().
| void Player::UpdateRestAreaState | ( | ) |
Definition at line 1827 of file Player.cpp.
References TavernRestArea::BoxOrientation, TavernRestArea::BoxX, TavernRestArea::BoxY, TavernRestArea::BoxZ, WorldLocation::GetMapId(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetRestType(), Object::HasFlag(), inn_area_box_x, inn_area_box_y, inn_area_box_z, inn_area_radius, inn_pos_mapid, InnEnter(), IsInCurrentInnArea(), TavernRestArea::MapId, PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FLAGS_RESTING, TavernRestArea::Radius, Object::RemoveByteFlag(), Object::RemoveFlag(), REST_TYPE_IN_TAVERN, REST_TYPE_NO, Object::SetFlag(), SetRestType(), sObjectMgr, sWorld, UNIT_BYTE2_FLAG_FFA_PVP, UNIT_FIELD_SHAPESHIFT_FORM, TavernRestArea::X, TavernRestArea::Y, and TavernRestArea::Z.
Referenced by Update(), and UpdateZone().
| void Player::UpdateRuneRegen | ( | RuneType | rune | ) |
Definition at line 768 of file StatSystem.cpp.
References GetBaseRune(), GetRuneBaseCooldown(), IN_MILLISECONDS, MAX_RUNES, NUM_RUNE_TYPES, PLAYER_FIELD_RUNE_REGEN, and Object::SetFloatValue().
Referenced by AuraEffect::HandleModPowerRegen().
Definition at line 6112 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_REACH_SKILL_LEVEL, Object::GetUInt16Value(), mSkillStatus, PLAYER_FIELD_SKILL_MAX_RANKS, PLAYER_FIELD_SKILL_RANKS, Object::SetUInt16Value(), SKILL_CHANGED, SKILL_DELETED, SKILL_FIST_WEAPONS, SKILL_NEW, SKILL_UNARMED, UpdateAchievementCriteria(), and UpdateSkillEnchantments().
Referenced by LuaPlayer::AdvanceAllSkills(), and LuaPlayer::AdvanceSkill().
Definition at line 11544 of file Player.cpp.
References ApplyEnchantment(), INVENTORY_SLOT_BAG_END, m_items, MAX_ENCHANTMENT_SLOT, PRISMATIC_ENCHANTMENT_SLOT, PROP_ENCHANTMENT_SLOT_0, SpellItemEnchantmentEntry::requiredSkill, SpellItemEnchantmentEntry::requiredSkillValue, SOCK_ENCHANTMENT_SLOT, SOCK_ENCHANTMENT_SLOT_2, SOCK_ENCHANTMENT_SLOT_3, and sSpellItemEnchantmentStore.
Referenced by SetSkill(), UpdateSkill(), and UpdateSkillPro().
Definition at line 6234 of file Player.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_REACH_SKILL_LEVEL, Object::GetUInt16Value(), learnSkillRewardedSpells(), mSkillStatus, PLAYER_FIELD_SKILL_MAX_RANKS, PLAYER_FIELD_SKILL_RANKS, Object::SetUInt16Value(), SF_LOG_DEBUG, SKILL_CHANGED, SKILL_DELETED, SKILL_NEW, UpdateAchievementCriteria(), and UpdateSkillEnchantments().
Referenced by OnArchaeologyFindUsed(), RewardQuest(), UpdateCraftSkill(), UpdateFishingSkill(), and UpdateGatherSkill().
| void Player::UpdateSkillsForLevel | ( | ) |
update only level dependent max skill values
Definition at line 6309 of file Player.cpp.
References Unit::GetMaxSkillValueForLevel(), GetSkillRangeType(), Object::GetUInt16Value(), SkillLineEntry::id, IsWeaponSkill(), mSkillStatus, PLAYER_FIELD_SKILL_MAX_RANKS, PLAYER_FIELD_SKILL_RANKS, Object::SetUInt16Value(), SKILL_CHANGED, SKILL_DELETED, SKILL_NEW, SKILL_RANGE_LEVEL, and sSkillLineStore.
Referenced by GiveLevel(), InitStatsForLevel(), and LoadFromDB().
| void Player::UpdateSkillsToMaxSkillsForLevel | ( | ) |
Definition at line 6346 of file Player.cpp.
References Object::GetUInt16Value(), IsProfessionOrRidingSkill(), IsWeaponSkill(), mSkillStatus, PLAYER_FIELD_SKILL_MAX_RANKS, PLAYER_FIELD_SKILL_RANKS, Object::SetUInt16Value(), SKILL_CHANGED, SKILL_DELETED, and SKILL_NEW.
Referenced by LuaPlayer::AdvanceSkillsToMax(), GiveLevel(), and misc_commandscript::HandleMaxSkillCommand().
| void Player::UpdateSoulboundTradeItems | ( | ) |
Definition at line 30 of file PlayerTrade.cpp.
References ASSERT, Object::GetGUID(), and m_itemSoulboundTradeable.
Referenced by Update().
| void Player::UpdateSpeakTime | ( | ) |
Definition at line 15367 of file Player.cpp.
References CONFIG_CHATFLOOD_MESSAGE_COUNT, CONFIG_CHATFLOOD_MESSAGE_DELAY, CONFIG_CHATFLOOD_MUTE_TIME, GetSession(), WorldSession::m_muteTime, m_speakCount, m_speakTime, rbac::RBAC_PERM_SKIP_CHECK_CHAT_SPAM, and sWorld.
| void Player::UpdateSpecCount | ( | uint8 | count | ) |
Definition at line 21754 of file Player.cpp.
References _SaveActions(), ActivateSpec(), CHAR_DEL_CHAR_ACTION_EXCEPT_SPEC, CHAR_INS_CHAR_ACTION, CharacterDatabase, GetActiveSpec(), Object::GetGUIDLow(), GetSpecsCount(), m_actionButtons, SendTalentsInfoData(), SetSpecsCount(), PreparedStatement::setUInt32(), and PreparedStatement::setUInt8().
| void Player::UpdateSpellCritChance | ( | uint32 | school | ) |
Definition at line 641 of file StatSystem.cpp.
References CR_CRIT_SPELL, GetRatingBonusValue(), GetSpellCritFromIntellect(), Unit::GetTotalAuraModifier(), PLAYER_FIELD_SPELL_CRIT_PERCENTAGE, Object::SetFloatValue(), SPELL_AURA_MOD_CRIT_PCT, SPELL_AURA_MOD_SPELL_CRIT_CHANCE, and SPELL_SCHOOL_NORMAL.
Referenced by UpdateAllSpellCritChances().
| void Player::UpdateSpellDamageAndHealingBonus | ( | ) |
Definition at line 138 of file StatSystem.cpp.
References Unit::GetAuraEffectsByType(), Object::GetInt32Value(), Unit::HasAuraType(), MAX_SPELL_SCHOOL, PLAYER_FIELD_MOD_DAMAGE_DONE_NEG, PLAYER_FIELD_MOD_DAMAGE_DONE_POS, PLAYER_FIELD_MOD_HEALING_DONE_POS, Object::SetStatInt32Value(), SPELL_AURA_MOD_DAMAGE_DONE, SPELL_AURA_OVERRIDE_AP_BY_SPELL_POWER_PCT, SPELL_SCHOOL_HOLY, SPELL_SCHOOL_MASK_ALL, Unit::SpellBaseDamageBonusDone(), Unit::SpellBaseHealingBonusDone(), and UpdateAttackPowerAndDamage().
Referenced by AuraEffect::HandleModHealingDone(), AuraEffect::HandleModSpellDamagePercentFromStat(), AuraEffect::HandleModSpellHealingPercentFromStat(), AuraEffect::HandleOverrideSpellPowerByAttackPower(), UpdateAllStats(), UpdateAttackPowerAndDamage(), and UpdateStats().
| void Player::UpdateSpellHitChances | ( | ) |
Definition at line 682 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 43 of file StatSystem.cpp.
References ApplyRatingMod(), Unit::GetAuraEffectsByType(), GetPet(), Unit::GetTotalStatValue(), MAX_COMBAT_RATING, Unit::SetStat(), SPELL_AURA_MOD_RATING_FROM_STAT, STAT_AGILITY, STAT_INTELLECT, STAT_SPIRIT, STAT_STAMINA, STAT_STRENGTH, UpdateAllCritPercentages(), UpdateAllSpellCritChances(), UpdateArmor(), UpdateAttackPowerAndDamage(), UpdateDodgePercentage(), UpdateManaRegen(), UpdateMaxHealth(), UpdateSpellDamageAndHealingBonus(), and Guardian::UpdateStats().
| void Player::UpdateTalentSpecializationManaBonus | ( | ) |
Definition at line 251 of file StatSystem.cpp.
References Unit::getPowerType(), POWER_MANA, and UpdateMaxPower().
Referenced by ResetTalents().
| void Player::UpdateTriggerVisibility | ( | ) |
Definition at line 18217 of file Player.cpp.
References UpdateData::BuildPacket(), Object::BuildValuesUpdateBlockForPlayer(), Map::GetCreature(), Map::GetGameObject(), WorldObject::GetMap(), WorldLocation::GetMapId(), GetSession(), Unit::HasAuraType(), UpdateData::HasData(), Object::HasFlag(), IS_CREATURE_GUID(), IS_GAMEOBJECT_GUID(), Object::IsInWorld(), Creature::IsTrigger(), m_clientGUIDs, Object::RemoveFieldNotifyFlag(), WorldSession::SendPacket(), Object::SetFieldNotifyFlag(), SPELL_AURA_TRANSFORM, UF_FLAG_PUBLIC, UNIT_FIELD_FLAGS, and UNIT_FLAG_NOT_SELECTABLE.
Referenced by gm_commandscript::HandleGMCommand().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 20154 of file Player.cpp.
References Unit::_lastLiquid, Unit::CastSpell(), LiquidData::entry, Map::getLiquidStatus(), WorldObject::GetTransport(), Unit::HasAura(), Unit::IsInFlight(), LIQUID_MAP_IN_WATER, LIQUID_MAP_UNDER_WATER, LIQUID_MAP_WATER_WALK, m_MirrorTimerFlags, MAP_ALL_LIQUIDS, MAP_LIQUID_TYPE_DARK_WATER, MAP_LIQUID_TYPE_MAGMA, MAP_LIQUID_TYPE_OCEAN, MAP_LIQUID_TYPE_SLIME, MAP_LIQUID_TYPE_WATER, Unit::RemoveAurasDueToSpell(), sLiquidTypeStore, LiquidTypeEntry::SpellId, LiquidData::type_flags, UNDERWARER_INDARKWATER, UNDERWATER_INLAVA, UNDERWATER_INSLIME, and UNDERWATER_INWATER.
| void Player::UpdateVisibilityForPlayer | ( | ) |
Definition at line 18329 of file Player.cpp.
References WorldObject::GetSightRange(), m_seer, and Skyfire::VisibleNotifier::SendToSelf().
Referenced by WorldSession::HandleFarSightOpcode(), SendInitialPacketsAfterAddToMap(), and UpdateObjectVisibility().
| void Player::UpdateVisibilityOf | ( | T * | target, |
| UpdateData & | data, | ||
| std::set< Unit * > & | visibleNow ) |
Definition at line 18270 of file Player.cpp.
References BeforeVisibilityDestroy(), WorldObject::CanSeeOrDetect(), GetBattlePetMgr(), WorldObject::GetDistance(), Object::GetGUIDLow(), HaveAtClient(), m_clientGUIDs, SF_LOG_DEBUG, and UpdateVisibilityOf_helper().
| void Player::UpdateVisibilityOf | ( | WorldObject * | target | ) |
Definition at line 18170 of file Player.cpp.
References BeforeVisibilityDestroy< Creature >(), WorldObject::CanSeeOrDetect(), Object::DestroyForPlayer(), GetBattlePetMgr(), WorldObject::GetDistance(), Object::GetGUID(), Object::GetGUIDLow(), Object::GetTypeId(), HaveAtClient(), Object::isType(), m_clientGUIDs, SendInitialVisiblePackets(), Object::SendUpdateToPlayer(), SF_LOG_DEBUG, Object::ToCreature(), TYPEID_UNIT, TYPEMASK_UNIT, Unit::Unit(), and WorldObject::WorldObject().
Referenced by Skyfire::VisibleNotifier::SendToSelf(), SetViewpoint(), Skyfire::CreatureRelocationNotifier::Visit(), and Skyfire::PlayerRelocationNotifier::Visit().
Definition at line 8126 of file Player.cpp.
References WeatherMgr::AddWeather(), ALLIANCE, AREA_FLAG_CAPITAL, AREA_FLAG_WINTERGRASP, AREATEAM_ALLY, AREATEAM_HORDE, AREATEAM_NONE, AutoUnequipOffhandIfNeed(), CONFIG_WEATHER, DestroyZoneLimitedItem(), WeatherMgr::FindWeather(), GetAreaEntryByAreaID(), GetGroup(), GetGuild(), WorldLocation::GetMapId(), GetRestType(), GetTeam(), GROUP_UPDATE_FULL, GUILD_MEMBER_DATA_ZONEID, Unit::HasAuraType(), Object::HasFlag(), HasPvPForcingQuest(), HORDE, InBattleground(), InnEnter(), Unit::IsAlive(), AreaTableEntry::IsSanctuary(), AreaTableEntry::m_FactionGroupMask, AreaTableEntry::m_flags, AreaTableEntry::m_ID, m_zoneUpdateId, m_zoneUpdateTimer, PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FLAGS_RESTING, pvpInfo, Object::RemoveFlag(), REST_TYPE_IN_CITY, REST_TYPE_IN_TAVERN, REST_TYPE_NO, sBattlefieldMgr, WeatherMgr::SendFineWeatherUpdateToPlayer(), SendInitWorldStates(), Object::SetFlag(), SetGroupUpdateFlag(), SetRestType(), sOutdoorPvPMgr, SPELL_AURA_FORCE_WEATHER, sScriptMgr, sWorld, UpdateArea(), WorldObject::UpdateAreaPhase(), UpdateLocalChannels(), UpdatePvPState(), UpdateRestAreaState(), UpdateZoneDependentAuras(), and ZONE_UPDATE_INTERVAL.
Referenced by WorldSession::HandleMoveTeleportAck(), WorldSession::HandleMoveWorldportAckOpcode(), WorldSession::HandleZoneUpdateOpcode(), ResurrectPlayer(), SendInitialPacketsAfterAddToMap(), and Update().
| void Player::UpdateZoneDependentAuras | ( | uint32 | zone_id | ) |
Definition at line 19890 of file Player.cpp.
References Unit::CastSpell(), Unit::HasAura(), and sSpellMgr.
Referenced by AddQuest(), CompleteQuest(), and UpdateZone().
| void Player::VehicleSpellInitialize | ( | ) |
Definition at line 16039 of file Player.cpp.
References Unit::CastSpell(), CREATURE_MAX_SPELLS, ByteBuffer::FlushBits(), SpellInfo::GetCategory(), Object::GetEntry(), Object::GetGUID(), Creature::GetReactState(), GetSession(), TempSummon::GetTimer(), Unit::GetVehicleCreatureBase(), IN_MILLISECONDS, SpellInfo::IsPassive(), Unit::IsSummon(), Creature::m_CreatureCategoryCooldowns, Creature::m_CreatureSpellCooldowns, Creature::m_spells, MAKE_UNIT_ACTION_BUTTON, MAX_SPELL_CONTROL_BAR, sConditionMgr, WorldSession::SendPacket(), SF_LOG_DEBUG, SMSG_PET_SPELLS_MESSAGE, sSpellMgr, sWorld, Object::ToCreature(), Unit::ToTempSummon(), ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), and ByteBuffer::WriteByteSeq().
Referenced by Unit::SetCharmedBy().
Definition at line 2188 of file PlayerStorage.cpp.
References BIND_QUEST_ITEM, BIND_WHEN_EQUIPED, BIND_WHEN_PICKED_UP, ItemTemplate::Bonding, EQUIPMENT_SLOT_END, Object::GetEntry(), Object::GetGUID(), Item::GetTemplate(), ITEM_CHANGED, ITEM_FIELD_CONTAINED_IN, ITEM_FIELD_OWNER, m_items, PLAYER_FIELD_INV_SLOTS, Item::SetBinding(), Item::SetContainer(), Item::SetSlot(), Item::SetState(), Object::SetUInt64Value(), SetVisibleItemSlot(), and SF_LOG_DEBUG.
Referenced by EquipItem(), and QuickEquipItem().
Handles whispers from Addons and players based on sender, receiver's guid and language.
Definition at line 15840 of file Player.cpp.
References autoReplyMsg, ChatHandler::BuildChatPacket(), CHAT_MSG_WHISPER, CHAT_MSG_WHISPER_INFORM, ObjectAccessor::FindPlayer(), WorldObject::GetName(), GetSession(), isAcceptWhispers(), isAFK(), isDND(), IsGameMaster(), LANG_ADDON, LANG_COMMAND_WHISPERON, LANG_PLAYER_AFK, LANG_PLAYER_DND, LANG_UNIVERSAL, Player(), ChatHandler::PSendSysMessage(), WorldSession::SendPacket(), ChatHandler::SendSysMessage(), SetAcceptWhispers(), and sScriptMgr.
Referenced by WorldSession::HandleMessagechatOpcode(), LuaUnit::SendUnitWhisper(), and LuaPlayer::Whisper().
| void Player::WhisperAddon | ( | std::string const & | text, |
| std::string const & | prefix, | ||
| Player * | receiver ) |
Definition at line 15827 of file Player.cpp.
References ChatHandler::BuildChatPacket(), CHAT_MSG_WHISPER, DEFAULT_LOCALE, GetSession(), WorldSession::IsAddonRegistered(), LANG_ADDON, LANG_UNIVERSAL, Player(), WorldSession::SendPacket(), and sScriptMgr.
Referenced by WorldSession::HandleAddonMessagechatOpcode().
| void Player::Yell | ( | std::string const & | text, |
| const Language | language ) |
Handles yelled message in regular chat based on declared language and in config pre-defined Range.
Definition at line 15807 of file Player.cpp.
References ChatHandler::BuildChatPacket(), CHAT_MSG_YELL, CONFIG_LISTEN_RANGE_YELL, SendMessageToSetInRange(), sScriptMgr, and sWorld.
Referenced by WorldSession::HandleMessagechatOpcode(), LuaUnit::SendUnitYell(), and LuaPlayer::Yell().
|
friend |
References Player().
|
friend |
References Player(), WorldLocation::WorldLocation(), and WorldSession.
|
friend |
Definition at line 1290 of file Player.h.
References WorldSession.
Referenced by GetSession(), Item::RemoveFromUpdateQueueOf, learnSpell(), Player(), SetSkill(), and WorldSession.
|
private |
Definition at line 3604 of file Player.h.
Referenced by GetCommandStatus(), Player(), SetCommandStatusOff(), and SetCommandStatusOn().
|
private |
Definition at line 3607 of file Player.h.
Referenced by _GetCurrencyWeekCap(), _LoadCurrency(), ModifyCurrency(), and Player().
|
protected |
Definition at line 3512 of file Player.h.
Referenced by _LoadCUFProfiles(), _SaveCUFProfiles(), GetCUFProfile(), GetCUFProfilesCount(), Player(), SaveCUFProfile(), and ~Player().
|
protected |
Definition at line 3370 of file Player.h.
Referenced by _LoadCurrency(), _SaveCurrency(), GetCurrency(), GetCurrencyOnWeek(), HasCurrency(), ModifyCurrency(), ModifyCurrencyFlag(), ResetCurrencyWeekCap(), SendCurrencies(), SendNewCurrency(), and SetCurrency().
|
private |
Definition at line 3600 of file Player.h.
Referenced by _LoadInstanceTimeRestrictions(), _SaveInstanceTimeRestrictions(), AddInstanceEnterTime(), CheckInstanceCount(), and Update().
|
private |
Definition at line 3605 of file Player.h.
Referenced by GetCurrencyWeekCap(), and Player().
|
private |
Definition at line 3601 of file Player.h.
Referenced by BindToInstance(), HasPendingBind(), SetPendingBind(), and Update().
|
private |
Definition at line 3602 of file Player.h.
Referenced by SetPendingBind(), and Update().
|
protected |
Definition at line 3447 of file Player.h.
Referenced by Player(), ReadyCheckComplete(), SetReadyCheckTimer(), and Update().
|
protected |
Definition at line 3515 of file Player.h.
Referenced by _LoadResearchDigsites(), GetCurrentResearchDigsite(), GetRandomResearchDigsiteForContinent(), GetResearchDigsiteForFind(), Player(), UpdateResearchDigsites(), and ~Player().
|
protected |
Definition at line 3517 of file Player.h.
Referenced by _LoadResearchHistory(), _SaveResearchHistory(), HasCompletedResearchProject(), IsResearchBranchUnlocked(), SendResearchHistory(), SolveResearchProject(), and UpdateResearchProjects().
|
protected |
Definition at line 3516 of file Player.h.
Referenced by _LoadResearchProjects(), _SaveResearchProjects(), HasResearchingProject(), SolveResearchProject(), and UpdateResearchProjects().
|
protected |
Definition at line 3428 of file Player.h.
Referenced by ClearResurrectRequestData(), IsRessurectRequested(), IsRessurectRequestedBy(), Player(), ProcessDelayedOperations(), ResurectUsingRequestData(), and SetResurrectRequestData().
|
protected |
Definition at line 3408 of file Player.h.
Referenced by _LoadGlyphs(), GetActiveSpec(), GetGlyph(), GetSpecializationResetCost(), GetSpecializationResetTime(), GetSpecsCount(), GetTalentMap(), GetTalentMap(), GetTalentResetCost(), GetTalentResetTime(), GetTalentSpecialization(), GetUsedTalentCount(), Player(), SetActiveSpec(), SetGlyph(), SetSpecializationResetCost(), SetSpecializationResetTime(), SetSpecsCount(), SetTalentResetCost(), SetTalentResetTime(), SetTalentSpecialization(), SetUsedTalentCount(), and ~Player().
|
protected |
Definition at line 3380 of file Player.h.
Referenced by _LoadVoidStorage(), _SaveVoidStorage(), AddVoidStorageItem(), AddVoidStorageItemAtSlot(), DeleteVoidStorageItem(), GetNextVoidStorageFreeSlot(), GetNumOfVoidStorageFreeSlots(), GetVoidStorageItem(), GetVoidStorageItem(), Player(), SwapVoidStorageItem(), and ~Player().
|
private |
Definition at line 3611 of file Player.h.
Referenced by GetCinematicPosition(), Player(), SendCinematicStart(), StopCinematic(), and Update().
|
private |
Definition at line 3609 of file Player.h.
Referenced by GetCinematicPosition(), IsInCinematic(), Player(), SendCinematicStart(), StopCinematic(), and Update().
|
private |
Definition at line 3613 of file Player.h.
Referenced by SendCinematicStart(), and StopCinematic().
|
private |
Definition at line 3613 of file Player.h.
Referenced by SendCinematicStart(), and StopCinematic().
|
private |
Definition at line 3613 of file Player.h.
Referenced by SendCinematicStart(), and StopCinematic().
|
private |
Definition at line 3613 of file Player.h.
Referenced by SendCinematicStart(), and StopCinematic().
|
private |
Definition at line 3612 of file Player.h.
Referenced by Player(), SendCinematicStart(), StopCinematic(), and Update().
| DuelInfo* Player::duel |
todo: -maybe move UpdateDuelFlag+DuelComplete to independent DuelHandler..
Definition at line 2253 of file Player.h.
Referenced by Unit::_ExitVehicle(), Unit::_IsValidAssistTarget(), Unit::_IsValidAttackTarget(), CheckDuelDistance(), Unit::CombatStart(), Unit::DealDamage(), DuelComplete(), Spell::EffectDuel(), Unit::GetReactionTo(), WorldSession::HandleDuelResponseOpcode(), Player(), Unit::SetContestedPvP(), Unit::SetInCombatWith(), TeleportTo(), and UpdateDuelFlag().
|
private |
Definition at line 3610 of file Player.h.
Referenced by GetCinematicPosition(), IsInCinematic(), Player(), SendCinematicStart(), StopCinematic(), and Update().
Definition at line 2164 of file Player.h.
Referenced by AddSpellAndCategoryCooldowns().
Definition at line 2165 of file Player.h.
Referenced by _SaveSpellCooldowns(), and SendInitialSpells().
|
protected |
Definition at line 3476 of file Player.h.
Referenced by GetInnAreaBoxOrientation(), InnEnter(), IsInCurrentInnArea(), and Player().
|
protected |
Definition at line 3473 of file Player.h.
Referenced by GetInnAreaBoxX(), InnEnter(), IsInCurrentInnArea(), Player(), and UpdateRestAreaState().
|
protected |
Definition at line 3474 of file Player.h.
Referenced by GetInnAreaBoxY(), InnEnter(), IsInCurrentInnArea(), Player(), and UpdateRestAreaState().
|
protected |
Definition at line 3475 of file Player.h.
Referenced by GetInnAreaBoxZ(), InnEnter(), IsInCurrentInnArea(), Player(), and UpdateRestAreaState().
|
protected |
Definition at line 3472 of file Player.h.
Referenced by GetInnAreaRadius(), InnEnter(), IsInCurrentInnArea(), Player(), and UpdateRestAreaState().
|
protected |
Definition at line 3468 of file Player.h.
Referenced by GetInnPosMapId(), InnEnter(), IsInCurrentInnArea(), Player(), and UpdateRestAreaState().
|
protected |
Definition at line 3469 of file Player.h.
Referenced by GetInnPosX(), InnEnter(), IsInCurrentInnArea(), and Player().
|
protected |
Definition at line 3470 of file Player.h.
Referenced by GetInnPosY(), InnEnter(), IsInCurrentInnArea(), and Player().
|
protected |
Definition at line 3471 of file Player.h.
Referenced by GetInnPosZ(), InnEnter(), IsInCurrentInnArea(), and Player().
| bool Player::isDebugAreaTriggers |
Definition at line 3142 of file Player.h.
Referenced by WorldSession::HandleAreaTriggerOpcode(), debug_commandscript::HandleDebugAreaTriggersCommand(), and Player().
| std::vector<ItemSetEffect*> Player::ItemSetEff |
Definition at line 2681 of file Player.h.
Referenced by AddItemsSetItem(), RemoveItemsSetItem(), UpdateEquipSpellsAtFormChange(), and ~Player().
|
private |
Definition at line 3587 of file Player.h.
Referenced by CompletedAchievement(), GetAchievementPoints(), HasAchieved(), LoadFromDB(), Player(), RemoveTimedAchievement(), ResetAchievementCriteria(), ResetAchievements(), SaveToDB(), SendInitialPacketsBeforeAddToMap(), SendRespondInspectAchievements(), StartTimedAchievement(), Update(), UpdateAchievementCriteria(), and ~Player().
|
protected |
Definition at line 3410 of file Player.h.
Referenced by _LoadActions(), _SaveActions(), addActionButton(), GetActionButton(), GetActionButtons(), removeActionButton(), and UpdateSpecCount().
|
protected |
Definition at line 3451 of file Player.h.
Referenced by Player(), SetGameMaster(), Update(), and UpdateArea().
|
protected |
Definition at line 3459 of file Player.h.
Referenced by AddArmorProficiency(), GetArmorProficiency(), and Player().
|
protected |
Definition at line 3365 of file Player.h.
Referenced by HasAtLoginFlag(), LoadFromDB(), Player(), RemoveAtLoginFlag(), SaveToDB(), and SetAtLoginFlag().
|
protected |
Definition at line 3412 of file Player.h.
Referenced by GetBaseModValue(), GetTotalBaseModValue(), GetTotalPercentageModValue(), HandleBaseModValue(), Player(), and SetBaseModValue().
|
protected |
Definition at line 3489 of file Player.h.
Referenced by GetAuraUpdateMaskForRaid(), Player(), SendUpdateToOutOfRangeGroupMembers(), and SetAuraUpdateMaskForRaid().
|
protected |
Definition at line 3416 of file Player.h.
Referenced by ApplyHealthRegenBonus(), Player(), RegenerateAll(), and RegenerateHealth().
|
protected |
Definition at line 3415 of file Player.h.
Referenced by ApplyManaRegenBonus(), and Player().
|
protected |
Definition at line 3413 of file Player.h.
Referenced by ApplyRatingMod(), Player(), and UpdateRating().
|
protected |
Definition at line 3414 of file Player.h.
Referenced by ApplySpellPowerBonus(), GetBaseSpellPowerBonus(), and Player().
|
private |
Definition at line 3616 of file Player.h.
Referenced by CastItemUseSpell(), GetBattlePetMgr(), LoadFromDB(), Player(), SaveToDB(), SendInitialPacketsAfterAddToMap(), and ~Player().
|
private |
Definition at line 3580 of file Player.h.
Referenced by IsCanDelayTeleport(), Player(), and SetCanDelayTeleport().
|
protected |
Definition at line 3253 of file Player.h.
Referenced by AddBattlegroundQueueId(), GetBattlegroundQueueIndex(), GetBattlegroundQueueTypeId(), HasFreeBattlegroundQueueId(), InBattlegroundQueue(), IsInvitedForBattlegroundInstance(), IsInvitedForBattlegroundQueueType(), Player(), RemoveBattlegroundQueueId(), and SetInviteForBattlegroundQueueType().
|
protected |
Definition at line 3254 of file Player.h.
Referenced by _LoadBGData(), _SaveBGData(), AddBattlegroundQueueJoinTime(), CanReportAfkDueToLimit(), ClearAfkReports(), GetBattleground(), GetBattlegroundEntryPoint(), GetBattlegroundId(), GetBattlegroundQueueJoinTime(), GetBattlegroundTypeId(), GetBGTeam(), InBattleground(), LoadFromDB(), ProcessDelayedOperations(), RemoveBattlegroundQueueJoinTime(), ReportedAfkBy(), SetBattlegroundEntryPoint(), SetBattlegroundId(), SetBGTeam(), TeleportToBGEntryPoint(), and UpdateAfkReport().
|
private |
Definition at line 3581 of file Player.h.
Referenced by IsHasDelayedTeleport(), Player(), and SetDelayedTeleportFlag().
| BoundInstancesMap Player::m_boundInstances[15] |
Definition at line 2926 of file Player.h.
Referenced by _LoadBoundInstances(), BindToInstance(), CleanupsBeforeDelete(), ConvertInstancesToGroup(), GetBoundInstance(), GetBoundInstances(), ResetInstances(), SendSavedInstances(), UnbindInstance(), and UnbindInstance().
|
protected |
Definition at line 3490 of file Player.h.
Referenced by GetPassOnGroupLoot(), Player(), and SetPassOnGroupLoot().
|
protected |
Definition at line 3462 of file Player.h.
Referenced by CanBlock(), Player(), and SetCanBlock().
|
protected |
Definition at line 3460 of file Player.h.
Referenced by CanDodge(), Player(), and SetCanDodge().
|
protected |
Definition at line 3461 of file Player.h.
Referenced by CanParry(), Player(), and SetCanParry().
|
protected |
Definition at line 3463 of file Player.h.
Referenced by CanTitanGrip(), Player(), removeSpell(), and SetCanTitanGrip().
|
private |
Definition at line 3592 of file Player.h.
Referenced by GetChampioningFaction(), Player(), and SetChampioningFaction().
|
private |
Definition at line 3593 of file Player.h.
Referenced by GetChampioningType(), Player(), and SetChampioningType().
|
protected |
Definition at line 3433 of file Player.h.
Referenced by CleanupChannels(), JoinedChannel(), LeaveLFGChannel(), LeftChannel(), and UpdateLocalChannels().
|
protected |
Definition at line 3235 of file Player.h.
Referenced by Player(), Regenerate(), and RegenerateAll().
|
protected |
Definition at line 3435 of file Player.h.
Referenced by getCinematic(), LoadFromDB(), Player(), SaveToDB(), and setCinematic().
| ClientGUIDs Player::m_clientGUIDs |
Definition at line 2857 of file Player.h.
Referenced by Map::AddPlayerToMap(), Map::AddToMap(), WorldObject::DestroyForNearbyPlayers(), HaveAtClient(), Map::SendInitTransports(), UpdateForQuestWorldObjects(), UpdateTriggerVisibility(), UpdateVisibilityOf(), and UpdateVisibilityOf().
|
protected |
Definition at line 3388 of file Player.h.
Referenced by ClearComboPoints(), GainSpellComboPoints(), GetComboPoints(), Player(), SendComboPoints(), and SetComboPoints().
|
protected |
Definition at line 3387 of file Player.h.
Referenced by AddComboPoints(), ClearComboPoints(), GetComboTarget(), Player(), and SendComboPoints().
|
protected |
Definition at line 3238 of file Player.h.
Referenced by Player(), ResetContestedPvP(), SetContestedPvPTimer(), and UpdateContestedPvP().
|
protected |
Definition at line 3368 of file Player.h.
Referenced by AddItemToBuyBackSlot(), Player(), and RemoveItemFromBuyBackSlot().
|
protected |
Definition at line 3439 of file Player.h.
Referenced by _LoadDailyQuestStatus(), _SaveDailyQuestStatus(), Player(), ResetDailyQuestStatus(), and SetDailyQuestStatus().
|
protected |
Definition at line 3454 of file Player.h.
Referenced by GetCorpseReclaimDelay(), LoadFromDB(), Player(), SaveToDB(), SendCorpseReclaimDelay(), and UpdateCorpseReclaimDelay().
|
protected |
Definition at line 3453 of file Player.h.
Referenced by GetDeathTimer(), KillPlayer(), Player(), RemovedInsignia(), RepopAtGraveyard(), ResurrectPlayer(), and Update().
|
protected |
Definition at line 3502 of file Player.h.
Referenced by _LoadDeclinedNames(), GetDeclinedNames(), Player(), and ~Player().
|
private |
Definition at line 3579 of file Player.h.
Referenced by Player(), ProcessDelayedOperations(), and ScheduleDelayedOperation().
| DFQuestsDoneList Player::m_DFQuests |
Definition at line 2890 of file Player.h.
Referenced by _LoadDailyQuestStatus(), _SaveDailyQuestStatus(), ResetDailyQuestStatus(), SatisfyQuestDay(), and SetDailyQuestStatus().
|
protected |
Definition at line 3271 of file Player.h.
Referenced by GetDivider(), Player(), and SetDivider().
|
protected |
Definition at line 3445 of file Player.h.
Referenced by HandleSobering(), Player(), SetDrunkValue(), and Update().
|
protected |
Definition at line 3361 of file Player.h.
Referenced by GetDifficulty(), GetDungeonDifficulty(), Player(), and SetDungeonDifficulty().
|
protected |
Definition at line 3421 of file Player.h.
Referenced by _SaveInventory(), AddEnchantmentDuration(), RemoveArenaEnchantments(), RemoveEnchantmentDurations(), SendEnchantmentDurations(), and UpdateEnchantTime().
|
protected |
Definition at line 3504 of file Player.h.
Referenced by _LoadEquipmentSets(), _SaveEquipmentSets(), DeleteEquipmentSet(), SendEquipmentSetList(), and SetEquipmentSet().
|
protected |
Definition at line 3385 of file Player.h.
Referenced by CreateCorpse(), isAcceptWhispers(), IsGameMaster(), isGMChat(), isGMVisible(), isTaxiCheater(), Player(), SaveToDB(), SendCorpseReclaimDelay(), SetAcceptWhispers(), SetGameMaster(), SetGMChat(), SetGMVisible(), SetPvPDeath(), SetTaxiCheater(), and UpdateCorpseReclaimDelay().
|
protected |
Definition at line 3236 of file Player.h.
Referenced by Player(), and RegenerateAll().
| uint8 Player::m_forced_speed_changes[MAX_MOVE_TYPE] |
Definition at line 2874 of file Player.h.
Referenced by Player(), and Unit::SetSpeed().
| bool Player::m_forcedTeleportFar |
Definition at line 2923 of file Player.h.
Referenced by IsForcedTeleportFar(), Player(), and SetForcedTeleportFar().
| bool Player::m_forcedTeleportFarSemaphore |
Definition at line 2924 of file Player.h.
Referenced by IsBeingForcedTeleportFar(), Player(), and SetSemaphoreTeleportForcedFar().
|
protected |
Definition at line 3406 of file Player.h.
Referenced by GetGlobalCooldownMgr().
|
protected |
Definition at line 3510 of file Player.h.
Referenced by GetGrantableLevels(), GiveLevel(), LoadFromDB(), Player(), SaveToDB(), and SetGrantableLevels().
|
protected |
Definition at line 3485 of file Player.h.
Referenced by GetGroup(), GetGroup(), GetGroupRef(), GetSubGroup(), RemoveFromBattlegroundOrBattlefieldRaid(), SetBattlegroundOrBattlefieldRaid(), and SetGroup().
|
protected |
Definition at line 3487 of file Player.h.
Referenced by GetGroupInvite(), and SetGroupInvite().
|
protected |
Definition at line 3488 of file Player.h.
Referenced by GetGroupUpdateFlag(), Player(), SendUpdateToOutOfRangeGroupMembers(), and SetGroupUpdateFlag().
|
protected |
Definition at line 3400 of file Player.h.
Referenced by GetGuildIdInvited(), Player(), and SetGuildIdInvited().
|
protected |
Definition at line 3234 of file Player.h.
Referenced by Player(), and RegenerateAll().
| uint16 Player::m_homebindAreaId |
Definition at line 2848 of file Player.h.
Referenced by _LoadHomeBind(), SendInitialPacketsBeforeAddToMap(), and SetHomebind().
| uint32 Player::m_homebindMapId |
Definition at line 2847 of file Player.h.
Referenced by _LoadHomeBind(), WorldSession::HandlePlayerLogin(), tele_commandscript::HandleTeleNameCommand(), misc_commandscript::HandleUnstuckCommand(), lfg::LFGPlayerScript::OnMapChanged(), Map::RemoveAllPlayers(), RepopAtGraveyard(), SendInitialPacketsBeforeAddToMap(), SetBattlegroundEntryPoint(), and SetHomebind().
| uint32 Player::m_HomebindTimer |
Definition at line 2921 of file Player.h.
Referenced by Player(), and UpdateHomebindTime().
| float Player::m_homebindX |
Definition at line 2849 of file Player.h.
Referenced by _LoadHomeBind(), WorldSession::HandlePlayerLogin(), tele_commandscript::HandleTeleNameCommand(), misc_commandscript::HandleUnstuckCommand(), lfg::LFGPlayerScript::OnMapChanged(), Map::RemoveAllPlayers(), RepopAtGraveyard(), SendInitialPacketsBeforeAddToMap(), SetBattlegroundEntryPoint(), and SetHomebind().
| float Player::m_homebindY |
Definition at line 2850 of file Player.h.
Referenced by _LoadHomeBind(), WorldSession::HandlePlayerLogin(), tele_commandscript::HandleTeleNameCommand(), misc_commandscript::HandleUnstuckCommand(), lfg::LFGPlayerScript::OnMapChanged(), Map::RemoveAllPlayers(), RepopAtGraveyard(), SendInitialPacketsBeforeAddToMap(), SetBattlegroundEntryPoint(), and SetHomebind().
| float Player::m_homebindZ |
Definition at line 2851 of file Player.h.
Referenced by _LoadHomeBind(), WorldSession::HandlePlayerLogin(), tele_commandscript::HandleTeleNameCommand(), misc_commandscript::HandleUnstuckCommand(), lfg::LFGPlayerScript::OnMapChanged(), Map::RemoveAllPlayers(), RepopAtGraveyard(), SendInitialPacketsBeforeAddToMap(), SetBattlegroundEntryPoint(), and SetHomebind().
|
protected |
Definition at line 3272 of file Player.h.
Referenced by GetInGameTime(), and SetInGameTime().
| bool Player::m_InstanceValid |
Definition at line 2922 of file Player.h.
Referenced by Group::_homebindIfInstance(), Group::AddMember(), BattlegroundMap::AddPlayerToMap(), WorldSession::HandleMoveWorldportAckOpcode(), Player(), and UpdateHomebindTime().
|
protected |
Definition at line 3256 of file Player.h.
Referenced by _LoadRandomBGStatus(), GetRandomWinner(), Player(), and SetRandomWinner().
|
private |
Definition at line 3568 of file Player.h.
Referenced by IsInWater(), Player(), and SetInWater().
|
protected |
Definition at line 3422 of file Player.h.
Referenced by AddItemDurations(), RemoveItemDurations(), SendItemDurations(), and UpdateItemDuration().
|
protected |
Definition at line 3367 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(), UpdateEquipSpellsAtFormChange(), UpdateSkillEnchantments(), VisualizeItem(), and ~Player().
|
protected |
Definition at line 3423 of file Player.h.
Referenced by AddTradeableItem(), RemoveTradeableItem(), and UpdateSoulboundTradeItems().
|
protected |
Definition at line 3382 of file Player.h.
Referenced by _SaveInventory(), Item::AddToUpdateQueueOf(), GetItemUpdateQueue(), and Item::RemoveFromUpdateQueueOf().
|
protected |
Definition at line 3383 of file Player.h.
Referenced by _LoadInventory(), Item::AddToUpdateQueueOf(), Player(), and Item::RemoveFromUpdateQueueOf().
| time_t Player::m_Last_tick |
|
protected |
Definition at line 3443 of file Player.h.
Referenced by _LoadDailyQuestStatus(), _SaveDailyQuestStatus(), Player(), ResetDailyQuestStatus(), and SetDailyQuestStatus().
|
private |
Definition at line 3562 of file Player.h.
Referenced by Player(), SetFallInformation(), and UpdateFallInformationIfNeed().
|
private |
Definition at line 3563 of file Player.h.
Referenced by HandleFall(), Player(), SetFallInformation(), and UpdateFallInformationIfNeed().
|
private |
Definition at line 3571 of file Player.h.
Referenced by GetLastGuildInviterGUID(), and SetLastGuildInviterGUID().
|
protected |
Definition at line 3351 of file Player.h.
Referenced by LoadFromDB(), Player(), and UpdateHonorFields().
|
protected |
Definition at line 3493 of file Player.h.
Referenced by GetLastPetNumber(), Player(), and SetLastPetNumber().
|
protected |
Definition at line 3404 of file Player.h.
Referenced by Player(), SetLastPotionId(), and UpdatePotionCooldown().
| time_t Player::m_logintime |
Definition at line 1421 of file Player.h.
Referenced by AddItemToBuyBackSlot(), and Player().
|
protected |
Definition at line 3354 of file Player.h.
Referenced by GetLootGUID(), Player(), and SetLootGUID().
|
protected |
Definition at line 3355 of file Player.h.
Referenced by AddLootedObject(), GetLootView(), IsLootingObject(), RemoveLootedObject(), and SendLoot().
|
protected |
Definition at line 3402 of file Player.h.
Referenced by _LoadMail(), _SaveMail(), AddMail(), GetMail(), GetMailBegin(), GetMailEnd(), GetMailSize(), RemoveMail(), UpdateNextMailTimeAndUnreads(), and ~Player().
| bool Player::m_mailsLoaded |
Definition at line 1927 of file Player.h.
Referenced by _LoadMail(), _SaveMail(), WorldSession::HandleGetMailList(), IsMailsLoaded(), Player(), and ObjectMgr::ReturnOrDeleteOldMails().
| bool Player::m_mailsUpdated |
Definition at line 1928 of file Player.h.
Referenced by _SaveMail(), WorldSession::HandleMailCreateTextItem(), WorldSession::HandleMailTakeItem(), WorldSession::HandleMailTakeMoney(), Player(), and SaveToDB().
|
private |
Definition at line 3558 of file Player.h.
Referenced by GetMapRef(), and SetMap().
|
private |
Definition at line 3565 of file Player.h.
Referenced by HandleDrowning(), IsMirrorTimerActive(), Player(), and StopMirrorTimer().
|
private |
Definition at line 3566 of file Player.h.
Referenced by HandleDrowning(), Player(), UpdateMirrorTimers(), and UpdateUnderwaterState().
|
private |
Definition at line 3567 of file Player.h.
Referenced by HandleDrowning(), Player(), and UpdateMirrorTimers().
|
protected |
Definition at line 3441 of file Player.h.
Referenced by _LoadMonthlyQuestStatus(), _SaveMonthlyQuestStatus(), Player(), ResetMonthlyQuestStatus(), and SetMonthlyQuestStatus().
|
protected |
Definition at line 3268 of file Player.h.
Referenced by _LoadMonthlyQuestStatus(), _SaveMonthlyQuestStatus(), ResetMonthlyQuestStatus(), SatisfyQuestMonth(), and SetMonthlyQuestStatus().
| Unit* Player::m_mover |
Definition at line 2807 of file Player.h.
Referenced by CanAlwaysSee(), WorldSession::HandleOpenItemOpcode(), Unit::KnockbackFrom(), Movement::PacketSender::PacketSender(), Player(), ReadMovementInfo(), SendComboPoints(), and SetMover().
| time_t Player::m_nextMailDelivereTime |
Definition at line 2025 of file Player.h.
Referenced by _LoadMailInit(), AddNewMailDeliverTime(), Player(), Update(), and UpdateNextMailTimeAndUnreads().
|
protected |
Definition at line 3358 of file Player.h.
Referenced by GetSaveTimer(), LoadFromDB(), Player(), SaveToDB(), SetSaveTimer(), and Update().
|
private |
Definition at line 3585 of file Player.h.
Referenced by Player(), RemovePet(), and UnsummonPetTemporaryIfAny().
|
protected |
Definition at line 3486 of file Player.h.
Referenced by GetOriginalGroup(), GetOriginalGroupRef(), GetOriginalSubGroup(), and SetOriginalGroup().
| uint32 Player::m_Played_time[MAX_PLAYED_TIME_INDEX] |
Definition at line 1423 of file Player.h.
Referenced by Create(), GetLevelPlayedTime(), GetTotalPlayedTime(), GiveLevel(), LoadFromDB(), SaveToDB(), and Update().
|
protected |
Definition at line 3237 of file Player.h.
Referenced by Player(), and Regenerate().
|
protected |
Definition at line 3391 of file Player.h.
Referenced by _LoadQuestObjectiveStatus(), AddQuest(), AdjustQuestReqItemCount(), GetQuestObjectiveCounter(), ItemAddedQuestCheck(), ItemRemovedQuestCheck(), KillCreditGO(), KilledMonsterCredit(), KilledPlayerCredit(), QuestObjectiveSatisfy(), RemoveActiveQuest(), and TalkedToCreature().
|
protected |
Definition at line 3393 of file Player.h.
Referenced by _SaveQuestObjectiveStatus(), AddQuest(), ItemAddedQuestCheck(), ItemRemovedQuestCheck(), KillCreditGO(), KilledMonsterCredit(), KilledPlayerCredit(), QuestObjectiveSatisfy(), RemoveActiveQuest(), and TalkedToCreature().
|
protected |
Definition at line 3390 of file Player.h.
Referenced by _LoadQuestStatus(), _SaveQuestStatus(), AddQuest(), AreaExploredOrEventHappens(), CanCompleteQuest(), CanShareQuest(), FailQuest(), GetQuestStatus(), getQuestStatusMap(), HasQuestForGO(), HasQuestForItem(), IsActiveQuest(), ItemAddedQuestCheck(), ItemRemovedQuestCheck(), KillCreditGO(), KilledMonsterCredit(), KilledPlayerCredit(), MoneyChanged(), QuestObjectiveSatisfy(), RemoveActiveQuest(), ReputationChangedQuestCheck(), SatisfyQuestPrevChain(), SetQuestStatus(), TalkedToCreature(), and Update().
|
protected |
Definition at line 3392 of file Player.h.
Referenced by _SaveQuestStatus(), AddQuest(), AdjustQuestReqItemCount(), AreaExploredOrEventHappens(), ItemAddedQuestCheck(), ItemRemovedQuestCheck(), KillCreditGO(), KilledMonsterCredit(), KilledPlayerCredit(), QuestObjectiveSatisfy(), RemoveActiveQuest(), SetQuestStatus(), TalkedToCreature(), and Update().
|
protected |
Definition at line 3362 of file Player.h.
Referenced by GetDifficulty(), GetRaidDifficulty(), Player(), and SetRaidDifficulty().
|
protected |
| uint32 Player::m_recallMap |
Definition at line 2837 of file Player.h.
Referenced by misc_commandscript::HandleRecallCommand(), and SaveRecallPosition().
| float Player::m_recallO |
Definition at line 2841 of file Player.h.
Referenced by misc_commandscript::HandleRecallCommand(), and SaveRecallPosition().
| float Player::m_recallX |
Definition at line 2838 of file Player.h.
Referenced by misc_commandscript::HandleRecallCommand(), and SaveRecallPosition().
| float Player::m_recallY |
Definition at line 2839 of file Player.h.
Referenced by misc_commandscript::HandleRecallCommand(), and SaveRecallPosition().
| float Player::m_recallZ |
Definition at line 2840 of file Player.h.
Referenced by misc_commandscript::HandleRecallCommand(), and SaveRecallPosition().
|
private |
Definition at line 3527 of file Player.h.
Referenced by _SaveInventory(), AddRefundReference(), and DeleteRefundReference().
|
protected |
Definition at line 3233 of file Player.h.
Referenced by Player(), Regenerate(), RegenerateAll(), and setRegenTimerCount().
|
private |
Definition at line 3588 of file Player.h.
Referenced by GetReputationMgr(), GetReputationMgr(), LoadFromDB(), Player(), SaveToDB(), SendInitialPacketsBeforeAddToMap(), and ~Player().
|
protected |
Definition at line 3477 of file Player.h.
Referenced by GetRestBonus(), LoadFromDB(), Player(), SaveToDB(), and SetRestBonus().
|
protected |
Definition at line 3456 of file Player.h.
Referenced by GetRestTime(), Player(), and SetRestTime().
|
protected |
Definition at line 3395 of file Player.h.
Referenced by _LoadQuestStatusRewarded(), CanCompleteQuest(), GetQuestRewardStatus(), GetQuestStatus(), GetRewardedQuestCount(), getRewardedQuests(), IsQuestRewarded(), learnQuestRewardedSpells(), RemoveRewardedQuest(), RewardQuest(), SatisfyQuestExclusiveGroup(), and SatisfyQuestPreviousQuest().
|
protected |
Definition at line 3396 of file Player.h.
Referenced by _SaveQuestStatus(), RemoveRewardedQuest(), and RewardQuest().
|
protected |
Definition at line 3503 of file Player.h.
Referenced by GetBaseRune(), GetCurrentRune(), GetLastUsedRune(), GetRuneCooldown(), GetRunesState(), InitRunes(), Player(), RemoveRunesByAuraEffect(), RestoreBaseRune(), SetBaseRune(), SetCurrentRune(), SetLastUsedRune(), SetRuneConvertAura(), SetRuneCooldown(), and ~Player().
|
protected |
Definition at line 3442 of file Player.h.
Referenced by _LoadSeasonalQuestStatus(), _SaveSeasonalQuestStatus(), Player(), ResetSeasonalQuestStatus(), and SetSeasonalQuestStatus().
|
protected |
Definition at line 3269 of file Player.h.
Referenced by _LoadSeasonalQuestStatus(), _SaveSeasonalQuestStatus(), ResetSeasonalQuestStatus(), SatisfyQuestSeasonal(), and SetSeasonalQuestStatus().
| WorldObject* Player::m_seer |
Definition at line 2808 of file Player.h.
Referenced by Player(), SetSeer(), SetViewpoint(), UpdateVisibilityForPlayer(), Skyfire::CreatureRelocationNotifier::Visit(), Skyfire::DelayedUnitRelocation::Visit(), Skyfire::MessageDistDeliverer::Visit(), Skyfire::MessageDistDeliverer::Visit(), and Skyfire::PlayerRelocationNotifier::Visit().
|
protected |
Definition at line 3430 of file Player.h.
Referenced by Create(), GetSession(), Player(), SaveToDB(), SendDirectMessage(), SendLoot(), and SwapItem().
|
protected |
Definition at line 3482 of file Player.h.
Referenced by GetSocial(), LoadFromDB(), and Player().
|
protected |
Definition at line 3360 of file Player.h.
Referenced by Player(), and UpdateSpeakTime().
|
protected |
Definition at line 3359 of file Player.h.
Referenced by Player(), and UpdateSpeakTime().
|
private |
Definition at line 3590 of file Player.h.
Referenced by _SaveSpellCooldowns(), AddSpellCooldown(), ApplyEquipCooldown(), GetSpellCooldownDelay(), GetSpellCooldownMap(), GetSpellCooldowns(), HasSpellCooldown(), ModifySpellCooldown(), RemoveAllSpellCooldown(), RemoveArenaSpellCooldowns(), RemoveSpellCategoryCooldown(), RemoveSpellCooldown(), SendClearAllCooldowns(), SendInitialSpells(), and SendSpellCooldowns().
|
protected |
Definition at line 3419 of file Player.h.
Referenced by AddSpellMod(), ApplySpellMod(), RemoveSpellMods(), and RestoreSpellMods().
| Spell* Player::m_spellModTakingSpell |
Definition at line 3139 of file Player.h.
Referenced by ApplySpellMod(), Player(), SetSpellModTakingSpell(), and Update().
|
protected |
Definition at line 3417 of file Player.h.
Referenced by ApplyReforgeEnchantment(), ApplySpellPenetrationBonus(), GetSpellPenetrationItemMod(), and Player().
|
protected |
Definition at line 3403 of file Player.h.
Referenced by _SaveSpells(), addSpell(), AddTemporarySpell(), GetSpellMap(), GetSpellMap(), HasActiveSpell(), HasSpell(), learnQuestRewardedSpells(), learnSpell(), PrepareGossipMenu(), ProhibitSpellSchool(), removeSpell(), RemoveTemporarySpell(), SendInitialSpells(), and ~Player().
| uint32 Player::m_stableSlots |
Definition at line 1723 of file Player.h.
Referenced by LoadFromDB(), Player(), and SaveToDB().
|
protected |
Definition at line 3496 of file Player.h.
Referenced by Player(), SetSummonPoint(), and SummonIfPossible().
|
protected |
Definition at line 3497 of file Player.h.
Referenced by Player(), SetSummonPoint(), and SummonIfPossible().
|
protected |
Definition at line 3498 of file Player.h.
Referenced by Player(), SetSummonPoint(), and SummonIfPossible().
|
protected |
Definition at line 3499 of file Player.h.
Referenced by Player(), SetSummonPoint(), and SummonIfPossible().
|
protected |
Definition at line 3500 of file Player.h.
Referenced by Player(), SetSummonPoint(), and SummonIfPossible().
|
protected |
| PlayerTaxi Player::m_taxi |
Definition at line 1351 of file Player.h.
Referenced by ActivateTaxiPathTo(), CleanupAfterTaxiFlight(), ContinueTaxiFlight(), FlightPathMovementGenerator::DoFinalize(), WorldSession::HandleMoveSplineDoneOpcode(), InitTaxiNodesForLevel(), LoadFromDB(), ProcessDelayedOperations(), SaveToDB(), WorldSession::SendTaxiMenu(), SetBattlegroundEntryPoint(), and LuaPlayer::Teleport().
|
protected |
Definition at line 3357 of file Player.h.
Referenced by GetTeam(), GetTeamId(), and setFactionForRace().
|
private |
Definition at line 3574 of file Player.h.
Referenced by GetTeleportDest(), TeleportTo(), and Update().
|
private |
Definition at line 3575 of file Player.h.
Referenced by Player(), TeleportTo(), and Update().
|
private |
Definition at line 3584 of file Player.h.
Referenced by GetTemporaryUnsummonedPetNumber(), Player(), RemovePet(), ResummonPetTemporaryUnSummonedIfAny(), SetTemporaryUnsummonedPetNumber(), and UnsummonPetTemporaryIfAny().
|
protected |
Definition at line 3266 of file Player.h.
Referenced by AddTimedQuest(), RemoveTimedQuest(), SatisfyQuestTimed(), and Update().
|
private |
Definition at line 3597 of file Player.h.
Referenced by ResetTimeSync().
|
private |
Definition at line 3595 of file Player.h.
Referenced by SendTimeSync().
|
private |
Definition at line 3598 of file Player.h.
Referenced by ResetTimeSync(), and SendTimeSync().
|
private |
Definition at line 3596 of file Player.h.
Referenced by ResetTimeSync(), SendTimeSync(), and Update().
|
protected |
Definition at line 3437 of file Player.h.
Referenced by GetTradeData(), GetTrader(), WorldSession::HandleAcceptTradeOpcode(), WorldSession::HandleInitiateTradeOpcode(), Player(), and TradeCancel().
|
protected |
Definition at line 3446 of file Player.h.
Referenced by CanEquipItem(), EquipItem(), Player(), setWeaponChangeTimer(), and Update().
|
protected |
Definition at line 3458 of file Player.h.
Referenced by AddWeaponProficiency(), GetWeaponProficiency(), and Player().
|
protected |
Definition at line 3440 of file Player.h.
Referenced by _LoadWeeklyQuestStatus(), _SaveWeeklyQuestStatus(), Player(), ResetWeeklyQuestStatus(), and SetWeeklyQuestStatus().
|
protected |
Definition at line 3267 of file Player.h.
Referenced by _LoadWeeklyQuestStatus(), _SaveWeeklyQuestStatus(), ResetWeeklyQuestStatus(), SatisfyQuestWeek(), and SetWeeklyQuestStatus().
|
protected |
Definition at line 3449 of file Player.h.
Referenced by Player(), RemoveFromWorld(), Update(), UpdateAreaDependentAuras(), and UpdateZone().
|
protected |
Definition at line 3450 of file Player.h.
Referenced by Player(), Update(), and UpdateZone().
| ItemMap Player::mMitems |
Definition at line 2029 of file Player.h.
Referenced by AddMItem(), GetMItem(), RemoveFromWorld(), RemoveMItem(), and ~Player().
|
private |
Definition at line 3577 of file Player.h.
Referenced by IsBeingTeleported(), IsBeingTeleportedFar(), Player(), and SetSemaphoreTeleportFar().
|
private |
Definition at line 3576 of file Player.h.
Referenced by IsBeingTeleported(), IsBeingTeleportedNear(), Player(), and SetSemaphoreTeleportNear().
|
protected |
Definition at line 3398 of file Player.h.
Referenced by _LoadSkills(), _SaveSkills(), GetBaseSkillValue(), GetMaxSkillValue(), GetPureMaxSkillValue(), GetPureSkillValue(), GetSkillPermBonusValue(), GetSkillStep(), GetSkillTempBonusValue(), GetSkillValue(), HasSkill(), ModifySkillBonus(), SetSkill(), UpdateSkill(), UpdateSkillPro(), UpdateSkillsForLevel(), and UpdateSkillsToMaxSkillsForLevel().
| PlayerMenu* Player::PlayerTalkClass |
Definition at line 2680 of file Player.h.
Referenced by ScriptMgr::GetDialogStatus(), ScriptMgr::GetDialogStatus(), LuaPlayer::GossipClearMenu(), LuaPlayer::GossipComplete(), LuaPlayer::GossipMenuAddItem(), LuaPlayer::GossipSendMenu(), OPvPCapturePointZM_GraveYard::HandleGossipOption(), HookMgr::HandleGossipSelectOption(), HookMgr::HandleGossipSelectOption(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), Creature::isCanInteractWithBattleMaster(), HookMgr::OnGossipHello(), HookMgr::OnGossipHello(), npc_Spirit_of_Master_Shang_Xi::OnGossipHello(), ScriptMgr::OnGossipHello(), ScriptMgr::OnGossipHello(), HookMgr::OnGossipSelect(), HookMgr::OnGossipSelect(), npc_marshal_dughan::OnGossipSelect(), npc_Spirit_of_Master_Shang_Xi::OnGossipSelect(), OnGossipSelect(), HookMgr::OnGossipSelectCode(), HookMgr::OnGossipSelectCode(), ScriptMgr::OnQuestAccept(), ScriptMgr::OnQuestAccept(), ScriptMgr::OnQuestAccept(), ScriptMgr::OnQuestComplete(), ScriptMgr::OnQuestReward(), ScriptMgr::OnQuestReward(), ScriptMgr::OnQuestSelect(), HookMgr::OnUse(), Player(), PrepareGossipMenu(), PrepareQuestMenu(), SendPreparedGossip(), SendPreparedQuest(), LuaPlayer::SendQuestTemplate(), and ~Player().
| PvPInfo Player::pvpInfo |
Definition at line 2233 of file Player.h.
Referenced by AddQuest(), Spell::EffectQuestClear(), WorldSession::HandleMoveTeleportAck(), quest_commandscript::HandleQuestRemove(), WorldSession::HandleTogglePvP(), RewardQuest(), UpdateArea(), UpdatePvP(), UpdatePvPFlag(), UpdatePvPState(), and UpdateZone().
|
protected |
Definition at line 3478 of file Player.h.
Referenced by GetRestType(), Player(), and SetRestType().
|
protected |
Definition at line 3467 of file Player.h.
Referenced by GetTimeInnEnter(), InnEnter(), Player(), and UpdateInnerTime().
| uint8 Player::unReadMails |
Definition at line 2024 of file Player.h.
Referenced by _LoadMailInit(), AddNewMailDeliverTime(), Player(), Update(), and UpdateNextMailTimeAndUnreads().
|
protected |
Definition at line 3232 of file Player.h.
Referenced by AddWhisperWhiteList(), ClearWhisperWhiteList(), IsInWhisperWhiteList(), and RemoveFromWhisperWhiteList().