TrinityCore
Creature Class Reference

#include <Creature.h>

+ Inheritance diagram for Creature:

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 GetRespawnPosition (float &x, float &y, float &z, float *ori=nullptr, 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)
 
bool IsSessile () const
 
void SetSessile (bool sessile)
 
bool CannotPenetrateWater () const
 
void SetCannotPenetrateWater (bool cannotPenetrateWater)
 
bool IsSwimDisabled () const
 
bool IsSwimPrevented () 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
 
UnitSelectVictim ()
 
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 ()
 
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 ()
 
CreatureAIAI () 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
 
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)
 
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
 
bool HasStringId (std::string_view id) const
 
void SetScriptStringId (std::string id)
 
std::array< std::string_view, 3 > const & GetStringIds () const
 
std::string GetNameForLocaleIdx (LocaleConstant locale) const override
 
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
 
LootGetLootForPlayer (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)
 
UnitSelectNearestTarget (float dist=0, bool playerOnly=false) const
 
UnitSelectNearestTargetInAttackDistance (float dist=0) const
 
UnitSelectNearestHostileUnitInAggroRange (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 ()
 
uint32 GetCombatPulseDelay () const
 
void SetCombatPulseDelay (uint32 delay)
 
void SendZoneUnderAttackMessage (Player *attacker)
 Send a message to LocalDefense channel for players opposition team in the zone. More...
 
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, uint32GetCurrentWaypointInfo () const
 
void UpdateCurrentWaypointInfo (uint32 nodeId, uint32 pathId)
 
bool IsReturningHome () const
 
void SearchFormation ()
 
CreatureGroupGetFormation ()
 
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 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)
 
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)
 
UnitAIGetAI () const
 
void ScheduleAIChange ()
 
void PushAI (UnitAI *newAI)
 
bool PopAI ()
 
void AddToWorld () override
 
void RemoveFromWorld () override
 
void CleanupBeforeRemoveFromMap (bool finalCleanup)
 
void CleanupsBeforeDelete (bool finalCleanup=true) override
 
virtual bool IsAffectedByDiminishingReturns () const
 
DiminishingLevels GetDiminishing (DiminishingGroup group) const
 
void IncrDiminishing (SpellInfo const *auraSpellInfo)
 
bool ApplyDiminishingToDuration (SpellInfo const *auraSpellInfo, int32 &duration, WorldObject *caster, DiminishingLevels previousLevel) const
 
void ApplyDiminishingAura (DiminishingGroup group, bool apply)
 
void ClearDiminishings ()
 
virtual void Update (uint32 time) override
 
void setAttackTimer (WeaponAttackType type, uint32 time)
 
void resetAttackTimer (WeaponAttackType type=BASE_ATTACK)
 
uint32 getAttackTimer (WeaponAttackType type) const
 
bool isAttackReady (WeaponAttackType type=BASE_ATTACK) const
 
bool haveOffhandWeapon () const
 
bool CanDualWield () const
 
virtual void SetCanDualWield (bool value)
 
float GetCombatReach () const override
 
void SetCombatReach (float combatReach)
 
float GetBoundingRadius () const
 
void SetBoundingRadius (float boundingRadius)
 
bool IsWithinCombatRange (Unit const *obj, float dist2compare) const
 
bool IsWithinMeleeRange (Unit const *obj) const
 
bool IsWithinMeleeRangeAt (Position const &pos, Unit const *obj) const
 
float GetMeleeRange (Unit const *target) const
 
virtual SpellSchoolMask GetMeleeDamageSchoolMask (WeaponAttackType attackType=BASE_ATTACK) const =0
 
bool IsWithinBoundaryRadius (const Unit *obj) const
 
void _addAttacker (Unit *pAttacker)
 
void _removeAttacker (Unit *pAttacker)
 
UnitgetAttackerForHelper () const
 
bool Attack (Unit *victim, bool meleeAttack)
 
void CastStop (uint32 except_spellid=0)
 
bool AttackStop ()
 
void RemoveAllAttackers ()
 
AttackerSet const & getAttackers () const
 
bool isAttackingPlayer () const
 
UnitGetVictim () const
 
UnitEnsureVictim () const
 
void ValidateAttackersAndOwnTarget ()
 
void CombatStop (bool includingCast=false, bool mutualPvP=true, bool(*unitFilter)(Unit const *otherUnit)=nullptr)
 
void CombatStopWithPets (bool includingCast=false)
 
void StopAttackFaction (uint32 faction_id)
 
UnitSelectNearbyTarget (Unit *exclude=nullptr, float dist=NOMINAL_MELEE_RANGE) const
 
void SendMeleeAttackStop (Unit *victim=nullptr)
 
void SendMeleeAttackStart (Unit *victim)
 
void AddUnitState (uint32 f)
 
bool HasUnitState (const uint32 f) const
 
void ClearUnitState (uint32 f)
 
bool CanFreeMove () const
 
uint32 HasUnitTypeMask (uint32 mask) const
 
void AddUnitTypeMask (uint32 mask)
 
bool IsSummon () const
 
bool IsGuardian () const
 
bool IsPet () const
 
bool IsHunterPet () const
 
bool IsTotem () const
 
bool IsVehicle () const
 
int32 GetContentTuning () const
 
uint8 GetLevel () const
 
uint8 GetLevelForTarget (WorldObject const *) const override
 
void SetLevel (uint8 lvl, bool sendUpdate=true)
 
uint8 GetRace () const
 
void SetRace (uint8 race)
 
uint64 GetRaceMask () const
 
uint8 GetClass () const
 
void SetClass (uint8 classId)
 
uint32 GetClassMask () const
 
Gender GetGender () const
 
void SetGender (Gender gender)
 
virtual Gender GetNativeGender () const
 
virtual void SetNativeGender (Gender gender)
 
float GetStat (Stats stat) const
 
void SetStat (Stats stat, int32 val)
 
uint32 GetArmor () const
 
void SetArmor (int32 val, int32 bonusVal)
 
int32 GetResistance (SpellSchools school) const
 
int32 GetBonusResistanceMod (SpellSchools school) const
 
int32 GetResistance (SpellSchoolMask mask) const
 
void SetResistance (SpellSchools school, int32 val)
 
void SetBonusResistanceMod (SpellSchools school, int32 val)
 
uint64 GetHealth () const
 
uint64 GetMaxHealth () const
 
bool IsFullHealth () const
 
bool HealthBelowPct (int32 pct) const
 
bool HealthBelowPctDamaged (int32 pct, uint32 damage) const
 
bool HealthAbovePct (int32 pct) const
 
bool HealthAbovePctHealed (int32 pct, uint32 heal) const
 
float GetHealthPct () const
 
uint64 CountPctFromMaxHealth (int32 pct) const
 
uint64 CountPctFromCurHealth (int32 pct) const
 
void SetHealth (uint64 val)
 
void SetMaxHealth (uint64 val)
 
void SetFullHealth ()
 
int64 ModifyHealth (int64 val)
 
int64 GetHealthGain (int64 dVal)
 
void TriggerOnHealthChangeAuras (uint64 oldVal, uint64 newVal)
 
virtual float GetHealthMultiplierForTarget (WorldObject const *) const
 
virtual float GetDamageMultiplierForTarget (WorldObject const *) const
 
virtual float GetArmorMultiplierForTarget (WorldObject const *) const
 
Powers GetPowerType () const
 
void SetPowerType (Powers power, bool sendUpdate=true)
 
void SetOverrideDisplayPowerId (uint32 powerDisplayId)
 
Powers CalculateDisplayPowerType () const
 
void UpdateDisplayPower ()
 
int32 GetPower (Powers power) const
 
int32 GetMinPower (Powers power) const
 
int32 GetMaxPower (Powers power) const
 
float GetPowerPct (Powers power) const
 
int32 CountPctFromMaxPower (Powers power, int32 pct) const
 
void SetPower (Powers power, int32 val, bool withPowerUpdate=true)
 
void SetMaxPower (Powers power, int32 val)
 
void TriggerOnPowerChangeAuras (Powers power, int32 oldVal, int32 newVal)
 
void SetFullPower (Powers power)
 
int32 ModifyPower (Powers power, int32 val, bool withPowerUpdate=true)
 
void ApplyModManaCostMultiplier (float manaCostMultiplier, bool apply)
 
void ApplyModManaCostModifier (SpellSchools school, int32 mod, bool apply)
 
uint32 GetBaseAttackTime (WeaponAttackType att) const
 
void SetBaseAttackTime (WeaponAttackType att, uint32 val)
 
void UpdateAttackTimeField (WeaponAttackType att)
 
void ApplyAttackTimePercentMod (WeaponAttackType att, float val, bool apply)
 
void ApplyCastTimePercentMod (float val, bool apply)
 
void SetModCastingSpeed (float castingSpeed)
 
void SetModSpellHaste (float spellHaste)
 
void SetModHaste (float haste)
 
void SetModRangedHaste (float rangedHaste)
 
void SetModHasteRegen (float hasteRegen)
 
void SetModTimeRate (float timeRate)
 
bool HasUnitFlag (UnitFlags flags) const
 
void SetUnitFlag (UnitFlags flags)
 
void RemoveUnitFlag (UnitFlags flags)
 
void ReplaceAllUnitFlags (UnitFlags flags)
 
bool HasUnitFlag2 (UnitFlags2 flags) const
 
void SetUnitFlag2 (UnitFlags2 flags)
 
void RemoveUnitFlag2 (UnitFlags2 flags)
 
void ReplaceAllUnitFlags2 (UnitFlags2 flags)
 
bool HasUnitFlag3 (UnitFlags3 flags) const
 
void SetUnitFlag3 (UnitFlags3 flags)
 
void RemoveUnitFlag3 (UnitFlags3 flags)
 
void ReplaceAllUnitFlags3 (UnitFlags3 flags)
 
void SetCreatedBySpell (int32 spellId)
 
void SetNameplateAttachToGUID (ObjectGuid guid)
 
Emote GetEmoteState () const
 
void SetEmoteState (Emote emote)
 
SheathState GetSheath () const
 
void SetSheath (SheathState sheathed)
 
uint32 GetFaction () const override
 
void SetFaction (uint32 faction) override
 
bool IsInPartyWith (Unit const *unit) const
 
bool IsInRaidWith (Unit const *unit) const
 
void GetPartyMembers (std::list< Unit * > &units)
 
bool IsContestedGuard () const
 
UnitPVPStateFlags GetPvpFlags () const
 
bool HasPvpFlag (UnitPVPStateFlags flags) const
 
void SetPvpFlag (UnitPVPStateFlags flags)
 
void RemovePvpFlag (UnitPVPStateFlags flags)
 
void ReplaceAllPvpFlags (UnitPVPStateFlags flags)
 
bool IsInSanctuary () const
 
bool IsPvP () const
 
bool IsFFAPvP () const
 
virtual void SetPvP (bool state)
 
UnitPetFlag GetPetFlags () const
 
bool HasPetFlag (UnitPetFlag flags) const
 
void SetPetFlag (UnitPetFlag flags)
 
void RemovePetFlag (UnitPetFlag flags)
 
void ReplaceAllPetFlags (UnitPetFlag flags)
 
uint32 GetCreatureType () const
 
uint32 GetCreatureTypeMask () const
 
UnitStandStateType GetStandState () const
 
bool IsSitState () const
 
bool IsStandState () const
 
void SetStandState (UnitStandStateType state, uint32 animKitID=0)
 
void SetVisFlag (UnitVisFlags flags)
 
void RemoveVisFlag (UnitVisFlags flags)
 
void ReplaceAllVisFlags (UnitVisFlags flags)
 
AnimTier GetAnimTier () const
 
void SetAnimTier (AnimTier animTier, bool notifyClient=true)
 
bool IsMounted () const
 
uint32 GetMountDisplayId () const
 
void SetMountDisplayId (uint32 mountDisplayId)
 
uint32 GetCosmeticMountDisplayId () const
 
void SetCosmeticMountDisplayId (uint32 mountDisplayId)
 
void Mount (uint32 mount, uint32 vehicleId=0, uint32 creatureEntry=0)
 
void Dismount ()
 
MountCapabilityEntry const * GetMountCapability (uint32 mountType) const
 
void UpdateMountCapability ()
 
void SendDurabilityLoss (Player *receiver, uint32 percent)
 
void PlayOneShotAnimKitId (uint16 animKitId)
 
void SetAIAnimKitId (uint16 animKitId)
 
uint16 GetAIAnimKitId () const override
 
void SetMovementAnimKitId (uint16 animKitId)
 
uint16 GetMovementAnimKitId () const override
 
void SetMeleeAnimKitId (uint16 animKitId)
 
uint16 GetMeleeAnimKitId () const override
 
uint16 GetMaxSkillValueForLevel (Unit const *target=nullptr) const
 
void KillSelf (bool durabilityLoss=true, bool skipSettingDeathState=false)
 
void GetProcAurasTriggeredOnEvent (AuraApplicationProcContainer &aurasTriggeringProc, AuraApplicationList *procAuras, ProcEventInfo &eventInfo)
 
void TriggerAurasProcOnEvent (AuraApplicationList *myProcAuras, AuraApplicationList *targetProcAuras, Unit *actionTarget, ProcFlagsInit const &typeMaskActor, ProcFlagsInit const &typeMaskActionTarget, ProcFlagsSpellType spellTypeMask, ProcFlagsSpellPhase spellPhaseMask, ProcFlagsHit hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo)
 
void TriggerAurasProcOnEvent (ProcEventInfo &eventInfo, AuraApplicationProcContainer &procAuras)
 
void HandleEmoteCommand (Emote emoteId, Player *target=nullptr, Trinity::IteratorPair< int32 const * > spellVisualKitIds={}, int32 sequenceVariation=0)
 
void DoMeleeAttackIfReady ()
 
void AttackerStateUpdate (Unit *victim, WeaponAttackType attType=BASE_ATTACK, bool extra=false)
 
void CalculateMeleeDamage (Unit *victim, CalcDamageInfo *damageInfo, WeaponAttackType attackType=BASE_ATTACK)
 
void DealMeleeDamage (CalcDamageInfo *damageInfo, bool durabilityLoss)
 
void HandleProcExtraAttackFor (Unit *victim, uint32 count)
 
void SetLastExtraAttackSpell (uint32 spellId)
 
uint32 GetLastExtraAttackSpell () const
 
void AddExtraAttacks (uint32 count)
 
void SetLastDamagedTargetGuid (ObjectGuid guid)
 
ObjectGuid GetLastDamagedTargetGuid () const
 
void CalculateSpellDamageTaken (SpellNonMeleeDamage *damageInfo, int32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=BASE_ATTACK, bool crit=false, bool blocked=false, Spell *spell=nullptr)
 
void DealSpellDamage (SpellNonMeleeDamage const *damageInfo, bool durabilityLoss)
 
uint32 GetDamageReduction (uint32 damage) const
 
virtual bool CanApplyResilience () const
 
int32 CalculateAOEAvoidance (int32 damage, uint32 schoolMask, bool npcCaster) const
 
float MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, SpellInfo const *spellInfo) const override
 
SpellMissInfo MeleeSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const override
 
float GetUnitDodgeChance (WeaponAttackType attType, Unit const *victim) const
 
float GetUnitParryChance (WeaponAttackType attType, Unit const *victim) const
 
float GetUnitBlockChance (WeaponAttackType attType, Unit const *victim) const
 
float GetUnitMissChance () const
 
float GetUnitCriticalChanceDone (WeaponAttackType attackType) const
 
float GetUnitCriticalChanceTaken (Unit const *attacker, WeaponAttackType attackType, float critDone) const
 
float GetUnitCriticalChanceAgainst (WeaponAttackType attackType, Unit const *victim) const
 
int32 GetMechanicResistChance (SpellInfo const *spellInfo) const
 
bool CanUseAttackType (uint8 attacktype) const
 
virtual float GetBlockPercent (uint8) const
 
float GetWeaponProcChance () const
 
float GetPPMProcChance (uint32 WeaponSpeed, float PPM, SpellInfo const *spellProto) const
 
MeleeHitOutcome RollMeleeOutcomeAgainst (Unit const *victim, WeaponAttackType attType) const
 
NPCFlags GetNpcFlags () const
 
bool HasNpcFlag (NPCFlags flags) const
 
void SetNpcFlag (NPCFlags flags)
 
void RemoveNpcFlag (NPCFlags flags)
 
void ReplaceAllNpcFlags (NPCFlags flags)
 
NPCFlags2 GetNpcFlags2 () const
 
bool HasNpcFlag2 (NPCFlags2 flags) const
 
void SetNpcFlag2 (NPCFlags2 flags)
 
void RemoveNpcFlag2 (NPCFlags2 flags)
 
void ReplaceAllNpcFlags2 (NPCFlags2 flags)
 
bool IsVendor () const
 
bool IsTrainer () const
 
bool IsQuestGiver () const
 
bool IsGossip () const
 
bool IsTaxi () const
 
bool IsGuildMaster () const
 
bool IsBattleMaster () const
 
bool IsBanker () const
 
bool IsInnkeeper () const
 
bool IsSpiritHealer () const
 
bool IsAreaSpiritHealer () const
 
bool IsTabardDesigner () const
 
bool IsAuctioner () const
 
bool IsArmorer () const
 
bool IsWildBattlePet () const
 
bool IsServiceProvider () const
 
bool IsSpiritService () const
 
bool IsAreaSpiritHealerIndividual () const
 
bool IsCritter () const
 
bool IsInFlight () const
 
bool CanHaveThreatList () const
 ====================== THREAT & COMBAT ==================== More...
 
virtual bool IsEngaged () const
 
bool IsEngagedBy (Unit const *who) const
 
void EngageWithTarget (Unit *who)
 
CombatManagerGetCombatManager ()
 
