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

#include <Creature.h>

+ Inheritance diagram for Creature:

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

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

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

Static Protected Member Functions

static float _GetHealthMod (int32 Rank)
 

Protected Attributes

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

Private Member Functions

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

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
 
bool _regenerateHealthLock
 
bool _isMissingCanSwimFlagOutOfCombat
 

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::list< AuraEffect * > AuraEffectList
 
typedef std::list< Aura * > AuraList
 
typedef std::list< AuraApplication * > AuraApplicationList
 
typedef std::array< DiminishingReturn, DIMINISHING_MAXDiminishing
 
typedef std::vector< std::pair< uint8, AuraApplication * > > AuraApplicationProcContainer
 
typedef std::map< uint8, AuraApplication * > VisibleAuraMap
 
- Protected Types inherited from Unit
typedef std::list< DynamicObject * > DynObjectList
 
typedef std::list< GameObject * > GameObjectList
 

Detailed Description

Definition at line 61 of file Creature.h.

Constructor & Destructor Documentation

◆ Creature()

Creature::Creature ( bool  isWorldObject = false)
explicit

Definition at line 253 of file Creature.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ _GetDamageMod()

float Creature::_GetDamageMod ( int32  Rank)
static

Definition at line 1517 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ _GetHealthMod()

float Creature::_GetHealthMod ( int32  Rank)
staticprotected

Definition at line 1492 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ _IsTargetAcceptable()

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

Definition at line 2419 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 225 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 278 of file Creature.cpp.

+ Here is the call graph for this function:

◆ AI()

CreatureAI * Creature::AI ( ) const
inline

Definition at line 154 of file Creature.h.

+ Here is the call graph for this function:

◆ AIM_Create()

bool Creature::AIM_Create ( CreatureAI ai = nullptr)

Definition at line 1006 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 999 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 1015 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 2728 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 3263 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 3225 of file Creature.cpp.

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

◆ CalculateMinMaxDamage()

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

Implements Unit.

Definition at line 1161 of file StatSystem.cpp.

+ Here is the call graph for this function:

◆ CallAssistance()

void Creature::CallAssistance ( )

Definition at line 2313 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 2343 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 1866 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 2365 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 2466 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
overridevirtual

Implements Unit.

Definition at line 2709 of file Creature.cpp.

+ 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 108 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 3178 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 3210 of file Creature.cpp.

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

◆ CanHover()

bool Creature::CanHover ( ) const
inline

Definition at line 109 of file Creature.h.

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

◆ CanIgnoreFeignDeath()

bool Creature::CanIgnoreFeignDeath ( ) const
inline

Definition at line 249 of file Creature.h.

+ Here is the caller graph for this function:

◆ CanNotReachTarget()

bool Creature::CanNotReachTarget ( ) const
inline

Definition at line 291 of file Creature.h.

+ Here is the caller graph for this function:

◆ CanRegenerateHealth()

bool Creature::CanRegenerateHealth ( ) const
inline

Definition at line 284 of file Creature.h.

+ Here is the caller graph for this function:

◆ CanResetTalents()

bool Creature::CanResetTalents ( Player player,
bool  pet 
) const

Definition at line 1237 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 1874 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 2698 of file Creature.cpp.

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

◆ CanWalk()

bool Creature::CanWalk ( ) const
inline

Definition at line 105 of file Creature.h.

+ Here is the caller graph for this function:

◆ CheckNoGrayAggroConfig()

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

Definition at line 1913 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 3203 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ Create()

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

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

Definition at line 1042 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 1555 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 1780 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 2181 of file Creature.cpp.

+ Here is the call graph for this function:

◆ DisappearAndDie()

void Creature::DisappearAndDie ( )
inline

Definition at line 73 of file Creature.h.

+ Here is the caller graph for this function:

◆ DoFleeToGetAssistance()

void Creature::DoFleeToGetAssistance ( )
Todo:
use 31365

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

+ Here is the caller graph for this function:

◆ DoNotReacquireSpellFocusTarget()

void Creature::DoNotReacquireSpellFocusTarget ( )

