TrinityCore
Loading...
Searching...
No Matches
Creature Class Reference

#include <Creature.h>

+ Inheritance diagram for Creature:

Classes

struct  ValuesUpdateForPlayerWithMaskSender
 

Public Member Functions

 Creature (bool isWorldObject=false)
 
 ~Creature ()
 
void AddToWorld () override
 
void RemoveFromWorld () override
 
float GetNativeObjectScale () const override
 
void SetObjectScale (float scale) override
 
void SetDisplayId (uint32 displayId, bool setNative=false) override
 
void SetDisplayFromModel (uint32 modelIdx)
 
void DisappearAndDie ()
 
bool Create (ObjectGuid::LowType guidlow, Map *map, uint32 entry, Position const &pos, CreatureData const *data, uint32 vehId, bool dynamic=false)
 
bool LoadCreaturesAddon ()
 
void LoadCreaturesSparringHealth (bool force=false)
 
void SelectLevel ()
 
void UpdateLevelDependantStats ()
 
void SelectWildBattlePetLevel ()
 
void LoadEquipment (int8 id=1, bool force=false)
 
void SetSpawnHealth ()
 
ObjectGuid::LowType GetSpawnId () const
 
void Update (uint32 time) override
 
void Heartbeat () override
 
Position GetRespawnPosition (float *dist=nullptr) const
 
bool IsSpawnedOnTransport () const
 
void SetCorpseDelay (uint32 delay, bool ignoreCorpseDecayRatio=false)
 
uint32 GetCorpseDelay () const
 
bool IsRacialLeader () const
 
bool IsCivilian () const
 
bool IsTrigger () const
 
bool IsGuard () const
 
void InitializeMovementCapabilities ()
 
void UpdateMovementCapabilities ()
 
CreatureMovementData const & GetMovementTemplate () const
 
bool IsAquatic () const
 
bool IsAmphibious () const
 
bool IsFloating () const
 
void SetFloating (bool floating)
 
void UpdateFloatingMovementFlags ()
 
bool IsSessile () const
 
void SetSessile (bool sessile)
 
void UpdateSessileMovementFlags ()
 
bool CannotPenetrateWater () const
 
void SetCannotPenetrateWater (bool cannotPenetrateWater)
 
bool IsSwimDisabled () const
 
bool CanOnlySwimIfTargetSwims () const
 
bool CanSwim () const override
 
bool CanEnterWater () const override
 
bool CanFly () const override
 
MovementGeneratorType GetDefaultMovementType () const override
 
void SetDefaultMovementType (MovementGeneratorType mgt)
 
CreatureClassifications GetCreatureClassification () const
 
bool HasClassification (CreatureClassifications classification) const
 
bool IsDungeonBoss () const
 
bool IsAffectedByDiminishingReturns () const override
 
Unit * SelectVictim ()
 
void SetReactState (ReactStates st)
 
ReactStates GetReactState () const
 
bool HasReactState (ReactStates state) const
 
void InitializeReactState ()
 
void SetImmuneToAll (bool apply) override
 
void SetImmuneToPC (bool apply) override
 
void SetImmuneToNPC (bool apply) override
 
void SetUnkillable (bool unkillable)
 
bool isCanInteractWithBattleMaster (Player *player, bool msg) const
 
bool CanResetTalents (Player *player) const
 
bool CanCreatureAttack (Unit const *victim, bool force=true) const
 
void LoadTemplateImmunities (int32 creatureImmunitiesId)
 
bool IsImmunedToSpellEffect (SpellInfo const *spellInfo, SpellEffectInfo const &spellEffectInfo, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const override
 
bool IsElite () const
 
bool isWorldBoss () const
 
void SetInteractionAllowedWhileHostile (bool interactionAllowed) override
 
void SetInteractionAllowedInCombat (bool interactionAllowed) override
 
void UpdateNearbyPlayersInteractions () override
 
bool HasScalableLevels () const
 
void ApplyLevelScaling ()
 
void ApplyLevelScaling (int32 contentTuningId, int32 scalingLevelDelta)
 
uint8 GetLevelForTarget (WorldObject const *target) const override
 
uint64 GetMaxHealthByLevel (uint8 level) const
 
float GetHealthMultiplierForTarget (WorldObject const *target) const override
 
float GetBaseDamageForLevel (uint8 level) const
 
float GetDamageMultiplierForTarget (WorldObject const *target) const override
 
float GetBaseArmorForLevel (uint8 level) const
 
float GetArmorMultiplierForTarget (WorldObject const *target) const override
 
bool IsInEvadeMode () const
 
bool IsEvadingAttacks () const
 
bool IsStateRestoredOnEvade () const
 
void SetRestoreStateOnEvade (bool restoreOnEvade)
 
bool AIM_Destroy ()
 
bool AIM_Create (CreatureAI *ai=nullptr)
 
bool AIM_Initialize (CreatureAI *ai=nullptr)
 
void Motion_Initialize ()
 
CreatureAI * AI () const
 
SpellSchoolMask GetMeleeDamageSchoolMask (WeaponAttackType=BASE_ATTACK) const override
 
void SetMeleeDamageSchool (SpellSchools school)
 
bool CanMelee () const
 
void SetCanMelee (bool canMelee, bool fleeFromMelee=false)
 
bool CanIgnoreLineOfSightWhenCastingOnMe () const
 
bool IsTreatedAsRaidUnit () const
 
void SetTreatAsRaidUnit (bool treatAsRaidUnit)
 
void StartDefaultCombatMovement (Unit *victim, Optional< float > range={}, Optional< float > angle={})
 
bool HasSpell (uint32 spellID) const override
 
bool UpdateEntry (uint32 entry, CreatureData const *data=nullptr, bool updateLevel=true)
 
int32 GetCreatePowerValue (Powers power) const override
 
bool UpdateStats (Stats stat) override
 
bool UpdateAllStats () override
 
void UpdateArmor () override
 
void UpdateMaxHealth () override
 
void UpdateMaxPower (Powers power) override
 
uint32 GetPowerIndex (Powers power) const override
 
ClassPowerTypes GetPowerTypes () const override
 
void UpdateAttackPowerAndDamage (bool ranged=false) override
 
void CalculateMinMaxDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, float &minDamage, float &maxDamage) const override
 
void SetCanDualWield (bool value) override
 
int8 GetOriginalEquipmentId () const
 
uint8 GetCurrentEquipmentId () const
 
void SetCurrentEquipmentId (uint8 id)
 
float GetSpellDamageMod (CreatureClassifications classification) const
 
VendorItemData const * GetVendorItems () const
 
uint32 GetVendorItemCurrentCount (VendorItem const *vItem)
 
uint32 UpdateVendorItemCurrentCount (VendorItem const *vItem, uint32 used_count)
 
void SetVendor (NPCFlags flags, bool apply)
 
void SetPetitioner (bool apply)
 
CreatureTemplate const * GetCreatureTemplate () const
 
CreatureData const * GetCreatureData () const
 
CreatureDifficulty const * GetCreatureDifficulty () const
 
CreatureAddon const * GetCreatureAddon () const
 
std::string const & GetAIName () const
 
std::string GetScriptName () const
 
uint32 GetScriptId () const
 
void InheritStringIds (Creature const *parent)
 
bool HasStringId (std::string_view id) const
 
void SetScriptStringId (std::string id)
 
std::string_view GetStringId (StringIdType type) const
 
SpawnTrackingStateData const * GetSpawnTrackingStateDataForPlayer (Player const *player) const override
 
std::string GetNameForLocaleIdx (LocaleConstant locale) const override
 
bool HasLabel (int32 cretureLabel) const
 
std::span< int32 const > GetLabels () const
 
void setDeathState (DeathState s) override
 
bool LoadFromDB (ObjectGuid::LowType spawnId, Map *map, bool addToMap, bool allowDuplicate)
 
void SaveToDB ()
 
virtual void SaveToDB (uint32 mapid, std::vector< Difficulty > const &spawnDifficulties)
 
bool CanHaveLoot () const
 
void SetCanHaveLoot (bool canHaveLoot)
 
uint32 GetLootId () const
 
void SetLootId (Optional< uint32 > lootId)
 
void StartPickPocketRefillTimer ()
 
void ResetPickPocketRefillTimer ()
 
bool CanGeneratePickPocketLoot () const
 
GuidUnorderedSet const & GetTapList () const
 
void SetTapList (GuidUnorderedSet tapList)
 
bool hasLootRecipient () const
 
bool IsTapListNotClearedOnEvade () const
 
void SetDontClearTapListOnEvade (bool dontClear)
 
bool isTappedBy (Player const *player) const
 
Loot * GetLootForPlayer (Player const *player) const override
 
bool IsFullyLooted () const
 
bool IsSkinnedBy (Player const *player) const
 
void SetTappedBy (Unit const *unit, bool withGroup=true)
 
void AllLootRemovedFromCorpse ()
 
uint16 GetLootMode () const
 
bool HasLootMode (uint16 lootMode) const
 
void SetLootMode (uint16 lootMode)
 
void AddLootMode (uint16 lootMode)
 
void RemoveLootMode (uint16 lootMode)
 
void ResetLootMode ()
 
bool CanStartAttack (Unit const *u, bool force) const
 
float GetAttackDistance (Unit const *player) const
 
float GetAggroRange (Unit const *target) const
 
void SendAIReaction (AiReaction reactionType)
 
Unit * SelectNearestTarget (float dist=0, bool playerOnly=false) const
 
Unit * SelectNearestTargetInAttackDistance (float dist=0) const
 
Unit * SelectNearestHostileUnitInAggroRange (bool useLOS=false, bool ignoreCivilians=false) const
 
void DoFleeToGetAssistance ()
 
void CallForHelp (float fRadius)
 
void CallAssistance ()
 
void SetNoCallAssistance (bool val)
 
void SetNoSearchAssistance (bool val)
 
bool HasSearchedAssistance () const
 
bool CanAssistTo (Unit const *u, Unit const *enemy, bool checkfaction=true) const
 
bool _IsTargetAcceptable (Unit const *target) const
 
bool IsIgnoringFeignDeath () const
 
void SetIgnoreFeignDeath (bool ignoreFeignDeath)
 
bool IsIgnoringSanctuarySpellEffect () const
 
void SetIgnoreSanctuarySpellEffect (bool ignoreSanctuary)
 
void RemoveCorpse (bool setSpawnTime=true, bool destroyForNearbyPlayers=true)
 
void DespawnOrUnsummon (Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s)
 
time_t const & GetRespawnTime () const
 
time_t GetRespawnTimeEx () const
 
void SetRespawnTime (uint32 respawn)
 
void Respawn (bool force=false)
 
void SaveRespawnTime (uint32 forceDelay=0)
 
uint32 GetRespawnDelay () const
 
void SetRespawnDelay (uint32 delay)
 
float GetWanderDistance () const
 
void SetWanderDistance (float dist)
 
void DoImmediateBoundaryCheck ()
 
void SendZoneUnderAttackMessage (Player *attacker)
 Send a message to LocalDefense channel for players opposition team in the zone.
 
bool hasQuest (uint32 quest_id) const override
 
bool hasInvolvedQuest (uint32 quest_id) const override
 
bool CanRegenerateHealth () const
 
void SetRegenerateHealth (bool value)
 
virtual uint8 GetPetAutoSpellSize () const
 
virtual uint32 GetPetAutoSpellOnPos (uint8 pos) const
 
float GetPetChaseDistance () const
 
bool IsIgnoringChaseRange () const
 
void SetIgnoreChaseRange (bool ignoreChaseRange)
 
void SetCannotReachTarget (bool cannotReach)
 
bool CanNotReachTarget () const
 
void SetDefaultMount (Optional< uint32 > mountCreatureDisplayId)
 
void SetHomePosition (float x, float y, float z, float o)
 
void SetHomePosition (Position const &pos)
 
void GetHomePosition (float &x, float &y, float &z, float &ori) const
 
Position const & GetHomePosition () const
 
void SetTransportHomePosition (float x, float y, float z, float o)
 
void SetTransportHomePosition (Position const &pos)
 
void GetTransportHomePosition (float &x, float &y, float &z, float &ori) const
 
Position const & GetTransportHomePosition () const
 
uint32 GetWaypointPathId () const
 
void LoadPath (uint32 pathid)
 
std::pair< uint32, uint32 > GetCurrentWaypointInfo () const
 
void UpdateCurrentWaypointInfo (uint32 nodeId, uint32 pathId)
 
bool IsReturningHome () const
 
void SearchFormation ()
 
CreatureGroup * GetFormation ()
 
void SetFormation (CreatureGroup *formation)
 
bool IsFormationLeader () const
 
void SignalFormationMovement ()
 
bool IsFormationLeaderMoveAllowed () const
 
void SetDisableReputationGain (bool disable)
 
bool IsReputationGainDisabled () const
 
void LowerPlayerDamageReq (uint64 unDamage)
 
void ResetPlayerDamageReq ()
 
uint32 GetOriginalEntry () const
 
void SetOriginalEntry (uint32 entry)
 
void SetRespawnCompatibilityMode (bool mode=true)
 
bool GetRespawnCompatibilityMode () const
 
void SetTarget (ObjectGuid const &guid) override
 
void DoNotReacquireSpellFocusTarget ()
 
void SetSpellFocus (Spell const *focusSpell, WorldObject const *target)
 
bool HasSpellFocus (Spell const *focusSpell=nullptr) const override
 
void ReleaseSpellFocus (Spell const *focusSpell=nullptr, bool withDelay=true)
 
bool IsMovementPreventedByCasting () const override
 
time_t GetLastDamagedTime () const
 
void SetLastDamagedTime (time_t val)
 
CreatureTextRepeatIds GetTextRepeatGroup (uint8 textGroup)
 
void SetTextRepeatId (uint8 textGroup, uint8 id)
 
void ClearTextRepeatGroup (uint8 textGroup)
 
bool IsEscorted () const
 
bool CanGiveExperience () const
 
void SetCanGiveExperience (bool xpEnabled)
 
bool IsEngaged () const override
 
void AtEngage (Unit *target) override
 
void AtDisengage () override
 
bool IsThreatFeedbackDisabled () const
 
void SetNoThreatFeedback (bool noThreatFeedback)
 
void ForcePartyMembersIntoCombat ()
 
bool IsAggroGracePeriodExpired ()
 
void OverrideSparringHealthPct (float healthPct)
 
void OverrideSparringHealthPct (std::vector< float > const &healthPct)
 
float GetSparringHealthPct () const
 
uint32 CalculateDamageForSparring (Unit *attacker, uint32 damage)
 
bool ShouldFakeDamageFrom (Unit *attacker)
 
std::string GetDebugInfo () const override
 
void ExitVehicle (Position const *exitPosition=nullptr) override
 
bool HasFlag (CreatureStaticFlags flag) const
 
bool HasFlag (CreatureStaticFlags2 flag) const
 
bool HasFlag (CreatureStaticFlags3 flag) const
 
bool HasFlag (CreatureStaticFlags4 flag) const
 
bool HasFlag (CreatureStaticFlags5 flag) const
 
bool HasFlag (CreatureStaticFlags6 flag) const
 
bool HasFlag (CreatureStaticFlags7 flag) const
 
bool HasFlag (CreatureStaticFlags8 flag) const
 
uint32 GetGossipMenuId () const
 
void SetGossipMenuId (uint32 gossipMenuId)
 
uint32 GetTrainerId () const
 
void SetTrainerId (Optional< uint32 > trainerId)
 
void SummonGraveyardTeleporter ()
 
void InitializeInteractSpellId ()
 
void SetInteractSpellId (int32 interactSpellId)
 
void BuildValuesUpdateWithFlag (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const override
 
void BuildValuesUpdateForPlayerWithMask (UpdateData *data, UF::ObjectData::Mask const &requestedObjectMask, UF::UnitData::Mask const &requestedUnitMask, Player const *target, bool ignoreNestedChangesMask) const
 
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)
 
- Public Member Functions inherited from Unit
virtual ~Unit ()
 
bool IsAIEnabled () const
 
void AIUpdateTick (uint32 diff)
 
UnitAI * GetAI () 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
 
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 ()
 
void Heartbeat () override
 
void TriggerAuraHeartbeat ()
 
void setAttackTimer (WeaponAttackType type, uint32 time)
 
void resetAttackTimer (WeaponAttackType type=BASE_ATTACK)
 
uint32 getAttackTimer (WeaponAttackType type) const
 
bool isAttackReady (WeaponAttackType type=BASE_ATTACK) const
 
bool haveOffhandWeapon () const
 
bool CanDualWield () const
 
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
 
bool IsWithinBoundaryRadius (const Unit *obj) const
 
void _addAttacker (Unit *pAttacker)
 
void _removeAttacker (Unit *pAttacker)
 
Unit * getAttackerForHelper () const
 
bool Attack (Unit *victim, bool meleeAttack)
 
void CastStop (uint32 except_spellid=0)
 
bool AttackStop ()
 
void RemoveAllAttackers ()
 
AttackerSet const & getAttackers () const
 
bool isAttackingPlayer () const
 
Unit * GetVictim () const
 
Unit * EnsureVictim () 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)
 
Unit * SelectNearbyTarget (Unit *exclude=nullptr, float dist=NOMINAL_MELEE_RANGE) const
 
void SendMeleeAttackStop (Unit const *victim=nullptr) const
 
void SendMeleeAttackStart (Unit *victim)
 
void AddUnitState (uint32 f)
 
bool HasUnitState (const uint32 f) const
 
void ClearUnitState (uint32 f)
 
bool CanFreeMove () const
 
uint32 HasUnitTypeMask (uint32 mask) const
 
void AddUnitTypeMask (uint32 mask)
 
bool IsSummon () const
 
bool IsGuardian () const
 
bool IsPet () const
 
bool IsHunterPet () const
 
bool IsTotem () const
 
bool IsVehicle () const
 
int32 GetContentTuning () const
 
uint8 GetLevel () const
 
uint8 GetEffectiveLevel () const
 
uint8 GetLevelForTarget (WorldObject const *) const override
 
void SetLevel (uint8 lvl, bool sendUpdate=true)
 
uint8 GetRace () const
 
void SetRace (uint8 race)
 
uint64 GetRaceMask () const
 
uint8 GetClass () const
 
void SetClass (uint8 classId)
 
uint32 GetClassMask () const
 
Gender GetGender () const
 
void SetGender (Gender gender)
 
virtual Gender GetNativeGender () const
 
virtual void SetNativeGender (Gender gender)
 
float GetStat (Stats stat) const
 
void SetStat (Stats stat, int32 val)
 
uint32 GetArmor () const
 
void SetArmor (int32 val, int32 bonusVal)
 
int32 GetResistance (SpellSchools school) const
 
int32 GetBonusResistanceMod (SpellSchools school) const
 
int32 GetResistance (SpellSchoolMask mask) const
 
void SetResistance (SpellSchools school, int32 val)
 
void SetBonusResistanceMod (SpellSchools school, int32 val)
 
uint64 GetHealth () const
 
uint64 GetMaxHealth () const
 
bool IsFullHealth () const
 
bool HealthBelowPct (float pct) const
 
bool HealthBelowPctDamaged (float pct, uint32 damage) const
 
bool HealthAbovePct (float pct) const
 
bool HealthAbovePctHealed (float pct, uint32 heal) const
 
float GetHealthPct () const
 
uint64 CountPctFromMaxHealth (float pct) const
 
uint64 CountPctFromCurHealth (float pct) const
 
void SetHealth (uint64 val)
 
void SetMaxHealth (uint64 val)
 
void SetFullHealth ()
 
int64 ModifyHealth (int64 val)
 
int64 GetHealthGain (int64 dVal)
 
void TriggerOnHealthChangeAuras (uint64 oldVal, uint64 newVal)
 
Powers GetPowerType () const
 
void SetPowerType (Powers power, bool sendUpdate=true, bool onInit=false)
 
void SetInitialPowerValue (Powers powerType)
 
void SetOverrideDisplayPowerId (uint32 powerDisplayId)
 
Powers CalculateDisplayPowerType () const
 
void UpdateDisplayPower ()
 
int32 GetPower (Powers power) const
 
int32 GetMinPower (Powers power) const
 
int32 GetMaxPower (Powers power) const
 
float GetPowerPct (Powers power) const
 
int32 CountPctFromMaxPower (Powers power, int32 pct) const
 
void SetPower (Powers power, int32 val, bool withPowerUpdate=true)
 
void SetMaxPower (Powers power, int32 val)
 
void TriggerOnPowerChangeAuras (Powers power, int32 oldVal, int32 newVal)
 
void SetFullPower (Powers power)
 
int32 ModifyPower (Powers power, int32 val, bool withPowerUpdate=true)
 
void ApplyModManaCostMultiplier (float manaCostMultiplier, bool apply)
 
void ApplyModManaCostModifier (SpellSchools school, int32 mod, bool apply)
 
uint32 GetBaseAttackTime (WeaponAttackType att) const
 
void SetBaseAttackTime (WeaponAttackType att, uint32 val)
 
void UpdateAttackTimeField (WeaponAttackType att)
 
void ApplyAttackTimePercentMod (WeaponAttackType att, float val, bool apply)
 
void ApplyCastTimePercentMod (float val, bool apply)
 
void ApplySpellHastePercentMod (float val, bool apply)
 
void ApplyHasteRegenPercentMod (float val, bool apply)
 
void SetModCastingSpeed (float castingSpeed)
 
void SetModCastingSpeedNeg (float castingSpeedNeg)
 
void SetModSpellHaste (float spellHaste)
 
void SetModHaste (float haste)
 
void SetModRangedHaste (float rangedHaste)
 
void SetModHasteRegen (float hasteRegen)
 
void SetModTimeRate (float timeRate)
 
bool HasUnitFlag (UnitFlags flags) const
 
void SetUnitFlag (UnitFlags flags)
 
void RemoveUnitFlag (UnitFlags flags)
 
void ReplaceAllUnitFlags (UnitFlags flags)
 
bool HasUnitFlag2 (UnitFlags2 flags) const
 
void SetUnitFlag2 (UnitFlags2 flags)
 
void RemoveUnitFlag2 (UnitFlags2 flags)
 
void ReplaceAllUnitFlags2 (UnitFlags2 flags)
 
bool HasUnitFlag3 (UnitFlags3 flags) const
 
void SetUnitFlag3 (UnitFlags3 flags)
 
void RemoveUnitFlag3 (UnitFlags3 flags)
 
void ReplaceAllUnitFlags3 (UnitFlags3 flags)
 
void SetCreatedBySpell (int32 spellId)
 
void SetNameplateAttachToGUID (ObjectGuid guid)
 
Emote GetEmoteState () const
 
void SetEmoteState (Emote emote)
 
SheathState GetSheath () const
 
void SetSheath (SheathState sheathed)
 
uint32 GetFaction () const override
 
void SetFaction (uint32 faction) override
 
bool IsInPartyWith (Unit const *unit) const
 
bool IsInRaidWith (Unit const *unit) const
 
void GetPartyMembers (std::list< Unit * > &units)
 
bool IsContestedGuard () const
 
UnitPVPStateFlags GetPvpFlags () const
 
bool HasPvpFlag (UnitPVPStateFlags flags) const
 
void SetPvpFlag (UnitPVPStateFlags flags)
 
void RemovePvpFlag (UnitPVPStateFlags flags)
 
void ReplaceAllPvpFlags (UnitPVPStateFlags flags)
 
bool IsInSanctuary () const
 
bool IsPvP () const
 
bool IsFFAPvP () const
 
virtual void SetPvP (bool state)
 
UnitPetFlag GetPetFlags () const
 
bool HasPetFlag (UnitPetFlag flags) const
 
void SetPetFlag (UnitPetFlag flags)
 
void RemovePetFlag (UnitPetFlag flags)
 
void ReplaceAllPetFlags (UnitPetFlag flags)
 
uint32 GetCreatureType () const
 
uint32 GetCreatureTypeMask () const
 
void UpdateCreatureType ()
 
UnitStandStateType GetStandState () const
 
bool IsSitState () const
 
bool IsStandState () const
 
void SetStandState (UnitStandStateType state, uint32 animKitID=0)
 
void SetVisFlag (UnitVisFlags flags)
 
void RemoveVisFlag (UnitVisFlags flags)
 
void ReplaceAllVisFlags (UnitVisFlags flags)
 
AnimTier GetAnimTier () const
 
void SetAnimTier (AnimTier animTier, bool notifyClient=true)
 
bool IsMounted () const
 
uint32 GetMountDisplayId () const
 
void SetMountDisplayId (uint32 mountDisplayId)
 
uint32 GetCosmeticMountDisplayId () const
 
void SetCosmeticMountDisplayId (uint32 mountDisplayId)
 
void Mount (uint32 mount, uint32 vehicleId=0, uint32 creatureEntry=0)
 
void Dismount ()
 
void CancelMountAura (bool force=false)
 
MountCapabilityEntry const * GetMountCapability (uint32 mountType) const
 
void UpdateMountCapability ()
 
void SendDurabilityLoss (Player *receiver, uint32 percent)
 
void PlayOneShotAnimKitId (uint16 animKitId)
 
void SetAIAnimKitId (uint16 animKitId)
 
uint16 GetAIAnimKitId () const override
 
void SetMovementAnimKitId (uint16 animKitId)
 
uint16 GetMovementAnimKitId () const override
 
void SetMeleeAnimKitId (uint16 animKitId)
 
uint16 GetMeleeAnimKitId () const override
 
uint16 GetMaxSkillValueForLevel (Unit const *target=nullptr) const
 
void KillSelf (bool durabilityLoss=true, bool skipSettingDeathState=false)
 
void GetProcAurasTriggeredOnEvent (AuraApplicationProcContainer &aurasTriggeringProc, AuraApplicationList *procAuras, ProcEventInfo &eventInfo)
 
void TriggerAurasProcOnEvent (AuraApplicationList *myProcAuras, AuraApplicationList *targetProcAuras, Unit *actionTarget, ProcFlagsInit const &typeMaskActor, ProcFlagsInit const &typeMaskActionTarget, ProcFlagsSpellType spellTypeMask, ProcFlagsSpellPhase spellPhaseMask, ProcFlagsHit hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo)
 
void TriggerAurasProcOnEvent (ProcEventInfo &eventInfo, AuraApplicationProcContainer &procAuras)
 
void HandleEmoteCommand (Emote emoteId, Player *target=nullptr, Trinity::IteratorPair< int32 const * > spellVisualKitIds={}, int32 sequenceVariation=0)
 
void DoMeleeAttackIfReady ()
 
void AttackerStateUpdate (Unit *victim, WeaponAttackType attType=BASE_ATTACK, bool extra=false)
 
void CalculateMeleeDamage (Unit *victim, CalcDamageInfo *damageInfo, WeaponAttackType attackType=BASE_ATTACK)
 
void DealMeleeDamage (CalcDamageInfo *damageInfo, bool durabilityLoss)
 
void HandleProcExtraAttackFor (Unit *victim, uint32 count)
 
void SetLastExtraAttackSpell (uint32 spellId)
 
uint32 GetLastExtraAttackSpell () const
 
void AddExtraAttacks (uint32 count)
 
void SetLastDamagedTargetGuid (ObjectGuid guid)
 
ObjectGuid GetLastDamagedTargetGuid () const
 
void CalculateSpellDamageTaken (SpellNonMeleeDamage *damageInfo, int32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=BASE_ATTACK, bool crit=false, bool blocked=false, Spell *spell=nullptr)
 
void DealSpellDamage (SpellNonMeleeDamage const *damageInfo, bool durabilityLoss)
 
uint32 GetDamageReduction (uint32 damage) const
 
virtual bool CanApplyResilience () const
 
int32 CalculateAOEAvoidance (int32 damage, uint32 schoolMask, bool npcCaster) const
 
float MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, SpellInfo const *spellInfo) const override
 
SpellMissInfo MeleeSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const override
 
float GetUnitDodgeChance (WeaponAttackType attType, Unit const *victim) const
 
float GetUnitParryChance (WeaponAttackType attType, Unit const *victim) const
 
float GetUnitBlockChance (WeaponAttackType attType, Unit const *victim) const
 
float GetUnitMissChance () const
 
float GetUnitCriticalChanceDone (WeaponAttackType attackType) const
 
float GetUnitCriticalChanceTaken (Unit const *attacker, WeaponAttackType attackType, float critDone) const
 
float GetUnitCriticalChanceAgainst (WeaponAttackType attackType, Unit const *victim) const
 
float GetMechanicResistChance (SpellInfo const *spellInfo) const
 
bool CanUseAttackType (uint8 attacktype) const
 
virtual float GetBlockPercent (uint8) const
 
float GetWeaponProcChance () const
 
float GetPPMProcChance (uint32 WeaponSpeed, float PPM, SpellInfo const *spellProto) const
 
MeleeHitOutcome RollMeleeOutcomeAgainst (Unit const *victim, WeaponAttackType attType) const
 
NPCFlags GetNpcFlags () const
 
bool HasNpcFlag (NPCFlags flags) const
 
void SetNpcFlag (NPCFlags flags)
 
void RemoveNpcFlag (NPCFlags flags)
 
void ReplaceAllNpcFlags (NPCFlags flags)
 
NPCFlags2 GetNpcFlags2 () const
 
bool HasNpcFlag2 (NPCFlags2 flags) const
 
void SetNpcFlag2 (NPCFlags2 flags)
 
void RemoveNpcFlag2 (NPCFlags2 flags)
 
void ReplaceAllNpcFlags2 (NPCFlags2 flags)
 
bool IsVendor () const
 
bool IsTrainer () const
 
bool IsQuestGiver () const
 
bool IsGossip () const
 
bool IsTaxi () const
 
bool IsGuildMaster () const
 
bool IsBattleMaster () const
 
bool IsBanker () const
 
bool IsInnkeeper () const
 
bool IsSpiritHealer () const
 
bool IsAreaSpiritHealer () const
 
bool IsTabardDesigner () const
 
bool IsAuctioner () const
 
bool IsArmorer () const
 
bool IsWildBattlePet () const
 
bool IsServiceProvider () const
 
bool IsSpiritService () const
 
bool IsAreaSpiritHealerIndividual () const
 
bool IsCritter () const
 
bool IsInFlight () const
 
bool CanHaveThreatList () const
 ====================== THREAT & COMBAT ====================
 
bool IsEngagedBy (Unit const *who) const
 
void EngageWithTarget (Unit *who)
 
CombatManager & GetCombatManager ()
 
CombatManager const & GetCombatManager () const
 
void AtTargetAttacked (Unit *target, bool canInitialAggro)
 
bool IsImmuneToAll () const
 
void SetImmuneToAll (bool apply, bool keepCombat)
 
bool IsImmuneToPC () const
 
void SetImmuneToPC (bool apply, bool keepCombat)
 
bool IsImmuneToNPC () const
 
void SetImmuneToNPC (bool apply, bool keepCombat)
 
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
 
bool IsInteractionAllowedInCombat () const
 
bool IsThreatened () const
 
bool IsThreatenedBy (Unit const *who) const
 
ThreatManager & GetThreatManager ()
 
ThreatManager const & GetThreatManager () const
 
void SendClearTarget ()
 
bool HasAuraTypeWithFamilyFlags (AuraType auraType, uint32 familyName, flag128 familyFlags) const
 
bool HasBreakableByDamageAuraType (AuraType type, uint32 excludeAura=0) const
 
bool HasBreakableByDamageCrowdControlAura (Unit const *excludeCasterChannel=nullptr) const
 
bool HasStealthAura () const
 
bool HasInvisibilityAura () const
 
bool IsFeared () const
 
bool HasRootAura () const
 
bool IsPolymorphed () const
 
bool IsFrozen () const
 
bool isTargetableForAttack (bool checkFakeDeath=true) const
 
bool IsInWater () const
 
bool IsUnderWater () const
 
bool IsOnOceanFloor () const
 
bool isInAccessiblePlaceFor (Creature const *c) const
 
void SendHealSpellLog (HealInfo &healInfo, bool critical=false)
 
int32 HealBySpell (HealInfo &healInfo, bool critical=false)
 
void SendEnergizeSpellLog (Unit *victim, uint32 spellId, int32 damage, int32 overEnergize, Powers powerType)
 
void EnergizeBySpell (Unit *victim, SpellInfo const *spellInfo, int32 damage, Powers powerType)
 
Aura * AddAura (uint32 spellId, Unit *target)
 
Aura * AddAura (SpellInfo const *spellInfo, uint32 effMask, Unit *target)
 
void SetAuraStack (uint32 spellId, Unit *target, uint32 stack)
 
void SendPlaySpellVisual (Unit *target, uint32 spellVisualId, uint8 missReason, uint8 reflectStatus, float travelSpeed, bool speedAsTime=false, float launchDelay=0.0f)
 
void SendPlaySpellVisual (Position const &targetPosition, uint32 spellVisualId, uint8 missReason, uint8 reflectStatus, float travelSpeed, bool speedAsTime=false, float launchDelay=0.0f)
 
void SendCancelSpellVisual (uint32 id)
 
void SendPlaySpellVisualKit (uint32 id, uint32 type, uint32 duration) const
 