CombatManager const & GetCombatManager () const
 
void AtTargetAttacked (Unit *target, bool canInitialAggro)
 
bool IsImmuneToAll () const
 
void SetImmuneToAll (bool apply, bool keepCombat)
 
virtual void SetImmuneToAll (bool apply)
 
bool IsImmuneToPC () const
 
void SetImmuneToPC (bool apply, bool keepCombat)
 
virtual void SetImmuneToPC (bool apply)
 
bool IsImmuneToNPC () const
 
void SetImmuneToNPC (bool apply, bool keepCombat)
 
virtual void SetImmuneToNPC (bool apply)
 
bool IsUninteractible () const
 
void SetUninteractible (bool apply)
 
bool CannotTurn () const
 
void SetCannotTurn (bool apply)
 
bool IsInCombat () const
 
bool IsInCombatWith (Unit const *who) const
 
void SetInCombatWith (Unit *enemy, bool addSecondUnitSuppressed=false)
 
void ClearInCombat ()
 
void UpdatePetCombatState ()
 
bool IsInteractionAllowedWhileHostile () const
 
virtual void SetInteractionAllowedWhileHostile (bool interactionAllowed)
 
bool IsInteractionAllowedInCombat () const
 
virtual void SetInteractionAllowedInCombat (bool interactionAllowed)
 
virtual void UpdateNearbyPlayersInteractions ()
 
bool IsThreatened () const
 
bool IsThreatenedBy (Unit const *who) const
 
ThreatManagerGetThreatManager ()
 
ThreatManager const & GetThreatManager () const
 
void SendClearTarget ()
 
bool HasAuraTypeWithFamilyFlags (AuraType auraType, uint32 familyName, flag128 familyFlags) const
 
virtual bool HasSpell (uint32) const
 
bool HasBreakableByDamageAuraType (AuraType type, uint32 excludeAura=0) const
 
bool HasBreakableByDamageCrowdControlAura (Unit *excludeCasterChannel=nullptr) const
 
bool HasStealthAura () const
 
bool HasInvisibilityAura () const
 
bool IsFeared () const
 
bool HasRootAura () const
 
bool IsPolymorphed () const
 
bool IsFrozen () const
 
bool isTargetableForAttack (bool checkFakeDeath=true) const
 
bool IsInWater () const
 
bool IsUnderWater () const
 
bool IsOnOceanFloor () const
 
bool isInAccessiblePlaceFor (Creature const *c) const
 
void SendHealSpellLog (HealInfo &healInfo, bool critical=false)
 
int32 HealBySpell (HealInfo &healInfo, bool critical=false)
 
void SendEnergizeSpellLog (Unit *victim, uint32 spellId, int32 damage, int32 overEnergize, Powers powerType)
 
void EnergizeBySpell (Unit *victim, SpellInfo const *spellInfo, int32 damage, Powers powerType)
 
AuraAddAura (uint32 spellId, Unit *target)
 
AuraAddAura (SpellInfo const *spellInfo, uint32 effMask, Unit *target)
 
void SetAuraStack (uint32 spellId, Unit *target, uint32 stack)
 
void SendPlaySpellVisual (Unit *target, uint32 spellVisualId, uint16 missReason, uint16 reflectStatus, float travelSpeed, bool speedAsTime=false, float launchDelay=0.0f)
 
void SendPlaySpellVisual (Position const &targetPosition, uint32 spellVisualId, uint16 missReason, uint16 reflectStatus, float travelSpeed, bool speedAsTime=false, float launchDelay=0.0f)
 
void SendCancelSpellVisual (uint32 id)
 
void SendPlaySpellVisualKit (uint32 id, uint32 type, uint32 duration) const
 
void SendCancelSpellVisualKit (uint32 id)
 
void CancelSpellMissiles (uint32 spellId, bool reverseMissile=false, bool abortSpell=false)
 
void DeMorph ()
 
void SendAttackStateUpdate (CalcDamageInfo *damageInfo)
 
void SendAttackStateUpdate (uint32 HitInfo, Unit *target, uint8 SwingType, SpellSchoolMask damageSchoolMask, uint32 Damage, uint32 AbsorbDamage, uint32 Resist, VictimState TargetState, uint32 BlockedAmount)
 
void SendSpellNonMeleeDamageLog (SpellNonMeleeDamage const *log)
 
void SendPeriodicAuraLog (SpellPeriodicAuraLogInfo *pInfo)
 
void SendSpellDamageResist (Unit *target, uint32 spellId)
 
void SendSpellDamageImmune (Unit *target, uint32 spellId, bool isPeriodic)
 
void NearTeleportTo (Position const &pos, bool casting=false)
 
void NearTeleportTo (float x, float y, float z, float orientation, bool casting=false)
 
void SendTeleportPacket (Position const &pos)
 
virtual bool UpdatePosition (float x, float y, float z, float ang, bool teleport=false)
 
virtual bool UpdatePosition (Position const &pos, bool teleport=false)
 
void UpdateOrientation (float orientation)
 Only server-side orientation update, does not broadcast to client. More...
 
void UpdateHeight (float newZ)
 Only server-side height update, does not broadcast to client. More...
 
void SendMoveKnockBack (Player *player, float speedXY, float speedZ, float vcos, float vsin)
 
void KnockbackFrom (Position const &origin, float speedXY, float speedZ, Movement::SpellEffectExtraData const *spellEffectExtraData=nullptr)
 
void JumpTo (float speedXY, float speedZ, float angle, Optional< Position > dest={})
 
void JumpTo (WorldObject *obj, float speedZ, bool withOrientation=false)
 
void MonsterMoveWithSpeed (float x, float y, float z, float speed, bool generatePath=false, bool forceDestination=false)
 
bool IsPlayingHoverAnim () const
 
void SetPlayHoverAnim (bool enable, bool sendUpdate=true)
 
void CalculateHoverHeight ()
 
void SetHoverHeight (float hoverHeight)
 
bool IsGravityDisabled () const
 
bool IsWalking () const
 
bool IsHovering () const
 
bool SetWalk (bool enable)
 
bool SetDisableGravity (bool disable, bool updateAnimTier=true)
 
bool SetFall (bool enable)
 
bool SetSwim (bool enable)
 
bool SetCanFly (bool enable)
 
bool SetWaterWalking (bool enable)
 
bool SetFeatherFall (bool enable)
 
bool SetHover (bool enable, bool updateAnimTier=true)
 
bool SetCollision (bool disable)
 
bool SetCanTransitionBetweenSwimAndFly (bool enable)
 
bool SetCanTurnWhileFalling (bool enable)
 
bool SetCanDoubleJump (bool enable)
 
bool SetDisableInertia (bool disable)
 
void SendSetVehicleRecId (uint32 vehicleId)
 
MovementForces const * GetMovementForces () const
 
void ApplyMovementForce (ObjectGuid id, Position origin, float magnitude, MovementForceType type, Position direction={}, ObjectGuid transportGuid=ObjectGuid::Empty)
 
void RemoveMovementForce (ObjectGuid id)
 
bool SetIgnoreMovementForces (bool ignore)
 
void UpdateMovementForcesModMagnitude ()
 
void SetInFront (WorldObject const *target)
 
void SetFacingTo (float const ori, bool force=true)
 
void SetFacingToObject (WorldObject const *object, bool force=true)
 
void SetFacingToPoint (Position const &point, bool force=true)
 
bool IsAlive () const
 
bool isDying () const
 
bool isDead () const
 
DeathState getDeathState () const
 
virtual void setDeathState (DeathState s)
 
ObjectGuid GetOwnerGUID () const override
 
void SetOwnerGUID (ObjectGuid owner)
 
ObjectGuid GetCreatorGUID () const override
 
void SetCreatorGUID (ObjectGuid creator)
 
ObjectGuid GetMinionGUID () const
 
void SetMinionGUID (ObjectGuid guid)
 
ObjectGuid GetPetGUID () const
 
void SetPetGUID (ObjectGuid guid)
 
ObjectGuid GetCritterGUID () const
 
void SetCritterGUID (ObjectGuid guid)
 
ObjectGuid GetBattlePetCompanionGUID () const
 
void SetBattlePetCompanionGUID (ObjectGuid guid)
 
ObjectGuid GetDemonCreatorGUID () const
 
void SetDemonCreatorGUID (ObjectGuid guid)
 
UnitGetDemonCreator () const
 
PlayerGetDemonCreatorPlayer () const
 
ObjectGuid GetCharmerGUID () const
 
UnitGetCharmer () const
 
ObjectGuid GetCharmedGUID () const
 
UnitGetCharmed () const
 
bool IsControlledByPlayer () const
 
PlayerGetControllingPlayer () const
 
ObjectGuid GetCharmerOrOwnerGUID () const override
 
bool IsCharmedOwnedByPlayerOrPlayer () const
 
GuardianGetGuardianPet () const
 
MinionGetFirstMinion () const
 
UnitGetCharmerOrOwner () const
 
void SetMinion (Minion *minion, bool apply)
 
void GetAllMinionsByEntry (std::list< TempSummon * > &Minions, uint32 entry)
 
void RemoveAllMinionsByEntry (uint32 entry)
 
void SetCharm (Unit *target, bool apply)
 
UnitGetNextRandomRaidMemberOrPet (float radius)
 
bool SetCharmedBy (Unit *charmer, CharmType type, AuraApplication const *aurApp=nullptr)
 
void RemoveCharmedBy (Unit *charmer)
 
void RestoreFaction ()
 
UnitGetFirstControlled () const
 
void RemoveAllControlled ()
 
bool IsCharmed () const
 
bool isPossessed () const
 
bool isPossessedByPlayer () const
 
bool isPossessing () const
 
bool isPossessing (Unit *u) const
 
CharmInfoGetCharmInfo ()
 
CharmInfoInitCharmInfo ()
 
void DeleteCharmInfo ()
 
void SetPetNumberForClient (uint32 petNumber)
 
void SetPetNameTimestamp (uint32 timestamp)
 
void SetMovedUnit (Unit *target)
 
UnitGetUnitBeingMoved () const
 
PlayerGetPlayerMovingMe () const
 
SharedVisionList const & GetSharedVisionList ()
 
void AddPlayerToVision (Player *player)
 
void RemovePlayerFromVision (Player *player)
 
bool HasSharedVision () const
 
void RemoveBindSightAuras ()
 
void RemoveCharmAuras ()
 
PetCreateTamedPetFrom (Creature *creatureTarget, uint32 spell_id=0)
 
PetCreateTamedPetFrom (uint32 creatureEntry, uint32 spell_id=0)
 
bool InitTamedPet (Pet *pet, uint8 level, uint32 spell_id)
 
uint32 GetBattlePetCompanionNameTimestamp () const
 
void SetBattlePetCompanionNameTimestamp (uint32 timestamp)
 
uint32 GetBattlePetCompanionExperience () const
 
void SetBattlePetCompanionExperience (uint32 experience)
 
uint32 GetWildBattlePetLevel () const
 
void SetWildBattlePetLevel (uint32 wildBattlePetLevel)
 
Aura_TryStackingOrRefreshingExistingAura (AuraCreateInfo &createInfo)
 
void _AddAura (UnitAura *aura, Unit *caster)
 
AuraApplication_CreateAuraApplication (Aura *aura, uint32 effMask)
 
void _ApplyAuraEffect (Aura *aura, uint8 effIndex)
 
void _ApplyAura (AuraApplication *aurApp, uint32 effMask)
 
void _UnapplyAura (AuraApplicationMap::iterator &i, AuraRemoveMode removeMode)
 
void _UnapplyAura (AuraApplication *aurApp, AuraRemoveMode removeMode)
 
void _RemoveNoStackAurasDueToAura (Aura *aura, bool owned)
 
void _RegisterAuraEffect (AuraEffect *aurEff, bool apply)
 
AuraMapGetOwnedAuras ()
 
AuraMap const & GetOwnedAuras () const
 