Definition at line 3159 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 3295 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 2129 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 2942 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 2764 of file Creature.cpp.

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

◆ GetAttackDistance()

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

Definition at line 1928 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 268 of file Creature.h.

◆ GetCorpseDelay()

uint32 Creature::GetCorpseDelay ( ) const
inline

Definition at line 95 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetCreatureAddon()

CreatureAddon const * Creature::GetCreatureAddon ( ) const

Definition at line 2517 of file Creature.cpp.

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

◆ GetCreatureData()

CreatureData const * Creature::GetCreatureData ( ) const
inline

Definition at line 187 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetCreatureTemplate()

CreatureTemplate const * Creature::GetCreatureTemplate ( ) const
inline

Definition at line 186 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetCurrentEquipmentId()

uint8 Creature::GetCurrentEquipmentId ( ) const
inline

Definition at line 177 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetCurrentWaypointInfo()

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

Definition at line 307 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetDebugInfo()

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

Reimplemented from Object.

Reimplemented in TempSummon, Minion, Guardian, and Pet.

Definition at line 3286 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 111 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetFormation()

CreatureGroup * Creature::GetFormation ( )
inline

Definition at line 313 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetHomePosition() [1/2]

Position const & Creature::GetHomePosition ( ) const
inline

Definition at line 296 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 295 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetLastDamagedTime()

time_t Creature::GetLastDamagedTime ( ) const
inline

Definition at line 349 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 2751 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 222 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetLootRecipient()

Player * Creature::GetLootRecipient ( ) const

Definition at line 1248 of file Creature.cpp.

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

◆ GetLootRecipientGroup()

Group * Creature::GetLootRecipientGroup ( ) const

Definition at line 1256 of file Creature.cpp.

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

◆ GetLootRecipientGUID()

ObjectGuid Creature::GetLootRecipientGUID ( ) const
inline

Definition at line 213 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetMeleeDamageSchoolMask()

SpellSchoolMask Creature::GetMeleeDamageSchoolMask ( WeaponAttackType  = BASE_ATTACK,
uint8  = 0 
) const
inlineoverridevirtual

Implements Unit.

Definition at line 158 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetMovementTemplate()

CreatureMovementData const & Creature::GetMovementTemplate ( ) const

Definition at line 2690 of file Creature.cpp.

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

◆ GetNameForLocaleIdx()

std::string const & Creature::GetNameForLocaleIdx ( LocaleConstant  locale_idx) const
overridevirtual

Reimplemented from WorldObject.

Definition at line 2887 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 3006 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 326 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetOriginalEquipmentId()

int8 Creature::GetOriginalEquipmentId ( ) const
inline

Definition at line 176 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 2903 of file Creature.cpp.

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

◆ GetPetAutoSpellSize()

virtual uint8 Creature::GetPetAutoSpellSize ( ) const
inlinevirtual

Reimplemented in Pet.

Definition at line 286 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetPetChaseDistance()

float Creature::GetPetChaseDistance ( ) const

Definition at line 2911 of file Creature.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 120 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetRespawnCompatibilityMode()

bool Creature::GetRespawnCompatibilityMode ( )
inline

Definition at line 331 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetRespawnDelay()

uint32 Creature::GetRespawnDelay ( ) const
inline

Definition at line 261 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 2620 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 255 of file Creature.h.

◆ GetRespawnTimeEx()

time_t Creature::GetRespawnTimeEx ( ) const

Definition at line 2606 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 2774 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 2769 of file Creature.cpp.

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

◆ GetShieldBlockValue()

uint32 Creature::GetShieldBlockValue ( ) const
overridevirtual

Implements Unit.

Definition at line 2596 of file Creature.cpp.

+ Here is the call graph for this function:

◆ GetSpawnId()

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

Definition at line 83 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetSpellDamageMod()

float Creature::GetSpellDamageMod ( int32  Rank) const

Definition at line 1536 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ GetStringId()

std::string_view Creature::GetStringId ( StringIdType  type) const
inline

Definition at line 196 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetTextRepeatGroup()

CreatureTextRepeatIds Creature::GetTextRepeatGroup ( uint8  textGroup)

