TrinityCore
Unit Class Referenceabstract

#include <Unit.h>

+ Inheritance diagram for Unit:

Classes

struct  ValuesUpdateForPlayerWithMaskSender
 
struct  VisibleAuraSlotCompare
 

Public Types

typedef std::set< Unit * > AttackerSet
 
typedef std::set< Unit * > ControlList
 
typedef std::vector< Unit * > UnitVector
 
typedef std::multimap< uint32, Aura * > AuraMap
 
typedef std::pair< AuraMap::const_iterator, AuraMap::const_iterator > AuraMapBounds
 
typedef std::pair< AuraMap::iterator, AuraMap::iterator > AuraMapBoundsNonConst
 
typedef std::multimap< uint32, AuraApplication * > AuraApplicationMap
 
typedef std::pair< AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator > AuraApplicationMapBounds
 
typedef std::pair< AuraApplicationMap::iterator, AuraApplicationMap::iterator > AuraApplicationMapBoundsNonConst
 
typedef std::multimap< AuraStateType, AuraApplication * > AuraStateAurasMap
 
typedef std::pair< AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator > AuraStateAurasMapBounds
 
typedef std::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 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 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 (int32 pct) const
 
bool HealthBelowPctDamaged (int32 pct, uint32 damage) const
 
bool HealthAbovePct (int32 pct) const
 
bool HealthAbovePctHealed (int32 pct, uint32 heal) const
 
float GetHealthPct () const
 
uint64 CountPctFromMaxHealth (int32 pct) const
 
uint64 CountPctFromCurHealth (int32 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)
 
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
 
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 ()
 
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
 
int32 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 ==================== More...
 
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 *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, uint16 missReason, uint16 reflectStatus, float travelSpeed, bool speedAsTime=false, float launchDelay=0.0f)
 
void SendPlaySpellVisual (Position const &targetPosition, uint32 spellVisualId, uint16 missReason, uint16 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)
 
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 (Position const &pos, bool casting=false)
 
void NearTeleportTo (float x, float y, float z, float orientation, bool casting=false)
 
void SendTeleportPacket (Position const &pos)
 
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. More...
 
void UpdateHeight (float newZ)
 Only server-side height update, does not broadcast to client. More...
 
void SendMoveKnockBack (Player *player, float speedXY, float speedZ, float vcos, float vsin)
 
void KnockbackFrom (Position const &origin, float speedXY, float speedZ, Movement::SpellEffectExtraData const *spellEffectExtraData=nullptr)
 
void JumpTo (float speedXY, float speedZ, float angle, Optional< Position > dest={})
 
void JumpTo (WorldObject *obj, float speedZ, bool withOrientation=false)
 
void MonsterMoveWithSpeed (float x, float y, float z, float speed, bool generatePath=false, bool forceDestination=false)
 
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 SetCanTransitionBetweenSwimAndFly (bool enable)
 
bool SetCanTurnWhileFalling (bool enable)
 
bool SetCanDoubleJump (bool enable)
 
bool SetDisableInertia (bool disable)
 
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
 
int32 GetTotalAuraModifier (AuraType auraType) const
 
float GetTotalAuraMultiplier (AuraType auraType) const
 
int32 GetMaxPositiveAuraModifier (AuraType auraType) const
 
int32 GetMaxNegativeAuraModifier (AuraType auraType) const
 
int32 GetTotalAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
float GetTotalAuraMultiplier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
int32 GetMaxPositiveAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
int32 GetMaxNegativeAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
int32 GetTotalAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
float GetTotalAuraMultiplierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
int32 GetMaxPositiveAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask, AuraEffect const *except=nullptr) const
 
int32 GetMaxNegativeAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
int32 GetTotalAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
float GetTotalAuraMultiplierByMiscValue (AuraType auraType, int32 misc_value) const
 
int32 GetMaxPositiveAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
int32 GetMaxNegativeAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
int32 GetTotalAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
float GetTotalAuraMultiplierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
int32 GetMaxPositiveAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
int32 GetMaxNegativeAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
void 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 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
 
virtual SpellInfo const * GetCastSpellInfo (SpellInfo const *spellInfo, TriggerCastFlags &triggerFlag) 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)
 
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 ()
 
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 MeleeDamageBonusDone (Unit *pVictim, int32 damage, WeaponAttackType attType, DamageEffectType damagetype, SpellInfo const *spellProto=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 ()
 
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, 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 (SpellInfo const *spellInfo, SpellEffectInfo const *spellEffectInfo=nullptr) const
 
virtual bool IsImmunedToSpellEffect (SpellInfo const *spellInfo, SpellEffectInfo const &spellEffectInfo, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const
 
void UpdateSpeed (UnitMoveType mtype)
 
float GetSpeed (UnitMoveType mtype) const
 
float GetSpeedRate (UnitMoveType mtype) const
 
void SetSpeed (UnitMoveType mtype, float newValue)
 
void SetSpeedRate (UnitMoveType mtype, float rate)
 
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--------------— More...
 
void SendPetTalk (uint32 pettalk)
 
void SendPetAIReaction (ObjectGuid guid)
 
void PropagateSpeedChange ()
 -------—End of Pet responses methods-------— More...
 
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) More...
 
void HandleSpellClick (Unit *clicker, int8 seatId=-1)
 
void EnterVehicle (Unit *base, int8 seatId=-1)
 
virtual void ExitVehicle (Position const *exitPosition=nullptr)
 
void ChangeSeat (int8 seatId, bool next=true)
 
void _ExitVehicle (Position const *exitPosition=nullptr)
 
void _EnterVehicle (Vehicle *vehicle, int8 seatId, AuraApplication const *aurApp=nullptr)
 
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
 
void 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
 
int32 GetHighestExclusiveSameEffectSpellGroupValue (AuraEffect const *aurEff, AuraType auraType, bool checkMiscValue=false, int32 miscValue=0) const
 
bool IsHighestExclusiveAura (Aura const *aura, bool removeOtherAuraApplications=false)
 
bool IsHighestExclusiveAuraEffect (SpellInfo const *spellInfo, AuraType auraType, int32 effectAmount, 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. More...
 
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 BuildValuesUpdateWithFlag (ByteBuffer *data, UF::UpdateFieldFlag flags, Player const *target) const override
 
void BuildValuesUpdateForPlayerWithMask (UpdateData *data, UF::ObjectData::Mask const &requestedObjectMask, UF::UnitData::Mask const &requestedUnitMask, Player const *target) const
 
void AtStartOfEncounter (EncounterType type)
 
void AtEndOfEncounter (EncounterType type)
 
- Public Member Functions inherited from WorldObject
virtual ~WorldObject ()
 
virtual void Update (uint32 diff)
 
void AddToWorld () override
 
void RemoveFromWorld () override
 
void GetNearPoint2D (WorldObject const *searcher, float &x, float &y, float distance, float absAngle) const
 
void GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float distance2d, float absAngle) const
 
void GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float relAngle=0) const
 
void MovePosition (Position &pos, float dist, float angle)
 
Position GetNearPosition (float dist, float angle)
 
void MovePositionToFirstCollision (Position &pos, float dist, float angle)
 
Position GetFirstCollisionPosition (float dist, float angle)
 
Position GetRandomNearPosition (float radius)
 
void GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const
 
virtual float GetCombatReach () const
 
void UpdateGroundPositionZ (float x, float y, float &z) const
 
void UpdateAllowedPositionZ (float x, float y, float &z, float *groundZ=nullptr) const
 
void GetRandomPoint (Position const &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const
 
Position GetRandomPoint (Position const &srcPos, float distance) const
 
uint32 GetInstanceId () const
 
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 (float x, float y, float minRange, float maxRange) const
 
bool IsInRange3d (float x, float y, float z, float minRange, float maxRange) const
 
bool isInFront (WorldObject const *target, float arc=float(M_PI)) const
 
bool isInBack (WorldObject const *target, float arc=float(M_PI)) const
 
bool IsInBetween (Position const &pos1, Position const &pos2, float size=0) const
 
bool IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const
 
virtual void CleanupsBeforeDelete (bool finalCleanup=true)
 
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
 
virtual uint8 GetLevelForTarget (WorldObject const *) 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, bool implicitDetect=false, bool distanceCheck=false, bool checkAlert=false) 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
 
virtual ObjectGuid GetCreatorGUID () const =0
 
virtual ObjectGuid GetOwnerGUID () const =0
 
virtual ObjectGuid GetCharmerOrOwnerGUID () const
 
ObjectGuid GetCharmerOrOwnerOrOwnGUID () const
 
UnitGetOwner () const
 
UnitGetCharmerOrOwner () const
 
UnitGetCharmerOrOwnerOrSelf () const
 
PlayerGetCharmerOrOwnerPlayerOrPlayerItself () const
 
PlayerGetAffectingPlayer () const
 
PlayerGetSpellModOwner () const
 
int32 CalculateSpellDamage (Unit const *target, SpellEffectInfo const &spellEffectInfo, int32 const *basePoints=nullptr, float *variance=nullptr, uint32 castItemId=0, int32 itemLevel=-1) const
 
float GetSpellMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const
 
float GetSpellMinRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const
 
double ApplyEffectModifiers (SpellInfo const *spellInfo, uint8 effIndex, double 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
 
virtual float MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, SpellInfo const *spellInfo) const
 
virtual SpellMissInfo MeleeSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const
 
SpellMissInfo MagicSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const
 
SpellMissInfo SpellHitResult (Unit *victim, SpellInfo const *spellInfo, bool canReflect=false) const
 
void SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo)
 
virtual uint32 GetFaction () const =0
 
virtual void SetFaction (uint32)
 
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 (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)
 
virtual uint32 GetCastSpellXSpellVisualId (SpellInfo const *spellInfo) const
 
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 UpdateObjectVisibility (bool forced=true)
 
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
 
virtual ObjectGuid GetTransGUID () const
 
void SetTransport (TransportBase *t)
 
virtual float GetStationaryX () const
 
virtual float GetStationaryY () const
 
virtual float GetStationaryZ () const
 
virtual float GetStationaryO () const
 
float GetFloorZ () const
 
virtual float GetCollisionHeight () 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
 
virtual uint16 GetAIAnimKitId () const
 
virtual uint16 GetMovementAnimKitId () const
 
virtual uint16 GetMeleeAnimKitId () const
 
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 ()
 
bool IsInWorld () const
 
virtual void AddToWorld ()
 
virtual void RemoveFromWorld ()
 
ObjectGuid const & GetGUID () const
 
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)
 
TypeID GetTypeId () const
 
bool isType (uint16 mask) const
 
virtual void BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const
 
void SendUpdateToPlayer (Player *player)
 
void BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const
 
void BuildValuesUpdateBlockForPlayerWithFlag (UpdateData *data, UF::UpdateFieldFlag flags, Player const *target) const
 
void BuildDestroyUpdateBlock (UpdateData *data) const
 
void BuildOutOfRangeUpdateBlock (UpdateData *data) const
 
ByteBufferPrepareValuesUpdateBuffer (UpdateData *data) const
 
virtual void DestroyForPlayer (Player *target) const
 
void SendOutOfRangeForPlayer (Player *target) const
 
virtual void ClearUpdateMask (bool remove)
 
virtual std::string GetNameForLocaleIdx (LocaleConstant locale) const =0
 
virtual bool hasQuest (uint32) const
 
virtual bool hasInvolvedQuest (uint32) const
 
void SetIsNewObject (bool enable)
 
bool IsDestroyedObject () const
 
void SetDestroyedObject (bool destroyed)
 
virtual void BuildUpdate (UpdateDataMapType &)
 
