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

#include <Unit.h>

+ Inheritance diagram for Unit:

Classes

struct  GetCastSpellInfoContext
 
struct  GetCastSpellInfoResult
 
struct  VisibleAuraSlotCompare
 

Public Types

enum class  AreaTriggerRemoveReason : uint8 { Default , UnitDespawn }
 
typedef std::set< Unit * > AttackerSet
 
typedef std::set< Unit * > ControlList
 
typedef std::vector< Unit * > UnitVector
 
typedef std::multimap< uint32, Aura * > AuraMap
 
typedef std::pair< AuraMap::const_iterator, AuraMap::const_iterator > AuraMapBounds
 
typedef std::pair< AuraMap::iterator, AuraMap::iterator > AuraMapBoundsNonConst
 
typedef std::multimap< uint32, AuraApplication * > AuraApplicationMap
 
typedef std::pair< AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator > AuraApplicationMapBounds
 
typedef std::pair< AuraApplicationMap::iterator, AuraApplicationMap::iterator > AuraApplicationMapBoundsNonConst
 
typedef std::multimap< AuraStateType, AuraApplication * > AuraStateAurasMap
 
typedef std::pair< AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator > AuraStateAurasMapBounds
 
typedef std::forward_list< AuraEffect * > AuraEffectList
 
typedef std::forward_list< Aura * > AuraList
 
typedef std::forward_list< AuraApplication * > AuraApplicationList
 
typedef std::array< DiminishingReturn, DIMINISHING_MAXDiminishing
 
typedef std::vector< std::pair< uint32, AuraApplication * > > AuraApplicationProcContainer
 
typedef std::set< AuraApplication *, VisibleAuraSlotCompareVisibleAuraContainer
 

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
 
virtual bool IsAffectedByDiminishingReturns () const
 
DiminishingLevels GetDiminishing (DiminishingGroup group) const
 
void IncrDiminishing (SpellInfo const *auraSpellInfo)
 
bool ApplyDiminishingToDuration (SpellInfo const *auraSpellInfo, 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 TriggerAuraHeartbeat ()
 
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) const =0
 
bool IsWithinBoundaryRadius (const Unit *obj) const
 
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, bool(*unitFilter)(Unit const *otherUnit)=nullptr)
 
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
 
int32 GetContentTuning () const
 
uint8 GetLevel () const
 
uint8 GetEffectiveLevel () const
 
uint8 GetLevelForTarget (WorldObject const *) const override
 
void SetLevel (uint8 lvl, bool sendUpdate=true)
 
uint8 GetRace () const
 
void SetRace (uint8 race)
 
uint64 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 bonusVal)
 
int32 GetResistance (SpellSchools school) const
 
int32 GetBonusResistanceMod (SpellSchools school) const
 
int32 GetResistance (SpellSchoolMask mask) const
 
void SetResistance (SpellSchools school, int32 val)
 
void SetBonusResistanceMod (SpellSchools school, int32 val)
 
uint64 GetHealth () const
 
uint64 GetMaxHealth () const
 
bool IsFullHealth () const
 
bool HealthBelowPct (float pct) const
 
bool HealthBelowPctDamaged (float pct, uint32 damage) const
 
bool HealthAbovePct (float pct) const
 
bool HealthAbovePctHealed (float pct, uint32 heal) const
 
float GetHealthPct () const
 
uint64 CountPctFromMaxHealth (float pct) const
 
uint64 CountPctFromCurHealth (float pct) const
 
void SetHealth (uint64 val)
 
void SetMaxHealth (uint64 val)
 
void SetFullHealth ()
 
int64 ModifyHealth (int64 val)
 
int64 GetHealthGain (int64 dVal)
 
void TriggerOnHealthChangeAuras (uint64 oldVal, uint64 newVal)
 
virtual float GetHealthMultiplierForTarget (WorldObject const *) const
 
virtual float GetDamageMultiplierForTarget (WorldObject const *) const
 
virtual float GetArmorMultiplierForTarget (WorldObject const *) const
 
Powers GetPowerType () const
 
void SetPowerType (Powers power, bool sendUpdate=true, bool onInit=false)
 
void SetInitialPowerValue (Powers powerType)
 
void SetOverrideDisplayPowerId (uint32 powerDisplayId)
 
Powers CalculateDisplayPowerType () const
 
void UpdateDisplayPower ()
 
int32 GetPower (Powers power) const
 
int32 GetMinPower (Powers power) const
 
int32 GetMaxPower (Powers power) const
 
float GetPowerPct (Powers power) const
 
int32 CountPctFromMaxPower (Powers power, int32 pct) const
 
void SetPower (Powers power, int32 val, bool withPowerUpdate=true)
 
void SetMaxPower (Powers power, int32 val)
 
void TriggerOnPowerChangeAuras (Powers power, int32 oldVal, int32 newVal)
 
void SetFullPower (Powers power)
 
int32 ModifyPower (Powers power, int32 val, bool withPowerUpdate=true)
 
void ApplyModManaCostMultiplier (float manaCostMultiplier, bool apply)
 
void ApplyModManaCostModifier (SpellSchools school, int32 mod, bool apply)
 
uint32 GetBaseAttackTime (WeaponAttackType att) const
 
void SetBaseAttackTime (WeaponAttackType att, uint32 val)
 
void UpdateAttackTimeField (WeaponAttackType att)
 
void ApplyAttackTimePercentMod (WeaponAttackType att, float val, bool apply)
 
void ApplyCastTimePercentMod (float val, bool apply)
 
void SetModCastingSpeed (float castingSpeed)
 
void SetModSpellHaste (float spellHaste)
 
void SetModHaste (float haste)
 
void SetModRangedHaste (float rangedHaste)
 
void SetModHasteRegen (float hasteRegen)
 
void SetModTimeRate (float timeRate)
 
bool HasUnitFlag (UnitFlags flags) const
 
void SetUnitFlag (UnitFlags flags)
 
void RemoveUnitFlag (UnitFlags flags)
 
void ReplaceAllUnitFlags (UnitFlags flags)
 
bool HasUnitFlag2 (UnitFlags2 flags) const
 
void SetUnitFlag2 (UnitFlags2 flags)
 
void RemoveUnitFlag2 (UnitFlags2 flags)
 
void ReplaceAllUnitFlags2 (UnitFlags2 flags)
 
bool HasUnitFlag3 (UnitFlags3 flags) const
 
void SetUnitFlag3 (UnitFlags3 flags)
 
void RemoveUnitFlag3 (UnitFlags3 flags)
 
void ReplaceAllUnitFlags3 (UnitFlags3 flags)
 
void SetCreatedBySpell (int32 spellId)
 
void SetNameplateAttachToGUID (ObjectGuid guid)
 
Emote GetEmoteState () const
 
void SetEmoteState (Emote emote)
 
SheathState GetSheath () const
 
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
 
void UpdateCreatureType ()
 
UnitStandStateType GetStandState () const
 
bool IsSitState () const
 
bool IsStandState () const
 
void SetStandState (UnitStandStateType state, uint32 animKitID=0)
 
void SetVisFlag (UnitVisFlags flags)
 
void RemoveVisFlag (UnitVisFlags flags)
 
void ReplaceAllVisFlags (UnitVisFlags flags)
 
AnimTier GetAnimTier () const
 
void SetAnimTier (AnimTier animTier, bool notifyClient=true)
 
bool IsMounted () const
 
uint32 GetMountDisplayId () const
 
void SetMountDisplayId (uint32 mountDisplayId)
 
uint32 GetCosmeticMountDisplayId () const
 
void SetCosmeticMountDisplayId (uint32 mountDisplayId)
 
void Mount (uint32 mount, uint32 vehicleId=0, uint32 creatureEntry=0)
 
void Dismount ()
 
void CancelMountAura (bool force=false)
 
MountCapabilityEntry const * GetMountCapability (uint32 mountType) const
 
void UpdateMountCapability ()
 
void SendDurabilityLoss (Player *receiver, uint32 percent)
 
void PlayOneShotAnimKitId (uint16 animKitId)
 
void SetAIAnimKitId (uint16 animKitId)
 
uint16 GetAIAnimKitId () const override
 
void SetMovementAnimKitId (uint16 animKitId)
 
uint16 GetMovementAnimKitId () const override
 
void SetMeleeAnimKitId (uint16 animKitId)
 
uint16 GetMeleeAnimKitId () const override
 
uint16 GetMaxSkillValueForLevel (Unit const *target=nullptr) const
 
void KillSelf (bool durabilityLoss=true, bool skipSettingDeathState=false)
 
void GetProcAurasTriggeredOnEvent (AuraApplicationProcContainer &aurasTriggeringProc, AuraApplicationList *procAuras, ProcEventInfo &eventInfo)
 
void TriggerAurasProcOnEvent (AuraApplicationList *myProcAuras, AuraApplicationList *targetProcAuras, Unit *actionTarget, ProcFlagsInit const &typeMaskActor, ProcFlagsInit const &typeMaskActionTarget, ProcFlagsSpellType spellTypeMask, ProcFlagsSpellPhase spellPhaseMask, ProcFlagsHit hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo)
 
void TriggerAurasProcOnEvent (ProcEventInfo &eventInfo, AuraApplicationProcContainer &procAuras)
 
void HandleEmoteCommand (Emote emoteId, Player *target=nullptr, Trinity::IteratorPair< int32 const * > spellVisualKitIds={}, int32 sequenceVariation=0)
 
void DoMeleeAttackIfReady ()
 
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)
 
uint32 GetDamageReduction (uint32 damage) const
 
virtual bool CanApplyResilience () const
 
int32 CalculateAOEAvoidance (int32 damage, uint32 schoolMask, bool npcCaster) const
 
float MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, SpellInfo const *spellInfo) 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
 
float GetMechanicResistChance (SpellInfo const *spellInfo) const
 
bool CanUseAttackType (uint8 attacktype) const
 
virtual float GetBlockPercent (uint8) 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)
 
NPCFlags2 GetNpcFlags2 () const
 
bool HasNpcFlag2 (NPCFlags2 flags) const
 
void SetNpcFlag2 (NPCFlags2 flags)
 
void RemoveNpcFlag2 (NPCFlags2 flags)
 
void ReplaceAllNpcFlags2 (NPCFlags2 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 IsAreaSpiritHealer () const
 
bool IsTabardDesigner () const
 
bool IsAuctioner () const
 
bool IsArmorer () const
 
bool IsWildBattlePet () const
 
bool IsServiceProvider () const
 
bool IsSpiritService () const
 
bool IsAreaSpiritHealerIndividual () 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 IsUninteractible () const
 
void SetUninteractible (bool apply)
 
bool CannotTurn () const
 
void SetCannotTurn (bool apply)
 
bool IsInCombat () const
 
bool IsInCombatWith (Unit const *who) const
 
void SetInCombatWith (Unit *enemy, bool addSecondUnitSuppressed=false)
 
void ClearInCombat ()
 
void UpdatePetCombatState ()
 
bool IsInteractionAllowedWhileHostile () const
 
virtual void SetInteractionAllowedWhileHostile (bool interactionAllowed)
 
bool IsInteractionAllowedInCombat () const
 
virtual void SetInteractionAllowedInCombat (bool interactionAllowed)
 
virtual void UpdateNearbyPlayersInteractions ()
 
bool IsThreatened () const
 
bool IsThreatenedBy (Unit const *who) const
 
ThreatManagerGetThreatManager ()
 
ThreatManager const & GetThreatManager () const
 
void SendClearTarget ()
 
bool HasAuraTypeWithFamilyFlags (AuraType auraType, uint32 familyName, flag128 familyFlags) const
 
virtual bool HasSpell (uint32) const
 
bool HasBreakableByDamageAuraType (AuraType type, uint32 excludeAura=0) const
 
bool HasBreakableByDamageCrowdControlAura (Unit const *excludeCasterChannel=nullptr) const
 
bool HasStealthAura () const
 
bool HasInvisibilityAura () const
 
bool IsFeared () const
 
bool HasRootAura () const
 
bool IsPolymorphed () const
 
bool IsFrozen () const
 
bool isTargetableForAttack (bool checkFakeDeath=true) const
 
bool IsInWater () const
 
bool IsUnderWater () const
 
bool IsOnOceanFloor () 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, int32 overEnergize, Powers powerType)
 
void EnergizeBySpell (Unit *victim, SpellInfo const *spellInfo, int32 damage, Powers powerType)
 
AuraAddAura (uint32 spellId, Unit *target)
 
AuraAddAura (SpellInfo const *spellInfo, uint32 effMask, Unit *target)
 
void SetAuraStack (uint32 spellId, Unit *target, uint32 stack)
 
void SendPlaySpellVisual (Unit *target, uint32 spellVisualId, uint8 missReason, uint8 reflectStatus, float travelSpeed, bool speedAsTime=false, float launchDelay=0.0f)
 
void SendPlaySpellVisual (Position const &targetPosition, uint32 spellVisualId, uint8 missReason, uint8 reflectStatus, float travelSpeed, bool speedAsTime=false, float launchDelay=0.0f)
 
void SendCancelSpellVisual (uint32 id)
 
void SendPlaySpellVisualKit (uint32 id, uint32 type, uint32 duration) const
 
void SendCancelSpellVisualKit (uint32 id)
 
void CancelSpellMissiles (uint32 spellId, bool reverseMissile=false, bool abortSpell=false)
 
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, uint32 RageGained)
 
void SendSpellNonMeleeDamageLog (SpellNonMeleeDamage const *log)
 
void SendPeriodicAuraLog (SpellPeriodicAuraLogInfo *pInfo)
 
void SendSpellDamageResist (Unit *target, uint32 spellId)
 
void SendSpellDamageImmune (Unit *target, uint32 spellId, bool isPeriodic)
 
void NearTeleportTo (TeleportLocation const &target, bool casting=false)
 
void NearTeleportTo (Position const &pos, bool casting=false)
 
void NearTeleportTo (float x, float y, float z, float orientation, bool casting=false)
 
void SendTeleportPacket (TeleportLocation const &teleportLocation)
 
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 (Position const &origin, float speedXY, float speedZ, float angle=M_PI, Movement::SpellEffectExtraData const *spellEffectExtraData=nullptr)
 
void MonsterMoveWithSpeed (float x, float y, float z, float speed, bool generatePath=false, bool forceDestination=false)
 
bool IsPlayingHoverAnim () const
 
void SetPlayHoverAnim (bool enable, bool sendUpdate=true)
 
void CalculateHoverHeight ()
 
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 SetWaterWalking (bool enable)
 
bool SetFeatherFall (bool enable)
 
bool SetHover (bool enable, bool updateAnimTier=true)
 
bool SetCollision (bool disable)
 
bool SetStrafingDisabled (bool disable)
 
bool SetJumpingDisabled (bool disable)
 
bool SetEnableFullSpeedTurning (bool enable)
 
bool SetEnableFullSpeedPitching (bool enable)
 
bool SetAlwaysAllowPitching (bool enable)
 
bool SetCanTransitionBetweenSwimAndFly (bool enable)
 
bool SetCanTurnWhileFalling (bool enable)
 
bool SetCanDoubleJump (bool enable)
 
bool SetDisableInertia (bool disable)
 
bool SetCanAdvFly (bool enable)
 
bool SetMoveCantSwim (bool cantSwim)
 
void SendSetVehicleRecId (uint32 vehicleId)
 
MovementForces const * GetMovementForces () const
 
void ApplyMovementForce (ObjectGuid id, Position origin, float magnitude, MovementForceType type, Position direction={}, ObjectGuid transportGuid=ObjectGuid::Empty)
 
void RemoveMovementForce (ObjectGuid id)
 
bool SetIgnoreMovementForces (bool ignore)
 
void UpdateMovementForcesModMagnitude ()
 
void SetInFront (WorldObject const *target)
 
void SetFacingTo (float const ori, bool force=true)
 
void SetFacingToObject (WorldObject const *object, bool force=true)
 
void SetFacingToPoint (Position const &point, bool force=true)
 
bool IsAlive () const
 
bool isDying () const
 
bool isDead () const
 
DeathState getDeathState () const
 
virtual void setDeathState (DeathState s)
 
ObjectGuid GetOwnerGUID () const override
 
void SetOwnerGUID (ObjectGuid owner)
 
ObjectGuid GetCreatorGUID () const override
 
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 GetBattlePetCompanionGUID () const
 
void SetBattlePetCompanionGUID (ObjectGuid guid)
 
ObjectGuid GetDemonCreatorGUID () const
 
void SetDemonCreatorGUID (ObjectGuid guid)
 
UnitGetDemonCreator () const
 
PlayerGetDemonCreatorPlayer () const
 
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< TempSummon * > &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 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)
 
void SetMovedUnit (Unit *target)
 
UnitGetUnitBeingMoved () const
 
PlayerGetPlayerMovingMe () const
 
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)
 
uint32 GetBattlePetCompanionNameTimestamp () const
 
void SetBattlePetCompanionNameTimestamp (uint32 timestamp)
 
uint32 GetBattlePetCompanionExperience () const
 
void SetBattlePetCompanionExperience (uint32 experience)
 
uint32 GetWildBattlePetLevel () const
 
void SetWildBattlePetLevel (uint32 wildBattlePetLevel)
 
Aura_TryStackingOrRefreshingExistingAura (AuraCreateInfo &createInfo)
 
void _AddAura (UnitAura *aura, Unit *caster)
 
AuraApplication_CreateAuraApplication (Aura *aura, uint32 effMask)
 
void _ApplyAuraEffect (Aura *aura, uint8 effIndex)
 
void _ApplyAura (AuraApplication *aurApp, uint32 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, uint32 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, uint32 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, uint32 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, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAuraFromStack (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, uint16 num=1)
 
void RemoveAurasDueToSpellByDispel (uint32 spellId, uint32 dispellerSpellId, ObjectGuid casterGUID, WorldObject *dispeller, uint8 chargesRemoved=1)
 
void RemoveAurasDueToSpellBySteal (uint32 spellId, ObjectGuid casterGUID, WorldObject *stealer, int32 stolenCharges=1)
 
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 (bool onPhaseChange=false)
 
template<typename InterruptFlags >
void RemoveAurasWithInterruptFlags (InterruptFlags flag, SpellInfo const *source=nullptr)
 
void RemoveAurasWithAttribute (uint32 flags)
 
void RemoveAurasWithFamily (SpellFamilyNames family, flag128 const &familyFlag, ObjectGuid casterGUID)
 
void RemoveAurasWithMechanic (uint64 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 family, flag128 const &familyFlag, ObjectGuid casterGUID=ObjectGuid::Empty) const
 
AuraApplicationGetAuraApplication (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraApplication *except=nullptr) const
 
AuraApplicationGetAuraApplication (uint32 spellId, std::function< bool(AuraApplication const *)> const &predicate) const
 
AuraApplicationGetAuraApplication (uint32 spellId, std::function< bool(Aura const *)> const &predicate) const
 
AuraApplicationGetAuraApplication (std::function< bool(AuraApplication const *)> const &predicate) const
 
AuraApplicationGetAuraApplication (std::function< bool(Aura const *)> const &predicate) const
 
AuraGetAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
 
AuraGetAura (uint32 spellId, std::function< bool(Aura const *)> const &predicate) const
 
AuraGetAura (std::function< bool(Aura const *)> const &predicate) const
 
AuraApplicationGetAuraApplicationOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraApplication *except=nullptr) const
 
AuraGetAuraOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 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, uint32 reqEffMask=0) const
 
bool HasAura (std::function< bool(Aura const *)> const &predicate) 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
 
template<typename InterruptFlags >
bool HasNegativeAuraWithInterruptFlag (InterruptFlags flag, ObjectGuid guid=ObjectGuid::Empty) const
 
bool HasAuraWithMechanic (uint64 mechanicMask) const
 
bool HasStrongerAuraWithDR (SpellInfo const *auraSpellInfo, Unit *caster) const
 
AuraEffectIsScriptOverriden (SpellInfo const *spell, int32 script) const
 
uint32 GetDiseasesByCaster (ObjectGuid casterGUID, bool remove=false)
 
uint32 GetDoTsByCaster (ObjectGuid casterGUID) const
 