Definition at line 3192 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ GetTransportHomePosition() [1/2]

Position const & Creature::GetTransportHomePosition ( ) const
inline

Definition at line 301 of file Creature.h.

◆ GetTransportHomePosition() [2/2]

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

Definition at line 300 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetVendorItemCurrentCount()

uint32 Creature::GetVendorItemCurrentCount ( VendorItem const *  vItem)

Definition at line 2816 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 2811 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 264 of file Creature.h.

+ Here is the caller graph for this function:

◆ GetWaypointPath()

uint32 Creature::GetWaypointPath ( ) const
inline

Definition at line 303 of file Creature.h.

+ Here is the caller graph for this function:

◆ HasCanSwimFlagOutOfCombat()

bool Creature::HasCanSwimFlagOutOfCombat ( ) const
inline

Definition at line 363 of file Creature.h.

+ Here is the caller graph for this function:

◆ hasInvolvedQuest()

bool Creature::hasInvolvedQuest ( uint32  quest_id) const
overridevirtual

Reimplemented from Object.

Definition at line 1775 of file Creature.cpp.

+ Here is the call graph for this function:

◆ HasLootMode()

bool Creature::HasLootMode ( uint16  lootMode)
inline

Definition at line 223 of file Creature.h.

+ Here is the caller graph for this function:

◆ hasLootRecipient()

bool Creature::hasLootRecipient ( ) const
inline

Definition at line 216 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 1770 of file Creature.cpp.

+ Here is the call graph for this function:

◆ HasReactState()

bool Creature::HasReactState ( ReactStates  state) const
inline

Definition at line 121 of file Creature.h.

+ Here is the caller graph for this function:

◆ HasSearchedAssistance()

bool Creature::HasSearchedAssistance ( ) const
inline

Definition at line 246 of file Creature.h.

◆ HasSpell()

bool Creature::HasSpell ( uint32  spellID) const
overridevirtual

Reimplemented from Unit.

Reimplemented in Pet.

Definition at line 2601 of file Creature.cpp.

◆ HasSpellFocus()

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

Reimplemented from Unit.

Definition at line 3095 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 2792 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ InheritStringIds()

void Creature::InheritStringIds ( Creature const *  parent)

Definition at line 2783 of file Creature.cpp.

+ Here is the call 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 440 of file Creature.cpp.

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

◆ InitializeMovementFlags()

void Creature::InitializeMovementFlags ( )

Definition at line 2644 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 1193 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 115 of file Creature.h.

+ Here is the call graph for this function:

◆ isCanInteractWithBattleMaster()

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

Definition at line 1205 of file Creature.cpp.

+ Here is the call graph for this function:

◆ IsCivilian()

bool Creature::IsCivilian ( ) const
inline

Definition at line 97 of file Creature.h.

+ Here is the caller graph for this function:

◆ IsDamageEnoughForLootingAndReward()

bool Creature::IsDamageEnoughForLootingAndReward ( ) const
inline

Definition at line 321 of file Creature.h.

+ Here is the caller graph for this function:

◆ IsDungeonBoss()

bool Creature::IsDungeonBoss ( ) const
inline

Definition at line 114 of file Creature.h.

+ Here is the caller graph for this function:

◆ isElite()

bool Creature::isElite ( ) const

Definition at line 2255 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 3218 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 3279 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 147 of file Creature.h.

+ Here is the caller graph for this function:

◆ IsFormationLeader()

bool Creature::IsFormationLeader ( ) const

Definition at line 341 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 360 of file Creature.cpp.

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

◆ IsGuard()

bool Creature::IsGuard ( ) const
inline

Definition at line 99 of file Creature.h.

+ Here is the caller graph for this function:

◆ IsImmunedToSpell()

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

Reimplemented from Unit.

Definition at line 2225 of file Creature.cpp.

+ Here is the call 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 2246 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 1134 of file Unit.h.

◆ IsImmuneToNPC()

bool Unit::IsImmuneToNPC ( ) const
inline

Definition at line 1140 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsImmuneToPC()

