TrinityCore
Loading...
Searching...
No Matches
Unit Class Referenceabstract

#include <Unit.h>

+ Inheritance diagram for Unit:

Public Types

typedef std::set< Unit * > AttackerSet
 
typedef std::set< Unit * > ControlList
 
typedef std::vector< Unit * > UnitVector
 
typedef std::multimap< uint32, Aura * > AuraMap
 
typedef std::pair< AuraMap::const_iterator, AuraMap::const_iterator > AuraMapBounds
 
typedef std::pair< AuraMap::iterator, AuraMap::iterator > AuraMapBoundsNonConst
 
typedef std::multimap< uint32, AuraApplication * > AuraApplicationMap
 
typedef std::pair< AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator > AuraApplicationMapBounds
 
typedef std::pair< AuraApplicationMap::iterator, AuraApplicationMap::iterator > AuraApplicationMapBoundsNonConst
 
typedef std::multimap< AuraStateType, AuraApplication * > AuraStateAurasMap
 
typedef std::pair< AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator > AuraStateAurasMapBounds
 
typedef std::list< AuraEffect * > AuraEffectList
 
typedef std::list< Aura * > AuraList
 
typedef std::list< AuraApplication * > AuraApplicationList
 
typedef std::array< DiminishingReturn, DIMINISHING_MAXDiminishing
 
typedef std::vector< std::pair< uint8, AuraApplication * > > AuraApplicationProcContainer
 
typedef std::map< uint8, AuraApplication * > VisibleAuraMap
 

Public Member Functions

virtual ~Unit ()
 
bool IsAIEnabled () const
 
void AIUpdateTick (uint32 diff)
 
UnitAIGetAI () const
 
void ScheduleAIChange ()
 
void PushAI (UnitAI *newAI)
 
bool PopAI ()
 
void AddToWorld () override
 
void RemoveFromWorld () override
 
void CleanupBeforeRemoveFromMap (bool finalCleanup)
 
void CleanupsBeforeDelete (bool finalCleanup=true) override
 
uint32 GetDynamicFlags () const override
 
void ReplaceAllDynamicFlags (uint32 flag) override
 
virtual bool IsAffectedByDiminishingReturns () const
 
DiminishingLevels GetDiminishing (DiminishingGroup group) const
 
void IncrDiminishing (SpellInfo const *auraSpellInfo, bool triggered)
 
bool ApplyDiminishingToDuration (SpellInfo const *auraSpellInfo, bool triggered, int32 &duration, WorldObject *caster, DiminishingLevels previousLevel) const
 
void ApplyDiminishingAura (DiminishingGroup group, bool apply)
 
void ClearDiminishings ()
 
virtual void Update (uint32 time) override
 
void Heartbeat () override
 
void setAttackTimer (WeaponAttackType type, uint32 time)
 
void resetAttackTimer (WeaponAttackType type=BASE_ATTACK)
 
uint32 getAttackTimer (WeaponAttackType type) const
 
bool isAttackReady (WeaponAttackType type=BASE_ATTACK) const
 
bool haveOffhandWeapon () const
 
bool CanDualWield () const
 
virtual void SetCanDualWield (bool value)
 
float GetCombatReach () const override
 
void SetCombatReach (float combatReach)
 
float GetBoundingRadius () const
 
void SetBoundingRadius (float boundingRadius)
 
bool IsWithinCombatRange (Unit const *obj, float dist2compare) const
 
bool IsWithinMeleeRange (Unit const *obj) const
 
bool IsWithinMeleeRangeAt (Position const &pos, Unit const *obj) const
 
float GetMeleeRange (Unit const *target) const
 
virtual SpellSchoolMask GetMeleeDamageSchoolMask (WeaponAttackType attackType=BASE_ATTACK, uint8 damageIndex=0) const =0
 
void _addAttacker (Unit *pAttacker)
 
void _removeAttacker (Unit *pAttacker)
 
UnitgetAttackerForHelper () const
 
bool Attack (Unit *victim, bool meleeAttack)
 
void CastStop (uint32 except_spellid=0)
 
bool AttackStop ()
 
void RemoveAllAttackers ()
 
AttackerSet const & getAttackers () const
 
bool isAttackingPlayer () const
 
UnitGetVictim () const
 
UnitEnsureVictim () const
 
void ValidateAttackersAndOwnTarget ()
 
void CombatStop (bool includingCast=false, bool mutualPvP=true)
 
void CombatStopWithPets (bool includingCast=false)
 
void StopAttackFaction (uint32 faction_id)
 
UnitSelectNearbyTarget (Unit *exclude=nullptr, float dist=NOMINAL_MELEE_RANGE) const
 
void SendMeleeAttackStop (Unit *victim=nullptr)
 
void SendMeleeAttackStart (Unit *victim)
 
void AddUnitState (uint32 f)
 
bool HasUnitState (const uint32 f) const
 
void ClearUnitState (uint32 f)
 
bool CanFreeMove () const
 
uint32 HasUnitTypeMask (uint32 mask) const
 
void AddUnitTypeMask (uint32 mask)
 
bool IsSummon () const
 
bool IsGuardian () const
 
bool IsPet () const
 
bool IsHunterPet () const
 
bool IsTotem () const
 
bool IsVehicle () const
 
uint8 GetLevel () const
 
uint8 GetLevelForTarget (WorldObject const *) const override
 
void SetLevel (uint8 lvl, bool sendUpdate=true)
 
uint8 GetRace () const
 
void SetRace (uint8 race)
 
uint32 GetRaceMask () const
 
uint8 GetClass () const
 
void SetClass (uint8 classId)
 
uint32 GetClassMask () const
 
Gender GetGender () const
 
void SetGender (Gender gender)
 
virtual Gender GetNativeGender () const
 
virtual void SetNativeGender (Gender gender)
 
float GetStat (Stats stat) const
 
void SetStat (Stats stat, int32 val)
 
uint32 GetArmor () const
 
void SetArmor (int32 val)
 
int32 GetResistance (SpellSchools school) const
 
int32 GetResistance (SpellSchoolMask mask) const
 
void SetResistance (SpellSchools school, int32 val)
 
uint32 GetHealth () const
 
uint32 GetMaxHealth () const
 
bool IsFullHealth () const
 
bool HealthBelowPct (int32 pct) const
 
bool HealthBelowPctDamaged (int32 pct, uint32 damage) const
 
bool HealthAbovePct (int32 pct) const
 
bool HealthAbovePctHealed (int32 pct, uint32 heal) const
 
float GetHealthPct () const
 
uint32 CountPctFromMaxHealth (int32 pct) const
 
uint32 CountPctFromCurHealth (int32 pct) const
 
void SetHealth (uint32 val)
 
void SetMaxHealth (uint32 val)
 
void SetFullHealth ()
 
int32 ModifyHealth (int32 val)
 
int32 GetHealthGain (int32 dVal)
 
Powers GetPowerType () const
 
void SetPowerType (Powers power, bool sendUpdate=true)
 
void UpdateDisplayPower ()
 
uint32 GetPower (Powers power) const
 
int32 GetMinPower (Powers) const
 
uint32 GetMaxPower (Powers power) const
 
float GetPowerPct (Powers power) const
 
int32 CountPctFromMaxPower (Powers power, int32 pct) const
 
void SetPower (Powers power, uint32 val, bool withPowerUpdate=true, bool force=false)
 
void SetMaxPower (Powers power, uint32 val)
 
void SetFullPower (Powers power)
 
int32 ModifyPower (Powers power, int32 val, bool withPowerUpdate=true)
 
uint32 GetAttackTime (WeaponAttackType att) const
 
void SetAttackTime (WeaponAttackType att, uint32 val)
 
void ApplyAttackTimePercentMod (WeaponAttackType att, float val, bool apply)
 
void ApplyCastTimePercentMod (float val, bool apply)
 
void SetModCastingSpeed (float castingSpeed)
 
UnitFlags GetUnitFlags () const
 
bool HasUnitFlag (UnitFlags flags) const
 
void SetUnitFlag (UnitFlags flags)
 
void RemoveUnitFlag (UnitFlags flags)
 
void ReplaceAllUnitFlags (UnitFlags flags)
 
UnitFlags2 GetUnitFlags2 () const
 
bool HasUnitFlag2 (UnitFlags2 flags) const
 
void SetUnitFlag2 (UnitFlags2 flags)
 
void RemoveUnitFlag2 (UnitFlags2 flags)
 
void ReplaceAllUnitFlags2 (UnitFlags2 flags)
 
void SetCreatedBySpell (int32 spellId)
 
Emote GetEmoteState () const
 
void SetEmoteState (Emote emote)
 
SheathState GetSheath () const
 
virtual void SetSheath (SheathState sheathed)
 
uint32 GetFaction () const override
 
void SetFaction (uint32 faction) override
 
bool IsInPartyWith (Unit const *unit) const
 
bool IsInRaidWith (Unit const *unit) const
 
void GetPartyMembers (std::list< Unit * > &units)
 
bool IsContestedGuard () const
 
UnitPVPStateFlags GetPvpFlags () const
 
bool HasPvpFlag (UnitPVPStateFlags flags) const
 
void SetPvpFlag (UnitPVPStateFlags flags)
 
void RemovePvpFlag (UnitPVPStateFlags flags)
 
void ReplaceAllPvpFlags (UnitPVPStateFlags flags)
 
bool IsInSanctuary () const
 
bool IsPvP () const
 
bool IsFFAPvP () const
 
virtual void SetPvP (bool state)
 
UnitPetFlag GetPetFlags () const
 
bool HasPetFlag (UnitPetFlag flags) const
 
void SetPetFlag (UnitPetFlag flags)
 
void RemovePetFlag (UnitPetFlag flags)
 
void ReplaceAllPetFlags (UnitPetFlag flags)
 
uint32 GetCreatureType () const
 
uint32 GetCreatureTypeMask () const
 
UnitStandStateType GetStandState () const
 
bool IsSitState () const
 
bool IsStandState () const
 
void SetStandState (UnitStandStateType state)
 
void SetVisFlag (UnitVisFlags flags)
 
void RemoveVisFlag (UnitVisFlags flags)
 
void ReplaceAllVisFlags (UnitVisFlags flags)
 
AnimTier GetAnimTier () const
 
void SetAnimTier (AnimTier animTier)
 
bool IsMounted () const
 
uint32 GetMountDisplayId () const
 
void SetMountDisplayId (uint32 mountDisplayId)
 
void Mount (uint32 mount, uint32 vehicleId=0, uint32 creatureEntry=0)
 
void Dismount ()
 
uint32 GetMaxSkillValueForLevel (Unit const *target=nullptr) const
 
void KillSelf (bool durabilityLoss=true)
 
void GetProcAurasTriggeredOnEvent (AuraApplicationProcContainer &aurasTriggeringProc, AuraApplicationList *procAuras, ProcEventInfo &eventInfo)
 
void TriggerAurasProcOnEvent (Unit *actionTarget, uint32 typeMaskActor, uint32 typeMaskActionTarget, uint32 spellTypeMask, uint32 spellPhaseMask, uint32 hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo)
 
void TriggerAurasProcOnEvent (ProcEventInfo &eventInfo, AuraApplicationProcContainer &procAuras)
 
void HandleEmoteCommand (Emote emoteId)
 
void AttackerStateUpdate (Unit *victim, WeaponAttackType attType=BASE_ATTACK, bool extra=false)
 
void CalculateMeleeDamage (Unit *victim, CalcDamageInfo *damageInfo, WeaponAttackType attackType=BASE_ATTACK)
 
void DealMeleeDamage (CalcDamageInfo *damageInfo, bool durabilityLoss)
 
void HandleProcExtraAttackFor (Unit *victim, uint32 count)
 
void SetLastExtraAttackSpell (uint32 spellId)
 
uint32 GetLastExtraAttackSpell () const
 
void AddExtraAttacks (uint32 count)
 
void SetLastDamagedTargetGuid (ObjectGuid guid)
 
ObjectGuid GetLastDamagedTargetGuid () const
 
void CalculateSpellDamageTaken (SpellNonMeleeDamage *damageInfo, int32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=BASE_ATTACK, bool crit=false, bool blocked=false, Spell *spell=nullptr)
 
void DealSpellDamage (SpellNonMeleeDamage const *damageInfo, bool durabilityLoss)
 
float GetMeleeCritChanceReduction () const
 
float GetRangedCritChanceReduction () const
 
float GetSpellCritChanceReduction () const
 
uint32 GetMeleeCritDamageReduction (uint32 damage) const
 
uint32 GetRangedCritDamageReduction (uint32 damage) const
 
uint32 GetSpellCritDamageReduction (uint32 damage) const
 
uint32 GetMeleeDamageReduction (uint32 damage) const
 
uint32 GetRangedDamageReduction (uint32 damage) const
 
uint32 GetSpellDamageReduction (uint32 damage) const
 
virtual bool CanApplyResilience () const
 
int32 CalculateAOEAvoidance (int32 damage, uint32 schoolMask, ObjectGuid const &casterGuid) const
 
float MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, int32 skillDiff, uint32 spellId) const override
 
SpellMissInfo MeleeSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const override
 
float GetUnitDodgeChance (WeaponAttackType attType, Unit const *victim) const
 
float GetUnitParryChance (WeaponAttackType attType, Unit const *victim) const
 
float GetUnitBlockChance (WeaponAttackType attType, Unit const *victim) const
 
float GetUnitMissChance () const
 
float GetUnitCriticalChanceDone (WeaponAttackType attackType) const
 
float GetUnitCriticalChanceTaken (Unit const *attacker, WeaponAttackType attackType, float critDone) const
 
float GetUnitCriticalChanceAgainst (WeaponAttackType attackType, Unit const *victim) const
 
int32 GetMechanicResistChance (SpellInfo const *spellInfo) const
 
bool CanUseAttackType (uint8 attacktype) const
 
virtual uint32 GetShieldBlockValue () const =0
 
uint32 GetShieldBlockValue (uint32 soft_cap, uint32 hard_cap) const
 
uint32 GetDefenseSkillValue (Unit const *target=nullptr) const
 
uint32 GetWeaponSkillValue (WeaponAttackType attType, Unit const *target=nullptr) const
 
float GetWeaponProcChance () const
 
float GetPPMProcChance (uint32 WeaponSpeed, float PPM, SpellInfo const *spellProto) const
 
MeleeHitOutcome RollMeleeOutcomeAgainst (Unit const *victim, WeaponAttackType attType) const
 
NPCFlags GetNpcFlags () const
 
bool HasNpcFlag (NPCFlags flags) const
 
void SetNpcFlag (NPCFlags flags)
 
void RemoveNpcFlag (NPCFlags flags)
 
void ReplaceAllNpcFlags (NPCFlags flags)
 
bool IsVendor () const
 
bool IsTrainer () const
 
bool IsQuestGiver () const
 
bool IsGossip () const
 
bool IsTaxi () const
 
bool IsGuildMaster () const
 
bool IsBattleMaster () const
 
bool IsBanker () const
 
bool IsInnkeeper () const
 
bool IsSpiritHealer () const
 
bool IsSpiritGuide () const
 
bool IsTabardDesigner () const
 
bool IsAuctioner () const
 
bool IsArmorer () const
 
bool IsServiceProvider () const
 
bool IsSpiritService () const
 
bool IsCritter () const
 
bool IsInFlight () const
 
bool CanHaveThreatList () const
 ====================== THREAT & COMBAT ====================
 
virtual bool IsEngaged () const
 
bool IsEngagedBy (Unit const *who) const
 
void EngageWithTarget (Unit *who)
 
CombatManagerGetCombatManager ()
 
CombatManager const & GetCombatManager () const
 
void AtTargetAttacked (Unit *target, bool canInitialAggro)
 
bool IsImmuneToAll () const
 
void SetImmuneToAll (bool apply, bool keepCombat)
 
virtual void SetImmuneToAll (bool apply)
 
bool IsImmuneToPC () const
 
void SetImmuneToPC (bool apply, bool keepCombat)
 
virtual void SetImmuneToPC (bool apply)
 
bool IsImmuneToNPC () const
 
void SetImmuneToNPC (bool apply, bool keepCombat)
 
virtual void SetImmuneToNPC (bool apply)
 
bool IsInCombat () const
 
bool IsInCombatWith (Unit const *who) const
 
void SetInCombatWith (Unit *enemy, bool addSecondUnitSuppressed=false)
 
void ClearInCombat ()
 
void UpdatePetCombatState ()
 
bool IsThreatened () const
 
bool IsThreatenedBy (Unit const *who) const
 
ThreatManagerGetThreatManager ()
 
ThreatManager const & GetThreatManager () const
 
void SendClearTarget ()
 
bool HasAuraTypeWithFamilyFlags (AuraType auraType, uint32 familyName, flag96 familyFlags) const
 
virtual bool HasSpell (uint32) const
 
bool HasBreakableByDamageAuraType (AuraType type, uint32 excludeAura=0) const
 
bool HasBreakableByDamageCrowdControlAura (Unit *excludeCasterChannel=nullptr) const
 
bool HasStealthAura () const
 
bool HasInvisibilityAura () const
 
bool IsFeared () const
 
bool IsRooted () const
 
bool IsPolymorphed () const
 
bool IsFrozen () const
 
bool isTargetableForAttack (bool checkFakeDeath=true) const
 
bool IsInWater () const
 
bool IsUnderWater () const
 
bool isInAccessiblePlaceFor (Creature const *c) const
 
void SendHealSpellLog (HealInfo &healInfo, bool critical=false)
 
int32 HealBySpell (HealInfo &healInfo, bool critical=false)
 
void SendEnergizeSpellLog (Unit *victim, uint32 spellId, int32 damage, Powers powerType)
 
void EnergizeBySpell (Unit *victim, uint32 spellId, int32 damage, Powers powerType)
 
void EnergizeBySpell (Unit *victim, SpellInfo const *spellInfo, int32 damage, Powers powerType)
 
AuraAddAura (uint32 spellId, Unit *target)
 
AuraAddAura (SpellInfo const *spellInfo, uint8 effMask, Unit *target)
 
void SetAuraStack (uint32 spellId, Unit *target, uint32 stack)
 
void SendPlaySpellVisualKit (uint32 id, uint32 type) const
 
void DeMorph ()
 
void SendAttackStateUpdate (CalcDamageInfo *damageInfo)
 
void SendAttackStateUpdate (uint32 HitInfo, Unit *target, uint8 SwingType, SpellSchoolMask damageSchoolMask, uint32 Damage, uint32 AbsorbDamage, uint32 Resist, VictimState TargetState, uint32 BlockedAmount)
 
void SendSpellNonMeleeDamageLog (SpellNonMeleeDamage const *log)
 
void SendSpellNonMeleeDamageLog (Unit *target, uint32 spellID, uint32 damage, SpellSchoolMask damageSchoolMask, uint32 absorbedDamage, uint32 resist, bool isPeriodic, uint32 blocked, bool criticalHit=false, bool split=false)
 
void SendPeriodicAuraLog (SpellPeriodicAuraLogInfo *pInfo)
 
void SendSpellDamageResist (Unit *target, uint32 spellId)
 
void SendSpellDamageImmune (Unit *target, uint32 spellId)
 
void NearTeleportTo (Position const &pos, bool casting=false)
 
void NearTeleportTo (float x, float y, float z, float orientation, bool casting=false)
 
void SendTeleportPacket (Position const &pos, bool teleportingTransport=false)
 
virtual bool UpdatePosition (float x, float y, float z, float ang, bool teleport=false)
 
virtual bool UpdatePosition (Position const &pos, bool teleport=false)
 
void UpdateOrientation (float orientation)
 Only server-side orientation update, does not broadcast to client.
 
void UpdateHeight (float newZ)
 Only server-side height update, does not broadcast to client.
 
void SendMoveKnockBack (Player *player, float speedXY, float speedZ, float vcos, float vsin)
 
void KnockbackFrom (float x, float y, float speedXY, float speedZ)
 
void JumpTo (float speedXY, float speedZ, bool forward=true, Optional< Position > dest={})
 
void JumpTo (WorldObject *obj, float speedZ, bool withOrientation=false)
 
void MonsterMoveWithSpeed (float x, float y, float z, float speed, bool generatePath=false, bool forceDestination=false)
 
void SetHoverHeight (float hoverHeight)
 
bool IsGravityDisabled () const
 
bool IsWalking () const
 
bool IsHovering () const
 
bool SetWalk (bool enable)
 
bool SetDisableGravity (bool disable, bool updateAnimTier=true)
 
bool SetFall (bool enable)
 
bool SetSwim (bool enable)
 
bool SetCanFly (bool enable, bool packetOnly=false)
 
bool SetWaterWalking (bool enable)
 
bool SetFeatherFall (bool enable)
 
bool SetHover (bool enable, bool updateAnimTier=true)
 
void SetInFront (WorldObject const *target)
 
void SetFacingTo (float ori, bool force=true, uint32 movementId=EVENT_FACE)
 
void SetFacingToObject (WorldObject const *object, bool force=true, uint32 movementId=EVENT_FACE)
 
bool IsAlive () const
 
bool isDying () const
 
bool isDead () const
 
bool IsGhouled () const
 
DeathState getDeathState () const
 
virtual void setDeathState (DeathState s)
 
ObjectGuid GetOwnerGUID () const override
 
void SetOwnerGUID (ObjectGuid owner)
 
ObjectGuid GetCreatorGUID () const
 
void SetCreatorGUID (ObjectGuid creator)
 
ObjectGuid GetMinionGUID () const
 
void SetMinionGUID (ObjectGuid guid)
 
ObjectGuid GetPetGUID () const
 
void SetPetGUID (ObjectGuid guid)
 
ObjectGuid GetCritterGUID () const
 
void SetCritterGUID (ObjectGuid guid)
 
ObjectGuid GetCharmerGUID () const
 
UnitGetCharmer () const
 
ObjectGuid GetCharmedGUID () const
 
UnitGetCharmed () const
 
bool IsControlledByPlayer () const
 
PlayerGetControllingPlayer () const
 
ObjectGuid GetCharmerOrOwnerGUID () const override
 
bool IsCharmedOwnedByPlayerOrPlayer () const
 
GuardianGetGuardianPet () const
 
MinionGetFirstMinion () const
 
UnitGetCharmerOrOwner () const
 
void SetMinion (Minion *minion, bool apply)
 
void GetAllMinionsByEntry (std::list< Creature * > &Minions, uint32 entry)
 
void RemoveAllMinionsByEntry (uint32 entry)
 
void SetCharm (Unit *target, bool apply)
 
UnitGetNextRandomRaidMemberOrPet (float radius)
 
bool SetCharmedBy (Unit *charmer, CharmType type, AuraApplication const *aurApp=nullptr)
 
void RemoveCharmedBy (Unit *charmer)
 
void RestoreFaction ()
 
UnitGetFirstControlled () const
 
void RemoveAllControlled ()
 
bool IsCharmed () const
 
bool IsCharming () const
 
bool isPossessed () const
 
bool isPossessedByPlayer () const
 
bool isPossessing () const
 
bool isPossessing (Unit *u) const
 
CharmInfoGetCharmInfo ()
 
CharmInfoInitCharmInfo ()
 
void DeleteCharmInfo ()
 
void SetPetNumberForClient (uint32 petNumber)
 
void SetPetNameTimestamp (uint32 timestamp)
 
bool IsCharmerOrSelfPlayer () const
 
UnitGetCharmerOrSelf () const
 
PlayerGetCharmerOrSelfPlayer () const
 
UnitGetCharmedOrSelf () const
 
bool IsMovedByClient () const
 
bool IsMovedByServer () const
 
GameClientGetGameClientMovingMe () const
 
void SetGameClientMovingMe (GameClient *gameClientMovingMe)
 
SharedVisionList const & GetSharedVisionList ()
 
void AddPlayerToVision (Player *player)
 
void RemovePlayerFromVision (Player *player)
 
bool HasSharedVision () const
 
void RemoveBindSightAuras ()
 
void RemoveCharmAuras ()
 
PetCreateTamedPetFrom (Creature *creatureTarget, uint32 spell_id=0)
 
PetCreateTamedPetFrom (uint32 creatureEntry, uint32 spell_id=0)
 
bool InitTamedPet (Pet *pet, uint8 level, uint32 spell_id)
 
Aura_TryStackingOrRefreshingExistingAura (AuraCreateInfo &createInfo)
 
void _AddAura (UnitAura *aura, Unit *caster)
 
AuraApplication_CreateAuraApplication (Aura *aura, uint8 effMask)
 
void _ApplyAuraEffect (Aura *aura, uint8 effIndex)
 
void _ApplyAura (AuraApplication *aurApp, uint8 effMask)
 
void _UnapplyAura (AuraApplicationMap::iterator &i, AuraRemoveMode removeMode)
 
void _UnapplyAura (AuraApplication *aurApp, AuraRemoveMode removeMode)
 
void _RemoveNoStackAurasDueToAura (Aura *aura, bool owned)
 
void _RegisterAuraEffect (AuraEffect *aurEff, bool apply)
 
AuraMapGetOwnedAuras ()
 
AuraMap const & GetOwnedAuras () const
 