void RemoveOwnedAura (AuraMap::iterator &i, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveOwnedAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveOwnedAura (Aura *aura, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
AuraGetOwnedAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, Aura *except=nullptr) const
 
AuraApplicationMapGetAppliedAuras ()
 
AuraApplicationMap const & GetAppliedAuras () const
 
void RemoveAura (AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAura (AuraApplication *aurApp, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAura (Aura *aur, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAppliedAuras (std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveOwnedAuras (std::function< bool(Aura const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAppliedAuras (uint32 spellId, std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveOwnedAuras (uint32 spellId, std::function< bool(Aura const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAurasByType (AuraType auraType, std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAurasDueToSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
 
void RemoveAuraFromStack (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, uint16 num=1)
 
void RemoveAurasDueToSpellByDispel (uint32 spellId, uint32 dispellerSpellId, ObjectGuid casterGUID, WorldObject *dispeller, uint8 chargesRemoved=1)
 
void RemoveAurasDueToSpellBySteal (uint32 spellId, ObjectGuid casterGUID, WorldObject *stealer, int32 stolenCharges=1)
 
void RemoveAurasDueToItemSpell (uint32 spellId, ObjectGuid castItemGuid)
 
void RemoveAurasByType (AuraType auraType, ObjectGuid casterGUID=ObjectGuid::Empty, Aura *except=nullptr, bool negative=true, bool positive=true)
 
void RemoveNotOwnSingleTargetAuras (bool onPhaseChange=false)
 
template<typename InterruptFlags >
void RemoveAurasWithInterruptFlags (InterruptFlags flag, SpellInfo const *source=nullptr)
 
void RemoveAurasWithAttribute (uint32 flags)
 
void RemoveAurasWithFamily (SpellFamilyNames family, flag128 const &familyFlag, ObjectGuid casterGUID)
 
void RemoveAurasWithMechanic (uint64 mechanicMaskToRemove, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, uint32 exceptSpellId=0, bool withEffectMechanics=false)
 
void RemoveMovementImpairingAuras (bool withRoot)
 
void RemoveAurasByShapeShift ()
 
void RemoveAreaAurasDueToLeaveWorld ()
 
void RemoveAllAuras ()
 
void RemoveArenaAuras ()
 
void RemoveAurasOnEvade ()
 
void RemoveAllAurasOnDeath ()
 
void RemoveAllAurasRequiringDeadTarget ()
 
void RemoveAllAurasExceptType (AuraType type)
 
void RemoveAllAurasExceptType (AuraType type1, AuraType type2)
 
void RemoveAllGroupBuffsFromCaster (ObjectGuid casterGUID)
 
void DelayOwnedAuras (uint32 spellId, ObjectGuid caster, int32 delaytime)
 
void _RemoveAllAuraStatMods ()
 
void _ApplyAllAuraStatMods ()
 
AuraEffectList const & GetAuraEffectsByType (AuraType type) const
 
AuraEffectListGetAuraEffectsByType (AuraType type)
 
AuraListGetSingleCastAuras ()
 
AuraList const & GetSingleCastAuras () const
 
AuraEffectGetAuraEffect (uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
 
AuraEffectGetAuraEffectOfRankedSpell (uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
 
AuraEffectGetAuraEffect (AuraType type, SpellFamilyNames family, flag128 const &familyFlag, ObjectGuid casterGUID=ObjectGuid::Empty) const
 
AuraApplicationGetAuraApplication (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraApplication *except=nullptr) const
 
AuraApplicationGetAuraApplication (uint32 spellId, std::function< bool(AuraApplication const *)> const &predicate) const
 
AuraApplicationGetAuraApplication (uint32 spellId, std::function< bool(Aura const *)> const &predicate) const
 
AuraApplicationGetAuraApplication (std::function< bool(AuraApplication const *)> const &predicate) const
 
AuraApplicationGetAuraApplication (std::function< bool(Aura const *)> const &predicate) const
 
AuraGetAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
 
AuraGetAura (uint32 spellId, std::function< bool(Aura const *)> const &predicate) const
 
AuraGetAura (std::function< bool(Aura const *)> const &predicate) const
 
AuraApplicationGetAuraApplicationOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraApplication *except=nullptr) const
 
AuraGetAuraOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
 
void GetDispellableAuraList (WorldObject const *caster, uint32 dispelMask, DispelChargesList &dispelList, bool isReflect=false) const
 
bool HasAuraEffect (uint32 spellId, uint8 effIndex, ObjectGuid caster=ObjectGuid::Empty) const
 
uint32 GetAuraCount (uint32 spellId) const
 
bool HasAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
 
bool HasAura (std::function< bool(Aura const *)> const &predicate) const
 
bool HasAuraType (AuraType auraType) const
 
bool HasAuraTypeWithCaster (AuraType auraType, ObjectGuid caster) const
 
bool HasAuraTypeWithMiscvalue (AuraType auraType, int32 miscValue) const
 
bool HasAuraTypeWithAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
bool HasAuraTypeWithValue (AuraType auraType, int32 value) const
 
bool HasAuraTypeWithTriggerSpell (AuraType auratype, uint32 triggerSpell) const
 
template<typename InterruptFlags >
bool HasNegativeAuraWithInterruptFlag (InterruptFlags flag, ObjectGuid guid=ObjectGuid::Empty) const
 
bool HasAuraWithMechanic (uint64 mechanicMask) const
 
bool HasStrongerAuraWithDR (SpellInfo const *auraSpellInfo, Unit *caster) const
 
AuraEffectIsScriptOverriden (SpellInfo const *spell, int32 script) const
 
uint32 GetDiseasesByCaster (ObjectGuid casterGUID, bool remove=false)
 
uint32 GetDoTsByCaster (ObjectGuid casterGUID) const
 
int32 GetTotalAuraModifier (AuraType auraType) const
 
float GetTotalAuraMultiplier (AuraType auraType) const
 
int32 GetMaxPositiveAuraModifier (AuraType auraType) const
 
int32 GetMaxNegativeAuraModifier (AuraType auraType) const
 
int32 GetTotalAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
float GetTotalAuraMultiplier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
int32 GetMaxPositiveAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
int32 GetMaxNegativeAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const
 
int32 GetTotalAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
float GetTotalAuraMultiplierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
int32 GetMaxPositiveAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask, AuraEffect const *except=nullptr) const
 
int32 GetMaxNegativeAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const
 
int32 GetTotalAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
float GetTotalAuraMultiplierByMiscValue (AuraType auraType, int32 misc_value) const
 
int32 GetMaxPositiveAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
int32 GetMaxNegativeAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const
 
int32 GetTotalAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
float GetTotalAuraMultiplierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
int32 GetMaxPositiveAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
int32 GetMaxNegativeAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const
 
void InitStatBuffMods ()
 
void UpdateStatBuffMod (Stats stat)
 
void UpdateStatBuffModForClient (Stats stat)
 
void SetCreateStat (Stats stat, float val)
 
void SetCreateHealth (uint32 val)
 
uint32 GetCreateHealth () const
 
void SetCreateMana (uint32 val)
 
uint32 GetCreateMana () const
 
virtual int32 GetCreatePowerValue (Powers power) const
 
float GetPosStat (Stats stat) const
 
float GetNegStat (Stats stat) const
 
float GetCreateStat (Stats stat) const
 
uint32 GetChannelSpellId () const
 
void SetChannelSpellId (uint32 channelSpellId)
 
uint32 GetChannelSpellXSpellVisualId () const
 
uint32 GetChannelScriptVisualId () const
 
void SetChannelVisual (SpellCastVisual channelVisual)
 
void AddChannelObject (ObjectGuid guid)
 
void SetChannelObject (uint32 slot, ObjectGuid guid)
 
void RemoveChannelObject (ObjectGuid guid)
 
void ClearChannelObjects ()
 
void SetCurrentCastSpell (Spell *pSpell)
 
void InterruptSpell (CurrentSpellTypes spellType, bool withDelayed=true, bool withInstant=true)
 
void FinishSpell (CurrentSpellTypes spellType, SpellCastResult result=SPELL_CAST_OK)
 
bool IsNonMeleeSpellCast (bool withDelayed, bool skipChanneled=false, bool skipAutorepeat=false, bool isAutoshoot=false, bool skipInstant=true) const
 
void InterruptNonMeleeSpells (bool withDelayed, uint32 spellid=0, bool withInstant=true)
 
SpellGetCurrentSpell (CurrentSpellTypes spellType) const
 
SpellGetCurrentSpell (uint32 spellType) const
 
SpellFindCurrentSpellBySpellId (uint32 spell_id) const
 
int32 GetCurrentSpellCastTime (uint32 spell_id) const
 
virtual SpellInfo const * GetCastSpellInfo (SpellInfo const *spellInfo, TriggerCastFlags &triggerFlag) const
 
uint32 GetCastSpellXSpellVisualId (SpellInfo const *spellInfo) const override
 
virtual bool HasSpellFocus (Spell const *=nullptr) const
 
virtual bool IsMovementPreventedByCasting () const
 
bool CanCastSpellWhileMoving (SpellInfo const *spellInfo) const
 
bool IsSilenced (SpellSchoolMask schoolMask) const
 
void SetSilencedSchoolMask (SpellSchoolMask schoolMask)
 
void ReplaceAllSilencedSchoolMask (SpellSchoolMask schoolMask)
 
SpellHistoryGetSpellHistory ()
 
SpellHistory const * GetSpellHistory () const
 
ShapeshiftForm GetShapeshiftForm () const
 
void SetShapeshiftForm (ShapeshiftForm form)
 
bool IsInFeralForm () const
 
bool IsInDisallowedMountForm () const
 
bool IsDisallowedMountForm (uint32 spellId, ShapeshiftForm form, uint32 displayId) const
 
void HandleStatFlatModifier (UnitMods unitMod, UnitModifierFlatType modifierType, float amount, bool apply)
 
void ApplyStatPctModifier (UnitMods unitMod, UnitModifierPctType modifierType, float amount)
 
void SetStatFlatModifier (UnitMods unitMod, UnitModifierFlatType modifierType, float val)
 
void SetStatPctModifier (UnitMods unitMod, UnitModifierPctType modifierType, float val)
 
float GetFlatModifierValue (UnitMods unitMod, UnitModifierFlatType modifierType) const
 
float GetPctModifierValue (UnitMods unitMod, UnitModifierPctType modifierType) const
 
void UpdateUnitMod (UnitMods unitMod)
 
virtual bool CheckAttackFitToAuraRequirement (WeaponAttackType, AuraEffect const *) const
 
virtual void UpdateDamageDoneMods (WeaponAttackType attackType, int32 skipEnchantSlot=-1)
 
void UpdateAllDamageDoneMods ()
 
void UpdateDamagePctDoneMods (WeaponAttackType attackType)
 
void UpdateAllDamagePctDoneMods ()
 
float GetTotalStatValue (Stats stat) const
 
float GetTotalAuraModValue (UnitMods unitMod) const
 
SpellSchools GetSpellSchoolByAuraGroup (UnitMods unitMod) const
 
Stats GetStatByAuraGroup (UnitMods unitMod) const
 
bool CanModifyStats () const
 
void SetCanModifyStats (bool modifyStats)
 
virtual bool UpdateStats (Stats stat)=0
 
virtual bool UpdateAllStats ()=0
 
virtual void UpdateResistances (uint32 school)
 
virtual void UpdateAllResistances ()
 
virtual void UpdateArmor ()=0
 
virtual void UpdateMaxHealth ()=0
 
virtual void UpdateMaxPower (Powers power)=0
 
virtual uint32 GetPowerIndex (Powers power) const =0
 
virtual void UpdateAttackPowerAndDamage (bool ranged=false)=0
 
void SetAttackPower (int32 attackPower)
 
void SetAttackPowerModPos (int32 attackPowerMod)
 
void SetAttackPowerModNeg (int32 attackPowerMod)
 
void SetAttackPowerMultiplier (float attackPowerMult)
 
void SetRangedAttackPower (int32 attackPower)
 
void SetRangedAttackPowerModPos (int32 attackPowerMod)
 
void SetRangedAttackPowerModNeg (int32 attackPowerMod)
 
void SetRangedAttackPowerMultiplier (float attackPowerMult)
 
void SetMainHandWeaponAttackPower (int32 attackPower)
 
void SetOffHandWeaponAttackPower (int32 attackPower)
 
void SetRangedWeaponAttackPower (int32 attackPower)
 
virtual void UpdateDamagePhysical (WeaponAttackType attType)
 
float GetTotalAttackPowerValue (WeaponAttackType attType, bool includeWeapon=true) const
 
float GetWeaponDamageRange (WeaponAttackType attType, WeaponDamageRange type) const
 
void SetBaseWeaponDamage (WeaponAttackType attType, WeaponDamageRange damageRange, float value)
 
virtual void CalculateMinMaxDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, float &minDamage, float &maxDamage) const =0
 
uint32 CalculateDamage (WeaponAttackType attType, bool normalized, bool addTotalPct) const
 
float GetAPMultiplier (WeaponAttackType attType, bool normalized) const
 
bool isInFrontInMap (Unit const *target, float distance, float arc=float(M_PI)) const
 
bool isInBackInMap (Unit const *target, float distance, float arc=float(M_PI)) const
 
bool IsVisible () const
 
void SetVisible (bool x)
 
virtual void OnPhaseChange ()
 
void UpdateObjectVisibility (bool forced=true) override
 
VisibleAuraContainer const & GetVisibleAuras () const
 
bool HasVisibleAura (AuraApplication *aurApp) const
 
void SetVisibleAura (AuraApplication *aurApp)
 
void RemoveVisibleAura (AuraApplication *aurApp)
 
void SetVisibleAuraUpdate (AuraApplication *aurApp)
 
void RemoveVisibleAuraUpdate (AuraApplication *aurApp)
 
bool HasInterruptFlag (SpellAuraInterruptFlags flags) const
 
bool HasInterruptFlag (SpellAuraInterruptFlags2 flags) const
 
void AddInterruptMask (SpellAuraInterruptFlags flags, SpellAuraInterruptFlags2 flags2)
 
void UpdateInterruptMask ()
 
virtual float GetNativeObjectScale () const
 
virtual void RecalculateObjectScale ()
 
uint32 GetDisplayId () const
 
float GetDisplayScale () const
 
virtual void SetDisplayId (uint32 displayId, bool setNative=false)
 
uint32 GetNativeDisplayId () const
 
float GetNativeDisplayScale () const
 
void RestoreDisplayId (bool ignorePositiveAurasPreventingMounting=false)
 
void SetTransformSpell (uint32 spellid)
 
uint32 GetTransformSpell () const
 
void _RegisterDynObject (DynamicObject *dynObj)
 
void _UnregisterDynObject (DynamicObject *dynObj)
 
DynamicObjectGetDynObject (uint32 spellId) const
 
std::vector< DynamicObject * > GetDynObjects (uint32 spellId) const
 
void RemoveDynObject (uint32 spellId)
 
void RemoveAllDynObjects ()
 
GameObjectGetGameObject (uint32 spellId) const
 
std::vector< GameObject * > GetGameObjects (uint32 spellId) const
 
void AddGameObject (GameObject *gameObj)
 
void RemoveGameObject (GameObject *gameObj, bool del)
 
void RemoveGameObject (uint32 spellid, bool del)
 
void RemoveAllGameObjects ()
 
void _RegisterAreaTrigger (AreaTrigger *areaTrigger)
 
void _UnregisterAreaTrigger (AreaTrigger *areaTrigger)
 
AreaTriggerGetAreaTrigger (uint32 spellId) const
 
std::vector< AreaTrigger * > GetAreaTriggers (uint32 spellId) const
 
void RemoveAreaTrigger (uint32 spellId)
 
void RemoveAreaTrigger (AuraEffect const *aurEff)
 
void RemoveAllAreaTriggers ()
 
void ModifyAuraState (AuraStateType flag, bool apply)
 
uint32 BuildAuraStateUpdateForTarget (Unit const *target) const
 
bool HasAuraState (AuraStateType flag, SpellInfo const *spellProto=nullptr, Unit const *Caster=nullptr) const
 
void UnsummonAllTotems ()
 
bool IsMagnet () const
 
UnitGetMeleeHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo=nullptr)
 
int32 SpellBaseDamageBonusDone (SpellSchoolMask schoolMask) const
 
int32 SpellDamageBonusDone (Unit *victim, SpellInfo const *spellProto, int32 pdamage, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, uint32 stack=1, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr) const
 
float SpellDamagePctDone (Unit *victim, SpellInfo const *spellProto, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo) const
 
int32 SpellDamageBonusTaken (Unit *caster, SpellInfo const *spellProto, int32 pdamage, DamageEffectType damagetype) const
 
int32 SpellBaseHealingBonusDone (SpellSchoolMask schoolMask) const
 
int32 SpellHealingBonusDone (Unit *victim, SpellInfo const *spellProto, int32 healamount, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, uint32 stack=1, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr) const
 
float SpellHealingPctDone (Unit *victim, SpellInfo const *spellProto) const
 
int32 SpellHealingBonusTaken (Unit *caster, SpellInfo const *spellProto, int32 healamount, DamageEffectType damagetype) const
 
int32 MeleeDamageBonusDone (Unit *pVictim, int32 damage, WeaponAttackType attType, DamageEffectType damagetype, SpellInfo const *spellProto=nullptr, Mechanics mechanic=MECHANIC_NONE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr)
 
int32 MeleeDamageBonusTaken (Unit *attacker, int32 pdamage, WeaponAttackType attType, DamageEffectType damagetype, SpellInfo const *spellProto=nullptr, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL)
 
bool IsBlockCritical ()
 
float SpellCritChanceDone (Spell *spell, AuraEffect const *aurEff, SpellSchoolMask schoolMask, WeaponAttackType attackType=BASE_ATTACK) const
 
float SpellCritChanceTaken (Unit const *caster, Spell *spell, AuraEffect const *aurEff, SpellSchoolMask schoolMask, float doneChance, WeaponAttackType attackType=BASE_ATTACK) const
 
void ApplySpellImmune (uint32 spellId, SpellImmunity op, uint32 type, bool apply)
 
bool IsImmunedToSpell (SpellInfo const *spellInfo, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const
 
uint32 GetSchoolImmunityMask () const
 
uint32 GetDamageImmunityMask () const
 
uint64 GetMechanicImmunityMask () const
 
EnumFlag< SpellOtherImmunityGetSpellOtherImmunityMask () const
 
bool IsImmunedToDamage (SpellSchoolMask meleeSchoolMask) const
 
bool IsImmunedToDamage (SpellInfo const *spellInfo, SpellEffectInfo const *spellEffectInfo=nullptr) const
 
virtual bool IsImmunedToSpellEffect (SpellInfo const *spellInfo, SpellEffectInfo const &spellEffectInfo, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const
 
void UpdateSpeed (UnitMoveType mtype)
 
float GetSpeed (UnitMoveType mtype) const
 
float GetSpeedRate (UnitMoveType mtype) const
 
void SetSpeed (UnitMoveType mtype, float newValue)
 
void SetSpeedRate (UnitMoveType mtype, float rate)
 
void FollowerAdded (AbstractFollower *f)
 
void FollowerRemoved (AbstractFollower *f)
 
void RemoveAllFollowers ()
 
MotionMasterGetMotionMaster ()
 
MotionMaster const * GetMotionMaster () const
 
virtual MovementGeneratorType GetDefaultMovementType () const
 
bool IsStopped () const
 
void StopMoving ()
 
void PauseMovement (uint32 timer=0, uint8 slot=0, bool forced=true)
 
void ResumeMovement (uint32 timer=0, uint8 slot=0)
 
void AddUnitMovementFlag (uint32 f)
 
void RemoveUnitMovementFlag (uint32 f)
 
bool HasUnitMovementFlag (uint32 f) const
 
uint32 GetUnitMovementFlags () const
 
void SetUnitMovementFlags (uint32 f)
 
void AddExtraUnitMovementFlag (uint32 f)
 
void RemoveExtraUnitMovementFlag (uint32 f)
 
bool HasExtraUnitMovementFlag (uint32 f) const
 
uint32 GetExtraUnitMovementFlags () const
 
void SetExtraUnitMovementFlags (uint32 f)
 
void AddExtraUnitMovementFlag2 (uint32 f)
 
void RemoveExtraUnitMovementFlag2 (uint32 f)
 
bool HasExtraUnitMovementFlag2 (uint32 f) const
 
uint32 GetExtraUnitMovementFlags2 () const
 
void SetExtraUnitMovementFlags2 (uint32 f)
 
bool IsSplineEnabled () const
 
void SetControlled (bool apply, UnitState state)
 
void ApplyControlStatesIfNeeded ()
 
void SendPetActionFeedback (PetActionFeedback msg, uint32 spellId)
 -------—Pet responses methods--------------— More...
 
void SendPetTalk (uint32 pettalk)
 
void SendPetAIReaction (ObjectGuid guid)
 
void PropagateSpeedChange ()
 -------—End of Pet responses methods-------— More...
 
void ClearAllReactives ()
 
void StartReactiveTimer (ReactiveType reactive)
 
void UpdateReactives (uint32 p_time)
 
void UpdateAuraForGroup ()
 
bool CanProc () const
 
void SetCantProc (bool apply)
 
int32 GetProcChainLength () const
 
uint32 GetModelForForm (ShapeshiftForm form, uint32 spellId) const
 
bool CreateVehicleKit (uint32 id, uint32 creatureEntry, bool loading=false)
 
void RemoveVehicleKit (bool onRemoveFromWorld=false)
 
VehicleGetVehicleKit () const
 
Trinity::unique_weak_ptr< VehicleGetVehicleKitWeakPtr () const
 
VehicleGetVehicle () const
 
void SetVehicle (Vehicle *vehicle)
 
bool IsOnVehicle (Unit const *vehicle) const
 
UnitGetVehicleBase () const
 
UnitGetVehicleRoot () const
 
CreatureGetVehicleCreatureBase () const
 
ObjectGuid GetTransGUID () const override
 
TransportBaseGetDirectTransport () const
 Returns the transport this unit is on directly (if on vehicle and transport, return vehicle) More...
 
void HandleSpellClick (Unit *clicker, int8 seatId=-1)
 
void EnterVehicle (Unit *base, int8 seatId=-1)
 
virtual void ExitVehicle (Position const *exitPosition=nullptr)
 
void ChangeSeat (int8 seatId, bool next=true)
 
void _ExitVehicle (Position const *exitPosition=nullptr)
 
void _EnterVehicle (Vehicle *vehicle, int8 seatId, AuraApplication const *aurApp=nullptr)
 
bool isMoving () const
 
bool isTurning () const
 
virtual bool CanFly () const =0
 
bool IsFlying () const
 
bool IsFalling () const
 
virtual bool CanEnterWater () const =0
 
virtual bool CanSwim () const
 
float GetHoverOffset () const
 
void RewardRage (uint32 baseRage)
 
virtual float GetFollowAngle () const
 
void OutDebugInfo () const
 
virtual bool IsLoading () const
 
bool IsDuringRemoveFromWorld () const
 
PetToPet ()
 
Pet const * ToPet () const
 
TotemToTotem ()
 
Totem const * ToTotem () const
 
TempSummonToTempSummon ()
 
TempSummon const * ToTempSummon () const
 
ObjectGuid GetTarget () const
 
virtual void SetTarget (ObjectGuid const &)=0
 
void SetInstantCast (bool set)
 
bool CanInstantCast () const
 
int32 GetHighestExclusiveSameEffectSpellGroupValue (AuraEffect const *aurEff, AuraType auraType, bool checkMiscValue=false, int32 miscValue=0) const
 
bool IsHighestExclusiveAura (Aura const *aura, bool removeOtherAuraApplications=false)
 
bool IsHighestExclusiveAuraEffect (SpellInfo const *spellInfo, AuraType auraType, int32 effectAmount, uint32 auraEffectMask, bool removeOtherAuraApplications=false)
 
virtual void Talk (std::string_view text, ChatMsg msgType, Language language, float textRange, WorldObject const *target)
 
virtual void Say (std::string_view text, Language language, WorldObject const *target=nullptr)
 
virtual void Yell (std::string_view text, Language language, WorldObject const *target=nullptr)
 
virtual void TextEmote (std::string_view text, WorldObject const *target=nullptr, bool isBossEmote=false)
 
virtual void Whisper (std::string_view text, Language language, Player *target, bool isBossWhisper=false)
 
virtual void Talk (uint32 textId, ChatMsg msgType, float textRange, WorldObject const *target)
 
virtual void Say (uint32 textId, WorldObject const *target=nullptr)
 
virtual void Yell (uint32 textId, WorldObject const *target=nullptr)
 
virtual void TextEmote (uint32 textId, WorldObject const *target=nullptr, bool isBossEmote=false)
 
virtual void Whisper (uint32 textId, Player *target, bool isBossWhisper=false)
 
void ClearBossEmotes (Optional< uint32 > zoneId={}, Player const *target=nullptr) const
 Clears boss emotes frame. More...
 
float GetCollisionHeight () const override
 
uint32 GetVirtualItemId (uint32 slot) const
 
uint16 GetVirtualItemAppearanceMod (uint32 slot) const
 
void SetVirtualItem (uint32 slot, uint32 itemId, uint16 appearanceModId=0, uint16 itemVisual=0)
 
bool IsCombatDisallowed () const
 
void SetIsCombatDisallowed (bool apply)
 
void AddWorldEffect (int32 worldEffectId)
 
void RemoveWorldEffect (int32 worldEffectId)
 
void ClearWorldEffects ()
 
Vignettes::VignetteData const * GetVignette () const
 
void SetVignette (uint32 vignetteId)
 
std::string GetDebugInfo () const override
 
void BuildValuesUpdateWithFlag (ByteBuffer *data, UF::UpdateFieldFlag flags, Player const *target) const override
 
void BuildValuesUpdateForPlayerWithMask (UpdateData *data, UF::ObjectData::Mask const &requestedObjectMask, UF::UnitData::Mask const &requestedUnitMask, Player const *target) const
 
void AtStartOfEncounter (EncounterType type)
 
void AtEndOfEncounter (EncounterType type)
 
- Public Member Functions inherited from WorldObject
virtual ~WorldObject ()
 
virtual void Update (uint32 diff)
 
void AddToWorld () override
 
void RemoveFromWorld () override
 
void GetNearPoint2D (WorldObject const *searcher, float &x, float &y, float distance, float absAngle) const
 
void GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float distance2d, float absAngle) const
 
void GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float relAngle=0) const
 
void MovePosition (Position &pos, float dist, float angle)
 
Position GetNearPosition (float dist, float angle)
 
void MovePositionToFirstCollision (Position &pos, float dist, float angle)
 
Position GetFirstCollisionPosition (float dist, float angle)
 
Position GetRandomNearPosition (float radius)
 
void GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const
 
virtual float GetCombatReach () const
 
void UpdateGroundPositionZ (float x, float y, float &z) const
 
void UpdateAllowedPositionZ (float x, float y, float &z, float *groundZ=nullptr) const
 
void GetRandomPoint (Position const &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const
 
Position GetRandomPoint (Position const &srcPos, float distance) const
 
uint32 GetInstanceId () const
 
PhaseShiftGetPhaseShift ()
 
PhaseShift const & GetPhaseShift () const
 
PhaseShiftGetSuppressedPhaseShift ()
 
PhaseShift const & GetSuppressedPhaseShift () const
 
bool InSamePhase (PhaseShift const &phaseShift) const
 
bool InSamePhase (WorldObject const *obj) const
 
int32 GetDBPhase () const
 
void SetDBPhase (int32 p)
 
uint32 GetZoneId () const
 
uint32 GetAreaId () const
 
void GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const
 
bool IsInWorldPvpZone () const
 
bool IsOutdoors () const
 
ZLiquidStatus GetLiquidStatus () const
 
WmoLocation const * GetCurrentWmo () const
 
InstanceScriptGetInstanceScript () const
 
std::string const & GetName () const
 
void SetName (std::string newname)
 
std::string GetNameForLocaleIdx (LocaleConstant) const override
 
float GetDistance (WorldObject const *obj) const
 
float GetDistance (Position const &pos) const
 
float GetDistance (float x, float y, float z) const
 
float GetDistance2d (WorldObject const *obj) const
 
float GetDistance2d (float x, float y) const
 
float GetDistanceZ (WorldObject const *obj) const
 
bool IsSelfOrInSameMap (WorldObject const *obj) const
 
bool IsInMap (WorldObject const *obj) const
 
bool IsWithinDist3d (float x, float y, float z, float dist) const
 
bool IsWithinDist3d (Position const *pos, float dist) const
 
bool IsWithinDist2d (float x, float y, float dist) const
 
bool IsWithinDist2d (Position const *pos, float dist) const
 
bool IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const
 
bool IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const
 
bool IsWithinLOS (float x, float y, float z, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const
 
bool IsWithinLOSInMap (WorldObject const *obj, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const
 
Position GetHitSpherePointFor (Position const &dest) const
 
void GetHitSpherePointFor (Position const &dest, float &x, float &y, float &z) const
 
bool GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const
 
bool IsInRange (WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const
 
bool IsInRange2d (float x, float y, float minRange, float maxRange) const
 
bool IsInRange3d (float x, float y, float z, float minRange, float maxRange) const
 
bool isInFront (WorldObject const *target, float arc=float(M_PI)) const
 
bool isInBack (WorldObject const *target, float arc=float(M_PI)) const
 
bool IsInBetween (Position const &pos1, Position const &pos2, float size=0) const
 
bool IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const
 
virtual void CleanupsBeforeDelete (bool finalCleanup=true)
 
virtual void SendMessageToSet (WorldPacket const *data, bool self) const
 
virtual void SendMessageToSetInRange (WorldPacket const *data, float dist, bool self) const
 
virtual void SendMessageToSet (WorldPacket const *data, Player const *skipped_rcvr) const
 
void SendCombatLogMessage (WorldPackets::CombatLog::CombatLogServerPacket *combatLog) const
 
virtual uint8 GetLevelForTarget (WorldObject const *) const
 
void PlayDistanceSound (uint32 soundId, Player const *target=nullptr) const
 
void StopDistanceSound (Player const *target=nullptr) const
 
void PlayDirectSound (uint32 soundId, Player const *target=nullptr, uint32 broadcastTextId=0) const
 
void PlayDirectMusic (uint32 musicId, Player const *target=nullptr) const
 
void PlayObjectSound (int32 soundKitId, ObjectGuid targetObject, Player const *target=nullptr, int32 broadcastTextId=0) const
 
void AddObjectToRemoveList ()
 
float GetGridActivationRange () const
 
float GetVisibilityRange () const
 
float GetSightRange (WorldObject const *target=nullptr) const
 
bool CanSeeOrDetect (WorldObject const *obj, bool implicitDetect=false, bool distanceCheck=false, bool checkAlert=false) const
 
virtual void SetMap (Map *map)
 
virtual void ResetMap ()
 
MapGetMap () const
 
MapFindMap () const
 
void SetZoneScript ()
 
ZoneScriptFindZoneScript () const
 
ZoneScriptGetZoneScript () const
 
ScenarioGetScenario () const
 
TempSummonSummonCreature (uint32 entry, Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty)
 
TempSummonSummonCreature (uint32 entry, float x, float y, float z, float o=0, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, ObjectGuid privateObjectOwner=ObjectGuid::Empty)
 
TempSummonSummonPersonalClone (Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, Player *privateObjectOwner=nullptr)
 
GameObjectSummonGameObject (uint32 entry, Position const &pos, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN)
 
GameObjectSummonGameObject (uint32 entry, float x, float y, float z, float ang, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN)
 
CreatureSummonTrigger (float x, float y, float z, float ang, Milliseconds despawnTime, CreatureAI *(*GetAI)(Creature *)=nullptr)
 
void SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=nullptr)
 
CreatureFindNearestCreature (uint32 entry, float range, bool alive=true) const
 
CreatureFindNearestCreatureWithOptions (float range, FindCreatureOptions const &options) const
 
GameObjectFindNearestGameObject (uint32 entry, float range, bool spawnedOnly=true) const
 
GameObjectFindNearestGameObjectWithOptions (float range, FindGameObjectOptions const &options) const
 
GameObjectFindNearestUnspawnedGameObject (uint32 entry, float range) const
 
GameObjectFindNearestGameObjectOfType (GameobjectTypes type, float range) const
 
PlayerSelectNearestPlayer (float range) const
 
virtual ObjectGuid GetCreatorGUID () const =0
 
virtual ObjectGuid GetOwnerGUID () const =0
 
virtual ObjectGuid GetCharmerOrOwnerGUID () const
 
ObjectGuid GetCharmerOrOwnerOrOwnGUID () const
 
UnitGetOwner () const
 
UnitGetCharmerOrOwner () const
 
UnitGetCharmerOrOwnerOrSelf () const
 
PlayerGetCharmerOrOwnerPlayerOrPlayerItself () const
 
PlayerGetAffectingPlayer () const
 
PlayerGetSpellModOwner () const
 
int32 CalculateSpellDamage (Unit const *target, SpellEffectInfo const &spellEffectInfo, int32 const *basePoints=nullptr, float *variance=nullptr, uint32 castItemId=0, int32 itemLevel=-1) const
 
float GetSpellMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const
 
float GetSpellMinRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const
 
double ApplyEffectModifiers (SpellInfo const *spellInfo, uint8 effIndex, double value) const
 
int32 CalcSpellDuration (SpellInfo const *spellInfo, std::vector< SpellPowerCost > const *powerCosts) const
 
int32 ModSpellDuration (SpellInfo const *spellInfo, WorldObject const *target, int32 duration, bool positive, uint32 effectMask) const
 
void ModSpellCastTime (SpellInfo const *spellInfo, int32 &castTime, Spell *spell=nullptr) const
 
void ModSpellDurationTime (SpellInfo const *spellInfo, int32 &durationTime, Spell *spell=nullptr) const
 
virtual float MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, SpellInfo const *spellInfo) const
 
virtual SpellMissInfo MeleeSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const
 
SpellMissInfo MagicSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const
 
SpellMissInfo SpellHitResult (Unit *victim, SpellInfo const *spellInfo, bool canReflect=false) const
 
void SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo)
 
virtual uint32 GetFaction () const =0
 
virtual void SetFaction (uint32)
 
FactionTemplateEntry const * GetFactionTemplateEntry () const
 
ReputationRank GetReactionTo (WorldObject const *target) const
 
bool IsHostileTo (WorldObject const *target) const
 
bool IsHostileToPlayers () const
 
bool IsFriendlyTo (WorldObject const *target) const
 
bool IsNeutralToAll () const
 
SpellCastResult CastSpell (CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
 
void SendPlayOrphanSpellVisual (ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendPlayOrphanSpellVisual (Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendCancelOrphanSpellVisual (uint32 id)
 
bool IsValidAttackTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const
 
bool IsValidAssistTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const
 
UnitGetMagicHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo)
 
virtual uint32 GetCastSpellXSpellVisualId (SpellInfo const *spellInfo) const
 
template<typename Container >
void GetGameObjectListWithEntryInGrid (Container &gameObjectContainer, uint32 entry, float maxSearchRange=250.0f) const
 
template<typename Container >
void GetGameObjectListWithOptionsInGrid (Container &gameObjectContainer, float maxSearchRange, FindGameObjectOptions const &options) const
 
template<typename Container >
void GetCreatureListWithEntryInGrid (Container &creatureContainer, uint32 entry, float maxSearchRange=250.0f) const
 
template<typename Container >
void GetCreatureListWithOptionsInGrid (Container &creatureContainer, float maxSearchRange, FindCreatureOptions const &options) const
 
template<typename Container >
void GetPlayerListInGrid (Container &playerContainer, float maxSearchRange, bool alive=true) const
 
void DestroyForNearbyPlayers ()
 
virtual void UpdateObjectVisibility (bool forced=true)
 
virtual void UpdateObjectVisibilityOnCreate ()
 
virtual void UpdateObjectVisibilityOnDestroy ()
 
void UpdatePositionData ()
 
void BuildUpdate (UpdateDataMapType &) override
 
bool AddToObjectUpdate () override
 
void RemoveFromObjectUpdate () override
 
void AddToNotify (uint16 f)
 
bool isNeedNotify (uint16 f) const
 
uint16 GetNotifyFlags () const
 
void ResetAllNotifies ()
 
bool isActiveObject () const
 
void setActive (bool isActiveObject)
 
bool IsFarVisible () const
 
void SetFarVisible (bool on)
 
bool IsVisibilityOverridden () const
 
void SetVisibilityDistanceOverride (VisibilityDistanceType type)
 
void SetIsStoredInWorldObjectGridContainer (bool apply)
 
bool IsAlwaysStoredInWorldObjectGridContainer () const
 
bool IsStoredInWorldObjectGridContainer () const
 
TransportBaseGetTransport () const
 
float GetTransOffsetX () const
 
float GetTransOffsetY () const
 
float GetTransOffsetZ () const
 
float GetTransOffsetO () const
 
Position const & GetTransOffset () const
 
uint32 GetTransTime () const
 
int8 GetTransSeat () const
 
virtual ObjectGuid GetTransGUID () const
 
void SetTransport (TransportBase *t)
 
virtual float GetStationaryX () const
 
virtual float GetStationaryY () const
 
virtual float GetStationaryZ () const
 
virtual float GetStationaryO () const
 
float GetFloorZ () const
 
virtual float GetCollisionHeight () const
 
float GetMapWaterOrGroundLevel (float x, float y, float z, float *ground=nullptr) const
 
float GetMapHeight (float x, float y, float z, bool vmap=true, float distanceToSearch=50.0f) const
 
std::string GetDebugInfo () const override
 
virtual uint16 GetAIAnimKitId () const
 
virtual uint16 GetMovementAnimKitId () const
 
virtual uint16 GetMeleeAnimKitId () const
 
bool IsPrivateObject () const
 
ObjectGuid GetPrivateObjectOwner () const
 
void SetPrivateObjectOwner (ObjectGuid const &owner)
 
bool CheckPrivateObjectOwnerVisibility (WorldObject const *seer) const
 
SmoothPhasingGetOrCreateSmoothPhasing ()
 
SmoothPhasingGetSmoothPhasing ()
 
SmoothPhasing const * GetSmoothPhasing () const
 
- Public Member Functions inherited from Object
virtual ~Object ()
 
bool IsInWorld () const
 
virtual void AddToWorld ()
 
virtual void RemoveFromWorld ()
 
ObjectGuid const & GetGUID () const
 
uint32 GetEntry () const
 
void SetEntry (uint32 entry)
 
float GetObjectScale () const
 
virtual void SetObjectScale (float scale)
 
uint32 GetDynamicFlags () const
 
bool HasDynamicFlag (uint32 flag) const
 
void SetDynamicFlag (uint32 flag)
 
void RemoveDynamicFlag (uint32 flag)
 
void ReplaceAllDynamicFlags (uint32 flag)
 
TypeID GetTypeId () const
 
bool isType (uint16 mask) const
 
virtual void BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const
 
void SendUpdateToPlayer (Player *player)
 
void BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const
 
void BuildValuesUpdateBlockForPlayerWithFlag (UpdateData *data, UF::UpdateFieldFlag flags, Player const *target) const
 
void BuildDestroyUpdateBlock (UpdateData *data) const
 
void BuildOutOfRangeUpdateBlock (UpdateData *data) const
 
ByteBufferPrepareValuesUpdateBuffer (UpdateData *data) const
 
virtual void DestroyForPlayer (Player *target) const
 
void SendOutOfRangeForPlayer (Player *target) const
 
virtual void ClearUpdateMask (bool remove)
 
virtual std::string GetNameForLocaleIdx (LocaleConstant locale) const =0
 
virtual bool hasQuest (uint32) const
 
virtual bool hasInvolvedQuest (uint32) const
 
void SetIsNewObject (bool enable)
 
bool IsDestroyedObject () const
 
void SetDestroyedObject (bool destroyed)
 
virtual void BuildUpdate (UpdateDataMapType &)
 
void BuildFieldsUpdate (Player *, UpdateDataMapType &) const
 
bool IsWorldObject () const
 
WorldObjectToWorldObject ()
 
WorldObject const * ToWorldObject () const
 
bool IsItem () const
 
ItemToItem ()
 
Item const * ToItem () const
 
bool IsPlayer () const
 
PlayerToPlayer ()
 
Player const * ToPlayer () const
 
bool IsCreature () const
 
CreatureToCreature ()
 
Creature const * ToCreature () const
 
bool IsUnit () const
 
UnitToUnit ()
 
Unit const * ToUnit () const
 
bool IsGameObject () const
 
GameObjectToGameObject ()
 
GameObject const * ToGameObject () const
 
bool IsCorpse () const
 
CorpseToCorpse ()
 
Corpse const * ToCorpse () const
 
bool IsDynObject () const
 
DynamicObjectToDynObject ()
 
DynamicObject const * ToDynObject () const
 
bool IsAreaTrigger () const
 
AreaTriggerToAreaTrigger ()
 
AreaTrigger const * ToAreaTrigger () const
 
bool IsSceneObject () const
 
SceneObjectToSceneObject ()
 
SceneObject const * ToSceneObject () const
 
bool IsConversation () const
 
ConversationToConversation ()
 
Conversation const * ToConversation () const
 
template<typename T >
void ForceUpdateFieldChange (UF::UpdateFieldSetter< T > const &)
 
virtual std::string GetDebugInfo () const
 
Trinity::unique_weak_ptr< ObjectGetWeakPtr () const
 
virtual LootGetLootForPlayer (Player const *player) const
 
virtual void BuildValuesUpdateWithFlag (ByteBuffer *data, UF::UpdateFieldFlag flags, Player const *target) const
 
- Public Member Functions inherited from WorldLocation
constexpr WorldLocation (uint32 mapId=MAPID_INVALID, float x=0.f, float y=0.f, float z=0.f, float o=0.f)
 
constexpr WorldLocation (uint32 mapId, Position const &position)
 
constexpr void WorldRelocate (WorldLocation const &loc)
 
constexpr void WorldRelocate (WorldLocation const *loc)
 
constexpr void WorldRelocate (uint32 mapId, Position const &pos)
 
constexpr void WorldRelocate (uint32 mapId=MAPID_INVALID, float x=0.f, float y=0.f, float z=0.f, float o=0.f)
 
constexpr WorldLocation GetWorldLocation () const
 
constexpr uint32 GetMapId () const
 
std::string GetDebugInfo () const
 
- Public Member Functions inherited from Position
constexpr Position (float x=0, float y=0, float z=0, float o=0)
 
bool operator== (Position const &a) const
 
constexpr void Relocate (float x, float y)
 
constexpr void Relocate (float x, float y, float z)
 
constexpr void Relocate (float x, float y, float z, float o)
 
constexpr void Relocate (Position const &pos)
 
constexpr void Relocate (Position const *pos)
 
void RelocateOffset (Position const &offset)
 
constexpr void SetOrientation (float orientation)
 
constexpr float GetPositionX () const
 
constexpr float GetPositionY () const
 
constexpr float GetPositionZ () const
 
constexpr float GetOrientation () const
 
constexpr void GetPosition (float &x, float &y) const
 
constexpr void GetPosition (float &x, float &y, float &z) const
 
constexpr void GetPosition (float &x, float &y, float &z, float &o) const
 
constexpr Position GetPosition () const
 
Streamer< XY > PositionXYStream ()
 
ConstStreamer< XY > PositionXYStream () const
 
Streamer< XYZ > PositionXYZStream ()
 
ConstStreamer< XYZ > PositionXYZStream () const
 
Streamer< XYZO > PositionXYZOStream ()
 
ConstStreamer< XYZO > PositionXYZOStream () const
 
Streamer< PackedXYZ > PositionPackedXYZStream ()
 
ConstStreamer< PackedXYZ > PositionPackedXYZStream () const
 
bool IsPositionValid () const
 
constexpr float GetExactDist2dSq (const float x, const float y) const
 
constexpr float GetExactDist2dSq (Position const &pos) const
 
constexpr float GetExactDist2dSq (Position const *pos) const
 
float GetExactDist2d (const float x, const float y) const
 
float GetExactDist2d (Position const &pos) const
 
float GetExactDist2d (Position const *pos) const
 
constexpr float GetExactDistSq (float x, float y, float z) const
 
constexpr float GetExactDistSq (Position const &pos) const
 
constexpr float GetExactDistSq (Position const *pos) const
 
float GetExactDist (float x, float y, float z) const
 
float GetExactDist (Position const &pos) const
 
float GetExactDist (Position const *pos) const
 
void GetPositionOffsetTo (Position const &endPos, Position &retOffset) const
 
Position GetPositionWithOffset (Position const &offset) const
 
float GetAbsoluteAngle (float x, float y) const
 
float GetAbsoluteAngle (Position const &pos) const
 
float GetAbsoluteAngle (Position const *pos) const
 
float ToAbsoluteAngle (float relAngle) const
 
float ToRelativeAngle (float absAngle) const
 
float GetRelativeAngle (float x, float y) const
 
float GetRelativeAngle (Position const &pos) const
 
float GetRelativeAngle (Position const *pos) const
 
constexpr bool IsInDist2d (float x, float y, float dist) const
 
constexpr bool IsInDist2d (Position const *pos, float dist) const
 
constexpr bool IsInDist (float x, float y, float z, float dist) const
 
constexpr bool IsInDist (Position const &pos, float dist) const
 
constexpr bool IsInDist (Position const *pos, float dist) const
 
bool IsWithinBox (Position const &center, float xradius, float yradius, float zradius) const
 
bool IsWithinDoubleVerticalCylinder (Position const *center, float radius, float height) const
 
bool HasInArc (float arcangle, Position const *pos, float border=2.0f) const
 
bool HasInLine (Position const *pos, float objSize, float width) const
 
std::string ToString () const
 
- Public Member Functions inherited from GridObject< Creature >
virtual ~GridObject ()
 
bool IsInGrid () const
 
void AddToGrid (GridRefManager< Creature > &m)
 
void RemoveFromGrid ()
 

Static Public Member Functions

static CreatureCreateCreature (uint32 entry, Map *map, Position const &pos, uint32 vehId=0)
 
static CreatureCreateCreatureFromDB (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 ObjectGuid GetGUID (Object const *o)
 
static WorldObjectToWorldObject (Object *o)
 
static WorldObject const * ToWorldObject (Object const *o)
 
static ItemToItem (Object *o)
 
static Item const * ToItem (Object const *o)
 
static PlayerToPlayer (Object *o)
 
static Player const * ToPlayer (Object const *o)
 
static CreatureToCreature (Object *o)
 
static Creature const * ToCreature (Object const *o)
 
static UnitToUnit (Object *o)
 
static Unit const * ToUnit (Object const *o)
 
static GameObjectToGameObject (Object *o)
 
static GameObject const * ToGameObject (Object const *o)
 
static CorpseToCorpse (Object *o)
 
static Corpse const * ToCorpse (Object const *o)
 
static DynamicObjectToDynObject (Object *o)
 
static DynamicObject const * ToDynObject (Object const *o)
 
static AreaTriggerToAreaTrigger (Object *o)
 
static AreaTrigger const * ToAreaTrigger (Object const *o)
 
static SceneObjectToSceneObject (Object *o)
 
static SceneObject const * ToSceneObject (Object const *o)
 
static ConversationToConversation (Object *o)
 
static Conversation const * ToConversation (Object const *o)
 
- Static Public Member Functions inherited from Position
static float NormalizeOrientation (float o)
 

Public Attributes

std::unique_ptr< Lootm_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
 
::Spell const * Spell = nullptr
 
uint32 Delay = 0
 
ObjectGuid Target
 
float Orientation = 0.0f
 
- Public Attributes inherited from Unit
bool m_canDualWield
 
ControlList m_Controlled
 
std::array< ObjectGuid, MAX_SUMMON_SLOTm_SummonSlot
 
std::array< ObjectGuid, MAX_GAMEOBJECT_SLOTm_ObjectSlot
 
float m_modMeleeHitChance
 
float m_modRangedHitChance
 
float m_modSpellHitChance
 
float m_baseSpellCritChance
 
std::array< uint32, MAX_ATTACKm_baseAttackSpeed
 
std::array< float, MAX_ATTACKm_modAttackSpeedPct
 
std::array< uint32, MAX_ATTACKm_attackTimer
 
SpellImmuneContainer m_spellImmune [MAX_SPELL_IMMUNITY]
 
uint32 m_lastSanctuaryTime
 
ObjectGuid LastCharmerGUID
 
std::unique_ptr< Movement::MoveSplinemovespline
 
UF::UpdateField< UF::UnitData, 0, TYPEID_UNITm_unitData
 
- Public Attributes inherited from WorldObject
FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPESm_stealth
 
FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPESm_stealthDetect
 
FlaggedValuesArray32< int32, uint64, InvisibilityType, TOTAL_INVISIBILITY_TYPESm_invisibility
 
FlaggedValuesArray32< int32, uint64, InvisibilityType, TOTAL_INVISIBILITY_TYPESm_invisibilityDetect
 
FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPESm_serverSideVisibility
 
FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPESm_serverSideVisibilityDetect
 
uint32 LastUsedScriptID
 
MovementInfo m_movementInfo
 
EventProcessor m_Events
 
- Public Attributes inherited from Object
UF::UpdateFieldHolder m_values
 
UF::UpdateField< UF::ObjectData, 0, TYPEID_OBJECTm_objectData
 
- Public Attributes inherited from WorldLocation
uint32 m_mapId
 
- Public Attributes inherited from Position
float m_positionX
 
float m_positionY
 
float m_positionZ
 

Protected Member Functions

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)
 
UnitAIGetTopAI () const
 
void RefreshAI ()
 
UnitAIGetScheduledChangeAI ()
 
bool HasScheduledAIChange () const
 
 Unit (bool isWorldObject)
 
UF::UpdateFieldFlag GetUpdateFieldFlagsFor (Player const *target) const override
 
void BuildValuesCreate (ByteBuffer *data, Player const *target) const override
 
void BuildValuesUpdate (ByteBuffer *data, Player const *target) const override
 
void DestroyForPlayer (Player *target) const override
 
void ClearUpdateMask (bool remove) override
 
void _UpdateSpells (uint32 time)
 
void _DeleteRemovedAuras ()
 
void _UpdateAutoRepeatSpell ()
 
bool IsAlwaysVisibleFor (WorldObject const *seer) const override
 
bool IsAlwaysDetectableFor (WorldObject const *seer) const override
 
void DisableSpline ()
 
void ProcessPositionDataChanged (PositionFullTerrainStatus const &data) override
 
virtual void ProcessTerrainStatusUpdate (ZLiquidStatus oldLiquidStatus, Optional< LiquidData > const &newLiquidData)
 
virtual void AtEnterCombat ()
 
virtual void AtExitCombat ()
 
virtual void AtEngage (Unit *)
 
virtual void AtDisengage ()
 
void SetFeared (bool apply)
 
void SetConfused (bool apply)
 
void SetStunned (bool apply)
 
void SetRooted (bool apply, bool packetOnly=false)
 
- Protected Member Functions inherited from WorldObject
 WorldObject (bool isWorldObject)
 
virtual void ProcessPositionDataChanged (PositionFullTerrainStatus const &data)
 
void SetLocationMapId (uint32 _mapId)
 
void SetLocationInstanceId (uint32 _instanceId)
 
virtual bool CanNeverSee (WorldObject const *obj) const
 
virtual bool CanAlwaysSee (WorldObject const *) const
 
virtual bool IsNeverVisibleFor (WorldObject const *seer, bool allowServersideObjects=false) const
 
virtual bool IsAlwaysVisibleFor (WorldObject const *seer) const
 
virtual bool IsInvisibleDueToDespawn (WorldObject const *seer) const
 
virtual bool IsAlwaysDetectableFor (WorldObject const *seer) const
 
- Protected Member Functions inherited from Object
 Object ()
 
void _Create (ObjectGuid const &guid)
 
template<typename T >
void SetUpdateFieldValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type value)
 
template<typename T >
void SetUpdateFieldFlagValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type flag)
 
template<typename T >
void RemoveUpdateFieldFlagValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type flag)
 
template<typename T >
UF::DynamicUpdateFieldSetter< T >::insert_result AddDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter)
 
template<typename T >
UF::DynamicUpdateFieldSetter< T >::insert_result InsertDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index)
 
template<typename T >
void RemoveDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index)
 
template<typename T >
void ClearDynamicUpdateFieldValues (UF::DynamicUpdateFieldSetter< T > setter)
 
template<typename T >
void RemoveOptionalUpdateFieldValue (UF::OptionalUpdateFieldSetter< T > setter)
 
template<typename T >
void SetUpdateFieldStatValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type value)
 
template<typename T >
void ApplyModUpdateFieldValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type mod, bool apply)
 
template<typename T >
void ApplyPercentModUpdateFieldValue (UF::UpdateFieldSetter< T > setter, float percent, bool apply)
 
template<typename Action >
void DoWithSuppressingObjectUpdates (Action &&action)
 
void BuildMovementUpdate (ByteBuffer *data, CreateObjectBits flags, Player *target) const
 
virtual UF::UpdateFieldFlag GetUpdateFieldFlagsFor (Player const *target) const
 
virtual void BuildValuesCreate (ByteBuffer *data, Player const *target) const =0
 
virtual void BuildValuesUpdate (ByteBuffer *data, Player const *target) const =0
 
virtual bool AddToObjectUpdate ()=0
 
virtual void RemoveFromObjectUpdate ()=0
 
void AddToObjectUpdateIfNeeded ()
 
- Protected Member Functions inherited from MapObject
 MapObject ()
 

Static Protected Member Functions

static float GetHealthMod (CreatureClassifications classification)
 

Protected Attributes

VendorItemCounts m_vendorItemCounts
 
GuidUnorderedSet m_tapList
 
bool m_dontClearTapListOnEvade
 
time_t _pickpocketLootRestore
 Timers. More...
 
time_t m_corpseRemoveTime
 
time_t m_respawnTime
 
uint32 m_respawnDelay
 
uint32 m_corpseDelay
 
bool m_ignoreCorpseDecayRatio
 
float m_wanderDistance
 
uint32 m_boundaryCheckTime
 
uint32 m_combatPulseTime
 
uint32 m_combatPulseDelay
 
ReactStates m_reactState
 
MovementGeneratorType m_defaultMovementType
 
ObjectGuid::LowType m_spawnId
 For new or temporary creatures is 0 for saved it is lowguid. More...
 
uint8 m_equipmentId
 
int8 m_originalEquipmentId
 
bool m_AlreadyCallAssistance
 
bool m_AlreadySearchedAssistance
 
bool m_cannotReachTarget
 
uint32 m_cannotReachTimer
 
SpellSchoolMask m_meleeDamageSchoolMask
 
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_view, 3 > m_stringIds
 
Optional< std::string > m_scriptStringId
 
Optional< uint32m_lootId
 
uint16 m_LootMode
 
CreatureStaticFlagsHolder _staticFlags
 
- Protected Attributes inherited from Unit
bool m_ControlledByPlayer
 
std::array< float, MAX_STATSm_createStats
 
std::array< float, MAX_STATSm_floatStatPosBuff
 
std::array< float, MAX_STATSm_floatStatNegBuff
 
AttackerSet m_attackers
 
Unitm_attacking
 
DeathState m_deathState
 
int32 m_procDeep
 
int32 m_procChainLength
 
DynObjectList m_dynObj
 
GameObjectList m_gameObj
 
AreaTriggerList m_areaTrigger
 
uint32 m_transformSpell
 
std::array< Spell *, CURRENT_MAX_SPELLm_currentSpells
 
AuraMap m_ownedAuras
 
AuraApplicationMap m_appliedAuras
 
AuraList m_removedAuras
 
AuraMap::iterator m_auraUpdateIterator
 
uint32 m_removedAurasCount
 
std::array< AuraEffectList, TOTAL_AURASm_modAuras
 
AuraList m_scAuras
 
AuraApplicationList m_interruptableAuras
 
AuraStateAurasMap m_auraStateAuras
 
EnumFlag< SpellAuraInterruptFlagsm_interruptMask
 
EnumFlag< SpellAuraInterruptFlags2m_interruptMask2
 
float m_auraFlatModifiersGroup [UNIT_MOD_END][MODIFIER_TYPE_FLAT_END]
 
float m_auraPctModifiersGroup [UNIT_MOD_END][MODIFIER_TYPE_PCT_END]
 
float m_weaponDamage [MAX_ATTACK][2]
 
bool m_canModifyStats
 
VisibleAuraContainer m_visibleAuras
 
Trinity::Containers::FlatSet< AuraApplication *, VisibleAuraSlotComparem_visibleAurasToUpdate
 
std::array< float, MAX_MOVE_TYPEm_speed_rate
 
Unitm_unitMovedByMe
 
Playerm_playerMovingMe
 
Unitm_charmer
 
Unitm_charmed
 
std::unique_ptr< CharmInfom_charmInfo
 
SharedVisionList m_sharedVision
 
std::unique_ptr< MotionMasteri_motionMaster
 
std::array< uint32, MAX_REACTIVEm_reactiveTimer
 
uint32 m_regenTimer
 
Vehiclem_vehicle
 
Trinity::unique_trackable_ptr< Vehiclem_vehicleKit
 
uint32 m_unitTypeMask
 
LiquidTypeEntry const * _lastLiquid
 
std::unique_ptr< Vignettes::VignetteDatam_vignette
 
uint32 m_movementCounter
 Incrementing counter used in movement packets. More...
 
- Protected Attributes inherited from WorldObject
std::string m_name
 
bool m_isActive
 
bool m_isFarVisible
 
Optional< float > m_visibilityDistanceOverride
 
bool const m_isStoredInWorldObjectGridContainer
 
ZoneScriptm_zoneScript
 
TransportBasem_transport
 
uint32 m_zoneId
 
uint32 m_areaId
 
float m_staticFloorZ
 
bool m_outdoors
 
ZLiquidStatus m_liquidStatus
 
Optional< WmoLocationm_currentWmo
 
- Protected Attributes inherited from Object
uint16 m_objectType
 
TypeID m_objectTypeId
 
CreateObjectBits m_updateFlag
 
bool m_objectUpdated
 

Private Member Functions

void ForcedDespawn (uint32 timeMSToDespawn=0, Seconds forceRespawnTimer=0s)
 
bool CheckNoGrayAggroConfig (uint32 playerLevel, uint32 creatureLevel) const
 
void ReacquireSpellFocusTarget ()
 
void ApplyAllStaticFlags (CreatureStaticFlagsHolder const &flags)
 

Private Attributes

uint32 _waypointPathId
 
std::pair< uint32, uint32_currentWaypointNodeInfo
 
CreatureGroupm_formation
 
bool m_triggerJustAppeared
 
bool m_respawnCompatibilityMode
 
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
typedef std::set< Unit * > AttackerSet
 
typedef std::set< Unit * > ControlList
 
typedef std::vector< Unit * > UnitVector
 
typedef std::multimap< uint32, Aura * > AuraMap
 
typedef std::pair< AuraMap::const_iterator, AuraMap::const_iterator > AuraMapBounds
 
typedef std::pair< AuraMap::iterator, AuraMap::iterator > AuraMapBoundsNonConst
 
typedef std::multimap< uint32, AuraApplication * > AuraApplicationMap
 
typedef std::pair< AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator > AuraApplicationMapBounds
 
typedef std::pair< AuraApplicationMap::iterator, AuraApplicationMap::iterator > AuraApplicationMapBoundsNonConst
 
typedef std::multimap< AuraStateType, AuraApplication * > AuraStateAurasMap
 
typedef std::pair< AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator > AuraStateAurasMapBounds
 
typedef std::forward_list< AuraEffect * > AuraEffectList
 
typedef std::forward_list< Aura * > AuraList
 
typedef std::forward_list< AuraApplication * > AuraApplicationList
 
typedef std::array< DiminishingReturn, DIMINISHING_MAXDiminishing
 
typedef std::vector< std::pair< uint32, AuraApplication * > > AuraApplicationProcContainer
 
typedef std::set< AuraApplication *, VisibleAuraSlotCompareVisibleAuraContainer
 
- 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 69 of file Creature.h.

Constructor & Destructor Documentation

◆ Creature()

Creature::Creature ( bool  isWorldObject = false)
explicit

Definition at line 306 of file Creature.cpp.

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

◆ ~Creature()

Creature::~Creature ( )
default

Member Function Documentation

◆ _IsTargetAcceptable()

bool Creature::_IsTargetAcceptable ( Unit const *  target) const

Definition at line 2639 of file Creature.cpp.

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

◆ AddLootMode()

void Creature::AddLootMode ( uint16  lootMode)
inline

Definition at line 298 of file Creature.h.

+ Here is the caller graph for this function:

◆ AddToWorld()

void Creature::AddToWorld ( )
overridevirtual
  • Register the creature for guid lookup

Reimplemented from Object.

Reimplemented in Pet.

Definition at line 329 of file Creature.cpp.

+ Here is the call graph for this function:

◆ AI()

CreatureAI * Creature::AI ( ) const
inline

Definition at line 214 of file Creature.h.

+ Here is the call graph for this function:

◆ AIM_Create()

bool Creature::AIM_Create ( CreatureAI ai = nullptr)

Definition at line 1035 of file Creature.cpp.

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

◆ AIM_Destroy()

bool Creature::AIM_Destroy ( )

Definition at line 1028 of file Creature.cpp.

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

◆ AIM_Initialize()

bool Creature::AIM_Initialize ( CreatureAI ai = nullptr)

Definition at line 1044 of file Creature.cpp.

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

◆ AllLootRemovedFromCorpse()

void Creature::AllLootRemovedFromCorpse ( )

Definition at line 2958 of file Creature.cpp.

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

◆ ApplyAllStaticFlags()

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

Definition at line 701 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ ApplyLevelScaling()

void Creature::ApplyLevelScaling ( )

Definition at line 3031 of file Creature.cpp.

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

◆ AtDisengage()

void Creature::AtDisengage ( )
overridevirtual

Reimplemented from Unit.

Definition at line 3644 of file Creature.cpp.

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

◆ AtEngage()

void Creature::AtEngage ( Unit target)
overridevirtual

Reimplemented from Unit.

Definition at line 3608 of file Creature.cpp.

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

◆ CalculateDamageForSparring()

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

Definition at line 1737 of file Creature.cpp.

+ Here is the call graph for this function:

◆ CalculateMinMaxDamage()

void Creature::CalculateMinMaxDamage ( WeaponAttackType  attType,
bool  normalized,
bool  addTotalPct,
float &  minDamage,
float &  maxDamage 
) const
overridevirtual

Implements Unit.

Definition at line 994 of file StatSystem.cpp.

+ Here is the call graph for this function:

◆ CallAssistance()

void Creature::CallAssistance ( )

Definition at line 2533 of file Creature.cpp.

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

◆ CallForHelp()

void Creature::CallForHelp ( float  fRadius)

Definition at line 2563 of file Creature.cpp.

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

◆ CanAlwaysSee()

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

Reimplemented from WorldObject.

Definition at line 2091 of file Creature.cpp.

+ Here is the call graph for this function:

◆ CanAssistTo()

bool Creature::CanAssistTo ( Unit const *  u,
Unit const *  enemy,
bool  checkfaction = true 
) const

Definition at line 2585 of file Creature.cpp.

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

◆ CanCreatureAttack()

bool Creature::CanCreatureAttack ( Unit const *  victim,
bool  force = true 
) const

Definition at line 2686 of file Creature.cpp.

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

◆ CanEnterWater()

bool Creature::CanEnterWater ( ) const
inlineoverridevirtual

Implements Unit.

Definition at line 146 of file Creature.h.

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

◆ CanFly()

bool Creature::CanFly ( ) const
inlineoverridevirtual

Implements Unit.

Definition at line 147 of file Creature.h.

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

◆ CanGeneratePickPocketLoot()

bool Creature::CanGeneratePickPocketLoot ( ) const

Definition at line 3564 of file Creature.cpp.

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

◆ CanGiveExperience()

bool Creature::CanGiveExperience ( ) const

Definition at line 3596 of file Creature.cpp.

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

◆ CanHaveLoot()

bool Creature::CanHaveLoot ( ) const
inline

Definition at line 273 of file Creature.h.

+ Here is the caller graph for this function:

◆ CanIgnoreLineOfSightWhenCastingOnMe()

bool Creature::CanIgnoreLineOfSightWhenCastingOnMe ( ) const
inline

Definition at line 220 of file Creature.h.

+ Here is the caller graph for this function:

◆ CanMelee()

bool Creature::CanMelee ( ) const
inline

Definition at line 218 of file Creature.h.

◆ CannotPenetrateWater()

bool Creature::CannotPenetrateWater ( ) const
inline

Definition at line 136 of file Creature.h.

+ Here is the caller graph for this function:

◆ CanNotReachTarget()

bool Creature::CanNotReachTarget ( ) const
inline

Definition at line 367 of file Creature.h.

+ Here is the caller graph for this function:

◆ CanRegenerateHealth()

bool Creature::CanRegenerateHealth ( ) const
inline

Definition at line 357 of file Creature.h.

+ Here is the caller graph for this function:

◆ CanResetTalents()

bool Creature::CanResetTalents ( Player player) const

Definition at line 1320 of file Creature.cpp.

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

◆ CanStartAttack()

bool Creature::CanStartAttack ( Unit const *  u,
bool  force 
) const
Todo:
should switch to range attack

Definition at line 2099 of file Creature.cpp.

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

◆ CanSwim()

bool Creature::CanSwim ( ) const
overridevirtual

Reimplemented from Unit.

Definition at line 2947 of file Creature.cpp.

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

◆ CheckNoGrayAggroConfig()

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

Definition at line 2138 of file Creature.cpp.

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

◆ ClearTextRepeatGroup()

void Creature::ClearTextRepeatGroup ( uint8  textGroup)

Definition at line 3589 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ 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

Need to be called after LoadCreaturesAddon - MOVEMENTFLAG_HOVER is set there

Definition at line 1071 of file Creature.cpp.

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

◆ CreateCreature()

Creature * Creature::CreateCreature ( uint32  entry,
Map map,
Position const &  pos,
uint32  vehId = 0 
)
static

Definition at line 1177 of file Creature.cpp.

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

◆ CreateCreatureFromDB()

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

Definition at line 1199 of file Creature.cpp.

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

◆ CreateFromProto()

bool Creature::CreateFromProto ( ObjectGuid::LowType  guidlow,
uint32  entry,
CreatureData const *  data = nullptr,
uint32  vehId = 0 
)
protected

Definition at line 1781 of file Creature.cpp.

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

◆ DeleteFromDB()

bool Creature::DeleteFromDB ( ObjectGuid::LowType  spawnId)
static

Definition at line 2005 of file Creature.cpp.

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

◆ DespawnOrUnsummon()

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

Definition at line 2415 of file Creature.cpp.

+ Here is the call graph for this function:

◆ DisappearAndDie()

void Creature::DisappearAndDie ( )
inline

Definition at line 83 of file Creature.h.

+ Here is the caller graph for this function:

◆ DoFleeToGetAssistance()

void Creature::DoFleeToGetAssistance ( )
Todo:
use 31365

Definition at line 1002 of file Creature.cpp.

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

◆ DoImmediateBoundaryCheck()

void Creature::DoImmediateBoundaryCheck ( )
inline

Definition at line 343 of file Creature.h.

+ Here is the caller graph for this function:

◆ DoNotReacquireSpellFocusTarget()

void Creature::DoNotReacquireSpellFocusTarget ( )

Definition at line 3545 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ ExitVehicle()

void Creature::ExitVehicle ( Position const *  exitPosition = nullptr)
overridevirtual

Reimplemented from Unit.

Definition at line 3676 of file Creature.cpp.

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

◆ ForcedDespawn()

void Creature::ForcedDespawn ( uint32  timeMSToDespawn = 0,
Seconds  forceRespawnTimer = 0s 
)
private

Definition at line 2363 of file Creature.cpp.

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

◆ GetAggroRange()

float Creature::GetAggroRange ( Unit const *  target) const

Definition at line 3322 of file Creature.cpp.

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

◆ GetAIName()

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

Definition at line 3146 of file Creature.cpp.

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

◆ GetArmorMultiplierForTarget()

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

Reimplemented from Unit.

Definition at line 3094 of file Creature.cpp.

+ Here is the call graph for this function:

◆ GetAttackDistance()

float Creature::GetAttackDistance ( Unit const *  player) const

Definition at line 2153 of file Creature.cpp.

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

◆ GetBaseArmorForLevel()

float Creature::GetBaseArmorForLevel ( uint8  level) const

Definition at line 3086 of file Creature.cpp.

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

◆ GetBaseDamageForLevel()

float Creature::GetBaseDamageForLevel ( uint8  level) const

Definition at line 3069 of file Creature.cpp.

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

◆ GetCombatPulseDelay()

uint32 Creature::GetCombatPulseDelay ( ) const
inline

Definition at line 344 of file Creature.h.

◆ GetCorpseDelay()

uint32 Creature::GetCorpseDelay ( ) const
inline

Definition at line 110 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetCreatePowerValue()

int32 Creature::GetCreatePowerValue ( Powers  power) const
overridevirtual

Reimplemented from Unit.

Definition at line 888 of file StatSystem.cpp.

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

◆ GetCreatureAddon()

CreatureAddon const * Creature::GetCreatureAddon ( ) const

Definition at line 2737 of file Creature.cpp.

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

◆ GetCreatureClassification()

CreatureClassifications Creature::GetCreatureClassification ( ) const
inline

Definition at line 152 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetCreatureData()

CreatureData const * Creature::GetCreatureData ( ) const
inline

Definition at line 251 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetCreatureDifficulty()

CreatureDifficulty const * Creature::GetCreatureDifficulty ( ) const
inline

Definition at line 252 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetCreatureTemplate()

CreatureTemplate const * Creature::GetCreatureTemplate ( ) const
inline

Definition at line 250 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetCurrentEquipmentId()

uint8 Creature::GetCurrentEquipmentId ( ) const
inline

Definition at line 241 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetCurrentWaypointInfo()

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

Definition at line 385 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetDamageMod()

float Creature::GetDamageMod ( CreatureClassifications  classification)
static

Definition at line 1686 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ GetDamageMultiplierForTarget()

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

Reimplemented from Unit.

Definition at line 3076 of file Creature.cpp.

+ Here is the call graph for this function:

◆ GetDebugInfo()

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

Reimplemented from Object.

Reimplemented in TempSummon, Minion, Guardian, and Pet.

Definition at line 3667 of file Creature.cpp.

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

◆ GetDefaultMovementType()

MovementGeneratorType Creature::GetDefaultMovementType ( ) const
inlineoverridevirtual

Reimplemented from Unit.

Definition at line 149 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetFormation()

CreatureGroup * Creature::GetFormation ( )
inline

Definition at line 391 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetGossipMenuId()

uint32 Creature::GetGossipMenuId ( ) const

Definition at line 3685 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ GetHealthMod()

float Creature::GetHealthMod ( CreatureClassifications  classification)
staticprotected

Definition at line 1657 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ GetHealthMultiplierForTarget()

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

Reimplemented from Unit.

Definition at line 3057 of file Creature.cpp.

+ Here is the call graph for this function:

◆ GetHomePosition() [1/2]

Position const & Creature::GetHomePosition ( ) const
inline

Definition at line 374 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetHomePosition() [2/2]

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

Definition at line 373 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetLastDamagedTime()

time_t Creature::GetLastDamagedTime ( ) const
inline

Definition at line 426 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetLevelForTarget()

uint8 Creature::GetLevelForTarget ( WorldObject const *  target) const
overridevirtual

Reimplemented from WorldObject.

Definition at line 3104 of file Creature.cpp.

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

◆ GetLootForPlayer()

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

Reimplemented from Object.

Definition at line 1386 of file Creature.cpp.

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

◆ GetLootId()

uint32 Creature::GetLootId ( ) const

Definition at line 1326 of file Creature.cpp.

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

◆ GetLootMode()

uint16 Creature::GetLootMode ( ) const
inline

Definition at line 295 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetMaxHealthByLevel()

uint64 Creature::GetMaxHealthByLevel ( uint8  level) const

Definition at line 3049 of file Creature.cpp.

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

◆ GetMeleeDamageSchoolMask()

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

Implements Unit.

Definition at line 216 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetMovementTemplate()

CreatureMovementData const & Creature::GetMovementTemplate ( ) const

Definition at line 2939 of file Creature.cpp.

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

◆ GetNameForLocaleIdx()

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

Implements Object.

Definition at line 3260 of file Creature.cpp.

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

◆ GetNativeObjectScale()

float Creature::GetNativeObjectScale ( ) const
overridevirtual

Reimplemented from Unit.

Reimplemented in Pet.

Definition at line 3386 of file Creature.cpp.

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

◆ GetOriginalEntry()

uint32 Creature::GetOriginalEntry ( ) const
inline

Definition at line 403 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetOriginalEquipmentId()

int8 Creature::GetOriginalEquipmentId ( ) const
inline

Definition at line 240 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetPetAutoSpellOnPos()

uint32 Creature::GetPetAutoSpellOnPos ( uint8  pos) const
virtual

Reimplemented in Pet.

Definition at line 3275 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ GetPetAutoSpellSize()

uint8 Creature::GetPetAutoSpellSize ( ) const
virtual

Reimplemented in Pet.

Definition at line 3270 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ GetPetChaseDistance()

float Creature::GetPetChaseDistance ( ) const

Definition at line 3283 of file Creature.cpp.

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

◆ GetPowerIndex()

uint32 Creature::GetPowerIndex ( Powers  power) const
overridevirtual

Implements Unit.

Definition at line 929 of file StatSystem.cpp.

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

◆ GetReactState()

ReactStates Creature::GetReactState ( ) const
inline

Definition at line 161 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetRespawnCompatibilityMode()

bool Creature::GetRespawnCompatibilityMode ( ) const
inline

Definition at line 408 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetRespawnDelay()

uint32 Creature::GetRespawnDelay ( ) const
inline

Definition at line 337 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetRespawnPosition()

void Creature::GetRespawnPosition ( float &  x,
float &  y,
float &  z,
float *  ori = nullptr,
float *  dist = nullptr 
) const

Definition at line 2882 of file Creature.cpp.

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

◆ GetRespawnTime()

time_t const & Creature::GetRespawnTime ( ) const
inline

Definition at line 331 of file Creature.h.

◆ GetRespawnTimeEx()

time_t Creature::GetRespawnTimeEx ( ) const

Definition at line 2868 of file Creature.cpp.

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

◆ GetScriptId()

uint32 Creature::GetScriptId ( ) const

Definition at line 3156 of file Creature.cpp.

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

◆ GetScriptName()

std::string Creature::GetScriptName ( ) const

Definition at line 3151 of file Creature.cpp.

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

◆ GetSparringHealthPct()

float Creature::GetSparringHealthPct ( ) const
inline

Definition at line 446 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetSpawnId()

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

Definition at line 98 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetSpellDamageMod()

float Creature::GetSpellDamageMod ( CreatureClassifications  classification) const

Definition at line 1709 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ GetStringIds()

std::array< std::string_view, 3 > const & Creature::GetStringIds ( ) const
inline

Definition at line 260 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetTapList()

GuidUnorderedSet const & Creature::GetTapList ( ) const
inline

Definition at line 282 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetTextRepeatGroup()

CreatureTextRepeatIds Creature::GetTextRepeatGroup ( uint8  textGroup)

Definition at line 3578 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ GetTrainerId()

uint32 Creature::GetTrainerId ( ) const

Definition at line 3695 of file Creature.cpp.

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

◆ GetTransportHomePosition() [1/2]

Position const & Creature::GetTransportHomePosition ( ) const
inline

Definition at line 379 of file Creature.h.

◆ GetTransportHomePosition() [2/2]

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

Definition at line 378 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetVendorItemCurrentCount()

uint32 Creature::GetVendorItemCurrentCount ( VendorItem const *  vItem)

Definition at line 3189 of file Creature.cpp.

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

◆ GetVendorItems()

VendorItemData const * Creature::GetVendorItems ( ) const

Definition at line 3184 of file Creature.cpp.

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

◆ GetWanderDistance()

float Creature::GetWanderDistance ( ) const
inline

Definition at line 340 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetWaypointPathId()

uint32 Creature::GetWaypointPathId ( ) const
inline

Definition at line 381 of file Creature.h.

+ Here is the caller graph for this function:

◆ HasClassification()

bool Creature::HasClassification ( CreatureClassifications  classification) const
inline

Definition at line 153 of file Creature.h.

+ Here is the caller graph for this function:

◆ HasFlag() [1/8]

bool Creature::HasFlag ( CreatureStaticFlags  flag) const
inline

Definition at line 454 of file Creature.h.

+ Here is the caller graph for this function:

◆ HasFlag() [2/8]

bool Creature::HasFlag ( CreatureStaticFlags2  flag) const
inline

Definition at line 455 of file Creature.h.

◆ HasFlag() [3/8]

bool Creature::HasFlag ( CreatureStaticFlags3  flag) const
inline

Definition at line 456 of file Creature.h.

◆ HasFlag() [4/8]

bool Creature::HasFlag ( CreatureStaticFlags4  flag) const
inline

Definition at line 457 of file Creature.h.

◆ HasFlag() [5/8]

bool Creature::HasFlag ( CreatureStaticFlags5  flag) const
inline

Definition at line 458 of file Creature.h.

◆ HasFlag() [6/8]

bool Creature::HasFlag ( CreatureStaticFlags6  flag) const
inline

Definition at line 459 of file Creature.h.

◆ HasFlag() [7/8]

bool Creature::HasFlag ( CreatureStaticFlags7  flag) const
inline

Definition at line 460 of file Creature.h.

◆ HasFlag() [8/8]

bool Creature::HasFlag ( CreatureStaticFlags8  flag) const
inline

Definition at line 461 of file Creature.h.

◆ hasInvolvedQuest()

bool Creature::hasInvolvedQuest ( uint32  quest_id) const
overridevirtual

Reimplemented from Object.

Definition at line 2000 of file Creature.cpp.

+ Here is the call graph for this function:

◆ HasLootMode()

bool Creature::HasLootMode ( uint16  lootMode) const
inline

Definition at line 296 of file Creature.h.

+ Here is the caller graph for this function:

◆ hasLootRecipient()

bool Creature::hasLootRecipient ( ) const
inline

Definition at line 284 of file Creature.h.

+ Here is the caller graph for this function:

◆ hasQuest()

bool Creature::hasQuest ( uint32  quest_id) const
overridevirtual

Reimplemented from Object.

Definition at line 1995 of file Creature.cpp.

+ Here is the call graph for this function:

◆ HasReactState()

bool Creature::HasReactState ( ReactStates  state) const
inline

Definition at line 162 of file Creature.h.

+ Here is the caller graph for this function:

◆ HasScalableLevels()

bool Creature::HasScalableLevels ( ) const

Definition at line 3026 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ HasSearchedAssistance()

bool Creature::HasSearchedAssistance ( ) const
inline

Definition at line 319 of file Creature.h.

◆ HasSpell()

bool Creature::HasSpell ( uint32  spellID) const
overridevirtual

Reimplemented from Unit.

Reimplemented in Pet.

Definition at line 2863 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ HasSpellFocus()

bool Creature::HasSpellFocus ( Spell const *  focusSpell = nullptr) const
overridevirtual

Reimplemented from Unit.

Definition at line 3481 of file Creature.cpp.

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

◆ HasStringId()

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

Definition at line 3165 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ InitEntry()

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

change the entry of creature until respawn

Definition at line 487 of file Creature.cpp.

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

◆ InitializeInteractSpellId()

void Creature::InitializeInteractSpellId ( )

Definition at line 3727 of file Creature.cpp.

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

◆ InitializeMovementCapabilities()

void Creature::InitializeMovementCapabilities ( )

Definition at line 2906 of file Creature.cpp.

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

◆ InitializeReactState()

void Creature::InitializeReactState ( )

Definition at line 1276 of file Creature.cpp.

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

◆ IsAffectedByDiminishingReturns()

bool Creature::IsAffectedByDiminishingReturns ( ) const
inlineoverridevirtual

Reimplemented from Unit.

Definition at line 156 of file Creature.h.

+ Here is the call graph for this function:

◆ IsAmphibious()

bool Creature::IsAmphibious ( ) const
inline

Definition at line 125 of file Creature.h.

+ Here is the caller graph for this function:

◆ IsAquatic()

bool Creature::IsAquatic ( ) const
inline

Definition at line 122 of file Creature.h.

+ Here is the caller graph for this function:

◆ isCanInteractWithBattleMaster()

bool Creature::isCanInteractWithBattleMaster ( Player player,
bool  msg 
) const
Todo:
Rename these properly

Definition at line 1288 of file Creature.cpp.

+ Here is the call graph for this function:

◆ IsCivilian()

bool Creature::IsCivilian ( ) const
inline

Definition at line 112 of file Creature.h.

+ Here is the caller graph for this function:

◆ IsDungeonBoss()

bool Creature::IsDungeonBoss ( ) const
inline

Definition at line 155 of file Creature.h.

+ Here is the caller graph for this function:

◆ IsElite()

bool Creature::IsElite ( ) const

Definition at line 2476 of file Creature.cpp.

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

◆ IsEngaged()

bool Creature::IsEngaged ( ) const
overridevirtual

Reimplemented from Unit.

Definition at line 3601 of file Creature.cpp.

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

◆ IsEscorted()

bool Creature::IsEscorted ( ) const

Definition at line 3660 of file Creature.cpp.

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

◆ IsEvadingAttacks()

bool Creature::IsEvadingAttacks ( ) const
inline

Definition at line 204 of file Creature.h.

+ Here is the caller graph for this function:

◆ IsFloating()

bool Creature::IsFloating ( ) const
inline

Definition at line 128 of file Creature.h.

+ Here is the caller graph for this function:

◆ IsFormationLeader()

bool Creature::IsFormationLeader ( ) const

Definition at line 388 of file Creature.cpp.

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

◆ IsFormationLeaderMoveAllowed()

bool Creature::IsFormationLeaderMoveAllowed ( ) const

Definition at line 407 of file Creature.cpp.

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

◆ IsFullyLooted()

bool Creature::IsFullyLooted ( ) const

Definition at line 1397 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ IsGuard()

bool Creature::IsGuard ( ) const
inline

Definition at line 114 of file Creature.h.

+ Here is the caller graph for this function:

◆ IsIgnoringChaseRange()

bool Creature::IsIgnoringChaseRange ( ) const
inline

Definition at line 363 of file Creature.h.

◆ IsIgnoringFeignDeath()

bool Creature::IsIgnoringFeignDeath ( ) const
inline

Definition at line 322 of file Creature.h.

+ Here is the caller graph for this function:

◆ IsIgnoringSanctuarySpellEffect()

bool Creature::IsIgnoringSanctuarySpellEffect ( ) const
inline

Definition at line 324 of file Creature.h.

+ Here is the caller graph for this function:

◆ IsImmunedToSpellEffect()

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

Reimplemented from Unit.

Reimplemented in Totem.

Definition at line 2467 of file Creature.cpp.

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

◆ IsImmuneToAll()

bool Unit::IsImmuneToAll ( ) const
inline

Definition at line 1027 of file Unit.h.

◆ IsImmuneToNPC()

bool Unit::IsImmuneToNPC ( ) const
inline

Definition at line 1033 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsImmuneToPC()

bool Unit::IsImmuneToPC ( ) const
inline

Definition at line 1030 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsInEvadeMode()

bool Creature::IsInEvadeMode ( ) const
inline

Definition at line 203 of file Creature.h.

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

◆ IsInvisibleDueToDespawn()

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

Reimplemented from WorldObject.

Definition at line 2080 of file Creature.cpp.

+ Here is the call graph for this function:

◆ IsMovementPreventedByCasting()

bool Creature::IsMovementPreventedByCasting ( ) const
overridevirtual

Reimplemented from Unit.

Definition at line 3551 of file Creature.cpp.

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

◆ IsRacialLeader()

bool Creature::IsRacialLeader ( ) const
inline

Definition at line 111 of file Creature.h.

+ Here is the caller graph for this function:

◆ IsReputationGainDisabled()

bool Creature::IsReputationGainDisabled ( ) const
inline

Definition at line 398 of file Creature.h.

+ Here is the caller graph for this function:

◆ IsReturningHome()

bool Creature::IsReturningHome ( ) const

Definition at line 367 of file Creature.cpp.

+ Here is the call graph for this function:

◆ IsSessile()

bool Creature::IsSessile ( ) const
inline

Definition at line 132 of file Creature.h.

+ Here is the caller graph for this function:

◆ IsSkinnedBy()

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

Definition at line 1409 of file Creature.cpp.

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

◆ IsSpawnedOnTransport()

bool Creature::IsSpawnedOnTransport ( ) const
inline

Definition at line 102 of file Creature.h.

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

◆ IsStateRestoredOnEvade()

bool Creature::IsStateRestoredOnEvade ( ) const
inline

Definition at line 206 of file Creature.h.

+ Here is the caller graph for this function:

◆ IsSwimDisabled()

bool Creature::IsSwimDisabled ( ) const
inline

Definition at line 140 of file Creature.h.

◆ IsSwimPrevented()

bool Creature::IsSwimPrevented ( ) const
inline

Definition at line 143 of file Creature.h.

+ Here is the caller graph for this function:

◆ IsTapListNotClearedOnEvade()

bool Creature::IsTapListNotClearedOnEvade ( ) const
inline

Definition at line 285 of file Creature.h.

+ Here is the caller graph for this function:

◆ isTappedBy()

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

Definition at line 1381 of file Creature.cpp.

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

◆ IsThreatFeedbackDisabled()

bool Creature::IsThreatFeedbackDisabled ( ) const
inline

Definition at line 441 of file Creature.h.

+ Here is the caller graph for this function:

◆ IsTreatedAsRaidUnit()

bool Creature::IsTreatedAsRaidUnit ( ) const
inline

Definition at line 221 of file Creature.h.

+ Here is the caller graph for this function:

◆ IsTrigger()

bool Creature::IsTrigger ( ) const
inline

Definition at line 113 of file Creature.h.

+ Here is the caller graph for this function:

◆ isWorldBoss()

bool Creature::isWorldBoss ( ) const

Definition at line 2484 of file Creature.cpp.

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

◆ LoadCreaturesAddon()

bool Creature::LoadCreaturesAddon ( )

Definition at line 2749 of file Creature.cpp.

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

◆ LoadCreaturesSparringHealth()

void Creature::LoadCreaturesSparringHealth ( bool  force = false)

Definition at line 2806 of file Creature.cpp.

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

◆ LoadEquipment()

void Creature::LoadEquipment ( int8  id = 1,
bool  force = false 
)

Definition at line 1946 of file Creature.cpp.

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

◆ LoadFromDB()

bool Creature::LoadFromDB ( ObjectGuid::LowType  spawnId,
Map map,
bool  addToMap,
bool  allowDuplicate 
)

Definition at line 1830 of file Creature.cpp.

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

◆ LoadPath()

void Creature::LoadPath ( uint32  pathid)
inline

Definition at line 382 of file Creature.h.

+ Here is the caller graph for this function:

◆ LoadTemplateImmunities()

void Creature::LoadTemplateImmunities ( int32  creatureImmunitiesId)

Definition at line 2423 of file Creature.cpp.

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

◆ LowerPlayerDamageReq()

void Creature::LowerPlayerDamageReq ( uint64  unDamage)

Definition at line 1680 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ Motion_Initialize()

void Creature::Motion_Initialize ( )

Definition at line 1055 of file Creature.cpp.

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

◆ OverrideSparringHealthPct() [1/2]

void Creature::OverrideSparringHealthPct ( float  healthPct)
inline

Definition at line 444 of file Creature.h.

◆ OverrideSparringHealthPct() [2/2]

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

Definition at line 1732 of file Creature.cpp.

+ Here is the call graph for this function:

◆ ReacquireSpellFocusTarget()

void Creature::ReacquireSpellFocusTarget ( )
private

Definition at line 3522 of file Creature.cpp.

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

◆ Regenerate()

void Creature::Regenerate ( Powers  power)
protected

Definition at line 918 of file Creature.cpp.

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

◆ RegenerateHealth()

void Creature::RegenerateHealth ( )
protected

Definition at line 971 of file Creature.cpp.

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

◆ ReleaseSpellFocus()

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

Definition at line 3499 of file Creature.cpp.

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

◆ RemoveCorpse()

void Creature::RemoveCorpse ( bool  setSpawnTime = true,
bool  destroyForNearbyPlayers = true 
)

Definition at line 415 of file Creature.cpp.

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

◆ RemoveFromWorld()

void Creature::RemoveFromWorld ( )
overridevirtual

Reimplemented from Object.

Reimplemented in TempSummon, Minion, and Pet.

Definition at line 349 of file Creature.cpp.

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

◆ RemoveLootMode()

void Creature::RemoveLootMode ( uint16  lootMode)
inline

Definition at line 299 of file Creature.h.

+ Here is the caller graph for this function:

◆ ResetLootMode()

void Creature::ResetLootMode ( )
inline

Definition at line 300 of file Creature.h.

+ Here is the caller graph for this function:

◆ ResetPickPocketRefillTimer()

void Creature::ResetPickPocketRefillTimer ( )
inline

Definition at line 280 of file Creature.h.

+ Here is the caller graph for this function:

◆ ResetPlayerDamageReq()

void Creature::ResetPlayerDamageReq ( )
inline

Definition at line 400 of file Creature.h.

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

◆ Respawn()

void Creature::Respawn ( bool  force = false)

Definition at line 2303 of file Creature.cpp.

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

◆ SaveRespawnTime()

void Creature::SaveRespawnTime ( uint32  forceDelay = 0)

Definition at line 2666 of file Creature.cpp.

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

◆ SaveToDB() [1/2]

void Creature::SaveToDB ( )

Definition at line 1417 of file Creature.cpp.

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

◆ SaveToDB() [2/2]

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

Reimplemented in TempSummon, and Pet.

Definition at line 1436 of file Creature.cpp.

+ Here is the call graph for this function:

◆ SearchFormation()

void Creature::SearchFormation ( )

Definition at line 375 of file Creature.cpp.

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

◆ SelectLevel()

void Creature::SelectLevel ( )

Definition at line 1576 of file Creature.cpp.

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

◆ SelectNearestHostileUnitInAggroRange()

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

Definition at line 3371 of file Creature.cpp.

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

◆ SelectNearestTarget()

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

Definition at line 2493 of file Creature.cpp.

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

◆ SelectNearestTargetInAttackDistance()

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

Definition at line 2506 of file Creature.cpp.

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

◆ SelectVictim()

Unit * Creature::SelectVictim ( )
Todo:
a vehicle may eat some mob, so mob should not evade

Definition at line 1211 of file Creature.cpp.

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

◆ SelectWildBattlePetLevel()

void Creature::SelectWildBattlePetLevel ( )

Definition at line 1643 of file Creature.cpp.

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

◆ SendAIReaction()

void Creature::SendAIReaction ( AiReaction  reactionType)

Definition at line 2521 of file Creature.cpp.

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

◆ SendZoneUnderAttackMessage()

void Creature::SendZoneUnderAttackMessage ( Player attacker)

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

Definition at line 2814 of file Creature.cpp.

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

◆ SetCanDualWield()

void Creature::SetCanDualWield ( bool  value)
overridevirtual

Reimplemented from Unit.

Definition at line 1940 of file Creature.cpp.

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

◆ SetCanGiveExperience()

void Creature::SetCanGiveExperience ( bool  xpEnabled)
inline

Definition at line 435 of file Creature.h.

◆ SetCanHaveLoot()

void Creature::SetCanHaveLoot ( bool  canHaveLoot)
inline

Definition at line 274 of file Creature.h.

◆ SetCanMelee()

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

Definition at line 2822 of file Creature.cpp.

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

◆ SetCannotPenetrateWater()

void Creature::SetCannotPenetrateWater ( bool  cannotPenetrateWater)
inline

Definition at line 137 of file Creature.h.

◆ SetCannotReachTarget()

void Creature::SetCannotReachTarget ( bool  cannotReach)

Definition at line 3303 of file Creature.cpp.

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

◆ SetCombatPulseDelay()

void Creature::SetCombatPulseDelay ( uint32  delay)
inline

Definition at line 345 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetCorpseDelay()

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

Definition at line 104 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetCurrentEquipmentId()

void Creature::SetCurrentEquipmentId ( uint8  id)
inline

Definition at line 242 of file Creature.h.

+ Here is the caller graph for this function:

◆ setDeathState()

void Creature::setDeathState ( DeathState  s)
overridevirtual

Reimplemented from Unit.

Reimplemented in Minion, and Pet.

Definition at line 2197 of file Creature.cpp.

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

◆ SetDefaultMount()

void Creature::SetDefaultMount ( Optional< uint32 mountCreatureDisplayId)

Definition at line 3314 of file Creature.cpp.

◆ SetDefaultMovementType()

void Creature::SetDefaultMovementType ( MovementGeneratorType  mgt)
inline

Definition at line 150 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetDisableReputationGain()

void Creature::SetDisableReputationGain ( bool  disable)
inline

Definition at line 397 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetDisplayFromModel()

void Creature::SetDisplayFromModel ( uint32  modelIdx)

Definition at line 3413 of file Creature.cpp.

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

◆ SetDisplayId()

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

Reimplemented from Unit.

Reimplemented in Pet.

Definition at line 3402 of file Creature.cpp.

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

◆ SetDontClearTapListOnEvade()

void Creature::SetDontClearTapListOnEvade ( bool  dontClear)

Definition at line 1373 of file Creature.cpp.

◆ SetFloating()

void Creature::SetFloating ( bool  floating)
inline

Definition at line 129 of file Creature.h.

+ Here is the call graph for this function:

◆ SetFormation()

void Creature::SetFormation ( CreatureGroup formation)
inline

Definition at line 392 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetGossipMenuId()

void Creature::SetGossipMenuId ( uint32  gossipMenuId)

Definition at line 3690 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ SetHomePosition() [1/2]

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

Definition at line 371 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetHomePosition() [2/2]

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

Definition at line 372 of file Creature.h.

◆ SetIgnoreChaseRange()

void Creature::SetIgnoreChaseRange ( bool  ignoreChaseRange)
inline

Definition at line 364 of file Creature.h.

◆ SetIgnoreFeignDeath()

void Creature::SetIgnoreFeignDeath ( bool  ignoreFeignDeath)
inline

Definition at line 323 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetIgnoreSanctuarySpellEffect()

void Creature::SetIgnoreSanctuarySpellEffect ( bool  ignoreSanctuary)
inline

Definition at line 325 of file Creature.h.

◆ SetImmuneToAll() [1/3]

virtual void Unit::SetImmuneToAll ( bool  apply)
inlinevirtual

Reimplemented from Unit.

Definition at line 1029 of file Unit.h.

◆ SetImmuneToAll() [2/3]

void Creature::SetImmuneToAll ( bool  apply)
inlineoverridevirtual

Reimplemented from Unit.

Definition at line 167 of file Creature.h.

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

◆ SetImmuneToAll() [3/3]

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

Definition at line 1028 of file Unit.cpp.

◆ SetImmuneToNPC() [1/3]

virtual void Unit::SetImmuneToNPC ( bool  apply)
inlinevirtual

Reimplemented from Unit.

Definition at line 1035 of file Unit.h.

◆ SetImmuneToNPC() [2/3]

void Creature::SetImmuneToNPC ( bool  apply)
inlineoverridevirtual

Reimplemented from Unit.

Definition at line 173 of file Creature.h.

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

◆ SetImmuneToNPC() [3/3]

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

Definition at line 1034 of file Unit.cpp.

◆ SetImmuneToPC() [1/3]

virtual void Unit::SetImmuneToPC ( bool  apply)
inlinevirtual

Reimplemented from Unit.

Definition at line 1032 of file Unit.h.

◆ SetImmuneToPC() [2/3]

void Creature::SetImmuneToPC ( bool  apply)
inlineoverridevirtual

Reimplemented from Unit.

Definition at line 170 of file Creature.h.

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

◆ SetImmuneToPC() [3/3]

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

Definition at line 1031 of file Unit.cpp.

◆ SetInteractionAllowedInCombat()

void Creature::SetInteractionAllowedInCombat ( bool  interactionAllowed)
overridevirtual

Reimplemented from Unit.

Definition at line 3003 of file Creature.cpp.

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

◆ SetInteractionAllowedWhileHostile()

void Creature::SetInteractionAllowedWhileHostile ( bool  interactionAllowed)
overridevirtual

Reimplemented from Unit.

Definition at line 2997 of file Creature.cpp.

+ Here is the call graph for this function:

◆ SetInteractSpellId()

void Creature::SetInteractSpellId ( int32  interactSpellId)
inline

Definition at line 472 of file Creature.h.

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

◆ SetLastDamagedTime()

void Creature::SetLastDamagedTime ( time_t  val)
inline

Definition at line 427 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetLootId()

void Creature::SetLootId ( Optional< uint32 lootId)

Definition at line 1334 of file Creature.cpp.

◆ SetLootMode()

void Creature::SetLootMode ( uint16  lootMode)
inline

Definition at line 297 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetMeleeDamageSchool()

void Creature::SetMeleeDamageSchool ( SpellSchools  school)
inline

Definition at line 217 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetNoCallAssistance()

void Creature::SetNoCallAssistance ( bool  val)
inline

Definition at line 317 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetNoSearchAssistance()

void Creature::SetNoSearchAssistance ( bool  val)
inline

Definition at line 318 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetNoThreatFeedback()

void Creature::SetNoThreatFeedback ( bool  noThreatFeedback)
inline

Definition at line 442 of file Creature.h.

◆ SetObjectScale()

void Creature::SetObjectScale ( float  scale)
overridevirtual

Reimplemented from Object.

Definition at line 3391 of file Creature.cpp.

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

◆ SetOriginalEntry()

void Creature::SetOriginalEntry ( uint32  entry)
inline

Definition at line 404 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetReactState()

void Creature::SetReactState ( ReactStates  st)
inline

Definition at line 160 of file Creature.h.

◆ SetRegenerateHealth()

void Creature::SetRegenerateHealth ( bool  value)
inline

Definition at line 358 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetRespawnCompatibilityMode()

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

Definition at line 407 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetRespawnDelay()

void Creature::SetRespawnDelay ( uint32  delay)
inline

Definition at line 338 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetRespawnTime()

void Creature::SetRespawnTime ( uint32  respawn)

Definition at line 2877 of file Creature.cpp.

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

◆ SetRestoreStateOnEvade()

void Creature::SetRestoreStateOnEvade ( bool  restoreOnEvade)
inline

Definition at line 207 of file Creature.h.

◆ SetScriptStringId()

void Creature::SetScriptStringId ( std::string  id)

Definition at line 3170 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ SetSessile()

void Creature::SetSessile ( bool  sessile)
inline

Definition at line 133 of file Creature.h.

+ Here is the call graph for this function:

◆ SetSpawnHealth()

void Creature::SetSpawnHealth ( )

Definition at line 1969 of file Creature.cpp.

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

◆ SetSpellFocus()

void Creature::SetSpellFocus ( Spell const *  focusSpell,
WorldObject const *  target 
)

Definition at line 3427 of file Creature.cpp.

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

◆ SetTapList()

void Creature::SetTapList ( GuidUnorderedSet  tapList)
inline

Definition at line 283 of file Creature.h.

◆ SetTappedBy()

void Creature::SetTappedBy ( Unit const *  unit,
bool  withGroup = true 
)

Definition at line 1339 of file Creature.cpp.

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

◆ SetTarget()

void Creature::SetTarget ( ObjectGuid const &  guid)
overridevirtual

Implements Unit.

Definition at line 3419 of file Creature.cpp.

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

◆ SetTextRepeatId()

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

Definition at line 3569 of file Creature.cpp.

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

◆ SetTrainerId()

void Creature::SetTrainerId ( Optional< uint32 trainerId)

Definition at line 3703 of file Creature.cpp.

◆ SetTransportHomePosition() [1/2]

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

Definition at line 376 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetTransportHomePosition() [2/2]

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

Definition at line 377 of file Creature.h.

◆ SetTreatAsRaidUnit()

void Creature::SetTreatAsRaidUnit ( bool  treatAsRaidUnit)
inline

Definition at line 222 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetUnkillable()

void Creature::SetUnkillable ( bool  unkillable)
inline

Definition at line 175 of file Creature.h.

◆ SetWanderDistance()

void Creature::SetWanderDistance ( float  dist)
inline

Definition at line 341 of file Creature.h.

+ Here is the caller graph for this function:

◆ ShouldFakeDamageFrom()

bool Creature::ShouldFakeDamageFrom ( Unit attacker)

Definition at line 1761 of file Creature.cpp.

+ Here is the call graph for this function:

◆ SignalFormationMovement()

void Creature::SignalFormationMovement ( )

Definition at line 396 of file Creature.cpp.

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

◆ StartDefaultCombatMovement()

void Creature::StartDefaultCombatMovement ( Unit victim,
Optional< float >  range = {},
Optional< float >  angle = {} 
)

Definition at line 2855 of file Creature.cpp.

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

◆ StartPickPocketRefillTimer()

void Creature::StartPickPocketRefillTimer ( )

Definition at line 3559 of file Creature.cpp.

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

◆ SummonGraveyardTeleporter()

void Creature::SummonGraveyardTeleporter ( )

Definition at line 3714 of file Creature.cpp.

+ Here is the call graph for this function:

◆ Update()

void Creature::Update ( uint32  time)
overridevirtual

Reimplemented from Unit.

Reimplemented in TempSummon, Pet, Totem, and Puppet.

Definition at line 709 of file Creature.cpp.

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

◆ UpdateAllStats()

bool Creature::UpdateAllStats ( )
overridevirtual

Implements Unit.

Reimplemented in Guardian, and Totem.

Definition at line 902 of file StatSystem.cpp.

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

◆ UpdateArmor()

void Creature::UpdateArmor ( )
overridevirtual

Implements Unit.

Reimplemented in Guardian, and Totem.

Definition at line 916 of file StatSystem.cpp.

+ Here is the call graph for this function:

◆ UpdateAttackPowerAndDamage()

void Creature::UpdateAttackPowerAndDamage ( bool  ranged = false)
overridevirtual

Implements Unit.

Reimplemented in Guardian, and Totem.

Definition at line 966 of file StatSystem.cpp.

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

◆ UpdateCurrentWaypointInfo()

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

Definition at line 386 of file Creature.h.

+ Here is the caller graph for this function:

◆ UpdateEntry()

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

Definition at line 577 of file Creature.cpp.

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

◆ UpdateLevelDependantStats()

void Creature::UpdateLevelDependantStats ( )

Definition at line 1587 of file Creature.cpp.

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

◆ UpdateMaxHealth()

void Creature::UpdateMaxHealth ( )
overridevirtual

Implements Unit.

Reimplemented in Guardian, and Totem.

Definition at line 923 of file StatSystem.cpp.

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

◆ UpdateMaxPower()

void Creature::UpdateMaxPower ( Powers  power)
overridevirtual

Implements Unit.

Reimplemented in Guardian, and Totem.

Definition at line 951 of file StatSystem.cpp.

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

◆ UpdateMovementCapabilities()

void Creature::UpdateMovementCapabilities ( )

Definition at line 2919 of file Creature.cpp.

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

◆ UpdateNearbyPlayersInteractions()

void Creature::UpdateNearbyPlayersInteractions ( )
overridevirtual

Reimplemented from Unit.

Definition at line 3009 of file Creature.cpp.

+ Here is the call graph for this function:

◆ UpdateStats()

bool Creature::UpdateStats ( Stats  stat)
overridevirtual

Implements Unit.

Reimplemented in Guardian, and Totem.

Definition at line 897 of file StatSystem.cpp.

◆ UpdateVendorItemCurrentCount()

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

Definition at line 3223 of file Creature.cpp.

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

Member Data Documentation

◆ _creatureImmunitiesId

int32 Creature::_creatureImmunitiesId
private

Definition at line 565 of file Creature.h.

◆ _currentWaypointNodeInfo

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

Definition at line 539 of file Creature.h.

◆ _defaultMountDisplayIdOverride

Optional<uint32> Creature::_defaultMountDisplayIdOverride
private

Definition at line 564 of file Creature.h.

◆ _gossipMenuId

uint32 Creature::_gossipMenuId
private

Definition at line 566 of file Creature.h.

◆ _lastDamagedTime

time_t Creature::_lastDamagedTime
private

Definition at line 556 of file Creature.h.

◆ _pickpocketLootRestore

time_t Creature::_pickpocketLootRestore
protected

Timers.

Definition at line 487 of file Creature.h.

◆ _regenerateHealth

bool Creature::_regenerateHealth
private

Definition at line 562 of file Creature.h.

◆ _sparringHealthPct

float Creature::_sparringHealthPct
private

Definition at line 568 of file Creature.h.

◆ 

struct { ... } Creature::_spellFocusInfo

◆ _staticFlags

CreatureStaticFlagsHolder Creature::_staticFlags
protected

Definition at line 528 of file Creature.h.

◆ _trainerId

Optional<uint32> Creature::_trainerId
private

Definition at line 567 of file Creature.h.

◆ _waypointPathId

uint32 Creature::_waypointPathId
private

Definition at line 538 of file Creature.h.

◆ Delay

uint32 Creature::Delay = 0

Definition at line 551 of file Creature.h.

◆ DisableReputationGain

bool Creature::DisableReputationGain
protected

Definition at line 517 of file Creature.h.

◆ m_AlreadyCallAssistance

bool Creature::m_AlreadyCallAssistance
protected

Definition at line 506 of file Creature.h.

◆ m_AlreadySearchedAssistance

bool Creature::m_AlreadySearchedAssistance
protected

Definition at line 507 of file Creature.h.

◆ m_boundaryCheckTime

uint32 Creature::m_boundaryCheckTime
protected

Definition at line 494 of file Creature.h.

◆ m_cannotReachTarget

bool Creature::m_cannotReachTarget
protected

Definition at line 508 of file Creature.h.

◆ m_cannotReachTimer

uint32 Creature::m_cannotReachTimer
protected

Definition at line 509 of file Creature.h.

◆ m_CombatDistance

float Creature::m_CombatDistance

Definition at line 412 of file Creature.h.

◆ m_combatPulseDelay

uint32 Creature::m_combatPulseDelay
protected

Definition at line 496 of file Creature.h.

◆ m_combatPulseTime

uint32 Creature::m_combatPulseTime
protected

Definition at line 495 of file Creature.h.

◆ m_corpseDelay

uint32 Creature::m_corpseDelay
protected

Definition at line 491 of file Creature.h.

◆ m_corpseRemoveTime

time_t Creature::m_corpseRemoveTime
protected

Definition at line 488 of file Creature.h.

◆ m_creatureData

CreatureData const* Creature::m_creatureData
protected

Definition at line 520 of file Creature.h.

◆ m_creatureDifficulty

CreatureDifficulty const* Creature::m_creatureDifficulty
protected

Definition at line 521 of file Creature.h.

◆ m_creatureInfo

CreatureTemplate const* Creature::m_creatureInfo
protected

Definition at line 519 of file Creature.h.

◆ m_defaultMovementType

MovementGeneratorType Creature::m_defaultMovementType
protected

Definition at line 501 of file Creature.h.

◆ m_dontClearTapListOnEvade

bool Creature::m_dontClearTapListOnEvade
protected

Definition at line 484 of file Creature.h.

◆ m_equipmentId

uint8 Creature::m_equipmentId
protected

Definition at line 503 of file Creature.h.

◆ m_formation

CreatureGroup* Creature::m_formation
private

Definition at line 542 of file Creature.h.

◆ m_homePosition

Position Creature::m_homePosition
protected

Definition at line 514 of file Creature.h.

◆ m_ignoreCorpseDecayRatio

bool Creature::m_ignoreCorpseDecayRatio
protected

Definition at line 492 of file Creature.h.

◆ m_isTempWorldObject

bool Creature::m_isTempWorldObject

Definition at line 414 of file Creature.h.

◆ m_loot

std::unique_ptr<Loot> Creature::m_loot

Definition at line 277 of file Creature.h.

◆ m_lootId

Optional<uint32> Creature::m_lootId
protected

Definition at line 525 of file Creature.h.

◆ m_LootMode

uint16 Creature::m_LootMode
protected

Definition at line 526 of file Creature.h.

◆ m_meleeDamageSchoolMask

SpellSchoolMask Creature::m_meleeDamageSchoolMask
protected

Definition at line 511 of file Creature.h.

◆ m_originalEntry

uint32 Creature::m_originalEntry
protected

Definition at line 512 of file Creature.h.

◆ m_originalEquipmentId

int8 Creature::m_originalEquipmentId
protected

Definition at line 504 of file Creature.h.

◆ m_personalLoot

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

Definition at line 278 of file Creature.h.

◆ m_PlayerDamageReq

uint64 Creature::m_PlayerDamageReq

Definition at line 401 of file Creature.h.

◆ m_reactState

ReactStates Creature::m_reactState
protected

Definition at line 498 of file Creature.h.

◆ m_respawnCompatibilityMode

bool Creature::m_respawnCompatibilityMode
private

Definition at line 544 of file Creature.h.

◆ m_respawnDelay

uint32 Creature::m_respawnDelay
protected

Definition at line 490 of file Creature.h.

◆ m_respawnTime

time_t Creature::m_respawnTime
protected

Definition at line 489 of file Creature.h.

◆ m_scriptStringId

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

Definition at line 523 of file Creature.h.

◆ m_SightDistance

float Creature::m_SightDistance

Definition at line 412 of file Creature.h.

◆ m_spawnId

ObjectGuid::LowType Creature::m_spawnId
protected

For new or temporary creatures is 0 for saved it is lowguid.

Definition at line 502 of file Creature.h.

◆ m_spells

uint32 Creature::m_spells[MAX_CREATURE_SPELLS]

Definition at line 302 of file Creature.h.

◆ m_stringIds

std::array<std::string_view, 3> Creature::m_stringIds
protected

Definition at line 522 of file Creature.h.

◆ m_tapList

GuidUnorderedSet Creature::m_tapList
protected

Definition at line 483 of file Creature.h.

◆ m_textRepeat

CreatureTextRepeatGroup Creature::m_textRepeat
private

Definition at line 557 of file Creature.h.

◆ m_transportHomePosition

Position Creature::m_transportHomePosition
protected

Definition at line 515 of file Creature.h.

◆ m_triggerJustAppeared

bool Creature::m_triggerJustAppeared
private

Definition at line 543 of file Creature.h.

◆ m_vendorItemCounts

VendorItemCounts Creature::m_vendorItemCounts
protected

Definition at line 479 of file Creature.h.

◆ m_wanderDistance

float Creature::m_wanderDistance
protected

Definition at line 493 of file Creature.h.

◆ Orientation

float Creature::Orientation = 0.0f

Definition at line 553 of file Creature.h.

◆ Spell

::Spell const* Creature::Spell = nullptr

Definition at line 550 of file Creature.h.

◆ Target

ObjectGuid Creature::Target

Definition at line 552 of file Creature.h.


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