bool Unit::IsImmuneToPC ( ) const
inline

Definition at line 1137 of file Unit.h.

+ Here is the caller graph for this function:

◆ IsInEvadeMode()

bool Creature::IsInEvadeMode ( ) const
inline

Definition at line 146 of file Creature.h.

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

◆ IsInvisibleDueToDespawn()

bool Creature::IsInvisibleDueToDespawn ( ) const
overrideprotectedvirtual

Reimplemented from WorldObject.

Definition at line 1855 of file Creature.cpp.

+ Here is the call graph for this function:

◆ IsMovementPreventedByCasting()

bool Creature::IsMovementPreventedByCasting ( ) const
overridevirtual

Reimplemented from Unit.

Definition at line 3165 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 96 of file Creature.h.

+ Here is the caller graph for this function:

◆ IsReputationGainDisabled()

bool Creature::IsReputationGainDisabled ( ) const
inline

Definition at line 320 of file Creature.h.

+ Here is the caller graph for this function:

◆ IsReturningHome()

bool Creature::IsReturningHome ( ) const

Definition at line 320 of file Creature.cpp.

+ Here is the call graph for this function:

◆ IsSpawnedOnTransport()

bool Creature::IsSpawnedOnTransport ( ) const
inline

Definition at line 87 of file Creature.h.

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

◆ isTappedBy()

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

Definition at line 1298 of file Creature.cpp.

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

◆ IsTrigger()

bool Creature::IsTrigger ( ) const
inline

Definition at line 98 of file Creature.h.

+ Here is the caller graph for this function:

◆ isWorldBoss()

bool Creature::isWorldBoss ( ) const

Definition at line 2264 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 2530 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 1715 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 1600 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 304 of file Creature.h.

+ Here is the caller graph for this function:

◆ LoadTemplateImmunities()

void Creature::LoadTemplateImmunities ( )

Definition at line 2189 of file Creature.cpp.

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

◆ LoadTemplateRoot()

void Creature::LoadTemplateRoot ( )

Definition at line 1764 of file Creature.cpp.

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

◆ LowerPlayerDamageReq()

void Creature::LowerPlayerDamageReq ( uint32  unDamage)

Definition at line 1511 of file Creature.cpp.

+ Here is the caller graph for this function:

◆ Motion_Initialize()

void Creature::Motion_Initialize ( )

Definition at line 1026 of file Creature.cpp.

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

◆ ReacquireSpellFocusTarget()

void Creature::ReacquireSpellFocusTarget ( )
private

Definition at line 3136 of file Creature.cpp.

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

◆ RefreshCanSwimFlag()

void Creature::RefreshCanSwimFlag ( bool  recheck = false)

Definition at line 2717 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 881 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 938 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 3113 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 368 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 300 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 226 of file Creature.h.

+ Here is the caller graph for this function:

◆ ResetLootMode()

void Creature::ResetLootMode ( )
inline

Definition at line 227 of file Creature.h.

+ Here is the caller graph for this function:

◆ ResetPickPocketRefillTimer()

void Creature::ResetPickPocketRefillTimer ( )
inline

Definition at line 211 of file Creature.h.

+ Here is the caller graph for this function:

◆ ResetPlayerDamageReq()

void Creature::ResetPlayerDamageReq ( )
inline

Definition at line 323 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 2066 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 2446 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 1310 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,
uint8  spawnMask,
uint32  phaseMask 
)
virtual

Reimplemented in TempSummon, and Pet.

Definition at line 1325 of file Creature.cpp.

+ Here is the call graph for this function:

◆ SearchFormation()

void Creature::SearchFormation ( )

Definition at line 328 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 1425 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 2991 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 2273 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 2286 of file Creature.cpp.

+ Here is the call graph for this function:

◆ SelectVictim()

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

Definition at line 1128 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 2301 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 2587 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 1709 of file Creature.cpp.

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

◆ SetCannotReachTarget()

void Creature::SetCannotReachTarget ( bool  cannotReach)

Definition at line 2931 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 269 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 89 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetCurrentEquipmentId()

void Creature::SetCurrentEquipmentId ( uint8  id)
inline