float GetTotalAuraModifier (AuraType auraType) const
 
float GetTotalAuraMultiplier (AuraType auraType) const
 
float GetMaxPositiveAuraModifier (AuraType auraType) const
 
float GetMaxNegativeAuraModifier (AuraType auraType) const
 
float GetTotalAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
float GetTotalAuraMultiplier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
float GetMaxPositiveAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
float GetMaxNegativeAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
float GetTotalAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
float GetTotalAuraMultiplierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
float GetMaxPositiveAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask, AuraEffect const *except=nullptr) const
 
float GetMaxNegativeAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
float GetTotalAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
float GetTotalAuraMultiplierByMiscValue (AuraType auraType, int32 misc_value) const
 
float GetMaxPositiveAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
float GetMaxNegativeAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
float GetTotalAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
float GetTotalAuraMultiplierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
float GetMaxPositiveAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
float GetMaxNegativeAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
void InitStatBuffMods ()
 
void UpdateStatBuffMod (Stats stat)
 
void UpdateStatBuffModForClient (Stats stat)
 
void SetCreateStat (Stats stat, float val)
 
void SetCreateHealth (uint32 val)
 
uint32 GetCreateHealth () const
 
void SetCreateMana (uint32 val)
 
uint32 GetCreateMana () const
 
virtual int32 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)
 
uint32 GetChannelSpellXSpellVisualId () const
 
uint32 GetChannelScriptVisualId () const
 
void SetChannelVisual (SpellCastVisual channelVisual)
 
void AddChannelObject (ObjectGuid guid)
 
void SetChannelObject (uint32 slot, ObjectGuid guid)
 
void RemoveChannelObject (ObjectGuid guid)
 
void ClearChannelObjects ()
 
void SetChannelSpellData (uint32 startTimeMs, uint32 durationMs)
 
int8 GetSpellEmpowerStage () const
 
void SetSpellEmpowerStage (int8 stage)
 
void SetCurrentCastSpell (Spell *pSpell)
 
void InterruptSpell (CurrentSpellTypes spellType, bool withDelayed=true, bool withInstant=true)
 
void FinishSpell (CurrentSpellTypes spellType, SpellCastResult result=SPELL_CAST_OK)
 
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
 
GetCastSpellInfoResult GetCastSpellInfo (SpellInfo const *spellInfo) const
 
virtual SpellInfo const * GetCastSpellInfo (SpellInfo const *spellInfo, TriggerCastFlags &triggerFlag, GetCastSpellInfoContext *context) const
 
uint32 GetCastSpellXSpellVisualId (SpellInfo const *spellInfo) const override
 
virtual bool HasSpellFocus (Spell const *=nullptr) const
 
virtual bool IsMovementPreventedByCasting () const
 
bool CanCastSpellWhileMoving (SpellInfo const *spellInfo) const
 
bool IsSilenced (SpellSchoolMask schoolMask) const
 
void SetSilencedSchoolMask (SpellSchoolMask schoolMask)
 
void ReplaceAllSilencedSchoolMask (SpellSchoolMask schoolMask)
 
SpellHistoryGetSpellHistory ()
 
SpellHistory const * GetSpellHistory () const
 
ShapeshiftForm GetShapeshiftForm () const
 
void SetShapeshiftForm (ShapeshiftForm form)
 
void CancelShapeshiftForm (bool onlyTravelShapeshiftForm=false, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, bool force=false)
 
void CancelTravelShapeshiftForm (AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, bool force=false)
 
bool IsInFeralForm () const
 
bool IsInDisallowedMountForm () const
 
bool IsDisallowedMountForm (uint32 spellId, ShapeshiftForm form, uint32 displayId) 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
 
bool CanModifyStats () const
 
void SetCanModifyStats (bool modifyStats)
 
virtual bool UpdateStats (Stats stat)=0
 
virtual bool UpdateAllStats ()=0
 
virtual void UpdateResistances (uint32 school)
 
virtual void UpdateAllResistances ()
 
virtual void UpdateArmor ()=0
 
virtual void UpdateMaxHealth ()=0
 
virtual void UpdateMaxPower (Powers power)=0
 
virtual uint32 GetPowerIndex (Powers power) const =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)
 
void SetMainHandWeaponAttackPower (int32 attackPower)
 
void SetOffHandWeaponAttackPower (int32 attackPower)
 
void SetRangedWeaponAttackPower (int32 attackPower)
 
virtual void UpdateDamagePhysical (WeaponAttackType attType)
 
float GetTotalAttackPowerValue (WeaponAttackType attType, bool includeWeapon=true) const
 
float GetWeaponDamageRange (WeaponAttackType attType, WeaponDamageRange type) const
 
void SetBaseWeaponDamage (WeaponAttackType attType, WeaponDamageRange damageRange, float value)
 
virtual void CalculateMinMaxDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, float &minDamage, float &maxDamage) const =0
 
uint32 CalculateDamage (WeaponAttackType attType, bool normalized, bool addTotalPct) 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)
 
virtual void OnPhaseChange ()
 
void UpdateObjectVisibility (bool forced=true) override
 
VisibleAuraContainer const & GetVisibleAuras () const
 
bool HasVisibleAura (AuraApplication *aurApp) const
 
void SetVisibleAura (AuraApplication *aurApp)
 
void RemoveVisibleAura (AuraApplication *aurApp)
 
void SetVisibleAuraUpdate (AuraApplication *aurApp)
 
void RemoveVisibleAuraUpdate (AuraApplication *aurApp)
 
bool HasInterruptFlag (SpellAuraInterruptFlags flags) const
 
bool HasInterruptFlag (SpellAuraInterruptFlags2 flags) const
 
void AddInterruptMask (SpellAuraInterruptFlags flags, SpellAuraInterruptFlags2 flags2)
 
void UpdateInterruptMask ()
 
virtual float GetNativeObjectScale () const
 
virtual void RecalculateObjectScale ()
 
uint32 GetDisplayId () const
 
float GetDisplayScale () const
 
virtual void SetDisplayId (uint32 displayId, bool setNative=false)
 
uint32 GetNativeDisplayId () const
 
float GetNativeDisplayScale () const
 
void RestoreDisplayId (bool ignorePositiveAurasPreventingMounting=false)
 
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 _RegisterAreaTrigger (AreaTrigger *areaTrigger)
 
void _UnregisterAreaTrigger (AreaTrigger *areaTrigger)
 
AreaTriggerGetAreaTrigger (uint32 spellId) const
 
std::vector< AreaTrigger * > GetAreaTriggers (uint32 spellId) const
 
void RemoveAreaTrigger (uint32 spellId)
 
void RemoveAreaTrigger (AuraEffect const *aurEff)
 
void RemoveAllAreaTriggers (AreaTriggerRemoveReason reason=AreaTriggerRemoveReason::Default)
 
void EnterAreaTrigger (AreaTrigger *areaTrigger)
 
void ExitAreaTrigger (AreaTrigger *areaTrigger)
 
std::vector< AreaTrigger * > const & GetInsideAreaTriggers () const
 
void ExitAllAreaTriggers ()
 
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
 
int32 SpellDamageBonusDone (Unit *victim, SpellInfo const *spellProto, int32 pdamage, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, uint32 stack=1, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr) const
 
float SpellDamagePctDone (Unit *victim, SpellInfo const *spellProto, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo) const
 
int32 SpellDamageBonusTaken (Unit *caster, SpellInfo const *spellProto, int32 pdamage, DamageEffectType damagetype) const
 
int32 SpellBaseHealingBonusDone (SpellSchoolMask schoolMask) const
 
int32 SpellHealingBonusDone (Unit *victim, SpellInfo const *spellProto, int32 healamount, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, uint32 stack=1, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr) const
 
float SpellHealingPctDone (Unit *victim, SpellInfo const *spellProto) const
 
int32 SpellHealingBonusTaken (Unit *caster, SpellInfo const *spellProto, int32 healamount, DamageEffectType damagetype) const
 
int32 SpellBaseAbsorbBonusDone (SpellSchoolMask schoolMask) const
 
int32 SpellAbsorbBonusDone (Unit *victim, SpellInfo const *spellProto, int32 absorbamount, SpellEffectInfo const &spellEffectInfo, uint32 stack=1, AuraEffect const *aurEff=nullptr) const
 
float SpellAbsorbPctDone (Unit *victim, SpellInfo const *spellProto) const
 
int32 SpellAbsorbBonusTaken (Unit *caster, SpellInfo const *spellProto, int32 absorbamount) const
 
int32 MeleeDamageBonusDone (Unit *pVictim, int32 damage, WeaponAttackType attType, DamageEffectType damagetype, SpellInfo const *spellProto=nullptr, SpellEffectInfo const *spellEffectInfo=nullptr, Mechanics mechanic=MECHANIC_NONE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr)
 
int32 MeleeDamageBonusTaken (Unit *attacker, int32 pdamage, WeaponAttackType attType, DamageEffectType damagetype, SpellInfo const *spellProto=nullptr, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL)
 
bool IsBlockCritical () const
 
float SpellCritChanceDone (Spell *spell, AuraEffect const *aurEff, SpellSchoolMask schoolMask, WeaponAttackType attackType=BASE_ATTACK) const
 
float SpellCritChanceTaken (Unit const *caster, Spell *spell, AuraEffect const *aurEff, SpellSchoolMask schoolMask, float doneChance, WeaponAttackType attackType=BASE_ATTACK) const
 
void ApplySpellImmune (uint32 spellId, SpellImmunity op, uint32 type, bool apply)
 
bool IsImmunedToSpell (SpellInfo const *spellInfo, uint32 effectMask, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const
 
uint32 GetSchoolImmunityMask () const
 
uint32 GetDamageImmunityMask () const
 
uint64 GetMechanicImmunityMask () const
 
EnumFlag< SpellOtherImmunityGetSpellOtherImmunityMask () const
 
bool IsImmunedToDamage (SpellSchoolMask meleeSchoolMask) const
 
bool IsImmunedToDamage (WorldObject const *caster, SpellInfo const *spellInfo, SpellEffectInfo const *spellEffectInfo=nullptr) const
 
virtual bool IsImmunedToSpellEffect (SpellInfo const *spellInfo, SpellEffectInfo const &spellEffectInfo, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const
 
bool IsImmunedToAuraPeriodicTick (WorldObject const *caster, AuraEffect const *auraEffect) 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)
 
int32 GetFlightCapabilityID () const
 
void SetFlightCapabilityID (int32 flightCapabilityId, bool clientUpdate)
 
float GetAdvFlyingSpeed (AdvFlyingRateTypeSingle speedType) const
 
float GetAdvFlyingSpeedMin (AdvFlyingRateTypeRange speedType) const
 
float GetAdvFlyingSpeedMax (AdvFlyingRateTypeRange speedType) const
 
void UpdateAdvFlyingSpeed (AdvFlyingRateTypeSingle speedType, bool clientUpdate)
 
void UpdateAdvFlyingSpeed (AdvFlyingRateTypeRange speedType, bool clientUpdate)
 
void FollowerAdded (AbstractFollower *f)
 
void FollowerRemoved (AbstractFollower *f)
 
void RemoveAllFollowers ()
 
MotionMasterGetMotionMaster ()
 
MotionMaster const * GetMotionMaster () const
 
virtual MovementGeneratorType GetDefaultMovementType () const
 
bool IsStopped () const
 
void StopMoving ()
 
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)
 
void AddExtraUnitMovementFlag2 (uint32 f)
 
void RemoveExtraUnitMovementFlag2 (uint32 f)
 
bool HasExtraUnitMovementFlag2 (uint32 f) const
 
uint32 GetExtraUnitMovementFlags2 () const
 
void SetExtraUnitMovementFlags2 (uint32 f)
 
bool IsSplineEnabled () const
 
void SetControlled (bool apply, UnitState state)
 
void ApplyControlStatesIfNeeded ()
 
void SendPetActionFeedback (PetActionFeedback msg, uint32 spellId)
 -------—Pet responses methods--------------—
 
void SendPetTalk (uint32 pettalk)
 
void SendPetAIReaction (ObjectGuid guid)
 
void PropagateSpeedChange ()
 -------—End of Pet responses methods-------—
 
void ClearAllReactives ()
 
void StartReactiveTimer (ReactiveType reactive)
 
void UpdateReactives (uint32 p_time)
 
void UpdateAuraForGroup ()
 
bool CanProc () const
 
void SetCantProc (bool apply)
 
int32 GetProcChainLength () const
 
uint32 GetModelForForm (ShapeshiftForm form, uint32 spellId) const
 
bool CreateVehicleKit (uint32 id, uint32 creatureEntry, bool loading=false)
 
void RemoveVehicleKit (bool onRemoveFromWorld=false)
 
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)
 
bool HandleSpellClick (Unit *clicker, int8 seatId, uint32 spellId, TriggerCastFlags flags=TRIGGERED_NONE, SpellClickInfo const *spellClickInfo=nullptr)
 
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)
 
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
 
int32 RewardRage (uint32 baseRage)
 
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 const &)=0
 
void SetInstantCast (bool set)
 
bool CanInstantCast () const
 
SpellEffectValue 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, SpellEffectValue effectAmount, uint32 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)
 
void ClearBossEmotes (Optional< uint32 > zoneId={}, Player const *target=nullptr) const
 Clears boss emotes frame.
 
float GetCollisionHeight () const override
 
uint32 GetVirtualItemId (uint32 slot) const
 
uint16 GetVirtualItemAppearanceMod (uint32 slot) const
 
void SetVirtualItem (uint32 slot, uint32 itemId, uint16 appearanceModId=0, uint16 itemVisual=0)
 
bool IsCombatDisallowed () const
 
void SetIsCombatDisallowed (bool apply)
 
void AddWorldEffect (int32 worldEffectId)
 
void RemoveWorldEffect (int32 worldEffectId)
 
void ClearWorldEffects ()
 
Vignettes::VignetteData const * GetVignette () const
 
void SetVignette (uint32 vignetteId)
 
std::string GetDebugInfo () const override
 
void AtStartOfEncounter (EncounterType type)
 
void AtEndOfEncounter (EncounterType type)
 
- 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, float maxHeightChange=6.0f) const
 
Position GetNearPosition (float dist, float angle)
 
void MovePositionToFirstCollision (Position &pos, float dist, float angle) const
 
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
 
Position GetRandomPoint (Position const &srcPos, float distance, float minDistance=0.0f) const
 
uint32 GetInstanceId () const
 
PhaseShiftGetPhaseShift ()
 
PhaseShift const & GetPhaseShift () const
 
PhaseShiftGetSuppressedPhaseShift ()
 
PhaseShift const & GetSuppressedPhaseShift () const
 
bool InSamePhase (PhaseShift const &phaseShift) const
 
bool InSamePhase (WorldObject const *obj) const
 
int32 GetDBPhase () const
 
void SetDBPhase (int32 p)
 
uint32 GetZoneId () const
 
uint32 GetAreaId () const
 
void GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const
 
bool IsInWorldPvpZone () const
 
bool IsOutdoors () const
 
ZLiquidStatus GetLiquidStatus () const
 
WmoLocation const * GetCurrentWmo () const
 
InstanceScriptGetInstanceScript () const
 
std::string const & GetName () const
 
void SetName (std::string newname)
 
std::string GetNameForLocaleIdx (LocaleConstant) const override
 
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, bool incOwnRadius=true, bool incTargetRadius=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 (Position const *pos, float minRange, float maxRange) const
 
bool IsInRange3d (Position const *pos, 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 SendCombatLogMessage (WorldPackets::CombatLog::CombatLogServerPacket *combatLog) const
 
void PlayDistanceSound (uint32 soundId, Player const *target=nullptr) const
 
void StopDistanceSound (Player const *target=nullptr) const
 
void PlayDirectSound (uint32 soundId, Player const *target=nullptr, uint32 broadcastTextId=0) const
 
void PlayDirectMusic (uint32 musicId, Player const *target=nullptr) const
 
void PlayObjectSound (int32 soundKitId, ObjectGuid targetObject, Player const *target=nullptr, int32 broadcastTextId=0) const
 
void AddObjectToRemoveList ()
 
float GetGridActivationRange () const
 
float GetVisibilityRange () const
 
float GetSightRange (WorldObject const *target=nullptr) const
 
bool CanSeeOrDetect (WorldObject const *obj, CanSeeOrDetectExtraArgs const &args={ }) const
 
virtual void SetMap (Map *map)
 
virtual void ResetMap ()
 
MapGetMap () const
 
MapFindMap () const
 
void SetZoneScript ()
 
ZoneScriptFindZoneScript () const
 
ZoneScriptGetZoneScript () const
 
ScenarioGetScenario () 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)
 
TempSummonSummonPersonalClone (Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, Player *privateObjectOwner=nullptr)
 
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 range) const
 
ObjectGuid GetCharmerOrOwnerOrOwnGUID () const
 
UnitGetOwner () const
 
UnitGetCharmerOrOwner () const
 
UnitGetCharmerOrOwnerOrSelf () const
 
PlayerGetCharmerOrOwnerPlayerOrPlayerItself () const
 
PlayerGetAffectingPlayer () const
 
PlayerGetSpellModOwner () const
 
SpellRange GetSpellMinMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const
 
SpellEffectValue ApplyEffectModifiers (SpellInfo const *spellInfo, uint8 effIndex, SpellEffectValue value) const
 
int32 CalcSpellDuration (SpellInfo const *spellInfo, std::vector< SpellPowerCost > const *powerCosts) 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, bool canImmune) 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={ })
 