void SendCancelSpellVisualKit (uint32 id)
 
void CancelSpellMissiles (uint32 spellId, bool reverseMissile=false, bool abortSpell=false)
 
void DeMorph ()
 
void SendAttackStateUpdate (CalcDamageInfo *damageInfo)
 
void SendAttackStateUpdate (uint32 HitInfo, Unit *target, uint8 SwingType, SpellSchoolMask damageSchoolMask, uint32 Damage, uint32 AbsorbDamage, uint32 Resist, VictimState TargetState, uint32 BlockedAmount, uint32 RageGained)
 
void SendSpellNonMeleeDamageLog (SpellNonMeleeDamage const *log)
 
void SendPeriodicAuraLog (SpellPeriodicAuraLogInfo *pInfo)
 
void SendSpellDamageResist (Unit *target, uint32 spellId)
 
void SendSpellDamageImmune (Unit *target, uint32 spellId, bool isPeriodic)
 
void NearTeleportTo (TeleportLocation const &target, bool casting=false)
 
void NearTeleportTo (Position const &pos, bool casting=false)
 
void NearTeleportTo (float x, float y, float z, float orientation, bool casting=false)
 
void SendTeleportPacket (TeleportLocation const &teleportLocation)
 
virtual bool UpdatePosition (float x, float y, float z, float ang, bool teleport=false)
 
virtual bool UpdatePosition (Position const &pos, bool teleport=false)
 
void UpdateOrientation (float orientation)
 Only server-side orientation update, does not broadcast to client.
 
void UpdateHeight (float newZ)
 Only server-side height update, does not broadcast to client.
 
void SendMoveKnockBack (Player *player, float speedXY, float speedZ, float vcos, float vsin)
 
void KnockbackFrom (Position const &origin, float speedXY, float speedZ, float angle=M_PI, Movement::SpellEffectExtraData const *spellEffectExtraData=nullptr)
 
void MonsterMoveWithSpeed (float x, float y, float z, float speed, bool generatePath=false, bool forceDestination=false)
 
bool IsPlayingHoverAnim () const
 
void SetPlayHoverAnim (bool enable, bool sendUpdate=true)
 
void CalculateHoverHeight ()
 
void SetHoverHeight (float hoverHeight)
 
bool IsGravityDisabled () const
 
bool IsWalking () const
 
bool IsHovering () const
 
bool SetWalk (bool enable)
 
bool SetDisableGravity (bool disable, bool updateAnimTier=true, bool updatePlayHoverAnim=true)
 
bool SetFall (bool enable)
 
bool SetSwim (bool enable)
 
bool SetCanFly (bool enable)
 
bool SetWaterWalking (bool enable)
 
bool SetFeatherFall (bool enable)
 
bool SetHover (bool enable, bool updateAnimTier=true)
 
bool SetCollision (bool disable)
 
bool SetStrafingDisabled (bool disable)
 
bool SetJumpingDisabled (bool disable)
 
bool SetEnableFullSpeedTurning (bool enable)
 
bool SetEnableFullSpeedPitching (bool enable)
 
bool SetAlwaysAllowPitching (bool enable)
 
bool SetCanTransitionBetweenSwimAndFly (bool enable)
 
bool SetCanTurnWhileFalling (bool enable)
 
bool SetCanDoubleJump (bool enable)
 
bool SetDisableInertia (bool disable)
 
bool SetCanAdvFly (bool enable)
 
bool SetMoveCantSwim (bool cantSwim)
 
void SendSetVehicleRecId (uint32 vehicleId)
 
MovementForces const * GetMovementForces () const
 
void ApplyMovementForce (ObjectGuid id, Position origin, float magnitude, MovementForceType type, Position direction={}, ObjectGuid transportGuid=ObjectGuid::Empty)
 
void RemoveMovementForce (ObjectGuid id)
 
bool SetIgnoreMovementForces (bool ignore)
 
void UpdateMovementForcesModMagnitude ()
 
void ApplyInertia (int32 id, Milliseconds duration)
 
void RemoveInertia (int32 id)
 
void SetGravityModifier (float gravityModifier)
 
void SetInFront (WorldObject const *target)
 
void SetFacingTo (float ori, bool force=true, uint32 movementId=EVENT_FACE)
 
void SetFacingToObject (WorldObject const *object, bool force=true, uint32 movementId=EVENT_FACE)
 
void SetFacingToPoint (Position const &point, bool force=true)
 
bool IsAlive () const
 
bool isDying () const
 
bool isDead () const
 
DeathState getDeathState () const
 
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)
 
Unit * GetDemonCreator () const
 
Player * GetDemonCreatorPlayer () const
 
ObjectGuid GetCharmerGUID () const
 
Unit * GetCharmer () const
 
ObjectGuid GetCharmedGUID () const
 
Unit * GetCharmed () const
 
bool IsControlledByPlayer () const
 
Player * GetControllingPlayer () const
 
ObjectGuid GetCharmerOrOwnerGUID () const override
 
bool IsCharmedOwnedByPlayerOrPlayer () const
 
Guardian * GetGuardianPet () const
 
Minion * GetFirstMinion () const
 
Unit * GetCharmerOrOwner () 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)
 
Unit * GetNextRandomRaidMemberOrPet (float radius)
 
bool SetCharmedBy (Unit *charmer, CharmType type, AuraApplication const *aurApp=nullptr)
 
void RemoveCharmedBy (Unit *charmer)
 
void RestoreFaction ()
 
Unit * GetFirstControlled () const
 
void RemoveAllControlled ()
 
bool IsCharmed () const
 
bool isPossessed () const
 
bool isPossessedByPlayer () const
 
bool isPossessing () const
 
bool isPossessing (Unit *u) const
 
CharmInfo * GetCharmInfo ()
 
CharmInfo * InitCharmInfo ()
 
void DeleteCharmInfo ()
 
void SetPetNumberForClient (uint32 petNumber)
 
void SetPetNameTimestamp (uint32 timestamp)
 
void SetMovedUnit (Unit *target)
 
Unit * GetUnitBeingMoved () const
 
Player * GetPlayerMovingMe () const
 
SharedVisionList const & GetSharedVisionList ()
 
void AddPlayerToVision (Player *player)
 
void RemovePlayerFromVision (Player *player)
 
bool HasSharedVision () const
 
void RemoveBindSightAuras ()
 
void RemoveCharmAuras ()
 
Pet * CreateTamedPetFrom (Creature *creatureTarget, uint32 spell_id=0)
 
Pet * CreateTamedPetFrom (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)
 
AuraMap & GetOwnedAuras ()
 
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)
 
Aura * GetOwnedAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, Aura *except=nullptr) const
 
AuraApplicationMap & GetAppliedAuras ()
 
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 (SpellAttr0 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
 
AuraEffectList & GetAuraEffectsByType (AuraType type)
 
AuraList & GetSingleCastAuras ()
 
AuraList const & GetSingleCastAuras () const
 
AuraEffect * GetAuraEffect (uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
 
AuraEffect * GetAuraEffectOfRankedSpell (uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
 
AuraEffect * GetAuraEffect (AuraType type, SpellFamilyNames family, flag128 const &familyFlag, ObjectGuid casterGUID=ObjectGuid::Empty) const
 
AuraApplication * GetAuraApplication (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraApplication *except=nullptr) const
 
AuraApplication * GetAuraApplication (uint32 spellId, std::function< bool(AuraApplication const *)> const &predicate) const
 
AuraApplication * GetAuraApplication (uint32 spellId, std::function< bool(Aura const *)> const &predicate) const
 
AuraApplication * GetAuraApplication (std::function< bool(AuraApplication const *)> const &predicate) const
 
AuraApplication * GetAuraApplication (std::function< bool(Aura const *)> const &predicate) const
 
Aura * GetAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
 
Aura * GetAura (uint32 spellId, std::function< bool(Aura const *)> const &predicate) const
 
Aura * GetAura (std::function< bool(Aura const *)> const &predicate) const
 
AuraApplication * GetAuraApplicationOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraApplication *except=nullptr) const
 
Aura * GetAuraOfRankedSpell (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
 
AuraEffect * IsScriptOverriden (SpellInfo const *spell, int32 script) const
 
uint32 GetDiseasesByCaster (ObjectGuid casterGUID, bool remove=false)
 
uint32 GetDoTsByCaster (ObjectGuid casterGUID) const
 
float GetTotalAuraModifier (AuraType auraType) const
 
float GetTotalAuraMultiplier (AuraType auraType) const
 
float GetMaxPositiveAuraModifier (AuraType auraType) const
 
float GetMaxNegativeAuraModifier (AuraType auraType) const
 
float GetTotalAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
float GetTotalAuraMultiplier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
float GetMaxPositiveAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
float GetMaxNegativeAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
float GetTotalAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
float GetTotalAuraMultiplierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
float GetMaxPositiveAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask, AuraEffect const *except=nullptr) const
 
float GetMaxNegativeAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
float GetTotalAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
float GetTotalAuraMultiplierByMiscValue (AuraType auraType, int32 misc_value) const
 
float GetMaxPositiveAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
float GetMaxNegativeAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
float GetTotalAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
float GetTotalAuraMultiplierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
float GetMaxPositiveAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
float GetMaxNegativeAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
void InitStatBuffMods ()
 
void UpdateStatBuffMod (Stats stat)
 
void UpdateStatBuffModForClient (Stats stat)
 
void SetCreateStat (Stats stat, float val)
 
void SetCreateHealth (uint32 val)
 
uint32 GetCreateHealth () const
 
void SetCreateMana (uint32 val)
 
uint32 GetCreateMana () const
 
float GetPosStat (Stats stat) const
 
float GetNegStat (Stats stat) const
 
float GetCreateStat (Stats stat) const
 
uint32 GetChannelSpellId () const
 
void SetChannelSpellId (uint32 channelSpellId)
 
uint32 GetChannelSpellXSpellVisualId () const
 
uint32 GetChannelScriptVisualId () const
 
void SetChannelVisual (SpellCastVisual channelVisual)
 
void AddChannelObject (ObjectGuid guid)
 
void SetChannelObject (uint32 slot, ObjectGuid guid)
 
void RemoveChannelObject (ObjectGuid guid)
 
void ClearChannelObjects ()
 
void SetChannelSpellData (uint32 startTimeMs, uint32 durationMs)
 
int8 GetSpellEmpowerStage () const
 
void SetSpellEmpowerStage (int8 stage)
 
void SetCurrentCastSpell (Spell *pSpell)
 
void InterruptSpell (CurrentSpellTypes spellType, bool withDelayed=true, bool withInstant=true, SpellCastResult result=SPELL_FAILED_INTERRUPTED, Optional< SpellCastResult > resultOther={}, ObjectGuid const &interrupter=ObjectGuid::Empty)
 
void FinishSpell (CurrentSpellTypes spellType, SpellCastResult result=SPELL_CAST_OK)
 
void CancelAutoRepeatSpell ()
 
bool IsNonMeleeSpellCast (bool withDelayed, bool skipChanneled=false, bool skipAutorepeat=false, bool isAutoshoot=false, bool skipInstant=true, bool skipChanneledAllowingActions=false) const
 
void InterruptNonMeleeSpells (bool withDelayed, uint32 spellid=0, bool withInstant=true)
 
Spell * GetCurrentSpell (CurrentSpellTypes spellType) const
 
Spell * FindCurrentSpellBySpellId (uint32 spell_id) const
 
int32 GetCurrentSpellCastTime (uint32 spell_id) const
 
GetCastSpellInfoResult GetCastSpellInfo (SpellInfo const *spellInfo) const
 
virtual SpellInfo const * GetCastSpellInfo (SpellInfo const *spellInfo, TriggerCastFlags &triggerFlag, GetCastSpellInfoContext *context) const
 
uint32 GetCastSpellXSpellVisualId (SpellInfo const *spellInfo) const override
 
bool CanCastSpellWhileMoving (SpellInfo const *spellInfo) const
 
bool IsSilenced (SpellSchoolMask schoolMask) const
 
void SetSilencedSchoolMask (SpellSchoolMask schoolMask)
 
void ReplaceAllSilencedSchoolMask (SpellSchoolMask schoolMask)
 
SpellHistory * GetSpellHistory ()
 
SpellHistory const * GetSpellHistory () const
 
ShapeshiftForm GetShapeshiftForm () const
 
void SetShapeshiftForm (ShapeshiftForm form)
 
void CancelShapeshiftForm (bool onlyTravelShapeshiftForm=false, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, bool force=false)
 
void CancelTravelShapeshiftForm (AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, bool force=false)
 
bool IsInFeralForm () const
 
bool IsInDisallowedMountForm () const
 
bool IsDisallowedMountForm (uint32 spellId, ShapeshiftForm form, uint32 displayId) const
 
void HandleStatFlatModifier (UnitMods unitMod, UnitModifierFlatType modifierType, float amount, bool apply)
 
void ApplyStatPctModifier (UnitMods unitMod, UnitModifierPctType modifierType, float amount)
 
void SetStatFlatModifier (UnitMods unitMod, UnitModifierFlatType modifierType, float val)
 
void SetStatPctModifier (UnitMods unitMod, UnitModifierPctType modifierType, float val)
 
float GetFlatModifierValue (UnitMods unitMod, UnitModifierFlatType modifierType) const
 
float GetPctModifierValue (UnitMods unitMod, UnitModifierPctType modifierType) const
 
void UpdateUnitMod (UnitMods unitMod)
 
void HandleAttackPowerModifier (AttackPowerModIndex index, AttackPowerModType modifierType, float amount, bool apply)
 
float GetAttackPowerModifierValue (AttackPowerModIndex index, AttackPowerModType modifierType) const
 
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 void UpdateResistances (uint32 school)
 
virtual void UpdateAllResistances ()
 
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)
 
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 void RecalculateObjectScale ()
 
uint32 GetDisplayId () const
 
float GetDisplayScale () const
 
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)
 
DynamicObject * GetDynObject (uint32 spellId) const
 
std::vector< DynamicObject * > GetDynObjects (uint32 spellId) const
 
void RemoveDynObject (uint32 spellId)
 
void RemoveAllDynObjects ()
 
GameObject * GetGameObject (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)
 
AreaTrigger * GetAreaTrigger (uint32 spellId) const
 
std::vector< AreaTrigger * > GetAreaTriggers (uint32 spellId) const
 
void RemoveAreaTrigger (uint32 spellId)
 
void RemoveAreaTrigger (AuraEffect const *aurEff)
 
void RemoveAllAreaTriggers (AreaTriggerRemoveReason reason=AreaTriggerRemoveReason::Default)
 
void EnterAreaTrigger (AreaTrigger *areaTrigger)
 
void ExitAreaTrigger (AreaTrigger *areaTrigger)
 
std::vector< AreaTrigger * > const & GetInsideAreaTriggers () const
 
void ExitAllAreaTriggers ()
 
void ModifyAuraState (AuraStateType flag, bool apply)
 
uint32 BuildAuraStateUpdateForTarget (Unit const *target) const
 
bool HasAuraState (AuraStateType flag, SpellInfo const *spellProto=nullptr, Unit const *Caster=nullptr) const
 
void UnsummonAllTotems ()
 
bool IsMagnet () const
 
Unit * GetMeleeHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo=nullptr)
 
int32 SpellBaseDamageBonusDone (SpellSchoolMask schoolMask) const
 
int32 SpellDamageBonusDone (Unit *victim, SpellInfo const *spellProto, int32 pdamage, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, uint32 stack=1, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr) const
 
float SpellDamagePctDone (Unit *victim, SpellInfo const *spellProto, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo) const
 
int32 SpellDamageBonusTaken (Unit *caster, SpellInfo const *spellProto, int32 pdamage, DamageEffectType damagetype) const
 
int32 SpellBaseHealingBonusDone (SpellSchoolMask schoolMask) const
 
int32 SpellHealingBonusDone (Unit *victim, SpellInfo const *spellProto, int32 healamount, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, uint32 stack=1, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr) const
 
float SpellHealingPctDone (Unit *victim, SpellInfo const *spellProto) const
 
int32 SpellHealingBonusTaken (Unit *caster, SpellInfo const *spellProto, int32 healamount, DamageEffectType damagetype) const
 
int32 SpellBaseAbsorbBonusDone (SpellSchoolMask schoolMask) const
 
int32 SpellAbsorbBonusDone (Unit *victim, SpellInfo const *spellProto, int32 absorbamount, SpellEffectInfo const &spellEffectInfo, uint32 stack=1, AuraEffect const *aurEff=nullptr) const
 
float SpellAbsorbPctDone (Unit *victim, SpellInfo const *spellProto) const
 
int32 SpellAbsorbBonusTaken (Unit *caster, SpellInfo const *spellProto, int32 absorbamount) const
 
int32 MeleeDamageBonusDone (Unit *pVictim, int32 damage, WeaponAttackType attType, DamageEffectType damagetype, SpellInfo const *spellProto=nullptr, SpellEffectInfo const *spellEffectInfo=nullptr, Mechanics mechanic=MECHANIC_NONE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr)
 
int32 MeleeDamageBonusTaken (Unit *attacker, int32 pdamage, WeaponAttackType attType, DamageEffectType damagetype, SpellInfo const *spellProto=nullptr, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL)
 
bool IsBlockCritical () const
 
float SpellCritChanceDone (Spell *spell, AuraEffect const *aurEff, SpellSchoolMask schoolMask, WeaponAttackType attackType=BASE_ATTACK) const
 
float SpellCritChanceTaken (Unit const *caster, Spell *spell, AuraEffect const *aurEff, SpellSchoolMask schoolMask, float doneChance, WeaponAttackType attackType=BASE_ATTACK) const
 
void ApplySpellImmune (uint32 spellId, SpellImmunity op, uint32 type, bool apply)
 
bool IsImmunedToSpell (SpellInfo const *spellInfo, uint32 effectMask, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const
 
uint32 GetSchoolImmunityMask () const
 
uint32 GetDamageImmunityMask () const
 
uint64 GetMechanicImmunityMask () const
 
EnumFlag< SpellOtherImmunity > GetSpellOtherImmunityMask () const
 
bool IsImmunedToDamage (SpellSchoolMask meleeSchoolMask) const
 
bool IsImmunedToDamage (WorldObject const *caster, SpellInfo const *spellInfo, SpellEffectInfo const *spellEffectInfo=nullptr) const
 
bool IsImmunedToAuraPeriodicTick (WorldObject const *caster, AuraEffect const *auraEffect) const
 
void UpdateSpeed (UnitMoveType mtype)
 
float GetSpeed (UnitMoveType mtype) const
 
float GetSpeedRate (UnitMoveType mtype) const
 
void SetSpeed (UnitMoveType mtype, float newValue)
 
void SetSpeedRate (UnitMoveType mtype, float rate)
 
int32 GetFlightCapabilityID () const
 
void SetFlightCapabilityID (int32 flightCapabilityId, bool clientUpdate)
 
float GetAdvFlyingSpeed (AdvFlyingRateTypeSingle speedType) const
 
float GetAdvFlyingSpeedMin (AdvFlyingRateTypeRange speedType) const
 
float GetAdvFlyingSpeedMax (AdvFlyingRateTypeRange speedType) const
 
void UpdateAdvFlyingSpeed (AdvFlyingRateTypeSingle speedType, bool clientUpdate)
 
void UpdateAdvFlyingSpeed (AdvFlyingRateTypeRange speedType, bool clientUpdate)
 
void FollowerAdded (AbstractFollower *f)
 
void FollowerRemoved (AbstractFollower *f)
 
void RemoveAllFollowers ()
 
MotionMaster * GetMotionMaster ()
 
MotionMaster const * GetMotionMaster () const
 
bool IsStopped () const
 
void StopMoving (bool force=false)
 
void PauseMovement (uint32 timer=0, uint8 slot=0, bool forced=true)
 
void ResumeMovement (uint32 timer=0, uint8 slot=0)
 
void AddUnitMovementFlag (MovementFlags f)
 
void RemoveUnitMovementFlag (MovementFlags f)
 
bool HasUnitMovementFlag (MovementFlags f) const
 
MovementFlags GetUnitMovementFlags () const
 
void SetUnitMovementFlags (MovementFlags f)
 
bool IsSplineEnabled () const
 
void SetControlled (bool apply, UnitState state)
 
void ApplyControlStatesIfNeeded ()
 
void SendPetActionFeedback (PetActionFeedback msg, uint32 spellId) const
 -------—Pet responses methods--------------—
 
void SendPetActionSound (PetAction action) const
 
void SendPetDismissSound () const
 
void SendPetAIReaction (ObjectGuid guid) const
 
void PropagateSpeedChange ()
 -------—End of Pet responses methods-------—
 
void ClearAllReactives ()
 
void StartReactiveTimer (ReactiveType reactive)
 
void UpdateReactives (uint32 p_time)
 
void UpdateAuraForGroup ()
 
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)
 
Vehicle * GetVehicleKit () const
 
Trinity::unique_weak_ptr< Vehicle > GetVehicleKitWeakPtr () const
 
Vehicle * GetVehicle () const
 
void SetVehicle (Vehicle *vehicle)
 
bool IsOnVehicle (Unit const *vehicle) const
 
Unit * GetVehicleBase () const
 
Unit * GetVehicleRoot () const
 
Creature * GetVehicleCreatureBase () const
 
ObjectGuid GetTransGUID () const override
 
TransportBase * GetDirectTransport () const
 Returns the transport this unit is on directly (if on vehicle and transport, return vehicle)
 
void HandleSpellClick (Unit *clicker, int8 seatId=-1)
 
bool HandleSpellClick (Unit *clicker, int8 seatId, uint32 spellId, TriggerCastFlags flags=TRIGGERED_NONE, SpellClickInfo const *spellClickInfo=nullptr)
 
void EnterVehicle (Unit *base, int8 seatId=-1)
 
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
 
bool IsFlying () const
 
bool IsFalling () const
 
float GetHoverOffset () const
 
int32 RewardRage (uint32 baseRage)
 
virtual float GetFollowAngle () const
 
void OutDebugInfo () const
 
virtual bool IsLoading () const
 
bool IsDuringRemoveFromWorld () const
 
Pet * ToPet ()
 
Pet const * ToPet () const
 
Totem * ToTotem ()
 
Totem const * ToTotem () const
 
TempSummon * ToTempSummon ()
 
TempSummon const * ToTempSummon () const
 
ObjectGuid GetTarget () const
 
void SetInstantCast (bool set)
 
bool CanInstantCast () const
 
SpellEffectValue GetHighestExclusiveSameEffectSpellGroupValue (AuraEffect const *aurEff, AuraType auraType, bool checkMiscValue=false, int32 miscValue=0) const
 
bool IsHighestExclusiveAura (Aura const *aura, bool removeOtherAuraApplications=false)
 
bool IsHighestExclusiveAuraEffect (SpellInfo const *spellInfo, AuraType auraType, SpellEffectValue effectAmount, uint32 auraEffectMask, bool removeOtherAuraApplications=false)
 
virtual void Talk (std::string_view text, ChatMsg msgType, Language language, float textRange, WorldObject const *target)
 
virtual void Say (std::string_view text, Language language, WorldObject const *target=nullptr)
 
virtual void Yell (std::string_view text, Language language, WorldObject const *target=nullptr)
 
virtual void TextEmote (std::string_view text, WorldObject const *target=nullptr, bool isBossEmote=false)
 
virtual void Whisper (std::string_view text, Language language, Player *target, bool isBossWhisper=false)
 
virtual void Talk (uint32 textId, ChatMsg msgType, float textRange, WorldObject const *target)
 
virtual void Say (uint32 textId, WorldObject const *target=nullptr)
 
virtual void Yell (uint32 textId, WorldObject const *target=nullptr)
 
virtual void TextEmote (uint32 textId, WorldObject const *target=nullptr, bool isBossEmote=false)
 
virtual void Whisper (uint32 textId, Player *target, bool isBossWhisper=false)
 
void ClearBossEmotes (Optional< uint32 > zoneId={}, Player const *target=nullptr) const
 Clears boss emotes frame.
 
float GetCollisionHeight () const override
 
uint32 GetVirtualItemId (uint32 slot) const
 
uint16 GetVirtualItemAppearanceMod (uint32 slot) const
 
void SetVirtualItem (uint32 slot, uint32 itemId, uint16 appearanceModId=0, uint16 itemVisual=0)
 
bool IsCombatDisallowed () const
 
void SetIsCombatDisallowed (bool apply)
 
void AddWorldEffect (int32 worldEffectId)
 
void RemoveWorldEffect (int32 worldEffectId)
 
void ClearWorldEffects ()
 
Vignettes::VignetteData const * GetVignette () const
 
void SetVignette (uint32 vignetteId)
 
std::string GetDebugInfo () const override
 
void AtStartOfEncounter (EncounterType type)
 
void AtEndOfEncounter (EncounterType type)
 
- Public Member Functions inherited from WorldObject
virtual ~WorldObject ()
 
void AddToWorld () override
 
void RemoveFromWorld () override
 
void GetNearPoint2D (WorldObject const *searcher, float &x, float &y, float distance, float absAngle) const
 
void GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float distance2d, float absAngle) const
 
void GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float relAngle=0) const
 
void MovePosition (Position &pos, float dist, float angle, float maxHeightChange=6.0f) const
 
Position GetNearPosition (float dist, float angle)
 
void MovePositionToFirstCollision (Position &pos, float dist, float angle) const
 
Position GetFirstCollisionPosition (float dist, float angle)
 
Position GetRandomNearPosition (float radius)
 
void GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const
 
void UpdateGroundPositionZ (float x, float y, float &z) const
 
void UpdateAllowedPositionZ (float x, float y, float &z, float *groundZ=nullptr) const
 
Position GetRandomPoint (Position const &srcPos, float distance, float minDistance=0.0f) const
 
uint32 GetInstanceId () const
 
PhaseShift & GetPhaseShift ()
 
PhaseShift const & GetPhaseShift () const
 
PhaseShift & GetSuppressedPhaseShift ()
 
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
 
InstanceScript * GetInstanceScript () const
 
std::string const & GetName () const
 
void SetName (std::string newname)
 
std::string GetNameForLocaleIdx (LocaleConstant) const override
 
float GetDistance (WorldObject const *obj) const
 
float GetDistance (Position const &pos) const
 
float GetDistance (float x, float y, float z) const
 
float GetDistance2d (WorldObject const *obj) const
 
float GetDistance2d (float x, float y) const
 
float GetDistanceZ (WorldObject const *obj) const
 
bool IsSelfOrInSameMap (WorldObject const *obj) const
 
bool IsInMap (WorldObject const *obj) const
 
bool IsWithinDist3d (float x, float y, float z, float dist) const
 
bool IsWithinDist3d (Position const *pos, float dist) const
 
bool IsWithinDist2d (float x, float y, float dist) const
 
bool IsWithinDist2d (Position const *pos, float dist) const
 
bool IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const
 
bool IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const
 