void BuildFieldsUpdate (Player *, UpdateDataMapType &) const
 
bool IsWorldObject () const
 
WorldObjectToWorldObject ()
 
WorldObject const * ToWorldObject () const
 
bool IsItem () const
 
ItemToItem ()
 
Item const * ToItem () const
 
bool IsPlayer () const
 
PlayerToPlayer ()
 
Player const * ToPlayer () const
 
bool IsCreature () const
 
CreatureToCreature ()
 
Creature const * ToCreature () const
 
bool IsUnit () const
 
UnitToUnit ()
 
Unit const * ToUnit () const
 
bool IsGameObject () const
 
GameObjectToGameObject ()
 
GameObject const * ToGameObject () const
 
bool IsCorpse () const
 
CorpseToCorpse ()
 
Corpse const * ToCorpse () const
 
bool IsDynObject () const
 
DynamicObjectToDynObject ()
 
DynamicObject const * ToDynObject () const
 
bool IsAreaTrigger () const
 
AreaTriggerToAreaTrigger ()
 
AreaTrigger const * ToAreaTrigger () const
 
bool IsSceneObject () const
 
SceneObjectToSceneObject ()
 
SceneObject const * ToSceneObject () const
 
bool IsConversation () const
 
ConversationToConversation ()
 
Conversation const * ToConversation () const
 
template<typename T >
void ForceUpdateFieldChange (UF::UpdateFieldSetter< T > const &)
 
virtual std::string GetDebugInfo () const
 
Trinity::unique_weak_ptr< ObjectGetWeakPtr () const
 
virtual LootGetLootForPlayer (Player const *player) const
 
virtual void BuildValuesUpdateWithFlag (ByteBuffer *data, UF::UpdateFieldFlag flags, Player const *target) const
 
- Public Member Functions inherited from WorldLocation
constexpr WorldLocation (uint32 mapId=MAPID_INVALID, float x=0.f, float y=0.f, float z=0.f, float o=0.f)
 
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=MAPID_INVALID, float x=0.f, float y=0.f, float z=0.f, float o=0.f)
 
constexpr WorldLocation GetWorldLocation () const
 
constexpr uint32 GetMapId () const
 
std::string GetDebugInfo () const
 
- Public Member Functions inherited from Position
constexpr Position (float x=0, float y=0, float z=0, float o=0)
 
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
 
void GetPositionOffsetTo (Position const &endPos, Position &retOffset) const
 
Position GetPositionWithOffset (Position const &offset) const
 
float GetAbsoluteAngle (float x, float y) const
 
float GetAbsoluteAngle (Position const &pos) const
 
float GetAbsoluteAngle (Position const *pos) const
 
float ToAbsoluteAngle (float relAngle) const
 
float ToRelativeAngle (float absAngle) const
 
float GetRelativeAngle (float x, float y) const
 
float GetRelativeAngle (Position const &pos) const
 
float GetRelativeAngle (Position const *pos) const
 
constexpr bool IsInDist2d (float x, float y, 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 &center, float xradius, float yradius, float zradius) const
 
bool IsWithinDoubleVerticalCylinder (Position const *center, float radius, float height) const
 
bool HasInArc (float arcangle, Position const *pos, float border=2.0f) const
 
bool HasInLine (Position const *pos, float objSize, float width) const
 
std::string ToString () const
 

Static Public Member Functions

static 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 ObjectGuid GetGUID (Object const *o)
 
static WorldObjectToWorldObject (Object *o)
 
static WorldObject const * ToWorldObject (Object const *o)
 
static ItemToItem (Object *o)
 
static Item const * ToItem (Object const *o)
 
static PlayerToPlayer (Object *o)
 
static Player const * ToPlayer (Object const *o)
 
static CreatureToCreature (Object *o)
 
static Creature const * ToCreature (Object const *o)
 
static UnitToUnit (Object *o)
 
static Unit const * ToUnit (Object const *o)
 
static GameObjectToGameObject (Object *o)
 
static GameObject const * ToGameObject (Object const *o)
 
static CorpseToCorpse (Object *o)
 
static Corpse const * ToCorpse (Object const *o)
 
static DynamicObjectToDynObject (Object *o)
 
static DynamicObject const * ToDynObject (Object const *o)
 
static 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 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, 0, 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::UpdateFieldHolder m_values
 
UF::UpdateField< UF::ObjectData, 0, TYPEID_OBJECTm_objectData
 
- 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 BuildValuesCreate (ByteBuffer *data, Player const *target) const override
 
void BuildValuesUpdate (ByteBuffer *data, Player const *target) const override
 
void DestroyForPlayer (Player *target) const override
 
void ClearUpdateMask (bool remove) override
 
void _UpdateSpells (uint32 time)
 
void _DeleteRemovedAuras ()
 
void _UpdateAutoRepeatSpell ()
 
bool IsAlwaysVisibleFor (WorldObject const *seer) const override
 
bool IsAlwaysDetectableFor (WorldObject const *seer) const override
 
void DisableSpline ()
 
void ProcessPositionDataChanged (PositionFullTerrainStatus const &data) override
 
virtual void ProcessTerrainStatusUpdate (ZLiquidStatus oldLiquidStatus, Optional< LiquidData > const &newLiquidData)
 
virtual void AtEnterCombat ()
 
virtual void AtExitCombat ()
 
virtual void AtEngage (Unit *)
 
virtual void AtDisengage ()
 
void SetFeared (bool apply)
 
void SetConfused (bool apply)
 
void SetStunned (bool apply)
 
void SetRooted (bool apply, bool packetOnly=false)
 
- Protected Member Functions inherited from WorldObject
 WorldObject (bool isWorldObject)
 
virtual void ProcessPositionDataChanged (PositionFullTerrainStatus const &data)
 
void SetLocationMapId (uint32 _mapId)
 
void SetLocationInstanceId (uint32 _instanceId)
 
virtual bool CanNeverSee (WorldObject const *obj) const
 
virtual bool CanAlwaysSee (WorldObject const *) const
 
virtual bool IsNeverVisibleFor (WorldObject const *seer, bool allowServersideObjects=false) const
 
virtual bool IsAlwaysVisibleFor (WorldObject const *seer) const
 
virtual bool IsInvisibleDueToDespawn (WorldObject const *seer) const
 
virtual bool IsAlwaysDetectableFor (WorldObject const *seer) const
 
- Protected Member Functions inherited from Object
 Object ()
 
void _Create (ObjectGuid const &guid)
 
template<typename T >
void SetUpdateFieldValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type value)
 
template<typename T >
void SetUpdateFieldFlagValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type flag)
 
template<typename T >
void RemoveUpdateFieldFlagValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< 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 T >
void RemoveOptionalUpdateFieldValue (UF::OptionalUpdateFieldSetter< T > setter)
 
template<typename T >
void SetUpdateFieldStatValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type value)
 
template<typename T >
void ApplyModUpdateFieldValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type mod, bool apply)
 
template<typename T >
void ApplyPercentModUpdateFieldValue (UF::UpdateFieldSetter< T > setter, float percent, bool apply)
 
template<typename Action >
void DoWithSuppressingObjectUpdates (Action &&action)
 
void BuildMovementUpdate (ByteBuffer *data, CreateObjectBits flags, Player *target) const
 
virtual UF::UpdateFieldFlag GetUpdateFieldFlagsFor (Player const *target) const
 
virtual void BuildValuesCreate (ByteBuffer *data, Player const *target) const =0
 
virtual void BuildValuesUpdate (ByteBuffer *data, Player const *target) const =0
 
virtual bool AddToObjectUpdate ()=0
 
virtual void RemoveFromObjectUpdate ()=0
 
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
 
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
 
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. More...
 
- 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 Object
uint16 m_objectType
 
TypeID m_objectTypeId
 
CreateObjectBits m_updateFlag
 
bool m_objectUpdated
 

Private Types

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

Private Member Functions

void UpdateSplineMovement (uint32 t_diff)
 
void UpdateSplinePosition ()
 
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
 
TimeTracker m_splineSyncTimer
 
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 More...
 
bool _isWalkingBeforeCharm
 Are we walking before we were charmed? More...
 
bool _playHoverAnim
 
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
 

Detailed Description

Definition at line 626 of file Unit.h.

Member Typedef Documentation

◆ AreaTriggerList

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

Definition at line 1868 of file Unit.h.

◆ AttackerSet

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

Definition at line 629 of file Unit.h.

◆ AuraApplicationList

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

Definition at line 646 of file Unit.h.

◆ AuraApplicationMap

Definition at line 637 of file Unit.h.

◆ AuraApplicationMapBounds

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

Definition at line 638 of file Unit.h.

◆ AuraApplicationMapBoundsNonConst

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

Definition at line 639 of file Unit.h.

◆ AuraApplicationProcContainer

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

Definition at line 649 of file Unit.h.

◆ AuraEffectList

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

Definition at line 644 of file Unit.h.

◆ AuraList

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

Definition at line 645 of file Unit.h.

◆ AuraMap

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

Definition at line 633 of file Unit.h.

◆ AuraMapBounds

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

Definition at line 634 of file Unit.h.

◆ AuraMapBoundsNonConst

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

Definition at line 635 of file Unit.h.

◆ AuraStateAurasMap

Definition at line 641 of file Unit.h.

◆ AuraStateAurasMapBounds

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

Definition at line 642 of file Unit.h.

◆ ControlList

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

Definition at line 630 of file Unit.h.

◆ Diminishing

Definition at line 647 of file Unit.h.

◆ DynObjectList

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

Definition at line 1862 of file Unit.h.

◆ GameObjectList

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

Definition at line 1865 of file Unit.h.

◆ UnitAIStack

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

Definition at line 1972 of file Unit.h.

◆ UnitVector

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

Definition at line 631 of file Unit.h.

◆ VisibleAuraContainer

Definition at line 652 of file Unit.h.

Constructor & Destructor Documentation

◆ ~Unit()

Unit::~Unit ( )
virtual

Definition at line 389 of file Unit.cpp.

+ Here is the call graph for this function:

◆ Unit()

Unit::Unit ( bool  isWorldObject)
explicitprotected

Definition at line 308 of file Unit.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ _addAttacker()

void Unit::_addAttacker ( Unit pAttacker)

Definition at line 5637 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ _AddAura()

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

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

+ Here is the caller graph for this function:

◆ _ApplyAura()

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

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

+ Here is the call graph for this function:

◆ _CreateAuraApplication()

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

Definition at line 3348 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 2833 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 12125 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 12223 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 5315 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 3592 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 5150 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 4452 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ _removeAttacker()

void Unit::_removeAttacker ( Unit pAttacker)

Definition at line 5642 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ _RemoveNoStackAurasDueToAura()

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

Definition at line 3572 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 3246 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 3551 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 3457 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 5322 of file Unit.cpp.

+ Here is the call graph for this function:

◆ _UnregisterDynObject()

void Unit::_UnregisterDynObject ( DynamicObject dynObj)

Definition at line 5157 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 2906 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 2844 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 11630 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 11618 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)
inline

Definition at line 1419 of file Unit.h.

+ 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 2265 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 1667 of file Unit.h.

+ Here is the caller graph for this function:

◆ AddExtraUnitMovementFlag2()

void Unit::AddExtraUnitMovementFlag2 ( uint32  f)
inline

Definition at line 1673 of file Unit.h.

+ Here is the caller graph for this function:

◆ AddGameObject()

void Unit::AddGameObject ( GameObject gameObj)

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

+ Here is the caller graph for this function:

◆ AddPlayerToVision()

void Unit::AddPlayerToVision ( Player player)