Definition at line 178 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 1970 of file Creature.cpp.

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

◆ SetDefaultMovementType()

void Creature::SetDefaultMovementType ( MovementGeneratorType  mgt)
inline

Definition at line 112 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetDisableReputationGain()

void Creature::SetDisableReputationGain ( bool  disable)
inline

Definition at line 319 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetDisplayId()

void Creature::SetDisplayId ( uint32  modelId)
overridevirtual

Reimplemented from Unit.

Reimplemented in Pet.

Definition at line 3022 of file Creature.cpp.

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

◆ SetFormation()

void Creature::SetFormation ( CreatureGroup formation)
inline

Definition at line 314 of file Creature.h.

+ 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 293 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 294 of file Creature.h.

◆ SetImmuneToAll() [1/3]

virtual void Unit::SetImmuneToAll ( bool  apply)
inlinevirtual

Reimplemented from Unit.

Definition at line 1136 of file Unit.h.

◆ SetImmuneToAll() [2/3]

void Creature::SetImmuneToAll ( bool  apply)
inlineoverridevirtual

Reimplemented from Unit.

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

◆ SetImmuneToNPC() [1/3]

virtual void Unit::SetImmuneToNPC ( bool  apply)
inlinevirtual

Reimplemented from Unit.

Definition at line 1142 of file Unit.h.

◆ SetImmuneToNPC() [2/3]

void Creature::SetImmuneToNPC ( bool  apply)
inlineoverridevirtual

Reimplemented from Unit.

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

◆ SetImmuneToPC() [1/3]

virtual void Unit::SetImmuneToPC ( bool  apply)
inlinevirtual

Reimplemented from Unit.

Definition at line 1139 of file Unit.h.

◆ SetImmuneToPC() [2/3]

void Creature::SetImmuneToPC ( bool  apply)
inlineoverridevirtual

Reimplemented from Unit.

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

◆ SetLastDamagedTime()

void Creature::SetLastDamagedTime ( time_t  val)
inline

Definition at line 350 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetLootMode()

void Creature::SetLootMode ( uint16  lootMode)
inline

Definition at line 224 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetLootRecipient()

void Creature::SetLootRecipient ( Unit unit,
bool  withGroup = true 
)

Definition at line 1264 of file Creature.cpp.

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

◆ SetMeleeDamageSchool()

void Creature::SetMeleeDamageSchool ( SpellSchools  school)
inline

Definition at line 159 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetNoCallAssistance()

void Creature::SetNoCallAssistance ( bool  val)
inline

Definition at line 244 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetNoSearchAssistance()

void Creature::SetNoSearchAssistance ( bool  val)
inline

Definition at line 245 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetObjectScale()

void Creature::SetObjectScale ( float  scale)
overridevirtual

Reimplemented from Object.

Definition at line 3011 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 327 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetPhaseMask()

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

Reimplemented from WorldObject.

Definition at line 652 of file Creature.cpp.

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

◆ SetReactState()

void Creature::SetReactState ( ReactStates  st)
inline

Definition at line 119 of file Creature.h.

◆ SetRegenerateHealth()

void Creature::SetRegenerateHealth ( bool  value)
inline

Definition at line 285 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetRespawnCompatibilityMode()

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

Definition at line 330 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetRespawnDelay()

void Creature::SetRespawnDelay ( uint32  delay)
inline

Definition at line 262 of file Creature.h.

+ Here is the caller graph for this function:

◆ SetRespawnTime()

void Creature::SetRespawnTime ( uint32  respawn)

Definition at line 2615 of file Creature.cpp.

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

◆ SetScriptStringId()

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

Definition at line 2797 of file Creature.cpp.

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

◆ SetSpawnHealth()

void Creature::SetSpawnHealth ( )

Definition at line 1738 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 3041 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  guid)
overridevirtual

Implements Unit.

Definition at line 3033 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 3183 of file Creature.cpp.

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

◆ SetTransportHomePosition() [1/2]

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

Definition at line 298 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 299 of file Creature.h.

◆ SetWanderDistance()