bool IsWithinLOS (float x, float y, float z, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const
 
bool IsWithinLOSInMap (WorldObject const *obj, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const
 
Position GetHitSpherePointFor (Position const &dest) const
 
void GetHitSpherePointFor (Position const &dest, float &x, float &y, float &z) const
 
bool GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const
 
bool IsInRange (WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const
 
bool IsInRange2d (Position const *pos, float minRange, float maxRange) const
 
bool IsInRange3d (Position const *pos, float minRange, float maxRange) const
 
bool isInFront (WorldObject const *target, float arc=float(M_PI)) const
 
bool isInBack (WorldObject const *target, float arc=float(M_PI)) const
 
bool IsInBetween (Position const &pos1, Position const &pos2, float size=0) const
 
bool IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const
 
virtual void SendMessageToSet (WorldPacket const *data, bool self) const
 
virtual void SendMessageToSetInRange (WorldPacket const *data, float dist, bool self) const
 
virtual void SendMessageToSet (WorldPacket const *data, Player const *skipped_rcvr) const
 
void SendCombatLogMessage (WorldPackets::CombatLog::CombatLogServerPacket *combatLog) const
 
void PlayDistanceSound (uint32 soundId, Player const *target=nullptr) const
 
void StopDistanceSound (Player const *target=nullptr) const
 
void PlayDirectSound (uint32 soundId, Player const *target=nullptr, uint32 broadcastTextId=0) const
 
void PlayDirectMusic (uint32 musicId, Player const *target=nullptr) const
 
void PlayObjectSound (int32 soundKitId, ObjectGuid targetObject, Player const *target=nullptr, int32 broadcastTextId=0) const
 
void AddObjectToRemoveList ()
 
float GetGridActivationRange () const
 
float GetVisibilityRange () const
 
float GetSightRange (WorldObject const *target=nullptr) const
 
bool CanSeeOrDetect (WorldObject const *obj, CanSeeOrDetectExtraArgs const &args={ }) const
 
virtual void SetMap (Map *map)
 
virtual void ResetMap ()
 
Map * GetMap () const
 
Map * FindMap () const
 
void SetZoneScript ()
 
ZoneScript * FindZoneScript () const
 
ZoneScript * GetZoneScript () const
 
Scenario * GetScenario () const
 
TempSummon * SummonCreature (uint32 entry, Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty)
 
TempSummon * SummonCreature (uint32 entry, float x, float y, float z, float o=0, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, ObjectGuid privateObjectOwner=ObjectGuid::Empty)
 
TempSummon * SummonPersonalClone (Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, Player *privateObjectOwner=nullptr)
 
GameObject * SummonGameObject (uint32 entry, Position const &pos, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN)
 
GameObject * SummonGameObject (uint32 entry, float x, float y, float z, float ang, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN)
 
Creature * SummonTrigger (float x, float y, float z, float ang, Milliseconds despawnTime, CreatureAI *(*GetAI)(Creature *)=nullptr)
 
void SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=nullptr)
 
Creature * FindNearestCreature (uint32 entry, float range, bool alive=true) const
 
Creature * FindNearestCreatureWithOptions (float range, FindCreatureOptions const &options) const
 
GameObject * FindNearestGameObject (uint32 entry, float range, bool spawnedOnly=true) const
 
GameObject * FindNearestGameObjectWithOptions (float range, FindGameObjectOptions const &options) const
 
GameObject * FindNearestUnspawnedGameObject (uint32 entry, float range) const
 
GameObject * FindNearestGameObjectOfType (GameobjectTypes type, float range) const
 
Player * SelectNearestPlayer (float range) const
 
ObjectGuid GetCharmerOrOwnerOrOwnGUID () const
 
Unit * GetOwner () const
 
Unit * GetCharmerOrOwner () const
 
Unit * GetCharmerOrOwnerOrSelf () const
 
Player * GetCharmerOrOwnerPlayerOrPlayerItself () const
 
Player * GetAffectingPlayer () const
 
Player * GetSpellModOwner () const
 
SpellRange GetSpellMinMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const
 
SpellEffectValue ApplyEffectModifiers (SpellInfo const *spellInfo, uint8 effIndex, SpellEffectValue value) const
 
int32 CalcSpellDuration (SpellInfo const *spellInfo, std::vector< SpellPowerCost > const *powerCosts) const
 
int32 ModSpellDuration (SpellInfo const *spellInfo, WorldObject const *target, int32 duration, bool positive, uint32 effectMask) const
 
void ModSpellCastTime (SpellInfo const *spellInfo, int32 &castTime, Spell *spell=nullptr) const
 
void ModSpellDurationTime (SpellInfo const *spellInfo, int32 &durationTime, Spell *spell=nullptr) const
 
SpellMissInfo MagicSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const
 
SpellMissInfo SpellHitResult (Unit *victim, SpellInfo const *spellInfo, bool canReflect, bool canImmune) const
 
void SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo)
 
FactionTemplateEntry const * GetFactionTemplateEntry () const
 
ReputationRank GetReactionTo (WorldObject const *target) const
 
bool IsHostileTo (WorldObject const *target) const
 
bool IsHostileToPlayers () const
 
bool IsFriendlyTo (WorldObject const *target) const
 
bool IsNeutralToAll () const
 
SpellCastResult CastSpell (CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
 
void SendPlayOrphanSpellVisual (Position const &sourceLocation, ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendPlayOrphanSpellVisual (Position const &sourceLocation, Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendPlayOrphanSpellVisual (ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendPlayOrphanSpellVisual (Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendCancelOrphanSpellVisual (uint32 id)
 
bool IsValidAttackTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const
 
bool IsValidAssistTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const
 
Unit * GetMagicHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo)
 
template<typename Container >
void GetGameObjectListWithEntryInGrid (Container &gameObjectContainer, uint32 entry, float maxSearchRange=250.0f) const
 
template<typename Container >
void GetGameObjectListWithOptionsInGrid (Container &gameObjectContainer, float maxSearchRange, FindGameObjectOptions const &options) const
 
template<typename Container >
void GetCreatureListWithEntryInGrid (Container &creatureContainer, uint32 entry, float maxSearchRange=250.0f) const
 
template<typename Container >
void GetCreatureListWithOptionsInGrid (Container &creatureContainer, float maxSearchRange, FindCreatureOptions const &options) const
 
template<typename Container >
void GetPlayerListInGrid (Container &playerContainer, float maxSearchRange, bool alive=true) const
 
void DestroyForNearbyPlayers ()
 
virtual void UpdateObjectVisibilityOnCreate ()
 
virtual void UpdateObjectVisibilityOnDestroy ()
 
void UpdatePositionData ()
 
void BuildUpdate (UpdateDataMapType &) override
 
bool AddToObjectUpdate () override
 
void RemoveFromObjectUpdate () override
 
void AddToNotify (uint16 f)
 
bool isNeedNotify (uint16 f) const
 
uint16 GetNotifyFlags () const
 
void ResetAllNotifies ()
 
bool isActiveObject () const
 
void setActive (bool isActiveObject)
 
bool IsFarVisible () const
 
void SetFarVisible (bool on)
 
bool IsVisibilityOverridden () const
 
void SetVisibilityDistanceOverride (VisibilityDistanceType type)
 
void SetIsStoredInWorldObjectGridContainer (bool apply)
 
bool IsAlwaysStoredInWorldObjectGridContainer () const
 
bool IsStoredInWorldObjectGridContainer () const
 
TransportBase * GetTransport () const
 
float GetTransOffsetX () const
 
float GetTransOffsetY () const
 
float GetTransOffsetZ () const
 
float GetTransOffsetO () const
 
Position const & GetTransOffset () const
 
uint32 GetTransTime () const
 
int8 GetTransSeat () const
 
void SetTransport (TransportBase *t)
 
virtual Position const & GetStationaryPosition () const
 
float GetFloorZ () const
 
float GetMapWaterOrGroundLevel (float x, float y, float z, float *ground=nullptr) const
 
float GetMapHeight (float x, float y, float z, bool vmap=true, float distanceToSearch=50.0f) const
 
std::string GetDebugInfo () const override
 
bool IsPrivateObject () const
 
ObjectGuid GetPrivateObjectOwner () const
 
void SetPrivateObjectOwner (ObjectGuid const &owner)
 
bool CheckPrivateObjectOwnerVisibility (WorldObject const *seer) const
 
SmoothPhasing * GetOrCreateSmoothPhasing ()
 
SmoothPhasing * GetSmoothPhasing ()
 
SmoothPhasing const * GetSmoothPhasing () const
 
- Public Member Functions inherited from Object
virtual ~Object ()
 
uint32 GetEntry () const
 
void SetEntry (uint32 entry)
 
float GetObjectScale () const
 
uint32 GetDynamicFlags () const
 
bool HasDynamicFlag (uint32 flag) const
 
void SetDynamicFlag (uint32 flag)
 
void RemoveDynamicFlag (uint32 flag)
 
void ReplaceAllDynamicFlags (uint32 flag)
 
void BuildValuesUpdateBlockForPlayerWithFlag (UpdateData *data, UF::UpdateFieldFlag flags, Player const *target) const
 
WorldObject * ToWorldObject ()
 
WorldObject const * ToWorldObject () const
 
Item * ToItem ()
 
Item const * ToItem () const
 
Unit * ToUnit ()
 
Unit const * ToUnit () const
 
Creature * ToCreature ()
 
Creature const * ToCreature () const
 
Player * ToPlayer ()
 
Player const * ToPlayer () const
 
GameObject * ToGameObject ()
 
GameObject const * ToGameObject () const
 
Corpse * ToCorpse ()
 
Corpse const * ToCorpse () const
 
DynamicObject * ToDynObject ()
 
DynamicObject const * ToDynObject () const
 
AreaTrigger * ToAreaTrigger ()
 
AreaTrigger const * ToAreaTrigger () const
 
SceneObject * ToSceneObject ()
 
SceneObject const * ToSceneObject () const
 
Conversation * ToConversation ()
 
Conversation const * ToConversation () const
 
Trinity::unique_weak_ptr< Object > GetWeakPtr () const
 
- Public Member Functions inherited from BaseEntity
virtual ~BaseEntity ()
 
bool IsInWorld () const
 
ObjectGuid const & GetGUID () const
 
TypeID GetTypeId () const
 
bool isType (TypeMask mask) const
 
bool IsWorldObject () const
 
bool IsItem () const
 
bool IsUnit () const
 
bool IsCreature () const
 
bool IsPlayer () const
 
bool IsGameObject () const
 
bool IsDynObject () const
 
bool IsCorpse () const
 
bool IsAreaTrigger () const
 
bool IsSceneObject () const
 
bool IsConversation () const
 
bool IsMeshObject () const
 
virtual void BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const
 
void SendUpdateToPlayer (Player *player) const
 
void BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const
 
void BuildDestroyUpdateBlock (UpdateData *data) const
 
void BuildOutOfRangeUpdateBlock (UpdateData *data) const
 
ByteBuffer & PrepareValuesUpdateBuffer (UpdateData *data) const
 
void SendOutOfRangeForPlayer (Player const *target) const
 
void ClearUpdateMask (bool remove)
 
void SetIsNewObject (bool enable)
 
bool IsDestroyedObject () const
 
void SetDestroyedObject (bool destroyed)
 
void BuildUpdateChangesMask ()
 
void BuildFieldsUpdate (Player *player, UpdateDataMapType &data_map) const
 
template<typename T >
void ForceUpdateFieldChange (UF::UpdateFieldPrivateSetter< T > const &)
 
- Public Member Functions inherited from WorldLocation
constexpr WorldLocation ()
 
constexpr WorldLocation (uint32 mapId, float x, float y)
 
constexpr WorldLocation (uint32 mapId, float x, float y, float z)
 
constexpr WorldLocation (uint32 mapId, float x, float y, float z, float o)
 
constexpr WorldLocation (uint32 mapId, Position const &position)
 
constexpr void WorldRelocate (WorldLocation const &loc)
 
constexpr void WorldRelocate (WorldLocation const *loc)
 
constexpr void WorldRelocate (uint32 mapId, Position const &pos)
 
constexpr void WorldRelocate (uint32 mapId, float x, float y, float z, float o)
 
constexpr WorldLocation GetWorldLocation () const
 
constexpr uint32 GetMapId () const
 
std::string GetDebugInfo () const
 
- Public Member Functions inherited from Position
constexpr Position ()
 
constexpr Position (float x, float y)
 
constexpr Position (float x, float y, float z)
 
constexpr Position (float x, float y, float z, float o)
 
bool operator== (Position const &a) const
 
constexpr void Relocate (float x, float y)
 
constexpr void Relocate (float x, float y, float z)
 
constexpr void Relocate (float x, float y, float z, float o)
 
constexpr void Relocate (Position const &pos)
 
constexpr void Relocate (Position const *pos)
 
void RelocateOffset (Position const &offset)
 
constexpr void SetOrientation (float orientation)
 
constexpr float GetPositionX () const
 
constexpr float GetPositionY () const
 
constexpr float GetPositionZ () const
 
constexpr float GetOrientation () const
 
constexpr void GetPosition (float &x, float &y) const
 
constexpr void GetPosition (float &x, float &y, float &z) const
 
constexpr void GetPosition (float &x, float &y, float &z, float &o) const
 
constexpr Position GetPosition () const
 
Streamer< XY > PositionXYStream ()
 
ConstStreamer< XY > PositionXYStream () const
 
Streamer< XYZ > PositionXYZStream ()
 
ConstStreamer< XYZ > PositionXYZStream () const
 
Streamer< XYZO > PositionXYZOStream ()
 
ConstStreamer< XYZO > PositionXYZOStream () const
 
Streamer< PackedXYZ > PositionPackedXYZStream ()
 
ConstStreamer< PackedXYZ > PositionPackedXYZStream () const
 
bool IsPositionValid () const
 
constexpr float GetExactDist2dSq (const float x, const float y) const
 
constexpr float GetExactDist2dSq (Position const &pos) const
 
constexpr float GetExactDist2dSq (Position const *pos) const
 
float GetExactDist2d (const float x, const float y) const
 
float GetExactDist2d (Position const &pos) const
 
float GetExactDist2d (Position const *pos) const
 
constexpr float GetExactDistSq (float x, float y, float z) const
 
constexpr float GetExactDistSq (Position const &pos) const
 
constexpr float GetExactDistSq (Position const *pos) const
 
float GetExactDist (float x, float y, float z) const
 
float GetExactDist (Position const &pos) const
 
float GetExactDist (Position const *pos) const
 
Position GetPositionOffsetTo (Position const &endPos) const
 
Position GetPositionWithOffset (Position const &offset) const
 
float GetAbsoluteAngle (float x, float y) const
 
float GetAbsoluteAngle (Position const &pos) const
 
float GetAbsoluteAngle (Position const *pos) const
 
float ToAbsoluteAngle (float relAngle) const
 
float ToRelativeAngle (float absAngle) const
 
float GetRelativeAngle (float x, float y) const
 
float GetRelativeAngle (Position const &pos) const
 
float GetRelativeAngle (Position const *pos) const
 
constexpr bool IsInDist2d (float x, float y, float dist) const
 
constexpr bool IsInDist2d (Position const &pos, float dist) const
 
constexpr bool IsInDist2d (Position const *pos, float dist) const
 
constexpr bool IsInDist (float x, float y, float z, float dist) const
 
constexpr bool IsInDist (Position const &pos, float dist) const
 
constexpr bool IsInDist (Position const *pos, float dist) const
 
bool IsWithinBox (Position const &boxOrigin, float length, float width, float height) const
 
bool IsWithinVerticalCylinder (Position const &cylinderOrigin, float radius, float height, bool isDoubleVertical=false) const
 
bool IsInPolygon2D (Position const &polygonOrigin, std::span< Position const > vertices) const
 
bool HasInArc (float arcangle, Position const *pos, float border=2.0f) const
 
bool HasInLine (Position const *pos, float objSize, float width) const
 
std::string ToString () const
 
- Public Member Functions inherited from GridObject< Creature >
virtual ~GridObject ()
 
bool IsInGrid () const
 
void AddToGrid (GridRefManager< Creature > &m)
 
void RemoveFromGrid ()
 

Static Public Member Functions

static Creature * CreateCreature (uint32 entry, Map *map, Position const &pos, uint32 vehId=0)
 
static Creature * CreateCreatureFromDB (ObjectGuid::LowType spawnId, Map *map, bool addToMap=true, bool allowDuplicate=false)
 
static bool DeleteFromDB (ObjectGuid::LowType spawnId)
 
static float GetDamageMod (CreatureClassifications classification)
 
- Static Public Member Functions inherited from Unit
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 WorldObject * ToWorldObject (Object *o)
 
static WorldObject const * ToWorldObject (Object const *o)
 
static Item * ToItem (Object *o)
 
static Item const * ToItem (Object const *o)
 
static Unit * ToUnit (Object *o)
 
static Unit const * ToUnit (Object const *o)
 
static Creature * ToCreature (Object *o)
 
static Creature const * ToCreature (Object const *o)
 
static Player * ToPlayer (Object *o)
 
static Player const * ToPlayer (Object const *o)
 
static GameObject * ToGameObject (Object *o)
 
static GameObject const * ToGameObject (Object const *o)
 
static Corpse * ToCorpse (Object *o)
 
static Corpse const * ToCorpse (Object const *o)
 
static DynamicObject * ToDynObject (Object *o)
 
static DynamicObject const * ToDynObject (Object const *o)
 
static AreaTrigger * ToAreaTrigger (Object *o)
 
static AreaTrigger const * ToAreaTrigger (Object const *o)
 
static SceneObject * ToSceneObject (Object *o)
 
static SceneObject const * ToSceneObject (Object const *o)
 
static Conversation * ToConversation (Object *o)
 
static Conversation const * ToConversation (Object const *o)
 
- Static Public Member Functions inherited from BaseEntity
static ObjectGuid GetGUID (BaseEntity const *o)
 
- Static Public Member Functions inherited from Position
static float NormalizeOrientation (float o)
 

Public Attributes

std::unique_ptr< Loot > m_loot
 
std::unordered_map< ObjectGuid, std::unique_ptr< Loot > > m_personalLoot
 
uint32 m_spells [MAX_CREATURE_SPELLS]
 
uint64 m_PlayerDamageReq
 
float m_SightDistance
 
float m_CombatDistance
 
bool m_isTempWorldObject
 
UF::OptionalUpdateField< UF::VendorData, int32(WowCS::EntityFragment::FVendor_C), 0 > m_vendorData
 
- Public Attributes inherited from Unit
bool m_canDualWield
 
ControlList m_Controlled
 
std::array< ObjectGuid, MAX_SUMMON_SLOT > m_SummonSlot
 
std::array< ObjectGuid, MAX_GAMEOBJECT_SLOT > m_ObjectSlot
 
float m_modMeleeHitChance
 
float m_modRangedHitChance
 
float m_modSpellHitChance
 
float m_baseSpellCritChance
 
std::array< uint32, MAX_ATTACK > m_baseAttackSpeed
 
std::array< float, MAX_ATTACK > m_modAttackSpeedPct
 
std::array< uint32, MAX_ATTACK > m_attackTimer
 
SpellImmuneContainer m_spellImmune [MAX_SPELL_IMMUNITY]
 
uint32 m_lastSanctuaryTime
 
ObjectGuid LastCharmerGUID
 
std::unique_ptr< Movement::MoveSpline > movespline
 
UF::UpdateField< UF::UnitData, int32(WowCS::EntityFragment::CGObject), TYPEID_UNIT > m_unitData
 
- Public Attributes inherited from WorldObject
FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPES > m_stealth
 
FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPES > m_stealthDetect
 
FlaggedValuesArray32< int32, uint64, InvisibilityType, TOTAL_INVISIBILITY_TYPES > m_invisibility
 
FlaggedValuesArray32< int32, uint64, InvisibilityType, TOTAL_INVISIBILITY_TYPES > m_invisibilityDetect
 
FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPES > m_serverSideVisibility
 
FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPES > m_serverSideVisibilityDetect
 
uint32 LastUsedScriptID
 
MovementInfo m_movementInfo
 
EventProcessor m_Events
 
- Public Attributes inherited from Object
UF::UpdateField< UF::ObjectData, int32(WowCS::EntityFragment::CGObject), TYPEID_OBJECT > m_objectData
 
- Public Attributes inherited from BaseEntity
UF::UpdateFieldHolder m_values
 
- Public Attributes inherited from WorldLocation
uint32 m_mapId
 
- Public Attributes inherited from Position
float m_positionX
 
float m_positionY
 
float m_positionZ
 

Protected Member Functions

void BuildValuesCreate (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const override
 
void BuildValuesUpdate (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const override
 
bool CreateFromProto (ObjectGuid::LowType guidlow, uint32 entry, CreatureData const *data=nullptr, uint32 vehId=0)
 
bool InitEntry (uint32 entry, CreatureData const *data=nullptr)
 
void RegenerateHealth ()
 
void Regenerate (Powers power)
 
bool IsInvisibleDueToDespawn (WorldObject const *seer) const override
 
bool CanAlwaysSee (WorldObject const *obj) const override
 
- Protected Member Functions inherited from Unit
void SetAI (UnitAI *newAI)
 
UnitAI * GetTopAI () const
 
void RefreshAI ()
 
UnitAI * GetScheduledChangeAI ()
 
bool HasScheduledAIChange () const
 
 Unit (bool isWorldObject)
 
UF::UpdateFieldFlag GetUpdateFieldFlagsFor (Player const *target) const override
 
void DestroyForPlayer (Player const *target) const override
 
void ClearValuesChangesMask () override
 
void _UpdateSpells (uint32 time)
 
void _DeleteRemovedAuras ()
 
void _UpdateAutoRepeatSpell ()
 
void RemoveGameObjectImpl (GameObject *gameObj, bool del)
 
bool IsAlwaysVisibleFor (WorldObject const *seer) const override
 
bool IsAlwaysDetectableFor (WorldObject const *seer) const override
 
void DisableSpline ()
 
void ProcessPositionDataChanged (PositionFullTerrainStatus const &data) override
 
void UpdateLiquidStatusOnPositionChange (Optional< LiquidData > const &newLiquidData)
 
virtual void AtEnterCombat ()
 
virtual void AtExitCombat ()
 
void SetFeared (bool apply)
 
void SetConfused (bool apply)
 
void SetStunned (bool apply)
 
void SetRooted (bool apply)
 
- Protected Member Functions inherited from WorldObject
 WorldObject (bool isWorldObject)
 
void SetLocationMapId (uint32 _mapId)
 
void SetLocationInstanceId (uint32 _instanceId)
 
virtual bool CanNeverSee (WorldObject const *obj, bool ignorePhaseShift=false) const
 
virtual bool IsNeverVisibleFor (WorldObject const *seer, bool allowServersideObjects) const
 
- Protected Member Functions inherited from Object
 Object ()
 
void BuildEntityFragmentsForValuesUpdateForPlayerWithMask (ByteBuffer &data, EnumFlag< UF::UpdateFieldFlag > flags) const
 
- Protected Member Functions inherited from BaseEntity
 BaseEntity ()
 
void _Create (ObjectGuid const &guid)
 
template<typename T >
void SetUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type value)
 
template<typename T >
void SetUpdateFieldFlagValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type flag)
 
template<typename T >
void RemoveUpdateFieldFlagValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type flag)
 
template<typename T >
UF::DynamicUpdateFieldSetter< T >::insert_result AddDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter)
 
template<typename T >
UF::DynamicUpdateFieldSetter< T >::insert_result InsertDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index)
 
template<typename T >
void RemoveDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index)
 
template<typename T >
void ClearDynamicUpdateFieldValues (UF::DynamicUpdateFieldSetter< T > setter)
 
template<typename K , typename V >
void RemoveMapUpdateFieldValue (UF::MapUpdateFieldSetter< K, V > setter, std::type_identity_t< K > const &key)
 
template<typename T >
void InsertSetUpdateFieldValue (UF::SetUpdateFieldSetter< T > setter, std::type_identity_t< T > const &key)
 
template<typename T >
void RemoveSetUpdateFieldValue (UF::SetUpdateFieldSetter< T > setter, std::type_identity_t< T > const &key)
 
template<typename T >
void RemoveOptionalUpdateFieldValue (UF::OptionalUpdateFieldSetter< T > setter)
 
template<typename T >
void SetUpdateFieldStatValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type value)
 
template<typename T >
void ApplyModUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type mod, bool apply)
 
template<typename T >
void ApplyPercentModUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, float percent, bool apply)
 
template<typename Action >
void DoWithSuppressingObjectUpdates (Action &&action)
 
void BuildMovementUpdate (ByteBuffer &data, CreateObjectBits flags, Player const *target) const
 
void AddToObjectUpdateIfNeeded ()
 
- Protected Member Functions inherited from MapObject
 MapObject ()
 

Static Protected Member Functions

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

Protected Attributes

VendorItemCounts m_vendorItemCounts
 
GuidUnorderedSet m_tapList
 
bool m_dontClearTapListOnEvade
 
time_t _pickpocketLootRestore
 Timers.
 
time_t m_corpseRemoveTime
 
time_t m_respawnTime
 
uint32 m_respawnDelay
 
uint32 m_corpseDelay
 
bool m_ignoreCorpseDecayRatio
 
float m_wanderDistance
 
uint32 m_boundaryCheckTime
 
ReactStates m_reactState
 
MovementGeneratorType m_defaultMovementType
 
ObjectGuid::LowType m_spawnId
 For new or temporary creatures is 0 for saved it is lowguid.
 
uint8 m_equipmentId
 
int8 m_originalEquipmentId
 
bool m_AlreadyCallAssistance
 
bool m_AlreadySearchedAssistance
 
bool m_cannotReachTarget
 
uint32 m_cannotReachTimer
 
SpellSchoolMask m_meleeDamageSchoolMask
 
uint32 m_baseAttackPower
 
uint32 m_baseRangedAttackPower
 
uint32 m_originalEntry
 
Position m_homePosition
 
Position m_transportHomePosition
 
bool DisableReputationGain
 
CreatureTemplate const * m_creatureInfo
 
CreatureData const * m_creatureData
 
CreatureDifficulty const * m_creatureDifficulty
 
std::array< std::string const *, 3 > m_stringIds
 
Optional< std::string > m_scriptStringId
 
Optional< uint32 > m_lootId
 
uint16 m_LootMode
 
CreatureStaticFlagsHolder _staticFlags
 
- Protected Attributes inherited from Unit
bool m_ControlledByPlayer
 
std::array< float, MAX_STATS > m_floatStatPosBuff
 
std::array< float, MAX_STATS > m_floatStatNegBuff
 
AttackerSet m_attackers
 
Unit * m_attacking
 
DeathState m_deathState
 
int32 m_procDeep
 
int32 m_procChainLength
 
DynObjectList m_dynObj
 
GameObjectList m_gameObj
 
AreaTriggerList m_areaTrigger
 
AreaTriggerList m_insideAreaTriggers
 
uint32 m_transformSpell
 
std::array< Spell *, CURRENT_MAX_SPELL > m_currentSpells
 
AuraMap m_ownedAuras
 
AuraApplicationMap m_appliedAuras
 
AuraList m_removedAuras
 
AuraMap::iterator m_auraUpdateIterator
 
uint32 m_removedAurasCount
 
std::array< AuraEffectList, TOTAL_AURAS > m_modAuras
 
AuraList m_scAuras
 
AuraApplicationList m_interruptableAuras
 
AuraStateAurasMap m_auraStateAuras
 
EnumFlag< SpellAuraInterruptFlags > m_interruptMask
 
EnumFlag< SpellAuraInterruptFlags2 > m_interruptMask2
 
float m_auraFlatModifiersGroup [UNIT_MOD_END][MODIFIER_TYPE_FLAT_END]
 
float m_auraPctModifiersGroup [UNIT_MOD_END][MODIFIER_TYPE_PCT_END]
 
float m_attackPowerMods [uint32(AttackPowerModIndex::End)][uint32(AttackPowerModType::End)]
 
float m_weaponDamage [MAX_ATTACK][2]
 
bool m_canModifyStats
 
VisibleAuraContainer m_visibleAuras
 
Trinity::Containers::FlatSet< AuraApplication *, VisibleAuraSlotCompare > m_visibleAurasToUpdate
 
std::array< float, MAX_MOVE_TYPE > m_speed_rate
 
std::array< float, ADV_FLYING_MAX_SPEED_TYPE > m_advFlyingSpeed
 
Unit * m_unitMovedByMe
 
Player * m_playerMovingMe
 
Unit * m_charmer
 
Unit * m_charmed
 
std::unique_ptr< CharmInfo > m_charmInfo
 
SharedVisionList m_sharedVision
 
std::unique_ptr< MotionMaster > i_motionMaster
 
std::array< uint32, MAX_REACTIVE > m_reactiveTimer
 
uint32 m_regenTimer
 
Vehicle * m_vehicle
 
Trinity::unique_trackable_ptr< Vehicle > m_vehicleKit
 
uint32 m_unitTypeMask
 
LiquidTypeEntry const * _lastLiquid
 
std::unique_ptr< Vignettes::VignetteData > m_vignette
 
uint32 m_movementCounter
 Incrementing counter used in movement packets.
 
- Protected Attributes inherited from WorldObject
std::string m_name
 
bool m_isActive
 
bool m_isFarVisible
 
Optional< float > m_visibilityDistanceOverride
 
bool const m_isStoredInWorldObjectGridContainer
 
ZoneScript * m_zoneScript
 
TransportBase * m_transport
 
uint32 m_zoneId
 
uint32 m_areaId
 
float m_staticFloorZ
 
bool m_outdoors
 
ZLiquidStatus m_liquidStatus
 
Optional< WmoLocation > m_currentWmo
 
- Protected Attributes inherited from BaseEntity
TypeID m_objectTypeId = NUM_CLIENT_OBJECT_TYPES
 
CreateObjectBits m_updateFlag = {}
 
WowCS::EntityFragmentsHolder m_entityFragments
 
bool m_objectUpdated = false
 

Private Member Functions

void ForcedDespawn (uint32 timeMSToDespawn=0, Seconds forceRespawnTimer=0s)
 
bool CheckNoGrayAggroConfig (uint32 playerLevel, uint32 creatureLevel) const
 
void ReacquireSpellFocusTarget ()
 
CreatureStaticFlagsHolder GenerateStaticFlags (CreatureDifficulty const *creatureDifficulty, ObjectGuid::LowType spawnId, Difficulty difficultyId) const
 
void ApplyAllStaticFlags (CreatureStaticFlagsHolder const &flags)
 

Private Attributes

uint32 _waypointPathId
 
std::pair< uint32, uint32 > _currentWaypointNodeInfo
 
CreatureGroup * m_formation
 
bool m_triggerJustAppeared
 
bool m_respawnCompatibilityMode
 
bool _aggroGracePeriodExpired
 
struct { 
 
   ::Spell const *   Spell = nullptr 
 
   uint32   Delay = 0 
 
   ObjectGuid   Target 
 
   float   Orientation = 0.0f 
 
} _spellFocusInfo 
 
time_t _lastDamagedTime
 
CreatureTextRepeatGroup m_textRepeat
 
bool _regenerateHealth
 
Optional< uint32 > _defaultMountDisplayIdOverride
 
int32 _creatureImmunitiesId
 
uint32 _gossipMenuId
 
Optional< uint32 > _trainerId
 
float _sparringHealthPct
 

Additional Inherited Members

- Public Types inherited from Unit
enum class  AreaTriggerRemoveReason : uint8 { Default , UnitDespawn }
 
typedef std::set< Unit * > AttackerSet
 
typedef std::set< Unit * > ControlList
 
typedef std::vector< Unit * > UnitVector
 
typedef std::multimap< uint32, Aura * > AuraMap
 
typedef std::pair< AuraMap::const_iterator, AuraMap::const_iterator > AuraMapBounds
 
typedef std::pair< AuraMap::iterator, AuraMap::iterator > AuraMapBoundsNonConst
 
typedef std::multimap< uint32, AuraApplication * > AuraApplicationMap
 
typedef std::pair< AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator > AuraApplicationMapBounds
 
typedef std::pair< AuraApplicationMap::iterator, AuraApplicationMap::iterator > AuraApplicationMapBoundsNonConst
 
typedef std::multimap< AuraStateType, AuraApplication * > AuraStateAurasMap
 
typedef std::pair< AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator > AuraStateAurasMapBounds
 
typedef std::forward_list< AuraEffect * > AuraEffectList
 
typedef std::forward_list< Aura * > AuraList
 
typedef std::forward_list< AuraApplication * > AuraApplicationList
 
typedef std::array< DiminishingReturn, DIMINISHING_MAX > Diminishing
 
typedef std::vector< std::pair< uint32, AuraApplication * > > AuraApplicationProcContainer
 
typedef std::set< AuraApplication *, VisibleAuraSlotCompare > VisibleAuraContainer
 
- Protected Types inherited from Unit
typedef std::vector< DynamicObject * > DynObjectList
 
typedef std::list< GameObject * > GameObjectList
 
typedef std::vector< AreaTrigger * > AreaTriggerList
 

Detailed Description

Definition at line 81 of file Creature.h.

Constructor & Destructor Documentation

◆ Creature()

◆ ~Creature()

Creature::~Creature ( )
default

Member Function Documentation

◆ _IsTargetAcceptable()

◆ AddLootMode()

◆ AddToWorld()

◆ AI()

CreatureAI * Creature::AI ( ) const
inline

Definition at line 235 of file Creature.h.

References Unit::GetAI().

