![]() |
TrinityCore
|
#include <Creature.h>
Inheritance diagram for Creature:Public Member Functions | |
| Creature (bool isWorldObject=false) | |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| float | GetNativeObjectScale () const override |
| void | SetObjectScale (float scale) override |
| void | SetDisplayId (uint32 modelId) override |
| void | DisappearAndDie () |
| bool | Create (ObjectGuid::LowType guidlow, Map *map, uint32 phaseMask, uint32 entry, Position const &pos, CreatureData const *data=nullptr, uint32 vehId=0, bool dynamic=false) |
| bool | LoadCreaturesAddon () |
| void | SelectLevel () |
| void | UpdateLevelDependantStats () |
| void | LoadEquipment (int8 id=1, bool force=false) |
| void | SetSpawnHealth () |
| void | LoadTemplateRoot () |
| ObjectGuid::LowType | GetSpawnId () const |
| void | Update (uint32 time) override |
| void | GetRespawnPosition (float &x, float &y, float &z, float *ori=nullptr, float *dist=nullptr) const |
| bool | IsSpawnedOnTransport () const |
| void | SetCorpseDelay (uint32 delay, bool ignoreCorpseDecayRatio=false) |
| uint32 | GetCorpseDelay () const |
| bool | IsRacialLeader () const |
| bool | IsCivilian () const |
| bool | IsTrigger () const |
| bool | IsGuard () const |
| void | InitializeMovementFlags () |
| void | UpdateMovementFlags () |
| CreatureMovementData const & | GetMovementTemplate () const |
| bool | CanWalk () const |
| bool | CanSwim () const override |
| bool | CanEnterWater () const override |
| bool | CanFly () const override |
| bool | CanHover () const |
| MovementGeneratorType | GetDefaultMovementType () const override |
| void | SetDefaultMovementType (MovementGeneratorType mgt) |
| bool | IsDungeonBoss () const |
| bool | IsAffectedByDiminishingReturns () const override |
| 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 |
| bool | isCanInteractWithBattleMaster (Player *player, bool msg) const |
| bool | CanResetTalents (Player *player, bool pet) const |
| bool | CanCreatureAttack (Unit const *victim, bool force=true) const |
| void | LoadTemplateImmunities () |
| bool | IsImmunedToSpell (SpellInfo const *spellInfo, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const override |
| bool | IsImmunedToSpellEffect (SpellInfo const *spellInfo, SpellEffectInfo const &spellEffectInfo, WorldObject const *caster, bool requireImmunityPurgesEffectAttribute=false) const override |
| bool | isElite () const |
| bool | isWorldBoss () const |
| uint8 | GetLevelForTarget (WorldObject const *target) const override |
| bool | IsInEvadeMode () const |
| bool | IsEvadingAttacks () const |
| bool | AIM_Destroy () |
| bool | AIM_Create (CreatureAI *ai=nullptr) |
| bool | AIM_Initialize (CreatureAI *ai=nullptr) |
| void | Motion_Initialize () |
| CreatureAI * | AI () const |
| uint32 | GetShieldBlockValue () const override |
| SpellSchoolMask | GetMeleeDamageSchoolMask (WeaponAttackType=BASE_ATTACK, uint8=0) const override |
| void | SetMeleeDamageSchool (SpellSchools school) |
| bool | HasSpell (uint32 spellID) const override |
| bool | UpdateEntry (uint32 entry, CreatureData const *data=nullptr, bool updateLevel=true) |
| void | SetPhaseMask (uint32 newPhaseMask, bool update) override |
| bool | UpdateStats (Stats stat) override |
| bool | UpdateAllStats () override |
| void | UpdateResistances (uint32 school) override |
| void | UpdateArmor () override |
| void | UpdateMaxHealth () override |
| void | UpdateMaxPower (Powers power) override |
| void | UpdateAttackPowerAndDamage (bool ranged=false) override |
| void | CalculateMinMaxDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, float &minDamage, float &maxDamage, uint8 damageIndex) const override |
| void | SetCanDualWield (bool value) override |
| int8 | GetOriginalEquipmentId () const |
| uint8 | GetCurrentEquipmentId () const |
| void | SetCurrentEquipmentId (uint8 id) |
| float | GetSpellDamageMod (int32 Rank) const |
| VendorItemData const * | GetVendorItems () const |
| uint32 | GetVendorItemCurrentCount (VendorItem const *vItem) |
| uint32 | UpdateVendorItemCurrentCount (VendorItem const *vItem, uint32 used_count) |
| CreatureTemplate const * | GetCreatureTemplate () const |
| CreatureData const * | GetCreatureData () const |
| CreatureAddon const * | GetCreatureAddon () const |
| std::string const & | GetAIName () const |
| std::string | GetScriptName () const |
| uint32 | GetScriptId () const |
| void | InheritStringIds (Creature const *parent) |
| bool | HasStringId (std::string_view id) const |
| void | SetScriptStringId (std::string id) |
| std::string_view | GetStringId (StringIdType type) const |
| std::string const & | GetNameForLocaleIdx (LocaleConstant locale_idx) const override |
| void | setDeathState (DeathState s) override |
| bool | LoadFromDB (ObjectGuid::LowType spawnId, Map *map, bool addToMap, bool allowDuplicate) |
| void | SaveToDB () |
| virtual void | SaveToDB (uint32 mapid, uint8 spawnMask, uint32 phaseMask) |
| void | StartPickPocketRefillTimer () |
| void | ResetPickPocketRefillTimer () |
| bool | CanGeneratePickPocketLoot () const |
| ObjectGuid | GetLootRecipientGUID () const |
| Player * | GetLootRecipient () const |
| Group * | GetLootRecipientGroup () const |
| bool | hasLootRecipient () const |
| bool | isTappedBy (Player const *player) const |
| void | SetLootRecipient (Unit *unit, bool withGroup=true) |
| void | AllLootRemovedFromCorpse () |
| uint16 | GetLootMode () const |
| bool | HasLootMode (uint16 lootMode) |
| void | SetLootMode (uint16 lootMode) |
| void | AddLootMode (uint16 lootMode) |
| void | RemoveLootMode (uint16 lootMode) |
| void | ResetLootMode () |
| bool | CanStartAttack (Unit const *u, bool force) const |
| float | GetAttackDistance (Unit const *player) const |
| float | GetAggroRange (Unit const *target) const |
| void | SendAIReaction (AiReaction reactionType) |
| 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 | CanIgnoreFeignDeath () const |
| void | RemoveCorpse (bool setSpawnTime=true, bool destroyForNearbyPlayers=true) |
| void | DespawnOrUnsummon (Milliseconds timeToDespawn=0s, Seconds forceRespawnTime=0s) |
| time_t const & | GetRespawnTime () const |
| time_t | GetRespawnTimeEx () const |
| void | SetRespawnTime (uint32 respawn) |
| void | Respawn (bool force=false) |
| void | SaveRespawnTime (uint32 forceDelay=0) |
| uint32 | GetRespawnDelay () const |
| void | SetRespawnDelay (uint32 delay) |
| float | GetWanderDistance () const |
| void | SetWanderDistance (float dist) |
| void | DoImmediateBoundaryCheck () |
| uint32 | GetCombatPulseDelay () const |
| void | SetCombatPulseDelay (uint32 delay) |
| void | SendZoneUnderAttackMessage (Player *attacker) |
| Send a message to LocalDefense channel for players opposition team in the zone. | |
| bool | hasQuest (uint32 quest_id) const override |
| bool | hasInvolvedQuest (uint32 quest_id) const override |
| bool | CanRegenerateHealth () const |
| void | SetRegenerateHealth (bool value) |
| virtual uint8 | GetPetAutoSpellSize () const |
| virtual uint32 | GetPetAutoSpellOnPos (uint8 pos) const |
| float | GetPetChaseDistance () const |
| void | SetCannotReachTarget (bool cannotReach) |
| bool | CanNotReachTarget () const |
| void | SetHomePosition (float x, float y, float z, float o) |
| void | SetHomePosition (Position const &pos) |
| void | GetHomePosition (float &x, float &y, float &z, float &ori) const |
| Position const & | GetHomePosition () const |
| void | SetTransportHomePosition (float x, float y, float z, float o) |
| void | SetTransportHomePosition (Position const &pos) |
| void | GetTransportHomePosition (float &x, float &y, float &z, float &ori) const |
| Position const & | GetTransportHomePosition () const |
| uint32 | GetWaypointPath () const |
| void | LoadPath (uint32 pathid) |
| std::pair< uint32, 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 |
| bool | IsDamageEnoughForLootingAndReward () const |
| void | LowerPlayerDamageReq (uint32 unDamage) |
| void | ResetPlayerDamageReq () |
| uint32 | GetOriginalEntry () const |
| void | SetOriginalEntry (uint32 entry) |
| void | SetRespawnCompatibilityMode (bool mode=true) |
| bool | GetRespawnCompatibilityMode () |
| void | SetTarget (ObjectGuid 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 |
| bool | IsEngaged () const override |
| void | AtEngage (Unit *target) override |
| void | AtDisengage () override |
| bool | HasCanSwimFlagOutOfCombat () const |
| void | RefreshCanSwimFlag (bool recheck=false) |
| std::string | GetDebugInfo () const override |
| void | ExitVehicle (Position const *exitPosition=nullptr) override |
| bool | IsImmuneToAll () const |
| void | SetImmuneToAll (bool apply, bool keepCombat) |
| virtual void | SetImmuneToAll (bool apply) |
| bool | IsImmuneToPC () const |
| void | SetImmuneToPC (bool apply, bool keepCombat) |
| virtual void | SetImmuneToPC (bool apply) |
| bool | IsImmuneToNPC () const |
| void | SetImmuneToNPC (bool apply, bool keepCombat) |
| virtual void | SetImmuneToNPC (bool apply) |
Public Member Functions inherited from Unit | |
| virtual | ~Unit () |
| bool | IsAIEnabled () const |
| void | AIUpdateTick (uint32 diff) |
| 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 |
| uint32 | GetDynamicFlags () const override |
| void | ReplaceAllDynamicFlags (uint32 flag) override |
| DiminishingLevels | GetDiminishing (DiminishingGroup group) const |
| void | IncrDiminishing (SpellInfo const *auraSpellInfo, bool triggered) |
| bool | ApplyDiminishingToDuration (SpellInfo const *auraSpellInfo, bool triggered, int32 &duration, WorldObject *caster, DiminishingLevels previousLevel) const |
| void | ApplyDiminishingAura (DiminishingGroup group, bool apply) |
| void | ClearDiminishings () |
| void | Heartbeat () override |
| void | setAttackTimer (WeaponAttackType type, uint32 time) |
| void | resetAttackTimer (WeaponAttackType type=BASE_ATTACK) |
| uint32 | getAttackTimer (WeaponAttackType type) const |
| bool | isAttackReady (WeaponAttackType type=BASE_ATTACK) const |
| bool | haveOffhandWeapon () const |
| bool | CanDualWield () const |
| float | GetCombatReach () const override |
| void | SetCombatReach (float combatReach) |
| float | GetBoundingRadius () const |
| void | SetBoundingRadius (float boundingRadius) |
| bool | IsWithinCombatRange (Unit const *obj, float dist2compare) const |
| bool | IsWithinMeleeRange (Unit const *obj) const |
| bool | IsWithinMeleeRangeAt (Position const &pos, Unit const *obj) const |
| float | GetMeleeRange (Unit const *target) const |
| void | _addAttacker (Unit *pAttacker) |
| void | _removeAttacker (Unit *pAttacker) |
| 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) |
| 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 |
| uint8 | GetLevel () const |
| uint8 | GetLevelForTarget (WorldObject const *) const override |
| void | SetLevel (uint8 lvl, bool sendUpdate=true) |
| uint8 | GetRace () const |
| void | SetRace (uint8 race) |
| uint32 | GetRaceMask () const |
| uint8 | GetClass () const |
| void | SetClass (uint8 classId) |
| uint32 | GetClassMask () const |
| Gender | GetGender () const |
| void | SetGender (Gender gender) |
| virtual Gender | GetNativeGender () const |
| virtual void | SetNativeGender (Gender gender) |
| float | GetStat (Stats stat) const |
| void | SetStat (Stats stat, int32 val) |
| uint32 | GetArmor () const |
| void | SetArmor (int32 val) |
| int32 | GetResistance (SpellSchools school) const |
| int32 | GetResistance (SpellSchoolMask mask) const |
| void | SetResistance (SpellSchools school, int32 val) |
| uint32 | GetHealth () const |
| uint32 | GetMaxHealth () const |
| bool | IsFullHealth () const |
| bool | HealthBelowPct (int32 pct) const |
| bool | HealthBelowPctDamaged (int32 pct, uint32 damage) const |
| bool | HealthAbovePct (int32 pct) const |
| bool | HealthAbovePctHealed (int32 pct, uint32 heal) const |
| float | GetHealthPct () const |
| uint32 | CountPctFromMaxHealth (int32 pct) const |
| uint32 | CountPctFromCurHealth (int32 pct) const |
| void | SetHealth (uint32 val) |
| void | SetMaxHealth (uint32 val) |
| void | SetFullHealth () |
| int32 | ModifyHealth (int32 val) |
| int32 | GetHealthGain (int32 dVal) |
| Powers | GetPowerType () const |
| void | SetPowerType (Powers power, bool sendUpdate=true) |
| void | UpdateDisplayPower () |
| uint32 | GetPower (Powers power) const |
| int32 | GetMinPower (Powers) const |
| uint32 | GetMaxPower (Powers power) const |
| float | GetPowerPct (Powers power) const |
| int32 | CountPctFromMaxPower (Powers power, int32 pct) const |
| void | SetPower (Powers power, uint32 val, bool withPowerUpdate=true, bool force=false) |
| void | SetMaxPower (Powers power, uint32 val) |
| void | SetFullPower (Powers power) |
| int32 | ModifyPower (Powers power, int32 val, bool withPowerUpdate=true) |
| uint32 | GetAttackTime (WeaponAttackType att) const |
| void | SetAttackTime (WeaponAttackType att, uint32 val) |
| void | ApplyAttackTimePercentMod (WeaponAttackType att, float val, bool apply) |
| void | ApplyCastTimePercentMod (float val, bool apply) |
| void | SetModCastingSpeed (float castingSpeed) |
| UnitFlags | GetUnitFlags () const |
| bool | HasUnitFlag (UnitFlags flags) const |
| void | SetUnitFlag (UnitFlags flags) |
| void | RemoveUnitFlag (UnitFlags flags) |
| void | ReplaceAllUnitFlags (UnitFlags flags) |
| UnitFlags2 | GetUnitFlags2 () const |
| bool | HasUnitFlag2 (UnitFlags2 flags) const |
| void | SetUnitFlag2 (UnitFlags2 flags) |
| void | RemoveUnitFlag2 (UnitFlags2 flags) |
| void | ReplaceAllUnitFlags2 (UnitFlags2 flags) |
| void | SetCreatedBySpell (int32 spellId) |
| Emote | GetEmoteState () const |
| void | SetEmoteState (Emote emote) |
| SheathState | GetSheath () const |
| virtual void | SetSheath (SheathState sheathed) |
| uint32 | GetFaction () const override |
| void | SetFaction (uint32 faction) override |
| bool | IsInPartyWith (Unit const *unit) const |
| bool | IsInRaidWith (Unit const *unit) const |
| void | GetPartyMembers (std::list< Unit * > &units) |
| bool | IsContestedGuard () const |
| UnitPVPStateFlags | GetPvpFlags () const |
| bool | HasPvpFlag (UnitPVPStateFlags flags) const |
| void | SetPvpFlag (UnitPVPStateFlags flags) |
| void | RemovePvpFlag (UnitPVPStateFlags flags) |
| void | ReplaceAllPvpFlags (UnitPVPStateFlags flags) |
| bool | IsInSanctuary () const |
| bool | IsPvP () const |
| bool | IsFFAPvP () const |
| virtual void | SetPvP (bool state) |
| UnitPetFlag | GetPetFlags () const |
| bool | HasPetFlag (UnitPetFlag flags) const |
| void | SetPetFlag (UnitPetFlag flags) |
| void | RemovePetFlag (UnitPetFlag flags) |
| void | ReplaceAllPetFlags (UnitPetFlag flags) |
| uint32 | GetCreatureType () const |
| uint32 | GetCreatureTypeMask () const |
| UnitStandStateType | GetStandState () const |
| bool | IsSitState () const |
| bool | IsStandState () const |
| void | SetStandState (UnitStandStateType state) |
| void | SetVisFlag (UnitVisFlags flags) |
| void | RemoveVisFlag (UnitVisFlags flags) |
| void | ReplaceAllVisFlags (UnitVisFlags flags) |
| AnimTier | GetAnimTier () const |
| void | SetAnimTier (AnimTier animTier) |
| bool | IsMounted () const |
| uint32 | GetMountDisplayId () const |
| void | SetMountDisplayId (uint32 mountDisplayId) |
| void | Mount (uint32 mount, uint32 vehicleId=0, uint32 creatureEntry=0) |
| void | Dismount () |
| uint32 | GetMaxSkillValueForLevel (Unit const *target=nullptr) const |
| void | KillSelf (bool durabilityLoss=true) |
| void | GetProcAurasTriggeredOnEvent (AuraApplicationProcContainer &aurasTriggeringProc, AuraApplicationList *procAuras, ProcEventInfo &eventInfo) |
| void | TriggerAurasProcOnEvent (Unit *actionTarget, uint32 typeMaskActor, uint32 typeMaskActionTarget, uint32 spellTypeMask, uint32 spellPhaseMask, uint32 hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo) |
| void | TriggerAurasProcOnEvent (ProcEventInfo &eventInfo, AuraApplicationProcContainer &procAuras) |
| void | HandleEmoteCommand (Emote emoteId) |
| void | AttackerStateUpdate (Unit *victim, WeaponAttackType attType=BASE_ATTACK, bool extra=false) |
| void | CalculateMeleeDamage (Unit *victim, CalcDamageInfo *damageInfo, WeaponAttackType attackType=BASE_ATTACK) |
| void | DealMeleeDamage (CalcDamageInfo *damageInfo, bool durabilityLoss) |
| void | HandleProcExtraAttackFor (Unit *victim, uint32 count) |
| void | SetLastExtraAttackSpell (uint32 spellId) |
| uint32 | GetLastExtraAttackSpell () const |
| void | AddExtraAttacks (uint32 count) |
| void | SetLastDamagedTargetGuid (ObjectGuid guid) |
| ObjectGuid | GetLastDamagedTargetGuid () const |
| void | CalculateSpellDamageTaken (SpellNonMeleeDamage *damageInfo, int32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=BASE_ATTACK, bool crit=false, bool blocked=false, Spell *spell=nullptr) |
| void | DealSpellDamage (SpellNonMeleeDamage const *damageInfo, bool durabilityLoss) |
| float | GetMeleeCritChanceReduction () const |
| float | GetRangedCritChanceReduction () const |
| float | GetSpellCritChanceReduction () const |
| uint32 | GetMeleeCritDamageReduction (uint32 damage) const |
| uint32 | GetRangedCritDamageReduction (uint32 damage) const |
| uint32 | GetSpellCritDamageReduction (uint32 damage) const |
| uint32 | GetMeleeDamageReduction (uint32 damage) const |
| uint32 | GetRangedDamageReduction (uint32 damage) const |
| uint32 | GetSpellDamageReduction (uint32 damage) const |
| virtual bool | CanApplyResilience () const |
| int32 | CalculateAOEAvoidance (int32 damage, uint32 schoolMask, ObjectGuid const &casterGuid) const |
| float | MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, int32 skillDiff, uint32 spellId) const override |
| SpellMissInfo | MeleeSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const override |
| float | GetUnitDodgeChance (WeaponAttackType attType, Unit const *victim) const |
| float | GetUnitParryChance (WeaponAttackType attType, Unit const *victim) const |
| float | GetUnitBlockChance (WeaponAttackType attType, Unit const *victim) const |
| float | GetUnitMissChance () const |
| float | GetUnitCriticalChanceDone (WeaponAttackType attackType) const |
| float | GetUnitCriticalChanceTaken (Unit const *attacker, WeaponAttackType attackType, float critDone) const |
| float | GetUnitCriticalChanceAgainst (WeaponAttackType attackType, Unit const *victim) const |
| int32 | GetMechanicResistChance (SpellInfo const *spellInfo) const |
| bool | CanUseAttackType (uint8 attacktype) const |
| uint32 | GetShieldBlockValue (uint32 soft_cap, uint32 hard_cap) const |
| uint32 | GetDefenseSkillValue (Unit const *target=nullptr) const |
| uint32 | GetWeaponSkillValue (WeaponAttackType attType, Unit const *target=nullptr) const |
| float | GetWeaponProcChance () const |
| float | GetPPMProcChance (uint32 WeaponSpeed, float PPM, SpellInfo const *spellProto) const |
| MeleeHitOutcome | RollMeleeOutcomeAgainst (Unit const *victim, WeaponAttackType attType) const |
| NPCFlags | GetNpcFlags () const |
| bool | HasNpcFlag (NPCFlags flags) const |
| void | SetNpcFlag (NPCFlags flags) |
| void | RemoveNpcFlag (NPCFlags flags) |
| void | ReplaceAllNpcFlags (NPCFlags flags) |
| bool | IsVendor () const |
| bool | IsTrainer () const |
| bool | IsQuestGiver () const |
| bool | IsGossip () const |
| bool | IsTaxi () const |
| bool | IsGuildMaster () const |
| bool | IsBattleMaster () const |
| bool | IsBanker () const |
| bool | IsInnkeeper () const |
| bool | IsSpiritHealer () const |
| bool | IsSpiritGuide () const |
| bool | IsTabardDesigner () const |
| bool | IsAuctioner () const |
| bool | IsArmorer () const |
| bool | IsServiceProvider () const |
| bool | IsSpiritService () const |
| bool | IsCritter () const |
| bool | IsInFlight () const |
| bool | CanHaveThreatList () const |
| ====================== THREAT & COMBAT ==================== | |
| bool | IsEngagedBy (Unit const *who) const |
| void | EngageWithTarget (Unit *who) |
| 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 | IsInCombat () const |
| bool | IsInCombatWith (Unit const *who) const |
| void | SetInCombatWith (Unit *enemy, bool addSecondUnitSuppressed=false) |
| void | ClearInCombat () |
| void | UpdatePetCombatState () |
| bool | IsThreatened () const |
| bool | IsThreatenedBy (Unit const *who) const |
| ThreatManager & | GetThreatManager () |
| ThreatManager const & | GetThreatManager () const |
| void | SendClearTarget () |
| bool | HasAuraTypeWithFamilyFlags (AuraType auraType, uint32 familyName, flag96 familyFlags) const |
| bool | HasBreakableByDamageAuraType (AuraType type, uint32 excludeAura=0) const |
| bool | HasBreakableByDamageCrowdControlAura (Unit *excludeCasterChannel=nullptr) const |
| bool | HasStealthAura () const |
| bool | HasInvisibilityAura () const |
| bool | IsFeared () const |
| bool | IsRooted () const |
| bool | IsPolymorphed () const |
| bool | IsFrozen () const |
| bool | isTargetableForAttack (bool checkFakeDeath=true) const |
| bool | IsInWater () const |
| bool | IsUnderWater () const |
| bool | isInAccessiblePlaceFor (Creature const *c) const |
| void | SendHealSpellLog (HealInfo &healInfo, bool critical=false) |
| int32 | HealBySpell (HealInfo &healInfo, bool critical=false) |
| void | SendEnergizeSpellLog (Unit *victim, uint32 spellId, int32 damage, Powers powerType) |
| void | EnergizeBySpell (Unit *victim, uint32 spellId, int32 damage, Powers powerType) |
| void | EnergizeBySpell (Unit *victim, SpellInfo const *spellInfo, int32 damage, Powers powerType) |
| Aura * | AddAura (uint32 spellId, Unit *target) |
| Aura * | AddAura (SpellInfo const *spellInfo, uint8 effMask, Unit *target) |
| void | SetAuraStack (uint32 spellId, Unit *target, uint32 stack) |
| void | SendPlaySpellVisualKit (uint32 id, uint32 type) const |
| void | DeMorph () |
| void | SendAttackStateUpdate (CalcDamageInfo *damageInfo) |
| void | SendAttackStateUpdate (uint32 HitInfo, Unit *target, uint8 SwingType, SpellSchoolMask damageSchoolMask, uint32 Damage, uint32 AbsorbDamage, uint32 Resist, VictimState TargetState, uint32 BlockedAmount) |
| void | SendSpellNonMeleeDamageLog (SpellNonMeleeDamage const *log) |
| void | SendPeriodicAuraLog (SpellPeriodicAuraLogInfo *pInfo) |
| void | SendSpellDamageResist (Unit *target, uint32 spellId) |
| void | SendSpellDamageImmune (Unit *target, uint32 spellId) |
| void | NearTeleportTo (Position const &pos, bool casting=false) |
| void | NearTeleportTo (float x, float y, float z, float orientation, bool casting=false) |
| void | SendTeleportPacket (Position const &pos, bool teleportingTransport=false) |
| virtual bool | UpdatePosition (float x, float y, float z, float ang, bool teleport=false) |
| virtual bool | UpdatePosition (Position const &pos, bool teleport=false) |
| void | UpdateOrientation (float orientation) |
| Only server-side orientation update, does not broadcast to client. | |
| void | UpdateHeight (float newZ) |
| Only server-side height update, does not broadcast to client. | |
| void | SendMoveKnockBack (Player *player, float speedXY, float speedZ, float vcos, float vsin) |
| void | KnockbackFrom (float x, float y, float speedXY, float speedZ) |
| void | JumpTo (float speedXY, float speedZ, bool forward=true, Optional< Position > dest={}) |
| void | JumpTo (WorldObject *obj, float speedZ, bool withOrientation=false) |
| void | MonsterMoveWithSpeed (float x, float y, float z, float speed, bool generatePath=false, bool forceDestination=false) |
| void | SetHoverHeight (float hoverHeight) |
| bool | IsGravityDisabled () const |
| bool | IsWalking () const |
| bool | IsHovering () const |
| bool | SetWalk (bool enable) |
| bool | SetDisableGravity (bool disable, bool updateAnimTier=true) |
| bool | SetFall (bool enable) |
| bool | SetSwim (bool enable) |
| bool | SetCanFly (bool enable, bool packetOnly=false) |
| bool | SetWaterWalking (bool enable) |
| bool | SetFeatherFall (bool enable) |
| bool | SetHover (bool enable, bool updateAnimTier=true) |
| void | SetInFront (WorldObject const *target) |
| void | SetFacingTo (float ori, bool force=true, uint32 movementId=EVENT_FACE) |
| void | SetFacingToObject (WorldObject const *object, bool force=true, uint32 movementId=EVENT_FACE) |
| bool | IsAlive () const |
| bool | isDying () const |
| bool | isDead () const |
| bool | IsGhouled () const |
| DeathState | getDeathState () const |
| ObjectGuid | GetOwnerGUID () const override |
| void | SetOwnerGUID (ObjectGuid owner) |
| ObjectGuid | GetCreatorGUID () const |
| void | SetCreatorGUID (ObjectGuid creator) |
| ObjectGuid | GetMinionGUID () const |
| void | SetMinionGUID (ObjectGuid guid) |
| ObjectGuid | GetPetGUID () const |
| void | SetPetGUID (ObjectGuid guid) |
| ObjectGuid | GetCritterGUID () const |
| void | SetCritterGUID (ObjectGuid guid) |
| ObjectGuid | GetCharmerGUID () const |
| 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 | IsCharming () 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) |
| bool | IsCharmerOrSelfPlayer () const |
| Unit * | GetCharmerOrSelf () const |
| Player * | GetCharmerOrSelfPlayer () const |
| Unit * | GetCharmedOrSelf () const |
| bool | IsMovedByClient () const |
| bool | IsMovedByServer () const |
| GameClient * | GetGameClientMovingMe () const |
| void | SetGameClientMovingMe (GameClient *gameClientMovingMe) |
| 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) |
| Aura * | _TryStackingOrRefreshingExistingAura (AuraCreateInfo &createInfo) |
| void | _AddAura (UnitAura *aura, Unit *caster) |
| AuraApplication * | _CreateAuraApplication (Aura *aura, uint8 effMask) |
| void | _ApplyAuraEffect (Aura *aura, uint8 effIndex) |
| void | _ApplyAura (AuraApplication *aurApp, uint8 effMask) |
| void | _UnapplyAura (AuraApplicationMap::iterator &i, AuraRemoveMode removeMode) |
| void | _UnapplyAura (AuraApplication *aurApp, AuraRemoveMode removeMode) |
| void | _RemoveNoStackAurasDueToAura (Aura *aura, bool owned) |
| void | _RegisterAuraEffect (AuraEffect *aurEff, bool apply) |
| 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, uint8 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, uint8 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, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (AuraApplication *aurApp, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAura (Aura *aur, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAppliedAuras (std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAuras (std::function< bool(Aura const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAppliedAuras (uint32 spellId, std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveOwnedAuras (uint32 spellId, std::function< bool(Aura const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAurasByType (AuraType auraType, std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAurasDueToSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAuraFromStack (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT) |
| void | RemoveAurasDueToSpellByDispel (uint32 spellId, uint32 dispellerSpellId, ObjectGuid casterGUID, WorldObject *dispeller, uint8 chargesRemoved=1) |
| void | RemoveAurasDueToSpellBySteal (uint32 spellId, ObjectGuid casterGUID, WorldObject *stealer) |
| void | RemoveAurasDueToItemSpell (uint32 spellId, ObjectGuid castItemGuid) |
| void | RemoveAurasByType (AuraType auraType, ObjectGuid casterGUID=ObjectGuid::Empty, Aura *except=nullptr, bool negative=true, bool positive=true) |
| void | RemoveNotOwnSingleTargetAuras (uint32 newPhase=0x0) |
| void | RemoveAurasWithInterruptFlags (uint32 flag, uint32 except=0) |
| void | RemoveAurasWithAttribute (SpellAttr0 flags) |
| void | RemoveAurasWithFamily (SpellFamilyNames family, flag96 const &familyFlag, ObjectGuid casterGUID) |
| void | RemoveAurasWithMechanic (uint32 mechanicMaskToRemove, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT, uint32 exceptSpellId=0, bool withEffectMechanics=false) |
| void | RemoveMovementImpairingAuras (bool withRoot) |
| void | RemoveAurasByShapeShift () |
| void | RemoveAreaAurasDueToLeaveWorld () |
| void | RemoveAllAuras () |
| void | RemoveArenaAuras () |
| void | RemoveAurasOnEvade () |
| void | RemoveAllAurasOnDeath () |
| void | RemoveAllAurasRequiringDeadTarget () |
| void | RemoveAllAurasExceptType (AuraType type) |
| void | RemoveAllAurasExceptType (AuraType type1, AuraType type2) |
| void | RemoveAllGroupBuffsFromCaster (ObjectGuid casterGUID) |
| void | DelayOwnedAuras (uint32 spellId, ObjectGuid caster, int32 delaytime) |
| void | _RemoveAllAuraStatMods () |
| void | _ApplyAllAuraStatMods () |
| AuraEffectList const & | GetAuraEffectsByType (AuraType type) const |
| 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 name, uint32 iconId, uint8 effIndex) const |
| AuraEffect * | GetAuraEffect (AuraType type, SpellFamilyNames family, uint32 familyFlag1, uint32 familyFlag2, uint32 familyFlag3, ObjectGuid casterGUID=ObjectGuid::Empty) const |
| AuraEffect * | GetDummyAuraEffect (SpellFamilyNames name, uint32 iconId, uint8 effIndex) const |
| AuraApplication * | GetAuraApplication (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraApplication *except=nullptr) const |
| Aura * | GetAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const |
| AuraApplication * | GetAuraApplicationOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraApplication *except=nullptr) const |
| Aura * | GetAuraOfRankedSpell (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const |
| void | GetDispellableAuraList (WorldObject const *caster, uint32 dispelMask, DispelChargesList &dispelList, bool isReflect=false) const |
| bool | HasAuraEffect (uint32 spellId, uint8 effIndex, ObjectGuid caster=ObjectGuid::Empty) const |
| uint32 | GetAuraCount (uint32 spellId) const |
| bool | HasAura (uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const |
| bool | HasAuraType (AuraType auraType) const |
| bool | HasAuraTypeWithCaster (AuraType auraType, ObjectGuid caster) const |
| bool | HasAuraTypeWithMiscvalue (AuraType auraType, int32 miscValue) const |
| bool | HasAuraTypeWithAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| bool | HasAuraTypeWithValue (AuraType auraType, int32 value) const |
| bool | HasAuraTypeWithTriggerSpell (AuraType auratype, uint32 triggerSpell) const |
| bool | HasNegativeAuraWithInterruptFlag (uint32 flag, ObjectGuid guid=ObjectGuid::Empty) const |
| bool | HasAuraWithMechanic (uint32 mechanicMask) const |
| bool | HasStrongerAuraWithDR (SpellInfo const *auraSpellInfo, Unit *caster, bool triggered) const |
| AuraEffect * | IsScriptOverriden (SpellInfo const *spell, int32 script) const |
| uint32 | GetDiseasesByCaster (ObjectGuid casterGUID, bool remove=false) |
| uint32 | GetDoTsByCaster (ObjectGuid casterGUID) const |
| int32 | GetTotalAuraModifier (AuraType auraType) const |
| float | GetTotalAuraMultiplier (AuraType auraType) const |
| int32 | GetMaxPositiveAuraModifier (AuraType auraType) const |
| int32 | GetMaxNegativeAuraModifier (AuraType auraType) const |
| int32 | GetTotalAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const |
| float | GetTotalAuraMultiplier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const |
| int32 | GetMaxPositiveAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const |
| int32 | GetMaxNegativeAuraModifier (AuraType auraType, std::function< bool(AuraEffect const *)> const &predicate) const |
| int32 | GetTotalAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const |
| float | GetTotalAuraMultiplierByMiscMask (AuraType auraType, uint32 misc_mask) const |
| int32 | GetMaxPositiveAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask, AuraEffect const *except=nullptr) const |
| int32 | GetMaxNegativeAuraModifierByMiscMask (AuraType auraType, uint32 misc_mask) const |
| int32 | GetTotalAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const |
| float | GetTotalAuraMultiplierByMiscValue (AuraType auraType, int32 misc_value) const |
| int32 | GetMaxPositiveAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const |
| int32 | GetMaxNegativeAuraModifierByMiscValue (AuraType auraType, int32 misc_value) const |
| int32 | GetTotalAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| float | GetTotalAuraMultiplierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| int32 | GetMaxPositiveAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| int32 | GetMaxNegativeAuraModifierByAffectMask (AuraType auraType, SpellInfo const *affectedSpell) const |
| void | UpdateResistanceBuffModsMod (SpellSchools school) |
| void | InitStatBuffMods () |
| void | UpdateStatBuffMod (Stats stat) |
| void | SetCreateStat (Stats stat, float val) |
| void | SetCreateHealth (uint32 val) |
| uint32 | GetCreateHealth () const |
| void | SetCreateMana (uint32 val) |
| uint32 | GetCreateMana () const |
| uint32 | GetCreatePowerValue (Powers power) const |
| float | GetPosStat (Stats stat) const |
| float | GetNegStat (Stats stat) const |
| float | GetCreateStat (Stats stat) const |
| uint32 | GetChannelSpellId () const |
| void | SetChannelSpellId (uint32 channelSpellId) |
| ObjectGuid | GetChannelObjectGuid () const |
| void | SetChannelObjectGuid (ObjectGuid guid) |
| void | SetCurrentCastSpell (Spell *pSpell) |
| void | InterruptSpell (CurrentSpellTypes spellType, bool withDelayed=true, bool withInstant=true, SpellCastResult result=SPELL_FAILED_INTERRUPTED, Optional< SpellCastResult > resultOther={}) |
| void | FinishSpell (CurrentSpellTypes spellType, bool ok=true) |
| bool | IsNonMeleeSpellCast (bool withDelayed, bool skipChanneled=false, bool skipAutorepeat=false, bool isAutoshoot=false, bool skipInstant=true) const |
| void | InterruptNonMeleeSpells (bool withDelayed, uint32 spellid=0, bool withInstant=true) |
| Spell * | GetCurrentSpell (CurrentSpellTypes spellType) const |
| Spell * | GetCurrentSpell (uint32 spellType) const |
| Spell * | FindCurrentSpellBySpellId (uint32 spell_id) const |
| int32 | GetCurrentSpellCastTime (uint32 spell_id) const |
| SpellHistory * | GetSpellHistory () |
| SpellHistory const * | GetSpellHistory () const |
| ShapeshiftForm | GetShapeshiftForm () const |
| void | SetShapeshiftForm (ShapeshiftForm form) |
| bool | IsInFeralForm () const |
| bool | IsInDisallowedMountForm () const |
| void | HandleStatFlatModifier (UnitMods unitMod, UnitModifierFlatType modifierType, float amount, bool apply) |
| void | ApplyStatPctModifier (UnitMods unitMod, UnitModifierPctType modifierType, float amount) |
| void | SetStatFlatModifier (UnitMods unitMod, UnitModifierFlatType modifierType, float val) |
| void | SetStatPctModifier (UnitMods unitMod, UnitModifierPctType modifierType, float val) |
| float | GetFlatModifierValue (UnitMods unitMod, UnitModifierFlatType modifierType) const |
| float | GetPctModifierValue (UnitMods unitMod, UnitModifierPctType modifierType) const |
| void | UpdateUnitMod (UnitMods unitMod) |
| 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 |
| Powers | GetPowerTypeByAuraGroup (UnitMods unitMod) const |
| bool | CanModifyStats () const |
| void | SetCanModifyStats (bool modifyStats) |
| virtual void | UpdateAllResistances () |
| void | SetAttackPower (int32 attackPower) |
| void | SetAttackPowerModPos (int32 attackPowerMod) |
| void | SetAttackPowerModNeg (int32 attackPowerMod) |
| void | SetAttackPowerMultiplier (float attackPowerMult) |
| void | SetRangedAttackPower (int32 attackPower) |
| void | SetRangedAttackPowerModPos (int32 attackPowerMod) |
| void | SetRangedAttackPowerModNeg (int32 attackPowerMod) |
| void | SetRangedAttackPowerMultiplier (float attackPowerMult) |
| virtual void | UpdateDamagePhysical (WeaponAttackType attType) |
| float | GetTotalAttackPowerValue (WeaponAttackType attType) const |
| float | GetWeaponDamageRange (WeaponAttackType attType, WeaponDamageRange type, uint8 damageIndex=0) const |
| void | SetBaseWeaponDamage (WeaponAttackType attType, WeaponDamageRange damageRange, float value, uint8 damageIndex=0) |
| uint32 | CalculateDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, uint8 itemDamagesMask=0) const |
| float | GetAPMultiplier (WeaponAttackType attType, bool normalized) const |
| bool | isInFrontInMap (Unit const *target, float distance, float arc=float(M_PI)) const |
| bool | isInBackInMap (Unit const *target, float distance, float arc=float(M_PI)) const |
| bool | IsVisible () const |
| void | SetVisible (bool x) |
| void | SetPhaseMask (uint32 newPhaseMask, bool update) override |
| void | UpdateObjectVisibility (bool forced=true) override |
| VisibleAuraMap const & | GetVisibleAuras () const |
| AuraApplication * | GetVisibleAura (uint8 slot) const |
| void | SetVisibleAura (uint8 slot, AuraApplication *aurApp) |
| void | RemoveVisibleAura (uint8 slot) |
| bool | HasInterruptFlag (uint32 flags) const |
| void | AddInterruptMask (uint32 flags) |
| void | UpdateInterruptMask () |
| virtual void | RecalculateObjectScale () |
| uint32 | GetDisplayId () const |
| uint32 | GetNativeDisplayId () const |
| void | RestoreDisplayId () |
| void | SetNativeDisplayId (uint32 displayId) |
| void | SetTransformSpell (uint32 spellid) |
| uint32 | GetTransformSpell () const |
| void | _RegisterDynObject (DynamicObject *dynObj) |
| void | _UnregisterDynObject (DynamicObject *dynObj) |
| 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 | 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 |
| uint32 | SpellDamageBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, Optional< float > const &donePctTotal, uint32 stack=1) const |
| float | SpellDamagePctDone (Unit *victim, SpellInfo const *spellProto, DamageEffectType damagetype) const |
| uint32 | SpellDamageBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype) const |
| int32 | SpellBaseHealingBonusDone (SpellSchoolMask schoolMask) const |
| uint32 | SpellHealingBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype, SpellEffectInfo const &spellEffectInfo, Optional< float > const &donePctTotal, uint32 stack=1) const |
| float | SpellHealingPctDone (Unit *victim, SpellInfo const *spellProto) const |
| uint32 | SpellHealingBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype) const |
| uint32 | MeleeDamageBonusDone (Unit *pVictim, uint32 damage, WeaponAttackType attType, SpellInfo const *spellProto=nullptr, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL) |
| uint32 | MeleeDamageBonusTaken (Unit *attacker, uint32 pdamage, WeaponAttackType attType, SpellInfo const *spellProto=nullptr, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL) |
| bool | IsBlockCritical () |
| float | SpellCritChanceDone (SpellInfo const *spellInfo, SpellSchoolMask schoolMask, WeaponAttackType attackType=BASE_ATTACK, bool isPeriodic=false) const |
| float | SpellCritChanceTaken (Unit const *caster, SpellInfo const *spellInfo, SpellSchoolMask schoolMask, float doneChance, WeaponAttackType attackType=BASE_ATTACK, bool isPeriodic=false) const |
| void | SetLastManaUse (uint32 spellCastTime) |
| bool | IsUnderLastManaUseEffect () const |
| uint32 | GetCastingTimeForBonus (SpellInfo const *spellProto, DamageEffectType damagetype, uint32 CastingTime) const |
| float | CalculateDefaultCoefficient (SpellInfo const *spellInfo, DamageEffectType damagetype) const |
| void | ApplySpellImmune (uint32 spellId, uint32 op, uint32 type, bool apply) |
| uint32 | GetSchoolImmunityMask () const |
| uint32 | GetDamageImmunityMask () const |
| uint32 | GetMechanicImmunityMask () const |
| bool | IsImmunedToDamage (SpellSchoolMask meleeSchoolMask) const |
| bool | IsImmunedToDamage (SpellInfo const *spellInfo) const |
| void | UpdateSpeed (UnitMoveType mtype) |
| float | GetSpeed (UnitMoveType mtype) const |
| float | GetSpeedRate (UnitMoveType mtype) const |
| void | SetSpeed (UnitMoveType mtype, float newValue) |
| void | SetSpeedRate (UnitMoveType mtype, float rate) |
| float | CalculateSpellpowerCoefficientLevelPenalty (SpellInfo const *spellInfo) const |
| void | FollowerAdded (AbstractFollower *f) |
| void | FollowerRemoved (AbstractFollower *f) |
| void | RemoveAllFollowers () |
| 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 (uint32 f) |
| void | RemoveUnitMovementFlag (uint32 f) |
| bool | HasUnitMovementFlag (uint32 f) const |
| uint32 | GetUnitMovementFlags () const |
| void | SetUnitMovementFlags (uint32 f) |
| void | AddExtraUnitMovementFlag (uint32 f) |
| void | RemoveExtraUnitMovementFlag (uint32 f) |
| bool | HasExtraUnitMovementFlag (uint32 f) const |
| uint32 | GetExtraUnitMovementFlags () const |
| void | SetExtraUnitMovementFlags (uint32 f) |
| bool | IsSplineEnabled () const |
| void | SetControlled (bool apply, UnitState state) |
| void | ApplyControlStatesIfNeeded () |
| uint8 | GetComboPoints (Unit const *who=nullptr) const |
| --------—Combo point system----------------— | |
| uint8 | GetComboPoints (ObjectGuid const &guid) const |
| Unit * | GetComboTarget () const |
| ObjectGuid | GetComboTargetGUID () const |
| void | AddComboPoints (Unit *target, int8 count) |
| void | AddComboPoints (int8 count) |
| void | ClearComboPoints () |
| void | SendComboPoints () |
| void | AddComboPointHolder (Unit *unit) |
| void | RemoveComboPointHolder (Unit *unit) |
| void | ClearComboPointHolders () |
| void | SendPetActionFeedback (PetActionFeedback msg, uint32 spellId) const |
| -------—Pet responses methods--------------— | |
| void | SendPetActionSound (PetAction action) const |
| void | SendPetDismissSound () const |
| void | SendPetAIReaction (ObjectGuid guid) const |
| void | PropagateSpeedChange () |
| -------—End of Pet responses methods-------— | |
| void | ClearAllReactives () |
| void | StartReactiveTimer (ReactiveType reactive) |
| void | UpdateReactives (uint32 p_time) |
| void | UpdateAuraForGroup (uint8 slot) |
| bool | CanProc () const |
| void | SetCantProc (bool apply) |
| uint32 | GetModelForForm (ShapeshiftForm form, uint32 spellId) const |
| bool | CreateVehicleKit (uint32 id, uint32 creatureEntry) |
| void | RemoveVehicleKit () |
| 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) |
| void | EnterVehicle (Unit *base, int8 seatId=-1) |
| void | ChangeSeat (int8 seatId, bool next=true) |
| void | _ExitVehicle (Position const *exitPosition=nullptr) |
| void | _EnterVehicle (Vehicle *vehicle, int8 seatId, AuraApplication const *aurApp=nullptr) |
| void | BuildMovementPacket (ByteBuffer *data) const |
| bool | isMoving () const |
| bool | isTurning () const |
| bool | IsFlying () const |
| bool | IsFalling () const |
| float | GetHoverOffset () const |
| uint32 | GetMovementCounterAndInc () |
| PlayerMovementPendingChange & | PeakFirstPendingMovementChange () |
| PlayerMovementPendingChange | PopPendingMovementChange () |
| void | PushPendingMovementChange (PlayerMovementPendingChange newChange) |
| bool | HasPendingMovementChange () const |
| bool | HasPendingMovementChange (MovementChangeType changeType) const |
| void | PurgeAndApplyPendingMovementChanges (bool informObservers=true) |
| void | RewardRage (uint32 damage, uint32 weaponSpeedHitFactor, bool attacker) |
| virtual float | GetFollowAngle () const |
| void | OutDebugInfo () const |
| virtual bool | IsLoading () const |
| bool | IsDuringRemoveFromWorld () const |
| 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 |
| int32 | GetHighestExclusiveSameEffectSpellGroupValue (AuraEffect const *aurEff, AuraType auraType, bool checkMiscValue=false, int32 miscValue=0) const |
| bool | IsHighestExclusiveAura (Aura const *aura, bool removeOtherAuraApplications=false) |
| bool | IsHighestExclusiveAuraEffect (SpellInfo const *spellInfo, AuraType auraType, int32 effectAmount, uint8 auraEffectMask, bool removeOtherAuraApplications=false) |
| virtual void | Talk (std::string_view text, ChatMsg msgType, Language language, float textRange, WorldObject const *target) |
| virtual void | Say (std::string_view text, Language language, WorldObject const *target=nullptr) |
| virtual void | Yell (std::string_view text, Language language, WorldObject const *target=nullptr) |
| virtual void | TextEmote (std::string_view text, WorldObject const *target=nullptr, bool isBossEmote=false) |
| virtual void | Whisper (std::string_view text, Language language, Player *target, bool isBossWhisper=false) |
| virtual void | Talk (uint32 textId, ChatMsg msgType, float textRange, WorldObject const *target) |
| virtual void | Say (uint32 textId, WorldObject const *target=nullptr) |
| virtual void | Yell (uint32 textId, WorldObject const *target=nullptr) |
| virtual void | TextEmote (uint32 textId, WorldObject const *target=nullptr, bool isBossEmote=false) |
| virtual void | Whisper (uint32 textId, Player *target, bool isBossWhisper=false) |
| float | GetCollisionHeight () const override |
| uint32 | GetVirtualItemId (uint32 slot) const |
| void | SetVirtualItem (uint32 slot, uint32 itemId) |
| bool | IsCombatDisallowed () const |
| void | SetIsCombatDisallowed (bool apply) |
| std::string | GetDebugInfo () const override |
Public Member Functions inherited from WorldObject | |
| virtual | ~WorldObject () |
| void | AddToWorld () override |
| void | RemoveFromWorld () override |
| void | GetNearPoint2D (WorldObject const *searcher, float &x, float &y, float distance, float absAngle) const |
| void | GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float distance2d, float absAngle) const |
| void | GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float relAngle=0) const |
| void | MovePosition (Position &pos, float dist, float angle) |
| Position | GetNearPosition (float dist, float angle) |
| void | MovePositionToFirstCollision (Position &pos, float dist, float angle) |
| Position | GetFirstCollisionPosition (float dist, float angle) |
| Position | GetRandomNearPosition (float radius) |
| void | GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const |
| void | UpdateGroundPositionZ (float x, float y, float &z) const |
| void | UpdateAllowedPositionZ (float x, float y, float &z, float *groundZ=nullptr) const |
| void | GetRandomPoint (Position const &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const |
| Position | GetRandomPoint (Position const &srcPos, float distance) const |
| uint32 | GetInstanceId () const |
| uint32 | GetPhaseMask () const |
| bool | InSamePhase (uint32 phasemask) const |
| bool | InSamePhase (WorldObject const *obj) const |
| uint32 | GetZoneId () const |
| uint32 | GetAreaId () const |
| void | GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const |
| bool | IsInWorldPvpZone () const |
| bool | IsOutdoors () const |
| ZLiquidStatus | GetLiquidStatus () const |
| InstanceScript * | GetInstanceScript () const |
| std::string const & | GetName () const |
| void | SetName (std::string newname) |
| std::string const & | 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) const |
| bool | IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const |
| bool | IsWithinLOS (float x, float y, float z, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const |
| bool | IsWithinLOSInMap (WorldObject const *obj, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const |
| Position | GetHitSpherePointFor (Position const &dest) const |
| void | GetHitSpherePointFor (Position const &dest, float &x, float &y, float &z) const |
| bool | GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const |
| bool | IsInRange (WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const |
| bool | IsInRange2d (float x, float y, float minRange, float maxRange) const |
| bool | IsInRange3d (float x, float y, float z, float minRange, float maxRange) const |
| bool | isInFront (WorldObject const *target, float arc=float(M_PI)) const |
| bool | isInBack (WorldObject const *target, float arc=float(M_PI)) const |
| bool | IsInBetween (Position const &pos1, Position const &pos2, float size=0) const |
| bool | IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const |
| virtual void | SendMessageToSet (WorldPacket const *data, bool self) const |
| virtual void | SendMessageToSetInRange (WorldPacket const *data, float dist, bool self) const |
| virtual void | SendMessageToSet (WorldPacket const *data, Player const *skipped_rcvr) const |
| void | PlayDistanceSound (uint32 soundId, Player *target=nullptr) |
| void | PlayDirectSound (uint32 soundId, Player *target=nullptr) |
| void | PlayDirectMusic (uint32 musicId, Player *target=nullptr) |
| void | SendObjectDeSpawnAnim (ObjectGuid guid) |
| void | AddObjectToRemoveList () |
| float | GetGridActivationRange () const |
| float | GetVisibilityRange () const |
| float | GetSightRange (WorldObject const *target=nullptr) const |
| bool | CanSeeOrDetect (WorldObject const *obj, bool implicitDetect=false, bool distanceCheck=false, bool checkAlert=false) const |
| virtual void | SetMap (Map *map) |
| virtual void | ResetMap () |
| Map * | GetMap () const |
| Map * | FindMap () const |
| void | SetZoneScript () |
| void | ClearZoneScript () |
| ZoneScript * | GetZoneScript () 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) |
| 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 distance) const |
| ObjectGuid | GetCharmerOrOwnerOrOwnGUID () const |
| Unit * | GetOwner () const |
| Unit * | GetCharmerOrOwner () const |
| Unit * | GetCharmerOrOwnerOrSelf () const |
| Player * | GetCharmerOrOwnerPlayerOrPlayerItself () const |
| Player * | GetAffectingPlayer () const |
| Player * | GetSpellModOwner () const |
| int32 | CalculateSpellDamage (SpellEffectInfo const &spellEffectInfo, int32 const *basePoints=nullptr) const |
| float | GetSpellMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
| float | GetSpellMinRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
| float | ApplyEffectModifiers (SpellInfo const *spellInfo, uint8 effIndex, float value) const |
| int32 | CalcSpellDuration (SpellInfo const *spellInfo) const |
| int32 | ModSpellDuration (SpellInfo const *spellInfo, WorldObject const *target, int32 duration, bool positive, uint32 effectMask) const |
| void | ModSpellCastTime (SpellInfo const *spellInfo, int32 &castTime, Spell *spell=nullptr) const |
| void | ModSpellDurationTime (SpellInfo const *spellInfo, int32 &durationTime, Spell *spell=nullptr) const |
| SpellMissInfo | MagicSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const |
| SpellMissInfo | SpellHitResult (Unit *victim, SpellInfo const *spellInfo, bool canReflect=false) const |
| void | SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo) |
| FactionTemplateEntry const * | GetFactionTemplateEntry () const |
| ReputationRank | GetReactionTo (WorldObject const *target) const |
| bool | IsHostileTo (WorldObject const *target) const |
| bool | IsHostileToPlayers () const |
| bool | IsFriendlyTo (WorldObject const *target) const |
| bool | IsNeutralToAll () const |
| SpellCastResult | CastSpell (CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ }) |
| bool | IsValidAttackTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const |
| bool | IsValidAssistTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const |
| 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 () |
| 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 |
| Transport * | 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 (Transport *t) |
| virtual float | GetStationaryX () const |
| virtual float | GetStationaryY () const |
| virtual float | GetStationaryZ () const |
| virtual float | GetStationaryO () const |
| float | GetFloorZ () const |
| float | GetMapWaterOrGroundLevel (float x, float y, float z, float *ground=nullptr) const |
| float | GetMapHeight (float x, float y, float z, bool vmap=true, float distanceToSearch=50.0f) const |
| std::string | GetDebugInfo () const override |
| bool | IsPrivateObject () const |
| ObjectGuid | GetPrivateObjectOwner () const |
| void | SetPrivateObjectOwner (ObjectGuid const &owner) |
| bool | CheckPrivateObjectOwnerVisibility (WorldObject const *seer) const |
Public Member Functions inherited from Object | |
| virtual | ~Object () |
| bool | IsInWorld () const |
| ObjectGuid | GetGUID () const |
| PackedGuid const & | GetPackGUID () const |
| uint32 | GetEntry () const |
| void | SetEntry (uint32 entry) |
| float | GetObjectScale () const |
| bool | HasDynamicFlag (uint32 flag) const |
| virtual void | SetDynamicFlag (uint32 flag) |
| virtual void | RemoveDynamicFlag (uint32 flag) |
| TypeID | GetTypeId () const |
| bool | isType (uint16 mask) const |
| virtual void | BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const |
| void | SendUpdateToPlayer (Player *player) |
| void | BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const |
| void | BuildOutOfRangeUpdateBlock (UpdateData *data) const |
| void | BuildMovementUpdateBlock (UpdateData *data, uint32 flags=0) const |
| int32 | GetInt32Value (uint16 index) const |
| uint32 | GetUInt32Value (uint16 index) const |
| uint64 | GetUInt64Value (uint16 index) const |
| float | GetFloatValue (uint16 index) const |
| uint8 | GetByteValue (uint16 index, uint8 offset) const |
| uint16 | GetUInt16Value (uint16 index, uint8 offset) const |
| ObjectGuid | GetGuidValue (uint16 index) const |
| void | SetInt32Value (uint16 index, int32 value) |
| void | SetUInt32Value (uint16 index, uint32 value) |
| void | UpdateUInt32Value (uint16 index, uint32 value) |
| void | SetUInt64Value (uint16 index, uint64 value) |
| void | SetFloatValue (uint16 index, float value) |
| void | SetByteValue (uint16 index, uint8 offset, uint8 value) |
| void | SetUInt16Value (uint16 index, uint8 offset, uint16 value) |
| void | SetInt16Value (uint16 index, uint8 offset, int16 value) |
| void | SetGuidValue (uint16 index, ObjectGuid value) |
| void | SetStatFloatValue (uint16 index, float value) |
| void | SetStatInt32Value (uint16 index, int32 value) |
| bool | AddGuidValue (uint16 index, ObjectGuid value) |
| bool | RemoveGuidValue (uint16 index, ObjectGuid value) |
| void | ApplyModUInt32Value (uint16 index, int32 val, bool apply) |
| void | ApplyModInt32Value (uint16 index, int32 val, bool apply) |
| void | ApplyModUInt16Value (uint16 index, uint8 offset, int16 val, bool apply) |
| void | ApplyModPositiveFloatValue (uint16 index, float val, bool apply) |
| void | ApplyModSignedFloatValue (uint16 index, float val, bool apply) |
| void | SetFlag (uint16 index, uint32 newFlag) |
| void | RemoveFlag (uint16 index, uint32 oldFlag) |
| void | ToggleFlag (uint16 index, uint32 flag) |
| bool | HasFlag (uint16 index, uint32 flag) const |
| void | ApplyModFlag (uint16 index, uint32 flag, bool apply) |
| void | SetByteFlag (uint16 index, uint8 offset, uint8 newFlag) |
| void | RemoveByteFlag (uint16 index, uint8 offset, uint8 newFlag) |
| void | ToggleByteFlag (uint16 index, uint8 offset, uint8 flag) |
| bool | HasByteFlag (uint16 index, uint8 offset, uint8 flag) const |
| void | ApplyModByteFlag (uint16 index, uint8 offset, uint8 flag, bool apply) |
| void | SetFlag64 (uint16 index, uint64 newFlag) |
| void | RemoveFlag64 (uint16 index, uint64 oldFlag) |
| void | ToggleFlag64 (uint16 index, uint64 flag) |
| bool | HasFlag64 (uint16 index, uint64 flag) const |
| void | ApplyModFlag64 (uint16 index, uint64 flag, bool apply) |
| void | ClearUpdateMask (bool remove) |
| uint16 | GetValuesCount () const |
| void | SetIsNewObject (bool enable) |
| void | BuildFieldsUpdate (Player *, UpdateDataMapType &) const |
| void | SetFieldNotifyFlag (uint16 flag) |
| void | RemoveFieldNotifyFlag (uint16 flag) |
| void | ForceValuesUpdateAtIndex (uint32) |
| bool | IsWorldObject () const |
| WorldObject * | ToWorldObject () |
| WorldObject const * | ToWorldObject () const |
| bool | IsItem () const |
| Item * | ToItem () |
| Item const * | ToItem () const |
| bool | IsPlayer () const |
| Player * | ToPlayer () |
| Player const * | ToPlayer () const |
| bool | IsCreature () const |
| Creature * | ToCreature () |
| Creature const * | ToCreature () const |
| bool | IsUnit () const |
| Unit * | ToUnit () |
| Unit const * | ToUnit () const |
| bool | IsGameObject () const |
| GameObject * | ToGameObject () |
| GameObject const * | ToGameObject () const |
| bool | IsCorpse () const |
| Corpse * | ToCorpse () |
| Corpse const * | ToCorpse () const |
| bool | IsDynObject () const |
| DynamicObject * | ToDynObject () |
| DynamicObject const * | ToDynObject () const |
| Trinity::unique_weak_ptr< Object > | GetWeakPtr () const |
Public Member Functions inherited from WorldLocation | |
| WorldLocation () | |
| WorldLocation (uint32 _mapId, float x, float y, float z=0.0f, float o=0.0f) | |
| WorldLocation (uint32 mapId, Position const &position) | |
| void | WorldRelocate (WorldLocation const &loc) |
| void | WorldRelocate (WorldLocation const *loc) |
| void | WorldRelocate (uint32 mapId, Position const &pos) |
| void | WorldRelocate (uint32 mapId=MAPID_INVALID, float x=0.f, float y=0.f, float z=0.f, float o=0.f) |
| WorldLocation | GetWorldLocation () const |
| uint32 | GetMapId () const |
| std::string | GetDebugInfo () const |
Public Member Functions inherited from Position | |
| Position () | |
| Position (float x, float y, float z=0.0f, float o=0.0f) | |
| bool | operator== (Position const &a) const |
| void | Relocate (float x, float y) |
| void | Relocate (float x, float y, float z) |
| void | Relocate (float x, float y, float z, float o) |
| void | Relocate (Position const &pos) |
| void | Relocate (Position const *pos) |
| void | RelocateOffset (Position const &offset) |
| void | SetOrientation (float orientation) |
| float | GetPositionX () const |
| float | GetPositionY () const |
| float | GetPositionZ () const |
| float | GetOrientation () const |
| void | GetPosition (float &x, float &y) const |
| void | GetPosition (float &x, float &y, float &z) const |
| void | GetPosition (float &x, float &y, float &z, float &o) const |
| Position | GetPosition () const |
| Streamer< XY > | PositionXYStream () |
| ConstStreamer< XY > | PositionXYStream () const |
| Streamer< XYZ > | PositionXYZStream () |
| ConstStreamer< XYZ > | PositionXYZStream () const |
| Streamer< XYZO > | PositionXYZOStream () |
| ConstStreamer< XYZO > | PositionXYZOStream () const |
| Streamer< PackedXYZ > | PositionPackedXYZStream () |
| ConstStreamer< PackedXYZ > | PositionPackedXYZStream () const |
| bool | IsPositionValid () const |
| float | GetExactDist2dSq (const float x, const float y) const |
| float | GetExactDist2dSq (Position const &pos) const |
| float | GetExactDist2dSq (Position const *pos) const |
| float | GetExactDist2d (const float x, const float y) const |
| float | GetExactDist2d (Position const &pos) const |
| float | GetExactDist2d (Position const *pos) const |
| float | GetExactDistSq (float x, float y, float z) const |
| float | GetExactDistSq (Position const &pos) const |
| float | GetExactDistSq (Position const *pos) const |
| float | GetExactDist (float x, float y, float z) const |
| float | GetExactDist (Position const &pos) const |
| float | GetExactDist (Position const *pos) const |
| void | GetPositionOffsetTo (Position const &endPos, Position &retOffset) const |
| Position | GetPositionWithOffset (Position const &offset) const |
| float | GetAbsoluteAngle (float x, float y) const |
| float | GetAbsoluteAngle (Position const &pos) const |
| float | GetAbsoluteAngle (Position const *pos) const |
| float | ToAbsoluteAngle (float relAngle) const |
| float | ToRelativeAngle (float absAngle) const |
| float | GetRelativeAngle (float x, float y) const |
| float | GetRelativeAngle (Position const &pos) const |
| float | GetRelativeAngle (Position const *pos) const |
| void | GetSinCos (float x, float y, float &vsin, float &vcos) const |
| bool | IsInDist2d (float x, float y, float dist) const |
| bool | IsInDist2d (Position const *pos, float dist) const |
| bool | IsInDist (float x, float y, float z, float dist) const |
| bool | IsInDist (Position const &pos, float dist) const |
| bool | IsInDist (Position const *pos, float dist) const |
| bool | IsWithinBox (Position const ¢er, float xradius, float yradius, float zradius) const |
| bool | IsWithinDoubleVerticalCylinder (Position const *center, float radius, float height) const |
| bool | HasInArc (float arcangle, Position const *pos, float border=2.0f) const |
| bool | HasInLine (Position const *pos, float objSize, float width) const |
| std::string | ToString () const |
Public Member Functions inherited from GridObject< Creature > | |
| virtual | ~GridObject () |
| bool | IsInGrid () const |
| void | AddToGrid (GridRefManager< Creature > &m) |
| void | RemoveFromGrid () |
Static Public Member Functions | |
| static bool | DeleteFromDB (ObjectGuid::LowType spawnId) |
| static float | _GetDamageMod (int32 Rank) |
Static Public Member Functions inherited from Unit | |
| static float | CalculateAverageResistReduction (WorldObject const *caster, SpellSchoolMask schoolMask, Unit const *victim, SpellInfo const *spellInfo=nullptr) |
| static void | DealDamageMods (Unit const *victim, uint32 &damage, uint32 *absorb) |
| static uint32 | DealDamage (Unit *attacker, Unit *victim, uint32 damage, CleanDamage const *cleanDamage=nullptr, DamageEffectType damagetype=DIRECT_DAMAGE, SpellSchoolMask damageSchoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *spellProto=nullptr, bool durabilityLoss=true) |
| static void | Kill (Unit *attacker, Unit *victim, bool durabilityLoss=true) |
| static void | DealHeal (HealInfo &healInfo) |
| static void | ProcSkillsAndAuras (Unit *actor, Unit *actionTarget, uint32 typeMaskActor, uint32 typeMaskActionTarget, uint32 spellTypeMask, uint32 spellPhaseMask, uint32 hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo) |
| static void | ApplyResilience (Unit const *victim, float *crit, int32 *damage, bool isCrit, CombatRating type) |
| static uint32 | SpellCriticalDamageBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit *victim) |
| static uint32 | SpellCriticalHealingBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit *victim) |
| static bool | IsDamageReducedByArmor (SpellSchoolMask damageSchoolMask, SpellInfo const *spellInfo=nullptr) |
| static uint32 | CalcArmorReducedDamage (Unit const *attacker, Unit *victim, uint32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=MAX_ATTACK, uint8 attackerLevel=0) |
| static uint32 | CalcSpellResistedDamage (Unit const *attacker, Unit *victim, uint32 damage, SpellSchoolMask schoolMask, SpellInfo const *spellInfo) |
| static void | CalcAbsorbResist (DamageInfo &damageInfo, Spell *spell=nullptr) |
| static void | CalcHealAbsorb (HealInfo &healInfo) |
| static void | BuildMovementPacket (Position const &pos, Position const &transportPos, MovementInfo const &movementInfo, ByteBuffer *data) |
Static Public Member Functions inherited from WorldObject | |
| static bool | InSamePhase (WorldObject const *a, WorldObject const *b) |
| static ReputationRank | GetFactionReactionTo (FactionTemplateEntry const *factionTemplateEntry, WorldObject const *target) |
Static Public Member Functions inherited from Object | |
| static ObjectGuid | GetGUID (Object const *o) |
| static WorldObject * | ToWorldObject (Object *o) |
| static WorldObject const * | ToWorldObject (Object const *o) |
| static Item * | ToItem (Object *o) |
| static Item const * | ToItem (Object const *o) |
| static Player * | ToPlayer (Object *o) |
| static Player const * | ToPlayer (Object const *o) |
| static Creature * | ToCreature (Object *o) |
| static Creature const * | ToCreature (Object const *o) |
| static Unit * | ToUnit (Object *o) |
| static Unit const * | ToUnit (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 Public Member Functions inherited from Position | |
| static float | NormalizeOrientation (float o) |
Protected Member Functions | |
| bool | CreateFromProto (ObjectGuid::LowType guidlow, uint32 entry, CreatureData const *data=nullptr, uint32 vehId=0) |
| bool | InitEntry (uint32 entry, CreatureData const *data=nullptr) |
| void | RegenerateHealth () |
| void | Regenerate (Powers power) |
| bool | IsInvisibleDueToDespawn () const override |
| bool | CanAlwaysSee (WorldObject const *obj) const override |
Protected Member Functions inherited from Unit | |
| void | SetAI (UnitAI *newAI) |
| UnitAI * | GetTopAI () const |
| void | RefreshAI () |
| UnitAI * | GetScheduledChangeAI () |
| bool | HasScheduledAIChange () const |
| Unit (bool isWorldObject) | |
| void | BuildValuesUpdate (uint8 updatetype, ByteBuffer *data, Player const *target) const override |
| void | DestroyForPlayer (Player *target, bool onDeath) const override |
| void | _UpdateSpells (uint32 time) |
| void | _DeleteRemovedAuras () |
| void | _UpdateAutoRepeatSpell () |
| 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 |
| virtual void | ProcessTerrainStatusUpdate (ZLiquidStatus oldLiquidStatus, Optional< LiquidData > const &newLiquidData) |
| virtual void | AtEnterCombat () |
| virtual void | AtExitCombat () |
| void | SetFeared (bool apply) |
| void | SetConfused (bool apply) |
| void | SetStunned (bool apply) |
| void | SetRooted (bool apply) |
Protected Member Functions inherited from WorldObject | |
| WorldObject (bool isWorldObject) | |
| void | SetLocationMapId (uint32 _mapId) |
| void | SetLocationInstanceId (uint32 _instanceId) |
| virtual bool | IsNeverVisible (bool allowServersideObjects) const |
Protected Member Functions inherited from Object | |
| Object () | |
| void | _InitValues () |
| void | _Create (ObjectGuid const &guid) |
| bool | _LoadIntoDataField (std::string const &data, uint32 startOffset, uint32 count) |
| uint32 | GetUpdateFieldData (Player const *target, uint32 *&flags) const |
| void | BuildMovementUpdate (ByteBuffer *data, uint16 flags) const |
| void | AddToObjectUpdateIfNeeded () |
Protected Member Functions inherited from MapObject | |
| MapObject () | |
Static Protected Member Functions | |
| static float | _GetHealthMod (int32 Rank) |
Private Member Functions | |
| void | ForcedDespawn (uint32 timeMSToDespawn=0, Seconds forceRespawnTimer=0s) |
| bool | CheckNoGrayAggroConfig (uint32 playerLevel, uint32 creatureLevel) const |
| void | ReacquireSpellFocusTarget () |
Private Attributes | ||
| uint32 | _waypointPathId | |
| std::pair< uint32, uint32 > | _currentWaypointNodeInfo | |
| CreatureGroup * | m_formation | |
| bool | m_triggerJustAppeared | |
| bool | m_respawnCompatibilityMode | |
| struct { | ||
| ::Spell const * Spell = nullptr | ||
| uint32 Delay = 0 | ||
| ObjectGuid Target | ||
| float Orientation = 0.0f | ||
| } | _spellFocusInfo | |
| time_t | _lastDamagedTime | |
| CreatureTextRepeatGroup | m_textRepeat | |
| bool | _regenerateHealth | |
| bool | _regenerateHealthLock | |
| bool | _isMissingCanSwimFlagOutOfCombat | |
Additional Inherited Members | |
Public Types inherited from Unit | |
| typedef std::set< Unit * > | AttackerSet |
| typedef std::set< Unit * > | ControlList |
| typedef std::vector< Unit * > | UnitVector |
| typedef std::multimap< uint32, Aura * > | AuraMap |
| typedef std::pair< AuraMap::const_iterator, AuraMap::const_iterator > | AuraMapBounds |
| typedef std::pair< AuraMap::iterator, AuraMap::iterator > | AuraMapBoundsNonConst |
| typedef std::multimap< uint32, AuraApplication * > | AuraApplicationMap |
| typedef std::pair< AuraApplicationMap::const_iterator, AuraApplicationMap::const_iterator > | AuraApplicationMapBounds |
| typedef std::pair< AuraApplicationMap::iterator, AuraApplicationMap::iterator > | AuraApplicationMapBoundsNonConst |
| typedef std::multimap< AuraStateType, AuraApplication * > | AuraStateAurasMap |
| typedef std::pair< AuraStateAurasMap::const_iterator, AuraStateAurasMap::const_iterator > | AuraStateAurasMapBounds |
| typedef std::list< AuraEffect * > | AuraEffectList |
| typedef std::list< Aura * > | AuraList |
| typedef std::list< AuraApplication * > | AuraApplicationList |
| typedef std::array< DiminishingReturn, DIMINISHING_MAX > | Diminishing |
| typedef std::vector< std::pair< uint8, AuraApplication * > > | AuraApplicationProcContainer |
| typedef std::map< uint8, AuraApplication * > | VisibleAuraMap |
Protected Types inherited from Unit | |
| typedef std::list< DynamicObject * > | DynObjectList |
| typedef std::list< GameObject * > | GameObjectList |
Definition at line 70 of file Creature.h.
|
explicit |
Definition at line 254 of file Creature.cpp.
References CONFIG_SIGHT_MONSTER, CREATURE_REGEN_INTERVAL, DisableReputationGain, m_CombatDistance, m_isTempWorldObject, Unit::m_regenTimer, m_SightDistance, m_spells, Object::m_valuesCount, MAX_CREATURE_SPELLS, ResetLootMode(), sWorld, and UNIT_END.
|
static |
Definition at line 1518 of file Creature.cpp.
References CREATURE_ELITE_ELITE, CREATURE_ELITE_NORMAL, CREATURE_ELITE_RARE, CREATURE_ELITE_RAREELITE, CREATURE_ELITE_WORLDBOSS, RATE_CREATURE_ELITE_ELITE_DAMAGE, RATE_CREATURE_ELITE_RARE_DAMAGE, RATE_CREATURE_ELITE_RAREELITE_DAMAGE, RATE_CREATURE_ELITE_WORLDBOSS_DAMAGE, RATE_CREATURE_NORMAL_DAMAGE, and sWorld.
Referenced by ObjectMgr::CheckCreatureTemplate().
|
staticprotected |
Definition at line 1493 of file Creature.cpp.
References CREATURE_ELITE_ELITE, CREATURE_ELITE_NORMAL, CREATURE_ELITE_RARE, CREATURE_ELITE_RAREELITE, CREATURE_ELITE_WORLDBOSS, RATE_CREATURE_ELITE_ELITE_HP, RATE_CREATURE_ELITE_RARE_HP, RATE_CREATURE_ELITE_RAREELITE_HP, RATE_CREATURE_ELITE_WORLDBOSS_HP, RATE_CREATURE_NORMAL_HP, and sWorld.
Referenced by Guardian::InitStatsForLevel(), SetSpawnHealth(), and UpdateLevelDependantStats().
| bool Creature::_IsTargetAcceptable | ( | Unit const * | target | ) | const |
Definition at line 2420 of file Creature.cpp.
References ASSERT, CanIgnoreFeignDeath(), Vehicle::GetBase(), Unit::HasUnitFlag2(), Unit::HasUnitState(), Unit::IsEngagedBy(), WorldObject::IsFriendlyTo(), WorldObject::IsHostileTo(), 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 234 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 Object.
Reimplemented in Pet.
Definition at line 279 of file Creature.cpp.
References Unit::AddToWorld(), AIM_Initialize(), Map::GetCreatureBySpawnIdStore(), Object::GetGUID(), WorldObject::GetMap(), Map::GetObjectsStore(), Unit::GetVehicleKit(), WorldObject::GetZoneScript(), TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE >::Insert(), Vehicle::Install(), Object::IsInWorld(), Unit::IsVehicle(), m_spawnId, ZoneScript::OnCreatureCreate(), SearchFormation(), TC_LOG_DEBUG, and Position::ToString().
|
inline |
Definition at line 163 of file Creature.h.
References Unit::GetAI().
Referenced by Player::AddQuestAndCheckCompletion(), AIM_Initialize(), AtEngage(), npc_anubisath_sentinel::aqsentinelAI::CallBuddiesToAttack(), CanAlwaysSee(), CanCreatureAttack(), boss_veknilash::boss_veknilashAI::CastSpellOnBug(), BattlegroundAV::ChangeMineOwner(), spell_razorscale_flame_breath::CheckDamage(), spell_putricide_mutation_init::CheckRequirementInternal(), spell_icehowl_trample::CheckTargets(), netherspite_infernal::netherspite_infernalAI::Cleanup(), CreatureUnitRelocationWorker(), hyjalAI::DeSpawnVeins(), npc_halion_controller::DoAction(), npc_orb_carrier::DoAction(), npc_high_overlord_saurfang_icc::DoAction(), npc_muradin_bronzebeard_icc::DoAction(), boss_gluth::DoAction(), SummonList::DoActionImpl(), Spell::TargetInfo::DoDamageAndTriggers(), HomeMovementGenerator< T >::DoFinalize(), DoMovementInform(), DoMovementInform(), hyjalAI::DoOverrun(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::DoSpeech(), Spell::GOTargetInfo::DoTargetSpellHit(), SummonList::DoZoneInCombat(), TrashJumpEvent::Execute(), LightningFieldEvent::Execute(), CaptainSurviveTalk::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_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_auriaya_agro_creator::HandleDummyEffect(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleGossipSelectOptionOpcode(), npc_commandscript::HandleNpcEvadeCommand(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcSetDataCommand(), WorldSession::HandlePetActionHelper(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverHelloOpcode(), spell_putricide_unstable_experiment::HandleScript(), spell_the_lich_king_vile_spirit_move_target_search::HandleScript(), spell_pilgrims_bounty_turkey_tracker::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_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(), boss_priestess_lackey_commonAI::JustDied(), npc_fel_crystal::JustDied(), boss_twinemperorsAI::JustDied(), npc_anubisath_sentinel::aqsentinelAI::JustDied(), npc_watcher_gashra::JustDied(), npc_watcher_narjil::JustDied(), npc_watcher_silthik::JustDied(), boss_freya::boss_freyaAI::JustDied(), boss_twinemperorsAI::JustEngagedWith(), boss_freya::boss_freyaAI::JustEngagedWith(), boss_emalon::JustEngagedWith(), boss_marli::JustSummoned(), boss_skeram::boss_skeramAI::JustSummoned(), WorldBossAI::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(), CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadInitializeScript(), CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::LoadResetScript(), FormationMovementGenerator::MovementInform(), WaypointMovementGenerator< Creature >::MovementInform(), npc_geezle::npc_geezleAI::NextStep(), spell_headless_horseman_yell_timer::OnApply(), WaypointMovementGenerator< Creature >::OnArrived(), achievement_oh_novos::OnCheck(), achievement_flu_shot_shortage::OnCheck(), achievement_intense_cold::OnCheck(), instance_blackrock_spire::instance_blackrock_spireMapScript::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(), boss_doomrel::boss_doomrelAI::OnGossipSelect(), npc_jaina_proudmoore::npc_jaina_proudmooreAI::OnGossipSelect(), npc_barada::npc_baradaAI::OnGossipSelect(), go_amberpine_outhouse::go_amberpine_outhouseAI::OnGossipSelect(), instance_ulduar::instance_ulduar_InstanceMapScript::OnPlayerEnter(), go_crystalline_tear::go_crystalline_tearAI::OnQuestAccept(), go_crystal_prison::go_crystal_prisonAI::OnQuestAccept(), spell_taldaram_flame_ball_visual::OnRemove(), at_kelthuzad_center::OnTrigger(), at_nethekurse_exit::OnTrigger(), at_commander_dawnforge::OnTrigger(), instance_uldaman::instance_uldaman_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(), OrderWhelpTargetSelector::operator()(), FrostwingGauntletRespawner::operator()(), npc_jungle_punch_target::proceedCwEvent(), SmartScript::ProcessAction(), RemoveCorpse(), 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(), npc_crate_helper::npc_crate_helperAI::SpellHit(), npc_stalagg::SpellHit(), npc_feugen::SpellHit(), spell_putricide_ooze_channel::StartAttack(), WaypointMovementGenerator< Creature >::StartMove(), hyjalAI::SummonCreature(), boss_sindragosa::SummonedCreatureDespawn(), boss_valithria_dreamwalker::SummonedCreatureDespawn(), boss_zuramat::SummonedCreatureDespawn(), boss_malchezaar::boss_malchezaarAI::SummonInfernal(), boss_twinemperorsAI::TeleportToMyBrother(), spell_igb_check_for_players::TriggerWipe(), CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadDestroyScript(), CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadResetScript(), Update(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::Update(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), npc_thalorien_dawnseeker::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(), npc_high_overlord_saurfang_icc::UpdateAI(), npc_muradin_bronzebeard_icc::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 1007 of file Creature.cpp.
References Motion_Initialize(), FactorySelector::SelectAI(), and Unit::SetAI().
Referenced by AIM_Initialize().
| bool Creature::AIM_Destroy | ( | ) |
Definition at line 1000 of file Creature.cpp.
References Unit::PopAI(), and Unit::RefreshAI().
Referenced by CreatureGameObjectScriptRegistrySwapHooks< ObjectType, ScriptType, Base >::UnloadDestroyScript().
| bool Creature::AIM_Initialize | ( | CreatureAI * | ai = nullptr | ) |
Definition at line 1016 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 2729 of file Creature.cpp.
References GetCreatureTemplate(), GameTime::GetGameTime(), hasLootRecipient(), LootStore::HaveLootFor(), Unit::IsPet(), loot, LOOT_SKINNING, Loot::loot_type, LootTemplates_Skinning, m_corpseDelay, m_corpseRemoveTime, m_ignoreCorpseDecayRatio, m_respawnDelay, m_respawnTime, RATE_CORPSE_DECAY_LOOTED, Unit::SetUnitFlag(), sWorld, and UNIT_FLAG_SKINNABLE.
Referenced by WorldSession::DoLootRelease(), and Unit::Kill().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 3264 of file Creature.cpp.
References Unit::AtDisengage(), Unit::ClearUnitState(), GetCreatureTemplate(), Object::HasDynamicFlag(), Unit::IsAlive(), Unit::IsGuardian(), Unit::IsPet(), MOVE_FLIGHT, MOVE_RUN, MOVE_SWIM, Unit::ReplaceAllDynamicFlags(), UNIT_DYNFLAG_TAPPED, UNIT_STATE_ATTACK_PLAYER, and Unit::UpdateSpeed().
Referenced by CreatureAI::EngagementOver().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 3226 of file Creature.cpp.
References AI(), Unit::AtEngage(), CREATURE_TYPE_FLAG_ALLOW_MOUNTED_COMBAT, Unit::Dismount(), GetCreatureTemplate(), MotionMaster::GetCurrentMovementGeneratorType(), GetFormation(), Unit::GetMotionMaster(), Position::GetPosition(), ObjectAccessor::GetUnit(), Unit::GetVehicleKit(), Unit::IsAIEnabled(), IsEscorted(), Unit::IsGuardian(), Unit::IsPet(), MOVE_FLIGHT, MOVE_RUN, MOVE_SWIM, POINT_MOTION_TYPE, RefreshCanSwimFlag(), SetHomePosition(), Object::ToCreature(), Unit::UpdateSpeed(), and WAYPOINT_MOTION_TYPE.
Referenced by CreatureAI::EngagementStart().
|
overridevirtual |
Implements Unit.
Definition at line 1160 of file StatSystem.cpp.
References BASE_ATTACK, BASE_PCT, BASE_VALUE, CreatureTemplate::BaseVariance, Unit::CanUseAttackType(), Unit::GetAPMultiplier(), GetCreatureTemplate(), Unit::GetFlatModifierValue(), Unit::GetPctModifierValue(), Unit::GetTotalAttackPowerValue(), Unit::GetWeaponDamageRange(), Unit::haveOffhandWeapon(), MAXDAMAGE, MINDAMAGE, CreatureTemplate::ModDamage, 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 2314 of file Creature.cpp.
References AssistDelayEvent::AddAssistant(), EventProcessor::AddEvent(), EventProcessor::CalculateTime(), CONFIG_CREATURE_FAMILY_ASSISTANCE_DELAY, CONFIG_CREATURE_FAMILY_ASSISTANCE_RADIUS, Unit::EnsureVictim(), Object::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 2344 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 1867 of file Creature.cpp.
References AI(), and Unit::IsAIEnabled().
Definition at line 2366 of file Creature.cpp.
References Unit::GetCharmerOrOwnerGUID(), Unit::GetFaction(), Object::GetTypeId(), HasReactState(), Unit::HasUnitFlag(), Unit::IsAlive(), IsCivilian(), IsEngaged(), WorldObject::IsFriendlyTo(), WorldObject::IsHostileTo(), IsImmuneToNPC(), IsInEvadeMode(), REACT_AGGRESSIVE, Object::ToCreature(), TYPEID_UNIT, UNIT_FLAG_NON_ATTACKABLE, and UNIT_FLAG_UNINTERACTIBLE.
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 2467 of file Creature.cpp.
References AI(), Unit::GetCharmerOrOwner(), Unit::GetCharmerOrOwnerGUID(), Unit::GetCombatReach(), GameTime::GetGameTime(), GetLastDamagedTime(), WorldObject::GetMap(), GetMovementTemplate(), Object::GetTypeId(), WorldObject::GetVisibilityRange(), Unit::HasAuraType(), Unit::isInAccessiblePlaceFor(), Position::IsInDist(), Position::IsInDist2d(), IsInEvadeMode(), WorldObject::IsInMap(), Object::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().
|
overridevirtual |
Implements Unit.
Definition at line 2710 of file Creature.cpp.
References CanSwim(), GetMovementTemplate(), and CreatureMovementData::IsSwimAllowed().
Referenced by PathGenerator::CreateFilter(), Unit::isInAccessiblePlaceFor(), and RefreshCanSwimFlag().
|
inlineoverridevirtual |
Implements Unit.
Definition at line 117 of file Creature.h.
References Unit::IsFlying().
Referenced by PathGenerator::BuildPolyPath(), CanStartAttack(), Unit::isInAccessiblePlaceFor(), and LoadFromDB().
| bool Creature::CanGeneratePickPocketLoot | ( | ) | const |
Definition at line 3179 of file Creature.cpp.
References _pickpocketLootRestore, and GameTime::GetGameTime().
Referenced by Player::SendLoot().
| bool Creature::CanGiveExperience | ( | ) | const |
Definition at line 3211 of file Creature.cpp.
References CREATURE_FLAG_EXTRA_NO_XP, CreatureTemplate::flags_extra, GetCreatureTemplate(), Unit::IsCritter(), Unit::IsPet(), and Unit::IsTotem().
Referenced by Trinity::XP::Gain().
|
inline |
Definition at line 118 of file Creature.h.
References Hover, and Unit::IsHovering().
Referenced by UpdateMovementFlags().
|
inline |
Definition at line 258 of file Creature.h.
References CREATURE_FLAG_EXTRA_IGNORE_FEIGN_DEATH.
Referenced by _IsTargetAcceptable().
|
inline |
Definition at line 300 of file Creature.h.
Referenced by Update().
|
inline |
Definition at line 293 of file Creature.h.
Referenced by RegenerateHealth().
| bool Creature::CanResetTalents | ( | Player * | player, |
| bool | pet | ||
| ) | const |
Definition at line 1238 of file Creature.cpp.
References Trainer::Class, Object::GetEntry(), Unit::GetLevel(), Trainer::Trainer::GetTrainerType(), Trainer::Trainer::IsTrainerValidForPlayer(), Trainer::Pet, and sObjectMgr.
Referenced by WorldSession::HandleTalentWipeConfirmOpcode(), and Player::PrepareGossipMenu().
| bool Creature::CanStartAttack | ( | Unit const * | u, |
| bool | force | ||
| ) | const |
Definition at line 1875 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(), Object::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 2699 of file Creature.cpp.
References Unit::CanSwim(), and Unit::IsPet().
Referenced by PathGenerator::BuildPolyPath(), CanEnterWater(), and UpdateMovementFlags().
|
inline |
Definition at line 114 of file Creature.h.
Referenced by PathGenerator::CreateFilter(), and Unit::isInAccessiblePlaceFor().
Definition at line 1914 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 3204 of file Creature.cpp.
References m_textRepeat.
Referenced by CreatureTextMgr::SendChat().
| bool Creature::Create | ( | ObjectGuid::LowType | guidlow, |
| Map * | map, | ||
| uint32 | phaseMask, | ||
| uint32 | entry, | ||
| Position const & | pos, | ||
| CreatureData const * | data = nullptr, |
||
| uint32 | vehId = 0, |
||
| bool | dynamic = false |
||
| ) |
Relocate before CreateFromProto, to initialize coords and allow returning correct zone id for selecting OutdoorPvP/Battlefield script
Definition at line 1043 of file Creature.cpp.
References Unit::AddUnitState(), Unit::ApplySpellImmune(), ASSERT, CONFIG_CORPSE_DECAY_ELITE, CONFIG_CORPSE_DECAY_NORMAL, CONFIG_CORPSE_DECAY_RARE, CONFIG_CORPSE_DECAY_RAREELITE, CONFIG_CORPSE_DECAY_WORLDBOSS, CreateFromProto(), CREATURE_ELITE_ELITE, CREATURE_ELITE_RARE, CREATURE_ELITE_RAREELITE, CREATURE_ELITE_WORLDBOSS, 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, GetCreatureTemplate(), Map::GetFullTerrainStatusForPosition(), WorldObject::GetMap(), Position::GetOrientation(), WorldObject::GetPhaseMask(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetScriptId(), Unit::GetThreatManager(), GHOST_VISIBILITY_ALIVE, GHOST_VISIBILITY_GHOST, IMMUNITY_EFFECT, ThreatManager::Initialize(), Map::IsDungeon(), Position::IsPositionValid(), Unit::IsSpiritGuide(), Unit::IsSpiritHealer(), WorldObject::LastUsedScriptID, m_corpseDelay, m_respawnDelay, WorldObject::m_serverSideVisibility, WorldObject::m_serverSideVisibilityDetect, Unit::ProcessPositionDataChanged(), Position::Relocate(), SERVERSIDE_VISIBILITY_GHOST, WorldObject::SetMap(), SetPhaseMask(), 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, CreatureTemplate::type_flags, and UNIT_STATE_IGNORE_PATHFINDING.
Referenced by Battleground::AddCreature(), debug_commandscript::HandleDebugSpawnVehicleCommand(), npc_commandscript::HandleNpcAddCommand(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), LoadFromDB(), Battlefield::SpawnCreature(), Map::SummonCreature(), and Transport::SummonPassenger().
|
protected |
Definition at line 1556 of file Creature.cpp.
References Object::_Create(), Unit::CreateVehicleKit(), CreatureTemplate::Entry, ZoneScript::GetCreatureEntry(), GetCreatureTemplate(), WorldObject::GetZoneScript(), SetOriginalEntry(), WorldObject::SetZoneScript(), sObjectMgr, TC_LOG_ERROR, Unit::UpdateDisplayPower(), UpdateEntry(), and CreatureTemplate::VehicleId.
Referenced by Create().
|
static |
Definition at line 1781 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::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 OPvPCapturePoint::DelCreature(), npc_commandscript::HandleNpcDeleteCommand(), wp_commandscript::HandleWpModifyCommand(), and wp_commandscript::HandleWpShowCommand().
| void Creature::DespawnOrUnsummon | ( | Milliseconds | timeToDespawn = 0s, |
| Seconds | forceRespawnTime = 0s |
||
| ) |
Definition at line 2182 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(), boss_thaddius::BeginResetEncounter(), npc_stalagg::BeginResetEncounter(), npc_feugen::BeginResetEncounter(), boss_ionar::CallBackSparks(), spell_the_lich_king_vile_spirit_damage_target_search::CheckTargetCount(), spell_the_lich_king_ice_burst_target_search::CheckTargetCount(), npc_dark_fiend::DamageTaken(), npc_spirit_of_the_lynx::DamageTaken(), npc_terenas_menethil::DamageTaken(), npc_saronite_vapors::npc_saronite_vaporsAI::DamageTaken(), npc_iron_construct::npc_iron_constructAI::DamageTaken(), npc_tiger_matriarch::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(), npc_dark_fiend::DoAction(), npc_spirit_of_the_lynx::DoAction(), npc_fire_bomb_zulaman::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_algalon_the_observer::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(), npc_swarm_scarab::DoAction(), npc_melee_hover_disk::DoAction(), npc_arcane_overload::DoAction(), Spell::EffectScriptEffect(), Spell::EffectTameCreature(), boss_arlokk::EnterEvadeMode(), 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(), npc_towering_infernal::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(), ForcedDespawnDelayEvent::Execute(), ValithriaDelayedCastEvent::Execute(), UlduarKeeperDespawnEvent::Execute(), AuraEffect::HandleAuraControlVehicle(), spell_mimiron_clear_fires::spell_mimiron_clear_fires_SpellScript::HandleDummy(), spell_gen_despawn_self::HandleDummy(), spell_item_complete_raptor_capture::HandleDummy(), npc_commandscript::HandleNpcMoveCommand(), pet_commandscript::HandlePetCreateCommand(), 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_illidan_cage_trap::HandleScriptEffect(), 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_image_belgaristrasz::IsSummonedBy(), npc_flame_of_ragnaros::JustAppeared(), npc_void_sentinel_summoner::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_ranshalla::npc_ranshallaAI::JustDidDialogueStep(), npc_kilrek::npc_kilrekAI::JustDied(), npc_zulian_prowler::JustDied(), npc_arthas_stratholme::npc_arthas_stratholmeAI::JustDied(), npc_belnistrasz::npc_belnistraszAI::JustDied(), npc_qiraj_war_spawn::npc_qiraj_war_spawnAI::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(), 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_deathbringer_saurfang::JustSummoned(), boss_the_lich_king::JustSummoned(), npc_risen_archmage::JustSummoned(), boss_gothik::JustSummoned(), npc_collapsing_star::JustSummoned(), npc_tiger_matriarch::KilledUnit(), npc_bone_spike::KilledUnit(), npc_anubarak_spike::MoveInLineOfSight(), npc_dkc1_gothik::npc_dkc1_gothikAI::MoveInLineOfSight(), npc_depth_charge::MoveInLineOfSight(), npc_spectator::MovementInform(), boss_essence_of_suffering::MovementInform(), boss_essence_of_desire::MovementInform(), npc_spirit_shade::npc_spirit_shadeAI::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(), npc_twilight_volunteer::MovementInform(), npc_barrett_toc::MovementInform(), npc_brann_bronzebeard_algalon::MovementInform(), npc_azure_saboteur::MovementInform(), npc_released_offspring_harkoa::MovementInform(), npc_spark_of_ionar::MovementInform(), npc_wounded_skirmisher::MovementInform(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::MovementInform(), BattlefieldWG::OnCreatureCreate(), instance_blackrock_spire::instance_blackrock_spireMapScript::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_rizzle_sprysprocket::OnGossipSelect(), spell_vexallus_energy_feedback::OnPeriodic(), spell_taldaram_flame_ball_visual::OnRemove(), npc_shadow_image::OnSpellCast(), npc_dream_portal::OnSpellClick(), npc_descend_into_madness::npc_descend_into_madnessAI::OnSpellClick(), FrostwingGauntletRespawner::operator()(), OrbsDespawner::operator()(), ValithriaDespawner::operator()(), npc_wyrmrest_skytalon::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(), 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_hive_zara_swarmer::SpellHit(), npc_buru_egg::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(), npc_felblood_kaelthas_phoenix::SummonedCreatureDies(), npc_phoenix_the_eye::SummonedCreatureDies(), npc_violet_hold_teleportation_portal::SummonedCreatureDies(), npc_violet_hold_teleportation_portal_elite::SummonedCreatureDies(), boss_freya::boss_freyaAI::SummonedCreatureDies(), VehicleAI::UpdateAI(), EscortAI::UpdateAI(), boss_victor_nefarius::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(), npc_giant_spotlight::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::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(), 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_dk_rune_weapon::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(), SmartAI::UpdateDespawn(), npc_rinji::npc_rinjiAI::UpdateEscortAI(), SmartAI::UpdatePath(), npc_rizzle_sprysprocket::WaypointPathEnded(), npc_abomination::npc_abominationAI::WaypointReached(), npc_ghoul::npc_ghoulAI::WaypointReached(), and npc_rizzle_sprysprocket::WaypointStarted().
|
inline |
Definition at line 82 of file Creature.h.
Referenced by npc_lord_gregor_lescovar::npc_lord_gregor_lescovarAI::EnterEvadeMode(), npc_marzon_silent_blade::npc_marzon_silent_bladeAI::EnterEvadeMode(), Battlefield::HideNpc(), boss_paletress::boss_paletressAI::MovementInform(), boss_eadric::boss_eadricAI::MovementInform(), npc_unleashed_ballAI::MovementInform(), npc_geezle::npc_geezleAI::NextStep(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::OnCreatureCreate(), 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(), npc_tyrion_spybot::npc_tyrion_spybotAI::UpdateAI(), and npc_emily::WaypointReached().
| void Creature::DoFleeToGetAssistance | ( | ) |
Definition at line 974 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 npc_blackfathom_deeps_event::DamageTaken(), npc_nagrand_banner::npc_kil_sorrow_spellbinderAI::DamageTaken(), and SmartScript::ProcessAction().
|
inline |
Definition at line 276 of file Creature.h.
Referenced by CreatureAI::SetBoundary().
| void Creature::DoNotReacquireSpellFocusTarget | ( | ) |
Definition at line 3160 of file Creature.cpp.
References _spellFocusInfo.
Referenced by CreatureAI::_EnterEvadeMode(), boss_drakkari_colossus::DamageTaken(), boss_drakkari_elemental::DamageTaken(), npc_pet_dk_rune_weapon::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), ScriptedAI::ForceCombatStop(), and setDeathState().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 3296 of file Creature.cpp.
References Unit::ExitVehicle(), Position::GetPosition(), Unit::GetVehicle(), Unit::IsAlive(), and SetHomePosition().
Referenced by boss_mimiron::boss_mimironAI::JustDied(), npc_ros_dark_rider::npc_ros_dark_riderAI::JustEngagedWith(), and boss_tyrannus::UpdateAI().
Definition at line 2130 of file Creature.cpp.
References EventProcessor::AddEvent(), WorldObject::AddObjectToRemoveList(), Map::ApplyDynamicModeRespawnScaling(), EventProcessor::CalculateTime(), CONFIG_RESPAWN_DYNAMICMODE, WorldObject::DestroyForNearbyPlayers(), 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(), and sWorld.
Referenced by DespawnOrUnsummon().
| float Creature::GetAggroRange | ( | Unit const * | target | ) | const |
Definition at line 2943 of file Creature.cpp.
References Unit::GetLevelForTarget(), GetLevelForTarget(), Unit::GetTotalAuraModifier(), Object::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 2765 of file Creature.cpp.
References Object::GetEntry(), and sObjectMgr.
Referenced by GetDebugInfo(), npc_commandscript::HandleNpcInfoCommand(), and npc_commandscript::HandleNpcSetDataCommand().
| float Creature::GetAttackDistance | ( | Unit const * | player | ) | const |
Definition at line 1929 of file Creature.cpp.
References CONFIG_MAX_PLAYER_LEVEL, Unit::GetCombatReach(), GetCreatureTemplate(), Unit::GetLevel(), GetMaxLevelForExpansion(), Unit::GetTotalAuraModifier(), RATE_CREATURE_AGGRO, SPELL_AURA_MOD_DETECT_RANGE, SPELL_AURA_MOD_DETECTED_RANGE, and sWorld.
Referenced by WorldObject::CanDetectStealthOf(), CanStartAttack(), boss_twinemperorsAI::MoveInLineOfSight(), npc_hadronox_crusherPackAI::MoveInLineOfSight(), boss_krik_thir::MoveInLineOfSight(), npc_gatewatcher_petAI::MoveInLineOfSight(), and npc_pet_hunter_snake_trap::UpdateAI().
|
inline |
Definition at line 277 of file Creature.h.
|
inline |
Definition at line 104 of file Creature.h.
Referenced by ForcedDespawn(), and FrostwingGauntletRespawner::operator()().
| CreatureAddon const * Creature::GetCreatureAddon | ( | ) | const |
Definition at line 2518 of file Creature.cpp.
References Entry, GetCreatureTemplate(), m_spawnId, and sObjectMgr.
Referenced by LoadCreaturesAddon(), and UpdateEntry().
|
inline |
Definition at line 196 of file Creature.h.
Referenced by GetScriptId(), npc_commandscript::HandleNpcInfoCommand(), boss_valithria_dreamwalker::InitializeAI(), FrostwingGauntletRespawner::operator()(), setDeathState(), npc_argent_captainAI::SpellHit(), EscortAI::Start(), FollowerAI::StartFollow(), and EscortAI::UpdateAI().
|
inline |
Definition at line 195 of file Creature.h.
Referenced by AllLootRemovedFromCorpse(), Vehicle::ApplyAllImmunities(), EscortAI::AssistPlayerInCombatAgainst(), SmartAI::AssistPlayerInCombatAgainst(), AtDisengage(), AtEngage(), boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::boss_flame_leviathan_seatAI(), Player::BuildPetTalentsInfoData(), Unit::BuildValuesUpdate(), CalculateMinMaxDamage(), CanGiveExperience(), Spell::CheckCast(), Create(), Pet::CreateBaseAtCreature(), CreateFromProto(), Unit::DealMeleeDamage(), Spell::EffectSkinning(), Spell::EffectSummonType(), Trinity::XP::Gain(), GetAttackDistance(), GetCreatureAddon(), Unit::GetCreatureType(), Player::GetDefaultGossipMenuForSource(), GetMovementTemplate(), GetNativeObjectScale(), Pet::GetNativeObjectScale(), Player::GetNPCIfCanInteractWith(), Unit::GetUnitBlockChance(), Unit::GetUnitParryChance(), WorldSession::HandleGossipHelloOpcode(), learn_commandscript::HandleLearnAllPetTalentsCommand(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcSetFactionIdCommand(), npc_commandscript::HandleNpcTameCommand(), pet_commandscript::HandlePetCreateCommand(), WorldSession::HandleQuestgiverHelloOpcode(), WorldSession::HandleSellItemOpcode(), Pet::HaveInDiet(), InitEntry(), EscortAI::InitializeAI(), boss_felmyst::InitializeAI(), npc_dark_fiend::InitializeAI(), npc_icicle::InitializeAI(), npc_flash_freeze_init::InitializeAI(), npc_flash_freeze_combat::InitializeAI(), npc_blackheart_the_inciter_dummy::InitializeAI(), Pet::InitLevelupSpellsForLevel(), Guardian::InitStatsForLevel(), isElite(), IsImmunedToSpellEffect(), Unit::IsInPartyWith(), Unit::IsInRaidWith(), Pet::IsPermanentPetFor(), WorldObject::IsValidAttackTarget(), isWorldBoss(), boss_anubarak_trial::JustSummoned(), Unit::Kill(), Pet::LearnPetPassives(), Player::LearnPetTalent(), LoadTemplateImmunities(), 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_tirion_fordring_tft::OnGossipSelect(), npc_harrison_jones::npc_harrison_jonesAI::OnGossipSelect(), npc_bountiful_table::npc_bountiful_tableAI::PassengerBoarded(), spell_item_extract_gas::PeriodicTick(), Player::PetSpellInitialize(), Unit::RemoveCharmedBy(), npc_sironas::npc_sironasAI::Reset(), npc_amanitar_mushrooms::Reset(), npc_frost_sphere::Reset(), npc_chaotic_rift::Reset(), Pet::resetTalents(), Player::RewardReputation(), SaveToDB(), SelectLevel(), Player::SendLoot(), Unit::SetCharmedBy(), setDeathState(), SetSpawnHealth(), FollowerAI::ShouldAssistPlayerInCombatAgainst(), npc_clintar_spirit::npc_clintar_spiritAI::StartEvent(), UpdateEntry(), GameEventMgr::UpdateEventNPCFlags(), UpdateLevelDependantStats(), UpdateMovementFlags(), Unit::UpdateSpeed(), Player::UpdateWeaponSkill(), and npc_ruul_snowhoof::npc_ruul_snowhoofAI::WaypointReached().
|
inline |
Definition at line 186 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 316 of file Creature.h.
Referenced by SmartAI::PausePath(), and SmartAI::StopPath().
|
overridevirtual |
Reimplemented from Object.
Reimplemented in TempSummon, Minion, Guardian, and Pet.
Definition at line 3287 of file Creature.cpp.
References GetAIName(), Unit::GetDebugInfo(), GetScriptName(), GetSpawnId(), and GetWaypointPath().
Referenced by CreatureAI::EngagementOver(), CreatureAI::EngagementStart(), ScriptedAI::ForceCombatStopForCreatureEntry(), TempSummon::GetDebugInfo(), LoadFromDB(), ReacquireSpellFocusTarget(), SetCannotReachTarget(), and Update().
|
inlineoverridevirtual |
|
inline |
Definition at line 322 of file Creature.h.
Referenced by AtEngage(), FormationMovementGenerator::DoUpdate(), npc_commandscript::HandleNpcAddFormationCommand(), SmartAI::JustReachedHome(), and npc_cameron::UpdateAI().
|
inline |
Definition at line 305 of file Creature.h.
Referenced by GetRespawnPosition(), and SaveRespawnTime().
|
inline |
Definition at line 304 of file Creature.h.
Referenced by boss_hadronox::CanAIAttack(), npc_arthas_stratholme::npc_arthas_stratholmeAI::CanAIAttack(), boss_drekthar::CheckInRoom(), boss_galvangar::CheckInRoom(), 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(), instance_stratholme::instance_stratholme_InstanceMapScript::OnUnitDeath(), 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_broodlord::UpdateAI(), boss_priestess_delrissa::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), boss_onyxia::UpdateAI(), npc_thrall_herald_of_war::npc_thrall_herald_of_warAI::UpdateAI(), npc_valkyr_shadowguard::UpdateAI(), boss_ioc_horde_alliance::UpdateAI(), boss_sapphiron::UpdateAI(), boss_anomalus::UpdateAI(), npc_bloodmage_laurith::UpdateAI(), boss_warchief_kargath_bladefist::UpdateAI(), boss_high_astromancer_solarian::UpdateAI(), and CreatureAI::VisualizeBoundary().
|
inline |
Definition at line 358 of file Creature.h.
Referenced by CanCreatureAttack().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 2752 of file Creature.cpp.
References CONFIG_WORLD_BOSS_LEVEL_DIFF, Unit::GetLevel(), Unit::GetLevelForTarget(), isWorldBoss(), sWorld, and Object::ToUnit().
Referenced by CanStartAttack(), and GetAggroRange().
|
inline |
Definition at line 231 of file Creature.h.
Referenced by Unit::Kill().
| Player * Creature::GetLootRecipient | ( | ) | const |
Definition at line 1249 of file Creature.cpp.
References ObjectAccessor::FindConnectedPlayer(), and m_lootRecipient.
Referenced by SmartScript::GetTargets(), debug_commandscript::HandleDebugGetLootRecipientCommand(), spell_borean_tundra_magnataur_on_death_1::HandleScript(), Player::isAllowedToLoot(), boss_blood_queen_lana_thel::JustDied(), boss_the_lich_king::JustDied(), Unit::Kill(), SmartScript::ProcessAction(), and Player::SendLoot().
| Group * Creature::GetLootRecipientGroup | ( | ) | const |
Definition at line 1257 of file Creature.cpp.
References ObjectGuid::IsEmpty(), m_lootRecipientGroup, and sGroupMgr.
Referenced by SmartScript::GetTargets(), Player::isAllowedToLoot(), isTappedBy(), npc_sironas::npc_sironasAI::JustDied(), Unit::Kill(), and Player::SendLoot().
|
inline |
Definition at line 222 of file Creature.h.
Referenced by Player::isAllowedToLoot(), and Player::SendLoot().
|
inlineoverridevirtual |
Implements Unit.
Definition at line 167 of file Creature.h.
Referenced by ThreatReference::ShouldBeSuppressed().
| CreatureMovementData const & Creature::GetMovementTemplate | ( | ) | const |
Definition at line 2691 of file Creature.cpp.
References GetCreatureTemplate(), m_spawnId, CreatureTemplate::Movement, and sObjectMgr.
Referenced by CanCreatureAttack(), CanEnterWater(), WorldSession::HandleBattlemasterHelloOpcode(), WorldSession::HandleGossipHelloOpcode(), npc_commandscript::HandleNpcInfoCommand(), WorldSession::HandleQuestgiverHelloOpcode(), LoadTemplateRoot(), WorldSession::SendListInventory(), RandomMovementGenerator< T >::SetRandomLocation(), ChaseMovementGenerator::Update(), and UpdateMovementFlags().
|
overridevirtual |
Implements Object.
Definition at line 2888 of file Creature.cpp.
References DEFAULT_LOCALE, Object::GetEntry(), WorldObject::GetName(), CreatureLocale::Name, and sObjectMgr.
Referenced by Pet::CreateBaseAtCreature().
|
overridevirtual |
Reimplemented from Unit.
Reimplemented in Pet.
Definition at line 3007 of file Creature.cpp.
References GetCreatureTemplate(), and CreatureTemplate::scale.
Referenced by Pet::GetNativeObjectScale(), InitEntry(), and Guardian::InitStatsForLevel().
|
inline |
Definition at line 335 of file Creature.h.
Referenced by FrostwingGauntletRespawner::operator()().
|
inline |
Definition at line 185 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 2904 of file Creature.cpp.
References ACT_ENABLED, UnitActionBarEntry::GetAction(), CharmInfo::GetCharmSpell(), UnitActionBarEntry::GetType(), Unit::m_charmInfo, and MAX_SPELL_CHARM.
Referenced by GetPetChaseDistance(), and PetAI::UpdateAI().
|
inlinevirtual |
Reimplemented in Pet.
Definition at line 295 of file Creature.h.
References MAX_SPELL_CHARM.
Referenced by GetPetChaseDistance(), and PetAI::UpdateAI().
| float Creature::GetPetChaseDistance | ( | ) | const |
Definition at line 2912 of file Creature.cpp.
References GetPetAutoSpellOnPos(), GetPetAutoSpellSize(), and sSpellMgr.
Referenced by PetAI::DoAttack().
|
inline |
Definition at line 129 of file Creature.h.
Referenced by Player::CharmSpellInitialize(), boss_drakkari_colossus::DoAction(), Pet::FillPetInfo(), npc_commandscript::HandleNpcInfoCommand(), Player::PetSpellInitialize(), Pet::SavePetToDB(), 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 340 of file Creature.h.
Referenced by npc_commandscript::HandleNpcInfoCommand().
|
inline |
Definition at line 270 of file Creature.h.
Referenced by ForcedDespawn(), npc_commandscript::HandleNpcInfoCommand(), FrostwingGauntletRespawner::operator()(), EscortAI::Start(), and FollowerAI::StartFollow().
| void Creature::GetRespawnPosition | ( | float & | x, |
| float & | y, | ||
| float & | z, | ||
| float * | ori = nullptr, |
||
| float * | dist = nullptr |
||
| ) | const |
Definition at line 2621 of file Creature.cpp.
References GetHomePosition(), Position::GetPosition(), 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 264 of file Creature.h.
| time_t Creature::GetRespawnTimeEx | ( | ) | const |
Definition at line 2607 of file Creature.cpp.
References GameTime::GetGameTime(), and m_respawnTime.
Referenced by npc_commandscript::HandleNpcInfoCommand().
| uint32 Creature::GetScriptId | ( | ) | const |
Definition at line 2775 of file Creature.cpp.
References ASSERT_NOTNULL, creatureData, GetCreatureData(), Object::GetEntry(), and sObjectMgr.
Referenced by Create(), ScriptMgr::GetCreatureAI(), GetScriptName(), WorldSession::HandleGossipSelectOptionOpcode(), ScriptMgr::OnAddPassenger(), ScriptMgr::OnInstall(), ScriptMgr::OnInstallAccessory(), ScriptMgr::OnRemovePassenger(), ScriptMgr::OnReset(), ScriptMgr::OnUninstall(), and UpdateEntry().
| std::string Creature::GetScriptName | ( | ) | const |
Definition at line 2770 of file Creature.cpp.
References GetScriptId(), and sObjectMgr.
Referenced by GetDebugInfo(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcSetDataCommand(), EscortAI::LoadPath(), FactorySelector::SelectAI(), and EscortAI::Start().
|
overridevirtual |
Implements Unit.
Definition at line 2597 of file Creature.cpp.
References Unit::GetLevel(), Unit::GetStat(), and STAT_STRENGTH.
|
inline |
Definition at line 92 of file Creature.h.
Referenced by BattlegroundAV::AddAVCreature(), FormationMgr::AddCreatureToGroup(), CreatureGroup::AddMember(), OPvPCapturePointZM_Graveyard::CanTalkTo(), GetDebugInfo(), GameEventMgr::GetNPCFlag(), SmartScript::GetScript(), WorldSession::HandleAuctionSellItem(), debug_commandscript::HandleDebugCombatListCommand(), debug_commandscript::HandleDebugGetLootRecipientCommand(), debug_commandscript::HandleDebugThreatListCommand(), OPvPCapturePointZM_Graveyard::HandleGossipOption(), 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::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), wp_commandscript::HandleWpUnLoadCommand(), npc_spinestalker::InitializeAI(), npc_rimefang_icc::InitializeAI(), npc_sindragosa_trash::InitializeAI(), SmartScript::IsSmart(), npc_spinestalker::JustAppeared(), npc_rimefang_icc::JustAppeared(), npc_sindragosa_trash::JustAppeared(), CreatureGroup::MemberEngagingTarget(), npc_thrall_herald_of_war::npc_thrall_herald_of_warAI::MovementInform(), npc_living_mojo::npc_living_mojo(), instance_sunwell_plateau::instance_sunwell_plateau_InstanceMapScript::OnCreatureCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnUnitDeath(), FormationMgr::RemoveCreatureFromGroup(), npc_overlord_runthak_orgrimmar::npc_overlord_runthak_orgrimmarAI::Reset(), npc_thrall_herald_of_war::npc_thrall_herald_of_warAI::Reset(), Vehicle::Reset(), Respawn(), SearchFormation(), and EscortAI::UpdateAI().
| float Creature::GetSpellDamageMod | ( | int32 | Rank | ) | const |
Definition at line 1537 of file Creature.cpp.
References CREATURE_ELITE_ELITE, CREATURE_ELITE_NORMAL, CREATURE_ELITE_RARE, CREATURE_ELITE_RAREELITE, CREATURE_ELITE_WORLDBOSS, RATE_CREATURE_ELITE_ELITE_SPELLDAMAGE, RATE_CREATURE_ELITE_RARE_SPELLDAMAGE, RATE_CREATURE_ELITE_RAREELITE_SPELLDAMAGE, RATE_CREATURE_ELITE_WORLDBOSS_SPELLDAMAGE, RATE_CREATURE_NORMAL_SPELLDAMAGE, and sWorld.
Referenced by Unit::SpellDamagePctDone().
|
inline |
Definition at line 205 of file Creature.h.
Referenced by npc_commandscript::HandleNpcInfoCommand(), and InheritStringIds().
| CreatureTextRepeatIds Creature::GetTextRepeatGroup | ( | uint8 | textGroup | ) |
Definition at line 3193 of file Creature.cpp.
References m_textRepeat.
Referenced by CreatureTextMgr::SendChat().
|
inline |
Definition at line 310 of file Creature.h.
|
inline |
Definition at line 309 of file Creature.h.
Referenced by SmartScript::ProcessAction(), and Transport::UpdatePassengerPositions().
| uint32 Creature::GetVendorItemCurrentCount | ( | VendorItem const * | vItem | ) |
Definition at line 2817 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 2812 of file Creature.cpp.
References Object::GetEntry(), and sObjectMgr.
Referenced by Player::BuyItemFromVendorSlot(), and WorldSession::SendListInventory().
|
inline |
Definition at line 273 of file Creature.h.
Referenced by RandomMovementGenerator< T >::DoInitialize().
|
inline |
Definition at line 312 of file Creature.h.
Referenced by WaypointMovementGenerator< Creature >::DoInitialize(), GetDebugInfo(), wp_commandscript::HandleWpAddCommand(), wp_commandscript::HandleWpShowCommand(), SmartAI::JustReachedHome(), ICCOrbControllerMinionSearch::operator()(), and DarkFallenAI::Reset().
|
inline |
Definition at line 372 of file Creature.h.
Referenced by HomeMovementGenerator< T >::DoFinalize().
|
overridevirtual |
Reimplemented from Object.
Definition at line 1776 of file Creature.cpp.
References Object::GetEntry(), and sObjectMgr.
|
inline |
Definition at line 232 of file Creature.h.
Referenced by boss_sartharion::AddDrakeLootMode(), and boss_flame_leviathan::boss_flame_leviathanAI::DoAction().
|
inline |
Definition at line 225 of file Creature.h.
Referenced by AllLootRemovedFromCorpse(), Unit::BuildValuesUpdate(), Unit::DealDamage(), Player::GiveXP(), debug_commandscript::HandleDebugGetLootRecipientCommand(), and boss_valithria_dreamwalker::HealReceived().
|
overridevirtual |
Reimplemented from Object.
Definition at line 1771 of file Creature.cpp.
References Object::GetEntry(), and sObjectMgr.
|
inline |
Definition at line 130 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(), CreatureAI::TriggerAlert(), gunship_npc_AI::TriggerBurningPitch(), boss_high_inquisitor_whitemane::UpdateAI(), boss_gothik::UpdateAI(), PetAI::UpdateAI(), npc_arthas_stratholme::npc_arthas_stratholmeAI::UpdateAICombat(), and CreatureAI::UpdateVictim().
|
inline |
Definition at line 255 of file Creature.h.
|
overridevirtual |
Reimplemented from Unit.
Reimplemented in Pet.
Definition at line 2602 of file Creature.cpp.
References m_spells.
|
overridevirtual |
Reimplemented from Unit.
Definition at line 3096 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 2793 of file Creature.cpp.
References m_stringIds.
Referenced by npc_earthen_ring_flamecaller::DoAction(), npc_coilfang_ambusher::GetPathId(), npc_coilfang_guardian::GetPathId(), npc_shadowmoon_channeler::GetStringIdOfChanneler(), BroggokPrisionerBaseAI::IsCellPrisoner(), BroggokPrisionerBaseAI::IsHighCellPrisoner(), npc_fel_orc_convert::JustDied(), npc_fel_orc_convert::JustEngagedWith(), instance_uldaman::instance_uldaman_InstanceMapScript::OnCreatureCreate(), instance_ruins_of_ahnqiraj::instance_ruins_of_ahnqiraj_InstanceMapScript::OnCreatureCreate(), instance_blood_furnace::instance_blood_furnace_InstanceMapScript::OnCreatureCreate(), instance_zulaman::instance_zulaman_InstanceMapScript::OnUnitDeath(), Trinity::CreatureWithOptionsInObjectRangeCheck< Customizer >::operator()(), npc_vault_warder::Reset(), and npc_vault_warder::SpellHit().
| void Creature::InheritStringIds | ( | Creature const * | parent | ) |
Definition at line 2784 of file Creature.cpp.
References GetStringId(), m_stringIds, Script, and SetScriptStringId().
|
protected |
change the entry of creature until respawn
Definition at line 441 of file Creature.cpp.
References ObjectMgr::ChooseDisplayId(), CREATURE_FLAG_EXTRA_USE_OFFHAND_ATTACK, CreatureTemplate::DifficultyEntry, CreatureData::equipmentId, CreatureTemplate::flags_extra, GetCreatureTemplate(), CreatureTemplate::GetFirstValidModelId(), WorldObject::GetMap(), GetNativeObjectScale(), CreatureTemplate::HoverHeight, IDLE_MOTION_TYPE, Map::Is25ManRaid(), Unit::IsPet(), Map::IsRaid(), LoadEquipment(), loot, m_creatureInfo, m_defaultMovementType, m_originalEquipmentId, m_spells, m_wanderDistance, MAX_CREATURE_SPELLS, Loot::maxDuplicates, MOVE_FLIGHT, MOVE_RUN, MOVE_SWIM, MOVE_WALK, CreatureTemplate::MovementType, CreatureData::movementType, CreatureTemplate::Name, RACE_NONE, RAID_DIFFICULTY_10MAN_HEROIC, RANDOM_MOTION_TYPE, SetCanDualWield(), Unit::SetClass(), SetDisplayId(), Object::SetEntry(), Unit::SetHoverHeight(), Unit::SetModCastingSpeed(), WorldObject::SetName(), Unit::SetNativeDisplayId(), SetObjectScale(), Unit::SetRace(), Unit::SetSpeedRate(), sObjectMgr, CreatureTemplate::speed_run, CreatureTemplate::speed_walk, CreatureTemplate::spells, TC_LOG_ERROR, and CreatureTemplate::unit_class.
Referenced by Pet::Create(), and UpdateEntry().
| void Creature::InitializeMovementFlags | ( | ) |
Definition at line 2645 of file Creature.cpp.
References UpdateMovementFlags().
Referenced by UpdateEntry().
| void Creature::InitializeReactState | ( | ) |
Definition at line 1194 of file Creature.cpp.
References Unit::IsCritter(), Unit::IsSpiritService(), Unit::IsTotem(), IsTrigger(), REACT_AGGRESSIVE, REACT_PASSIVE, and SetReactState().
Referenced by Respawn(), and UpdateEntry().
|
inlineoverridevirtual |
Reimplemented from Unit.
Definition at line 124 of file Creature.h.
References CREATURE_FLAG_EXTRA_ALL_DIMINISH, and Unit::IsAffectedByDiminishingReturns().
| bool Creature::isCanInteractWithBattleMaster | ( | Player * | player, |
| bool | msg | ||
| ) | const |
Definition at line 1206 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 106 of file Creature.h.
References CREATURE_FLAG_EXTRA_CIVILIAN.
Referenced by CanAssistTo(), CanStartAttack(), AggressorAI::Permissible(), ReactorAI::Permissible(), and CreatureAI::TriggerAlert().
|
inline |
Definition at line 330 of file Creature.h.
References CREATURE_FLAG_EXTRA_NO_PLAYER_DAMAGE_REQ.
Referenced by Player::isAllowedToLoot(), boss_twilight_halion::JustDied(), boss_blood_council_controller::JustDied(), and Unit::Kill().
|
inline |
Definition at line 123 of file Creature.h.
References CREATURE_FLAG_EXTRA_DUNGEON_BOSS.
Referenced by setDeathState().
| bool Creature::isElite | ( | ) | const |
Definition at line 2256 of file Creature.cpp.
References CREATURE_ELITE_NORMAL, CREATURE_ELITE_RARE, GetCreatureTemplate(), Unit::IsPet(), and CreatureTemplate::rank.
Referenced by Spell::EffectSkinning(), and Trinity::XP::Gain().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 3219 of file Creature.cpp.
References AI().
Referenced by CallForHelp(), npc_arthas_stratholme::npc_arthas_stratholmeAI::CanAIAttack(), CanAssistTo(), boss_drakkari_colossus::DoAction(), npc_stalagg::DoAction(), 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(), CreatureGroup::LeaderStartedMoving(), CreatureAI::MoveInLineOfSight(), npc_reliquary_combat_trigger::MoveInLineOfSight(), npc_dk_understudy::OnCharmed(), SmartScript::OnMoveInLineOfSight(), SmartScript::ProcessEvent(), SmartAI::SetCombatMove(), EscortAI::Start(), FollowerAI::StartFollow(), CreatureAI::TriggerAlert(), Update(), 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(), npc_pet_mage_mirror_image::UpdateImageVictim(), npc_pet_dk_rune_weapon::UpdateRuneWeaponVictim(), and SmartScript::UpdateTimer().
| bool Creature::IsEscorted | ( | ) | const |
Definition at line 3280 of file Creature.cpp.
References AI().
Referenced by AtEngage(), and Map::CheckRespawn().
|
inline |
Definition at line 156 of file Creature.h.
Referenced by Unit::Attack(), Unit::DealDamageMods(), Unit::DealMeleeDamage(), Unit::DealSpellDamage(), and WorldObject::SpellHitResult().
| bool Creature::IsFormationLeader | ( | ) | const |
Definition at line 342 of file Creature.cpp.
References CreatureGroup::IsLeader(), and m_formation.
Referenced by WaypointMovementGenerator< Creature >::StartMove().
| bool Creature::IsFormationLeaderMoveAllowed | ( | ) | const |
Definition at line 361 of file Creature.cpp.
References CreatureGroup::CanLeaderStartMoving(), and m_formation.
Referenced by WaypointMovementGenerator< Creature >::StartMove().
|
inline |
Definition at line 108 of file Creature.h.
References CREATURE_FLAG_EXTRA_GUARD.
Referenced by GuardAI::Permissible().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 2226 of file Creature.cpp.
References SpellInfo::GetEffects(), Unit::IsImmunedToSpell(), and IsImmunedToSpellEffect().
|
overridevirtual |
Reimplemented from Unit.
Reimplemented in Totem.
Definition at line 2247 of file Creature.cpp.
References CREATURE_TYPE_MECHANICAL, GetCreatureTemplate(), SpellEffectInfo::IsEffect(), Unit::IsImmunedToSpellEffect(), and SPELL_EFFECT_HEAL.
Referenced by IsImmunedToSpell(), and Totem::IsImmunedToSpellEffect().
|
inline |
Definition at line 1154 of file Unit.h.
Referenced by CanAssistTo(), CanStartAttack(), and EscortAI::Start().
|
inline |
Definition at line 1151 of file Unit.h.
Referenced by boss_deathbringer_saurfang::AttackStart(), CanStartAttack(), boss_drakkari_colossus::DamageTaken(), npc_calvin_montague::npc_calvin_montagueAI::Reset(), and CreatureAI::TriggerAlert().
|
inline |
Definition at line 155 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_illidari_council::EnterEvadeMode(), boss_the_lich_king::KilledUnit(), boss_sara::boss_saraAI::KilledUnit(), npc_guard_generic::npc_guard_generic(), SmartAI::OnCharmed(), SmartScript::OnUpdate(), Unit::RollMeleeOutcomeAgainst(), FollowerAI::ShouldAssistPlayerInCombatAgainst(), Update(), SimpleCharmedPlayerAI::UpdateAI(), and boss_felmyst::UpdateAI().
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
Definition at line 1856 of file Creature.cpp.
References GameTime::GetGameTime(), Unit::IsAlive(), Unit::isDying(), WorldObject::IsInvisibleDueToDespawn(), and m_corpseRemoveTime.
|
overridevirtual |
Reimplemented from Unit.
Definition at line 3166 of file Creature.cpp.
References HasSpellFocus(), and Unit::IsMovementPreventedByCasting().
Referenced by FormationMovementGenerator::DoInitialize(), FormationMovementGenerator::DoUpdate(), WaypointMovementGenerator< Creature >::DoUpdate(), RandomMovementGenerator< T >::DoUpdate(), RandomMovementGenerator< T >::SetRandomLocation(), and WaypointMovementGenerator< Creature >::StartMove().
|
inline |
Definition at line 105 of file Creature.h.
Referenced by Player::RewardHonor().
|
inline |
Definition at line 329 of file Creature.h.
Referenced by Player::RewardReputation().
| bool Creature::IsReturningHome | ( | ) | const |
Definition at line 321 of file Creature.cpp.
References Unit::GetMotionMaster(), and HOME_MOTION_TYPE.
|
inline |
Definition at line 96 of file Creature.h.
References WorldLocation::GetMapId().
Referenced by RemoveCorpse().
| bool Creature::isTappedBy | ( | Player const * | player | ) | const |
Definition at line 1299 of file Creature.cpp.
References Player::GetGroup(), Object::GetGUID(), GetLootRecipientGroup(), and m_lootRecipient.
Referenced by Unit::BuildValuesUpdate(), and AuraEffect::HandleChannelDeathItem().
|
inline |
Definition at line 107 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 2265 of file Creature.cpp.
References CREATURE_TYPE_FLAG_BOSS_MOB, GetCreatureTemplate(), and Unit::IsPet().
Referenced by Vehicle::ApplyAllImmunities(), CanCreatureAttack(), Unit::DealMeleeDamage(), GetLevelForTarget(), hyjal_trashAI::JustDied(), and hyjalAI::SummonCreature().
| bool Creature::LoadCreaturesAddon | ( | ) |
Definition at line 2531 of file Creature.cpp.
References _waypointPathId, Unit::AddAura(), CreatureAddon::animTier, CreatureAddon::auras, CreatureAddon::emote, FORM_NONE, GetCreatureAddon(), Object::GetGUID(), Unit::HasAura(), CreatureAddon::mount, Unit::Mount(), Normal, CreatureAddon::path_id, CreatureAddon::pvpFlags, Unit::ReplaceAllPetFlags(), Unit::ReplaceAllPvpFlags(), Unit::ReplaceAllVisFlags(), Unit::SetAnimTier(), Unit::SetEmoteState(), 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 CreatureAI::_EnterEvadeMode(), 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::LoadEquipment | ( | int8 | id = 1, |
| bool | force = false |
||
| ) |
Definition at line 1716 of file Creature.cpp.
References Object::GetEntry(), EquipmentInfo::ItemEntry, m_equipmentId, MAX_EQUIPMENT_ITEMS, Unit::SetVirtualItem(), and sObjectMgr.
Referenced by boss_ingvar_the_plunderer::DoAction(), 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 1601 of file Creature.cpp.
References ALIVE, AsUnderlyingType(), CanFly(), Create(), DEAD, SpawnGroupTemplateData::flags, Map::GenerateLowGuid(), Map::GetCreatureBySpawnIdStore(), Map::GetCreatureRespawnTime(), GetDebugInfo(), GameTime::GetGameTime(), Map::GetHeight(), WorldObject::GetMap(), WorldObject::GetPhaseMask(), 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::phaseMask, Position::Relocate(), SetHomePosition(), SetSpawnHealth(), sObjectMgr, Spawn, SPAWNGROUP_FLAG_COMPATIBILITY_MODE, SpawnMetadata::spawnGroupData, SpawnData::spawnPoint, SpawnData::spawntimesecs, sPoolMgr, SpawnData::StringId, TC_LOG_DEBUG, TC_LOG_ERROR, Unit, urand(), and CreatureData::wander_distance.
Referenced by ObjectMgr::AddCreatureData(), Transport::CreateNPCPassenger(), Map::DoRespawn(), GameEventMgr::GameEventSpawn(), npc_commandscript::HandleNpcAddCommand(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), and Map::SpawnGroupSpawn().
|
inline |
Definition at line 313 of file Creature.h.
Referenced by npc_commandscript::HandleNpcSetMoveTypeCommand(), wp_commandscript::HandleWpLoadCommand(), and wp_commandscript::HandleWpUnLoadCommand().
| void Creature::LoadTemplateImmunities | ( | ) |
Definition at line 2190 of file Creature.cpp.
References Unit::ApplySpellImmune(), GetCreatureTemplate(), Unit::GetOwnerGUID(), IMMUNITY_MECHANIC, IMMUNITY_SCHOOL, Unit::IsHunterPet(), Object::IsPlayer(), MAX_MECHANIC, MAX_SPELL_SCHOOL, MECHANIC_NONE, and SPELL_SCHOOL_NORMAL.
Referenced by Pet::LoadPetFromDB(), and UpdateEntry().
| void Creature::LoadTemplateRoot | ( | ) |
Definition at line 1765 of file Creature.cpp.
References GetMovementTemplate(), Unit::IsRooted(), Unit::SetControlled(), and UNIT_STATE_ROOT.
Referenced by UpdateEntry().
| void Creature::LowerPlayerDamageReq | ( | uint32 | unDamage | ) |
Definition at line 1512 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 1027 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().
|
private |
Definition at line 3137 of file Creature.cpp.
References _spellFocusInfo, GetDebugInfo(), ObjectAccessor::GetWorldObject(), HasSpellFocus(), Unit::HasUnitFlag2(), Unit::SetFacingTo(), Unit::SetFacingToObject(), Object::SetGuidValue(), TC_LOG_ERROR, UNIT_FIELD_TARGET, and UNIT_FLAG2_CANNOT_TURN.
Referenced by ReleaseSpellFocus(), and Update().
| void Creature::RefreshCanSwimFlag | ( | bool | recheck = false | ) |
Definition at line 2718 of file Creature.cpp.
References _isMissingCanSwimFlagOutOfCombat, CanEnterWater(), Unit::HasUnitFlag(), Unit::SetUnitFlag(), and UNIT_FLAG_CAN_SWIM.
Referenced by AtEngage().
|
protected |
Definition at line 882 of file Creature.cpp.
References CREATURE_REGEN_INTERVAL, Unit::GetCharmerOrOwnerGUID(), Unit::GetMaxPower(), Unit::GetPower(), Unit::GetStat(), Unit::GetTotalAuraModifierByMiscValue(), Unit::GetTotalAuraMultiplierByMiscValue(), Unit::HasUnitFlag2(), IN_MILLISECONDS, Unit::IsHunterPet(), Unit::IsInCombat(), Unit::IsUnderLastManaUseEffect(), 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, STAT_SPIRIT, sWorld, and UNIT_FLAG2_REGENERATE_POWER.
Referenced by Pet::Update(), and Update().
|
protected |
Definition at line 939 of file Creature.cpp.
References CanRegenerateHealth(), CREATURE_REGEN_INTERVAL, Unit::GetCharmerOrOwnerGUID(), Unit::GetHealth(), Unit::GetMaxHealth(), Unit::GetPower(), Unit::GetStat(), Unit::GetTotalAuraModifier(), Unit::GetTotalAuraMultiplier(), IN_MILLISECONDS, Unit::IsPolymorphed(), Unit::ModifyHealth(), POWER_MANA, RATE_HEALTH, SPELL_AURA_MOD_HEALTH_REGEN_PERCENT, SPELL_AURA_MOD_REGEN, STAT_SPIRIT, and sWorld.
Referenced by Update().
| void Creature::ReleaseSpellFocus | ( | Spell const * | focusSpell = nullptr, |
| bool | withDelay = true |
||
| ) |
Definition at line 3114 of file Creature.cpp.
References _spellFocusInfo, Unit::ClearUnitState(), Unit::HasUnitFlag2(), Unit::IsPet(), ReacquireSpellFocusTarget(), Spell::Spell(), SPELL_ATTR5_DONT_TURN_DURING_CAST, UNIT_FLAG2_CANNOT_TURN, and UNIT_STATE_FOCUSING.
Referenced by setDeathState().
| void Creature::RemoveCorpse | ( | bool | setSpawnTime = true, |
| bool | destroyForNearbyPlayers = true |
||
| ) |
Definition at line 369 of file Creature.cpp.
References WorldObject::AddObjectToRemoveList(), AI(), Loot::clear(), CORPSE, Map::CreatureRelocation(), DEAD, WorldObject::DestroyForNearbyPlayers(), Unit::getDeathState(), Unit::GetDirectTransport(), GameTime::GetGameTime(), WorldObject::GetMap(), GetRespawnPosition(), Unit::IsFalling(), IsSpawnedOnTransport(), loot, m_corpseRemoveTime, WorldObject::m_movementInfo, Position::m_positionX, Position::m_positionY, Position::m_positionZ, m_respawnCompatibilityMode, m_respawnDelay, m_respawnTime, MovementInfo::TransportInfo::pos, Unit::RemoveAllAuras(), SaveRespawnTime(), setDeathState(), SetHomePosition(), Position::SetOrientation(), Unit::StopMoving(), Unit::ToTempSummon(), MovementInfo::transport, and WorldObject::UpdateAllowedPositionZ().
Referenced by ForcedDespawn(), Respawn(), and Update().
|
overridevirtual |
Reimplemented from Object.
Reimplemented in TempSummon, Minion, and Pet.
Definition at line 301 of file Creature.cpp.
References Object::GetGUID(), WorldObject::GetMap(), Map::GetObjectsStore(), WorldObject::GetZoneScript(), Object::IsInWorld(), m_formation, m_spawnId, Trinity::Containers::MultimapErasePair(), ZoneScript::OnCreatureRemove(), TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE >::Remove(), Unit::RemoveFromWorld(), sFormationMgr, TC_LOG_DEBUG, and Position::ToString().
Referenced by TempSummon::RemoveFromWorld(), and npc_nature_bomb::npc_nature_bombAI::UpdateAI().
|
inline |
Definition at line 235 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 236 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 220 of file Creature.h.
Referenced by Respawn().
|
inline |
Definition at line 332 of file Creature.h.
References Unit::GetHealth().
Referenced by CreatureAI::_EnterEvadeMode(), boss_yogg_saron::boss_yogg_saronAI::DoAction(), npc_pet_dk_rune_weapon::EnterEvadeMode(), npc_pet_mage_mirror_image::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 2067 of file Creature.cpp.
References AI(), Loot::clear(), CORPSE, DEAD, WorldObject::DestroyForNearbyPlayers(), Unit::getDeathState(), Object::GetEntry(), Object::GetGUID(), WorldObject::GetMap(), Unit::GetMotionMaster(), WorldObject::GetName(), Unit::GetNativeDisplayId(), GetSpawnId(), MotionMaster::InitializeDefault(), InitializeReactState(), Unit::IsAlive(), JUST_DIED, JUST_RESPAWNED, loot, m_originalEntry, m_respawnCompatibilityMode, m_respawnTime, m_spawnId, m_triggerJustAppeared, RemoveCorpse(), ResetPickPocketRefillTimer(), Map::Respawn(), SelectLevel(), setDeathState(), SetDisplayId(), Unit::SetNativeDisplayId(), sObjectMgr, SPAWN_TYPE_CREATURE, sPoolMgr, TC_LOG_DEBUG, Position::ToString(), UpdateEntry(), and Unit::UpdateObjectVisibility().
Referenced by BattlegroundAV::AddAVCreature(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetWanderDistanceCommand(), misc_commandscript::HandleRespawnCommand(), hyjalAI::JustDied(), 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 2447 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 1311 of file Creature.cpp.
References GameObject::GetGOInfo(), WorldLocation::GetMapId(), WorldObject::GetPhaseMask(), WorldObject::GetTransport(), m_spawnId, GameObjectTemplate::mapID, GameObjectTemplate::moTransport, SaveToDB(), sObjectMgr, SpawnData::spawnMask, and TC_LOG_ERROR.
Referenced by npc_commandscript::HandleNpcAddCommand(), npc_commandscript::HandleNpcSetLevelCommand(), npc_commandscript::HandleNpcSetModelCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetPhaseCommand(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), and SaveToDB().
Reimplemented in TempSummon, and Pet.
Definition at line 1326 of file Creature.cpp.
References ASSERT, CreatureData::curhealth, CreatureData::curmana, CreatureData::currentwaypoint, CreatureData::displayid, CreatureTemplate::dynamicflags, CreatureData::dynamicflags, CreatureData::equipmentId, GetCreatureTemplate(), GetCurrentEquipmentId(), GetDefaultMovementType(), Unit::GetDynamicFlags(), Object::GetEntry(), Unit::GetHealth(), WorldLocation::GetMapId(), Unit::GetNativeDisplayId(), Unit::GetNpcFlags(), Position::GetOrientation(), WorldObject::GetPhaseMask(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::GetPower(), WorldObject::GetTransOffsetO(), WorldObject::GetTransOffsetX(), WorldObject::GetTransOffsetY(), WorldObject::GetTransOffsetZ(), WorldObject::GetTransport(), Unit::GetUnitFlags(), SpawnData::id, IDLE_MOTION_TYPE, m_respawnDelay, m_spawnId, m_wanderDistance, SpawnMetadata::mapId, CreatureTemplate::Modelid1, CreatureTemplate::Modelid2, CreatureTemplate::Modelid3, CreatureTemplate::Modelid4, CreatureData::movementType, CreatureTemplate::npcflag, CreatureData::npcflag, SpawnData::phaseMask, POWER_MANA, RANDOM_MOTION_TYPE, Position::Relocate(), PreparedStatementBase::setFloat(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), sObjectMgr, SpawnMetadata::spawnGroupData, SpawnMetadata::spawnId, SpawnData::spawnMask, SpawnData::spawnPoint, SpawnData::spawntimesecs, CreatureTemplate::unit_flags, CreatureData::unit_flags, CreatureData::wander_distance, WORLD_DEL_CREATURE, WORLD_INS_CREATURE, and WorldDatabase.
| void Creature::SearchFormation | ( | ) |
Definition at line 329 of file Creature.cpp.
References GetSpawnId(), Unit::IsSummon(), and sFormationMgr.
Referenced by AddToWorld(), and npc_commandscript::HandleNpcAddFormationCommand().
| void Creature::SelectLevel | ( | ) |
Definition at line 1426 of file Creature.cpp.
References GetCreatureTemplate(), CreatureTemplate::maxlevel, CreatureTemplate::minlevel, Unit::SetLevel(), and urand().
Referenced by Spell::EffectSummonType(), Respawn(), and UpdateEntry().
| Unit * Creature::SelectNearestHostileUnitInAggroRange | ( | bool | useLOS = false, |
| bool | ignoreCivilians = false |
||
| ) | const |
Definition at line 2992 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 2274 of file Creature.cpp.
References MAX_VISIBILITY_DISTANCE, and Cell::VisitAllObjects().
Referenced by SmartScript::GetTargets(), and boss_twinemperorsAI::TryActivateAfterTTelep().
| Unit * Creature::SelectNearestTargetInAttackDistance | ( | float | dist = 0 | ) | const |
Definition at line 2287 of file Creature.cpp.
References ATTACK_DISTANCE, Object::GetGUID(), MAX_VISIBILITY_DISTANCE, TC_LOG_ERROR, Position::ToString(), and Cell::VisitAllObjects().
| Unit * Creature::SelectVictim | ( | ) |
Definition at line 1129 of file Creature.cpp.
References _IsTargetAcceptable(), AI(), CanCreatureAttack(), Unit::CanHaveThreatList(), CreatureAI::EnterEvadeMode(), CreatureAI::EVADE_REASON_NO_HOSTILES, CreatureAI::EVADE_REASON_OTHER, Unit::getAttackerForHelper(), Unit::GetAuraEffectsByType(), ThreatManager::GetCurrentVictim(), WorldObject::GetOwner(), Unit::GetThreatManager(), Unit::GetVehicle(), HasReactState(), HasSpellFocus(), Unit::IsSummon(), 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::SendAIReaction | ( | AiReaction | reactionType | ) |
Definition at line 2302 of file Creature.cpp.
References Object::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 2588 of file Creature.cpp.
References ALLIANCE, WorldObject::GetAreaId(), Player::GetTeam(), HORDE, SMSG_ZONE_UNDER_ATTACK, and sWorld.
Referenced by GuardAI::JustDied().
|
overridevirtual |
Reimplemented from Unit.
Definition at line 1710 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(), 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().
| void Creature::SetCannotReachTarget | ( | bool | cannotReach | ) |
Definition at line 2932 of file Creature.cpp.
References GetDebugInfo(), m_cannotReachTarget, m_cannotReachTimer, and TC_LOG_DEBUG.
Referenced by CreatureAI::_EnterEvadeMode(), npc_pet_dk_rune_weapon::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), ScriptedAI::ForceCombatStop(), setDeathState(), and ChaseMovementGenerator::Update().
|
inline |
Definition at line 278 of file Creature.h.
Referenced by BossAI::_JustEngagedWith(), BossAI::_Reset(), boss_four_horsemen_baseAI::DoAction(), npc_kelthuzad_guardian::DoAction(), boss_headless_horseman::JustEngagedWith(), boss_faction_championsAI::JustEngagedWith(), boss_northrend_beastsAI::JustEngagedWith(), boss_twin_baseAI::JustEngagedWith(), BloodPrincesBossAI::JustEngagedWith(), PalehoofMinionsBossAI::JustEngagedWith(), IllidariCouncilBossAI::JustEngagedWith(), boss_essence_of_suffering::JustEngagedWith(), boss_essence_of_desire::JustEngagedWith(), boss_essence_of_anger::JustEngagedWith(), boss_the_lich_king::JustEngagedWith(), boss_sindragosa::JustEngagedWith(), npc_gatewatcher_petAI::JustEngagedWith(), boss_blood_council_controller::JustEngagedWith(), boss_lady_deathwhisper::JustEngagedWith(), boss_professor_putricide::JustEngagedWith(), boss_gothik::JustSummoned(), boss_jaraxxus::Reset(), boss_northrend_beastsAI::Reset(), BloodPrincesBossAI::Reset(), boss_four_horsemen_baseAI::Reset(), npc_kelthuzad_guardian::Reset(), PalehoofMinionsBossAI::Reset(), and IllidariCouncilBossAI::Reset().
|
inline |
Definition at line 98 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(), boss_harbinger_skyriss_illusion::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_nether_wraith::InitializeAI(), 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_sacrolash::UpdateAI(), and boss_alythess::UpdateAI().
|
inline |
Definition at line 187 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 1971 of file Creature.cpp.
References ALIVE, Map::ApplyDynamicModeRespawnScaling(), ObjectMgr::ChooseCreatureFlags(), Unit::ClearUnitState(), CONFIG_RESPAWN_DYNAMICMODE, CORPSE, creatureData, CreatureTemplate::dmgschool, DoNotReacquireSpellFocusTarget(), ObjectGuid::Empty, CreatureGroup::FormationReset(), GetCreatureData(), GetCreatureTemplate(), GameTime::GetGameTime(), CreatureGroup::GetLeader(), WorldObject::GetMap(), Unit::GetMotionMaster(), WorldObject::GetPhaseMask(), IsDungeonBoss(), Unit::IsFlying(), Unit::IsHovering(), Unit::IsPet(), Unit::IsUnderWater(), JUST_DIED, JUST_RESPAWNED, LoadCreaturesAddon(), m_corpseDelay, m_corpseRemoveTime, m_formation, m_respawnCompatibilityMode, m_respawnDelay, m_respawnTime, m_spawnId, Motion_Initialize(), MotionMaster::MoveFall(), ReleaseSpellFocus(), Unit::ReplaceAllDynamicFlags(), Unit::ReplaceAllNpcFlags(), Unit::ReplaceAllUnitFlags(), ResetPlayerDamageReq(), SaveRespawnTime(), WorldObject::setActive(), SetCannotReachTarget(), Unit::setDeathState(), Unit::SetDisableGravity(), Unit::SetFullHealth(), Unit::SetHover(), SetLootRecipient(), SetMeleeDamageSchool(), Unit::SetMountDisplayId(), SetNoSearchAssistance(), SetPhaseMask(), SetSpawnHealth(), SetTarget(), sWorld, UNIT_NPC_FLAG_NONE, UNIT_STATE_ALL_ERASABLE, and UpdateMovementFlags().
Referenced by BattlegroundAV::AddAVCreature(), 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(), npc_clintar_spirit::npc_clintar_spiritAI::UpdateAI(), and npc_injured_patient::npc_injured_patientAI::UpdateAI().
|
inline |
Definition at line 121 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 328 of file Creature.h.
Referenced by hyjalAI::SummonCreature().
|
overridevirtual |
Reimplemented from Unit.
Reimplemented in Pet.
Definition at line 3023 of file Creature.cpp.
References DEFAULT_PLAYER_COMBAT_REACH, Object::GetObjectScale(), Unit::IsPet(), Unit::SetBoundingRadius(), Unit::SetCombatReach(), Unit::SetDisplayId(), and sObjectMgr.
Referenced by boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::boss_flame_leviathan_seatAI(), boss_black_knight::boss_black_knightAI::DamageTaken(), boss_jormungarAI::Emerge(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), npc_commandscript::HandleNpcSetModelCommand(), wp_commandscript::HandleWpShowCommand(), InitEntry(), boss_felmyst::InitializeAI(), npc_dark_fiend::InitializeAI(), npc_troll_volunteer::InitializeAI(), npc_icicle::InitializeAI(), npc_flash_freeze_init::InitializeAI(), npc_flash_freeze_combat::InitializeAI(), npc_stolen_soul::InitializeAI(), npc_blackheart_the_inciter_dummy::InitializeAI(), Totem::InitStats(), Guardian::InitStatsForLevel(), boss_alar::JustDied(), boss_ymiron::JustSummoned(), boss_anubarak_trial::JustSummoned(), npc_cw_area_trigger::npc_cw_area_triggerAI::npc_cw_area_triggerAI(), npc_eye_of_acherus::npc_eye_of_acherus(), npc_flame_bunny::npc_flame_bunny(), 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_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_scorch_ground::npc_scorch_groundAI::npc_scorch_groundAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::npc_the_biggest_treeAI(), npc_thrall_old_hillsbrad::Reset(), npc_sironas::npc_sironasAI::Reset(), npc_amanitar_mushrooms::Reset(), boss_black_knight::boss_black_knightAI::Reset(), npc_frost_sphere::Reset(), boss_devourer_of_souls::Reset(), npc_chaotic_rift::Reset(), npc_infernal_attacker::npc_infernal_attackerAI::Reset(), Respawn(), Pet::SetDisplayId(), netherspite_infernal::netherspite_infernalAI::SpellHit(), npc_harrison_jones::npc_harrison_jonesAI::SpellHit(), boss_valithria_dreamwalker::SpellHit(), npc_infernal_attacker::npc_infernal_attackerAI::SpellHit(), npc_clintar_spirit::npc_clintar_spiritAI::StartEvent(), Spell::SummonGuardian(), boss_malchezaar::boss_malchezaarAI::SummonInfernal(), npc_harrison_jones::npc_harrison_jonesAI::UpdateAI(), boss_renataki::UpdateAI(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), boss_tharon_ja::UpdateAI(), boss_devourer_of_souls::UpdateAI(), boss_magus_telestra::UpdateAI(), boss_alar::UpdateAI(), and npc_thrall_old_hillsbrad::WaypointReached().
|
inline |
Definition at line 323 of file Creature.h.
Referenced by CreatureGroup::AddMember(), and CreatureGroup::RemoveMember().
|
inline |
Definition at line 302 of file Creature.h.
Referenced by Battleground::AddCreature(), npc_announcer_toc5::npc_announcer_toc5AI::AggroAllPlayers(), AtEngage(), 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(), WaypointMovementGenerator< Creature >::DoUpdate(), CoolestFriendBaseAI::EnterEvadeMode(), ExitVehicle(), WorldSession::HandleBattlemasterHelloOpcode(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleQuestgiverHelloOpcode(), spell_thorim_arena_leap::spell_thorim_arena_leap_SpellScript::HandleScript(), npc_argent_captainAI::JustEngagedWith(), boss_mandokir::JustEngagedWith(), npc_arthas_stratholme::npc_arthas_stratholmeAI::JustEngagedWith(), npc_daegarn::JustSummoned(), npc_blessed_banner::JustSummoned(), spell_svalna_revive_champion::Land(), LoadFromDB(), boss_headless_horseman::MovementInform(), boss_mandokir::MovementInform(), boss_sindragosa::MovementInform(), npc_spinestalker::MovementInform(), npc_rimefang_icc::MovementInform(), npc_omen::MovementInform(), npc_gunship_boarding_addAI::MovementInform(), npc_expedition_defender::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_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(), WaypointMovementGenerator< Creature >::StartMove(), Map::SummonCreature(), boss_victor_nefarius::SummonedCreatureDies(), Transport::SummonPassenger(), npc_madrigosa::UpdateAI(), hyjal_trashAI::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(), Transport::UpdatePassengerPositions(), and SmartAI::WaypointReached().
|
inline |
Definition at line 303 of file Creature.h.
|
inlinevirtual |
|
inlineoverridevirtual |
Reimplemented from Unit.
Definition at line 135 of file Creature.h.
References REACT_PASSIVE, and Unit::SetImmuneToAll().
Referenced by npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), npc_claw::DamageTaken(), npc_apothecary_genericAI::DoAction(), npc_stone_keeper::DoAction(), boss_sister_svalna::DoAction(), boss_malygos::DoAction(), boss_horAI::DoAction(), Spell::EffectSummonType(), npc_icc_nerubar_broodkeeper::InitializeAI(), boss_archaedas::JustAppeared(), npc_stone_keeper::JustAppeared(), npc_blackhand_incarcerator::JustReachedHome(), boss_archaedas::JustReachedHome(), npc_stone_keeper::JustReachedHome(), boss_mandokir::JustReachedHome(), boss_sister_svalna::MovementInform(), npc_icc_nerubar_broodkeeper::MovementInform(), npc_drakkari_invader::MovementInform(), 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_mandokir::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_wyrmrest_defender::SpellHit(), boss_apothecary_hummel::UpdateAI(), boss_mandokir::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 141 of file Creature.h.
References REACT_PASSIVE, and Unit::SetImmuneToNPC().
Referenced by boss_thekal::DamageTaken(), npc_zealot_lorkhan::DamageTaken(), npc_zealot_zath::DamageTaken(), boss_algalon_the_observer::DoAction(), CoolestFriendBaseAI::DoAction(), boss_kelidan_the_breaker::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_akama_illidan::MovementInform(), boss_thekal::SetData(), EscortAI::Start(), npc_madrigosa::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 138 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(), boss_thekal::DamageTaken(), npc_zealot_lorkhan::DamageTaken(), npc_zealot_zath::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(), 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_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(), AdvisorBaseAI::InitializeAI(), boss_rend_blackhand::IsSummonedBy(), npc_escape_event_trash::IsSummonedBy(), boss_strawman::JustAppeared(), boss_tinhead::JustAppeared(), boss_roar::JustAppeared(), boss_deathbringer_saurfang::JustEngagedWith(), boss_ignis::boss_ignis_AI::JustSummoned(), boss_shade_of_akama::MovementInform(), boss_headless_horseman::MovementInform(), npc_rimefang_icc::MovementInform(), npc_omen::MovementInform(), boss_twin_baseAI::MovementInform(), npc_healthy_spore::npc_healthy_sporeAI::npc_healthy_sporeAI(), npc_omen::npc_omen(), instance_sunken_temple::instance_sunken_temple_InstanceMapScript::OnCreatureCreate(), boss_doomrel::boss_doomrelAI::OnGossipSelect(), npc_death_knight_initiate::npc_death_knight_initiateAI::OnGossipSelect(), instance_ulduar::instance_ulduar_InstanceMapScript::OnPlayerEnter(), npc_calvin_montague::npc_calvin_montagueAI::OnQuestAccept(), 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(), npc_calvin_montague::npc_calvin_montagueAI::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(), boss_thekal::SetData(), boss_felblood_kaelthas::SetData(), boss_pyroguard_emberseer::SpellHit(), npc_infernal_attacker::npc_infernal_attackerAI::SpellHit(), npc_stalagg::SpellHit(), npc_feugen::SpellHit(), npc_venture_co_straggler::SpellHit(), npc_wild_wyrm::SpellHit(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::Update(), 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_medivh_bm::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(), npc_coilfang_ambusher::WaypointPathEnded(), and npc_coilfang_guardian::WaypointPathEnded().
|
inline |
Definition at line 359 of file Creature.h.
Referenced by CreatureAI::_EnterEvadeMode(), Unit::DealDamage(), npc_pet_dk_rune_weapon::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), and ScriptedAI::ForceCombatStop().
|
inline |
Definition at line 233 of file Creature.h.
Referenced by boss_flame_leviathan::boss_flame_leviathanAI::DoAction(), boss_sacrolash::JustEngagedWith(), and boss_alythess::JustEngagedWith().
| void Creature::SetLootRecipient | ( | Unit * | unit, |
| bool | withGroup = true |
||
| ) |
Definition at line 1265 of file Creature.cpp.
References ObjectGuid::Clear(), ObjectGuid::Empty, WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), Player::GetGroup(), Object::GetGUID(), Object::GetTypeId(), Unit::IsVehicle(), m_lootRecipient, m_lootRecipientGroup, Object::RemoveDynamicFlag(), Object::SetDynamicFlag(), TYPEID_PLAYER, UNIT_DYNFLAG_LOOTABLE, and UNIT_DYNFLAG_TAPPED.
Referenced by CreatureAI::_EnterEvadeMode(), Unit::DealDamage(), npc_pet_dk_rune_weapon::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), 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(), Unit::Kill(), Player::SendLoot(), instance_ulduar::instance_ulduar_InstanceMapScript::SetBossState(), and setDeathState().
|
inline |
Definition at line 168 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 253 of file Creature.h.
Referenced by CallAssistance(), npc_anubisath_sentinel::aqsentinelAI::CallBuddiesToAttack(), AssistDelayEvent::Execute(), AssistanceMovementGenerator::Finalize(), and boss_mr_smite::boss_mr_smiteAI::Reset().
|
inline |
Definition at line 254 of file Creature.h.
Referenced by DoFleeToGetAssistance(), HomeMovementGenerator< T >::DoInitialize(), and setDeathState().
|
overridevirtual |
Reimplemented from Object.
Definition at line 3012 of file Creature.cpp.
References DEFAULT_PLAYER_COMBAT_REACH, Unit::GetDisplayId(), Unit::IsPet(), Unit::SetBoundingRadius(), Unit::SetCombatReach(), Object::SetObjectScale(), and sObjectMgr.
Referenced by npc_frost_sphere::DamageTaken(), wp_commandscript::HandleWpShowCommand(), InitEntry(), Guardian::InitStatsForLevel(), npc_sironas::npc_sironasAI::JustDied(), npc_frost_sphere::MovementInform(), npc_amanitar_mushrooms::Reset(), npc_simon_bunny::npc_simon_bunnyAI::StartGame(), and npc_kalecgos::UpdateAI().
|
inline |
Definition at line 336 of file Creature.h.
Referenced by CreateFromProto().
|
overridevirtual |
Reimplemented from WorldObject.
Definition at line 653 of file Creature.cpp.
References WorldObject::GetPhaseMask(), ObjectAccessor::GetUnit(), Unit::GetVehicleKit(), Unit::SetPhaseMask(), and Unit::UpdateObjectVisibility().
Referenced by boss_twilight_halion::boss_twilight_halion(), Create(), Pet::Create(), npc_commandscript::HandleNpcSetPhaseCommand(), Battlefield::HideNpc(), npc_the_lich_king_controller::JustSummoned(), npc_combustion_consumption::npc_combustion_consumption(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnCreatureCreate(), instance_oculus::instance_oculus_InstanceMapScript::OnCreatureCreate(), boss_victor_nefarius::Reset(), boss_volazj::Reset(), setDeathState(), and Battlefield::ShowNpc().
|
inline |
Definition at line 128 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_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_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(), npc_felblood_kaelthas_phoenix::DamageTaken(), boss_scarlet_commander_mograine::DamageTaken(), boss_high_inquisitor_whitemane::DamageTaken(), npc_dark_fiend::DamageTaken(), npc_spirit_of_the_lynx::DamageTaken(), boss_ayamiss::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_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(), boss_xt002::DisposeHeart(), 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_horAI::DoAction(), boss_illidan_stormrage::DoAction(), npc_akama_illidan::DoAction(), npc_maiev::DoAction(), npc_pulsing_pumpkin::DoAction(), Spell::EffectSummonPet(), boss_jormungarAI::Emerge(), boss_sapphiron::EnterPhaseGround(), TrashJumpEvent::Execute(), StandUpEvent::Execute(), VileSpiritActivateEvent::Execute(), boss_nightbane::boss_nightbaneAI::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(), spell_ick_explosive_barrage::HandleEffectApply(), spell_ick_explosive_barrage::HandleEffectRemove(), npc_commandscript::HandleNpcTameCommand(), WorldSession::HandlePetActionHelper(), 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_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(), npc_blackheart_the_inciter_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(), Totem::InitStats(), npc_raging_ghoul::npc_raging_ghoulAI::IsSummonedBy(), npc_risen_witch_doctor::npc_risen_witch_doctorAI::IsSummonedBy(), npc_pet_dk_rune_weapon::IsSummonedBy(), boss_big_bad_wolf::JustAppeared(), npc_void_sentinel::JustAppeared(), npc_void_spawn::JustAppeared(), npc_dark_fiend::JustAppeared(), npc_towering_infernal::JustAppeared(), boss_aeonus::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(), boss_freya::boss_freyaAI::JustDied(), npc_living_mojo::JustEngagedWith(), boss_muru::JustEngagedWith(), boss_venoxis::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_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_anubarak_trial::JustSummoned(), Pet::LoadPetFromDB(), boss_high_inquisitor_whitemane::MograineResurrected(), boss_headless_horseman::MovementInform(), boss_onyxia::MovementInform(), boss_ayamiss::MovementInform(), boss_blood_queen_lana_thel::MovementInform(), npc_valkyr_shadowguard::MovementInform(), boss_malygos::MovementInform(), boss_vazruden_the_herald::MovementInform(), boss_alar::MovementInform(), boss_saviana_ragefire::MovementInform(), boss_sindragosa::MovementInform(), npc_spinestalker::MovementInform(), npc_rimefang_icc::MovementInform(), ShadowswordBaseAI::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_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_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_healing_ward::npc_healing_ward(), 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_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(), NullCreatureAI::NullCreatureAI(), instance_hyjal::instance_mount_hyjal_InstanceMapScript::OnCreatureCreate(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::OnCreatureCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), instance_ulduar::instance_ulduar_InstanceMapScript::OnCreatureCreate(), boss_talon_king_ikiss::OnSpellCast(), boss_the_lurker_below::OnSpellStart(), PassiveAI::PassiveAI(), PossessedAI::PossessedAI(), boss_ragnaros::Reset(), boss_mr_smite::boss_mr_smiteAI::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(), boss_halazzi::Reset(), boss_venoxis::Reset(), npc_troll_volunteer::Reset(), boss_onyxia::Reset(), boss_buru::Reset(), boss_eye_of_cthun::eye_of_cthunAI::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(), 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_laj::Reset(), boss_high_astromancer_solarian::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(), BfGraveyard::SetSpirit(), boss_hadronox::SetStep(), Battlefield::ShowNpc(), boss_attumen::boss_attumenAI::SpellHit(), boss_scarlet_commander_mograine::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_venture_co_straggler::SpellHit(), npc_pet_dk_ebon_gargoyle::SpellHit(), npc_putricide_oozeAI::SpellHitTarget(), spell_putricide_ooze_channel::StartAttack(), boss_headless_horseman::StartPhase(), boss_nightbane::boss_nightbaneAI::StartPhaseFly(), boss_jormungarAI::Submerge(), boss_victor_nefarius::SummonedCreatureDies(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::Update(), boss_ragnaros::UpdateAI(), boss_julianne::UpdateAI(), boss_romulo::UpdateAI(), boss_felblood_kaelthas::UpdateAI(), npc_felblood_kaelthas_phoenix::UpdateAI(), npc_unworthy_initiate::npc_unworthy_initiateAI::UpdateAI(), boss_headless_horseman::UpdateAI(), boss_dathrohan_balnazzar::UpdateAI(), npc_madrigosa::UpdateAI(), boss_sacrolash::UpdateAI(), boss_alythess::UpdateAI(), boss_kalecgos::UpdateAI(), boss_entropius::UpdateAI(), boss_halazzi::UpdateAI(), boss_janalai::UpdateAI(), boss_zuljin::UpdateAI(), boss_arlokk::UpdateAI(), boss_archimonde::UpdateAI(), boss_onyxia::UpdateAI(), boss_buru::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::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_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_taerar::boss_taerarAI::UpdateAI(), boss_mr_smite::boss_mr_smiteAI::UpdateAI(), npc_spark_of_ionar::UpdateAI(), npc_brann_hos::UpdateEscortAI(), boss_broggok::UpdateOutOfCombatEvents(), boss_vazruden_the_herald::UpdateSpecialEvents(), npc_brood_of_anzu::WaypointPathEnded(), and violet_hold_trashAI::WaypointReached().
|
inline |
Definition at line 294 of file Creature.h.
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(), boss_kalecgos::UpdateAI(), and boss_algalon_the_observer::UpdateAI().
|
inline |
Definition at line 339 of file Creature.h.
Referenced by Create(), and npc_thrall_old_hillsbrad::InitializeAI().
|
inline |
Definition at line 271 of file Creature.h.
Referenced by BattlegroundAV::AddAVCreature(), Battleground::AddCreature(), ForcedDespawn(), npc_commandscript::HandleNpcSetSpawnTimeCommand(), and FrostwingGauntletRespawner::operator()().
| void Creature::SetRespawnTime | ( | uint32 | respawn | ) |
Definition at line 2616 of file Creature.cpp.
References GameTime::GetGameTime(), and m_respawnTime.
Referenced by boss_four_horsemen_baseAI::boss_four_horsemen_baseAI(), and Update().
| void Creature::SetScriptStringId | ( | std::string | id | ) |
Definition at line 2798 of file Creature.cpp.
References AsUnderlyingType(), m_scriptStringId, m_stringIds, and Script.
Referenced by InheritStringIds().
| void Creature::SetSpawnHealth | ( | ) |
Definition at line 1739 of file Creature.cpp.
References _GetHealthMod(), _regenerateHealth, _regenerateHealthLock, ALIVE, CreatureData::curhealth, CreatureData::curmana, GetCreatureTemplate(), Unit::GetMaxHealth(), Unit::GetMaxPower(), JUST_RESPAWNED, m_creatureData, Unit::m_deathState, POWER_MANA, Unit::SetHealth(), and Unit::SetPower().
Referenced by HomeMovementGenerator< T >::DoFinalize(), LoadFromDB(), and setDeathState().
| void Creature::SetSpellFocus | ( | Spell const * | focusSpell, |
| WorldObject const * | target | ||
| ) |
Definition at line 3042 of file Creature.cpp.
References _spellFocusInfo, Unit::AddUnitState(), ObjectGuid::Empty, Spell::GetCastTime(), Object::GetGUID(), Object::GetGuidValue(), Position::GetOrientation(), Spell::GetSpellInfo(), SpellInfo::HasAttribute(), SpellInfo::HasAura(), Unit::HasAuraType(), Unit::HasUnitFlag(), Unit::HasUnitFlag2(), Unit::IsAlive(), SpellInfo::IsChanneled(), Spell::IsFocusDisabled(), Unit::SetFacingToObject(), Object::SetGuidValue(), SPELL_ATTR5_DONT_TURN_DURING_CAST, SPELL_AURA_CONTROL_VEHICLE, SPELL_AURA_FEIGN_DEATH, UNIT_FIELD_TARGET, UNIT_FLAG2_CANNOT_TURN, UNIT_FLAG2_FEIGN_DEATH, UNIT_FLAG_STUNNED, and UNIT_STATE_FOCUSING.
Referenced by Spell::prepare().
|
overridevirtual |
Implements Unit.
Definition at line 3034 of file Creature.cpp.
References _spellFocusInfo, HasSpellFocus(), Object::SetGuidValue(), and UNIT_FIELD_TARGET.
Referenced by CreatureAI::_EnterEvadeMode(), boss_eye_of_cthun::eye_of_cthunAI::DamageTaken(), ConfusedMovementGenerator< T >::DoFinalize(), npc_pet_dk_rune_weapon::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), 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(), npc_harrison_jones::npc_harrison_jonesAI::SpellHit(), 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 3184 of file Creature.cpp.
References Object::GetGUID(), WorldObject::GetName(), m_textRepeat, TC_LOG_ERROR, and Position::ToString().
Referenced by CreatureTextMgr::SendChat().
|
inline |
Definition at line 307 of file Creature.h.
Referenced by Transport::CreateNPCPassenger(), npc_gunship_boarding_addAI::MovementInform(), gunship_npc_AI::SetData(), WaypointMovementGenerator< Creature >::StartMove(), and Transport::SummonPassenger().
|
inline |
Definition at line 308 of file Creature.h.
|
inline |
Definition at line 274 of file Creature.h.
Referenced by npc_commandscript::HandleNpcSetWanderDistanceCommand().
| void Creature::SignalFormationMovement | ( | ) |
Definition at line 350 of file Creature.cpp.
References CreatureGroup::IsLeader(), CreatureGroup::LeaderStartedMoving(), and m_formation.
Referenced by RandomMovementGenerator< T >::SetRandomLocation(), and WaypointMovementGenerator< Creature >::StartMove().
| void Creature::StartPickPocketRefillTimer | ( | ) |
Definition at line 3174 of file Creature.cpp.
References _pickpocketLootRestore, CONFIG_CREATURE_PICKPOCKET_REFILL, GameTime::GetGameTime(), and sWorld.
Referenced by Player::SendLoot().
|
overridevirtual |
Reimplemented from Unit.
Reimplemented in Pet, TempSummon, Puppet, and Totem.
Definition at line 671 of file Creature.cpp.
References _spellFocusInfo, AI(), Unit::AIUpdateTick(), ALIVE, MapRefManager::begin(), CanNotReachTarget(), CreatureAI::CheckInRoom(), ObjectGuid::Clear(), CONFIG_REGEN_HP_CANNOT_REACH_TARGET_IN_RAID, CORPSE, CREATURE_NOPATH_EVADE_TIME, CREATURE_REGEN_INTERVAL, DEAD, MapRefManager::end(), Unit::EngageWithTarget(), CreatureAI::EVADE_REASON_NO_PATH, GetDebugInfo(), Object::GetEntry(), GameTime::GetGameTime(), Object::GetGUID(), Map::GetLinkedRespawnTime(), WorldObject::GetMap(), Map::GetPlayers(), Unit::GetPowerType(), Unit::GetThreatManager(), SpawnGroupTemplateData::groupId, IN_MILLISECONDS, Unit::IsAIEnabled(), Unit::IsAlive(), ObjectGuid::IsEmpty(), LinkedListHead::isEmpty(), IsEngaged(), WorldObject::IsHostileTo(), IsInEvadeMode(), Unit::IsPolymorphed(), JUST_DIED, JUST_RESPAWNED, CreatureAI::JustAppeared(), loot, lootingGroupLowGUID, m_boundaryCheckTime, m_cannotReachTimer, m_combatPulseDelay, m_combatPulseTime, m_corpseRemoveTime, m_creatureData, Unit::m_deathState, m_groupLootTimer, Unit::m_regenTimer, m_respawnCompatibilityMode, m_respawnTime, m_spawnId, m_triggerJustAppeared, Unit::m_vehicleKit, MINUTE, POWER_ENERGY, POWER_MANA, ReacquireSpellFocusTarget(), Regenerate(), RegenerateHealth(), RemoveCorpse(), Vehicle::Reset(), Respawn(), SaveRespawnTime(), SetRespawnTime(), sGroupMgr, sObjectMgr, SpawnMetadata::spawnGroupData, sWorld, TC_LOG_DEBUG, TC_LOG_ERROR, Position::ToString(), ThreatManager::Update(), Unit::Update(), UpdateMovementFlags(), urand(), and WEEK.
Referenced by Pet::Update(), TempSummon::Update(), Puppet::Update(), and Totem::Update().
|
overridevirtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
Definition at line 1077 of file StatSystem.cpp.
References MAX_POWERS, POWER_MANA, Unit::UpdateAllResistances(), UpdateAttackPowerAndDamage(), UpdateMaxHealth(), and UpdateMaxPower().
Referenced by UpdateEntry().
|
overridevirtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
Definition at line 1102 of file StatSystem.cpp.
References Unit::GetTotalAuraModValue(), Unit::SetArmor(), and UNIT_MOD_ARMOR.
Referenced by UpdateResistances().
|
overridevirtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
Definition at line 1126 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 UpdateAllStats().
Definition at line 317 of file Creature.h.
Referenced by wp_commandscript::HandleWpUnLoadCommand(), WaypointMovementGenerator< Creature >::OnArrived(), and WaypointMovementGenerator< Creature >::StartMove().
| bool Creature::UpdateEntry | ( | uint32 | entry, |
| CreatureData const * | data = nullptr, |
||
| bool | updateLevel = true |
||
| ) |
Definition at line 541 of file Creature.cpp.
References _regenerateHealth, 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::dmgschool, ThreatManager::EvaluateSuppressed(), CreatureTemplate::faction, FACTION_TEMPLATE_FLAG_PVP, CreatureTemplate::flags_extra, WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself(), GetCreatureAddon(), GetCreatureTemplate(), Unit::GetHealth(), GetScriptId(), Unit::GetThreatManager(), IMMUNITY_EFFECT, IMMUNITY_STATE, InitEntry(), InitializeMovementFlags(), InitializeReactState(), Unit::IsGuardian(), Unit::IsInCombat(), Unit::IsSpiritGuide(), IsTrigger(), Unit::IsVehicle(), WorldObject::LastUsedScriptID, LoadCreaturesAddon(), LoadTemplateImmunities(), LoadTemplateRoot(), m_stringIds, OFF_ATTACK, CreatureTemplate::RangeAttackTime, RANGED_ATTACK, CreatureTemplate::RegenHealth, Unit::ReplaceAllDynamicFlags(), Unit::ReplaceAllNpcFlags(), Unit::ReplaceAllUnitFlags(), Unit::ReplaceAllUnitFlags2(), CreatureTemplate::resistance, SelectLevel(), Unit::SetAttackTime(), SetCanDualWield(), Unit::SetCanModifyStats(), Unit::SetFaction(), Unit::SetHealth(), Unit::SetIsCombatDisallowed(), SetMeleeDamageSchool(), Unit::SetPvP(), Unit::SetPvpFlag(), Unit::SetSheath(), Unit::SetStatFlatModifier(), Unit::SetUnitFlag(), sFactionTemplateStore, sGameEventMgr, SHEATH_STATE_MELEE, 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, CreatureTemplate::StringId, sWorld, Template, UNIT_BYTE2_FLAG_FFA_PVP, UNIT_FLAG_IN_COMBAT, UNIT_FLAG_UNINTERACTIBLE, CreatureTemplate::unit_flags2, UNIT_MOD_RESISTANCE_ARCANE, UNIT_MOD_RESISTANCE_FIRE, UNIT_MOD_RESISTANCE_FROST, UNIT_MOD_RESISTANCE_HOLY, UNIT_MOD_RESISTANCE_NATURE, UNIT_MOD_RESISTANCE_SHADOW, 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(), npc_tyrion_spybot::npc_tyrion_spybotAI::UpdateAI(), instance_violet_hold::instance_violet_hold_InstanceMapScript::UpdateKilledBoss(), instance_blackrock_depths::instance_blackrock_depths_InstanceMapScript::UpdateMoira(), and boss_vazruden_the_herald::UpdateSpecialEvents().
| void Creature::UpdateLevelDependantStats | ( | ) |
Definition at line 1437 of file Creature.cpp.
References _GetHealthMod(), CreatureBaseStats::AttackPower, BASE_ATTACK, BASE_VALUE, CreatureBaseStats::GenerateArmor(), CreatureBaseStats::GenerateBaseDamage(), CreatureBaseStats::GenerateHealth(), CreatureBaseStats::GenerateMana(), Unit::GetClass(), GetCreatureTemplate(), Unit::GetLevel(), Unit::IsPet(), m_baseAttackPower, m_baseRangedAttackPower, MAXDAMAGE, MINDAMAGE, OFF_ATTACK, POWER_MANA, RANGED_ATTACK, CreatureBaseStats::RangedAttackPower, CreatureTemplate::rank, ResetPlayerDamageReq(), Unit::SetBaseWeaponDamage(), Unit::SetCreateHealth(), Unit::SetCreateMana(), Unit::SetFullPower(), Unit::SetHealth(), Unit::SetMaxHealth(), Unit::SetMaxPower(), Unit::SetStatFlatModifier(), sObjectMgr, CreatureTemplate::unit_class, UNIT_CLASS_MAGE, UNIT_CLASS_PALADIN, UNIT_MOD_ARMOR, and UNIT_MOD_HEALTH.
Referenced by UpdateEntry().
|
overridevirtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
Definition at line 1108 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 1114 of file StatSystem.cpp.
References AsUnderlyingType(), BASE_PCT, BASE_VALUE, Unit::GetCreatePowerValue(), Unit::GetFlatModifierValue(), Unit::GetPctModifierValue(), Unit::SetMaxPower(), TOTAL_PCT, TOTAL_VALUE, and UNIT_MOD_POWER_START.
Referenced by UpdateAllStats().
| void Creature::UpdateMovementFlags | ( | ) |
Definition at line 2651 of file Creature.cpp.
References CanFly, CanHover(), CanSwim(), CREATURE_FLAG_EXTRA_NO_MOVE_FLAGS_UPDATE, CreatureMovementData::Flight, GetCreatureTemplate(), Object::GetFloatValue(), WorldObject::GetFloorZ(), GetMovementTemplate(), Position::GetPositionZ(), GROUND_HEIGHT_TOLERANCE, Unit::HasAuraType(), Unit::IsAlive(), Unit::IsFalling(), CreatureMovementData::IsFlightAllowed(), Unit::IsInWater(), Unit::IsMovedByClient(), Unit::SetCanFly(), Unit::SetDisableGravity(), Unit::SetFall(), Unit::SetHover(), Unit::SetSwim(), SPELL_AURA_HOVER, and UNIT_FIELD_HOVERHEIGHT.
Referenced by InitializeMovementFlags(), setDeathState(), and Update().
|
overridevirtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
Definition at line 1091 of file StatSystem.cpp.
References Unit::GetTotalAuraModValue(), Unit::SetResistance(), SPELL_SCHOOL_NORMAL, UNIT_MOD_RESISTANCE_START, and UpdateArmor().
|
overridevirtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
Definition at line 1072 of file StatSystem.cpp.
| uint32 Creature::UpdateVendorItemCurrentCount | ( | VendorItem const * | vItem, |
| uint32 | used_count | ||
| ) |
Definition at line 2851 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().
Definition at line 445 of file Creature.h.
|
private |
Definition at line 469 of file Creature.h.
Referenced by RefreshCanSwimFlag().
|
private |
Definition at line 462 of file Creature.h.
|
protected |
Timers.
Definition at line 395 of file Creature.h.
Referenced by CanGeneratePickPocketLoot(), and StartPickPocketRefillTimer().
|
private |
Definition at line 466 of file Creature.h.
Referenced by SetSpawnHealth(), and UpdateEntry().
|
private |
Definition at line 467 of file Creature.h.
Referenced by SetSpawnHealth().
| struct { ... } Creature::_spellFocusInfo |
|
private |
Definition at line 444 of file Creature.h.
Referenced by LoadCreaturesAddon().
| uint32 Creature::Delay = 0 |
Definition at line 457 of file Creature.h.
|
protected |
Definition at line 427 of file Creature.h.
Referenced by Creature().
| Loot Creature::loot |
Definition at line 218 of file Creature.h.
Referenced by AllLootRemovedFromCorpse(), Spell::CheckCast(), WorldSession::DoLootRelease(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), npc_commandscript::HandleNpcShowLootCommand(), InitEntry(), Player::isAllowedToLoot(), Unit::Kill(), RemoveCorpse(), Respawn(), Player::SendLoot(), Group::SendLooter(), and Update().
| ObjectGuid Creature::lootingGroupLowGUID |
Definition at line 286 of file Creature.h.
Referenced by Update().
|
protected |
Definition at line 414 of file Creature.h.
Referenced by CallAssistance().
|
protected |
Definition at line 415 of file Creature.h.
|
protected |
Definition at line 420 of file Creature.h.
Referenced by UpdateAttackPowerAndDamage(), and UpdateLevelDependantStats().
|
protected |
Definition at line 421 of file Creature.h.
Referenced by UpdateAttackPowerAndDamage(), and UpdateLevelDependantStats().
|
protected |
Definition at line 402 of file Creature.h.
Referenced by Update().
|
protected |
Definition at line 416 of file Creature.h.
Referenced by SetCannotReachTarget().
|
protected |
Definition at line 417 of file Creature.h.
Referenced by SetCannotReachTarget(), and Update().
| float Creature::m_CombatDistance |
Definition at line 344 of file Creature.h.
Referenced by ArcherAI::ArcherAI(), ArcherAI::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_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igb(), npc_muradin_bronzebeard_igb::npc_muradin_bronzebeard_igb(), TurretAI::TurretAI(), and boss_mr_smite::boss_mr_smiteAI::UpdateAI().
|
protected |
Definition at line 404 of file Creature.h.
Referenced by Update().
|
protected |
Definition at line 403 of file Creature.h.
Referenced by Update().
|
protected |
Definition at line 399 of file Creature.h.
Referenced by AllLootRemovedFromCorpse(), Create(), and setDeathState().
|
protected |
Definition at line 396 of file Creature.h.
Referenced by AllLootRemovedFromCorpse(), IsInvisibleDueToDespawn(), RemoveCorpse(), setDeathState(), Pet::Update(), and Update().
|
protected |
Definition at line 430 of file Creature.h.
Referenced by GetRespawnPosition(), LoadFromDB(), SaveRespawnTime(), SetSpawnHealth(), and Update().
|
protected |
Definition at line 429 of file Creature.h.
Referenced by InitEntry().
|
protected |
Definition at line 409 of file Creature.h.
Referenced by InitEntry(), and LoadFromDB().
|
protected |
Definition at line 411 of file Creature.h.
Referenced by LoadEquipment().
|
private |
Definition at line 448 of file Creature.h.
Referenced by IsFormationLeader(), IsFormationLeaderMoveAllowed(), Motion_Initialize(), RemoveFromWorld(), setDeathState(), and SignalFormationMovement().
| uint32 Creature::m_groupLootTimer |
Definition at line 285 of file Creature.h.
Referenced by Update().
|
protected |
Definition at line 424 of file Creature.h.
Referenced by CanCreatureAttack().
|
protected |
Definition at line 400 of file Creature.h.
Referenced by AllLootRemovedFromCorpse().
| bool Creature::m_isTempWorldObject |
Definition at line 346 of file Creature.h.
Referenced by Creature(), and Map::SwitchGridContainers().
|
protected |
Definition at line 434 of file Creature.h.
|
protected |
Definition at line 391 of file Creature.h.
Referenced by GetLootRecipient(), isTappedBy(), and SetLootRecipient().
|
protected |
Definition at line 392 of file Creature.h.
Referenced by GetLootRecipientGroup(), and SetLootRecipient().
|
protected |
Definition at line 419 of file Creature.h.
|
protected |
Definition at line 422 of file Creature.h.
Referenced by Pet::Create(), and Respawn().
|
protected |
Definition at line 412 of file Creature.h.
Referenced by InitEntry().
| uint32 Creature::m_PlayerDamageReq |
Definition at line 333 of file Creature.h.
Referenced by Trinity::XP::Gain(), and LowerPlayerDamageReq().
|
protected |
Definition at line 406 of file Creature.h.
|
private |
Definition at line 450 of file Creature.h.
Referenced by ForcedDespawn(), LoadFromDB(), RemoveCorpse(), Respawn(), SaveRespawnTime(), setDeathState(), and Update().
|
protected |
Definition at line 398 of file Creature.h.
Referenced by AllLootRemovedFromCorpse(), Create(), ForcedDespawn(), LoadFromDB(), RemoveCorpse(), SaveToDB(), and setDeathState().
|
protected |
Definition at line 397 of file Creature.h.
Referenced by AllLootRemovedFromCorpse(), ForcedDespawn(), GetRespawnTimeEx(), LoadFromDB(), RemoveCorpse(), Respawn(), SaveRespawnTime(), setDeathState(), SetRespawnTime(), and Update().
|
protected |
Definition at line 432 of file Creature.h.
Referenced by SetScriptStringId().
| float Creature::m_SightDistance |
Definition at line 344 of file Creature.h.
Referenced by ArcherAI::ArcherAI(), Creature(), WorldObject::GetSightRange(), npc_reliquary_combat_trigger::npc_reliquary_combat_trigger(), and TurretAI::TurretAI().
|
protected |
For new or temporary creatures is 0 for saved it is lowguid.
Definition at line 410 of file Creature.h.
Referenced by AddToWorld(), ForcedDespawn(), GetCreatureAddon(), GetMovementTemplate(), LoadFromDB(), RemoveFromWorld(), Respawn(), SaveRespawnTime(), SaveToDB(), SaveToDB(), setDeathState(), and Update().
| uint32 Creature::m_spells[MAX_CREATURE_SPELLS] |
Definition at line 238 of file Creature.h.
Referenced by ArcherAI::ArcherAI(), Creature(), spell_sha_glyph_of_totem_of_wrath::HandleProc(), HasSpell(), CharmInfo::InitCharmCreateSpells(), InitEntry(), CombatAI::InitializeAI(), CharmInfo::InitPossessCreateSpells(), npc_wild_wyrm::InitSpellsForPhase(), TempSummon::InitStats(), TriggerAI::IsSummonedBy(), SpellHistory::LockSpellSchool(), TriggerAI::Permissible(), npc_sapphiron_blizzard::Reset(), ScriptedAI::SelectSpell(), TurretAI::TurretAI(), ArcherAI::UpdateAI(), TurretAI::UpdateAI(), Guardian::UpdateAttackPowerAndDamage(), and Player::VehicleSpellInitialize().
|
protected |
Definition at line 431 of file Creature.h.
Referenced by HasStringId(), InheritStringIds(), LoadFromDB(), SetScriptStringId(), and UpdateEntry().
|
private |
Definition at line 463 of file Creature.h.
Referenced by ClearTextRepeatGroup(), GetTextRepeatGroup(), and SetTextRepeatId().
|
protected |
Definition at line 425 of file Creature.h.
|
private |
Definition at line 449 of file Creature.h.
|
protected |
Definition at line 387 of file Creature.h.
Referenced by GetVendorItemCurrentCount(), and UpdateVendorItemCurrentCount().
|
protected |
Definition at line 401 of file Creature.h.
Referenced by InitEntry(), LoadFromDB(), and SaveToDB().
| float Creature::Orientation = 0.0f |
Definition at line 459 of file Creature.h.
| ::Spell const* Creature::Spell = nullptr |
Definition at line 456 of file Creature.h.
| ObjectGuid Creature::Target |
Definition at line 458 of file Creature.h.