Definition at line 6525 of file Unit.cpp.

+ Here is the call graph for this function:

◆ AddToWorld()

void Unit::AddToWorld ( )
overridevirtual

Reimplemented from WorldObject.

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

+ Here is the caller graph for this function:

◆ AddUnitState()

void Unit::AddUnitState ( uint32  f)
inline

Definition at line 731 of file Unit.h.

+ Here is the caller graph for this function:

◆ AddUnitTypeMask()

void Unit::AddUnitTypeMask ( uint32  mask)
inline

Definition at line 737 of file Unit.h.

+ Here is the caller graph for this function:

◆ AddWorldEffect()

void Unit::AddWorldEffect ( int32  worldEffectId)
inline

Definition at line 1800 of file Unit.h.

+ Here is the call graph for this function:

◆ AIUpdateTick()

void Unit::AIUpdateTick ( uint32  diff)

Definition at line 9525 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 10335 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 10361 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 10992 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 8857 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 8776 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 817 of file Unit.h.

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

◆ ApplyModManaCostMultiplier()

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

Definition at line 816 of file Unit.h.

+ Here is the call graph for this function:
+ 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 13193 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 11764 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 7845 of file Unit.cpp.

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

◆ ApplyStatPctModifier()

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

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

+ Here is the caller graph for this function:

◆ AtEndOfEncounter()

void Unit::AtEndOfEncounter ( EncounterType  type)

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

+ Here is the caller graph for this function:

◆ AtEnterCombat()

void Unit::AtEnterCombat ( )
protectedvirtual

Reimplemented in Player.

Definition at line 8647 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 8670 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 516 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 5670 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 2166 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 5781 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 8686 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 5950 of file Unit.cpp.

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

◆ BuildValuesCreate()

void Unit::BuildValuesCreate ( ByteBuffer data,
Player const *  target 
) const
overrideprotectedvirtual

Implements Object.

Definition at line 13373 of file Unit.cpp.

+ Here is the call graph for this function:

◆ BuildValuesUpdate()

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

Implements Object.

Definition at line 13384 of file Unit.cpp.

+ Here is the call graph for this function:

◆ BuildValuesUpdateForPlayerWithMask()

void Unit::BuildValuesUpdateForPlayerWithMask ( UpdateData data,
UF::ObjectData::Mask const &  requestedObjectMask,
UF::UnitData::Mask const &  requestedUnitMask,
Player const *  target 
) const

Definition at line 13416 of file Unit.cpp.

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

◆ BuildValuesUpdateWithFlag()

void Unit::BuildValuesUpdateWithFlag ( ByteBuffer data,
UF::UpdateFieldFlag  flags,
Player const *  target 
) const
overridevirtual

Reimplemented from Object.

Definition at line 13400 of file Unit.cpp.

+ Here is the call graph for this function:

◆ CalcAbsorbResist()

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

Definition at line 1797 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 1625 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 2028 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 1696 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 11786 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 1754 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 2392 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 5575 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 13336 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 1272 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 1142 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 11759 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 3140 of file Unit.cpp.

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

◆ CancelSpellMissiles()

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

Definition at line 11729 of file Unit.cpp.

+ Here is the call graph for this function:

◆ CanDualWield()

bool Unit::CanDualWield ( ) const
inline

Definition at line 692 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 9323 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 1015 of file Unit.h.

+ Here is the caller graph for this function:

◆ CanInstantCast()

bool Unit::CanInstantCast ( ) const
inline

Definition at line 1763 of file Unit.h.

+ Here is the caller graph for this function:

◆ CanModifyStats()

bool Unit::CanModifyStats ( ) const
inline

Definition at line 1505 of file Unit.h.

+ Here is the caller graph for this function:

◆ CannotTurn()

bool Unit::CannotTurn ( ) const
inline

Definition at line 1040 of file Unit.h.

+ Here is the caller graph for this function:

◆ CanProc()

bool Unit::CanProc ( ) const
inline

Definition at line 1701 of file Unit.h.

+ Here is the caller graph for this function:

◆ CanSwim()

bool Unit::CanSwim ( ) const
virtual

Reimplemented in Creature.

Definition at line 12313 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 2492 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 1135 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 12172 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 1493 of file Unit.h.

+ Here is the caller graph for this function:

◆ CleanupBeforeRemoveFromMap()

void Unit::CleanupBeforeRemoveFromMap ( bool  finalCleanup)

Definition at line 9668 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 9697 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 10227 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 13662 of file Unit.cpp.

+ Here is the call graph for this function:

◆ ClearChannelObjects()

void Unit::ClearChannelObjects ( )
inline

Definition at line 1427 of file Unit.h.

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

◆ ClearDiminishings()

void Unit::ClearDiminishings ( )

Definition at line 8874 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ ClearInCombat()

void Unit::ClearInCombat ( )
inline

Definition at line 1046 of file Unit.h.

+ Here is the caller graph for this function:

◆ ClearUnitState()

void Unit::ClearUnitState ( uint32  f)
inline

Definition at line 733 of file Unit.h.

+ Here is the caller graph for this function:

◆ ClearUpdateMask()

void Unit::ClearUpdateMask ( bool  remove)
overrideprotectedvirtual

Reimplemented from Object.

Definition at line 13471 of file Unit.cpp.

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

◆ ClearWorldEffects()

void Unit::ClearWorldEffects ( )
inline

Definition at line 1807 of file Unit.h.

+ 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 5827 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 5855 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 762 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ CountPctFromCurHealth()

uint64 Unit::CountPctFromCurHealth ( int32  pct) const
inline

Definition at line 786 of file Unit.h.

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

◆ CountPctFromMaxHealth()

uint64 Unit::CountPctFromMaxHealth ( int32  pct) const
inline

Definition at line 785 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 808 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 10441 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 10465 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 11443 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 769 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 748 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 6339 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 1470 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 1248 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 4433 of file Unit.cpp.

+ Here is the call graph for this function:

◆ DeleteCharmInfo()

void Unit::DeleteCharmInfo ( )

Definition at line 9756 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ DeMorph()

void Unit::DeMorph ( )

Definition at line 3241 of file Unit.cpp.

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

◆ DestroyForPlayer()

void Unit::DestroyForPlayer ( Player target) const
overrideprotectedvirtual

Reimplemented from Object.

Definition at line 13456 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 624 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 7920 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 2093 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 6613 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 8077 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 717 of file Unit.h.

+ Here is the caller graph for this function:

◆ EnterVehicle()

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

Definition at line 12118 of file Unit.cpp.

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

◆ ExitVehicle()

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

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

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

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

Reimplemented in Creature.

Definition at line 12204 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 3104 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 3047 of file Unit.cpp.

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

◆ FollowerAdded()

void Unit::FollowerAdded ( AbstractFollower f)
inline

Definition at line 1648 of file Unit.h.

+ Here is the caller graph for this function:

◆ FollowerRemoved()

void Unit::FollowerRemoved ( AbstractFollower f)
inline

Definition at line 1649 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetAI()

UnitAI * Unit::GetAI ( ) const
inline

Definition at line 660 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetAIAnimKitId()

uint16 Unit::GetAIAnimKitId ( ) const
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 911 of file Unit.h.

◆ GetAllMinionsByEntry()

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

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

+ Here is the caller graph for this function:

◆ GetAPMultiplier()

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

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

+ Here is the caller graph for this function:

◆ GetAppliedAuras() [2/2]

AuraApplicationMap const & Unit::GetAppliedAuras ( ) const
inline

Definition at line 1275 of file Unit.h.

◆ GetAreaTrigger()

AreaTrigger * Unit::GetAreaTrigger ( uint32  spellId) const

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

+ Here is the caller graph for this function:

◆ GetArmor()

uint32 Unit::GetArmor ( ) const
inline

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

+ Here is the caller graph for this function:

◆ getAttackerForHelper()

Unit * Unit::getAttackerForHelper ( ) const

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

+ Here is the caller graph for this function:

◆ getAttackTimer()

uint32 Unit::getAttackTimer ( WeaponAttackType  type) const
inline

Definition at line 689 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 4572 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 4560 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 4566 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 4551 of file Unit.cpp.

◆ GetAuraApplication() [2/5]

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

Definition at line 4542 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 4506 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 4533 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 4524 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 4578 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 4648 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 4490 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 4464 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetAuraEffectOfRankedSpell()

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

Definition at line 4478 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetAuraEffectsByType() [1/2]

AuraEffectList & Unit::GetAuraEffectsByType ( AuraType  type)
inline

Definition at line 1322 of file Unit.h.

◆ GetAuraEffectsByType() [2/2]

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

Definition at line 1321 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 4590 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 10303 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetBattlePetCompanionExperience()

uint32 Unit::GetBattlePetCompanionExperience ( ) const
inline

Definition at line 1247 of file Unit.h.

◆ GetBattlePetCompanionGUID()

ObjectGuid Unit::GetBattlePetCompanionGUID ( ) const
inline

Definition at line 1180 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetBattlePetCompanionNameTimestamp()

uint32 Unit::GetBattlePetCompanionNameTimestamp ( ) const
inline

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

+ Here is the caller graph for this function:

◆ GetBonusResistanceMod()

int32 Unit::GetBonusResistanceMod ( SpellSchools  school) const
inline

Definition at line 770 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetBoundingRadius()

float Unit::GetBoundingRadius ( ) const
inline

Definition at line 696 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCastSpellInfo()

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

Reimplemented in Player.

Definition at line 13678 of file Unit.cpp.

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

◆ GetCastSpellXSpellVisualId()

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

Reimplemented from WorldObject.

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

◆ GetChannelSpellId()

uint32 Unit::GetChannelSpellId ( ) const
inline

Definition at line 1402 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetChannelSpellXSpellVisualId()

uint32 Unit::GetChannelSpellXSpellVisualId ( ) const
inline

Definition at line 1410 of file Unit.h.

◆ GetCharmed()

Unit * Unit::GetCharmed ( ) const
inline

Definition at line 1191 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCharmedGUID()

ObjectGuid Unit::GetCharmedGUID ( ) const
inline

Definition at line 1190 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCharmer()

Unit * Unit::GetCharmer ( ) const
inline

Definition at line 1188 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCharmerGUID()

ObjectGuid Unit::GetCharmerGUID ( ) const
inline

Definition at line 1187 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCharmerOrOwner()

Unit * Unit::GetCharmerOrOwner ( ) const
inline

Definition at line 1200 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCharmerOrOwnerGUID()

ObjectGuid Unit::GetCharmerOrOwnerGUID ( ) const
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 1195 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCharmInfo()

CharmInfo * Unit::GetCharmInfo ( )
inline

Definition at line 1221 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetClass()

uint8 Unit::GetClass ( ) const
inline

Definition at line 752 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetClassMask()

uint32 Unit::GetClassMask ( ) const
inline

Definition at line 754 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 13733 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 1023 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCombatManager() [2/2]

CombatManager const & Unit::GetCombatManager ( ) const
inline

Definition at line 1024 of file Unit.h.

◆ GetCombatRatingDamageReduction()

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

Definition at line 11902 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetCombatRatingReduction()

float Unit::GetCombatRatingReduction ( CombatRating  cr) const
private

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

+ Here is the caller graph for this function:

◆ GetContentTuning()

int32 Unit::GetContentTuning ( ) const
inline

Definition at line 745 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetControllingPlayer()

Player * Unit::GetControllingPlayer ( ) const

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

◆ GetCreateHealth()

uint32 Unit::GetCreateHealth ( ) const
inline

Definition at line 1394 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCreateMana()

uint32 Unit::GetCreateMana ( ) const
inline

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