void SendPlayOrphanSpellVisual (Position const &sourceLocation, ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendPlayOrphanSpellVisual (Position const &sourceLocation, Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendPlayOrphanSpellVisual (ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendPlayOrphanSpellVisual (Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendCancelOrphanSpellVisual (uint32 id)
 
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 ()
 
virtual void UpdateObjectVisibilityOnDestroy ()
 
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
 
TransportBaseGetTransport () 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 (TransportBase *t)
 
virtual Position const & GetStationaryPosition () 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
 
SmoothPhasingGetOrCreateSmoothPhasing ()
 
SmoothPhasingGetSmoothPhasing ()
 
SmoothPhasing const * GetSmoothPhasing () const
 
- Public Member Functions inherited from Object
virtual ~Object ()
 
uint32 GetEntry () const
 
void SetEntry (uint32 entry)
 
float GetObjectScale () const
 
virtual void SetObjectScale (float scale)
 
uint32 GetDynamicFlags () const
 
bool HasDynamicFlag (uint32 flag) const
 
void SetDynamicFlag (uint32 flag)
 
void RemoveDynamicFlag (uint32 flag)
 
void ReplaceAllDynamicFlags (uint32 flag)
 
void BuildValuesUpdateBlockForPlayerWithFlag (UpdateData *data, UF::UpdateFieldFlag flags, Player const *target) const
 
virtual bool hasQuest (uint32) const
 
virtual bool hasInvolvedQuest (uint32) const
 
WorldObjectToWorldObject ()
 
WorldObject const * ToWorldObject () const
 
ItemToItem ()
 
Item const * ToItem () const
 
UnitToUnit ()
 
Unit const * ToUnit () const
 
CreatureToCreature ()
 
Creature const * ToCreature () const
 
PlayerToPlayer ()
 
Player const * ToPlayer () const
 
GameObjectToGameObject ()
 
GameObject const * ToGameObject () const
 
CorpseToCorpse ()
 
Corpse const * ToCorpse () const
 
DynamicObjectToDynObject ()
 
DynamicObject const * ToDynObject () const
 
AreaTriggerToAreaTrigger ()
 
AreaTrigger const * ToAreaTrigger () const
 
SceneObjectToSceneObject ()
 
SceneObject const * ToSceneObject () const
 
ConversationToConversation ()
 
Conversation const * ToConversation () const
 
Trinity::unique_weak_ptr< ObjectGetWeakPtr () const
 
virtual LootGetLootForPlayer (Player const *player) const
 
virtual SpawnTrackingStateData const * GetSpawnTrackingStateDataForPlayer (Player const *player) const
 
virtual void BuildValuesUpdateWithFlag (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const
 
- Public Member Functions inherited from BaseEntity
virtual ~BaseEntity ()
 
bool IsInWorld () const
 
ObjectGuid const & GetGUID () const
 
TypeID GetTypeId () const
 
bool isType (TypeMask mask) const
 
bool IsWorldObject () const
 
bool IsItem () const
 
bool IsUnit () const
 
bool IsCreature () const
 
bool IsPlayer () const
 
bool IsGameObject () const
 
bool IsDynObject () const
 
bool IsCorpse () const
 
bool IsAreaTrigger () const
 
bool IsSceneObject () const
 
bool IsConversation () const
 
bool IsMeshObject () const
 
virtual void BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const
 
void SendUpdateToPlayer (Player *player) const
 
void BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const
 
void BuildDestroyUpdateBlock (UpdateData *data) const
 
void BuildOutOfRangeUpdateBlock (UpdateData *data) const
 
ByteBufferPrepareValuesUpdateBuffer (UpdateData *data) const
 
void SendOutOfRangeForPlayer (Player const *target) const
 
void ClearUpdateMask (bool remove)
 
void SetIsNewObject (bool enable)
 
bool IsDestroyedObject () const
 
void SetDestroyedObject (bool destroyed)
 
void BuildUpdateChangesMask ()
 
void BuildFieldsUpdate (Player *player, UpdateDataMapType &data_map) const
 
template<typename T >
void ForceUpdateFieldChange (UF::UpdateFieldPrivateSetter< T > const &)
 
- Public Member Functions inherited from WorldLocation
constexpr WorldLocation ()
 
constexpr WorldLocation (uint32 mapId, float x, float y)
 
constexpr WorldLocation (uint32 mapId, float x, float y, float z)
 
constexpr WorldLocation (uint32 mapId, float x, float y, float z, float o)
 
constexpr WorldLocation (uint32 mapId, Position const &position)
 
constexpr void WorldRelocate (WorldLocation const &loc)
 
constexpr void WorldRelocate (WorldLocation const *loc)
 
constexpr void WorldRelocate (uint32 mapId, Position const &pos)
 
constexpr void WorldRelocate (uint32 mapId, float x, float y, float z, float o)
 
constexpr WorldLocation GetWorldLocation () const
 
constexpr uint32 GetMapId () const
 
std::string GetDebugInfo () const
 
- Public Member Functions inherited from Position
constexpr Position ()
 
constexpr Position (float x, float y)
 
constexpr Position (float x, float y, float z)
 
constexpr Position (float x, float y, float z, float o)
 
bool operator== (Position const &a) const
 
constexpr void Relocate (float x, float y)
 
constexpr void Relocate (float x, float y, float z)
 
constexpr void Relocate (float x, float y, float z, float o)
 
constexpr void Relocate (Position const &pos)
 
constexpr void Relocate (Position const *pos)
 
void RelocateOffset (Position const &offset)
 
constexpr void SetOrientation (float orientation)
 
constexpr float GetPositionX () const
 
constexpr float GetPositionY () const
 
constexpr float GetPositionZ () const
 
constexpr float GetOrientation () const
 
constexpr void GetPosition (float &x, float &y) const
 
constexpr void GetPosition (float &x, float &y, float &z) const
 
constexpr void GetPosition (float &x, float &y, float &z, float &o) const
 
constexpr 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
 
constexpr float GetExactDist2dSq (const float x, const float y) const
 
constexpr float GetExactDist2dSq (Position const &pos) const
 
constexpr 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
 
constexpr float GetExactDistSq (float x, float y, float z) const
 
constexpr float GetExactDistSq (Position const &pos) const
 
constexpr 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
 
Position GetPositionOffsetTo (Position const &endPos) 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
 
constexpr bool IsInDist2d (float x, float y, float dist) const
 
constexpr bool IsInDist2d (Position const &pos, float dist) const
 
constexpr bool IsInDist2d (Position const *pos, float dist) const
 
constexpr bool IsInDist (float x, float y, float z, float dist) const
 
constexpr bool IsInDist (Position const &pos, float dist) const
 
constexpr bool IsInDist (Position const *pos, float dist) const
 
bool IsWithinBox (Position const &boxOrigin, float length, float width, float height) const
 
bool IsWithinVerticalCylinder (Position const &cylinderOrigin, float radius, float height, bool isDoubleVertical=false) const
 
bool IsInPolygon2D (Position const &polygonOrigin, std::span< Position const > vertices) 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 std::vector< AuraEffect * > CopyAuraEffectList (AuraEffectList const &list)
 
static float CalculateAverageResistReduction (WorldObject const *caster, SpellSchoolMask schoolMask, Unit const *victim, SpellInfo const *spellInfo=nullptr)
 
static void DealDamageMods (Unit const *attacker, Unit const *victim, uint32 &damage, uint32 *absorb)
 
static uint32 DealDamage (Unit *attacker, Unit *victim, uint32 damage, CleanDamage const *cleanDamage=nullptr, DamageEffectType damagetype=DIRECT_DAMAGE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *spellProto=nullptr, bool durabilityLoss=true)
 
static void Kill (Unit *attacker, Unit *victim, bool durabilityLoss=true, bool skipSettingDeathState=false)
 
static void DealHeal (HealInfo &healInfo)
 
static void ProcSkillsAndAuras (Unit *actor, Unit *actionTarget, ProcFlagsInit const &typeMaskActor, ProcFlagsInit const &typeMaskActionTarget, ProcFlagsSpellType spellTypeMask, ProcFlagsSpellPhase spellPhaseMask, ProcFlagsHit hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo)
 
static void ApplyResilience (Unit const *victim, int32 *damage)
 
static uint32 SpellCriticalDamageBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit *victim)
 
static uint32 SpellCriticalHealingBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit *victim)
 
static bool IsDamageReducedByArmor (SpellSchoolMask damageSchoolMask, SpellInfo const *spellInfo=nullptr)
 
static uint32 CalcArmorReducedDamage (Unit const *attacker, Unit *victim, uint32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=MAX_ATTACK, uint8 attackerLevel=0)
 
static uint32 CalcSpellResistedDamage (Unit const *attacker, Unit *victim, uint32 damage, SpellSchoolMask schoolMask, SpellInfo const *spellInfo)
 
static void CalcAbsorbResist (DamageInfo &damageInfo, Spell *spell=nullptr)
 
static void CalcHealAbsorb (HealInfo &healInfo)
 
- Static Public Member Functions inherited from WorldObject
static bool InSamePhase (WorldObject const *a, WorldObject const *b)
 
static ReputationRank GetFactionReactionTo (FactionTemplateEntry const *factionTemplateEntry, WorldObject const *target)
 
- Static Public Member Functions inherited from Object
static WorldObjectToWorldObject (Object *o)
 
static WorldObject const * ToWorldObject (Object const *o)
 
static ItemToItem (Object *o)
 
static Item const * ToItem (Object const *o)
 
static UnitToUnit (Object *o)
 
static Unit const * ToUnit (Object const *o)
 
static CreatureToCreature (Object *o)
 
static Creature const * ToCreature (Object const *o)
 
static PlayerToPlayer (Object *o)
 
static Player const * ToPlayer (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 AreaTriggerToAreaTrigger (Object *o)
 
static AreaTrigger const * ToAreaTrigger (Object const *o)
 
static SceneObjectToSceneObject (Object *o)
 
static SceneObject const * ToSceneObject (Object const *o)
 
static ConversationToConversation (Object *o)
 
static Conversation const * ToConversation (Object const *o)
 
- Static Public Member Functions inherited from BaseEntity
static ObjectGuid GetGUID (BaseEntity const *o)
 
- Static Public Member Functions inherited from Position
static float NormalizeOrientation (float o)
 

Public Attributes

bool m_canDualWield
 
ControlList m_Controlled
 
std::array< ObjectGuid, MAX_SUMMON_SLOTm_SummonSlot
 
std::array< ObjectGuid, MAX_GAMEOBJECT_SLOTm_ObjectSlot
 
float m_modMeleeHitChance
 
float m_modRangedHitChance
 
float m_modSpellHitChance
 
float m_baseSpellCritChance
 
std::array< uint32, MAX_ATTACKm_baseAttackSpeed
 
std::array< float, MAX_ATTACKm_modAttackSpeedPct
 
std::array< uint32, MAX_ATTACKm_attackTimer
 
SpellImmuneContainer m_spellImmune [MAX_SPELL_IMMUNITY]
 
uint32 m_lastSanctuaryTime
 
ObjectGuid LastCharmerGUID
 
std::unique_ptr< Movement::MoveSplinemovespline
 
UF::UpdateField< UF::UnitData, int32(WowCS::EntityFragment::CGObject), TYPEID_UNITm_unitData
 
- Public Attributes inherited from WorldObject
FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPESm_stealth
 
FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPESm_stealthDetect
 
FlaggedValuesArray32< int32, uint64, InvisibilityType, TOTAL_INVISIBILITY_TYPESm_invisibility
 
FlaggedValuesArray32< int32, uint64, 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 Object
UF::UpdateField< UF::ObjectData, int32(WowCS::EntityFragment::CGObject), TYPEID_OBJECTm_objectData
 
- Public Attributes inherited from BaseEntity
UF::UpdateFieldHolder m_values
 
- 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::vector< DynamicObject * > DynObjectList
 
typedef std::list< GameObject * > GameObjectList
 
typedef std::vector< AreaTrigger * > AreaTriggerList
 

Protected Member Functions

void SetAI (UnitAI *newAI)
 
UnitAIGetTopAI () const
 
void RefreshAI ()
 
UnitAIGetScheduledChangeAI ()
 
bool HasScheduledAIChange () const
 
 Unit (bool isWorldObject)
 
UF::UpdateFieldFlag GetUpdateFieldFlagsFor (Player const *target) const override
 
void DestroyForPlayer (Player const *target) const override
 
void ClearValuesChangesMask () 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
 
void UpdateLiquidStatusOnPositionChange (Optional< LiquidData > const &newLiquidData)
 
virtual void AtEnterCombat ()
 
virtual void AtExitCombat ()
 
virtual void AtEngage (Unit *)
 
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 CanNeverSee (WorldObject const *obj, bool ignorePhaseShift=false) const
 
virtual bool CanAlwaysSee (WorldObject const *) const
 
virtual bool IsNeverVisibleFor (WorldObject const *seer, bool allowServersideObjects=false) const
 
virtual bool IsInvisibleDueToDespawn (WorldObject const *seer) const
 
- Protected Member Functions inherited from Object
 Object ()
 
virtual void BuildValuesCreate (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const =0
 
virtual void BuildValuesUpdate (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const =0
 
void BuildEntityFragmentsForValuesUpdateForPlayerWithMask (ByteBuffer &data, EnumFlag< UF::UpdateFieldFlag > flags) const
 
- Protected Member Functions inherited from BaseEntity
 BaseEntity ()
 
void _Create (ObjectGuid const &guid)
 
template<typename T >
void SetUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type value)
 
template<typename T >
void SetUpdateFieldFlagValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type flag)
 
template<typename T >
void RemoveUpdateFieldFlagValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type flag)
 
template<typename T >
UF::DynamicUpdateFieldSetter< T >::insert_result AddDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter)
 
template<typename T >
UF::DynamicUpdateFieldSetter< T >::insert_result InsertDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index)
 
template<typename T >
void RemoveDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index)
 
template<typename T >
void ClearDynamicUpdateFieldValues (UF::DynamicUpdateFieldSetter< T > setter)
 
template<typename K , typename V >
void RemoveMapUpdateFieldValue (UF::MapUpdateFieldSetter< K, V > setter, std::type_identity_t< K > const &key)
 
template<typename T >
void InsertSetUpdateFieldValue (UF::SetUpdateFieldSetter< T > setter, std::type_identity_t< T > const &key)
 
template<typename T >
void RemoveSetUpdateFieldValue (UF::SetUpdateFieldSetter< T > setter, std::type_identity_t< T > const &key)
 
template<typename T >
void RemoveOptionalUpdateFieldValue (UF::OptionalUpdateFieldSetter< T > setter)
 
template<typename T >
void SetUpdateFieldStatValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type value)
 
template<typename T >
void ApplyModUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type mod, bool apply)
 
template<typename T >
void ApplyPercentModUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, float percent, bool apply)
 
template<typename Action >
void DoWithSuppressingObjectUpdates (Action &&action)
 
void BuildMovementUpdate (ByteBuffer &data, CreateObjectBits flags, Player const *target) const
 
void AddToObjectUpdateIfNeeded ()
 

Protected Attributes

bool m_ControlledByPlayer
 
std::array< float, MAX_STATSm_createStats
 
std::array< float, MAX_STATSm_floatStatPosBuff
 
std::array< float, MAX_STATSm_floatStatNegBuff
 
AttackerSet m_attackers
 
Unitm_attacking
 
DeathState m_deathState
 
int32 m_procDeep
 
int32 m_procChainLength
 
DynObjectList m_dynObj
 
GameObjectList m_gameObj
 
AreaTriggerList m_areaTrigger
 
AreaTriggerList m_insideAreaTriggers
 
uint32 m_transformSpell
 
std::array< Spell *, CURRENT_MAX_SPELLm_currentSpells
 
AuraMap m_ownedAuras
 
AuraApplicationMap m_appliedAuras
 
AuraList m_removedAuras
 
AuraMap::iterator m_auraUpdateIterator
 
uint32 m_removedAurasCount
 
std::array< AuraEffectList, TOTAL_AURASm_modAuras
 
AuraList m_scAuras
 
AuraApplicationList m_interruptableAuras
 
AuraStateAurasMap m_auraStateAuras
 
EnumFlag< SpellAuraInterruptFlagsm_interruptMask
 
EnumFlag< SpellAuraInterruptFlags2m_interruptMask2
 
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]
 
bool m_canModifyStats
 
VisibleAuraContainer m_visibleAuras
 
Trinity::Containers::FlatSet< AuraApplication *, VisibleAuraSlotComparem_visibleAurasToUpdate
 
std::array< float, MAX_MOVE_TYPEm_speed_rate
 
std::array< float, ADV_FLYING_MAX_SPEED_TYPEm_advFlyingSpeed
 
Unitm_unitMovedByMe
 
Playerm_playerMovingMe
 
Unitm_charmer
 
Unitm_charmed
 
std::unique_ptr< CharmInfom_charmInfo
 
SharedVisionList m_sharedVision
 
std::unique_ptr< MotionMasteri_motionMaster
 
std::array< uint32, MAX_REACTIVEm_reactiveTimer
 
uint32 m_regenTimer
 
Vehiclem_vehicle
 
Trinity::unique_trackable_ptr< Vehiclem_vehicleKit
 
uint32 m_unitTypeMask
 
LiquidTypeEntry const * _lastLiquid
 
std::unique_ptr< Vignettes::VignetteDatam_vignette
 
uint32 m_movementCounter
 Incrementing counter used in movement packets.
 
- 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
 
TransportBasem_transport
 
uint32 m_zoneId
 
uint32 m_areaId
 
float m_staticFloorZ
 
bool m_outdoors
 
ZLiquidStatus m_liquidStatus
 
Optional< WmoLocationm_currentWmo
 
- Protected Attributes inherited from BaseEntity
TypeID m_objectTypeId = NUM_CLIENT_OBJECT_TYPES
 
CreateObjectBits m_updateFlag = {}
 
WowCS::EntityFragmentsHolder m_entityFragments
 
bool m_objectUpdated = false
 

Private Types

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

Private Member Functions

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

Private Attributes

uint32 m_state
 
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
 
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?
 
uint16 _aiAnimKitId
 
uint16 _movementAnimKitId
 
uint16 _meleeAnimKitId
 
std::unique_ptr< SpellHistory_spellHistory
 
std::unique_ptr< MovementForces_movementForces
 
PositionUpdateInfo _positionUpdateInfo
 
bool _isCombatDisallowed
 

Friends

class VehicleJoinEvent
 
class CombatManager
 
class ThreatManager
 

Additional Inherited Members

- Static Protected Member Functions inherited from BaseEntity
static void BuildEntityFragments (ByteBuffer &data, std::span< WowCS::EntityFragment const > fragments)
 

Detailed Description

Definition at line 634 of file Unit.h.

Member Typedef Documentation

◆ AreaTriggerList

typedef std::vector<AreaTrigger*> Unit::AreaTriggerList
protected

Definition at line 1916 of file Unit.h.

◆ AttackerSet

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

Definition at line 637 of file Unit.h.

◆ AuraApplicationList

typedef std::forward_list<AuraApplication*> Unit::AuraApplicationList

Definition at line 654 of file Unit.h.

◆ AuraApplicationMap

Definition at line 645 of file Unit.h.

◆ AuraApplicationMapBounds

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

Definition at line 646 of file Unit.h.

◆ AuraApplicationMapBoundsNonConst

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

Definition at line 647 of file Unit.h.

◆ AuraApplicationProcContainer

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

Definition at line 657 of file Unit.h.

◆ AuraEffectList

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

Definition at line 652 of file Unit.h.

◆ AuraList

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

Definition at line 653 of file Unit.h.

◆ AuraMap

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

Definition at line 641 of file Unit.h.

◆ AuraMapBounds

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

Definition at line 642 of file Unit.h.

◆ AuraMapBoundsNonConst

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

Definition at line 643 of file Unit.h.

◆ AuraStateAurasMap

Definition at line 649 of file Unit.h.

◆ AuraStateAurasMapBounds

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

Definition at line 650 of file Unit.h.

◆ ControlList

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

Definition at line 638 of file Unit.h.

◆ Diminishing

Definition at line 655 of file Unit.h.

◆ DynObjectList

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

Definition at line 1910 of file Unit.h.

◆ GameObjectList

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

Definition at line 1913 of file Unit.h.

◆ UnitAIStack

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

Definition at line 2022 of file Unit.h.

◆ UnitVector

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

Definition at line 639 of file Unit.h.

◆ VisibleAuraContainer

Definition at line 660 of file Unit.h.

Member Enumeration Documentation

◆ AreaTriggerRemoveReason

enum class Unit::AreaTriggerRemoveReason : uint8
strong
Enumerator
Default 
UnitDespawn 

Definition at line 1640 of file Unit.h.

Constructor & Destructor Documentation

◆ ~Unit()

Unit::~Unit ( )
virtual

Definition at line 392 of file Unit.cpp.

+ Here is the call graph for this function:

◆ Unit()

Unit::Unit ( bool  isWorldObject)
explicitprotected

Definition at line 309 of file Unit.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ _addAttacker()

void Unit::_addAttacker ( Unit pAttacker)

Definition at line 5820 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ _AddAura()

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

Definition at line 3450 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 4598 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ _ApplyAura()

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

Definition at line 3545 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 3531 of file Unit.cpp.

+ Here is the call graph for this function:

◆ _CreateAuraApplication()

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

Definition at line 3489 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 2948 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 12756 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 12854 of file Unit.cpp.

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

◆ _RegisterAreaTrigger()

void Unit::_RegisterAreaTrigger ( AreaTrigger areaTrigger)

Definition at line 5455 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 3735 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 5290 of file Unit.cpp.

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

◆ _RemoveAllAuraStatMods()

void Unit::_RemoveAllAuraStatMods ( )

Definition at line 4592 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ _removeAttacker()

void Unit::_removeAttacker ( Unit pAttacker)

Definition at line 5825 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ _RemoveNoStackAurasDueToAura()

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

Definition at line 3715 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 3387 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 3694 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 3602 of file Unit.cpp.

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

◆ _UnregisterAreaTrigger()

void Unit::_UnregisterAreaTrigger ( AreaTrigger areaTrigger)

Definition at line 5462 of file Unit.cpp.

+ Here is the call graph for this function:

◆ _UnregisterDynObject()

void Unit::_UnregisterDynObject ( DynamicObject dynObj)

Definition at line 5297 of file Unit.cpp.

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

◆ _UpdateAutoRepeatSpell()

void Unit::_UpdateAutoRepeatSpell ( )
protected

Definition at line 3021 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 2959 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,
uint32  effMask,
Unit target 
)

Definition at line 12261 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 12249 of file Unit.cpp.

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

◆ AddChannelObject()