Referenced by Unit::_RegisterAreaTrigger(), Unit::_RegisterDynObject(), Unit::_UnregisterAreaTrigger(), Unit::_UnregisterDynObject(), Unit::AddGameObject(), Player::AddQuestAndCheckCompletion(), spell_skarmorak_fortified_shell_absorb::AfterRemove(), AIM_Initialize(), AtEngage(), npc_anubisath_sentinel::aqsentinelAI::CallBuddiesToAttack(), CanAlwaysSee(), CanCreatureAttack(), boss_veknilash::boss_veknilashAI::CastSpellOnBug(), spell_razorscale_flame_breath::CheckDamage(), spell_putricide_mutation_init::CheckRequirementInternal(), spell_icehowl_trample::CheckTargets(), spell_baleroc_blades_of_baleroc::ChooseBlade(), netherspite_infernal::netherspite_infernalAI::Cleanup(), CreatureUnitRelocationWorker(), Scripts::Pandaria::TheWanderingIsle::npc_li_fei_combat::DamageTaken(), Unit::DealDamage(), hyjalAI::DeSpawnVeins(), boss_adarogg::DoAction(), npc_halion_controller::DoAction(), npc_orb_carrier::DoAction(), boss_gluth::DoAction(), Scripts::Pandaria::TheWanderingIsle::npc_aysa_cloudsinger_cave_of_meditation::DoAction(), SummonList::DoActionImpl(), Spell::TargetInfo::DoDamageAndTriggers(), HomeMovementGenerator< T >::DoFinalize(), DoMovementInform(), DoMovementInform(), hyjalAI::DoOverrun(), Spell::GOTargetInfo::DoTargetSpellHit(), SummonList::DoZoneInCombat(), TrashJumpEvent::Execute(), LightningFieldEvent::Execute(), BalefulColossSmashEvent::Execute(), DelayedAttackStartEvent::Execute(), CaptainSurviveTalk::Execute(), ActivateGhouls::Execute(), spell_scion_of_eternity_arcane_barrage::FilterMeleeHoverDiskPassangers(), spell_malygos_surge_of_power_25::FilterTargets(), spell_varos_energize_core_area_enemy::FilterTargets(), spell_varos_energize_core_area_entry::FilterTargets(), TimedFleeingMovementGenerator::Finalize(), RotateMovementGenerator::Finalize(), SplineChainMovementGenerator::Finalize(), boss_anduin_wrynn::ForceAssistersToAttackRemnant(), boss_sapphiron::GetGUID(), npc_anubisath_sentinel::aqsentinelAI::GetOtherSentinels(), Player::GetQuestDialogStatus(), SmartScript::GetTargets(), boss_moroes::GuestsAttack(), spell_leotheras_the_blind_whirlwind_init::HandleAfterCast(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), debug_commandscript::HandleDebugBoundaryCommand(), spell_headless_horseman_head_is_dead::HandleDummy(), spell_skadi_reset_check::HandleDummy(), spell_sholazar_shoot_rjr::HandleDummy(), spell_garothi_cannon_chooser::HandleDummyEffect(), spell_auriaya_agro_creator::HandleDummyEffect(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleGossipSelectOptionOpcode(), spell_shade_of_medivh_basic_primer::HandleHit(), spell_tunk_interrupting_shout::HandleLaunchTarget(), npc_commandscript::HandleNpcEvadeCommand(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcSetDataCommand(), spell_trigger_ariok_altar_altercation::HandleOnHit(), WorldSession::HandlePetActionHelper(), battleground_silvershard_mines::HandleProgressEvent(), WorldSession::HandleQuestgiverHelloOpcode(), quest_scout_chopper::HandleQuestStatusChange(), spell_putricide_unstable_experiment::HandleScript(), spell_the_lich_king_vile_spirit_move_target_search::HandleScript(), spell_pilgrims_bounty_turkey_tracker::HandleScript(), spell_validated_quest_accept_briarpatch_alliance::HandleScript(), spell_validated_quest_accept_briarpatch_horde::HandleScript(), spell_sartura_whirlwind::HandleScript(), spell_gal_darah_impaling_charge::HandleScript(), spell_festergut_pungent_blight::HandleScript(), spell_rotface_large_ooze_combine::HandleScript(), spell_rotface_large_ooze_buff_combine::HandleScript(), spell_toravon_random_aggro::HandleScript(), spell_leotheras_the_blind_whirlwind_effect::HandleScript(), spell_volazj_whisper::HandleScriptEffect(), spell_illidan_cage_trap::HandleScriptEffect(), Unit::HandleSpellClick(), spell_putricide_mutated_transformation::HandleSummon(), spell_garothi_fel_bombardment_selector::HandleWarningEffect(), spell_borean_tundra_neural_needle::HandleWhisper(), spell_borean_tundra_prototype_neural_needle::HandleWhisper(), spell_dragonblight_high_executor_branding_iron::HandleWhisper(), TempSummon::InitSummon(), Unit::InterruptSpell(), IsEngaged(), IsEscorted(), SmartScript::IsSmart(), npc_meteor_strike_initial::IsSummonedBy(), Scripts::Pandaria::TheWanderingIsle::npc_min_dimwind_summon::IsSummonedBy(), Scripts::Pandaria::TheWanderingIsle::npc_master_li_fei_summon::IsSummonedBy(), npc_kayn_sunfury_ashtongue_intro_private::JustAppeared(), npc_cragmaw_blood_tick::JustAppeared(), boss_priestess_lackey_commonAI::JustDied(), npc_fel_crystal::JustDied(), boss_twinemperorsAI::JustDied(), npc_anubisath_sentinel::aqsentinelAI::JustDied(), boss_lord_stormsong::JustDied(), npc_watcher_gashra::JustDied(), npc_watcher_narjil::JustDied(), npc_watcher_silthik::JustDied(), boss_freya::boss_freyaAI::JustDied(), Scripts::Pandaria::TheWanderingIsle::npc_huojin_trainee::JustEngagedWith(), boss_twinemperorsAI::JustEngagedWith(), boss_freya::boss_freyaAI::JustEngagedWith(), boss_emalon::JustEngagedWith(), boss_skeram::boss_skeramAI::JustSummoned(), WorldBossAI::JustSummoned(), npc_ley_line_sprouts::JustSummoned(), boss_attumen::boss_attumenAI::JustSummoned(), boss_midnight::boss_midnightAI::JustSummoned(), boss_felmyst::JustSummoned(), boss_muru::JustSummoned(), boss_prince_taldaram::JustSummoned(), boss_black_knight::boss_black_knightAI::JustSummoned(), boss_prince_taldaram_icc::JustSummoned(), boss_deathbringer_saurfang::JustSummoned(), boss_lady_deathwhisper::JustSummoned(), npc_precious_icc::JustSummoned(), npc_the_lich_king_controller::JustSummoned(), boss_anubrekhan::JustSummoned(), boss_gothik::JustSummoned(), boss_noth::JustSummoned(), boss_ignis::boss_ignis_AI::JustSummoned(), boss_razorscale::JustSummoned(), boss_ymiron::JustSummoned(), npc_violet_hold_teleportation_portal_commonAI::JustSummoned(), boss_reliquary_of_souls::JustSummoned(), boss_warp_splinter::JustSummoned(), boss_balinda::JustSummoned(), boss_archimonde::JustSummoned(), npc_thrall_old_hillsbrad::JustSummoned(), boss_onyxia::JustSummoned(), npc_disciple_of_naralex::JustSummoned(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::JustSummoned(), npc_muglash::npc_muglashAI::JustSummoned(), boss_sjonnir::JustSummoned(), npc_brann_hos::JustSummoned(), boss_freya::boss_freyaAI::JustSummoned(), boss_emalon::JustSummoned(), npc_emily::JustSummoned(), boss_nexusprince_shaffar::JustSummoned(), boss_darkweaver_syth::JustSummoned(), npc_maghar_captive::npc_maghar_captiveAI::JustSummoned(), npc_kurenai_captive::npc_kurenai_captiveAI::JustSummoned(), npc_earthmender_wilda::npc_earthmender_wildaAI::JustSummoned(), Unit::Kill(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadInitializeScript(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadResetScript(), FormationMovementGenerator::MovementInform(), WaypointMovementGenerator< T >::MovementInform(), npc_animated_gold::MovementInform(), npc_geezle::npc_geezleAI::NextStep(), spell_headless_horseman_yell_timer::OnApply(), npc_jayce_darkweaver_cryptic_hollow_private::OnChannelFinished(), achievement_oh_novos::OnCheck(), achievement_flu_shot_shortage::OnCheck(), battleground_silvershard_mines::OnCreatureCreate(), battleground_strand_of_the_ancients::OnCreatureCreate(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnCreatureRemove(), go_prince_taldaram_sphere::OnGossipHello(), containment_sphere::OnGossipHello(), go_ossirian_crystal::go_ossirian_crystalAI::OnGossipHello(), Scripts::KhazAlgar::CampaignsVisionsOfAShadowedSun::npc_vereesa_windrunner_oztan_isle::OnGossipSelect(), boss_doomrel::boss_doomrelAI::OnGossipSelect(), npc_jaina_proudmoore::npc_jaina_proudmooreAI::OnGossipSelect(), npc_barada::npc_baradaAI::OnGossipSelect(), go_amberpine_outhouse::go_amberpine_outhouseAI::OnGossipSelect(), battleground_silvershard_mines::OnMineCartCaptured(), instance_ulduar::instance_ulduar_InstanceMapScript::OnPlayerEnter(), battleground_deephaul_ravine::OnPrepareStage3(), Scripts::EasternKingdoms::StormwindCity::npc_anduin_wrynn_nation_of_kultiras::OnQuestAccept(), npc_warlord_grimaxe_beach::OnQuestAccept(), go_crystalline_tear::go_crystalline_tearAI::OnQuestAccept(), go_crystal_prison::go_crystal_prisonAI::OnQuestAccept(), spell_taldaram_flame_ball_visual::OnRemove(), npc_altar_altercation_blood_ritual_orb::OnSpellClick(), spell_priestess_alun_za_corrupt::OnStackChange(), at_kelthuzad_center::OnTrigger(), at_nethekurse_exit::OnTrigger(), at_commander_dawnforge::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_inside_of_cave_of_meditation::OnTrigger(), instance_the_stonevault::instance_the_stonevault_InstanceMapScript::OnUnitDeath(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnUnitDeath(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnUnitDeath(), instance_shadow_labyrinth::instance_shadow_labyrinth_InstanceMapScript::OnUnitDeath(), instance_azjol_nerub::instance_azjol_nerub_InstanceScript::OnUnitDeath(), at_ymiron_the_fallen_king_activation::OnUnitEnter(), at_altar_altercation_kilrogg_talk::OnUnitEnter(), at_aqusirr_intro::OnUnitEnter(), at_rezan_pile_of_bones_spawn_raptor::OnUnitEnter(), at_sporecaller_zancha_intro::OnUnitEnter(), OrderWhelpTargetSelector::operator()(), FrostwingGauntletRespawner::operator()(), npc_jungle_punch_target::proceedCwEvent(), SmartScript::ProcessAction(), RemoveCorpse(), Unit::RemoveGameObjectImpl(), Vehicle::RemovePassenger(), npc_vengeful_shade::Reset(), Respawn(), hyjalAI::Retreat(), SelectVictim(), spell_malygos_surge_of_power_warning_selector_25::SendThreeTargets(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetInstanceProgress(), boss_cthun::cthunAI::SpawnEyeTentacle(), battleground_deephaul_ravine::SpawnMineCarts(), npc_crate_helper::npc_crate_helperAI::SpellHit(), npc_stalagg::SpellHit(), npc_feugen::SpellHit(), npc_fel_lord_caza_cryptic_hollow::SpellHitTarget(), spell_putricide_ooze_channel::StartAttack(), hyjalAI::SummonCreature(), boss_sindragosa::SummonedCreatureDespawn(), boss_valithria_dreamwalker::SummonedCreatureDespawn(), boss_zuramat::SummonedCreatureDespawn(), boss_malchezaar::boss_malchezaarAI::SummonInfernal(), boss_twinemperorsAI::TeleportToMyBrother(), npc_rokmora_navarrogg_intro::TriggerRokmoraIntro(), spell_igb_check_for_players::TriggerWipe(), at_adarogg_intro::TryHandleOnce(), at_lava_guard_gordoth_intro::TryHandleOnce(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadDestroyScript(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadResetScript(), Update(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), npc_thalorien_dawnseeker::UpdateAI(), npc_redridge_huge_boulder::UpdateAI(), Scripts::EasternKingdoms::Westfall::npc_westfall_lous_parting_thoughts_trigger::UpdateAI(), npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI(), npc_snowfall_glade_playmate::npc_snowfall_glade_playmateAI::UpdateAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::UpdateAI(), npc_high_oracle_soo_roo::npc_high_oracle_soo_rooAI::UpdateAI(), npc_elder_kekek::npc_elder_kekekAI::UpdateAI(), npc_the_etymidian::npc_the_etymidianAI::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), npc_frost_wyrm::npc_frost_wyrmAI::UpdateAI(), npc_gargoyle::npc_gargoyleAI::UpdateAI(), npc_hearthsinger_forresten_cot::npc_hearthsinger_forresten_cotAI::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), npc_meteor_strike_flame::UpdateAI(), npc_tirion_toc::UpdateAI(), boss_blood_council_controller::UpdateAI(), boss_gluth::UpdateAI(), boss_kelthuzad::UpdateAI(), boss_malygos::UpdateAI(), npc_commander_dawnforge::npc_commander_dawnforgeAI::UpdateAI(), npc_tooga::npc_toogaAI::UpdateFollowerAI(), InstanceScript::UpdateMinionState(), npc_thrall_old_hillsbrad::WaypointReached(), and npc_demolitionist_legoso::npc_demolitionist_legosoAI::WaypointReached().

◆ AIM_Create()

◆ AIM_Destroy()

◆ AIM_Initialize()

bool Creature::AIM_Initialize ( CreatureAI *  ai = nullptr)

◆ AllLootRemovedFromCorpse()

◆ ApplyAllStaticFlags()

void Creature::ApplyAllStaticFlags ( CreatureStaticFlagsHolder const &  flags)
private

◆ ApplyLevelScaling() [1/2]

◆ ApplyLevelScaling() [2/2]

◆ AtDisengage()

◆ AtEngage()

◆ BuildValuesCreate()

void Creature::BuildValuesCreate ( UF::UpdateFieldFlag  flags,
ByteBuffer &  data,
Player const *  target 
) const
overrideprotectedvirtual

Implements Object.

Definition at line 3980 of file Creature.cpp.

References flags, Object::m_objectData, and Unit::m_unitData.

◆ BuildValuesUpdate()

void Creature::BuildValuesUpdate ( UF::UpdateFieldFlag  flags,
ByteBuffer &  data,
Player const *  target 
) const
overrideprotectedvirtual

◆ BuildValuesUpdateForPlayerWithMask()

◆ BuildValuesUpdateWithFlag()

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

◆ CalculateDamageForSparring()

uint32 Creature::CalculateDamageForSparring ( Unit *  attacker,
uint32  damage 
)

◆ CalculateMinMaxDamage()

◆ CallAssistance()

◆ CallForHelp()

◆ CanAlwaysSee()

bool Creature::CanAlwaysSee ( WorldObject const *  obj) const
overrideprotectedvirtual

Reimplemented from WorldObject.

Definition at line 2104 of file Creature.cpp.

References AI(), and Unit::IsAIEnabled().

◆ CanAssistTo()

◆ CanCreatureAttack()

◆ CanEnterWater()

bool Creature::CanEnterWater ( ) const
inlineoverridevirtual

Implements Unit.

Definition at line 166 of file Creature.h.

References Unit::CanSwim().

Referenced by PathGenerator::BuildPolyPath(), PathGenerator::CreateFilter(), and Unit::isInAccessiblePlaceFor().

◆ CanFly()

bool Creature::CanFly ( ) const
inlineoverridevirtual

◆ CanGeneratePickPocketLoot()

bool Creature::CanGeneratePickPocketLoot ( ) const

Definition at line 3765 of file Creature.cpp.

References _pickpocketLootRestore, and GameTime::GetGameTime().

Referenced by Spell::EffectPickPocket().

◆ CanGiveExperience()

bool Creature::CanGiveExperience ( ) const

◆ CanHaveLoot()

bool Creature::CanHaveLoot ( ) const
inline

Definition at line 303 of file Creature.h.

References CREATURE_STATIC_FLAG_NO_LOOT.

Referenced by SpellInfo::CheckTarget(), and Unit::Kill().

◆ CanIgnoreLineOfSightWhenCastingOnMe()

bool Creature::CanIgnoreLineOfSightWhenCastingOnMe ( ) const
inline

Definition at line 241 of file Creature.h.

References CREATURE_STATIC_FLAG_4_IGNORE_LOS_WHEN_CASTING_ON_ME.

Referenced by Spell::IsWithinLOS().

◆ CanMelee()

bool Creature::CanMelee ( ) const
inline

◆ CannotPenetrateWater()

bool Creature::CannotPenetrateWater ( ) const
inline

Definition at line 156 of file Creature.h.

References CREATURE_STATIC_FLAG_3_CANNOT_PENETRATE_WATER.

Referenced by Unit::isInAccessiblePlaceFor().

◆ CanNotReachTarget()

bool Creature::CanNotReachTarget ( ) const
inline

Definition at line 390 of file Creature.h.

Referenced by Update().

◆ CanOnlySwimIfTargetSwims()

bool Creature::CanOnlySwimIfTargetSwims ( ) const
inline

◆ CanRegenerateHealth()

bool Creature::CanRegenerateHealth ( ) const
inline

Definition at line 380 of file Creature.h.

References CREATURE_STATIC_FLAG_5_NO_HEALTH_REGEN.

Referenced by RegenerateHealth().

◆ CanResetTalents()

bool Creature::CanResetTalents ( Player *  player) const

◆ CanStartAttack()

◆ CanSwim()

bool Creature::CanSwim ( ) const
overridevirtual

Reimplemented from Unit.

Definition at line 3031 of file Creature.cpp.

References Unit::CanSwim(), and Unit::IsPet().

Referenced by UpdateMovementCapabilities().

◆ CheckNoGrayAggroConfig()

bool Creature::CheckNoGrayAggroConfig ( uint32  playerLevel,
uint32  creatureLevel 
) const
private

◆ ClearTextRepeatGroup()

void Creature::ClearTextRepeatGroup ( uint8  textGroup)

Definition at line 3790 of file Creature.cpp.

References m_textRepeat.

Referenced by CreatureTextMgr::SendChat().

◆ Create()

bool Creature::Create ( ObjectGuid::LowType  guidlow,
Map *  map,
uint32  entry,
Position const &  pos,
CreatureData const *  data,
uint32  vehId,
bool  dynamic = false 
)

Relocate before CreateFromProto, to initialize coords and allow returning correct zone id for selecting OutdoorPvP/Battlefield script

Definition at line 1103 of file Creature.cpp.

References Unit::AddUnitState(), Unit::ApplySpellImmune(), ASSERT, CONFIG_CORPSE_DECAY_ELITE, CONFIG_CORPSE_DECAY_MINUSMOB, CONFIG_CORPSE_DECAY_NORMAL, CONFIG_CORPSE_DECAY_OBSOLETE, CONFIG_CORPSE_DECAY_RARE, CONFIG_CORPSE_DECAY_RAREELITE, CONFIG_CORPSE_DECAY_TRIVIAL, CreateFromProto(), CREATURE_FLAG_EXTRA_DUNGEON_BOSS, CREATURE_FLAG_EXTRA_GHOST_VISIBILITY, CREATURE_FLAG_EXTRA_IGNORE_PATHFINDING, CREATURE_FLAG_EXTRA_IMMUNITY_KNOCKBACK, CREATURE_TYPE_FLAG_VISIBLE_TO_GHOSTS, Elite, CreatureTemplate::flags_extra, GetCreatureClassification(), GetCreatureTemplate(), CreatureTemplate::GetDifficulty(), Map::GetFullTerrainStatusForPosition(), WorldObject::GetMap(), Position::GetOrientation(), WorldObject::GetPhaseShift(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetScriptId(), Unit::GetThreatManager(), GHOST_VISIBILITY_ALIVE, GHOST_VISIBILITY_GHOST, IMMUNITY_EFFECT, PhasingHandler::InitDbPhaseShift(), PhasingHandler::InitDbVisibleMapId(), ThreatManager::Initialize(), Unit::IsAreaSpiritHealer(), Map::IsDungeon(), Position::IsPositionValid(), Unit::IsSpiritHealer(), WorldObject::LastUsedScriptID, LoadCreaturesAddon(), LoadCreaturesSparringHealth(), m_corpseDelay, m_respawnDelay, WorldObject::m_serverSideVisibility, WorldObject::m_serverSideVisibilityDetect, MinusMob, Obsolete, SpawnData::phaseGroup, SpawnData::phaseId, SpawnData::phaseUseFlags, Unit::ProcessPositionDataChanged(), Rare, RareElite, Position::Relocate(), SERVERSIDE_VISIBILITY_GHOST, WorldObject::SetMap(), SetRespawnCompatibilityMode(), FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::SetValue(), sObjectMgr, SPELL_EFFECT_KNOCK_BACK, SPELL_EFFECT_KNOCK_BACK_DEST, sWorld, TC_LOG_ERROR, SpawnData::terrainSwapMap, Trivial, CreatureDifficulty::TypeFlags, and UNIT_STATE_IGNORE_PATHFINDING.

Referenced by LoadFromDB(), Map::SummonCreature(), and Transport::SummonPassenger().

◆ CreateCreature()

◆ CreateCreatureFromDB()

Creature * Creature::CreateCreatureFromDB ( ObjectGuid::LowType  spawnId,
Map *  map,
bool  addToMap = true,
bool  allowDuplicate = false 
)
static

Definition at line 1228 of file Creature.cpp.

References LoadFromDB().

Referenced by Transport::CreateNPCPassenger(), and npc_commandscript::HandleNpcAddCommand().

◆ CreateFromProto()

◆ DeleteFromDB()

◆ DespawnOrUnsummon()

void Creature::DespawnOrUnsummon ( Milliseconds  timeToDespawn = 0s,
Seconds  forceRespawnTime = 0s 
)

Definition at line 2438 of file Creature.cpp.

References ForcedDespawn(), and Unit::ToTempSummon().

Referenced by BossAI::_DespawnAtEvade(), Unit::_ExitVehicle(), npc_elwynn_forest_wolf::_ScheduleAfterChasingEvents(), VehicleJoinEvent::Abort(), spell_stable_master_repo::AfterApply(), spell_lord_stormsong_fixate_aura::AfterRemove(), boss_thaddius::BeginResetEncounter(), npc_stalagg::BeginResetEncounter(), npc_feugen::BeginResetEncounter(), boss_ionar::CallBackSparks(), npc_priestess_alun_za_corrupted_gold::CheckInRoom(), spell_the_lich_king_vile_spirit_damage_target_search::CheckTargetCount(), spell_the_lich_king_ice_burst_target_search::CheckTargetCount(), npc_dark_fiend::DamageTaken(), npc_terenas_menethil::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), npc_iron_construct::npc_iron_constructAI::DamageTaken(), npc_tiger_matriarch::DamageTaken(), Scripts::Kalimdor::Durotar::npc_durotar_tiki_target::DamageTaken(), npc_argent_valiant::DamageTaken(), SummonList::DespawnAll(), npc_brann_hos::DespawnDwarf(), SummonList::DespawnEntry(), instance_ulduar::instance_ulduar_InstanceMapScript::DespawnLeviatanVehicle(), spell_rotface_unstable_ooze_explosion_suicide::DespawnSelf(), WaypointMgr::DevisualizePath(), npc_dark_fiend::DoAction(), Scripts::EasternKingdoms::StormwindCity::npc_jaina_proudmoore_tides_of_war::DoAction(), npc_spirit_of_the_lynx::DoAction(), npc_fire_bomb_zulaman::DoAction(), npc_husam_tolvir_land_mine::DoAction(), npc_saurfang_event::DoAction(), npc_high_overlord_saurfang_igb::DoAction(), npc_muradin_bronzebeard_igb::DoAction(), npc_strangulate_vehicle::DoAction(), npc_terenas_menethil::DoAction(), npc_kelthuzad_guardian::DoAction(), npc_stalagg::DoAction(), npc_feugen::DoAction(), npc_caster_hover_disk::DoAction(), boss_elder_brightleaf::boss_elder_brightleafAI::DoAction(), boss_elder_stonebark::boss_elder_stonebarkAI::DoAction(), boss_elder_ironbranch::boss_elder_ironbranchAI::DoAction(), CoolestFriendBaseAI::DoAction(), boss_magtheridon::DoAction(), npc_omrogg_heads::DoAction(), boss_lord_stormsong::DoAction(), npc_swarm_scarab::DoAction(), npc_melee_hover_disk::DoAction(), npc_arcane_overload::DoAction(), Spell::EffectScriptEffect(), Spell::EffectTameCreature(), boss_skeram::boss_skeramAI::EnterEvadeMode(), npc_gatewatcher_petAI::EnterEvadeMode(), boss_northrend_beastsAI::EnterEvadeMode(), boss_attumen::boss_attumenAI::EnterEvadeMode(), boss_kirtonos_the_herald::EnterEvadeMode(), boss_entropius::EnterEvadeMode(), Scripts::EasternKingdoms::Westfall::npc_westfall_thug::EnterEvadeMode(), npc_towering_infernal::EnterEvadeMode(), npc_lockmaw_augh_boss::EnterEvadeMode(), Scripts::Kalimdor::Durotar::npc_captive_spitescale_scout::EnterEvadeMode(), npc_helena_gentle_witch_hunt::EnterEvadeMode(), npc_anubarak_pet_template::EnterEvadeMode(), npc_hadronox_foeAI::EnterEvadeMode(), boss_jaraxxus::EnterEvadeMode(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::EnterEvadeMode(), boss_tyrannus::EnterEvadeMode(), boss_drakkari_elemental::EnterEvadeMode(), npc_vampiric_fiend::EnterEvadeMode(), npc_fallout_slime::EnterEvadeMode(), boss_malygos::EnterEvadeMode(), npc_ethereal_apprentice::EnterEvadeMode(), boss_the_lurker_below::EnterEvadeMode(), boss_ahune::EnterEvadeMode(), boss_vazruden_the_herald::EnterEvadeMode(), boss_vazruden::EnterEvadeMode(), npc_anduin_wrynn_fiendish_soul::EnterEvadeMode(), npc_anduin_wrynn_monstrous_soul::EnterEvadeMode(), boss_remnant_of_a_fallen_king::EnterEvadeMode(), ForcedDespawnDelayEvent::Execute(), ValithriaDelayedCastEvent::Execute(), UlduarKeeperDespawnEvent::Execute(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::GiveClue(), AuraEffect::HandleAuraControlVehicle(), spell_mimiron_clear_fires::spell_mimiron_clear_fires_SpellScript::HandleDummy(), spell_gen_despawn_self::HandleDummy(), spell_item_complete_raptor_capture::HandleDummy(), spell_heartsbane_triad_claim_the_iris::HandleHitTarget(), npc_commandscript::HandleNpcMoveCommand(), spell_altar_altercation_destroying::HandleOnHit(), spell_trigger_ariok_altar_altercation::HandleOnHit(), pet_commandscript::HandlePetCreateCommand(), spell_re_sizing_q59941::HandleScript(), spell_putricide_eat_ooze::HandleScript(), spell_rotface_little_ooze_combine::HandleScript(), spell_rotface_large_ooze_combine::HandleScript(), spell_rotface_large_ooze_buff_combine::HandleScript(), spell_mimiron_despawn_assault_bots::spell_mimiron_despawn_assault_bots_SpellScript::HandleScript(), spell_shredder_delivery::HandleScript(), spell_grizzly_hills_hand_over_reins::HandleScript(), spell_icecrown_burst_at_the_seams_52510::HandleScript(), spell_bg_silvershard_mines_cart_cap::HandleScript(), spell_silverpine_despawn_all_summons_steel_thunder::HandleScriptEffect(), spell_illidan_cage_trap::HandleScriptEffect(), spell_gen_despawn_all_summons_owned_by_caster::HandleScriptEffect(), WorldSession::HandleTotemDestroyed(), npc_anubarak_pet_template::InitializeAI(), npc_anubarak_impale_target::InitializeAI(), boss_tyrannus::InitializeAI(), npc_underbog_mushroom::InitializeAI(), IsEncounterFinished(), npc_suppresser::IsSummonedBy(), npc_static_field::IsSummonedBy(), npc_frozen_orb::IsSummonedBy(), npc_coldflame::IsSummonedBy(), npc_silverpine_forsaken_trooper_fenris_isle::IsSummonedBy(), npc_image_belgaristrasz::IsSummonedBy(), Scripts::Pandaria::TheWanderingIsle::npc_master_li_fei_summon::IsSummonedBy(), npc_captain_warlord_beach_arrive_private::IsSummonedBy(), npc_kayn_sunfury_ashtongue_intro_private::JustAppeared(), npc_sevis_brightflame_coilskar_gateway_private::JustAppeared(), npc_cyana_nightglaive_freed_private::JustAppeared(), npc_izal_whitemoon_freed_private::JustAppeared(), npc_belath_dawnblade_freed_private::JustAppeared(), npc_mannethrel_darkstar_freed_private::JustAppeared(), npc_flame_of_ragnaros::JustAppeared(), npc_void_sentinel_summoner::JustAppeared(), npc_husam_tolvir_land_mine::JustAppeared(), npc_husam_shockwave_visual::JustAppeared(), npc_grobbulus_poison_cloud::JustAppeared(), npc_flash_freeze_init::JustAppeared(), npc_flash_freeze_combat::JustAppeared(), npc_tainted_elemental::JustAppeared(), npc_ahune_ice_spear_bunny::JustAppeared(), npc_flame_strike_trigger_kael::JustAppeared(), npc_nether_vapor::JustAppeared(), npc_anduin_wrynn_anduin_hope::JustAppeared(), npc_ranshalla::npc_ranshallaAI::JustDidDialogueStep(), npc_kilrek::npc_kilrekAI::JustDied(), boss_shade_of_medivh_guardians_image::JustDied(), npc_chained_spirit::JustDied(), npc_arthas_stratholme::npc_arthas_stratholmeAI::JustDied(), npc_belnistrasz::npc_belnistraszAI::JustDied(), Scripts::Kalimdor::Durotar::npc_captive_spitescale_scout::JustDied(), npc_qiraj_war_spawn::npc_qiraj_war_spawnAI::JustDied(), npc_drustvar_charging_familiar::JustDied(), boss_aqusirr_aqualing::JustDied(), npc_living_inferno::JustDied(), npc_living_ember::JustDied(), boss_jormungarAI::JustDied(), npc_bone_spike::JustDied(), npc_little_ooze::JustDied(), npc_big_ooze::JustDied(), npc_webwrap::JustDied(), boss_malygos::JustDied(), npc_volkhan_molten_golem::JustDied(), npc_iron_roots::npc_iron_rootsAI::JustDied(), boss_freya::boss_freyaAI::JustDied(), npc_grauf::JustDied(), npc_blessed_banner::JustDied(), npc_ashtongue_sorcerer::JustDied(), npc_ashtongue_defender::JustDied(), npc_ashtongue_rogue::JustDied(), npc_ashtongue_elementalist::JustDied(), npc_ashtongue_spiritbinder::JustDied(), npc_illidari_spawn::npc_illidari_spawnAI::JustDied(), npc_anduin_wrynn_lost_soul::JustDied(), npc_blood_effigy::JustDied(), boss_skeram::boss_skeramAI::JustDied(), npc_slad_ran_constrictor::JustEngagedWith(), npc_vampiric_fiend::JustEngagedWith(), npc_halion_controller::JustExitedCombat(), FollowerAI::JustReachedHome(), boss_dorothee::JustReachedHome(), boss_strawman::JustReachedHome(), boss_tinhead::JustReachedHome(), boss_roar::JustReachedHome(), boss_crone::JustReachedHome(), npc_tito::JustReachedHome(), boss_big_bad_wolf::JustReachedHome(), boss_julianne::JustReachedHome(), boss_romulo::JustReachedHome(), boss_mal_ganis::boss_mal_ganisAI::JustReachedHome(), boss_faction_championsAI::JustReachedHome(), boss_twin_baseAI::JustReachedHome(), npc_kelthuzad_guardian::JustReachedHome(), npc_dk_understudy::JustReachedHome(), boss_felblood_kaelthas::JustSummoned(), boss_corborus::boss_corborusAI::JustSummoned(), boss_ozruk::boss_ozrukAI::JustSummoned(), boss_deathbringer_saurfang::JustSummoned(), boss_the_lich_king::JustSummoned(), npc_risen_archmage::JustSummoned(), boss_gothik::JustSummoned(), npc_collapsing_star::JustSummoned(), npc_tiger_matriarch::KilledUnit(), npc_gravity_well::npc_gravity_wellAI::KilledUnit(), npc_bone_spike::KilledUnit(), npc_anubarak_spike::MoveInLineOfSight(), npc_dkc1_gothik::npc_dkc1_gothikAI::MoveInLineOfSight(), npc_spectator::MovementInform(), boss_essence_of_suffering::MovementInform(), boss_essence_of_desire::MovementInform(), npc_spirit_shade::npc_spirit_shadeAI::MovementInform(), npc_valkyr_of_odyn::MovementInform(), boss_rend_blackhand::MovementInform(), npc_troll_volunteer::MovementInform(), boss_infinite_corruptor::boss_infinite_corruptorAI::MovementInform(), npc_jena_anderson::npc_jena_andersonAI::MovementInform(), npc_bartleby_battson::npc_bartleby_battsonAI::MovementInform(), npc_malcolm_moore::npc_malcolm_mooreAI::MovementInform(), npc_sergeant_morigan::npc_sergeant_moriganAI::MovementInform(), npc_roger_owens::npc_roger_owensAI::MovementInform(), npc_corrupted_soul_fragment::MovementInform(), npc_living_mojo::MovementInform(), npc_high_overlord_saurfang_icc::MovementInform(), npc_darnavan::MovementInform(), npc_valkyr_shadowguard::MovementInform(), npc_ingvar_throw_dummy::MovementInform(), npc_ichor_globule::MovementInform(), npc_nether_drake::npc_nether_drakeAI::MovementInform(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::MovementInform(), Scripts::Pandaria::TheJadeForest::npc_rappelling_rope::MovementInform(), Scripts::Pandaria::TheWanderingIsle::npc_tushui_huojin_trainee::MovementInform(), npc_chained_spirit::MovementInform(), npc_twilight_volunteer::MovementInform(), npc_barrett_toc::MovementInform(), npc_brann_bronzebeard_algalon::MovementInform(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro_hawk::MovementInform(), npc_priestess_alun_za_corrupted_gold::MovementInform(), npc_malacrass_blood_worm::MovementInform(), npc_released_offspring_harkoa::MovementInform(), npc_animated_gold::MovementInform(), npc_captain_warlord_first_aid_private::MovementInform(), npc_re_sized_boar_q56034::MovementInform(), npc_spark_of_ionar::MovementInform(), npc_amalgam_of_souls_lord_etheldrin_ravencrest::MovementInform(), npc_feasting_valarjar::MovementInform(), npc_valarjar_paying_respect_to_odyn::MovementInform(), npc_spectating_valarjar::MovementInform(), npc_wounded_skirmisher::MovementInform(), Scripts::QuelThalas::MurderRow::KystiaManaheart::boss_kystia_manaheart_nibbles::MovementInform(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::MovementInform(), npc_gravity_well::npc_gravity_wellAI::npc_gravity_wellAI(), BattlefieldWG::OnCreatureCreate(), instance_blackrock_spire::instance_blackrock_spireMapScript::OnCreatureCreate(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::OnCreatureCreate(), instance_halls_of_lightning::instance_halls_of_lightning_InstanceMapScript::OnCreatureCreate(), instance_ulduar::instance_ulduar_InstanceMapScript::OnCreatureCreate(), npc_grandmother::OnGossipSelect(), npc_observation_ring_keeper::npc_observation_ring_keeperAI::OnGossipSelect(), npc_spirit_of_the_lynx::OnHealthDepleted(), Scripts::EasternKingdoms::StormwindCity::player_conv_after_movie_tides_of_war::OnMovieComplete(), spell_vexallus_energy_feedback::OnPeriodic(), spell_re_sizing_aura_q56034::OnRemove(), spell_re_sizing_aura_q59941::OnRemove(), spell_aqusirr_grasp_from_the_depths_damage::OnRemove(), spell_taldaram_flame_ball_visual::OnRemove(), spell_creeping_rot_aura::OnRemove(), spell_lord_stormsong_ancient_mindbender_aura::OnRemove(), scene_enter_the_illidari_ashtongue::OnSceneStart(), npc_shadow_image::OnSpellCast(), Scripts::EasternKingdoms::Vashjir::AbyssalDepths::npc_abyssal_depths_whirlpool_vehicle::OnSpellCast(), npc_dream_portal::OnSpellClick(), npc_bg_deephaul_ravine_earthen_mine_cart::OnSpellClick(), npc_descend_into_madness::npc_descend_into_madnessAI::OnSpellClick(), conversation_burden_of_proof_speak_with_constable::OnStart(), conversation_aberrus_kazzara_intro::OnUpdate(), conversation_an_unlikely_informant::OnUpdate(), conversation_the_new_classington_estate::OnUpdate(), conversation_boralus_cyrus_meets_genn::OnUpdate(), conversation_cyrus_crestfall_shaking_hands::OnUpdate(), conversation_kings_rest_intro::OnUpdate(), FrostwingGauntletRespawner::operator()(), TrashRespawnWorker::operator()(), OrbsDespawner::operator()(), ValithriaDespawner::operator()(), Scripts::EasternKingdoms::Westfall::npc_westfall_overloaded_harvest_golem::PassengerBoarded(), npc_husam_tolvir_land_mine::PassengerBoarded(), npc_wyrmrest_skytalon::PassengerBoarded(), npc_silverpine_orc_sea_pup::PassengerBoarded(), npc_silverpine_armoire::PassengerBoarded(), boss_kologarn::boss_kologarnAI::PassengerBoarded(), spell_item_extract_gas::PeriodicTick(), boss_gyth::Reset(), npc_image_of_medivh::npc_image_of_medivhAI::Reset(), npc_amanitar_mushrooms::Reset(), npc_acolyte_of_shadron::Reset(), npc_acolyte_of_vesperon::Reset(), npc_legion_flame::Reset(), npc_fel_infernal::Reset(), npc_mistress_of_pain::Reset(), npc_kinetic_bomb::Reset(), npc_putricide_oozeAI::Reset(), npc_scrapbot::Reset(), npc_pummeller::Reset(), npc_boombot::Reset(), npc_ethereal_sphere::Reset(), npc_violet_hold_defense_system::Reset(), npc_parasitic_shadowfiend::Reset(), npc_blade_of_azzinoth::Reset(), npc_flame_of_azzinoth::Reset(), npc_shadow_demon::Reset(), npc_reliquary_combat_trigger::Reset(), npc_shadowy_construct::Reset(), npc_warden_mellichar::Reset(), npc_oscillating_frequency_scanner_master_bunny::npc_oscillating_frequency_scanner_master_bunnyAI::Reset(), instance_violet_hold::instance_violet_hold_InstanceMapScript::ResetBossEncounter(), npc_simon_bunny::npc_simon_bunnyAI::ResetNode(), npc_sevis_brightflame_shivarra_gateway::SacrificePlayer(), spell_putricide_ooze_channel::SelectTarget(), boss_toc_champion_controller::SetData(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetInstanceProgress(), npc_earthen_hallshaper_custodian::SpellHit(), npc_earthen_guardian::SpellHit(), npc_vault_warder::SpellHit(), npc_silverpine_hillsbrad_refugee::SpellHit(), npc_hive_zara_swarmer::SpellHit(), npc_buru_egg::SpellHit(), npc_azhiccar_intro_creature::SpellHit(), npc_aqusirr_intro_lord_stormsong::SpellHit(), npc_open_portal_target_toc::SpellHit(), boss_valithria_dreamwalker::SpellHit(), npc_black_hole::SpellHit(), npc_toasty_fire::SpellHit(), npc_warp_splinter_sapling::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_living_constellation::SpellHit(), npc_wounded_skirmisher::SpellHit(), npc_pet_dk_ebon_gargoyle::SpellHit(), boss_drakkari_elemental::SpellHitTarget(), npc_azure_ring_captain::SpellHitTarget(), npc_malformed_ooze::SpellHitTarget(), npc_water_globule::SpellHitTarget(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro_hawk::SpellHitTarget(), npc_felblood_kaelthas_phoenix::SummonedCreatureDies(), npc_phoenix_the_eye::SummonedCreatureDies(), npc_firelands_molten_flamefather::SummonedCreatureDies(), boss_anduin_wrynn::SummonedCreatureDies(), npc_violet_hold_teleportation_portal::SummonedCreatureDies(), npc_violet_hold_teleportation_portal_elite::SummonedCreatureDies(), boss_freya::boss_freyaAI::SummonedCreatureDies(), npc_kings_rest_shadow_of_zul::TriggerSerpentBossEvent(), spell_ymiron_the_fallen_king_soul_siphon::TriggerSuicide(), VehicleAI::UpdateAI(), EscortAI::UpdateAI(), npc_ioc_gunship_captain::UpdateAI(), boss_victor_nefarius::UpdateAI(), Scripts::EasternKingdoms::Gilneas::Chapter1::npc_frightened_citizen::UpdateAI(), npc_kalecgos::UpdateAI(), npc_dark_rider_of_acherus::UpdateAI(), npc_koltira_deathweaver::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_madrigosa::UpdateAI(), npc_armageddon::npc_armageddonAI::UpdateAI(), Scripts::EasternKingdoms::Vashjir::Chapter1::npc_vashjir_drowning_soldier::UpdateAI(), npc_frozen_mountaineer::npc_frozen_mountaineerAI::UpdateAI(), npc_wounded_coldridge_mountaineer::npc_wounded_coldridge_mountaineerAI::UpdateAI(), npc_vanessa_vancleef_human_heritage_lions_pride_inn_basement::UpdateAI(), npc_redridge_huge_boulder::UpdateAI(), npc_redridge_citizen::npc_redridge_citizenAI::UpdateAI(), npc_silverpine_fallen_human::UpdateAI(), npc_silverpine_deathstalker_rane_yorick::UpdateAI(), npc_silverpine_mutant_bush_chicken::UpdateAI(), npc_silverpine_orc_sea_dog::UpdateAI(), npc_silverpine_agatha_fenris_isle::UpdateAI(), Scripts::EasternKingdoms::Westfall::npc_westfall_overloaded_harvest_golem::UpdateAI(), npc_giant_spotlight::UpdateAI(), npc_survivors_healed_by_leader_beach_private< PathId, WaitTime >::UpdateAI(), npc_survivors_beach_leave_private< PathId, WaitTime >::UpdateAI(), npc_huxsworth_hunter_quest_private::UpdateAI(), npc_huxsworth_briarpatch_quest_private::UpdateAI(), npc_dawntracker_hunter_quest_private::UpdateAI(), npc_dawntracker_briarpatch_quest_private::UpdateAI(), npc_briarpatch_prisoner::UpdateAI(), npc_gnome_goblin_plains_make_copter_private::UpdateAI(), npc_captain_garrick_q55879::UpdateAI(), npc_warlord_grimaxe_q59942::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAI(), npc_husam_tolvir_land_mine::UpdateAI(), npc_lockmaw_augh_add::UpdateAI(), npc_belnistrasz::npc_belnistraszAI::UpdateAI(), npc_andorov::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), npc_draenei_survivor::npc_draenei_survivorAI::UpdateAI(), Scripts::Kalimdor::Durotar::npc_captive_spitescale_scout::UpdateAI(), npc_whisperwind_lasher::npc_whisperwind_lasherAI::UpdateAI(), npc_lava_fissure::npc_lava_fissureAI::UpdateAI(), npc_stalactite_trigger::npc_stalactite_triggerAI::UpdateAI(), npc_prince_taldaram_flame_sphere::UpdateAI(), npc_unleashed_dark::UpdateAI(), npc_unleashed_light::UpdateAI(), npc_jaina_or_sylvanas_intro_hor::npc_jaina_or_sylvanas_intro_horAI::UpdateAI(), npc_uther_quel_delar::npc_uther_quel_delarAI::UpdateAI(), npc_kinetic_bomb::UpdateAI(), npc_ice_tomb::UpdateAI(), npc_impaling_spear::UpdateAI(), npc_strangulate_vehicle::UpdateAI(), npc_spirit_bomb::UpdateAI(), npc_dream_cloud::UpdateAI(), npc_crystal_spike_trigger::UpdateAI(), npc_ruby_emerald_amber_drake::UpdateAI(), boss_algalon_the_observer::UpdateAI(), boss_freya::boss_freyaAI::UpdateAI(), npc_healthy_spore::npc_healthy_sporeAI::UpdateAI(), npc_eonars_gift::npc_eonars_giftAI::UpdateAI(), boss_hodir::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), npc_mimiron_flames::npc_mimiron_flamesAI::UpdateAI(), npc_mimiron_frost_bomb::npc_mimiron_frost_bombAI::UpdateAI(), npc_mimiron_proximity_mine::npc_mimiron_proximity_mineAI::UpdateAI(), npc_annhylde_the_caller::UpdateAI(), npc_tempest_minion::UpdateAI(), npc_thassarian::UpdateAI(), npc_lake_frog::UpdateAI(), npc_blessed_banner::UpdateAI(), npc_crusade_recruit::UpdateAI(), npc_ethereal_beacon::UpdateAI(), npc_maiev::UpdateAI(), npc_warden_mellichar::UpdateAI(), npc_pet_mage_mirror_image::UpdateAI(), npc_spark_of_ionar::UpdateAI(), FollowerAI::UpdateAI(), npc_escape_event_trash::UpdateAI(), npc_power_spark::UpdateAI(), npc_brunnhildar_prisoner::UpdateAI(), boss_blackheart_the_inciter_mc_dummy::UpdateAI(), SmartAI::UpdateDespawn(), SmartAI::UpdatePath(), npc_bg_ab_gryphon_bat_rider_leader< Path >::WaypointPathEnded(), npc_bg_deephaul_ravine_earthen_mine_cart_horde::WaypointPathEnded(), npc_bg_deephaul_ravine_earthen_mine_cart_alliance::WaypointPathEnded(), npc_bg_seething_shore_air_supplies_drop::WaypointPathEnded(), npc_bg_silvershard_mines_mine_cart_cosmetic::WaypointPathEnded(), npc_kayn_sunfury_invasion_begins::WaypointPathEnded(), npc_jayce_darkweaver_invasion_begins::WaypointPathEnded(), npc_allari_the_souleater_invasion_begins::WaypointPathEnded(), npc_korvas_bloodthorn_invasion_begins::WaypointPathEnded(), npc_sevis_brightflame_invasion_begins::WaypointPathEnded(), npc_cyana_nightglaive_invasion_begins::WaypointPathEnded(), npc_danica_the_reclaimer::WaypointPathEnded(), npc_valkyr_of_odyn::WaypointPathEnded(), npc_death_knight_initiate::npc_death_knight_initiateAI::WaypointPathEnded(), npc_hearthglen_crusader::WaypointPathEnded(), Scripts::EasternKingdoms::StormwindCity::npc_jaina_proudmoore_tides_of_war::WaypointPathEnded(), Scripts::EasternKingdoms::StormwindCity::npc_arkonarin_starshade_ancient_curses::WaypointPathEnded(), Scripts::EasternKingdoms::StormwindCity::npc_lysande_starshade_ancient_curses::WaypointPathEnded(), npc_ship_captain_warming_up_private::WaypointPathEnded(), npc_sparring_partner_exiles_reach::WaypointPathEnded(), npc_ship_captain_brace_for_impact_private::WaypointPathEnded(), npc_first_mate_brace_for_impact_private::WaypointPathEnded(), npc_crew_ship_private::WaypointPathEnded(), npc_taelia_get_your_bearings::WaypointPathEnded(), npc_azure_saboteur::WaypointPathEnded(), Scripts::Pandaria::TheWanderingIsle::npc_aysa_cloudsinger_summon::WaypointPathEnded(), npc_pet_ship_private::WaypointPathEnded(), npc_horde_survivors_beach_q59930_private< PathId >::WaypointPathEnded(), npc_horde_crew_plains_private::WaypointPathEnded(), npc_bjorn_stouthands_q55965_private::WaypointPathEnded(), npc_lana_jordan_q59948_private::WaypointPathEnded(), npc_companion_q55965_q59948_private< PitPathId >::WaypointPathEnded(), npc_drustvar_frightend_woodsman_private::WaypointPathEnded(), Scripts::Pandaria::TheWanderingIsle::npc_delivery_cart::WaypointPathEnded(), npc_rokmora_navarrogg_intro::WaypointReached(), npc_silverpine_horde_hauler::WaypointReached(), npc_silverpine_forsaken_bat::WaypointReached(), npc_silverpine_lord_darius_crowley_exsanguinate::WaypointReached(), npc_silverpine_packleader_ivar_bloodfang_exsanguinate::WaypointReached(), Scripts::Pandaria::TheWanderingIsle::npc_min_dimwind_summon::WaypointReached(), npc_abomination::npc_abominationAI::WaypointReached(), npc_ghoul::npc_ghoulAI::WaypointReached(), and npc_7th_legion_magus_sanctum_of_the_sages::WaypointReached().

◆ DisappearAndDie()

◆ DoFleeToGetAssistance()

◆ DoImmediateBoundaryCheck()

void Creature::DoImmediateBoundaryCheck ( )
inline

Definition at line 373 of file Creature.h.

Referenced by CreatureAI::SetBoundary().

◆ DoNotReacquireSpellFocusTarget()

void Creature::DoNotReacquireSpellFocusTarget ( )

◆ ExitVehicle()

◆ ForcedDespawn()

◆ ForcePartyMembersIntoCombat()

◆ GenerateStaticFlags()

◆ GetAggroRange()

◆ GetAIName()

std::string const & Creature::GetAIName ( ) const

◆ GetArmorMultiplierForTarget()

float Creature::GetArmorMultiplierForTarget ( WorldObject const *  target) const
overridevirtual

Reimplemented from Unit.

Definition at line 3217 of file Creature.cpp.

References GetBaseArmorForLevel(), Unit::GetLevel(), GetLevelForTarget(), and HasScalableLevels().

◆ GetAttackDistance()

◆ GetBaseArmorForLevel()

◆ GetBaseDamageForLevel()

◆ GetCorpseDelay()

uint32 Creature::GetCorpseDelay ( ) const
inline

Definition at line 124 of file Creature.h.

Referenced by ForcedDespawn(), and FrostwingGauntletRespawner::operator()().

◆ GetCreatePowerValue()

int32 Creature::GetCreatePowerValue ( Powers  power) const
overridevirtual

Reimplemented from Unit.

Definition at line 967 of file StatSystem.cpp.

References Unit::GetCreatePowerValue(), IsUsedByNPCs, and sDB2Manager.

Referenced by UpdateMaxPower(), and Guardian::UpdateMaxPower().

◆ GetCreatureAddon()

CreatureAddon const * Creature::GetCreatureAddon ( ) const

Definition at line 2760 of file Creature.cpp.

References Object::GetEntry(), m_spawnId, and sObjectMgr.

Referenced by LoadCreaturesAddon(), and UpdateEntry().

◆ GetCreatureClassification()

CreatureClassifications Creature::GetCreatureClassification ( ) const
inline

Definition at line 172 of file Creature.h.

Referenced by Create(), and CriteriaHandler::ModifierSatisfied().

◆ GetCreatureData()

◆ GetCreatureDifficulty()

◆ GetCreatureTemplate()

CreatureTemplate const * Creature::GetCreatureTemplate ( ) const
inline

Definition at line 274 of file Creature.h.

Referenced by Vehicle::ApplyAllImmunities(), CalculateMinMaxDamage(), CanResetTalents(), Create(), Pet::CreateBaseAtCreature(), CreateFromProto(), Unit::DealMeleeDamage(), Trinity::XP::Gain(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), GetBaseArmorForLevel(), GetBaseDamageForLevel(), Unit::GetCreatureType(), Player::GetGossipMenuForSource(), GetMaxHealthByLevel(), GetMovementTemplate(), GetNativeObjectScale(), Pet::GetNativeObjectScale(), Unit::GetUnitBlockChance(), Unit::GetUnitParryChance(), UF::ViewerDependentValue< UF::UnitData::DisplayIDTag >::GetValue(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcSetFactionIdCommand(), npc_commandscript::HandleNpcTameCommand(), pet_commandscript::HandlePetCreateCommand(), WorldSession::HandleSellAllJunkItems(), WorldSession::HandleSellItemOpcode(), Pet::HaveInDiet(), InitEntry(), EscortAI::InitializeAI(), Pet::InitLevelupSpellsForLevel(), Guardian::InitStatsForLevel(), IsImmunedToSpellEffect(), Pet::IsPermanentPetFor(), CriteriaData::IsValid(), Player::KilledMonster(), Pet::LearnPetPassives(), LoadCreaturesSparringHealth(), CriteriaHandler::ModifierSatisfied(), Player::PetSpellInitialize(), Unit::RemoveCharmedBy(), Respawn(), Player::RewardReputation(), Unit::RollMeleeOutcomeAgainst(), SaveToDB(), Unit::SetCharmedBy(), setDeathState(), SetDisplayFromModel(), UpdateEntry(), GameEventMgr::UpdateEventNPCFlags(), UpdateLevelDependantStats(), Unit::UpdateSpeed(), and npc_ruul_snowhoof::npc_ruul_snowhoofAI::WaypointReached().

◆ GetCurrentEquipmentId()

◆ GetCurrentWaypointInfo()

std::pair< uint32, uint32 > Creature::GetCurrentWaypointInfo ( ) const
inline

Definition at line 408 of file Creature.h.

Referenced by SmartAI::PausePath(), and SmartAI::StopPath().

◆ GetDamageMod()

◆ GetDamageMultiplierForTarget()

float Creature::GetDamageMultiplierForTarget ( WorldObject const *  target) const
overridevirtual

Reimplemented from Unit.

Definition at line 3199 of file Creature.cpp.

References GetBaseDamageForLevel(), Unit::GetLevel(), GetLevelForTarget(), and HasScalableLevels().

◆ GetDebugInfo()

◆ GetDefaultMovementType()

MovementGeneratorType Creature::GetDefaultMovementType ( ) const
overridevirtual

Reimplemented from Unit.

Definition at line 3042 of file Creature.cpp.

References Unit::GetPlayerMovingMe(), IDLE_MOTION_TYPE, and m_defaultMovementType.

Referenced by SaveToDB().

◆ GetFormation()

◆ GetGossipMenuId()

uint32 Creature::GetGossipMenuId ( ) const

Definition at line 3927 of file Creature.cpp.

References _gossipMenuId.

Referenced by Player::GetGossipMenuForSource().

◆ GetHealthMod()

◆ GetHealthMultiplierForTarget()

float Creature::GetHealthMultiplierForTarget ( WorldObject const *  target) const
overridevirtual

Reimplemented from Unit.

Definition at line 3182 of file Creature.cpp.

References Unit::GetCreateHealth(), GetLevelForTarget(), GetMaxHealthByLevel(), and HasScalableLevels().

◆ GetHomePosition() [1/2]

Position const & Creature::GetHomePosition ( ) const
inline

Definition at line 397 of file Creature.h.

Referenced by GetRespawnPosition(), and SaveRespawnTime().

◆ GetHomePosition() [2/2]

void Creature::GetHomePosition ( float &  x,
float &  y,
float &  z,
float &  ori 
) const
inline

Definition at line 396 of file Creature.h.

Referenced by boss_hadronox::CanAIAttack(), npc_arthas_stratholme::npc_arthas_stratholmeAI::CanAIAttack(), boss_drekthar::CheckInRoom(), boss_galvangar::CheckInRoom(), boss_garothi_worldbreaker::DamageTaken(), boss_amalgam_of_souls::DamageTaken(), npc_inquisitor_baleful_molten_shore::DoAction(), boss_gothik::EnterEvadeMode(), npc_arthas_teleport_visual::GetAI(), npc_expedition_engineer::HandleBaseMovement(), npc_sindragosa_trash::InitializeAI(), npc_earthen_ring_flamecaller::JustAppeared(), npc_colossus::npc_colossusAI::JustDied(), boss_vanndar::JustEngagedWith(), npc_safe_technician_sanitron::MovementInform(), conversation_aberrus_sabellian_intro::OnUpdate(), conversation_the_new_classington_estate::OnUpdate(), SmartScript::ProcessAction(), boss_prince_taldaram::RemovePrison(), SmartAI::ReturnToLastOOCPos(), EscortAI::ReturnToLastPoint(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::SetData(), spell_hor_evasion::spell_hor_evasion_SpellScript::SetDest(), HomeMovementGenerator< T >::SetTargetLocation(), npc_stalagg::SpellHit(), npc_feugen::SpellHit(), npc_av_marshal_or_warmaster::UpdateAI(), boss_balinda::UpdateAI(), boss_ioc_horde_alliance::UpdateAI(), boss_broodlord::UpdateAI(), boss_priestess_delrissa::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), npc_harbinger_of_flame::npc_harbinger_of_flameAI::UpdateAI(), boss_onyxia::UpdateAI(), npc_valkyr_shadowguard::UpdateAI(), boss_sapphiron::UpdateAI(), boss_anomalus::UpdateAI(), npc_bloodmage_laurith::UpdateAI(), boss_warchief_kargath_bladefist::UpdateAI(), boss_high_astromancer_solarian::UpdateAI(), boss_cragmaw_the_infested::UpdateAI(), and CreatureAI::VisualizeBoundary().

◆ GetLabels()

std::span< int32 const > Creature::GetLabels ( ) const

Definition at line 3466 of file Creature.cpp.

References GetCreatureDifficulty(), and sDB2Manager.

Referenced by HasLabel(), and Player::KilledMonster().

◆ GetLastDamagedTime()

time_t Creature::GetLastDamagedTime ( ) const
inline

Definition at line 449 of file Creature.h.

Referenced by CanCreatureAttack().

◆ GetLevelForTarget()

◆ GetLootForPlayer()

Loot * Creature::GetLootForPlayer ( Player const *  player) const
overridevirtual

◆ GetLootId()

uint32 Creature::GetLootId ( ) const

Definition at line 1355 of file Creature.cpp.

References GetCreatureDifficulty(), CreatureDifficulty::LootID, and m_lootId.

Referenced by Unit::Kill().

◆ GetLootMode()

uint16 Creature::GetLootMode ( ) const
inline

Definition at line 325 of file Creature.h.

Referenced by Unit::Kill().

◆ GetMaxHealthByLevel()

◆ GetMeleeDamageSchoolMask()

SpellSchoolMask Creature::GetMeleeDamageSchoolMask ( WeaponAttackType  = BASE_ATTACK) const
inlineoverridevirtual

Implements Unit.

Definition at line 237 of file Creature.h.

Referenced by ThreatReference::ShouldBeSuppressed().

◆ GetMovementTemplate()

◆ GetNameForLocaleIdx()

std::string Creature::GetNameForLocaleIdx ( LocaleConstant  locale) const
overridevirtual

Implements BaseEntity.

Definition at line 3451 of file Creature.cpp.

References DEFAULT_LOCALE, Object::GetEntry(), WorldObject::GetName(), and sObjectMgr.

Referenced by Pet::CreateBaseAtCreature().

◆ GetNativeObjectScale()

float Creature::GetNativeObjectScale ( ) const
overridevirtual

Reimplemented from Unit.

Reimplemented in Pet.

Definition at line 3587 of file Creature.cpp.

References GetCreatureTemplate(), and CreatureTemplate::scale.

Referenced by Pet::GetNativeObjectScale(), InitEntry(), and Guardian::InitStatsForLevel().

◆ GetOriginalEntry()

uint32 Creature::GetOriginalEntry ( ) const
inline

Definition at line 426 of file Creature.h.

Referenced by FrostwingGauntletRespawner::operator()().

◆ GetOriginalEquipmentId()

◆ GetPetAutoSpellOnPos()

uint32 Creature::GetPetAutoSpellOnPos ( uint8  pos) const
virtual

Reimplemented in Pet.

Definition at line 3476 of file Creature.cpp.

References ACT_ENABLED, Unit::m_charmInfo, and MAX_SPELL_CHARM.

Referenced by GetPetChaseDistance(), and PetAI::UpdateAI().

◆ GetPetAutoSpellSize()

uint8 Creature::GetPetAutoSpellSize ( ) const
virtual

Reimplemented in Pet.

Definition at line 3471 of file Creature.cpp.

References MAX_SPELL_CHARM.

Referenced by GetPetChaseDistance(), and PetAI::UpdateAI().

◆ GetPetChaseDistance()

float Creature::GetPetChaseDistance ( ) const

◆ GetPowerIndex()

uint32 Creature::GetPowerIndex ( Powers  power) const
overridevirtual

◆ GetPowerTypes()

◆ GetReactState()

◆ GetRespawnCompatibilityMode()

bool Creature::GetRespawnCompatibilityMode ( ) const
inline

Definition at line 431 of file Creature.h.

Referenced by npc_commandscript::HandleNpcInfoCommand().

◆ GetRespawnDelay()

◆ GetRespawnPosition()

◆ GetRespawnTime()

time_t const & Creature::GetRespawnTime ( ) const
inline

Definition at line 361 of file Creature.h.

◆ GetRespawnTimeEx()

time_t Creature::GetRespawnTimeEx ( ) const

Definition at line 2896 of file Creature.cpp.

References GameTime::GetGameTime(), and m_respawnTime.

Referenced by npc_commandscript::HandleNpcInfoCommand().

◆ GetScriptId()

◆ GetScriptName()

◆ GetSparringHealthPct()

float Creature::GetSparringHealthPct ( ) const
inline

Definition at line 472 of file Creature.h.

Referenced by CalculateDamageForSparring(), and ShouldFakeDamageFrom().

◆ GetSpawnId()

ObjectGuid::LowType Creature::GetSpawnId ( ) const
inline

Definition at line 110 of file Creature.h.

Referenced by FormationMgr::AddCreatureToGroup(), CreatureGroup::AddMember(), GetDebugInfo(), GameEventMgr::GetNPCFlag(), SmartScript::GetScript(), debug_commandscript::HandleDebugCombatListCommand(), debug_commandscript::HandleDebugGetLootRecipientCommand(), debug_commandscript::HandleDebugThreatListCommand(), npc_commandscript::HandleNpcAddCommand(), npc_commandscript::HandleNpcAddFormationCommand(), npc_commandscript::HandleNpcDeleteCommand(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcMoveCommand(), npc_commandscript::HandleNpcSetLinkCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetSpawnTimeCommand(), npc_commandscript::HandleNpcSetWanderDistanceCommand(), wp_commandscript::HandleWpLoadCommand(), wp_commandscript::HandleWpUnLoadCommand(), InitEntry(), npc_spinestalker::InitializeAI(), npc_rimefang_icc::InitializeAI(), npc_sindragosa_trash::InitializeAI(), SmartScript::IsSmart(), npc_spinestalker::JustAppeared(), npc_rimefang_icc::JustAppeared(), npc_sindragosa_trash::JustAppeared(), npc_living_mojo::npc_living_mojo(), instance_sunwell_plateau::instance_sunwell_plateau_InstanceMapScript::OnCreatureCreate(), instance_gruuls_lair::instance_gruuls_lair_InstanceMapScript::OnCreatureCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnUnitDeath(), FormationMgr::RemoveCreatureFromGroup(), Vehicle::Reset(), Respawn(), SearchFormation(), EscortAI::UpdateAI(), boss_gothik::UpdateAI(), and Player::UpdateVisibleObjectInteractions().

◆ GetSpawnTrackingStateDataForPlayer()

SpawnTrackingStateData const * Creature::GetSpawnTrackingStateDataForPlayer ( Player const *  player) const
overridevirtual

Reimplemented from Object.

Definition at line 3308 of file Creature.cpp.

References AsUnderlyingType(), GetCreatureData(), and Player::GetSpawnTrackingStateByObjectives().

◆ GetSpellDamageMod()

◆ GetStringId()

◆ GetTapList()

◆ GetTextRepeatGroup()

CreatureTextRepeatIds Creature::GetTextRepeatGroup ( uint8  textGroup)

Definition at line 3779 of file Creature.cpp.

References m_textRepeat.

Referenced by CreatureTextMgr::SendChat().

◆ GetTrainerId()

uint32 Creature::GetTrainerId ( ) const

Definition at line 3937 of file Creature.cpp.

References _trainerId, Object::GetEntry(), and sObjectMgr.

Referenced by WorldSession::HandleTrainerListOpcode().

◆ GetTransportHomePosition() [1/2]

Position const & Creature::GetTransportHomePosition ( ) const
inline

Definition at line 402 of file Creature.h.

◆ GetTransportHomePosition() [2/2]

void Creature::GetTransportHomePosition ( float &  x,
float &  y,
float &  z,
float &  ori 
) const
inline

◆ GetVendorItemCurrentCount()

◆ GetVendorItems()

VendorItemData const * Creature::GetVendorItems ( ) const

◆ GetWanderDistance()

float Creature::GetWanderDistance ( ) const
inline

Definition at line 370 of file Creature.h.

Referenced by RandomMovementFactory::Create().

◆ GetWaypointPathId()

◆ HasClassification()

bool Creature::HasClassification ( CreatureClassifications  classification) const
inline

Definition at line 173 of file Creature.h.

Referenced by IsElite().

◆ HasFlag() [1/8]

◆ HasFlag() [2/8]

bool Creature::HasFlag ( CreatureStaticFlags2  flag) const
inline

Definition at line 481 of file Creature.h.

◆ HasFlag() [3/8]

bool Creature::HasFlag ( CreatureStaticFlags3  flag) const
inline

Definition at line 482 of file Creature.h.

◆ HasFlag() [4/8]

bool Creature::HasFlag ( CreatureStaticFlags4  flag) const
inline

Definition at line 483 of file Creature.h.

◆ HasFlag() [5/8]

bool Creature::HasFlag ( CreatureStaticFlags5  flag) const
inline

Definition at line 484 of file Creature.h.

◆ HasFlag() [6/8]

bool Creature::HasFlag ( CreatureStaticFlags6  flag) const
inline

Definition at line 485 of file Creature.h.

◆ HasFlag() [7/8]

bool Creature::HasFlag ( CreatureStaticFlags7  flag) const
inline

Definition at line 486 of file Creature.h.

◆ HasFlag() [8/8]

bool Creature::HasFlag ( CreatureStaticFlags8  flag) const
inline

Definition at line 487 of file Creature.h.

◆ hasInvolvedQuest()

bool Creature::hasInvolvedQuest ( uint32  quest_id) const
overridevirtual

Reimplemented from Object.

Definition at line 2013 of file Creature.cpp.

References Object::GetEntry(), and sObjectMgr.

◆ HasLabel()

bool Creature::HasLabel ( int32  cretureLabel) const

Definition at line 3461 of file Creature.cpp.

References advstd::ranges::contains, and GetLabels().

Referenced by GetUnitConditionVariable().

◆ HasLootMode()

bool Creature::HasLootMode ( uint16  lootMode) const
inline

◆ hasLootRecipient()

bool Creature::hasLootRecipient ( ) const
inline

Definition at line 314 of file Creature.h.

Referenced by Player::GiveXP(), and boss_valithria_dreamwalker::HealReceived().

◆ hasQuest()

bool Creature::hasQuest ( uint32  quest_id) const
overridevirtual

Reimplemented from Object.

Definition at line 2008 of file Creature.cpp.

References Object::GetEntry(), and sObjectMgr.

◆ HasReactState()

bool Creature::HasReactState ( ReactStates  state) const
inline

Definition at line 182 of file Creature.h.

Referenced by EscortAI::AssistPlayerInCombatAgainst(), SmartAI::AssistPlayerInCombatAgainst(), npc_arthas_stratholme::npc_arthas_stratholmeAI::CanAIAttack(), CanAssistTo(), PetAI::CanAttack(), boss_flame_leviathan::boss_flame_leviathanAI::DoAction(), PetAI::DoAttack(), boss_infinite_corruptor::boss_infinite_corruptorAI::EnterEvadeMode(), spell_auriaya_agro_creator::HandleDummyEffect(), npc_living_mojo::JustEngagedWith(), npc_hadronox_crusherPackAI::JustEngagedWith(), npc_gatewatcher_petAI::JustEngagedWith(), npc_kelthuzad_minionAI::JustEngagedWith(), violet_hold_trashAI::JustEngagedWith(), CreatureAI::MoveInLineOfSight(), npc_hadronox_crusherPackAI::MoveInLineOfSight(), boss_krik_thir::MoveInLineOfSight(), npc_gatewatcher_petAI::MoveInLineOfSight(), npc_kelthuzad_minionAI::MoveInLineOfSight(), CreatureAI::OnCharmed(), SmartAI::OnCharmed(), CreatureAI::OnOwnerCombatInteraction(), PetAI::OwnerAttacked(), PetAI::OwnerAttackedBy(), FollowerAI::OwnerAttackedBy(), violet_hold_trashAI::Reset(), PetAI::SelectNextTarget(), SelectVictim(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::SelectVictim(), gunship_npc_AI::SelectVictim(), SmartAI::SetCombatMove(), npc_sporecaller_zancha_musashitake::SpellHit(), CreatureAI::TriggerAlert(), gunship_npc_AI::TriggerBurningPitch(), boss_gothik::UpdateAI(), boss_blackheart_the_inciter::UpdateAI(), PetAI::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAICombat(), and CreatureAI::UpdateVictim().

◆ HasScalableLevels()

◆ HasSearchedAssistance()

bool Creature::HasSearchedAssistance ( ) const
inline

Definition at line 349 of file Creature.h.

◆ HasSpell()

bool Creature::HasSpell ( uint32  spellID) const
overridevirtual

Reimplemented from Unit.

Reimplemented in Pet.

Definition at line 2891 of file Creature.cpp.

References m_spells.

◆ HasSpellFocus()

◆ HasStringId()

bool Creature::HasStringId ( std::string_view  id) const

Definition at line 3289 of file Creature.cpp.

References m_stringIds.

Referenced by npc_earthen_ring_flamecaller::DoAction(), Scripts::Kalimdor::Durotar::npc_captive_spitescale_scout::DoAction(), npc_sanitron_5000::GetPathId(), npc_drustvar_frightend_woodsman_private::GetPathId(), npc_coilfang_ambusher::GetPathId(), npc_coilfang_guardian::GetPathId(), npc_shadowmoon_channeler::GetStringIdOfChanneler(), spell_ragefire_chasm_general_trigger_221_to_self::HandleDummy(), npc_vp_slipstream::InitializeAI(), BroggokPrisionerBaseAI::IsCellPrisoner(), BroggokPrisionerBaseAI::IsHighCellPrisoner(), npc_rokmora_navarrogg_intro::JustAppeared(), Scripts::Kalimdor::Durotar::npc_darkspear_jailor::JustAppeared(), npc_kings_rest_shadow_of_zul::JustAppeared(), npc_kings_rest_minion_of_zul::JustAppeared(), npc_fel_orc_convert::JustDied(), npc_fel_orc_convert::JustEngagedWith(), CreatureGroup::LeaderHasStringId(), spell_vp_slipstream::Load(), arena_dalaran_sewers::OnCreatureCreate(), battleground_isle_of_conquest::OnCreatureCreate(), instance_aberrus_the_shadowed_crucible::instance_aberrus_the_shadowed_crucible_InstanceMapScript::OnCreatureCreate(), instance_uldaman::instance_uldaman_InstanceMapScript::OnCreatureCreate(), instance_ruins_of_ahnqiraj::instance_ruins_of_ahnqiraj_InstanceMapScript::OnCreatureCreate(), instance_vortex_pinnacle::instance_vortex_pinnacle_InstanceMapScript::OnCreatureCreate(), instance_blood_furnace::instance_blood_furnace_InstanceMapScript::OnCreatureCreate(), instance_kings_rest::instance_kings_rest_InstanceMapScript::OnCreatureCreate(), instance_vortex_pinnacle::instance_vortex_pinnacle_InstanceMapScript::OnCreatureRemove(), npc_altar_altercation_blood_ritual_orb::OnSpellClick(), battleground_silvershard_mines::OnTrackSwitched(), instance_aberrus_the_shadowed_crucible::instance_aberrus_the_shadowed_crucible_InstanceMapScript::OnUnitDeath(), instance_zulaman::instance_zulaman_InstanceScript::OnUnitDeath(), instance_the_stonevault::instance_the_stonevault_InstanceMapScript::OnUnitDeath(), instance_kings_rest::instance_kings_rest_InstanceMapScript::OnUnitDeath(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), npc_vp_slipstream::PassengerBoarded(), npc_vault_warder::Reset(), and npc_vault_warder::SpellHit().

◆ Heartbeat()

void Creature::Heartbeat ( )
overridevirtual

◆ InheritStringIds()

void Creature::InheritStringIds ( Creature const *  parent)

Definition at line 3280 of file Creature.cpp.

References GetStringId(), m_stringIds, Script, and SetScriptStringId().

◆ InitEntry()

bool Creature::InitEntry ( uint32  entry,
CreatureData const *  data = nullptr 
)
protected

change the entry of creature until respawn

Definition at line 497 of file Creature.cpp.

References _staticFlags, ApplyAllStaticFlags(), CreatureStaticFlagsHolder::ApplyFlag(), ObjectMgr::ChooseDisplayId(), CREATURE_FLAG_EXTRA_IGNORE_FEIGN_DEATH, CREATURE_FLAG_EXTRA_NO_XP, CREATURE_FLAG_EXTRA_USE_OFFHAND_ATTACK, CREATURE_STATIC_FLAG_2_ALLOW_MOUNTED_COMBAT, CREATURE_STATIC_FLAG_NO_XP, CREATURE_TYPE_CRITTER, CREATURE_TYPE_FLAG_ALLOW_MOUNTED_COMBAT, CREATURE_TYPE_FLAG_TREAT_AS_RAID_UNIT, CreatureModel::CreatureDisplayID, DIFFICULTY_NONE, CreatureData::equipmentId, CreatureTemplate::flags_extra, GenerateStaticFlags(), GetCreatureDifficulty(), GetCreatureTemplate(), CreatureTemplate::GetDifficulty(), CreatureTemplate::GetFirstValidModel(), WorldObject::GetMap(), GetNativeObjectScale(), GetSpawnId(), IDLE_MOTION_TYPE, Unit::IsPet(), Unit::IsTotem(), LoadEquipment(), m_creatureDifficulty, m_creatureInfo, m_defaultMovementType, m_originalEquipmentId, m_spells, m_wanderDistance, MAX_CREATURE_SPELLS, MOVE_FLIGHT, MOVE_RUN, MOVE_SWIM, MOVE_WALK, CreatureTemplate::MovementType, CreatureData::movementType, CreatureTemplate::Name, RACE_NONE, RANDOM_MOTION_TYPE, SetCanDualWield(), Unit::SetClass(), SetDisplayId(), Object::SetEntry(), SetIgnoreFeignDeath(), Unit::SetModCastingSpeed(), Unit::SetModCastingSpeedNeg(), Unit::SetModHaste(), Unit::SetModHasteRegen(), Unit::SetModRangedHaste(), Unit::SetModSpellHaste(), Unit::SetModTimeRate(), WorldObject::SetName(), SetObjectScale(), Unit::SetRace(), Unit::SetSpeedRate(), Unit::SetSpellEmpowerStage(), SetTreatAsRaidUnit(), sObjectMgr, CreatureTemplate::speed_run, CreatureTemplate::speed_walk, CreatureTemplate::spells, TC_LOG_ERROR, CreatureTemplate::type, CreatureTemplate::unit_class, and Unit::UpdateCreatureType().

Referenced by Pet::Create(), and UpdateEntry().

◆ InitializeInteractSpellId()

void Creature::InitializeInteractSpellId ( )

Definition at line 3969 of file Creature.cpp.

References Object::GetEntry(), SetInteractSpellId(), and sObjectMgr.

Referenced by UpdateEntry().

◆ InitializeMovementCapabilities()

◆ InitializeReactState()

◆ IsAffectedByDiminishingReturns()

bool Creature::IsAffectedByDiminishingReturns ( ) const
inlineoverridevirtual

Reimplemented from Unit.

Definition at line 176 of file Creature.h.

References CREATURE_FLAG_EXTRA_ALL_DIMINISH, and Unit::IsAffectedByDiminishingReturns().

◆ IsAggroGracePeriodExpired()

bool Creature::IsAggroGracePeriodExpired ( )
inline

Definition at line 468 of file Creature.h.

Referenced by CreatureAI::MoveInLineOfSight().

◆ IsAmphibious()

bool Creature::IsAmphibious ( ) const
inline

Definition at line 139 of file Creature.h.

References CREATURE_STATIC_FLAG_AMPHIBIOUS.

◆ IsAquatic()

bool Creature::IsAquatic ( ) const
inline

◆ isCanInteractWithBattleMaster()

◆ IsCivilian()

bool Creature::IsCivilian ( ) const
inline

◆ IsDungeonBoss()

bool Creature::IsDungeonBoss ( ) const
inline

Definition at line 175 of file Creature.h.

References CREATURE_FLAG_EXTRA_DUNGEON_BOSS.

Referenced by setDeathState().

◆ IsElite()

bool Creature::IsElite ( ) const

Definition at line 2499 of file Creature.cpp.

References Elite, HasClassification(), Unit::IsPet(), and RareElite.

Referenced by Spell::EffectSkinning(), and Trinity::XP::Gain().

◆ IsEngaged()

◆ IsEscorted()

bool Creature::IsEscorted ( ) const

Definition at line 3900 of file Creature.cpp.

References AI().

Referenced by AtEngage(), and Map::CheckRespawn().

◆ IsEvadingAttacks()

bool Creature::IsEvadingAttacks ( ) const
inline

◆ IsFloating()

bool Creature::IsFloating ( ) const
inline

◆ IsFormationLeader()

bool Creature::IsFormationLeader ( ) const

Definition at line 403 of file Creature.cpp.

References CreatureGroup::IsLeader(), and m_formation.

◆ IsFormationLeaderMoveAllowed()

bool Creature::IsFormationLeaderMoveAllowed ( ) const

Definition at line 422 of file Creature.cpp.

References CreatureGroup::CanLeaderStartMoving(), and m_formation.

◆ IsFullyLooted()

bool Creature::IsFullyLooted ( ) const

Definition at line 1426 of file Creature.cpp.

References m_loot, and m_personalLoot.

Referenced by WorldSession::DoLootRelease(), and Unit::Kill().

◆ IsGuard()

bool Creature::IsGuard ( ) const
inline

Definition at line 128 of file Creature.h.

References CREATURE_FLAG_EXTRA_GUARD.

Referenced by GuardAI::Permissible().

◆ IsIgnoringChaseRange()

bool Creature::IsIgnoringChaseRange ( ) const
inline

Definition at line 386 of file Creature.h.

References CREATURE_STATIC_FLAG_6_ALWAYS_STAND_ON_TARGET.

◆ IsIgnoringFeignDeath()

bool Creature::IsIgnoringFeignDeath ( ) const
inline

◆ IsIgnoringSanctuarySpellEffect()

bool Creature::IsIgnoringSanctuarySpellEffect ( ) const
inline

Definition at line 354 of file Creature.h.

References CREATURE_STATIC_FLAG_2_IGNORE_SANCTUARY.

Referenced by Spell::EffectSanctuary().

◆ IsImmunedToSpellEffect()

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

◆ IsImmuneToAll()

bool Unit::IsImmuneToAll ( ) const
inline

Definition at line 1057 of file Unit.h.

◆ IsImmuneToNPC()

bool Unit::IsImmuneToNPC ( ) const
inline

Definition at line 1063 of file Unit.h.

Referenced by CanAssistTo(), CanStartAttack(), and EscortAI::Start().

◆ IsImmuneToPC()

bool Unit::IsImmuneToPC ( ) const
inline

◆ IsInEvadeMode()

◆ IsInvisibleDueToDespawn()

bool Creature::IsInvisibleDueToDespawn ( WorldObject const *  seer) const
overrideprotectedvirtual

◆ IsMovementPreventedByCasting()

bool Creature::IsMovementPreventedByCasting ( ) const
overridevirtual

◆ IsRacialLeader()

bool Creature::IsRacialLeader ( ) const
inline

Definition at line 125 of file Creature.h.

Referenced by Player::RewardHonor().

◆ IsReputationGainDisabled()

bool Creature::IsReputationGainDisabled ( ) const
inline

Definition at line 421 of file Creature.h.

Referenced by Player::RewardReputation().

◆ IsReturningHome()

bool Creature::IsReturningHome ( ) const

Definition at line 382 of file Creature.cpp.

References Unit::GetMotionMaster(), and HOME_MOTION_TYPE.

◆ IsSessile()

bool Creature::IsSessile ( ) const
inline

Definition at line 149 of file Creature.h.

References CREATURE_STATIC_FLAG_SESSILE.

Referenced by UpdateFloatingMovementFlags(), and UpdateSessileMovementFlags().

◆ IsSkinnedBy()

bool Creature::IsSkinnedBy ( Player const *  player) const

◆ IsSpawnedOnTransport()

bool Creature::IsSpawnedOnTransport ( ) const
inline

Definition at line 116 of file Creature.h.

References WorldLocation::GetMapId().

Referenced by RemoveCorpse().

◆ IsStateRestoredOnEvade()

bool Creature::IsStateRestoredOnEvade ( ) const
inline

◆ IsSwimDisabled()

bool Creature::IsSwimDisabled ( ) const
inline

Definition at line 160 of file Creature.h.

References CREATURE_STATIC_FLAG_3_CANT_SWIM.

◆ IsTapListNotClearedOnEvade()

bool Creature::IsTapListNotClearedOnEvade ( ) const
inline

◆ isTappedBy()

bool Creature::isTappedBy ( Player const *  player) const

◆ IsThreatFeedbackDisabled()

bool Creature::IsThreatFeedbackDisabled ( ) const
inline

Definition at line 464 of file Creature.h.

References CREATURE_STATIC_FLAG_3_NO_THREAT_FEEDBACK.

◆ IsTreatedAsRaidUnit()

bool Creature::IsTreatedAsRaidUnit ( ) const
inline

◆ IsTrigger()

◆ isWorldBoss()

◆ LoadCreaturesAddon()

◆ LoadCreaturesSparringHealth()

void Creature::LoadCreaturesSparringHealth ( bool  force = false)

◆ LoadEquipment()

◆ LoadFromDB()

◆ LoadPath()

void Creature::LoadPath ( uint32  pathid)
inline

◆ LoadTemplateImmunities()

◆ LowerPlayerDamageReq()

◆ Motion_Initialize()

◆ OverrideSparringHealthPct() [1/2]

void Creature::OverrideSparringHealthPct ( float  healthPct)
inline

Definition at line 470 of file Creature.h.

◆ OverrideSparringHealthPct() [2/2]

void Creature::OverrideSparringHealthPct ( std::vector< float > const &  healthPct)

◆ ReacquireSpellFocusTarget()

◆ Regenerate()

◆ RegenerateHealth()

◆ ReleaseSpellFocus()

void Creature::ReleaseSpellFocus ( Spell const *  focusSpell = nullptr,
bool  withDelay = true 
)

◆ RemoveCorpse()

◆ RemoveFromWorld()

◆ RemoveLootMode()

◆ ResetLootMode()

◆ ResetPickPocketRefillTimer()

void Creature::ResetPickPocketRefillTimer ( )
inline

Definition at line 310 of file Creature.h.

Referenced by Respawn().

◆ ResetPlayerDamageReq()

◆ Respawn()

void Creature::Respawn ( bool  force = false)

Definition at line 2325 of file Creature.cpp.

References _aggroGracePeriodExpired, AI(), CORPSE, CreatureModel::CreatureDisplayID, DEAD, GetCreatureData(), GetCreatureTemplate(), Unit::getDeathState(), Object::GetEntry(), BaseEntity::GetGUID(), WorldObject::GetMap(), Unit::GetMotionMaster(), WorldObject::GetName(), Unit::GetNativeDisplayId(), Unit::GetNativeDisplayScale(), Map::GetPoolData(), GetSpawnId(), MotionMaster::InitializeDefault(), InitializeReactState(), Unit::IsAlive(), JUST_DIED, JUST_RESPAWNED, m_loot, m_originalEntry, m_respawnCompatibilityMode, m_respawnTime, m_spawnId, m_triggerJustAppeared, SpawnData::poolId, RemoveCorpse(), ResetPickPocketRefillTimer(), Map::Respawn(), SelectLevel(), setDeathState(), SetDisplayId(), sObjectMgr, SPAWN_TYPE_CREATURE, sPoolMgr, TC_LOG_DEBUG, Position::ToString(), UpdateEntry(), Unit::UpdateObjectVisibility(), and WorldObject::UpdateObjectVisibilityOnDestroy().

Referenced by npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetWanderDistanceCommand(), misc_commandscript::HandleRespawnCommand(), hyjalAI::JustDied(), TrashRespawnWorker::operator()(), Trinity::RespawnDo::operator()(), instance_violet_hold::instance_violet_hold_InstanceMapScript::ResetBossEncounter(), boss_twinemperorsAI::RespawnNearbyBugsAndGetOne(), Battlefield::ShowNpc(), Update(), EscortAI::UpdateAI(), boss_freya::boss_freyaAI::UpdateAI(), InstanceScript::UpdateMinionState(), and npc_demolitionist_legoso::npc_demolitionist_legosoAI::WaypointReached().

◆ SaveRespawnTime()

◆ SaveToDB() [1/2]

◆ SaveToDB() [2/2]

void Creature::SaveToDB ( uint32  mapid,
std::vector< Difficulty > const &  spawnDifficulties 
)
virtual

Reimplemented in TempSummon, and Pet.

Definition at line 1465 of file Creature.cpp.

References ASSERT, CreatureData::curHealthPct, CreatureData::currentwaypoint, DEFAULT_PLAYER_DISPLAY_SCALE, CreatureData::display, CreatureData::equipmentId, GetCreatureTemplate(), GetCurrentEquipmentId(), WorldObject::GetDBPhase(), GetDefaultMovementType(), Object::GetEntry(), Unit::GetHealthPct(), WorldLocation::GetMapId(), Unit::GetNativeDisplayId(), Unit::GetNpcFlags(), Unit::GetNpcFlags2(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetStringId(), WorldObject::GetTransOffsetO(), WorldObject::GetTransOffsetX(), WorldObject::GetTransOffsetY(), WorldObject::GetTransOffsetZ(), WorldObject::GetTransport(), SpawnData::id, IDLE_MOTION_TYPE, m_respawnDelay, m_spawnId, Unit::m_unitData, m_wanderDistance, SpawnMetadata::mapId, CreatureTemplate::Models, CreatureData::movementType, CreatureTemplate::npcflag, CreatureData::npcflag, SpawnData::phaseGroup, SpawnData::phaseId, SpawnData::phaseUseFlags, RANDOM_MOTION_TYPE, CreatureTemplate::RegenHealth, Position::Relocate(), SpawnData::scriptId, PreparedStatementBase::setFloat(), PreparedStatementBase::setInt32(), PreparedStatementBase::setNull(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), sObjectMgr, Spawn, SpawnData::spawnDifficulties, SpawnMetadata::spawnGroupData, SpawnMetadata::spawnId, SpawnData::spawnPoint, SpawnData::spawntimesecs, SpawnData::terrainSwapMap, CreatureTemplate::unit_flags, CreatureData::unit_flags, CreatureTemplate::unit_flags2, CreatureData::unit_flags2, CreatureTemplate::unit_flags3, CreatureData::unit_flags3, CreatureData::wander_distance, WORLD_DEL_CREATURE, WORLD_INS_CREATURE, and WorldDatabase.

◆ SearchFormation()

◆ SelectLevel()

void Creature::SelectLevel ( )

◆ SelectNearestHostileUnitInAggroRange()

Unit * Creature::SelectNearestHostileUnitInAggroRange ( bool  useLOS = false,
bool  ignoreCivilians = false 
) const

Definition at line 3572 of file Creature.cpp.

References MAX_AGGRO_RADIUS, and Cell::VisitGridObjects().

Referenced by PetAI::SelectNextTarget().

◆ SelectNearestTarget()

Unit * Creature::SelectNearestTarget ( float  dist = 0,
bool  playerOnly = false 
) const

◆ SelectNearestTargetInAttackDistance()

Unit * Creature::SelectNearestTargetInAttackDistance ( float  dist = 0) const

◆ SelectVictim()

◆ SelectWildBattlePetLevel()

void Creature::SelectWildBattlePetLevel ( )

◆ SendAIReaction()

◆ SendZoneUnderAttackMessage()

void Creature::SendZoneUnderAttackMessage ( Player *  attacker)

Send a message to LocalDefense channel for players opposition team in the zone.

Definition at line 2837 of file Creature.cpp.

References ALLIANCE, WorldPackets::Misc::ZoneUnderAttack::AreaID, WorldObject::GetAreaId(), WorldPackets::Packet::GetRawPacket(), Player::GetTeam(), HORDE, sWorld, and WorldPackets::Misc::ZoneUnderAttack::Write().

Referenced by GuardAI::JustDied().

◆ SetCanDualWield()

◆ SetCanGiveExperience()

void Creature::SetCanGiveExperience ( bool  xpEnabled)
inline

Definition at line 458 of file Creature.h.

References CREATURE_STATIC_FLAG_NO_XP.

◆ SetCanHaveLoot()

void Creature::SetCanHaveLoot ( bool  canHaveLoot)
inline

Definition at line 304 of file Creature.h.

References CREATURE_STATIC_FLAG_NO_LOOT.

◆ SetCanMelee()

void Creature::SetCanMelee ( bool  canMelee,
bool  fleeFromMelee = false 
)

Definition at line 2850 of file Creature.cpp.

References _staticFlags, CreatureStaticFlagsHolder::ApplyFlag(), CHASE_MOTION_TYPE, CREATURE_STATIC_FLAG_4_NO_MELEE_APPROACH, CREATURE_STATIC_FLAG_NO_MELEE_FLEE, FLEEING_MOTION_TYPE, MotionMaster::GetCurrentMovementGenerator(), Unit::GetMotionMaster(), MovementGenerator::GetMovementGeneratorType(), Unit::GetVictim(), HasFlag(), Unit::HasUnitFlag(), MotionMaster::Remove(), StartDefaultCombatMovement(), and UNIT_FLAG_FLEEING.

Referenced by boss_flame_leviathan::boss_flame_leviathanAI::boss_flame_leviathanAI(), boss_four_horsemen_lady::boss_four_horsemen_lady(), boss_four_horsemen_sir::boss_four_horsemen_sir(), boss_lady_malande::boss_lady_malande(), boss_prince_keleseth_icc::boss_prince_keleseth_icc(), boss_bronjahm::DamageTaken(), boss_earthrager_ptah::DamageTaken(), boss_lady_deathwhisper::DamageTaken(), boss_black_knight::boss_black_knightAI::DamageTaken(), boss_viscidus::boss_viscidusAI::DamageTaken(), npc_vrykul_skeleton::DamageTaken(), spell_rotface_unstable_ooze_explosion_suicide::DespawnSelf(), npc_snobold_vassal::DoAction(), boss_jormungarAI::Emerge(), boss_felmyst::EnterPhase(), boss_sapphiron::EnterPhaseGround(), boss_jormungarAI::ExecuteEvent(), npc_anduin_wrynn_sylvanas::JustAppeared(), npc_anduin_wrynn_jaina::JustAppeared(), boss_lady_deathwhisper::JustEngagedWith(), npc_snobold_vassal::MountOnBoss(), boss_svala::MoveInLineOfSight(), npc_belnistrasz::npc_belnistraszAI::MovementInform(), npc_darkfallen_archmage::npc_darkfallen_archmage(), npc_darkfallen_noble::npc_darkfallen_noble(), npc_firelands_magmakin::npc_firelands_magmakin(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::npc_sc_millhouse_manastormAI(), npc_thorim_trashAI::npc_thorim_trashAI(), npc_toc_hunter::npc_toc_hunter(), SmartScript::ProcessAction(), boss_shade_of_aran::boss_aranAI::Reset(), boss_kagani_nightstrike::Reset(), boss_earthrager_ptah::Reset(), boss_onyxia::Reset(), npc_belnistrasz::npc_belnistraszAI::Reset(), boss_black_knight::boss_black_knightAI::Reset(), boss_anubarak_trial::Reset(), boss_jormungarAI::Reset(), boss_bronjahm::Reset(), boss_anubrekhan::Reset(), boss_svala::Reset(), npc_wild_wyrm::Reset(), npc_zombie_chow::SetData(), boss_earthrager_ptah::SetData(), boss_malygos::SetPhase(), npc_wild_wyrm::SpellHit(), boss_jormungarAI::Submerge(), boss_shade_of_aran::boss_aranAI::UpdateAI(), boss_kagani_nightstrike::UpdateAI(), boss_onyxia::UpdateAI(), boss_viscidus::boss_viscidusAI::UpdateAI(), boss_anubarak_trial::UpdateAI(), boss_anubrekhan::UpdateAI(), boss_sapphiron::UpdateAI(), npc_vrykul_skeleton::UpdateAI(), boss_svala::UpdateAI(), and boss_black_knight::boss_black_knightAI::UpdateAI().

◆ SetCannotPenetrateWater()

void Creature::SetCannotPenetrateWater ( bool  cannotPenetrateWater)
inline

Definition at line 157 of file Creature.h.

References CREATURE_STATIC_FLAG_3_CANNOT_PENETRATE_WATER.

◆ SetCannotReachTarget()

void Creature::SetCannotReachTarget ( bool  cannotReach)

◆ SetCorpseDelay()

void Creature::SetCorpseDelay ( uint32  delay,
bool  ignoreCorpseDecayRatio = false 
)
inline

Definition at line 118 of file Creature.h.

Referenced by ForcedDespawn(), npc_firesworn::InitializeAI(), boss_majordomo::InitializeAI(), npc_son_of_flame::InitializeAI(), npc_tito::InitializeAI(), npc_shadow_image::InitializeAI(), npc_void_sentinel::InitializeAI(), npc_void_spawn::InitializeAI(), ShadowswordBaseAI::InitializeAI(), npc_soaring_eagle::InitializeAI(), MalacrassCompanionBaseAI::InitializeAI(), npc_amanishi_hatcher::InitializeAI(), npc_dragonhawk_egg::InitializeAI(), npc_amani_dragonhawk_hatchling::InitializeAI(), npc_ancient_wisp::InitializeAI(), npc_hive_zara_larva::InitializeAI(), npc_hive_zara_swarmer::InitializeAI(), npc_buru_egg::InitializeAI(), npc_fallout_slime::InitializeAI(), npc_malformed_ooze::InitializeAI(), npc_vrykul_skeleton::InitializeAI(), npc_stolen_soul::InitializeAI(), npc_enchanted_elemental::InitializeAI(), npc_steamrigger_mechanic::InitializeAI(), boss_ahune::InitializeAI(), npc_frozen_core::InitializeAI(), OgreBaseAI::InitializeAI(), npc_shadowmoon_channeler::InitializeAI(), npc_hellfire_channeler::InitializeAI(), npc_warp_splinter_sapling::InitializeAI(), npc_ember_of_alar::InitializeAI(), npc_solarium_priest::InitializeAI(), npc_solarium_agent::InitializeAI(), npc_phoenix_egg_the_eye::InitializeAI(), npc_raging_flames::InitializeAI(), npc_akilzon_amani_kidnapper::IsSummonedBy(), npc_lockmaw_frenzied_crocolisk::JustAppeared(), npc_iron_sludge::JustAppeared(), boss_kologarn::boss_kologarnAI::JustDied(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), FrostwingGauntletRespawner::operator()(), npc_swarm_scarab::Reset(), npc_nerubian_burrower::Reset(), npc_dream_cloud::Reset(), npc_naga_distiller::Reset(), boss_harbinger_skyriss_illusion::Reset(), npc_nether_wraith::Reset(), boss_sacrolash::UpdateAI(), and boss_alythess::UpdateAI().

◆ SetCurrentEquipmentId()

void Creature::SetCurrentEquipmentId ( uint8  id)
inline

◆ setDeathState()

void Creature::setDeathState ( DeathState  s)
overridevirtual

Reimplemented from Unit.

Reimplemented in Minion, and Pet.

Definition at line 2209 of file Creature.cpp.

References _staticFlags, ALIVE, Map::ApplyDynamicModeRespawnScaling(), ObjectMgr::ChooseCreatureFlags(), Unit::ClearUnitState(), CONFIG_RESPAWN_DYNAMICMODE, CORPSE, CREATURE_FLAG_EXTRA_WORLDEVENT, creatureData, CreatureTemplate::dmgschool, DoNotReacquireSpellFocusTarget(), ObjectGuid::Empty, CreatureTemplate::flags_extra, CreatureGroup::FormationReset(), GetCreatureData(), GetCreatureTemplate(), GameTime::GetGameTime(), CreatureGroup::GetLeader(), WorldObject::GetMap(), Unit::GetMotionMaster(), WorldObject::GetZoneScript(), CreatureGroup::HasAliveMembers(), Unit::HasUnitState(), IsDungeonBoss(), Unit::IsFlying(), Unit::IsHovering(), Unit::IsPet(), Unit::IsUnderWater(), JUST_DIED, JUST_RESPAWNED, LoadCreaturesAddon(), LoadCreaturesSparringHealth(), m_corpseDelay, m_corpseRemoveTime, m_formation, m_respawnCompatibilityMode, m_respawnDelay, m_respawnTime, m_spawnId, Motion_Initialize(), MotionMaster::MoveFall(), ReleaseSpellFocus(), Unit::RemoveUnitFlag(), Object::ReplaceAllDynamicFlags(), Unit::ReplaceAllNpcFlags(), Unit::ReplaceAllNpcFlags2(), Unit::ReplaceAllUnitFlags(), Unit::ReplaceAllUnitFlags2(), Unit::ReplaceAllUnitFlags3(), ResetPlayerDamageReq(), SaveRespawnTime(), WorldObject::setActive(), SetCannotReachTarget(), Unit::setDeathState(), Unit::SetDisableGravity(), Unit::SetFullHealth(), Unit::SetHover(), SetMeleeDamageSchool(), Unit::SetMountDisplayId(), SetNoSearchAssistance(), SetSpawnHealth(), SetTappedBy(), SetTarget(), Unit::SetVignette(), sGameEventMgr, sWorld, UNIT_DYNFLAG_NONE, UNIT_FLAG_IN_COMBAT, UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_NONE, UNIT_STATE_ALL_ERASABLE, UNIT_STATE_ROOT, UpdateMovementCapabilities(), and CreatureTemplate::VignetteID.

Referenced by ForcedDespawn(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetWanderDistanceCommand(), boss_twinemperorsAI::JustDied(), RemoveCorpse(), Respawn(), Minion::setDeathState(), Pet::setDeathState(), npc_argent_captainAI::SpellHit(), npc_a_special_surprise::npc_a_special_surpriseAI::UpdateAI(), and npc_injured_patient::npc_injured_patientAI::UpdateAI().

◆ SetDefaultMount()

void Creature::SetDefaultMount ( Optional< uint32 >  mountCreatureDisplayId)

Definition at line 3515 of file Creature.cpp.

References _defaultMountDisplayIdOverride, and sCreatureDisplayInfoStore.

◆ SetDefaultMovementType()

◆ SetDisableReputationGain()

void Creature::SetDisableReputationGain ( bool  disable)
inline

Definition at line 420 of file Creature.h.

Referenced by hyjalAI::SummonCreature().

◆ SetDisplayFromModel()

◆ SetDisplayId()

void Creature::SetDisplayId ( uint32  displayId,
bool  setNative = false 
)
overridevirtual

Reimplemented from Unit.

Reimplemented in Pet.

Definition at line 3603 of file Creature.cpp.

References DEFAULT_PLAYER_COMBAT_REACH, Unit::GetDisplayScale(), Object::GetObjectScale(), Unit::IsPet(), Unit::SetBoundingRadius(), Unit::SetCombatReach(), Unit::SetDisplayId(), and sObjectMgr.

Referenced by boss_black_knight::boss_black_knightAI::DamageTaken(), boss_jormungarAI::Emerge(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), npc_commandscript::HandleNpcSetModelCommand(), InitEntry(), boss_felmyst::InitializeAI(), npc_troll_volunteer::InitializeAI(), npc_stolen_soul::InitializeAI(), Totem::InitStats(), Guardian::InitStatsForLevel(), npc_chains_of_woe::npc_chains_of_woeAI::IsSummonedBy(), npc_silverpine_forsaken_trooper_fenris_isle::IsSummonedBy(), npc_baleful_beaming_eye::JustAppeared(), boss_alar::JustDied(), boss_ymiron::JustSummoned(), npc_cw_area_trigger::npc_cw_area_triggerAI::npc_cw_area_triggerAI(), npc_flame_tsunami::npc_flame_tsunami(), npc_giant_infernal::npc_giant_infernalAI::npc_giant_infernalAI(), npc_grizzlemaw_cw_trigger::npc_grizzlemaw_cw_triggerAI::npc_grizzlemaw_cw_triggerAI(), npc_scorch_ground::npc_scorch_groundAI::npc_scorch_groundAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::npc_the_biggest_treeAI(), conversation_kings_rest_intro::OnUpdate(), SmartScript::ProcessAction(), npc_thrall_old_hillsbrad::Reset(), boss_black_knight::boss_black_knightAI::Reset(), boss_devourer_of_souls::Reset(), npc_infernal_attacker::npc_infernal_attackerAI::Reset(), Respawn(), SetDisplayFromModel(), Pet::SetDisplayId(), Unit::SetMinion(), netherspite_infernal::netherspite_infernalAI::SpellHit(), boss_valithria_dreamwalker::SpellHit(), npc_infernal_attacker::npc_infernal_attackerAI::SpellHit(), Spell::SummonGuardian(), boss_malchezaar::boss_malchezaarAI::SummonInfernal(), npc_kings_rest_shadow_of_zul::TriggerSerpentBossEvent(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), npc_egg_pile::npc_egg_pileAI::UpdateAI(), boss_tharon_ja::UpdateAI(), boss_devourer_of_souls::UpdateAI(), boss_magus_telestra::UpdateAI(), boss_alar::UpdateAI(), Scripts::QuelThalas::MurderRow::KystiaManaheart::boss_kystia_manaheart_nibbles::UpdateAI(), WaypointMgr::VisualizePath(), and npc_thrall_old_hillsbrad::WaypointReached().

◆ SetDontClearTapListOnEvade()

void Creature::SetDontClearTapListOnEvade ( bool  dontClear)

Definition at line 1402 of file Creature.cpp.

References m_dontClearTapListOnEvade, and m_spawnId.

◆ SetFloating()

◆ SetFormation()

void Creature::SetFormation ( CreatureGroup *  formation)
inline

Definition at line 415 of file Creature.h.

Referenced by CreatureGroup::AddMember(), and CreatureGroup::RemoveMember().

◆ SetGossipMenuId()

◆ SetHomePosition() [1/2]

void Creature::SetHomePosition ( float  x,
float  y,
float  z,
float  o 
)
inline

Definition at line 394 of file Creature.h.

Referenced by npc_announcer_toc5::npc_announcer_toc5AI::AggroAllPlayers(), AtEngage(), ArenaScript::CreateCreature(), Transport::CreateNPCPassenger(), npc_argent_valiant::DamageTaken(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::DestroyDoor(), boss_deathbringer_saurfang::DoAction(), npc_icc_nerubar_broodkeeper::DoAction(), npc_kelthuzad_guardian::DoAction(), boss_algalon_the_observer::DoAction(), boss_flame_leviathan::boss_flame_leviathanAI::DoAction(), hyjalAI::DoOverrun(), FormationMovementGenerator::DoUpdate(), CoolestFriendBaseAI::EnterEvadeMode(), ExitVehicle(), WorldSession::HandleBattlemasterHelloOpcode(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleQuestgiverHelloOpcode(), spell_thorim_arena_leap::spell_thorim_arena_leap_SpellScript::HandleScript(), npc_argent_captainAI::JustEngagedWith(), npc_arthas_stratholme::npc_arthas_stratholmeAI::JustEngagedWith(), npc_daegarn::JustSummoned(), npc_blessed_banner::JustSummoned(), spell_svalna_revive_champion::Land(), LoadFromDB(), boss_slabhide::boss_slabhideAI::MovementInform(), boss_anraphet::MovementInform(), boss_sindragosa::MovementInform(), npc_spinestalker::MovementInform(), npc_rimefang_icc::MovementInform(), npc_omen::MovementInform(), boss_lava_guard_gordoth::MovementInform(), npc_gunship_boarding_addAI::MovementInform(), npc_expedition_defender::MovementInform(), boss_ulgrax_the_devourer::MovementInform(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::MovementInform(), instance_blackfathom_deeps::instance_blackfathom_deeps_InstanceMapScript::OnCreatureCreate(), npc_melee_hover_disk::PassengerBoarded(), SmartAI::PausePath(), SmartScript::ProcessAction(), RemoveCorpse(), boss_prince_taldaram::RemovePrison(), boss_anraphet::Reset(), boss_sartharion::Reset(), WorldSession::SendListInventory(), gunship_npc_AI::SetData(), violet_hold_trashAI::SetData(), boss_hadronox::SetStep(), Battlefield::SpawnCreature(), boss_urom::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), Map::SummonCreature(), boss_victor_nefarius::SummonedCreatureDies(), Transport::SummonPassenger(), npc_madrigosa::UpdateAI(), npc_silverpine_skitterweb_matriarch::UpdateAI(), hyjal_trashAI::UpdateAI(), boss_corborus::boss_corborusAI::UpdateAI(), boss_hodir::UpdateAI(), boss_wrath_scryer_soccothrates::UpdateAI(), boss_warrior_toc5::boss_warrior_toc5AI::UpdateAI(), boss_mage_toc5::boss_mage_toc5AI::UpdateAI(), boss_shaman_toc5::boss_shaman_toc5AI::UpdateAI(), boss_hunter_toc5::boss_hunter_toc5AI::UpdateAI(), boss_rouge_toc5::boss_rouge_toc5AI::UpdateAI(), npc_millhouse_manastorm::UpdateIntroEvents(), TransportBase::UpdatePassengerPosition(), boss_headless_horseman::WaypointPathEnded(), and SmartAI::WaypointReached().

◆ SetHomePosition() [2/2]

void Creature::SetHomePosition ( Position const &  pos)
inline

Definition at line 395 of file Creature.h.

◆ SetIgnoreChaseRange()

void Creature::SetIgnoreChaseRange ( bool  ignoreChaseRange)
inline

Definition at line 387 of file Creature.h.

References CREATURE_STATIC_FLAG_6_ALWAYS_STAND_ON_TARGET.

◆ SetIgnoreFeignDeath()

void Creature::SetIgnoreFeignDeath ( bool  ignoreFeignDeath)
inline

Definition at line 353 of file Creature.h.

References CREATURE_STATIC_FLAG_2_IGNORE_FEIGN_DEATH.

Referenced by InitEntry().

◆ SetIgnoreSanctuarySpellEffect()

void Creature::SetIgnoreSanctuarySpellEffect ( bool  ignoreSanctuary)
inline

Definition at line 355 of file Creature.h.

References CREATURE_STATIC_FLAG_2_IGNORE_SANCTUARY.

◆ SetImmuneToAll() [1/3]

virtual void Unit::SetImmuneToAll ( bool  apply)
inlinevirtual

Reimplemented from Unit.

Definition at line 1059 of file Unit.h.

◆ SetImmuneToAll() [2/3]

void Creature::SetImmuneToAll ( bool  apply)
inlineoverridevirtual

Reimplemented from Unit.

Definition at line 187 of file Creature.h.

References REACT_PASSIVE, and Unit::SetImmuneToAll().

Referenced by npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), npc_claw::DamageTaken(), boss_leymor::DoAction(), npc_apothecary_genericAI::DoAction(), npc_stone_keeper::DoAction(), boss_sister_svalna::DoAction(), boss_malygos::DoAction(), boss_kazzara_the_hellforged::DoAction(), boss_azhiccar::DoAction(), boss_horAI::DoAction(), Spell::EffectSummonType(), boss_anduin_wrynn::HandleIntroduction(), npc_icc_nerubar_broodkeeper::InitializeAI(), npc_silverpine_forsaken_trooper_fenris_isle::IsSummonedBy(), npc_silverpine_fenris_keep_camera::IsSummonedBy(), boss_kazzara_the_hellforged::JustAppeared(), boss_leymor::JustAppeared(), boss_archaedas::JustAppeared(), npc_stone_keeper::JustAppeared(), npc_silverpine_mutant_bush_chicken::JustAppeared(), npc_silverpine_crowley_bloodfang_fenris_keep::JustAppeared(), npc_silverpine_generic_actor_fenris_keep::JustAppeared(), boss_azhiccar::JustAppeared(), npc_drustvar_frightend_woodsman_private::JustAppeared(), npc_sylvanas_windrunner_shadowcopy_riding::JustAppeared(), boss_sylvanas_windrunner::JustAppeared(), npc_blackhand_incarcerator::JustReachedHome(), boss_archaedas::JustReachedHome(), npc_stone_keeper::JustReachedHome(), boss_sister_svalna::MovementInform(), npc_icc_nerubar_broodkeeper::MovementInform(), npc_drakkari_invader::MovementInform(), boss_ulgrax_the_devourer::MovementInform(), conversation_drustvar_really_big_problem_complete::OnCreate(), instance_sunken_temple::instance_sunken_temple_InstanceMapScript::OnCreatureCreate(), boss_keristrasza::RemovePrison(), npc_earthen_hallshaper_custodian::Reset(), npc_earthen_guardian::Reset(), npc_vault_warder::Reset(), boss_nalorakk::Reset(), boss_horAI::Reset(), npc_quel_delar_sword::npc_quel_delar_swordAI::Reset(), boss_malygos::Reset(), instance_violet_hold::instance_violet_hold_InstanceMapScript::ResetBossEncounter(), npc_silverpine_agatha_fenris_isle::SetEventNoEscape(), npc_wyrmrest_defender::SpellHit(), boss_apothecary_hummel::UpdateAI(), npc_silverpine_agatha_fenris_isle::UpdateAI(), boss_mal_ganis::boss_mal_ganisAI::UpdateAI(), npc_quel_delar_sword::npc_quel_delar_swordAI::UpdateAI(), boss_anzu::UpdateAI(), boss_illidan_stormrage::UpdateAI(), npc_claw::UpdateAI(), boss_harbinger_skyriss::UpdateAI(), boss_kirtonos_the_herald::UpdateIntroEvents(), npc_millhouse_manastorm::UpdateIntroEvents(), boss_archaedas::UpdateOutOfCombatEvents(), and boss_nalorakk::UpdateOutOfCombatEvents().

◆ SetImmuneToAll() [3/3]

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

Definition at line 1058 of file Unit.cpp.

◆ SetImmuneToNPC() [1/3]

virtual void Unit::SetImmuneToNPC ( bool  apply)
inlinevirtual

Reimplemented from Unit.

Definition at line 1065 of file Unit.h.

◆ SetImmuneToNPC() [2/3]

◆ SetImmuneToNPC() [3/3]

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

Definition at line 1064 of file Unit.cpp.

◆ SetImmuneToPC() [1/3]

virtual void Unit::SetImmuneToPC ( bool  apply)
inlinevirtual

Reimplemented from Unit.

Definition at line 1062 of file Unit.h.

◆ SetImmuneToPC() [2/3]

void Creature::SetImmuneToPC ( bool  apply)
inlineoverridevirtual

Reimplemented from Unit.

Definition at line 190 of file Creature.h.

References REACT_PASSIVE, and Unit::SetImmuneToPC().

Referenced by AggroAllPlayers(), boss_victor_nefarius::BeginEvent(), boss_thaddius::BeginResetEncounter(), boss_hunter_toc5::boss_hunter_toc5AI::boss_hunter_toc5AI(), boss_mage_toc5::boss_mage_toc5AI::boss_mage_toc5AI(), boss_rouge_toc5::boss_rouge_toc5AI::boss_rouge_toc5AI(), boss_shaman_toc5::boss_shaman_toc5AI::boss_shaman_toc5AI(), boss_warrior_toc5::boss_warrior_toc5AI::boss_warrior_toc5AI(), npc_sparring_partner_exiles_reach::DamageTaken(), boss_drakkari_colossus::DamageTaken(), boss_deathbringer_saurfang::DamageTaken(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::DamageTaken(), npc_magister_aledis::npc_magister_aledisAI::DamageTaken(), Scripts::Pandaria::TheWanderingIsle::npc_tushui_huojin_trainee::DamageTaken(), boss_coren_direbrew::DoAction(), npc_direbrew_antagonist::DoAction(), boss_apothecary_hummel::DoAction(), npc_apothecary_genericAI::DoAction(), boss_jaraxxus::DoAction(), boss_drakkari_colossus::DoAction(), BloodPrincesBossAI::DoAction(), npc_rimefang_icc::DoAction(), boss_kelthuzad::DoAction(), npc_kelthuzad_guardian::DoAction(), boss_algalon_the_observer::DoAction(), boss_vx_001::boss_vx_001AI::DoAction(), boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), boss_thorim::boss_thorimAI::DoAction(), boss_skadi::DoAction(), npc_frozen_core::DoAction(), AdvisorBaseAI::DoAction(), boss_lord_stormsong::DoAction(), boss_soulbound_goliath::DoAction(), boss_razorscale::DoAction(), boss_palehoof::DoAction(), PalehoofMinionsBossAI::DoAction(), boss_deathbringer_saurfang::EnterEvadeMode(), boss_algalon_the_observer::EnterEvadeMode(), boss_nightbane::boss_nightbaneAI::ExecuteEvent(), boss_gormok::ExecuteEvent(), boss_jormungarAI::ExecuteEvent(), boss_icehowl::ExecuteEvent(), npc_sparring_partner_enhanced_combat_training_shaman::HandleClassEvent(), npc_sparring_partner_enhanced_combat_training_mage::HandleClassEvent(), spell_rokmora_update_interactions::HandleScript(), AdvisorBaseAI::InitializeAI(), boss_rend_blackhand::IsSummonedBy(), npc_escape_event_trash::IsSummonedBy(), boss_rokmora::JustAppeared(), boss_strawman::JustAppeared(), boss_tinhead::JustAppeared(), boss_roar::JustAppeared(), npc_sparring_partner_exiles_reach::JustAppeared(), boss_edna::JustAppeared(), boss_lord_stormsong::JustAppeared(), boss_soulbound_goliath::JustAppeared(), Scripts::Kalimdor::Durotar::npc_captive_spitescale_scout::JustDied(), boss_deathbringer_saurfang::JustEngagedWith(), boss_ignis::boss_ignis_AI::JustSummoned(), boss_shade_of_akama::MovementInform(), boss_edna::MovementInform(), npc_rimefang_icc::MovementInform(), npc_omen::MovementInform(), boss_twin_baseAI::MovementInform(), npc_sparring_partner_exiles_reach::MovementInform(), npc_sparring_partner_combat_training::MovementInform(), npc_healthy_spore::npc_healthy_sporeAI::npc_healthy_sporeAI(), npc_omen::npc_omen(), spell_aqusirr_erupting_waters_aura::OnApply(), boss_doomrel::boss_doomrelAI::OnGossipSelect(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipSelect(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::OnGossipSelect(), instance_ulduar::instance_ulduar_InstanceMapScript::OnPlayerEnter(), spell_aqusirr_erupting_waters_aura::OnRemove(), boss_coren_direbrew::Reset(), boss_doomrel::boss_doomrelAI::Reset(), boss_pyroguard_emberseer::Reset(), npc_unworthy_initiate::npc_unworthy_initiateAI::Reset(), npc_a_special_surprise::npc_a_special_surpriseAI::Reset(), boss_headless_horseman::Reset(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::Reset(), boss_general_zarithrian::Reset(), boss_jaraxxus::Reset(), BloodPrincesBossAI::Reset(), boss_professor_putricide::Reset(), boss_the_lich_king::Reset(), boss_kelthuzad::Reset(), boss_thorim::boss_thorimAI::Reset(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::Reset(), npc_venture_co_straggler::Reset(), npc_wild_wyrm::Reset(), boss_shade_of_akama::Reset(), boss_shattered_executioner::Reset(), npc_magister_aledis::npc_magister_aledisAI::Reset(), npc_sparring_partner_enhanced_combat_training_warrior::ResetWarrior(), boss_felblood_kaelthas::SetData(), boss_pyroguard_emberseer::SpellHit(), npc_infernal_attacker::npc_infernal_attackerAI::SpellHit(), npc_sparring_partner_enhanced_combat_training_priest::SpellHit(), npc_sparring_partner_enhanced_combat_training_shaman::SpellHit(), npc_sparring_partner_enhanced_combat_training_mage::SpellHit(), npc_sparring_partner_enhanced_combat_training_warlock::SpellHit(), npc_sparring_partner_enhanced_combat_training_druid::SpellHit(), npc_stalagg::SpellHit(), npc_feugen::SpellHit(), npc_venture_co_straggler::SpellHit(), npc_wild_wyrm::SpellHit(), boss_julianne::UpdateAI(), boss_felblood_kaelthas::UpdateAI(), npc_unworthy_initiate::npc_unworthy_initiateAI::UpdateAI(), npc_a_special_surprise::npc_a_special_surpriseAI::UpdateAI(), boss_kormok::UpdateAI(), npc_thalorien_dawnseeker::UpdateAI(), npc_sparring_partner_combat_training::UpdateAI(), npc_medivh_bm::UpdateAI(), Scripts::Kalimdor::Durotar::npc_captive_spitescale_scout::UpdateAI(), boss_corborus::boss_corborusAI::UpdateAI(), boss_jaraxxus::UpdateAI(), boss_deathbringer_saurfang::UpdateAI(), boss_the_lich_king::UpdateAI(), boss_kelthuzad::UpdateAI(), boss_thaddius::UpdateAI(), boss_algalon_the_observer::UpdateAI(), npc_ethereal_beacon::UpdateAI(), boss_magtheridon::UpdateAI(), npc_warden_mellichar::UpdateAI(), npc_magister_aledis::npc_magister_aledisAI::UpdateAI(), npc_tallhorn_stag::UpdateAI(), boss_ragnaros::UpdateIntroEvents(), boss_majordomo::UpdateSpecialEvents(), boss_headless_horseman::WaypointPathEnded(), npc_coilfang_ambusher::WaypointPathEnded(), and npc_coilfang_guardian::WaypointPathEnded().

◆ SetImmuneToPC() [3/3]

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

Definition at line 1061 of file Unit.cpp.

◆ SetInteractionAllowedInCombat()

void Creature::SetInteractionAllowedInCombat ( bool  interactionAllowed)
overridevirtual

◆ SetInteractionAllowedWhileHostile()

void Creature::SetInteractionAllowedWhileHostile ( bool  interactionAllowed)
overridevirtual

◆ SetInteractSpellId()

void Creature::SetInteractSpellId ( int32  interactSpellId)
inline

◆ SetLastDamagedTime()

void Creature::SetLastDamagedTime ( time_t  val)
inline

Definition at line 450 of file Creature.h.

Referenced by CreatureAI::_EnterEvadeMode(), and ScriptedAI::ForceCombatStop().

◆ SetLootId()

void Creature::SetLootId ( Optional< uint32 >  lootId)

Definition at line 1363 of file Creature.cpp.

References m_lootId.

◆ SetLootMode()

void Creature::SetLootMode ( uint16  lootMode)
inline

◆ SetMeleeDamageSchool()

void Creature::SetMeleeDamageSchool ( SpellSchools  school)
inline

◆ SetNoCallAssistance()

void Creature::SetNoCallAssistance ( bool  val)
inline

◆ SetNoSearchAssistance()

void Creature::SetNoSearchAssistance ( bool  val)
inline

◆ SetNoThreatFeedback()

void Creature::SetNoThreatFeedback ( bool  noThreatFeedback)
inline

Definition at line 465 of file Creature.h.

References CREATURE_STATIC_FLAG_3_NO_THREAT_FEEDBACK.

◆ SetObjectScale()

◆ SetOriginalEntry()

void Creature::SetOriginalEntry ( uint32  entry)
inline

Definition at line 427 of file Creature.h.

Referenced by CreateFromProto().

◆ SetPetitioner()

◆ SetReactState()

void Creature::SetReactState ( ReactStates  st)
inline

Definition at line 180 of file Creature.h.

Referenced by npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), AggroAllPlayers(), npc_announcer_toc5::npc_announcer_toc5AI::AggroAllPlayers(), boss_four_horsemen_baron::BeginFighting(), boss_four_horsemen_thane::BeginFighting(), boss_aerial_command_unit::boss_aerial_command_unitAI::boss_aerial_command_unitAI(), boss_eadric::boss_eadricAI::boss_eadricAI(), boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::boss_flame_leviathan_seatAI(), boss_garothi_worldbreaker::boss_garothi_worldbreaker(), boss_hunter_toc5::boss_hunter_toc5AI::boss_hunter_toc5AI(), boss_mage_toc5::boss_mage_toc5AI::boss_mage_toc5AI(), boss_mimiron::boss_mimironAI::boss_mimironAI(), boss_paletress::boss_paletressAI::boss_paletressAI(), boss_rouge_toc5::boss_rouge_toc5AI::boss_rouge_toc5AI(), boss_shaman_toc5::boss_shaman_toc5AI::boss_shaman_toc5AI(), boss_slabhide::boss_slabhideAI::boss_slabhideAI(), boss_twilight_halion::boss_twilight_halion(), boss_vx_001::boss_vx_001AI::boss_vx_001AI(), boss_warrior_toc5::boss_warrior_toc5AI::boss_warrior_toc5AI(), boss_ionar::CallBackSparks(), spell_the_lich_king_ice_burst_target_search::CheckTargetCount(), boss_professor_putricide::DamageTaken(), boss_the_lich_king::DamageTaken(), boss_taerar::boss_taerarAI::DamageTaken(), boss_garothi_worldbreaker::DamageTaken(), boss_amalgam_of_souls::DamageTaken(), npc_inquisitor_baleful_molten_shore::DamageTaken(), npc_felblood_kaelthas_phoenix::DamageTaken(), boss_scarlet_commander_mograine::DamageTaken(), boss_high_inquisitor_whitemane::DamageTaken(), npc_dark_fiend::DamageTaken(), boss_ayamiss::DamageTaken(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::DamageTaken(), boss_drakkari_colossus::DamageTaken(), boss_drakkari_elemental::DamageTaken(), npc_stalagg::DamageTaken(), npc_feugen::DamageTaken(), boss_algalon_the_observer::DamageTaken(), npc_feral_defender::DamageTaken(), boss_razorscale::DamageTaken(), boss_ingvar_the_plunderer::DamageTaken(), boss_ymiron::DamageTaken(), boss_essence_of_suffering::DamageTaken(), boss_essence_of_desire::DamageTaken(), AdvisorBaseAI::DamageTaken(), npc_phoenix_the_eye::DamageTaken(), boss_anduin_wrynn::DamageTaken(), boss_felblood_kaelthas::DamageTaken(), npc_vrykul_skeleton::DamageTaken(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), boss_aerial_command_unit::boss_aerial_command_unitAI::DamageTaken(), Player::DisablePetControlsOnMount(), boss_xt002::DisposeHeart(), boss_maiden_of_virtue_rtk::DoAction(), boss_shade_of_medivh::DoAction(), npc_dark_fiend::DoAction(), npc_spirit_of_the_lynx::DoAction(), boss_infinite_corruptor::boss_infinite_corruptorAI::DoAction(), boss_jaraxxus::DoAction(), boss_drakkari_colossus::DoAction(), boss_professor_putricide::DoAction(), npc_spinestalker::DoAction(), npc_rimefang_icc::DoAction(), npc_argent_captainAI::DoAction(), npc_raging_spirit::DoAction(), npc_kelthuzad_guardian::DoAction(), npc_stalagg::DoAction(), npc_feugen::DoAction(), npc_azure_ring_captain::DoAction(), npc_living_constellation::DoAction(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DoAction(), boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), npc_sif::npc_sifAI::DoAction(), boss_ingvar_the_plunderer::DoAction(), boss_skadi::DoAction(), npc_parasitic_shadowfiend::DoAction(), BroggokPrisionerBaseAI::DoAction(), boss_kelidan_the_breaker::DoAction(), boss_anduin_wrynn::DoAction(), boss_remnant_of_a_fallen_king::DoAction(), boss_horAI::DoAction(), boss_illidan_stormrage::DoAction(), npc_akama_illidan::DoAction(), npc_maiev::DoAction(), npc_pulsing_pumpkin::DoAction(), Spell::EffectSummonPet(), boss_jormungarAI::Emerge(), boss_anduin_wrynn::EndEncounter(), boss_sapphiron::EnterPhaseGround(), TrashJumpEvent::Execute(), StandUpEvent::Execute(), VileSpiritActivateEvent::Execute(), ActivateGhouls::Execute(), boss_nightbane::boss_nightbaneAI::ExecuteEvent(), boss_randolph_moloch::ExecuteEvent(), boss_gormok::ExecuteEvent(), boss_jormungarAI::ExecuteEvent(), boss_icehowl::ExecuteEvent(), ControllerBaseAI::ExecuteEvent(), boss_ymiron::ExecuteEvent(), boss_talon_king_ikiss::ExecuteEvent(), boss_xt002::ExposeHeart(), AssistanceDistractMovementGenerator::Finalize(), boss_thorim::boss_thorimAI::FinishEncounter(), boss_anduin_wrynn::ForceAssistersToAttackRemnant(), spell_ick_explosive_barrage::HandleEffectApply(), spell_ick_explosive_barrage::HandleEffectRemove(), spell_headlong_charge_trigger::HandleHit(), spell_the_curator_rtk_overload::HandleHitTarget(), npc_commandscript::HandleNpcTameCommand(), WorldSession::HandlePetActionHelper(), spell_soulbound_goliath_burning_brush::HandleScript(), npc_enslaved_soul::HandleSoulRelease(), Battlefield::HideNpc(), npc_felblood_kaelthas_phoenix::Initialize(), npc_flame_of_ragnaros::InitializeAI(), npc_cyclone::InitializeAI(), boss_entropius::InitializeAI(), npc_void_sentinel::InitializeAI(), npc_void_spawn::InitializeAI(), npc_dark_fiend::InitializeAI(), npc_darkness::InitializeAI(), npc_singularity::InitializeAI(), ShadowswordBaseAI::InitializeAI(), npc_soaring_eagle::InitializeAI(), npc_corrupted_lightning_totem::InitializeAI(), npc_fire_bomb_zulaman::InitializeAI(), npc_amanishi_hatcher::InitializeAI(), npc_towering_infernal::InitializeAI(), npc_doomfire::InitializeAI(), npc_lockmaw_augh_add::InitializeAI(), npc_lockmaw_augh_boss::InitializeAI(), npc_hive_zara_larva::InitializeAI(), npc_buru_egg::InitializeAI(), boss_hadronox::InitializeAI(), boss_drakkari_elemental::InitializeAI(), boss_sister_svalna::InitializeAI(), npc_fallout_slime::InitializeAI(), npc_kelthuzad_shadow_fissure::InitializeAI(), boss_sapphiron::InitializeAI(), npc_sapphiron_wing_buffet::InitializeAI(), npc_malformed_ooze::InitializeAI(), boss_flame_leviathan::boss_flame_leviathanAI::InitializeAI(), npc_toasty_fire::InitializeAI(), npc_icicle::InitializeAI(), npc_snowpacked_icicle_target::InitializeAI(), npc_flash_freeze_init::InitializeAI(), npc_flash_freeze_combat::InitializeAI(), npc_frost_tomb::InitializeAI(), npc_focus_fire::InitializeAI(), boss_blackheart_the_inciter_mc_dummy::InitializeAI(), npc_void_traveler::InitializeAI(), npc_enchanted_elemental::InitializeAI(), npc_tainted_elemental::InitializeAI(), npc_toxic_sporebat::InitializeAI(), boss_the_lurker_below::InitializeAI(), npc_steamrigger_mechanic::InitializeAI(), npc_frozen_core::InitializeAI(), npc_underbog_mushroom::InitializeAI(), npc_hellfire_channeler::InitializeAI(), npc_magtheridon_room::InitializeAI(), npc_lesser_shadow_fissure::InitializeAI(), npc_wild_shadow_fissure::InitializeAI(), npc_ember_of_alar::InitializeAI(), npc_flame_patch_alar::InitializeAI(), npc_flame_strike_trigger_kael::InitializeAI(), npc_phoenix_the_eye::InitializeAI(), npc_phoenix_egg_the_eye::InitializeAI(), npc_nether_vapor::InitializeAI(), InitializeReactState(), Minion::InitStats(), Guardian::InitStats(), Puppet::InitStats(), Scripts::EasternKingdoms::Gilneas::Chapter1::npc_frightened_citizen::IsSummonedBy(), npc_amalgam_of_souls_soul_echoes_stalker::IsSummonedBy(), npc_silverpine_forsaken_trooper_fenris_isle::IsSummonedBy(), npc_silverpine_fenris_keep_camera::IsSummonedBy(), npc_akilzon_amani_kidnapper::IsSummonedBy(), npc_raging_ghoul::npc_raging_ghoulAI::IsSummonedBy(), npc_risen_witch_doctor::npc_risen_witch_doctorAI::IsSummonedBy(), npc_amalgam_of_souls_restless_soul::JustAppeared(), npc_ymiron_the_fallen_king_risen_warrior::JustAppeared(), boss_big_bad_wolf::JustAppeared(), npc_void_sentinel::JustAppeared(), npc_void_spawn::JustAppeared(), npc_dark_fiend::JustAppeared(), npc_silverpine_lord_darius_crowley_exsanguinate::JustAppeared(), npc_silverpine_packleader_ivar_bloodfang_exsanguinate::JustAppeared(), npc_silverpine_orc_sea_pup::JustAppeared(), npc_silverpine_webbed_victim::JustAppeared(), npc_silverpine_orc_sea_dog::JustAppeared(), npc_silverpine_agatha_fenris_isle::JustAppeared(), npc_silverpine_crowley_bloodfang_fenris_keep::JustAppeared(), npc_silverpine_generic_actor_fenris_keep::JustAppeared(), npc_captain_garrick_q55879::JustAppeared(), npc_towering_infernal::JustAppeared(), boss_aeonus::JustAppeared(), Scripts::Kalimdor::Durotar::npc_durotar_tiki_target::JustAppeared(), npc_azhiccar_frenzied_mite::JustAppeared(), npc_brood_of_anzu::JustAppeared(), npc_maiev::JustAppeared(), boss_broggok::JustAppeared(), BroggokPrisionerBaseAI::JustAppeared(), boss_kelidan_the_breaker::JustAppeared(), npc_ember_of_alar::JustAppeared(), boss_kaelthas::JustAppeared(), npc_phoenix_the_eye::JustAppeared(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro_hawk::JustAppeared(), npc_sylvanas_windrunner_shadowcopy_riding::JustAppeared(), npc_anduin_wrynn_empty_vessel::JustAppeared(), npc_anduin_wrynn_lost_soul::JustAppeared(), boss_remnant_of_a_fallen_king::JustAppeared(), npc_anduin_wrynn_grim_reflection::JustAppeared(), npc_anduin_wrynn_sylvanas::JustAppeared(), npc_anduin_wrynn_jaina::JustAppeared(), npc_anduin_wrynn_uther::JustAppeared(), npc_animated_gold::JustAppeared(), npc_sporecaller_zancha_musashitake::JustAppeared(), boss_freya::boss_freyaAI::JustDied(), npc_lockmaw_augh_boss::JustEngagedWith(), npc_living_mojo::JustEngagedWith(), boss_garothi_worldbreaker::JustEngagedWith(), boss_ymiron_the_fallen_king::JustEngagedWith(), boss_muru::JustEngagedWith(), boss_ayamiss::JustEngagedWith(), boss_krik_thir::JustEngagedWith(), npc_kelthuzad_minionAI::JustEngagedWith(), boss_flame_leviathan::boss_flame_leviathanAI::JustEngagedWith(), boss_alar::JustEngagedWith(), boss_headless_horseman::JustReachedHome(), boss_ayamiss::JustReachedHome(), boss_blood_queen_lana_thel::JustReachedHome(), boss_sindragosa::JustReachedHome(), boss_sister_svalna::JustReachedHome(), BroggokPrisionerBaseAI::JustReachedHome(), boss_kelidan_the_breaker::JustReachedHome(), boss_garothi_worldbreaker::JustSummoned(), boss_corborus::boss_corborusAI::JustSummoned(), boss_volazj::JustSummoned(), npc_announcer_toc5::npc_announcer_toc5AI::JustSummoned(), boss_bronjahm::JustSummoned(), boss_prince_valanar_icc::JustSummoned(), boss_professor_putricide::JustSummoned(), npc_frostwing_ymirjar_vrykul::JustSummoned(), boss_the_lich_king::JustSummoned(), boss_eregos::JustSummoned(), boss_algalon_the_observer::JustSummoned(), boss_ignis::boss_ignis_AI::JustSummoned(), boss_kologarn::boss_kologarnAI::JustSummoned(), boss_thorim::boss_thorimAI::JustSummoned(), boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::JustSummoned(), boss_sara::boss_saraAI::JustSummoned(), npc_void_sentry::JustSummoned(), npc_blessed_banner::JustSummoned(), npc_illidan_db_target::JustSummoned(), boss_anduin_wrynn::JustSummoned(), boss_remnant_of_a_fallen_king::JustSummoned(), boss_anubarak_trial::JustSummoned(), Pet::LoadPetFromDB(), boss_high_inquisitor_whitemane::MograineResurrected(), boss_doomwalker_anniversary::MovementInform(), boss_onyxia::MovementInform(), boss_ayamiss::MovementInform(), boss_high_priestess_azil::boss_high_priestess_azilAI::MovementInform(), boss_slabhide::boss_slabhideAI::MovementInform(), boss_blood_queen_lana_thel::MovementInform(), npc_valkyr_shadowguard::MovementInform(), boss_malygos::MovementInform(), boss_doomwalker::MovementInform(), boss_vazruden_the_herald::MovementInform(), boss_alar::MovementInform(), boss_saviana_ragefire::MovementInform(), boss_sindragosa::MovementInform(), npc_spinestalker::MovementInform(), npc_rimefang_icc::MovementInform(), npc_inquisitor_baleful_molten_shore::MovementInform(), ShadowswordBaseAI::MovementInform(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::MovementInform(), boss_jedoga_shadowseeker::MovementInform(), boss_icehowl::MovementInform(), boss_twin_baseAI::MovementInform(), gunship_npc_AI::MovementInform(), npc_gunship_boarding_addAI::MovementInform(), boss_razorscale::MovementInform(), npc_akama_illidan::MovementInform(), boss_warlord_kalithresh::MovementInform(), boss_hadronox::MovementInform(), boss_telash_greywing::MovementInform(), boss_armsmaster_harlan::MovementInform(), boss_flame_leviathan::boss_flame_leviathanAI::MovementInform(), npc_stalagg::myCoil(), npc_feugen::myCoil(), npc_announcer_toc5::npc_announcer_toc5AI::npc_announcer_toc5AI(), npc_arcane_overload::npc_arcane_overload(), npc_argent_soldier::npc_argent_soldierAI::npc_argent_soldierAI(), npc_caster_hover_disk::npc_caster_hover_disk(), npc_chained_spirit::npc_chained_spirit(), npc_curator_astral_flare::npc_curator_astral_flareAI::npc_curator_astral_flareAI(), npc_expedition_trapper::npc_expedition_trapper(), npc_eye_of_acherus::npc_eye_of_acherus(), npc_gunship_mage::npc_gunship_mage(), npc_healthy_spore::npc_healthy_sporeAI::npc_healthy_sporeAI(), npc_ichor_globule::npc_ichor_globule(), npc_iron_construct::npc_iron_constructAI::npc_iron_constructAI(), npc_iron_roots::npc_iron_rootsAI::npc_iron_rootsAI(), npc_living_mojo::npc_living_mojo(), npc_melee_hover_disk::npc_melee_hover_disk(), npc_mimiron_computer::npc_mimiron_computerAI::npc_mimiron_computerAI(), npc_mimiron_emergency_fire_bot::npc_mimiron_emergency_fire_botAI::npc_mimiron_emergency_fire_botAI(), npc_mimirons_inferno::npc_mimirons_infernoAI::npc_mimirons_infernoAI(), npc_pool_of_tar::npc_pool_of_tarAI::npc_pool_of_tarAI(), npc_rock_borer::npc_rock_borerAI::npc_rock_borerAI(), npc_saronite_vapors::npc_saronite_vaporsAI::npc_saronite_vaporsAI(), npc_scarlet_ghoul::npc_scarlet_ghoul(), npc_sun_beam::npc_sun_beamAI::npc_sun_beamAI(), npc_twilight_volunteer::npc_twilight_volunteer(), npc_unstable_sun_beam::npc_unstable_sun_beamAI::npc_unstable_sun_beamAI(), npc_unworthy_initiate::npc_unworthy_initiateAI::npc_unworthy_initiateAI(), npc_void_sentry::npc_void_sentry(), boss_cragmaw_the_infested::OnChannelFinished(), conversation_drustvar_really_big_problem_complete::OnCreate(), instance_hyjal::instance_mount_hyjal_InstanceMapScript::OnCreatureCreate(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::OnCreatureCreate(), instance_stonecore::instance_stonecore_InstanceScript::OnCreatureCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), instance_ulduar::instance_ulduar_InstanceMapScript::OnCreatureCreate(), npc_spirit_of_the_lynx::OnHealthDepleted(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::OnHealthDepleted(), spell_soulbound_goliath_burning_brush_aura::OnRemove(), npc_fel_lord_caza_cryptic_hollow::OnSpellCast(), boss_talon_king_ikiss::OnSpellCast(), boss_the_lurker_below::OnSpellStart(), spell_priestess_alun_za_corrupt::OnStackChange(), boss_ragnaros::Reset(), npc_curator_astral_flare::npc_curator_astral_flareAI::Reset(), boss_midnight::boss_midnightAI::Reset(), npc_pulsing_pumpkin::Reset(), boss_scarlet_commander_mograine::Reset(), boss_high_inquisitor_whitemane::Reset(), npc_mortimer_moloch::Reset(), npc_redridge_subdued_canyon_ettin::Reset(), npc_silverpine_worgen_renegade::Reset(), boss_halazzi::Reset(), npc_troll_volunteer::Reset(), npc_egg_pile::npc_egg_pileAI::Reset(), boss_onyxia::Reset(), boss_buru::Reset(), boss_eye_of_cthun::eye_of_cthunAI::Reset(), boss_high_priestess_azil::boss_high_priestess_azilAI::Reset(), boss_ozruk::boss_ozrukAI::Reset(), boss_slabhide::boss_slabhideAI::Reset(), npc_amanitar_mushrooms::Reset(), boss_jedoga_shadowseeker::Reset(), boss_krik_thir::Reset(), npc_flame_tsunami::Reset(), npc_baltharus_the_warborn_clone::Reset(), npc_onyx_flamecaller::Reset(), boss_saviana_ragefire::Reset(), npc_frost_sphere::Reset(), boss_jaraxxus::Reset(), npc_legion_flame::Reset(), npc_infernal_volcano::Reset(), npc_nether_portal::Reset(), boss_northrend_beastsAI::Reset(), npc_beasts_combat_stalker::Reset(), boss_twin_baseAI::Reset(), npc_unleashed_ballAI::Reset(), boss_lich_king_toc::Reset(), npc_open_portal_target_toc::Reset(), npc_fizzlebang_toc::Reset(), boss_devourer_of_souls::Reset(), boss_horAI::Reset(), boss_krick::Reset(), boss_tyrannus::Reset(), boss_rimefang::Reset(), boss_drakkari_colossus::Reset(), npc_kinetic_bomb::Reset(), npc_dark_nucleus::Reset(), npc_zafod_boombox::Reset(), npc_vengeful_shade::Reset(), boss_professor_putricide::Reset(), npc_ice_tomb::Reset(), boss_sister_svalna::Reset(), npc_crok_scourgebane::Reset(), npc_impaling_spear::Reset(), boss_the_lich_king::Reset(), npc_raging_spirit::Reset(), npc_valkyr_shadowguard::Reset(), boss_valithria_dreamwalker::Reset(), npc_green_dragon_combat_trigger::Reset(), npc_the_lich_king_controller::Reset(), boss_four_horsemen_baseAI::Reset(), boss_gluth::Reset(), boss_gothik::Reset(), boss_heigan::Reset(), boss_kelthuzad::Reset(), boss_noth::Reset(), boss_sapphiron::Reset(), npc_sapphiron_blizzard::Reset(), boss_malygos::Reset(), boss_magus_telestra::Reset(), boss_urom::Reset(), npc_azure_ring_captain::Reset(), boss_algalon_the_observer::Reset(), npc_black_hole::Reset(), npc_feral_defender::Reset(), npc_swarming_guardian::Reset(), boss_flame_leviathan::boss_flame_leviathanAI::Reset(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::Reset(), npc_mimiron_magnetic_core::Reset(), npc_expedition_engineer::Reset(), npc_razorscale_spawner::Reset(), npc_darkrune_watcher::Reset(), npc_darkrune_guardian::Reset(), npc_darkrune_sentinel::Reset(), npc_razorscale_devouring_flame::Reset(), boss_thorim::boss_thorimAI::Reset(), boss_xt002::Reset(), npc_scrapbot::Reset(), npc_pummeller::Reset(), npc_boombot::Reset(), boss_sara::boss_saraAI::Reset(), npc_yogg_saron_keeper::npc_yogg_saron_keeperAI::Reset(), npc_laughing_skull::npc_laughing_skullAI::Reset(), boss_ingvar_the_plunderer::Reset(), ControllerBaseAI::Reset(), boss_skadi::Reset(), npc_grauf::Reset(), boss_ymiron::Reset(), npc_venture_co_straggler::Reset(), boss_anzu::Reset(), boss_talon_king_ikiss::Reset(), boss_blackheart_the_inciter::Reset(), npc_parasitic_shadowfiend::Reset(), npc_flame_of_azzinoth::Reset(), npc_illidan_generic_fire::Reset(), boss_reliquary_of_souls::Reset(), npc_enslaved_soul::Reset(), npc_reliquary_combat_trigger::Reset(), boss_leotheras_the_blind::Reset(), boss_hungarfen::Reset(), boss_swamplord_muselek::Reset(), npc_warden_mellichar::Reset(), boss_high_astromancer_solarian::Reset(), npc_anduin_wrynn_anduin_hope::Reset(), emerald_dragonAI::Reset(), boss_thaddius::ResetEncounter(), npc_hadronox_crusherPackAI::SetData(), npc_gatewatcher_petAI::SetData(), npc_zombie_chow::SetData(), gunship_npc_AI::SetData(), npc_gunship_boarding_addAI::SetData(), boss_blackheart_the_inciter::SetData(), npc_silverpine_agatha_fenris_isle::SetEventNoEscape(), BfGraveyard::SetSpirit(), boss_hadronox::SetStep(), Battlefield::ShowNpc(), boss_attumen::boss_attumenAI::SpellHit(), boss_scarlet_commander_mograine::SpellHit(), npc_captain_garrick_q55879::SpellHit(), npc_warlord_grimaxe_q59942::SpellHit(), npc_hive_zara_swarmer::SpellHit(), npc_cult_fanatic::SpellHit(), npc_cult_adherent::SpellHit(), npc_sif::npc_sifAI::SpellHit(), npc_warp_splinter_sapling::SpellHit(), npc_sporecaller_zancha_musashitake::SpellHit(), npc_venture_co_straggler::SpellHit(), npc_pet_dk_ebon_gargoyle::SpellHit(), npc_putricide_oozeAI::SpellHitTarget(), spell_putricide_ooze_channel::StartAttack(), boss_anduin_wrynn::StartIntermission(), boss_headless_horseman::StartPhase(), boss_nightbane::boss_nightbaneAI::StartPhaseFly(), boss_jormungarAI::Submerge(), boss_victor_nefarius::SummonedCreatureDies(), boss_aqusirr::ToggleSplit(), boss_garothi_worldbreaker::UpdateAI(), boss_guarm::UpdateAI(), npc_fel_lord_caza_cryptic_hollow::UpdateAI(), boss_telash_greywing::UpdateAI(), boss_argaloth::UpdateAI(), boss_ragnaros::UpdateAI(), boss_julianne::UpdateAI(), boss_romulo::UpdateAI(), boss_felblood_kaelthas::UpdateAI(), npc_felblood_kaelthas_phoenix::UpdateAI(), boss_maiden_of_virtue_rtk::UpdateAI(), boss_shade_of_medivh::UpdateAI(), boss_the_curator_rtk::UpdateAI(), npc_unworthy_initiate::npc_unworthy_initiateAI::UpdateAI(), boss_headless_horseman::UpdateAI(), boss_armsmaster_harlan::UpdateAI(), boss_dathrohan_balnazzar::UpdateAI(), npc_madrigosa::UpdateAI(), boss_sacrolash::UpdateAI(), boss_alythess::UpdateAI(), boss_kalecgos::UpdateAI(), boss_entropius::UpdateAI(), npc_silverpine_agatha_fenris_isle::UpdateAI(), boss_halazzi::UpdateAI(), boss_janalai::UpdateAI(), boss_doomwalker_anniversary::UpdateAI(), boss_archimonde::UpdateAI(), boss_general_husam::UpdateAI(), boss_lockmaw::UpdateAI(), npc_lockmaw_augh_add::UpdateAI(), boss_onyxia::UpdateAI(), boss_buru::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), boss_corborus::boss_corborusAI::UpdateAI(), npc_rock_borer::npc_rock_borerAI::UpdateAI(), boss_high_priestess_azil::boss_high_priestess_azilAI::UpdateAI(), boss_ozruk::boss_ozrukAI::UpdateAI(), boss_slabhide::boss_slabhideAI::UpdateAI(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_saviana_ragefire::UpdateAI(), boss_jaraxxus::UpdateAI(), boss_devourer_of_souls::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), boss_tyrannus::UpdateAI(), boss_blood_queen_lana_thel::UpdateAI(), boss_professor_putricide::UpdateAI(), boss_sindragosa::UpdateAI(), npc_rimefang_icc::UpdateAI(), boss_sister_svalna::UpdateAI(), boss_the_lich_king::UpdateAI(), npc_raging_spirit::UpdateAI(), boss_gluth::UpdateAI(), boss_gothik::UpdateAI(), boss_heigan::UpdateAI(), boss_kelthuzad::UpdateAI(), boss_noth::UpdateAI(), boss_sapphiron::UpdateAI(), boss_thaddius::UpdateAI(), boss_malygos::UpdateAI(), boss_magus_telestra::UpdateAI(), boss_urom::UpdateAI(), boss_volkhan::UpdateAI(), boss_algalon_the_observer::UpdateAI(), npc_feral_defender::UpdateAI(), boss_hodir::UpdateAI(), boss_razorscale::UpdateAI(), npc_darkrune_watcher::UpdateAI(), npc_darkrune_guardian::UpdateAI(), npc_darkrune_sentinel::UpdateAI(), boss_thorim::boss_thorimAI::UpdateAI(), boss_xt002::UpdateAI(), npc_vrykul_skeleton::UpdateAI(), boss_svala::UpdateAI(), npc_ethereal_beacon::UpdateAI(), boss_anzu::UpdateAI(), boss_illidan_stormrage::UpdateAI(), npc_akama_illidan::UpdateAI(), npc_flame_of_azzinoth::UpdateAI(), npc_maiev::UpdateAI(), boss_doomwalker::UpdateAI(), boss_lady_vashj::UpdateAI(), boss_leotheras_the_blind::UpdateAI(), boss_the_lurker_below::UpdateAI(), boss_warlord_kalithresh::UpdateAI(), boss_swamplord_muselek::UpdateAI(), boss_vazruden_the_herald::UpdateAI(), boss_magtheridon::UpdateAI(), boss_laj::UpdateAI(), boss_alar::UpdateAI(), boss_high_astromancer_solarian::UpdateAI(), boss_kaelthas::UpdateAI(), boss_remnant_of_a_fallen_king::UpdateAI(), boss_taerar::boss_taerarAI::UpdateAI(), npc_priestess_alun_za_spirit_of_gold::UpdateAI(), boss_cragmaw_the_infested::UpdateAI(), npc_spark_of_ionar::UpdateAI(), npc_brann_hos::UpdateEscortAI(), boss_broggok::UpdateOutOfCombatEvents(), boss_vazruden_the_herald::UpdateSpecialEvents(), boss_guarm::WaypointPathEnded(), boss_headless_horseman::WaypointPathEnded(), npc_brood_of_anzu::WaypointPathEnded(), and violet_hold_trashAI::WaypointReached().

◆ SetRegenerateHealth()

◆ SetRespawnCompatibilityMode()

void Creature::SetRespawnCompatibilityMode ( bool  mode = true)
inline

Definition at line 430 of file Creature.h.

Referenced by Create(), and npc_thrall_old_hillsbrad::InitializeAI().

◆ SetRespawnDelay()

void Creature::SetRespawnDelay ( uint32  delay)
inline

◆ SetRespawnTime()

void Creature::SetRespawnTime ( uint32  respawn)

◆ SetRestoreStateOnEvade()

void Creature::SetRestoreStateOnEvade ( bool  restoreOnEvade)
inline

Definition at line 228 of file Creature.h.

References CREATURE_STATIC_FLAG_5_NO_LEAVE_COMBAT_STATE_RESTORE.

◆ SetScriptStringId()

◆ SetSessile()

◆ SetSpawnHealth()

◆ SetSpellFocus()

◆ SetTapList()

void Creature::SetTapList ( GuidUnorderedSet  tapList)
inline

◆ SetTappedBy()

◆ SetTarget()

◆ SetTextRepeatId()

void Creature::SetTextRepeatId ( uint8  textGroup,
uint8  id 
)

◆ SetTrainerId()

void Creature::SetTrainerId ( Optional< uint32 >  trainerId)

Definition at line 3945 of file Creature.cpp.

References _trainerId.

◆ SetTransportHomePosition() [1/2]

void Creature::SetTransportHomePosition ( float  x,
float  y,
float  z,
float  o 
)
inline

◆ SetTransportHomePosition() [2/2]

void Creature::SetTransportHomePosition ( Position const &  pos)
inline

Definition at line 400 of file Creature.h.

◆ SetTreatAsRaidUnit()

void Creature::SetTreatAsRaidUnit ( bool  treatAsRaidUnit)
inline

Definition at line 243 of file Creature.h.

References CREATURE_STATIC_FLAG_4_TREAT_AS_RAID_UNIT_FOR_HELPFUL_SPELLS.

Referenced by InitEntry().

◆ SetUnkillable()

◆ SetVendor()

◆ SetWanderDistance()

void Creature::SetWanderDistance ( float  dist)
inline

Definition at line 371 of file Creature.h.

Referenced by npc_commandscript::HandleNpcSetWanderDistanceCommand().

◆ ShouldFakeDamageFrom()

bool Creature::ShouldFakeDamageFrom ( Unit *  attacker)

◆ SignalFormationMovement()

void Creature::SignalFormationMovement ( )

◆ StartDefaultCombatMovement()

◆ StartPickPocketRefillTimer()

void Creature::StartPickPocketRefillTimer ( )

◆ SummonGraveyardTeleporter()

◆ Update()

void Creature::Update ( uint32  time)
overridevirtual

Reimplemented from Unit.

Reimplemented in TempSummon, Pet, Totem, and Puppet.

Definition at line 750 of file Creature.cpp.

References _spellFocusInfo, AI(), Unit::AIUpdateTick(), ALIVE, CanNotReachTarget(), CastSpell, CreatureAI::CheckInRoom(), CONFIG_REGEN_HP_CANNOT_REACH_TARGET_IN_RAID, CORPSE, CREATURE_NOPATH_EVADE_TIME, CREATURE_REGEN_INTERVAL, DEAD, Unit::DoMeleeAttackIfReady(), GetDebugInfo(), Object::GetEntry(), GameTime::GetGameTime(), BaseEntity::GetGUID(), Map::GetLinkedRespawnTime(), WorldObject::GetMap(), WorldLocation::GetMapId(), Unit::GetPowerType(), Unit::GetThreatManager(), SpawnGroupTemplateData::groupId, Unit::IsAIEnabled(), Unit::IsAlive(), Unit::IsAreaSpiritHealer(), Unit::IsAreaSpiritHealerIndividual(), IsEngaged(), IsInEvadeMode(), Unit::IsPolymorphed(), JUST_DIED, JUST_RESPAWNED, CreatureAI::JustAppeared(), m_boundaryCheckTime, m_cannotReachTimer, m_corpseRemoveTime, m_creatureData, Unit::m_deathState, m_loot, m_personalLoot, Unit::m_regenTimer, m_respawnCompatibilityMode, m_respawnTime, m_spawnId, m_triggerJustAppeared, Unit::m_vehicleKit, MINUTE, NoPath, POWER_ENERGY, POWER_MANA, ReacquireSpellFocusTarget(), Regenerate(), RegenerateHealth(), RemoveCorpse(), Vehicle::Reset(), Respawn(), SaveRespawnTime(), SetRespawnTime(), sObjectMgr, SpawnMetadata::spawnGroupData, SPELL_SPIRIT_HEAL_CHANNEL_AOE, sWorld, TC_LOG_DEBUG, TC_LOG_ERROR, Position::ToString(), ThreatManager::Update(), Unit::Update(), UpdateMovementCapabilities(), urand(), and WEEK.

Referenced by TempSummon::Update(), Pet::Update(), Totem::Update(), and Puppet::Update().

◆ UpdateAllStats()

bool Creature::UpdateAllStats ( )
overridevirtual

Implements Unit.

Reimplemented in Guardian, and Totem.

Definition at line 981 of file StatSystem.cpp.

References GetPowerTypes(), Unit::UpdateAllResistances(), UpdateAttackPowerAndDamage(), UpdateMaxHealth(), and UpdateMaxPower().

Referenced by UpdateEntry().

◆ UpdateArmor()

void Creature::UpdateArmor ( )
overridevirtual

Implements Unit.

Reimplemented in Guardian, and Totem.

Definition at line 995 of file StatSystem.cpp.

References BASE_VALUE, Unit::GetFlatModifierValue(), Unit::GetTotalAuraModValue(), Unit::SetArmor(), and UNIT_MOD_ARMOR.

◆ UpdateAttackPowerAndDamage()

◆ UpdateCurrentWaypointInfo()

void Creature::UpdateCurrentWaypointInfo ( uint32  nodeId,
uint32  pathId 
)
inline

Definition at line 409 of file Creature.h.

Referenced by wp_commandscript::HandleWpUnLoadCommand().

◆ UpdateEntry()

bool Creature::UpdateEntry ( uint32  entry,
CreatureData const *  data = nullptr,
bool  updateLevel = true 
)

Definition at line 591 of file Creature.cpp.

References _regenerateHealth, _staticFlags, ALLIANCE, Unit::ApplySpellImmune(), AsUnderlyingType(), BASE_ATTACK, BASE_VALUE, CreatureTemplate::BaseAttackTime, ObjectMgr::ChooseCreatureFlags(), CREATURE_FLAG_EXTRA_CANNOT_ENTER_COMBAT, CREATURE_FLAG_EXTRA_NO_TAUNT, CREATURE_FLAG_EXTRA_USE_OFFHAND_ATTACK, CREATURE_FLAG_EXTRA_WORLDEVENT, CreatureTemplate::CreatureImmunitiesId, CreatureTemplate::dmgschool, ThreatManager::EvaluateSuppressed(), CreatureTemplate::faction, FACTION_MASK_ALLIANCE, FACTION_TEMPLATE_FLAG_PVP, CreatureTemplate::flags_extra, WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), GetCreatureAddon(), GetCreatureTemplate(), Unit::GetHealth(), WorldLocation::GetMapId(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetScriptId(), Unit::GetThreatManager(), Unit::HasNpcFlag(), HORDE, IMMUNITY_EFFECT, IMMUNITY_STATE, InitEntry(), InitializeInteractSpellId(), InitializeMovementCapabilities(), InitializeReactState(), Unit::IsGuardian(), Unit::IsInCombat(), Unit::IsTaxi(), IsTrigger(), Unit::IsVehicle(), Unit::IsVendor(), WorldObject::LastUsedScriptID, LoadCreaturesAddon(), LoadCreaturesSparringHealth(), LoadTemplateImmunities(), m_stringIds, Unit::m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), OFF_ATTACK, CreatureTemplate::RangeAttackTime, RANGED_ATTACK, CreatureTemplate::RegenHealth, Object::ReplaceAllDynamicFlags(), Unit::ReplaceAllNpcFlags(), Unit::ReplaceAllNpcFlags2(), Unit::ReplaceAllUnitFlags(), Unit::ReplaceAllUnitFlags2(), Unit::ReplaceAllUnitFlags3(), CreatureTemplate::resistance, SelectLevel(), Unit::SetBaseAttackTime(), SetCanDualWield(), Unit::SetCanModifyStats(), Unit::SetFaction(), Unit::SetHealth(), Unit::SetIsCombatDisallowed(), SetMeleeDamageSchool(), SetPetitioner(), Unit::SetPvP(), Unit::SetSheath(), Unit::SetStatFlatModifier(), Unit::SetUninteractible(), BaseEntity::SetUpdateFieldValue(), SetVendor(), sFactionTemplateStore, sGameEventMgr, SHEATH_STATE_MELEE, sObjectMgr, SpawnMetadata::spawnTrackingQuestObjectives, SPELL_AURA_MOD_TAUNT, SPELL_EFFECT_ATTACK_ME, SPELL_SCHOOL_ARCANE, SPELL_SCHOOL_FIRE, SPELL_SCHOOL_FROST, SPELL_SCHOOL_HOLY, SPELL_SCHOOL_NATURE, SPELL_SCHOOL_SHADOW, UF::UnitData::StateWorldEffectsQuestObjectiveID, CreatureTemplate::StringId, UF::UnitData::TaxiNodesID, Template, UNIT_DYNFLAG_NONE, UNIT_FLAG_IN_COMBAT, UNIT_MOD_RESISTANCE_ARCANE, UNIT_MOD_RESISTANCE_FIRE, UNIT_MOD_RESISTANCE_FROST, UNIT_MOD_RESISTANCE_HOLY, UNIT_MOD_RESISTANCE_NATURE, UNIT_MOD_RESISTANCE_SHADOW, UNIT_NPC_FLAG_PETITIONER, UNIT_NPC_FLAG_SPELLCLICK, UNIT_NPC_FLAG_VENDOR_MASK, UpdateAllStats(), and UpdateLevelDependantStats().

Referenced by CreateFromProto(), boss_ingvar_the_plunderer::DoAction(), npc_pulsing_pumpkin::DoAction(), boss_halazzi::EnterEvadeMode(), npc_commandscript::HandleNpcSetEntryCommand(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::OnCreatureCreate(), boss_dathrohan_balnazzar::Reset(), boss_ingvar_the_plunderer::Reset(), npc_phase_hunter::npc_phase_hunterAI::Reset(), Respawn(), npc_cult_fanatic::SpellHit(), npc_cult_adherent::SpellHit(), npc_argent_captainAI::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_nether_drake::npc_nether_drakeAI::SpellHit(), npc_haiphoon::SpellHitTarget(), boss_victor_nefarius::SummonedCreatureDies(), boss_dathrohan_balnazzar::UpdateAI(), boss_halazzi::UpdateAI(), boss_svala::UpdateAI(), npc_claw::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), instance_violet_hold::instance_violet_hold_InstanceMapScript::UpdateKilledBoss(), and boss_vazruden_the_herald::UpdateSpecialEvents().

◆ UpdateFloatingMovementFlags()

◆ UpdateLevelDependantStats()

◆ UpdateMaxHealth()

void Creature::UpdateMaxHealth ( )
overridevirtual

Implements Unit.

Reimplemented in Guardian, and Totem.

Definition at line 1002 of file StatSystem.cpp.

References Unit::GetTotalAuraModValue(), Unit::SetMaxHealth(), and UNIT_MOD_HEALTH.

Referenced by UpdateAllStats().

◆ UpdateMaxPower()

void Creature::UpdateMaxPower ( Powers  power)
overridevirtual

◆ UpdateMovementCapabilities()

◆ UpdateNearbyPlayersInteractions()

void Creature::UpdateNearbyPlayersInteractions ( )
overridevirtual

◆ UpdateSessileMovementFlags()

◆ UpdateStats()

bool Creature::UpdateStats ( Stats  stat)
overridevirtual

Implements Unit.

Reimplemented in Guardian, and Totem.

Definition at line 976 of file StatSystem.cpp.

◆ UpdateVendorItemCurrentCount()

uint32 Creature::UpdateVendorItemCurrentCount ( VendorItem const *  vItem,
uint32  used_count 
)

Member Data Documentation

◆ _aggroGracePeriodExpired

bool Creature::_aggroGracePeriodExpired
private

Definition at line 595 of file Creature.h.

Referenced by AtEngage(), Heartbeat(), and Respawn().

◆ _creatureImmunitiesId

int32 Creature::_creatureImmunitiesId
private

Definition at line 618 of file Creature.h.

Referenced by LoadTemplateImmunities().

◆ _currentWaypointNodeInfo

std::pair<uint32, uint32> Creature::_currentWaypointNodeInfo
private

Definition at line 588 of file Creature.h.

◆ _defaultMountDisplayIdOverride

Optional<uint32> Creature::_defaultMountDisplayIdOverride
private

Definition at line 617 of file Creature.h.

Referenced by LoadCreaturesAddon(), and SetDefaultMount().

◆ _gossipMenuId

uint32 Creature::_gossipMenuId
private

Definition at line 619 of file Creature.h.

Referenced by GetGossipMenuId(), and SetGossipMenuId().

◆ _lastDamagedTime

time_t Creature::_lastDamagedTime
private

Definition at line 607 of file Creature.h.

◆ _pickpocketLootRestore

time_t Creature::_pickpocketLootRestore
protected

Timers.

Definition at line 536 of file Creature.h.

Referenced by CanGeneratePickPocketLoot(), and StartPickPocketRefillTimer().

◆ _regenerateHealth

bool Creature::_regenerateHealth
private

Definition at line 615 of file Creature.h.

Referenced by SetSpawnHealth(), and UpdateEntry().

◆ _sparringHealthPct

float Creature::_sparringHealthPct
private

Definition at line 621 of file Creature.h.

Referenced by LoadCreaturesSparringHealth(), and OverrideSparringHealthPct().

◆ [struct]

◆ _staticFlags

◆ _trainerId

Optional<uint32> Creature::_trainerId
private

Definition at line 620 of file Creature.h.

Referenced by GetTrainerId(), and SetTrainerId().

◆ _waypointPathId

uint32 Creature::_waypointPathId
private

Definition at line 587 of file Creature.h.

Referenced by LoadCreaturesAddon().

◆ Delay

uint32 Creature::Delay = 0

Definition at line 602 of file Creature.h.

◆ DisableReputationGain

bool Creature::DisableReputationGain
protected

Definition at line 566 of file Creature.h.

Referenced by Creature().

◆ m_AlreadyCallAssistance

bool Creature::m_AlreadyCallAssistance
protected

Definition at line 553 of file Creature.h.

Referenced by CallAssistance().

◆ m_AlreadySearchedAssistance

bool Creature::m_AlreadySearchedAssistance
protected

Definition at line 554 of file Creature.h.

◆ m_baseAttackPower

uint32 Creature::m_baseAttackPower
protected

Definition at line 559 of file Creature.h.

Referenced by UpdateAttackPowerAndDamage(), and UpdateLevelDependantStats().

◆ m_baseRangedAttackPower

uint32 Creature::m_baseRangedAttackPower
protected

Definition at line 560 of file Creature.h.

Referenced by UpdateAttackPowerAndDamage(), and UpdateLevelDependantStats().

◆ m_boundaryCheckTime

uint32 Creature::m_boundaryCheckTime
protected

Definition at line 543 of file Creature.h.

Referenced by Update().

◆ m_cannotReachTarget

bool Creature::m_cannotReachTarget
protected

Definition at line 555 of file Creature.h.

Referenced by SetCannotReachTarget().

◆ m_cannotReachTimer

uint32 Creature::m_cannotReachTimer
protected

Definition at line 556 of file Creature.h.

Referenced by SetCannotReachTarget(), and Update().

◆ m_CombatDistance

◆ m_corpseDelay

uint32 Creature::m_corpseDelay
protected

Definition at line 540 of file Creature.h.

Referenced by AllLootRemovedFromCorpse(), Create(), and setDeathState().

◆ m_corpseRemoveTime

time_t Creature::m_corpseRemoveTime
protected

◆ m_creatureData

CreatureData const* Creature::m_creatureData
protected

Definition at line 569 of file Creature.h.

Referenced by GetRespawnPosition(), LoadFromDB(), SaveRespawnTime(), SetSpawnHealth(), and Update().

◆ m_creatureDifficulty

CreatureDifficulty const* Creature::m_creatureDifficulty
protected

Definition at line 570 of file Creature.h.

Referenced by InitEntry().

◆ m_creatureInfo

CreatureTemplate const* Creature::m_creatureInfo
protected

Definition at line 568 of file Creature.h.

Referenced by InitEntry().

◆ m_defaultMovementType

MovementGeneratorType Creature::m_defaultMovementType
protected

Definition at line 548 of file Creature.h.

Referenced by GetDefaultMovementType(), InitEntry(), and LoadFromDB().

◆ m_dontClearTapListOnEvade

bool Creature::m_dontClearTapListOnEvade
protected

Definition at line 533 of file Creature.h.

Referenced by SetDontClearTapListOnEvade().

◆ m_equipmentId

uint8 Creature::m_equipmentId
protected

Definition at line 550 of file Creature.h.

Referenced by LoadEquipment().

◆ m_formation

◆ m_homePosition

Position Creature::m_homePosition
protected

Definition at line 563 of file Creature.h.

Referenced by CanCreatureAttack().

◆ m_ignoreCorpseDecayRatio

bool Creature::m_ignoreCorpseDecayRatio
protected

Definition at line 541 of file Creature.h.

Referenced by AllLootRemovedFromCorpse().

◆ m_isTempWorldObject

bool Creature::m_isTempWorldObject

Definition at line 437 of file Creature.h.

Referenced by Creature(), and Map::SwitchGridContainers().

◆ m_loot

◆ m_lootId

Optional<uint32> Creature::m_lootId
protected

Definition at line 574 of file Creature.h.

Referenced by GetLootId(), and SetLootId().

◆ m_LootMode

uint16 Creature::m_LootMode
protected

Definition at line 575 of file Creature.h.

◆ m_meleeDamageSchoolMask

SpellSchoolMask Creature::m_meleeDamageSchoolMask
protected

Definition at line 558 of file Creature.h.

◆ m_originalEntry

uint32 Creature::m_originalEntry
protected

Definition at line 561 of file Creature.h.

Referenced by Pet::Create(), and Respawn().

◆ m_originalEquipmentId

int8 Creature::m_originalEquipmentId
protected

Definition at line 551 of file Creature.h.

Referenced by InitEntry().

◆ m_personalLoot

std::unordered_map<ObjectGuid, std::unique_ptr<Loot> > Creature::m_personalLoot

◆ m_PlayerDamageReq

uint64 Creature::m_PlayerDamageReq

Definition at line 424 of file Creature.h.

Referenced by Trinity::XP::Gain(), and LowerPlayerDamageReq().

◆ m_reactState

ReactStates Creature::m_reactState
protected

Definition at line 545 of file Creature.h.

◆ m_respawnCompatibilityMode

bool Creature::m_respawnCompatibilityMode
private

◆ m_respawnDelay

uint32 Creature::m_respawnDelay
protected

◆ m_respawnTime

time_t Creature::m_respawnTime
protected

◆ m_scriptStringId

Optional<std::string> Creature::m_scriptStringId
protected

Definition at line 572 of file Creature.h.

Referenced by SetScriptStringId().

◆ m_SightDistance

◆ m_spawnId

ObjectGuid::LowType Creature::m_spawnId
protected

◆ m_spells

◆ m_stringIds

std::array<std::string const*, 3> Creature::m_stringIds
protected

Definition at line 571 of file Creature.h.

Referenced by HasStringId(), InheritStringIds(), LoadFromDB(), SetScriptStringId(), and UpdateEntry().

◆ m_tapList

GuidUnorderedSet Creature::m_tapList
protected

Definition at line 532 of file Creature.h.

Referenced by isTappedBy(), and SetTappedBy().

◆ m_textRepeat

CreatureTextRepeatGroup Creature::m_textRepeat
private

Definition at line 608 of file Creature.h.

Referenced by ClearTextRepeatGroup(), GetTextRepeatGroup(), and SetTextRepeatId().

◆ m_transportHomePosition

Position Creature::m_transportHomePosition
protected

Definition at line 564 of file Creature.h.

◆ m_triggerJustAppeared

bool Creature::m_triggerJustAppeared
private

Definition at line 592 of file Creature.h.

Referenced by Respawn(), and Update().

◆ m_vendorData

Definition at line 500 of file Creature.h.

Referenced by SetPetitioner(), and SetVendor().

◆ m_vendorItemCounts

VendorItemCounts Creature::m_vendorItemCounts
protected

Definition at line 528 of file Creature.h.

Referenced by GetVendorItemCurrentCount(), and UpdateVendorItemCurrentCount().

◆ m_wanderDistance

float Creature::m_wanderDistance
protected

Definition at line 542 of file Creature.h.

Referenced by InitEntry(), LoadFromDB(), and SaveToDB().

◆ Orientation

float Creature::Orientation = 0.0f

Definition at line 604 of file Creature.h.

◆ Spell

::Spell const* Creature::Spell = nullptr

Definition at line 601 of file Creature.h.

◆ Target

ObjectGuid Creature::Target

Definition at line 603 of file Creature.h.


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