+ Here is the caller graph for this function:

◆ GetCreatorGUID()

ObjectGuid Unit::GetCreatorGUID ( ) const
inlineoverridevirtual

Implements WorldObject.

Definition at line 1172 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetCreatureType()

uint32 Unit::GetCreatureType ( ) const

Definition at line 8880 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 8898 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 1178 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 1442 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 1443 of file Unit.h.

◆ GetCurrentSpellCastTime()

int32 Unit::GetCurrentSpellCastTime ( uint32  spell_id) const

Definition at line 3112 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 7531 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 796 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetDamageReduction()

uint32 Unit::GetDamageReduction ( uint32  damage) const
inline

Definition at line 953 of file Unit.h.

+ Here is the caller graph for this function:

◆ getDeathState()

DeathState Unit::getDeathState ( ) const
inline

Definition at line 1167 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetDebugInfo()

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

Reimplemented from WorldObject.

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

+ Here is the caller graph for this function:

◆ GetDemonCreator()

Unit * Unit::GetDemonCreator ( ) const

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

+ Here is the caller graph for this function:

◆ GetDemonCreatorPlayer()

Player * Unit::GetDemonCreatorPlayer ( ) const

Definition at line 6012 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 8752 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 11520 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 4788 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 4596 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 1567 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetDisplayScale()

float Unit::GetDisplayScale ( ) const
inline

Definition at line 1568 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetDoTsByCaster()

uint32 Unit::GetDoTsByCaster ( ObjectGuid  casterGUID) const

Definition at line 4820 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 5164 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 5170 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetEmoteState()

Emote Unit::GetEmoteState ( ) const
inline

Definition at line 851 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetExtraUnitMovementFlags()

uint32 Unit::GetExtraUnitMovementFlags ( ) const
inline

Definition at line 1670 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetExtraUnitMovementFlags2()

uint32 Unit::GetExtraUnitMovementFlags2 ( ) const
inline

Definition at line 1676 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetFaction()

uint32 Unit::GetFaction ( ) const
inlineoverridevirtual

Implements WorldObject.

Definition at line 858 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetFirstControlled()

Unit * Unit::GetFirstControlled ( ) const

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

+ Here is the call graph for this function:

◆ GetFlatModifierValue()

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

Definition at line 9030 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetFollowAngle()

virtual float Unit::GetFollowAngle ( ) const
inlinevirtual

Reimplemented in Minion.

Definition at line 1744 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetGameObject()

GameObject * Unit::GetGameObject ( uint32  spellId) const

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

+ Here is the caller graph for this function:

◆ GetGender()

Gender Unit::GetGender ( ) const
inline

Definition at line 755 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetGuardianPet()

Guardian * Unit::GetGuardianPet ( ) const

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

◆ GetHealthGain()

int64 Unit::GetHealthGain ( int64  dVal)

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

+ Here is the caller graph for this function:

◆ GetHealthPct()

float Unit::GetHealthPct ( ) const
inline

Definition at line 784 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetHighestExclusiveSameEffectSpellGroupValue()

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

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

+ Here is the caller graph for this function:

◆ GetLastDamagedTargetGuid()

ObjectGuid Unit::GetLastDamagedTargetGuid ( ) const
inline

Definition at line 947 of file Unit.h.

◆ GetLastExtraAttackSpell()

uint32 Unit::GetLastExtraAttackSpell ( ) const
inline

Definition at line 944 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetLevel()

uint8 Unit::GetLevel ( ) const
inline

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

+ Here is the caller graph for this function:

◆ GetMaxHealth()

uint64 Unit::GetMaxHealth ( ) const
inline

Definition at line 777 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetMaxNegativeAuraModifier() [1/2]

int32 Unit::GetMaxNegativeAuraModifier ( AuraType  auraType) const

Definition at line 4944 of file Unit.cpp.

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

◆ GetMaxNegativeAuraModifier() [2/2]

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

Definition at line 4913 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetMaxNegativeAuraModifierByAffectMask()

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

Definition at line 5059 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetMaxNegativeAuraModifierByMiscMask()

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

Definition at line 4979 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetMaxNegativeAuraModifierByMiscValue()

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

Definition at line 5019 of file Unit.cpp.

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

◆ GetMaxPositiveAuraModifier() [1/2]

int32 Unit::GetMaxPositiveAuraModifier ( AuraType  auraType) const

Definition at line 4939 of file Unit.cpp.

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

◆ GetMaxPositiveAuraModifier() [2/2]

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

Definition at line 4897 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetMaxPositiveAuraModifierByAffectMask()

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

Definition at line 5049 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetMaxPositiveAuraModifierByMiscMask()

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

Definition at line 4969 of file Unit.cpp.

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

◆ GetMaxPositiveAuraModifierByMiscValue()

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

Definition at line 5009 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetMaxPower()

int32 Unit::GetMaxPower ( Powers  power) const

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

+ Here is the caller graph for this function:

◆ GetMechanicImmunityMask()

uint64 Unit::GetMechanicImmunityMask ( ) const

Definition at line 7541 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetMechanicResistChance()

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

Definition at line 2469 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 915 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 6397 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 666 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 1174 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetMinPower()

int32 Unit::GetMinPower ( Powers  power) const
inline

Definition at line 805 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetModelForForm()

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

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

◆ GetMotionMaster() [2/2]

MotionMaster const * Unit::GetMotionMaster ( ) const
inline

Definition at line 1653 of file Unit.h.

◆ GetMountCapability()

MountCapabilityEntry const * Unit::GetMountCapability ( uint32  mountType) const

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

+ Here is the caller graph for this function:

◆ GetMovementAnimKitId()

uint16 Unit::GetMovementAnimKitId ( ) const
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 913 of file Unit.h.

◆ GetMovementForces()

MovementForces const * Unit::GetMovementForces ( ) const
inline

Definition at line 1153 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetNativeDisplayId()

uint32 Unit::GetNativeDisplayId ( ) const
inline

Definition at line 1570 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetNativeDisplayScale()

float Unit::GetNativeDisplayScale ( ) const
inline

Definition at line 1571 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 757 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 1565 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetNegStat()

float Unit::GetNegStat ( Stats  stat) const
inline

Definition at line 1399 of file Unit.h.

◆ GetNextRandomRaidMemberOrPet()

Unit * Unit::GetNextRandomRaidMemberOrPet ( float  radius)

Definition at line 6473 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetNpcFlags()

NPCFlags Unit::GetNpcFlags ( ) const
inline

Definition at line 980 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetNpcFlags2()

NPCFlags2 Unit::GetNpcFlags2 ( ) const
inline

Definition at line 986 of file Unit.h.

◆ GetOwnedAura()

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

Definition at line 3669 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetOwnedAuras() [1/2]

AuraMap & Unit::GetOwnedAuras ( )
inline

Definition at line 1264 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetOwnedAuras() [2/2]

AuraMap const & Unit::GetOwnedAuras ( ) const
inline

Definition at line 1265 of file Unit.h.

◆ GetOwnerGUID()

ObjectGuid Unit::GetOwnerGUID ( ) const
inlineoverridevirtual

Implements WorldObject.

Definition at line 1170 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetPartyMembers()

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

Definition at line 11565 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetPctModifierValue()

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

Definition at line 9041 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetPetFlags()

UnitPetFlag Unit::GetPetFlags ( ) const
inline

Definition at line 877 of file Unit.h.

◆ GetPetGUID()

ObjectGuid Unit::GetPetGUID ( ) const
inline

Definition at line 1176 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetPlayerMovingMe()

Player * Unit::GetPlayerMovingMe ( ) const
inline

Definition at line 1232 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetPosStat()

float Unit::GetPosStat ( Stats  stat) const
inline

Definition at line 1398 of file Unit.h.

◆ GetPower()

int32 Unit::GetPower ( Powers  power) const

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

+ Here is the caller graph for this function:

◆ GetPowerType()

Powers Unit::GetPowerType ( ) const
inline

Definition at line 799 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 7873 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 9892 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 1703 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetPvpFlags()

UnitPVPStateFlags Unit::GetPvpFlags ( ) const
inline

Definition at line 866 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetRace()

uint8 Unit::GetRace ( ) const
inline

Definition at line 749 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetRaceMask()

uint64 Unit::GetRaceMask ( ) const
inline

Definition at line 751 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetResistance() [1/2]

int32 Unit::GetResistance ( SpellSchoolMask  mask) const

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

+ Here is the caller graph for this function:

◆ GetScheduledChangeAI()

UnitAI * Unit::GetScheduledChangeAI ( )
protected

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

+ Here is the caller graph for this function:

◆ GetShapeshiftForm()

ShapeshiftForm Unit::GetShapeshiftForm ( ) const
inline

Definition at line 1463 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetSharedVisionList()

SharedVisionList const & Unit::GetSharedVisionList ( )
inline

Definition at line 1234 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetSheath()

SheathState Unit::GetSheath ( ) const
inline

Definition at line 854 of file Unit.h.

◆ GetSingleCastAuras() [1/2]

AuraList & Unit::GetSingleCastAuras ( )
inline

Definition at line 1323 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetSingleCastAuras() [2/2]

AuraList const & Unit::GetSingleCastAuras ( ) const
inline

Definition at line 1324 of file Unit.h.

◆ GetSpeed()

float Unit::GetSpeed ( UnitMoveType  mtype) const

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

+ Here is the caller graph for this function:

◆ GetSpellHistory() [1/2]

SpellHistory * Unit::GetSpellHistory ( )
inline

Definition at line 1457 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetSpellHistory() [2/2]

SpellHistory const * Unit::GetSpellHistory ( ) const
inline

Definition at line 1458 of file Unit.h.

◆ GetSpellOtherImmunityMask()

EnumFlag< SpellOtherImmunity > Unit::GetSpellOtherImmunityMask ( ) const

Definition at line 7551 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetSpellSchoolByAuraGroup()

SpellSchools Unit::GetSpellSchoolByAuraGroup ( UnitMods  unitMod) const

Definition at line 9227 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetStandState()

UnitStandStateType Unit::GetStandState ( ) const
inline

Definition at line 886 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetStat()

float Unit::GetStat ( Stats  stat) const
inline

Definition at line 760 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetStatByAuraGroup()

Stats Unit::GetStatByAuraGroup ( UnitMods  unitMod) const

Definition at line 9247 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetTarget()

ObjectGuid Unit::GetTarget ( ) const
inline

Definition at line 1759 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetThreatManager() [1/2]

ThreatManager & Unit::GetThreatManager ( )
inline

Definition at line 1063 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetThreatManager() [2/2]

ThreatManager const & Unit::GetThreatManager ( ) const
inline

Definition at line 1064 of file Unit.h.

◆ GetTopAI()

UnitAI * Unit::GetTopAI ( ) const
inlineprotected

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

+ Here is the caller graph for this function:

◆ GetTotalAuraModifier() [1/2]

int32 Unit::GetTotalAuraModifier ( AuraType  auraType) const

Definition at line 4929 of file Unit.cpp.

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

◆ GetTotalAuraModifier() [2/2]

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

Definition at line 4843 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetTotalAuraModifierByAffectMask()

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

Definition at line 5029 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetTotalAuraModifierByMiscMask()

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

Definition at line 4949 of file Unit.cpp.

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

◆ GetTotalAuraModifierByMiscValue()

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

Definition at line 4989 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 9211 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 4934 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 4870 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 5039 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 4959 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 4999 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 9197 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 1574 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetTransGUID()

ObjectGuid Unit::GetTransGUID ( ) const
overridevirtual

Reimplemented from WorldObject.