void Unit::AddChannelObject ( ObjectGuid  guid)

Definition at line 3059 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 2372 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 1738 of file Unit.h.

+ Here is the caller graph for this function:

◆ AddExtraUnitMovementFlag2()

void Unit::AddExtraUnitMovementFlag2 ( uint32  f)
inline

Definition at line 1744 of file Unit.h.

+ Here is the caller graph for this function:

◆ AddGameObject()

void Unit::AddGameObject ( GameObject gameObj)

Definition at line 5357 of file Unit.cpp.

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

◆ AddInterruptMask()

void Unit::AddInterruptMask ( SpellAuraInterruptFlags  flags,
SpellAuraInterruptFlags2  flags2 
)
inline

Definition at line 1601 of file Unit.h.

+ Here is the caller graph for this function:

◆ AddPlayerToVision()

void Unit::AddPlayerToVision ( Player player)

Definition at line 6710 of file Unit.cpp.

+ Here is the call graph for this function:

◆ AddToWorld()

void Unit::AddToWorld ( )
overridevirtual

Reimplemented from Object.

Definition at line 10233 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 1732 of file Unit.h.

+ Here is the caller graph for this function:

◆ AddUnitState()

void Unit::AddUnitState ( uint32  f)
inline

Definition at line 742 of file Unit.h.

+ Here is the caller graph for this function:

◆ AddUnitTypeMask()

void Unit::AddUnitTypeMask ( uint32  mask)
inline

Definition at line 748 of file Unit.h.

+ Here is the caller graph for this function:

◆ AddWorldEffect()

void Unit::AddWorldEffect ( int32  worldEffectId)

Definition at line 14559 of file Unit.cpp.

+ Here is the call graph for this function:

◆ AIUpdateTick()

void Unit::AIUpdateTick ( uint32  diff)

Definition at line 10155 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 10966 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 10992 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 11626 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 9428 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,
int32 duration,
WorldObject caster,
DiminishingLevels  previousLevel 
) const

Definition at line 9347 of file Unit.cpp.

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

◆ ApplyModManaCostModifier()

void Unit::ApplyModManaCostModifier ( SpellSchools  school,
int32  mod,
bool  apply 
)
inline

Definition at line 830 of file Unit.h.

+ Here is the caller graph for this function:

◆ ApplyModManaCostMultiplier()

void Unit::ApplyModManaCostMultiplier ( float  manaCostMultiplier,
bool  apply 
)
inline

Definition at line 829 of file Unit.h.

+ Here is the caller graph for this function:

◆ ApplyMovementForce()

void Unit::ApplyMovementForce ( ObjectGuid  id,
Position  origin,
float  magnitude,
MovementForceType  type,
Position  direction = {},
ObjectGuid  transportGuid = ObjectGuid::Empty 
)

Definition at line 14049 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,
int32 damage 
)
static

Definition at line 12395 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,
SpellImmunity  op,
uint32  type,
bool  apply 
)

Definition at line 8242 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 9611 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 1981 of file Unit.h.

+ Here is the caller graph for this function:

◆ AtEndOfEncounter()

void Unit::AtEndOfEncounter ( EncounterType  type)

Definition at line 568 of file Unit.cpp.

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

◆ AtEngage()

virtual void Unit::AtEngage ( Unit )
inlineprotectedvirtual

Reimplemented in Creature.

Definition at line 1980 of file Unit.h.

+ Here is the caller graph for this function:

◆ AtEnterCombat()

void Unit::AtEnterCombat ( )
protectedvirtual

Reimplemented in Player.

Definition at line 9216 of file Unit.cpp.

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

◆ AtExitCombat()

void Unit::AtExitCombat ( )
protectedvirtual

Reimplemented in Player.

Definition at line 9240 of file Unit.cpp.

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

◆ AtStartOfEncounter()

void Unit::AtStartOfEncounter ( EncounterType  type)

Definition at line 543 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 5853 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 2260 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 5965 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 9256 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 6135 of file Unit.cpp.

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

◆ CalcAbsorbResist()

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

Definition at line 1876 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 1684 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 2107 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 1775 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,
bool  npcCaster 
) const

Definition at line 12417 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 1833 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 
) const

Definition at line 2499 of file Unit.cpp.

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

◆ CalculateDisplayPowerType()

Powers Unit::CalculateDisplayPowerType ( ) const

Definition at line 5762 of file Unit.cpp.

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

◆ CalculateHoverHeight()

void Unit::CalculateHoverHeight ( )

Definition at line 14192 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 1327 of file Unit.cpp.

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

◆ CalculateMinMaxDamage()

virtual void Unit::CalculateMinMaxDamage ( WeaponAttackType  attType,
bool  normalized,
bool  addTotalPct,
float &  minDamage,
float &  maxDamage 
) 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 1193 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 12390 of file Unit.cpp.

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

◆ CanCastSpellWhileMoving()

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

Definition at line 3282 of file Unit.cpp.

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

◆ CancelMountAura()

void Unit::CancelMountAura ( bool  force = false)

Definition at line 8350 of file Unit.cpp.

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

◆ CancelShapeshiftForm()

void Unit::CancelShapeshiftForm ( bool  onlyTravelShapeshiftForm = false,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT,
bool  force = false 
)

Definition at line 9500 of file Unit.cpp.

+ Here is the call graph for this function:

◆ CancelSpellMissiles()

void Unit::CancelSpellMissiles ( uint32  spellId,
bool  reverseMissile = false,
bool  abortSpell = false 
)

Definition at line 12360 of file Unit.cpp.

+ Here is the call graph for this function:

◆ CancelTravelShapeshiftForm()

void Unit::CancelTravelShapeshiftForm ( AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT,
bool  force = false 
)
inline

Definition at line 1507 of file Unit.h.

+ Here is the caller graph for this function:

◆ CanDualWield()

bool Unit::CanDualWield ( ) const
inline

Definition at line 703 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 9950 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 1030 of file Unit.h.

+ Here is the caller graph for this function:

◆ CanInstantCast()

bool Unit::CanInstantCast ( ) const
inline

Definition at line 1835 of file Unit.h.

+ Here is the caller graph for this function:

◆ CanModifyStats()

bool Unit::CanModifyStats ( ) const
inline

Definition at line 1548 of file Unit.h.

+ Here is the caller graph for this function:

◆ CannotTurn()

bool Unit::CannotTurn ( ) const
inline

Definition at line 1055 of file Unit.h.

+ Here is the caller graph for this function:

◆ CanProc()

bool Unit::CanProc ( ) const
inline

Definition at line 1772 of file Unit.h.

+ Here is the caller graph for this function:

◆ CanSwim()

bool Unit::CanSwim ( ) const
virtual

Reimplemented in Creature.

Definition at line 12944 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 2607 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 1186 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 12803 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 1536 of file Unit.h.

+ Here is the caller graph for this function:

◆ CleanupBeforeRemoveFromMap()

void Unit::CleanupBeforeRemoveFromMap ( bool  finalCleanup)

Definition at line 10299 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 10328 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 10858 of file Unit.cpp.

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

◆ ClearBossEmotes()

void Unit::ClearBossEmotes ( Optional< uint32 zoneId = {},
Player const *  target = nullptr 
) const

Clears boss emotes frame.

Parameters
zoneIdOnly clears emotes for players in that zone id
targetOnly clears emotes for that player

Definition at line 14432 of file Unit.cpp.

+ Here is the call graph for this function:

◆ ClearChannelObjects()

void Unit::ClearChannelObjects ( )

Definition at line 3076 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 9445 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ ClearInCombat()

void Unit::ClearInCombat ( )
inline

Definition at line 1061 of file Unit.h.

+ Here is the caller graph for this function:

◆ ClearUnitState()

void Unit::ClearUnitState ( uint32  f)
inline

Definition at line 744 of file Unit.h.

+ Here is the caller graph for this function:

◆ ClearValuesChangesMask()

void Unit::ClearValuesChangesMask ( )
overrideprotectedvirtual

Reimplemented from Object.

Definition at line 14244 of file Unit.cpp.

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

◆ ClearWorldEffects()

void Unit::ClearWorldEffects ( )

Definition at line 14571 of file Unit.cpp.

+ Here is the call graph for this function:

◆ CombatStop()

void Unit::CombatStop ( bool  includingCast = false,
bool  mutualPvP = true,
bool(*)(Unit const *otherUnit)  unitFilter = nullptr 
)

Definition at line 6012 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 6040 of file Unit.cpp.

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

◆ CopyAuraEffectList()

AuraEffectVector Unit::CopyAuraEffectList ( Unit::AuraEffectList const &  list)
static

Definition at line 813 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ CountPctFromCurHealth()

uint64 Unit::CountPctFromCurHealth ( float  pct) const
inline

Definition at line 798 of file Unit.h.

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

◆ CountPctFromMaxHealth()

uint64 Unit::CountPctFromMaxHealth ( float  pct) const
inline

Definition at line 797 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 821 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 11072 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 11096 of file Unit.cpp.

+ Here is the call graph for this function:

◆ CreateVehicleKit()

bool Unit::CreateVehicleKit ( uint32  id,
uint32  creatureEntry,
bool  loading = false 
)

Definition at line 12074 of file Unit.cpp.

+ Here is the call graph for this function:
+ 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 820 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 *  attacker,
Unit const *  victim,
uint32 damage,
uint32 absorb 
)
static

Definition at line 799 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 6524 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 
)

Definition at line 1529 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 1303 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 4573 of file Unit.cpp.

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

◆ DeleteCharmInfo()

void Unit::DeleteCharmInfo ( )

Definition at line 10387 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ DeMorph()

void Unit::DeMorph ( )

Definition at line 3382 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 const *  target) const
overrideprotectedvirtual

Reimplemented from BaseEntity.

Definition at line 14229 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 659 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 8317 of file Unit.cpp.

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

◆ DoMeleeAttackIfReady()

void Unit::DoMeleeAttackIfReady ( )

Definition at line 2174 of file Unit.cpp.

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

◆ EnergizeBySpell()

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

Definition at line 6798 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 8494 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 728 of file Unit.h.

+ Here is the caller graph for this function:

◆ EnterAreaTrigger()

void Unit::EnterAreaTrigger ( AreaTrigger areaTrigger)

Definition at line 5523 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ EnterVehicle()

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

Definition at line 12749 of file Unit.cpp.

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

◆ ExitAllAreaTriggers()

void Unit::ExitAllAreaTriggers ( )

Definition at line 5533 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ ExitAreaTrigger()

void Unit::ExitAreaTrigger ( AreaTrigger areaTrigger)

Definition at line 5528 of file Unit.cpp.

+ 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 12835 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 3246 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ FinishSpell()

void Unit::FinishSpell ( CurrentSpellTypes  spellType,
SpellCastResult  result = SPELL_CAST_OK 
)

Definition at line 3189 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)

Definition at line 9145 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ FollowerRemoved()

void Unit::FollowerRemoved ( AbstractFollower f)

Definition at line 9150 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetAdvFlyingSpeed()

float Unit::GetAdvFlyingSpeed ( AdvFlyingRateTypeSingle  speedType) const
inline

Definition at line 1713 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetAdvFlyingSpeedMax()

float Unit::GetAdvFlyingSpeedMax ( AdvFlyingRateTypeRange  speedType) const
inline

Definition at line 1715 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetAdvFlyingSpeedMin()

float Unit::GetAdvFlyingSpeedMin ( AdvFlyingRateTypeRange  speedType) const
inline

Definition at line 1714 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetAI()

UnitAI * Unit::GetAI ( ) const
inline

Definition at line 668 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetAIAnimKitId()

uint16 Unit::GetAIAnimKitId ( ) const
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 926 of file Unit.h.

◆ GetAllMinionsByEntry()

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

Definition at line 6420 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 909 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetAPMultiplier()

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

Definition at line 11034 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 1295 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetAppliedAuras() [2/2]

AuraApplicationMap const & Unit::GetAppliedAuras ( ) const
inline

Definition at line 1296 of file Unit.h.

◆ GetAreaTrigger()

AreaTrigger * Unit::GetAreaTrigger ( uint32  spellId) const

Definition at line 5469 of file Unit.cpp.

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

◆ GetAreaTriggers()

std::vector< AreaTrigger * > Unit::GetAreaTriggers ( uint32  spellId) const

Definition at line 5475 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetArmor()

uint32 Unit::GetArmor ( ) const
inline

Definition at line 774 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetArmorMultiplierForTarget()

virtual float Unit::GetArmorMultiplierForTarget ( WorldObject const *  ) const
inlinevirtual

Reimplemented in Creature.

Definition at line 809 of file Unit.h.

+ Here is the caller graph for this function:

◆ getAttackerForHelper()

Unit * Unit::getAttackerForHelper ( ) const

Definition at line 5830 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 724 of file Unit.h.

+ Here is the caller graph for this function:

◆ getAttackTimer()

uint32 Unit::getAttackTimer ( WeaponAttackType  type) const
inline

Definition at line 700 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetAura() [1/3]

Aura * Unit::GetAura ( std::function< bool(Aura const *)> const &  predicate) const

Definition at line 4712 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetAura() [2/3]

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

Definition at line 4700 of file Unit.cpp.

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

◆ GetAura() [3/3]

Aura * Unit::GetAura ( uint32  spellId,
std::function< bool(Aura const *)> const &  predicate 
) const

Definition at line 4706 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetAuraApplication() [1/5]

AuraApplication * Unit::GetAuraApplication ( std::function< bool(Aura const *)> const &  predicate) const

Definition at line 4691 of file Unit.cpp.

◆ GetAuraApplication() [2/5]

AuraApplication * Unit::GetAuraApplication ( std::function< bool(AuraApplication const *)> const &  predicate) const

Definition at line 4682 of file Unit.cpp.

◆ GetAuraApplication() [3/5]

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

Definition at line 4646 of file Unit.cpp.

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

◆ GetAuraApplication() [4/5]

AuraApplication * Unit::GetAuraApplication ( uint32  spellId,
std::function< bool(Aura const *)> const &  predicate 
) const

Definition at line 4673 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetAuraApplication() [5/5]

AuraApplication * Unit::GetAuraApplication ( uint32  spellId,
std::function< bool(AuraApplication const *)> const &  predicate 
) const

Definition at line 4664 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetAuraApplicationOfRankedSpell()

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

Definition at line 4718 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 4788 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetAuraEffect() [1/2]

AuraEffect * Unit::GetAuraEffect ( AuraType  type,
SpellFamilyNames  family,
flag128 const &  familyFlag,
ObjectGuid  casterGUID = ObjectGuid::Empty 
) const

Definition at line 4630 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetAuraEffect() [2/2]

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

Definition at line 4604 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 4618 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetAuraEffectsByType() [1/2]

AuraEffectList & Unit::GetAuraEffectsByType ( AuraType  type)
inline

Definition at line 1343 of file Unit.h.

◆ GetAuraEffectsByType() [2/2]

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

Definition at line 1342 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,
uint32  reqEffMask = 0 
) const

Definition at line 4730 of file Unit.cpp.

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

◆ GetBaseAttackTime()

uint32 Unit::GetBaseAttackTime ( WeaponAttackType  att) const

Definition at line 10934 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetBattlePetCompanionExperience()

uint32 Unit::GetBattlePetCompanionExperience ( ) const
inline

Definition at line 1268 of file Unit.h.

◆ GetBattlePetCompanionGUID()

ObjectGuid Unit::GetBattlePetCompanionGUID ( ) const
inline

Definition at line 1201 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetBattlePetCompanionNameTimestamp()

uint32 Unit::GetBattlePetCompanionNameTimestamp ( ) const
inline

Definition at line 1266 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetBlockPercent()

virtual float Unit::GetBlockPercent ( uint8  ) const
inlinevirtual

Reimplemented in Player.

Definition at line 988 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetBonusResistanceMod()

int32 Unit::GetBonusResistanceMod ( SpellSchools  school) const
inline

Definition at line 782 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetBoundingRadius()

float Unit::GetBoundingRadius ( ) const
inline

Definition at line 707 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCastSpellInfo() [1/2]

GetCastSpellInfoResult Unit::GetCastSpellInfo ( SpellInfo const *  spellInfo) const
inline

Definition at line 1480 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCastSpellInfo() [2/2]

SpellInfo const * Unit::GetCastSpellInfo ( SpellInfo const *  spellInfo,
TriggerCastFlags triggerFlag,
GetCastSpellInfoContext context 
) const
virtual

Reimplemented in Player.

Definition at line 14465 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetCastSpellXSpellVisualId()

uint32 Unit::GetCastSpellXSpellVisualId ( SpellInfo const *  spellInfo) const
overridevirtual

Reimplemented from WorldObject.

Definition at line 14509 of file Unit.cpp.

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

◆ GetChannelScriptVisualId()

uint32 Unit::GetChannelScriptVisualId ( ) const
inline

Definition at line 1432 of file Unit.h.

◆ GetChannelSpellId()

uint32 Unit::GetChannelSpellId ( ) const
inline

Definition at line 1423 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetChannelSpellXSpellVisualId()

uint32 Unit::GetChannelSpellXSpellVisualId ( ) const
inline

Definition at line 1431 of file Unit.h.

◆ GetCharmed()

Unit * Unit::GetCharmed ( ) const
inline

Definition at line 1212 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCharmedGUID()

ObjectGuid Unit::GetCharmedGUID ( ) const
inline

Definition at line 1211 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCharmer()

Unit * Unit::GetCharmer ( ) const
inline

Definition at line 1209 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCharmerGUID()

ObjectGuid Unit::GetCharmerGUID ( ) const
inline

Definition at line 1208 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCharmerOrOwner()

Unit * Unit::GetCharmerOrOwner ( ) const
inline

Definition at line 1221 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCharmerOrOwnerGUID()

ObjectGuid Unit::GetCharmerOrOwnerGUID ( ) const
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 1216 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCharmInfo()

CharmInfo * Unit::GetCharmInfo ( )
inline

Definition at line 1242 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetClass()

uint8 Unit::GetClass ( ) const
inline

Definition at line 764 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetClassMask()

uint32 Unit::GetClassMask ( ) const
inline

Definition at line 766 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 14533 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 1038 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCombatManager() [2/2]

CombatManager const & Unit::GetCombatManager ( ) const
inline

Definition at line 1039 of file Unit.h.

◆ GetCombatRatingDamageReduction()

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

Definition at line 12533 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetCombatRatingReduction()

float Unit::GetCombatRatingReduction ( CombatRating  cr) const
private

Definition at line 12521 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 705 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetContentTuning()

int32 Unit::GetContentTuning ( ) const
inline

Definition at line 756 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetControllingPlayer()

Player * Unit::GetControllingPlayer ( ) const

Definition at line 6202 of file Unit.cpp.

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

◆ GetCosmeticMountDisplayId()

uint32 Unit::GetCosmeticMountDisplayId ( ) const
inline

Definition at line 915 of file Unit.h.

◆ GetCreateHealth()

uint32 Unit::GetCreateHealth ( ) const
inline

Definition at line 1415 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCreateMana()

uint32 Unit::GetCreateMana ( ) const
inline

Definition at line 1417 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCreatePowerValue()

int32 Unit::GetCreatePowerValue ( Powers  power) const
virtual

Reimplemented in Creature.

Definition at line 89 of file StatSystem.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 1421 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCreatorGUID()

ObjectGuid Unit::GetCreatorGUID ( ) const
inlineoverridevirtual

Implements WorldObject.

Definition at line 1193 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCreatureType()

uint32 Unit::GetCreatureType ( ) const

Definition at line 9451 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 9469 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 1199 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 1466 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 1467 of file Unit.h.

◆ GetCurrentSpellCastTime()

int32 Unit::GetCurrentSpellCastTime ( uint32  spell_id) const

Definition at line 3254 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 7825 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetDamageMultiplierForTarget()

virtual float Unit::GetDamageMultiplierForTarget ( WorldObject const *  ) const
inlinevirtual

Reimplemented in Creature.

Definition at line 808 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetDamageReduction()

uint32 Unit::GetDamageReduction ( uint32  damage) const
inline

Definition at line 968 of file Unit.h.

+ Here is the caller graph for this function:

◆ getDeathState()