void RemoveOwnedAura (AuraMap::iterator &i, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveOwnedAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveOwnedAura (Aura *aura, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
AuraGetOwnedAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, Aura *except=nullptr) const
 
AuraApplicationMapGetAppliedAuras ()
 
AuraApplicationMap const & GetAppliedAuras () const
 
void RemoveAura (AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAura (AuraApplication *aurApp, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAura (Aura *aur, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAppliedAuras (std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveOwnedAuras (std::function< bool(Aura const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAppliedAuras (uint32 spellId, std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveOwnedAuras (uint32 spellId, std::function< bool(Aura const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAurasByType (AuraType auraType, std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAurasDueToSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAuraFromStack (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAurasDueToSpellByDispel (uint32 spellId, uint32 dispellerSpellId, ObjectGuid casterGUID, WorldObject *dispeller, uint8 chargesRemoved=1)
 
void RemoveAurasDueToSpellBySteal (uint32 spellId, ObjectGuid casterGUID, WorldObject *stealer)
 
void RemoveAurasDueToItemSpell (uint32 spellId, ObjectGuid castItemGuid)
 
void RemoveAurasByType (AuraType auraType, ObjectGuid casterGUID=ObjectGuid::Empty, Aura *except=nullptr, bool negative=true, bool positive=true)
 
void RemoveNotOwnSingleTargetAuras (uint32 newPhase=0x0)
 
void RemoveAurasWithInterruptFlags (uint32 flag, uint32 except=0)
 
void RemoveAurasWithAttribute (uint32 flags)
 
void RemoveAurasWithFamily (SpellFamilyNames family, flag96 const &familyFlag, ObjectGuid casterGUID)
 
void RemoveAurasWithMechanic (uint32 mechanicMaskToRemove, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, uint32 exceptSpellId=0, bool withEffectMechanics=false)
 
void RemoveMovementImpairingAuras (bool withRoot)
 
void RemoveAurasByShapeShift ()
 
void RemoveAreaAurasDueToLeaveWorld ()
 
void RemoveAllAuras ()
 
void RemoveArenaAuras ()
 
void RemoveAurasOnEvade ()
 
void RemoveAllAurasOnDeath ()
 
void RemoveAllAurasRequiringDeadTarget ()
 
void RemoveAllAurasExceptType (AuraType type)
 
void RemoveAllAurasExceptType (AuraType type1, AuraType type2)
 
void RemoveAllGroupBuffsFromCaster (ObjectGuid casterGUID)
 
void DelayOwnedAuras (uint32 spellId, ObjectGuid caster, int32 delaytime)
 
void _RemoveAllAuraStatMods ()
 
void _ApplyAllAuraStatMods ()
 
AuraEffectList const & GetAuraEffectsByType (AuraType type) const
 
AuraEffectListGetAuraEffectsByType (AuraType type)
 
AuraListGetSingleCastAuras ()
 
AuraList const & GetSingleCastAuras () const
 
AuraEffectGetAuraEffect (uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
 
AuraEffectGetAuraEffectOfRankedSpell (uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
 
AuraEffectGetAuraEffect (AuraType type, SpellFamilyNames name, uint32 iconId, uint8 effIndex) const
 
AuraEffectGetAuraEffect (AuraType type, SpellFamilyNames family, uint32 familyFlag1, uint32 familyFlag2, uint32 familyFlag3, ObjectGuid casterGUID=ObjectGuid::Empty) const
 
AuraEffectGetDummyAuraEffect (SpellFamilyNames name, uint32 iconId, uint8 effIndex) const
 
AuraApplicationGetAuraApplication (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraApplication *except=nullptr) const
 
AuraGetAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
 
AuraApplicationGetAuraApplicationOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraApplication *except=nullptr) const
 
AuraGetAuraOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
 
void GetDispellableAuraList (WorldObject const *caster, uint32 dispelMask, DispelChargesList &dispelList, bool isReflect=false) const
 
bool HasAuraEffect (uint32 spellId, uint8 effIndex, ObjectGuid caster=ObjectGuid::Empty) const
 
uint32 GetAuraCount (uint32 spellId) const
 
bool HasAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
 
bool HasAuraType (AuraType auraType) const
 
bool HasAuraTypeWithCaster (AuraType auraType, ObjectGuid caster) const
 
bool HasAuraTypeWithMiscvalue (AuraType auraType, int32 miscValue) const
 
bool HasAuraTypeWithAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
bool HasAuraTypeWithValue (AuraType auraType, int32 value) const
 
bool HasAuraTypeWithTriggerSpell (AuraType auratype, uint32 triggerSpell) const
 
bool HasNegativeAuraWithInterruptFlag (uint32 flag, ObjectGuid guid=ObjectGuid::Empty) const
 
bool HasAuraWithMechanic (uint32 mechanicMask) const
 
bool HasStrongerAuraWithDR (SpellInfo const *auraSpellInfo, Unit *caster, bool triggered) const
 
AuraEffectIsScriptOverriden (SpellInfo const *spell, int32 script) const
 
uint32 GetDiseasesByCaster (ObjectGuid casterGUID, bool remove=false)
 
uint32 GetDoTsByCaster (ObjectGuid casterGUID) const
 
int32 GetTotalAuraModifier (AuraType auraType) const
 
float GetTotalAuraMultiplier (AuraType auraType) const
 
int32 GetMaxPositiveAuraModifier (AuraType auraType) const
 
int32 GetMaxNegativeAuraModifier (AuraType auraType) const
 
int32 GetTotalAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
float GetTotalAuraMultiplier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
int32 GetMaxPositiveAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
int32 GetMaxNegativeAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
int32 GetTotalAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
float GetTotalAuraMultiplierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
int32 GetMaxPositiveAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask, AuraEffect const *except=nullptr) const
 
int32 GetMaxNegativeAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
int32 GetTotalAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
float GetTotalAuraMultiplierByMiscValue (AuraType auraType, int32 misc_value) const
 
int32 GetMaxPositiveAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
int32 GetMaxNegativeAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
int32 GetTotalAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
float GetTotalAuraMultiplierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
int32 GetMaxPositiveAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
int32 GetMaxNegativeAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
void UpdateResistanceBuffModsMod (SpellSchools school)
 
void InitStatBuffMods ()
 
void UpdateStatBuffMod (Stats stat)
 
void SetCreateStat (Stats stat, float val)
 
void SetCreateHealth (uint32 val)
 
uint32 GetCreateHealth () const
 
void SetCreateMana (uint32 val)
 
uint32 GetCreateMana () const
 
uint32 GetCreatePowerValue (Powers power) const
 
float GetPosStat (Stats stat) const
 
float GetNegStat (Stats stat) const
 
float GetCreateStat (Stats stat) const
 
uint32 GetChannelSpellId () const
 
void SetChannelSpellId (uint32 channelSpellId)
 
ObjectGuid GetChannelObjectGuid () const
 
void SetChannelObjectGuid (ObjectGuid guid)
 
void SetCurrentCastSpell (Spell *pSpell)
 
void InterruptSpell (CurrentSpellTypes spellType, bool withDelayed=true, bool withInstant=true, SpellCastResult result=SPELL_FAILED_INTERRUPTED, Optional< SpellCastResult > resultOther={})
 
void FinishSpell (CurrentSpellTypes spellType, bool ok=true)
 
bool IsNonMeleeSpellCast (bool withDelayed, bool skipChanneled=false, bool skipAutorepeat=false, bool isAutoshoot=false, bool skipInstant=true) const
 
void InterruptNonMeleeSpells (bool withDelayed, uint32 spellid=0, bool withInstant=true)
 
SpellGetCurrentSpell (CurrentSpellTypes spellType) const
 
SpellGetCurrentSpell (uint32 spellType) const
 
SpellFindCurrentSpellBySpellId (uint32 spell_id) const
 
int32 GetCurrentSpellCastTime (uint32 spell_id) const
 
virtual bool HasSpellFocus (Spell const *=nullptr) const
 
virtual bool IsMovementPreventedByCasting () const
 
SpellHistoryGetSpellHistory ()
 
SpellHistory const * GetSpellHistory () const
 
ShapeshiftForm GetShapeshiftForm () const
 
void SetShapeshiftForm (ShapeshiftForm form)
 
bool IsInFeralForm () const
 
bool IsInDisallowedMountForm () const
 
void HandleStatFlatModifier (UnitMods unitMod, UnitModifierFlatType modifierType, float amount, bool apply)
 
void ApplyStatPctModifier (UnitMods unitMod, UnitModifierPctType modifierType, float amount)
 
void SetStatFlatModifier (UnitMods unitMod, UnitModifierFlatType modifierType, float val)
 
void SetStatPctModifier (UnitMods unitMod, UnitModifierPctType modifierType, float val)
 
float GetFlatModifierValue (UnitMods unitMod, UnitModifierFlatType modifierType) const
 
float GetPctModifierValue (UnitMods unitMod, UnitModifierPctType modifierType) const
 
void UpdateUnitMod (UnitMods unitMod)
 
virtual bool CheckAttackFitToAuraRequirement (WeaponAttackType, AuraEffect const *) const
 
virtual void UpdateDamageDoneMods (WeaponAttackType attackType, int32 skipEnchantSlot=-1)
 
void UpdateAllDamageDoneMods ()
 
void UpdateDamagePctDoneMods (WeaponAttackType attackType)
 
void UpdateAllDamagePctDoneMods ()
 
float GetTotalStatValue (Stats stat) const
 
float GetTotalAuraModValue (UnitMods unitMod) const
 
SpellSchools GetSpellSchoolByAuraGroup (UnitMods unitMod) const
 
Stats GetStatByAuraGroup (UnitMods unitMod) const
 
Powers GetPowerTypeByAuraGroup (UnitMods unitMod) const
 
bool CanModifyStats () const
 
void SetCanModifyStats (bool modifyStats)
 
virtual bool UpdateStats (Stats stat)=0
 
virtual bool UpdateAllStats ()=0
 
virtual void UpdateResistances (uint32 school)=0
 
virtual void UpdateAllResistances ()
 
virtual void UpdateArmor ()=0
 
virtual void UpdateMaxHealth ()=0
 
virtual void UpdateMaxPower (Powers power)=0
 
virtual void UpdateAttackPowerAndDamage (bool ranged=false)=0
 
void SetAttackPower (int32 attackPower)
 
void SetAttackPowerModPos (int32 attackPowerMod)
 
void SetAttackPowerModNeg (int32 attackPowerMod)
 
void SetAttackPowerMultiplier (float attackPowerMult)
 
void SetRangedAttackPower (int32 attackPower)
 
void SetRangedAttackPowerModPos (int32 attackPowerMod)
 
void SetRangedAttackPowerModNeg (int32 attackPowerMod)
 
void SetRangedAttackPowerMultiplier (float attackPowerMult)
 
virtual void UpdateDamagePhysical (WeaponAttackType attType)
 
float GetTotalAttackPowerValue (WeaponAttackType attType) const
 
float GetWeaponDamageRange (WeaponAttackType attType, WeaponDamageRange type, uint8 damageIndex=0) const
 
void SetBaseWeaponDamage (WeaponAttackType attType, WeaponDamageRange damageRange, float value, uint8 damageIndex=0)
 
virtual void CalculateMinMaxDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, float &minDamage, float &maxDamage, uint8 damageIndex) const =0
 
uint32 CalculateDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, uint8 itemDamagesMask=0) const
 
float GetAPMultiplier (WeaponAttackType attType, bool normalized) const
 
bool isInFrontInMap (Unit const *target, float distance, float arc=float(M_PI)) const
 
bool isInBackInMap (Unit const *target, float distance, float arc=float(M_PI)) const
 
bool IsVisible () const
 
void SetVisible (bool x)
 
void SetPhaseMask (uint32 newPhaseMask, bool update) override
 
void UpdateObjectVisibility (bool forced=true) override
 
VisibleAuraMap const & GetVisibleAuras () const
 
AuraApplicationGetVisibleAura (uint8 slot) const
 
void SetVisibleAura (uint8 slot, AuraApplication *aurApp)
 
void RemoveVisibleAura (uint8 slot)
 
bool HasInterruptFlag (uint32 flags) const
 
void AddInterruptMask (uint32 flags)
 
void UpdateInterruptMask ()
 
virtual float GetNativeObjectScale () const
 
virtual void RecalculateObjectScale ()
 
uint32 GetDisplayId () const
 
virtual void SetDisplayId (uint32 modelId)
 
uint32 GetNativeDisplayId () const
 
void RestoreDisplayId ()
 
void SetNativeDisplayId (uint32 displayId)
 
void SetTransformSpell (uint32 spellid)
 
uint32 GetTransformSpell () const
 
void _RegisterDynObject (DynamicObject *dynObj)
 
void _UnregisterDynObject (DynamicObject *dynObj)
 
DynamicObjectGetDynObject (uint32 spellId) const
 
std::vector< DynamicObject * > GetDynObjects (uint32 spellId) const
 
void RemoveDynObject (uint32 spellId)
 
void RemoveAllDynObjects ()
 
GameObjectGetGameObject (uint32 spellId) const
 
std::vector< GameObject * > GetGameObjects (uint32 spellId) const
 
void AddGameObject (GameObject *gameObj)
 
void RemoveGameObject (GameObject *gameObj, bool del)
 
void RemoveGameObject (uint32 spellid, bool del)
 
void RemoveAllGameObjects ()
 
void ModifyAuraState (AuraStateType flag, bool apply)
 
uint32 BuildAuraStateUpdateForTarget (Unit const *target) const
 
bool HasAuraState (AuraStateType flag, SpellInfo const *spellProto=nullptr, Unit const *Caster=nullptr) const
 
void UnsummonAllTotems ()
 
bool IsMagnet () const
 
UnitGetMeleeHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo=nullptr)
 
int32 SpellBaseDamageBonusDone (SpellSchoolMask schoolMask) const
 
uint32 SpellDamageBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, Optional< float > const &donePctTotal, uint32 stack=1) const
 
float SpellDamagePctDone (Unit *victim, SpellInfo const *spellProto, DamageEffectType damagetype) const
 
uint32 SpellDamageBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype) const
 
int32 SpellBaseHealingBonusDone (SpellSchoolMask schoolMask) const
 
uint32 SpellHealingBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, Optional< float > const &donePctTotal, uint32 stack=1) const
 
float SpellHealingPctDone (Unit *victim, SpellInfo const *spellProto) const
 
uint32 SpellHealingBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype) const
 
uint32 MeleeDamageBonusDone (Unit *pVictim, uint32 damage, WeaponAttackType attType, SpellInfo const *spellProto=nullptr, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL)
 
uint32 MeleeDamageBonusTaken (Unit *attacker, uint32 pdamage, WeaponAttackType attType, SpellInfo const *spellProto=nullptr, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL)
 
bool IsBlockCritical ()
 
float SpellCritChanceDone (SpellInfo const *spellInfo, SpellSchoolMask schoolMask, WeaponAttackType attackType=BASE_ATTACK, bool isPeriodic=false) const
 
float SpellCritChanceTaken (Unit const *caster, SpellInfo const *spellInfo, SpellSchoolMask schoolMask, float doneChance, WeaponAttackType attackType=BASE_ATTACK, bool isPeriodic=false) const
 
void SetLastManaUse (uint32 spellCastTime)
 
bool IsUnderLastManaUseEffect () const
 
uint32 GetCastingTimeForBonus (SpellInfo const *spellProto, DamageEffectType damagetype, uint32 CastingTime) const
 
float CalculateDefaultCoefficient (SpellInfo const *spellInfo, DamageEffectType damagetype) const
 
void ApplySpellImmune (uint32 spellId, uint32 op, uint32 type, bool apply)
 
virtual bool IsImmunedToSpell (SpellInfo const *spellInfo, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const
 
uint32 GetSchoolImmunityMask () const
 
uint32 GetDamageImmunityMask () const
 
uint32 GetMechanicImmunityMask () const
 
bool IsImmunedToDamage (SpellSchoolMask meleeSchoolMask) const
 
bool IsImmunedToDamage (SpellInfo const *spellInfo) const
 
virtual bool IsImmunedToSpellEffect (SpellInfo const *spellInfo, SpellEffectInfo const &spellEffectInfo, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const
 
void UpdateSpeed (UnitMoveType mtype)
 
float GetSpeed (UnitMoveType mtype) const
 
float GetSpeedRate (UnitMoveType mtype) const
 
void SetSpeed (UnitMoveType mtype, float newValue)
 
void SetSpeedRate (UnitMoveType mtype, float rate)
 
float CalculateSpellpowerCoefficientLevelPenalty (SpellInfo const *spellInfo) const
 
void FollowerAdded (AbstractFollower *f)
 
void FollowerRemoved (AbstractFollower *f)
 
void RemoveAllFollowers ()
 
MotionMasterGetMotionMaster ()
 
MotionMaster const * GetMotionMaster () const
 
virtual MovementGeneratorType GetDefaultMovementType () const
 
bool IsStopped () const
 
void StopMoving (bool force=false)
 
void PauseMovement (uint32 timer=0, uint8 slot=0, bool forced=true)
 
void ResumeMovement (uint32 timer=0, uint8 slot=0)
 
void AddUnitMovementFlag (uint32 f)
 
void RemoveUnitMovementFlag (uint32 f)
 
bool HasUnitMovementFlag (uint32 f) const
 
uint32 GetUnitMovementFlags () const
 
void SetUnitMovementFlags (uint32 f)
 
void AddExtraUnitMovementFlag (uint32 f)
 
void RemoveExtraUnitMovementFlag (uint32 f)
 
bool HasExtraUnitMovementFlag (uint32 f) const
 
uint32 GetExtraUnitMovementFlags () const
 
void SetExtraUnitMovementFlags (uint32 f)
 
bool IsSplineEnabled () const
 
void SetControlled (bool apply, UnitState state)
 
void ApplyControlStatesIfNeeded ()
 
uint8 GetComboPoints (Unit const *who=nullptr) const
 --------—Combo point system----------------—
 
uint8 GetComboPoints (ObjectGuid const &guid) const
 
UnitGetComboTarget () const
 
ObjectGuid GetComboTargetGUID () const
 
void AddComboPoints (Unit *target, int8 count)
 
void AddComboPoints (int8 count)
 
void ClearComboPoints ()
 
void SendComboPoints ()
 
void AddComboPointHolder (Unit *unit)
 
void RemoveComboPointHolder (Unit *unit)
 
void ClearComboPointHolders ()
 
void SendPetActionFeedback (PetActionFeedback msg, uint32 spellId) const
 -------—Pet responses methods--------------—
 
void SendPetActionSound (PetAction action) const
 
void SendPetDismissSound () const
 
void SendPetAIReaction (ObjectGuid guid) const
 
void PropagateSpeedChange ()
 -------—End of Pet responses methods-------—
 
void ClearAllReactives ()
 
void StartReactiveTimer (ReactiveType reactive)
 
void UpdateReactives (uint32 p_time)
 
void UpdateAuraForGroup (uint8 slot)
 
bool CanProc () const
 
void SetCantProc (bool apply)
 
uint32 GetModelForForm (ShapeshiftForm form, uint32 spellId) const
 
bool CreateVehicleKit (uint32 id, uint32 creatureEntry)
 
void RemoveVehicleKit ()
 
VehicleGetVehicleKit () const
 
Trinity::unique_weak_ptr< VehicleGetVehicleKitWeakPtr () const
 
VehicleGetVehicle () const
 
void SetVehicle (Vehicle *vehicle)
 
bool IsOnVehicle (Unit const *vehicle) const
 
UnitGetVehicleBase () const
 
UnitGetVehicleRoot () const
 
CreatureGetVehicleCreatureBase () const
 
ObjectGuid GetTransGUID () const override
 
TransportBaseGetDirectTransport () const
 Returns the transport this unit is on directly (if on vehicle and transport, return vehicle)
 
void HandleSpellClick (Unit *clicker, int8 seatId=-1)
 
void EnterVehicle (Unit *base, int8 seatId=-1)
 
virtual void ExitVehicle (Position const *exitPosition=nullptr)
 
void ChangeSeat (int8 seatId, bool next=true)
 
void _ExitVehicle (Position const *exitPosition=nullptr)
 
void _EnterVehicle (Vehicle *vehicle, int8 seatId, AuraApplication const *aurApp=nullptr)
 
void BuildMovementPacket (ByteBuffer *data) const
 
bool isMoving () const
 
bool isTurning () const
 
virtual bool CanFly () const =0
 
bool IsFlying () const
 
bool IsFalling () const
 
virtual bool CanEnterWater () const =0
 
virtual bool CanSwim () const
 
float GetHoverOffset () const
 
uint32 GetMovementCounterAndInc ()
 
PlayerMovementPendingChangePeakFirstPendingMovementChange ()
 
PlayerMovementPendingChange PopPendingMovementChange ()
 
void PushPendingMovementChange (PlayerMovementPendingChange newChange)
 
bool HasPendingMovementChange () const
 
bool HasPendingMovementChange (MovementChangeType changeType) const
 
void PurgeAndApplyPendingMovementChanges (bool informObservers=true)
 
void RewardRage (uint32 damage, uint32 weaponSpeedHitFactor, bool attacker)
 
virtual float GetFollowAngle () const
 
void OutDebugInfo () const
 
virtual bool IsLoading () const
 
bool IsDuringRemoveFromWorld () const
 
PetToPet ()
 
Pet const * ToPet () const
 
TotemToTotem ()
 
Totem const * ToTotem () const
 
TempSummonToTempSummon ()
 
TempSummon const * ToTempSummon () const
 
ObjectGuid GetTarget () const
 
virtual void SetTarget (ObjectGuid)=0
 
void SetInstantCast (bool set)
 
bool CanInstantCast () const
 
int32 GetHighestExclusiveSameEffectSpellGroupValue (AuraEffect const *aurEff, AuraType auraType, bool checkMiscValue=false, int32 miscValue=0) const
 
bool IsHighestExclusiveAura (Aura const *aura, bool removeOtherAuraApplications=false)
 
bool IsHighestExclusiveAuraEffect (SpellInfo const *spellInfo, AuraType auraType, int32 effectAmount, uint8 auraEffectMask, bool removeOtherAuraApplications=false)
 
virtual void Talk (std::string_view text, ChatMsg msgType, Language language, float textRange, WorldObject const *target)
 
virtual void Say (std::string_view text, Language language, WorldObject const *target=nullptr)
 
virtual void Yell (std::string_view text, Language language, WorldObject const *target=nullptr)
 
virtual void TextEmote (std::string_view text, WorldObject const *target=nullptr, bool isBossEmote=false)
 
virtual void Whisper (std::string_view text, Language language, Player *target, bool isBossWhisper=false)
 
virtual void Talk (uint32 textId, ChatMsg msgType, float textRange, WorldObject const *target)
 
virtual void Say (uint32 textId, WorldObject const *target=nullptr)
 
virtual void Yell (uint32 textId, WorldObject const *target=nullptr)
 
virtual void TextEmote (uint32 textId, WorldObject const *target=nullptr, bool isBossEmote=false)
 
virtual void Whisper (uint32 textId, Player *target, bool isBossWhisper=false)
 
float GetCollisionHeight () const override
 
uint32 GetVirtualItemId (uint32 slot) const
 
void SetVirtualItem (uint32 slot, uint32 itemId)
 
bool IsCombatDisallowed () const
 
void SetIsCombatDisallowed (bool apply)
 
std::string GetDebugInfo () const override
 
- Public Member Functions inherited from WorldObject
virtual ~WorldObject ()
 
void AddToWorld () override
 
void RemoveFromWorld () override
 
void GetNearPoint2D (WorldObject const *searcher, float &x, float &y, float distance, float absAngle) const
 
void GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float distance2d, float absAngle) const
 
void GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float relAngle=0) const
 
void MovePosition (Position &pos, float dist, float angle)
 
Position GetNearPosition (float dist, float angle)
 
void MovePositionToFirstCollision (Position &pos, float dist, float angle)
 
Position GetFirstCollisionPosition (float dist, float angle)
 
Position GetRandomNearPosition (float radius)
 
void GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const
 
void UpdateGroundPositionZ (float x, float y, float &z) const
 
void UpdateAllowedPositionZ (float x, float y, float &z, float *groundZ=nullptr) const
 
void GetRandomPoint (Position const &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const
 
Position GetRandomPoint (Position const &srcPos, float distance) const
 
uint32 GetInstanceId () const
 
uint32 GetPhaseMask () const
 
bool InSamePhase (uint32 phasemask) const
 
bool InSamePhase (WorldObject const *obj) const
 
uint32 GetZoneId () const
 
uint32 GetAreaId () const
 
void GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const
 
bool IsInWorldPvpZone () const
 
bool IsOutdoors () const
 
ZLiquidStatus GetLiquidStatus () const
 
InstanceScriptGetInstanceScript () const
 
std::string const & GetName () const
 
void SetName (std::string newname)
 
virtual std::string const & GetNameForLocaleIdx (LocaleConstant) const
 
float GetDistance (WorldObject const *obj) const
 
float GetDistance (Position const &pos) const
 
float GetDistance (float x, float y, float z) const
 
float GetDistance2d (WorldObject const *obj) const
 
float GetDistance2d (float x, float y) const
 
float GetDistanceZ (WorldObject const *obj) const
 
bool IsSelfOrInSameMap (WorldObject const *obj) const
 
bool IsInMap (WorldObject const *obj) const
 
bool IsWithinDist3d (float x, float y, float z, float dist) const
 
bool IsWithinDist3d (Position const *pos, float dist) const
 
bool IsWithinDist2d (float x, float y, float dist) const
 
bool IsWithinDist2d (Position const *pos, float dist) const
 
bool IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true) const
 
bool IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const
 
bool IsWithinLOS (float x, float y, float z, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const
 
bool IsWithinLOSInMap (WorldObject const *obj, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const
 
Position GetHitSpherePointFor (Position const &dest) const
 
void GetHitSpherePointFor (Position const &dest, float &x, float &y, float &z) const
 
bool GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const
 
bool IsInRange (WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const
 
bool IsInRange2d (float x, float y, float minRange, float maxRange) const
 
bool IsInRange3d (float x, float y, float z, float minRange, float maxRange) const
 
bool isInFront (WorldObject const *target, float arc=float(M_PI)) const
 
bool isInBack (WorldObject const *target, float arc=float(M_PI)) const
 
bool IsInBetween (Position const &pos1, Position const &pos2, float size=0) const
 
bool IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const
 
virtual void SendMessageToSet (WorldPacket const *data, bool self) const
 
virtual void SendMessageToSetInRange (WorldPacket const *data, float dist, bool self) const
 
virtual void SendMessageToSet (WorldPacket const *data, Player const *skipped_rcvr) const
 
void PlayDistanceSound (uint32 soundId, Player *target=nullptr)
 
void PlayDirectSound (uint32 soundId, Player *target=nullptr)
 
void PlayDirectMusic (uint32 musicId, Player *target=nullptr)
 
void SendObjectDeSpawnAnim (ObjectGuid guid)
 
void AddObjectToRemoveList ()
 
float GetGridActivationRange () const
 
float GetVisibilityRange () const
 
float GetSightRange (WorldObject const *target=nullptr) const
 
bool CanSeeOrDetect (WorldObject const *obj, bool implicitDetect=false, bool distanceCheck=false, bool checkAlert=false) const
 
virtual void SetMap (Map *map)
 
virtual void ResetMap ()
 
MapGetMap () const
 
MapFindMap () const
 
void SetZoneScript ()
 
void ClearZoneScript ()
 
ZoneScriptGetZoneScript () const
 
TempSummonSummonCreature (uint32 entry, Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty)
 
TempSummonSummonCreature (uint32 entry, float x, float y, float z, float o=0, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, ObjectGuid privateObjectOwner=ObjectGuid::Empty)
 
GameObjectSummonGameObject (uint32 entry, Position const &pos, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN)
 
GameObjectSummonGameObject (uint32 entry, float x, float y, float z, float ang, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN)
 
CreatureSummonTrigger (float x, float y, float z, float ang, Milliseconds despawnTime, CreatureAI *(*GetAI)(Creature *)=nullptr)
 
void SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=nullptr)
 
CreatureFindNearestCreature (uint32 entry, float range, bool alive=true) const
 
CreatureFindNearestCreatureWithOptions (float range, FindCreatureOptions const &options) const
 
GameObjectFindNearestGameObject (uint32 entry, float range, bool spawnedOnly=true) const
 
GameObjectFindNearestGameObjectWithOptions (float range, FindGameObjectOptions const &options) const
 
GameObjectFindNearestUnspawnedGameObject (uint32 entry, float range) const
 
GameObjectFindNearestGameObjectOfType (GameobjectTypes type, float range) const
 
PlayerSelectNearestPlayer (float distance) const
 
ObjectGuid GetCharmerOrOwnerOrOwnGUID () const
 
UnitGetOwner () const
 
UnitGetCharmerOrOwner () const
 
UnitGetCharmerOrOwnerOrSelf () const
 
PlayerGetCharmerOrOwnerPlayerOrPlayerItself () const
 
PlayerGetAffectingPlayer () const
 
PlayerGetSpellModOwner () const
 
int32 CalculateSpellDamage (SpellEffectInfo const &spellEffectInfo, int32 const *basePoints=nullptr) const
 
float GetSpellMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const
 
float GetSpellMinRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const
 
float ApplyEffectModifiers (SpellInfo const *spellInfo, uint8 effIndex, float value) const
 
int32 CalcSpellDuration (SpellInfo const *spellInfo) const
 
int32 ModSpellDuration (SpellInfo const *spellInfo, WorldObject const *target, int32 duration, bool positive, uint32 effectMask) const
 
void ModSpellCastTime (SpellInfo const *spellInfo, int32 &castTime, Spell *spell=nullptr) const
 
void ModSpellDurationTime (SpellInfo const *spellInfo, int32 &durationTime, Spell *spell=nullptr) const
 
SpellMissInfo MagicSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const
 
SpellMissInfo SpellHitResult (Unit *victim, SpellInfo const *spellInfo, bool canReflect=false) const
 
void SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo)
 
FactionTemplateEntry const * GetFactionTemplateEntry () const
 
ReputationRank GetReactionTo (WorldObject const *target) const
 
bool IsHostileTo (WorldObject const *target) const
 
bool IsHostileToPlayers () const
 
bool IsFriendlyTo (WorldObject const *target) const
 
bool IsNeutralToAll () const
 
SpellCastResult CastSpell (CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
 
bool IsValidAttackTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const
 
bool IsValidAssistTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const
 
UnitGetMagicHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo)
 
template<typename Container >
void GetGameObjectListWithEntryInGrid (Container &gameObjectContainer, uint32 entry, float maxSearchRange=250.0f) const
 
template<typename Container >
void GetGameObjectListWithOptionsInGrid (Container &gameObjectContainer, float maxSearchRange, FindGameObjectOptions const &options) const
 
template<typename Container >
void GetCreatureListWithEntryInGrid (Container &creatureContainer, uint32 entry, float maxSearchRange=250.0f) const
 
template<typename Container >
void GetCreatureListWithOptionsInGrid (Container &creatureContainer, float maxSearchRange, FindCreatureOptions const &options) const
 
template<typename Container >
void GetPlayerListInGrid (Container &playerContainer, float maxSearchRange, bool alive=true) const
 
void DestroyForNearbyPlayers ()
 
virtual void UpdateObjectVisibilityOnCreate ()
 
void UpdatePositionData ()
 
void BuildUpdate (UpdateDataMapType &) override
 
bool AddToObjectUpdate () override
 
void RemoveFromObjectUpdate () override
 
void AddToNotify (uint16 f)
 
bool isNeedNotify (uint16 f) const
 
uint16 GetNotifyFlags () const
 
void ResetAllNotifies ()
 
bool isActiveObject () const
 
void setActive (bool isActiveObject)
 
bool IsFarVisible () const
 
void SetFarVisible (bool on)
 
bool IsVisibilityOverridden () const
 
void SetVisibilityDistanceOverride (VisibilityDistanceType type)
 
void SetIsStoredInWorldObjectGridContainer (bool apply)
 
bool IsAlwaysStoredInWorldObjectGridContainer () const
 
bool IsStoredInWorldObjectGridContainer () const
 
TransportGetTransport () const
 
float GetTransOffsetX () const
 
float GetTransOffsetY () const
 
float GetTransOffsetZ () const
 
float GetTransOffsetO () const
 
Position const & GetTransOffset () const
 
uint32 GetTransTime () const
 
int8 GetTransSeat () const
 
void SetTransport (Transport *t)
 
virtual float GetStationaryX () const
 
virtual float GetStationaryY () const
 
virtual float GetStationaryZ () const
 
virtual float GetStationaryO () const
 
float GetFloorZ () const
 
float GetMapWaterOrGroundLevel (float x, float y, float z, float *ground=nullptr) const
 
float GetMapHeight (float x, float y, float z, bool vmap=true, float distanceToSearch=50.0f) const
 
std::string GetDebugInfo () const override
 
bool IsPrivateObject () const
 
ObjectGuid GetPrivateObjectOwner () const
 
void SetPrivateObjectOwner (ObjectGuid const &owner)
 
bool CheckPrivateObjectOwnerVisibility (WorldObject const *seer) const
 
- Public Member Functions inherited from Object
virtual ~Object ()
 
bool IsInWorld () const
 
ObjectGuid GetGUID () const
 
PackedGuid const & GetPackGUID () const
 
uint32 GetEntry () const
 
void SetEntry (uint32 entry)
 
float GetObjectScale () const
 
virtual void SetObjectScale (float scale)
 
bool HasDynamicFlag (uint32 flag) const
 
virtual void SetDynamicFlag (uint32 flag)
 
virtual void RemoveDynamicFlag (uint32 flag)
 
TypeID GetTypeId () const
 
bool isType (uint16 mask) const
 
virtual void BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const
 
void SendUpdateToPlayer (Player *player)
 
void BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const
 
void BuildOutOfRangeUpdateBlock (UpdateData *data) const
 
void BuildMovementUpdateBlock (UpdateData *data, uint32 flags=0) const
 
int32 GetInt32Value (uint16 index) const
 
uint32 GetUInt32Value (uint16 index) const
 
uint64 GetUInt64Value (uint16 index) const
 
float GetFloatValue (uint16 index) const
 
uint8 GetByteValue (uint16 index, uint8 offset) const
 
uint16 GetUInt16Value (uint16 index, uint8 offset) const
 
ObjectGuid GetGuidValue (uint16 index) const
 
void SetInt32Value (uint16 index, int32 value)
 
void SetUInt32Value (uint16 index, uint32 value)
 
void UpdateUInt32Value (uint16 index, uint32 value)
 
void SetUInt64Value (uint16 index, uint64 value)
 
void SetFloatValue (uint16 index, float value)
 
void SetByteValue (uint16 index, uint8 offset, uint8 value)
 
void SetUInt16Value (uint16 index, uint8 offset, uint16 value)
 
void SetInt16Value (uint16 index, uint8 offset, int16 value)
 
void SetGuidValue (uint16 index, ObjectGuid value)
 
void SetStatFloatValue (uint16 index, float value)
 
void SetStatInt32Value (uint16 index, int32 value)
 
bool AddGuidValue (uint16 index, ObjectGuid value)
 
bool RemoveGuidValue (uint16 index, ObjectGuid value)
 
void ApplyModUInt32Value (uint16 index, int32 val, bool apply)
 
void ApplyModInt32Value (uint16 index, int32 val, bool apply)
 
void ApplyModPositiveFloatValue (uint16 index, float val, bool apply)
 
void ApplyModSignedFloatValue (uint16 index, float val, bool apply)
 
void SetFlag (uint16 index, uint32 newFlag)
 
void RemoveFlag (uint16 index, uint32 oldFlag)
 
void ToggleFlag (uint16 index, uint32 flag)
 
bool HasFlag (uint16 index, uint32 flag) const
 
void ApplyModFlag (uint16 index, uint32 flag, bool apply)
 
void SetByteFlag (uint16 index, uint8 offset, uint8 newFlag)
 
void RemoveByteFlag (uint16 index, uint8 offset, uint8 newFlag)
 
void ToggleByteFlag (uint16 index, uint8 offset, uint8 flag)
 
bool HasByteFlag (uint16 index, uint8 offset, uint8 flag) const
 
void ApplyModByteFlag (uint16 index, uint8 offset, uint8 flag, bool apply)
 
void SetFlag64 (uint16 index, uint64 newFlag)
 
void RemoveFlag64 (uint16 index, uint64 oldFlag)
 
void ToggleFlag64 (uint16 index, uint64 flag)
 
bool HasFlag64 (uint16 index, uint64 flag) const
 
void ApplyModFlag64 (uint16 index, uint64 flag, bool apply)
 
void ClearUpdateMask (bool remove)
 
uint16 GetValuesCount () const
 
virtual bool hasQuest (uint32) const
 
virtual bool hasInvolvedQuest (uint32) const
 
void SetIsNewObject (bool enable)
 
void BuildFieldsUpdate (Player *, UpdateDataMapType &) const
 
void SetFieldNotifyFlag (uint16 flag)
 
void RemoveFieldNotifyFlag (uint16 flag)
 
void ForceValuesUpdateAtIndex (uint32)
 
bool IsWorldObject () const
 
WorldObjectToWorldObject ()
 
WorldObject const * ToWorldObject () const
 
bool IsItem () const
 
ItemToItem ()
 
Item const * ToItem () const
 
bool IsPlayer () const
 
PlayerToPlayer ()
 
Player const * ToPlayer () const
 
bool IsCreature () const
 
CreatureToCreature ()
 
Creature const * ToCreature () const
 
bool IsUnit () const
 
UnitToUnit ()
 
Unit const * ToUnit () const
 
bool IsGameObject () const
 
GameObjectToGameObject ()
 
GameObject const * ToGameObject () const
 
bool IsCorpse () const
 
CorpseToCorpse ()
 
Corpse const * ToCorpse () const
 
bool IsDynObject () const
 
DynamicObjectToDynObject ()
 
DynamicObject const * ToDynObject () const
 
Trinity::unique_weak_ptr< ObjectGetWeakPtr () const
 
- Public Member Functions inherited from WorldLocation
 WorldLocation ()
 
 WorldLocation (uint32 _mapId, float x, float y, float z=0.0f, float o=0.0f)
 
 WorldLocation (uint32 mapId, Position const &position)
 
void WorldRelocate (WorldLocation const &loc)
 
void WorldRelocate (WorldLocation const *loc)
 
void WorldRelocate (uint32 mapId, Position const &pos)
 
void WorldRelocate (uint32 mapId=MAPID_INVALID, float x=0.f, float y=0.f, float z=0.f, float o=0.f)
 
WorldLocation GetWorldLocation () const
 
uint32 GetMapId () const
 
std::string GetDebugInfo () const
 
- Public Member Functions inherited from Position
 Position ()
 
 Position (float x, float y, float z=0.0f, float o=0.0f)
 
bool operator== (Position const &a) const
 
void Relocate (float x, float y)
 
void Relocate (float x, float y, float z)
 
void Relocate (float x, float y, float z, float o)
 
void Relocate (Position const &pos)
 
void Relocate (Position const *pos)
 
void RelocateOffset (Position const &offset)
 
void SetOrientation (float orientation)
 
float GetPositionX () const
 
float GetPositionY () const
 
float GetPositionZ () const
 
float GetOrientation () const
 
void GetPosition (float &x, float &y) const
 
void GetPosition (float &x, float &y, float &z) const
 
void GetPosition (float &x, float &y, float &z, float &o) const
 
Position GetPosition () const
 
Streamer< XY > PositionXYStream ()
 
ConstStreamer< XY > PositionXYStream () const
 
Streamer< XYZ > PositionXYZStream ()
 
ConstStreamer< XYZ > PositionXYZStream () const
 
Streamer< XYZO > PositionXYZOStream ()
 
ConstStreamer< XYZO > PositionXYZOStream () const
 
Streamer< PackedXYZ > PositionPackedXYZStream ()
 
ConstStreamer< PackedXYZ > PositionPackedXYZStream () const
 
bool IsPositionValid () const
 
float GetExactDist2dSq (const float x, const float y) const
 
float GetExactDist2dSq (Position const &pos) const
 
float GetExactDist2dSq (Position const *pos) const
 
float GetExactDist2d (const float x, const float y) const
 
float GetExactDist2d (Position const &pos) const
 
float GetExactDist2d (Position const *pos) const
 
float GetExactDistSq (float x, float y, float z) const
 
float GetExactDistSq (Position const &pos) const
 
float GetExactDistSq (Position const *pos) const
 
float GetExactDist (float x, float y, float z) const
 
float GetExactDist (Position const &pos) const
 
float GetExactDist (Position const *pos) const
 
void GetPositionOffsetTo (Position const &endPos, Position &retOffset) const
 
Position GetPositionWithOffset (Position const &offset) const
 
float GetAbsoluteAngle (float x, float y) const
 
float GetAbsoluteAngle (Position const &pos) const
 
float GetAbsoluteAngle (Position const *pos) const
 
float ToAbsoluteAngle (float relAngle) const
 
float ToRelativeAngle (float absAngle) const
 
float GetRelativeAngle (float x, float y) const
 
float GetRelativeAngle (Position const &pos) const
 
float GetRelativeAngle (Position const *pos) const
 
void GetSinCos (float x, float y, float &vsin, float &vcos) const
 
bool IsInDist2d (float x, float y, float dist) const
 
bool IsInDist2d (Position const *pos, float dist) const
 
bool IsInDist (float x, float y, float z, float dist) const
 
bool IsInDist (Position const &pos, float dist) const
 
bool IsInDist (Position const *pos, float dist) const
 
bool IsWithinBox (Position const &center, float xradius, float yradius, float zradius) const
 
bool IsWithinDoubleVerticalCylinder (Position const *center, float radius, float height) const
 
bool HasInArc (float arcangle, Position const *pos, float border=2.0f) const
 
bool HasInLine (Position const *pos, float objSize, float width) const
 
std::string ToString () const
 

Static Public Member Functions

static float CalculateAverageResistReduction (WorldObject const *caster, SpellSchoolMask schoolMask, Unit const *victim, SpellInfo const *spellInfo=nullptr)
 
static void DealDamageMods (Unit const *victim, uint32 &damage, uint32 *absorb)
 
static uint32 DealDamage (Unit *attacker, Unit *victim, uint32 damage, CleanDamage const *cleanDamage=nullptr, DamageEffectType damagetype=DIRECT_DAMAGE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *spellProto=nullptr, bool durabilityLoss=true)
 
static void Kill (Unit *attacker, Unit *victim, bool durabilityLoss=true)
 
static void DealHeal (HealInfo &healInfo)
 
static void ProcSkillsAndAuras (Unit *actor, Unit *actionTarget, uint32 typeMaskActor, uint32 typeMaskActionTarget, uint32 spellTypeMask, uint32 spellPhaseMask, uint32 hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo)
 
static void ApplyResilience (Unit const *victim, float *crit, int32 *damage, bool isCrit, CombatRating type)
 
static uint32 SpellCriticalDamageBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit *victim)
 
static uint32 SpellCriticalHealingBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit *victim)
 
static bool IsDamageReducedByArmor (SpellSchoolMask damageSchoolMask, SpellInfo const *spellInfo=nullptr)
 
static uint32 CalcArmorReducedDamage (Unit const *attacker, Unit *victim, uint32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=MAX_ATTACK, uint8 attackerLevel=0)
 
static uint32 CalcSpellResistedDamage (Unit const *attacker, Unit *victim, uint32 damage, SpellSchoolMask schoolMask, SpellInfo const *spellInfo)
 
static void CalcAbsorbResist (DamageInfo &damageInfo, Spell *spell=nullptr)
 
static void CalcHealAbsorb (HealInfo &healInfo)
 
static void BuildMovementPacket (Position const &pos, Position const &transportPos, MovementInfo const &movementInfo, ByteBuffer *data)
 
- Static Public Member Functions inherited from WorldObject
static bool InSamePhase (WorldObject const *a, WorldObject const *b)
 
static ReputationRank GetFactionReactionTo (FactionTemplateEntry const *factionTemplateEntry, WorldObject const *target)
 
- Static Public Member Functions inherited from Object
static ObjectGuid GetGUID (Object const *o)
 
static WorldObjectToWorldObject (Object *o)
 
static WorldObject const * ToWorldObject (Object const *o)
 
static ItemToItem (Object *o)
 
static Item const * ToItem (Object const *o)
 
static PlayerToPlayer (Object *o)
 
static Player const * ToPlayer (Object const *o)
 
static CreatureToCreature (Object *o)
 
static Creature const * ToCreature (Object const *o)
 
static UnitToUnit (Object *o)
 
static Unit const * ToUnit (Object const *o)
 
static GameObjectToGameObject (Object *o)
 
static GameObject const * ToGameObject (Object const *o)
 
static CorpseToCorpse (Object *o)
 
static Corpse const * ToCorpse (Object const *o)
 
static DynamicObjectToDynObject (Object *o)
 
static DynamicObject const * ToDynObject (Object const *o)
 
- Static Public Member Functions inherited from Position
static float NormalizeOrientation (float o)
 

Public Attributes

bool m_canDualWield
 
ControlList m_Controlled
 
ObjectGuid m_SummonSlot [MAX_SUMMON_SLOT]
 
ObjectGuid m_ObjectSlot [MAX_GAMEOBJECT_SLOT]
 
float m_modMeleeHitChance
 
float m_modRangedHitChance
 
float m_modSpellHitChance
 
float m_baseSpellCritChance
 
float m_modAttackSpeedPct [MAX_ATTACK]
 
uint32 m_attackTimer [MAX_ATTACK]
 
SpellImmuneContainer m_spellImmune [MAX_SPELL_IMMUNITY]
 
uint32 m_lastSanctuaryTime
 
ObjectGuid LastCharmerGUID
 
Movement::MoveSplinemovespline
 
- Public Attributes inherited from WorldObject
FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPESm_stealth
 
FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPESm_stealthDetect
 
FlaggedValuesArray32< int32, uint32, InvisibilityType, TOTAL_INVISIBILITY_TYPESm_invisibility
 
FlaggedValuesArray32< int32, uint32, InvisibilityType, TOTAL_INVISIBILITY_TYPESm_invisibilityDetect
 
FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPESm_serverSideVisibility
 
FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPESm_serverSideVisibilityDetect
 
uint32 LastUsedScriptID
 
MovementInfo m_movementInfo
 
EventProcessor m_Events
 
- Public Attributes inherited from WorldLocation
uint32 m_mapId
 
- Public Attributes inherited from Position
float m_positionX
 
float m_positionY
 
float m_positionZ
 

Protected Types

typedef std::list< DynamicObject * > DynObjectList
 
typedef std::list< GameObject * > GameObjectList
 

Protected Member Functions

void SetAI (UnitAI *newAI)
 
UnitAIGetTopAI () const
 
void RefreshAI ()
 
UnitAIGetScheduledChangeAI ()
 
bool HasScheduledAIChange () const
 
 Unit (bool isWorldObject)
 
void BuildValuesUpdate (uint8 updatetype, ByteBuffer *data, Player const *target) const override
 
void DestroyForPlayer (Player *target, bool onDeath) const override
 
void _UpdateSpells (uint32 time)
 
void _DeleteRemovedAuras ()
 
void _UpdateAutoRepeatSpell ()
 
bool IsAlwaysVisibleFor (WorldObject const *seer) const override
 
bool IsAlwaysDetectableFor (WorldObject const *seer) const override
 
void DisableSpline ()
 
void ProcessPositionDataChanged (PositionFullTerrainStatus const &data) override
 
virtual void ProcessTerrainStatusUpdate (ZLiquidStatus oldLiquidStatus, Optional< LiquidData > const &newLiquidData)
 
virtual void AtEnterCombat ()
 
virtual void AtExitCombat ()
 
virtual void AtEngage (Unit *target)
 
virtual void AtDisengage ()
 
void SetFeared (bool apply)
 
void SetConfused (bool apply)
 
void SetStunned (bool apply)
 
void SetRooted (bool apply)
 
- Protected Member Functions inherited from WorldObject
 WorldObject (bool isWorldObject)
 
void SetLocationMapId (uint32 _mapId)
 
void SetLocationInstanceId (uint32 _instanceId)
 
virtual bool IsNeverVisible (bool allowServersideObjects) const
 
virtual bool IsInvisibleDueToDespawn () const
 
- Protected Member Functions inherited from Object
 Object ()
 
void _InitValues ()
 
void _Create (ObjectGuid const &guid)
 
std::string _ConcatFields (uint16 startIndex, uint16 size) const
 
bool _LoadIntoDataField (std::string const &data, uint32 startOffset, uint32 count)
 
uint32 GetUpdateFieldData (Player const *target, uint32 *&flags) const
 
void BuildMovementUpdate (ByteBuffer *data, uint16 flags) const
 
void AddToObjectUpdateIfNeeded ()
 

Protected Attributes

bool m_ControlledByPlayer
 
bool m_AutoRepeatFirstCast
 
float m_createStats [MAX_STATS]
 
AttackerSet m_attackers
 
Unitm_attacking
 
DeathState m_deathState
 
int32 m_procDeep
 
DynObjectList m_dynObj
 
GameObjectList m_gameObj
 
uint32 m_transformSpell
 
Spellm_currentSpells [CURRENT_MAX_SPELL]
 
AuraMap m_ownedAuras
 
AuraApplicationMap m_appliedAuras
 
AuraList m_removedAuras
 
AuraMap::iterator m_auraUpdateIterator
 
uint32 m_removedAurasCount
 
AuraEffectList m_modAuras [TOTAL_AURAS]
 
AuraList m_scAuras
 
AuraApplicationList m_interruptableAuras
 
AuraStateAurasMap m_auraStateAuras
 
uint32 m_interruptMask
 
float m_auraFlatModifiersGroup [UNIT_MOD_END][MODIFIER_TYPE_FLAT_END]
 
float m_auraPctModifiersGroup [UNIT_MOD_END][MODIFIER_TYPE_PCT_END]
 
float m_weaponDamage [MAX_ATTACK][2][2]
 
bool m_canModifyStats
 
VisibleAuraMap m_visibleAuras
 
float m_speed_rate [MAX_MOVE_TYPE]
 
Unitm_charmer
 
Unitm_charmed
 
CharmInfom_charmInfo
 
SharedVisionList m_sharedVision
 
GameClient_gameClientMovingMe
 
MotionMasteri_motionMaster
 
uint32 m_reactiveTimer [MAX_REACTIVE]
 
uint32 m_regenTimer
 
Vehiclem_vehicle
 
Trinity::unique_trackable_ptr< Vehiclem_vehicleKit
 
uint32 m_unitTypeMask
 
LiquidTypeEntry const * _lastLiquid
 
- Protected Attributes inherited from WorldObject
std::string m_name
 
bool m_isActive
 
bool m_isFarVisible
 
Optional< float > m_visibilityDistanceOverride
 
bool const m_isStoredInWorldObjectGridContainer
 
ZoneScriptm_zoneScript
 
Transportm_transport
 
uint32 m_zoneId
 
uint32 m_areaId
 
float m_staticFloorZ
 
bool m_outdoors
 
ZLiquidStatus m_liquidStatus
 
- Protected Attributes inherited from Object
uint16 m_objectType
 
TypeID m_objectTypeId
 
uint16 m_updateFlag
 
union { 
 
   int32 *   m_int32Values 
 
   uint32 *   m_uint32Values 
 
   float *   m_floatValues 
 
};  
 
UpdateMask _changesMask
 
uint16 m_valuesCount
 
uint16 _fieldNotifyFlags
 
bool m_objectUpdated
 

Private Types

typedef std::stack< std::shared_ptr< UnitAI > > UnitAIStack
 

Private Member Functions

void SetSpeedRateReal (UnitMoveType mtype, float rate)
 
void UpdateSplineMovement (uint32 t_diff)
 
void UpdateSplinePosition ()
 
void SendFlightSplineSyncUpdate ()
 
void InterruptMovementBasedAuras ()
 
void CheckPendingMovementAcks ()
 
float GetCombatRatingReduction (CombatRating cr) const
 
uint32 GetCombatRatingDamageReduction (CombatRating cr, float rate, float cap, uint32 damage) const
 
void ProcSkillsAndReactives (bool isVictim, Unit *procTarget, uint32 typeMask, uint32 hitMask, WeaponAttackType attType)
 
void UpdateCharmAI ()
 
void RestoreDisabledAI ()
 

Private Attributes

uint32 m_state
 
uint32 m_lastManaUse
 
Diminishing m_Diminishing
 
CombatManager m_combatManager
 
ThreatManager m_threatManager
 
UnitAIStack i_AIs
 
std::shared_ptr< UnitAIi_AI
 
bool m_aiLocked
 
std::unordered_set< AbstractFollower * > m_followingMe
 
Unitm_comboTarget
 
int8 m_comboPoints
 
std::unordered_set< Unit * > m_ComboPointHolders
 
uint32 _lastExtraAttackSpell
 
std::unordered_map< ObjectGuid, uint32extraAttacksTargets
 
ObjectGuid _lastDamagedTargetGuid
 
bool m_cleanupDone
 
bool m_duringRemoveFromWorld
 
bool _instantCast
 
uint32 _oldFactionId
 faction before charm
 
bool _isWalkingBeforeCharm
 Are we walking before we were charmed?
 
SpellHistory_spellHistory
 
PositionUpdateInfo _positionUpdateInfo
 
bool _isCombatDisallowed
 
uint32 m_movementCounter
 
std::deque< PlayerMovementPendingChangem_pendingMovementChanges
 

Friends

class WorldSession
 
class VehicleJoinEvent
 
class ImmediateMovementGenerator
 
class CombatManager
 
class ThreatManager
 

Detailed Description

Definition at line 768 of file Unit.h.

Member Typedef Documentation

◆ AttackerSet

typedef std::set<Unit*> Unit::AttackerSet

Definition at line 772 of file Unit.h.

◆ AuraApplicationList

Definition at line 789 of file Unit.h.

◆ AuraApplicationMap

Definition at line 780 of file Unit.h.

◆ AuraApplicationMapBounds

typedef std::pair<AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator> Unit::AuraApplicationMapBounds

Definition at line 781 of file Unit.h.

◆ AuraApplicationMapBoundsNonConst

typedef std::pair<AuraApplicationMap::iterator, AuraApplicationMap::iterator> Unit::AuraApplicationMapBoundsNonConst

Definition at line 782 of file Unit.h.

◆ AuraApplicationProcContainer

typedef std::vector<std::pair<uint8 , AuraApplication*> > Unit::AuraApplicationProcContainer

Definition at line 792 of file Unit.h.

◆ AuraEffectList

typedef std::list<AuraEffect*> Unit::AuraEffectList

Definition at line 787 of file Unit.h.

◆ AuraList

typedef std::list<Aura*> Unit::AuraList

Definition at line 788 of file Unit.h.

◆ AuraMap

typedef std::multimap<uint32, Aura*> Unit::AuraMap

Definition at line 776 of file Unit.h.

◆ AuraMapBounds

typedef std::pair<AuraMap::const_iterator, AuraMap::const_iterator> Unit::AuraMapBounds

Definition at line 777 of file Unit.h.

◆ AuraMapBoundsNonConst

typedef std::pair<AuraMap::iterator, AuraMap::iterator> Unit::AuraMapBoundsNonConst

Definition at line 778 of file Unit.h.

◆ AuraStateAurasMap

Definition at line 784 of file Unit.h.

◆ AuraStateAurasMapBounds

typedef std::pair<AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator> Unit::AuraStateAurasMapBounds

Definition at line 785 of file Unit.h.

◆ ControlList

typedef std::set<Unit*> Unit::ControlList

Definition at line 773 of file Unit.h.

◆ Diminishing

Definition at line 790 of file Unit.h.

◆ DynObjectList

typedef std::list<DynamicObject*> Unit::DynObjectList
protected

Definition at line 1856 of file Unit.h.

◆ GameObjectList

typedef std::list<GameObject*> Unit::GameObjectList
protected

Definition at line 1859 of file Unit.h.

◆ UnitAIStack

typedef std::stack<std::shared_ptr<UnitAI> > Unit::UnitAIStack
private

Definition at line 1954 of file Unit.h.

◆ UnitVector

typedef std::vector<Unit*> Unit::UnitVector

Definition at line 774 of file Unit.h.

◆ VisibleAuraMap

Definition at line 794 of file Unit.h.

Constructor & Destructor Documentation

◆ ~Unit()

Unit::~Unit ( )
virtual

Definition at line 400 of file Unit.cpp.

+ Here is the call graph for this function:

◆ Unit()

Unit::Unit ( bool  isWorldObject)
explicitprotected

Definition at line 302 of file Unit.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ _addAttacker()

void Unit::_addAttacker ( Unit pAttacker)

Definition at line 5502 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ _AddAura()

void Unit::_AddAura ( UnitAura aura,
Unit caster 
)

Definition at line 3275 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _ApplyAllAuraStatMods()

void Unit::_ApplyAllAuraStatMods ( )

Definition at line 4353 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ _ApplyAura()

void Unit::_ApplyAura ( AuraApplication aurApp,
uint8  effMask 
)

Definition at line 3370 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _ApplyAuraEffect()

void Unit::_ApplyAuraEffect ( Aura aura,
uint8  effIndex 
)

Definition at line 3356 of file Unit.cpp.

+ Here is the call graph for this function:

◆ _CreateAuraApplication()

AuraApplication * Unit::_CreateAuraApplication ( Aura aura,
uint8  effMask 
)

Definition at line 3314 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _DeleteRemovedAuras()

void Unit::_DeleteRemovedAuras ( )
protected

Definition at line 2831 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ _EnterVehicle()

void Unit::_EnterVehicle ( Vehicle vehicle,
int8  seatId,
AuraApplication const *  aurApp = nullptr 
)

Definition at line 12576 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _ExitVehicle()

void Unit::_ExitVehicle ( Position const *  exitPosition = nullptr)

It's possible m_vehicle is NULL, when this function is called indirectly from @VehicleJoinEvent::Abort. In that case it was not possible to add the passenger to the vehicle. The vehicle aura has already been removed from the target in the aforementioned function and we don't need to do anything else at this point.

Definition at line 12680 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _RegisterAuraEffect()

void Unit::_RegisterAuraEffect ( AuraEffect aurEff,
bool  apply 
)

Definition at line 3552 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _RegisterDynObject()

void Unit::_RegisterDynObject ( DynamicObject dynObj)

Definition at line 5028 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ _RemoveAllAuraStatMods()

void Unit::_RemoveAllAuraStatMods ( )

Definition at line 4347 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ _removeAttacker()

void Unit::_removeAttacker ( Unit pAttacker)

Definition at line 5507 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ _RemoveNoStackAurasDueToAura()

void Unit::_RemoveNoStackAurasDueToAura ( Aura aura,
bool  owned 
)

Definition at line 3532 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _TryStackingOrRefreshingExistingAura()

Aura * Unit::_TryStackingOrRefreshingExistingAura ( AuraCreateInfo createInfo)

Definition at line 3213 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _UnapplyAura() [1/2]

void Unit::_UnapplyAura ( AuraApplication aurApp,
AuraRemoveMode  removeMode 
)

Definition at line 3511 of file Unit.cpp.

+ Here is the call graph for this function:

◆ _UnapplyAura() [2/2]

void Unit::_UnapplyAura ( AuraApplicationMap::iterator &  i,
AuraRemoveMode  removeMode 
)

Definition at line 3421 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _UnregisterDynObject()

void Unit::_UnregisterDynObject ( DynamicObject dynObj)

Definition at line 5033 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ _UpdateAutoRepeatSpell()

void Unit::_UpdateAutoRepeatSpell ( )
protected

Definition at line 2902 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _UpdateSpells()

void Unit::_UpdateSpells ( uint32  time)
protected

Definition at line 2842 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddAura() [1/2]

Aura * Unit::AddAura ( SpellInfo const *  spellInfo,
uint8  effMask,
Unit target 
)

Definition at line 11976 of file Unit.cpp.

+ Here is the call graph for this function:

◆ AddAura() [2/2]

Aura * Unit::AddAura ( uint32  spellId,
Unit target 
)

Definition at line 11964 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddComboPointHolder()

void Unit::AddComboPointHolder ( Unit unit)
inline

Definition at line 1704 of file Unit.h.

+ Here is the caller graph for this function:

◆ AddComboPoints() [1/2]

void Unit::AddComboPoints ( int8  count)
inline

Definition at line 1700 of file Unit.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddComboPoints() [2/2]

void Unit::AddComboPoints ( Unit target,
int8  count 
)

Definition at line 10461 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddExtraAttacks()

void Unit::AddExtraAttacks ( uint32  count)

Definition at line 2131 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddExtraUnitMovementFlag()

void Unit::AddExtraUnitMovementFlag ( uint32  f)
inline

Definition at line 1682 of file Unit.h.

+ Here is the caller graph for this function:

◆ AddGameObject()

void Unit::AddGameObject ( GameObject gameObj)

Definition at line 5093 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddInterruptMask()

void Unit::AddInterruptMask ( uint32  flags)
inline

Definition at line 1577 of file Unit.h.

+ Here is the caller graph for this function:

◆ AddPlayerToVision()

void Unit::AddPlayerToVision ( Player player)

Definition at line 6358 of file Unit.cpp.

+ Here is the call graph for this function:

◆ AddToWorld()

void Unit::AddToWorld ( )
overridevirtual

Reimplemented from Object.

Definition at line 9592 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddUnitMovementFlag()

void Unit::AddUnitMovementFlag ( uint32  f)
inline

Definition at line 1676 of file Unit.h.

+ Here is the caller graph for this function:

◆ AddUnitState()

void Unit::AddUnitState ( uint32  f)
inline

Definition at line 875 of file Unit.h.

+ Here is the caller graph for this function:

◆ AddUnitTypeMask()

void Unit::AddUnitTypeMask ( uint32  mask)
inline

Definition at line 881 of file Unit.h.

+ Here is the caller graph for this function:

◆ AIUpdateTick()

void Unit::AIUpdateTick ( uint32  diff)

Definition at line 9514 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ApplyAttackTimePercentMod()

void Unit::ApplyAttackTimePercentMod ( WeaponAttackType  att,
float  val,
bool  apply 
)

Definition at line 10627 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ApplyCastTimePercentMod()

void Unit::ApplyCastTimePercentMod ( float  val,
bool  apply 
)

Definition at line 10647 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ApplyControlStatesIfNeeded()

void Unit::ApplyControlStatesIfNeeded ( )

Definition at line 11339 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ApplyDiminishingAura()

void Unit::ApplyDiminishingAura ( DiminishingGroup  group,
bool  apply 
)

Definition at line 8917 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ApplyDiminishingToDuration()

bool Unit::ApplyDiminishingToDuration ( SpellInfo const *  auraSpellInfo,
bool  triggered,
int32 duration,
WorldObject caster,
DiminishingLevels  previousLevel 
) const

Definition at line 8858 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ApplyResilience()

void Unit::ApplyResilience ( Unit const *  victim,
float *  crit,
int32 damage,
bool  isCrit,
CombatRating  type 
)
static

Definition at line 12032 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ApplySpellImmune()

void Unit::ApplySpellImmune ( uint32  spellId,
uint32  op,
uint32  type,
bool  apply 
)

Definition at line 8142 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ ApplyStatPctModifier()

void Unit::ApplyStatPctModifier ( UnitMods  unitMod,
UnitModifierPctType  modifierType,
float  amount 
)

Definition at line 9042 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AtDisengage()

virtual void Unit::AtDisengage ( )
inlineprotectedvirtual

Reimplemented in Creature.

Definition at line 1917 of file Unit.h.

+ Here is the caller graph for this function:

◆ AtEngage()

void Unit::AtEngage ( Unit target)
protectedvirtual

Reimplemented in Creature.

Definition at line 8785 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AtEnterCombat()

virtual void Unit::AtEnterCombat ( )
inlineprotectedvirtual

Definition at line 1913 of file Unit.h.

+ Here is the caller graph for this function:

◆ AtExitCombat()

void Unit::AtExitCombat ( )
protectedvirtual

Reimplemented in Player.

Definition at line 8780 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Attack()

bool Unit::Attack ( Unit victim,
bool  meleeAttack 
)

Definition at line 5535 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AttackerStateUpdate()

void Unit::AttackerStateUpdate ( Unit victim,
WeaponAttackType  attType = BASE_ATTACK,
bool  extra = false 
)

Definition at line 2071 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AttackStop()

bool Unit::AttackStop ( )

Definition at line 5645 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AtTargetAttacked()

void Unit::AtTargetAttacked ( Unit target,
bool  canInitialAggro 
)

Definition at line 8791 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BuildAuraStateUpdateForTarget()

uint32 Unit::BuildAuraStateUpdateForTarget ( Unit const *  target) const

Definition at line 5804 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BuildMovementPacket() [1/2]

void Unit::BuildMovementPacket ( ByteBuffer data) const

Definition at line 12769 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BuildMovementPacket() [2/2]

void Unit::BuildMovementPacket ( Position const &  pos,
Position const &  transportPos,
MovementInfo const &  movementInfo,
ByteBuffer data 
)
static

Definition at line 12774 of file Unit.cpp.

+ Here is the call graph for this function:

◆ BuildValuesUpdate()

void Unit::BuildValuesUpdate ( uint8  updatetype,
ByteBuffer data,
Player const *  target 
) const
overrideprotectedvirtual

Reimplemented from Object.

Definition at line 13574 of file Unit.cpp.

+ Here is the call graph for this function:

◆ CalcAbsorbResist()

void Unit::CalcAbsorbResist ( DamageInfo damageInfo,
Spell spell = nullptr 
)
static

Definition at line 1769 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CalcArmorReducedDamage()

uint32 Unit::CalcArmorReducedDamage ( Unit const *  attacker,
Unit victim,
uint32  damage,
SpellInfo const *  spellInfo,
WeaponAttackType  attackType = MAX_ATTACK,
uint8  attackerLevel = 0 
)
static

Definition at line 1585 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CalcHealAbsorb()

void Unit::CalcHealAbsorb ( HealInfo healInfo)
static

Definition at line 2008 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CalcSpellResistedDamage()

uint32 Unit::CalcSpellResistedDamage ( Unit const *  attacker,
Unit victim,
uint32  damage,
SpellSchoolMask  schoolMask,
SpellInfo const *  spellInfo 
)
static

Definition at line 1653 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CalculateAOEAvoidance()

int32 Unit::CalculateAOEAvoidance ( int32  damage,
uint32  schoolMask,
ObjectGuid const &  casterGuid 
) const

Definition at line 12091 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CalculateAverageResistReduction()

float Unit::CalculateAverageResistReduction ( WorldObject const *  caster,
SpellSchoolMask  schoolMask,
Unit const *  victim,
SpellInfo const *  spellInfo = nullptr 
)
static

Definition at line 1726 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CalculateDamage()

uint32 Unit::CalculateDamage ( WeaponAttackType  attType,
bool  normalized,
bool  addTotalPct,
uint8  itemDamagesMask = 0 
) const

Definition at line 2274 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CalculateDefaultCoefficient()

float Unit::CalculateDefaultCoefficient ( SpellInfo const *  spellInfo,
DamageEffectType  damagetype 
) const

Definition at line 10789 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CalculateMeleeDamage()

void Unit::CalculateMeleeDamage ( Unit victim,
CalcDamageInfo damageInfo,
WeaponAttackType  attackType = BASE_ATTACK 
)
Todo:
for melee need create structure as in

Definition at line 1134 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ CalculateMinMaxDamage()

virtual void Unit::CalculateMinMaxDamage ( WeaponAttackType  attType,
bool  normalized,
bool  addTotalPct,
float &  minDamage,
float &  maxDamage,
uint8  damageIndex 
) const
pure virtual

Implemented in Creature, and Player.

+ Here is the caller graph for this function:

◆ CalculateSpellDamageTaken()

void Unit::CalculateSpellDamageTaken ( SpellNonMeleeDamage damageInfo,
int32  damage,
SpellInfo const *  spellInfo,
WeaponAttackType  attackType = BASE_ATTACK,
bool  crit = false,
bool  blocked = false,
Spell spell = nullptr 
)

Definition at line 995 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CalculateSpellpowerCoefficientLevelPenalty()

float Unit::CalculateSpellpowerCoefficientLevelPenalty ( SpellInfo const *  spellInfo) const

Definition at line 2326 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CanApplyResilience()

bool Unit::CanApplyResilience ( ) const
virtual

Reimplemented in Player.

Definition at line 12027 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CanDualWield()

bool Unit::CanDualWield ( ) const
inline

Definition at line 837 of file Unit.h.

+ Here is the caller graph for this function:

◆ CanEnterWater()

virtual bool Unit::CanEnterWater ( ) const
pure virtual

Implemented in Creature, and Player.

◆ CanFly()

virtual bool Unit::CanFly ( ) const
pure virtual

Implemented in Creature, and Player.

+ Here is the caller graph for this function:

◆ CanFreeMove()

bool Unit::CanFreeMove ( ) const

Definition at line 9338 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CanHaveThreatList()

bool Unit::CanHaveThreatList ( ) const
inline

====================== THREAT & COMBAT ====================

Definition at line 1122 of file Unit.h.

+ Here is the caller graph for this function:

◆ CanInstantCast()

bool Unit::CanInstantCast ( ) const
inline

Definition at line 1801 of file Unit.h.

+ Here is the caller graph for this function:

◆ CanModifyStats()

bool Unit::CanModifyStats ( ) const
inline

Definition at line 1531 of file Unit.h.

+ Here is the caller graph for this function:

◆ CanProc()

bool Unit::CanProc ( ) const
inline

Definition at line 1726 of file Unit.h.

+ Here is the caller graph for this function:

◆ CanSwim()

bool Unit::CanSwim ( ) const
virtual

Reimplemented in Creature.

Definition at line 12818 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CanUseAttackType()

bool Unit::CanUseAttackType ( uint8  attacktype) const

Definition at line 2382 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CastStop()

void Unit::CastStop ( uint32  except_spellid = 0)

Definition at line 988 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ChangeSeat()

void Unit::ChangeSeat ( int8  seatId,
bool  next = true 
)

Definition at line 12629 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CheckAttackFitToAuraRequirement()

virtual bool Unit::CheckAttackFitToAuraRequirement ( WeaponAttackType  ,
AuraEffect const *   
) const
inlinevirtual

Reimplemented in Player.

Definition at line 1518 of file Unit.h.

+ Here is the caller graph for this function:

◆ CheckPendingMovementAcks()

void Unit::CheckPendingMovementAcks ( )
private

Definition at line 12974 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CleanupBeforeRemoveFromMap()

void Unit::CleanupBeforeRemoveFromMap ( bool  finalCleanup)

Definition at line 9650 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CleanupsBeforeDelete()

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

Reimplemented from WorldObject.

Definition at line 9679 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ClearAllReactives()

void Unit::ClearAllReactives ( )

Definition at line 10534 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ClearComboPointHolders()

void Unit::ClearComboPointHolders ( )

Definition at line 10528 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ClearComboPoints()

void Unit::ClearComboPoints ( )

Definition at line 10480 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ClearDiminishings()

void Unit::ClearDiminishings ( )

Definition at line 8934 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ ClearInCombat()

void Unit::ClearInCombat ( )
inline

Definition at line 1147 of file Unit.h.

+ Here is the caller graph for this function:

◆ ClearUnitState()

void Unit::ClearUnitState ( uint32  f)
inline

Definition at line 877 of file Unit.h.

+ Here is the caller graph for this function:

◆ CombatStop()

void Unit::CombatStop ( bool  includingCast = false,
bool  mutualPvP = true 
)

Definition at line 5691 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CombatStopWithPets()

void Unit::CombatStopWithPets ( bool  includingCast = false)

Definition at line 5710 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CountPctFromCurHealth()

uint32 Unit::CountPctFromCurHealth ( int32  pct) const
inline

Definition at line 923 of file Unit.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CountPctFromMaxHealth()

uint32 Unit::CountPctFromMaxHealth ( int32  pct) const
inline

Definition at line 922 of file Unit.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CountPctFromMaxPower()

int32 Unit::CountPctFromMaxPower ( Powers  power,
int32  pct 
) const
inline

Definition at line 938 of file Unit.h.

+ Here is the call graph for this function:

◆ CreateTamedPetFrom() [1/2]

Pet * Unit::CreateTamedPetFrom ( Creature creatureTarget,
uint32  spell_id = 0 
)

Definition at line 10856 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateTamedPetFrom() [2/2]

Pet * Unit::CreateTamedPetFrom ( uint32  creatureEntry,
uint32  spell_id = 0 
)

Definition at line 10880 of file Unit.cpp.

+ Here is the call graph for this function:

◆ CreateVehicleKit()

bool Unit::CreateVehicleKit ( uint32  id,
uint32  creatureEntry 
)

Definition at line 11796 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ DealDamage()

uint32 Unit::DealDamage ( Unit attacker,
Unit victim,
uint32  damage,
CleanDamage const *  cleanDamage = nullptr,
DamageEffectType  damagetype = DIRECT_DAMAGE,
SpellSchoolMask  damageSchoolMask = SPELL_SCHOOL_MASK_NORMAL,
SpellInfo const *  spellProto = nullptr,
bool  durabilityLoss = true 
)
static
Todo:
check packets if damage is done by victim, or by attacker of victim

Definition at line 716 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DealDamageMods()

void Unit::DealDamageMods ( Unit const *  victim,
uint32 damage,
uint32 absorb 
)
static

Definition at line 706 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DealHeal()

void Unit::DealHeal ( HealInfo healInfo)
static

Definition at line 6164 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DealMeleeDamage()

void Unit::DealMeleeDamage ( CalcDamageInfo damageInfo,
bool  durabilityLoss 
)
Todo:
Move this to a packet handler

Definition at line 1433 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DealSpellDamage()

void Unit::DealSpellDamage ( SpellNonMeleeDamage const *  damageInfo,
bool  durabilityLoss 
)

Definition at line 1109 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DelayOwnedAuras()

void Unit::DelayOwnedAuras ( uint32  spellId,
ObjectGuid  caster,
int32  delaytime 
)

Definition at line 4328 of file Unit.cpp.

+ Here is the call graph for this function:

◆ DeleteCharmInfo()

void Unit::DeleteCharmInfo ( )

Definition at line 9738 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DeMorph()

void Unit::DeMorph ( )

Definition at line 3208 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DestroyForPlayer()

void Unit::DestroyForPlayer ( Player target,
bool  onDeath 
) const
overrideprotectedvirtual

Reimplemented from Object.

Definition at line 13738 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DisableSpline()

void Unit::DisableSpline ( )
protected

Definition at line 592 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Dismount()

void Unit::Dismount ( )

Definition at line 8234 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EnergizeBySpell() [1/2]

void Unit::EnergizeBySpell ( Unit victim,
SpellInfo const *  spellInfo,
int32  damage,
Powers  powerType 
)

Definition at line 6446 of file Unit.cpp.

+ Here is the call graph for this function:

◆ EnergizeBySpell() [2/2]

void Unit::EnergizeBySpell ( Unit victim,
uint32  spellId,
int32  damage,
Powers  powerType 
)

Definition at line 6440 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EngageWithTarget()

void Unit::EngageWithTarget ( Unit who)

Definition at line 8292 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EnsureVictim()

Unit * Unit::EnsureVictim ( ) const
inline

Definition at line 861 of file Unit.h.

+ Here is the caller graph for this function:

◆ EnterVehicle()

void Unit::EnterVehicle ( Unit base,
int8  seatId = -1 
)

Definition at line 12569 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ExitVehicle()

void Unit::ExitVehicle ( Position const *  exitPosition = nullptr)
virtual

This function can be called at upper level code to initialize an exit from the passenger's side.

The following call would not even be executed successfully as the SPELL_AURA_CONTROL_VEHICLE unapply handler already calls _ExitVehicle without specifying an exitposition. The subsequent call below would return on if (!m_vehicle).

To do: We need to allow SPELL_AURA_CONTROL_VEHICLE unapply handlers in spellscripts to specify exit coordinates and either store those per passenger, or we need to init spline movement based on those coordinates in unapply handlers, and relocate exiting passengers based on Unit::moveSpline data. Either way, Coming Soon(TM)

Reimplemented in Creature.

Definition at line 12661 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FindCurrentSpellBySpellId()

Spell * Unit::FindCurrentSpellBySpellId ( uint32  spell_id) const

Definition at line 3108 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ FinishSpell()

void Unit::FinishSpell ( CurrentSpellTypes  spellType,
bool  ok = true 
)

Definition at line 3051 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FollowerAdded()

void Unit::FollowerAdded ( AbstractFollower f)
inline

Definition at line 1663 of file Unit.h.

+ Here is the caller graph for this function:

◆ FollowerRemoved()

void Unit::FollowerRemoved ( AbstractFollower f)
inline

Definition at line 1664 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetAI()

UnitAI * Unit::GetAI ( ) const
inline

Definition at line 800 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetAllMinionsByEntry()

void Unit::GetAllMinionsByEntry ( std::list< Creature * > &  Minions,
uint32  entry 
)

Definition at line 6062 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAnimTier()

AnimTier Unit::GetAnimTier ( ) const
inline

Definition at line 1010 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetAPMultiplier()

float Unit::GetAPMultiplier ( WeaponAttackType  attType,
bool  normalized 
) const

Definition at line 10811 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAppliedAuras() [1/2]

AuraApplicationMap & Unit::GetAppliedAuras ( )
inline

Definition at line 1338 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetAppliedAuras() [2/2]

AuraApplicationMap const & Unit::GetAppliedAuras ( ) const
inline

Definition at line 1339 of file Unit.h.

◆ GetArmor()

uint32 Unit::GetArmor ( ) const
inline

Definition at line 905 of file Unit.h.

+ Here is the caller graph for this function:

◆ getAttackerForHelper()

Unit * Unit::getAttackerForHelper ( ) const

Definition at line 5512 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAttackers()

AttackerSet const & Unit::getAttackers ( ) const
inline

Definition at line 857 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetAttackTime()

uint32 Unit::GetAttackTime ( WeaponAttackType  att) const

Definition at line 8471 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAttackTimer()

uint32 Unit::getAttackTimer ( WeaponAttackType  type) const
inline

Definition at line 834 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetAura()

Aura * Unit::GetAura ( uint32  spellId,
ObjectGuid  casterGUID = ObjectGuid::Empty,
ObjectGuid  itemCasterGUID = ObjectGuid::Empty,
uint8  reqEffMask = 0 
) const

Definition at line 4439 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAuraApplication()

AuraApplication * Unit::GetAuraApplication ( uint32  spellId,
ObjectGuid  casterGUID = ObjectGuid::Empty,
ObjectGuid  itemCasterGUID = ObjectGuid::Empty,
uint8  reqEffMask = 0,
AuraApplication except = nullptr 
) const

Definition at line 4420 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAuraApplicationOfRankedSpell()

AuraApplication * Unit::GetAuraApplicationOfRankedSpell ( uint32  spellId,
ObjectGuid  casterGUID = ObjectGuid::Empty,
ObjectGuid  itemCasterGUID = ObjectGuid::Empty,
uint8  reqEffMask = 0,
AuraApplication except = nullptr 
) const

Definition at line 4445 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAuraCount()

uint32 Unit::GetAuraCount ( uint32  spellId) const

Definition at line 4519 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetAuraEffect() [1/3]

AuraEffect * Unit::GetAuraEffect ( AuraType  type,
SpellFamilyNames  family,
uint32  familyFlag1,
uint32  familyFlag2,
uint32  familyFlag3,
ObjectGuid  casterGUID = ObjectGuid::Empty 
) const

Definition at line 4399 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetAuraEffect() [2/3]

AuraEffect * Unit::GetAuraEffect ( AuraType  type,
SpellFamilyNames  name,
uint32  iconId,
uint8  effIndex 
) const

Definition at line 4385 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetAuraEffect() [3/3]

AuraEffect * Unit::GetAuraEffect ( uint32  spellId,
uint8  effIndex,
ObjectGuid  casterGUID = ObjectGuid::Empty 
) const

Definition at line 4359 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAuraEffectOfRankedSpell()

AuraEffect * Unit::GetAuraEffectOfRankedSpell ( uint32  spellId,
uint8  effIndex,
ObjectGuid  casterGUID = ObjectGuid::Empty 
) const

Definition at line 4373 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAuraEffectsByType() [1/2]

AuraEffectList & Unit::GetAuraEffectsByType ( AuraType  type)
inline

Definition at line 1385 of file Unit.h.

◆ GetAuraEffectsByType() [2/2]

AuraEffectList const & Unit::GetAuraEffectsByType ( AuraType  type) const
inline

Definition at line 1384 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetAuraOfRankedSpell()

Aura * Unit::GetAuraOfRankedSpell ( uint32  spellId,
ObjectGuid  casterGUID = ObjectGuid::Empty,
ObjectGuid  itemCasterGUID = ObjectGuid::Empty,
uint8  reqEffMask = 0 
) const

Definition at line 4457 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetBoundingRadius()

float Unit::GetBoundingRadius ( ) const
inline

Definition at line 841 of file Unit.h.

◆ GetCastingTimeForBonus()

uint32 Unit::GetCastingTimeForBonus ( SpellInfo const *  spellProto,
DamageEffectType  damagetype,
uint32  CastingTime 
) const

Definition at line 10659 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetChannelObjectGuid()

ObjectGuid Unit::GetChannelObjectGuid ( ) const
inline

Definition at line 1460 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetChannelSpellId()

uint32 Unit::GetChannelSpellId ( ) const
inline

Definition at line 1458 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCharmed()

Unit * Unit::GetCharmed ( ) const
inline

Definition at line 1256 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCharmedGUID()

ObjectGuid Unit::GetCharmedGUID ( ) const
inline

Definition at line 1255 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCharmedOrSelf()

Unit * Unit::GetCharmedOrSelf ( ) const
inline

Definition at line 1297 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCharmer()

Unit * Unit::GetCharmer ( ) const
inline

Definition at line 1253 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCharmerGUID()

ObjectGuid Unit::GetCharmerGUID ( ) const
inline

Definition at line 1252 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCharmerOrOwner()

Unit * Unit::GetCharmerOrOwner ( ) const
inline

Definition at line 1265 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCharmerOrOwnerGUID()

ObjectGuid Unit::GetCharmerOrOwnerGUID ( ) const
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 1260 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCharmerOrSelf()

Unit * Unit::GetCharmerOrSelf ( ) const

Definition at line 6298 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetCharmerOrSelfPlayer()

Player * Unit::GetCharmerOrSelfPlayer ( ) const
inline

Definition at line 1296 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCharmInfo()

CharmInfo * Unit::GetCharmInfo ( )
inline

Definition at line 1287 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetClass()

uint8 Unit::GetClass ( ) const
inline

Definition at line 895 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetClassMask()

uint32 Unit::GetClassMask ( ) const
inline

Definition at line 897 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCollisionHeight()

float Unit::GetCollisionHeight ( ) const
overridevirtual

Dismounting case - use basic default model data

Reimplemented from WorldObject.

Definition at line 13924 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCombatManager() [1/2]

CombatManager & Unit::GetCombatManager ( )
inline

Definition at line 1130 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCombatManager() [2/2]

CombatManager const & Unit::GetCombatManager ( ) const
inline

Definition at line 1131 of file Unit.h.

◆ GetCombatRatingDamageReduction()

uint32 Unit::GetCombatRatingDamageReduction ( CombatRating  cr,
float  rate,
float  cap,
uint32  damage 
) const
private

Definition at line 12233 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetCombatRatingReduction()

float Unit::GetCombatRatingReduction ( CombatRating  cr) const
private

Definition at line 12221 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCombatReach()

float Unit::GetCombatReach ( ) const
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 839 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetComboPoints() [1/2]

uint8 Unit::GetComboPoints ( ObjectGuid const &  guid) const
inline

Definition at line 1696 of file Unit.h.

◆ GetComboPoints() [2/2]

uint8 Unit::GetComboPoints ( Unit const *  who = nullptr) const
inline

--------—Combo point system----------------—

Definition at line 1695 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetComboTarget()

Unit * Unit::GetComboTarget ( ) const
inline

Definition at line 1697 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetComboTargetGUID()

ObjectGuid Unit::GetComboTargetGUID ( ) const
inline

Definition at line 1698 of file Unit.h.

◆ GetControllingPlayer()

Player * Unit::GetControllingPlayer ( ) const

Definition at line 5865 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCreateHealth()

uint32 Unit::GetCreateHealth ( ) const
inline

Definition at line 1450 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCreateMana()

uint32 Unit::GetCreateMana ( ) const
inline

Definition at line 1452 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCreatePowerValue()

uint32 Unit::GetCreatePowerValue ( Powers  power) const

Definition at line 9487 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCreateStat()

float Unit::GetCreateStat ( Stats  stat) const
inline

Definition at line 1456 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCreatorGUID()

ObjectGuid Unit::GetCreatorGUID ( ) const
inline

Definition at line 1243 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCreatureType()

uint32 Unit::GetCreatureType ( ) const

Definition at line 8940 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCreatureTypeMask()

uint32 Unit::GetCreatureTypeMask ( ) const

Definition at line 8958 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCritterGUID()

ObjectGuid Unit::GetCritterGUID ( ) const
inline

Definition at line 1249 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCurrentSpell() [1/2]

Spell * Unit::GetCurrentSpell ( CurrentSpellTypes  spellType) const
inline

Definition at line 1476 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCurrentSpell() [2/2]

Spell * Unit::GetCurrentSpell ( uint32  spellType) const
inline

Definition at line 1477 of file Unit.h.

◆ GetCurrentSpellCastTime()

int32 Unit::GetCurrentSpellCastTime ( uint32  spell_id) const

Definition at line 3116 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDamageImmunityMask()

uint32 Unit::GetDamageImmunityMask ( ) const

Definition at line 7791 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ getDeathState()

DeathState Unit::getDeathState ( ) const
inline

Definition at line 1238 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetDebugInfo()

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

Reimplemented from Object.

Definition at line 13950 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDefaultMovementType()

MovementGeneratorType Unit::GetDefaultMovementType ( ) const
virtual

Reimplemented in Creature.

Definition at line 10307 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetDefenseSkillValue()

uint32 Unit::GetDefenseSkillValue ( Unit const *  target = nullptr) const

Definition at line 2557 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDiminishing()

DiminishingLevels Unit::GetDiminishing ( DiminishingGroup  group) const

Definition at line 8834 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDirectTransport()

TransportBase * Unit::GetDirectTransport ( ) const

Returns the transport this unit is on directly (if on vehicle and transport, return vehicle)

Definition at line 11866 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDiseasesByCaster()

uint32 Unit::GetDiseasesByCaster ( ObjectGuid  casterGUID,
bool  remove = false 
)

Definition at line 4651 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDispellableAuraList()

void Unit::GetDispellableAuraList ( WorldObject const *  caster,
uint32  dispelMask,
DispelChargesList dispelList,
bool  isReflect = false 
) const

Definition at line 4463 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDisplayId()

uint32 Unit::GetDisplayId ( ) const
inline

Definition at line 1582 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetDoTsByCaster()

uint32 Unit::GetDoTsByCaster ( ObjectGuid  casterGUID) const

Definition at line 4683 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDummyAuraEffect()

AuraEffect * Unit::GetDummyAuraEffect ( SpellFamilyNames  name,
uint32  iconId,
uint8  effIndex 
) const

Definition at line 4415 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDynamicFlags()

uint32 Unit::GetDynamicFlags ( ) const
inlineoverridevirtual

Reimplemented from Object.

Definition at line 818 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetDynObject()

DynamicObject * Unit::GetDynObject ( uint32  spellId) const

Definition at line 5038 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDynObjects()

std::vector< DynamicObject * > Unit::GetDynObjects ( uint32  spellId) const

Definition at line 5044 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetEmoteState()

Emote Unit::GetEmoteState ( ) const
inline

Definition at line 966 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetExtraUnitMovementFlags()

uint32 Unit::GetExtraUnitMovementFlags ( ) const
inline

Definition at line 1685 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetFaction()

uint32 Unit::GetFaction ( ) const
inlineoverridevirtual

Implements WorldObject.

Definition at line 973 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetFirstControlled()

Unit * Unit::GetFirstControlled ( ) const

Definition at line 6239 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetFirstMinion()

Minion * Unit::GetFirstMinion ( ) const

Definition at line 5878 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetFlatModifierValue()

float Unit::GetFlatModifierValue ( UnitMods  unitMod,
UnitModifierFlatType  modifierType 
) const

Definition at line 9084 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetFollowAngle()

virtual float Unit::GetFollowAngle ( ) const
inlinevirtual

Reimplemented in Minion.

Definition at line 1782 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetGameClientMovingMe()

GameClient * Unit::GetGameClientMovingMe ( ) const
inline

Definition at line 1302 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetGameObject()

GameObject * Unit::GetGameObject ( uint32  spellId) const

Definition at line 5077 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetGameObjects()

std::vector< GameObject * > Unit::GetGameObjects ( uint32  spellId) const

Definition at line 5083 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetGender()

Gender Unit::GetGender ( ) const
inline

Definition at line 898 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetGuardianPet()

Guardian * Unit::GetGuardianPet ( ) const

Definition at line 5894 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetHealth()

uint32 Unit::GetHealth ( ) const
inline

Definition at line 913 of file Unit.h.

◆ GetHealthGain()

int32 Unit::GetHealthGain ( int32  dVal)

Definition at line 8413 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetHealthPct()

float Unit::GetHealthPct ( ) const
inline

Definition at line 921 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetHighestExclusiveSameEffectSpellGroupValue()

int32 Unit::GetHighestExclusiveSameEffectSpellGroupValue ( AuraEffect const *  aurEff,
AuraType  auraType,
bool  checkMiscValue = false,
int32  miscValue = 0 
) const

Definition at line 13753 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetHoverOffset()

float Unit::GetHoverOffset ( ) const
inline

Definition at line 1767 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetLastDamagedTargetGuid()

ObjectGuid Unit::GetLastDamagedTargetGuid ( ) const
inline

Definition at line 1047 of file Unit.h.

◆ GetLastExtraAttackSpell()

uint32 Unit::GetLastExtraAttackSpell ( ) const
inline

Definition at line 1044 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetLevel()

uint8 Unit::GetLevel ( ) const
inline

Definition at line 889 of file Unit.h.

◆ GetLevelForTarget()

uint8 Unit::GetLevelForTarget ( WorldObject const *  ) const
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 890 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetMaxHealth()

uint32 Unit::GetMaxHealth ( ) const
inline

Definition at line 914 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetMaxNegativeAuraModifier() [1/2]

int32 Unit::GetMaxNegativeAuraModifier ( AuraType  auraType) const

Definition at line 4807 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetMaxNegativeAuraModifier() [2/2]

int32 Unit::GetMaxNegativeAuraModifier ( AuraType  auraType,
std::function< bool(AuraEffect const *)> const &  predicate 
) const

Definition at line 4776 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetMaxNegativeAuraModifierByAffectMask()

int32 Unit::GetMaxNegativeAuraModifierByAffectMask ( AuraType  auraType,
SpellInfo const *  affectedSpell 
) const

Definition at line 4922 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetMaxNegativeAuraModifierByMiscMask()

int32 Unit::GetMaxNegativeAuraModifierByMiscMask ( AuraType  auraType,
uint32  misc_mask 
) const

Definition at line 4842 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetMaxNegativeAuraModifierByMiscValue()

int32 Unit::GetMaxNegativeAuraModifierByMiscValue ( AuraType  auraType,
int32  misc_value 
) const

Definition at line 4882 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetMaxPositiveAuraModifier() [1/2]

int32 Unit::GetMaxPositiveAuraModifier ( AuraType  auraType) const

Definition at line 4802 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetMaxPositiveAuraModifier() [2/2]

int32 Unit::GetMaxPositiveAuraModifier ( AuraType  auraType,
std::function< bool(AuraEffect const *)> const &  predicate 
) const

Definition at line 4760 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetMaxPositiveAuraModifierByAffectMask()

int32 Unit::GetMaxPositiveAuraModifierByAffectMask ( AuraType  auraType,
SpellInfo const *  affectedSpell 
) const

Definition at line 4912 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetMaxPositiveAuraModifierByMiscMask()

int32 Unit::GetMaxPositiveAuraModifierByMiscMask ( AuraType  auraType,
uint32  misc_mask,
AuraEffect const *  except = nullptr 
) const

Definition at line 4832 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetMaxPositiveAuraModifierByMiscValue()

int32 Unit::GetMaxPositiveAuraModifierByMiscValue ( AuraType  auraType,
int32  misc_value 
) const

Definition at line 4872 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetMaxPower()

uint32 Unit::GetMaxPower ( Powers  power) const
inline

Definition at line 936 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetMaxSkillValueForLevel()

uint32 Unit::GetMaxSkillValueForLevel ( Unit const *  target = nullptr) const
inline

Definition at line 1019 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetMechanicImmunityMask()

uint32 Unit::GetMechanicImmunityMask ( ) const

Definition at line 7801 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetMechanicResistChance()

int32 Unit::GetMechanicResistChance ( SpellInfo const *  spellInfo) const

Definition at line 2359 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetMeleeCritChanceReduction()

float Unit::GetMeleeCritChanceReduction ( ) const
inline

Definition at line 1053 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetMeleeCritDamageReduction()

uint32 Unit::GetMeleeCritDamageReduction ( uint32  damage) const
inline

Definition at line 1058 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetMeleeDamageReduction()

uint32 Unit::GetMeleeDamageReduction ( uint32  damage) const
inline

Definition at line 1063 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetMeleeDamageSchoolMask()

virtual SpellSchoolMask Unit::GetMeleeDamageSchoolMask ( WeaponAttackType  attackType = BASE_ATTACK,
uint8  damageIndex = 0 
) const
pure virtual

Implemented in Player, and Creature.

+ Here is the caller graph for this function:

◆ GetMeleeHitRedirectTarget()

Unit * Unit::GetMeleeHitRedirectTarget ( Unit victim,
SpellInfo const *  spellInfo = nullptr 
)

Definition at line 6221 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetMeleeRange()

float Unit::GetMeleeRange ( Unit const *  target) const

Definition at line 634 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetMinionGUID()

ObjectGuid Unit::GetMinionGUID ( ) const
inline

Definition at line 1245 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetMinPower()

int32 Unit::GetMinPower ( Powers  ) const
inline

Definition at line 935 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetModelForForm()

uint32 Unit::GetModelForForm ( ShapeshiftForm  form,
uint32  spellId 
) const

Definition at line 12239 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetMotionMaster() [1/2]

MotionMaster * Unit::GetMotionMaster ( )
inline

Definition at line 1667 of file Unit.h.

◆ GetMotionMaster() [2/2]

MotionMaster const * Unit::GetMotionMaster ( ) const
inline

Definition at line 1668 of file Unit.h.

◆ GetMountDisplayId()

uint32 Unit::GetMountDisplayId ( ) const
inline

Definition at line 1014 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetMovementCounterAndInc()

uint32 Unit::GetMovementCounterAndInc ( )
inline

Definition at line 1772 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetNativeDisplayId()

uint32 Unit::GetNativeDisplayId ( ) const
inline

Definition at line 1584 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetNativeGender()

virtual Gender Unit::GetNativeGender ( ) const
inlinevirtual

Reimplemented in Player.

Definition at line 900 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetNativeObjectScale()

virtual float Unit::GetNativeObjectScale ( ) const
inlinevirtual

Reimplemented in Creature, and Pet.

Definition at line 1580 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetNegStat()

float Unit::GetNegStat ( Stats  stat) const
inline

Definition at line 1455 of file Unit.h.

◆ GetNextRandomRaidMemberOrPet()

Unit * Unit::GetNextRandomRaidMemberOrPet ( float  radius)

Definition at line 6306 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetNpcFlags()

NPCFlags Unit::GetNpcFlags ( ) const
inline

Definition at line 1095 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetOwnedAura()

Aura * Unit::GetOwnedAura ( uint32  spellId,
ObjectGuid  casterGUID = ObjectGuid::Empty,
ObjectGuid  itemCasterGUID = ObjectGuid::Empty,
uint8  reqEffMask = 0,
Aura except = nullptr 
) const

Definition at line 3622 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetOwnedAuras() [1/2]

AuraMap & Unit::GetOwnedAuras ( )
inline

Definition at line 1328 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetOwnedAuras() [2/2]

AuraMap const & Unit::GetOwnedAuras ( ) const
inline

Definition at line 1329 of file Unit.h.

◆ GetOwnerGUID()

ObjectGuid Unit::GetOwnerGUID ( ) const
inlineoverridevirtual

Implements WorldObject.

Definition at line 1241 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetPartyMembers()

void Unit::GetPartyMembers ( std::list< Unit * > &  units)

Definition at line 11911 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetPctModifierValue()

float Unit::GetPctModifierValue ( UnitMods  unitMod,
UnitModifierPctType  modifierType 
) const

Definition at line 9095 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetPetFlags()

UnitPetFlag Unit::GetPetFlags ( ) const
inline

Definition at line 992 of file Unit.h.

◆ GetPetGUID()

ObjectGuid Unit::GetPetGUID ( ) const
inline

Definition at line 1247 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetPosStat()

float Unit::GetPosStat ( Stats  stat) const
inline

Definition at line 1454 of file Unit.h.

◆ GetPower()

uint32 Unit::GetPower ( Powers  power) const
inline

Definition at line 934 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetPowerPct()

float Unit::GetPowerPct ( Powers  power) const
inline

Definition at line 937 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetPowerType()

Powers Unit::GetPowerType ( ) const
inline

Definition at line 931 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetPowerTypeByAuraGroup()

Powers Unit::GetPowerTypeByAuraGroup ( UnitMods  unitMod) const

Definition at line 9297 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetPPMProcChance()

float Unit::GetPPMProcChance ( uint32  WeaponSpeed,
float  PPM,
SpellInfo const *  spellProto 
) const

Definition at line 8170 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetProcAurasTriggeredOnEvent()

void Unit::GetProcAurasTriggeredOnEvent ( AuraApplicationProcContainer aurasTriggeringProc,
AuraApplicationList procAuras,
ProcEventInfo eventInfo 
)

Definition at line 10158 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetPvpFlags()

UnitPVPStateFlags Unit::GetPvpFlags ( ) const
inline

Definition at line 981 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetRace()

uint8 Unit::GetRace ( ) const
inline

Definition at line 892 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetRaceMask()

uint32 Unit::GetRaceMask ( ) const
inline

Definition at line 894 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetRangedCritChanceReduction()

float Unit::GetRangedCritChanceReduction ( ) const
inline

Definition at line 1054 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetRangedCritDamageReduction()

uint32 Unit::GetRangedCritDamageReduction ( uint32  damage) const
inline

Definition at line 1059 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetRangedDamageReduction()

uint32 Unit::GetRangedDamageReduction ( uint32  damage) const
inline

Definition at line 1064 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetResistance() [1/2]

int32 Unit::GetResistance ( SpellSchoolMask  mask) const

Definition at line 13162 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetResistance() [2/2]

int32 Unit::GetResistance ( SpellSchools  school) const
inline

Definition at line 908 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetScheduledChangeAI()

UnitAI * Unit::GetScheduledChangeAI ( )
protected

Definition at line 9576 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetSchoolImmunityMask()

uint32 Unit::GetSchoolImmunityMask ( ) const

Definition at line 7781 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetShapeshiftForm()

ShapeshiftForm Unit::GetShapeshiftForm ( ) const
inline

Definition at line 1490 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetSharedVisionList()

SharedVisionList const & Unit::GetSharedVisionList ( )
inline

Definition at line 1305 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetSheath()

SheathState Unit::GetSheath ( ) const
inline

Definition at line 969 of file Unit.h.

◆ GetShieldBlockValue() [1/2]

virtual uint32 Unit::GetShieldBlockValue ( ) const
pure virtual

Implemented in Creature, and Player.

+ Here is the caller graph for this function:

◆ GetShieldBlockValue() [2/2]

uint32 Unit::GetShieldBlockValue ( uint32  soft_cap,
uint32  hard_cap 
) const

Definition at line 2542 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetSingleCastAuras() [1/2]

AuraList & Unit::GetSingleCastAuras ( )
inline

Definition at line 1386 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetSingleCastAuras() [2/2]

AuraList const & Unit::GetSingleCastAuras ( ) const
inline

Definition at line 1387 of file Unit.h.

◆ GetSpeed()

float Unit::GetSpeed ( UnitMoveType  mtype) const

Definition at line 8668 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetSpeedRate()

float Unit::GetSpeedRate ( UnitMoveType  mtype) const
inline

Definition at line 1654 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetSpellCritChanceReduction()

float Unit::GetSpellCritChanceReduction ( ) const
inline

Definition at line 1055 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetSpellCritDamageReduction()

uint32 Unit::GetSpellCritDamageReduction ( uint32  damage) const
inline

Definition at line 1060 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetSpellDamageReduction()

uint32 Unit::GetSpellDamageReduction ( uint32  damage) const
inline

Definition at line 1065 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetSpellHistory() [1/2]

SpellHistory * Unit::GetSpellHistory ( )
inline

Definition at line 1484 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetSpellHistory() [2/2]

SpellHistory const * Unit::GetSpellHistory ( ) const
inline

Definition at line 1485 of file Unit.h.

◆ GetSpellSchoolByAuraGroup()

SpellSchools Unit::GetSpellSchoolByAuraGroup ( UnitMods  unitMod) const

Definition at line 9258 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetStandState()

UnitStandStateType Unit::GetStandState ( ) const
inline

Definition at line 1001 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetStat()

float Unit::GetStat ( Stats  stat) const
inline

Definition at line 903 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetStatByAuraGroup()

Stats Unit::GetStatByAuraGroup ( UnitMods  unitMod) const

Definition at line 9278 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetTarget()

ObjectGuid Unit::GetTarget ( ) const
inline

Definition at line 1797 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetThreatManager() [1/2]

ThreatManager & Unit::GetThreatManager ( )
inline

Definition at line 1155 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetThreatManager() [2/2]

ThreatManager const & Unit::GetThreatManager ( ) const
inline

Definition at line 1156 of file Unit.h.

◆ GetTopAI()

UnitAI * Unit::GetTopAI ( ) const
inlineprotected

Definition at line 806 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetTotalAttackPowerValue()

float Unit::GetTotalAttackPowerValue ( WeaponAttackType  attType) const

Definition at line 9312 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetTotalAuraModifier() [1/2]

int32 Unit::GetTotalAuraModifier ( AuraType  auraType) const

Definition at line 4792 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetTotalAuraModifier() [2/2]

int32 Unit::GetTotalAuraModifier ( AuraType  auraType,
std::function< bool(AuraEffect const *)> const &  predicate 
) const

Definition at line 4706 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetTotalAuraModifierByAffectMask()

int32 Unit::GetTotalAuraModifierByAffectMask ( AuraType  auraType,
SpellInfo const *  affectedSpell 
) const

Definition at line 4892 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetTotalAuraModifierByMiscMask()

int32 Unit::GetTotalAuraModifierByMiscMask ( AuraType  auraType,
uint32  misc_mask 
) const

Definition at line 4812 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetTotalAuraModifierByMiscValue()

int32 Unit::GetTotalAuraModifierByMiscValue ( AuraType  auraType,
int32  misc_value 
) const

Definition at line 4852 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetTotalAuraModValue()

float Unit::GetTotalAuraModValue ( UnitMods  unitMod) const

Definition at line 9242 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetTotalAuraMultiplier() [1/2]

float Unit::GetTotalAuraMultiplier ( AuraType  auraType) const

Definition at line 4797 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetTotalAuraMultiplier() [2/2]

float Unit::GetTotalAuraMultiplier ( AuraType  auraType,
std::function< bool(AuraEffect const *)> const &  predicate 
) const

Definition at line 4733 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetTotalAuraMultiplierByAffectMask()

float Unit::GetTotalAuraMultiplierByAffectMask ( AuraType  auraType,
SpellInfo const *  affectedSpell 
) const

Definition at line 4902 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetTotalAuraMultiplierByMiscMask()

float Unit::GetTotalAuraMultiplierByMiscMask ( AuraType  auraType,
uint32  misc_mask 
) const

Definition at line 4822 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetTotalAuraMultiplierByMiscValue()

float Unit::GetTotalAuraMultiplierByMiscValue ( AuraType  auraType,
int32  misc_value 
) const

Definition at line 4862 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetTotalStatValue()

float Unit::GetTotalStatValue ( Stats  stat) const

Definition at line 9229 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetTransformSpell()

uint32 Unit::GetTransformSpell ( ) const
inline

Definition at line 1588 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetTransGUID()

ObjectGuid Unit::GetTransGUID ( ) const
overridevirtual

Reimplemented from WorldObject.

Definition at line 11856 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetUnitBlockChance()

float Unit::GetUnitBlockChance ( WeaponAttackType  attType,
Unit const *  victim 
) const

Definition at line 2671 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetUnitCriticalChanceAgainst()

float Unit::GetUnitCriticalChanceAgainst ( WeaponAttackType  attackType,
Unit const *  victim 
) const

Definition at line 2780 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetUnitCriticalChanceDone()

float Unit::GetUnitCriticalChanceDone ( WeaponAttackType  attackType) const

Definition at line 2709 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetUnitCriticalChanceTaken()

float Unit::GetUnitCriticalChanceTaken ( Unit const *  attacker,
WeaponAttackType  attackType,
float  critDone 
) const

Definition at line 2744 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetUnitDodgeChance()

float Unit::GetUnitDodgeChance ( WeaponAttackType  attType,
Unit const *  victim 
) const

Definition at line 2572 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetUnitFlags()

UnitFlags Unit::GetUnitFlags ( ) const
inline

Definition at line 952 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetUnitFlags2()

UnitFlags2 Unit::GetUnitFlags2 ( ) const
inline

Definition at line 958 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetUnitMissChance()

float Unit::GetUnitMissChance ( ) const

Definition at line 2661 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetUnitMovementFlags()

uint32 Unit::GetUnitMovementFlags ( ) const
inline

Definition at line 1679 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetUnitParryChance()

float Unit::GetUnitParryChance ( WeaponAttackType  attType,
Unit const *  victim 
) const

Definition at line 2615 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetVehicle()

Vehicle * Unit::GetVehicle ( ) const
inline

Definition at line 1737 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetVehicleBase()

Unit * Unit::GetVehicleBase ( ) const

Definition at line 11826 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetVehicleCreatureBase()

Creature * Unit::GetVehicleCreatureBase ( ) const

Definition at line 11847 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetVehicleKit()

Vehicle * Unit::GetVehicleKit ( ) const
inline

Definition at line 1735 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetVehicleKitWeakPtr()

Trinity::unique_weak_ptr< Vehicle > Unit::GetVehicleKitWeakPtr ( ) const
inline

Definition at line 1736 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetVehicleRoot()

Unit * Unit::GetVehicleRoot ( ) const

Definition at line 11831 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetVictim()

Unit * Unit::GetVictim ( ) const
inline

Definition at line 859 of file Unit.h.

◆ GetVirtualItemId()

uint32 Unit::GetVirtualItemId ( uint32  slot) const

Definition at line 13860 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetVisibleAura()

AuraApplication * Unit::GetVisibleAura ( uint8  slot) const

Definition at line 640 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetVisibleAuras()

VisibleAuraMap const & Unit::GetVisibleAuras ( ) const
inline

Definition at line 1571 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetWeaponDamageRange()

float Unit::GetWeaponDamageRange ( WeaponAttackType  attType,
WeaponDamageRange  type,
uint8  damageIndex = 0 
) const

Definition at line 9330 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetWeaponProcChance()

float Unit::GetWeaponProcChance ( ) const

Definition at line 8159 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetWeaponSkillValue()

uint32 Unit::GetWeaponSkillValue ( WeaponAttackType  attType,
Unit const *  target = nullptr 
) const

Definition at line 2786 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleEmoteCommand()

void Unit::HandleEmoteCommand ( Emote  emoteId)

Definition at line 1568 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleProcExtraAttackFor()

void Unit::HandleProcExtraAttackFor ( Unit victim,
uint32  count 
)

Definition at line 2122 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleSpellClick()

void Unit::HandleSpellClick ( Unit clicker,
int8  seatId = -1 
)

First check simple relations from clicker to clickee

Check database conditions

Definition at line 12478 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleStatFlatModifier()

void Unit::HandleStatFlatModifier ( UnitMods  unitMod,
UnitModifierFlatType  modifierType,
float  amount,
bool  apply 
)

Definition at line 9018 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HasAura()

bool Unit::HasAura ( uint32  spellId,
ObjectGuid  casterGUID = ObjectGuid::Empty,
ObjectGuid  itemCasterGUID = ObjectGuid::Empty,
uint8  reqEffMask = 0 
) const

Definition at line 4535 of file Unit.cpp.

+ Here is the call graph for this function:

◆ HasAuraEffect()

bool Unit::HasAuraEffect ( uint32  spellId,
uint8  effIndex,
ObjectGuid  caster = ObjectGuid::Empty 
) const

Definition at line 4505 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ HasAuraState()

bool Unit::HasAuraState ( AuraStateType  flag,
SpellInfo const *  spellProto = nullptr,
Unit const *  Caster = nullptr 
) const

Definition at line 5815 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HasAuraType()

bool Unit::HasAuraType ( AuraType  auraType) const

Definition at line 4542 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ HasAuraTypeWithAffectMask()

bool Unit::HasAuraTypeWithAffectMask ( AuraType  auraType,
SpellInfo const *  affectedSpell 
) const

Definition at line 4564 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HasAuraTypeWithCaster()

bool Unit::HasAuraTypeWithCaster ( AuraType  auraType,
ObjectGuid  caster 
) const

Definition at line 4547 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HasAuraTypeWithFamilyFlags()

bool Unit::HasAuraTypeWithFamilyFlags ( AuraType  auraType,
uint32  familyName,
flag96  familyFlags 
) const

Definition at line 671 of file Unit.cpp.

+ Here is the call graph for this function:

◆ HasAuraTypeWithMiscvalue()

bool Unit::HasAuraTypeWithMiscvalue ( AuraType  auraType,
int32  miscValue 
) const

Definition at line 4555 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HasAuraTypeWithTriggerSpell()

bool Unit::HasAuraTypeWithTriggerSpell ( AuraType  auratype,
uint32  triggerSpell 
) const

Definition at line 4582 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HasAuraTypeWithValue()

bool Unit::HasAuraTypeWithValue ( AuraType  auraType,
int32  value 
) const

Definition at line 4573 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HasAuraWithMechanic()

bool Unit::HasAuraWithMechanic ( uint32  mechanicMask) const

Definition at line 4602 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HasBreakableByDamageAuraType()

bool Unit::HasBreakableByDamageAuraType ( AuraType  type,
uint32  excludeAura = 0 
) const

Definition at line 683 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HasBreakableByDamageCrowdControlAura()

bool Unit::HasBreakableByDamageCrowdControlAura ( Unit excludeCasterChannel = nullptr) const

Definition at line 693 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HasExtraUnitMovementFlag()

bool Unit::HasExtraUnitMovementFlag ( uint32  f) const
inline

Definition at line 1684 of file Unit.h.

◆ HasInterruptFlag()

bool Unit::HasInterruptFlag ( uint32  flags) const
inline

Definition at line 1576 of file Unit.h.

◆ HasInvisibilityAura()

bool Unit::HasInvisibilityAura ( ) const
inline

Definition at line 1166 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasNegativeAuraWithInterruptFlag()

bool Unit::HasNegativeAuraWithInterruptFlag ( uint32  flag,
ObjectGuid  guid = ObjectGuid::Empty 
) const

Definition at line 4590 of file Unit.cpp.

◆ HasNpcFlag()

bool Unit::HasNpcFlag ( NPCFlags  flags) const
inline

Definition at line 1096 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasPendingMovementChange() [1/2]

bool Unit::HasPendingMovementChange ( ) const
inline

Definition at line 1776 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasPendingMovementChange() [2/2]

bool Unit::HasPendingMovementChange ( MovementChangeType  changeType) const

Definition at line 12965 of file Unit.cpp.

◆ HasPetFlag()

bool Unit::HasPetFlag ( UnitPetFlag  flags) const
inline

Definition at line 993 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasPvpFlag()

bool Unit::HasPvpFlag ( UnitPVPStateFlags  flags) const
inline

Definition at line 982 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasScheduledAIChange()

bool Unit::HasScheduledAIChange ( ) const
protected

Definition at line 9584 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HasSharedVision()

bool Unit::HasSharedVision ( ) const
inline

Definition at line 1308 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasSpell()

virtual bool Unit::HasSpell ( uint32  ) const
inlinevirtual

Reimplemented in Pet, Player, and Creature.

Definition at line 1161 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasSpellFocus()

virtual bool Unit::HasSpellFocus ( Spell const *  = nullptr) const
inlinevirtual

Reimplemented in Creature.

Definition at line 1481 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasStealthAura()

bool Unit::HasStealthAura ( ) const
inline

Definition at line 1165 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasStrongerAuraWithDR()

bool Unit::HasStrongerAuraWithDR ( SpellInfo const *  auraSpellInfo,
Unit caster,
bool  triggered 
) const

Definition at line 4619 of file Unit.cpp.

+ Here is the call graph for this function:

◆ HasUnitFlag()

bool Unit::HasUnitFlag ( UnitFlags  flags) const
inline

Definition at line 953 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasUnitFlag2()

bool Unit::HasUnitFlag2 ( UnitFlags2  flags) const
inline

Definition at line 959 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasUnitMovementFlag()

bool Unit::HasUnitMovementFlag ( uint32  f) const
inline

Definition at line 1678 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasUnitState()

bool Unit::HasUnitState ( const uint32  f) const
inline

Definition at line 876 of file Unit.h.

◆ HasUnitTypeMask()

uint32 Unit::HasUnitTypeMask ( uint32  mask) const
inline

Definition at line 880 of file Unit.h.

+ Here is the caller graph for this function:

◆ haveOffhandWeapon()

bool Unit::haveOffhandWeapon ( ) const

Definition at line 510 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HealBySpell()

int32 Unit::HealBySpell ( HealInfo healInfo,
bool  critical = false 
)

Definition at line 6420 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HealthAbovePct()

bool Unit::HealthAbovePct ( int32  pct) const
inline

Definition at line 919 of file Unit.h.

+ Here is the caller graph for this function:

◆ HealthAbovePctHealed()

bool Unit::HealthAbovePctHealed ( int32  pct,
uint32  heal 
) const
inline

Definition at line 920 of file Unit.h.

+ Here is the caller graph for this function:

◆ HealthBelowPct()

bool Unit::HealthBelowPct ( int32  pct) const
inline

Definition at line 917 of file Unit.h.

+ Here is the caller graph for this function:

◆ HealthBelowPctDamaged()

bool Unit::HealthBelowPctDamaged ( int32  pct,
uint32  damage 
) const
inline

Definition at line 918 of file Unit.h.

+ Here is the caller graph for this function:

◆ Heartbeat()

void Unit::Heartbeat ( )
overridevirtual

Reimplemented from WorldObject.

Definition at line 502 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IncrDiminishing()

void Unit::IncrDiminishing ( SpellInfo const *  auraSpellInfo,
bool  triggered 
)

Definition at line 8847 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitCharmInfo()

CharmInfo * Unit::InitCharmInfo ( )

Definition at line 9730 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ InitStatBuffMods()

void Unit::InitStatBuffMods ( )

Definition at line 4961 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitTamedPet()

bool Unit::InitTamedPet ( Pet pet,
uint8  level,
uint32  spell_id 
)

Definition at line 10900 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InterruptMovementBasedAuras()

void Unit::InterruptMovementBasedAuras ( )
private

Definition at line 582 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InterruptNonMeleeSpells()

void Unit::InterruptNonMeleeSpells ( bool  withDelayed,
uint32  spellid = 0,
bool  withInstant = true 
)

Definition at line 3093 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InterruptSpell()

void Unit::InterruptSpell ( CurrentSpellTypes  spellType,
bool  withDelayed = true,
bool  withInstant = true,
SpellCastResult  result = SPELL_FAILED_INTERRUPTED,
Optional< SpellCastResult resultOther = {} 
)

Definition at line 3021 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsAffectedByDiminishingReturns()

virtual bool Unit::IsAffectedByDiminishingReturns ( ) const
inlinevirtual

Reimplemented in Creature.

Definition at line 821 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsAIEnabled()

bool Unit::IsAIEnabled ( ) const
inline

Definition at line 798 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsAlive()

bool Unit::IsAlive ( ) const
inline

Definition at line 1234 of file Unit.h.

◆ IsAlwaysDetectableFor()

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

Reimplemented from WorldObject.

Definition at line 8497 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsAlwaysVisibleFor()

bool Unit::IsAlwaysVisibleFor ( WorldObject const *  seer) const
overrideprotectedvirtual

Reimplemented from WorldObject.

Definition at line 8477 of file Unit.cpp.

+ Here is the call graph for this function:

◆ IsArmorer()

bool Unit::IsArmorer ( ) const
inline

Definition at line 1114 of file Unit.h.

◆ isAttackingPlayer()

bool Unit::isAttackingPlayer ( ) const

Definition at line 5718 of file Unit.cpp.

+ Here is the call graph for this function:

◆ isAttackReady()

bool Unit::isAttackReady ( WeaponAttackType  type = BASE_ATTACK) const
inline

Definition at line 835 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsAuctioner()

bool Unit::IsAuctioner ( ) const
inline

Definition at line 1113 of file Unit.h.

◆ IsBanker()

bool Unit::IsBanker ( ) const
inline

Definition at line 1108 of file Unit.h.

◆ IsBattleMaster()

bool Unit::IsBattleMaster ( ) const
inline

Definition at line 1107 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsBlockCritical()

bool Unit::IsBlockCritical ( )

Definition at line 2352 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsCharmed()

bool Unit::IsCharmed ( ) const
inline

Definition at line 1280 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsCharmedOwnedByPlayerOrPlayer()

bool Unit::IsCharmedOwnedByPlayerOrPlayer ( ) const
inline

Definition at line 1261 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsCharmerOrSelfPlayer()

bool Unit::IsCharmerOrSelfPlayer ( ) const
inline

Definition at line 1294 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsCharming()

bool Unit::IsCharming ( ) const
inline

Definition at line 1281 of file Unit.h.

◆ IsCombatDisallowed()

bool Unit::IsCombatDisallowed ( ) const
inline

Definition at line 1826 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsContestedGuard()

bool Unit::IsContestedGuard ( ) const

Definition at line 11948 of file Unit.cpp.

+ Here is the call graph for this function:

◆ IsControlledByPlayer()

bool Unit::IsControlledByPlayer ( ) const
inline

Definition at line 1258 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsCritter()

bool Unit::IsCritter ( ) const
inline

Definition at line 1117 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsDamageReducedByArmor()

bool Unit::IsDamageReducedByArmor ( SpellSchoolMask  damageSchoolMask,
SpellInfo const *  spellInfo = nullptr 
)
static

Definition at line 1576 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isDead()

bool Unit::isDead ( ) const
inline

Definition at line 1236 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsDuringRemoveFromWorld()

bool Unit::IsDuringRemoveFromWorld ( ) const
inline

Definition at line 1786 of file Unit.h.

+ Here is the caller graph for this function:

◆ isDying()

bool Unit::isDying ( ) const
inline

Definition at line 1235 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsEngaged()

virtual bool Unit::IsEngaged ( ) const
inlinevirtual

Reimplemented in Creature.

Definition at line 1126 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsEngagedBy()

bool Unit::IsEngagedBy ( Unit const *  who) const
inline

Definition at line 1127 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsFalling()

bool Unit::IsFalling ( ) const

Definition at line 12813 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsFeared()

bool Unit::IsFeared ( ) const
inline

Definition at line 1167 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsFFAPvP()

bool Unit::IsFFAPvP ( ) const
inline

Definition at line 989 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsFlying()

bool Unit::IsFlying ( ) const
inline

Definition at line 1762 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsFrozen()

bool Unit::IsFrozen ( ) const
inline

Definition at line 1170 of file Unit.h.

◆ IsFullHealth()

bool Unit::IsFullHealth ( ) const
inline

Definition at line 916 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsGhouled()

bool Unit::IsGhouled ( ) const

Definition at line 8723 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsGossip()

bool Unit::IsGossip ( ) const
inline

Definition at line 1104 of file Unit.h.

◆ IsGravityDisabled()

bool Unit::IsGravityDisabled ( ) const
inline

Definition at line 1218 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsGuardian()

bool Unit::IsGuardian ( ) const
inline

Definition at line 883 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsGuildMaster()

bool Unit::IsGuildMaster ( ) const
inline

Definition at line 1106 of file Unit.h.

◆ IsHighestExclusiveAura()

bool Unit::IsHighestExclusiveAura ( Aura const *  aura,
bool  removeOtherAuraApplications = false 
)

Definition at line 13777 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsHighestExclusiveAuraEffect()

bool Unit::IsHighestExclusiveAuraEffect ( SpellInfo const *  spellInfo,
AuraType  auraType,
int32  effectAmount,
uint8  auraEffectMask,
bool  removeOtherAuraApplications = false 
)

Definition at line 13787 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsHovering()

bool Unit::IsHovering ( ) const
inline

Definition at line 1220 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsHunterPet()

bool Unit::IsHunterPet ( ) const
inline

Definition at line 885 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsImmunedToDamage() [1/2]

bool Unit::IsImmunedToDamage ( SpellInfo const *  spellInfo) const

Definition at line 7657 of file Unit.cpp.

+ Here is the call graph for this function:

◆ IsImmunedToDamage() [2/2]

bool Unit::IsImmunedToDamage ( SpellSchoolMask  meleeSchoolMask) const

Definition at line 7639 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsImmunedToSpell()

bool Unit::IsImmunedToSpell ( SpellInfo const *  spellInfo,
WorldObject const *  caster,
bool  requireImmunityPurgesEffectAttribute = false 
) const
virtual

Reimplemented in Creature.

Definition at line 7691 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsImmunedToSpellEffect()

bool Unit::IsImmunedToSpellEffect ( SpellInfo const *  spellInfo,
SpellEffectInfo const &  spellEffectInfo,
WorldObject const *  caster,
bool  requireImmunityPurgesEffectAttribute = false 
) const
virtual

Reimplemented in Creature, Player, and Totem.

Definition at line 7811 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsImmuneToAll()

bool Unit::IsImmuneToAll ( ) const
inline

Definition at line 1134 of file Unit.h.

◆ IsImmuneToNPC()

bool Unit::IsImmuneToNPC ( ) const
inline

Definition at line 1140 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsImmuneToPC()

bool Unit::IsImmuneToPC ( ) const
inline

Definition at line 1137 of file Unit.h.

+ Here is the caller graph for this function:

◆ isInAccessiblePlaceFor()

bool Unit::isInAccessiblePlaceFor ( Creature const *  c) const

Definition at line 3154 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isInBackInMap()

bool Unit::isInBackInMap ( Unit const *  target,
float  distance,
float  arc = float(M_PI) 
) const

Definition at line 3149 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsInCombat()

bool Unit::IsInCombat ( ) const
inline

Definition at line 1144 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsInCombatWith()

bool Unit::IsInCombatWith ( Unit const *  who) const
inline

Definition at line 1145 of file Unit.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsInDisallowedMountForm()

bool Unit::IsInDisallowedMountForm ( ) const

Definition at line 8975 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsInFeralForm()

bool Unit::IsInFeralForm ( ) const

Definition at line 8969 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsInFlight()

bool Unit::IsInFlight ( ) const
inline

Definition at line 1119 of file Unit.h.

+ Here is the caller graph for this function:

◆ isInFrontInMap()

bool Unit::isInFrontInMap ( Unit const *  target,
float  distance,
float  arc = float(M_PI) 
) const

Definition at line 3144 of file Unit.cpp.

+ Here is the call graph for this function:

◆ IsInnkeeper()

bool Unit::IsInnkeeper ( ) const
inline

Definition at line 1109 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsInPartyWith()

bool Unit::IsInPartyWith ( Unit const *  unit) const

Definition at line 11873 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsInRaidWith()

bool Unit::IsInRaidWith ( Unit const *  unit) const

Definition at line 11892 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsInSanctuary()

bool Unit::IsInSanctuary ( ) const
inline

Definition at line 987 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsInWater()

bool Unit::IsInWater ( ) const

Definition at line 3162 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsLoading()

virtual bool Unit::IsLoading ( ) const
inlinevirtual

Reimplemented in Pet, and Player.

Definition at line 1785 of file Unit.h.

◆ IsMagnet()

bool Unit::IsMagnet ( ) const
Todo:
: find a more generic solution

Definition at line 6212 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsMounted()

bool Unit::IsMounted ( ) const
inline

Definition at line 1013 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsMovedByClient()

bool Unit::IsMovedByClient ( ) const
inline

Definition at line 1300 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsMovedByServer()

bool Unit::IsMovedByServer ( ) const
inline

Definition at line 1301 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsMovementPreventedByCasting()

bool Unit::IsMovementPreventedByCasting ( ) const
virtual

Reimplemented in Creature.

Definition at line 3123 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isMoving()

bool Unit::isMoving ( ) const
inline

Definition at line 1759 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsNonMeleeSpellCast()

bool Unit::IsNonMeleeSpellCast ( bool  withDelayed,
bool  skipChanneled = false,
bool  skipAutorepeat = false,
bool  isAutoshoot = false,
bool  skipInstant = true 
) const

Definition at line 3063 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ IsOnVehicle()

bool Unit::IsOnVehicle ( Unit const *  vehicle) const

Definition at line 11821 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsPet()

bool Unit::IsPet ( ) const
inline

Definition at line 884 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsPolymorphed()

bool Unit::IsPolymorphed ( ) const

Definition at line 10378 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isPossessed()

bool Unit::isPossessed ( ) const
inline

Definition at line 1282 of file Unit.h.

+ Here is the caller graph for this function:

◆ isPossessedByPlayer()

bool Unit::isPossessedByPlayer ( ) const

Definition at line 6280 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isPossessing() [1/2]

bool Unit::isPossessing ( ) const

Definition at line 6290 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isPossessing() [2/2]

bool Unit::isPossessing ( Unit u) const

Definition at line 6285 of file Unit.cpp.

+ Here is the call graph for this function:

◆ IsPvP()

bool Unit::IsPvP ( ) const
inline

Definition at line 988 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsQuestGiver()

bool Unit::IsQuestGiver ( ) const
inline

Definition at line 1103 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsRooted()

bool Unit::IsRooted ( ) const
inline

Definition at line 1168 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsScriptOverriden()

AuraEffect * Unit::IsScriptOverriden ( SpellInfo const *  spell,
int32  script 
) const

Definition at line 4639 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsServiceProvider()

bool Unit::IsServiceProvider ( ) const

Definition at line 8283 of file Unit.cpp.

+ Here is the call graph for this function:

◆ IsSitState()

bool Unit::IsSitState ( ) const

Definition at line 10348 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsSpiritGuide()

bool Unit::IsSpiritGuide ( ) const
inline

Definition at line 1111 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsSpiritHealer()

bool Unit::IsSpiritHealer ( ) const
inline

Definition at line 1110 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsSpiritService()

bool Unit::IsSpiritService ( ) const
inline

Definition at line 1116 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsSplineEnabled()

bool Unit::IsSplineEnabled ( ) const

Definition at line 13569 of file Unit.cpp.

+ Here is the call graph for this function:

◆ IsStandState()

bool Unit::IsStandState ( ) const

Definition at line 10357 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsStopped()

bool Unit::IsStopped ( ) const
inline

Definition at line 1671 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsSummon()

bool Unit::IsSummon ( ) const
inline

Definition at line 882 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsTabardDesigner()

bool Unit::IsTabardDesigner ( ) const
inline

Definition at line 1112 of file Unit.h.

+ Here is the caller graph for this function:

◆ isTargetableForAttack()

bool Unit::isTargetableForAttack ( bool  checkFakeDeath = true) const

Definition at line 8367 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsTaxi()

bool Unit::IsTaxi ( ) const
inline

Definition at line 1105 of file Unit.h.

◆ IsThreatened()

bool Unit::IsThreatened ( ) const

Definition at line 8362 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsThreatenedBy()

bool Unit::IsThreatenedBy ( Unit const *  who) const
inline

Definition at line 1151 of file Unit.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsTotem()

bool Unit::IsTotem ( ) const
inline

Definition at line 886 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsTrainer()

bool Unit::IsTrainer ( ) const
inline

Definition at line 1102 of file Unit.h.

+ Here is the caller graph for this function:

◆ isTurning()

bool Unit::isTurning ( ) const
inline

Definition at line 1760 of file Unit.h.

◆ IsUnderLastManaUseEffect()

bool Unit::IsUnderLastManaUseEffect ( ) const

Definition at line 10851 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsUnderWater()

bool Unit::IsUnderWater ( ) const

Definition at line 3167 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsVehicle()

bool Unit::IsVehicle ( ) const
inline

Definition at line 887 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsVendor()

bool Unit::IsVendor ( ) const
inline

Definition at line 1101 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsVisible()

bool Unit::IsVisible ( ) const

Definition at line 8508 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsWalking()

bool Unit::IsWalking ( ) const
inline

Definition at line 1219 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsWithinCombatRange()

bool Unit::IsWithinCombatRange ( Unit const *  obj,
float  dist2compare 
) const

Definition at line 603 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsWithinMeleeRange()

bool Unit::IsWithinMeleeRange ( Unit const *  obj) const
inline

Definition at line 844 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsWithinMeleeRangeAt()

bool Unit::IsWithinMeleeRangeAt ( Position const &  pos,
Unit const *  obj 
) const

Definition at line 619 of file Unit.cpp.

+ Here is the call graph for this function:

◆ JumpTo() [1/2]

void Unit::JumpTo ( float  speedXY,
float  speedZ,
bool  forward = true,
Optional< Position dest = {} 
)

Definition at line 12454 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ JumpTo() [2/2]

void Unit::JumpTo ( WorldObject obj,
float  speedZ,
bool  withOrientation = false 
)

Definition at line 12470 of file Unit.cpp.

+ Here is the call graph for this function:

◆ Kill()

void Unit::Kill ( Unit attacker,
Unit victim,
bool  durabilityLoss = true 
)
static
Todo:
do instance binding anyway if the charmer/owner is offline

Definition at line 10930 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ KillSelf()

void Unit::KillSelf ( bool  durabilityLoss = true)
inline

Definition at line 1023 of file Unit.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ KnockbackFrom()

void Unit::KnockbackFrom ( float  x,
float  y,
float  speedXY,
float  speedZ 
)

Definition at line 12204 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MeleeDamageBonusDone()

uint32 Unit::MeleeDamageBonusDone ( Unit pVictim,
uint32  damage,
WeaponAttackType  attType,
SpellInfo const *  spellProto = nullptr,
SpellSchoolMask  damageSchoolMask = SPELL_SCHOOL_MASK_NORMAL 
)

Definition at line 7871 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MeleeDamageBonusTaken()

uint32 Unit::MeleeDamageBonusTaken ( Unit attacker,
uint32  pdamage,
WeaponAttackType  attType,
SpellInfo const *  spellProto = nullptr,
SpellSchoolMask  damageSchoolMask = SPELL_SCHOOL_MASK_NORMAL 
)

Definition at line 8033 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MeleeSpellHitResult()

SpellMissInfo Unit::MeleeSpellHitResult ( Unit victim,
SpellInfo const *  spellInfo 
) const
overridevirtual

Reimplemented from WorldObject.

Definition at line 2398 of file Unit.cpp.

+ Here is the call graph for this function:

◆ MeleeSpellMissChance()

float Unit::MeleeSpellMissChance ( Unit const *  victim,
WeaponAttackType  attType,
int32  skillDiff,
uint32  spellId 
) const
overridevirtual

Reimplemented from WorldObject.

Definition at line 12102 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ModifyAuraState()

void Unit::ModifyAuraState ( AuraStateType  flag,
bool  apply 
)

Definition at line 5749 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ModifyHealth()

int32 Unit::ModifyHealth ( int32  val)

Definition at line 8381 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ModifyPower()

int32 Unit::ModifyPower ( Powers  power,
int32  val,
bool  withPowerUpdate = true 
)

Definition at line 8439 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MonsterMoveWithSpeed()

void Unit::MonsterMoveWithSpeed ( float  x,
float  y,
float  z,
float  speed,
bool  generatePath = false,
bool  forceDestination = false 
)

Definition at line 518 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Mount()

void Unit::Mount ( uint32  mount,
uint32  vehicleId = 0,
uint32  creatureEntry = 0 
)

Definition at line 8184 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NearTeleportTo() [1/2]

void Unit::NearTeleportTo ( float  x,
float  y,
float  z,
float  orientation,
bool  casting = false 
)
inline

Definition at line 1201 of file Unit.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NearTeleportTo() [2/2]

void Unit::NearTeleportTo ( Position const &  pos,
bool  casting = false 
)

Definition at line 12832 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ OutDebugInfo()

void Unit::OutDebugInfo ( ) const

Definition at line 13113 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PauseMovement()

void Unit::PauseMovement ( uint32  timer = 0,
uint8  slot = 0,
bool  forced = true 
)

Definition at line 10327 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PeakFirstPendingMovementChange()

PlayerMovementPendingChange & Unit::PeakFirstPendingMovementChange ( )

Definition at line 12948 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ PopAI()

bool Unit::PopAI ( )

Definition at line 9535 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ PopPendingMovementChange()

PlayerMovementPendingChange Unit::PopPendingMovementChange ( )

Definition at line 12953 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ ProcessPositionDataChanged()

void Unit::ProcessPositionDataChanged ( PositionFullTerrainStatus const &  data)
overrideprotectedvirtual

Reimplemented from WorldObject.

Definition at line 3172 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessTerrainStatusUpdate()

void Unit::ProcessTerrainStatusUpdate ( ZLiquidStatus  oldLiquidStatus,
Optional< LiquidData > const &  newLiquidData 
)
protectedvirtual

Reimplemented in Player.

Definition at line 3179 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcSkillsAndAuras()

void Unit::ProcSkillsAndAuras ( Unit actor,
Unit actionTarget,
uint32  typeMaskActor,
uint32  typeMaskActionTarget,
uint32  spellTypeMask,
uint32  spellPhaseMask,
uint32  hitMask,
Spell spell,
DamageInfo damageInfo,
HealInfo healInfo 
)
static

Definition at line 5240 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcSkillsAndReactives()

void Unit::ProcSkillsAndReactives ( bool  isVictim,
Unit procTarget,
uint32  typeMask,
uint32  hitMask,
WeaponAttackType  attType 
)
private

Definition at line 10075 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PropagateSpeedChange()

void Unit::PropagateSpeedChange ( )

-------—End of Pet responses methods-------—

Definition at line 10302 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PurgeAndApplyPendingMovementChanges()

void Unit::PurgeAndApplyPendingMovementChanges ( bool  informObservers = true)

Definition at line 13005 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PushAI()

void Unit::PushAI ( UnitAI newAI)

Definition at line 9524 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ PushPendingMovementChange()

void Unit::PushPendingMovementChange ( PlayerMovementPendingChange  newChange)

Definition at line 12960 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ RecalculateObjectScale()

void Unit::RecalculateObjectScale ( )
virtual

Definition at line 10399 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RefreshAI()

void Unit::RefreshAI ( )
protected

Definition at line 9546 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ RemoveAllAttackers()

void Unit::RemoveAllAttackers ( )

Definition at line 5736 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ RemoveAllAuras()

void Unit::RemoveAllAuras ( )

Definition at line 4157 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveAllAurasExceptType() [1/2]

void Unit::RemoveAllAurasExceptType ( AuraType  type)

Definition at line 4272 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveAllAurasExceptType() [2/2]

void Unit::RemoveAllAurasExceptType ( AuraType  type1,
AuraType  type2 
)

Definition at line 4293 of file Unit.cpp.

+ Here is the call graph for this function:

◆ RemoveAllAurasOnDeath()

void Unit::RemoveAllAurasOnDeath ( )

Definition at line 4228 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveAllAurasRequiringDeadTarget()

void Unit::RemoveAllAurasRequiringDeadTarget ( )

Definition at line 4251 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveAllControlled()

void Unit::RemoveAllControlled ( )

Definition at line 6253 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveAllDynObjects()

void Unit::RemoveAllDynObjects ( )

Definition at line 5071 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ RemoveAllFollowers()

void Unit::RemoveAllFollowers ( )

Definition at line 8717 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveAllGameObjects()

void Unit::RemoveAllGameObjects ( )

Definition at line 5172 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ RemoveAllGroupBuffsFromCaster()

void Unit::RemoveAllGroupBuffsFromCaster ( ObjectGuid  casterGUID)
Todo:
: once we support variadic templates use them here

Definition at line 4314 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveAllMinionsByEntry()

void Unit::RemoveAllMinionsByEntry ( uint32  entry)

Definition at line 6074 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveAppliedAuras() [1/2]

void Unit::RemoveAppliedAuras ( std::function< bool(AuraApplication const *)> const &  check,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3711 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveAppliedAuras() [2/2]

void Unit::RemoveAppliedAuras ( uint32  spellId,
std::function< bool(AuraApplication const *)> const &  check,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3737 of file Unit.cpp.

+ Here is the call graph for this function:

◆ RemoveAreaAurasDueToLeaveWorld()

void Unit::RemoveAreaAurasDueToLeaveWorld ( )

Definition at line 4124 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveArenaAuras()

void Unit::RemoveArenaAuras ( )

Definition at line 4204 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveAura() [1/4]

void Unit::RemoveAura ( Aura aur,
AuraRemoveMode  mode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3703 of file Unit.cpp.

+ Here is the call graph for this function:

◆ RemoveAura() [2/4]

void Unit::RemoveAura ( AuraApplication aurApp,
AuraRemoveMode  mode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3668 of file Unit.cpp.

+ Here is the call graph for this function:

◆ RemoveAura() [3/4]

void Unit::RemoveAura ( AuraApplicationMap::iterator &  i,
AuraRemoveMode  mode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3638 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveAura() [4/4]

void Unit::RemoveAura ( uint32  spellId,
ObjectGuid  casterGUID = ObjectGuid::Empty,
uint8  reqEffMask = 0,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3651 of file Unit.cpp.

+ Here is the call graph for this function:

◆ RemoveAuraFromStack()

void Unit::RemoveAuraFromStack ( uint32  spellId,
ObjectGuid  casterGUID = ObjectGuid::Empty,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3800 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveAurasByShapeShift()

void Unit::RemoveAurasByShapeShift ( )

Definition at line 4109 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveAurasByType() [1/2]

void Unit::RemoveAurasByType ( AuraType  auraType,
ObjectGuid  casterGUID = ObjectGuid::Empty,
Aura except = nullptr,
bool  negative = true,
bool  positive = true 
)

Definition at line 3943 of file Unit.cpp.

+ Here is the call graph for this function:

◆ RemoveAurasByType() [2/2]

void Unit::RemoveAurasByType ( AuraType  auraType,
std::function< bool(AuraApplication const *)> const &  check,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3765 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveAurasDueToItemSpell()

void Unit::RemoveAurasDueToItemSpell ( uint32  spellId,
ObjectGuid  castItemGuid 
)

Definition at line 3929 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveAurasDueToSpell()

void Unit::RemoveAurasDueToSpell ( uint32  spellId,
ObjectGuid  casterGUID = ObjectGuid::Empty,
uint8  reqEffMask = 0,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3784 of file Unit.cpp.

+ Here is the call graph for this function:

◆ RemoveAurasDueToSpellByDispel()

void Unit::RemoveAurasDueToSpellByDispel ( uint32  spellId,
uint32  dispellerSpellId,
ObjectGuid  casterGUID,
WorldObject dispeller,
uint8  chargesRemoved = 1 
)

Definition at line 3817 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveAurasDueToSpellBySteal()

void Unit::RemoveAurasDueToSpellBySteal ( uint32  spellId,
ObjectGuid  casterGUID,
WorldObject stealer 
)

Definition at line 3845 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveAurasOnEvade()

void Unit::RemoveAurasOnEvade ( )

Definition at line 4218 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveAurasWithAttribute()

void Unit::RemoveAurasWithAttribute ( uint32  flags)

Definition at line 3963 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveAurasWithFamily()

void Unit::RemoveAurasWithFamily ( SpellFamilyNames  family,
flag96 const &  familyFlag,
ObjectGuid  casterGUID 
)

Definition at line 4051 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveAurasWithInterruptFlags()

void Unit::RemoveAurasWithInterruptFlags ( uint32  flag,
uint32  except = 0 
)

Definition at line 4022 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveAurasWithMechanic()

void Unit::RemoveAurasWithMechanic ( uint32  mechanicMaskToRemove,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT,
uint32  exceptSpellId = 0,
bool  withEffectMechanics = false 
)

Definition at line 4077 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveBindSightAuras()

void Unit::RemoveBindSightAuras ( )

Definition at line 6379 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveCharmAuras()

void Unit::RemoveCharmAuras ( )

Definition at line 6384 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveCharmedBy()

void Unit::RemoveCharmedBy ( Unit charmer)
Todo:
Handle SLOT_IDLE motion resume

Definition at line 11666 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveComboPointHolder()

void Unit::RemoveComboPointHolder ( Unit unit)
inline

Definition at line 1705 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemoveDynObject()

void Unit::RemoveDynObject ( uint32  spellId)

Definition at line 5054 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveExtraUnitMovementFlag()

void Unit::RemoveExtraUnitMovementFlag ( uint32  f)
inline

Definition at line 1683 of file Unit.h.

◆ RemoveFromWorld()

void Unit::RemoveFromWorld ( )
overridevirtual

Reimplemented from Object.

Definition at line 9601 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveGameObject() [1/2]

void Unit::RemoveGameObject ( GameObject gameObj,
bool  del 
)

Definition at line 5111 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveGameObject() [2/2]

void Unit::RemoveGameObject ( uint32  spellid,
bool  del 
)

Definition at line 5148 of file Unit.cpp.

◆ RemoveMovementImpairingAuras()

void Unit::RemoveMovementImpairingAuras ( bool  withRoot)

Definition at line 4069 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveNotOwnSingleTargetAuras()

void Unit::RemoveNotOwnSingleTargetAuras ( uint32  newPhase = 0x0)

Definition at line 3975 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveNpcFlag()

void Unit::RemoveNpcFlag ( NPCFlags  flags)
inline

Definition at line 1098 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemoveOwnedAura() [1/3]

void Unit::RemoveOwnedAura ( Aura aura,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3594 of file Unit.cpp.

+ Here is the call graph for this function:

◆ RemoveOwnedAura() [2/3]

void Unit::RemoveOwnedAura ( AuraMap::iterator &  i,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3561 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveOwnedAura() [3/3]

void Unit::RemoveOwnedAura ( uint32  spellId,
ObjectGuid  casterGUID = ObjectGuid::Empty,
uint8  reqEffMask = 0,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3582 of file Unit.cpp.

+ Here is the call graph for this function:

◆ RemoveOwnedAuras() [1/2]

void Unit::RemoveOwnedAuras ( std::function< bool(Aura const *)> const &  check,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3724 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveOwnedAuras() [2/2]

void Unit::RemoveOwnedAuras ( uint32  spellId,
std::function< bool(Aura const *)> const &  check,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3751 of file Unit.cpp.

+ Here is the call graph for this function:

◆ RemovePetFlag()

void Unit::RemovePetFlag ( UnitPetFlag  flags)
inline

Definition at line 995 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemovePlayerFromVision()

void Unit::RemovePlayerFromVision ( Player player)

Definition at line 6369 of file Unit.cpp.

+ Here is the call graph for this function:

◆ RemovePvpFlag()

void Unit::RemovePvpFlag ( UnitPVPStateFlags  flags)
inline

Definition at line 984 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemoveUnitFlag()

void Unit::RemoveUnitFlag ( UnitFlags  flags)
inline

Definition at line 955 of file Unit.h.

◆ RemoveUnitFlag2()

void Unit::RemoveUnitFlag2 ( UnitFlags2  flags)
inline

Definition at line 961 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemoveUnitMovementFlag()

void Unit::RemoveUnitMovementFlag ( uint32  f)
inline

Definition at line 1677 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemoveVehicleKit()

void Unit::RemoveVehicleKit ( )

Definition at line 11808 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveVisFlag()

void Unit::RemoveVisFlag ( UnitVisFlags  flags)
inline

Definition at line 1007 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemoveVisibleAura()

void Unit::RemoveVisibleAura ( uint8  slot)

Definition at line 654 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ReplaceAllDynamicFlags()

void Unit::ReplaceAllDynamicFlags ( uint32  flag)
inlineoverridevirtual

Reimplemented from Object.

Definition at line 819 of file Unit.h.

+ Here is the caller graph for this function:

◆ ReplaceAllNpcFlags()

void Unit::ReplaceAllNpcFlags ( NPCFlags  flags)
inline

Definition at line 1099 of file Unit.h.

+ Here is the caller graph for this function:

◆ ReplaceAllPetFlags()

void Unit::ReplaceAllPetFlags ( UnitPetFlag  flags)
inline

Definition at line 996 of file Unit.h.

+ Here is the caller graph for this function:

◆ ReplaceAllPvpFlags()

void Unit::ReplaceAllPvpFlags ( UnitPVPStateFlags  flags)
inline

Definition at line 985 of file Unit.h.

+ Here is the caller graph for this function:

◆ ReplaceAllUnitFlags()

void Unit::ReplaceAllUnitFlags ( UnitFlags  flags)
inline

Definition at line 956 of file Unit.h.

+ Here is the caller graph for this function:

◆ ReplaceAllUnitFlags2()

void Unit::ReplaceAllUnitFlags2 ( UnitFlags2  flags)
inline

Definition at line 962 of file Unit.h.

+ Here is the caller graph for this function:

◆ ReplaceAllVisFlags()

void Unit::ReplaceAllVisFlags ( UnitVisFlags  flags)
inline

Definition at line 1008 of file Unit.h.

+ Here is the caller graph for this function:

◆ resetAttackTimer()

void Unit::resetAttackTimer ( WeaponAttackType  type = BASE_ATTACK)

Definition at line 598 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RestoreDisabledAI()

void Unit::RestoreDisabledAI ( )
private

Definition at line 9568 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RestoreDisplayId()

void Unit::RestoreDisplayId ( )

Definition at line 10415 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RestoreFaction()

void Unit::RestoreFaction ( )

Definition at line 11776 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ResumeMovement()

void Unit::ResumeMovement ( uint32  timer = 0,
uint8  slot = 0 
)

Definition at line 10339 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RewardRage()

void Unit::RewardRage ( uint32  damage,
uint32  weaponSpeedHitFactor,
bool  attacker 
)

Definition at line 13043 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RollMeleeOutcomeAgainst()

MeleeHitOutcome Unit::RollMeleeOutcomeAgainst ( Unit const *  victim,
WeaponAttackType  attType 
) const

Definition at line 2146 of file Unit.cpp.

+ Here is the call graph for this function:

◆ Say() [1/2]

void Unit::Say ( std::string_view  text,
Language  language,
WorldObject const *  target = nullptr 
)
virtual

Reimplemented in Player.

Definition at line 13834 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ Say() [2/2]

void Unit::Say ( uint32  textId,
WorldObject const *  target = nullptr 
)
virtual

Reimplemented in Player.

Definition at line 13890 of file Unit.cpp.

◆ ScheduleAIChange()

void Unit::ScheduleAIChange ( )

Definition at line 9555 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SelectNearbyTarget()

Unit * Unit::SelectNearbyTarget ( Unit exclude = nullptr,
float  dist = NOMINAL_MELEE_RANGE 
) const

Definition at line 10591 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendAttackStateUpdate() [1/2]

void Unit::SendAttackStateUpdate ( CalcDamageInfo damageInfo)

Probably used for debugging purposes, as it is not known to appear on retail servers

Definition at line 5319 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendAttackStateUpdate() [2/2]

void Unit::SendAttackStateUpdate ( uint32  HitInfo,
Unit target,
uint8  SwingType,
SpellSchoolMask  damageSchoolMask,
uint32  Damage,
uint32  AbsorbDamage,
uint32  Resist,
VictimState  TargetState,
uint32  BlockedAmount 
)

Definition at line 5386 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SendClearTarget()

void Unit::SendClearTarget ( )

Definition at line 13155 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendComboPoints()

void Unit::SendComboPoints ( )

Definition at line 10495 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendEnergizeSpellLog()

void Unit::SendEnergizeSpellLog ( Unit victim,
uint32  spellId,
int32  damage,
Powers  powerType 
)

Definition at line 6429 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendFlightSplineSyncUpdate()

void Unit::SendFlightSplineSyncUpdate ( )
private

Definition at line 571 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendHealSpellLog()

void Unit::SendHealSpellLog ( HealInfo healInfo,
bool  critical = false 
)

Definition at line 6405 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendMeleeAttackStart()

void Unit::SendMeleeAttackStart ( Unit victim)

Definition at line 2334 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendMeleeAttackStop()

void Unit::SendMeleeAttackStop ( Unit victim = nullptr)

Definition at line 2342 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendMoveKnockBack()

void Unit::SendMoveKnockBack ( Player player,
float  speedXY,
float  speedZ,
float  vcos,
float  vsin 
)

Definition at line 12193 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendPeriodicAuraLog()

void Unit::SendPeriodicAuraLog ( SpellPeriodicAuraLogInfo pInfo)

Definition at line 5253 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendPetActionFeedback()

void Unit::SendPetActionFeedback ( PetActionFeedback  msg,
uint32  spellId 
) const

-------—Pet responses methods--------------—

Definition at line 10256 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendPetActionSound()

void Unit::SendPetActionSound ( PetAction  action) const

Definition at line 10268 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendPetAIReaction()

void Unit::SendPetAIReaction ( ObjectGuid  guid) const

Definition at line 10288 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendPetDismissSound()

void Unit::SendPetDismissSound ( ) const

Definition at line 10276 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendPlaySpellVisualKit()

void Unit::SendPlaySpellVisualKit ( uint32  id,
uint32  type 
) const

Definition at line 12019 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendSpellDamageImmune()

void Unit::SendSpellDamageImmune ( Unit target,
uint32  spellId 
)

Definition at line 5309 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendSpellDamageResist()

void Unit::SendSpellDamageResist ( Unit target,
uint32  spellId 
)

Definition at line 5299 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SendSpellNonMeleeDamageLog() [1/2]

void Unit::SendSpellNonMeleeDamageLog ( SpellNonMeleeDamage const *  log)

Definition at line 5185 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendSpellNonMeleeDamageLog() [2/2]

void Unit::SendSpellNonMeleeDamageLog ( Unit target,
uint32  spellID,
uint32  damage,
SpellSchoolMask  damageSchoolMask,
uint32  absorbedDamage,
uint32  resist,
bool  isPeriodic,
uint32  blocked,
bool  criticalHit = false,
bool  split = false 
)

Definition at line 5224 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SendTeleportPacket()

void Unit::SendTeleportPacket ( Position const &  pos,
bool  teleportingTransport = false 
)

Definition at line 12849 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetAI()

void Unit::SetAI ( UnitAI newAI)
protected

Definition at line 9529 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetAnimTier()

void Unit::SetAnimTier ( AnimTier  animTier)

Definition at line 10391 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetArmor()

void Unit::SetArmor ( int32  val)
inline

Definition at line 906 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetAttackPower()

void Unit::SetAttackPower ( int32  attackPower)
inline

Definition at line 1541 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetAttackPowerModNeg()

void Unit::SetAttackPowerModNeg ( int32  attackPowerMod)
inline

Definition at line 1543 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetAttackPowerModPos()

void Unit::SetAttackPowerModPos ( int32  attackPowerMod)
inline

Definition at line 1542 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetAttackPowerMultiplier()

void Unit::SetAttackPowerMultiplier ( float  attackPowerMult)
inline

Definition at line 1544 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetAttackTime()

void Unit::SetAttackTime ( WeaponAttackType  att,
uint32  val 
)
inline

Definition at line 946 of file Unit.h.

+ Here is the caller graph for this function:

◆ setAttackTimer()

void Unit::setAttackTimer ( WeaponAttackType  type,
uint32  time 
)
inline

Definition at line 832 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetAuraStack()

void Unit::SetAuraStack ( uint32  spellId,
Unit target,
uint32  stack 
)

Definition at line 12010 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetBaseWeaponDamage()

void Unit::SetBaseWeaponDamage ( WeaponAttackType  attType,
WeaponDamageRange  damageRange,
float  value,
uint8  damageIndex = 0 
)
inline

Definition at line 1552 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetBoundingRadius()

void Unit::SetBoundingRadius ( float  boundingRadius)
inline

Definition at line 842 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCanDualWield()

virtual void Unit::SetCanDualWield ( bool  value)
inlinevirtual

Reimplemented in Creature.

Definition at line 838 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCanFly()

bool Unit::SetCanFly ( bool  enable,
bool  packetOnly = false 
)

movement counter

Definition at line 13374 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetCanModifyStats()

void Unit::SetCanModifyStats ( bool  modifyStats)
inline

Definition at line 1532 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCantProc()

void Unit::SetCantProc ( bool  apply)

Definition at line 10778 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ SetChannelObjectGuid()

void Unit::SetChannelObjectGuid ( ObjectGuid  guid)
inline

Definition at line 1461 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetChannelSpellId()

void Unit::SetChannelSpellId ( uint32  channelSpellId)
inline

Definition at line 1459 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCharm()

void Unit::SetCharm ( Unit target,
bool  apply 
)
Todo:
maybe we can use this flag to check if controlled by player

Definition at line 6087 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetCharmedBy()

bool Unit::SetCharmedBy ( Unit charmer,
CharmType  type,
AuraApplication const *  aurApp = nullptr 
)

Definition at line 11489 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetClass()

void Unit::SetClass ( uint8  classId)
inline

Definition at line 896 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCombatReach()

void Unit::SetCombatReach ( float  combatReach)
inline

Definition at line 840 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetConfused()

void Unit::SetConfused ( bool  apply)
protected

Definition at line 11463 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetControlled()

void Unit::SetControlled ( bool  apply,
UnitState  state 
)

Definition at line 11256 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetCreatedBySpell()

void Unit::SetCreatedBySpell ( int32  spellId)
inline

Definition at line 964 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCreateHealth()

void Unit::SetCreateHealth ( uint32  val)
inline

Definition at line 1449 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCreateMana()

void Unit::SetCreateMana ( uint32  val)
inline

Definition at line 1451 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCreateStat()

void Unit::SetCreateStat ( Stats  stat,
float  val 
)
inline

Definition at line 1448 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCreatorGUID()

void Unit::SetCreatorGUID ( ObjectGuid  creator)
inline

Definition at line 1244 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCritterGUID()

void Unit::SetCritterGUID ( ObjectGuid  guid)
inline

Definition at line 1250 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCurrentCastSpell()

void Unit::SetCurrentCastSpell ( Spell pSpell)

Definition at line 2945 of file Unit.cpp.

+ Here is the call graph for this function:

◆ setDeathState()

void Unit::setDeathState ( DeathState  s)
virtual

Reimplemented in Creature, Minion, Pet, and Player.

Definition at line 8728 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetDisableGravity()

bool Unit::SetDisableGravity ( bool  disable,
bool  updateAnimTier = true 
)

movement counter

Definition at line 13286 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetDisplayId()

void Unit::SetDisplayId ( uint32  modelId)
virtual

Reimplemented in Creature, and Pet.

Definition at line 10407 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetEmoteState()

void Unit::SetEmoteState ( Emote  emote)
inline

Definition at line 967 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetExtraUnitMovementFlags()

void Unit::SetExtraUnitMovementFlags ( uint32  f)
inline

Definition at line 1686 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetFacingTo()

void Unit::SetFacingTo ( float  ori,
bool  force = true,
uint32  movementId = EVENT_FACE 
)

Definition at line 13250 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetFacingToObject()

void Unit::SetFacingToObject ( WorldObject const *  object,
bool  force = true,
uint32  movementId = EVENT_FACE 
)

Definition at line 13259 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetFaction()

void Unit::SetFaction ( uint32  faction)
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 974 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetFall()

bool Unit::SetFall ( bool  enable)

Definition at line 13339 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetFeared()

void Unit::SetFeared ( bool  apply)
protected

Definition at line 11428 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetFeatherFall()

bool Unit::SetFeatherFall ( bool  enable)

movement counter

Definition at line 13463 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetFullHealth()

void Unit::SetFullHealth ( )
inline

Definition at line 927 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetFullPower()

void Unit::SetFullPower ( Powers  power)
inline

Definition at line 941 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetGameClientMovingMe()

void Unit::SetGameClientMovingMe ( GameClient gameClientMovingMe)
inline

Definition at line 1303 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetGender()

void Unit::SetGender ( Gender  gender)
inline

Definition at line 899 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetHealth()

void Unit::SetHealth ( uint32  val)

Definition at line 9361 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetHover()

bool Unit::SetHover ( bool  enable,
bool  updateAnimTier = true 
)

No need to check height on ascent

Dying creatures will MoveFall from setDeathState

movement counter

Definition at line 13503 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetHoverHeight()

void Unit::SetHoverHeight ( float  hoverHeight)
inline

Definition at line 1216 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetImmuneToAll() [1/2]

virtual void Unit::SetImmuneToAll ( bool  apply)
inlinevirtual

Reimplemented in Creature, and Creature.

Definition at line 1136 of file Unit.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetImmuneToAll() [2/2]

void Unit::SetImmuneToAll ( bool  apply,
bool  keepCombat 
)

Definition at line 8303 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetImmuneToNPC() [1/2]

virtual void Unit::SetImmuneToNPC ( bool  apply)
inlinevirtual

Reimplemented in Creature, and Creature.

Definition at line 1142 of file Unit.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetImmuneToNPC() [2/2]

void Unit::SetImmuneToNPC ( bool  apply,
bool  keepCombat 
)

Definition at line 8339 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetImmuneToPC() [1/2]

virtual void Unit::SetImmuneToPC ( bool  apply)
inlinevirtual

Reimplemented in Creature, and Creature.

Definition at line 1139 of file Unit.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetImmuneToPC() [2/2]

void Unit::SetImmuneToPC ( bool  apply,
bool  keepCombat 
)

Definition at line 8316 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetInCombatWith()

void Unit::SetInCombatWith ( Unit enemy,
bool  addSecondUnitSuppressed = false 
)
inline

Definition at line 1146 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetInFront()

void Unit::SetInFront ( WorldObject const *  target)

Definition at line 13244 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetInstantCast()

void Unit::SetInstantCast ( bool  set)
inline

Definition at line 1800 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetIsCombatDisallowed()

void Unit::SetIsCombatDisallowed ( bool  apply)
inline

Definition at line 1828 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetLastDamagedTargetGuid()

void Unit::SetLastDamagedTargetGuid ( ObjectGuid  guid)
inline

Definition at line 1046 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetLastExtraAttackSpell()

void Unit::SetLastExtraAttackSpell ( uint32  spellId)
inline

Definition at line 1043 of file Unit.h.

◆ SetLastManaUse()

void Unit::SetLastManaUse ( uint32  spellCastTime)
inline

Definition at line 1630 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetLevel()

void Unit::SetLevel ( uint8  lvl,
bool  sendUpdate = true 
)

Definition at line 9344 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetMaxHealth()

void Unit::SetMaxHealth ( uint32  val)

Definition at line 9393 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetMaxPower()

void Unit::SetMaxPower ( Powers  power,
uint32  val 
)

Definition at line 9462 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetMinion()

void Unit::SetMinion ( Minion minion,
bool  apply 
)

Definition at line 5910 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetMinionGUID()

void Unit::SetMinionGUID ( ObjectGuid  guid)
inline

Definition at line 1246 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetModCastingSpeed()

void Unit::SetModCastingSpeed ( float  castingSpeed)
inline

Definition at line 950 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetMountDisplayId()

void Unit::SetMountDisplayId ( uint32  mountDisplayId)
inline

Definition at line 1015 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetNativeDisplayId()

void Unit::SetNativeDisplayId ( uint32  displayId)
inline

Definition at line 1586 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetNativeGender()

virtual void Unit::SetNativeGender ( Gender  gender)
inlinevirtual

Reimplemented in Player.

Definition at line 901 of file Unit.h.

◆ SetNpcFlag()

void Unit::SetNpcFlag ( NPCFlags  flags)
inline

Definition at line 1097 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetOwnerGUID()

void Unit::SetOwnerGUID ( ObjectGuid  owner)

Definition at line 5840 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetPetFlag()

void Unit::SetPetFlag ( UnitPetFlag  flags)
inline

Definition at line 994 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetPetGUID()

void Unit::SetPetGUID ( ObjectGuid  guid)
inline

Definition at line 1248 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetPetNameTimestamp()

void Unit::SetPetNameTimestamp ( uint32  timestamp)
inline

Definition at line 1291 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetPetNumberForClient()

void Unit::SetPetNumberForClient ( uint32  petNumber)
inline

Definition at line 1290 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetPhaseMask()

void Unit::SetPhaseMask ( uint32  newPhaseMask,
bool  update 
)
overridevirtual

Reimplemented from WorldObject.

Definition at line 12152 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetPower()

void Unit::SetPower ( Powers  power,
uint32  val,
bool  withPowerUpdate = true,
bool  force = false 
)

Definition at line 9421 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetPowerType()

void Unit::SetPowerType ( Powers  power,
bool  sendUpdate = true 
)

Definition at line 5408 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetPvP()

void Unit::SetPvP ( bool  state)
virtual

Reimplemented in Player.

Definition at line 11956 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetPvpFlag()

void Unit::SetPvpFlag ( UnitPVPStateFlags  flags)
inline

Definition at line 983 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetRace()

void Unit::SetRace ( uint8  race)
inline

Definition at line 893 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetRangedAttackPower()

void Unit::SetRangedAttackPower ( int32  attackPower)
inline

Definition at line 1545 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetRangedAttackPowerModNeg()

void Unit::SetRangedAttackPowerModNeg ( int32  attackPowerMod)
inline

Definition at line 1547 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetRangedAttackPowerModPos()

void Unit::SetRangedAttackPowerModPos ( int32  attackPowerMod)
inline

Definition at line 1546 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetRangedAttackPowerMultiplier()

void Unit::SetRangedAttackPowerMultiplier ( float  attackPowerMult)
inline

Definition at line 1548 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetResistance()

void Unit::SetResistance ( SpellSchools  school,
int32  val 
)
inline

Definition at line 910 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetRooted()

void Unit::SetRooted ( bool  apply)
protected

Definition at line 11386 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetShapeshiftForm()

void Unit::SetShapeshiftForm ( ShapeshiftForm  form)

Definition at line 8964 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetSheath()

virtual void Unit::SetSheath ( SheathState  sheathed)
inlinevirtual

Reimplemented in Player.

Definition at line 970 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetSpeed()

void Unit::SetSpeed ( UnitMoveType  mtype,
float  newValue 
)

Definition at line 8673 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetSpeedRate()

void Unit::SetSpeedRate ( UnitMoveType  mtype,
float  rate 
)

Definition at line 8678 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetSpeedRateReal()

void Unit::SetSpeedRateReal ( UnitMoveType  mtype,
float  rate 
)
private

Definition at line 8707 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetStandState()

void Unit::SetStandState ( UnitStandStateType  state)

Definition at line 10363 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetStat()

void Unit::SetStat ( Stats  stat,
int32  val 
)
inline

Definition at line 904 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetStatFlatModifier()

void Unit::SetStatFlatModifier ( UnitMods  unitMod,
UnitModifierFlatType  modifierType,
float  val 
)

Definition at line 9066 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetStatPctModifier()

void Unit::SetStatPctModifier ( UnitMods  unitMod,
UnitModifierPctType  modifierType,
float  val 
)

Definition at line 9075 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetStunned()

void Unit::SetStunned ( bool  apply)
protected

Definition at line 11355 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetSwim()

bool Unit::SetSwim ( bool  enable)

Definition at line 13355 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetTarget()

virtual void Unit::SetTarget ( ObjectGuid  )
pure virtual

Implemented in Creature, and Player.

+ Here is the caller graph for this function:

◆ SetTransformSpell()

void Unit::SetTransformSpell ( uint32  spellid)
inline

Definition at line 1587 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetUnitFlag()

void Unit::SetUnitFlag ( UnitFlags  flags)
inline

Definition at line 954 of file Unit.h.

◆ SetUnitFlag2()

void Unit::SetUnitFlag2 ( UnitFlags2  flags)
inline

Definition at line 960 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetUnitMovementFlags()

void Unit::SetUnitMovementFlags ( uint32  f)
inline

Definition at line 1680 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetVehicle()

void Unit::SetVehicle ( Vehicle vehicle)
inline

Definition at line 1738 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetVirtualItem()

void Unit::SetVirtualItem ( uint32  slot,
uint32  itemId 
)

Definition at line 13868 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetVisFlag()

void Unit::SetVisFlag ( UnitVisFlags  flags)
inline

Definition at line 1006 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetVisible()

void Unit::SetVisible ( bool  x)

Definition at line 8513 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetVisibleAura()

void Unit::SetVisibleAura ( uint8  slot,
AuraApplication aurApp 
)

Definition at line 648 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetWalk()

bool Unit::SetWalk ( bool  enable)

Definition at line 13268 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetWaterWalking()

bool Unit::SetWaterWalking ( bool  enable)

movement counter

Definition at line 13423 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SpellBaseDamageBonusDone()

int32 Unit::SpellBaseDamageBonusDone ( SpellSchoolMask  schoolMask) const

Definition at line 6987 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SpellBaseHealingBonusDone()

int32 Unit::SpellBaseHealingBonusDone ( SpellSchoolMask  schoolMask) const

Definition at line 7606 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SpellCritChanceDone()

float Unit::SpellCritChanceDone ( SpellInfo const *  spellInfo,
SpellSchoolMask  schoolMask,
WeaponAttackType  attackType = BASE_ATTACK,
bool  isPeriodic = false 
) const

Mobs can't crit with spells. (Except player controlled)

Definition at line 7015 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SpellCritChanceTaken()

float Unit::SpellCritChanceTaken ( Unit const *  caster,
SpellInfo const *  spellInfo,
SpellSchoolMask  schoolMask,
float  doneChance,
WeaponAttackType  attackType = BASE_ATTACK,
bool  isPeriodic = false 
) const

Definition at line 7069 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SpellCriticalDamageBonus()

uint32 Unit::SpellCriticalDamageBonus ( Unit const *  caster,
SpellInfo const *  spellProto,
uint32  damage,
Unit victim 
)
static
Todo:
write here full calculation for melee/ranged spells

Definition at line 7257 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SpellCriticalHealingBonus()

uint32 Unit::SpellCriticalHealingBonus ( Unit const *  caster,
SpellInfo const *  spellProto,
uint32  damage,
Unit victim 
)
static
Todo:
write here full calculation for melee/ranged spells

Definition at line 7300 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SpellDamageBonusDone()

uint32 Unit::SpellDamageBonusDone ( Unit victim,
SpellInfo const *  spellProto,
uint32  pdamage,
DamageEffectType  damagetype,
SpellEffectInfo const &  spellEffectInfo,
Optional< float > const &  donePctTotal,
uint32  stack = 1 
) const

Definition at line 6453 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SpellDamageBonusTaken()

uint32 Unit::SpellDamageBonusTaken ( Unit caster,
SpellInfo const *  spellProto,
uint32  pdamage,
DamageEffectType  damagetype 
) const

Definition at line 6910 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SpellDamagePctDone()

float Unit::SpellDamagePctDone ( Unit victim,
SpellInfo const *  spellProto,
DamageEffectType  damagetype 
) const

Definition at line 6593 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SpellHealingBonusDone()

uint32 Unit::SpellHealingBonusDone ( Unit victim,
SpellInfo const *  spellProto,
uint32  healamount,
DamageEffectType  damagetype,
SpellEffectInfo const &  spellEffectInfo,
Optional< float > const &  donePctTotal,
uint32  stack = 1 
) const

Definition at line 7334 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SpellHealingBonusTaken()

uint32 Unit::SpellHealingBonusTaken ( Unit caster,
SpellInfo const *  spellProto,
uint32  healamount,
DamageEffectType  damagetype 
) const

Definition at line 7558 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SpellHealingPctDone()

float Unit::SpellHealingPctDone ( Unit victim,
SpellInfo const *  spellProto 
) const

Definition at line 7478 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ StartReactiveTimer()

void Unit::StartReactiveTimer ( ReactiveType  reactive)
inline

Definition at line 1719 of file Unit.h.

+ Here is the caller graph for this function:

◆ StopAttackFaction()

void Unit::StopAttackFaction ( uint32  faction_id)

Definition at line 13074 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ StopMoving()

void Unit::StopMoving ( bool  force = false)

Definition at line 10312 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Talk() [1/2]

void Unit::Talk ( std::string_view  text,
ChatMsg  msgType,
Language  language,
float  textRange,
WorldObject const *  target 
)
virtual

Definition at line 13826 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Talk() [2/2]

void Unit::Talk ( uint32  textId,
ChatMsg  msgType,
float  textRange,
WorldObject const *  target 
)
virtual

Definition at line 13876 of file Unit.cpp.

+ Here is the call graph for this function:

◆ TextEmote() [1/2]

void Unit::TextEmote ( std::string_view  text,
WorldObject const *  target = nullptr,
bool  isBossEmote = false 
)
virtual

Reimplemented in Player.

Definition at line 13844 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ TextEmote() [2/2]

void Unit::TextEmote ( uint32  textId,
WorldObject const *  target = nullptr,
bool  isBossEmote = false 
)
virtual

Reimplemented in Player.

Definition at line 13900 of file Unit.cpp.

◆ ToPet() [1/2]

Pet * Unit::ToPet ( )
inline

Definition at line 1788 of file Unit.h.

+ Here is the caller graph for this function:

◆ ToPet() [2/2]

Pet const * Unit::ToPet ( ) const
inline

Definition at line 1789 of file Unit.h.

◆ ToTempSummon() [1/2]

TempSummon * Unit::ToTempSummon ( )
inline

Definition at line 1794 of file Unit.h.

+ Here is the caller graph for this function:

◆ ToTempSummon() [2/2]

TempSummon const * Unit::ToTempSummon ( ) const
inline

Definition at line 1795 of file Unit.h.

◆ ToTotem() [1/2]

Totem * Unit::ToTotem ( )
inline

Definition at line 1791 of file Unit.h.

+ Here is the caller graph for this function:

◆ ToTotem() [2/2]

Totem const * Unit::ToTotem ( ) const
inline

Definition at line 1792 of file Unit.h.

◆ TriggerAurasProcOnEvent() [1/2]

void Unit::TriggerAurasProcOnEvent ( ProcEventInfo eventInfo,
AuraApplicationProcContainer procAuras 
)

Definition at line 10225 of file Unit.cpp.

+ Here is the call graph for this function:

◆ TriggerAurasProcOnEvent() [2/2]

void Unit::TriggerAurasProcOnEvent ( Unit actionTarget,
uint32  typeMaskActor,
uint32  typeMaskActionTarget,
uint32  spellTypeMask,
uint32  spellPhaseMask,
uint32  hitMask,
Spell spell,
DamageInfo damageInfo,
HealInfo healInfo 
)

Definition at line 10189 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UnsummonAllTotems()

void Unit::UnsummonAllTotems ( )

Definition at line 6392 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Update()

void Unit::Update ( uint32  time)
overridevirtual

Reimplemented from WorldObject.

Reimplemented in Pet, Creature, TempSummon, Puppet, Player, and Totem.

Definition at line 432 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateAllDamageDoneMods()

void Unit::UpdateAllDamageDoneMods ( )

Definition at line 9179 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateAllDamagePctDoneMods()

void Unit::UpdateAllDamagePctDoneMods ( )

Definition at line 9223 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateAllResistances()

void Unit::UpdateAllResistances ( )
virtual

Definition at line 56 of file StatSystem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateAllStats()

virtual bool Unit::UpdateAllStats ( )
pure virtual

Implemented in Creature, Guardian, Player, and Totem.

◆ UpdateArmor()

virtual void Unit::UpdateArmor ( )
pure virtual

Implemented in Creature, Guardian, Player, and Totem.

+ Here is the caller graph for this function:

◆ UpdateAttackPowerAndDamage()

virtual void Unit::UpdateAttackPowerAndDamage ( bool  ranged = false)
pure virtual

Implemented in Creature, Guardian, Player, and Totem.

+ Here is the caller graph for this function:

◆ UpdateAuraForGroup()

void Unit::UpdateAuraForGroup ( uint8  slot)

Definition at line 10751 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateCharmAI()

void Unit::UpdateCharmAI ( )
private

Definition at line 9686 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateDamageDoneMods()

void Unit::UpdateDamageDoneMods ( WeaponAttackType  attackType,
int32  skipEnchantSlot = -1 
)
virtual

Reimplemented in Player.

Definition at line 9149 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateDamagePctDoneMods()

void Unit::UpdateDamagePctDoneMods ( WeaponAttackType  attackType)

Definition at line 9185 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateDamagePhysical()

void Unit::UpdateDamagePhysical ( WeaponAttackType  attType)
virtual

Reimplemented in Guardian, and Totem.

Definition at line 62 of file StatSystem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateDisplayPower()

void Unit::UpdateDisplayPower ( )

Definition at line 5453 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateHeight()

void Unit::UpdateHeight ( float  newZ)

Only server-side height update, does not broadcast to client.

Definition at line 12941 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateInterruptMask()

void Unit::UpdateInterruptMask ( )

Definition at line 660 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ UpdateMaxHealth()

virtual void Unit::UpdateMaxHealth ( )
pure virtual

Implemented in Creature, Guardian, Player, and Totem.

+ Here is the caller graph for this function:

◆ UpdateMaxPower()

virtual void Unit::UpdateMaxPower ( Powers  power)
pure virtual

Implemented in Creature, Guardian, Player, and Totem.

+ Here is the caller graph for this function:

◆ UpdateObjectVisibility()

void Unit::UpdateObjectVisibility ( bool  forced = true)
overridevirtual

Reimplemented from WorldObject.

Definition at line 12180 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateOrientation()

void Unit::UpdateOrientation ( float  orientation)

Only server-side orientation update, does not broadcast to client.

Definition at line 12933 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdatePetCombatState()

void Unit::UpdatePetCombatState ( )

Definition at line 8814 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdatePosition() [1/2]

bool Unit::UpdatePosition ( float  x,
float  y,
float  z,
float  ang,
bool  teleport = false 
)
virtual

Reimplemented in Player.

Definition at line 12890 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdatePosition() [2/2]

bool Unit::UpdatePosition ( Position const &  pos,
bool  teleport = false 
)
virtual

Reimplemented in Player.

Definition at line 12927 of file Unit.cpp.

+ Here is the call graph for this function:

◆ UpdateReactives()

void Unit::UpdateReactives ( uint32  p_time)

Definition at line 10549 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateResistanceBuffModsMod()

void Unit::UpdateResistanceBuffModsMod ( SpellSchools  school)

Definition at line 4932 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateResistances()

virtual void Unit::UpdateResistances ( uint32  school)
pure virtual

Implemented in Creature, Guardian, Player, and Totem.

+ Here is the caller graph for this function:

◆ UpdateSpeed()

void Unit::UpdateSpeed ( UnitMoveType  mtype)
Todo:
possible affect only on MOVE_RUN

Definition at line 8523 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateSplineMovement()

void Unit::UpdateSplineMovement ( uint32  t_diff)
private

Definition at line 528 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateSplinePosition()

void Unit::UpdateSplinePosition ( )
private

Definition at line 547 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateStatBuffMod()

void Unit::UpdateStatBuffMod ( Stats  stat)

Definition at line 4969 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateStats()

virtual bool Unit::UpdateStats ( Stats  stat)
pure virtual

Implemented in Creature, Guardian, Player, and Totem.

+ Here is the caller graph for this function:

◆ UpdateUnitMod()

void Unit::UpdateUnitMod ( UnitMods  unitMod)

Definition at line 9106 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ValidateAttackersAndOwnTarget()

void Unit::ValidateAttackersAndOwnTarget ( )

Definition at line 5673 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Whisper() [1/2]

void Unit::Whisper ( std::string_view  text,
Language  language,
Player target,
bool  isBossWhisper = false 
)
virtual

Reimplemented in Player.

Definition at line 13849 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Whisper() [2/2]

void Unit::Whisper ( uint32  textId,
Player target,
bool  isBossWhisper = false 
)
virtual

Reimplemented in Player.

Definition at line 13905 of file Unit.cpp.

+ Here is the call graph for this function:

◆ Yell() [1/2]

void Unit::Yell ( std::string_view  text,
Language  language,
WorldObject const *  target = nullptr 
)
virtual

Reimplemented in Player.

Definition at line 13839 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ Yell() [2/2]

void Unit::Yell ( uint32  textId,
WorldObject const *  target = nullptr 
)
virtual

Reimplemented in Player.

Definition at line 13895 of file Unit.cpp.

Friends And Related Symbol Documentation

◆ CombatManager

friend class CombatManager
friend

Definition at line 1947 of file Unit.h.

◆ ImmediateMovementGenerator

friend class ImmediateMovementGenerator
friend

Definition at line 1920 of file Unit.h.

◆ ThreatManager

friend class ThreatManager
friend

Definition at line 1949 of file Unit.h.

◆ VehicleJoinEvent

friend class VehicleJoinEvent
friend

Definition at line 1731 of file Unit.h.

◆ WorldSession

friend class WorldSession
friend

Definition at line 770 of file Unit.h.

Member Data Documentation

◆ _gameClientMovingMe

GameClient* Unit::_gameClientMovingMe
protected

Definition at line 1891 of file Unit.h.

◆ _instantCast

bool Unit::_instantCast
private

Definition at line 1971 of file Unit.h.

◆ _isCombatDisallowed

bool Unit::_isCombatDisallowed
private

Definition at line 1980 of file Unit.h.

◆ _isWalkingBeforeCharm

bool Unit::_isWalkingBeforeCharm
private

Are we walking before we were charmed?

Definition at line 1974 of file Unit.h.

◆ _lastDamagedTargetGuid

ObjectGuid Unit::_lastDamagedTargetGuid
private

Definition at line 1967 of file Unit.h.

◆ _lastExtraAttackSpell

uint32 Unit::_lastExtraAttackSpell
private

Definition at line 1965 of file Unit.h.

◆ _lastLiquid

LiquidTypeEntry const* Unit::_lastLiquid
protected

Definition at line 1902 of file Unit.h.

◆ _oldFactionId

uint32 Unit::_oldFactionId
private

faction before charm

Definition at line 1973 of file Unit.h.

◆ _positionUpdateInfo

PositionUpdateInfo Unit::_positionUpdateInfo
private

Definition at line 1978 of file Unit.h.

◆ _spellHistory

SpellHistory* Unit::_spellHistory
private

Definition at line 1976 of file Unit.h.

◆ extraAttacksTargets

std::unordered_map<ObjectGuid , uint32 > Unit::extraAttacksTargets
private

Definition at line 1966 of file Unit.h.

◆ i_AI

std::shared_ptr<UnitAI> Unit::i_AI
private

Definition at line 1956 of file Unit.h.

◆ i_AIs

UnitAIStack Unit::i_AIs
private

Definition at line 1955 of file Unit.h.

◆ i_motionMaster

MotionMaster* Unit::i_motionMaster
protected

Definition at line 1893 of file Unit.h.

◆ LastCharmerGUID

ObjectGuid Unit::LastCharmerGUID

Definition at line 1732 of file Unit.h.

◆ m_aiLocked

bool Unit::m_aiLocked
private

Definition at line 1957 of file Unit.h.

◆ m_appliedAuras

AuraApplicationMap Unit::m_appliedAuras
protected

Definition at line 1867 of file Unit.h.

◆ m_attackers

AttackerSet Unit::m_attackers
protected

Definition at line 1849 of file Unit.h.

◆ m_attacking

Unit* Unit::m_attacking
protected

Definition at line 1850 of file Unit.h.

◆ m_attackTimer

uint32 Unit::m_attackTimer[MAX_ATTACK]

Definition at line 1503 of file Unit.h.

◆ m_auraFlatModifiersGroup

float Unit::m_auraFlatModifiersGroup[UNIT_MOD_END][MODIFIER_TYPE_FLAT_END]
protected

Definition at line 1878 of file Unit.h.

◆ m_auraPctModifiersGroup

float Unit::m_auraPctModifiersGroup[UNIT_MOD_END][MODIFIER_TYPE_PCT_END]
protected

Definition at line 1879 of file Unit.h.

◆ m_auraStateAuras

AuraStateAurasMap Unit::m_auraStateAuras
protected

Definition at line 1875 of file Unit.h.

◆ m_auraUpdateIterator

AuraMap::iterator Unit::m_auraUpdateIterator
protected

Definition at line 1869 of file Unit.h.

◆ m_AutoRepeatFirstCast

bool Unit::m_AutoRepeatFirstCast
protected

Definition at line 1845 of file Unit.h.

◆ m_baseSpellCritChance

float Unit::m_baseSpellCritChance

Definition at line 1500 of file Unit.h.

◆ m_canDualWield

bool Unit::m_canDualWield

Definition at line 848 of file Unit.h.

◆ m_canModifyStats

bool Unit::m_canModifyStats
protected

Definition at line 1881 of file Unit.h.

◆ m_charmed

Unit* Unit::m_charmed
protected

Definition at line 1888 of file Unit.h.

◆ m_charmer

Unit* Unit::m_charmer
protected

Definition at line 1887 of file Unit.h.

◆ m_charmInfo

CharmInfo* Unit::m_charmInfo
protected

Definition at line 1889 of file Unit.h.

◆ m_cleanupDone

bool Unit::m_cleanupDone
private

Definition at line 1969 of file Unit.h.

◆ m_combatManager

CombatManager Unit::m_combatManager
private

Definition at line 1948 of file Unit.h.

◆ m_ComboPointHolders

std::unordered_set<Unit*> Unit::m_ComboPointHolders
private

Definition at line 1963 of file Unit.h.

◆ m_comboPoints

int8 Unit::m_comboPoints
private

Definition at line 1962 of file Unit.h.

◆ m_comboTarget

Unit* Unit::m_comboTarget
private

Definition at line 1961 of file Unit.h.

◆ m_Controlled

ControlList Unit::m_Controlled

Definition at line 1276 of file Unit.h.

◆ m_ControlledByPlayer

bool Unit::m_ControlledByPlayer
protected

Definition at line 1843 of file Unit.h.

◆ m_createStats

float Unit::m_createStats[MAX_STATS]
protected

Definition at line 1847 of file Unit.h.

◆ m_currentSpells

Spell* Unit::m_currentSpells[CURRENT_MAX_SPELL]
protected

Definition at line 1864 of file Unit.h.

◆ m_deathState

DeathState Unit::m_deathState
protected

Definition at line 1852 of file Unit.h.

◆ m_Diminishing

Diminishing Unit::m_Diminishing
private

Definition at line 1944 of file Unit.h.

◆ m_duringRemoveFromWorld

bool Unit::m_duringRemoveFromWorld
private

Definition at line 1970 of file Unit.h.

◆ m_dynObj

DynObjectList Unit::m_dynObj
protected

Definition at line 1857 of file Unit.h.

◆ m_followingMe

std::unordered_set<AbstractFollower*> Unit::m_followingMe
private

Definition at line 1959 of file Unit.h.

◆ m_gameObj

GameObjectList Unit::m_gameObj
protected

Definition at line 1860 of file Unit.h.

◆ m_interruptableAuras

AuraApplicationList Unit::m_interruptableAuras
protected

Definition at line 1874 of file Unit.h.

◆ m_interruptMask

uint32 Unit::m_interruptMask
protected

Definition at line 1876 of file Unit.h.

◆ m_lastManaUse

uint32 Unit::m_lastManaUse
private

Definition at line 1942 of file Unit.h.

◆ m_lastSanctuaryTime

uint32 Unit::m_lastSanctuaryTime

Definition at line 1569 of file Unit.h.

◆ m_modAttackSpeedPct

float Unit::m_modAttackSpeedPct[MAX_ATTACK]

Definition at line 1502 of file Unit.h.

◆ m_modAuras

AuraEffectList Unit::m_modAuras[TOTAL_AURAS]
protected

Definition at line 1872 of file Unit.h.

◆ m_modMeleeHitChance

float Unit::m_modMeleeHitChance

Definition at line 1497 of file Unit.h.

◆ m_modRangedHitChance

float Unit::m_modRangedHitChance

Definition at line 1498 of file Unit.h.

◆ m_modSpellHitChance

float Unit::m_modSpellHitChance

Definition at line 1499 of file Unit.h.

◆ m_movementCounter

uint32 Unit::m_movementCounter
private

Definition at line 1985 of file Unit.h.

◆ m_ObjectSlot

ObjectGuid Unit::m_ObjectSlot[MAX_GAMEOBJECT_SLOT]

Definition at line 1488 of file Unit.h.

◆ m_ownedAuras

AuraMap Unit::m_ownedAuras
protected

Definition at line 1866 of file Unit.h.

◆ m_pendingMovementChanges

std::deque<PlayerMovementPendingChange> Unit::m_pendingMovementChanges
private

Definition at line 1986 of file Unit.h.

◆ m_procDeep

int32 Unit::m_procDeep
protected

Definition at line 1854 of file Unit.h.

◆ m_reactiveTimer

uint32 Unit::m_reactiveTimer[MAX_REACTIVE]
protected

Definition at line 1895 of file Unit.h.

◆ m_regenTimer

uint32 Unit::m_regenTimer
protected

Definition at line 1896 of file Unit.h.

◆ m_removedAuras

AuraList Unit::m_removedAuras
protected

Definition at line 1868 of file Unit.h.

◆ m_removedAurasCount

uint32 Unit::m_removedAurasCount
protected

Definition at line 1870 of file Unit.h.

◆ m_scAuras

AuraList Unit::m_scAuras
protected

Definition at line 1873 of file Unit.h.

◆ m_sharedVision

SharedVisionList Unit::m_sharedVision
protected

Definition at line 1890 of file Unit.h.

◆ m_speed_rate

float Unit::m_speed_rate[MAX_MOVE_TYPE]
protected

Definition at line 1885 of file Unit.h.

◆ m_spellImmune

Definition at line 1568 of file Unit.h.

◆ m_state

uint32 Unit::m_state
private

Definition at line 1941 of file Unit.h.

◆ m_SummonSlot

ObjectGuid Unit::m_SummonSlot[MAX_SUMMON_SLOT]

Definition at line 1487 of file Unit.h.

◆ m_threatManager

ThreatManager Unit::m_threatManager
private

Definition at line 1950 of file Unit.h.

◆ m_transformSpell

uint32 Unit::m_transformSpell
protected

Definition at line 1862 of file Unit.h.

◆ m_unitTypeMask

uint32 Unit::m_unitTypeMask
protected

Definition at line 1901 of file Unit.h.

◆ m_vehicle

Vehicle* Unit::m_vehicle
protected

Definition at line 1898 of file Unit.h.

◆ m_vehicleKit

Trinity::unique_trackable_ptr<Vehicle> Unit::m_vehicleKit
protected

Definition at line 1899 of file Unit.h.

◆ m_visibleAuras

VisibleAuraMap Unit::m_visibleAuras
protected

Definition at line 1883 of file Unit.h.

◆ m_weaponDamage

float Unit::m_weaponDamage[MAX_ATTACK][2][2]
protected

Definition at line 1880 of file Unit.h.

◆ movespline

Movement::MoveSpline* Unit::movespline

Definition at line 1804 of file Unit.h.


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