Definition at line 11510 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 1230 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 2730 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 2827 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 2761 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 2796 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 2647 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 2723 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetUnitMovementFlags()

uint32 Unit::GetUnitMovementFlags ( ) const
inline

Definition at line 1664 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 2683 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 Object.

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

+ Here is the caller graph for this function:

◆ GetVehicleBase()

Unit * Unit::GetVehicleBase ( ) const

Definition at line 11480 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 11501 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 1711 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 1712 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetVehicleRoot()

Unit * Unit::GetVehicleRoot ( ) const

Definition at line 11485 of file Unit.cpp.

+ Here is the call graph for this function:

◆ GetVictim()

Unit * Unit::GetVictim ( ) const
inline

Definition at line 715 of file Unit.h.

◆ GetVignette()

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

Definition at line 1809 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetVirtualItemAppearanceMod()

uint16 Unit::GetVirtualItemAppearanceMod ( uint32  slot) const

Definition at line 13596 of file Unit.cpp.

◆ GetVirtualItemId()

uint32 Unit::GetVirtualItemId ( uint32  slot) const

Definition at line 13588 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ GetVisibleAuras()

VisibleAuraContainer const & Unit::GetVisibleAuras ( ) const
inline

Definition at line 1549 of file Unit.h.

+ Here is the caller graph for this function:

◆ GetWeaponDamageRange()

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

Definition at line 9315 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 7862 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 1249 of file Unit.h.

◆ HandleEmoteCommand()

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

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

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

◆ HandleSpellClick()

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

First check simple relations from clicker to clickee

Check database conditions

Definition at line 12027 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 8963 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 4669 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 4664 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 4634 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 5961 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ HasAuraType()

bool Unit::HasAuraType ( AuraType  auraType) const

Definition at line 4674 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 4696 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 4679 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 716 of file Unit.cpp.

+ Here is the call graph for this function:

◆ HasAuraTypeWithMiscvalue()

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

Definition at line 4687 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 4714 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 4705 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 4739 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 724 of file Unit.cpp.

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

◆ HasBreakableByDamageCrowdControlAura()

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

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

+ Here is the caller graph for this function:

◆ HasExtraUnitMovementFlag2()

bool Unit::HasExtraUnitMovementFlag2 ( uint32  f) const
inline

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

◆ HasInvisibilityAura()

bool Unit::HasInvisibilityAura ( ) const
inline

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

+ Here is the caller graph for this function:

◆ HasNpcFlag2()

bool Unit::HasNpcFlag2 ( NPCFlags2  flags) const
inline

Definition at line 987 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasPetFlag()

bool Unit::HasPetFlag ( UnitPetFlag  flags) const
inline

Definition at line 878 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasPvpFlag()

bool Unit::HasPvpFlag ( UnitPVPStateFlags  flags) const
inline

Definition at line 867 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasRootAura()

bool Unit::HasRootAura ( ) const
inline

Definition at line 1076 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasScheduledAIChange()

bool Unit::HasScheduledAIChange ( ) const
protected

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

+ Here is the caller graph for this function:

◆ HasStealthAura()

bool Unit::HasStealthAura ( ) const
inline

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

+ Here is the call graph for this function:

◆ HasUnitFlag()

bool Unit::HasUnitFlag ( UnitFlags  flags) const
inline

Definition at line 832 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasUnitFlag2()

bool Unit::HasUnitFlag2 ( UnitFlags2  flags) const
inline

Definition at line 837 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasUnitFlag3()

bool Unit::HasUnitFlag3 ( UnitFlags3  flags) const
inline

Definition at line 842 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasUnitMovementFlag()

bool Unit::HasUnitMovementFlag ( uint32  f) const
inline

Definition at line 1663 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasUnitState()

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

Definition at line 732 of file Unit.h.

◆ HasUnitTypeMask()

uint32 Unit::HasUnitTypeMask ( uint32  mask) const
inline

Definition at line 736 of file Unit.h.

+ Here is the caller graph for this function:

◆ HasVisibleAura()

bool Unit::HasVisibleAura ( AuraApplication aurApp) const
inline

Definition at line 1550 of file Unit.h.

+ Here is the caller graph for this function:

◆ haveOffhandWeapon()

bool Unit::haveOffhandWeapon ( ) const

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

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

◆ HealthAbovePct()

bool Unit::HealthAbovePct ( int32  pct) const
inline

Definition at line 782 of file Unit.h.

+ Here is the caller graph for this function:

◆ HealthAbovePctHealed()

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

Definition at line 783 of file Unit.h.

+ Here is the caller graph for this function:

◆ HealthBelowPct()

bool Unit::HealthBelowPct ( int32  pct) const
inline

Definition at line 780 of file Unit.h.

+ Here is the caller graph for this function:

◆ HealthBelowPctDamaged()

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

Definition at line 781 of file Unit.h.

+ Here is the caller graph for this function:

◆ IncrDiminishing()

void Unit::IncrDiminishing ( SpellInfo const *  auraSpellInfo)

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

+ Here is the caller graph for this function:

◆ InitStatBuffMods()

void Unit::InitStatBuffMods ( )

Definition at line 5069 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 10485 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 614 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 3089 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 3017 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 678 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsAIEnabled()

bool Unit::IsAIEnabled ( ) const
inline

Definition at line 658 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsAlive()

bool Unit::IsAlive ( ) const
inline

Definition at line 1164 of file Unit.h.

◆ IsAlwaysDetectableFor()

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

Reimplemented from WorldObject.

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

+ Here is the call graph for this function:

◆ IsAreaSpiritHealer()

bool Unit::IsAreaSpiritHealer ( ) const
inline

Definition at line 1002 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsAreaSpiritHealerIndividual()

bool Unit::IsAreaSpiritHealerIndividual ( ) const
inline

Definition at line 1009 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsArmorer()

bool Unit::IsArmorer ( ) const
inline

Definition at line 1005 of file Unit.h.

◆ isAttackingPlayer()

bool Unit::isAttackingPlayer ( ) const

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

+ Here is the caller graph for this function:

◆ IsAuctioner()

bool Unit::IsAuctioner ( ) const
inline

Definition at line 1004 of file Unit.h.

◆ IsBanker()

bool Unit::IsBanker ( ) const
inline

Definition at line 999 of file Unit.h.

◆ IsBattleMaster()

bool Unit::IsBattleMaster ( ) const
inline

Definition at line 998 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsBlockCritical()

bool Unit::IsBlockCritical ( )

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

+ Here is the caller graph for this function:

◆ IsCharmedOwnedByPlayerOrPlayer()

bool Unit::IsCharmedOwnedByPlayerOrPlayer ( ) const
inline

Definition at line 1196 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsCombatDisallowed()

bool Unit::IsCombatDisallowed ( ) const
inline

Definition at line 1796 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsContestedGuard()

bool Unit::IsContestedGuard ( ) const

Definition at line 11602 of file Unit.cpp.

+ Here is the call graph for this function:

◆ IsControlledByPlayer()

bool Unit::IsControlledByPlayer ( ) const
inline

Definition at line 1193 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsCritter()

bool Unit::IsCritter ( ) const
inline

Definition at line 1010 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 1616 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 1166 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 8920 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 1748 of file Unit.h.

+ Here is the caller graph for this function:

◆ isDying()

bool Unit::isDying ( ) const
inline

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

+ Here is the caller graph for this function:

◆ IsEngagedBy()

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

Definition at line 1020 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsFalling()

bool Unit::IsFalling ( ) const

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

+ Here is the caller graph for this function:

◆ IsFFAPvP()

bool Unit::IsFFAPvP ( ) const
inline

Definition at line 874 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsFlying()

bool Unit::IsFlying ( ) const
inline

Definition at line 1735 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsFrozen()

bool Unit::IsFrozen ( ) const
inline

Definition at line 1078 of file Unit.h.

◆ IsFullHealth()

bool Unit::IsFullHealth ( ) const
inline

Definition at line 779 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsGossip()

bool Unit::IsGossip ( ) const
inline

Definition at line 995 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsGravityDisabled()

bool Unit::IsGravityDisabled ( ) const
inline

Definition at line 1135 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsGuardian()

bool Unit::IsGuardian ( ) const
inline

Definition at line 739 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsGuildMaster()

bool Unit::IsGuildMaster ( ) const
inline

Definition at line 997 of file Unit.h.

◆ IsHighestExclusiveAura()

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

Definition at line 13501 of file Unit.cpp.

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

◆ IsHighestExclusiveAuraEffect()

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

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

+ Here is the caller graph for this function:

◆ IsHunterPet()

bool Unit::IsHunterPet ( ) const
inline

Definition at line 741 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsImmunedToDamage() [1/2]

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

Definition at line 7394 of file Unit.cpp.

+ Here is the call graph for this function:

◆ IsImmunedToDamage() [2/2]

bool Unit::IsImmunedToDamage ( SpellSchoolMask  meleeSchoolMask) const

Definition at line 7376 of file Unit.cpp.

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

◆ IsImmunedToSpell()

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

Definition at line 7431 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 7561 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 1027 of file Unit.h.

◆ IsImmuneToNPC()

bool Unit::IsImmuneToNPC ( ) const
inline

Definition at line 1033 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsImmuneToPC()

bool Unit::IsImmuneToPC ( ) const
inline

Definition at line 1030 of file Unit.h.

+ Here is the caller graph for this function:

◆ isInAccessiblePlaceFor()

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

Definition at line 3165 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 3160 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 1043 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsInCombatWith()

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

Definition at line 1044 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 8915 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 8909 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 1012 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 3155 of file Unit.cpp.

+ Here is the call graph for this function:

◆ IsInnkeeper()

bool Unit::IsInnkeeper ( ) const
inline

Definition at line 1000 of file Unit.h.

◆ IsInPartyWith()

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

Definition at line 11527 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 11546 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 872 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsInteractionAllowedInCombat()

bool Unit::IsInteractionAllowedInCombat ( ) const
inline

Definition at line 1052 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsInteractionAllowedWhileHostile()

bool Unit::IsInteractionAllowedWhileHostile ( ) const
inline

Definition at line 1049 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsInWater()

bool Unit::IsInWater ( ) const

Definition at line 3186 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 1747 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 6388 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ IsMounted()

bool Unit::IsMounted ( ) const
inline

Definition at line 898 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsMovementPreventedByCasting()

bool Unit::IsMovementPreventedByCasting ( ) const
virtual

Reimplemented in Creature.

Definition at line 3119 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 1732 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 3059 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ IsOnOceanFloor()

bool Unit::IsOnOceanFloor ( ) const

Definition at line 3196 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 11475 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 740 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsPlayingHoverAnim()

bool Unit::IsPlayingHoverAnim ( ) const
inline

Definition at line 1130 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsPolymorphed()

bool Unit::IsPolymorphed ( ) const

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

+ Here is the caller graph for this function:

◆ isPossessedByPlayer()

bool Unit::isPossessedByPlayer ( ) const

Definition at line 6455 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 6465 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 6460 of file Unit.cpp.

+ Here is the call graph for this function:

◆ IsPvP()

bool Unit::IsPvP ( ) const
inline

Definition at line 873 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsQuestGiver()

bool Unit::IsQuestGiver ( ) const
inline

Definition at line 994 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 4776 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 8068 of file Unit.cpp.

+ Here is the call graph for this function:

◆ IsSilenced()

bool Unit::IsSilenced ( SpellSchoolMask  schoolMask) const
inline

Definition at line 1453 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsSitState()

bool Unit::IsSitState ( ) const

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

+ Here is the caller graph for this function:

◆ IsSpiritService()

bool Unit::IsSpiritService ( ) const
inline