DeathState Unit::getDeathState ( ) const
inline

Definition at line 1188 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 14591 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 10675 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetDemonCreator()

Unit * Unit::GetDemonCreator ( ) const

Definition at line 6192 of file Unit.cpp.

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

◆ GetDemonCreatorGUID()

ObjectGuid Unit::GetDemonCreatorGUID ( ) const
inline

Definition at line 1203 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetDemonCreatorPlayer()

Player * Unit::GetDemonCreatorPlayer ( ) const

Definition at line 6197 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 9323 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 12151 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 4928 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetDispellableAuraList()

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

Definition at line 4736 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 1610 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetDisplayScale()

float Unit::GetDisplayScale ( ) const
inline

Definition at line 1611 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetDoTsByCaster()

uint32 Unit::GetDoTsByCaster ( ObjectGuid  casterGUID) const

Definition at line 4960 of file Unit.cpp.

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

◆ GetDynObject()

DynamicObject * Unit::GetDynObject ( uint32  spellId) const

Definition at line 5304 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 5310 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetEffectiveLevel()

uint8 Unit::GetEffectiveLevel ( ) const
inline

Definition at line 758 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetEmoteState()

Emote Unit::GetEmoteState ( ) const
inline

Definition at line 864 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetExtraUnitMovementFlags()

uint32 Unit::GetExtraUnitMovementFlags ( ) const
inline

Definition at line 1741 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetExtraUnitMovementFlags2()

uint32 Unit::GetExtraUnitMovementFlags2 ( ) const
inline

Definition at line 1747 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetFaction()

uint32 Unit::GetFaction ( ) const
inlineoverridevirtual

Implements WorldObject.

Definition at line 871 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetFirstControlled()

Unit * Unit::GetFirstControlled ( ) const

Definition at line 6599 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 6215 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetFlatModifierValue()

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

Definition at line 9653 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetFlightCapabilityID()

int32 Unit::GetFlightCapabilityID ( ) const
inline

Definition at line 1711 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetFollowAngle()

virtual float Unit::GetFollowAngle ( ) const
inlinevirtual

Reimplemented in Minion.

Definition at line 1816 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetGameObject()

GameObject * Unit::GetGameObject ( uint32  spellId) const

Definition at line 5341 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 5347 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetGender()

Gender Unit::GetGender ( ) const
inline

Definition at line 767 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetGuardianPet()

Guardian * Unit::GetGuardianPet ( ) const

Definition at line 6231 of file Unit.cpp.

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

◆ GetHealth()

uint64 Unit::GetHealth ( ) const
inline

Definition at line 788 of file Unit.h.

◆ GetHealthGain()

int64 Unit::GetHealthGain ( int64  dVal)

Definition at line 8641 of file Unit.cpp.

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

◆ GetHealthMultiplierForTarget()

virtual float Unit::GetHealthMultiplierForTarget ( WorldObject const *  ) const
inlinevirtual

Reimplemented in Creature.

Definition at line 807 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetHealthPct()

float Unit::GetHealthPct ( ) const
inline

Definition at line 796 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetHighestExclusiveSameEffectSpellGroupValue()

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

Definition at line 14250 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 1812 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetInsideAreaTriggers()

std::vector< AreaTrigger * > const & Unit::GetInsideAreaTriggers ( ) const
inline

Definition at line 1653 of file Unit.h.

◆ GetLastDamagedTargetGuid()

ObjectGuid Unit::GetLastDamagedTargetGuid ( ) const
inline

Definition at line 962 of file Unit.h.

◆ GetLastExtraAttackSpell()

uint32 Unit::GetLastExtraAttackSpell ( ) const
inline

Definition at line 959 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetLevel()

uint8 Unit::GetLevel ( ) const
inline

Definition at line 757 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetLevelForTarget()

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

Reimplemented from WorldObject.

Definition at line 759 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetMaxHealth()

uint64 Unit::GetMaxHealth ( ) const
inline

Definition at line 789 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetMaxNegativeAuraModifier() [1/2]

float Unit::GetMaxNegativeAuraModifier ( AuraType  auraType) const

Definition at line 5084 of file Unit.cpp.

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

◆ GetMaxNegativeAuraModifier() [2/2]

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

Definition at line 5053 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetMaxNegativeAuraModifierByAffectMask()

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

Definition at line 5199 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetMaxNegativeAuraModifierByMiscMask()

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

Definition at line 5119 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetMaxNegativeAuraModifierByMiscValue()

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

Definition at line 5159 of file Unit.cpp.

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

◆ GetMaxPositiveAuraModifier() [1/2]

float Unit::GetMaxPositiveAuraModifier ( AuraType  auraType) const

Definition at line 5079 of file Unit.cpp.

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

◆ GetMaxPositiveAuraModifier() [2/2]

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

Definition at line 5037 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetMaxPositiveAuraModifierByAffectMask()

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

Definition at line 5189 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetMaxPositiveAuraModifierByMiscMask()

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

Definition at line 5109 of file Unit.cpp.

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

◆ GetMaxPositiveAuraModifierByMiscValue()

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

Definition at line 5149 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetMaxPower()

int32 Unit::GetMaxPower ( Powers  power) const

Definition at line 10037 of file Unit.cpp.

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

◆ GetMaxSkillValueForLevel()

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

Definition at line 932 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetMechanicImmunityMask()

uint64 Unit::GetMechanicImmunityMask ( ) const

Definition at line 7835 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetMechanicResistChance()

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

Definition at line 2584 of file Unit.cpp.

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

◆ GetMeleeAnimKitId()

uint16 Unit::GetMeleeAnimKitId ( ) const
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 930 of file Unit.h.

◆ GetMeleeDamageSchoolMask()

virtual SpellSchoolMask Unit::GetMeleeDamageSchoolMask ( WeaponAttackType  attackType = BASE_ATTACK) 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 6582 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 701 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 1195 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetMinPower()

int32 Unit::GetMinPower ( Powers  power) const
inline

Definition at line 818 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetModelForForm()

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

Definition at line 12539 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 1723 of file Unit.h.

◆ GetMotionMaster() [2/2]

MotionMaster const * Unit::GetMotionMaster ( ) const
inline

Definition at line 1724 of file Unit.h.

◆ GetMountCapability()

MountCapabilityEntry const * Unit::GetMountCapability ( uint32  mountType) 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:

◆ GetMountDisplayId()

uint32 Unit::GetMountDisplayId ( ) const
inline

Definition at line 913 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetMovementAnimKitId()

uint16 Unit::GetMovementAnimKitId ( ) const
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 928 of file Unit.h.

◆ GetMovementForces()

MovementForces const * Unit::GetMovementForces ( ) const
inline

Definition at line 1174 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetNativeDisplayId()

uint32 Unit::GetNativeDisplayId ( ) const
inline

Definition at line 1613 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetNativeDisplayScale()

float Unit::GetNativeDisplayScale ( ) const
inline

Definition at line 1614 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 769 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 1608 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetNegStat()

float Unit::GetNegStat ( Stats  stat) const
inline

Definition at line 1420 of file Unit.h.

◆ GetNextRandomRaidMemberOrPet()

Unit * Unit::GetNextRandomRaidMemberOrPet ( float  radius)

Definition at line 6658 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetNpcFlags()

NPCFlags Unit::GetNpcFlags ( ) const
inline

Definition at line 995 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetNpcFlags2()

NPCFlags2 Unit::GetNpcFlags2 ( ) const
inline

Definition at line 1001 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,
uint32  reqEffMask = 0,
Aura except = nullptr 
) const

Definition at line 3812 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetOwnedAuras() [1/2]

AuraMap & Unit::GetOwnedAuras ( )
inline

Definition at line 1285 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetOwnedAuras() [2/2]

AuraMap const & Unit::GetOwnedAuras ( ) const
inline

Definition at line 1286 of file Unit.h.

◆ GetOwnerGUID()

ObjectGuid Unit::GetOwnerGUID ( ) const
inlineoverridevirtual

Implements WorldObject.

Definition at line 1191 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetPartyMembers()

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

Definition at line 12196 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetPctModifierValue()

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

Definition at line 9664 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetPetFlags()

UnitPetFlag Unit::GetPetFlags ( ) const
inline

Definition at line 890 of file Unit.h.

◆ GetPetGUID()

ObjectGuid Unit::GetPetGUID ( ) const
inline

Definition at line 1197 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetPlayerMovingMe()

Player * Unit::GetPlayerMovingMe ( ) const
inline

Definition at line 1253 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetPosStat()

float Unit::GetPosStat ( Stats  stat) const
inline

Definition at line 1419 of file Unit.h.

◆ GetPower()

int32 Unit::GetPower ( Powers  power) const

Definition at line 10028 of file Unit.cpp.

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

◆ GetPowerIndex()

virtual uint32 Unit::GetPowerIndex ( Powers  power) const
pure virtual

Implemented in Creature, and Player.

+ Here is the caller graph for this function:

◆ GetPowerPct()

float Unit::GetPowerPct ( Powers  power) const
inline

Definition at line 820 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetPowerType()

Powers Unit::GetPowerType ( ) const
inline

Definition at line 811 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetPPMProcChance()

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

Definition at line 8270 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 10523 of file Unit.cpp.

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

◆ GetProcChainLength()

int32 Unit::GetProcChainLength ( ) const
inline

Definition at line 1774 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetPvpFlags()

UnitPVPStateFlags Unit::GetPvpFlags ( ) const
inline

Definition at line 879 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetRace()

uint8 Unit::GetRace ( ) const
inline

Definition at line 761 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetRaceMask()

uint64 Unit::GetRaceMask ( ) const
inline

Definition at line 763 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetResistance() [1/2]

int32 Unit::GetResistance ( SpellSchoolMask  mask) const

Definition at line 13199 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 781 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetScheduledChangeAI()

UnitAI * Unit::GetScheduledChangeAI ( )
protected

Definition at line 10217 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 7815 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetShapeshiftForm()

ShapeshiftForm Unit::GetShapeshiftForm ( ) const
inline

Definition at line 1504 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetSharedVisionList()

SharedVisionList const & Unit::GetSharedVisionList ( )
inline

Definition at line 1255 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetSheath()

SheathState Unit::GetSheath ( ) const
inline

Definition at line 867 of file Unit.h.

◆ GetSingleCastAuras() [1/2]

AuraList & Unit::GetSingleCastAuras ( )
inline

Definition at line 1344 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetSingleCastAuras() [2/2]

AuraList const & Unit::GetSingleCastAuras ( ) const
inline

Definition at line 1345 of file Unit.h.

◆ GetSpeed()

float Unit::GetSpeed ( UnitMoveType  mtype) const

Definition at line 8932 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 1707 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetSpellEmpowerStage()

int8 Unit::GetSpellEmpowerStage ( ) const
inline

Definition at line 1450 of file Unit.h.

◆ GetSpellHistory() [1/2]

SpellHistory * Unit::GetSpellHistory ( )
inline

Definition at line 1498 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetSpellHistory() [2/2]

SpellHistory const * Unit::GetSpellHistory ( ) const
inline

Definition at line 1499 of file Unit.h.

◆ GetSpellOtherImmunityMask()

EnumFlag< SpellOtherImmunity > Unit::GetSpellOtherImmunityMask ( ) const

Definition at line 7845 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetSpellSchoolByAuraGroup()

SpellSchools Unit::GetSpellSchoolByAuraGroup ( UnitMods  unitMod) const

Definition at line 9853 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetStandState()

UnitStandStateType Unit::GetStandState ( ) const
inline

Definition at line 900 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetStat()

float Unit::GetStat ( Stats  stat) const
inline

Definition at line 772 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetStatByAuraGroup()

Stats Unit::GetStatByAuraGroup ( UnitMods  unitMod) const

Definition at line 9873 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetTarget()

ObjectGuid Unit::GetTarget ( ) const
inline

Definition at line 1831 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetThreatManager() [1/2]

ThreatManager & Unit::GetThreatManager ( )
inline

Definition at line 1078 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetThreatManager() [2/2]

ThreatManager const & Unit::GetThreatManager ( ) const
inline

Definition at line 1079 of file Unit.h.

◆ GetTopAI()

UnitAI * Unit::GetTopAI ( ) const
inlineprotected

Definition at line 674 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetTotalAttackPowerValue()

float Unit::GetTotalAttackPowerValue ( WeaponAttackType  attType,
bool  includeWeapon = true 
) const

Definition at line 9912 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetTotalAuraModifier() [1/2]

float Unit::GetTotalAuraModifier ( AuraType  auraType) const

Definition at line 5069 of file Unit.cpp.

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

◆ GetTotalAuraModifier() [2/2]

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

Definition at line 4983 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetTotalAuraModifierByAffectMask()

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

Definition at line 5169 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetTotalAuraModifierByMiscMask()

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

Definition at line 5089 of file Unit.cpp.

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

◆ GetTotalAuraModifierByMiscValue()

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

Definition at line 5129 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 9837 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 5074 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 5010 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 5179 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 5099 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 5139 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 9821 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 1617 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetTransGUID()

ObjectGuid Unit::GetTransGUID ( ) const
overridevirtual

Reimplemented from WorldObject.

Definition at line 12141 of file Unit.cpp.

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

◆ GetUnitBeingMoved()

Unit * Unit::GetUnitBeingMoved ( ) const
inline

Definition at line 1251 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetUnitBlockChance()

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

Definition at line 2845 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 2942 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 2876 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 2911 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 2762 of file Unit.cpp.

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

◆ GetUnitMissChance()

float Unit::GetUnitMissChance ( ) const

Definition at line 2838 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetUnitMovementFlags()

uint32 Unit::GetUnitMovementFlags ( ) const
inline

Definition at line 1735 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 2798 of file Unit.cpp.

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

◆ GetUpdateFieldFlagsFor()

UF::UpdateFieldFlag Unit::GetUpdateFieldFlagsFor ( Player const *  target) const
overrideprotectedvirtual

Reimplemented from BaseEntity.

Definition at line 14216 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 1784 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetVehicleBase()

Unit * Unit::GetVehicleBase ( ) const

Definition at line 12111 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 12132 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 1782 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 1783 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetVehicleRoot()

Unit * Unit::GetVehicleRoot ( ) const

Definition at line 12116 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetVictim()

Unit * Unit::GetVictim ( ) const
inline

Definition at line 726 of file Unit.h.

◆ GetVignette()

Vignettes::VignetteData const * Unit::GetVignette ( ) const
inline

Definition at line 1876 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetVirtualItemAppearanceMod()

uint16 Unit::GetVirtualItemAppearanceMod ( uint32  slot) const

Definition at line 14366 of file Unit.cpp.

◆ GetVirtualItemId()

uint32 Unit::GetVirtualItemId ( uint32  slot) const

Definition at line 14358 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetVisibleAuras()

VisibleAuraContainer const & Unit::GetVisibleAuras ( ) const
inline

Definition at line 1592 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetWeaponDamageRange()

float Unit::GetWeaponDamageRange ( WeaponAttackType  attType,
WeaponDamageRange  type 
) const

Definition at line 9942 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 8259 of file Unit.cpp.

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

◆ GetWildBattlePetLevel()

uint32 Unit::GetWildBattlePetLevel ( ) const
inline

Definition at line 1270 of file Unit.h.

◆ HandleEmoteCommand()

void Unit::HandleEmoteCommand ( Emote  emoteId,
Player target = nullptr,
Trinity::IteratorPair< int32 const * >  spellVisualKitIds = {},
int32  sequenceVariation = 0 
)

Definition at line 1657 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 2363 of file Unit.cpp.

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

◆ HandleSpellClick() [1/2]

bool Unit::HandleSpellClick ( Unit clicker,
int8  seatId,
uint32  spellId,
TriggerCastFlags  flags = TRIGGERED_NONE,
SpellClickInfo const *  spellClickInfo = nullptr 
)

Definition at line 12663 of file Unit.cpp.

+ Here is the call graph for this function:

◆ HandleSpellClick() [2/2]

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

First check simple relations from clicker to clickee

Check database conditions

Definition at line 12636 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 9586 of file Unit.cpp.

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

◆ HasAura() [1/2]

bool Unit::HasAura ( std::function< bool(Aura const *)> const &  predicate) const

Definition at line 4809 of file Unit.cpp.

+ Here is the call graph for this function:

◆ HasAura() [2/2]

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

Definition at line 4804 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 4774 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 6146 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ HasAuraType()

bool Unit::HasAuraType ( AuraType  auraType) const

Definition at line 4814 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 4836 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 4819 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,
flag128  familyFlags 
) const

Definition at line 761 of file Unit.cpp.

+ Here is the call graph for this function:

◆ HasAuraTypeWithMiscvalue()

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

Definition at line 4827 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 4854 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 4845 of file Unit.cpp.

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

◆ HasAuraWithMechanic()

bool Unit::HasAuraWithMechanic ( uint64  mechanicMask) const

Definition at line 4879 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 769 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 const *  excludeCasterChannel = nullptr) const

Definition at line 778 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 1740 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasExtraUnitMovementFlag2()

bool Unit::HasExtraUnitMovementFlag2 ( uint32  f) const
inline

Definition at line 1746 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasInterruptFlag() [1/2]

bool Unit::HasInterruptFlag ( SpellAuraInterruptFlags  flags) const
inline

Definition at line 1599 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasInterruptFlag() [2/2]

bool Unit::HasInterruptFlag ( SpellAuraInterruptFlags2  flags) const
inline

Definition at line 1600 of file Unit.h.

◆ HasInvisibilityAura()

bool Unit::HasInvisibilityAura ( ) const
inline

Definition at line 1089 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasNegativeAuraWithInterruptFlag()

template<typename InterruptFlags >
template TC_GAME_API bool Unit::HasNegativeAuraWithInterruptFlag ( InterruptFlags  flag,
ObjectGuid  guid = ObjectGuid::Empty 
) const

Definition at line 4863 of file Unit.cpp.

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

◆ HasNpcFlag()

bool Unit::HasNpcFlag ( NPCFlags  flags) const
inline

Definition at line 996 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasNpcFlag2()

bool Unit::HasNpcFlag2 ( NPCFlags2  flags) const
inline

Definition at line 1002 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasPetFlag()

bool Unit::HasPetFlag ( UnitPetFlag  flags) const
inline

Definition at line 891 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasPvpFlag()

bool Unit::HasPvpFlag ( UnitPVPStateFlags  flags) const
inline

Definition at line 880 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasRootAura()

bool Unit::HasRootAura ( ) const
inline

Definition at line 1091 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasScheduledAIChange()

bool Unit::HasScheduledAIChange ( ) const
protected

Definition at line 10225 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 1258 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 1084 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 1490 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasStealthAura()

bool Unit::HasStealthAura ( ) const
inline

Definition at line 1088 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasStrongerAuraWithDR()

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

Definition at line 4896 of file Unit.cpp.

+ Here is the call graph for this function:

◆ HasUnitFlag()

bool Unit::HasUnitFlag ( UnitFlags  flags) const
inline

Definition at line 845 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasUnitFlag2()

bool Unit::HasUnitFlag2 ( UnitFlags2  flags) const
inline

Definition at line 850 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasUnitFlag3()

bool Unit::HasUnitFlag3 ( UnitFlags3  flags) const
inline

Definition at line 855 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasUnitMovementFlag()

bool Unit::HasUnitMovementFlag ( uint32  f) const
inline

Definition at line 1734 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasUnitState()

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

Definition at line 743 of file Unit.h.

◆ HasUnitTypeMask()

uint32 Unit::HasUnitTypeMask ( uint32  mask) const
inline

Definition at line 747 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasVisibleAura()

bool Unit::HasVisibleAura ( AuraApplication aurApp) const
inline

Definition at line 1593 of file Unit.h.

+ Here is the caller graph for this function:

◆ haveOffhandWeapon()

bool Unit::haveOffhandWeapon ( ) const

Definition at line 525 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 6776 of file Unit.cpp.

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

◆ HealthAbovePct()

bool Unit::HealthAbovePct ( float  pct) const
inline

Definition at line 794 of file Unit.h.

+ Here is the caller graph for this function:

◆ HealthAbovePctHealed()

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

Definition at line 795 of file Unit.h.