void Creature::SetWanderDistance ( float  dist)
inline

Definition at line 265 of file Creature.h.

+ Here is the caller graph for this function:

◆ SignalFormationMovement()

void Creature::SignalFormationMovement ( )

Definition at line 349 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 3173 of file Creature.cpp.

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

◆ Update()

void Creature::Update ( uint32  time)
overridevirtual

Reimplemented from Unit.

Reimplemented in Pet, TempSummon, Puppet, and Totem.

Definition at line 670 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 1075 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 1100 of file StatSystem.cpp.

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

◆ UpdateAttackPowerAndDamage()

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

Implements Unit.

Reimplemented in Guardian, and Totem.

Definition at line 1124 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 308 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 540 of file Creature.cpp.

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

◆ UpdateLevelDependantStats()

void Creature::UpdateLevelDependantStats ( )
Todo:
Why is this treated as uint32 when it's a float?

Definition at line 1436 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 1106 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 1112 of file StatSystem.cpp.

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

◆ UpdateMovementFlags()

void Creature::UpdateMovementFlags ( )

Definition at line 2650 of file Creature.cpp.

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

◆ UpdateResistances()

void Creature::UpdateResistances ( uint32  school)
overridevirtual

Implements Unit.

Reimplemented in Guardian, and Totem.

Definition at line 1089 of file StatSystem.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 1070 of file StatSystem.cpp.

◆ UpdateVendorItemCurrentCount()

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

Definition at line 2850 of file Creature.cpp.

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

Member Data Documentation

◆ _currentWaypointNodeInfo

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

Definition at line 434 of file Creature.h.

◆ _isMissingCanSwimFlagOutOfCombat

bool Creature::_isMissingCanSwimFlagOutOfCombat
private

Definition at line 458 of file Creature.h.

◆ _lastDamagedTime

time_t Creature::_lastDamagedTime
private

Definition at line 451 of file Creature.h.

◆ _pickpocketLootRestore

time_t Creature::_pickpocketLootRestore
protected

Timers.

Definition at line 386 of file Creature.h.

◆ _regenerateHealth

bool Creature::_regenerateHealth
private

Definition at line 455 of file Creature.h.

◆ _regenerateHealthLock

bool Creature::_regenerateHealthLock
private

Definition at line 456 of file Creature.h.

◆ [struct]

struct { ... } Creature::_spellFocusInfo

◆ _waypointPathId

uint32 Creature::_waypointPathId
private

Definition at line 433 of file Creature.h.

◆ Delay

uint32 Creature::Delay = 0

Definition at line 446 of file Creature.h.

◆ DisableReputationGain

bool Creature::DisableReputationGain
protected

Definition at line 416 of file Creature.h.

◆ loot

Loot Creature::loot

Definition at line 209 of file Creature.h.

◆ lootingGroupLowGUID

ObjectGuid Creature::lootingGroupLowGUID

Definition at line 277 of file Creature.h.

◆ m_AlreadyCallAssistance

bool Creature::m_AlreadyCallAssistance
protected

Definition at line 405 of file Creature.h.

◆ m_AlreadySearchedAssistance

bool Creature::m_AlreadySearchedAssistance
protected

Definition at line 406 of file Creature.h.

◆ m_boundaryCheckTime

uint32 Creature::m_boundaryCheckTime
protected

Definition at line 393 of file Creature.h.

◆ m_cannotReachTarget

bool Creature::m_cannotReachTarget
protected

Definition at line 407 of file Creature.h.

◆ m_cannotReachTimer

uint32 Creature::m_cannotReachTimer
protected

Definition at line 408 of file Creature.h.

◆ m_CombatDistance

float Creature::m_CombatDistance

Definition at line 335 of file Creature.h.

◆ m_combatPulseDelay

uint32 Creature::m_combatPulseDelay
protected

Definition at line 395 of file Creature.h.

◆ m_combatPulseTime

uint32 Creature::m_combatPulseTime
protected

Definition at line 394 of file Creature.h.

◆ m_corpseDelay

uint32 Creature::m_corpseDelay
protected

Definition at line 390 of file Creature.h.