Definition at line 1008 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsSplineEnabled()

bool Unit::IsSplineEnabled ( ) const

Definition at line 13355 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ IsStandState()

bool Unit::IsStandState ( ) const

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

+ Here is the caller graph for this function:

◆ IsSummon()

bool Unit::IsSummon ( ) const
inline

Definition at line 738 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsTabardDesigner()

bool Unit::IsTabardDesigner ( ) const
inline

Definition at line 1003 of file Unit.h.

◆ isTargetableForAttack()

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

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

+ Here is the caller graph for this function:

◆ IsThreatened()

bool Unit::IsThreatened ( ) const

Definition at line 8163 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 1059 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 742 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsTrainer()

bool Unit::IsTrainer ( ) const
inline

Definition at line 993 of file Unit.h.

+ Here is the caller graph for this function:

◆ isTurning()

bool Unit::isTurning ( ) const
inline

Definition at line 1733 of file Unit.h.

◆ IsUnderWater()

bool Unit::IsUnderWater ( ) const

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

+ Here is the caller graph for this function:

◆ IsVehicle()

bool Unit::IsVehicle ( ) const
inline

Definition at line 743 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsVendor()

bool Unit::IsVendor ( ) const
inline

Definition at line 992 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsVisible()

bool Unit::IsVisible ( ) const

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

+ Here is the caller graph for this function:

◆ IsWildBattlePet()

bool Unit::IsWildBattlePet ( ) const
inline

Definition at line 1006 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsWithinBoundaryRadius()

bool Unit::IsWithinBoundaryRadius ( const Unit obj) const

Definition at line 672 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 635 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 699 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 651 of file Unit.cpp.

+ Here is the call graph for this function:

◆ JumpTo() [1/2]

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

Definition at line 12004 of file Unit.cpp.

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

◆ JumpTo() [2/2]

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

Definition at line 12019 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 10591 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 921 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,
Movement::SpellEffectExtraData const *  spellEffectExtraData = nullptr 
)

Definition at line 11860 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,
Mechanics  mechanic = MECHANIC_NONE,
SpellSchoolMask  damageSchoolMask = SPELL_SCHOOL_MASK_NORMAL,
Spell spell = nullptr,
AuraEffect const *  aurEff = nullptr 
)

Definition at line 7624 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 7736 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 2508 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 11797 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 5894 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 8182 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 8280 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 506 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 7887 of file Unit.cpp.

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

◆ NearTeleportTo() [1/2]

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

Definition at line 1115 of file Unit.h.

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

◆ NearTeleportTo() [2/2]

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

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

+ Here is the caller graph for this function:

◆ OutDebugInfo()

void Unit::OutDebugInfo ( ) const

Definition at line 12514 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 10064 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 10529 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 9546 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 3201 of file Unit.cpp.

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

◆ ProcessTerrainStatusUpdate()

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

Reimplemented in Player.

Definition at line 3208 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 5407 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 9850 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 10039 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 9535 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ RecalculateObjectScale()

void Unit::RecalculateObjectScale ( )
virtual

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

+ Here is the caller graph for this function:

◆ RemoveAllAreaTriggers()

void Unit::RemoveAllAreaTriggers ( )

Definition at line 5372 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ RemoveAllAttackers()

void Unit::RemoveAllAttackers ( )

Definition at line 5881 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ RemoveAllAuras()

void Unit::RemoveAllAuras ( )

Definition at line 4242 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 4377 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 4398 of file Unit.cpp.

+ Here is the call graph for this function:

◆ RemoveAllAurasOnDeath()

void Unit::RemoveAllAurasOnDeath ( )

Definition at line 4333 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 4356 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 6428 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 5195 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ RemoveAllFollowers()

void Unit::RemoveAllFollowers ( )

Definition at line 8586 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 5302 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 4419 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 6245 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 3758 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 3784 of file Unit.cpp.

+ Here is the call graph for this function:

◆ RemoveAreaAurasDueToLeaveWorld()

void Unit::RemoveAreaAurasDueToLeaveWorld ( )

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

◆ RemoveAreaTrigger() [2/2]

void Unit::RemoveAreaTrigger ( uint32  spellId)

Definition at line 5345 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 4289 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 3750 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 3715 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 3685 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 3698 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 3847 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 4194 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 3990 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 3812 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 3976 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 3831 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 3864 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 3892 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 4303 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 4010 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 4136 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 4101 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 4162 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 6546 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)
inline

Definition at line 1421 of file Unit.h.

+ Here is the call graph for this function:

◆ RemoveCharmAuras()

void Unit::RemoveCharmAuras ( )

Definition at line 6551 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 11315 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 5180 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 1668 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemoveExtraUnitMovementFlag2()

void Unit::RemoveExtraUnitMovementFlag2 ( uint32  f)
inline

Definition at line 1674 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemoveFromWorld()

void Unit::RemoveFromWorld ( )
overridevirtual

Reimplemented from WorldObject.

Definition at line 9611 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 5238 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 5278 of file Unit.cpp.

◆ RemoveMovementForce()

void Unit::RemoveMovementForce ( ObjectGuid  id)

Definition at line 13228 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 4154 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 4022 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 983 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemoveNpcFlag2()

void Unit::RemoveNpcFlag2 ( NPCFlags2  flags)
inline

Definition at line 989 of file Unit.h.

◆ RemoveOwnedAura() [1/3]

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

Definition at line 3641 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 3608 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 3629 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 3771 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 3798 of file Unit.cpp.

+ Here is the call graph for this function:

◆ RemovePetFlag()

void Unit::RemovePetFlag ( UnitPetFlag  flags)
inline

Definition at line 880 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemovePlayerFromVision()

void Unit::RemovePlayerFromVision ( Player player)

Definition at line 6536 of file Unit.cpp.

+ Here is the call graph for this function:

◆ RemovePvpFlag()

void Unit::RemovePvpFlag ( UnitPVPStateFlags  flags)
inline

Definition at line 869 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemoveUnitFlag()

void Unit::RemoveUnitFlag ( UnitFlags  flags)
inline

Definition at line 834 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemoveUnitFlag2()

void Unit::RemoveUnitFlag2 ( UnitFlags2  flags)
inline

Definition at line 839 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemoveUnitFlag3()

void Unit::RemoveUnitFlag3 ( UnitFlags3  flags)
inline

Definition at line 844 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemoveUnitMovementFlag()

void Unit::RemoveUnitMovementFlag ( uint32  f)
inline

Definition at line 1662 of file Unit.h.

+ Here is the caller graph for this function:

◆ RemoveVehicleKit()

void Unit::RemoveVehicleKit ( bool  onRemoveFromWorld = false)

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

+ Here is the caller graph for this function:

◆ RemoveVisibleAura()

void Unit::RemoveVisibleAura ( AuraApplication aurApp)

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

Definition at line 1554 of file Unit.h.

◆ RemoveWorldEffect()

void Unit::RemoveWorldEffect ( int32  worldEffectId)
inline

Definition at line 1801 of file Unit.h.

+ Here is the call graph for this function:

◆ ReplaceAllNpcFlags()

void Unit::ReplaceAllNpcFlags ( NPCFlags  flags)
inline

Definition at line 984 of file Unit.h.

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

◆ ReplaceAllNpcFlags2()

void Unit::ReplaceAllNpcFlags2 ( NPCFlags2  flags)
inline

Definition at line 990 of file Unit.h.

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

◆ ReplaceAllPetFlags()

void Unit::ReplaceAllPetFlags ( UnitPetFlag  flags)
inline

Definition at line 881 of file Unit.h.

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

◆ ReplaceAllPvpFlags()

void Unit::ReplaceAllPvpFlags ( UnitPVPStateFlags  flags)
inline

Definition at line 870 of file Unit.h.

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

◆ ReplaceAllSilencedSchoolMask()

void Unit::ReplaceAllSilencedSchoolMask ( SpellSchoolMask  schoolMask)
inline

Definition at line 1455 of file Unit.h.

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

◆ ReplaceAllUnitFlags()

void Unit::ReplaceAllUnitFlags ( UnitFlags  flags)
inline

Definition at line 835 of file Unit.h.

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

◆ ReplaceAllUnitFlags2()

void Unit::ReplaceAllUnitFlags2 ( UnitFlags2  flags)
inline

Definition at line 840 of file Unit.h.

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

◆ ReplaceAllUnitFlags3()

void Unit::ReplaceAllUnitFlags3 ( UnitFlags3  flags)
inline

Definition at line 845 of file Unit.h.

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

◆ ReplaceAllVisFlags()

void Unit::ReplaceAllVisFlags ( UnitVisFlags  flags)
inline

Definition at line 893 of file Unit.h.

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

◆ resetAttackTimer()

void Unit::resetAttackTimer ( WeaponAttackType  type = BASE_ATTACK)

Definition at line 630 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 9579 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 10172 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 11417 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 10076 of file Unit.cpp.

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

◆ RewardRage()

void Unit::RewardRage ( uint32  baseRage)

Definition at line 12463 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 2280 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 13562 of file Unit.cpp.

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

+ Here is the call graph for this function:

◆ ScheduleAIChange()

void Unit::ScheduleAIChange ( )

Definition at line 9566 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 10272 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 5488 of file Unit.cpp.

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

◆ SendAttackStateUpdate() [2/2]

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

Definition at line 5518 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SendCancelSpellVisual()

void Unit::SendCancelSpellVisual ( uint32  id)

Definition at line 11703 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SendCancelSpellVisualKit()

void Unit::SendCancelSpellVisualKit ( uint32  id)

Definition at line 11721 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SendClearTarget()

void Unit::SendClearTarget ( )

Definition at line 12556 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 10522 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 6600 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 6572 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 2444 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 2452 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 11849 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 5439 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 10001 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 10025 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 10013 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,
uint16  missReason,
uint16  reflectStatus,
float  travelSpeed,
bool  speedAsTime = false,
float  launchDelay = 0.0f 
)

Definition at line 11689 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SendPlaySpellVisual() [2/2]

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

Definition at line 11674 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 11711 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 13176 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 5478 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 5469 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SendSpellNonMeleeDamageLog()

void Unit::SendSpellNonMeleeDamageLog ( SpellNonMeleeDamage const *  log)

Definition at line 5378 of file Unit.cpp.

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

◆ SendTeleportPacket()

void Unit::SendTeleportPacket ( Position const &  pos)

Definition at line 12343 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 9540 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 10543 of file Unit.cpp.

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

◆ SetAnimTier()

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

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

+ Here is the caller graph for this function:

◆ SetAttackPower()

void Unit::SetAttackPower ( int32  attackPower)
inline

Definition at line 1516 of file Unit.h.

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

◆ SetAttackPowerModNeg()

void Unit::SetAttackPowerModNeg ( int32  attackPowerMod)
inline

Definition at line 1518 of file Unit.h.

+ Here is the call graph for this function:

◆ SetAttackPowerModPos()

void Unit::SetAttackPowerModPos ( int32  attackPowerMod)
inline

Definition at line 1517 of file Unit.h.

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

◆ SetAttackPowerMultiplier()

void Unit::SetAttackPowerMultiplier ( float  attackPowerMult)
inline

Definition at line 1519 of file Unit.h.

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

◆ setAttackTimer()

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

Definition at line 687 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 11665 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 10308 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 1530 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetBattlePetCompanionExperience()

void Unit::SetBattlePetCompanionExperience ( uint32  experience)
inline

Definition at line 1248 of file Unit.h.

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

◆ SetBattlePetCompanionGUID()

void Unit::SetBattlePetCompanionGUID ( ObjectGuid  guid)
inline

Definition at line 1181 of file Unit.h.

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