+ Here is the caller graph for this function:

◆ HealthBelowPct()

bool Unit::HealthBelowPct ( float  pct) const
inline

Definition at line 792 of file Unit.h.

+ Here is the caller graph for this function:

◆ HealthBelowPctDamaged()

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

Definition at line 793 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)

Definition at line 9336 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 10379 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ InitStatBuffMods()

void Unit::InitStatBuffMods ( )

Definition at line 5209 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 11116 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 649 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 3231 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 
)

Definition at line 3159 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 686 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsAIEnabled()

bool Unit::IsAIEnabled ( ) const
inline

Definition at line 666 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsAlive()

bool Unit::IsAlive ( ) const
inline

Definition at line 1185 of file Unit.h.

◆ IsAlwaysDetectableFor()

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

Reimplemented from WorldObject.

Definition at line 8752 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 8732 of file Unit.cpp.

+ Here is the call graph for this function:

◆ IsAreaSpiritHealer()

bool Unit::IsAreaSpiritHealer ( ) const
inline

Definition at line 1017 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsAreaSpiritHealerIndividual()

bool Unit::IsAreaSpiritHealerIndividual ( ) const
inline

Definition at line 1024 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsArmorer()

bool Unit::IsArmorer ( ) const
inline

Definition at line 1020 of file Unit.h.

◆ isAttackingPlayer()

bool Unit::isAttackingPlayer ( ) const

Definition at line 6048 of file Unit.cpp.

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

◆ isAttackReady()

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

Definition at line 701 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsAuctioner()

bool Unit::IsAuctioner ( ) const
inline

Definition at line 1019 of file Unit.h.

◆ IsBanker()

bool Unit::IsBanker ( ) const
inline

Definition at line 1014 of file Unit.h.

◆ IsBattleMaster()

bool Unit::IsBattleMaster ( ) const
inline

Definition at line 1013 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsBlockCritical()

bool Unit::IsBlockCritical ( ) const

Definition at line 2577 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 1236 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsCharmedOwnedByPlayerOrPlayer()

bool Unit::IsCharmedOwnedByPlayerOrPlayer ( ) const
inline

Definition at line 1217 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsCombatDisallowed()

bool Unit::IsCombatDisallowed ( ) const
inline

Definition at line 1868 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsContestedGuard()

bool Unit::IsContestedGuard ( ) const

Definition at line 12233 of file Unit.cpp.

+ Here is the call graph for this function:

◆ IsControlledByPlayer()

bool Unit::IsControlledByPlayer ( ) const
inline

Definition at line 1214 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsCritter()

bool Unit::IsCritter ( ) const
inline

Definition at line 1025 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 1675 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 1187 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsDisallowedMountForm()

bool Unit::IsDisallowedMountForm ( uint32  spellId,
ShapeshiftForm  form,
uint32  displayId 
) const

Definition at line 9543 of file Unit.cpp.

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

◆ IsDuringRemoveFromWorld()

bool Unit::IsDuringRemoveFromWorld ( ) const
inline

Definition at line 1820 of file Unit.h.

+ Here is the caller graph for this function:

◆ isDying()

bool Unit::isDying ( ) const
inline

Definition at line 1186 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 1034 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsEngagedBy()

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

Definition at line 1035 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsFalling()

bool Unit::IsFalling ( ) const

Definition at line 12939 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 1090 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsFFAPvP()

bool Unit::IsFFAPvP ( ) const
inline

Definition at line 887 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsFlying()

bool Unit::IsFlying ( ) const
inline

Definition at line 1807 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsFrozen()

bool Unit::IsFrozen ( ) const
inline

Definition at line 1093 of file Unit.h.

◆ IsFullHealth()

bool Unit::IsFullHealth ( ) const
inline

Definition at line 791 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsGossip()

bool Unit::IsGossip ( ) const
inline

Definition at line 1010 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsGravityDisabled()

bool Unit::IsGravityDisabled ( ) const
inline

Definition at line 1149 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsGuardian()

bool Unit::IsGuardian ( ) const
inline

Definition at line 750 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsGuildMaster()

bool Unit::IsGuildMaster ( ) const
inline

Definition at line 1012 of file Unit.h.

◆ IsHighestExclusiveAura()

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

Definition at line 14274 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,
SpellEffectValue  effectAmount,
uint32  auraEffectMask,
bool  removeOtherAuraApplications = false 
)

Definition at line 14283 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 1151 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsHunterPet()

bool Unit::IsHunterPet ( ) const
inline

Definition at line 752 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsImmunedToAuraPeriodicTick()

bool Unit::IsImmunedToAuraPeriodicTick ( WorldObject const *  caster,
AuraEffect const *  auraEffect 
) const

Definition at line 7986 of file Unit.cpp.

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

◆ IsImmunedToDamage() [1/2]

bool Unit::IsImmunedToDamage ( SpellSchoolMask  meleeSchoolMask) const

Definition at line 7855 of file Unit.cpp.

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

◆ IsImmunedToDamage() [2/2]

bool Unit::IsImmunedToDamage ( WorldObject const *  caster,
SpellInfo const *  spellInfo,
SpellEffectInfo const *  spellEffectInfo = nullptr 
) const

Definition at line 7873 of file Unit.cpp.

+ Here is the call graph for this function:

◆ IsImmunedToSpell()

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

Definition at line 7723 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 7917 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 1042 of file Unit.h.

◆ IsImmuneToNPC()

bool Unit::IsImmuneToNPC ( ) const
inline

Definition at line 1048 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsImmuneToPC()

bool Unit::IsImmuneToPC ( ) const
inline

Definition at line 1045 of file Unit.h.

+ Here is the caller graph for this function:

◆ isInAccessiblePlaceFor()

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

Definition at line 3310 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 3305 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 1058 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsInCombatWith()

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

Definition at line 1059 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 9538 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 9532 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 1027 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 3300 of file Unit.cpp.

+ Here is the call graph for this function:

◆ IsInnkeeper()

bool Unit::IsInnkeeper ( ) const
inline

Definition at line 1015 of file Unit.h.

◆ IsInPartyWith()

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

Definition at line 12158 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 12177 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 885 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsInteractionAllowedInCombat()

bool Unit::IsInteractionAllowedInCombat ( ) const
inline

Definition at line 1067 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsInteractionAllowedWhileHostile()

bool Unit::IsInteractionAllowedWhileHostile ( ) const
inline

Definition at line 1064 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsInWater()

bool Unit::IsInWater ( ) const

Definition at line 3331 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 1819 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsMagnet()

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

Definition at line 6573 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ IsMounted()

bool Unit::IsMounted ( ) const
inline

Definition at line 912 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsMovementPreventedByCasting()

bool Unit::IsMovementPreventedByCasting ( ) const
virtual

Reimplemented in Creature.

Definition at line 3261 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 1804 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 3201 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ IsOnOceanFloor()

bool Unit::IsOnOceanFloor ( ) const

Definition at line 3341 of file Unit.cpp.

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

◆ IsOnVehicle()

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

Definition at line 12106 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 751 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsPlayingHoverAnim()

bool Unit::IsPlayingHoverAnim ( ) const
inline

Definition at line 1144 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsPolymorphed()

bool Unit::IsPolymorphed ( ) const

Definition at line 10758 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 1237 of file Unit.h.

+ Here is the caller graph for this function:

◆ isPossessedByPlayer()

bool Unit::isPossessedByPlayer ( ) const

Definition at line 6640 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 6650 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 6645 of file Unit.cpp.

+ Here is the call graph for this function:

◆ IsPvP()

bool Unit::IsPvP ( ) const
inline

Definition at line 886 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsQuestGiver()

bool Unit::IsQuestGiver ( ) const
inline

Definition at line 1009 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 4916 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 8485 of file Unit.cpp.

+ Here is the call graph for this function:

◆ IsSilenced()

bool Unit::IsSilenced ( SpellSchoolMask  schoolMask) const
inline

Definition at line 1494 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsSitState()

bool Unit::IsSitState ( ) const

Definition at line 10716 of file Unit.cpp.

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

◆ IsSpiritHealer()

bool Unit::IsSpiritHealer ( ) const
inline

Definition at line 1016 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsSpiritService()

bool Unit::IsSpiritService ( ) const
inline

Definition at line 1023 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsSplineEnabled()

bool Unit::IsSplineEnabled ( ) const

Definition at line 14211 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ IsStandState()

bool Unit::IsStandState ( ) const

Definition at line 10725 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 1727 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsSummon()

bool Unit::IsSummon ( ) const
inline

Definition at line 749 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsTabardDesigner()

bool Unit::IsTabardDesigner ( ) const
inline

Definition at line 1018 of file Unit.h.

◆ isTargetableForAttack()

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

Definition at line 8585 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 1011 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsThreatened()

bool Unit::IsThreatened ( ) const

Definition at line 8580 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 1074 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 753 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsTrainer()

bool Unit::IsTrainer ( ) const
inline

Definition at line 1008 of file Unit.h.

◆ isTurning()

bool Unit::isTurning ( ) const
inline

Definition at line 1805 of file Unit.h.

◆ IsUnderWater()

bool Unit::IsUnderWater ( ) const

Definition at line 3336 of file Unit.cpp.

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

◆ IsUninteractible()

bool Unit::IsUninteractible ( ) const
inline

Definition at line 1052 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsVehicle()

bool Unit::IsVehicle ( ) const
inline

Definition at line 754 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsVendor()

bool Unit::IsVendor ( ) const
inline

Definition at line 1007 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsVisible()

bool Unit::IsVisible ( ) const

Definition at line 8763 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 1150 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsWildBattlePet()

bool Unit::IsWildBattlePet ( ) const
inline

Definition at line 1021 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsWithinBoundaryRadius()

bool Unit::IsWithinBoundaryRadius ( const Unit obj) const

Definition at line 707 of file Unit.cpp.

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

◆ IsWithinCombatRange()

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

Definition at line 670 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 710 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 686 of file Unit.cpp.

+ Here is the call graph for this function:

◆ Kill()

void Unit::Kill ( Unit attacker,
Unit victim,
bool  durabilityLoss = true,
bool  skipSettingDeathState = false 
)
static

Definition at line 11225 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,
bool  skipSettingDeathState = false 
)
inline

Definition at line 936 of file Unit.h.

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

◆ KnockbackFrom()

void Unit::KnockbackFrom ( Position const &  origin,
float  speedXY,
float  speedZ,
float  angle = M_PI,
Movement::SpellEffectExtraData const *  spellEffectExtraData = nullptr 
)

Definition at line 12491 of file Unit.cpp.

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

◆ MeleeDamageBonusDone()

int32 Unit::MeleeDamageBonusDone ( Unit pVictim,
int32  damage,
WeaponAttackType  attType,
DamageEffectType  damagetype,
SpellInfo const *  spellProto = nullptr,
SpellEffectInfo const *  spellEffectInfo = nullptr,
Mechanics  mechanic = MECHANIC_NONE,
SpellSchoolMask  damageSchoolMask = SPELL_SCHOOL_MASK_NORMAL,
Spell spell = nullptr,
AuraEffect const *  aurEff = nullptr 
)

Definition at line 8021 of file Unit.cpp.

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

◆ MeleeDamageBonusTaken()

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

Definition at line 8133 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 2623 of file Unit.cpp.

+ Here is the call graph for this function:

◆ MeleeSpellMissChance()

float Unit::MeleeSpellMissChance ( Unit const *  victim,
WeaponAttackType  attType,
SpellInfo const *  spellInfo 
) const
overridevirtual

Reimplemented from WorldObject.

Definition at line 12428 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 6079 of file Unit.cpp.

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

◆ ModifyHealth()

int64 Unit::ModifyHealth ( int64  val)

Definition at line 8599 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 8697 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 533 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 8284 of file Unit.cpp.

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

◆ NearTeleportTo() [1/3]

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

Definition at line 1131 of file Unit.h.

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

◆ NearTeleportTo() [2/3]

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

Definition at line 12971 of file Unit.cpp.

+ Here is the call graph for this function:

◆ NearTeleportTo() [3/3]

void Unit::NearTeleportTo ( TeleportLocation const &  target,
bool  casting = false 
)

Definition at line 12958 of file Unit.cpp.

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

◆ OnPhaseChange()

void Unit::OnPhaseChange ( )
virtual

Reimplemented in Player.

Definition at line 12463 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ OutDebugInfo()

void Unit::OutDebugInfo ( ) const

Definition at line 13150 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 10695 of file Unit.cpp.

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

◆ PlayOneShotAnimKitId()

void Unit::PlayOneShotAnimKitId ( uint16  animKitId)

Definition at line 11160 of file Unit.cpp.

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

◆ PopAI()

bool Unit::PopAI ( )

Definition at line 10176 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 3346 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,
ProcFlagsInit const &  typeMaskActor,
ProcFlagsInit const &  typeMaskActionTarget,
ProcFlagsSpellType  spellTypeMask,
ProcFlagsSpellPhase  spellPhaseMask,
ProcFlagsHit  hitMask,
Spell spell,
DamageInfo damageInfo,
HealInfo healInfo 
)
static

Definition at line 5570 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,
ProcFlagsInit const &  typeMask,
ProcFlagsHit  hitMask,
WeaponAttackType  attType 
)
private

Definition at line 10481 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 10670 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 10165 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ RecalculateObjectScale()

void Unit::RecalculateObjectScale ( )
virtual

Definition at line 10771 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 10187 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ RemoveAllAreaTriggers()

void Unit::RemoveAllAreaTriggers ( AreaTriggerRemoveReason  reason = AreaTriggerRemoveReason::Default)

Definition at line 5512 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ RemoveAllAttackers()

void Unit::RemoveAllAttackers ( )

Definition at line 6066 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ RemoveAllAuras()

void Unit::RemoveAllAuras ( )

Definition at line 4382 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 4517 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 4538 of file Unit.cpp.

+ Here is the call graph for this function:

◆ RemoveAllAurasOnDeath()

void Unit::RemoveAllAurasOnDeath ( )

Definition at line 4473 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 4496 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 6613 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 5335 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ RemoveAllFollowers()

void Unit::RemoveAllFollowers ( )

Definition at line 9155 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 5442 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 4559 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 6430 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 3901 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 3927 of file Unit.cpp.

+ Here is the call graph for this function:

◆ RemoveAreaAurasDueToLeaveWorld()

void Unit::RemoveAreaAurasDueToLeaveWorld ( )

Definition at line 4349 of file Unit.cpp.

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

◆ RemoveAreaTrigger() [1/2]

void Unit::RemoveAreaTrigger ( AuraEffect const *  aurEff)

Definition at line 5500 of file Unit.cpp.

◆ RemoveAreaTrigger() [2/2]

void Unit::RemoveAreaTrigger ( uint32  spellId)

Definition at line 5485 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 4429 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 3893 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 3858 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 3828 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,
uint32  reqEffMask = 0,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3841 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,
uint16  num = 1 
)

Definition at line 3990 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 4334 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 4127 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 3955 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 4113 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,
uint32  reqEffMask = 0,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3974 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 4007 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,
int32  stolenCharges = 1 
)

Definition at line 4035 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 4443 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 4147 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,
flag128 const &  familyFlag,
ObjectGuid  casterGUID 
)

Definition at line 4276 of file Unit.cpp.

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

◆ RemoveAurasWithInterruptFlags()

template<typename InterruptFlags >
template TC_GAME_API void Unit::RemoveAurasWithInterruptFlags ( InterruptFlags  flag,
SpellInfo const *  source = nullptr 
)

Definition at line 4241 of file Unit.cpp.

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

◆ RemoveAurasWithMechanic()

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

Definition at line 4302 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 6731 of file Unit.cpp.

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

◆ RemoveChannelObject()

void Unit::RemoveChannelObject ( ObjectGuid  guid)

Definition at line 3069 of file Unit.cpp.

+ Here is the call graph for this function:

◆ RemoveCharmAuras()

void Unit::RemoveCharmAuras ( )

Definition at line 6736 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 11946 of file Unit.cpp.

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

◆ RemoveDynObject()

void Unit::RemoveDynObject ( uint32  spellId)

Definition at line 5320 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 1739 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemoveExtraUnitMovementFlag2()

void Unit::RemoveExtraUnitMovementFlag2 ( uint32  f)
inline

Definition at line 1745 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemoveFromWorld()

void Unit::RemoveFromWorld ( )
overridevirtual

Reimplemented from Object.

Definition at line 10241 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 5378 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 5418 of file Unit.cpp.

◆ RemoveMovementForce()

void Unit::RemoveMovementForce ( ObjectGuid  id)

Definition at line 14084 of file Unit.cpp.

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

◆ RemoveMovementImpairingAuras()

void Unit::RemoveMovementImpairingAuras ( bool  withRoot)

Definition at line 4294 of file Unit.cpp.

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

◆ RemoveNotOwnSingleTargetAuras()

void Unit::RemoveNotOwnSingleTargetAuras ( bool  onPhaseChange = false)

Definition at line 4159 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 998 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemoveNpcFlag2()

void Unit::RemoveNpcFlag2 ( NPCFlags2  flags)
inline

Definition at line 1004 of file Unit.h.

◆ RemoveOwnedAura() [1/3]

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

Definition at line 3784 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 3751 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,
uint32  reqEffMask = 0,
AuraRemoveMode  removeMode = AURA_REMOVE_BY_DEFAULT 
)

Definition at line 3772 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 3914 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 3941 of file Unit.cpp.

+ Here is the call graph for this function:

◆ RemovePetFlag()

void Unit::RemovePetFlag ( UnitPetFlag  flags)
inline

Definition at line 893 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemovePlayerFromVision()

void Unit::RemovePlayerFromVision ( Player player)

Definition at line 6721 of file Unit.cpp.

+ Here is the call graph for this function:

◆ RemovePvpFlag()

void Unit::RemovePvpFlag ( UnitPVPStateFlags  flags)
inline

Definition at line 882 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemoveUnitFlag()

void Unit::RemoveUnitFlag ( UnitFlags  flags)
inline

Definition at line 847 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemoveUnitFlag2()

void Unit::RemoveUnitFlag2 ( UnitFlags2  flags)
inline

Definition at line 852 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemoveUnitFlag3()

void Unit::RemoveUnitFlag3 ( UnitFlags3  flags)
inline

Definition at line 857 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemoveUnitMovementFlag()

void Unit::RemoveUnitMovementFlag ( uint32  f)
inline

Definition at line 1733 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemoveVehicleKit()

void Unit::RemoveVehicleKit ( bool  onRemoveFromWorld = false)

Definition at line 12090 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 906 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemoveVisibleAura()

void Unit::RemoveVisibleAura ( AuraApplication aurApp)

Definition at line 724 of file Unit.cpp.

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

◆ RemoveVisibleAuraUpdate()

void Unit::RemoveVisibleAuraUpdate ( AuraApplication aurApp)

Definition at line 736 of file Unit.cpp.

◆ RemoveWorldEffect()

void Unit::RemoveWorldEffect ( int32  worldEffectId)

Definition at line 14564 of file Unit.cpp.

+ Here is the call graph for this function:

◆ ReplaceAllNpcFlags()

void Unit::ReplaceAllNpcFlags ( NPCFlags  flags)
inline

Definition at line 999 of file Unit.h.

+ Here is the caller graph for this function:

◆ ReplaceAllNpcFlags2()

void Unit::ReplaceAllNpcFlags2 ( NPCFlags2  flags)
inline

Definition at line 1005 of file Unit.h.

+ Here is the caller graph for this function:

◆ ReplaceAllPetFlags()

void Unit::ReplaceAllPetFlags ( UnitPetFlag  flags)
inline

Definition at line 894 of file Unit.h.

+ Here is the caller graph for this function:

◆ ReplaceAllPvpFlags()

void Unit::ReplaceAllPvpFlags ( UnitPVPStateFlags  flags)
inline

Definition at line 883 of file Unit.h.

+ Here is the caller graph for this function:

◆ ReplaceAllSilencedSchoolMask()

void Unit::ReplaceAllSilencedSchoolMask ( SpellSchoolMask  schoolMask)
inline

Definition at line 1496 of file Unit.h.

+ Here is the caller graph for this function:

◆ ReplaceAllUnitFlags()

void Unit::ReplaceAllUnitFlags ( UnitFlags  flags)
inline

Definition at line 848 of file Unit.h.

+ Here is the caller graph for this function:

◆ ReplaceAllUnitFlags2()

void Unit::ReplaceAllUnitFlags2 ( UnitFlags2  flags)
inline

Definition at line 853 of file Unit.h.

+ Here is the caller graph for this function:

◆ ReplaceAllUnitFlags3()

void Unit::ReplaceAllUnitFlags3 ( UnitFlags3  flags)
inline

Definition at line 858 of file Unit.h.

+ Here is the caller graph for this function:

◆ ReplaceAllVisFlags()

void Unit::ReplaceAllVisFlags ( UnitVisFlags  flags)
inline

Definition at line 907 of file Unit.h.

+ Here is the caller graph for this function:

◆ resetAttackTimer()

void Unit::resetAttackTimer ( WeaponAttackType  type = BASE_ATTACK)

Definition at line 665 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 10209 of file Unit.cpp.

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

◆ RestoreDisplayId()

void Unit::RestoreDisplayId ( bool  ignorePositiveAurasPreventingMounting = false)

Definition at line 10803 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 12048 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 10707 of file Unit.cpp.

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

◆ RewardRage()

int32 Unit::RewardRage ( uint32  baseRage)

Definition at line 13099 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 2387 of file Unit.cpp.

+ Here is the call graph for this function:
+ Here is the caller 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 14332 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 14399 of file Unit.cpp.

◆ ScheduleAIChange()

void Unit::ScheduleAIChange ( )

Definition at line 10196 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 10903 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)

Definition at line 5649 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,
uint32  RageGained 
)

Definition at line 5680 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SendCancelSpellVisual()

void Unit::SendCancelSpellVisual ( uint32  id)

Definition at line 12334 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SendCancelSpellVisualKit()

void Unit::SendCancelSpellVisualKit ( uint32  id)

Definition at line 12352 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SendClearTarget()

void Unit::SendClearTarget ( )

Definition at line 13192 of file Unit.cpp.

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

◆ SendDurabilityLoss()

void Unit::SendDurabilityLoss ( Player receiver,
uint32  percent 
)

Definition at line 11153 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,
int32  overEnergize,
Powers  powerType 
)

Definition at line 6785 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 638 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 6757 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 2551 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 2559 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 12480 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)
Todo:
: implement debug info

Definition at line 5602 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 
)

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

Definition at line 10632 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)

Definition at line 10656 of file Unit.cpp.

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

◆ SendPetTalk()

void Unit::SendPetTalk ( uint32  pettalk)

Definition at line 10644 of file Unit.cpp.

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

◆ SendPlaySpellVisual() [1/2]

void Unit::SendPlaySpellVisual ( Position const &  targetPosition,
uint32  spellVisualId,
uint8  missReason,
uint8  reflectStatus,
float  travelSpeed,
bool  speedAsTime = false,
float  launchDelay = 0.0f 
)

Definition at line 12320 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SendPlaySpellVisual() [2/2]

void Unit::SendPlaySpellVisual ( Unit target,
uint32  spellVisualId,
uint8  missReason,
uint8  reflectStatus,
float  travelSpeed,
bool  speedAsTime = false,
float  launchDelay = 0.0f 
)

Definition at line 12305 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,
uint32  duration 
) const

Definition at line 12342 of file Unit.cpp.

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

◆ SendSetVehicleRecId()

void Unit::SendSetVehicleRecId ( uint32  vehicleId)

Definition at line 14032 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,
bool  isPeriodic 
)

Definition at line 5639 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 5630 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SendSpellNonMeleeDamageLog()

void Unit::SendSpellNonMeleeDamageLog ( SpellNonMeleeDamage const *  log)

Definition at line 5540 of file Unit.cpp.

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

◆ SendTeleportPacket()

void Unit::SendTeleportPacket ( TeleportLocation const &  teleportLocation)

Definition at line 12976 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 10170 of file Unit.cpp.

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

◆ SetAIAnimKitId()

void Unit::SetAIAnimKitId ( uint16  animKitId)

Definition at line 11174 of file Unit.cpp.

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

◆ SetAlwaysAllowPitching()

bool Unit::SetAlwaysAllowPitching ( bool  enable)

Definition at line 13811 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SetAnimTier()

void Unit::SetAnimTier ( AnimTier  animTier,
bool  notifyClient = true 
)

Definition at line 10745 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,
int32  bonusVal 
)
inline

Definition at line 775 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetAttackPower()

void Unit::SetAttackPower ( int32  attackPower)
inline

Definition at line 1559 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetAttackPowerModNeg()

void Unit::SetAttackPowerModNeg ( int32  attackPowerMod)
inline

Definition at line 1561 of file Unit.h.

◆ SetAttackPowerModPos()

void Unit::SetAttackPowerModPos ( int32  attackPowerMod)
inline

Definition at line 1560 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetAttackPowerMultiplier()

void Unit::SetAttackPowerMultiplier ( float  attackPowerMult)
inline

Definition at line 1562 of file Unit.h.

+ Here is the caller graph for this function:

◆ setAttackTimer()

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

Definition at line 698 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 12296 of file Unit.cpp.

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

◆ SetBaseAttackTime()

void Unit::SetBaseAttackTime ( WeaponAttackType  att,
uint32  val 
)

Definition at line 10939 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 
)
inline

Definition at line 1573 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetBattlePetCompanionExperience()

void Unit::SetBattlePetCompanionExperience ( uint32  experience)
inline

Definition at line 1269 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetBattlePetCompanionGUID()

void Unit::SetBattlePetCompanionGUID ( ObjectGuid  guid)
inline

Definition at line 1202 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetBattlePetCompanionNameTimestamp()

void Unit::SetBattlePetCompanionNameTimestamp ( uint32  timestamp)
inline

Definition at line 1267 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetBonusResistanceMod()

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

Definition at line 785 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetBoundingRadius()

void Unit::SetBoundingRadius ( float  boundingRadius)
inline

Definition at line 708 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCanAdvFly()

bool Unit::SetCanAdvFly ( bool  enable)

Definition at line 13970 of file Unit.cpp.

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

◆ SetCanDoubleJump()

bool Unit::SetCanDoubleJump ( bool  enable)

Definition at line 13908 of file Unit.cpp.

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

◆ SetCanDualWield()

virtual void Unit::SetCanDualWield ( bool  value)
inlinevirtual

Reimplemented in Creature.

Definition at line 704 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCanFly()

bool Unit::SetCanFly ( bool  enable)

Definition at line 13459 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 1549 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCannotTurn()

void Unit::SetCannotTurn ( bool  apply)

Definition at line 8572 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SetCantProc()

void Unit::SetCantProc ( bool  apply)

Definition at line 11023 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ SetCanTransitionBetweenSwimAndFly()

bool Unit::SetCanTransitionBetweenSwimAndFly ( bool  enable)

Definition at line 13842 of file Unit.cpp.

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

◆ SetCanTurnWhileFalling()

bool Unit::SetCanTurnWhileFalling ( bool  enable)

Definition at line 13876 of file Unit.cpp.

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

◆ SetChannelObject()

void Unit::SetChannelObject ( uint32  slot,
ObjectGuid  guid 
)

Definition at line 3064 of file Unit.cpp.

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

◆ SetChannelSpellData()

void Unit::SetChannelSpellData ( uint32  startTimeMs,
uint32  durationMs 
)
inline

Definition at line 1444 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetChannelSpellId()

void Unit::SetChannelSpellId ( uint32  channelSpellId)
inline

Definition at line 1424 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetChannelVisual()

void Unit::SetChannelVisual ( SpellCastVisual  channelVisual)
inline

Definition at line 1433 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 6443 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 11773 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 765 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCollision()

bool Unit::SetCollision ( bool  disable)

Definition at line 13650 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SetCombatReach()

void Unit::SetCombatReach ( float  combatReach)
inline

Definition at line 706 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetConfused()

void Unit::SetConfused ( bool  apply)
protected

Definition at line 11748 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 11545 of file Unit.cpp.

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

◆ SetCosmeticMountDisplayId()

void Unit::SetCosmeticMountDisplayId ( uint32  mountDisplayId)
inline

Definition at line 916 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCreatedBySpell()

void Unit::SetCreatedBySpell ( int32  spellId)
inline

Definition at line 860 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCreateHealth()

void Unit::SetCreateHealth ( uint32  val)
inline

Definition at line 1414 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCreateMana()

void Unit::SetCreateMana ( uint32  val)
inline

Definition at line 1416 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCreateStat()

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

Definition at line 1413 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCreatorGUID()

void Unit::SetCreatorGUID ( ObjectGuid  creator)
inline

Definition at line 1194 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCritterGUID()

void Unit::SetCritterGUID ( ObjectGuid  guid)
inline

Definition at line 1200 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCurrentCastSpell()

void Unit::SetCurrentCastSpell ( Spell pSpell)

Definition at line 3081 of file Unit.cpp.

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

◆ setDeathState()

void Unit::setDeathState ( DeathState  s)
virtual

Reimplemented in Creature, Minion, Pet, and Player.

Definition at line 9161 of file Unit.cpp.

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

◆ SetDemonCreatorGUID()

void Unit::SetDemonCreatorGUID ( ObjectGuid  guid)
inline

Definition at line 1204 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetDisableGravity()

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

Definition at line 13361 of file Unit.cpp.

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

◆ SetDisableInertia()

bool Unit::SetDisableInertia ( bool  disable)

Definition at line 13939 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  displayId,
bool  setNative = false 
)
virtual

Reimplemented in Creature, and Pet.

Definition at line 10779 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 865 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetEnableFullSpeedPitching()

bool Unit::SetEnableFullSpeedPitching ( bool  enable)

Definition at line 13780 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SetEnableFullSpeedTurning()

bool Unit::SetEnableFullSpeedTurning ( bool  enable)

Definition at line 13749 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SetExtraUnitMovementFlags()

void Unit::SetExtraUnitMovementFlags ( uint32  f)
inline

Definition at line 1742 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetExtraUnitMovementFlags2()

void Unit::SetExtraUnitMovementFlags2 ( uint32  f)
inline

Definition at line 1748 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetFacingTo()

void Unit::SetFacingTo ( float const  ori,
bool  force = true 
)

Definition at line 13289 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 
)
Todo:
figure out under what conditions creature will move towards object instead of facing it where it currently is.

Definition at line 13307 of file Unit.cpp.

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

◆ SetFacingToPoint()

void Unit::SetFacingToPoint ( Position const &  point,
bool  force = true 
)
Todo:
figure out under what conditions creature will move towards object instead of facing it where it currently is.

Definition at line 13324 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SetFaction()

void Unit::SetFaction ( uint32  faction)
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 872 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetFall()

bool Unit::SetFall ( bool  enable)

Definition at line 13424 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 11712 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)

Definition at line 13539 of file Unit.cpp.

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

◆ SetFlightCapabilityID()

void Unit::SetFlightCapabilityID ( int32  flightCapabilityId,
bool  clientUpdate 
)

Definition at line 9003 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 802 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetFullPower()

void Unit::SetFullPower ( Powers  power)
inline

Definition at line 825 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetGender()

void Unit::SetGender ( Gender  gender)
inline

Definition at line 768 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetHealth()

void Unit::SetHealth ( uint64  val)

Definition at line 9973 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

Definition at line 13577 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 1147 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetIgnoreMovementForces()

bool Unit::SetIgnoreMovementForces ( bool  ignore)

Definition at line 14112 of file Unit.cpp.

+ Here is the call graph for this function:
+ 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 1044 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 8505 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 1050 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 8541 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 1047 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 8518 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 1060 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetInFront()

void Unit::SetInFront ( WorldObject const *  target)

Definition at line 13283 of file Unit.cpp.

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

◆ SetInitialPowerValue()

void Unit::SetInitialPowerValue ( Powers  powerType)

Definition at line 5750 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 1834 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetInteractionAllowedInCombat()

void Unit::SetInteractionAllowedInCombat ( bool  interactionAllowed)
virtual

Reimplemented in Creature.

Definition at line 9302 of file Unit.cpp.

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

◆ SetInteractionAllowedWhileHostile()

void Unit::SetInteractionAllowedWhileHostile ( bool  interactionAllowed)
virtual

Reimplemented in Creature.

Definition at line 9292 of file Unit.cpp.

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

◆ SetIsCombatDisallowed()

void Unit::SetIsCombatDisallowed ( bool  apply)
inline

Definition at line 1870 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetJumpingDisabled()

bool Unit::SetJumpingDisabled ( bool  disable)

Definition at line 13718 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SetLastDamagedTargetGuid()

void Unit::SetLastDamagedTargetGuid ( ObjectGuid  guid)
inline

Definition at line 961 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetLastExtraAttackSpell()

void Unit::SetLastExtraAttackSpell ( uint32  spellId)
inline

Definition at line 958 of file Unit.h.

◆ SetLevel()

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

Definition at line 9956 of file Unit.cpp.

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

◆ SetMainHandWeaponAttackPower()

void Unit::SetMainHandWeaponAttackPower ( int32  attackPower)
inline

Definition at line 1567 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetMaxHealth()

void Unit::SetMaxHealth ( uint64  val)

Definition at line 10004 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,
int32  val 
)

Definition at line 10083 of file Unit.cpp.

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

◆ SetMeleeAnimKitId()

void Unit::SetMeleeAnimKitId ( uint16  animKitId)

Definition at line 11208 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 6247 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 1196 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetModCastingSpeed()

void Unit::SetModCastingSpeed ( float  castingSpeed)
inline

Definition at line 838 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetModHaste()

void Unit::SetModHaste ( float  haste)
inline

Definition at line 840 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetModHasteRegen()

void Unit::SetModHasteRegen ( float  hasteRegen)
inline

Definition at line 842 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetModRangedHaste()

void Unit::SetModRangedHaste ( float  rangedHaste)
inline

Definition at line 841 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetModSpellHaste()

void Unit::SetModSpellHaste ( float  spellHaste)
inline

Definition at line 839 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetModTimeRate()

void Unit::SetModTimeRate ( float  timeRate)
inline

Definition at line 843 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetMountDisplayId()

void Unit::SetMountDisplayId ( uint32  mountDisplayId)
inline

Definition at line 914 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetMoveCantSwim()

bool Unit::SetMoveCantSwim ( bool  cantSwim)

Definition at line 14001 of file Unit.cpp.

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

◆ SetMovedUnit()

void Unit::SetMovedUnit ( Unit target)

Definition at line 10396 of file Unit.cpp.

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

◆ SetMovementAnimKitId()

void Unit::SetMovementAnimKitId ( uint16  animKitId)

Definition at line 11191 of file Unit.cpp.

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

◆ SetNameplateAttachToGUID()

void Unit::SetNameplateAttachToGUID ( ObjectGuid  guid)
inline

Definition at line 862 of file Unit.h.

◆ SetNativeGender()

virtual void Unit::SetNativeGender ( Gender  gender)
inlinevirtual

Reimplemented in Player.

Definition at line 770 of file Unit.h.

◆ SetNpcFlag()

void Unit::SetNpcFlag ( NPCFlags  flags)
inline

Definition at line 997 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetNpcFlag2()

void Unit::SetNpcFlag2 ( NPCFlags2  flags)
inline

Definition at line 1003 of file Unit.h.

◆ SetOffHandWeaponAttackPower()

void Unit::SetOffHandWeaponAttackPower ( int32  attackPower)
inline

Definition at line 1568 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetOverrideDisplayPowerId()

void Unit::SetOverrideDisplayPowerId ( uint32  powerDisplayId)
inline

Definition at line 814 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetOwnerGUID()

void Unit::SetOwnerGUID ( ObjectGuid  owner)

Definition at line 6171 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 892 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetPetGUID()

void Unit::SetPetGUID ( ObjectGuid  guid)
inline

Definition at line 1198 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetPetNameTimestamp()

void Unit::SetPetNameTimestamp ( uint32  timestamp)
inline

Definition at line 1246 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetPetNumberForClient()

void Unit::SetPetNumberForClient ( uint32  petNumber)
inline

Definition at line 1245 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetPlayHoverAnim()

void Unit::SetPlayHoverAnim ( bool  enable,
bool  sendUpdate = true 
)

Definition at line 14175 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,
int32  val,
bool  withPowerUpdate = true 
)
Todo:
: Support multiple counts ?

Definition at line 10046 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,
bool  onInit = false 
)

Definition at line 5697 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 12241 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 881 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetRace()

void Unit::SetRace ( uint8  race)
inline

Definition at line 762 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetRangedAttackPower()

void Unit::SetRangedAttackPower ( int32  attackPower)
inline

Definition at line 1563 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetRangedAttackPowerModNeg()

void Unit::SetRangedAttackPowerModNeg ( int32  attackPowerMod)
inline

Definition at line 1565 of file Unit.h.

◆ SetRangedAttackPowerModPos()

void Unit::SetRangedAttackPowerModPos ( int32  attackPowerMod)
inline

Definition at line 1564 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetRangedAttackPowerMultiplier()

void Unit::SetRangedAttackPowerMultiplier ( float  attackPowerMult)
inline

Definition at line 1566 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetRangedWeaponAttackPower()

void Unit::SetRangedWeaponAttackPower ( int32  attackPower)
inline

Definition at line 1569 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetResistance()

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

Definition at line 784 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetRooted()

void Unit::SetRooted ( bool  apply)
protected

Definition at line 11673 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 9494 of file Unit.cpp.

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

◆ SetSheath()

void Unit::SetSheath ( SheathState  sheathed)

Definition at line 5813 of file Unit.cpp.

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

◆ SetSilencedSchoolMask()

void Unit::SetSilencedSchoolMask ( SpellSchoolMask  schoolMask)
inline

Definition at line 1495 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetSpeed()

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

Definition at line 8937 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 8942 of file Unit.cpp.

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

◆ SetSpellEmpowerStage()

void Unit::SetSpellEmpowerStage ( int8  stage)
inline

Definition at line 1451 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetStandState()

void Unit::SetStandState ( UnitStandStateType  state,
uint32  animKitID = 0 
)

Definition at line 10731 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 773 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 9635 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 9644 of file Unit.cpp.

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

◆ SetStrafingDisabled()

bool Unit::SetStrafingDisabled ( bool  disable)

Definition at line 13687 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SetStunned()

void Unit::SetStunned ( bool  apply)
protected

Definition at line 11642 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 13440 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 const &  )
pure virtual

Implemented in Player, and Creature.

+ Here is the caller graph for this function:

◆ SetTransformSpell()

void Unit::SetTransformSpell ( uint32  spellid)
inline

Definition at line 1616 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetUninteractible()

void Unit::SetUninteractible ( bool  apply)

Definition at line 8564 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SetUnitFlag()

void Unit::SetUnitFlag ( UnitFlags  flags)
inline

Definition at line 846 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetUnitFlag2()

void Unit::SetUnitFlag2 ( UnitFlags2  flags)
inline

Definition at line 851 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetUnitFlag3()

void Unit::SetUnitFlag3 ( UnitFlags3  flags)
inline

Definition at line 856 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetUnitMovementFlags()

void Unit::SetUnitMovementFlags ( uint32  f)
inline

Definition at line 1736 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetVehicle()

void Unit::SetVehicle ( Vehicle vehicle)
inline

Definition at line 1785 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetVignette()

void Unit::SetVignette ( uint32  vignetteId)

Definition at line 14576 of file Unit.cpp.

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

◆ SetVirtualItem()

void Unit::SetVirtualItem ( uint32  slot,
uint32  itemId,
uint16  appearanceModId = 0,
uint16  itemVisual = 0 
)

Definition at line 14374 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 905 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetVisible()

void Unit::SetVisible ( bool  x)

Definition at line 8768 of file Unit.cpp.

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

◆ SetVisibleAura()

void Unit::SetVisibleAura ( AuraApplication aurApp)

Definition at line 717 of file Unit.cpp.

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

◆ SetVisibleAuraUpdate()

void Unit::SetVisibleAuraUpdate ( AuraApplication aurApp)