◆ m_corpseRemoveTime

time_t Creature::m_corpseRemoveTime
protected

Definition at line 387 of file Creature.h.

◆ m_creatureData

CreatureData const* Creature::m_creatureData
protected

Definition at line 419 of file Creature.h.

◆ m_creatureInfo

CreatureTemplate const* Creature::m_creatureInfo
protected

Definition at line 418 of file Creature.h.

◆ m_defaultMovementType

MovementGeneratorType Creature::m_defaultMovementType
protected

Definition at line 400 of file Creature.h.

◆ m_equipmentId

uint8 Creature::m_equipmentId
protected

Definition at line 402 of file Creature.h.

◆ m_formation

CreatureGroup* Creature::m_formation
private

Definition at line 437 of file Creature.h.

◆ m_groupLootTimer

uint32 Creature::m_groupLootTimer

Definition at line 276 of file Creature.h.

◆ m_homePosition

Position Creature::m_homePosition
protected

Definition at line 413 of file Creature.h.

◆ m_ignoreCorpseDecayRatio

bool Creature::m_ignoreCorpseDecayRatio
protected

Definition at line 391 of file Creature.h.

◆ m_isTempWorldObject

bool Creature::m_isTempWorldObject

Definition at line 337 of file Creature.h.

◆ m_LootMode

uint16 Creature::m_LootMode
protected

Definition at line 423 of file Creature.h.

◆ m_lootRecipient

ObjectGuid Creature::m_lootRecipient
protected

Definition at line 382 of file Creature.h.

◆ m_lootRecipientGroup

ObjectGuid Creature::m_lootRecipientGroup
protected

Definition at line 383 of file Creature.h.

◆ m_meleeDamageSchoolMask

SpellSchoolMask Creature::m_meleeDamageSchoolMask
protected

Definition at line 410 of file Creature.h.

◆ m_originalEntry

uint32 Creature::m_originalEntry
protected

Definition at line 411 of file Creature.h.

◆ m_originalEquipmentId

int8 Creature::m_originalEquipmentId
protected

Definition at line 403 of file Creature.h.

◆ m_PlayerDamageReq

uint32 Creature::m_PlayerDamageReq

Definition at line 324 of file Creature.h.

◆ m_reactState

ReactStates Creature::m_reactState
protected

Definition at line 397 of file Creature.h.

◆ m_respawnCompatibilityMode

bool Creature::m_respawnCompatibilityMode
private

Definition at line 439 of file Creature.h.

◆ m_respawnDelay

uint32 Creature::m_respawnDelay
protected

Definition at line 389 of file Creature.h.

◆ m_respawnTime

time_t Creature::m_respawnTime
protected

Definition at line 388 of file Creature.h.

◆ m_scriptStringId

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

Definition at line 421 of file Creature.h.

◆ m_SightDistance

float Creature::m_SightDistance

Definition at line 335 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 401 of file Creature.h.

◆ m_spells

uint32 Creature::m_spells[MAX_CREATURE_SPELLS]

Definition at line 229 of file Creature.h.

◆ m_stringIds

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

Definition at line 420 of file Creature.h.

◆ m_textRepeat

CreatureTextRepeatGroup Creature::m_textRepeat
private

Definition at line 452 of file Creature.h.

◆ m_transportHomePosition

Position Creature::m_transportHomePosition
protected

Definition at line 414 of file Creature.h.

◆ m_triggerJustAppeared

bool Creature::m_triggerJustAppeared
private

Definition at line 438 of file Creature.h.

◆ m_vendorItemCounts

VendorItemCounts Creature::m_vendorItemCounts
protected

Definition at line 378 of file Creature.h.

◆ m_wanderDistance

float Creature::m_wanderDistance
protected

Definition at line 392 of file Creature.h.

◆ Orientation

float Creature::Orientation = 0.0f

Definition at line 448 of file Creature.h.

◆ Spell

::Spell const* Creature::Spell = nullptr

Definition at line 445 of file Creature.h.

◆ Target

ObjectGuid Creature::Target

Definition at line 447 of file Creature.h.


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