◆ SetBattlePetCompanionNameTimestamp()

void Unit::SetBattlePetCompanionNameTimestamp ( uint32  timestamp)
inline

Definition at line 1246 of file Unit.h.

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

◆ SetBonusResistanceMod()

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

Definition at line 773 of file Unit.h.

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

◆ SetBoundingRadius()

void Unit::SetBoundingRadius ( float  boundingRadius)
inline

Definition at line 697 of file Unit.h.

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

+ Here is the call graph for this function:

◆ SetCanDualWield()

virtual void Unit::SetCanDualWield ( bool  value)
inlinevirtual

Reimplemented in Creature.

Definition at line 693 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCanFly()

bool Unit::SetCanFly ( bool  enable)

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

+ Here is the caller graph for this function:

◆ SetCannotTurn()

void Unit::SetCannotTurn ( bool  apply)

Definition at line 8155 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SetCantProc()

void Unit::SetCantProc ( bool  apply)

Definition at line 10392 of file Unit.cpp.

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

◆ SetCanTransitionBetweenSwimAndFly()

bool Unit::SetCanTransitionBetweenSwimAndFly ( bool  enable)

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

Definition at line 1420 of file Unit.h.

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

◆ SetChannelSpellId()

void Unit::SetChannelSpellId ( uint32  channelSpellId)
inline

Definition at line 1403 of file Unit.h.

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

◆ SetChannelVisual()

void Unit::SetChannelVisual ( SpellCastVisual  channelVisual)
inline

Definition at line 1412 of file Unit.h.

+ Here is the call graph for this function:
+ 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 6258 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 11142 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 753 of file Unit.h.

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

◆ SetCollision()

bool Unit::SetCollision ( bool  disable)

Definition at line 13011 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SetCombatReach()

void Unit::SetCombatReach ( float  combatReach)
inline

Definition at line 695 of file Unit.h.

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

◆ SetConfused()

void Unit::SetConfused ( bool  apply)
protected

Definition at line 11117 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 10911 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 902 of file Unit.h.

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

◆ SetCreatedBySpell()

void Unit::SetCreatedBySpell ( int32  spellId)
inline

Definition at line 847 of file Unit.h.

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

◆ SetCreateHealth()

void Unit::SetCreateHealth ( uint32  val)
inline

Definition at line 1393 of file Unit.h.

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

◆ SetCreateMana()

void Unit::SetCreateMana ( uint32  val)
inline

Definition at line 1395 of file Unit.h.

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

◆ SetCreateStat()

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

Definition at line 1392 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetCreatorGUID()

void Unit::SetCreatorGUID ( ObjectGuid  creator)
inline

Definition at line 1173 of file Unit.h.

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

◆ SetCritterGUID()

void Unit::SetCritterGUID ( ObjectGuid  guid)
inline

Definition at line 1179 of file Unit.h.

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

◆ SetCurrentCastSpell()

void Unit::SetCurrentCastSpell ( Spell pSpell)

Definition at line 2941 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 8592 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 1183 of file Unit.h.

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

◆ SetDisableGravity()

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

Definition at line 12725 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 13145 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 10148 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 852 of file Unit.h.

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

◆ SetExtraUnitMovementFlags()

void Unit::SetExtraUnitMovementFlags ( uint32  f)
inline

Definition at line 1671 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetExtraUnitMovementFlags2()

void Unit::SetExtraUnitMovementFlags2 ( uint32  f)
inline

Definition at line 1677 of file Unit.h.

◆ SetFacingTo()

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

Definition at line 12653 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 12671 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 12688 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 859 of file Unit.h.

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

◆ SetFall()

bool Unit::SetFall ( bool  enable)

Definition at line 12785 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 11081 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 12900 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 790 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetFullPower()

void Unit::SetFullPower ( Powers  power)
inline

Definition at line 812 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetGender()

void Unit::SetGender ( Gender  gender)
inline

Definition at line 756 of file Unit.h.

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

◆ SetHealth()

void Unit::SetHealth ( uint64  val)

Definition at line 9346 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 12938 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 1133 of file Unit.h.

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

◆ SetIgnoreMovementForces()

bool Unit::SetIgnoreMovementForces ( bool  ignore)

Definition at line 13256 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 1029 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 8088 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 1035 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 8124 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 1032 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 8101 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 1045 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetInFront()

void Unit::SetInFront ( WorldObject const *  target)

Definition at line 12647 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 1762 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 8732 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 8722 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 1798 of file Unit.h.

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

◆ SetLastDamagedTargetGuid()

void Unit::SetLastDamagedTargetGuid ( ObjectGuid  guid)
inline

Definition at line 946 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetLastExtraAttackSpell()

void Unit::SetLastExtraAttackSpell ( uint32  spellId)
inline

Definition at line 943 of file Unit.h.

◆ SetLevel()

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

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

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

◆ SetMaxHealth()

void Unit::SetMaxHealth ( uint64  val)

Definition at line 9377 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 9456 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 10575 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 6062 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 1175 of file Unit.h.

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

◆ SetModCastingSpeed()

void Unit::SetModCastingSpeed ( float  castingSpeed)
inline

Definition at line 825 of file Unit.h.

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

◆ SetModHaste()

void Unit::SetModHaste ( float  haste)
inline

Definition at line 827 of file Unit.h.

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

◆ SetModHasteRegen()

void Unit::SetModHasteRegen ( float  hasteRegen)
inline

Definition at line 829 of file Unit.h.

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

◆ SetModRangedHaste()

void Unit::SetModRangedHaste ( float  rangedHaste)
inline

Definition at line 828 of file Unit.h.

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

◆ SetModSpellHaste()

void Unit::SetModSpellHaste ( float  spellHaste)
inline

Definition at line 826 of file Unit.h.

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

◆ SetModTimeRate()

void Unit::SetModTimeRate ( float  timeRate)
inline

Definition at line 830 of file Unit.h.

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

◆ SetMountDisplayId()

void Unit::SetMountDisplayId ( uint32  mountDisplayId)
inline

Definition at line 900 of file Unit.h.

+ 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 9765 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 10559 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 849 of file Unit.h.

+ Here is the call graph for this function:

◆ SetNativeGender()

virtual void Unit::SetNativeGender ( Gender  gender)
inlinevirtual

Reimplemented in Player.

Definition at line 758 of file Unit.h.

◆ SetNpcFlag()

void Unit::SetNpcFlag ( NPCFlags  flags)
inline

Definition at line 982 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetNpcFlag2()

void Unit::SetNpcFlag2 ( NPCFlags2  flags)
inline

Definition at line 988 of file Unit.h.

◆ SetOffHandWeaponAttackPower()

void Unit::SetOffHandWeaponAttackPower ( int32  attackPower)
inline

Definition at line 1525 of file Unit.h.

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

◆ SetOverrideDisplayPowerId()

void Unit::SetOverrideDisplayPowerId ( uint32  powerDisplayId)
inline

Definition at line 801 of file Unit.h.

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

◆ SetOwnerGUID()

void Unit::SetOwnerGUID ( ObjectGuid  owner)

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

+ Here is the caller graph for this function:

◆ SetPetGUID()

void Unit::SetPetGUID ( ObjectGuid  guid)
inline

Definition at line 1177 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetPetNameTimestamp()

void Unit::SetPetNameTimestamp ( uint32  timestamp)
inline

Definition at line 1225 of file Unit.h.

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

◆ SetPetNumberForClient()

void Unit::SetPetNumberForClient ( uint32  petNumber)
inline

Definition at line 1224 of file Unit.h.

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

◆ SetPlayHoverAnim()

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

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

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

◆ SetPowerType()

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

Definition at line 5534 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 11610 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 868 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetRace()

void Unit::SetRace ( uint8  race)
inline

Definition at line 750 of file Unit.h.

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

◆ SetRangedAttackPower()

void Unit::SetRangedAttackPower ( int32  attackPower)
inline

Definition at line 1520 of file Unit.h.

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

◆ SetRangedAttackPowerModNeg()

void Unit::SetRangedAttackPowerModNeg ( int32  attackPowerMod)
inline

Definition at line 1522 of file Unit.h.

+ Here is the call graph for this function:

◆ SetRangedAttackPowerModPos()

void Unit::SetRangedAttackPowerModPos ( int32  attackPowerMod)
inline

Definition at line 1521 of file Unit.h.

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

◆ SetRangedAttackPowerMultiplier()

void Unit::SetRangedAttackPowerMultiplier ( float  attackPowerMult)
inline

Definition at line 1523 of file Unit.h.

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

◆ SetRangedWeaponAttackPower()

void Unit::SetRangedWeaponAttackPower ( int32  attackPower)
inline

Definition at line 1526 of file Unit.h.

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

◆ SetResistance()

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

Definition at line 772 of file Unit.h.

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

◆ SetRooted()

void Unit::SetRooted ( bool  apply,
bool  packetOnly = false 
)
protected

Definition at line 11039 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 8904 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 5630 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 1454 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetSpeed()

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

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

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

◆ SetStandState()

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

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

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

◆ SetStatFlatModifier()

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

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

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

◆ SetStunned()

void Unit::SetStunned ( bool  apply)
protected

Definition at line 11008 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 12801 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 1573 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetUninteractible()

void Unit::SetUninteractible ( bool  apply)

Definition at line 8147 of file Unit.cpp.

+ Here is the call graph for this function:

◆ SetUnitFlag()

void Unit::SetUnitFlag ( UnitFlags  flags)
inline

Definition at line 833 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetUnitFlag2()

void Unit::SetUnitFlag2 ( UnitFlags2  flags)
inline

Definition at line 838 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetUnitFlag3()

void Unit::SetUnitFlag3 ( UnitFlags3  flags)
inline

Definition at line 843 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetUnitMovementFlags()

void Unit::SetUnitMovementFlags ( uint32  f)
inline

Definition at line 1665 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetVehicle()

void Unit::SetVehicle ( Vehicle vehicle)
inline

Definition at line 1714 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetVignette()

void Unit::SetVignette ( uint32  vignetteId)

Definition at line 13759 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 13604 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 891 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetVisible()

void Unit::SetVisible ( bool  x)

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

Definition at line 1553 of file Unit.h.

+ Here is the caller graph for this function:

◆ SetWalk()

bool Unit::SetWalk ( bool  enable)

Definition at line 12707 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 12863 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 1250 of file Unit.h.

+ 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 6894 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 7338 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 6931 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 6985 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 7090 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 7120 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 6626 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 6809 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 6717 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 7138 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 7285 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 7234 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 1694 of file Unit.h.

+ Here is the caller graph for this function:

◆ StopAttackFaction()

void Unit::StopAttackFaction ( uint32  faction_id)

Definition at line 12475 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 10049 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 13554 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 13615 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 13572 of file Unit.cpp.

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

+ Here is the call graph for this function:

◆ ToPet() [1/2]

Pet * Unit::ToPet ( )
inline

Definition at line 1750 of file Unit.h.

+ Here is the caller graph for this function:

◆ ToPet() [2/2]

Pet const * Unit::ToPet ( ) const
inline

Definition at line 1751 of file Unit.h.

◆ ToTempSummon() [1/2]

TempSummon * Unit::ToTempSummon ( )
inline

Definition at line 1756 of file Unit.h.

+ Here is the caller graph for this function:

◆ ToTempSummon() [2/2]

TempSummon const * Unit::ToTempSummon ( ) const
inline

Definition at line 1757 of file Unit.h.

◆ ToTotem() [1/2]

Totem * Unit::ToTotem ( )
inline

Definition at line 1753 of file Unit.h.

+ Here is the caller graph for this function:

◆ ToTotem() [2/2]

Totem const * Unit::ToTotem ( ) const
inline

Definition at line 1754 of file Unit.h.

◆ 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 9937 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 9976 of file Unit.cpp.

+ Here is the call graph for this function:

◆ TriggerOnHealthChangeAuras()

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

Definition at line 8249 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 9481 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 6559 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 420 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 9144 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 9191 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 10314 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 10377 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 9704 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 9114 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 9150 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 5625 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 12455 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 696 of file Unit.cpp.

+ Here is the caller graph for this function:

◆ UpdateMaxHealth()

virtual void Unit::UpdateMaxHealth ( )
pure virtual

Implemented in Creature, Guardian, Player, and Totem.

+ Here is the caller graph for this function:

◆ UpdateMaxPower()

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

Implemented in Creature, Guardian, Player, and Totem.

+ Here is the caller graph for this function:

◆ UpdateMountCapability()

void Unit::UpdateMountCapability ( )

Definition at line 8051 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 13287 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 8743 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 11836 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 12447 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 8704 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 12392 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 12441 of file Unit.cpp.

+ Here is the call graph for this function:

◆ UpdateReactives()

void Unit::UpdateReactives ( uint32  p_time)

Definition at line 10238 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 9264 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 8361 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 557 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 590 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 5079 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 5144 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 9052 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 5809 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 13577 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 13644 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 13567 of file Unit.cpp.

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

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ CombatManager

friend class CombatManager
friend

Definition at line 1965 of file Unit.h.

◆ ThreatManager

friend class ThreatManager
friend

Definition at line 1967 of file Unit.h.

◆ VehicleJoinEvent

friend class VehicleJoinEvent
friend

Definition at line 1707 of file Unit.h.

Member Data Documentation

◆ _aiAnimKitId

uint16 Unit::_aiAnimKitId
private

Definition at line 1992 of file Unit.h.

◆ _instantCast

bool Unit::_instantCast
private

Definition at line 1985 of file Unit.h.

◆ _isCombatDisallowed

bool Unit::_isCombatDisallowed
private

Definition at line 2001 of file Unit.h.

◆ _isWalkingBeforeCharm

bool Unit::_isWalkingBeforeCharm
private

Are we walking before we were charmed?

Definition at line 1988 of file Unit.h.

◆ _lastDamagedTargetGuid

ObjectGuid Unit::_lastDamagedTargetGuid
private

Definition at line 1981 of file Unit.h.

◆ _lastExtraAttackSpell

uint32 Unit::_lastExtraAttackSpell
private

Definition at line 1979 of file Unit.h.

◆ _lastLiquid

LiquidTypeEntry const* Unit::_lastLiquid
protected

Definition at line 1914 of file Unit.h.

◆ _meleeAnimKitId

uint16 Unit::_meleeAnimKitId
private

Definition at line 1994 of file Unit.h.

◆ _movementAnimKitId

uint16 Unit::_movementAnimKitId
private

Definition at line 1993 of file Unit.h.

◆ _movementForces

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

Definition at line 1998 of file Unit.h.

◆ _oldFactionId

uint32 Unit::_oldFactionId
private

faction before charm

Definition at line 1987 of file Unit.h.

◆ _playHoverAnim

bool Unit::_playHoverAnim
private

Definition at line 1990 of file Unit.h.

◆ _positionUpdateInfo

PositionUpdateInfo Unit::_positionUpdateInfo
private

Definition at line 1999 of file Unit.h.

◆ _spellHistory

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

Definition at line 1996 of file Unit.h.

◆ extraAttacksTargets

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

Definition at line 1980 of file Unit.h.

◆ i_AI

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

Definition at line 1974 of file Unit.h.

◆ i_AIs

UnitAIStack Unit::i_AIs
private

Definition at line 1973 of file Unit.h.

◆ i_motionMaster

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

Definition at line 1905 of file Unit.h.

◆ LastCharmerGUID

ObjectGuid Unit::LastCharmerGUID

Definition at line 1708 of file Unit.h.

◆ m_aiLocked

bool Unit::m_aiLocked
private

Definition at line 1975 of file Unit.h.

◆ m_appliedAuras

AuraApplicationMap Unit::m_appliedAuras
protected

Definition at line 1876 of file Unit.h.

◆ m_areaTrigger

AreaTriggerList Unit::m_areaTrigger
protected

Definition at line 1869 of file Unit.h.

◆ m_attackers

AttackerSet Unit::m_attackers
protected

Definition at line 1854 of file Unit.h.

◆ m_attacking

Unit* Unit::m_attacking
protected

Definition at line 1855 of file Unit.h.

◆ m_attackTimer

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

Definition at line 1478 of file Unit.h.

◆ m_auraFlatModifiersGroup

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

Definition at line 1888 of file Unit.h.

◆ m_auraPctModifiersGroup

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

Definition at line 1889 of file Unit.h.

◆ m_auraStateAuras

AuraStateAurasMap Unit::m_auraStateAuras
protected

Definition at line 1884 of file Unit.h.

◆ m_auraUpdateIterator

AuraMap::iterator Unit::m_auraUpdateIterator
protected

Definition at line 1878 of file Unit.h.

◆ m_baseAttackSpeed

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

Definition at line 1476 of file Unit.h.

◆ m_baseSpellCritChance

float Unit::m_baseSpellCritChance

Definition at line 1474 of file Unit.h.

◆ m_canDualWield

bool Unit::m_canDualWield

Definition at line 704 of file Unit.h.

◆ m_canModifyStats

bool Unit::m_canModifyStats
protected

Definition at line 1891 of file Unit.h.

◆ m_charmed

Unit* Unit::m_charmed
protected

Definition at line 1901 of file Unit.h.

◆ m_charmer

Unit* Unit::m_charmer
protected

Definition at line 1900 of file Unit.h.

◆ m_charmInfo

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

Definition at line 1902 of file Unit.h.

◆ m_cleanupDone

bool Unit::m_cleanupDone
private

Definition at line 1983 of file Unit.h.

◆ m_combatManager

CombatManager Unit::m_combatManager
private

Definition at line 1966 of file Unit.h.

◆ m_Controlled

ControlList Unit::m_Controlled

Definition at line 1211 of file Unit.h.

◆ m_ControlledByPlayer

bool Unit::m_ControlledByPlayer
protected

Definition at line 1848 of file Unit.h.

◆ m_createStats

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

Definition at line 1850 of file Unit.h.

◆ m_currentSpells

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

Definition at line 1873 of file Unit.h.

◆ m_deathState

DeathState Unit::m_deathState
protected

Definition at line 1857 of file Unit.h.

◆ m_Diminishing

Diminishing Unit::m_Diminishing
private

Definition at line 1962 of file Unit.h.

◆ m_duringRemoveFromWorld

bool Unit::m_duringRemoveFromWorld
private

Definition at line 1984 of file Unit.h.

◆ m_dynObj

DynObjectList Unit::m_dynObj
protected

Definition at line 1863 of file Unit.h.

◆ m_floatStatNegBuff

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

Definition at line 1852 of file Unit.h.

◆ m_floatStatPosBuff

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

Definition at line 1851 of file Unit.h.

◆ m_followingMe

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

Definition at line 1977 of file Unit.h.

◆ m_gameObj

GameObjectList Unit::m_gameObj
protected

Definition at line 1866 of file Unit.h.

◆ m_interruptableAuras

AuraApplicationList Unit::m_interruptableAuras
protected

Definition at line 1883 of file Unit.h.

◆ m_interruptMask

EnumFlag<SpellAuraInterruptFlags> Unit::m_interruptMask
protected

Definition at line 1885 of file Unit.h.

◆ m_interruptMask2

EnumFlag<SpellAuraInterruptFlags2> Unit::m_interruptMask2
protected

Definition at line 1886 of file Unit.h.

◆ m_lastSanctuaryTime

uint32 Unit::m_lastSanctuaryTime

Definition at line 1547 of file Unit.h.

◆ m_modAttackSpeedPct

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

Definition at line 1477 of file Unit.h.

◆ m_modAuras

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

Definition at line 1881 of file Unit.h.

◆ m_modMeleeHitChance

float Unit::m_modMeleeHitChance

Definition at line 1471 of file Unit.h.

◆ m_modRangedHitChance

float Unit::m_modRangedHitChance

Definition at line 1472 of file Unit.h.

◆ m_modSpellHitChance

float Unit::m_modSpellHitChance

Definition at line 1473 of file Unit.h.

◆ m_movementCounter

uint32 Unit::m_movementCounter
protected

Incrementing counter used in movement packets.

Definition at line 1955 of file Unit.h.

◆ m_ObjectSlot

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

Definition at line 1461 of file Unit.h.

◆ m_ownedAuras

AuraMap Unit::m_ownedAuras
protected

Definition at line 1875 of file Unit.h.

◆ m_playerMovingMe

Player* Unit::m_playerMovingMe
protected

Definition at line 1899 of file Unit.h.

◆ m_procChainLength

int32 Unit::m_procChainLength
protected

Definition at line 1860 of file Unit.h.

◆ m_procDeep

int32 Unit::m_procDeep
protected

Definition at line 1859 of file Unit.h.

◆ m_reactiveTimer

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

Definition at line 1907 of file Unit.h.

◆ m_regenTimer

uint32 Unit::m_regenTimer
protected

Definition at line 1908 of file Unit.h.

◆ m_removedAuras

AuraList Unit::m_removedAuras
protected

Definition at line 1877 of file Unit.h.

◆ m_removedAurasCount

uint32 Unit::m_removedAurasCount
protected

Definition at line 1879 of file Unit.h.

◆ m_scAuras

AuraList Unit::m_scAuras
protected

Definition at line 1882 of file Unit.h.

◆ m_sharedVision

SharedVisionList Unit::m_sharedVision
protected

Definition at line 1903 of file Unit.h.

◆ m_speed_rate

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

Definition at line 1896 of file Unit.h.

◆ m_spellImmune

Definition at line 1546 of file Unit.h.

◆ m_splineSyncTimer

TimeTracker Unit::m_splineSyncTimer
private

Definition at line 1960 of file Unit.h.

◆ m_state

uint32 Unit::m_state
private

Definition at line 1959 of file Unit.h.

◆ m_SummonSlot

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

Definition at line 1460 of file Unit.h.

◆ m_threatManager

ThreatManager Unit::m_threatManager
private

Definition at line 1968 of file Unit.h.

◆ m_transformSpell

uint32 Unit::m_transformSpell
protected

Definition at line 1871 of file Unit.h.

◆ m_unitData

UF::UpdateField<UF::UnitData, 0, TYPEID_UNIT> Unit::m_unitData

Definition at line 1814 of file Unit.h.

◆ m_unitMovedByMe

Unit* Unit::m_unitMovedByMe
protected

Definition at line 1898 of file Unit.h.

◆ m_unitTypeMask

uint32 Unit::m_unitTypeMask
protected

Definition at line 1913 of file Unit.h.

◆ m_vehicle

Vehicle* Unit::m_vehicle
protected

Definition at line 1910 of file Unit.h.

◆ m_vehicleKit

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

Definition at line 1911 of file Unit.h.

◆ m_vignette

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

Definition at line 1916 of file Unit.h.

◆ m_visibleAuras

VisibleAuraContainer Unit::m_visibleAuras
protected

Definition at line 1893 of file Unit.h.

◆ m_visibleAurasToUpdate

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

Definition at line 1894 of file Unit.h.

◆ m_weaponDamage

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

Definition at line 1890 of file Unit.h.

◆ movespline

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

Definition at line 1766 of file Unit.h.


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