Definition at line 731 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ SetWalk()

bool Unit::SetWalk ( bool  enable)

Definition at line 13343 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)

Definition at line 13502 of file Unit.cpp.

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

◆ SetWildBattlePetLevel()

void Unit::SetWildBattlePetLevel ( uint32  wildBattlePetLevel)
inline

Definition at line 1271 of file Unit.h.

+ Here is the caller graph for this function:

◆ SpellAbsorbBonusDone()

int32 Unit::SpellAbsorbBonusDone ( Unit victim,
SpellInfo const *  spellProto,
int32  absorbamount,
SpellEffectInfo const &  spellEffectInfo,
uint32  stack = 1,
AuraEffect const *  aurEff = nullptr 
) const

Definition at line 7626 of file Unit.cpp.

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

◆ SpellAbsorbBonusTaken()

int32 Unit::SpellAbsorbBonusTaken ( Unit caster,
SpellInfo const *  spellProto,
int32  absorbamount 
) const

Definition at line 7708 of file Unit.cpp.

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

◆ SpellAbsorbPctDone()

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

Definition at line 7692 of file Unit.cpp.

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

◆ SpellBaseAbsorbBonusDone()

int32 Unit::SpellBaseAbsorbBonusDone ( SpellSchoolMask  schoolMask) const

Definition at line 7621 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 7084 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 7583 of file Unit.cpp.

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

◆ SpellCritChanceDone()

float Unit::SpellCritChanceDone ( Spell spell,
AuraEffect const *  aurEff,
SpellSchoolMask  schoolMask,
WeaponAttackType  attackType = BASE_ATTACK 
) const

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

Definition at line 7121 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,
Spell spell,
AuraEffect const *  aurEff,
SpellSchoolMask  schoolMask,
float  doneChance,
WeaponAttackType  attackType = BASE_ATTACK 
) const

Definition at line 7175 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

Definition at line 7280 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

Definition at line 7310 of file Unit.cpp.

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

◆ SpellDamageBonusDone()

int32 Unit::SpellDamageBonusDone ( Unit victim,
SpellInfo const *  spellProto,
int32  pdamage,
DamageEffectType  damagetype,
SpellEffectInfo const &  spellEffectInfo,
uint32  stack = 1,
Spell spell = nullptr,
AuraEffect const *  aurEff = nullptr 
) const

Definition at line 6811 of file Unit.cpp.

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

◆ SpellDamageBonusTaken()

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

Definition at line 6994 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,
SpellEffectInfo const &  spellEffectInfo 
) const

Definition at line 6902 of file Unit.cpp.

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

◆ SpellHealingBonusDone()

int32 Unit::SpellHealingBonusDone ( Unit victim,
SpellInfo const *  spellProto,
int32  healamount,
DamageEffectType  damagetype,
SpellEffectInfo const &  spellEffectInfo,
uint32  stack = 1,
Spell spell = nullptr,
AuraEffect const *  aurEff = nullptr 
) const

Definition at line 7328 of file Unit.cpp.

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

◆ SpellHealingBonusTaken()

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

Definition at line 7495 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 7440 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 1765 of file Unit.h.

+ Here is the caller graph for this function:

◆ StopAttackFaction()

void Unit::StopAttackFaction ( uint32  faction_id)

Definition at line 13111 of file Unit.cpp.

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

◆ StopMoving()

void Unit::StopMoving ( )

Definition at line 10680 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 14324 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 14385 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 14342 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 14409 of file Unit.cpp.

◆ ToPet() [1/2]

Pet * Unit::ToPet ( )
inline

Definition at line 1822 of file Unit.h.

+ Here is the caller graph for this function:

◆ ToPet() [2/2]

Pet const * Unit::ToPet ( ) const
inline

Definition at line 1823 of file Unit.h.

◆ ToTempSummon() [1/2]

TempSummon * Unit::ToTempSummon ( )
inline

Definition at line 1828 of file Unit.h.

+ Here is the caller graph for this function:

◆ ToTempSummon() [2/2]

TempSummon const * Unit::ToTempSummon ( ) const
inline

Definition at line 1829 of file Unit.h.

◆ ToTotem() [1/2]

Totem * Unit::ToTotem ( )
inline

Definition at line 1825 of file Unit.h.

+ Here is the caller graph for this function:

◆ ToTotem() [2/2]

Totem const * Unit::ToTotem ( ) const
inline

Definition at line 1826 of file Unit.h.

◆ TriggerAuraHeartbeat()

void Unit::TriggerAuraHeartbeat ( )

Definition at line 517 of file Unit.cpp.

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

◆ TriggerAurasProcOnEvent() [1/2]

void Unit::TriggerAurasProcOnEvent ( AuraApplicationList myProcAuras,
AuraApplicationList targetProcAuras,
Unit actionTarget,
ProcFlagsInit const &  typeMaskActor,
ProcFlagsInit const &  typeMaskActionTarget,
ProcFlagsSpellType  spellTypeMask,
ProcFlagsSpellPhase  spellPhaseMask,
ProcFlagsHit  hitMask,
Spell spell,
DamageInfo damageInfo,
HealInfo healInfo 
)

Definition at line 10568 of file Unit.cpp.

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

◆ TriggerAurasProcOnEvent() [2/2]

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

Definition at line 10607 of file Unit.cpp.

+ Here is the call graph for this function:

◆ TriggerOnHealthChangeAuras()

void Unit::TriggerOnHealthChangeAuras ( uint64  oldVal,
uint64  newVal 
)

Definition at line 8666 of file Unit.cpp.

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

◆ TriggerOnPowerChangeAuras()

void Unit::TriggerOnPowerChangeAuras ( Powers  power,
int32  oldVal,
int32  newVal 
)

Definition at line 10108 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 6744 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 TempSummon, Pet, Totem, Creature, Puppet, and Player.

Definition at line 423 of file Unit.cpp.

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

◆ UpdateAdvFlyingSpeed() [1/2]

void Unit::UpdateAdvFlyingSpeed ( AdvFlyingRateTypeRange  speedType,
bool  clientUpdate 
)

Definition at line 9086 of file Unit.cpp.

+ Here is the call graph for this function:

◆ UpdateAdvFlyingSpeed() [2/2]

void Unit::UpdateAdvFlyingSpeed ( AdvFlyingRateTypeSingle  speedType,
bool  clientUpdate 
)

Definition at line 9025 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 9768 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 9815 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 58 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:

◆ UpdateAttackTimeField()

void Unit::UpdateAttackTimeField ( WeaponAttackType  att)

Definition at line 10945 of file Unit.cpp.

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

◆ UpdateAuraForGroup()

void Unit::UpdateAuraForGroup ( )

Definition at line 11008 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 10335 of file Unit.cpp.

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

◆ UpdateCreatureType()

void Unit::UpdateCreatureType ( )

Definition at line 9475 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 9738 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 9774 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 64 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 5808 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 13091 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 741 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ UpdateLiquidStatusOnPositionChange()

void Unit::UpdateLiquidStatusOnPositionChange ( Optional< LiquidData > const &  newLiquidData)
protected

Definition at line 3353 of file Unit.cpp.

+ Here is the call graph for this function:
+ 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:

◆ UpdateMountCapability()

void Unit::UpdateMountCapability ( )

Definition at line 8459 of file Unit.cpp.

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

◆ UpdateMovementForcesModMagnitude()

void Unit::UpdateMovementForcesModMagnitude ( )

Definition at line 14143 of file Unit.cpp.

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

◆ UpdateNearbyPlayersInteractions()

void Unit::UpdateNearbyPlayersInteractions ( )
virtual

Reimplemented in Creature.

Definition at line 9313 of file Unit.cpp.

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

◆ UpdateObjectVisibility()

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

Reimplemented from WorldObject.

Definition at line 12467 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 13083 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 9274 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 13027 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 13077 of file Unit.cpp.

+ Here is the call graph for this function:

◆ UpdateReactives()

void Unit::UpdateReactives ( uint32  p_time)

Definition at line 10869 of file Unit.cpp.

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

◆ UpdateResistances()

void Unit::UpdateResistances ( uint32  school)
virtual

Reimplemented in Guardian, Player, and Totem.

Definition at line 9891 of file Unit.cpp.

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

◆ UpdateSpeed()

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

Definition at line 8778 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 595 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 614 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 5219 of file Unit.cpp.

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

◆ UpdateStatBuffModForClient()

void Unit::UpdateStatBuffModForClient ( Stats  stat)

Definition at line 5284 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 9675 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 5994 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 14347 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 14414 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 14337 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 14404 of file Unit.cpp.

Friends And Related Symbol Documentation

◆ CombatManager

friend class CombatManager
friend

Definition at line 2015 of file Unit.h.

◆ ThreatManager

friend class ThreatManager
friend

Definition at line 2017 of file Unit.h.

◆ VehicleJoinEvent

friend class VehicleJoinEvent
friend

Definition at line 1778 of file Unit.h.

Member Data Documentation

◆ _aiAnimKitId

uint16 Unit::_aiAnimKitId
private

Definition at line 2040 of file Unit.h.

◆ _instantCast

bool Unit::_instantCast
private

Definition at line 2035 of file Unit.h.

◆ _isCombatDisallowed

bool Unit::_isCombatDisallowed
private

Definition at line 2049 of file Unit.h.

◆ _isWalkingBeforeCharm

bool Unit::_isWalkingBeforeCharm
private

Are we walking before we were charmed?

Definition at line 2038 of file Unit.h.

◆ _lastDamagedTargetGuid

ObjectGuid Unit::_lastDamagedTargetGuid
private

Definition at line 2031 of file Unit.h.

◆ _lastExtraAttackSpell

uint32 Unit::_lastExtraAttackSpell
private

Definition at line 2029 of file Unit.h.

◆ _lastLiquid

LiquidTypeEntry const* Unit::_lastLiquid
protected

Definition at line 1964 of file Unit.h.

◆ _meleeAnimKitId

uint16 Unit::_meleeAnimKitId
private

Definition at line 2042 of file Unit.h.

◆ _movementAnimKitId

uint16 Unit::_movementAnimKitId
private

Definition at line 2041 of file Unit.h.

◆ _movementForces

std::unique_ptr<MovementForces> Unit::_movementForces
private

Definition at line 2046 of file Unit.h.

◆ _oldFactionId

uint32 Unit::_oldFactionId
private

faction before charm

Definition at line 2037 of file Unit.h.

◆ _positionUpdateInfo

PositionUpdateInfo Unit::_positionUpdateInfo
private

Definition at line 2047 of file Unit.h.

◆ _spellHistory

std::unique_ptr<SpellHistory> Unit::_spellHistory
private

Definition at line 2044 of file Unit.h.

◆ extraAttacksTargets

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

Definition at line 2030 of file Unit.h.

◆ i_AI

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

Definition at line 2024 of file Unit.h.

◆ i_AIs

UnitAIStack Unit::i_AIs
private

Definition at line 2023 of file Unit.h.

◆ i_motionMaster

std::unique_ptr<MotionMaster> Unit::i_motionMaster
protected

Definition at line 1955 of file Unit.h.

◆ LastCharmerGUID

ObjectGuid Unit::LastCharmerGUID

Definition at line 1779 of file Unit.h.

◆ m_advFlyingSpeed

std::array<float, ADV_FLYING_MAX_SPEED_TYPE> Unit::m_advFlyingSpeed
protected

Definition at line 1946 of file Unit.h.

◆ m_aiLocked

bool Unit::m_aiLocked
private

Definition at line 2025 of file Unit.h.

◆ m_appliedAuras

AuraApplicationMap Unit::m_appliedAuras
protected

Definition at line 1925 of file Unit.h.

◆ m_areaTrigger

AreaTriggerList Unit::m_areaTrigger
protected

Definition at line 1917 of file Unit.h.

◆ m_attackers

AttackerSet Unit::m_attackers
protected

Definition at line 1902 of file Unit.h.

◆ m_attacking

Unit* Unit::m_attacking
protected

Definition at line 1903 of file Unit.h.

◆ m_attackTimer

std::array<uint32, MAX_ATTACK> Unit::m_attackTimer

Definition at line 1521 of file Unit.h.

◆ m_auraFlatModifiersGroup

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

Definition at line 1937 of file Unit.h.

◆ m_auraPctModifiersGroup

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

Definition at line 1938 of file Unit.h.

◆ m_auraStateAuras

AuraStateAurasMap Unit::m_auraStateAuras
protected

Definition at line 1933 of file Unit.h.

◆ m_auraUpdateIterator

AuraMap::iterator Unit::m_auraUpdateIterator
protected

Definition at line 1927 of file Unit.h.

◆ m_baseAttackSpeed

std::array<uint32, MAX_ATTACK> Unit::m_baseAttackSpeed

Definition at line 1519 of file Unit.h.

◆ m_baseSpellCritChance

float Unit::m_baseSpellCritChance

Definition at line 1517 of file Unit.h.

◆ m_canDualWield

bool Unit::m_canDualWield

Definition at line 715 of file Unit.h.

◆ m_canModifyStats

bool Unit::m_canModifyStats
protected

Definition at line 1940 of file Unit.h.

◆ m_charmed

Unit* Unit::m_charmed
protected

Definition at line 1951 of file Unit.h.

◆ m_charmer

Unit* Unit::m_charmer
protected

Definition at line 1950 of file Unit.h.

◆ m_charmInfo

std::unique_ptr<CharmInfo> Unit::m_charmInfo
protected

Definition at line 1952 of file Unit.h.

◆ m_cleanupDone

bool Unit::m_cleanupDone
private

Definition at line 2033 of file Unit.h.

◆ m_combatManager

CombatManager Unit::m_combatManager
private

Definition at line 2016 of file Unit.h.

◆ m_Controlled

ControlList Unit::m_Controlled

Definition at line 1232 of file Unit.h.

◆ m_ControlledByPlayer

bool Unit::m_ControlledByPlayer
protected

Definition at line 1896 of file Unit.h.

◆ m_createStats

std::array<float, MAX_STATS> Unit::m_createStats
protected

Definition at line 1898 of file Unit.h.

◆ m_currentSpells

std::array<Spell*, CURRENT_MAX_SPELL> Unit::m_currentSpells
protected

Definition at line 1922 of file Unit.h.

◆ m_deathState

DeathState Unit::m_deathState
protected

Definition at line 1905 of file Unit.h.

◆ m_Diminishing

Diminishing Unit::m_Diminishing
private

Definition at line 2012 of file Unit.h.

◆ m_duringRemoveFromWorld

bool Unit::m_duringRemoveFromWorld
private

Definition at line 2034 of file Unit.h.

◆ m_dynObj

DynObjectList Unit::m_dynObj
protected

Definition at line 1911 of file Unit.h.

◆ m_floatStatNegBuff

std::array<float, MAX_STATS> Unit::m_floatStatNegBuff
protected

Definition at line 1900 of file Unit.h.

◆ m_floatStatPosBuff

std::array<float, MAX_STATS> Unit::m_floatStatPosBuff
protected

Definition at line 1899 of file Unit.h.

◆ m_followingMe

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

Definition at line 2027 of file Unit.h.

◆ m_gameObj

GameObjectList Unit::m_gameObj
protected

Definition at line 1914 of file Unit.h.

◆ m_insideAreaTriggers

AreaTriggerList Unit::m_insideAreaTriggers
protected

Definition at line 1918 of file Unit.h.

◆ m_interruptableAuras

AuraApplicationList Unit::m_interruptableAuras
protected

Definition at line 1932 of file Unit.h.

◆ m_interruptMask

EnumFlag<SpellAuraInterruptFlags> Unit::m_interruptMask
protected

Definition at line 1934 of file Unit.h.

◆ m_interruptMask2

EnumFlag<SpellAuraInterruptFlags2> Unit::m_interruptMask2
protected

Definition at line 1935 of file Unit.h.

◆ m_lastSanctuaryTime

uint32 Unit::m_lastSanctuaryTime

Definition at line 1590 of file Unit.h.

◆ m_modAttackSpeedPct

std::array<float, MAX_ATTACK> Unit::m_modAttackSpeedPct

Definition at line 1520 of file Unit.h.

◆ m_modAuras

std::array<AuraEffectList, TOTAL_AURAS> Unit::m_modAuras
protected

Definition at line 1930 of file Unit.h.

◆ m_modMeleeHitChance

float Unit::m_modMeleeHitChance

Definition at line 1514 of file Unit.h.

◆ m_modRangedHitChance

float Unit::m_modRangedHitChance

Definition at line 1515 of file Unit.h.

◆ m_modSpellHitChance

float Unit::m_modSpellHitChance

Definition at line 1516 of file Unit.h.

◆ m_movementCounter

uint32 Unit::m_movementCounter
protected

Incrementing counter used in movement packets.

Definition at line 2006 of file Unit.h.

◆ m_ObjectSlot

std::array<ObjectGuid, MAX_GAMEOBJECT_SLOT> Unit::m_ObjectSlot

Definition at line 1502 of file Unit.h.

◆ m_ownedAuras

AuraMap Unit::m_ownedAuras
protected

Definition at line 1924 of file Unit.h.

◆ m_playerMovingMe

Player* Unit::m_playerMovingMe
protected

Definition at line 1949 of file Unit.h.

◆ m_procChainLength

int32 Unit::m_procChainLength
protected

Definition at line 1908 of file Unit.h.

◆ m_procDeep

int32 Unit::m_procDeep
protected

Definition at line 1907 of file Unit.h.

◆ m_reactiveTimer

std::array<uint32, MAX_REACTIVE> Unit::m_reactiveTimer
protected

Definition at line 1957 of file Unit.h.

◆ m_regenTimer

uint32 Unit::m_regenTimer
protected

Definition at line 1958 of file Unit.h.

◆ m_removedAuras

AuraList Unit::m_removedAuras
protected

Definition at line 1926 of file Unit.h.

◆ m_removedAurasCount

uint32 Unit::m_removedAurasCount
protected

Definition at line 1928 of file Unit.h.

◆ m_scAuras

AuraList Unit::m_scAuras
protected

Definition at line 1931 of file Unit.h.

◆ m_sharedVision

SharedVisionList Unit::m_sharedVision
protected

Definition at line 1953 of file Unit.h.

◆ m_speed_rate

std::array<float, MAX_MOVE_TYPE> Unit::m_speed_rate
protected

Definition at line 1945 of file Unit.h.

◆ m_spellImmune

Definition at line 1589 of file Unit.h.

◆ m_state

uint32 Unit::m_state
private

Definition at line 2010 of file Unit.h.

◆ m_SummonSlot

std::array<ObjectGuid, MAX_SUMMON_SLOT> Unit::m_SummonSlot

Definition at line 1501 of file Unit.h.

◆ m_threatManager

ThreatManager Unit::m_threatManager
private

Definition at line 2018 of file Unit.h.

◆ m_transformSpell

uint32 Unit::m_transformSpell
protected

Definition at line 1920 of file Unit.h.

◆ m_unitData

Definition at line 1881 of file Unit.h.

◆ m_unitMovedByMe

Unit* Unit::m_unitMovedByMe
protected

Definition at line 1948 of file Unit.h.

◆ m_unitTypeMask

uint32 Unit::m_unitTypeMask
protected

Definition at line 1963 of file Unit.h.

◆ m_vehicle

Vehicle* Unit::m_vehicle
protected

Definition at line 1960 of file Unit.h.

◆ m_vehicleKit

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

Definition at line 1961 of file Unit.h.

◆ m_vignette

std::unique_ptr<Vignettes::VignetteData> Unit::m_vignette
protected

Definition at line 1966 of file Unit.h.

◆ m_visibleAuras

VisibleAuraContainer Unit::m_visibleAuras
protected

Definition at line 1942 of file Unit.h.

◆ m_visibleAurasToUpdate

Trinity::Containers::FlatSet<AuraApplication*, VisibleAuraSlotCompare> Unit::m_visibleAurasToUpdate
protected

Definition at line 1943 of file Unit.h.

◆ m_weaponDamage

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

Definition at line 1939 of file Unit.h.

◆ movespline

std::unique_ptr<Movement::MoveSpline> Unit::movespline

Definition at line 1838 of file Unit.h.


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