![]() |
TrinityCore
|
#include <Creature.h>
Inheritance diagram for Creature:Classes | |
| struct | ValuesUpdateForPlayerWithMaskSender |
Public Member Functions | |
| Creature (bool isWorldObject=false) | |
| ~Creature () | |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| float | GetNativeObjectScale () const override |
| void | SetObjectScale (float scale) override |
| void | SetDisplayId (uint32 displayId, bool setNative=false) override |
| void | SetDisplayFromModel (uint32 modelIdx) |
| void | DisappearAndDie () |
| bool | Create (ObjectGuid::LowType guidlow, Map *map, uint32 entry, Position const &pos, CreatureData const *data, uint32 vehId, bool dynamic=false) |
| bool | LoadCreaturesAddon () |
| void | LoadCreaturesSparringHealth (bool force=false) |
| void | SelectLevel () |
| void | UpdateLevelDependantStats () |
| void | SelectWildBattlePetLevel () |
| void | LoadEquipment (int8 id=1, bool force=false) |
| void | SetSpawnHealth () |
| ObjectGuid::LowType | GetSpawnId () const |
| void | Update (uint32 time) override |
| void | Heartbeat () override |
| Position | GetRespawnPosition (float *dist=nullptr) const |
| bool | IsSpawnedOnTransport () const |
| void | SetCorpseDelay (uint32 delay, bool ignoreCorpseDecayRatio=false) |
| uint32 | GetCorpseDelay () const |
| bool | IsRacialLeader () const |
| bool | IsCivilian () const |
| bool | IsTrigger () const |
| bool | IsGuard () const |
| void | InitializeMovementCapabilities () |
| void | UpdateMovementCapabilities () |
| CreatureMovementData const & | GetMovementTemplate () const |
| bool | IsAquatic () const |
| bool | IsAmphibious () const |
| bool | IsFloating () const |
| void | SetFloating (bool floating) |
| void | UpdateFloatingMovementFlags () |
| bool | IsSessile () const |
| void | SetSessile (bool sessile) |
| void | UpdateSessileMovementFlags () |
| bool | CannotPenetrateWater () const |
| void | SetCannotPenetrateWater (bool cannotPenetrateWater) |
| bool | IsSwimDisabled () const |
| bool | CanOnlySwimIfTargetSwims () const |
| bool | CanSwim () const override |
| bool | CanEnterWater () const override |
| bool | CanFly () const override |
| MovementGeneratorType | GetDefaultMovementType () const override |
| void | SetDefaultMovementType (MovementGeneratorType mgt) |
| CreatureClassifications | GetCreatureClassification () const |
| bool | HasClassification (CreatureClassifications classification) const |
| bool | IsDungeonBoss () const |
| bool | IsAffectedByDiminishingReturns () const override |
| Unit * | SelectVictim () |
| void | SetReactState (ReactStates st) |
| ReactStates | GetReactState () const |
| bool | HasReactState (ReactStates state) const |
| void | InitializeReactState () |
| void | SetImmuneToAll (bool apply) override |
| void | SetImmuneToPC (bool apply) override |
| void | SetImmuneToNPC (bool apply) override |
| void | SetUnkillable (bool unkillable) |
| bool | isCanInteractWithBattleMaster (Player *player, bool msg) const |
| bool | CanResetTalents (Player *player) const |
| bool | CanCreatureAttack (Unit const *victim, bool force=true) const |
| void | LoadTemplateImmunities (int32 creatureImmunitiesId) |
| bool | IsImmunedToSpellEffect (SpellInfo const *spellInfo, SpellEffectInfo const &spellEffectInfo, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const override |
| bool | IsElite () const |
| bool | isWorldBoss () const |
| void | SetInteractionAllowedWhileHostile (bool interactionAllowed) override |
| void | SetInteractionAllowedInCombat (bool interactionAllowed) override |
| void | UpdateNearbyPlayersInteractions () override |
| bool | HasScalableLevels () const |
| void | ApplyLevelScaling () |
| void | ApplyLevelScaling (int32 contentTuningId, int32 scalingLevelDelta) |
| uint8 | GetLevelForTarget (WorldObject const *target) const override |
| uint64 | GetMaxHealthByLevel (uint8 level) const |
| float | GetHealthMultiplierForTarget (WorldObject const *target) const override |
| float | GetBaseDamageForLevel (uint8 level) const |
| float | GetDamageMultiplierForTarget (WorldObject const *target) const override |
| float | GetBaseArmorForLevel (uint8 level) const |
| float | GetArmorMultiplierForTarget (WorldObject const *target) const override |
| bool | IsInEvadeMode () const |
| bool | IsEvadingAttacks () const |
| bool | IsStateRestoredOnEvade () const |
| void | SetRestoreStateOnEvade (bool restoreOnEvade) |
| bool | AIM_Destroy () |
| bool | AIM_Create (CreatureAI *ai=nullptr) |
| bool | AIM_Initialize (CreatureAI *ai=nullptr) |
| void | Motion_Initialize () |
| CreatureAI * | AI () const |
| SpellSchoolMask | GetMeleeDamageSchoolMask (WeaponAttackType=BASE_ATTACK) const override |
| void | SetMeleeDamageSchool (SpellSchools school) |
| bool | CanMelee () const |
| void | SetCanMelee (bool canMelee, bool fleeFromMelee=false) |
| bool | CanIgnoreLineOfSightWhenCastingOnMe () const |
| bool | IsTreatedAsRaidUnit () const |
| void | SetTreatAsRaidUnit (bool treatAsRaidUnit) |
| void | StartDefaultCombatMovement (Unit *victim, Optional< float > range={}, Optional< float > angle={}) |
| bool | HasSpell (uint32 spellID) const override |
| bool | UpdateEntry (uint32 entry, CreatureData const *data=nullptr, bool updateLevel=true) |
| int32 | GetCreatePowerValue (Powers power) const override |
| bool | UpdateStats (Stats stat) override |
| bool | UpdateAllStats () override |
| void | UpdateArmor () override |
| void | UpdateMaxHealth () override |
| void | UpdateMaxPower (Powers power) override |
| uint32 | GetPowerIndex (Powers power) const override |
| ClassPowerTypes | GetPowerTypes () const override |
| void | UpdateAttackPowerAndDamage (bool ranged=false) override |
| void | CalculateMinMaxDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, float &minDamage, float &maxDamage) const override |
| void | SetCanDualWield (bool value) override |
| int8 | GetOriginalEquipmentId () const |
| uint8 | GetCurrentEquipmentId () const |
| void | SetCurrentEquipmentId (uint8 id) |
| float | GetSpellDamageMod (CreatureClassifications classification) const |
| VendorItemData const * | GetVendorItems () const |
| uint32 | GetVendorItemCurrentCount (VendorItem const *vItem) |
| uint32 | UpdateVendorItemCurrentCount (VendorItem const *vItem, uint32 used_count) |
| void | SetVendor (NPCFlags flags, bool apply) |
| void | SetPetitioner (bool apply) |
| CreatureTemplate const * | GetCreatureTemplate () const |
| CreatureData const * | GetCreatureData () const |
| CreatureDifficulty const * | GetCreatureDifficulty () const |
| CreatureAddon const * | GetCreatureAddon () const |
| std::string const & | GetAIName () const |
| std::string | GetScriptName () const |
| uint32 | GetScriptId () const |
| void | InheritStringIds (Creature const *parent) |
| bool | HasStringId (std::string_view id) const |
| void | SetScriptStringId (std::string id) |
| std::string_view | GetStringId (StringIdType type) const |
| SpawnTrackingStateData const * | GetSpawnTrackingStateDataForPlayer (Player const *player) const override |
| std::string | GetNameForLocaleIdx (LocaleConstant locale) const override |
| bool | HasLabel (int32 cretureLabel) const |
| std::span< int32 const > | GetLabels () const |
| void | setDeathState (DeathState s) override |
| bool | LoadFromDB (ObjectGuid::LowType spawnId, Map *map, bool addToMap, bool allowDuplicate) |
| void | SaveToDB () |
| virtual void | SaveToDB (uint32 mapid, std::vector< Difficulty > const &spawnDifficulties) |
| bool | CanHaveLoot () const |
| void | SetCanHaveLoot (bool canHaveLoot) |
| uint32 | GetLootId () const |
| void | SetLootId (Optional< uint32 > lootId) |
| void | StartPickPocketRefillTimer () |
| void | ResetPickPocketRefillTimer () |
| bool | CanGeneratePickPocketLoot () const |
| GuidUnorderedSet const & | GetTapList () const |
| void | SetTapList (GuidUnorderedSet tapList) |
| bool | hasLootRecipient () const |
| bool | IsTapListNotClearedOnEvade () const |
| void | SetDontClearTapListOnEvade (bool dontClear) |
| bool | isTappedBy (Player const *player) const |
| Loot * | GetLootForPlayer (Player const *player) const override |
| bool | IsFullyLooted () const |
| bool | IsSkinnedBy (Player const *player) const |
| void | SetTappedBy (Unit const *unit, bool withGroup=true) |
| void | AllLootRemovedFromCorpse () |
| uint16 | GetLootMode () const |
| bool | HasLootMode (uint16 lootMode) const |
| void | SetLootMode (uint16 lootMode) |
| void | AddLootMode (uint16 lootMode) |
| void | RemoveLootMode (uint16 lootMode) |
| void | ResetLootMode () |
| bool | CanStartAttack (Unit const *u, bool force) const |
| float | GetAttackDistance (Unit const *player) const |
| float | GetAggroRange (Unit const *target) const |
| void | SendAIReaction (AiReaction reactionType) |
| Unit * | SelectNearestTarget (float dist=0, bool playerOnly=false) const |
| Unit * | SelectNearestTargetInAttackDistance (float dist=0) const |
| Unit * | SelectNearestHostileUnitInAggroRange (bool useLOS=false, bool ignoreCivilians=false) const |
| void | DoFleeToGetAssistance () |
| void | CallForHelp (float fRadius) |
| void | CallAssistance () |
| void | SetNoCallAssistance (bool val) |
| void | SetNoSearchAssistance (bool val) |
| bool | HasSearchedAssistance () const |
| bool | CanAssistTo (Unit const *u, Unit const *enemy, bool checkfaction=true) const |
| bool | _IsTargetAcceptable (Unit const *target) const |
| bool | IsIgnoringFeignDeath () const |
| void | SetIgnoreFeignDeath (bool ignoreFeignDeath) |
| bool | IsIgnoringSanctuarySpellEffect () const |
| void | SetIgnoreSanctuarySpellEffect (bool ignoreSanctuary) |
| void | RemoveCorpse (bool setSpawnTime=true, bool destroyForNearbyPlayers=true) |
| void | DespawnOrUnsummon (Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s) |
| time_t const & | GetRespawnTime () const |
| time_t | GetRespawnTimeEx () const |
| void | SetRespawnTime (uint32 respawn) |
| void | Respawn (bool force=false) |
| void | SaveRespawnTime (uint32 forceDelay=0) |
| uint32 | GetRespawnDelay () const |
| void | SetRespawnDelay (uint32 delay) |
| float | GetWanderDistance () const |
| void | SetWanderDistance (float dist) |
| void | DoImmediateBoundaryCheck () |
| void | SendZoneUnderAttackMessage (Player *attacker) |
| Send a message to LocalDefense channel for players opposition team in the zone. | |
| bool | hasQuest (uint32 quest_id) const override |
| bool | hasInvolvedQuest (uint32 quest_id) const override |
| bool | CanRegenerateHealth () const |
| void | SetRegenerateHealth (bool value) |
| virtual uint8 | GetPetAutoSpellSize () const |
| virtual uint32 | GetPetAutoSpellOnPos (uint8 pos) const |
| float | GetPetChaseDistance () const |
| bool | IsIgnoringChaseRange () const |
| void | SetIgnoreChaseRange (bool ignoreChaseRange) |
| void | SetCannotReachTarget (bool cannotReach) |
| bool | CanNotReachTarget () const |
| void | SetDefaultMount (Optional< uint32 > mountCreatureDisplayId) |
| void | SetHomePosition (float x, float y, float z, float o) |
| void | SetHomePosition (Position const &pos) |
| void | GetHomePosition (float &x, float &y, float &z, float &ori) const |
| Position const & | GetHomePosition () const |
| void | SetTransportHomePosition (float x, float y, float z, float o) |
| void | SetTransportHomePosition (Position const &pos) |
| void | GetTransportHomePosition (float &x, float &y, float &z, float &ori) const |
| Position const & | GetTransportHomePosition () const |
| uint32 | GetWaypointPathId () const |
| void | LoadPath (uint32 pathid) |
| std::pair< uint32, uint32 > | GetCurrentWaypointInfo () const |
| void | UpdateCurrentWaypointInfo (uint32 nodeId, uint32 pathId) |
| bool | IsReturningHome () const |
| void | SearchFormation () |
| CreatureGroup * | GetFormation () |
| void | SetFormation (CreatureGroup *formation) |
| bool | IsFormationLeader () const |
| void | SignalFormationMovement () |
| bool | IsFormationLeaderMoveAllowed () const |
| void | SetDisableReputationGain (bool disable) |
| bool | IsReputationGainDisabled () const |
| void | LowerPlayerDamageReq (uint64 unDamage) |
| void | ResetPlayerDamageReq () |
| uint32 | GetOriginalEntry () const |
| void | SetOriginalEntry (uint32 entry) |
| void | SetRespawnCompatibilityMode (bool mode=true) |
| bool | GetRespawnCompatibilityMode () const |
| void | SetTarget (ObjectGuid const &guid) override |
| void | DoNotReacquireSpellFocusTarget () |
| void | SetSpellFocus (Spell const *focusSpell, WorldObject const *target) |
| bool | HasSpellFocus (Spell const *focusSpell=nullptr) const override |
| void | ReleaseSpellFocus (Spell const *focusSpell=nullptr, bool withDelay=true) |
| bool | IsMovementPreventedByCasting () const override |
| time_t | GetLastDamagedTime () const |
| void | SetLastDamagedTime (time_t val) |
| CreatureTextRepeatIds | GetTextRepeatGroup (uint8 textGroup) |
| void | SetTextRepeatId (uint8 textGroup, uint8 id) |
| void | ClearTextRepeatGroup (uint8 textGroup) |
| bool | IsEscorted () const |
| bool | CanGiveExperience () const |
| void | SetCanGiveExperience (bool xpEnabled) |
| bool | IsEngaged () const override |
| void | AtEngage (Unit *target) override |
| void | AtDisengage () override |
| bool | IsThreatFeedbackDisabled () const |
| void | SetNoThreatFeedback (bool noThreatFeedback) |
| void | ForcePartyMembersIntoCombat () |
| bool | IsAggroGracePeriodExpired () |
| void | OverrideSparringHealthPct (float healthPct) |
| void | OverrideSparringHealthPct (std::vector< float > const &healthPct) |
| float | GetSparringHealthPct () const |
| uint32 | CalculateDamageForSparring (Unit *attacker, uint32 damage) |
| bool | ShouldFakeDamageFrom (Unit *attacker) |
| std::string | GetDebugInfo () const override |
| void | ExitVehicle (Position const *exitPosition=nullptr) override |
| bool | HasFlag (CreatureStaticFlags flag) const |
| bool | HasFlag (CreatureStaticFlags2 flag) const |
| bool | HasFlag (CreatureStaticFlags3 flag) const |
| bool | HasFlag (CreatureStaticFlags4 flag) const |
| bool | HasFlag (CreatureStaticFlags5 flag) const |
| bool | HasFlag (CreatureStaticFlags6 flag) const |
| bool | HasFlag (CreatureStaticFlags7 flag) const |
| bool | HasFlag (CreatureStaticFlags8 flag) const |
| uint32 | GetGossipMenuId () const |
| void | SetGossipMenuId (uint32 gossipMenuId) |
| uint32 | GetTrainerId () const |
| void | SetTrainerId (Optional< uint32 > trainerId) |
| void | SummonGraveyardTeleporter () |
| void | InitializeInteractSpellId () |
| void | SetInteractSpellId (int32 interactSpellId) |
| void | BuildValuesUpdateWithFlag (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const override |
| void | BuildValuesUpdateForPlayerWithMask (UpdateData *data, UF::ObjectData::Mask const &requestedObjectMask, UF::UnitData::Mask const &requestedUnitMask, Player const *target, bool ignoreNestedChangesMask) const |
| bool | IsImmuneToAll () const |
| void | SetImmuneToAll (bool apply, bool keepCombat) |
| virtual void | SetImmuneToAll (bool apply) |
| bool | IsImmuneToPC () const |
| void | SetImmuneToPC (bool apply, bool keepCombat) |
| virtual void | SetImmuneToPC (bool apply) |
| bool | IsImmuneToNPC () const |
| void | SetImmuneToNPC (bool apply, bool keepCombat) |
| virtual void | SetImmuneToNPC (bool apply) |
Public Member Functions inherited from Unit | |
| virtual | ~Unit () |
| bool | IsAIEnabled () const |
| void | AIUpdateTick (uint32 diff) |
| UnitAI * | GetAI () const |
| void | ScheduleAIChange () |
| void | PushAI (UnitAI *newAI) |
| bool | PopAI () |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| void | CleanupBeforeRemoveFromMap (bool finalCleanup) |
| void | CleanupsBeforeDelete (bool finalCleanup=true) override |
| DiminishingLevels | GetDiminishing (DiminishingGroup group) const |
| void | IncrDiminishing (SpellInfo const *auraSpellInfo) |
| bool | ApplyDiminishingToDuration (SpellInfo const *auraSpellInfo, int32 &duration, WorldObject *caster, DiminishingLevels previousLevel) const |
| void | ApplyDiminishingAura (DiminishingGroup group, bool apply) |
| void | ClearDiminishings () |
| void | Heartbeat () override |
| void | TriggerAuraHeartbeat () |
| void | setAttackTimer (WeaponAttackType type, uint32 time) |
| void | resetAttackTimer (WeaponAttackType type=BASE_ATTACK) |
| uint32 | getAttackTimer (WeaponAttackType type) const |
| bool | isAttackReady (WeaponAttackType type=BASE_ATTACK) const |
| bool | haveOffhandWeapon () const |
| bool | CanDualWield () const |
| float | GetCombatReach () const override |
| void | SetCombatReach (float combatReach) |
| float | GetBoundingRadius () const |
| void | SetBoundingRadius (float boundingRadius) |
| bool | IsWithinCombatRange (Unit const *obj, float dist2compare) const |
| bool | IsWithinMeleeRange (Unit const *obj) const |
| bool | IsWithinMeleeRangeAt (Position const &pos, Unit const *obj) const |
| float | GetMeleeRange (Unit const *target) const |
| bool | IsWithinBoundaryRadius (const Unit *obj) const |
| void | _addAttacker (Unit *pAttacker) |
| void | _removeAttacker (Unit *pAttacker) |
| Unit * | getAttackerForHelper () const |
| bool | Attack (Unit *victim, bool meleeAttack) |
| void | CastStop (uint32 except_spellid=0) |
| bool | AttackStop () |
| void | RemoveAllAttackers () |
| AttackerSet const & | getAttackers () const |
| bool | isAttackingPlayer () const |
| Unit * | GetVictim () const |
| Unit * | EnsureVictim () const |
| void | ValidateAttackersAndOwnTarget () |
| void | CombatStop (bool includingCast=false, bool mutualPvP=true, bool(*unitFilter)(Unit const *otherUnit)=nullptr) |
| void | CombatStopWithPets (bool includingCast=false) |
| void | StopAttackFaction (uint32 faction_id) |
| Unit * | SelectNearbyTarget (Unit *exclude=nullptr, float dist=NOMINAL_MELEE_RANGE) const |
| void | SendMeleeAttackStop (Unit const *victim=nullptr) const |
| void | SendMeleeAttackStart (Unit *victim) |
| void | AddUnitState (uint32 f) |
| bool | HasUnitState (const uint32 f) const |
| void | ClearUnitState (uint32 f) |
| bool | CanFreeMove () const |
| uint32 | HasUnitTypeMask (uint32 mask) const |
| void | AddUnitTypeMask (uint32 mask) |
| bool | IsSummon () const |
| bool | IsGuardian () const |
| bool | IsPet () const |
| bool | IsHunterPet () const |
| bool | IsTotem () const |
| bool | IsVehicle () const |
| int32 | GetContentTuning () const |
| uint8 | GetLevel () const |
| uint8 | GetEffectiveLevel () const |
| uint8 | GetLevelForTarget (WorldObject const *) const override |
| void | SetLevel (uint8 lvl, bool sendUpdate=true) |
| uint8 | GetRace () const |
| void | SetRace (uint8 race) |
| uint64 | GetRaceMask () const |
| uint8 | GetClass () const |
| void | SetClass (uint8 classId) |
| uint32 | GetClassMask () const |
| Gender | GetGender () const |
| void | SetGender (Gender gender) |
| virtual Gender | GetNativeGender () const |
| virtual void | SetNativeGender (Gender gender) |
| float | GetStat (Stats stat) const |
| void | SetStat (Stats stat, int32 val) |
| uint32 | GetArmor () const |
| void | SetArmor (int32 val, int32 bonusVal) |
| int32 | GetResistance (SpellSchools school) const |
| int32 | GetBonusResistanceMod (SpellSchools school) const |
| int32 | GetResistance (SpellSchoolMask mask) const |
| void | SetResistance (SpellSchools school, int32 val) |
| void | SetBonusResistanceMod (SpellSchools school, int32 val) |
| uint64 | GetHealth () const |
| uint64 | GetMaxHealth () const |
| bool | IsFullHealth () const |
| bool | HealthBelowPct (float pct) const |
| bool | HealthBelowPctDamaged (float pct, uint32 damage) const |
| bool | HealthAbovePct (float pct) const |
| bool | HealthAbovePctHealed (float pct, uint32 heal) const |
| float | GetHealthPct () const |
| uint64 | CountPctFromMaxHealth (float pct) const |
| uint64 | CountPctFromCurHealth (float pct) const |
| void | SetHealth (uint64 val) |
| void | SetMaxHealth (uint64 val) |
| void | SetFullHealth () |
| int64 | ModifyHealth (int64 val) |
| int64 | GetHealthGain (int64 dVal) |
| void | TriggerOnHealthChangeAuras (uint64 oldVal, uint64 newVal) |
| Powers | GetPowerType () const |
| void | SetPowerType (Powers power, bool sendUpdate=true, bool onInit=false) |
| void | SetInitialPowerValue (Powers powerType) |
| void | SetOverrideDisplayPowerId (uint32 powerDisplayId) |
| Powers | CalculateDisplayPowerType () const |
| void | UpdateDisplayPower () |
| int32 | GetPower (Powers power) const |
| int32 | GetMinPower (Powers power) const |
| int32 | GetMaxPower (Powers power) const |
| float | GetPowerPct (Powers power) const |
| int32 | CountPctFromMaxPower (Powers power, int32 pct) const |
| void | SetPower (Powers power, int32 val, bool withPowerUpdate=true) |
| void | SetMaxPower (Powers power, int32 val) |
| void | TriggerOnPowerChangeAuras (Powers power, int32 oldVal, int32 newVal) |
| void | SetFullPower (Powers power) |
| int32 | ModifyPower (Powers power, int32 val, bool withPowerUpdate=true) |
| void | ApplyModManaCostMultiplier (float manaCostMultiplier, bool apply) |
| void | ApplyModManaCostModifier (SpellSchools school, int32 mod, bool apply) |
| uint32 | GetBaseAttackTime (WeaponAttackType att) const |
| void | SetBaseAttackTime (WeaponAttackType att, uint32 val) |
| void | UpdateAttackTimeField (WeaponAttackType att) |
| void | ApplyAttackTimePercentMod (WeaponAttackType att, float val, bool apply) |
| void | ApplyCastTimePercentMod (float val, bool apply) |
| void | ApplySpellHastePercentMod (float val, bool apply) |
| void | ApplyHasteRegenPercentMod (float val, bool apply) |
| void | SetModCastingSpeed (float castingSpeed) |
| void | SetModCastingSpeedNeg (float castingSpeedNeg) |
| void | SetModSpellHaste (float spellHaste) |
| void | SetModHaste (float haste) |
| void | SetModRangedHaste (float rangedHaste) |
| void | SetModHasteRegen (float hasteRegen) |
| void | SetModTimeRate (float timeRate) |
| bool | HasUnitFlag (UnitFlags flags) const |
| void | SetUnitFlag (UnitFlags flags) |
| void | RemoveUnitFlag (UnitFlags flags) |
| void | ReplaceAllUnitFlags (UnitFlags flags) |
| bool | HasUnitFlag2 (UnitFlags2 flags) const |
| void | SetUnitFlag2 (UnitFlags2 flags) |
| void | RemoveUnitFlag2 (UnitFlags2 flags) |
| void | ReplaceAllUnitFlags2 (UnitFlags2 flags) |
| bool | HasUnitFlag3 (UnitFlags3 flags) const |
| void | SetUnitFlag3 (UnitFlags3 flags) |
| void | RemoveUnitFlag3 (UnitFlags3 flags) |
| void | ReplaceAllUnitFlags3 (UnitFlags3 flags) |
| void | SetCreatedBySpell (int32 spellId) |
| void | SetNameplateAttachToGUID (ObjectGuid guid) |
| Emote | GetEmoteState () const |
| void | SetEmoteState (Emote emote) |
| SheathState | GetSheath () const |
| void | SetSheath (SheathState sheathed) |
| uint32 | GetFaction () const override |
| void | SetFaction (uint32 faction) override |
| bool | IsInPartyWith (Unit const *unit) const |
| bool | IsInRaidWith (Unit const *unit) const |
| void | GetPartyMembers (std::list< Unit * > &units) |
| bool | IsContestedGuard () const |
| UnitPVPStateFlags | GetPvpFlags () const |
| bool | HasPvpFlag (UnitPVPStateFlags flags) const |
| void | SetPvpFlag (UnitPVPStateFlags flags) |
| void | RemovePvpFlag (UnitPVPStateFlags flags) |
| void | ReplaceAllPvpFlags (UnitPVPStateFlags flags) |
| bool | IsInSanctuary () const |
| bool | IsPvP () const |
| bool | IsFFAPvP () const |
| virtual void | SetPvP (bool state) |
| UnitPetFlag | GetPetFlags () const |
| bool | HasPetFlag (UnitPetFlag flags) const |
| void | SetPetFlag (UnitPetFlag flags) |
| void | RemovePetFlag (UnitPetFlag flags) |
| void | ReplaceAllPetFlags (UnitPetFlag flags) |
| uint32 | GetCreatureType () const |
| uint32 | GetCreatureTypeMask () const |
| void | UpdateCreatureType () |
| UnitStandStateType | GetStandState () const |
| bool | IsSitState () const |
| bool | IsStandState () const |
| void | SetStandState (UnitStandStateType state, uint32 animKitID=0) |
| void | SetVisFlag (UnitVisFlags flags) |
| void | RemoveVisFlag (UnitVisFlags flags) |
| void | ReplaceAllVisFlags (UnitVisFlags flags) |
| AnimTier | GetAnimTier () const |
| void | SetAnimTier (AnimTier animTier, bool notifyClient=true) |
| bool | IsMounted () const |
| uint32 | GetMountDisplayId () const |
| void | SetMountDisplayId (uint32 mountDisplayId) |
| uint32 | GetCosmeticMountDisplayId () const |
| void | SetCosmeticMountDisplayId (uint32 mountDisplayId) |
| void | Mount (uint32 mount, uint32 vehicleId=0, uint32 creatureEntry=0) |
| void | Dismount () |
| void | CancelMountAura (bool force=false) |
| MountCapabilityEntry const * | GetMountCapability (uint32 mountType) const |
| void | UpdateMountCapability () |
| void | SendDurabilityLoss (Player *receiver, uint32 percent) |
| void | PlayOneShotAnimKitId (uint16 animKitId) |
| void | SetAIAnimKitId (uint16 animKitId) |
| uint16 | GetAIAnimKitId () const override |
| void | SetMovementAnimKitId (uint16 animKitId) |
| uint16 | GetMovementAnimKitId () const override |
| void | SetMeleeAnimKitId (uint16 animKitId) |
| uint16 | GetMeleeAnimKitId () const override |
| uint16 | GetMaxSkillValueForLevel (Unit const *target=nullptr) const |
| void | KillSelf (bool durabilityLoss=true, bool skipSettingDeathState=false) |
| void | GetProcAurasTriggeredOnEvent (AuraApplicationProcContainer &aurasTriggeringProc, AuraApplicationList *procAuras, ProcEventInfo &eventInfo) |
| void | TriggerAurasProcOnEvent (AuraApplicationList *myProcAuras, AuraApplicationList *targetProcAuras, Unit *actionTarget, ProcFlagsInit const &typeMaskActor, ProcFlagsInit const &typeMaskActionTarget, ProcFlagsSpellType spellTypeMask, ProcFlagsSpellPhase spellPhaseMask, ProcFlagsHit hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo) |
| void | TriggerAurasProcOnEvent (ProcEventInfo &eventInfo, AuraApplicationProcContainer &procAuras) |
| void | HandleEmoteCommand (Emote emoteId, Player *target=nullptr, Trinity::IteratorPair< int32 const * > spellVisualKitIds={}, int32 sequenceVariation=0) |
| void | DoMeleeAttackIfReady () |
| void | AttackerStateUpdate (Unit *victim, WeaponAttackType attType=BASE_ATTACK, bool extra=false) |
| void | CalculateMeleeDamage (Unit *victim, CalcDamageInfo *damageInfo, WeaponAttackType attackType=BASE_ATTACK) |
| void | DealMeleeDamage (CalcDamageInfo *damageInfo, bool durabilityLoss) |
| void | HandleProcExtraAttackFor (Unit *victim, uint32 count) |
| void | SetLastExtraAttackSpell (uint32 spellId) |
| uint32 | GetLastExtraAttackSpell () const |
| void | AddExtraAttacks (uint32 count) |
| void | SetLastDamagedTargetGuid (ObjectGuid guid) |
| ObjectGuid | GetLastDamagedTargetGuid () const |
| void | CalculateSpellDamageTaken (SpellNonMeleeDamage *damageInfo, int32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=BASE_ATTACK, bool crit=false, bool blocked=false, Spell *spell=nullptr) |
| void | DealSpellDamage (SpellNonMeleeDamage const *damageInfo, bool durabilityLoss) |
| uint32 | GetDamageReduction (uint32 damage) const |
| virtual bool | CanApplyResilience () const |
| int32 | CalculateAOEAvoidance (int32 damage, uint32 schoolMask, bool npcCaster) const |
| float | MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, SpellInfo const *spellInfo) const override |
| SpellMissInfo | MeleeSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const override |
| float | GetUnitDodgeChance (WeaponAttackType attType, Unit const *victim) const |
| float | GetUnitParryChance (WeaponAttackType attType, Unit const *victim) const |
| float | GetUnitBlockChance (WeaponAttackType attType, Unit const *victim) const |
| float | GetUnitMissChance () const |
| float | GetUnitCriticalChanceDone (WeaponAttackType attackType) const |
| float | GetUnitCriticalChanceTaken (Unit const *attacker, WeaponAttackType attackType, float critDone) const |
| float | GetUnitCriticalChanceAgainst (WeaponAttackType attackType, Unit const *victim) const |
| float | GetMechanicResistChance (SpellInfo const *spellInfo) const |
| bool | CanUseAttackType (uint8 attacktype) const |
| virtual float | GetBlockPercent (uint8) const |
| float | GetWeaponProcChance () const |
| float | GetPPMProcChance (uint32 WeaponSpeed, float PPM, SpellInfo const *spellProto) const |
| MeleeHitOutcome | RollMeleeOutcomeAgainst (Unit const *victim, WeaponAttackType attType) const |
| NPCFlags | GetNpcFlags () const |
| bool | HasNpcFlag (NPCFlags flags) const |
| void | SetNpcFlag (NPCFlags flags) |
| void | RemoveNpcFlag (NPCFlags flags) |
| void | ReplaceAllNpcFlags (NPCFlags flags) |
| NPCFlags2 | GetNpcFlags2 () const |
| bool | HasNpcFlag2 (NPCFlags2 flags) const |
| void | SetNpcFlag2 (NPCFlags2 flags) |
| void | RemoveNpcFlag2 (NPCFlags2 flags) |
| void | ReplaceAllNpcFlags2 (NPCFlags2 flags) |
| bool | IsVendor () const |
| bool | IsTrainer () const |
| bool | IsQuestGiver () const |
| bool | IsGossip () const |
| bool | IsTaxi () const |
| bool | IsGuildMaster () const |
| bool | IsBattleMaster () const |
| bool | IsBanker () const |
| bool | IsInnkeeper () const |
| bool | IsSpiritHealer () const |
| bool | IsAreaSpiritHealer () const |
| bool | IsTabardDesigner () const |
| bool | IsAuctioner () const |
| bool | IsArmorer () const |
| bool | IsWildBattlePet () const |
| bool | IsServiceProvider () const |
| bool | IsSpiritService () const |
| bool | IsAreaSpiritHealerIndividual () const |
| bool | IsCritter () const |
| bool | IsInFlight () const |
| bool | CanHaveThreatList () const |
| ====================== THREAT & COMBAT ==================== | |
| bool | IsEngagedBy (Unit const *who) const |
| void | EngageWithTarget (Unit *who) |
| CombatManager & | GetCombatManager () |
| CombatManager const & | GetCombatManager () const |
| void | AtTargetAttacked (Unit *target, bool canInitialAggro) |
| bool | IsImmuneToAll () const |
| void | SetImmuneToAll (bool apply, bool keepCombat) |
| bool | IsImmuneToPC () const |
| void | SetImmuneToPC (bool apply, bool keepCombat) |
| bool | IsImmuneToNPC () const |
| void | SetImmuneToNPC (bool apply, bool keepCombat) |
| bool | IsUninteractible () const |
| void | SetUninteractible (bool apply) |
| bool | CannotTurn () const |
| void | SetCannotTurn (bool apply) |
| bool | IsInCombat () const |
| bool | IsInCombatWith (Unit const *who) const |
| void | SetInCombatWith (Unit *enemy, bool addSecondUnitSuppressed=false) |
| void | ClearInCombat () |
| void | UpdatePetCombatState () |
| bool | IsInteractionAllowedWhileHostile () const |
| bool | IsInteractionAllowedInCombat () const |
| bool | IsThreatened () const |
| bool | IsThreatenedBy (Unit const *who) const |
| ThreatManager & | GetThreatManager () |
| ThreatManager const & | GetThreatManager () const |
| void | SendClearTarget () |
| bool | HasAuraTypeWithFamilyFlags (AuraType auraType, uint32 familyName, flag128 familyFlags) const |
| bool | HasBreakableByDamageAuraType (AuraType type, uint32 excludeAura=0) const |
| bool | HasBreakableByDamageCrowdControlAura (Unit const *excludeCasterChannel=nullptr) const |
| bool | HasStealthAura () const |
| bool | HasInvisibilityAura () const |
| bool | IsFeared () const |
| bool | HasRootAura () const |
| bool | IsPolymorphed () const |
| bool | IsFrozen () const |
| bool | isTargetableForAttack (bool checkFakeDeath=true) const |
| bool | IsInWater () const |
| bool | IsUnderWater () const |
| bool | IsOnOceanFloor () const |
| bool | isInAccessiblePlaceFor (Creature const *c) const |
| void | SendHealSpellLog (HealInfo &healInfo, bool critical=false) |
| int32 | HealBySpell (HealInfo &healInfo, bool critical=false) |
| void | SendEnergizeSpellLog (Unit *victim, uint32 spellId, int32 damage, int32 overEnergize, Powers powerType) |
| void | EnergizeBySpell (Unit *victim, SpellInfo const *spellInfo, int32 damage, Powers powerType) |
| Aura * | AddAura (uint32 spellId, Unit *target) |
| Aura * | AddAura (SpellInfo const *spellInfo, uint32 effMask, Unit *target) |
| void | SetAuraStack (uint32 spellId, Unit *target, uint32 stack) |
| void | SendPlaySpellVisual (Unit *target, uint32 spellVisualId, uint8 missReason, uint8 reflectStatus, float travelSpeed, bool speedAsTime=false, float launchDelay=0.0f) |
| void | SendPlaySpellVisual (Position const &targetPosition, uint32 spellVisualId, uint8 missReason, uint8 reflectStatus, float travelSpeed, bool speedAsTime=false, float launchDelay=0.0f) |
| void | SendCancelSpellVisual (uint32 id) |
| void | SendPlaySpellVisualKit (uint32 id, uint32 type, uint32 duration) const |
| void | SendCancelSpellVisualKit (uint32 id) |
| void | CancelSpellMissiles (uint32 spellId, bool reverseMissile=false, bool abortSpell=false) |
| void | DeMorph () |
| void | SendAttackStateUpdate (CalcDamageInfo *damageInfo) |
| void | SendAttackStateUpdate (uint32 HitInfo, Unit *target, uint8 SwingType, SpellSchoolMask damageSchoolMask, uint32 Damage, uint32 AbsorbDamage, uint32 Resist, VictimState TargetState, uint32 BlockedAmount, uint32 RageGained) |
| void | SendSpellNonMeleeDamageLog (SpellNonMeleeDamage const *log) |
| void | SendPeriodicAuraLog (SpellPeriodicAuraLogInfo *pInfo) |
| void | SendSpellDamageResist (Unit *target, uint32 spellId) |
| void | SendSpellDamageImmune (Unit *target, uint32 spellId, bool isPeriodic) |
| void | NearTeleportTo (TeleportLocation const &target, bool casting=false) |
| void | NearTeleportTo (Position const &pos, bool casting=false) |
| void | NearTeleportTo (float x, float y, float z, float orientation, bool casting=false) |
| void | SendTeleportPacket (TeleportLocation const &teleportLocation) |
| virtual bool | UpdatePosition (float x, float y, float z, float ang, bool teleport=false) |
| virtual bool | UpdatePosition (Position const &pos, bool teleport=false) |
| void | UpdateOrientation (float orientation) |
| Only server-side orientation update, does not broadcast to client. | |
| void | UpdateHeight (float newZ) |
| Only server-side height update, does not broadcast to client. | |
| void | SendMoveKnockBack (Player *player, float speedXY, float speedZ, float vcos, float vsin) |
| void | KnockbackFrom (Position const &origin, float speedXY, float speedZ, float angle=M_PI, Movement::SpellEffectExtraData const *spellEffectExtraData=nullptr) |
| void | MonsterMoveWithSpeed (float x, float y, float z, float speed, bool generatePath=false, bool forceDestination=false) |
| bool | IsPlayingHoverAnim () const |
| void | SetPlayHoverAnim (bool enable, bool sendUpdate=true) |
| void | CalculateHoverHeight () |
| void | SetHoverHeight (float hoverHeight) |
| bool | IsGravityDisabled () const |
| bool | IsWalking () const |
| bool | IsHovering () const |
| bool | SetWalk (bool enable) |
| bool | SetDisableGravity (bool disable, bool updateAnimTier=true, bool updatePlayHoverAnim=true) |
| bool | SetFall (bool enable) |
| bool | SetSwim (bool enable) |
| bool | SetCanFly (bool enable) |
| bool | SetWaterWalking (bool enable) |
| bool | SetFeatherFall (bool enable) |
| bool | SetHover (bool enable, bool updateAnimTier=true) |
| bool | SetCollision (bool disable) |
| bool | SetStrafingDisabled (bool disable) |
| bool | SetJumpingDisabled (bool disable) |
| bool | SetEnableFullSpeedTurning (bool enable) |
| bool | SetEnableFullSpeedPitching (bool enable) |
| bool | SetAlwaysAllowPitching (bool enable) |
| bool | SetCanTransitionBetweenSwimAndFly (bool enable) |
| bool | SetCanTurnWhileFalling (bool enable) |
| bool | SetCanDoubleJump (bool enable) |
| bool | SetDisableInertia (bool disable) |
| bool | SetCanAdvFly (bool enable) |
| bool | SetMoveCantSwim (bool cantSwim) |
| void | SendSetVehicleRecId (uint32 vehicleId) |
| MovementForces const * | GetMovementForces () const |
| void | ApplyMovementForce (ObjectGuid id, Position origin, float magnitude, MovementForceType type, Position direction={}, ObjectGuid transportGuid=ObjectGuid::Empty) |
| void | RemoveMovementForce (ObjectGuid id) |
| bool | SetIgnoreMovementForces (bool ignore) |
| void | UpdateMovementForcesModMagnitude () |
| void | ApplyInertia (int32 id, Milliseconds duration) |
| void | RemoveInertia (int32 id) |
| void | SetGravityModifier (float gravityModifier) |
| void | SetInFront (WorldObject const *target) |
| void | SetFacingTo (float ori, bool force=true, uint32 movementId=EVENT_FACE) |
| void | SetFacingToObject (WorldObject const *object, bool force=true, uint32 movementId=EVENT_FACE) |
| void | SetFacingToPoint (Position const &point, bool force=true) |
| bool | IsAlive () const |
| bool | isDying () const |
| bool | isDead () const |
| DeathState | getDeathState () const |
| ObjectGuid | GetOwnerGUID () const override |
| void | SetOwnerGUID (ObjectGuid owner) |
| ObjectGuid | GetCreatorGUID () const override |
| void | SetCreatorGUID (ObjectGuid creator) |
| ObjectGuid | GetMinionGUID () const |
| void | SetMinionGUID (ObjectGuid guid) |
| ObjectGuid | GetPetGUID () const |
| void | SetPetGUID (ObjectGuid guid) |
| ObjectGuid | GetCritterGUID () const |
| void | SetCritterGUID (ObjectGuid guid) |
| ObjectGuid | GetBattlePetCompanionGUID () const |
| void | SetBattlePetCompanionGUID (ObjectGuid guid) |
| ObjectGuid | GetDemonCreatorGUID () const |
| void | SetDemonCreatorGUID (ObjectGuid guid) |
| Unit * | GetDemonCreator () const |
| Player * | GetDemonCreatorPlayer () const |
| ObjectGuid | GetCharmerGUID () const |
| Unit * | GetCharmer () const |
| ObjectGuid | GetCharmedGUID () const |
| Unit * | GetCharmed () const |
| bool | IsControlledByPlayer () const |
| Player * | GetControllingPlayer () const |
| ObjectGuid | GetCharmerOrOwnerGUID () const override |
| bool | IsCharmedOwnedByPlayerOrPlayer () const |
| Guardian * | GetGuardianPet () const |
| Minion * | GetFirstMinion () const |
| Unit * | GetCharmerOrOwner () const |
| void | SetMinion (Minion *minion, bool apply) |
| void | GetAllMinionsByEntry (std::list< TempSummon * > &Minions, uint32 entry) |
| void | RemoveAllMinionsByEntry (uint32 entry) |
| void | SetCharm (Unit *target, bool apply) |
| Unit * | GetNextRandomRaidMemberOrPet (float radius) |
| bool | SetCharmedBy (Unit *charmer, CharmType type, AuraApplication const *aurApp=nullptr) |
| void | RemoveCharmedBy (Unit *charmer) |
| void | RestoreFaction () |
| Unit * | GetFirstControlled () const |
| void | RemoveAllControlled () |
| bool | IsCharmed () const |
| bool | isPossessed () const |
| bool | isPossessedByPlayer () const |
| bool | isPossessing () const |
| bool | isPossessing (Unit *u) const |
| CharmInfo * | GetCharmInfo () |
| CharmInfo * | InitCharmInfo () |
| void | DeleteCharmInfo () |
| void | SetPetNumberForClient (uint32 petNumber) |
| void | SetPetNameTimestamp (uint32 timestamp) |
| void | SetMovedUnit (Unit *target) |
| Unit * | GetUnitBeingMoved () const |
| Player * | GetPlayerMovingMe () const |
| SharedVisionList const & | GetSharedVisionList () |
| void | AddPlayerToVision (Player *player) |
| void | RemovePlayerFromVision (Player *player) |
| bool | HasSharedVision () const |
| void | RemoveBindSightAuras () |
| void | RemoveCharmAuras () |
| Pet * | CreateTamedPetFrom (Creature *creatureTarget, uint32 spell_id=0) |
| Pet * | CreateTamedPetFrom (uint32 creatureEntry, uint32 spell_id=0) |
| bool | InitTamedPet (Pet *pet, uint8 level, uint32 spell_id) |
| uint32 | GetBattlePetCompanionNameTimestamp () const |
| void | SetBattlePetCompanionNameTimestamp (uint32 timestamp) |
| uint32 | GetBattlePetCompanionExperience () const |
| void | SetBattlePetCompanionExperience (uint32 experience) |
| uint32 | GetWildBattlePetLevel () const |
| void | SetWildBattlePetLevel (uint32 wildBattlePetLevel) |
| Aura * | _TryStackingOrRefreshingExistingAura (AuraCreateInfo &createInfo) |
| void | _AddAura (UnitAura *aura, Unit *caster) |
| AuraApplication * | _CreateAuraApplication (Aura *aura, uint32 effMask) |
| void | _ApplyAuraEffect (Aura *aura, uint8 effIndex) |
| void | _ApplyAura (AuraApplication *aurApp, uint32 effMask) |
| void | _UnapplyAura (AuraApplicationMap::iterator &i, AuraRemoveMode removeMode) |
| void | _UnapplyAura (AuraApplication *aurApp, AuraRemoveMode removeMode) |
| void | _RemoveNoStackAurasDueToAura (Aura *aura, bool owned) |
| void | _RegisterAuraEffect (AuraEffect *aurEff, bool apply) |
| AuraMap & | GetOwnedAuras () |
| AuraMap const & | GetOwnedAuras () const |
| void | RemoveOwnedAura (AuraMap::iterator &i, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAura (Aura *aura, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| Aura * | GetOwnedAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, Aura *except=nullptr) const |
| AuraApplicationMap & | GetAppliedAuras () |
| AuraApplicationMap const & | GetAppliedAuras () const |
| void | RemoveAura (AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (AuraApplication *aurApp, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (Aura *aur, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAppliedAuras (std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAuras (std::function< bool(Aura const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAppliedAuras (uint32 spellId, std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAuras (uint32 spellId, std::function< bool(Aura const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAurasByType (AuraType auraType, std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAurasDueToSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAuraFromStack (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, uint16 num=1) |
| void | RemoveAurasDueToSpellByDispel (uint32 spellId, uint32 dispellerSpellId, ObjectGuid casterGUID, WorldObject *dispeller, uint8 chargesRemoved=1) |
| void | RemoveAurasDueToSpellBySteal (uint32 spellId, ObjectGuid casterGUID, WorldObject *stealer, int32 stolenCharges=1) |
| void | RemoveAurasDueToItemSpell (uint32 spellId, ObjectGuid castItemGuid) |
| void | RemoveAurasByType (AuraType auraType, ObjectGuid casterGUID=ObjectGuid::Empty, Aura *except=nullptr, bool negative=true, bool positive=true) |
| void | RemoveNotOwnSingleTargetAuras (bool onPhaseChange=false) |
| template<typename InterruptFlags > | |
| void | RemoveAurasWithInterruptFlags (InterruptFlags flag, SpellInfo const *source=nullptr) |
| void | RemoveAurasWithAttribute (SpellAttr0 flags) |
| void | RemoveAurasWithFamily (SpellFamilyNames family, flag128 const &familyFlag, ObjectGuid casterGUID) |
| void | RemoveAurasWithMechanic (uint64 mechanicMaskToRemove, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, uint32 exceptSpellId=0, bool withEffectMechanics=false) |
| void | RemoveMovementImpairingAuras (bool withRoot) |
| void | RemoveAurasByShapeShift () |
| void | RemoveAreaAurasDueToLeaveWorld () |
| void | RemoveAllAuras () |
| void | RemoveArenaAuras () |
| void | RemoveAurasOnEvade () |
| void | RemoveAllAurasOnDeath () |
| void | RemoveAllAurasRequiringDeadTarget () |
| void | RemoveAllAurasExceptType (AuraType type) |
| void | RemoveAllAurasExceptType (AuraType type1, AuraType type2) |
| void | RemoveAllGroupBuffsFromCaster (ObjectGuid casterGUID) |
| void | DelayOwnedAuras (uint32 spellId, ObjectGuid caster, int32 delaytime) |
| void | _RemoveAllAuraStatMods () |
| void | _ApplyAllAuraStatMods () |
| AuraEffectList const & | GetAuraEffectsByType (AuraType type) const |
| AuraEffectList & | GetAuraEffectsByType (AuraType type) |
| AuraList & | GetSingleCastAuras () |
| AuraList const & | GetSingleCastAuras () const |
| AuraEffect * | GetAuraEffect (uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const |
| AuraEffect * | GetAuraEffectOfRankedSpell (uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const |
| AuraEffect * | GetAuraEffect (AuraType type, SpellFamilyNames family, flag128 const &familyFlag, ObjectGuid casterGUID=ObjectGuid::Empty) const |
| AuraApplication * | GetAuraApplication (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraApplication *except=nullptr) const |
| AuraApplication * | GetAuraApplication (uint32 spellId, std::function< bool(AuraApplication const *)> const &predicate) const |
| AuraApplication * | GetAuraApplication (uint32 spellId, std::function< bool(Aura const *)> const &predicate) const |
| AuraApplication * | GetAuraApplication (std::function< bool(AuraApplication const *)> const &predicate) const |
| AuraApplication * | GetAuraApplication (std::function< bool(Aura const *)> const &predicate) const |
| Aura * | GetAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const |
| Aura * | GetAura (uint32 spellId, std::function< bool(Aura const *)> const &predicate) const |
| Aura * | GetAura (std::function< bool(Aura const *)> const &predicate) const |
| AuraApplication * | GetAuraApplicationOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraApplication *except=nullptr) const |
| Aura * | GetAuraOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const |
| void | GetDispellableAuraList (WorldObject const *caster, uint32 dispelMask, DispelChargesList &dispelList, bool isReflect=false) const |
| bool | HasAuraEffect (uint32 spellId, uint8 effIndex, ObjectGuid caster=ObjectGuid::Empty) const |
| uint32 | GetAuraCount (uint32 spellId) const |
| bool | HasAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const |
| bool | HasAura (std::function< bool(Aura const *)> const &predicate) const |
| bool | HasAuraType (AuraType auraType) const |
| bool | HasAuraTypeWithCaster (AuraType auraType, ObjectGuid caster) const |
| bool | HasAuraTypeWithMiscvalue (AuraType auraType, int32 miscValue) const |
| bool | HasAuraTypeWithAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| bool | HasAuraTypeWithValue (AuraType auraType, int32 value) const |
| bool | HasAuraTypeWithTriggerSpell (AuraType auratype, uint32 triggerSpell) const |
| template<typename InterruptFlags > | |
| bool | HasNegativeAuraWithInterruptFlag (InterruptFlags flag, ObjectGuid guid=ObjectGuid::Empty) const |
| bool | HasAuraWithMechanic (uint64 mechanicMask) const |
| bool | HasStrongerAuraWithDR (SpellInfo const *auraSpellInfo, Unit *caster) const |
| AuraEffect * | IsScriptOverriden (SpellInfo const *spell, int32 script) const |
| uint32 | GetDiseasesByCaster (ObjectGuid casterGUID, bool remove=false) |
| uint32 | GetDoTsByCaster (ObjectGuid casterGUID) const |
| float | GetTotalAuraModifier (AuraType auraType) const |
| float | GetTotalAuraMultiplier (AuraType auraType) const |
| float | GetMaxPositiveAuraModifier (AuraType auraType) const |
| float | GetMaxNegativeAuraModifier (AuraType auraType) const |
| float | GetTotalAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const |
| float | GetTotalAuraMultiplier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const |
| float | GetMaxPositiveAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const |
| float | GetMaxNegativeAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const |
| float | GetTotalAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const |
| float | GetTotalAuraMultiplierByMiscMask (AuraType auraType, uint32 misc_mask) const |
| float | GetMaxPositiveAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask, AuraEffect const *except=nullptr) const |
| float | GetMaxNegativeAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const |
| float | GetTotalAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const |
| float | GetTotalAuraMultiplierByMiscValue (AuraType auraType, int32 misc_value) const |
| float | GetMaxPositiveAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const |
| float | GetMaxNegativeAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const |
| float | GetTotalAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| float | GetTotalAuraMultiplierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| float | GetMaxPositiveAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| float | GetMaxNegativeAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| void | InitStatBuffMods () |
| void | UpdateStatBuffMod (Stats stat) |
| void | UpdateStatBuffModForClient (Stats stat) |
| void | SetCreateStat (Stats stat, float val) |
| void | SetCreateHealth (uint32 val) |
| uint32 | GetCreateHealth () const |
| void | SetCreateMana (uint32 val) |
| uint32 | GetCreateMana () const |
| float | GetPosStat (Stats stat) const |
| float | GetNegStat (Stats stat) const |
| float | GetCreateStat (Stats stat) const |
| uint32 | GetChannelSpellId () const |
| void | SetChannelSpellId (uint32 channelSpellId) |
| uint32 | GetChannelSpellXSpellVisualId () const |
| uint32 | GetChannelScriptVisualId () const |
| void | SetChannelVisual (SpellCastVisual channelVisual) |
| void | AddChannelObject (ObjectGuid guid) |
| void | SetChannelObject (uint32 slot, ObjectGuid guid) |
| void | RemoveChannelObject (ObjectGuid guid) |
| void | ClearChannelObjects () |
| void | SetChannelSpellData (uint32 startTimeMs, uint32 durationMs) |
| int8 | GetSpellEmpowerStage () const |
| void | SetSpellEmpowerStage (int8 stage) |
| void | SetCurrentCastSpell (Spell *pSpell) |
| void | InterruptSpell (CurrentSpellTypes spellType, bool withDelayed=true, bool withInstant=true, SpellCastResult result=SPELL_FAILED_INTERRUPTED, Optional< SpellCastResult > resultOther={}, ObjectGuid const &interrupter=ObjectGuid::Empty) |
| void | FinishSpell (CurrentSpellTypes spellType, SpellCastResult result=SPELL_CAST_OK) |
| void | CancelAutoRepeatSpell () |
| bool | IsNonMeleeSpellCast (bool withDelayed, bool skipChanneled=false, bool skipAutorepeat=false, bool isAutoshoot=false, bool skipInstant=true, bool skipChanneledAllowingActions=false) const |
| void | InterruptNonMeleeSpells (bool withDelayed, uint32 spellid=0, bool withInstant=true) |
| Spell * | GetCurrentSpell (CurrentSpellTypes spellType) const |
| Spell * | FindCurrentSpellBySpellId (uint32 spell_id) const |
| int32 | GetCurrentSpellCastTime (uint32 spell_id) const |
| GetCastSpellInfoResult | GetCastSpellInfo (SpellInfo const *spellInfo) const |
| virtual SpellInfo const * | GetCastSpellInfo (SpellInfo const *spellInfo, TriggerCastFlags &triggerFlag, GetCastSpellInfoContext *context) const |
| uint32 | GetCastSpellXSpellVisualId (SpellInfo const *spellInfo) const override |
| bool | CanCastSpellWhileMoving (SpellInfo const *spellInfo) const |
| bool | IsSilenced (SpellSchoolMask schoolMask) const |
| void | SetSilencedSchoolMask (SpellSchoolMask schoolMask) |
| void | ReplaceAllSilencedSchoolMask (SpellSchoolMask schoolMask) |
| SpellHistory * | GetSpellHistory () |
| SpellHistory const * | GetSpellHistory () const |
| ShapeshiftForm | GetShapeshiftForm () const |
| void | SetShapeshiftForm (ShapeshiftForm form) |
| void | CancelShapeshiftForm (bool onlyTravelShapeshiftForm=false, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, bool force=false) |
| void | CancelTravelShapeshiftForm (AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, bool force=false) |
| bool | IsInFeralForm () const |
| bool | IsInDisallowedMountForm () const |
| bool | IsDisallowedMountForm (uint32 spellId, ShapeshiftForm form, uint32 displayId) const |
| void | HandleStatFlatModifier (UnitMods unitMod, UnitModifierFlatType modifierType, float amount, bool apply) |
| void | ApplyStatPctModifier (UnitMods unitMod, UnitModifierPctType modifierType, float amount) |
| void | SetStatFlatModifier (UnitMods unitMod, UnitModifierFlatType modifierType, float val) |
| void | SetStatPctModifier (UnitMods unitMod, UnitModifierPctType modifierType, float val) |
| float | GetFlatModifierValue (UnitMods unitMod, UnitModifierFlatType modifierType) const |
| float | GetPctModifierValue (UnitMods unitMod, UnitModifierPctType modifierType) const |
| void | UpdateUnitMod (UnitMods unitMod) |
| void | HandleAttackPowerModifier (AttackPowerModIndex index, AttackPowerModType modifierType, float amount, bool apply) |
| float | GetAttackPowerModifierValue (AttackPowerModIndex index, AttackPowerModType modifierType) const |
| virtual bool | CheckAttackFitToAuraRequirement (WeaponAttackType, AuraEffect const *) const |
| virtual void | UpdateDamageDoneMods (WeaponAttackType attackType, int32 skipEnchantSlot=-1) |
| void | UpdateAllDamageDoneMods () |
| void | UpdateDamagePctDoneMods (WeaponAttackType attackType) |
| void | UpdateAllDamagePctDoneMods () |
| float | GetTotalStatValue (Stats stat) const |
| float | GetTotalAuraModValue (UnitMods unitMod) const |
| SpellSchools | GetSpellSchoolByAuraGroup (UnitMods unitMod) const |
| Stats | GetStatByAuraGroup (UnitMods unitMod) const |
| bool | CanModifyStats () const |
| void | SetCanModifyStats (bool modifyStats) |
| virtual void | UpdateResistances (uint32 school) |
| virtual void | UpdateAllResistances () |
| void | SetAttackPower (int32 attackPower) |
| void | SetAttackPowerModPos (int32 attackPowerMod) |
| void | SetAttackPowerModNeg (int32 attackPowerMod) |
| void | SetAttackPowerMultiplier (float attackPowerMult) |
| void | SetRangedAttackPower (int32 attackPower) |
| void | SetRangedAttackPowerModPos (int32 attackPowerMod) |
| void | SetRangedAttackPowerModNeg (int32 attackPowerMod) |
| void | SetRangedAttackPowerMultiplier (float attackPowerMult) |
| void | SetMainHandWeaponAttackPower (int32 attackPower) |
| void | SetOffHandWeaponAttackPower (int32 attackPower) |
| void | SetRangedWeaponAttackPower (int32 attackPower) |
| virtual void | UpdateDamagePhysical (WeaponAttackType attType) |
| float | GetTotalAttackPowerValue (WeaponAttackType attType, bool includeWeapon=true) const |
| float | GetWeaponDamageRange (WeaponAttackType attType, WeaponDamageRange type) const |
| void | SetBaseWeaponDamage (WeaponAttackType attType, WeaponDamageRange damageRange, float value) |
| uint32 | CalculateDamage (WeaponAttackType attType, bool normalized, bool addTotalPct) const |
| float | GetAPMultiplier (WeaponAttackType attType, bool normalized) const |
| bool | isInFrontInMap (Unit const *target, float distance, float arc=float(M_PI)) const |
| bool | isInBackInMap (Unit const *target, float distance, float arc=float(M_PI)) const |
| bool | IsVisible () const |
| void | SetVisible (bool x) |
| virtual void | OnPhaseChange () |
| void | UpdateObjectVisibility (bool forced=true) override |
| VisibleAuraContainer const & | GetVisibleAuras () const |
| bool | HasVisibleAura (AuraApplication *aurApp) const |
| void | SetVisibleAura (AuraApplication *aurApp) |
| void | RemoveVisibleAura (AuraApplication *aurApp) |
| void | SetVisibleAuraUpdate (AuraApplication *aurApp) |
| void | RemoveVisibleAuraUpdate (AuraApplication *aurApp) |
| bool | HasInterruptFlag (SpellAuraInterruptFlags flags) const |
| bool | HasInterruptFlag (SpellAuraInterruptFlags2 flags) const |
| void | AddInterruptMask (SpellAuraInterruptFlags flags, SpellAuraInterruptFlags2 flags2) |
| void | UpdateInterruptMask () |
| virtual void | RecalculateObjectScale () |
| uint32 | GetDisplayId () const |
| float | GetDisplayScale () const |
| uint32 | GetNativeDisplayId () const |
| float | GetNativeDisplayScale () const |
| void | RestoreDisplayId (bool ignorePositiveAurasPreventingMounting=false) |
| void | SetTransformSpell (uint32 spellid) |
| uint32 | GetTransformSpell () const |
| void | _RegisterDynObject (DynamicObject *dynObj) |
| void | _UnregisterDynObject (DynamicObject *dynObj) |
| DynamicObject * | GetDynObject (uint32 spellId) const |
| std::vector< DynamicObject * > | GetDynObjects (uint32 spellId) const |
| void | RemoveDynObject (uint32 spellId) |
| void | RemoveAllDynObjects () |
| GameObject * | GetGameObject (uint32 spellId) const |
| std::vector< GameObject * > | GetGameObjects (uint32 spellId) const |
| void | AddGameObject (GameObject *gameObj) |
| void | RemoveGameObject (GameObject *gameObj, bool del) |
| void | RemoveGameObject (uint32 spellid, bool del) |
| void | RemoveAllGameObjects () |
| void | _RegisterAreaTrigger (AreaTrigger *areaTrigger) |
| void | _UnregisterAreaTrigger (AreaTrigger *areaTrigger) |
| AreaTrigger * | GetAreaTrigger (uint32 spellId) const |
| std::vector< AreaTrigger * > | GetAreaTriggers (uint32 spellId) const |
| void | RemoveAreaTrigger (uint32 spellId) |
| void | RemoveAreaTrigger (AuraEffect const *aurEff) |
| void | RemoveAllAreaTriggers (AreaTriggerRemoveReason reason=AreaTriggerRemoveReason::Default) |
| void | EnterAreaTrigger (AreaTrigger *areaTrigger) |
| void | ExitAreaTrigger (AreaTrigger *areaTrigger) |
| std::vector< AreaTrigger * > const & | GetInsideAreaTriggers () const |
| void | ExitAllAreaTriggers () |
| void | ModifyAuraState (AuraStateType flag, bool apply) |
| uint32 | BuildAuraStateUpdateForTarget (Unit const *target) const |
| bool | HasAuraState (AuraStateType flag, SpellInfo const *spellProto=nullptr, Unit const *Caster=nullptr) const |
| void | UnsummonAllTotems () |
| bool | IsMagnet () const |
| Unit * | GetMeleeHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo=nullptr) |
| int32 | SpellBaseDamageBonusDone (SpellSchoolMask schoolMask) const |
| int32 | SpellDamageBonusDone (Unit *victim, SpellInfo const *spellProto, int32 pdamage, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, uint32 stack=1, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr) const |
| float | SpellDamagePctDone (Unit *victim, SpellInfo const *spellProto, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo) const |
| int32 | SpellDamageBonusTaken (Unit *caster, SpellInfo const *spellProto, int32 pdamage, DamageEffectType damagetype) const |
| int32 | SpellBaseHealingBonusDone (SpellSchoolMask schoolMask) const |
| int32 | SpellHealingBonusDone (Unit *victim, SpellInfo const *spellProto, int32 healamount, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, uint32 stack=1, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr) const |
| float | SpellHealingPctDone (Unit *victim, SpellInfo const *spellProto) const |
| int32 | SpellHealingBonusTaken (Unit *caster, SpellInfo const *spellProto, int32 healamount, DamageEffectType damagetype) const |
| int32 | SpellBaseAbsorbBonusDone (SpellSchoolMask schoolMask) const |
| int32 | SpellAbsorbBonusDone (Unit *victim, SpellInfo const *spellProto, int32 absorbamount, SpellEffectInfo const &spellEffectInfo, uint32 stack=1, AuraEffect const *aurEff=nullptr) const |
| float | SpellAbsorbPctDone (Unit *victim, SpellInfo const *spellProto) const |
| int32 | SpellAbsorbBonusTaken (Unit *caster, SpellInfo const *spellProto, int32 absorbamount) const |
| int32 | MeleeDamageBonusDone (Unit *pVictim, int32 damage, WeaponAttackType attType, DamageEffectType damagetype, SpellInfo const *spellProto=nullptr, SpellEffectInfo const *spellEffectInfo=nullptr, Mechanics mechanic=MECHANIC_NONE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, Spell *spell=nullptr, AuraEffect const *aurEff=nullptr) |
| int32 | MeleeDamageBonusTaken (Unit *attacker, int32 pdamage, WeaponAttackType attType, DamageEffectType damagetype, SpellInfo const *spellProto=nullptr, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL) |
| bool | IsBlockCritical () const |
| float | SpellCritChanceDone (Spell *spell, AuraEffect const *aurEff, SpellSchoolMask schoolMask, WeaponAttackType attackType=BASE_ATTACK) const |
| float | SpellCritChanceTaken (Unit const *caster, Spell *spell, AuraEffect const *aurEff, SpellSchoolMask schoolMask, float doneChance, WeaponAttackType attackType=BASE_ATTACK) const |
| void | ApplySpellImmune (uint32 spellId, SpellImmunity op, uint32 type, bool apply) |
| bool | IsImmunedToSpell (SpellInfo const *spellInfo, uint32 effectMask, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const |
| uint32 | GetSchoolImmunityMask () const |
| uint32 | GetDamageImmunityMask () const |
| uint64 | GetMechanicImmunityMask () const |
| EnumFlag< SpellOtherImmunity > | GetSpellOtherImmunityMask () const |
| bool | IsImmunedToDamage (SpellSchoolMask meleeSchoolMask) const |
| bool | IsImmunedToDamage (WorldObject const *caster, SpellInfo const *spellInfo, SpellEffectInfo const *spellEffectInfo=nullptr) const |
| bool | IsImmunedToAuraPeriodicTick (WorldObject const *caster, AuraEffect const *auraEffect) const |
| void | UpdateSpeed (UnitMoveType mtype) |
| float | GetSpeed (UnitMoveType mtype) const |
| float | GetSpeedRate (UnitMoveType mtype) const |
| void | SetSpeed (UnitMoveType mtype, float newValue) |
| void | SetSpeedRate (UnitMoveType mtype, float rate) |
| int32 | GetFlightCapabilityID () const |
| void | SetFlightCapabilityID (int32 flightCapabilityId, bool clientUpdate) |
| float | GetAdvFlyingSpeed (AdvFlyingRateTypeSingle speedType) const |
| float | GetAdvFlyingSpeedMin (AdvFlyingRateTypeRange speedType) const |
| float | GetAdvFlyingSpeedMax (AdvFlyingRateTypeRange speedType) const |
| void | UpdateAdvFlyingSpeed (AdvFlyingRateTypeSingle speedType, bool clientUpdate) |
| void | UpdateAdvFlyingSpeed (AdvFlyingRateTypeRange speedType, bool clientUpdate) |
| void | FollowerAdded (AbstractFollower *f) |
| void | FollowerRemoved (AbstractFollower *f) |
| void | RemoveAllFollowers () |
| MotionMaster * | GetMotionMaster () |
| MotionMaster const * | GetMotionMaster () const |
| bool | IsStopped () const |
| void | StopMoving (bool force=false) |
| void | PauseMovement (uint32 timer=0, uint8 slot=0, bool forced=true) |
| void | ResumeMovement (uint32 timer=0, uint8 slot=0) |
| void | AddUnitMovementFlag (MovementFlags f) |
| void | RemoveUnitMovementFlag (MovementFlags f) |
| bool | HasUnitMovementFlag (MovementFlags f) const |
| MovementFlags | GetUnitMovementFlags () const |
| void | SetUnitMovementFlags (MovementFlags f) |
| bool | IsSplineEnabled () const |
| void | SetControlled (bool apply, UnitState state) |
| void | ApplyControlStatesIfNeeded () |
| void | SendPetActionFeedback (PetActionFeedback msg, uint32 spellId) const |
| -------—Pet responses methods--------------— | |
| void | SendPetActionSound (PetAction action) const |
| void | SendPetDismissSound () const |
| void | SendPetAIReaction (ObjectGuid guid) const |
| void | PropagateSpeedChange () |
| -------—End of Pet responses methods-------— | |
| void | ClearAllReactives () |
| void | StartReactiveTimer (ReactiveType reactive) |
| void | UpdateReactives (uint32 p_time) |
| void | UpdateAuraForGroup () |
| bool | CanProc () const |
| void | SetCantProc (bool apply) |
| int32 | GetProcChainLength () const |
| uint32 | GetModelForForm (ShapeshiftForm form, uint32 spellId) const |
| bool | CreateVehicleKit (uint32 id, uint32 creatureEntry, bool loading=false) |
| void | RemoveVehicleKit (bool onRemoveFromWorld=false) |
| Vehicle * | GetVehicleKit () const |
| Trinity::unique_weak_ptr< Vehicle > | GetVehicleKitWeakPtr () const |
| Vehicle * | GetVehicle () const |
| void | SetVehicle (Vehicle *vehicle) |
| bool | IsOnVehicle (Unit const *vehicle) const |
| Unit * | GetVehicleBase () const |
| Unit * | GetVehicleRoot () const |
| Creature * | GetVehicleCreatureBase () const |
| ObjectGuid | GetTransGUID () const override |
| TransportBase * | GetDirectTransport () const |
| Returns the transport this unit is on directly (if on vehicle and transport, return vehicle) | |
| void | HandleSpellClick (Unit *clicker, int8 seatId=-1) |
| bool | HandleSpellClick (Unit *clicker, int8 seatId, uint32 spellId, TriggerCastFlags flags=TRIGGERED_NONE, SpellClickInfo const *spellClickInfo=nullptr) |
| void | EnterVehicle (Unit *base, int8 seatId=-1) |
| void | ChangeSeat (int8 seatId, bool next=true) |
| void | _ExitVehicle (Position const *exitPosition=nullptr) |
| void | _EnterVehicle (Vehicle *vehicle, int8 seatId, AuraApplication const *aurApp=nullptr) |
| bool | isMoving () const |
| bool | isTurning () const |
| bool | IsFlying () const |
| bool | IsFalling () const |
| float | GetHoverOffset () const |
| int32 | RewardRage (uint32 baseRage) |
| virtual float | GetFollowAngle () const |
| void | OutDebugInfo () const |
| virtual bool | IsLoading () const |
| bool | IsDuringRemoveFromWorld () const |
| Pet * | ToPet () |
| Pet const * | ToPet () const |
| Totem * | ToTotem () |
| Totem const * | ToTotem () const |
| TempSummon * | ToTempSummon () |
| TempSummon const * | ToTempSummon () const |
| ObjectGuid | GetTarget () const |
| void | SetInstantCast (bool set) |
| bool | CanInstantCast () const |
| SpellEffectValue | GetHighestExclusiveSameEffectSpellGroupValue (AuraEffect const *aurEff, AuraType auraType, bool checkMiscValue=false, int32 miscValue=0) const |
| bool | IsHighestExclusiveAura (Aura const *aura, bool removeOtherAuraApplications=false) |
| bool | IsHighestExclusiveAuraEffect (SpellInfo const *spellInfo, AuraType auraType, SpellEffectValue effectAmount, uint32 auraEffectMask, bool removeOtherAuraApplications=false) |
| virtual void | Talk (std::string_view text, ChatMsg msgType, Language language, float textRange, WorldObject const *target) |
| virtual void | Say (std::string_view text, Language language, WorldObject const *target=nullptr) |
| virtual void | Yell (std::string_view text, Language language, WorldObject const *target=nullptr) |
| virtual void | TextEmote (std::string_view text, WorldObject const *target=nullptr, bool isBossEmote=false) |
| virtual void | Whisper (std::string_view text, Language language, Player *target, bool isBossWhisper=false) |
| virtual void | Talk (uint32 textId, ChatMsg msgType, float textRange, WorldObject const *target) |
| virtual void | Say (uint32 textId, WorldObject const *target=nullptr) |
| virtual void | Yell (uint32 textId, WorldObject const *target=nullptr) |
| virtual void | TextEmote (uint32 textId, WorldObject const *target=nullptr, bool isBossEmote=false) |
| virtual void | Whisper (uint32 textId, Player *target, bool isBossWhisper=false) |
| void | ClearBossEmotes (Optional< uint32 > zoneId={}, Player const *target=nullptr) const |
| Clears boss emotes frame. | |
| float | GetCollisionHeight () const override |
| uint32 | GetVirtualItemId (uint32 slot) const |
| uint16 | GetVirtualItemAppearanceMod (uint32 slot) const |
| void | SetVirtualItem (uint32 slot, uint32 itemId, uint16 appearanceModId=0, uint16 itemVisual=0) |
| bool | IsCombatDisallowed () const |
| void | SetIsCombatDisallowed (bool apply) |
| void | AddWorldEffect (int32 worldEffectId) |
| void | RemoveWorldEffect (int32 worldEffectId) |
| void | ClearWorldEffects () |
| Vignettes::VignetteData const * | GetVignette () const |
| void | SetVignette (uint32 vignetteId) |
| std::string | GetDebugInfo () const override |
| void | AtStartOfEncounter (EncounterType type) |
| void | AtEndOfEncounter (EncounterType type) |
Public Member Functions inherited from WorldObject | |
| virtual | ~WorldObject () |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| void | GetNearPoint2D (WorldObject const *searcher, float &x, float &y, float distance, float absAngle) const |
| void | GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float distance2d, float absAngle) const |
| void | GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float relAngle=0) const |
| void | MovePosition (Position &pos, float dist, float angle, float maxHeightChange=6.0f) const |
| Position | GetNearPosition (float dist, float angle) |
| void | MovePositionToFirstCollision (Position &pos, float dist, float angle) const |
| Position | GetFirstCollisionPosition (float dist, float angle) |
| Position | GetRandomNearPosition (float radius) |
| void | GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const |
| void | UpdateGroundPositionZ (float x, float y, float &z) const |
| void | UpdateAllowedPositionZ (float x, float y, float &z, float *groundZ=nullptr) const |
| Position | GetRandomPoint (Position const &srcPos, float distance, float minDistance=0.0f) const |
| uint32 | GetInstanceId () const |
| PhaseShift & | GetPhaseShift () |
| PhaseShift const & | GetPhaseShift () const |
| PhaseShift & | GetSuppressedPhaseShift () |
| PhaseShift const & | GetSuppressedPhaseShift () const |
| bool | InSamePhase (PhaseShift const &phaseShift) const |
| bool | InSamePhase (WorldObject const *obj) const |
| int32 | GetDBPhase () const |
| void | SetDBPhase (int32 p) |
| uint32 | GetZoneId () const |
| uint32 | GetAreaId () const |
| void | GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const |
| bool | IsInWorldPvpZone () const |
| bool | IsOutdoors () const |
| ZLiquidStatus | GetLiquidStatus () const |
| WmoLocation const * | GetCurrentWmo () const |
| InstanceScript * | GetInstanceScript () const |
| std::string const & | GetName () const |
| void | SetName (std::string newname) |
| std::string | GetNameForLocaleIdx (LocaleConstant) const override |
| float | GetDistance (WorldObject const *obj) const |
| float | GetDistance (Position const &pos) const |
| float | GetDistance (float x, float y, float z) const |
| float | GetDistance2d (WorldObject const *obj) const |
| float | GetDistance2d (float x, float y) const |
| float | GetDistanceZ (WorldObject const *obj) const |
| bool | IsSelfOrInSameMap (WorldObject const *obj) const |
| bool | IsInMap (WorldObject const *obj) const |
| bool | IsWithinDist3d (float x, float y, float z, float dist) const |
| bool | IsWithinDist3d (Position const *pos, float dist) const |
| bool | IsWithinDist2d (float x, float y, float dist) const |
| bool | IsWithinDist2d (Position const *pos, float dist) const |
| bool | IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const |
| bool | IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const |
| bool | IsWithinLOS (float x, float y, float z, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const |
| bool | IsWithinLOSInMap (WorldObject const *obj, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const |
| Position | GetHitSpherePointFor (Position const &dest) const |
| void | GetHitSpherePointFor (Position const &dest, float &x, float &y, float &z) const |
| bool | GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const |
| bool | IsInRange (WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const |
| bool | IsInRange2d (Position const *pos, float minRange, float maxRange) const |
| bool | IsInRange3d (Position const *pos, float minRange, float maxRange) const |
| bool | isInFront (WorldObject const *target, float arc=float(M_PI)) const |
| bool | isInBack (WorldObject const *target, float arc=float(M_PI)) const |
| bool | IsInBetween (Position const &pos1, Position const &pos2, float size=0) const |
| bool | IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const |
| virtual void | SendMessageToSet (WorldPacket const *data, bool self) const |
| virtual void | SendMessageToSetInRange (WorldPacket const *data, float dist, bool self) const |
| virtual void | SendMessageToSet (WorldPacket const *data, Player const *skipped_rcvr) const |
| void | SendCombatLogMessage (WorldPackets::CombatLog::CombatLogServerPacket *combatLog) const |
| void | PlayDistanceSound (uint32 soundId, Player const *target=nullptr) const |
| void | StopDistanceSound (Player const *target=nullptr) const |
| void | PlayDirectSound (uint32 soundId, Player const *target=nullptr, uint32 broadcastTextId=0) const |
| void | PlayDirectMusic (uint32 musicId, Player const *target=nullptr) const |
| void | PlayObjectSound (int32 soundKitId, ObjectGuid targetObject, Player const *target=nullptr, int32 broadcastTextId=0) const |
| void | AddObjectToRemoveList () |
| float | GetGridActivationRange () const |
| float | GetVisibilityRange () const |
| float | GetSightRange (WorldObject const *target=nullptr) const |
| bool | CanSeeOrDetect (WorldObject const *obj, CanSeeOrDetectExtraArgs const &args={ }) const |
| virtual void | SetMap (Map *map) |
| virtual void | ResetMap () |
| Map * | GetMap () const |
| Map * | FindMap () const |
| void | SetZoneScript () |
| ZoneScript * | FindZoneScript () const |
| ZoneScript * | GetZoneScript () const |
| Scenario * | GetScenario () const |
| TempSummon * | SummonCreature (uint32 entry, Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty) |
| TempSummon * | SummonCreature (uint32 entry, float x, float y, float z, float o=0, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, ObjectGuid privateObjectOwner=ObjectGuid::Empty) |
| TempSummon * | SummonPersonalClone (Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, Player *privateObjectOwner=nullptr) |
| GameObject * | SummonGameObject (uint32 entry, Position const &pos, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN) |
| GameObject * | SummonGameObject (uint32 entry, float x, float y, float z, float ang, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN) |
| Creature * | SummonTrigger (float x, float y, float z, float ang, Milliseconds despawnTime, CreatureAI *(*GetAI)(Creature *)=nullptr) |
| void | SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=nullptr) |
| Creature * | FindNearestCreature (uint32 entry, float range, bool alive=true) const |
| Creature * | FindNearestCreatureWithOptions (float range, FindCreatureOptions const &options) const |
| GameObject * | FindNearestGameObject (uint32 entry, float range, bool spawnedOnly=true) const |
| GameObject * | FindNearestGameObjectWithOptions (float range, FindGameObjectOptions const &options) const |
| GameObject * | FindNearestUnspawnedGameObject (uint32 entry, float range) const |
| GameObject * | FindNearestGameObjectOfType (GameobjectTypes type, float range) const |
| Player * | SelectNearestPlayer (float range) const |
| ObjectGuid | GetCharmerOrOwnerOrOwnGUID () const |
| Unit * | GetOwner () const |
| Unit * | GetCharmerOrOwner () const |
| Unit * | GetCharmerOrOwnerOrSelf () const |
| Player * | GetCharmerOrOwnerPlayerOrPlayerItself () const |
| Player * | GetAffectingPlayer () const |
| Player * | GetSpellModOwner () const |
| SpellRange | GetSpellMinMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
| SpellEffectValue | ApplyEffectModifiers (SpellInfo const *spellInfo, uint8 effIndex, SpellEffectValue value) const |
| int32 | CalcSpellDuration (SpellInfo const *spellInfo, std::vector< SpellPowerCost > const *powerCosts) const |
| int32 | ModSpellDuration (SpellInfo const *spellInfo, WorldObject const *target, int32 duration, bool positive, uint32 effectMask) const |
| void | ModSpellCastTime (SpellInfo const *spellInfo, int32 &castTime, Spell *spell=nullptr) const |
| void | ModSpellDurationTime (SpellInfo const *spellInfo, int32 &durationTime, Spell *spell=nullptr) const |
| SpellMissInfo | MagicSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const |
| SpellMissInfo | SpellHitResult (Unit *victim, SpellInfo const *spellInfo, bool canReflect, bool canImmune) const |
| void | SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo) |
| FactionTemplateEntry const * | GetFactionTemplateEntry () const |
| ReputationRank | GetReactionTo (WorldObject const *target) const |
| bool | IsHostileTo (WorldObject const *target) const |
| bool | IsHostileToPlayers () const |
| bool | IsFriendlyTo (WorldObject const *target) const |
| bool | IsNeutralToAll () const |
| SpellCastResult | CastSpell (CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ }) |
| void | SendPlayOrphanSpellVisual (Position const &sourceLocation, ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false) |
| void | SendPlayOrphanSpellVisual (Position const &sourceLocation, Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false) |
| void | SendPlayOrphanSpellVisual (ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false) |
| void | SendPlayOrphanSpellVisual (Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false) |
| void | SendCancelOrphanSpellVisual (uint32 id) |
| bool | IsValidAttackTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const |
| bool | IsValidAssistTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const |
| Unit * | GetMagicHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo) |
| template<typename Container > | |
| void | GetGameObjectListWithEntryInGrid (Container &gameObjectContainer, uint32 entry, float maxSearchRange=250.0f) const |
| template<typename Container > | |
| void | GetGameObjectListWithOptionsInGrid (Container &gameObjectContainer, float maxSearchRange, FindGameObjectOptions const &options) const |
| template<typename Container > | |
| void | GetCreatureListWithEntryInGrid (Container &creatureContainer, uint32 entry, float maxSearchRange=250.0f) const |
| template<typename Container > | |
| void | GetCreatureListWithOptionsInGrid (Container &creatureContainer, float maxSearchRange, FindCreatureOptions const &options) const |
| template<typename Container > | |
| void | GetPlayerListInGrid (Container &playerContainer, float maxSearchRange, bool alive=true) const |
| void | DestroyForNearbyPlayers () |
| virtual void | UpdateObjectVisibilityOnCreate () |
| virtual void | UpdateObjectVisibilityOnDestroy () |
| void | UpdatePositionData () |
| void | BuildUpdate (UpdateDataMapType &) override |
| bool | AddToObjectUpdate () override |
| void | RemoveFromObjectUpdate () override |
| void | AddToNotify (uint16 f) |
| bool | isNeedNotify (uint16 f) const |
| uint16 | GetNotifyFlags () const |
| void | ResetAllNotifies () |
| bool | isActiveObject () const |
| void | setActive (bool isActiveObject) |
| bool | IsFarVisible () const |
| void | SetFarVisible (bool on) |
| bool | IsVisibilityOverridden () const |
| void | SetVisibilityDistanceOverride (VisibilityDistanceType type) |
| void | SetIsStoredInWorldObjectGridContainer (bool apply) |
| bool | IsAlwaysStoredInWorldObjectGridContainer () const |
| bool | IsStoredInWorldObjectGridContainer () const |
| TransportBase * | GetTransport () const |
| float | GetTransOffsetX () const |
| float | GetTransOffsetY () const |
| float | GetTransOffsetZ () const |
| float | GetTransOffsetO () const |
| Position const & | GetTransOffset () const |
| uint32 | GetTransTime () const |
| int8 | GetTransSeat () const |
| void | SetTransport (TransportBase *t) |
| virtual Position const & | GetStationaryPosition () const |
| float | GetFloorZ () const |
| float | GetMapWaterOrGroundLevel (float x, float y, float z, float *ground=nullptr) const |
| float | GetMapHeight (float x, float y, float z, bool vmap=true, float distanceToSearch=50.0f) const |
| std::string | GetDebugInfo () const override |
| bool | IsPrivateObject () const |
| ObjectGuid | GetPrivateObjectOwner () const |
| void | SetPrivateObjectOwner (ObjectGuid const &owner) |
| bool | CheckPrivateObjectOwnerVisibility (WorldObject const *seer) const |
| SmoothPhasing * | GetOrCreateSmoothPhasing () |
| SmoothPhasing * | GetSmoothPhasing () |
| SmoothPhasing const * | GetSmoothPhasing () const |
Public Member Functions inherited from Object | |
| virtual | ~Object () |
| uint32 | GetEntry () const |
| void | SetEntry (uint32 entry) |
| float | GetObjectScale () const |
| uint32 | GetDynamicFlags () const |
| bool | HasDynamicFlag (uint32 flag) const |
| void | SetDynamicFlag (uint32 flag) |
| void | RemoveDynamicFlag (uint32 flag) |
| void | ReplaceAllDynamicFlags (uint32 flag) |
| void | BuildValuesUpdateBlockForPlayerWithFlag (UpdateData *data, UF::UpdateFieldFlag flags, Player const *target) const |
| WorldObject * | ToWorldObject () |
| WorldObject const * | ToWorldObject () const |
| Item * | ToItem () |
| Item const * | ToItem () const |
| Unit * | ToUnit () |
| Unit const * | ToUnit () const |
| Creature * | ToCreature () |
| Creature const * | ToCreature () const |
| Player * | ToPlayer () |
| Player const * | ToPlayer () const |
| GameObject * | ToGameObject () |
| GameObject const * | ToGameObject () const |
| Corpse * | ToCorpse () |
| Corpse const * | ToCorpse () const |
| DynamicObject * | ToDynObject () |
| DynamicObject const * | ToDynObject () const |
| AreaTrigger * | ToAreaTrigger () |
| AreaTrigger const * | ToAreaTrigger () const |
| SceneObject * | ToSceneObject () |
| SceneObject const * | ToSceneObject () const |
| Conversation * | ToConversation () |
| Conversation const * | ToConversation () const |
| Trinity::unique_weak_ptr< Object > | GetWeakPtr () const |
Public Member Functions inherited from BaseEntity | |
| virtual | ~BaseEntity () |
| bool | IsInWorld () const |
| ObjectGuid const & | GetGUID () const |
| TypeID | GetTypeId () const |
| bool | isType (TypeMask mask) const |
| bool | IsWorldObject () const |
| bool | IsItem () const |
| bool | IsUnit () const |
| bool | IsCreature () const |
| bool | IsPlayer () const |
| bool | IsGameObject () const |
| bool | IsDynObject () const |
| bool | IsCorpse () const |
| bool | IsAreaTrigger () const |
| bool | IsSceneObject () const |
| bool | IsConversation () const |
| bool | IsMeshObject () const |
| virtual void | BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const |
| void | SendUpdateToPlayer (Player *player) const |
| void | BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const |
| void | BuildDestroyUpdateBlock (UpdateData *data) const |
| void | BuildOutOfRangeUpdateBlock (UpdateData *data) const |
| ByteBuffer & | PrepareValuesUpdateBuffer (UpdateData *data) const |
| void | SendOutOfRangeForPlayer (Player const *target) const |
| void | ClearUpdateMask (bool remove) |
| void | SetIsNewObject (bool enable) |
| bool | IsDestroyedObject () const |
| void | SetDestroyedObject (bool destroyed) |
| void | BuildUpdateChangesMask () |
| void | BuildFieldsUpdate (Player *player, UpdateDataMapType &data_map) const |
| template<typename T > | |
| void | ForceUpdateFieldChange (UF::UpdateFieldPrivateSetter< T > const &) |
Public Member Functions inherited from WorldLocation | |
| constexpr | WorldLocation () |
| constexpr | WorldLocation (uint32 mapId, float x, float y) |
| constexpr | WorldLocation (uint32 mapId, float x, float y, float z) |
| constexpr | WorldLocation (uint32 mapId, float x, float y, float z, float o) |
| constexpr | WorldLocation (uint32 mapId, Position const &position) |
| constexpr void | WorldRelocate (WorldLocation const &loc) |
| constexpr void | WorldRelocate (WorldLocation const *loc) |
| constexpr void | WorldRelocate (uint32 mapId, Position const &pos) |
| constexpr void | WorldRelocate (uint32 mapId, float x, float y, float z, float o) |
| constexpr WorldLocation | GetWorldLocation () const |
| constexpr uint32 | GetMapId () const |
| std::string | GetDebugInfo () const |
Public Member Functions inherited from Position | |
| constexpr | Position () |
| constexpr | Position (float x, float y) |
| constexpr | Position (float x, float y, float z) |
| constexpr | Position (float x, float y, float z, float o) |
| bool | operator== (Position const &a) const |
| constexpr void | Relocate (float x, float y) |
| constexpr void | Relocate (float x, float y, float z) |
| constexpr void | Relocate (float x, float y, float z, float o) |
| constexpr void | Relocate (Position const &pos) |
| constexpr void | Relocate (Position const *pos) |
| void | RelocateOffset (Position const &offset) |
| constexpr void | SetOrientation (float orientation) |
| constexpr float | GetPositionX () const |
| constexpr float | GetPositionY () const |
| constexpr float | GetPositionZ () const |
| constexpr float | GetOrientation () const |
| constexpr void | GetPosition (float &x, float &y) const |
| constexpr void | GetPosition (float &x, float &y, float &z) const |
| constexpr void | GetPosition (float &x, float &y, float &z, float &o) const |
| constexpr Position | GetPosition () const |
| Streamer< XY > | PositionXYStream () |
| ConstStreamer< XY > | PositionXYStream () const |
| Streamer< XYZ > | PositionXYZStream () |
| ConstStreamer< XYZ > | PositionXYZStream () const |
| Streamer< XYZO > | PositionXYZOStream () |
| ConstStreamer< XYZO > | PositionXYZOStream () const |
| Streamer< PackedXYZ > | PositionPackedXYZStream () |
| ConstStreamer< PackedXYZ > | PositionPackedXYZStream () const |
| bool | IsPositionValid () const |
| constexpr float | GetExactDist2dSq (const float x, const float y) const |
| constexpr float | GetExactDist2dSq (Position const &pos) const |
| constexpr float | GetExactDist2dSq (Position const *pos) const |
| float | GetExactDist2d (const float x, const float y) const |
| float | GetExactDist2d (Position const &pos) const |
| float | GetExactDist2d (Position const *pos) const |
| constexpr float | GetExactDistSq (float x, float y, float z) const |
| constexpr float | GetExactDistSq (Position const &pos) const |
| constexpr float | GetExactDistSq (Position const *pos) const |
| float | GetExactDist (float x, float y, float z) const |
| float | GetExactDist (Position const &pos) const |
| float | GetExactDist (Position const *pos) const |
| Position | GetPositionOffsetTo (Position const &endPos) const |
| Position | GetPositionWithOffset (Position const &offset) const |
| float | GetAbsoluteAngle (float x, float y) const |
| float | GetAbsoluteAngle (Position const &pos) const |
| float | GetAbsoluteAngle (Position const *pos) const |
| float | ToAbsoluteAngle (float relAngle) const |
| float | ToRelativeAngle (float absAngle) const |
| float | GetRelativeAngle (float x, float y) const |
| float | GetRelativeAngle (Position const &pos) const |
| float | GetRelativeAngle (Position const *pos) const |
| constexpr bool | IsInDist2d (float x, float y, float dist) const |
| constexpr bool | IsInDist2d (Position const &pos, float dist) const |
| constexpr bool | IsInDist2d (Position const *pos, float dist) const |
| constexpr bool | IsInDist (float x, float y, float z, float dist) const |
| constexpr bool | IsInDist (Position const &pos, float dist) const |
| constexpr bool | IsInDist (Position const *pos, float dist) const |
| bool | IsWithinBox (Position const &boxOrigin, float length, float width, float height) const |
| bool | IsWithinVerticalCylinder (Position const &cylinderOrigin, float radius, float height, bool isDoubleVertical=false) const |
| bool | IsInPolygon2D (Position const &polygonOrigin, std::span< Position const > vertices) const |
| bool | HasInArc (float arcangle, Position const *pos, float border=2.0f) const |
| bool | HasInLine (Position const *pos, float objSize, float width) const |
| std::string | ToString () const |
Public Member Functions inherited from GridObject< Creature > | |
| virtual | ~GridObject () |
| bool | IsInGrid () const |
| void | AddToGrid (GridRefManager< Creature > &m) |
| void | RemoveFromGrid () |
Static Public Member Functions | |
| static Creature * | CreateCreature (uint32 entry, Map *map, Position const &pos, uint32 vehId=0) |
| static Creature * | CreateCreatureFromDB (ObjectGuid::LowType spawnId, Map *map, bool addToMap=true, bool allowDuplicate=false) |
| static bool | DeleteFromDB (ObjectGuid::LowType spawnId) |
| static float | GetDamageMod (CreatureClassifications classification) |
Static Public Member Functions inherited from Unit | |
| static std::vector< AuraEffect * > | CopyAuraEffectList (AuraEffectList const &list) |
| static float | CalculateAverageResistReduction (WorldObject const *caster, SpellSchoolMask schoolMask, Unit const *victim, SpellInfo const *spellInfo=nullptr) |
| static void | DealDamageMods (Unit const *attacker, Unit const *victim, uint32 &damage, uint32 *absorb) |
| static uint32 | DealDamage (Unit *attacker, Unit *victim, uint32 damage, CleanDamage const *cleanDamage=nullptr, DamageEffectType damagetype=DIRECT_DAMAGE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *spellProto=nullptr, bool durabilityLoss=true) |
| static void | Kill (Unit *attacker, Unit *victim, bool durabilityLoss=true, bool skipSettingDeathState=false) |
| static void | DealHeal (HealInfo &healInfo) |
| static void | ProcSkillsAndAuras (Unit *actor, Unit *actionTarget, ProcFlagsInit const &typeMaskActor, ProcFlagsInit const &typeMaskActionTarget, ProcFlagsSpellType spellTypeMask, ProcFlagsSpellPhase spellPhaseMask, ProcFlagsHit hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo) |
| static void | ApplyResilience (Unit const *victim, int32 *damage) |
| static uint32 | SpellCriticalDamageBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit *victim) |
| static uint32 | SpellCriticalHealingBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit *victim) |
| static bool | IsDamageReducedByArmor (SpellSchoolMask damageSchoolMask, SpellInfo const *spellInfo=nullptr) |
| static uint32 | CalcArmorReducedDamage (Unit const *attacker, Unit *victim, uint32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=MAX_ATTACK, uint8 attackerLevel=0) |
| static uint32 | CalcSpellResistedDamage (Unit const *attacker, Unit *victim, uint32 damage, SpellSchoolMask schoolMask, SpellInfo const *spellInfo) |
| static void | CalcAbsorbResist (DamageInfo &damageInfo, Spell *spell=nullptr) |
| static void | CalcHealAbsorb (HealInfo &healInfo) |
Static Public Member Functions inherited from WorldObject | |
| static bool | InSamePhase (WorldObject const *a, WorldObject const *b) |
| static ReputationRank | GetFactionReactionTo (FactionTemplateEntry const *factionTemplateEntry, WorldObject const *target) |
Static Public Member Functions inherited from Object | |
| static WorldObject * | ToWorldObject (Object *o) |
| static WorldObject const * | ToWorldObject (Object const *o) |
| static Item * | ToItem (Object *o) |
| static Item const * | ToItem (Object const *o) |
| static Unit * | ToUnit (Object *o) |
| static Unit const * | ToUnit (Object const *o) |
| static Creature * | ToCreature (Object *o) |
| static Creature const * | ToCreature (Object const *o) |
| static Player * | ToPlayer (Object *o) |
| static Player const * | ToPlayer (Object const *o) |
| static GameObject * | ToGameObject (Object *o) |
| static GameObject const * | ToGameObject (Object const *o) |
| static Corpse * | ToCorpse (Object *o) |
| static Corpse const * | ToCorpse (Object const *o) |
| static DynamicObject * | ToDynObject (Object *o) |
| static DynamicObject const * | ToDynObject (Object const *o) |
| static AreaTrigger * | ToAreaTrigger (Object *o) |
| static AreaTrigger const * | ToAreaTrigger (Object const *o) |
| static SceneObject * | ToSceneObject (Object *o) |
| static SceneObject const * | ToSceneObject (Object const *o) |
| static Conversation * | ToConversation (Object *o) |
| static Conversation const * | ToConversation (Object const *o) |
Static Public Member Functions inherited from BaseEntity | |
| static ObjectGuid | GetGUID (BaseEntity const *o) |
Static Public Member Functions inherited from Position | |
| static float | NormalizeOrientation (float o) |
Protected Member Functions | |
| void | BuildValuesCreate (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const override |
| void | BuildValuesUpdate (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const override |
| bool | CreateFromProto (ObjectGuid::LowType guidlow, uint32 entry, CreatureData const *data=nullptr, uint32 vehId=0) |
| bool | InitEntry (uint32 entry, CreatureData const *data=nullptr) |
| void | RegenerateHealth () |
| void | Regenerate (Powers power) |
| bool | IsInvisibleDueToDespawn (WorldObject const *seer) const override |
| bool | CanAlwaysSee (WorldObject const *obj) const override |
Protected Member Functions inherited from Unit | |
| void | SetAI (UnitAI *newAI) |
| UnitAI * | GetTopAI () const |
| void | RefreshAI () |
| UnitAI * | GetScheduledChangeAI () |
| bool | HasScheduledAIChange () const |
| Unit (bool isWorldObject) | |
| UF::UpdateFieldFlag | GetUpdateFieldFlagsFor (Player const *target) const override |
| void | DestroyForPlayer (Player const *target) const override |
| void | ClearValuesChangesMask () override |
| void | _UpdateSpells (uint32 time) |
| void | _DeleteRemovedAuras () |
| void | _UpdateAutoRepeatSpell () |
| void | RemoveGameObjectImpl (GameObject *gameObj, bool del) |
| bool | IsAlwaysVisibleFor (WorldObject const *seer) const override |
| bool | IsAlwaysDetectableFor (WorldObject const *seer) const override |
| void | DisableSpline () |
| void | ProcessPositionDataChanged (PositionFullTerrainStatus const &data) override |
| void | UpdateLiquidStatusOnPositionChange (Optional< LiquidData > const &newLiquidData) |
| virtual void | AtEnterCombat () |
| virtual void | AtExitCombat () |
| void | SetFeared (bool apply) |
| void | SetConfused (bool apply) |
| void | SetStunned (bool apply) |
| void | SetRooted (bool apply) |
Protected Member Functions inherited from WorldObject | |
| WorldObject (bool isWorldObject) | |
| void | SetLocationMapId (uint32 _mapId) |
| void | SetLocationInstanceId (uint32 _instanceId) |
| virtual bool | CanNeverSee (WorldObject const *obj, bool ignorePhaseShift=false) const |
| virtual bool | IsNeverVisibleFor (WorldObject const *seer, bool allowServersideObjects) const |
Protected Member Functions inherited from Object | |
| Object () | |
| void | BuildEntityFragmentsForValuesUpdateForPlayerWithMask (ByteBuffer &data, EnumFlag< UF::UpdateFieldFlag > flags) const |
Protected Member Functions inherited from BaseEntity | |
| BaseEntity () | |
| void | _Create (ObjectGuid const &guid) |
| template<typename T > | |
| void | SetUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type value) |
| template<typename T > | |
| void | SetUpdateFieldFlagValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type flag) |
| template<typename T > | |
| void | RemoveUpdateFieldFlagValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type flag) |
| template<typename T > | |
| UF::DynamicUpdateFieldSetter< T >::insert_result | AddDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter) |
| template<typename T > | |
| UF::DynamicUpdateFieldSetter< T >::insert_result | InsertDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index) |
| template<typename T > | |
| void | RemoveDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index) |
| template<typename T > | |
| void | ClearDynamicUpdateFieldValues (UF::DynamicUpdateFieldSetter< T > setter) |
| template<typename K , typename V > | |
| void | RemoveMapUpdateFieldValue (UF::MapUpdateFieldSetter< K, V > setter, std::type_identity_t< K > const &key) |
| template<typename T > | |
| void | InsertSetUpdateFieldValue (UF::SetUpdateFieldSetter< T > setter, std::type_identity_t< T > const &key) |
| template<typename T > | |
| void | RemoveSetUpdateFieldValue (UF::SetUpdateFieldSetter< T > setter, std::type_identity_t< T > const &key) |
| template<typename T > | |
| void | RemoveOptionalUpdateFieldValue (UF::OptionalUpdateFieldSetter< T > setter) |
| template<typename T > | |
| void | SetUpdateFieldStatValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type value) |
| template<typename T > | |
| void | ApplyModUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type mod, bool apply) |
| template<typename T > | |
| void | ApplyPercentModUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, float percent, bool apply) |
| template<typename Action > | |
| void | DoWithSuppressingObjectUpdates (Action &&action) |
| void | BuildMovementUpdate (ByteBuffer &data, CreateObjectBits flags, Player const *target) const |
| void | AddToObjectUpdateIfNeeded () |
Protected Member Functions inherited from MapObject | |
| MapObject () | |
Static Protected Member Functions | |
| static float | GetHealthMod (CreatureClassifications classification) |
Static Protected Member Functions inherited from BaseEntity | |
| static void | BuildEntityFragments (ByteBuffer &data, std::span< WowCS::EntityFragment const > fragments) |
Private Member Functions | |
| void | ForcedDespawn (uint32 timeMSToDespawn=0, Seconds forceRespawnTimer=0s) |
| bool | CheckNoGrayAggroConfig (uint32 playerLevel, uint32 creatureLevel) const |
| void | ReacquireSpellFocusTarget () |
| CreatureStaticFlagsHolder | GenerateStaticFlags (CreatureDifficulty const *creatureDifficulty, ObjectGuid::LowType spawnId, Difficulty difficultyId) const |
| void | ApplyAllStaticFlags (CreatureStaticFlagsHolder const &flags) |
Private Attributes | ||
| uint32 | _waypointPathId | |
| std::pair< uint32, uint32 > | _currentWaypointNodeInfo | |
| CreatureGroup * | m_formation | |
| bool | m_triggerJustAppeared | |
| bool | m_respawnCompatibilityMode | |
| bool | _aggroGracePeriodExpired | |
| struct { | ||
| ::Spell const * Spell = nullptr | ||
| uint32 Delay = 0 | ||
| ObjectGuid Target | ||
| float Orientation = 0.0f | ||
| } | _spellFocusInfo | |
| time_t | _lastDamagedTime | |
| CreatureTextRepeatGroup | m_textRepeat | |
| bool | _regenerateHealth | |
| Optional< uint32 > | _defaultMountDisplayIdOverride | |
| int32 | _creatureImmunitiesId | |
| uint32 | _gossipMenuId | |
| Optional< uint32 > | _trainerId | |
| float | _sparringHealthPct | |
Additional Inherited Members | |
Public Types inherited from Unit | |
| enum class | AreaTriggerRemoveReason : uint8 { Default , UnitDespawn } |
| typedef std::set< Unit * > | AttackerSet |
| typedef std::set< Unit * > | ControlList |
| typedef std::vector< Unit * > | UnitVector |
| typedef std::multimap< uint32, Aura * > | AuraMap |
| typedef std::pair< AuraMap::const_iterator, AuraMap::const_iterator > | AuraMapBounds |
| typedef std::pair< AuraMap::iterator, AuraMap::iterator > | AuraMapBoundsNonConst |
| typedef std::multimap< uint32, AuraApplication * > | AuraApplicationMap |
| typedef std::pair< AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator > | AuraApplicationMapBounds |
| typedef std::pair< AuraApplicationMap::iterator, AuraApplicationMap::iterator > | AuraApplicationMapBoundsNonConst |
| typedef std::multimap< AuraStateType, AuraApplication * > | AuraStateAurasMap |
| typedef std::pair< AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator > | AuraStateAurasMapBounds |
| typedef std::forward_list< AuraEffect * > | AuraEffectList |
| typedef std::forward_list< Aura * > | AuraList |
| typedef std::forward_list< AuraApplication * > | AuraApplicationList |
| typedef std::array< DiminishingReturn, DIMINISHING_MAX > | Diminishing |
| typedef std::vector< std::pair< uint32, AuraApplication * > > | AuraApplicationProcContainer |
| typedef std::set< AuraApplication *, VisibleAuraSlotCompare > | VisibleAuraContainer |
Protected Types inherited from Unit | |
| typedef std::vector< DynamicObject * > | DynObjectList |
| typedef std::list< GameObject * > | GameObjectList |
| typedef std::vector< AreaTrigger * > | AreaTriggerList |
Definition at line 81 of file Creature.h.
|
explicit |
Definition at line 318 of file Creature.cpp.
References CONFIG_SIGHT_MONSTER, CREATURE_REGEN_INTERVAL, DisableReputationGain, m_CombatDistance, m_isTempWorldObject, Unit::m_regenTimer, m_SightDistance, m_spells, MAX_CREATURE_SPELLS, ResetLootMode(), and sWorld.
|
default |
| bool Creature::_IsTargetAcceptable | ( | Unit const * | target | ) | const |
Definition at line 2662 of file Creature.cpp.
References ASSERT, Vehicle::GetBase(), Unit::HasUnitFlag2(), Unit::HasUnitState(), Unit::IsEngagedBy(), WorldObject::IsFriendlyTo(), WorldObject::IsHostileTo(), IsIgnoringFeignDeath(), Unit::IsOnVehicle(), Unit::isTargetableForAttack(), Unit::m_vehicle, UNIT_FLAG2_FEIGN_DEATH, and UNIT_STATE_DIED.
Referenced by CanStartAttack(), npc_gunship_boarding_addAI::HasAttackablePlayerNearby(), npc_gunship_boarding_addAI::MovementInform(), SelectVictim(), ThreatReference::ShouldBeOffline(), and CreatureAI::TriggerAlert().
|
inline |
Definition at line 328 of file Creature.h.
Referenced by boss_sartharion::AddDrakeLootMode(), boss_yogg_saron::boss_yogg_saronAI::Reset(), boss_shattered_executioner::Reset(), boss_yogg_saron::boss_yogg_saronAI::SpellHit(), boss_general_vezax::boss_general_vezaxAI::UpdateAI(), and boss_xt002::UpdateAI().
|
overridevirtual |
Reimplemented from BaseEntity.
Reimplemented in Pet.
Definition at line 344 of file Creature.cpp.
References Unit::AddToWorld(), AIM_Initialize(), Map::GetCreatureBySpawnIdStore(), WorldObject::GetMap(), Map::GetObjectsStore(), Unit::GetVehicleKit(), WorldObject::GetZoneScript(), TypeListContainer< UnderlyingContainer, Types >::Insert(), Vehicle::Install(), BaseEntity::IsInWorld(), Unit::IsVehicle(), m_spawnId, ZoneScript::OnCreatureCreate(), and SearchFormation().
|
inline |
Definition at line 235 of file Creature.h.
References Unit::GetAI().
Referenced by Unit::_RegisterAreaTrigger(), Unit::_RegisterDynObject(), Unit::_UnregisterAreaTrigger(), Unit::_UnregisterDynObject(), Unit::AddGameObject(), Player::AddQuestAndCheckCompletion(), spell_skarmorak_fortified_shell_absorb::AfterRemove(), AIM_Initialize(), AtEngage(), npc_anubisath_sentinel::aqsentinelAI::CallBuddiesToAttack(), CanAlwaysSee(), CanCreatureAttack(), boss_veknilash::boss_veknilashAI::CastSpellOnBug(), spell_razorscale_flame_breath::CheckDamage(), spell_putricide_mutation_init::CheckRequirementInternal(), spell_icehowl_trample::CheckTargets(), spell_baleroc_blades_of_baleroc::ChooseBlade(), netherspite_infernal::netherspite_infernalAI::Cleanup(), CreatureUnitRelocationWorker(), Scripts::Pandaria::TheWanderingIsle::npc_li_fei_combat::DamageTaken(), Unit::DealDamage(), hyjalAI::DeSpawnVeins(), boss_adarogg::DoAction(), npc_halion_controller::DoAction(), npc_orb_carrier::DoAction(), boss_gluth::DoAction(), Scripts::Pandaria::TheWanderingIsle::npc_aysa_cloudsinger_cave_of_meditation::DoAction(), SummonList::DoActionImpl(), Spell::TargetInfo::DoDamageAndTriggers(), HomeMovementGenerator< T >::DoFinalize(), DoMovementInform(), DoMovementInform(), hyjalAI::DoOverrun(), Spell::GOTargetInfo::DoTargetSpellHit(), SummonList::DoZoneInCombat(), TrashJumpEvent::Execute(), LightningFieldEvent::Execute(), BalefulColossSmashEvent::Execute(), DelayedAttackStartEvent::Execute(), CaptainSurviveTalk::Execute(), ActivateGhouls::Execute(), spell_scion_of_eternity_arcane_barrage::FilterMeleeHoverDiskPassangers(), spell_malygos_surge_of_power_25::FilterTargets(), spell_varos_energize_core_area_enemy::FilterTargets(), spell_varos_energize_core_area_entry::FilterTargets(), TimedFleeingMovementGenerator::Finalize(), RotateMovementGenerator::Finalize(), SplineChainMovementGenerator::Finalize(), boss_anduin_wrynn::ForceAssistersToAttackRemnant(), boss_sapphiron::GetGUID(), npc_anubisath_sentinel::aqsentinelAI::GetOtherSentinels(), Player::GetQuestDialogStatus(), SmartScript::GetTargets(), boss_moroes::GuestsAttack(), spell_leotheras_the_blind_whirlwind_init::HandleAfterCast(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), debug_commandscript::HandleDebugBoundaryCommand(), spell_headless_horseman_head_is_dead::HandleDummy(), spell_skadi_reset_check::HandleDummy(), spell_sholazar_shoot_rjr::HandleDummy(), spell_garothi_cannon_chooser::HandleDummyEffect(), spell_auriaya_agro_creator::HandleDummyEffect(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleGossipSelectOptionOpcode(), spell_shade_of_medivh_basic_primer::HandleHit(), spell_tunk_interrupting_shout::HandleLaunchTarget(), npc_commandscript::HandleNpcEvadeCommand(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcSetDataCommand(), spell_trigger_ariok_altar_altercation::HandleOnHit(), WorldSession::HandlePetActionHelper(), battleground_silvershard_mines::HandleProgressEvent(), WorldSession::HandleQuestgiverHelloOpcode(), quest_scout_chopper::HandleQuestStatusChange(), spell_putricide_unstable_experiment::HandleScript(), spell_the_lich_king_vile_spirit_move_target_search::HandleScript(), spell_pilgrims_bounty_turkey_tracker::HandleScript(), spell_validated_quest_accept_briarpatch_alliance::HandleScript(), spell_validated_quest_accept_briarpatch_horde::HandleScript(), spell_sartura_whirlwind::HandleScript(), spell_gal_darah_impaling_charge::HandleScript(), spell_festergut_pungent_blight::HandleScript(), spell_rotface_large_ooze_combine::HandleScript(), spell_rotface_large_ooze_buff_combine::HandleScript(), spell_toravon_random_aggro::HandleScript(), spell_leotheras_the_blind_whirlwind_effect::HandleScript(), spell_volazj_whisper::HandleScriptEffect(), spell_illidan_cage_trap::HandleScriptEffect(), Unit::HandleSpellClick(), spell_putricide_mutated_transformation::HandleSummon(), spell_garothi_fel_bombardment_selector::HandleWarningEffect(), spell_borean_tundra_neural_needle::HandleWhisper(), spell_borean_tundra_prototype_neural_needle::HandleWhisper(), spell_dragonblight_high_executor_branding_iron::HandleWhisper(), TempSummon::InitSummon(), Unit::InterruptSpell(), IsEngaged(), IsEscorted(), SmartScript::IsSmart(), npc_meteor_strike_initial::IsSummonedBy(), Scripts::Pandaria::TheWanderingIsle::npc_min_dimwind_summon::IsSummonedBy(), Scripts::Pandaria::TheWanderingIsle::npc_master_li_fei_summon::IsSummonedBy(), npc_kayn_sunfury_ashtongue_intro_private::JustAppeared(), npc_cragmaw_blood_tick::JustAppeared(), boss_priestess_lackey_commonAI::JustDied(), npc_fel_crystal::JustDied(), boss_twinemperorsAI::JustDied(), npc_anubisath_sentinel::aqsentinelAI::JustDied(), boss_lord_stormsong::JustDied(), npc_watcher_gashra::JustDied(), npc_watcher_narjil::JustDied(), npc_watcher_silthik::JustDied(), boss_freya::boss_freyaAI::JustDied(), Scripts::Pandaria::TheWanderingIsle::npc_huojin_trainee::JustEngagedWith(), boss_twinemperorsAI::JustEngagedWith(), boss_freya::boss_freyaAI::JustEngagedWith(), boss_emalon::JustEngagedWith(), boss_skeram::boss_skeramAI::JustSummoned(), WorldBossAI::JustSummoned(), npc_ley_line_sprouts::JustSummoned(), boss_attumen::boss_attumenAI::JustSummoned(), boss_midnight::boss_midnightAI::JustSummoned(), boss_felmyst::JustSummoned(), boss_muru::JustSummoned(), boss_prince_taldaram::JustSummoned(), boss_black_knight::boss_black_knightAI::JustSummoned(), boss_prince_taldaram_icc::JustSummoned(), boss_deathbringer_saurfang::JustSummoned(), boss_lady_deathwhisper::JustSummoned(), npc_precious_icc::JustSummoned(), npc_the_lich_king_controller::JustSummoned(), boss_anubrekhan::JustSummoned(), boss_gothik::JustSummoned(), boss_noth::JustSummoned(), boss_ignis::boss_ignis_AI::JustSummoned(), boss_razorscale::JustSummoned(), boss_ymiron::JustSummoned(), npc_violet_hold_teleportation_portal_commonAI::JustSummoned(), boss_reliquary_of_souls::JustSummoned(), boss_warp_splinter::JustSummoned(), boss_balinda::JustSummoned(), boss_archimonde::JustSummoned(), npc_thrall_old_hillsbrad::JustSummoned(), boss_onyxia::JustSummoned(), npc_disciple_of_naralex::JustSummoned(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::JustSummoned(), npc_muglash::npc_muglashAI::JustSummoned(), boss_sjonnir::JustSummoned(), npc_brann_hos::JustSummoned(), boss_freya::boss_freyaAI::JustSummoned(), boss_emalon::JustSummoned(), npc_emily::JustSummoned(), boss_nexusprince_shaffar::JustSummoned(), boss_darkweaver_syth::JustSummoned(), npc_maghar_captive::npc_maghar_captiveAI::JustSummoned(), npc_kurenai_captive::npc_kurenai_captiveAI::JustSummoned(), npc_earthmender_wilda::npc_earthmender_wildaAI::JustSummoned(), Unit::Kill(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadInitializeScript(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadResetScript(), FormationMovementGenerator::MovementInform(), WaypointMovementGenerator< T >::MovementInform(), npc_animated_gold::MovementInform(), npc_geezle::npc_geezleAI::NextStep(), spell_headless_horseman_yell_timer::OnApply(), npc_jayce_darkweaver_cryptic_hollow_private::OnChannelFinished(), achievement_oh_novos::OnCheck(), achievement_flu_shot_shortage::OnCheck(), battleground_silvershard_mines::OnCreatureCreate(), battleground_strand_of_the_ancients::OnCreatureCreate(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnCreatureRemove(), go_prince_taldaram_sphere::OnGossipHello(), containment_sphere::OnGossipHello(), go_ossirian_crystal::go_ossirian_crystalAI::OnGossipHello(), Scripts::KhazAlgar::CampaignsVisionsOfAShadowedSun::npc_vereesa_windrunner_oztan_isle::OnGossipSelect(), boss_doomrel::boss_doomrelAI::OnGossipSelect(), npc_jaina_proudmoore::npc_jaina_proudmooreAI::OnGossipSelect(), npc_barada::npc_baradaAI::OnGossipSelect(), go_amberpine_outhouse::go_amberpine_outhouseAI::OnGossipSelect(), battleground_silvershard_mines::OnMineCartCaptured(), instance_ulduar::instance_ulduar_InstanceMapScript::OnPlayerEnter(), battleground_deephaul_ravine::OnPrepareStage3(), Scripts::EasternKingdoms::StormwindCity::npc_anduin_wrynn_nation_of_kultiras::OnQuestAccept(), npc_warlord_grimaxe_beach::OnQuestAccept(), go_crystalline_tear::go_crystalline_tearAI::OnQuestAccept(), go_crystal_prison::go_crystal_prisonAI::OnQuestAccept(), spell_taldaram_flame_ball_visual::OnRemove(), npc_altar_altercation_blood_ritual_orb::OnSpellClick(), spell_priestess_alun_za_corrupt::OnStackChange(), at_kelthuzad_center::OnTrigger(), at_nethekurse_exit::OnTrigger(), at_commander_dawnforge::OnTrigger(), Scripts::Pandaria::TheWanderingIsle::at_inside_of_cave_of_meditation::OnTrigger(), instance_the_stonevault::instance_the_stonevault_InstanceMapScript::OnUnitDeath(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnUnitDeath(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnUnitDeath(), instance_shadow_labyrinth::instance_shadow_labyrinth_InstanceMapScript::OnUnitDeath(), instance_azjol_nerub::instance_azjol_nerub_InstanceScript::OnUnitDeath(), at_ymiron_the_fallen_king_activation::OnUnitEnter(), at_altar_altercation_kilrogg_talk::OnUnitEnter(), at_aqusirr_intro::OnUnitEnter(), at_rezan_pile_of_bones_spawn_raptor::OnUnitEnter(), at_sporecaller_zancha_intro::OnUnitEnter(), OrderWhelpTargetSelector::operator()(), FrostwingGauntletRespawner::operator()(), npc_jungle_punch_target::proceedCwEvent(), SmartScript::ProcessAction(), RemoveCorpse(), Unit::RemoveGameObjectImpl(), Vehicle::RemovePassenger(), npc_vengeful_shade::Reset(), Respawn(), hyjalAI::Retreat(), SelectVictim(), spell_malygos_surge_of_power_warning_selector_25::SendThreeTargets(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetInstanceProgress(), boss_cthun::cthunAI::SpawnEyeTentacle(), battleground_deephaul_ravine::SpawnMineCarts(), npc_crate_helper::npc_crate_helperAI::SpellHit(), npc_stalagg::SpellHit(), npc_feugen::SpellHit(), npc_fel_lord_caza_cryptic_hollow::SpellHitTarget(), spell_putricide_ooze_channel::StartAttack(), hyjalAI::SummonCreature(), boss_sindragosa::SummonedCreatureDespawn(), boss_valithria_dreamwalker::SummonedCreatureDespawn(), boss_zuramat::SummonedCreatureDespawn(), boss_malchezaar::boss_malchezaarAI::SummonInfernal(), boss_twinemperorsAI::TeleportToMyBrother(), npc_rokmora_navarrogg_intro::TriggerRokmoraIntro(), spell_igb_check_for_players::TriggerWipe(), at_adarogg_intro::TryHandleOnce(), at_lava_guard_gordoth_intro::TryHandleOnce(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadDestroyScript(), CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadResetScript(), Update(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), npc_thalorien_dawnseeker::UpdateAI(), npc_redridge_huge_boulder::UpdateAI(), Scripts::EasternKingdoms::Westfall::npc_westfall_lous_parting_thoughts_trigger::UpdateAI(), npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI(), npc_snowfall_glade_playmate::npc_snowfall_glade_playmateAI::UpdateAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::UpdateAI(), npc_high_oracle_soo_roo::npc_high_oracle_soo_rooAI::UpdateAI(), npc_elder_kekek::npc_elder_kekekAI::UpdateAI(), npc_the_etymidian::npc_the_etymidianAI::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), npc_frost_wyrm::npc_frost_wyrmAI::UpdateAI(), npc_gargoyle::npc_gargoyleAI::UpdateAI(), npc_hearthsinger_forresten_cot::npc_hearthsinger_forresten_cotAI::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), npc_meteor_strike_flame::UpdateAI(), npc_tirion_toc::UpdateAI(), boss_blood_council_controller::UpdateAI(), boss_gluth::UpdateAI(), boss_kelthuzad::UpdateAI(), boss_malygos::UpdateAI(), npc_commander_dawnforge::npc_commander_dawnforgeAI::UpdateAI(), npc_tooga::npc_toogaAI::UpdateFollowerAI(), InstanceScript::UpdateMinionState(), npc_thrall_old_hillsbrad::WaypointReached(), and npc_demolitionist_legoso::npc_demolitionist_legosoAI::WaypointReached().
| bool Creature::AIM_Create | ( | CreatureAI * | ai = nullptr | ) |
Definition at line 1067 of file Creature.cpp.
References Motion_Initialize(), FactorySelector::SelectAI(), and Unit::SetAI().
Referenced by AIM_Initialize(), and CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadInitializeScript().
| bool Creature::AIM_Destroy | ( | ) |
Definition at line 1060 of file Creature.cpp.
References Unit::PopAI(), and Unit::RefreshAI().
Referenced by CreatureGameObjectAreaTriggerConversationScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadDestroyScript().
| bool Creature::AIM_Initialize | ( | CreatureAI * | ai = nullptr | ) |
Definition at line 1076 of file Creature.cpp.
References AI(), AIM_Create(), Unit::GetVehicleKit(), UnitAI::InitializeAI(), and Vehicle::Reset().
Referenced by AddToWorld(), Pet::AddToWorld(), and WorldObject::SummonTrigger().
| void Creature::AllLootRemovedFromCorpse | ( | ) |
Definition at line 3050 of file Creature.cpp.
References GameTime::GetGameTime(), LOOT_SKINNING, m_corpseDelay, m_corpseRemoveTime, m_ignoreCorpseDecayRatio, m_loot, m_personalLoot, m_respawnDelay, m_respawnTime, RATE_CORPSE_DECAY_LOOTED, and sWorld.
Referenced by WorldSession::DoLootRelease(), and Unit::Kill().
|
private |
Definition at line 742 of file Creature.cpp.
References _staticFlags, CREATURE_STATIC_FLAG_4_NO_BIRTH_ANIM, flags, BaseEntity::m_updateFlag, and CreateObjectBits::NoBirthAnim.
Referenced by InitEntry().
| void Creature::ApplyLevelScaling | ( | ) |
Definition at line 3123 of file Creature.cpp.
References ApplyLevelScaling(), AreaTableEntry::ContentTuningID, CreatureDifficulty::ContentTuningID, CreatureDifficulty::DeltaLevelMax, CreatureDifficulty::DeltaLevelMin, WorldObject::GetAreaId(), GetCreatureDifficulty(), WorldObject::GetMap(), irand(), Unit::IsCritter(), AreaTableEntry::ParentAreaID, and sAreaTableStore.
Referenced by ApplyLevelScaling(), TempSummon::InitStats(), Guardian::InitStatsForLevel(), and SelectLevel().
Definition at line 3162 of file Creature.cpp.
References UF::UnitData::ContentTuningID, Unit::m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), UF::UnitData::ScalingLevelDelta, UF::UnitData::ScalingLevelMax, UF::UnitData::ScalingLevelMin, sDB2Manager, and BaseEntity::SetUpdateFieldValue().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 3852 of file Creature.cpp.
References Unit::AtDisengage(), Unit::ClearUnitState(), Object::HasDynamicFlag(), Unit::IsAlive(), Unit::IsGuardian(), Unit::IsPet(), MOVE_FLIGHT, MOVE_RUN, MOVE_SWIM, Object::RemoveDynamicFlag(), UNIT_DYNFLAG_TAPPED, UNIT_STATE_ATTACK_PLAYER, and Unit::UpdateSpeed().
Referenced by CreatureAI::EngagementOver().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 3809 of file Creature.cpp.
References _aggroGracePeriodExpired, AI(), Unit::AtEngage(), CREATURE_STATIC_FLAG_2_ALLOW_MOUNTED_COMBAT, Unit::Dismount(), ForcePartyMembersIntoCombat(), MotionMaster::GetCurrentMovementGeneratorType(), GetFormation(), Unit::GetMotionMaster(), Position::GetPosition(), Unit::GetThreatManager(), ObjectAccessor::GetUnit(), Unit::GetVehicleKit(), HasFlag(), Unit::IsAIEnabled(), IsEscorted(), Unit::IsGuardian(), Unit::IsPet(), MOVE_FLIGHT, MOVE_RUN, MOVE_SWIM, POINT_MOTION_TYPE, ThreatManager::ResetUpdateTimer(), SetHomePosition(), Object::ToCreature(), Unit::UpdateSpeed(), and WAYPOINT_MOTION_TYPE.
Referenced by CreatureAI::EngagementStart().
|
overrideprotectedvirtual |
Implements Object.
Definition at line 3980 of file Creature.cpp.
References flags, Object::m_objectData, and Unit::m_unitData.
|
overrideprotectedvirtual |
Implements Object.
Definition at line 3986 of file Creature.cpp.
References flags, UF::UpdateFieldHolder::GetChangedObjectTypeMask(), UF::UpdateFieldHolder::HasChanged(), Object::m_objectData, Unit::m_unitData, BaseEntity::m_values, TYPEID_OBJECT, and TYPEID_UNIT.
| void Creature::BuildValuesUpdateForPlayerWithMask | ( | UpdateData * | data, |
| UF::ObjectData::Mask const & | requestedObjectMask, | ||
| UF::UnitData::Mask const & | requestedUnitMask, | ||
| Player const * | target, | ||
| bool | ignoreNestedChangesMask | ||
| ) | const |
Definition at line 4009 of file Creature.cpp.
References UpdateData::AddUpdateBlock(), Object::BuildEntityFragmentsForValuesUpdateForPlayerWithMask(), UF::UnitData::FilterDisallowedFieldsMaskForFlag(), flags, UpdateMask< Bits >::GetBlock(), Unit::GetUpdateFieldFlagsFor(), Object::m_objectData, Unit::m_unitData, BaseEntity::PrepareValuesUpdateBuffer(), ByteBuffer::put(), UpdateMask< Bits >::Set(), TYPEID_OBJECT, TYPEID_UNIT, and ByteBuffer::wpos().
Referenced by Creature::ValuesUpdateForPlayerWithMaskSender::operator()(), and Player::UpdateVisibleObjectInteractions().
|
overridevirtual |
Reimplemented from Object.
Definition at line 3997 of file Creature.cpp.
References UF::UnitData::AppendAllowedFieldsMaskForFlag(), flags, UpdateMask< Bits >::GetBlock(), Unit::m_unitData, UpdateMask< Bits >::Set(), and TYPEID_UNIT.
Definition at line 1764 of file Creature.cpp.
References Unit::GetHealth(), Unit::GetHealthPct(), Unit::GetMaxHealth(), GetSparringHealthPct(), Unit::IsCharmedOwnedByPlayerOrPlayer(), and BaseEntity::IsCreature().
|
overridevirtual |
Implements Unit.
Definition at line 1096 of file StatSystem.cpp.
References BASE_ATTACK, BASE_PCT, BASE_VALUE, CreatureTemplate::BaseVariance, Unit::CanUseAttackType(), CreatureDifficulty::DamageModifier, Unit::GetAPMultiplier(), GetCreatureDifficulty(), GetCreatureTemplate(), Unit::GetFlatModifierValue(), Unit::GetPctModifierValue(), Unit::GetTotalAttackPowerValue(), Unit::GetWeaponDamageRange(), Unit::haveOffhandWeapon(), MAXDAMAGE, MINDAMAGE, OFF_ATTACK, RANGED_ATTACK, CreatureTemplate::RangeVariance, TOTAL_PCT, TOTAL_VALUE, UNIT_MOD_DAMAGE_MAINHAND, UNIT_MOD_DAMAGE_OFFHAND, and UNIT_MOD_DAMAGE_RANGED.
| void Creature::CallAssistance | ( | ) |
Definition at line 2556 of file Creature.cpp.
References AssistDelayEvent::AddAssistant(), EventProcessor::AddEvent(), EventProcessor::CalculateTime(), CONFIG_CREATURE_FAMILY_ASSISTANCE_DELAY, CONFIG_CREATURE_FAMILY_ASSISTANCE_RADIUS, Unit::EnsureVictim(), BaseEntity::GetGUID(), Unit::GetVictim(), Unit::IsCharmed(), Unit::IsPet(), m_AlreadyCallAssistance, WorldObject::m_Events, SetNoCallAssistance(), sWorld, and Cell::VisitGridObjects().
Referenced by Unit::Attack(), and AssistanceMovementGenerator::Finalize().
| void Creature::CallForHelp | ( | float | fRadius | ) |
Definition at line 2586 of file Creature.cpp.
References CombatManager::GetAnyTarget(), ThreatManager::GetAnyTarget(), Unit::GetCombatManager(), ThreatManager::GetCurrentVictim(), Object::GetEntry(), WorldObject::GetName(), Unit::GetThreatManager(), Unit::IsAlive(), Unit::IsCharmed(), IsEngaged(), Unit::IsPet(), TC_LOG_ERROR, and Cell::VisitGridObjects().
Referenced by boss_emperor_dagran_thaurissan::boss_draganthaurissanAI::JustEngagedWith(), boss_scarlet_commander_mograine::JustEngagedWith(), boss_garfrost::JustEngagedWith(), boss_keleseth::JustEngagedWith(), boss_high_astromancer_solarian::JustEngagedWith(), boss_void_reaver::JustEngagedWith(), and SmartScript::ProcessAction().
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
Definition at line 2104 of file Creature.cpp.
References AI(), and Unit::IsAIEnabled().
Definition at line 2608 of file Creature.cpp.
References Unit::GetCharmerOrOwnerGUID(), Unit::GetFaction(), BaseEntity::GetTypeId(), HasReactState(), Unit::HasUnitFlag(), Unit::IsAlive(), IsCivilian(), IsEngaged(), WorldObject::IsFriendlyTo(), WorldObject::IsHostileTo(), IsImmuneToNPC(), IsInEvadeMode(), Unit::IsUninteractible(), REACT_AGGRESSIVE, Object::ToCreature(), TYPEID_UNIT, and UNIT_FLAG_NON_ATTACKABLE.
Referenced by AssistDelayEvent::Execute(), Trinity::NearestAssistCreatureInCreatureRangeCheck::operator()(), Trinity::CallOfHelpCreatureInRangeDo::operator()(), and Trinity::AnyAssistCreatureInRangeCheck::operator()().
| bool Creature::CanCreatureAttack | ( | Unit const * | victim, |
| bool | force = true |
||
| ) | const |
Definition at line 2709 of file Creature.cpp.
References AI(), CanFly(), Unit::GetCharmerOrOwner(), Unit::GetCharmerOrOwnerGUID(), Unit::GetCombatReach(), GameTime::GetGameTime(), GetLastDamagedTime(), WorldObject::GetMap(), BaseEntity::GetTypeId(), WorldObject::GetVisibilityRange(), Unit::HasAuraType(), Unit::isInAccessiblePlaceFor(), Position::IsInDist(), Position::IsInDist2d(), IsInEvadeMode(), WorldObject::IsInMap(), BaseEntity::IsPlayer(), WorldObject::IsValidAttackTarget(), WorldObject::IsWithinDist(), isWorldBoss(), m_homePosition, SIZE_OF_GRID_CELL, SPELL_AURA_MOD_TAUNT, Object::ToCreature(), and TYPEID_UNIT.
Referenced by CanStartAttack(), boss_twinemperorsAI::MoveInLineOfSight(), npc_shadowy_construct::Reset(), SelectVictim(), ThreatReference::ShouldBeOffline(), and npc_pet_hunter_snake_trap::UpdateAI().
|
inlineoverridevirtual |
Implements Unit.
Definition at line 166 of file Creature.h.
References Unit::CanSwim().
Referenced by PathGenerator::BuildPolyPath(), PathGenerator::CreateFilter(), and Unit::isInAccessiblePlaceFor().
|
inlineoverridevirtual |
Implements Unit.
Definition at line 167 of file Creature.h.
References Unit::HasUnitMovementFlag(), Unit::IsFlying(), and MOVEMENTFLAG_CAN_FLY.
Referenced by PathGenerator::BuildPolyPath(), CanCreatureAttack(), CanStartAttack(), and LoadFromDB().
| bool Creature::CanGeneratePickPocketLoot | ( | ) | const |
Definition at line 3765 of file Creature.cpp.
References _pickpocketLootRestore, and GameTime::GetGameTime().
Referenced by Spell::EffectPickPocket().
| bool Creature::CanGiveExperience | ( | ) | const |
Definition at line 3797 of file Creature.cpp.
References _staticFlags, CREATURE_STATIC_FLAG_NO_XP, and CreatureStaticFlagsHolder::HasFlag().
Referenced by Trinity::XP::Gain().
|
inline |
Definition at line 303 of file Creature.h.
References CREATURE_STATIC_FLAG_NO_LOOT.
Referenced by SpellInfo::CheckTarget(), and Unit::Kill().
|
inline |
Definition at line 241 of file Creature.h.
References CREATURE_STATIC_FLAG_4_IGNORE_LOS_WHEN_CASTING_ON_ME.
Referenced by Spell::IsWithinLOS().
|
inline |
Definition at line 239 of file Creature.h.
References CREATURE_STATIC_FLAG_4_NO_MELEE_APPROACH, and CREATURE_STATIC_FLAG_NO_MELEE_FLEE.
|
inline |
Definition at line 156 of file Creature.h.
References CREATURE_STATIC_FLAG_3_CANNOT_PENETRATE_WATER.
Referenced by Unit::isInAccessiblePlaceFor().
|
inline |
Definition at line 390 of file Creature.h.
Referenced by Update().
|
inline |
Definition at line 163 of file Creature.h.
References CREATURE_STATIC_FLAG_4_AI_WILL_ONLY_SWIM_IF_TARGET_SWIMS.
Referenced by InitializeMovementCapabilities().
|
inline |
Definition at line 380 of file Creature.h.
References CREATURE_STATIC_FLAG_5_NO_HEALTH_REGEN.
Referenced by RegenerateHealth().
| bool Creature::CanResetTalents | ( | Player * | player | ) | const |
Definition at line 1349 of file Creature.cpp.
References Unit::GetClass(), GetCreatureTemplate(), Unit::GetLevel(), and CreatureTemplate::trainer_class.
Referenced by WorldSession::HandleConfirmRespecWipeOpcode().
| bool Creature::CanStartAttack | ( | Unit const * | u, |
| bool | force | ||
| ) | const |
Definition at line 2112 of file Creature.cpp.
References _IsTargetAcceptable(), CanCreatureAttack(), CanFly(), CheckNoGrayAggroConfig(), CREATURE_TYPE_NON_COMBAT_PET, CREATURE_Z_ATTACK_RANGE, GetAttackDistance(), Unit::GetCreatureType(), WorldObject::GetDistanceZ(), Unit::GetLevelForTarget(), GetLevelForTarget(), BaseEntity::GetTypeId(), Unit::HasUnitFlag(), IsCivilian(), IsImmuneToNPC(), IsImmuneToPC(), WorldObject::IsNeutralToAll(), WorldObject::IsWithinDistInMap(), WorldObject::IsWithinLOSInMap(), m_CombatDistance, TYPEID_UNIT, and UNIT_FLAG_PLAYER_CONTROLLED.
Referenced by npc_gunship_boarding_addAI::HasAttackablePlayerNearby(), CreatureAI::MoveInLineOfSight(), npc_hadronox_crusherPackAI::MoveInLineOfSight(), boss_krik_thir::MoveInLineOfSight(), npc_gatewatcher_petAI::MoveInLineOfSight(), npc_kelthuzad_minionAI::MoveInLineOfSight(), npc_gunship_boarding_addAI::MovementInform(), CreatureAI::OnOwnerCombatInteraction(), and Trinity::NearestHostileUnitInAttackDistanceCheck::operator()().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 3031 of file Creature.cpp.
References Unit::CanSwim(), and Unit::IsPet().
Referenced by UpdateMovementCapabilities().
Definition at line 2151 of file Creature.cpp.
References CONFIG_NO_GRAY_AGGRO_ABOVE, CONFIG_NO_GRAY_AGGRO_BELOW, Trinity::XP::GetColorCode(), sWorld, and XP_GRAY.
Referenced by CanStartAttack().
| void Creature::ClearTextRepeatGroup | ( | uint8 | textGroup | ) |
Definition at line 3790 of file Creature.cpp.
References m_textRepeat.
Referenced by CreatureTextMgr::SendChat().
| bool Creature::Create | ( | ObjectGuid::LowType | guidlow, |
| Map * | map, | ||
| uint32 | entry, | ||
| Position const & | pos, | ||
| CreatureData const * | data, | ||
| uint32 | vehId, | ||
| bool | dynamic = false |
||
| ) |
Relocate before CreateFromProto, to initialize coords and allow returning correct zone id for selecting OutdoorPvP/Battlefield script
Definition at line 1103 of file Creature.cpp.
References Unit::AddUnitState(), Unit::ApplySpellImmune(), ASSERT, CONFIG_CORPSE_DECAY_ELITE, CONFIG_CORPSE_DECAY_MINUSMOB, CONFIG_CORPSE_DECAY_NORMAL, CONFIG_CORPSE_DECAY_OBSOLETE, CONFIG_CORPSE_DECAY_RARE, CONFIG_CORPSE_DECAY_RAREELITE, CONFIG_CORPSE_DECAY_TRIVIAL, CreateFromProto(), CREATURE_FLAG_EXTRA_DUNGEON_BOSS, CREATURE_FLAG_EXTRA_GHOST_VISIBILITY, CREATURE_FLAG_EXTRA_IGNORE_PATHFINDING, CREATURE_FLAG_EXTRA_IMMUNITY_KNOCKBACK, CREATURE_TYPE_FLAG_VISIBLE_TO_GHOSTS, Elite, CreatureTemplate::flags_extra, GetCreatureClassification(), GetCreatureTemplate(), CreatureTemplate::GetDifficulty(), Map::GetFullTerrainStatusForPosition(), WorldObject::GetMap(), Position::GetOrientation(), WorldObject::GetPhaseShift(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetScriptId(), Unit::GetThreatManager(), GHOST_VISIBILITY_ALIVE, GHOST_VISIBILITY_GHOST, IMMUNITY_EFFECT, PhasingHandler::InitDbPhaseShift(), PhasingHandler::InitDbVisibleMapId(), ThreatManager::Initialize(), Unit::IsAreaSpiritHealer(), Map::IsDungeon(), Position::IsPositionValid(), Unit::IsSpiritHealer(), WorldObject::LastUsedScriptID, LoadCreaturesAddon(), LoadCreaturesSparringHealth(), m_corpseDelay, m_respawnDelay, WorldObject::m_serverSideVisibility, WorldObject::m_serverSideVisibilityDetect, MinusMob, Obsolete, SpawnData::phaseGroup, SpawnData::phaseId, SpawnData::phaseUseFlags, Unit::ProcessPositionDataChanged(), Rare, RareElite, Position::Relocate(), SERVERSIDE_VISIBILITY_GHOST, WorldObject::SetMap(), SetRespawnCompatibilityMode(), FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::SetValue(), sObjectMgr, SPELL_EFFECT_KNOCK_BACK, SPELL_EFFECT_KNOCK_BACK_DEST, sWorld, TC_LOG_ERROR, SpawnData::terrainSwapMap, Trivial, CreatureDifficulty::TypeFlags, and UNIT_STATE_IGNORE_PATHFINDING.
Referenced by LoadFromDB(), Map::SummonCreature(), and Transport::SummonPassenger().
|
static |
Definition at line 1206 of file Creature.cpp.
References Creature, Map::GenerateLowGuid(), sObjectMgr, Vehicle, and CreatureTemplate::VehicleId.
Referenced by ArenaScript::CreateCreature(), debug_commandscript::HandleDebugSpawnVehicleCommand(), npc_commandscript::HandleNpcAddCommand(), and Battlefield::SpawnCreature().
|
static |
Definition at line 1228 of file Creature.cpp.
References LoadFromDB().
Referenced by Transport::CreateNPCPassenger(), and npc_commandscript::HandleNpcAddCommand().
|
protected |
Definition at line 1808 of file Creature.cpp.
References BaseEntity::_Create(), Unit::CreateVehicleKit(), CreatureTemplate::Entry, ZoneScript::GetCreatureEntry(), GetCreatureTemplate(), WorldLocation::GetMapId(), WorldObject::GetZoneScript(), Unit::IsPet(), SetOriginalEntry(), Unit::SetVignette(), WorldObject::SetZoneScript(), sObjectMgr, TC_LOG_ERROR, Unit::UpdateDisplayPower(), UpdateEntry(), and CreatureTemplate::VehicleId.
Referenced by Create().
|
static |
Definition at line 2018 of file Creature.cpp.
References CharacterDatabase, LINKED_RESPAWN_CREATURE_TO_CREATURE, LINKED_RESPAWN_CREATURE_TO_GO, LINKED_RESPAWN_GO_TO_CREATURE, SpawnMetadata::mapId, PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), sMapMgr, sObjectMgr, SPAWN_TYPE_CREATURE, WORLD_DEL_CREATURE, WORLD_DEL_CREATURE_ADDON, WORLD_DEL_GAME_EVENT_CREATURE, WORLD_DEL_GAME_EVENT_MODEL_EQUIP, WORLD_DEL_LINKED_RESPAWN, WORLD_DEL_LINKED_RESPAWN_MASTER, WORLD_DEL_SPAWNGROUP_MEMBER, and WorldDatabase.
Referenced by npc_commandscript::HandleNpcDeleteCommand().
| void Creature::DespawnOrUnsummon | ( | Milliseconds | timeToDespawn = 0s, |
| Seconds | forceRespawnTime = 0s |
||
| ) |
Definition at line 2438 of file Creature.cpp.
References ForcedDespawn(), and Unit::ToTempSummon().
Referenced by BossAI::_DespawnAtEvade(), Unit::_ExitVehicle(), npc_elwynn_forest_wolf::_ScheduleAfterChasingEvents(), VehicleJoinEvent::Abort(), spell_stable_master_repo::AfterApply(), spell_lord_stormsong_fixate_aura::AfterRemove(), boss_thaddius::BeginResetEncounter(), npc_stalagg::BeginResetEncounter(), npc_feugen::BeginResetEncounter(), boss_ionar::CallBackSparks(), npc_priestess_alun_za_corrupted_gold::CheckInRoom(), spell_the_lich_king_vile_spirit_damage_target_search::CheckTargetCount(), spell_the_lich_king_ice_burst_target_search::CheckTargetCount(), npc_dark_fiend::DamageTaken(), npc_terenas_menethil::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), npc_iron_construct::npc_iron_constructAI::DamageTaken(), npc_tiger_matriarch::DamageTaken(), Scripts::Kalimdor::Durotar::npc_durotar_tiki_target::DamageTaken(), npc_argent_valiant::DamageTaken(), SummonList::DespawnAll(), npc_brann_hos::DespawnDwarf(), SummonList::DespawnEntry(), instance_ulduar::instance_ulduar_InstanceMapScript::DespawnLeviatanVehicle(), spell_rotface_unstable_ooze_explosion_suicide::DespawnSelf(), WaypointMgr::DevisualizePath(), npc_dark_fiend::DoAction(), Scripts::EasternKingdoms::StormwindCity::npc_jaina_proudmoore_tides_of_war::DoAction(), npc_spirit_of_the_lynx::DoAction(), npc_fire_bomb_zulaman::DoAction(), npc_husam_tolvir_land_mine::DoAction(), npc_saurfang_event::DoAction(), npc_high_overlord_saurfang_igb::DoAction(), npc_muradin_bronzebeard_igb::DoAction(), npc_strangulate_vehicle::DoAction(), npc_terenas_menethil::DoAction(), npc_kelthuzad_guardian::DoAction(), npc_stalagg::DoAction(), npc_feugen::DoAction(), npc_caster_hover_disk::DoAction(), boss_elder_brightleaf::boss_elder_brightleafAI::DoAction(), boss_elder_stonebark::boss_elder_stonebarkAI::DoAction(), boss_elder_ironbranch::boss_elder_ironbranchAI::DoAction(), CoolestFriendBaseAI::DoAction(), boss_magtheridon::DoAction(), npc_omrogg_heads::DoAction(), boss_lord_stormsong::DoAction(), npc_swarm_scarab::DoAction(), npc_melee_hover_disk::DoAction(), npc_arcane_overload::DoAction(), Spell::EffectScriptEffect(), Spell::EffectTameCreature(), boss_skeram::boss_skeramAI::EnterEvadeMode(), npc_gatewatcher_petAI::EnterEvadeMode(), boss_northrend_beastsAI::EnterEvadeMode(), boss_attumen::boss_attumenAI::EnterEvadeMode(), boss_kirtonos_the_herald::EnterEvadeMode(), boss_entropius::EnterEvadeMode(), Scripts::EasternKingdoms::Westfall::npc_westfall_thug::EnterEvadeMode(), npc_towering_infernal::EnterEvadeMode(), npc_lockmaw_augh_boss::EnterEvadeMode(), Scripts::Kalimdor::Durotar::npc_captive_spitescale_scout::EnterEvadeMode(), npc_helena_gentle_witch_hunt::EnterEvadeMode(), npc_anubarak_pet_template::EnterEvadeMode(), npc_hadronox_foeAI::EnterEvadeMode(), boss_jaraxxus::EnterEvadeMode(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::EnterEvadeMode(), boss_tyrannus::EnterEvadeMode(), boss_drakkari_elemental::EnterEvadeMode(), npc_vampiric_fiend::EnterEvadeMode(), npc_fallout_slime::EnterEvadeMode(), boss_malygos::EnterEvadeMode(), npc_ethereal_apprentice::EnterEvadeMode(), boss_the_lurker_below::EnterEvadeMode(), boss_ahune::EnterEvadeMode(), boss_vazruden_the_herald::EnterEvadeMode(), boss_vazruden::EnterEvadeMode(), npc_anduin_wrynn_fiendish_soul::EnterEvadeMode(), npc_anduin_wrynn_monstrous_soul::EnterEvadeMode(), boss_remnant_of_a_fallen_king::EnterEvadeMode(), ForcedDespawnDelayEvent::Execute(), ValithriaDelayedCastEvent::Execute(), UlduarKeeperDespawnEvent::Execute(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::GiveClue(), AuraEffect::HandleAuraControlVehicle(), spell_mimiron_clear_fires::spell_mimiron_clear_fires_SpellScript::HandleDummy(), spell_gen_despawn_self::HandleDummy(), spell_item_complete_raptor_capture::HandleDummy(), spell_heartsbane_triad_claim_the_iris::HandleHitTarget(), npc_commandscript::HandleNpcMoveCommand(), spell_altar_altercation_destroying::HandleOnHit(), spell_trigger_ariok_altar_altercation::HandleOnHit(), pet_commandscript::HandlePetCreateCommand(), spell_re_sizing_q59941::HandleScript(), spell_putricide_eat_ooze::HandleScript(), spell_rotface_little_ooze_combine::HandleScript(), spell_rotface_large_ooze_combine::HandleScript(), spell_rotface_large_ooze_buff_combine::HandleScript(), spell_mimiron_despawn_assault_bots::spell_mimiron_despawn_assault_bots_SpellScript::HandleScript(), spell_shredder_delivery::HandleScript(), spell_grizzly_hills_hand_over_reins::HandleScript(), spell_icecrown_burst_at_the_seams_52510::HandleScript(), spell_bg_silvershard_mines_cart_cap::HandleScript(), spell_silverpine_despawn_all_summons_steel_thunder::HandleScriptEffect(), spell_illidan_cage_trap::HandleScriptEffect(), spell_gen_despawn_all_summons_owned_by_caster::HandleScriptEffect(), WorldSession::HandleTotemDestroyed(), npc_anubarak_pet_template::InitializeAI(), npc_anubarak_impale_target::InitializeAI(), boss_tyrannus::InitializeAI(), npc_underbog_mushroom::InitializeAI(), IsEncounterFinished(), npc_suppresser::IsSummonedBy(), npc_static_field::IsSummonedBy(), npc_frozen_orb::IsSummonedBy(), npc_coldflame::IsSummonedBy(), npc_silverpine_forsaken_trooper_fenris_isle::IsSummonedBy(), npc_image_belgaristrasz::IsSummonedBy(), Scripts::Pandaria::TheWanderingIsle::npc_master_li_fei_summon::IsSummonedBy(), npc_captain_warlord_beach_arrive_private::IsSummonedBy(), npc_kayn_sunfury_ashtongue_intro_private::JustAppeared(), npc_sevis_brightflame_coilskar_gateway_private::JustAppeared(), npc_cyana_nightglaive_freed_private::JustAppeared(), npc_izal_whitemoon_freed_private::JustAppeared(), npc_belath_dawnblade_freed_private::JustAppeared(), npc_mannethrel_darkstar_freed_private::JustAppeared(), npc_flame_of_ragnaros::JustAppeared(), npc_void_sentinel_summoner::JustAppeared(), npc_husam_tolvir_land_mine::JustAppeared(), npc_husam_shockwave_visual::JustAppeared(), npc_grobbulus_poison_cloud::JustAppeared(), npc_flash_freeze_init::JustAppeared(), npc_flash_freeze_combat::JustAppeared(), npc_tainted_elemental::JustAppeared(), npc_ahune_ice_spear_bunny::JustAppeared(), npc_flame_strike_trigger_kael::JustAppeared(), npc_nether_vapor::JustAppeared(), npc_anduin_wrynn_anduin_hope::JustAppeared(), npc_ranshalla::npc_ranshallaAI::JustDidDialogueStep(), npc_kilrek::npc_kilrekAI::JustDied(), boss_shade_of_medivh_guardians_image::JustDied(), npc_chained_spirit::JustDied(), npc_arthas_stratholme::npc_arthas_stratholmeAI::JustDied(), npc_belnistrasz::npc_belnistraszAI::JustDied(), Scripts::Kalimdor::Durotar::npc_captive_spitescale_scout::JustDied(), npc_qiraj_war_spawn::npc_qiraj_war_spawnAI::JustDied(), npc_drustvar_charging_familiar::JustDied(), boss_aqusirr_aqualing::JustDied(), npc_living_inferno::JustDied(), npc_living_ember::JustDied(), boss_jormungarAI::JustDied(), npc_bone_spike::JustDied(), npc_little_ooze::JustDied(), npc_big_ooze::JustDied(), npc_webwrap::JustDied(), boss_malygos::JustDied(), npc_volkhan_molten_golem::JustDied(), npc_iron_roots::npc_iron_rootsAI::JustDied(), boss_freya::boss_freyaAI::JustDied(), npc_grauf::JustDied(), npc_blessed_banner::JustDied(), npc_ashtongue_sorcerer::JustDied(), npc_ashtongue_defender::JustDied(), npc_ashtongue_rogue::JustDied(), npc_ashtongue_elementalist::JustDied(), npc_ashtongue_spiritbinder::JustDied(), npc_illidari_spawn::npc_illidari_spawnAI::JustDied(), npc_anduin_wrynn_lost_soul::JustDied(), npc_blood_effigy::JustDied(), boss_skeram::boss_skeramAI::JustDied(), npc_slad_ran_constrictor::JustEngagedWith(), npc_vampiric_fiend::JustEngagedWith(), npc_halion_controller::JustExitedCombat(), FollowerAI::JustReachedHome(), boss_dorothee::JustReachedHome(), boss_strawman::JustReachedHome(), boss_tinhead::JustReachedHome(), boss_roar::JustReachedHome(), boss_crone::JustReachedHome(), npc_tito::JustReachedHome(), boss_big_bad_wolf::JustReachedHome(), boss_julianne::JustReachedHome(), boss_romulo::JustReachedHome(), boss_mal_ganis::boss_mal_ganisAI::JustReachedHome(), boss_faction_championsAI::JustReachedHome(), boss_twin_baseAI::JustReachedHome(), npc_kelthuzad_guardian::JustReachedHome(), npc_dk_understudy::JustReachedHome(), boss_felblood_kaelthas::JustSummoned(), boss_corborus::boss_corborusAI::JustSummoned(), boss_ozruk::boss_ozrukAI::JustSummoned(), boss_deathbringer_saurfang::JustSummoned(), boss_the_lich_king::JustSummoned(), npc_risen_archmage::JustSummoned(), boss_gothik::JustSummoned(), npc_collapsing_star::JustSummoned(), npc_tiger_matriarch::KilledUnit(), npc_gravity_well::npc_gravity_wellAI::KilledUnit(), npc_bone_spike::KilledUnit(), npc_anubarak_spike::MoveInLineOfSight(), npc_dkc1_gothik::npc_dkc1_gothikAI::MoveInLineOfSight(), npc_spectator::MovementInform(), boss_essence_of_suffering::MovementInform(), boss_essence_of_desire::MovementInform(), npc_spirit_shade::npc_spirit_shadeAI::MovementInform(), npc_valkyr_of_odyn::MovementInform(), boss_rend_blackhand::MovementInform(), npc_troll_volunteer::MovementInform(), boss_infinite_corruptor::boss_infinite_corruptorAI::MovementInform(), npc_jena_anderson::npc_jena_andersonAI::MovementInform(), npc_bartleby_battson::npc_bartleby_battsonAI::MovementInform(), npc_malcolm_moore::npc_malcolm_mooreAI::MovementInform(), npc_sergeant_morigan::npc_sergeant_moriganAI::MovementInform(), npc_roger_owens::npc_roger_owensAI::MovementInform(), npc_corrupted_soul_fragment::MovementInform(), npc_living_mojo::MovementInform(), npc_high_overlord_saurfang_icc::MovementInform(), npc_darnavan::MovementInform(), npc_valkyr_shadowguard::MovementInform(), npc_ingvar_throw_dummy::MovementInform(), npc_ichor_globule::MovementInform(), npc_nether_drake::npc_nether_drakeAI::MovementInform(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::MovementInform(), Scripts::Pandaria::TheJadeForest::npc_rappelling_rope::MovementInform(), Scripts::Pandaria::TheWanderingIsle::npc_tushui_huojin_trainee::MovementInform(), npc_chained_spirit::MovementInform(), npc_twilight_volunteer::MovementInform(), npc_barrett_toc::MovementInform(), npc_brann_bronzebeard_algalon::MovementInform(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro_hawk::MovementInform(), npc_priestess_alun_za_corrupted_gold::MovementInform(), npc_malacrass_blood_worm::MovementInform(), npc_released_offspring_harkoa::MovementInform(), npc_animated_gold::MovementInform(), npc_captain_warlord_first_aid_private::MovementInform(), npc_re_sized_boar_q56034::MovementInform(), npc_spark_of_ionar::MovementInform(), npc_amalgam_of_souls_lord_etheldrin_ravencrest::MovementInform(), npc_feasting_valarjar::MovementInform(), npc_valarjar_paying_respect_to_odyn::MovementInform(), npc_spectating_valarjar::MovementInform(), npc_wounded_skirmisher::MovementInform(), Scripts::QuelThalas::MurderRow::KystiaManaheart::boss_kystia_manaheart_nibbles::MovementInform(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::MovementInform(), npc_gravity_well::npc_gravity_wellAI::npc_gravity_wellAI(), BattlefieldWG::OnCreatureCreate(), instance_blackrock_spire::instance_blackrock_spireMapScript::OnCreatureCreate(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::OnCreatureCreate(), instance_halls_of_lightning::instance_halls_of_lightning_InstanceMapScript::OnCreatureCreate(), instance_ulduar::instance_ulduar_InstanceMapScript::OnCreatureCreate(), npc_grandmother::OnGossipSelect(), npc_observation_ring_keeper::npc_observation_ring_keeperAI::OnGossipSelect(), npc_spirit_of_the_lynx::OnHealthDepleted(), Scripts::EasternKingdoms::StormwindCity::player_conv_after_movie_tides_of_war::OnMovieComplete(), spell_vexallus_energy_feedback::OnPeriodic(), spell_re_sizing_aura_q56034::OnRemove(), spell_re_sizing_aura_q59941::OnRemove(), spell_aqusirr_grasp_from_the_depths_damage::OnRemove(), spell_taldaram_flame_ball_visual::OnRemove(), spell_creeping_rot_aura::OnRemove(), spell_lord_stormsong_ancient_mindbender_aura::OnRemove(), scene_enter_the_illidari_ashtongue::OnSceneStart(), npc_shadow_image::OnSpellCast(), Scripts::EasternKingdoms::Vashjir::AbyssalDepths::npc_abyssal_depths_whirlpool_vehicle::OnSpellCast(), npc_dream_portal::OnSpellClick(), npc_bg_deephaul_ravine_earthen_mine_cart::OnSpellClick(), npc_descend_into_madness::npc_descend_into_madnessAI::OnSpellClick(), conversation_burden_of_proof_speak_with_constable::OnStart(), conversation_aberrus_kazzara_intro::OnUpdate(), conversation_an_unlikely_informant::OnUpdate(), conversation_the_new_classington_estate::OnUpdate(), conversation_boralus_cyrus_meets_genn::OnUpdate(), conversation_cyrus_crestfall_shaking_hands::OnUpdate(), conversation_kings_rest_intro::OnUpdate(), FrostwingGauntletRespawner::operator()(), TrashRespawnWorker::operator()(), OrbsDespawner::operator()(), ValithriaDespawner::operator()(), Scripts::EasternKingdoms::Westfall::npc_westfall_overloaded_harvest_golem::PassengerBoarded(), npc_husam_tolvir_land_mine::PassengerBoarded(), npc_wyrmrest_skytalon::PassengerBoarded(), npc_silverpine_orc_sea_pup::PassengerBoarded(), npc_silverpine_armoire::PassengerBoarded(), boss_kologarn::boss_kologarnAI::PassengerBoarded(), spell_item_extract_gas::PeriodicTick(), boss_gyth::Reset(), npc_image_of_medivh::npc_image_of_medivhAI::Reset(), npc_amanitar_mushrooms::Reset(), npc_acolyte_of_shadron::Reset(), npc_acolyte_of_vesperon::Reset(), npc_legion_flame::Reset(), npc_fel_infernal::Reset(), npc_mistress_of_pain::Reset(), npc_kinetic_bomb::Reset(), npc_putricide_oozeAI::Reset(), npc_scrapbot::Reset(), npc_pummeller::Reset(), npc_boombot::Reset(), npc_ethereal_sphere::Reset(), npc_violet_hold_defense_system::Reset(), npc_parasitic_shadowfiend::Reset(), npc_blade_of_azzinoth::Reset(), npc_flame_of_azzinoth::Reset(), npc_shadow_demon::Reset(), npc_reliquary_combat_trigger::Reset(), npc_shadowy_construct::Reset(), npc_warden_mellichar::Reset(), npc_oscillating_frequency_scanner_master_bunny::npc_oscillating_frequency_scanner_master_bunnyAI::Reset(), instance_violet_hold::instance_violet_hold_InstanceMapScript::ResetBossEncounter(), npc_simon_bunny::npc_simon_bunnyAI::ResetNode(), npc_sevis_brightflame_shivarra_gateway::SacrificePlayer(), spell_putricide_ooze_channel::SelectTarget(), boss_toc_champion_controller::SetData(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetInstanceProgress(), npc_earthen_hallshaper_custodian::SpellHit(), npc_earthen_guardian::SpellHit(), npc_vault_warder::SpellHit(), npc_silverpine_hillsbrad_refugee::SpellHit(), npc_hive_zara_swarmer::SpellHit(), npc_buru_egg::SpellHit(), npc_azhiccar_intro_creature::SpellHit(), npc_aqusirr_intro_lord_stormsong::SpellHit(), npc_open_portal_target_toc::SpellHit(), boss_valithria_dreamwalker::SpellHit(), npc_black_hole::SpellHit(), npc_toasty_fire::SpellHit(), npc_warp_splinter_sapling::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_living_constellation::SpellHit(), npc_wounded_skirmisher::SpellHit(), npc_pet_dk_ebon_gargoyle::SpellHit(), boss_drakkari_elemental::SpellHitTarget(), npc_azure_ring_captain::SpellHitTarget(), npc_malformed_ooze::SpellHitTarget(), npc_water_globule::SpellHitTarget(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro_hawk::SpellHitTarget(), npc_felblood_kaelthas_phoenix::SummonedCreatureDies(), npc_phoenix_the_eye::SummonedCreatureDies(), npc_firelands_molten_flamefather::SummonedCreatureDies(), boss_anduin_wrynn::SummonedCreatureDies(), npc_violet_hold_teleportation_portal::SummonedCreatureDies(), npc_violet_hold_teleportation_portal_elite::SummonedCreatureDies(), boss_freya::boss_freyaAI::SummonedCreatureDies(), npc_kings_rest_shadow_of_zul::TriggerSerpentBossEvent(), spell_ymiron_the_fallen_king_soul_siphon::TriggerSuicide(), VehicleAI::UpdateAI(), EscortAI::UpdateAI(), npc_ioc_gunship_captain::UpdateAI(), boss_victor_nefarius::UpdateAI(), Scripts::EasternKingdoms::Gilneas::Chapter1::npc_frightened_citizen::UpdateAI(), npc_kalecgos::UpdateAI(), npc_dark_rider_of_acherus::UpdateAI(), npc_koltira_deathweaver::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_madrigosa::UpdateAI(), npc_armageddon::npc_armageddonAI::UpdateAI(), Scripts::EasternKingdoms::Vashjir::Chapter1::npc_vashjir_drowning_soldier::UpdateAI(), npc_frozen_mountaineer::npc_frozen_mountaineerAI::UpdateAI(), npc_wounded_coldridge_mountaineer::npc_wounded_coldridge_mountaineerAI::UpdateAI(), npc_vanessa_vancleef_human_heritage_lions_pride_inn_basement::UpdateAI(), npc_redridge_huge_boulder::UpdateAI(), npc_redridge_citizen::npc_redridge_citizenAI::UpdateAI(), npc_silverpine_fallen_human::UpdateAI(), npc_silverpine_deathstalker_rane_yorick::UpdateAI(), npc_silverpine_mutant_bush_chicken::UpdateAI(), npc_silverpine_orc_sea_dog::UpdateAI(), npc_silverpine_agatha_fenris_isle::UpdateAI(), Scripts::EasternKingdoms::Westfall::npc_westfall_overloaded_harvest_golem::UpdateAI(), npc_giant_spotlight::UpdateAI(), npc_survivors_healed_by_leader_beach_private< PathId, WaitTime >::UpdateAI(), npc_survivors_beach_leave_private< PathId, WaitTime >::UpdateAI(), npc_huxsworth_hunter_quest_private::UpdateAI(), npc_huxsworth_briarpatch_quest_private::UpdateAI(), npc_dawntracker_hunter_quest_private::UpdateAI(), npc_dawntracker_briarpatch_quest_private::UpdateAI(), npc_briarpatch_prisoner::UpdateAI(), npc_gnome_goblin_plains_make_copter_private::UpdateAI(), npc_captain_garrick_q55879::UpdateAI(), npc_warlord_grimaxe_q59942::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAI(), npc_husam_tolvir_land_mine::UpdateAI(), npc_lockmaw_augh_add::UpdateAI(), npc_belnistrasz::npc_belnistraszAI::UpdateAI(), npc_andorov::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), npc_disciple_of_naralex::UpdateAI(), npc_draenei_survivor::npc_draenei_survivorAI::UpdateAI(), Scripts::Kalimdor::Durotar::npc_captive_spitescale_scout::UpdateAI(), npc_whisperwind_lasher::npc_whisperwind_lasherAI::UpdateAI(), npc_lava_fissure::npc_lava_fissureAI::UpdateAI(), npc_stalactite_trigger::npc_stalactite_triggerAI::UpdateAI(), npc_prince_taldaram_flame_sphere::UpdateAI(), npc_unleashed_dark::UpdateAI(), npc_unleashed_light::UpdateAI(), npc_jaina_or_sylvanas_intro_hor::npc_jaina_or_sylvanas_intro_horAI::UpdateAI(), npc_uther_quel_delar::npc_uther_quel_delarAI::UpdateAI(), npc_kinetic_bomb::UpdateAI(), npc_ice_tomb::UpdateAI(), npc_impaling_spear::UpdateAI(), npc_strangulate_vehicle::UpdateAI(), npc_spirit_bomb::UpdateAI(), npc_dream_cloud::UpdateAI(), npc_crystal_spike_trigger::UpdateAI(), npc_ruby_emerald_amber_drake::UpdateAI(), boss_algalon_the_observer::UpdateAI(), boss_freya::boss_freyaAI::UpdateAI(), npc_healthy_spore::npc_healthy_sporeAI::UpdateAI(), npc_eonars_gift::npc_eonars_giftAI::UpdateAI(), boss_hodir::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), npc_mimiron_flames::npc_mimiron_flamesAI::UpdateAI(), npc_mimiron_frost_bomb::npc_mimiron_frost_bombAI::UpdateAI(), npc_mimiron_proximity_mine::npc_mimiron_proximity_mineAI::UpdateAI(), npc_annhylde_the_caller::UpdateAI(), npc_tempest_minion::UpdateAI(), npc_thassarian::UpdateAI(), npc_lake_frog::UpdateAI(), npc_blessed_banner::UpdateAI(), npc_crusade_recruit::UpdateAI(), npc_ethereal_beacon::UpdateAI(), npc_maiev::UpdateAI(), npc_warden_mellichar::UpdateAI(), npc_pet_mage_mirror_image::UpdateAI(), npc_spark_of_ionar::UpdateAI(), FollowerAI::UpdateAI(), npc_escape_event_trash::UpdateAI(), npc_power_spark::UpdateAI(), npc_brunnhildar_prisoner::UpdateAI(), boss_blackheart_the_inciter_mc_dummy::UpdateAI(), SmartAI::UpdateDespawn(), SmartAI::UpdatePath(), npc_bg_ab_gryphon_bat_rider_leader< Path >::WaypointPathEnded(), npc_bg_deephaul_ravine_earthen_mine_cart_horde::WaypointPathEnded(), npc_bg_deephaul_ravine_earthen_mine_cart_alliance::WaypointPathEnded(), npc_bg_seething_shore_air_supplies_drop::WaypointPathEnded(), npc_bg_silvershard_mines_mine_cart_cosmetic::WaypointPathEnded(), npc_kayn_sunfury_invasion_begins::WaypointPathEnded(), npc_jayce_darkweaver_invasion_begins::WaypointPathEnded(), npc_allari_the_souleater_invasion_begins::WaypointPathEnded(), npc_korvas_bloodthorn_invasion_begins::WaypointPathEnded(), npc_sevis_brightflame_invasion_begins::WaypointPathEnded(), npc_cyana_nightglaive_invasion_begins::WaypointPathEnded(), npc_danica_the_reclaimer::WaypointPathEnded(), npc_valkyr_of_odyn::WaypointPathEnded(), npc_death_knight_initiate::npc_death_knight_initiateAI::WaypointPathEnded(), npc_hearthglen_crusader::WaypointPathEnded(), Scripts::EasternKingdoms::StormwindCity::npc_jaina_proudmoore_tides_of_war::WaypointPathEnded(), Scripts::EasternKingdoms::StormwindCity::npc_arkonarin_starshade_ancient_curses::WaypointPathEnded(), Scripts::EasternKingdoms::StormwindCity::npc_lysande_starshade_ancient_curses::WaypointPathEnded(), npc_ship_captain_warming_up_private::WaypointPathEnded(), npc_sparring_partner_exiles_reach::WaypointPathEnded(), npc_ship_captain_brace_for_impact_private::WaypointPathEnded(), npc_first_mate_brace_for_impact_private::WaypointPathEnded(), npc_crew_ship_private::WaypointPathEnded(), npc_taelia_get_your_bearings::WaypointPathEnded(), npc_azure_saboteur::WaypointPathEnded(), Scripts::Pandaria::TheWanderingIsle::npc_aysa_cloudsinger_summon::WaypointPathEnded(), npc_pet_ship_private::WaypointPathEnded(), npc_horde_survivors_beach_q59930_private< PathId >::WaypointPathEnded(), npc_horde_crew_plains_private::WaypointPathEnded(), npc_bjorn_stouthands_q55965_private::WaypointPathEnded(), npc_lana_jordan_q59948_private::WaypointPathEnded(), npc_companion_q55965_q59948_private< PitPathId >::WaypointPathEnded(), npc_drustvar_frightend_woodsman_private::WaypointPathEnded(), Scripts::Pandaria::TheWanderingIsle::npc_delivery_cart::WaypointPathEnded(), npc_rokmora_navarrogg_intro::WaypointReached(), npc_silverpine_horde_hauler::WaypointReached(), npc_silverpine_forsaken_bat::WaypointReached(), npc_silverpine_lord_darius_crowley_exsanguinate::WaypointReached(), npc_silverpine_packleader_ivar_bloodfang_exsanguinate::WaypointReached(), Scripts::Pandaria::TheWanderingIsle::npc_min_dimwind_summon::WaypointReached(), npc_abomination::npc_abominationAI::WaypointReached(), npc_ghoul::npc_ghoulAI::WaypointReached(), and npc_7th_legion_magus_sanctum_of_the_sages::WaypointReached().
|
inline |
Definition at line 95 of file Creature.h.
Referenced by Battlefield::HideNpc(), boss_paletress::boss_paletressAI::MovementInform(), boss_eadric::boss_eadricAI::MovementInform(), npc_unleashed_ballAI::MovementInform(), npc_geezle::npc_geezleAI::NextStep(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), npc_swarm_scarab::UpdateAI(), npc_nerubian_burrower::UpdateAI(), npc_anubarak_spike::UpdateAI(), boss_krick::UpdateAI(), npc_unstable_sun_beam::npc_unstable_sun_beamAI::UpdateAI(), npc_venture_co_straggler::UpdateAI(), npc_brann_bronzebeard_keystone::UpdateAI(), and npc_emily::WaypointReached().
| void Creature::DoFleeToGetAssistance | ( | ) |
Definition at line 1034 of file Creature.cpp.
References CONFIG_CREATURE_FAMILY_FLEE_ASSISTANCE_RADIUS, Unit::GetMotionMaster(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::GetVictim(), Unit::HasAuraType(), MotionMaster::MoveSeekAssistance(), Unit::SetControlled(), SetNoSearchAssistance(), SPELL_AURA_PREVENTS_FLEEING, sWorld, UNIT_STATE_FLEEING, and Cell::VisitGridObjects().
Referenced by Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::DamageTaken(), npc_blackfathom_deeps_event::DamageTaken(), npc_nagrand_banner::npc_kil_sorrow_spellbinderAI::DamageTaken(), and SmartScript::ProcessAction().
|
inline |
Definition at line 373 of file Creature.h.
Referenced by CreatureAI::SetBoundary().
| void Creature::DoNotReacquireSpellFocusTarget | ( | ) |
Definition at line 3746 of file Creature.cpp.
References _spellFocusInfo.
Referenced by CreatureAI::_EnterEvadeMode(), boss_drakkari_colossus::DamageTaken(), boss_drakkari_elemental::DamageTaken(), ScriptedAI::ForceCombatStop(), and setDeathState().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 3916 of file Creature.cpp.
References Unit::ExitVehicle(), Position::GetPosition(), Unit::GetVehicle(), Unit::IsAlive(), and SetHomePosition().
Referenced by spell_seismic_shard::spell_seismic_shard_SpellScript::HandleScript(), boss_mimiron::boss_mimironAI::JustDied(), npc_ros_dark_rider::npc_ros_dark_riderAI::JustEngagedWith(), and boss_tyrannus::UpdateAI().
Definition at line 2386 of file Creature.cpp.
References EventProcessor::AddEvent(), WorldObject::AddObjectToRemoveList(), Map::ApplyDynamicModeRespawnScaling(), EventProcessor::CalculateTime(), CONFIG_RESPAWN_DYNAMICMODE, GetCorpseDelay(), GameTime::GetGameTime(), WorldObject::GetMap(), GetRespawnDelay(), Unit::IsAlive(), JUST_DIED, WorldObject::m_Events, m_respawnCompatibilityMode, m_respawnDelay, m_respawnTime, m_spawnId, RemoveCorpse(), SaveRespawnTime(), SetCorpseDelay(), setDeathState(), SetRespawnDelay(), sWorld, and WorldObject::UpdateObjectVisibilityOnDestroy().
Referenced by DespawnOrUnsummon().
| void Creature::ForcePartyMembersIntoCombat | ( | ) |
Definition at line 3868 of file Creature.cpp.
References _staticFlags, CREATURE_STATIC_FLAG_2_FORCE_RAID_COMBAT, Unit::EngageWithTarget(), Unit::GetCombatManager(), Player::GetGroup(), CombatManager::GetPvECombatRefs(), CreatureStaticFlagsHolder::HasFlag(), Trinity::Containers::FlatSet< Key, Compare, KeyContainer >::insert(), IsEngaged(), Player::IsGameMaster(), WorldObject::IsInMap(), and Object::ToPlayer().
Referenced by AtEngage(), and Heartbeat().
|
private |
Definition at line 725 of file Creature.cpp.
References CreatureStaticFlagsHolder::GetFlags(), CreatureStaticFlagsHolder::GetFlags2(), CreatureStaticFlagsHolder::GetFlags3(), CreatureStaticFlagsHolder::GetFlags4(), CreatureStaticFlagsHolder::GetFlags5(), CreatureStaticFlagsHolder::GetFlags6(), CreatureStaticFlagsHolder::GetFlags7(), CreatureStaticFlagsHolder::GetFlags8(), sObjectMgr, CreatureDifficulty::StaticFlags, CreatureStaticFlagsOverride::StaticFlags1, CreatureStaticFlagsOverride::StaticFlags2, CreatureStaticFlagsOverride::StaticFlags3, CreatureStaticFlagsOverride::StaticFlags4, CreatureStaticFlagsOverride::StaticFlags5, CreatureStaticFlagsOverride::StaticFlags6, CreatureStaticFlagsOverride::StaticFlags7, and CreatureStaticFlagsOverride::StaticFlags8.
Referenced by InitEntry().
| float Creature::GetAggroRange | ( | Unit const * | target | ) | const |
Definition at line 3523 of file Creature.cpp.
References Unit::GetLevelForTarget(), GetLevelForTarget(), Unit::GetTotalAuraModifier(), BaseEntity::GetTypeId(), Unit::IsPet(), MAX_AGGRO_RADIUS, SPELL_AURA_MOD_DETECT_RANGE, SPELL_AURA_MOD_DETECTED_RANGE, Object::ToCreature(), TYPEID_PLAYER, and TYPEID_UNIT.
Referenced by Trinity::NearestHostileUnitInAggroRangeCheck::operator()().
| std::string const & Creature::GetAIName | ( | ) | const |
Definition at line 3261 of file Creature.cpp.
References Object::GetEntry(), and sObjectMgr.
Referenced by GetDebugInfo(), npc_commandscript::HandleNpcInfoCommand(), and npc_commandscript::HandleNpcSetDataCommand().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 3217 of file Creature.cpp.
References GetBaseArmorForLevel(), Unit::GetLevel(), GetLevelForTarget(), and HasScalableLevels().
| float Creature::GetAttackDistance | ( | Unit const * | player | ) | const |
Definition at line 2166 of file Creature.cpp.
References CONFIG_MAX_PLAYER_LEVEL, Unit::GetCombatReach(), GetCreatureDifficulty(), Unit::GetLevelForTarget(), GetLevelForTarget(), GetMaxLevelForExpansion(), Unit::GetTotalAuraModifier(), RATE_CREATURE_AGGRO, SPELL_AURA_MOD_DETECT_RANGE, SPELL_AURA_MOD_DETECTED_RANGE, and sWorld.
Referenced by WorldObject::CanDetectStealthOf(), CanStartAttack(), boss_shade_of_aran::boss_aranAI::MoveInLineOfSight(), boss_twinemperorsAI::MoveInLineOfSight(), npc_hadronox_crusherPackAI::MoveInLineOfSight(), boss_krik_thir::MoveInLineOfSight(), npc_gatewatcher_petAI::MoveInLineOfSight(), and npc_pet_hunter_snake_trap::UpdateAI().
| float Creature::GetBaseArmorForLevel | ( | uint8 | level | ) | const |
Definition at line 3209 of file Creature.cpp.
References CreatureDifficulty::ArmorModifier, CreatureArmor, GetCreatureDifficulty(), GetCreatureTemplate(), CreatureDifficulty::GetHealthScalingExpansion(), Unit::m_unitData, sDB2Manager, and CreatureTemplate::unit_class.
Referenced by GetArmorMultiplierForTarget(), and UpdateLevelDependantStats().
| float Creature::GetBaseDamageForLevel | ( | uint8 | level | ) | const |
Definition at line 3192 of file Creature.cpp.
References CreatureAutoAttackDps, GetCreatureDifficulty(), GetCreatureTemplate(), CreatureDifficulty::GetHealthScalingExpansion(), Unit::m_unitData, sDB2Manager, and CreatureTemplate::unit_class.
Referenced by GetDamageMultiplierForTarget(), Guardian::InitStatsForLevel(), and UpdateLevelDependantStats().
|
inline |
Definition at line 124 of file Creature.h.
Referenced by ForcedDespawn(), and FrostwingGauntletRespawner::operator()().
Reimplemented from Unit.
Definition at line 967 of file StatSystem.cpp.
References Unit::GetCreatePowerValue(), IsUsedByNPCs, and sDB2Manager.
Referenced by UpdateMaxPower(), and Guardian::UpdateMaxPower().
| CreatureAddon const * Creature::GetCreatureAddon | ( | ) | const |
Definition at line 2760 of file Creature.cpp.
References Object::GetEntry(), m_spawnId, and sObjectMgr.
Referenced by LoadCreaturesAddon(), and UpdateEntry().
|
inline |
Definition at line 172 of file Creature.h.
Referenced by Create(), and CriteriaHandler::ModifierSatisfied().
|
inline |
Definition at line 275 of file Creature.h.
Referenced by GetScriptId(), GetSpawnTrackingStateDataForPlayer(), UF::ViewerDependentValue< UF::UnitData::StateWorldEffectsQuestObjectiveIDTag >::GetValue(), npc_commandscript::HandleNpcInfoCommand(), FrostwingGauntletRespawner::operator()(), Respawn(), setDeathState(), npc_argent_captainAI::SpellHit(), EscortAI::Start(), FollowerAI::StartFollow(), and EscortAI::UpdateAI().
|
inline |
Definition at line 276 of file Creature.h.
Referenced by ApplyLevelScaling(), EscortAI::AssistPlayerInCombatAgainst(), SmartAI::AssistPlayerInCombatAgainst(), CalculateMinMaxDamage(), SpellInfo::CheckTarget(), Spell::EffectPickPocket(), Spell::EffectSkinning(), Trinity::XP::Gain(), GetAttackDistance(), GetBaseArmorForLevel(), GetBaseDamageForLevel(), GetLabels(), GetLootId(), GetMaxHealthByLevel(), Player::GetNPCIfCanInteractWith(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcTameCommand(), InitEntry(), Guardian::InitStatsForLevel(), isWorldBoss(), Unit::Kill(), spell_item_extract_gas::PeriodicTick(), FollowerAI::ShouldAssistPlayerInCombatAgainst(), and UpdateLevelDependantStats().
|
inline |
Definition at line 274 of file Creature.h.
Referenced by Vehicle::ApplyAllImmunities(), CalculateMinMaxDamage(), CanResetTalents(), Create(), Pet::CreateBaseAtCreature(), CreateFromProto(), Unit::DealMeleeDamage(), Trinity::XP::Gain(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), GetBaseArmorForLevel(), GetBaseDamageForLevel(), Unit::GetCreatureType(), Player::GetGossipMenuForSource(), GetMaxHealthByLevel(), GetMovementTemplate(), GetNativeObjectScale(), Pet::GetNativeObjectScale(), Unit::GetUnitBlockChance(), Unit::GetUnitParryChance(), UF::ViewerDependentValue< UF::UnitData::DisplayIDTag >::GetValue(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcSetFactionIdCommand(), npc_commandscript::HandleNpcTameCommand(), pet_commandscript::HandlePetCreateCommand(), WorldSession::HandleSellAllJunkItems(), WorldSession::HandleSellItemOpcode(), Pet::HaveInDiet(), InitEntry(), EscortAI::InitializeAI(), Pet::InitLevelupSpellsForLevel(), Guardian::InitStatsForLevel(), IsImmunedToSpellEffect(), Pet::IsPermanentPetFor(), CriteriaData::IsValid(), Player::KilledMonster(), Pet::LearnPetPassives(), LoadCreaturesSparringHealth(), CriteriaHandler::ModifierSatisfied(), Player::PetSpellInitialize(), Unit::RemoveCharmedBy(), Respawn(), Player::RewardReputation(), Unit::RollMeleeOutcomeAgainst(), SaveToDB(), Unit::SetCharmedBy(), setDeathState(), SetDisplayFromModel(), UpdateEntry(), GameEventMgr::UpdateEventNPCFlags(), UpdateLevelDependantStats(), Unit::UpdateSpeed(), and npc_ruul_snowhoof::npc_ruul_snowhoofAI::WaypointReached().
|
inline |
Definition at line 263 of file Creature.h.
Referenced by AuraEffect::HandleAuraModDisarm(), npc_commandscript::HandleNpcInfoCommand(), npc_unworthy_initiate::npc_unworthy_initiateAI::npc_unworthy_initiateAI(), and SaveToDB().
Definition at line 408 of file Creature.h.
Referenced by SmartAI::PausePath(), and SmartAI::StopPath().
|
static |
Definition at line 1713 of file Creature.cpp.
References Elite, MinusMob, Normal, Obsolete, Rare, RareElite, RATE_CREATURE_DAMAGE_ELITE, RATE_CREATURE_DAMAGE_MINUSMOB, RATE_CREATURE_DAMAGE_NORMAL, RATE_CREATURE_DAMAGE_OBSOLETE, RATE_CREATURE_DAMAGE_RARE, RATE_CREATURE_DAMAGE_RAREELITE, RATE_CREATURE_DAMAGE_TRIVIAL, sWorld, and Trivial.
Referenced by ObjectMgr::LoadCreatureTemplateDifficulty().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 3199 of file Creature.cpp.
References GetBaseDamageForLevel(), Unit::GetLevel(), GetLevelForTarget(), and HasScalableLevels().
|
overridevirtual |
Reimplemented from BaseEntity.
Reimplemented in TempSummon, Minion, Guardian, and Pet.
Definition at line 3907 of file Creature.cpp.
References GetAIName(), Unit::GetDebugInfo(), GetScriptName(), GetSpawnId(), and GetWaypointPathId().
Referenced by CreatureAI::EngagementOver(), CreatureAI::EngagementStart(), ScriptedAI::ForceCombatStopForCreatureEntry(), TempSummon::GetDebugInfo(), LoadFromDB(), ReacquireSpellFocusTarget(), SetCannotReachTarget(), and Update().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 3042 of file Creature.cpp.
References Unit::GetPlayerMovingMe(), IDLE_MOTION_TYPE, and m_defaultMovementType.
Referenced by SaveToDB().
|
inline |
Definition at line 414 of file Creature.h.
Referenced by AtEngage(), FormationMovementGenerator::DoUpdate(), npc_commandscript::HandleNpcAddFormationCommand(), SmartAI::JustReachedHome(), instance_stonecore::instance_stonecore_InstanceScript::OnCreatureCreate(), and npc_cameron::UpdateAI().
| uint32 Creature::GetGossipMenuId | ( | ) | const |
Definition at line 3927 of file Creature.cpp.
References _gossipMenuId.
Referenced by Player::GetGossipMenuForSource().
|
staticprotected |
Definition at line 1684 of file Creature.cpp.
References Elite, MinusMob, Normal, Obsolete, Rare, RareElite, RATE_CREATURE_HP_ELITE, RATE_CREATURE_HP_MINUSMOB, RATE_CREATURE_HP_NORMAL, RATE_CREATURE_HP_OBSOLETE, RATE_CREATURE_HP_RARE, RATE_CREATURE_HP_RAREELITE, RATE_CREATURE_HP_TRIVIAL, sWorld, and Trivial.
Referenced by Guardian::InitStatsForLevel(), and UpdateLevelDependantStats().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 3182 of file Creature.cpp.
References Unit::GetCreateHealth(), GetLevelForTarget(), GetMaxHealthByLevel(), and HasScalableLevels().
|
inline |
Definition at line 397 of file Creature.h.
Referenced by GetRespawnPosition(), and SaveRespawnTime().
|
inline |
Definition at line 396 of file Creature.h.
Referenced by boss_hadronox::CanAIAttack(), npc_arthas_stratholme::npc_arthas_stratholmeAI::CanAIAttack(), boss_drekthar::CheckInRoom(), boss_galvangar::CheckInRoom(), boss_garothi_worldbreaker::DamageTaken(), boss_amalgam_of_souls::DamageTaken(), npc_inquisitor_baleful_molten_shore::DoAction(), boss_gothik::EnterEvadeMode(), npc_arthas_teleport_visual::GetAI(), npc_expedition_engineer::HandleBaseMovement(), npc_sindragosa_trash::InitializeAI(), npc_earthen_ring_flamecaller::JustAppeared(), npc_colossus::npc_colossusAI::JustDied(), boss_vanndar::JustEngagedWith(), npc_safe_technician_sanitron::MovementInform(), conversation_aberrus_sabellian_intro::OnUpdate(), conversation_the_new_classington_estate::OnUpdate(), SmartScript::ProcessAction(), boss_prince_taldaram::RemovePrison(), SmartAI::ReturnToLastOOCPos(), EscortAI::ReturnToLastPoint(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::SetData(), spell_hor_evasion::spell_hor_evasion_SpellScript::SetDest(), HomeMovementGenerator< T >::SetTargetLocation(), npc_stalagg::SpellHit(), npc_feugen::SpellHit(), npc_av_marshal_or_warmaster::UpdateAI(), boss_balinda::UpdateAI(), boss_ioc_horde_alliance::UpdateAI(), boss_broodlord::UpdateAI(), boss_priestess_delrissa::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), npc_harbinger_of_flame::npc_harbinger_of_flameAI::UpdateAI(), boss_onyxia::UpdateAI(), npc_valkyr_shadowguard::UpdateAI(), boss_sapphiron::UpdateAI(), boss_anomalus::UpdateAI(), npc_bloodmage_laurith::UpdateAI(), boss_warchief_kargath_bladefist::UpdateAI(), boss_high_astromancer_solarian::UpdateAI(), boss_cragmaw_the_infested::UpdateAI(), and CreatureAI::VisualizeBoundary().
| std::span< int32 const > Creature::GetLabels | ( | ) | const |
Definition at line 3466 of file Creature.cpp.
References GetCreatureDifficulty(), and sDB2Manager.
Referenced by HasLabel(), and Player::KilledMonster().
|
inline |
Definition at line 449 of file Creature.h.
Referenced by CanCreatureAttack().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 3227 of file Creature.cpp.
References Unit::GetLevelForTarget(), HasScalableLevels(), Unit::m_unitData, MAX_LEVEL, RoundToInterval(), sChrRacesStore, sFactionTemplateStore, Object::ToPlayer(), and Object::ToUnit().
Referenced by CanStartAttack(), Spell::EffectSkinning(), GetAggroRange(), GetArmorMultiplierForTarget(), GetAttackDistance(), GetDamageMultiplierForTarget(), and GetHealthMultiplierForTarget().
Reimplemented from Object.
Definition at line 1415 of file Creature.cpp.
References BaseEntity::GetGUID(), m_loot, m_personalLoot, and Trinity::Containers::MapGetValuePtr().
Referenced by Spell::CheckCast(), WorldSession::HandleLootOpcode(), Player::isAllowedToLoot(), and IsSkinnedBy().
| uint32 Creature::GetLootId | ( | ) | const |
Definition at line 1355 of file Creature.cpp.
References GetCreatureDifficulty(), CreatureDifficulty::LootID, and m_lootId.
Referenced by Unit::Kill().
|
inline |
Definition at line 325 of file Creature.h.
Referenced by Unit::Kill().
Definition at line 3174 of file Creature.cpp.
References CreatureHealth, GetCreatureDifficulty(), GetCreatureTemplate(), CreatureDifficulty::GetHealthScalingExpansion(), CreatureDifficulty::HealthModifier, Unit::m_unitData, sDB2Manager, and CreatureTemplate::unit_class.
Referenced by GetHealthMultiplierForTarget(), and UpdateLevelDependantStats().
|
inlineoverridevirtual |
Implements Unit.
Definition at line 237 of file Creature.h.
Referenced by ThreatReference::ShouldBeSuppressed().
| CreatureMovementData const & Creature::GetMovementTemplate | ( | ) | const |
Definition at line 3023 of file Creature.cpp.
References GetCreatureTemplate(), m_spawnId, CreatureTemplate::Movement, and sObjectMgr.
Referenced by RandomMovementFactory::Create(), WorldSession::HandleBattlemasterHelloOpcode(), WorldSession::HandleGossipHelloOpcode(), npc_commandscript::HandleNpcInfoCommand(), WorldSession::HandleQuestgiverHelloOpcode(), InitializeMovementCapabilities(), WorldSession::SendListInventory(), and ChaseMovementGenerator::Update().
|
overridevirtual |
Implements BaseEntity.
Definition at line 3451 of file Creature.cpp.
References DEFAULT_LOCALE, Object::GetEntry(), WorldObject::GetName(), and sObjectMgr.
Referenced by Pet::CreateBaseAtCreature().
|
overridevirtual |
Reimplemented from Unit.
Reimplemented in Pet.
Definition at line 3587 of file Creature.cpp.
References GetCreatureTemplate(), and CreatureTemplate::scale.
Referenced by Pet::GetNativeObjectScale(), InitEntry(), and Guardian::InitStatsForLevel().
|
inline |
Definition at line 426 of file Creature.h.
Referenced by FrostwingGauntletRespawner::operator()().
|
inline |
Definition at line 262 of file Creature.h.
Referenced by npc_commandscript::HandleNpcInfoCommand(), npc_unworthy_initiate::npc_unworthy_initiateAI::npc_unworthy_initiateAI(), and ScriptedAI::SetEquipmentSlots().
Reimplemented in Pet.
Definition at line 3476 of file Creature.cpp.
References ACT_ENABLED, Unit::m_charmInfo, and MAX_SPELL_CHARM.
Referenced by GetPetChaseDistance(), and PetAI::UpdateAI().
|
virtual |
Reimplemented in Pet.
Definition at line 3471 of file Creature.cpp.
References MAX_SPELL_CHARM.
Referenced by GetPetChaseDistance(), and PetAI::UpdateAI().
| float Creature::GetPetChaseDistance | ( | ) | const |
Definition at line 3484 of file Creature.cpp.
References WorldObject::GetMap(), GetPetAutoSpellOnPos(), GetPetAutoSpellSize(), and sSpellMgr.
Referenced by PetAI::DoAttack().
Implements Unit.
Definition at line 1008 of file StatSystem.cpp.
References Unit::GetPowerType(), MAX_POWERS_PER_CLASS, POWER_ALTERNATE_ENCOUNTER, POWER_ALTERNATE_MOUNT, POWER_ALTERNATE_POWER, POWER_ALTERNATE_QUEST, and POWER_COMBO_POINTS.
Referenced by UpdateMaxPower(), and Guardian::UpdateMaxPower().
|
overridevirtual |
Implements Unit.
Definition at line 1030 of file StatSystem.cpp.
References Unit::GetPowerType(), POWER_ALTERNATE_ENCOUNTER, POWER_ALTERNATE_MOUNT, POWER_ALTERNATE_POWER, POWER_ALTERNATE_QUEST, POWER_COMBO_POINTS, and ClassPowerTypes::PowerType.
Referenced by UpdateAllStats(), and Guardian::UpdateAllStats().
|
inline |
Definition at line 181 of file Creature.h.
Referenced by Player::CharmSpellInitialize(), Player::DisablePetControlsOnMount(), boss_drakkari_colossus::DoAction(), Pet::FillPetInfo(), npc_commandscript::HandleNpcInfoCommand(), Player::PetSpellInitialize(), Pet::SavePetToDB(), npc_rock_borer::npc_rock_borerAI::UpdateAI(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::UpdateAI(), npc_feral_defender::UpdateAI(), boss_the_lurker_below::UpdateAI(), boss_vazruden_the_herald::UpdateAI(), boss_high_astromancer_solarian::UpdateAI(), and Player::VehicleSpellInitialize().
|
inline |
Definition at line 431 of file Creature.h.
Referenced by npc_commandscript::HandleNpcInfoCommand().
|
inline |
Definition at line 367 of file Creature.h.
Referenced by ForcedDespawn(), npc_commandscript::HandleNpcInfoCommand(), FrostwingGauntletRespawner::operator()(), EscortAI::Start(), and FollowerAI::StartFollow().
| Position Creature::GetRespawnPosition | ( | float * | dist = nullptr | ) | const |
Definition at line 2910 of file Creature.cpp.
References GetHomePosition(), m_creatureData, SpawnData::spawnPoint, and CreatureData::wander_distance.
Referenced by Map::CreatureRespawnRelocation(), boss_malygos::DoAction(), SmartScript::ProcessAction(), RemoveCorpse(), and EscortAI::UpdateAI().
|
inline |
Definition at line 361 of file Creature.h.
| time_t Creature::GetRespawnTimeEx | ( | ) | const |
Definition at line 2896 of file Creature.cpp.
References GameTime::GetGameTime(), and m_respawnTime.
Referenced by npc_commandscript::HandleNpcInfoCommand().
| uint32 Creature::GetScriptId | ( | ) | const |
Definition at line 3271 of file Creature.cpp.
References ASSERT_NOTNULL, creatureData, GetCreatureData(), Object::GetEntry(), and sObjectMgr.
Referenced by Create(), ScriptMgr::GetCreatureAI(), GetScriptName(), FactorySelector::GetSelectedAIId(), WorldSession::HandleGossipSelectOptionOpcode(), ScriptMgr::OnAddPassenger(), ScriptMgr::OnInstall(), ScriptMgr::OnInstallAccessory(), ScriptMgr::OnRemovePassenger(), ScriptMgr::OnReset(), ScriptMgr::OnUninstall(), and UpdateEntry().
| std::string Creature::GetScriptName | ( | ) | const |
Definition at line 3266 of file Creature.cpp.
References GetScriptId(), and sObjectMgr.
Referenced by GetDebugInfo(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcSetDataCommand(), EscortAI::LoadPath(), FactorySelector::SelectAI(), and EscortAI::Start().
|
inline |
Definition at line 472 of file Creature.h.
Referenced by CalculateDamageForSparring(), and ShouldFakeDamageFrom().
|
inline |
Definition at line 110 of file Creature.h.
Referenced by FormationMgr::AddCreatureToGroup(), CreatureGroup::AddMember(), GetDebugInfo(), GameEventMgr::GetNPCFlag(), SmartScript::GetScript(), debug_commandscript::HandleDebugCombatListCommand(), debug_commandscript::HandleDebugGetLootRecipientCommand(), debug_commandscript::HandleDebugThreatListCommand(), npc_commandscript::HandleNpcAddCommand(), npc_commandscript::HandleNpcAddFormationCommand(), npc_commandscript::HandleNpcDeleteCommand(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcMoveCommand(), npc_commandscript::HandleNpcSetLinkCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetSpawnTimeCommand(), npc_commandscript::HandleNpcSetWanderDistanceCommand(), wp_commandscript::HandleWpLoadCommand(), wp_commandscript::HandleWpUnLoadCommand(), InitEntry(), npc_spinestalker::InitializeAI(), npc_rimefang_icc::InitializeAI(), npc_sindragosa_trash::InitializeAI(), SmartScript::IsSmart(), npc_spinestalker::JustAppeared(), npc_rimefang_icc::JustAppeared(), npc_sindragosa_trash::JustAppeared(), npc_living_mojo::npc_living_mojo(), instance_sunwell_plateau::instance_sunwell_plateau_InstanceMapScript::OnCreatureCreate(), instance_gruuls_lair::instance_gruuls_lair_InstanceMapScript::OnCreatureCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnUnitDeath(), FormationMgr::RemoveCreatureFromGroup(), Vehicle::Reset(), Respawn(), SearchFormation(), EscortAI::UpdateAI(), boss_gothik::UpdateAI(), and Player::UpdateVisibleObjectInteractions().
|
overridevirtual |
Reimplemented from Object.
Definition at line 3308 of file Creature.cpp.
References AsUnderlyingType(), GetCreatureData(), and Player::GetSpawnTrackingStateByObjectives().
| float Creature::GetSpellDamageMod | ( | CreatureClassifications | classification | ) | const |
Definition at line 1736 of file Creature.cpp.
References Elite, MinusMob, Normal, Obsolete, Rare, RareElite, RATE_CREATURE_SPELLDAMAGE_ELITE, RATE_CREATURE_SPELLDAMAGE_MINUSMOB, RATE_CREATURE_SPELLDAMAGE_NORMAL, RATE_CREATURE_SPELLDAMAGE_OBSOLETE, RATE_CREATURE_SPELLDAMAGE_RARE, RATE_CREATURE_SPELLDAMAGE_RAREELITE, RATE_CREATURE_SPELLDAMAGE_TRIVIAL, sWorld, and Trivial.
Referenced by Unit::SpellDamagePctDone().
|
inline |
Definition at line 285 of file Creature.h.
Referenced by npc_basic_hidden_no_more_private::GetPathDelay(), npc_commandscript::HandleNpcInfoCommand(), InheritStringIds(), SaveToDB(), and npc_bg_seething_shore_air_supply_ground_dummy::SpawnAirSupplyParachute().
|
inline |
Definition at line 312 of file Creature.h.
Referenced by Scripts::Pandaria::TheWanderingIsle::npc_li_fei_combat::DamageTaken(), SmartScript::GetTargets(), debug_commandscript::HandleDebugGetLootRecipientCommand(), spell_borean_tundra_magnataur_on_death_1::HandleScript(), npc_inquisitor_baleful_molten_shore::JustDied(), npc_fel_lord_caza_cryptic_hollow::JustDied(), Unit::Kill(), SmartScript::ProcessAction(), and Scripts::EasternKingdoms::Westfall::npc_westfall_lous_parting_thoughts_trigger::UpdateAI().
| CreatureTextRepeatIds Creature::GetTextRepeatGroup | ( | uint8 | textGroup | ) |
Definition at line 3779 of file Creature.cpp.
References m_textRepeat.
Referenced by CreatureTextMgr::SendChat().
| uint32 Creature::GetTrainerId | ( | ) | const |
Definition at line 3937 of file Creature.cpp.
References _trainerId, Object::GetEntry(), and sObjectMgr.
Referenced by WorldSession::HandleTrainerListOpcode().
|
inline |
Definition at line 402 of file Creature.h.
|
inline |
Definition at line 401 of file Creature.h.
Referenced by SmartScript::ProcessAction(), and TransportBase::UpdatePassengerPosition().
| uint32 Creature::GetVendorItemCurrentCount | ( | VendorItem const * | vItem | ) |
Definition at line 3330 of file Creature.cpp.
References VendorItemCount::count, GameTime::GetGameTime(), VendorItem::incrtime, VendorItem::item, VendorItemCount::lastIncrementTime, m_vendorItemCounts, VendorItem::maxcount, and sObjectMgr.
Referenced by Player::BuyItemFromVendorSlot(), and WorldSession::SendListInventory().
| VendorItemData const * Creature::GetVendorItems | ( | ) | const |
Definition at line 3325 of file Creature.cpp.
References Object::GetEntry(), and sObjectMgr.
Referenced by Player::BuyCurrencyFromVendorSlot(), Player::BuyItemFromVendorSlot(), and WorldSession::SendListInventory().
|
inline |
Definition at line 370 of file Creature.h.
Referenced by RandomMovementFactory::Create().
|
inline |
Definition at line 404 of file Creature.h.
Referenced by WaypointMovementFactory::Create(), GetDebugInfo(), wp_commandscript::HandleWpAddCommand(), wp_commandscript::HandleWpShowCommand(), SmartAI::JustReachedHome(), ICCOrbControllerMinionSearch::operator()(), npc_twilight_torturer::npc_twilight_torturerAI::Reset(), npc_twilight_sadist::npc_twilight_sadistAI::Reset(), and DarkFallenAI::Reset().
|
inline |
Definition at line 173 of file Creature.h.
Referenced by IsElite().
|
inline |
Definition at line 480 of file Creature.h.
Referenced by AtEngage(), Unit::DealDamage(), TempSummon::IsAutoResummoned(), TempSummon::IsDismissedOnFlyingMount(), SetCanMelee(), and StartDefaultCombatMovement().
|
inline |
Definition at line 481 of file Creature.h.
|
inline |
Definition at line 482 of file Creature.h.
|
inline |
Definition at line 483 of file Creature.h.
|
inline |
Definition at line 484 of file Creature.h.
|
inline |
Definition at line 485 of file Creature.h.
|
inline |
Definition at line 486 of file Creature.h.
|
inline |
Definition at line 487 of file Creature.h.
|
overridevirtual |
Reimplemented from Object.
Definition at line 2013 of file Creature.cpp.
References Object::GetEntry(), and sObjectMgr.
| bool Creature::HasLabel | ( | int32 | cretureLabel | ) | const |
Definition at line 3461 of file Creature.cpp.
References advstd::ranges::contains, and GetLabels().
Referenced by GetUnitConditionVariable().
|
inline |
Definition at line 326 of file Creature.h.
Referenced by boss_sartharion::AddDrakeLootMode(), and boss_flame_leviathan::boss_flame_leviathanAI::DoAction().
|
inline |
Definition at line 314 of file Creature.h.
Referenced by Player::GiveXP(), and boss_valithria_dreamwalker::HealReceived().
|
overridevirtual |
Reimplemented from Object.
Definition at line 2008 of file Creature.cpp.
References Object::GetEntry(), and sObjectMgr.
|
inline |
Definition at line 182 of file Creature.h.
Referenced by EscortAI::AssistPlayerInCombatAgainst(), SmartAI::AssistPlayerInCombatAgainst(), npc_arthas_stratholme::npc_arthas_stratholmeAI::CanAIAttack(), CanAssistTo(), PetAI::CanAttack(), boss_flame_leviathan::boss_flame_leviathanAI::DoAction(), PetAI::DoAttack(), boss_infinite_corruptor::boss_infinite_corruptorAI::EnterEvadeMode(), spell_auriaya_agro_creator::HandleDummyEffect(), npc_living_mojo::JustEngagedWith(), npc_hadronox_crusherPackAI::JustEngagedWith(), npc_gatewatcher_petAI::JustEngagedWith(), npc_kelthuzad_minionAI::JustEngagedWith(), violet_hold_trashAI::JustEngagedWith(), CreatureAI::MoveInLineOfSight(), npc_hadronox_crusherPackAI::MoveInLineOfSight(), boss_krik_thir::MoveInLineOfSight(), npc_gatewatcher_petAI::MoveInLineOfSight(), npc_kelthuzad_minionAI::MoveInLineOfSight(), CreatureAI::OnCharmed(), SmartAI::OnCharmed(), CreatureAI::OnOwnerCombatInteraction(), PetAI::OwnerAttacked(), PetAI::OwnerAttackedBy(), FollowerAI::OwnerAttackedBy(), violet_hold_trashAI::Reset(), PetAI::SelectNextTarget(), SelectVictim(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::SelectVictim(), gunship_npc_AI::SelectVictim(), SmartAI::SetCombatMove(), npc_sporecaller_zancha_musashitake::SpellHit(), CreatureAI::TriggerAlert(), gunship_npc_AI::TriggerBurningPitch(), boss_gothik::UpdateAI(), boss_blackheart_the_inciter::UpdateAI(), PetAI::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAICombat(), and CreatureAI::UpdateVictim().
| bool Creature::HasScalableLevels | ( | ) | const |
Definition at line 3118 of file Creature.cpp.
References Unit::m_unitData.
Referenced by WorldPackets::Spells::ContentTuningParams::GenerateDataForUnits(), GetArmorMultiplierForTarget(), GetDamageMultiplierForTarget(), GetHealthMultiplierForTarget(), and GetLevelForTarget().
|
inline |
Definition at line 349 of file Creature.h.
|
overridevirtual |
Reimplemented from Unit.
Reimplemented in Pet.
Definition at line 2891 of file Creature.cpp.
References m_spells.
|
overridevirtual |
Reimplemented from Unit.
Definition at line 3682 of file Creature.cpp.
References _spellFocusInfo, Object::GetEntry(), WorldObject::GetName(), Unit::isDead(), Spell::Spell(), and TC_LOG_WARN.
Referenced by IsMovementPreventedByCasting(), ReacquireSpellFocusTarget(), SelectVictim(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::SelectVictim(), gunship_npc_AI::SelectVictim(), and SetTarget().
| bool Creature::HasStringId | ( | std::string_view | id | ) | const |
Definition at line 3289 of file Creature.cpp.
References m_stringIds.
Referenced by npc_earthen_ring_flamecaller::DoAction(), Scripts::Kalimdor::Durotar::npc_captive_spitescale_scout::DoAction(), npc_sanitron_5000::GetPathId(), npc_drustvar_frightend_woodsman_private::GetPathId(), npc_coilfang_ambusher::GetPathId(), npc_coilfang_guardian::GetPathId(), npc_shadowmoon_channeler::GetStringIdOfChanneler(), spell_ragefire_chasm_general_trigger_221_to_self::HandleDummy(), npc_vp_slipstream::InitializeAI(), BroggokPrisionerBaseAI::IsCellPrisoner(), BroggokPrisionerBaseAI::IsHighCellPrisoner(), npc_rokmora_navarrogg_intro::JustAppeared(), Scripts::Kalimdor::Durotar::npc_darkspear_jailor::JustAppeared(), npc_kings_rest_shadow_of_zul::JustAppeared(), npc_kings_rest_minion_of_zul::JustAppeared(), npc_fel_orc_convert::JustDied(), npc_fel_orc_convert::JustEngagedWith(), CreatureGroup::LeaderHasStringId(), spell_vp_slipstream::Load(), arena_dalaran_sewers::OnCreatureCreate(), battleground_isle_of_conquest::OnCreatureCreate(), instance_aberrus_the_shadowed_crucible::instance_aberrus_the_shadowed_crucible_InstanceMapScript::OnCreatureCreate(), instance_uldaman::instance_uldaman_InstanceMapScript::OnCreatureCreate(), instance_ruins_of_ahnqiraj::instance_ruins_of_ahnqiraj_InstanceMapScript::OnCreatureCreate(), instance_vortex_pinnacle::instance_vortex_pinnacle_InstanceMapScript::OnCreatureCreate(), instance_blood_furnace::instance_blood_furnace_InstanceMapScript::OnCreatureCreate(), instance_kings_rest::instance_kings_rest_InstanceMapScript::OnCreatureCreate(), instance_vortex_pinnacle::instance_vortex_pinnacle_InstanceMapScript::OnCreatureRemove(), npc_altar_altercation_blood_ritual_orb::OnSpellClick(), battleground_silvershard_mines::OnTrackSwitched(), instance_aberrus_the_shadowed_crucible::instance_aberrus_the_shadowed_crucible_InstanceMapScript::OnUnitDeath(), instance_zulaman::instance_zulaman_InstanceScript::OnUnitDeath(), instance_the_stonevault::instance_the_stonevault_InstanceMapScript::OnUnitDeath(), instance_kings_rest::instance_kings_rest_InstanceMapScript::OnUnitDeath(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), npc_vp_slipstream::PassengerBoarded(), npc_vault_warder::Reset(), and npc_vault_warder::SpellHit().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 932 of file Creature.cpp.
References _aggroGracePeriodExpired, ForcePartyMembersIntoCombat(), WorldObject::GetVisibilityRange(), Unit::Heartbeat(), and Cell::VisitAllObjects().
| void Creature::InheritStringIds | ( | Creature const * | parent | ) |
Definition at line 3280 of file Creature.cpp.
References GetStringId(), m_stringIds, Script, and SetScriptStringId().
|
protected |
change the entry of creature until respawn
Definition at line 497 of file Creature.cpp.
References _staticFlags, ApplyAllStaticFlags(), CreatureStaticFlagsHolder::ApplyFlag(), ObjectMgr::ChooseDisplayId(), CREATURE_FLAG_EXTRA_IGNORE_FEIGN_DEATH, CREATURE_FLAG_EXTRA_NO_XP, CREATURE_FLAG_EXTRA_USE_OFFHAND_ATTACK, CREATURE_STATIC_FLAG_2_ALLOW_MOUNTED_COMBAT, CREATURE_STATIC_FLAG_NO_XP, CREATURE_TYPE_CRITTER, CREATURE_TYPE_FLAG_ALLOW_MOUNTED_COMBAT, CREATURE_TYPE_FLAG_TREAT_AS_RAID_UNIT, CreatureModel::CreatureDisplayID, DIFFICULTY_NONE, CreatureData::equipmentId, CreatureTemplate::flags_extra, GenerateStaticFlags(), GetCreatureDifficulty(), GetCreatureTemplate(), CreatureTemplate::GetDifficulty(), CreatureTemplate::GetFirstValidModel(), WorldObject::GetMap(), GetNativeObjectScale(), GetSpawnId(), IDLE_MOTION_TYPE, Unit::IsPet(), Unit::IsTotem(), LoadEquipment(), m_creatureDifficulty, m_creatureInfo, m_defaultMovementType, m_originalEquipmentId, m_spells, m_wanderDistance, MAX_CREATURE_SPELLS, MOVE_FLIGHT, MOVE_RUN, MOVE_SWIM, MOVE_WALK, CreatureTemplate::MovementType, CreatureData::movementType, CreatureTemplate::Name, RACE_NONE, RANDOM_MOTION_TYPE, SetCanDualWield(), Unit::SetClass(), SetDisplayId(), Object::SetEntry(), SetIgnoreFeignDeath(), Unit::SetModCastingSpeed(), Unit::SetModCastingSpeedNeg(), Unit::SetModHaste(), Unit::SetModHasteRegen(), Unit::SetModRangedHaste(), Unit::SetModSpellHaste(), Unit::SetModTimeRate(), WorldObject::SetName(), SetObjectScale(), Unit::SetRace(), Unit::SetSpeedRate(), Unit::SetSpellEmpowerStage(), SetTreatAsRaidUnit(), sObjectMgr, CreatureTemplate::speed_run, CreatureTemplate::speed_walk, CreatureTemplate::spells, TC_LOG_ERROR, CreatureTemplate::type, CreatureTemplate::unit_class, and Unit::UpdateCreatureType().
Referenced by Pet::Create(), and UpdateEntry().
| void Creature::InitializeInteractSpellId | ( | ) |
Definition at line 3969 of file Creature.cpp.
References Object::GetEntry(), SetInteractSpellId(), and sObjectMgr.
Referenced by UpdateEntry().
| void Creature::InitializeMovementCapabilities | ( | ) |
Definition at line 2928 of file Creature.cpp.
References CanOnlySwimIfTargetSwims(), GetMovementTemplate(), Unit::RemoveUnitFlag2(), Unit::SetHover(), Unit::SetSwim(), Unit::SetUnitFlag2(), UNIT_FLAG2_AI_WILL_ONLY_SWIM_IF_TARGET_SWIMS, UpdateFloatingMovementFlags(), UpdateMovementCapabilities(), and UpdateSessileMovementFlags().
Referenced by HomeMovementGenerator< T >::DoFinalize(), and UpdateEntry().
| void Creature::InitializeReactState | ( | ) |
Definition at line 1305 of file Creature.cpp.
References _staticFlags, CREATURE_STATIC_FLAG_IGNORE_COMBAT, CreatureStaticFlagsHolder::HasFlag(), Unit::IsCritter(), Unit::IsSpiritService(), Unit::IsTotem(), IsTrigger(), REACT_AGGRESSIVE, REACT_PASSIVE, and SetReactState().
Referenced by Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::JustReachedHome(), Respawn(), and UpdateEntry().
|
inlineoverridevirtual |
Reimplemented from Unit.
Definition at line 176 of file Creature.h.
References CREATURE_FLAG_EXTRA_ALL_DIMINISH, and Unit::IsAffectedByDiminishingReturns().
|
inline |
Definition at line 468 of file Creature.h.
Referenced by CreatureAI::MoveInLineOfSight().
|
inline |
Definition at line 139 of file Creature.h.
References CREATURE_STATIC_FLAG_AMPHIBIOUS.
|
inline |
Definition at line 136 of file Creature.h.
References CREATURE_STATIC_FLAG_AQUATIC.
Referenced by PathGenerator::CreateFilter(), and Unit::isInAccessiblePlaceFor().
| bool Creature::isCanInteractWithBattleMaster | ( | Player * | player, |
| bool | msg | ||
| ) | const |
Definition at line 1317 of file Creature.cpp.
References BATTLEGROUND_AA, BATTLEGROUND_AB, BATTLEGROUND_AV, BATTLEGROUND_BE, BATTLEGROUND_DS, BATTLEGROUND_EY, BATTLEGROUND_NA, BATTLEGROUND_RL, BATTLEGROUND_RV, BATTLEGROUND_SA, BATTLEGROUND_WS, ClearGossipMenuFor(), Player::GetBGAccessByLevel(), Object::GetEntry(), Unit::IsBattleMaster(), sBattlegroundMgr, and SendGossipMenuFor().
|
inline |
Definition at line 126 of file Creature.h.
References CREATURE_FLAG_EXTRA_CIVILIAN.
Referenced by CanAssistTo(), CanStartAttack(), AggressorAI::Permissible(), ReactorAI::Permissible(), and CreatureAI::TriggerAlert().
|
inline |
Definition at line 175 of file Creature.h.
References CREATURE_FLAG_EXTRA_DUNGEON_BOSS.
Referenced by setDeathState().
| bool Creature::IsElite | ( | ) | const |
Definition at line 2499 of file Creature.cpp.
References Elite, HasClassification(), Unit::IsPet(), and RareElite.
Referenced by Spell::EffectSkinning(), and Trinity::XP::Gain().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 3802 of file Creature.cpp.
References AI().
Referenced by CallForHelp(), npc_arthas_stratholme::npc_arthas_stratholmeAI::CanAIAttack(), CanAssistTo(), boss_drakkari_colossus::DoAction(), npc_stalagg::DoAction(), ForcePartyMembersIntoCombat(), BossAI::JustSummoned(), npc_frostwing_ymirjar_vrykul::JustSummoned(), boss_commander_sarannis::JustSummoned(), boss_high_botanist_freywinn::JustSummoned(), boss_laj::JustSummoned(), boss_warp_splinter::JustSummoned(), boss_omor_the_unscarred::JustSummoned(), CreatureAI::MoveInLineOfSight(), npc_reliquary_combat_trigger::MoveInLineOfSight(), npc_dk_understudy::OnCharmed(), SmartScript::OnMoveInLineOfSight(), SmartScript::ProcessEvent(), SmartAI::SetCombatMove(), EscortAI::Start(), FollowerAI::StartFollow(), CreatureAI::TriggerAlert(), Update(), CritterAI::UpdateAI(), SimpleCharmedPlayerAI::UpdateAI(), EscortAI::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAI(), npc_halion_controller::UpdateAI(), boss_flame_leviathan::boss_flame_leviathanAI::UpdateAI(), PassiveAI::UpdateAI(), FollowerAI::UpdateAI(), and SmartScript::UpdateTimer().
| bool Creature::IsEscorted | ( | ) | const |
Definition at line 3900 of file Creature.cpp.
References AI().
Referenced by AtEngage(), and Map::CheckRespawn().
|
inline |
Definition at line 225 of file Creature.h.
Referenced by Unit::Attack(), Unit::DealDamageMods(), Unit::DealMeleeDamage(), Unit::DealSpellDamage(), Unit::RollMeleeOutcomeAgainst(), and WorldObject::SpellHitResult().
|
inline |
Definition at line 142 of file Creature.h.
References CREATURE_STATIC_FLAG_FLOATING.
Referenced by HandleAuraDisableGravity(), UpdateFloatingMovementFlags(), and UpdateSessileMovementFlags().
| bool Creature::IsFormationLeader | ( | ) | const |
Definition at line 403 of file Creature.cpp.
References CreatureGroup::IsLeader(), and m_formation.
| bool Creature::IsFormationLeaderMoveAllowed | ( | ) | const |
Definition at line 422 of file Creature.cpp.
References CreatureGroup::CanLeaderStartMoving(), and m_formation.
| bool Creature::IsFullyLooted | ( | ) | const |
Definition at line 1426 of file Creature.cpp.
References m_loot, and m_personalLoot.
Referenced by WorldSession::DoLootRelease(), and Unit::Kill().
|
inline |
Definition at line 128 of file Creature.h.
References CREATURE_FLAG_EXTRA_GUARD.
Referenced by GuardAI::Permissible().
|
inline |
Definition at line 386 of file Creature.h.
References CREATURE_STATIC_FLAG_6_ALWAYS_STAND_ON_TARGET.
|
inline |
Definition at line 352 of file Creature.h.
References CREATURE_STATIC_FLAG_2_IGNORE_FEIGN_DEATH.
Referenced by _IsTargetAcceptable(), and AuraEffect::HandleFeignDeath().
|
inline |
Definition at line 354 of file Creature.h.
References CREATURE_STATIC_FLAG_2_IGNORE_SANCTUARY.
Referenced by Spell::EffectSanctuary().
|
overridevirtual |
Reimplemented from Unit.
Reimplemented in Totem.
Definition at line 2490 of file Creature.cpp.
References CREATURE_TYPE_MECHANICAL, GetCreatureTemplate(), SpellEffectInfo::IsEffect(), Unit::IsImmunedToSpellEffect(), and SPELL_EFFECT_HEAL.
Referenced by Totem::IsImmunedToSpellEffect().
|
inline |
Definition at line 1063 of file Unit.h.
Referenced by CanAssistTo(), CanStartAttack(), and EscortAI::Start().
|
inline |
Definition at line 1060 of file Unit.h.
Referenced by boss_deathbringer_saurfang::AttackStart(), CanStartAttack(), boss_drakkari_colossus::DamageTaken(), and CreatureAI::TriggerAlert().
|
inline |
Definition at line 224 of file Creature.h.
References Unit::HasUnitState(), and UNIT_STATE_EVADE.
Referenced by CreatureAI::_EnterEvadeMode(), EscortAI::AssistPlayerInCombatAgainst(), SmartAI::AssistPlayerInCombatAgainst(), Unit::Attack(), CanAssistTo(), CanCreatureAttack(), npc_greyheart_spellbinder::DoAction(), npc_shadowmoon_channeler::DoCastChanneledSpell(), boss_lord_waycrest::EnterEvadeMode(), boss_lady_waycrest::EnterEvadeMode(), boss_aqusirr::EnterEvadeMode(), boss_illidari_council::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), boss_the_lich_king::KilledUnit(), boss_sara::boss_saraAI::KilledUnit(), npc_guard_generic::npc_guard_generic(), SmartAI::OnCharmed(), SmartScript::OnUpdate(), Scripts::Pandaria::TheWanderingIsle::HuojinTraineePartnerSearch::operator()(), Scripts::Pandaria::TheWanderingIsle::TushuiTraineeSearch::operator()(), SmartScript::ProcessEvent(), FollowerAI::ShouldAssistPlayerInCombatAgainst(), Update(), SimpleCharmedPlayerAI::UpdateAI(), and boss_felmyst::UpdateAI().
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
Definition at line 2093 of file Creature.cpp.
References GameTime::GetGameTime(), Unit::IsAlive(), Unit::isDying(), WorldObject::IsInvisibleDueToDespawn(), and m_corpseRemoveTime.
|
overridevirtual |
Reimplemented from Unit.
Definition at line 3752 of file Creature.cpp.
References HasSpellFocus(), and Unit::IsMovementPreventedByCasting().
Referenced by FormationMovementGenerator::DoInitialize(), and FormationMovementGenerator::DoUpdate().
|
inline |
Definition at line 125 of file Creature.h.
Referenced by Player::RewardHonor().
|
inline |
Definition at line 421 of file Creature.h.
Referenced by Player::RewardReputation().
| bool Creature::IsReturningHome | ( | ) | const |
Definition at line 382 of file Creature.cpp.
References Unit::GetMotionMaster(), and HOME_MOTION_TYPE.
|
inline |
Definition at line 149 of file Creature.h.
References CREATURE_STATIC_FLAG_SESSILE.
Referenced by UpdateFloatingMovementFlags(), and UpdateSessileMovementFlags().
| bool Creature::IsSkinnedBy | ( | Player const * | player | ) | const |
Definition at line 1438 of file Creature.cpp.
References GetLootForPlayer(), LOOT_SKINNING, and Loot::loot_type.
Referenced by UF::ViewerDependentValue< UF::UnitData::Flags3Tag >::GetValue().
|
inline |
Definition at line 116 of file Creature.h.
References WorldLocation::GetMapId().
Referenced by RemoveCorpse().
|
inline |
Definition at line 227 of file Creature.h.
References CREATURE_STATIC_FLAG_5_NO_LEAVE_COMBAT_STATE_RESTORE.
Referenced by CreatureAI::_EnterEvadeMode(), and HomeMovementGenerator< T >::DoFinalize().
|
inline |
Definition at line 160 of file Creature.h.
References CREATURE_STATIC_FLAG_3_CANT_SWIM.
|
inline |
Definition at line 315 of file Creature.h.
Referenced by CreatureAI::_EnterEvadeMode(), EscortAI::EnterEvadeMode(), and ScriptedAI::ForceCombatStop().
| bool Creature::isTappedBy | ( | Player const * | player | ) | const |
Definition at line 1410 of file Creature.cpp.
References BaseEntity::GetGUID(), and m_tapList.
Referenced by AuraEffect::HandleChannelDeathItem(), and npc_sironas::npc_sironasAI::JustDied().
|
inline |
Definition at line 464 of file Creature.h.
References CREATURE_STATIC_FLAG_3_NO_THREAT_FEEDBACK.
|
inline |
Definition at line 242 of file Creature.h.
References CREATURE_STATIC_FLAG_4_TREAT_AS_RAID_UNIT_FOR_HELPFUL_SPELLS.
Referenced by Unit::IsInPartyWith(), and Unit::IsInRaidWith().
|
inline |
Definition at line 127 of file Creature.h.
References CREATURE_FLAG_EXTRA_TRIGGER.
Referenced by ThreatManager::CanHaveThreatList(), ThreatReference::FlagsAllowFighting(), InitializeReactState(), TempSummon::InitStats(), NullCreatureAI::Permissible(), TriggerAI::Permissible(), UpdateEntry(), and Player::UpdateTriggerVisibility().
| bool Creature::isWorldBoss | ( | ) | const |
Definition at line 2507 of file Creature.cpp.
References CREATURE_TYPE_FLAG_BOSS_MOB, GetCreatureDifficulty(), and Unit::IsPet().
Referenced by Vehicle::ApplyAllImmunities(), CanCreatureAttack(), Unit::DealMeleeDamage(), hyjal_trashAI::JustDied(), and hyjalAI::SummonCreature().
| bool Creature::LoadCreaturesAddon | ( | ) |
Definition at line 2772 of file Creature.cpp.
References _defaultMountDisplayIdOverride, _waypointPathId, Unit::AddAura(), CreatureAddon::aiAnimKit, CreatureAddon::animTier, CreatureAddon::auras, CreatureAddon::emote, FORM_NONE, GetCreatureAddon(), Map::GetDifficultyID(), BaseEntity::GetGUID(), WorldObject::GetMap(), HasAura, CreatureAddon::meleeAnimKit, CreatureAddon::mount, Mount, CreatureAddon::movementAnimKit, Normal, CreatureAddon::PathId, CreatureAddon::pvpFlags, Unit::ReplaceAllPetFlags(), Unit::ReplaceAllPvpFlags(), Unit::ReplaceAllVisFlags(), Unit::SetAIAnimKitId(), Unit::SetAnimTier(), Unit::SetEmoteState(), Unit::SetMeleeAnimKitId(), Unit::SetMovementAnimKitId(), Unit::SetShapeshiftForm(), Unit::SetSheath(), Unit::SetStandState(), WorldObject::SetVisibilityDistanceOverride(), CreatureAddon::sheathState, sSpellMgr, CreatureAddon::standState, TC_LOG_DEBUG, TC_LOG_ERROR, Position::ToString(), UNIT_PET_FLAG_NONE, CreatureAddon::visFlags, and CreatureAddon::visibilityDistanceType.
Referenced by Create(), HomeMovementGenerator< T >::DoFinalize(), hyjalAI::EnterEvadeMode(), ScriptedAI::ForceCombatStop(), boss_valithria_dreamwalker::Reset(), npc_dream_cloud::Reset(), setDeathState(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::SummonNextWave(), and UpdateEntry().
| void Creature::LoadCreaturesSparringHealth | ( | bool | force = false | ) |
Definition at line 2829 of file Creature.cpp.
References _sparringHealthPct, Entry, GetCreatureTemplate(), Trinity::Containers::SelectRandomContainerElement(), and sObjectMgr.
Referenced by Create(), HomeMovementGenerator< T >::DoFinalize(), setDeathState(), and UpdateEntry().
| void Creature::LoadEquipment | ( | int8 | id = 1, |
| bool | force = false |
||
| ) |
Definition at line 1973 of file Creature.cpp.
References EquipmentItem::AppearanceModId, Object::GetEntry(), EquipmentItem::ItemId, EquipmentInfo::Items, EquipmentItem::ItemVisual, m_equipmentId, MAX_EQUIPMENT_ITEMS, Unit::SetVirtualItem(), and sObjectMgr.
Referenced by boss_ingvar_the_plunderer::DoAction(), boss_baleroc::EquipWeapon(), spell_death_knight_initiate_visual::HandleScriptEffect(), InitEntry(), npc_unworthy_initiate::npc_unworthy_initiateAI::MovementInform(), npc_dk_understudy::npc_dk_understudy(), npc_unworthy_initiate::npc_unworthy_initiateAI::Reset(), boss_illidan_stormrage::Reset(), ScriptedAI::SetEquipmentSlots(), npc_tirion_fordring_tft::SpellHit(), npc_koltira_deathweaver::UpdateAI(), npc_partygoer_pather::UpdateAI(), npc_partygoer::UpdateAI(), and boss_illidan_stormrage::UpdateAI().
| bool Creature::LoadFromDB | ( | ObjectGuid::LowType | spawnId, |
| Map * | map, | ||
| bool | addToMap, | ||
| bool | allowDuplicate | ||
| ) |
Definition at line 1857 of file Creature.cpp.
References ALIVE, AsUnderlyingType(), CanFly(), Create(), Creature, DEAD, SpawnGroupTemplateData::flags, Map::GenerateLowGuid(), Map::GetCreatureBySpawnIdStore(), Map::GetCreatureRespawnTime(), GetDebugInfo(), GameTime::GetGameTime(), Map::GetHeight(), WorldObject::GetMap(), WorldObject::GetPhaseShift(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), SpawnGroupTemplateData::groupId, SpawnData::id, Map::IsSpawnGroupActive(), Trinity::IsValidMapCoord(), m_creatureData, Unit::m_deathState, m_defaultMovementType, m_respawnCompatibilityMode, m_respawnDelay, m_respawnTime, m_spawnId, m_stringIds, m_wanderDistance, MAX_FALL_DISTANCE, CreatureData::movementType, SpawnGroupTemplateData::name, SpawnData::poolId, Position::Relocate(), SelectWildBattlePetLevel(), SetHomePosition(), SetSpawnHealth(), sObjectMgr, Spawn, SPAWNGROUP_FLAG_COMPATIBILITY_MODE, SpawnMetadata::spawnGroupData, SpawnData::spawnPoint, SpawnData::spawntimesecs, SpawnData::StringId, TC_LOG_DEBUG, TC_LOG_ERROR, urand(), and CreatureData::wander_distance.
Referenced by CreateCreatureFromDB(), Map::DoRespawn(), and Map::SpawnGroupSpawn().
|
inline |
Definition at line 405 of file Creature.h.
Referenced by npc_commandscript::HandleNpcSetMoveTypeCommand(), wp_commandscript::HandleWpLoadCommand(), and wp_commandscript::HandleWpUnLoadCommand().
| void Creature::LoadTemplateImmunities | ( | int32 | creatureImmunitiesId | ) |
Definition at line 2446 of file Creature.cpp.
References _creatureImmunitiesId, Unit::ApplySpellImmune(), EnumFlag< T >::AsUnderlyingType(), CreatureImmunities::Aura, CreatureImmunities::DispelType, CreatureImmunities::Effect, SpellMgr::GetCreatureImmunities(), IMMUNITY_DISPEL, IMMUNITY_EFFECT, IMMUNITY_MECHANIC, IMMUNITY_OTHER, IMMUNITY_SCHOOL, IMMUNITY_STATE, CreatureImmunities::Mechanic, None, CreatureImmunities::Other, and CreatureImmunities::School.
Referenced by Pet::LoadPetFromDB(), and UpdateEntry().
| void Creature::LowerPlayerDamageReq | ( | uint64 | unDamage | ) |
Definition at line 1707 of file Creature.cpp.
References m_PlayerDamageReq.
Referenced by Unit::DealDamage(), boss_ichoron::DoAction(), boss_valithria_dreamwalker::HealReceived(), boss_drakkari_colossus::JustSummoned(), boss_xt002::SetData(), and npc_phase_hunter::npc_phase_hunterAI::UpdateAI().
| void Creature::Motion_Initialize | ( | ) |
Definition at line 1087 of file Creature.cpp.
References CreatureGroup::FormationReset(), CreatureGroup::GetLeader(), Unit::GetMotionMaster(), MotionMaster::Initialize(), CreatureGroup::IsFormed(), m_formation, and MotionMaster::MoveIdle().
Referenced by AIM_Create(), and setDeathState().
|
inline |
Definition at line 470 of file Creature.h.
| void Creature::OverrideSparringHealthPct | ( | std::vector< float > const & | healthPct | ) |
Definition at line 1759 of file Creature.cpp.
References _sparringHealthPct, and Trinity::Containers::SelectRandomContainerElement().
|
private |
Definition at line 3723 of file Creature.cpp.
References _spellFocusInfo, Unit::CannotTurn(), GetDebugInfo(), ObjectAccessor::GetWorldObject(), HasSpellFocus(), Unit::m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), Unit::SetFacingTo(), Unit::SetFacingToObject(), BaseEntity::SetUpdateFieldValue(), UF::UnitData::Target, and TC_LOG_ERROR.
Referenced by ReleaseSpellFocus(), and Update().
|
protected |
Definition at line 950 of file Creature.cpp.
References CREATURE_REGEN_INTERVAL, Unit::GetCharmerOrOwnerGUID(), Unit::GetMaxPower(), Unit::GetPower(), Unit::GetTotalAuraModifierByMiscValue(), Unit::GetTotalAuraMultiplierByMiscValue(), Unit::HasUnitFlag2(), IN_MILLISECONDS, Unit::IsHunterPet(), Unit::IsInCombat(), Unit::ModifyPower(), PET_FOCUS_REGEN_INTERVAL, POWER_ENERGY, POWER_FOCUS, POWER_MANA, RATE_POWER_FOCUS, RATE_POWER_MANA, SPELL_AURA_MOD_POWER_REGEN, SPELL_AURA_MOD_POWER_REGEN_PERCENT, sWorld, and UNIT_FLAG2_REGENERATE_POWER.
Referenced by Pet::Update(), and Update().
|
protected |
Definition at line 1003 of file Creature.cpp.
References CanRegenerateHealth(), CREATURE_REGEN_INTERVAL, Unit::GetCharmerOrOwnerGUID(), Unit::GetHealth(), Unit::GetMaxHealth(), Unit::GetTotalAuraModifier(), Unit::GetTotalAuraMultiplier(), IN_MILLISECONDS, Unit::IsPolymorphed(), Unit::ModifyHealth(), RATE_HEALTH, SPELL_AURA_MOD_HEALTH_REGEN_PERCENT, SPELL_AURA_MOD_REGEN, and sWorld.
Referenced by Update().
| void Creature::ReleaseSpellFocus | ( | Spell const * | focusSpell = nullptr, |
| bool | withDelay = true |
||
| ) |
Definition at line 3700 of file Creature.cpp.
References _spellFocusInfo, Unit::CannotTurn(), Unit::ClearUnitState(), Unit::IsPet(), ReacquireSpellFocusTarget(), Spell::Spell(), SPELL_ATTR5_AI_DOESNT_FACE_TARGET, and UNIT_STATE_FOCUSING.
Referenced by setDeathState().
| void Creature::RemoveCorpse | ( | bool | setSpawnTime = true, |
| bool | destroyForNearbyPlayers = true |
||
| ) |
Definition at line 430 of file Creature.cpp.
References WorldObject::AddObjectToRemoveList(), AI(), CORPSE, Map::CreatureRelocation(), DEAD, Unit::getDeathState(), Unit::GetDirectTransport(), GameTime::GetGameTime(), WorldObject::GetMap(), Position::GetOrientation(), Position::GetPositionWithOffset(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetRespawnPosition(), Unit::IsFalling(), IsSpawnedOnTransport(), m_corpseRemoveTime, m_loot, WorldObject::m_movementInfo, Position::m_positionZ, m_respawnCompatibilityMode, m_respawnDelay, m_respawnTime, MovementInfo::TransportInfo::pos, Unit::RemoveAllAuras(), SaveRespawnTime(), setDeathState(), SetHomePosition(), Unit::StopMoving(), Unit::ToTempSummon(), MovementInfo::transport, WorldObject::UpdateAllowedPositionZ(), and WorldObject::UpdateObjectVisibilityOnDestroy().
Referenced by ForcedDespawn(), Respawn(), and Update().
|
overridevirtual |
Reimplemented from BaseEntity.
Reimplemented in TempSummon, Minion, and Pet.
Definition at line 364 of file Creature.cpp.
References WorldObject::GetMap(), Map::GetObjectsStore(), WorldObject::GetZoneScript(), BaseEntity::IsInWorld(), m_formation, m_spawnId, Trinity::Containers::MultimapErasePair(), ZoneScript::OnCreatureRemove(), TypeListContainer< UnderlyingContainer, Types >::Remove(), FormationMgr::RemoveCreatureFromGroup(), and Unit::RemoveFromWorld().
Referenced by TempSummon::RemoveFromWorld(), and npc_nature_bomb::npc_nature_bombAI::UpdateAI().
|
inline |
Definition at line 329 of file Creature.h.
Referenced by boss_flame_leviathan::boss_flame_leviathanAI::DoAction(), boss_epoch::boss_epochAI::InitializeAI(), boss_meathook::boss_meathookAI::InitializeAI(), boss_salramm::boss_salrammAI::InitializeAI(), boss_freya::boss_freyaAI::JustEngagedWith(), and boss_shattered_executioner::SetData().
|
inline |
Definition at line 330 of file Creature.h.
References LOOT_MODE_DEFAULT.
Referenced by BossAI::_Reset(), Creature(), boss_sacrolash::DoAction(), boss_alythess::DoAction(), boss_sartharion::FetchDragons(), boss_jaraxxus::Reset(), boss_four_horsemen_baseAI::Reset(), and boss_yogg_saron::boss_yogg_saronAI::Reset().
|
inline |
Definition at line 310 of file Creature.h.
Referenced by Respawn().
|
inline |
Definition at line 423 of file Creature.h.
References Unit::GetHealth().
Referenced by CreatureAI::_EnterEvadeMode(), boss_yogg_saron::boss_yogg_saronAI::DoAction(), npc_sparring_partner_exiles_reach::EnterEvadeMode(), npc_sparring_partner_combat_training::EnterEvadeMode(), npc_pet_pri_lightwell::EnterEvadeMode(), ScriptedAI::ForceCombatStop(), boss_vaelastrasz::JustEngagedWith(), boss_murmur::Reset(), setDeathState(), boss_buru::UpdateAI(), and UpdateLevelDependantStats().
| void Creature::Respawn | ( | bool | force = false | ) |
Definition at line 2325 of file Creature.cpp.
References _aggroGracePeriodExpired, AI(), CORPSE, CreatureModel::CreatureDisplayID, DEAD, GetCreatureData(), GetCreatureTemplate(), Unit::getDeathState(), Object::GetEntry(), BaseEntity::GetGUID(), WorldObject::GetMap(), Unit::GetMotionMaster(), WorldObject::GetName(), Unit::GetNativeDisplayId(), Unit::GetNativeDisplayScale(), Map::GetPoolData(), GetSpawnId(), MotionMaster::InitializeDefault(), InitializeReactState(), Unit::IsAlive(), JUST_DIED, JUST_RESPAWNED, m_loot, m_originalEntry, m_respawnCompatibilityMode, m_respawnTime, m_spawnId, m_triggerJustAppeared, SpawnData::poolId, RemoveCorpse(), ResetPickPocketRefillTimer(), Map::Respawn(), SelectLevel(), setDeathState(), SetDisplayId(), sObjectMgr, SPAWN_TYPE_CREATURE, sPoolMgr, TC_LOG_DEBUG, Position::ToString(), UpdateEntry(), Unit::UpdateObjectVisibility(), and WorldObject::UpdateObjectVisibilityOnDestroy().
Referenced by npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetWanderDistanceCommand(), misc_commandscript::HandleRespawnCommand(), hyjalAI::JustDied(), TrashRespawnWorker::operator()(), Trinity::RespawnDo::operator()(), instance_violet_hold::instance_violet_hold_InstanceMapScript::ResetBossEncounter(), boss_twinemperorsAI::RespawnNearbyBugsAndGetOne(), Battlefield::ShowNpc(), Update(), EscortAI::UpdateAI(), boss_freya::boss_freyaAI::UpdateAI(), InstanceScript::UpdateMinionState(), and npc_demolitionist_legoso::npc_demolitionist_legosoAI::WaypointReached().
| void Creature::SaveRespawnTime | ( | uint32 | forceDelay = 0 | ) |
Definition at line 2689 of file Creature.cpp.
References Trinity::ComputeGridCoord(), SpawnMetadata::dbData, Object::GetEntry(), GameTime::GetGameTime(), GetHomePosition(), WorldObject::GetMap(), Position::GetPositionX(), Position::GetPositionY(), Unit::IsSummon(), m_creatureData, m_respawnCompatibilityMode, m_respawnTime, m_spawnId, RespawnInfo::respawnTime, Map::SaveRespawnInfoDB(), Map::SaveRespawnTime(), SPAWN_TYPE_CREATURE, RespawnInfo::spawnId, and RespawnInfo::type.
Referenced by ForcedDespawn(), RemoveCorpse(), setDeathState(), EscortAI::Start(), FollowerAI::StartFollow(), and Update().
| void Creature::SaveToDB | ( | ) |
Definition at line 1446 of file Creature.cpp.
References WorldLocation::GetMapId(), WorldObject::GetTransport(), m_spawnId, SaveToDB(), sObjectMgr, SpawnData::spawnDifficulties, and TC_LOG_ERROR.
Referenced by npc_commandscript::HandleNpcAddCommand(), npc_commandscript::HandleNpcSetLevelCommand(), npc_commandscript::HandleNpcSetModelCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetPhaseCommand(), npc_commandscript::HandleNpcSetPhaseGroup(), and SaveToDB().
|
virtual |
Reimplemented in TempSummon, and Pet.
Definition at line 1465 of file Creature.cpp.
References ASSERT, CreatureData::curHealthPct, CreatureData::currentwaypoint, DEFAULT_PLAYER_DISPLAY_SCALE, CreatureData::display, CreatureData::equipmentId, GetCreatureTemplate(), GetCurrentEquipmentId(), WorldObject::GetDBPhase(), GetDefaultMovementType(), Object::GetEntry(), Unit::GetHealthPct(), WorldLocation::GetMapId(), Unit::GetNativeDisplayId(), Unit::GetNpcFlags(), Unit::GetNpcFlags2(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetStringId(), WorldObject::GetTransOffsetO(), WorldObject::GetTransOffsetX(), WorldObject::GetTransOffsetY(), WorldObject::GetTransOffsetZ(), WorldObject::GetTransport(), SpawnData::id, IDLE_MOTION_TYPE, m_respawnDelay, m_spawnId, Unit::m_unitData, m_wanderDistance, SpawnMetadata::mapId, CreatureTemplate::Models, CreatureData::movementType, CreatureTemplate::npcflag, CreatureData::npcflag, SpawnData::phaseGroup, SpawnData::phaseId, SpawnData::phaseUseFlags, RANDOM_MOTION_TYPE, CreatureTemplate::RegenHealth, Position::Relocate(), SpawnData::scriptId, PreparedStatementBase::setFloat(), PreparedStatementBase::setInt32(), PreparedStatementBase::setNull(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), sObjectMgr, Spawn, SpawnData::spawnDifficulties, SpawnMetadata::spawnGroupData, SpawnMetadata::spawnId, SpawnData::spawnPoint, SpawnData::spawntimesecs, SpawnData::terrainSwapMap, CreatureTemplate::unit_flags, CreatureData::unit_flags, CreatureTemplate::unit_flags2, CreatureData::unit_flags2, CreatureTemplate::unit_flags3, CreatureData::unit_flags3, CreatureData::wander_distance, WORLD_DEL_CREATURE, WORLD_INS_CREATURE, and WorldDatabase.
| void Creature::SearchFormation | ( | ) |
Definition at line 390 of file Creature.cpp.
References FormationMgr::AddCreatureToGroup(), GetSpawnId(), Unit::IsSummon(), and sFormationMgr.
Referenced by AddToWorld(), npc_commandscript::HandleNpcAddFormationCommand(), and instance_stonecore::instance_stonecore_InstanceScript::OnCreatureCreate().
| void Creature::SelectLevel | ( | ) |
Definition at line 1611 of file Creature.cpp.
References ApplyLevelScaling(), Unit::m_unitData, Unit::SetLevel(), STRONG_MAX_LEVEL, and UpdateLevelDependantStats().
Referenced by Respawn(), and UpdateEntry().
| Unit * Creature::SelectNearestHostileUnitInAggroRange | ( | bool | useLOS = false, |
| bool | ignoreCivilians = false |
||
| ) | const |
Definition at line 3572 of file Creature.cpp.
References MAX_AGGRO_RADIUS, and Cell::VisitGridObjects().
Referenced by PetAI::SelectNextTarget().
| Unit * Creature::SelectNearestTarget | ( | float | dist = 0, |
| bool | playerOnly = false |
||
| ) | const |
Definition at line 2516 of file Creature.cpp.
References MAX_VISIBILITY_DISTANCE, and Cell::VisitAllObjects().
Referenced by SmartScript::GetTargets(), npc_firelands_magmakin::IsSummonedBy(), and boss_twinemperorsAI::TryActivateAfterTTelep().
| Unit * Creature::SelectNearestTargetInAttackDistance | ( | float | dist = 0 | ) | const |
Definition at line 2529 of file Creature.cpp.
References ATTACK_DISTANCE, BaseEntity::GetGUID(), MAX_VISIBILITY_DISTANCE, TC_LOG_ERROR, Position::ToString(), and Cell::VisitAllObjects().
| Unit * Creature::SelectVictim | ( | ) |
Definition at line 1240 of file Creature.cpp.
References _IsTargetAcceptable(), AI(), CanCreatureAttack(), Unit::CanHaveThreatList(), CreatureAI::EnterEvadeMode(), Unit::getAttackerForHelper(), Unit::GetAuraEffectsByType(), ThreatManager::GetCurrentVictim(), WorldObject::GetOwner(), Unit::GetThreatManager(), Unit::GetVehicle(), HasReactState(), HasSpellFocus(), Unit::IsSummon(), NoHostiles, Other, REACT_PASSIVE, Unit::SetInFront(), SPELL_AURA_MOD_INVISIBILITY, and Unit::ToTempSummon().
Referenced by boss_drakkari_colossus::DoAction(), boss_blood_queen_lana_thel::MovementInform(), npc_the_lich_king_escape_hor::npc_the_lich_king_escape_horAI::SelectVictim(), gunship_npc_AI::SelectVictim(), boss_drakkari_elemental::UpdateAI(), npc_rimefang_icc::UpdateAI(), boss_urom::UpdateAI(), and CreatureAI::UpdateVictim().
| void Creature::SelectWildBattlePetLevel | ( | ) |
Definition at line 1670 of file Creature.cpp.
References WorldObject::GetZoneId(), Unit::IsWildBattlePet(), sAreaTableStore, Unit::SetWildBattlePetLevel(), urand(), and WILD_BATTLE_PET_DEFAULT_LEVEL.
Referenced by LoadFromDB().
| void Creature::SendAIReaction | ( | AiReaction | reactionType | ) |
Definition at line 2544 of file Creature.cpp.
References BaseEntity::GetGUID(), WorldPackets::Combat::AIReaction::Reaction, WorldObject::SendMessageToSet(), TC_LOG_DEBUG, WorldPackets::Combat::AIReaction::UnitGUID, and WorldPackets::Combat::AIReaction::Write().
Referenced by Unit::Attack(), and CreatureAI::TriggerAlert().
| void Creature::SendZoneUnderAttackMessage | ( | Player * | attacker | ) |
Send a message to LocalDefense channel for players opposition team in the zone.
Definition at line 2837 of file Creature.cpp.
References ALLIANCE, WorldPackets::Misc::ZoneUnderAttack::AreaID, WorldObject::GetAreaId(), WorldPackets::Packet::GetRawPacket(), Player::GetTeam(), HORDE, sWorld, and WorldPackets::Misc::ZoneUnderAttack::Write().
Referenced by GuardAI::JustDied().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 1967 of file Creature.cpp.
References OFF_ATTACK, Unit::SetCanDualWield(), and Unit::UpdateDamagePhysical().
Referenced by spell_bjarngrim_stance_dummy::AfterApply(), spell_bjarngrim_stance_dummy::AfterRemove(), boss_malchezaar::boss_malchezaarAI::ClearWeapons(), boss_twin_baseAI::EnableDualWield(), boss_baleroc::EquipWeapon(), InitEntry(), boss_illidan_stormrage::JustEngagedWith(), boss_halazzi::Reset(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::Reset(), boss_erekem::Reset(), boss_leotheras_the_blind::Reset(), npc_twisted_visage::SetData(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), npc_sinster_reflection::npc_sinster_reflectionAI::UpdateAI(), boss_erekem::UpdateAI(), and UpdateEntry().
|
inline |
Definition at line 458 of file Creature.h.
References CREATURE_STATIC_FLAG_NO_XP.
|
inline |
Definition at line 304 of file Creature.h.
References CREATURE_STATIC_FLAG_NO_LOOT.
| void Creature::SetCanMelee | ( | bool | canMelee, |
| bool | fleeFromMelee = false |
||
| ) |
Definition at line 2850 of file Creature.cpp.
References _staticFlags, CreatureStaticFlagsHolder::ApplyFlag(), CHASE_MOTION_TYPE, CREATURE_STATIC_FLAG_4_NO_MELEE_APPROACH, CREATURE_STATIC_FLAG_NO_MELEE_FLEE, FLEEING_MOTION_TYPE, MotionMaster::GetCurrentMovementGenerator(), Unit::GetMotionMaster(), MovementGenerator::GetMovementGeneratorType(), Unit::GetVictim(), HasFlag(), Unit::HasUnitFlag(), MotionMaster::Remove(), StartDefaultCombatMovement(), and UNIT_FLAG_FLEEING.
Referenced by boss_flame_leviathan::boss_flame_leviathanAI::boss_flame_leviathanAI(), boss_four_horsemen_lady::boss_four_horsemen_lady(), boss_four_horsemen_sir::boss_four_horsemen_sir(), boss_lady_malande::boss_lady_malande(), boss_prince_keleseth_icc::boss_prince_keleseth_icc(), boss_bronjahm::DamageTaken(), boss_earthrager_ptah::DamageTaken(), boss_lady_deathwhisper::DamageTaken(), boss_black_knight::boss_black_knightAI::DamageTaken(), boss_viscidus::boss_viscidusAI::DamageTaken(), npc_vrykul_skeleton::DamageTaken(), spell_rotface_unstable_ooze_explosion_suicide::DespawnSelf(), npc_snobold_vassal::DoAction(), boss_jormungarAI::Emerge(), boss_felmyst::EnterPhase(), boss_sapphiron::EnterPhaseGround(), boss_jormungarAI::ExecuteEvent(), npc_anduin_wrynn_sylvanas::JustAppeared(), npc_anduin_wrynn_jaina::JustAppeared(), boss_lady_deathwhisper::JustEngagedWith(), npc_snobold_vassal::MountOnBoss(), boss_svala::MoveInLineOfSight(), npc_belnistrasz::npc_belnistraszAI::MovementInform(), npc_darkfallen_archmage::npc_darkfallen_archmage(), npc_darkfallen_noble::npc_darkfallen_noble(), npc_firelands_magmakin::npc_firelands_magmakin(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::npc_sc_millhouse_manastormAI(), npc_thorim_trashAI::npc_thorim_trashAI(), npc_toc_hunter::npc_toc_hunter(), SmartScript::ProcessAction(), boss_shade_of_aran::boss_aranAI::Reset(), boss_kagani_nightstrike::Reset(), boss_earthrager_ptah::Reset(), boss_onyxia::Reset(), npc_belnistrasz::npc_belnistraszAI::Reset(), boss_black_knight::boss_black_knightAI::Reset(), boss_anubarak_trial::Reset(), boss_jormungarAI::Reset(), boss_bronjahm::Reset(), boss_anubrekhan::Reset(), boss_svala::Reset(), npc_wild_wyrm::Reset(), npc_zombie_chow::SetData(), boss_earthrager_ptah::SetData(), boss_malygos::SetPhase(), npc_wild_wyrm::SpellHit(), boss_jormungarAI::Submerge(), boss_shade_of_aran::boss_aranAI::UpdateAI(), boss_kagani_nightstrike::UpdateAI(), boss_onyxia::UpdateAI(), boss_viscidus::boss_viscidusAI::UpdateAI(), boss_anubarak_trial::UpdateAI(), boss_anubrekhan::UpdateAI(), boss_sapphiron::UpdateAI(), npc_vrykul_skeleton::UpdateAI(), boss_svala::UpdateAI(), and boss_black_knight::boss_black_knightAI::UpdateAI().
|
inline |
Definition at line 157 of file Creature.h.
References CREATURE_STATIC_FLAG_3_CANNOT_PENETRATE_WATER.
| void Creature::SetCannotReachTarget | ( | bool | cannotReach | ) |
Definition at line 3504 of file Creature.cpp.
References GetDebugInfo(), m_cannotReachTarget, m_cannotReachTimer, and TC_LOG_DEBUG.
Referenced by CreatureAI::_EnterEvadeMode(), ScriptedAI::ForceCombatStop(), setDeathState(), and ChaseMovementGenerator::Update().
|
inline |
Definition at line 118 of file Creature.h.
Referenced by ForcedDespawn(), npc_firesworn::InitializeAI(), boss_majordomo::InitializeAI(), npc_son_of_flame::InitializeAI(), npc_tito::InitializeAI(), npc_shadow_image::InitializeAI(), npc_void_sentinel::InitializeAI(), npc_void_spawn::InitializeAI(), ShadowswordBaseAI::InitializeAI(), npc_soaring_eagle::InitializeAI(), MalacrassCompanionBaseAI::InitializeAI(), npc_amanishi_hatcher::InitializeAI(), npc_dragonhawk_egg::InitializeAI(), npc_amani_dragonhawk_hatchling::InitializeAI(), npc_ancient_wisp::InitializeAI(), npc_hive_zara_larva::InitializeAI(), npc_hive_zara_swarmer::InitializeAI(), npc_buru_egg::InitializeAI(), npc_fallout_slime::InitializeAI(), npc_malformed_ooze::InitializeAI(), npc_vrykul_skeleton::InitializeAI(), npc_stolen_soul::InitializeAI(), npc_enchanted_elemental::InitializeAI(), npc_steamrigger_mechanic::InitializeAI(), boss_ahune::InitializeAI(), npc_frozen_core::InitializeAI(), OgreBaseAI::InitializeAI(), npc_shadowmoon_channeler::InitializeAI(), npc_hellfire_channeler::InitializeAI(), npc_warp_splinter_sapling::InitializeAI(), npc_ember_of_alar::InitializeAI(), npc_solarium_priest::InitializeAI(), npc_solarium_agent::InitializeAI(), npc_phoenix_egg_the_eye::InitializeAI(), npc_raging_flames::InitializeAI(), npc_akilzon_amani_kidnapper::IsSummonedBy(), npc_lockmaw_frenzied_crocolisk::JustAppeared(), npc_iron_sludge::JustAppeared(), boss_kologarn::boss_kologarnAI::JustDied(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), FrostwingGauntletRespawner::operator()(), npc_swarm_scarab::Reset(), npc_nerubian_burrower::Reset(), npc_dream_cloud::Reset(), npc_naga_distiller::Reset(), boss_harbinger_skyriss_illusion::Reset(), npc_nether_wraith::Reset(), boss_sacrolash::UpdateAI(), and boss_alythess::UpdateAI().
|
inline |
Definition at line 264 of file Creature.h.
Referenced by npc_unworthy_initiate::npc_unworthy_initiateAI::npc_unworthy_initiateAI().
|
overridevirtual |
Reimplemented from Unit.
Reimplemented in Minion, and Pet.
Definition at line 2209 of file Creature.cpp.
References _staticFlags, ALIVE, Map::ApplyDynamicModeRespawnScaling(), ObjectMgr::ChooseCreatureFlags(), Unit::ClearUnitState(), CONFIG_RESPAWN_DYNAMICMODE, CORPSE, CREATURE_FLAG_EXTRA_WORLDEVENT, creatureData, CreatureTemplate::dmgschool, DoNotReacquireSpellFocusTarget(), ObjectGuid::Empty, CreatureTemplate::flags_extra, CreatureGroup::FormationReset(), GetCreatureData(), GetCreatureTemplate(), GameTime::GetGameTime(), CreatureGroup::GetLeader(), WorldObject::GetMap(), Unit::GetMotionMaster(), WorldObject::GetZoneScript(), CreatureGroup::HasAliveMembers(), Unit::HasUnitState(), IsDungeonBoss(), Unit::IsFlying(), Unit::IsHovering(), Unit::IsPet(), Unit::IsUnderWater(), JUST_DIED, JUST_RESPAWNED, LoadCreaturesAddon(), LoadCreaturesSparringHealth(), m_corpseDelay, m_corpseRemoveTime, m_formation, m_respawnCompatibilityMode, m_respawnDelay, m_respawnTime, m_spawnId, Motion_Initialize(), MotionMaster::MoveFall(), ReleaseSpellFocus(), Unit::RemoveUnitFlag(), Object::ReplaceAllDynamicFlags(), Unit::ReplaceAllNpcFlags(), Unit::ReplaceAllNpcFlags2(), Unit::ReplaceAllUnitFlags(), Unit::ReplaceAllUnitFlags2(), Unit::ReplaceAllUnitFlags3(), ResetPlayerDamageReq(), SaveRespawnTime(), WorldObject::setActive(), SetCannotReachTarget(), Unit::setDeathState(), Unit::SetDisableGravity(), Unit::SetFullHealth(), Unit::SetHover(), SetMeleeDamageSchool(), Unit::SetMountDisplayId(), SetNoSearchAssistance(), SetSpawnHealth(), SetTappedBy(), SetTarget(), Unit::SetVignette(), sGameEventMgr, sWorld, UNIT_DYNFLAG_NONE, UNIT_FLAG_IN_COMBAT, UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_NONE, UNIT_STATE_ALL_ERASABLE, UNIT_STATE_ROOT, UpdateMovementCapabilities(), and CreatureTemplate::VignetteID.
Referenced by ForcedDespawn(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetWanderDistanceCommand(), boss_twinemperorsAI::JustDied(), RemoveCorpse(), Respawn(), Minion::setDeathState(), Pet::setDeathState(), npc_argent_captainAI::SpellHit(), npc_a_special_surprise::npc_a_special_surpriseAI::UpdateAI(), and npc_injured_patient::npc_injured_patientAI::UpdateAI().
Definition at line 3515 of file Creature.cpp.
References _defaultMountDisplayIdOverride, and sCreatureDisplayInfoStore.
|
inline |
Definition at line 170 of file Creature.h.
Referenced by npc_spinestalker::DoAction(), npc_rimefang_icc::DoAction(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetWanderDistanceCommand(), wp_commandscript::HandleWpLoadCommand(), and wp_commandscript::HandleWpUnLoadCommand().
|
inline |
Definition at line 420 of file Creature.h.
Referenced by hyjalAI::SummonCreature().
| void Creature::SetDisplayFromModel | ( | uint32 | modelIdx | ) |
Definition at line 3614 of file Creature.cpp.
References GetCreatureTemplate(), and SetDisplayId().
Referenced by boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::boss_flame_leviathan_seatAI(), boss_felmyst::InitializeAI(), npc_dark_fiend::InitializeAI(), npc_icicle::InitializeAI(), npc_flash_freeze_init::InitializeAI(), npc_flash_freeze_combat::InitializeAI(), boss_anubarak_trial::JustSummoned(), npc_eye_of_acherus::npc_eye_of_acherus(), npc_flame_bunny::npc_flame_bunny(), npc_headless_horseman_head::npc_headless_horseman_head(), npc_pit_of_saron_icicle::npc_pit_of_saron_icicle(), npc_pure_energy::npc_pure_energy(), npc_quel_delar_sword::npc_quel_delar_swordAI::npc_quel_delar_swordAI(), npc_voljin_zulaman::npc_voljin_zulamanAI::npc_voljin_zulamanAI(), npc_sironas::npc_sironasAI::Reset(), npc_amanitar_mushrooms::Reset(), npc_frost_sphere::Reset(), and npc_chaotic_rift::Reset().
|
overridevirtual |
Reimplemented from Unit.
Reimplemented in Pet.
Definition at line 3603 of file Creature.cpp.
References DEFAULT_PLAYER_COMBAT_REACH, Unit::GetDisplayScale(), Object::GetObjectScale(), Unit::IsPet(), Unit::SetBoundingRadius(), Unit::SetCombatReach(), Unit::SetDisplayId(), and sObjectMgr.
Referenced by boss_black_knight::boss_black_knightAI::DamageTaken(), boss_jormungarAI::Emerge(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), npc_commandscript::HandleNpcSetModelCommand(), InitEntry(), boss_felmyst::InitializeAI(), npc_troll_volunteer::InitializeAI(), npc_stolen_soul::InitializeAI(), Totem::InitStats(), Guardian::InitStatsForLevel(), npc_chains_of_woe::npc_chains_of_woeAI::IsSummonedBy(), npc_silverpine_forsaken_trooper_fenris_isle::IsSummonedBy(), npc_baleful_beaming_eye::JustAppeared(), boss_alar::JustDied(), boss_ymiron::JustSummoned(), npc_cw_area_trigger::npc_cw_area_triggerAI::npc_cw_area_triggerAI(), npc_flame_tsunami::npc_flame_tsunami(), npc_giant_infernal::npc_giant_infernalAI::npc_giant_infernalAI(), npc_grizzlemaw_cw_trigger::npc_grizzlemaw_cw_triggerAI::npc_grizzlemaw_cw_triggerAI(), npc_scorch_ground::npc_scorch_groundAI::npc_scorch_groundAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::npc_the_biggest_treeAI(), conversation_kings_rest_intro::OnUpdate(), SmartScript::ProcessAction(), npc_thrall_old_hillsbrad::Reset(), boss_black_knight::boss_black_knightAI::Reset(), boss_devourer_of_souls::Reset(), npc_infernal_attacker::npc_infernal_attackerAI::Reset(), Respawn(), SetDisplayFromModel(), Pet::SetDisplayId(), Unit::SetMinion(), netherspite_infernal::netherspite_infernalAI::SpellHit(), boss_valithria_dreamwalker::SpellHit(), npc_infernal_attacker::npc_infernal_attackerAI::SpellHit(), Spell::SummonGuardian(), boss_malchezaar::boss_malchezaarAI::SummonInfernal(), npc_kings_rest_shadow_of_zul::TriggerSerpentBossEvent(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), npc_egg_pile::npc_egg_pileAI::UpdateAI(), boss_tharon_ja::UpdateAI(), boss_devourer_of_souls::UpdateAI(), boss_magus_telestra::UpdateAI(), boss_alar::UpdateAI(), Scripts::QuelThalas::MurderRow::KystiaManaheart::boss_kystia_manaheart_nibbles::UpdateAI(), WaypointMgr::VisualizePath(), and npc_thrall_old_hillsbrad::WaypointReached().
| void Creature::SetDontClearTapListOnEvade | ( | bool | dontClear | ) |
Definition at line 1402 of file Creature.cpp.
References m_dontClearTapListOnEvade, and m_spawnId.
| void Creature::SetFloating | ( | bool | floating | ) |
Definition at line 2971 of file Creature.cpp.
References _staticFlags, CreatureStaticFlagsHolder::ApplyFlag(), CREATURE_STATIC_FLAG_FLOATING, and UpdateFloatingMovementFlags().
Referenced by spell_heartsbane_triad_claim_the_iris::HandleHitTarget(), and conversation_waycrest_manor_waycrests_defeated::OnUpdate().
|
inline |
Definition at line 415 of file Creature.h.
Referenced by CreatureGroup::AddMember(), and CreatureGroup::RemoveMember().
| void Creature::SetGossipMenuId | ( | uint32 | gossipMenuId | ) |
Definition at line 3932 of file Creature.cpp.
References _gossipMenuId.
Referenced by Scripts::Kalimdor::Durotar::npc_darkspear_jailor::DoAction(), Scripts::Kalimdor::Durotar::npc_darkspear_jailor::JustAppeared(), Scripts::Kalimdor::Durotar::npc_voljin_garrosh_vision::JustAppeared(), Scripts::Kalimdor::Durotar::npc_voljin_thrall_vision::JustAppeared(), Scripts::Kalimdor::Durotar::npc_darkspear_jailor::OnGossipSelect(), npc_andorov::UpdateAI(), Scripts::Kalimdor::Durotar::npc_voljin_garrosh_vision::UpdateAI(), and Scripts::Kalimdor::Durotar::npc_voljin_thrall_vision::UpdateAI().
|
inline |
Definition at line 394 of file Creature.h.
Referenced by npc_announcer_toc5::npc_announcer_toc5AI::AggroAllPlayers(), AtEngage(), ArenaScript::CreateCreature(), Transport::CreateNPCPassenger(), npc_argent_valiant::DamageTaken(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::DestroyDoor(), boss_deathbringer_saurfang::DoAction(), npc_icc_nerubar_broodkeeper::DoAction(), npc_kelthuzad_guardian::DoAction(), boss_algalon_the_observer::DoAction(), boss_flame_leviathan::boss_flame_leviathanAI::DoAction(), hyjalAI::DoOverrun(), FormationMovementGenerator::DoUpdate(), CoolestFriendBaseAI::EnterEvadeMode(), ExitVehicle(), WorldSession::HandleBattlemasterHelloOpcode(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleQuestgiverHelloOpcode(), spell_thorim_arena_leap::spell_thorim_arena_leap_SpellScript::HandleScript(), npc_argent_captainAI::JustEngagedWith(), npc_arthas_stratholme::npc_arthas_stratholmeAI::JustEngagedWith(), npc_daegarn::JustSummoned(), npc_blessed_banner::JustSummoned(), spell_svalna_revive_champion::Land(), LoadFromDB(), boss_slabhide::boss_slabhideAI::MovementInform(), boss_anraphet::MovementInform(), boss_sindragosa::MovementInform(), npc_spinestalker::MovementInform(), npc_rimefang_icc::MovementInform(), npc_omen::MovementInform(), boss_lava_guard_gordoth::MovementInform(), npc_gunship_boarding_addAI::MovementInform(), npc_expedition_defender::MovementInform(), boss_ulgrax_the_devourer::MovementInform(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::MovementInform(), instance_blackfathom_deeps::instance_blackfathom_deeps_InstanceMapScript::OnCreatureCreate(), npc_melee_hover_disk::PassengerBoarded(), SmartAI::PausePath(), SmartScript::ProcessAction(), RemoveCorpse(), boss_prince_taldaram::RemovePrison(), boss_anraphet::Reset(), boss_sartharion::Reset(), WorldSession::SendListInventory(), gunship_npc_AI::SetData(), violet_hold_trashAI::SetData(), boss_hadronox::SetStep(), Battlefield::SpawnCreature(), boss_urom::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), Map::SummonCreature(), boss_victor_nefarius::SummonedCreatureDies(), Transport::SummonPassenger(), npc_madrigosa::UpdateAI(), npc_silverpine_skitterweb_matriarch::UpdateAI(), hyjal_trashAI::UpdateAI(), boss_corborus::boss_corborusAI::UpdateAI(), boss_hodir::UpdateAI(), boss_wrath_scryer_soccothrates::UpdateAI(), boss_warrior_toc5::boss_warrior_toc5AI::UpdateAI(), boss_mage_toc5::boss_mage_toc5AI::UpdateAI(), boss_shaman_toc5::boss_shaman_toc5AI::UpdateAI(), boss_hunter_toc5::boss_hunter_toc5AI::UpdateAI(), boss_rouge_toc5::boss_rouge_toc5AI::UpdateAI(), npc_millhouse_manastorm::UpdateIntroEvents(), TransportBase::UpdatePassengerPosition(), boss_headless_horseman::WaypointPathEnded(), and SmartAI::WaypointReached().
|
inline |
Definition at line 395 of file Creature.h.
|
inline |
Definition at line 387 of file Creature.h.
References CREATURE_STATIC_FLAG_6_ALWAYS_STAND_ON_TARGET.
|
inline |
Definition at line 353 of file Creature.h.
References CREATURE_STATIC_FLAG_2_IGNORE_FEIGN_DEATH.
Referenced by InitEntry().
|
inline |
Definition at line 355 of file Creature.h.
References CREATURE_STATIC_FLAG_2_IGNORE_SANCTUARY.
|
inlinevirtual |
|
inlineoverridevirtual |
Reimplemented from Unit.
Definition at line 187 of file Creature.h.
References REACT_PASSIVE, and Unit::SetImmuneToAll().
Referenced by npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), npc_claw::DamageTaken(), boss_leymor::DoAction(), npc_apothecary_genericAI::DoAction(), npc_stone_keeper::DoAction(), boss_sister_svalna::DoAction(), boss_malygos::DoAction(), boss_kazzara_the_hellforged::DoAction(), boss_azhiccar::DoAction(), boss_horAI::DoAction(), Spell::EffectSummonType(), boss_anduin_wrynn::HandleIntroduction(), npc_icc_nerubar_broodkeeper::InitializeAI(), npc_silverpine_forsaken_trooper_fenris_isle::IsSummonedBy(), npc_silverpine_fenris_keep_camera::IsSummonedBy(), boss_kazzara_the_hellforged::JustAppeared(), boss_leymor::JustAppeared(), boss_archaedas::JustAppeared(), npc_stone_keeper::JustAppeared(), npc_silverpine_mutant_bush_chicken::JustAppeared(), npc_silverpine_crowley_bloodfang_fenris_keep::JustAppeared(), npc_silverpine_generic_actor_fenris_keep::JustAppeared(), boss_azhiccar::JustAppeared(), npc_drustvar_frightend_woodsman_private::JustAppeared(), npc_sylvanas_windrunner_shadowcopy_riding::JustAppeared(), boss_sylvanas_windrunner::JustAppeared(), npc_blackhand_incarcerator::JustReachedHome(), boss_archaedas::JustReachedHome(), npc_stone_keeper::JustReachedHome(), boss_sister_svalna::MovementInform(), npc_icc_nerubar_broodkeeper::MovementInform(), npc_drakkari_invader::MovementInform(), boss_ulgrax_the_devourer::MovementInform(), conversation_drustvar_really_big_problem_complete::OnCreate(), instance_sunken_temple::instance_sunken_temple_InstanceMapScript::OnCreatureCreate(), boss_keristrasza::RemovePrison(), npc_earthen_hallshaper_custodian::Reset(), npc_earthen_guardian::Reset(), npc_vault_warder::Reset(), boss_nalorakk::Reset(), boss_horAI::Reset(), npc_quel_delar_sword::npc_quel_delar_swordAI::Reset(), boss_malygos::Reset(), instance_violet_hold::instance_violet_hold_InstanceMapScript::ResetBossEncounter(), npc_silverpine_agatha_fenris_isle::SetEventNoEscape(), npc_wyrmrest_defender::SpellHit(), boss_apothecary_hummel::UpdateAI(), npc_silverpine_agatha_fenris_isle::UpdateAI(), boss_mal_ganis::boss_mal_ganisAI::UpdateAI(), npc_quel_delar_sword::npc_quel_delar_swordAI::UpdateAI(), boss_anzu::UpdateAI(), boss_illidan_stormrage::UpdateAI(), npc_claw::UpdateAI(), boss_harbinger_skyriss::UpdateAI(), boss_kirtonos_the_herald::UpdateIntroEvents(), npc_millhouse_manastorm::UpdateIntroEvents(), boss_archaedas::UpdateOutOfCombatEvents(), and boss_nalorakk::UpdateOutOfCombatEvents().
|
inlinevirtual |
|
inlineoverridevirtual |
Reimplemented from Unit.
Definition at line 193 of file Creature.h.
References REACT_PASSIVE, and Unit::SetImmuneToNPC().
Referenced by CoolestFriendBaseAI::DoAction(), boss_kelidan_the_breaker::DoAction(), npc_expedition_trapper::DoAction(), npc_expedition_engineer::DoAction(), npc_pulsing_pumpkin::DoAction(), EscortAI::EnterEvadeMode(), BroggokPrisionerBaseAI::JustAppeared(), boss_kelidan_the_breaker::JustAppeared(), boss_algalon_the_observer::JustEngagedWith(), boss_kelidan_the_breaker::JustReachedHome(), npc_expedition_defender::MovementInform(), npc_akama_illidan::MovementInform(), npc_king_jokkum_vehicle::PassengerBoarded(), npc_koltira_deathweaver::Reset(), npc_wounded_coldridge_mountaineer::npc_wounded_coldridge_mountaineerAI::SpellHit(), EscortAI::Start(), npc_koltira_deathweaver::UpdateAI(), npc_madrigosa::UpdateAI(), npc_thalorien_dawnseeker::UpdateAI(), npc_andorov::UpdateAI(), boss_algalon_the_observer::UpdateAI(), boss_hodir::UpdateAI(), npc_akama_illidan::UpdateAI(), and npc_crok_scourgebane::WaypointReached().
|
inlinevirtual |
|
inlineoverridevirtual |
Reimplemented from Unit.
Definition at line 190 of file Creature.h.
References REACT_PASSIVE, and Unit::SetImmuneToPC().
Referenced by AggroAllPlayers(), boss_victor_nefarius::BeginEvent(), boss_thaddius::BeginResetEncounter(), boss_hunter_toc5::boss_hunter_toc5AI::boss_hunter_toc5AI(), boss_mage_toc5::boss_mage_toc5AI::boss_mage_toc5AI(), boss_rouge_toc5::boss_rouge_toc5AI::boss_rouge_toc5AI(), boss_shaman_toc5::boss_shaman_toc5AI::boss_shaman_toc5AI(), boss_warrior_toc5::boss_warrior_toc5AI::boss_warrior_toc5AI(), npc_sparring_partner_exiles_reach::DamageTaken(), boss_drakkari_colossus::DamageTaken(), boss_deathbringer_saurfang::DamageTaken(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::DamageTaken(), npc_magister_aledis::npc_magister_aledisAI::DamageTaken(), Scripts::Pandaria::TheWanderingIsle::npc_tushui_huojin_trainee::DamageTaken(), boss_coren_direbrew::DoAction(), npc_direbrew_antagonist::DoAction(), boss_apothecary_hummel::DoAction(), npc_apothecary_genericAI::DoAction(), boss_jaraxxus::DoAction(), boss_drakkari_colossus::DoAction(), BloodPrincesBossAI::DoAction(), npc_rimefang_icc::DoAction(), boss_kelthuzad::DoAction(), npc_kelthuzad_guardian::DoAction(), boss_algalon_the_observer::DoAction(), boss_vx_001::boss_vx_001AI::DoAction(), boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), boss_thorim::boss_thorimAI::DoAction(), boss_skadi::DoAction(), npc_frozen_core::DoAction(), AdvisorBaseAI::DoAction(), boss_lord_stormsong::DoAction(), boss_soulbound_goliath::DoAction(), boss_razorscale::DoAction(), boss_palehoof::DoAction(), PalehoofMinionsBossAI::DoAction(), boss_deathbringer_saurfang::EnterEvadeMode(), boss_algalon_the_observer::EnterEvadeMode(), boss_nightbane::boss_nightbaneAI::ExecuteEvent(), boss_gormok::ExecuteEvent(), boss_jormungarAI::ExecuteEvent(), boss_icehowl::ExecuteEvent(), npc_sparring_partner_enhanced_combat_training_shaman::HandleClassEvent(), npc_sparring_partner_enhanced_combat_training_mage::HandleClassEvent(), spell_rokmora_update_interactions::HandleScript(), AdvisorBaseAI::InitializeAI(), boss_rend_blackhand::IsSummonedBy(), npc_escape_event_trash::IsSummonedBy(), boss_rokmora::JustAppeared(), boss_strawman::JustAppeared(), boss_tinhead::JustAppeared(), boss_roar::JustAppeared(), npc_sparring_partner_exiles_reach::JustAppeared(), boss_edna::JustAppeared(), boss_lord_stormsong::JustAppeared(), boss_soulbound_goliath::JustAppeared(), Scripts::Kalimdor::Durotar::npc_captive_spitescale_scout::JustDied(), boss_deathbringer_saurfang::JustEngagedWith(), boss_ignis::boss_ignis_AI::JustSummoned(), boss_shade_of_akama::MovementInform(), boss_edna::MovementInform(), npc_rimefang_icc::MovementInform(), npc_omen::MovementInform(), boss_twin_baseAI::MovementInform(), npc_sparring_partner_exiles_reach::MovementInform(), npc_sparring_partner_combat_training::MovementInform(), npc_healthy_spore::npc_healthy_sporeAI::npc_healthy_sporeAI(), npc_omen::npc_omen(), spell_aqusirr_erupting_waters_aura::OnApply(), boss_doomrel::boss_doomrelAI::OnGossipSelect(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipSelect(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::OnGossipSelect(), instance_ulduar::instance_ulduar_InstanceMapScript::OnPlayerEnter(), spell_aqusirr_erupting_waters_aura::OnRemove(), boss_coren_direbrew::Reset(), boss_doomrel::boss_doomrelAI::Reset(), boss_pyroguard_emberseer::Reset(), npc_unworthy_initiate::npc_unworthy_initiateAI::Reset(), npc_a_special_surprise::npc_a_special_surpriseAI::Reset(), boss_headless_horseman::Reset(), Scripts::EasternKingdoms::Westfall::npc_westfall_hobo_witness::Reset(), boss_general_zarithrian::Reset(), boss_jaraxxus::Reset(), BloodPrincesBossAI::Reset(), boss_professor_putricide::Reset(), boss_the_lich_king::Reset(), boss_kelthuzad::Reset(), boss_thorim::boss_thorimAI::Reset(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::Reset(), npc_venture_co_straggler::Reset(), npc_wild_wyrm::Reset(), boss_shade_of_akama::Reset(), boss_shattered_executioner::Reset(), npc_magister_aledis::npc_magister_aledisAI::Reset(), npc_sparring_partner_enhanced_combat_training_warrior::ResetWarrior(), boss_felblood_kaelthas::SetData(), boss_pyroguard_emberseer::SpellHit(), npc_infernal_attacker::npc_infernal_attackerAI::SpellHit(), npc_sparring_partner_enhanced_combat_training_priest::SpellHit(), npc_sparring_partner_enhanced_combat_training_shaman::SpellHit(), npc_sparring_partner_enhanced_combat_training_mage::SpellHit(), npc_sparring_partner_enhanced_combat_training_warlock::SpellHit(), npc_sparring_partner_enhanced_combat_training_druid::SpellHit(), npc_stalagg::SpellHit(), npc_feugen::SpellHit(), npc_venture_co_straggler::SpellHit(), npc_wild_wyrm::SpellHit(), boss_julianne::UpdateAI(), boss_felblood_kaelthas::UpdateAI(), npc_unworthy_initiate::npc_unworthy_initiateAI::UpdateAI(), npc_a_special_surprise::npc_a_special_surpriseAI::UpdateAI(), boss_kormok::UpdateAI(), npc_thalorien_dawnseeker::UpdateAI(), npc_sparring_partner_combat_training::UpdateAI(), npc_medivh_bm::UpdateAI(), Scripts::Kalimdor::Durotar::npc_captive_spitescale_scout::UpdateAI(), boss_corborus::boss_corborusAI::UpdateAI(), boss_jaraxxus::UpdateAI(), boss_deathbringer_saurfang::UpdateAI(), boss_the_lich_king::UpdateAI(), boss_kelthuzad::UpdateAI(), boss_thaddius::UpdateAI(), boss_algalon_the_observer::UpdateAI(), npc_ethereal_beacon::UpdateAI(), boss_magtheridon::UpdateAI(), npc_warden_mellichar::UpdateAI(), npc_magister_aledis::npc_magister_aledisAI::UpdateAI(), npc_tallhorn_stag::UpdateAI(), boss_ragnaros::UpdateIntroEvents(), boss_majordomo::UpdateSpecialEvents(), boss_headless_horseman::WaypointPathEnded(), npc_coilfang_ambusher::WaypointPathEnded(), and npc_coilfang_guardian::WaypointPathEnded().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 3095 of file Creature.cpp.
References _staticFlags, CreatureStaticFlagsHolder::ApplyFlag(), CREATURE_STATIC_FLAG_3_ALLOW_INTERACTION_WHILE_IN_COMBAT, and Unit::SetInteractionAllowedInCombat().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 3089 of file Creature.cpp.
References _staticFlags, CreatureStaticFlagsHolder::ApplyFlag(), CREATURE_STATIC_FLAG_5_INTERACT_WHILE_HOSTILE, and Unit::SetInteractionAllowedWhileHostile().
|
inline |
Definition at line 498 of file Creature.h.
References UF::UnitData::InteractSpellID, Unit::m_unitData, and BaseEntity::SetUpdateFieldValue().
Referenced by InitializeInteractSpellId().
|
inline |
Definition at line 450 of file Creature.h.
Referenced by CreatureAI::_EnterEvadeMode(), and ScriptedAI::ForceCombatStop().
Definition at line 1363 of file Creature.cpp.
References m_lootId.
|
inline |
Definition at line 327 of file Creature.h.
Referenced by boss_flame_leviathan::boss_flame_leviathanAI::DoAction(), boss_sacrolash::JustEngagedWith(), and boss_alythess::JustEngagedWith().
|
inline |
Definition at line 238 of file Creature.h.
Referenced by Guardian::InitStatsForLevel(), boss_hydross_the_unstable::Reset(), setDeathState(), boss_hydross_the_unstable::UpdateAI(), and UpdateEntry().
|
inline |
Definition at line 347 of file Creature.h.
Referenced by CallAssistance(), npc_anubisath_sentinel::aqsentinelAI::CallBuddiesToAttack(), AssistDelayEvent::Execute(), and AssistanceMovementGenerator::Finalize().
|
inline |
Definition at line 348 of file Creature.h.
Referenced by DoFleeToGetAssistance(), HomeMovementGenerator< T >::DoInitialize(), and setDeathState().
|
inline |
Definition at line 465 of file Creature.h.
References CREATURE_STATIC_FLAG_3_NO_THREAT_FEEDBACK.
|
overridevirtual |
Reimplemented from Object.
Definition at line 3592 of file Creature.cpp.
References DEFAULT_PLAYER_COMBAT_REACH, Unit::GetDisplayId(), Unit::GetDisplayScale(), Unit::IsPet(), Unit::SetBoundingRadius(), Unit::SetCombatReach(), Object::SetObjectScale(), and sObjectMgr.
Referenced by npc_frost_sphere::DamageTaken(), quest_scout_chopper::HandleQuestStatusChange(), InitEntry(), Guardian::InitStatsForLevel(), npc_sironas::npc_sironasAI::JustDied(), npc_gravity_well::npc_gravity_wellAI::KilledUnit(), npc_frost_sphere::MovementInform(), npc_amanitar_mushrooms::Reset(), npc_simon_bunny::npc_simon_bunnyAI::StartGame(), npc_kalecgos::UpdateAI(), npc_giant_boar_vehicle_q55879::UpdateAI(), and WaypointMgr::VisualizePath().
|
inline |
Definition at line 427 of file Creature.h.
Referenced by CreateFromProto().
| void Creature::SetPetitioner | ( | bool | apply | ) |
Definition at line 3426 of file Creature.cpp.
References WowCS::EntityFragmentsHolder::Add(), AsUnderlyingType(), UF::VendorData::Flags, WowCS::FVendor_C, WowCS::GetRawFragmentData(), UF::OptionalUpdateFieldBase< T >::has_value(), BaseEntity::IsInWorld(), BaseEntity::m_entityFragments, BaseEntity::m_values, m_vendorData, UF::UpdateFieldHolder::ModifyValue(), Petition, WowCS::EntityFragmentsHolder::Remove(), Unit::RemoveNpcFlag(), BaseEntity::RemoveOptionalUpdateFieldValue(), BaseEntity::RemoveUpdateFieldFlagValue(), Unit::SetNpcFlag(), BaseEntity::SetUpdateFieldFlagValue(), and UNIT_NPC_FLAG_PETITIONER.
Referenced by UpdateEntry().
|
inline |
Definition at line 180 of file Creature.h.
Referenced by npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), AggroAllPlayers(), npc_announcer_toc5::npc_announcer_toc5AI::AggroAllPlayers(), boss_four_horsemen_baron::BeginFighting(), boss_four_horsemen_thane::BeginFighting(), boss_aerial_command_unit::boss_aerial_command_unitAI::boss_aerial_command_unitAI(), boss_eadric::boss_eadricAI::boss_eadricAI(), boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::boss_flame_leviathan_seatAI(), boss_garothi_worldbreaker::boss_garothi_worldbreaker(), boss_hunter_toc5::boss_hunter_toc5AI::boss_hunter_toc5AI(), boss_mage_toc5::boss_mage_toc5AI::boss_mage_toc5AI(), boss_mimiron::boss_mimironAI::boss_mimironAI(), boss_paletress::boss_paletressAI::boss_paletressAI(), boss_rouge_toc5::boss_rouge_toc5AI::boss_rouge_toc5AI(), boss_shaman_toc5::boss_shaman_toc5AI::boss_shaman_toc5AI(), boss_slabhide::boss_slabhideAI::boss_slabhideAI(), boss_twilight_halion::boss_twilight_halion(), boss_vx_001::boss_vx_001AI::boss_vx_001AI(), boss_warrior_toc5::boss_warrior_toc5AI::boss_warrior_toc5AI(), boss_ionar::CallBackSparks(), spell_the_lich_king_ice_burst_target_search::CheckTargetCount(), boss_professor_putricide::DamageTaken(), boss_the_lich_king::DamageTaken(), boss_taerar::boss_taerarAI::DamageTaken(), boss_garothi_worldbreaker::DamageTaken(), boss_amalgam_of_souls::DamageTaken(), npc_inquisitor_baleful_molten_shore::DamageTaken(), npc_felblood_kaelthas_phoenix::DamageTaken(), boss_scarlet_commander_mograine::DamageTaken(), boss_high_inquisitor_whitemane::DamageTaken(), npc_dark_fiend::DamageTaken(), boss_ayamiss::DamageTaken(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::DamageTaken(), boss_drakkari_colossus::DamageTaken(), boss_drakkari_elemental::DamageTaken(), npc_stalagg::DamageTaken(), npc_feugen::DamageTaken(), boss_algalon_the_observer::DamageTaken(), npc_feral_defender::DamageTaken(), boss_razorscale::DamageTaken(), boss_ingvar_the_plunderer::DamageTaken(), boss_ymiron::DamageTaken(), boss_essence_of_suffering::DamageTaken(), boss_essence_of_desire::DamageTaken(), AdvisorBaseAI::DamageTaken(), npc_phoenix_the_eye::DamageTaken(), boss_anduin_wrynn::DamageTaken(), boss_felblood_kaelthas::DamageTaken(), npc_vrykul_skeleton::DamageTaken(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DamageTaken(), boss_aerial_command_unit::boss_aerial_command_unitAI::DamageTaken(), Player::DisablePetControlsOnMount(), boss_xt002::DisposeHeart(), boss_maiden_of_virtue_rtk::DoAction(), boss_shade_of_medivh::DoAction(), npc_dark_fiend::DoAction(), npc_spirit_of_the_lynx::DoAction(), boss_infinite_corruptor::boss_infinite_corruptorAI::DoAction(), boss_jaraxxus::DoAction(), boss_drakkari_colossus::DoAction(), boss_professor_putricide::DoAction(), npc_spinestalker::DoAction(), npc_rimefang_icc::DoAction(), npc_argent_captainAI::DoAction(), npc_raging_spirit::DoAction(), npc_kelthuzad_guardian::DoAction(), npc_stalagg::DoAction(), npc_feugen::DoAction(), npc_azure_ring_captain::DoAction(), npc_living_constellation::DoAction(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::DoAction(), boss_aerial_command_unit::boss_aerial_command_unitAI::DoAction(), npc_sif::npc_sifAI::DoAction(), boss_ingvar_the_plunderer::DoAction(), boss_skadi::DoAction(), npc_parasitic_shadowfiend::DoAction(), BroggokPrisionerBaseAI::DoAction(), boss_kelidan_the_breaker::DoAction(), boss_anduin_wrynn::DoAction(), boss_remnant_of_a_fallen_king::DoAction(), boss_horAI::DoAction(), boss_illidan_stormrage::DoAction(), npc_akama_illidan::DoAction(), npc_maiev::DoAction(), npc_pulsing_pumpkin::DoAction(), Spell::EffectSummonPet(), boss_jormungarAI::Emerge(), boss_anduin_wrynn::EndEncounter(), boss_sapphiron::EnterPhaseGround(), TrashJumpEvent::Execute(), StandUpEvent::Execute(), VileSpiritActivateEvent::Execute(), ActivateGhouls::Execute(), boss_nightbane::boss_nightbaneAI::ExecuteEvent(), boss_randolph_moloch::ExecuteEvent(), boss_gormok::ExecuteEvent(), boss_jormungarAI::ExecuteEvent(), boss_icehowl::ExecuteEvent(), ControllerBaseAI::ExecuteEvent(), boss_ymiron::ExecuteEvent(), boss_talon_king_ikiss::ExecuteEvent(), boss_xt002::ExposeHeart(), AssistanceDistractMovementGenerator::Finalize(), boss_thorim::boss_thorimAI::FinishEncounter(), boss_anduin_wrynn::ForceAssistersToAttackRemnant(), spell_ick_explosive_barrage::HandleEffectApply(), spell_ick_explosive_barrage::HandleEffectRemove(), spell_headlong_charge_trigger::HandleHit(), spell_the_curator_rtk_overload::HandleHitTarget(), npc_commandscript::HandleNpcTameCommand(), WorldSession::HandlePetActionHelper(), spell_soulbound_goliath_burning_brush::HandleScript(), npc_enslaved_soul::HandleSoulRelease(), Battlefield::HideNpc(), npc_felblood_kaelthas_phoenix::Initialize(), npc_flame_of_ragnaros::InitializeAI(), npc_cyclone::InitializeAI(), boss_entropius::InitializeAI(), npc_void_sentinel::InitializeAI(), npc_void_spawn::InitializeAI(), npc_dark_fiend::InitializeAI(), npc_darkness::InitializeAI(), npc_singularity::InitializeAI(), ShadowswordBaseAI::InitializeAI(), npc_soaring_eagle::InitializeAI(), npc_corrupted_lightning_totem::InitializeAI(), npc_fire_bomb_zulaman::InitializeAI(), npc_amanishi_hatcher::InitializeAI(), npc_towering_infernal::InitializeAI(), npc_doomfire::InitializeAI(), npc_lockmaw_augh_add::InitializeAI(), npc_lockmaw_augh_boss::InitializeAI(), npc_hive_zara_larva::InitializeAI(), npc_buru_egg::InitializeAI(), boss_hadronox::InitializeAI(), boss_drakkari_elemental::InitializeAI(), boss_sister_svalna::InitializeAI(), npc_fallout_slime::InitializeAI(), npc_kelthuzad_shadow_fissure::InitializeAI(), boss_sapphiron::InitializeAI(), npc_sapphiron_wing_buffet::InitializeAI(), npc_malformed_ooze::InitializeAI(), boss_flame_leviathan::boss_flame_leviathanAI::InitializeAI(), npc_toasty_fire::InitializeAI(), npc_icicle::InitializeAI(), npc_snowpacked_icicle_target::InitializeAI(), npc_flash_freeze_init::InitializeAI(), npc_flash_freeze_combat::InitializeAI(), npc_frost_tomb::InitializeAI(), npc_focus_fire::InitializeAI(), boss_blackheart_the_inciter_mc_dummy::InitializeAI(), npc_void_traveler::InitializeAI(), npc_enchanted_elemental::InitializeAI(), npc_tainted_elemental::InitializeAI(), npc_toxic_sporebat::InitializeAI(), boss_the_lurker_below::InitializeAI(), npc_steamrigger_mechanic::InitializeAI(), npc_frozen_core::InitializeAI(), npc_underbog_mushroom::InitializeAI(), npc_hellfire_channeler::InitializeAI(), npc_magtheridon_room::InitializeAI(), npc_lesser_shadow_fissure::InitializeAI(), npc_wild_shadow_fissure::InitializeAI(), npc_ember_of_alar::InitializeAI(), npc_flame_patch_alar::InitializeAI(), npc_flame_strike_trigger_kael::InitializeAI(), npc_phoenix_the_eye::InitializeAI(), npc_phoenix_egg_the_eye::InitializeAI(), npc_nether_vapor::InitializeAI(), InitializeReactState(), Minion::InitStats(), Guardian::InitStats(), Puppet::InitStats(), Scripts::EasternKingdoms::Gilneas::Chapter1::npc_frightened_citizen::IsSummonedBy(), npc_amalgam_of_souls_soul_echoes_stalker::IsSummonedBy(), npc_silverpine_forsaken_trooper_fenris_isle::IsSummonedBy(), npc_silverpine_fenris_keep_camera::IsSummonedBy(), npc_akilzon_amani_kidnapper::IsSummonedBy(), npc_raging_ghoul::npc_raging_ghoulAI::IsSummonedBy(), npc_risen_witch_doctor::npc_risen_witch_doctorAI::IsSummonedBy(), npc_amalgam_of_souls_restless_soul::JustAppeared(), npc_ymiron_the_fallen_king_risen_warrior::JustAppeared(), boss_big_bad_wolf::JustAppeared(), npc_void_sentinel::JustAppeared(), npc_void_spawn::JustAppeared(), npc_dark_fiend::JustAppeared(), npc_silverpine_lord_darius_crowley_exsanguinate::JustAppeared(), npc_silverpine_packleader_ivar_bloodfang_exsanguinate::JustAppeared(), npc_silverpine_orc_sea_pup::JustAppeared(), npc_silverpine_webbed_victim::JustAppeared(), npc_silverpine_orc_sea_dog::JustAppeared(), npc_silverpine_agatha_fenris_isle::JustAppeared(), npc_silverpine_crowley_bloodfang_fenris_keep::JustAppeared(), npc_silverpine_generic_actor_fenris_keep::JustAppeared(), npc_captain_garrick_q55879::JustAppeared(), npc_towering_infernal::JustAppeared(), boss_aeonus::JustAppeared(), Scripts::Kalimdor::Durotar::npc_durotar_tiki_target::JustAppeared(), npc_azhiccar_frenzied_mite::JustAppeared(), npc_brood_of_anzu::JustAppeared(), npc_maiev::JustAppeared(), boss_broggok::JustAppeared(), BroggokPrisionerBaseAI::JustAppeared(), boss_kelidan_the_breaker::JustAppeared(), npc_ember_of_alar::JustAppeared(), boss_kaelthas::JustAppeared(), npc_phoenix_the_eye::JustAppeared(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro_hawk::JustAppeared(), npc_sylvanas_windrunner_shadowcopy_riding::JustAppeared(), npc_anduin_wrynn_empty_vessel::JustAppeared(), npc_anduin_wrynn_lost_soul::JustAppeared(), boss_remnant_of_a_fallen_king::JustAppeared(), npc_anduin_wrynn_grim_reflection::JustAppeared(), npc_anduin_wrynn_sylvanas::JustAppeared(), npc_anduin_wrynn_jaina::JustAppeared(), npc_anduin_wrynn_uther::JustAppeared(), npc_animated_gold::JustAppeared(), npc_sporecaller_zancha_musashitake::JustAppeared(), boss_freya::boss_freyaAI::JustDied(), npc_lockmaw_augh_boss::JustEngagedWith(), npc_living_mojo::JustEngagedWith(), boss_garothi_worldbreaker::JustEngagedWith(), boss_ymiron_the_fallen_king::JustEngagedWith(), boss_muru::JustEngagedWith(), boss_ayamiss::JustEngagedWith(), boss_krik_thir::JustEngagedWith(), npc_kelthuzad_minionAI::JustEngagedWith(), boss_flame_leviathan::boss_flame_leviathanAI::JustEngagedWith(), boss_alar::JustEngagedWith(), boss_headless_horseman::JustReachedHome(), boss_ayamiss::JustReachedHome(), boss_blood_queen_lana_thel::JustReachedHome(), boss_sindragosa::JustReachedHome(), boss_sister_svalna::JustReachedHome(), BroggokPrisionerBaseAI::JustReachedHome(), boss_kelidan_the_breaker::JustReachedHome(), boss_garothi_worldbreaker::JustSummoned(), boss_corborus::boss_corborusAI::JustSummoned(), boss_volazj::JustSummoned(), npc_announcer_toc5::npc_announcer_toc5AI::JustSummoned(), boss_bronjahm::JustSummoned(), boss_prince_valanar_icc::JustSummoned(), boss_professor_putricide::JustSummoned(), npc_frostwing_ymirjar_vrykul::JustSummoned(), boss_the_lich_king::JustSummoned(), boss_eregos::JustSummoned(), boss_algalon_the_observer::JustSummoned(), boss_ignis::boss_ignis_AI::JustSummoned(), boss_kologarn::boss_kologarnAI::JustSummoned(), boss_thorim::boss_thorimAI::JustSummoned(), boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::JustSummoned(), boss_sara::boss_saraAI::JustSummoned(), npc_void_sentry::JustSummoned(), npc_blessed_banner::JustSummoned(), npc_illidan_db_target::JustSummoned(), boss_anduin_wrynn::JustSummoned(), boss_remnant_of_a_fallen_king::JustSummoned(), boss_anubarak_trial::JustSummoned(), Pet::LoadPetFromDB(), boss_high_inquisitor_whitemane::MograineResurrected(), boss_doomwalker_anniversary::MovementInform(), boss_onyxia::MovementInform(), boss_ayamiss::MovementInform(), boss_high_priestess_azil::boss_high_priestess_azilAI::MovementInform(), boss_slabhide::boss_slabhideAI::MovementInform(), boss_blood_queen_lana_thel::MovementInform(), npc_valkyr_shadowguard::MovementInform(), boss_malygos::MovementInform(), boss_doomwalker::MovementInform(), boss_vazruden_the_herald::MovementInform(), boss_alar::MovementInform(), boss_saviana_ragefire::MovementInform(), boss_sindragosa::MovementInform(), npc_spinestalker::MovementInform(), npc_rimefang_icc::MovementInform(), npc_inquisitor_baleful_molten_shore::MovementInform(), ShadowswordBaseAI::MovementInform(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::MovementInform(), boss_jedoga_shadowseeker::MovementInform(), boss_icehowl::MovementInform(), boss_twin_baseAI::MovementInform(), gunship_npc_AI::MovementInform(), npc_gunship_boarding_addAI::MovementInform(), boss_razorscale::MovementInform(), npc_akama_illidan::MovementInform(), boss_warlord_kalithresh::MovementInform(), boss_hadronox::MovementInform(), boss_telash_greywing::MovementInform(), boss_armsmaster_harlan::MovementInform(), boss_flame_leviathan::boss_flame_leviathanAI::MovementInform(), npc_stalagg::myCoil(), npc_feugen::myCoil(), npc_announcer_toc5::npc_announcer_toc5AI::npc_announcer_toc5AI(), npc_arcane_overload::npc_arcane_overload(), npc_argent_soldier::npc_argent_soldierAI::npc_argent_soldierAI(), npc_caster_hover_disk::npc_caster_hover_disk(), npc_chained_spirit::npc_chained_spirit(), npc_curator_astral_flare::npc_curator_astral_flareAI::npc_curator_astral_flareAI(), npc_expedition_trapper::npc_expedition_trapper(), npc_eye_of_acherus::npc_eye_of_acherus(), npc_gunship_mage::npc_gunship_mage(), npc_healthy_spore::npc_healthy_sporeAI::npc_healthy_sporeAI(), npc_ichor_globule::npc_ichor_globule(), npc_iron_construct::npc_iron_constructAI::npc_iron_constructAI(), npc_iron_roots::npc_iron_rootsAI::npc_iron_rootsAI(), npc_living_mojo::npc_living_mojo(), npc_melee_hover_disk::npc_melee_hover_disk(), npc_mimiron_computer::npc_mimiron_computerAI::npc_mimiron_computerAI(), npc_mimiron_emergency_fire_bot::npc_mimiron_emergency_fire_botAI::npc_mimiron_emergency_fire_botAI(), npc_mimirons_inferno::npc_mimirons_infernoAI::npc_mimirons_infernoAI(), npc_pool_of_tar::npc_pool_of_tarAI::npc_pool_of_tarAI(), npc_rock_borer::npc_rock_borerAI::npc_rock_borerAI(), npc_saronite_vapors::npc_saronite_vaporsAI::npc_saronite_vaporsAI(), npc_scarlet_ghoul::npc_scarlet_ghoul(), npc_sun_beam::npc_sun_beamAI::npc_sun_beamAI(), npc_twilight_volunteer::npc_twilight_volunteer(), npc_unstable_sun_beam::npc_unstable_sun_beamAI::npc_unstable_sun_beamAI(), npc_unworthy_initiate::npc_unworthy_initiateAI::npc_unworthy_initiateAI(), npc_void_sentry::npc_void_sentry(), boss_cragmaw_the_infested::OnChannelFinished(), conversation_drustvar_really_big_problem_complete::OnCreate(), instance_hyjal::instance_mount_hyjal_InstanceMapScript::OnCreatureCreate(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::OnCreatureCreate(), instance_stonecore::instance_stonecore_InstanceScript::OnCreatureCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), instance_ulduar::instance_ulduar_InstanceMapScript::OnCreatureCreate(), npc_spirit_of_the_lynx::OnHealthDepleted(), Scripts::Pandaria::TheWanderingIsle::npc_jaomin_ro::OnHealthDepleted(), spell_soulbound_goliath_burning_brush_aura::OnRemove(), npc_fel_lord_caza_cryptic_hollow::OnSpellCast(), boss_talon_king_ikiss::OnSpellCast(), boss_the_lurker_below::OnSpellStart(), spell_priestess_alun_za_corrupt::OnStackChange(), boss_ragnaros::Reset(), npc_curator_astral_flare::npc_curator_astral_flareAI::Reset(), boss_midnight::boss_midnightAI::Reset(), npc_pulsing_pumpkin::Reset(), boss_scarlet_commander_mograine::Reset(), boss_high_inquisitor_whitemane::Reset(), npc_mortimer_moloch::Reset(), npc_redridge_subdued_canyon_ettin::Reset(), npc_silverpine_worgen_renegade::Reset(), boss_halazzi::Reset(), npc_troll_volunteer::Reset(), npc_egg_pile::npc_egg_pileAI::Reset(), boss_onyxia::Reset(), boss_buru::Reset(), boss_eye_of_cthun::eye_of_cthunAI::Reset(), boss_high_priestess_azil::boss_high_priestess_azilAI::Reset(), boss_ozruk::boss_ozrukAI::Reset(), boss_slabhide::boss_slabhideAI::Reset(), npc_amanitar_mushrooms::Reset(), boss_jedoga_shadowseeker::Reset(), boss_krik_thir::Reset(), npc_flame_tsunami::Reset(), npc_baltharus_the_warborn_clone::Reset(), npc_onyx_flamecaller::Reset(), boss_saviana_ragefire::Reset(), npc_frost_sphere::Reset(), boss_jaraxxus::Reset(), npc_legion_flame::Reset(), npc_infernal_volcano::Reset(), npc_nether_portal::Reset(), boss_northrend_beastsAI::Reset(), npc_beasts_combat_stalker::Reset(), boss_twin_baseAI::Reset(), npc_unleashed_ballAI::Reset(), boss_lich_king_toc::Reset(), npc_open_portal_target_toc::Reset(), npc_fizzlebang_toc::Reset(), boss_devourer_of_souls::Reset(), boss_horAI::Reset(), boss_krick::Reset(), boss_tyrannus::Reset(), boss_rimefang::Reset(), boss_drakkari_colossus::Reset(), npc_kinetic_bomb::Reset(), npc_dark_nucleus::Reset(), npc_zafod_boombox::Reset(), npc_vengeful_shade::Reset(), boss_professor_putricide::Reset(), npc_ice_tomb::Reset(), boss_sister_svalna::Reset(), npc_crok_scourgebane::Reset(), npc_impaling_spear::Reset(), boss_the_lich_king::Reset(), npc_raging_spirit::Reset(), npc_valkyr_shadowguard::Reset(), boss_valithria_dreamwalker::Reset(), npc_green_dragon_combat_trigger::Reset(), npc_the_lich_king_controller::Reset(), boss_four_horsemen_baseAI::Reset(), boss_gluth::Reset(), boss_gothik::Reset(), boss_heigan::Reset(), boss_kelthuzad::Reset(), boss_noth::Reset(), boss_sapphiron::Reset(), npc_sapphiron_blizzard::Reset(), boss_malygos::Reset(), boss_magus_telestra::Reset(), boss_urom::Reset(), npc_azure_ring_captain::Reset(), boss_algalon_the_observer::Reset(), npc_black_hole::Reset(), npc_feral_defender::Reset(), npc_swarming_guardian::Reset(), boss_flame_leviathan::boss_flame_leviathanAI::Reset(), boss_leviathan_mk_ii::boss_leviathan_mk_iiAI::Reset(), npc_mimiron_magnetic_core::Reset(), npc_expedition_engineer::Reset(), npc_razorscale_spawner::Reset(), npc_darkrune_watcher::Reset(), npc_darkrune_guardian::Reset(), npc_darkrune_sentinel::Reset(), npc_razorscale_devouring_flame::Reset(), boss_thorim::boss_thorimAI::Reset(), boss_xt002::Reset(), npc_scrapbot::Reset(), npc_pummeller::Reset(), npc_boombot::Reset(), boss_sara::boss_saraAI::Reset(), npc_yogg_saron_keeper::npc_yogg_saron_keeperAI::Reset(), npc_laughing_skull::npc_laughing_skullAI::Reset(), boss_ingvar_the_plunderer::Reset(), ControllerBaseAI::Reset(), boss_skadi::Reset(), npc_grauf::Reset(), boss_ymiron::Reset(), npc_venture_co_straggler::Reset(), boss_anzu::Reset(), boss_talon_king_ikiss::Reset(), boss_blackheart_the_inciter::Reset(), npc_parasitic_shadowfiend::Reset(), npc_flame_of_azzinoth::Reset(), npc_illidan_generic_fire::Reset(), boss_reliquary_of_souls::Reset(), npc_enslaved_soul::Reset(), npc_reliquary_combat_trigger::Reset(), boss_leotheras_the_blind::Reset(), boss_hungarfen::Reset(), boss_swamplord_muselek::Reset(), npc_warden_mellichar::Reset(), boss_high_astromancer_solarian::Reset(), npc_anduin_wrynn_anduin_hope::Reset(), emerald_dragonAI::Reset(), boss_thaddius::ResetEncounter(), npc_hadronox_crusherPackAI::SetData(), npc_gatewatcher_petAI::SetData(), npc_zombie_chow::SetData(), gunship_npc_AI::SetData(), npc_gunship_boarding_addAI::SetData(), boss_blackheart_the_inciter::SetData(), npc_silverpine_agatha_fenris_isle::SetEventNoEscape(), BfGraveyard::SetSpirit(), boss_hadronox::SetStep(), Battlefield::ShowNpc(), boss_attumen::boss_attumenAI::SpellHit(), boss_scarlet_commander_mograine::SpellHit(), npc_captain_garrick_q55879::SpellHit(), npc_warlord_grimaxe_q59942::SpellHit(), npc_hive_zara_swarmer::SpellHit(), npc_cult_fanatic::SpellHit(), npc_cult_adherent::SpellHit(), npc_sif::npc_sifAI::SpellHit(), npc_warp_splinter_sapling::SpellHit(), npc_sporecaller_zancha_musashitake::SpellHit(), npc_venture_co_straggler::SpellHit(), npc_pet_dk_ebon_gargoyle::SpellHit(), npc_putricide_oozeAI::SpellHitTarget(), spell_putricide_ooze_channel::StartAttack(), boss_anduin_wrynn::StartIntermission(), boss_headless_horseman::StartPhase(), boss_nightbane::boss_nightbaneAI::StartPhaseFly(), boss_jormungarAI::Submerge(), boss_victor_nefarius::SummonedCreatureDies(), boss_aqusirr::ToggleSplit(), boss_garothi_worldbreaker::UpdateAI(), boss_guarm::UpdateAI(), npc_fel_lord_caza_cryptic_hollow::UpdateAI(), boss_telash_greywing::UpdateAI(), boss_argaloth::UpdateAI(), boss_ragnaros::UpdateAI(), boss_julianne::UpdateAI(), boss_romulo::UpdateAI(), boss_felblood_kaelthas::UpdateAI(), npc_felblood_kaelthas_phoenix::UpdateAI(), boss_maiden_of_virtue_rtk::UpdateAI(), boss_shade_of_medivh::UpdateAI(), boss_the_curator_rtk::UpdateAI(), npc_unworthy_initiate::npc_unworthy_initiateAI::UpdateAI(), boss_headless_horseman::UpdateAI(), boss_armsmaster_harlan::UpdateAI(), boss_dathrohan_balnazzar::UpdateAI(), npc_madrigosa::UpdateAI(), boss_sacrolash::UpdateAI(), boss_alythess::UpdateAI(), boss_kalecgos::UpdateAI(), boss_entropius::UpdateAI(), npc_silverpine_agatha_fenris_isle::UpdateAI(), boss_halazzi::UpdateAI(), boss_janalai::UpdateAI(), boss_doomwalker_anniversary::UpdateAI(), boss_archimonde::UpdateAI(), boss_general_husam::UpdateAI(), boss_lockmaw::UpdateAI(), npc_lockmaw_augh_add::UpdateAI(), boss_onyxia::UpdateAI(), boss_buru::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), boss_corborus::boss_corborusAI::UpdateAI(), npc_rock_borer::npc_rock_borerAI::UpdateAI(), boss_high_priestess_azil::boss_high_priestess_azilAI::UpdateAI(), boss_ozruk::boss_ozrukAI::UpdateAI(), boss_slabhide::boss_slabhideAI::UpdateAI(), npc_sc_millhouse_manastorm::npc_sc_millhouse_manastormAI::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_saviana_ragefire::UpdateAI(), boss_jaraxxus::UpdateAI(), boss_devourer_of_souls::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), boss_tyrannus::UpdateAI(), boss_blood_queen_lana_thel::UpdateAI(), boss_professor_putricide::UpdateAI(), boss_sindragosa::UpdateAI(), npc_rimefang_icc::UpdateAI(), boss_sister_svalna::UpdateAI(), boss_the_lich_king::UpdateAI(), npc_raging_spirit::UpdateAI(), boss_gluth::UpdateAI(), boss_gothik::UpdateAI(), boss_heigan::UpdateAI(), boss_kelthuzad::UpdateAI(), boss_noth::UpdateAI(), boss_sapphiron::UpdateAI(), boss_thaddius::UpdateAI(), boss_malygos::UpdateAI(), boss_magus_telestra::UpdateAI(), boss_urom::UpdateAI(), boss_volkhan::UpdateAI(), boss_algalon_the_observer::UpdateAI(), npc_feral_defender::UpdateAI(), boss_hodir::UpdateAI(), boss_razorscale::UpdateAI(), npc_darkrune_watcher::UpdateAI(), npc_darkrune_guardian::UpdateAI(), npc_darkrune_sentinel::UpdateAI(), boss_thorim::boss_thorimAI::UpdateAI(), boss_xt002::UpdateAI(), npc_vrykul_skeleton::UpdateAI(), boss_svala::UpdateAI(), npc_ethereal_beacon::UpdateAI(), boss_anzu::UpdateAI(), boss_illidan_stormrage::UpdateAI(), npc_akama_illidan::UpdateAI(), npc_flame_of_azzinoth::UpdateAI(), npc_maiev::UpdateAI(), boss_doomwalker::UpdateAI(), boss_lady_vashj::UpdateAI(), boss_leotheras_the_blind::UpdateAI(), boss_the_lurker_below::UpdateAI(), boss_warlord_kalithresh::UpdateAI(), boss_swamplord_muselek::UpdateAI(), boss_vazruden_the_herald::UpdateAI(), boss_magtheridon::UpdateAI(), boss_laj::UpdateAI(), boss_alar::UpdateAI(), boss_high_astromancer_solarian::UpdateAI(), boss_kaelthas::UpdateAI(), boss_remnant_of_a_fallen_king::UpdateAI(), boss_taerar::boss_taerarAI::UpdateAI(), npc_priestess_alun_za_spirit_of_gold::UpdateAI(), boss_cragmaw_the_infested::UpdateAI(), npc_spark_of_ionar::UpdateAI(), npc_brann_hos::UpdateEscortAI(), boss_broggok::UpdateOutOfCombatEvents(), boss_vazruden_the_herald::UpdateSpecialEvents(), boss_guarm::WaypointPathEnded(), boss_headless_horseman::WaypointPathEnded(), npc_brood_of_anzu::WaypointPathEnded(), and violet_hold_trashAI::WaypointReached().
|
inline |
Definition at line 381 of file Creature.h.
References CREATURE_STATIC_FLAG_5_NO_HEALTH_REGEN.
Referenced by gunship_npc_AI::gunship_npc_AI(), npc_frozen_core::InitializeAI(), boss_magtheridon::JustAppeared(), boss_kaelthas::JustAppeared(), npc_expedition_defender::npc_expedition_defender(), npc_gunship::npc_gunshipAI::npc_gunshipAI(), npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igb(), npc_muradin_bronzebeard_igb::npc_muradin_bronzebeard_igb(), npc_xt002_heart::Reset(), npc_grauf::Reset(), npc_blessed_banner::Reset(), boss_high_astromancer_solarian::Reset(), npc_anduin_wrynn_anduin_hope::Reset(), boss_kalecgos::UpdateAI(), and boss_algalon_the_observer::UpdateAI().
|
inline |
Definition at line 430 of file Creature.h.
Referenced by Create(), and npc_thrall_old_hillsbrad::InitializeAI().
|
inline |
Definition at line 368 of file Creature.h.
Referenced by ForcedDespawn(), npc_commandscript::HandleNpcSetSpawnTimeCommand(), and FrostwingGauntletRespawner::operator()().
| void Creature::SetRespawnTime | ( | uint32 | respawn | ) |
Definition at line 2905 of file Creature.cpp.
References GameTime::GetGameTime(), and m_respawnTime.
Referenced by boss_four_horsemen_baseAI::boss_four_horsemen_baseAI(), and Update().
|
inline |
Definition at line 228 of file Creature.h.
References CREATURE_STATIC_FLAG_5_NO_LEAVE_COMBAT_STATE_RESTORE.
| void Creature::SetScriptStringId | ( | std::string | id | ) |
Definition at line 3294 of file Creature.cpp.
References AsUnderlyingType(), m_scriptStringId, m_stringIds, and Script.
Referenced by quest_finding_the_lost_expedition::HandleQuestStatusChange(), InheritStringIds(), and Scripts::QuelThalas::Harandar::Chapter1::conversation_to_harathir_follow_orweyna::OnCreate().
| void Creature::SetSessile | ( | bool | sessile | ) |
Definition at line 2993 of file Creature.cpp.
References _staticFlags, CreatureStaticFlagsHolder::ApplyFlag(), CREATURE_STATIC_FLAG_SESSILE, and UpdateSessileMovementFlags().
Referenced by spell_heartsbane_triad_claim_the_iris::HandleHitTarget().
| void Creature::SetSpawnHealth | ( | ) |
Definition at line 1996 of file Creature.cpp.
References _regenerateHealth, Unit::CountPctFromMaxHealth(), CreatureData::curHealthPct, Unit::getDeathState(), Unit::GetPowerType(), JUST_RESPAWNED, m_creatureData, Unit::SetFullHealth(), Unit::SetHealth(), and Unit::SetInitialPowerValue().
Referenced by HomeMovementGenerator< T >::DoFinalize(), LoadFromDB(), boss_vaelastrasz::Reset(), boss_valithria_dreamwalker::Reset(), and setDeathState().
| void Creature::SetSpellFocus | ( | Spell const * | focusSpell, |
| WorldObject const * | target | ||
| ) |
Definition at line 3628 of file Creature.cpp.
References _spellFocusInfo, Unit::AddUnitState(), Unit::CannotTurn(), ObjectGuid::Empty, Spell::GetCastTime(), BaseEntity::GetGUID(), Position::GetOrientation(), Spell::GetSpellInfo(), Unit::GetTarget(), SpellInfo::HasAttribute(), SpellInfo::HasAura(), Unit::HasAuraType(), Unit::HasUnitFlag(), Unit::HasUnitFlag2(), Unit::IsAlive(), SpellInfo::IsChanneled(), Spell::IsFocusDisabled(), Unit::m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), Unit::SetFacingToObject(), BaseEntity::SetUpdateFieldValue(), SPELL_ATTR5_AI_DOESNT_FACE_TARGET, SPELL_AURA_CONTROL_VEHICLE, SPELL_AURA_FEIGN_DEATH, UF::UnitData::Target, UNIT_FLAG2_FEIGN_DEATH, UNIT_FLAG_STUNNED, and UNIT_STATE_FOCUSING.
Referenced by Spell::prepare().
|
inline |
Definition at line 313 of file Creature.h.
Referenced by instance_ulduar::instance_ulduar_InstanceMapScript::SetBossState().
| void Creature::SetTappedBy | ( | Unit const * | unit, |
| bool | withGroup = true |
||
| ) |
Definition at line 1368 of file Creature.cpp.
References CREATURE_TAPPERS_SOFT_CAP, WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), Player::GetGroup(), BaseEntity::GetGUID(), WorldObject::GetMap(), BaseEntity::GetTypeId(), Map::IsRaid(), Unit::IsVehicle(), m_tapList, Object::RemoveDynamicFlag(), Object::SetDynamicFlag(), TYPEID_PLAYER, UNIT_DYNFLAG_LOOTABLE, and UNIT_DYNFLAG_TAPPED.
Referenced by CreatureAI::_EnterEvadeMode(), Unit::DealDamage(), EscortAI::EnterEvadeMode(), hyjalAI::EnterEvadeMode(), ScriptedAI::ForceCombatStop(), boss_valithria_dreamwalker::HealReceived(), dummy_dragonAI::JustDied(), boss_steelbreaker::boss_steelbreakerAI::JustDied(), boss_runemaster_molgeim::boss_runemaster_molgeimAI::JustDied(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::JustDied(), and setDeathState().
|
overridevirtual |
Implements Unit.
Definition at line 3620 of file Creature.cpp.
References _spellFocusInfo, HasSpellFocus(), Unit::m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), BaseEntity::SetUpdateFieldValue(), and UF::UnitData::Target.
Referenced by CreatureAI::_EnterEvadeMode(), npc_ohgan::DamageTaken(), boss_eye_of_cthun::eye_of_cthunAI::DamageTaken(), boss_icehowl::ExecuteEvent(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::HandleAnimation(), npc_felmyst_trail::npc_felmyst_trail(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::Reset(), npc_zombie_chow::SetData(), setDeathState(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), npc_dark_rider_of_acherus::UpdateAI(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), npc_fizzlebang_toc::UpdateAI(), and boss_devourer_of_souls::UpdateAI().
Definition at line 3770 of file Creature.cpp.
References BaseEntity::GetGUID(), WorldObject::GetName(), m_textRepeat, TC_LOG_ERROR, and Position::ToString().
Referenced by CreatureTextMgr::SendChat().
Definition at line 3945 of file Creature.cpp.
References _trainerId.
|
inline |
Definition at line 399 of file Creature.h.
Referenced by Transport::CreateNPCPassenger(), npc_gunship_boarding_addAI::MovementInform(), gunship_npc_AI::SetData(), and Transport::SummonPassenger().
|
inline |
Definition at line 400 of file Creature.h.
|
inline |
Definition at line 243 of file Creature.h.
References CREATURE_STATIC_FLAG_4_TREAT_AS_RAID_UNIT_FOR_HELPFUL_SPELLS.
Referenced by InitEntry().
|
inline |
Definition at line 195 of file Creature.h.
References CREATURE_STATIC_FLAG_UNKILLABLE.
Referenced by Scripts::QuelThalas::MurderRow::KystiaManaheart::boss_kystia_manaheart_nibbles::boss_kystia_manaheart_nibbles(), boss_halazzi::DamageTaken(), HeartsbaneTriadSharedAI::DamageTaken(), HeartsbaneTriadSharedAI::HandleClaimIris(), HeartsbaneTriadSharedAI::JustAppeared(), npc_volkaal_reanimation_totem::JustAppeared(), spell_aqusirr_erupting_waters_aura::OnApply(), spell_aqusirr_erupting_waters_aura::OnRemove(), boss_halazzi::Reset(), and boss_halazzi::UpdateAI().
| void Creature::SetVendor | ( | NPCFlags | flags, |
| bool | apply | ||
| ) |
Definition at line 3400 of file Creature.cpp.
References WowCS::EntityFragmentsHolder::Add(), AsUnderlyingType(), flags, UF::VendorData::Flags, WowCS::FVendor_C, WowCS::GetRawFragmentData(), UF::OptionalUpdateFieldBase< T >::has_value(), BaseEntity::IsInWorld(), BaseEntity::m_entityFragments, BaseEntity::m_values, m_vendorData, UF::UpdateFieldHolder::ModifyValue(), WowCS::EntityFragmentsHolder::Remove(), Unit::RemoveNpcFlag(), BaseEntity::RemoveOptionalUpdateFieldValue(), BaseEntity::RemoveUpdateFieldFlagValue(), Unit::SetNpcFlag(), BaseEntity::SetUpdateFieldFlagValue(), and UNIT_NPC_FLAG_VENDOR_MASK.
Referenced by npc_andorov::UpdateAI(), and UpdateEntry().
|
inline |
Definition at line 371 of file Creature.h.
Referenced by npc_commandscript::HandleNpcSetWanderDistanceCommand().
| bool Creature::ShouldFakeDamageFrom | ( | Unit * | attacker | ) |
Definition at line 1788 of file Creature.cpp.
References Unit::GetHealthPct(), GetSparringHealthPct(), Unit::IsCharmedOwnedByPlayerOrPlayer(), and BaseEntity::IsCreature().
| void Creature::SignalFormationMovement | ( | ) |
Definition at line 411 of file Creature.cpp.
References CreatureGroup::IsLeader(), CreatureGroup::LeaderStartedMoving(), and m_formation.
| void Creature::StartDefaultCombatMovement | ( | Unit * | victim, |
| Optional< float > | range = {}, |
||
| Optional< float > | angle = {} |
||
| ) |
Definition at line 2883 of file Creature.cpp.
References CREATURE_STATIC_FLAG_NO_MELEE_FLEE, Unit::GetMotionMaster(), HasFlag(), Unit::IsSummon(), MotionMaster::MoveChase(), and MotionMaster::MoveFleeing().
Referenced by CreatureAI::AttackStart(), SmartAI::AttackStart(), ScriptedAI::DoStartMovement(), CritterAI::JustEngagedWith(), SetCanMelee(), SmartAI::SetCombatMove(), and boss_devourer_of_souls::UpdateAI().
| void Creature::StartPickPocketRefillTimer | ( | ) |
Definition at line 3760 of file Creature.cpp.
References _pickpocketLootRestore, CONFIG_CREATURE_PICKPOCKET_REFILL, GameTime::GetGameTime(), and sWorld.
Referenced by Spell::EffectPickPocket().
| void Creature::SummonGraveyardTeleporter | ( | ) |
Definition at line 3956 of file Creature.cpp.
References FACTION_ALLIANCE_GENERIC, Unit::GetFaction(), Position::GetPosition(), Unit::IsAreaSpiritHealer(), NPC_ALLIANCE_GRAVEYARD_TELEPORT, NPC_HORDE_GRAVEYARD_TELEPORT, WorldObject::SummonCreature(), and TEMPSUMMON_TIMED_DESPAWN.
|
overridevirtual |
Reimplemented from Unit.
Reimplemented in TempSummon, Pet, Totem, and Puppet.
Definition at line 750 of file Creature.cpp.
References _spellFocusInfo, AI(), Unit::AIUpdateTick(), ALIVE, CanNotReachTarget(), CastSpell, CreatureAI::CheckInRoom(), CONFIG_REGEN_HP_CANNOT_REACH_TARGET_IN_RAID, CORPSE, CREATURE_NOPATH_EVADE_TIME, CREATURE_REGEN_INTERVAL, DEAD, Unit::DoMeleeAttackIfReady(), GetDebugInfo(), Object::GetEntry(), GameTime::GetGameTime(), BaseEntity::GetGUID(), Map::GetLinkedRespawnTime(), WorldObject::GetMap(), WorldLocation::GetMapId(), Unit::GetPowerType(), Unit::GetThreatManager(), SpawnGroupTemplateData::groupId, Unit::IsAIEnabled(), Unit::IsAlive(), Unit::IsAreaSpiritHealer(), Unit::IsAreaSpiritHealerIndividual(), IsEngaged(), IsInEvadeMode(), Unit::IsPolymorphed(), JUST_DIED, JUST_RESPAWNED, CreatureAI::JustAppeared(), m_boundaryCheckTime, m_cannotReachTimer, m_corpseRemoveTime, m_creatureData, Unit::m_deathState, m_loot, m_personalLoot, Unit::m_regenTimer, m_respawnCompatibilityMode, m_respawnTime, m_spawnId, m_triggerJustAppeared, Unit::m_vehicleKit, MINUTE, NoPath, POWER_ENERGY, POWER_MANA, ReacquireSpellFocusTarget(), Regenerate(), RegenerateHealth(), RemoveCorpse(), Vehicle::Reset(), Respawn(), SaveRespawnTime(), SetRespawnTime(), sObjectMgr, SpawnMetadata::spawnGroupData, SPELL_SPIRIT_HEAL_CHANNEL_AOE, sWorld, TC_LOG_DEBUG, TC_LOG_ERROR, Position::ToString(), ThreatManager::Update(), Unit::Update(), UpdateMovementCapabilities(), urand(), and WEEK.
Referenced by TempSummon::Update(), Pet::Update(), Totem::Update(), and Puppet::Update().
|
overridevirtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
Definition at line 981 of file StatSystem.cpp.
References GetPowerTypes(), Unit::UpdateAllResistances(), UpdateAttackPowerAndDamage(), UpdateMaxHealth(), and UpdateMaxPower().
Referenced by UpdateEntry().
|
overridevirtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
Definition at line 995 of file StatSystem.cpp.
References BASE_VALUE, Unit::GetFlatModifierValue(), Unit::GetTotalAuraModValue(), Unit::SetArmor(), and UNIT_MOD_ARMOR.
|
overridevirtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
Definition at line 1062 of file StatSystem.cpp.
References BASE_ATTACK, FlatNegative, FlatPositive, Unit::GetAttackPowerModifierValue(), m_baseAttackPower, m_baseRangedAttackPower, Melee, OFF_ATTACK, Pct, Ranged, RANGED_ATTACK, Unit::SetAttackPower(), Unit::SetAttackPowerModNeg(), Unit::SetAttackPowerModPos(), Unit::SetAttackPowerMultiplier(), Unit::SetRangedAttackPower(), Unit::SetRangedAttackPowerModNeg(), Unit::SetRangedAttackPowerModPos(), Unit::SetRangedAttackPowerMultiplier(), and Unit::UpdateDamagePhysical().
Referenced by TempSummon::InitStats(), and UpdateAllStats().
Definition at line 409 of file Creature.h.
Referenced by wp_commandscript::HandleWpUnLoadCommand().
| bool Creature::UpdateEntry | ( | uint32 | entry, |
| CreatureData const * | data = nullptr, |
||
| bool | updateLevel = true |
||
| ) |
Definition at line 591 of file Creature.cpp.
References _regenerateHealth, _staticFlags, ALLIANCE, Unit::ApplySpellImmune(), AsUnderlyingType(), BASE_ATTACK, BASE_VALUE, CreatureTemplate::BaseAttackTime, ObjectMgr::ChooseCreatureFlags(), CREATURE_FLAG_EXTRA_CANNOT_ENTER_COMBAT, CREATURE_FLAG_EXTRA_NO_TAUNT, CREATURE_FLAG_EXTRA_USE_OFFHAND_ATTACK, CREATURE_FLAG_EXTRA_WORLDEVENT, CreatureTemplate::CreatureImmunitiesId, CreatureTemplate::dmgschool, ThreatManager::EvaluateSuppressed(), CreatureTemplate::faction, FACTION_MASK_ALLIANCE, FACTION_TEMPLATE_FLAG_PVP, CreatureTemplate::flags_extra, WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), GetCreatureAddon(), GetCreatureTemplate(), Unit::GetHealth(), WorldLocation::GetMapId(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetScriptId(), Unit::GetThreatManager(), Unit::HasNpcFlag(), HORDE, IMMUNITY_EFFECT, IMMUNITY_STATE, InitEntry(), InitializeInteractSpellId(), InitializeMovementCapabilities(), InitializeReactState(), Unit::IsGuardian(), Unit::IsInCombat(), Unit::IsTaxi(), IsTrigger(), Unit::IsVehicle(), Unit::IsVendor(), WorldObject::LastUsedScriptID, LoadCreaturesAddon(), LoadCreaturesSparringHealth(), LoadTemplateImmunities(), m_stringIds, Unit::m_unitData, BaseEntity::m_values, UF::UpdateFieldHolder::ModifyValue(), OFF_ATTACK, CreatureTemplate::RangeAttackTime, RANGED_ATTACK, CreatureTemplate::RegenHealth, Object::ReplaceAllDynamicFlags(), Unit::ReplaceAllNpcFlags(), Unit::ReplaceAllNpcFlags2(), Unit::ReplaceAllUnitFlags(), Unit::ReplaceAllUnitFlags2(), Unit::ReplaceAllUnitFlags3(), CreatureTemplate::resistance, SelectLevel(), Unit::SetBaseAttackTime(), SetCanDualWield(), Unit::SetCanModifyStats(), Unit::SetFaction(), Unit::SetHealth(), Unit::SetIsCombatDisallowed(), SetMeleeDamageSchool(), SetPetitioner(), Unit::SetPvP(), Unit::SetSheath(), Unit::SetStatFlatModifier(), Unit::SetUninteractible(), BaseEntity::SetUpdateFieldValue(), SetVendor(), sFactionTemplateStore, sGameEventMgr, SHEATH_STATE_MELEE, sObjectMgr, SpawnMetadata::spawnTrackingQuestObjectives, SPELL_AURA_MOD_TAUNT, SPELL_EFFECT_ATTACK_ME, SPELL_SCHOOL_ARCANE, SPELL_SCHOOL_FIRE, SPELL_SCHOOL_FROST, SPELL_SCHOOL_HOLY, SPELL_SCHOOL_NATURE, SPELL_SCHOOL_SHADOW, UF::UnitData::StateWorldEffectsQuestObjectiveID, CreatureTemplate::StringId, UF::UnitData::TaxiNodesID, Template, UNIT_DYNFLAG_NONE, UNIT_FLAG_IN_COMBAT, UNIT_MOD_RESISTANCE_ARCANE, UNIT_MOD_RESISTANCE_FIRE, UNIT_MOD_RESISTANCE_FROST, UNIT_MOD_RESISTANCE_HOLY, UNIT_MOD_RESISTANCE_NATURE, UNIT_MOD_RESISTANCE_SHADOW, UNIT_NPC_FLAG_PETITIONER, UNIT_NPC_FLAG_SPELLCLICK, UNIT_NPC_FLAG_VENDOR_MASK, UpdateAllStats(), and UpdateLevelDependantStats().
Referenced by CreateFromProto(), boss_ingvar_the_plunderer::DoAction(), npc_pulsing_pumpkin::DoAction(), boss_halazzi::EnterEvadeMode(), npc_commandscript::HandleNpcSetEntryCommand(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::OnCreatureCreate(), boss_dathrohan_balnazzar::Reset(), boss_ingvar_the_plunderer::Reset(), npc_phase_hunter::npc_phase_hunterAI::Reset(), Respawn(), npc_cult_fanatic::SpellHit(), npc_cult_adherent::SpellHit(), npc_argent_captainAI::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_nether_drake::npc_nether_drakeAI::SpellHit(), npc_haiphoon::SpellHitTarget(), boss_victor_nefarius::SummonedCreatureDies(), boss_dathrohan_balnazzar::UpdateAI(), boss_halazzi::UpdateAI(), boss_svala::UpdateAI(), npc_claw::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), instance_violet_hold::instance_violet_hold_InstanceMapScript::UpdateKilledBoss(), and boss_vazruden_the_herald::UpdateSpecialEvents().
| void Creature::UpdateFloatingMovementFlags | ( | ) |
Definition at line 2977 of file Creature.cpp.
References Unit::HasAuraType(), IsFloating(), IsSessile(), Unit::SetDisableGravity(), SPELL_AURA_DISABLE_GRAVITY, SPELL_AURA_MOD_ROOT_DISABLE_GRAVITY, and SPELL_AURA_MOD_STUN_DISABLE_GRAVITY.
Referenced by InitializeMovementCapabilities(), and SetFloating().
| void Creature::UpdateLevelDependantStats | ( | ) |
Definition at line 1622 of file Creature.cpp.
References AsUnderlyingType(), CreatureBaseStats::AttackPower, BASE_ATTACK, BASE_PCT, BASE_VALUE, CreatureBaseStats::BaseMana, Unit::CalculateDisplayPowerType(), CreatureTemplate::Classification, GetBaseArmorForLevel(), GetBaseDamageForLevel(), GetCreatureDifficulty(), GetCreatureTemplate(), GetHealthMod(), Unit::GetLevel(), GetMaxHealthByLevel(), Unit::IsPet(), m_baseAttackPower, m_baseRangedAttackPower, MAXDAMAGE, MINDAMAGE, Normal, OFF_ATTACK, RANGED_ATTACK, CreatureBaseStats::RangedAttackPower, ResetPlayerDamageReq(), Unit::SetBaseWeaponDamage(), Unit::SetCreateHealth(), Unit::SetCreateMana(), Unit::SetHealth(), Unit::SetMaxHealth(), Unit::SetPowerType(), Unit::SetStatFlatModifier(), Unit::SetStatPctModifier(), sObjectMgr, CreatureTemplate::unit_class, UNIT_MOD_ARMOR, UNIT_MOD_HEALTH, and UNIT_MOD_POWER_START.
Referenced by npc_commandscript::HandleNpcSetLevelCommand(), TempSummon::InitStats(), SelectLevel(), and UpdateEntry().
|
overridevirtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
Definition at line 1002 of file StatSystem.cpp.
References Unit::GetTotalAuraModValue(), Unit::SetMaxHealth(), and UNIT_MOD_HEALTH.
Referenced by UpdateAllStats().
|
overridevirtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
Definition at line 1047 of file StatSystem.cpp.
References AsUnderlyingType(), BASE_PCT, BASE_VALUE, GetCreatePowerValue(), Unit::GetFlatModifierValue(), Unit::GetPctModifierValue(), GetPowerIndex(), MAX_POWERS_PER_CLASS, Unit::SetMaxPower(), TOTAL_PCT, TOTAL_VALUE, and UNIT_MOD_POWER_START.
Referenced by UpdateAllStats().
| void Creature::UpdateMovementCapabilities | ( | ) |
Definition at line 2949 of file Creature.cpp.
References CanSwim(), WorldObject::GetFloorZ(), Unit::GetHoverOffset(), Position::GetPositionZ(), Unit::GetVictim(), GROUND_HEIGHT_TOLERANCE, Unit::HasUnitFlag2(), Unit::IsInWater(), Unit::IsOnOceanFloor(), Unit::m_playerMovingMe, MOVEMENTFLAG_FALLING, Unit::RemoveUnitFlag2(), Unit::RemoveUnitMovementFlag(), Unit::SetSwim(), and UNIT_FLAG2_AI_WILL_ONLY_SWIM_IF_TARGET_SWIMS.
Referenced by InitializeMovementCapabilities(), setDeathState(), and Update().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 3101 of file Creature.cpp.
References BaseEntity::GetGUID(), WorldObject::GetVisibilityRange(), Unit::IsQuestGiver(), Unit::UpdateNearbyPlayersInteractions(), and Cell::VisitWorldObjects().
| void Creature::UpdateSessileMovementFlags | ( | ) |
Definition at line 2999 of file Creature.cpp.
References Unit::HasAuraType(), IsFloating(), IsSessile(), Unit::SetControlled(), Unit::SetDisableGravity(), SPELL_AURA_DISABLE_GRAVITY, SPELL_AURA_MOD_ROOT, SPELL_AURA_MOD_ROOT_DISABLE_GRAVITY, SPELL_AURA_MOD_STUN_DISABLE_GRAVITY, and UNIT_STATE_ROOT.
Referenced by InitializeMovementCapabilities(), and SetSessile().
|
overridevirtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
Definition at line 976 of file StatSystem.cpp.
| uint32 Creature::UpdateVendorItemCurrentCount | ( | VendorItem const * | vItem, |
| uint32 | used_count | ||
| ) |
Definition at line 3364 of file Creature.cpp.
References VendorItemCount::count, GameTime::GetGameTime(), VendorItem::incrtime, VendorItem::item, VendorItemCount::lastIncrementTime, m_vendorItemCounts, VendorItem::maxcount, and sObjectMgr.
Referenced by Player::_StoreOrEquipNewItem().
|
private |
Definition at line 595 of file Creature.h.
Referenced by AtEngage(), Heartbeat(), and Respawn().
|
private |
Definition at line 618 of file Creature.h.
Referenced by LoadTemplateImmunities().
Definition at line 588 of file Creature.h.
Definition at line 617 of file Creature.h.
Referenced by LoadCreaturesAddon(), and SetDefaultMount().
|
private |
Definition at line 619 of file Creature.h.
Referenced by GetGossipMenuId(), and SetGossipMenuId().
|
private |
Definition at line 607 of file Creature.h.
|
protected |
Timers.
Definition at line 536 of file Creature.h.
Referenced by CanGeneratePickPocketLoot(), and StartPickPocketRefillTimer().
|
private |
Definition at line 615 of file Creature.h.
Referenced by SetSpawnHealth(), and UpdateEntry().
|
private |
Definition at line 621 of file Creature.h.
Referenced by LoadCreaturesSparringHealth(), and OverrideSparringHealthPct().
| struct { ... } Creature::_spellFocusInfo |
|
protected |
Definition at line 577 of file Creature.h.
Referenced by ApplyAllStaticFlags(), CanGiveExperience(), ForcePartyMembersIntoCombat(), InitEntry(), InitializeReactState(), SetCanMelee(), setDeathState(), SetFloating(), SetInteractionAllowedInCombat(), SetInteractionAllowedWhileHostile(), SetSessile(), and UpdateEntry().
Definition at line 620 of file Creature.h.
Referenced by GetTrainerId(), and SetTrainerId().
|
private |
Definition at line 587 of file Creature.h.
Referenced by LoadCreaturesAddon().
| uint32 Creature::Delay = 0 |
Definition at line 602 of file Creature.h.
|
protected |
Definition at line 566 of file Creature.h.
Referenced by Creature().
|
protected |
Definition at line 553 of file Creature.h.
Referenced by CallAssistance().
|
protected |
Definition at line 554 of file Creature.h.
|
protected |
Definition at line 559 of file Creature.h.
Referenced by UpdateAttackPowerAndDamage(), and UpdateLevelDependantStats().
|
protected |
Definition at line 560 of file Creature.h.
Referenced by UpdateAttackPowerAndDamage(), and UpdateLevelDependantStats().
|
protected |
Definition at line 543 of file Creature.h.
Referenced by Update().
|
protected |
Definition at line 555 of file Creature.h.
Referenced by SetCannotReachTarget().
|
protected |
Definition at line 556 of file Creature.h.
Referenced by SetCannotReachTarget(), and Update().
| float Creature::m_CombatDistance |
Definition at line 435 of file Creature.h.
Referenced by npc_hearthglen_crusader::AttackStart(), TurretAI::CanAIAttack(), WorldObject::CanDetectStealthOf(), CanStartAttack(), Creature(), npc_hadronox_crusherPackAI::MoveInLineOfSight(), boss_krik_thir::MoveInLineOfSight(), npc_gatewatcher_petAI::MoveInLineOfSight(), npc_gunship_boarding_addAI::npc_gunship_boarding_addAI(), npc_gunship_gunner::npc_gunship_gunner(), npc_gunship_rocketeer::npc_gunship_rocketeer(), npc_hearthglen_crusader::npc_hearthglen_crusader(), npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igb(), and npc_muradin_bronzebeard_igb::npc_muradin_bronzebeard_igb().
|
protected |
Definition at line 540 of file Creature.h.
Referenced by AllLootRemovedFromCorpse(), Create(), and setDeathState().
|
protected |
Definition at line 537 of file Creature.h.
Referenced by AllLootRemovedFromCorpse(), IsInvisibleDueToDespawn(), RemoveCorpse(), setDeathState(), Pet::Update(), and Update().
|
protected |
Definition at line 569 of file Creature.h.
Referenced by GetRespawnPosition(), LoadFromDB(), SaveRespawnTime(), SetSpawnHealth(), and Update().
|
protected |
Definition at line 570 of file Creature.h.
Referenced by InitEntry().
|
protected |
Definition at line 568 of file Creature.h.
Referenced by InitEntry().
|
protected |
Definition at line 548 of file Creature.h.
Referenced by GetDefaultMovementType(), InitEntry(), and LoadFromDB().
|
protected |
Definition at line 533 of file Creature.h.
Referenced by SetDontClearTapListOnEvade().
|
protected |
Definition at line 550 of file Creature.h.
Referenced by LoadEquipment().
|
private |
Definition at line 591 of file Creature.h.
Referenced by IsFormationLeader(), IsFormationLeaderMoveAllowed(), Motion_Initialize(), RemoveFromWorld(), setDeathState(), and SignalFormationMovement().
|
protected |
Definition at line 563 of file Creature.h.
Referenced by CanCreatureAttack().
|
protected |
Definition at line 541 of file Creature.h.
Referenced by AllLootRemovedFromCorpse().
| bool Creature::m_isTempWorldObject |
Definition at line 437 of file Creature.h.
Referenced by Creature(), and Map::SwitchGridContainers().
| std::unique_ptr<Loot> Creature::m_loot |
Definition at line 307 of file Creature.h.
Referenced by AllLootRemovedFromCorpse(), Spell::EffectPickPocket(), GetLootForPlayer(), npc_commandscript::HandleNpcShowLootCommand(), IsFullyLooted(), RemoveCorpse(), Respawn(), and Update().
Definition at line 574 of file Creature.h.
Referenced by GetLootId(), and SetLootId().
|
protected |
Definition at line 575 of file Creature.h.
|
protected |
Definition at line 558 of file Creature.h.
|
protected |
Definition at line 561 of file Creature.h.
Referenced by Pet::Create(), and Respawn().
|
protected |
Definition at line 551 of file Creature.h.
Referenced by InitEntry().
| std::unordered_map<ObjectGuid, std::unique_ptr<Loot> > Creature::m_personalLoot |
Definition at line 308 of file Creature.h.
Referenced by AllLootRemovedFromCorpse(), Spell::EffectSkinning(), GetLootForPlayer(), npc_commandscript::HandleNpcShowLootCommand(), IsFullyLooted(), Unit::Kill(), and Update().
| uint64 Creature::m_PlayerDamageReq |
Definition at line 424 of file Creature.h.
Referenced by Trinity::XP::Gain(), and LowerPlayerDamageReq().
|
protected |
Definition at line 545 of file Creature.h.
|
private |
Definition at line 593 of file Creature.h.
Referenced by ForcedDespawn(), LoadFromDB(), RemoveCorpse(), Respawn(), SaveRespawnTime(), setDeathState(), and Update().
|
protected |
Definition at line 539 of file Creature.h.
Referenced by AllLootRemovedFromCorpse(), Create(), ForcedDespawn(), LoadFromDB(), RemoveCorpse(), SaveToDB(), and setDeathState().
|
protected |
Definition at line 538 of file Creature.h.
Referenced by AllLootRemovedFromCorpse(), ForcedDespawn(), GetRespawnTimeEx(), LoadFromDB(), RemoveCorpse(), Respawn(), SaveRespawnTime(), setDeathState(), SetRespawnTime(), and Update().
|
protected |
Definition at line 572 of file Creature.h.
Referenced by SetScriptStringId().
| float Creature::m_SightDistance |
Definition at line 435 of file Creature.h.
Referenced by Creature(), npc_hearthglen_crusader::npc_hearthglen_crusader(), and npc_reliquary_combat_trigger::npc_reliquary_combat_trigger().
|
protected |
For new or temporary creatures is 0 for saved it is lowguid.
Definition at line 549 of file Creature.h.
Referenced by AddToWorld(), ForcedDespawn(), GetCreatureAddon(), GetMovementTemplate(), LoadFromDB(), RemoveFromWorld(), Respawn(), SaveRespawnTime(), SaveToDB(), SaveToDB(), setDeathState(), SetDontClearTapListOnEvade(), and Update().
| uint32 Creature::m_spells[MAX_CREATURE_SPELLS] |
Definition at line 332 of file Creature.h.
Referenced by Creature(), HasSpell(), CharmInfo::InitCharmCreateSpells(), InitEntry(), CombatAI::InitializeAI(), CharmInfo::InitPossessCreateSpells(), npc_wild_wyrm::InitSpellsForPhase(), TempSummon::InitStats(), TriggerAI::IsSummonedBy(), SpellHistory::LockSpellSchool(), npc_hearthglen_crusader::npc_hearthglen_crusader(), TriggerAI::Permissible(), npc_sapphiron_blizzard::Reset(), ScriptedAI::SelectSpell(), npc_silverpine_forsaken_bat::SetCircularActionBar(), npc_silverpine_forsaken_bat::SetFinishActionBar(), npc_silverpine_forsaken_bat::SetInitialActionBar(), TurretAI::UpdateAI(), npc_hearthglen_crusader::UpdateAI(), and Player::VehicleSpellInitialize().
|
protected |
Definition at line 571 of file Creature.h.
Referenced by HasStringId(), InheritStringIds(), LoadFromDB(), SetScriptStringId(), and UpdateEntry().
|
protected |
Definition at line 532 of file Creature.h.
Referenced by isTappedBy(), and SetTappedBy().
|
private |
Definition at line 608 of file Creature.h.
Referenced by ClearTextRepeatGroup(), GetTextRepeatGroup(), and SetTextRepeatId().
|
protected |
Definition at line 564 of file Creature.h.
|
private |
Definition at line 592 of file Creature.h.
| UF::OptionalUpdateField<UF::VendorData, int32(WowCS::EntityFragment::FVendor_C), 0> Creature::m_vendorData |
Definition at line 500 of file Creature.h.
Referenced by SetPetitioner(), and SetVendor().
|
protected |
Definition at line 528 of file Creature.h.
Referenced by GetVendorItemCurrentCount(), and UpdateVendorItemCurrentCount().
|
protected |
Definition at line 542 of file Creature.h.
Referenced by InitEntry(), LoadFromDB(), and SaveToDB().
| float Creature::Orientation = 0.0f |
Definition at line 604 of file Creature.h.
| ::Spell const* Creature::Spell = nullptr |
Definition at line 601 of file Creature.h.
| ObjectGuid Creature::Target |
Definition at line 603 of file Creature.h.