AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "Creature.h"
Public Member Functions | |
Creature (bool isWorldObject=false) | |
~Creature () override | |
void | AddToWorld () override |
void | RemoveFromWorld () override |
float | GetNativeObjectScale () const override |
void | SetObjectScale (float scale) override |
void | SetDisplayId (uint32 modelId) override |
void | DisappearAndDie () |
bool | isVendorWithIconSpeak () const |
bool | Create (ObjectGuid::LowType guidlow, Map *map, uint32 phaseMask, uint32 Entry, uint32 vehId, float x, float y, float z, float ang, const CreatureData *data=nullptr) |
bool | LoadCreaturesAddon (bool reload=false) |
void | SelectLevel (bool changelevel=true) |
void | LoadEquipment (int8 id=1, bool force=false) |
ObjectGuid::LowType | GetSpawnId () const |
void | Update (uint32 time) override |
void | GetRespawnPosition (float &x, float &y, float &z, float *ori=nullptr, float *dist=nullptr) const |
void | SetCorpseDelay (uint32 delay) |
void | SetCorpseRemoveTime (uint32 delay) |
uint32 | GetCorpseDelay () const |
bool | IsRacialLeader () const |
bool | IsCivilian () const |
bool | IsTrigger () const |
bool | IsGuard () const |
CreatureMovementData const & | GetMovementTemplate () const |
bool | CanWalk () const |
bool | CanSwim () const override |
This method check the current flag/status of a creature and its inhabit type. | |
bool | CanEnterWater () const override |
bool | CanFly () const override |
bool | CanHover () const |
MovementGeneratorType | GetDefaultMovementType () const override |
-------—End of Pet responses methods-------— | |
void | SetDefaultMovementType (MovementGeneratorType mgt) |
void | SetReactState (ReactStates st) |
ReactStates | GetReactState () const |
bool | HasReactState (ReactStates state) const |
void | InitializeReactState () |
bool | isCanInteractWithBattleMaster (Player *player, bool msg) const |
bool | isCanTrainingAndResetTalentsOf (Player *player) const |
bool | IsValidTrainerForPlayer (Player *player, uint32 *npcFlags=nullptr) const |
bool | CanCreatureAttack (Unit const *victim, bool skipDistCheck=false) const |
void | LoadSpellTemplateImmunity () |
bool | IsImmunedToSpell (SpellInfo const *spellInfo, Spell const *spell=nullptr) override |
bool | HasMechanicTemplateImmunity (uint32 mask) const |
bool | IsImmunedToSpellEffect (SpellInfo const *spellInfo, uint32 index) const override |
bool | isElite () const |
bool | isWorldBoss () const |
bool | IsDungeonBoss () const |
bool | IsImmuneToKnockback () const |
bool | IsAvoidingAOE () const |
uint8 | getLevelForTarget (WorldObject const *target) const override |
bool | IsInEvadeMode () const |
bool | IsEvadingAttacks () const |
bool | AIM_Initialize (CreatureAI *ai=nullptr) |
void | Motion_Initialize () |
CreatureAI * | AI () const |
bool | SetWalk (bool enable) override |
bool | SetDisableGravity (bool disable, bool packetOnly=false, bool updateAnimationTier=true) override |
bool | SetSwim (bool enable) override |
bool | SetCanFly (bool enable, bool packetOnly=false) override |
bool | SetWaterWalking (bool enable, bool packetOnly=false) override |
bool | SetFeatherFall (bool enable, bool packetOnly=false) override |
bool | SetHover (bool enable, bool packetOnly=false, bool updateAnimationTier=true) override |
bool | HasSpellFocus (Spell const *focusSpell=nullptr) const |
uint32 | GetShieldBlockValue () const override |
SpellSchoolMask | GetMeleeDamageSchoolMask (WeaponAttackType=BASE_ATTACK, uint8=0) const override |
void | SetMeleeDamageSchool (SpellSchools school) |
void | _AddCreatureSpellCooldown (uint32 spell_id, uint16 categoryId, uint32 end_time) |
void | AddSpellCooldown (uint32 spell_id, uint32, uint32 end_time, bool needSendToClient=false, bool forceSendToSpectator=false) override |
bool | HasSpellCooldown (uint32 spell_id) const override |
uint32 | GetSpellCooldown (uint32 spell_id) const |
void | ProhibitSpellSchool (SpellSchoolMask idSchoolMask, uint32 unTimeMs) override |
bool | IsSpellProhibited (SpellSchoolMask idSchoolMask) const |
bool | HasSpell (uint32 spellID) const override |
void | UpdateMovementFlags () |
uint32 | GetRandomId (uint32 id1, uint32 id2, uint32 id3) |
bool | UpdateEntry (uint32 entry, const CreatureData *data=nullptr, bool changelevel=true, bool updateAI=false) |
bool | UpdateEntry (uint32 entry, bool updateAI) |
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) override |
void | SetCanDualWield (bool value) override |
int8 | GetOriginalEquipmentId () const |
uint8 | GetCurrentEquipmentId () |
void | SetCurrentEquipmentId (uint8 id) |
float | GetSpellDamageMod (int32 Rank) |
VendorItemData const * | GetVendorItems () const |
uint32 | GetVendorItemCurrentCount (VendorItem const *vItem) |
uint32 | UpdateVendorItemCurrentCount (VendorItem const *vItem, uint32 used_count) |
TrainerSpellData const * | GetTrainerSpells () const |
CreatureTemplate const * | GetCreatureTemplate () const |
CreatureData const * | GetCreatureData () const |
void | SetDetectionDistance (float dist) |
CreatureAddon const * | GetCreatureAddon () const |
std::string const & | GetAIName () const |
std::string | GetScriptName () const |
uint32 | GetScriptId () const |
std::string const & | GetNameForLocaleIdx (LocaleConstant locale_idx) const override |
void | setDeathState (DeathState s, bool despawn=false) override |
bool | LoadFromDB (ObjectGuid::LowType guid, Map *map, bool allowDuplicate=false) |
bool | LoadCreatureFromDB (ObjectGuid::LowType guid, Map *map, bool addToMap=true, bool gridLoad=false, bool allowDuplicate=false) |
void | SaveToDB () |
virtual void | SaveToDB (uint32 mapid, uint8 spawnMask, uint32 phaseMask) |
virtual void | DeleteFromDB () |
ObjectGuid | GetLootRecipientGUID () const |
Player * | GetLootRecipient () const |
ObjectGuid::LowType | GetLootRecipientGroupGUID () const |
Group * | GetLootRecipientGroup () const |
bool | hasLootRecipient () const |
bool | isTappedBy (Player const *player) const |
bool | CanGeneratePickPocketLoot () const |
void | SetPickPocketLootTime () |
void | ResetPickPocketLootTime () |
void | SetLootRecipient (Unit *unit, bool withGroup=true) |
void | AllLootRemovedFromCorpse () |
uint16 | GetLootMode () const |
bool | HasLootMode (uint16 lootMode) const |
void | SetLootMode (uint16 lootMode) |
void | AddLootMode (uint16 lootMode) |
void | RemoveLootMode (uint16 lootMode) |
void | ResetLootMode () |
SpellInfo const * | reachWithSpellAttack (Unit *victim) |
SpellInfo const * | reachWithSpellCure (Unit *victim) |
bool | CanStartAttack (Unit const *u) const |
float | GetAggroRange (Unit const *target) const |
float | GetAttackDistance (Unit const *player) const |
float | GetDetectionRange () const |
void | SendAIReaction (AiReaction reactionType) |
Unit * | SelectNearestTarget (float dist=0, bool playerOnly=false) const |
Unit * | SelectNearestTargetInAttackDistance (float dist) const |
void | DoFleeToGetAssistance () |
void | CallForHelp (float fRadius, Unit *target=nullptr) |
void | CallAssistance (Unit *target=nullptr) |
void | SetNoCallAssistance (bool val) |
void | SetNoSearchAssistance (bool val) |
bool | HasSearchedAssistance () |
bool | CanAssistTo (Unit const *u, Unit const *enemy, bool checkfaction=true) const |
bool | _IsTargetAcceptable (Unit const *target) const |
bool | CanIgnoreFeignDeath () const |
void | UpdateMoveInLineOfSightState () |
bool | IsMoveInLineOfSightDisabled () |
bool | IsMoveInLineOfSightStrictlyDisabled () |
void | RemoveCorpse (bool setSpawnTime=true, bool skipVisibility=false) |
void | DespawnOrUnsummon (Milliseconds msTimeToDespawn, Seconds forcedRespawnTimer) |
void | DespawnOrUnsummon (uint32 msTimeToDespawn=0) |
void | DespawnOnEvade (Seconds respawnDelay=20s) |
time_t const & | GetRespawnTime () const |
time_t | GetRespawnTimeEx () const |
void | SetRespawnTime (uint32 respawn) |
void | Respawn (bool force=false) |
void | SaveRespawnTime () override |
uint32 | GetRespawnDelay () const |
void | SetRespawnDelay (uint32 delay) |
uint32 | GetCombatPulseDelay () const |
void | SetCombatPulseDelay (uint32 delay) |
float | GetWanderDistance () const |
void | SetWanderDistance (float dist) |
void | DoImmediateBoundaryCheck () |
void | SendZoneUnderAttackMessage (Player *attacker) |
Send a message to LocalDefense channel for players opposition team in the zone. | |
void | SetInCombatWithZone () |
bool | hasQuest (uint32 quest_id) const override |
bool | hasInvolvedQuest (uint32 quest_id) const override |
bool | isRegeneratingHealth () |
void | SetRegeneratingHealth (bool c) |
void | SetRegeneratingPower (bool c) |
virtual uint8 | GetPetAutoSpellSize () const |
virtual uint32 | GetPetAutoSpellOnPos (uint8 pos) const |
void | SetCannotReachTarget (ObjectGuid const &target=ObjectGuid::Empty) |
bool | CanNotReachTarget () const |
bool | IsNotReachableAndNeedRegen () const |
void | SetPosition (float x, float y, float z, float o) |
void | SetPosition (const Position &pos) |
void | SetHomePosition (float x, float y, float z, float o) |
void | SetHomePosition (const Position &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 (const Position &pos) |
void | GetTransportHomePosition (float &x, float &y, float &z, float &ori) const |
Position const & | GetTransportHomePosition () const |
uint32 | GetWaypointPath () const |
void | LoadPath (uint32 pathid) |
uint32 | GetCurrentWaypointID () const |
void | UpdateWaypointID (uint32 wpID) |
void | SearchFormation () |
CreatureGroup const * | GetFormation () const |
CreatureGroup * | GetFormation () |
void | SetFormation (CreatureGroup *formation) |
Unit * | SelectVictim () |
void | SetDisableReputationGain (bool disable) |
bool | IsReputationGainDisabled () const |
bool | IsDamageEnoughForLootingAndReward () const |
void | LowerPlayerDamageReq (uint32 unDamage, bool damagedByPlayer=true) |
void | ResetPlayerDamageReq () |
uint32 | GetPlayerDamageReq () const |
uint32 | GetOriginalEntry () const |
void | SetOriginalEntry (uint32 entry) |
void | SetTarget (ObjectGuid guid=ObjectGuid::Empty) override |
void | FocusTarget (Spell const *focusSpell, WorldObject const *target) |
void | ReleaseFocus (Spell const *focusSpell) |
bool | IsMovementPreventedByCasting () const override |
time_t | GetLastDamagedTime () const |
std::shared_ptr< time_t > const & | GetLastDamagedTimePtr () const |
void | SetLastDamagedTime (time_t val) |
void | SetLastDamagedTimePtr (std::shared_ptr< time_t > const &val) |
bool | IsFreeToMove () |
bool | HasSwimmingFlagOutOfCombat () const |
void | RefreshSwimmingFlag (bool recheck=false) |
void | SetAssistanceTimer (uint32 value) |
void | ModifyThreatPercentTemp (Unit *victim, int32 percent, Milliseconds duration) |
void | ResumeChasingVictim () |
Helper to resume chasing current victim. | |
std::string | GetDebugInfo () const override |
Public Member Functions inherited from Unit | |
~Unit () override | |
UnitAI * | GetAI () |
void | SetAI (UnitAI *newAI) |
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) |
void | IncrDiminishing (DiminishingGroup group) |
float | ApplyDiminishingToDuration (DiminishingGroup group, int32 &duration, Unit *caster, DiminishingLevels Level, int32 limitduration) |
void | ApplyDiminishingAura (DiminishingGroup group, bool apply) |
void | ClearDiminishings () |
float | GetSpellMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
float | GetSpellMinRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const |
void | Update (uint32 time) override |
void | setAttackTimer (WeaponAttackType type, int32 time) |
void | resetAttackTimer (WeaponAttackType type=BASE_ATTACK) |
int32 | getAttackTimer (WeaponAttackType type) const |
bool | isAttackReady (WeaponAttackType type=BASE_ATTACK) const |
bool | haveOffhandWeapon () const |
bool | CanDualWield () const |
virtual void | SetCanDualWield (bool value) |
float | GetCombatReach () const override |
float | GetMeleeReach () const |
bool | IsWithinRange (Unit const *obj, float dist) const |
bool | IsWithinCombatRange (Unit const *obj, float dist2compare) const |
bool | IsWithinMeleeRange (Unit const *obj, float dist=0.f) const |
float | GetMeleeRange (Unit const *target) const |
virtual SpellSchoolMask | GetMeleeDamageSchoolMask (WeaponAttackType attackType=BASE_ATTACK, uint8 damageIndex=0) const =0 |
bool | GetRandomContactPoint (Unit const *target, float &x, float &y, float &z, bool force=false) 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 withInstant=true) |
bool | AttackStop () |
void | RemoveAllAttackers () |
AttackerSet const & | getAttackers () const |
bool | GetMeleeAttackPoint (Unit *attacker, Position &pos) |
bool | isAttackingPlayer () const |
Unit * | GetVictim () const |
void | CombatStop (bool includingCast=false) |
void | CombatStopWithPets (bool includingCast=false) |
void | StopAttackFaction (uint32 faction_id) |
void | StopAttackingInvalidTarget () |
Unit * | SelectNearbyTarget (Unit *exclude=nullptr, float dist=NOMINAL_MELEE_RANGE) const |
Unit * | SelectNearbyNoTotemTarget (Unit *exclude=nullptr, float dist=NOMINAL_MELEE_RANGE) const |
void | SendMeleeAttackStop (Unit *victim=nullptr) |
void | SendMeleeAttackStart (Unit *victim, Player *sendTo=nullptr) |
void | AddUnitState (uint32 f) |
bool | HasUnitState (const uint32 f) const |
void | ClearUnitState (uint32 f) |
uint32 | GetUnitState () const |
bool | CanFreeMove () const |
uint32 | HasUnitTypeMask (uint32 mask) const |
void | AddUnitTypeMask (uint32 mask) |
uint32 | GetUnitTypeMask () const |
bool | IsSummon () const |
bool | IsGuardian () const |
bool | IsControllableGuardian () const |
bool | IsPet () const |
bool | IsHunterPet () const |
bool | IsTotem () const |
bool | IsVehicle () const |
uint8 | getLevel () const |
uint8 | GetLevel () const |
uint8 | getLevelForTarget (WorldObject const *) const override |
void | SetLevel (uint8 lvl, bool showLevelChange=true) |
uint8 | getRace (bool original=false) const |
void | setRace (uint8 race) |
uint32 | getRaceMask () const |
uint8 | getClass () const |
uint32 | getClassMask () const |
uint8 | getGender () const |
float | GetStat (Stats stat) const |
void | SetStat (Stats stat, int32 val) |
uint32 | GetArmor () const |
void | SetArmor (int32 val) |
uint32 | GetResistance (SpellSchools school) const |
uint32 | 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 |
float | GetPowerPct (Powers power) 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) |
uint32 | GetPower (Powers power) const |
uint32 | GetMaxPower (Powers power) const |
void | SetPower (Powers power, uint32 val, bool withPowerUpdate=true, bool fromRegenerate=false) |
void | SetMaxPower (Powers power, uint32 val) |
int32 | ModifyPower (Powers power, int32 val, bool withPowerUpdate=true) |
int32 | ModifyPowerPct (Powers power, float pct, bool apply=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) |
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) |
SheathState | GetSheath () const |
virtual void | SetSheath (SheathState sheathed) |
uint32 | GetFaction () const |
void | SetFaction (uint32 faction) |
FactionTemplateEntry const * | GetFactionTemplateEntry () const |
ReputationRank | GetReactionTo (Unit const *target, bool checkOriginalFaction=false) const |
ReputationRank | GetFactionReactionTo (FactionTemplateEntry const *factionTemplateEntry, Unit const *target) const |
bool | IsHostileTo (Unit const *unit) const |
bool | IsHostileToPlayers () const |
bool | IsFriendlyTo (Unit const *unit) const |
bool | IsNeutralToAll () const |
bool | IsInPartyWith (Unit const *unit) const |
bool | IsInRaidWith (Unit const *unit) const |
void | GetPartyMembers (std::list< Unit * > &units) |
bool | IsContestedGuard () const |
bool | IsInSanctuary () const |
bool | IsPvP () const |
bool | IsFFAPvP () const |
void | SetPvP (bool state) |
uint32 | GetCreatureType () const |
uint32 | GetCreatureTypeMask () const |
uint8 | getStandState () const |
bool | IsSitState () const |
bool | IsStandState () const |
void | SetStandState (uint8 state) |
void | SetStandFlags (uint8 flags) |
void | RemoveStandFlags (uint8 flags) |
bool | IsMounted () const |
uint32 | GetMountID () const |
void | Mount (uint32 mount, uint32 vehicleId=0, uint32 creatureEntry=0) |
void | Dismount () |
uint16 | GetMaxSkillValueForLevel (Unit const *target=nullptr) const |
void | KillSelf (bool durabilityLoss=true, WeaponAttackType attackType=BASE_ATTACK, SpellInfo const *spellProto=nullptr, Spell const *spell=nullptr) |
void | ProcDamageAndSpellFor (bool isVictim, Unit *target, uint32 procFlag, uint32 procExtra, WeaponAttackType attType, SpellInfo const *procSpellInfo, uint32 damage, SpellInfo const *procAura=nullptr, int8 procAuraEffectIndex=-1, Spell const *procSpell=nullptr, DamageInfo *damageInfo=nullptr, HealInfo *healInfo=nullptr, uint32 procPhase=2) |
void | GetProcAurasTriggeredOnEvent (std::list< AuraApplication * > &aurasTriggeringProc, std::list< AuraApplication * > *procAuras, ProcEventInfo eventInfo) |
void | TriggerAurasProcOnEvent (CalcDamageInfo &damageInfo) |
void | TriggerAurasProcOnEvent (std::list< AuraApplication * > *myProcAuras, std::list< AuraApplication * > *targetProcAuras, Unit *actionTarget, uint32 typeMaskActor, uint32 typeMaskActionTarget, uint32 spellTypeMask, uint32 spellPhaseMask, uint32 hitMask, Spell *spell, DamageInfo *damageInfo, HealInfo *healInfo) |
void | TriggerAurasProcOnEvent (ProcEventInfo &eventInfo, std::list< AuraApplication * > &procAuras) |
void | HandleEmoteCommand (uint32 emoteId) |
void | AttackerStateUpdate (Unit *victim, WeaponAttackType attType=BASE_ATTACK, bool extra=false, bool ignoreCasting=false) |
void | CalculateMeleeDamage (Unit *victim, CalcDamageInfo *damageInfo, WeaponAttackType attackType=BASE_ATTACK, const bool sittingVictim=false) |
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 const &guid) |
ObjectGuid const & | GetLastDamagedTargetGuid () const |
void | CalculateSpellDamageTaken (SpellNonMeleeDamage *damageInfo, int32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType=BASE_ATTACK, bool crit=false) |
void | DealSpellDamage (SpellNonMeleeDamage *damageInfo, bool durabilityLoss, Spell const *spell=nullptr) |
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 |
float | MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, int32 skillDiff, uint32 spellId) const |
SpellMissInfo | MeleeSpellHitResult (Unit *victim, SpellInfo const *spell) |
SpellMissInfo | MagicSpellHitResult (Unit *victim, SpellInfo const *spell) |
SpellMissInfo | SpellHitResult (Unit *victim, SpellInfo const *spell, bool canReflect=false) |
SpellMissInfo | SpellHitResult (Unit *victim, Spell const *spell, bool canReflect=false) |
float | GetUnitDodgeChance () const |
float | GetUnitParryChance () const |
float | GetUnitBlockChance () const |
float | GetUnitMissChance (WeaponAttackType attType) const |
float | GetUnitCriticalChance (WeaponAttackType attackType, Unit const *victim) const |
int32 | GetMechanicResistChance (SpellInfo const *spell) |
bool | CanUseAttackType (uint8 attacktype) const |
virtual uint32 | GetShieldBlockValue () const =0 |
uint32 | GetShieldBlockValue (uint32 soft_cap, uint32 hard_cap) const |
uint32 | GetUnitMeleeSkill (Unit const *target=nullptr) 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 |
MeleeHitOutcome | RollMeleeOutcomeAgainst (Unit const *victim, WeaponAttackType attType, int32 crit_chance, int32 miss_chance, int32 dodge_chance, int32 parry_chance, int32 block_chance) 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 |
void | SetImmuneToAll (bool apply, bool keepCombat=false) |
bool | IsImmuneToAll () const |
void | SetImmuneToPC (bool apply, bool keepCombat=false) |
bool | IsImmuneToPC () const |
void | SetImmuneToNPC (bool apply, bool keepCombat=false) |
bool | IsImmuneToNPC () const |
bool | IsEngaged () const |
bool | IsEngagedBy (Unit const *who) const |
bool | IsInCombat () const |
bool | IsInCombatWith (Unit const *who) const |
bool | IsPetInCombat () const |
void | CombatStart (Unit *target, bool initialAggro=true) |
void | CombatStartOnCast (Unit *target, bool initialAggro=true, uint32 duration=0) |
void | SetInCombatState (bool PvP, Unit *enemy=nullptr, uint32 duration=0) |
void | SetInCombatWith (Unit *enemy, uint32 duration=0) |
void | ClearInCombat () |
void | ClearInPetCombat () |
uint32 | GetCombatTimer () const |
void | SetCombatTimer (uint32 timer) |
bool | HasAuraTypeWithFamilyFlags (AuraType auraType, uint32 familyName, uint32 familyFlags) const |
virtual bool | HasSpell (uint32) const |
bool | HasBreakableByDamageAuraType (AuraType type, uint32 excludeAura=0) const |
bool | HasBreakableByDamageCrowdControlAura (Unit *excludeCasterChannel=nullptr) const |
bool | HasStealthAura () const |
bool | HasInvisibilityAura () const |
bool | isFeared () const |
bool | isInRoots () const |
bool | IsPolymorphed () const |
bool | isFrozen () const |
bool | isTargetableForAttack (bool checkFakeDeath=true, Unit const *byWho=nullptr) const |
bool | IsValidAttackTarget (Unit const *target, SpellInfo const *bySpell=nullptr) const |
bool | _IsValidAttackTarget (Unit const *target, SpellInfo const *bySpell, WorldObject const *obj=nullptr) const |
bool | IsValidAssistTarget (Unit const *target) const |
bool | _IsValidAssistTarget (Unit const *target, SpellInfo const *bySpell) const |
virtual bool | IsInWater () const |
virtual bool | IsUnderWater () const |
bool | isInAccessiblePlaceFor (Creature const *c) const |
void | SendHealSpellLog (HealInfo const &healInfo, bool critical=false) |
int32 | HealBySpell (HealInfo &healInfo, bool critical=false) |
void | SendEnergizeSpellLog (Unit *victim, uint32 SpellID, uint32 Damage, Powers powertype) |
void | EnergizeBySpell (Unit *victim, uint32 SpellID, uint32 Damage, Powers powertype) |
SpellCastResult | CastSpell (SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
SpellCastResult | CastSpell (Unit *victim, uint32 spellId, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
SpellCastResult | CastSpell (Unit *victim, uint32 spellId, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
SpellCastResult | CastSpell (Unit *victim, SpellInfo const *spellInfo, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
SpellCastResult | CastSpell (Unit *victim, SpellInfo const *spellInfo, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
SpellCastResult | CastSpell (float x, float y, float z, uint32 spellId, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
SpellCastResult | CastSpell (GameObject *go, uint32 spellId, bool triggered, Item *castItem=nullptr, AuraEffect *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
SpellCastResult | CastCustomSpell (Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
SpellCastResult | CastCustomSpell (uint32 spellId, SpellValueMod mod, int32 value, Unit *victim, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
SpellCastResult | CastCustomSpell (uint32 spellId, SpellValueMod mod, int32 value, Unit *victim=nullptr, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
SpellCastResult | CastCustomSpell (uint32 spellId, CustomSpellValues const &value, Unit *victim=nullptr, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty) |
Aura * | AddAura (uint32 spellId, Unit *target) |
Aura * | AddAura (SpellInfo const *spellInfo, uint8 effMask, Unit *target) |
void | SetAuraStack (uint32 spellId, Unit *target, uint32 stack) |
void | SendPlaySpellVisual (uint32 id) |
void | SendPlaySpellImpact (ObjectGuid guid, uint32 id) |
void | BuildCooldownPacket (WorldPacket &data, uint8 flags, uint32 spellId, uint32 cooldown) |
void | BuildCooldownPacket (WorldPacket &data, uint8 flags, PacketCooldowns const &cooldowns) |
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 *log) |
void | SendSpellNonMeleeReflectLog (SpellNonMeleeDamage *log, Unit *attacker) |
void | SendSpellNonMeleeDamageLog (Unit *target, SpellInfo const *spellInfo, uint32 Damage, SpellSchoolMask damageSchoolMask, uint32 AbsorbedDamage, uint32 Resist, bool PhysicalDamage, uint32 Blocked, bool CriticalHit=false, bool Split=false) |
void | SendPeriodicAuraLog (SpellPeriodicAuraLogInfo *pInfo) |
void | SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo) |
void | SendSpellDamageResist (Unit *target, uint32 spellId) |
void | SendSpellDamageImmune (Unit *target, uint32 spellId) |
void | NearTeleportTo (Position &pos, bool casting=false, bool vehicleTeleport=false, bool withPet=false, bool removeTransport=false) |
void | NearTeleportTo (float x, float y, float z, float orientation, bool casting=false, bool vehicleTeleport=false, bool withPet=false, bool removeTransport=false) |
void | SendTameFailure (uint8 result) |
void | SendTeleportPacket (Position &pos) |
virtual bool | UpdatePosition (float x, float y, float z, float ang, bool teleport=false) |
bool | UpdatePosition (const Position &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 | KnockbackFrom (float x, float y, float speedXY, float speedZ) |
void | JumpTo (float speedXY, float speedZ, bool forward=true) |
void | JumpTo (WorldObject *obj, float speedZ) |
void | SendMonsterMove (float NewPosX, float NewPosY, float NewPosZ, uint32 TransitTime, SplineFlags sf=SPLINEFLAG_WALK_MODE) |
void | MonsterMoveWithSpeed (float x, float y, float z, float speed) |
void | SendMovementFlagUpdate (bool self=false) |
virtual bool | SetWalk (bool enable) |
virtual bool | SetDisableGravity (bool disable, bool packetOnly=false, bool updateAnimationTier=true) |
virtual bool | SetSwim (bool enable) |
virtual bool | SetCanFly (bool enable, bool packetOnly=false) |
virtual bool | SetWaterWalking (bool enable, bool packetOnly=false) |
virtual bool | SetFeatherFall (bool enable, bool packetOnly=false) |
virtual bool | SetHover (bool enable, bool packetOnly=false, bool updateAnimationTier=true) |
void | SendMovementWaterWalking (Player *sendTo) |
void | SendMovementFeatherFall (Player *sendTo) |
void | SendMovementHover (Player *sendTo) |
void | SetInFront (WorldObject const *target) |
void | SetFacingTo (float ori) |
void | SetFacingToObject (WorldObject *object) |
void | SendChangeCurrentVictimOpcode (HostileReference *pHostileReference) |
void | SendClearThreatListOpcode () |
void | SendRemoveFromThreatListOpcode (HostileReference *pHostileReference) |
void | SendThreatListUpdate () |
void | SendClearTarget () |
void | BuildHeartBeatMsg (WorldPacket *data) const |
bool | IsAlive () const |
bool | isDying () const |
bool | isDead () const |
DeathState | getDeathState () |
virtual void | setDeathState (DeathState s, bool despawn=false) |
ObjectGuid | GetOwnerGUID () const |
void | SetOwnerGUID (ObjectGuid owner) |
ObjectGuid | GetCreatorGUID () const |
void | SetCreatorGUID (ObjectGuid creator) |
ObjectGuid | GetMinionGUID () const |
void | SetMinionGUID (ObjectGuid guid) |
ObjectGuid | GetCharmerGUID () const |
void | SetCharmerGUID (ObjectGuid owner) |
ObjectGuid | GetCharmGUID () const |
void | SetPetGUID (ObjectGuid guid) |
ObjectGuid | GetPetGUID () const |
void | SetCritterGUID (ObjectGuid guid) |
ObjectGuid | GetCritterGUID () const |
bool | IsControlledByPlayer () const |
bool | IsCreatedByPlayer () const |
ObjectGuid | GetCharmerOrOwnerGUID () const |
ObjectGuid | GetCharmerOrOwnerOrOwnGUID () const |
bool | IsCharmedOwnedByPlayerOrPlayer () const |
Player * | GetSpellModOwner () const |
Unit * | GetOwner () const |
Guardian * | GetGuardianPet () const |
Minion * | GetFirstMinion () const |
Unit * | GetCharmer () const |
Unit * | GetCharm () const |
Unit * | GetCharmerOrOwner () const |
Unit * | GetCharmerOrOwnerOrSelf () const |
Player * | GetCharmerOrOwnerPlayerOrPlayerItself () const |
Player * | GetAffectingPlayer () const |
void | SetMinion (Minion *minion, bool apply) |
void | GetAllMinionsByEntry (std::list< Creature * > &Minions, uint32 entry) |
void | RemoveAllMinionsByEntry (uint32 entry) |
void | SetCharm (Unit *target, bool apply) |
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 onDeath=false) |
bool | IsCharmed () const |
bool | isPossessed () const |
bool | isPossessedByPlayer () const |
bool | isPossessing () const |
bool | isPossessing (Unit *u) const |
CharmInfo * | GetCharmInfo () |
CharmInfo * | InitCharmInfo () |
void | DeleteCharmInfo () |
void | UpdateCharmAI () |
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 (SpellInfo const *newAura, uint8 effMask, Unit *caster, int32 *baseAmount=nullptr, Item *castItem=nullptr, ObjectGuid casterGUID=ObjectGuid::Empty, bool periodicReset=false) |
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 | _RemoveNoStackAuraApplicationsDueToAura (Aura *aura) |
void | _RemoveNoStackAurasDueToAura (Aura *aura) |
bool | _IsNoStackAuraDueToAura (Aura *appliedAura, Aura *existingAura) const |
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) |
void | RemoveOwnedAuras (std::function< bool(Aura const *)> const &check) |
void | RemoveAppliedAuras (uint32 spellId, std::function< bool(AuraApplication const *)> const &check) |
void | RemoveOwnedAuras (uint32 spellId, std::function< bool(Aura const *)> const &check) |
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, Unit *dispeller, uint8 chargesRemoved=1) |
void | RemoveAurasDueToSpellBySteal (uint32 spellId, ObjectGuid casterGUID, Unit *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 () |
void | RemoveAurasWithInterruptFlags (uint32 flag, uint32 except=0, bool isAutoshot=false) |
void | RemoveAurasWithAttribute (uint32 flags) |
void | RemoveAurasWithFamily (SpellFamilyNames family, uint32 familyFlag1, uint32 familyFlag2, uint32 familyFlag3, ObjectGuid casterGUID) |
void | RemoveAurasWithMechanic (uint32 mechanic_mask, AuraRemoveMode removemode=AURA_REMOVE_BY_DEFAULT, uint32 except=0) |
void | RemoveMovementImpairingAuras (bool withRoot) |
void | RemoveAurasByShapeShift () |
void | RemoveAreaAurasDueToLeaveWorld () |
void | RemoveAllAuras () |
void | RemoveArenaAuras () |
void | RemoveAllAurasOnDeath () |
void | RemoveAllAurasRequiringDeadTarget () |
void | RemoveAllAurasExceptType (AuraType type) |
void | RemoveEvadeAuras () |
void | DelayOwnedAuras (uint32 spellId, ObjectGuid caster, int32 delaytime) |
void | _RemoveAllAuraStatMods () |
void | _ApplyAllAuraStatMods () |
AuraEffectList const & | GetAuraEffectsByType (AuraType type) const |
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 * | GetAuraEffectDummy (uint32 spellid) 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 (Unit *caster, uint32 dispelMask, DispelChargesList &dispelList) |
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) |
bool | HasVisibleAuraType (AuraType auraType) const |
bool | HasNegativeAuraWithAttribute (uint32 flag, ObjectGuid guid=ObjectGuid::Empty) |
bool | HasAuraWithMechanic (uint32 mechanicMask) const |
AuraEffect * | IsScriptOverriden (SpellInfo const *spell, int32 script) const |
uint32 | GetDiseasesByCaster (ObjectGuid casterGUID, uint8 mode=0) |
uint32 | GetDoTsByCaster (ObjectGuid casterGUID) const |
int32 | GetTotalAuraModifierAreaExclusive (AuraType auratype) const |
int32 | GetTotalAuraModifier (AuraType auratype) const |
float | GetTotalAuraMultiplier (AuraType auratype) const |
int32 | GetMaxPositiveAuraModifier (AuraType auratype) |
int32 | GetMaxNegativeAuraModifier (AuraType auratype) const |
int32 | GetTotalAuraModifierByMiscMask (AuraType auratype, uint32 misc_mask) const |
float | GetTotalAuraMultiplierByMiscMask (AuraType auratype, uint32 misc_mask) const |
int32 | GetMaxPositiveAuraModifierByMiscMask (AuraType auratype, uint32 misc_mask, const AuraEffect *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 |
float | GetResistanceBuffMods (SpellSchools school, bool positive) const |
void | SetResistanceBuffMods (SpellSchools school, bool positive, float val) |
void | ApplyResistanceBuffModsMod (SpellSchools school, bool positive, float val, bool apply) |
void | ApplyResistanceBuffModsPercentMod (SpellSchools school, bool positive, float val, bool apply) |
void | InitStatBuffMods () |
void | ApplyStatBuffMod (Stats stat, float val, bool apply) |
void | ApplyStatPercentBuffMod (Stats stat, float val, bool apply) |
void | SetCreateStat (Stats stat, float val) |
void | SetCreateHealth (uint32 val) |
uint32 | GetCreateHealth () const |
void | SetCreateMana (uint32 val) |
uint32 | GetCreateMana () const |
uint32 | GetCreatePowers (Powers power) const |
float | GetPosStat (Stats stat) const |
float | GetNegStat (Stats stat) const |
float | GetCreateStat (Stats stat) const |
void | SetCurrentCastedSpell (Spell *pSpell) |
virtual void | ProhibitSpellSchool (SpellSchoolMask, uint32) |
void | InterruptSpell (CurrentSpellTypes spellType, bool withDelayed=true, bool withInstant=true, bool bySelf=false) |
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, bool bySelf=false) |
Spell * | GetCurrentSpell (CurrentSpellTypes spellType) const |
Spell * | GetCurrentSpell (uint32 spellType) const |
Spell * | FindCurrentSpellBySpellId (uint32 spell_id) const |
int32 | GetCurrentSpellCastTime (uint32 spell_id) const |
virtual bool | IsMovementPreventedByCasting () const |
ShapeshiftForm | GetShapeshiftForm () const |
void | SetShapeshiftForm (ShapeshiftForm form) |
bool | IsInFeralForm () const |
bool | IsInDisallowedMountForm () const |
bool | HandleStatModifier (UnitMods unitMod, UnitModifierType modifierType, float amount, bool apply) |
void | SetModifierValue (UnitMods unitMod, UnitModifierType modifierType, float value) |
float | GetModifierValue (UnitMods unitMod, UnitModifierType modifierType) const |
float | GetTotalStatValue (Stats stat, float additionalValue=0.0f) 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 bool | UpdateStats (Stats stat)=0 |
virtual bool | UpdateAllStats ()=0 |
virtual void | UpdateResistances (uint32 school)=0 |
virtual void | UpdateAllResistances () |
virtual void | UpdateArmor ()=0 |
virtual void | UpdateMaxHealth ()=0 |
virtual void | UpdateMaxPower (Powers power)=0 |
virtual void | UpdateAttackPowerAndDamage (bool ranged=false)=0 |
virtual void | UpdateDamagePhysical (WeaponAttackType attType) |
float | GetTotalAttackPowerValue (WeaponAttackType attType, Unit *pVictim=nullptr) const |
float | GetWeaponDamageRange (WeaponAttackType attType, WeaponDamageRange type, uint8 damageIndex=0) const |
void | SetBaseWeaponDamage (WeaponAttackType attType, WeaponDamageRange damageRange, float value, uint8 damageIndex=0) |
virtual void | CalculateMinMaxDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, float &minDamage, float &maxDamage, uint8 damageIndex=0)=0 |
uint32 | CalculateDamage (WeaponAttackType attType, bool normalized, bool addTotalPct, uint8 itemDamagesMask=0) |
float | GetAPMultiplier (WeaponAttackType attType, bool normalized) |
bool | isInFrontInMap (Unit const *target, float distance, float arc=M_PI) const |
bool | isInBackInMap (Unit const *target, float distance, float arc=M_PI) const |
bool | IsVisible () const |
void | SetVisible (bool x) |
void | SetModelVisible (bool on) |
uint32 | GetPhaseByAuras () const |
void | SetPhaseMask (uint32 newPhaseMask, bool update) override |
void | UpdateObjectVisibility (bool forced=true, bool fromUpdate=false) override |
bool | CanHaveThreatList () const |
void | AddThreat (Unit *victim, float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *threatSpell=nullptr) |
float | ApplyTotalThreatModifier (float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL) |
void | TauntApply (Unit *victim) |
void | TauntFadeOut (Unit *taunter) |
ThreatMgr & | GetThreatMgr () |
ThreatMgr const & | GetThreatMgr () const |
void | addHatedBy (HostileReference *pHostileReference) |
void | removeHatedBy (HostileReference *) |
HostileRefMgr & | getHostileRefMgr () |
VisibleAuraMap const * | GetVisibleAuras () |
AuraApplication * | GetVisibleAura (uint8 slot) |
void | SetVisibleAura (uint8 slot, AuraApplication *aur) |
void | RemoveVisibleAura (uint8 slot) |
uint32 | GetInterruptMask () const |
void | AddInterruptMask (uint32 mask) |
void | UpdateInterruptMask () |
virtual float | GetNativeObjectScale () const |
virtual void | RecalculateObjectScale () |
uint32 | GetDisplayId () const |
virtual void | SetDisplayId (uint32 modelId) |
uint32 | GetNativeDisplayId () const |
void | RestoreDisplayId () |
void | SetNativeDisplayId (uint32 modelId) |
void | setTransForm (uint32 spellid) |
uint32 | getTransForm () const |
void | _RegisterDynObject (DynamicObject *dynObj) |
void | _UnregisterDynObject (DynamicObject *dynObj) |
DynamicObject * | GetDynObject (uint32 spellId) |
bool | RemoveDynObject (uint32 spellId) |
void | RemoveAllDynObjects () |
GameObject * | GetGameObject (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 *target) const |
bool | HasAuraState (AuraStateType flag, SpellInfo const *spellProto=nullptr, Unit const *Caster=nullptr) const |
void | UnsummonAllTotems (bool onDeath=false) |
Unit * | GetMagicHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo) |
Unit * | GetMeleeHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo=nullptr) |
int32 | SpellBaseDamageBonusDone (SpellSchoolMask schoolMask) |
int32 | SpellBaseDamageBonusTaken (SpellSchoolMask schoolMask, bool isDoT=false) |
float | SpellPctDamageModsDone (Unit *victim, SpellInfo const *spellProto, DamageEffectType damagetype) |
uint32 | SpellDamageBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, uint8 effIndex, float TotalMod=0.0f, uint32 stack=1) |
uint32 | SpellDamageBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, uint32 stack=1) |
int32 | SpellBaseHealingBonusDone (SpellSchoolMask schoolMask) |
int32 | SpellBaseHealingBonusTaken (SpellSchoolMask schoolMask) |
float | SpellPctHealingModsDone (Unit *victim, SpellInfo const *spellProto, DamageEffectType damagetype) |
uint32 | SpellHealingBonusDone (Unit *victim, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype, uint8 effIndex, float TotalMod=0.0f, uint32 stack=1) |
uint32 | SpellHealingBonusTaken (Unit *caster, SpellInfo const *spellProto, uint32 healamount, DamageEffectType damagetype, uint32 stack=1) |
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 | isSpellBlocked (Unit *victim, SpellInfo const *spellProto, WeaponAttackType attackType=BASE_ATTACK) |
bool | isBlockCritical () |
float | SpellDoneCritChance (Unit const *, SpellInfo const *spellProto, SpellSchoolMask schoolMask, WeaponAttackType attackType, bool skipEffectCheck) const |
float | SpellTakenCritChance (Unit const *caster, SpellInfo const *spellProto, SpellSchoolMask schoolMask, float doneChance, WeaponAttackType attackType, bool skipEffectCheck) const |
void | SetLastManaUse (uint32 spellCastTime) |
bool | IsUnderLastManaUseEffect () const |
void | SetContestedPvP (Player *attackedPlayer=nullptr, bool lookForNearContestedGuards=true) |
uint32 | GetCastingTimeForBonus (SpellInfo const *spellProto, DamageEffectType damagetype, uint32 CastingTime) const |
float | CalculateDefaultCoefficient (SpellInfo const *spellInfo, DamageEffectType damagetype) const |
void | CastDelayedSpellWithPeriodicAmount (Unit *caster, uint32 spellId, AuraType auraType, int32 addAmount, uint8 effectIndex=0) |
void | ApplySpellImmune (uint32 spellId, uint32 op, uint32 type, bool apply, SpellImmuneBlockType blockType=SPELL_BLOCK_TYPE_ALL) |
void | ApplySpellDispelImmunity (SpellInfo const *spellProto, DispelType type, bool apply) |
virtual bool | IsImmunedToSpell (SpellInfo const *spellInfo, Spell const *spell=nullptr) |
bool | IsImmunedToDamage (SpellSchoolMask meleeSchoolMask) const |
bool | IsImmunedToDamage (SpellInfo const *spellInfo) const |
bool | IsImmunedToDamage (Spell const *spell) const |
bool | IsImmunedToSchool (SpellSchoolMask meleeSchoolMask) const |
bool | IsImmunedToSchool (SpellInfo const *spellInfo) const |
bool | IsImmunedToSchool (Spell const *spell) const |
bool | IsImmunedToDamageOrSchool (SpellSchoolMask meleeSchoolMask) const |
bool | IsImmunedToDamageOrSchool (SpellInfo const *spellInfo) const |
virtual bool | IsImmunedToSpellEffect (SpellInfo const *spellInfo, uint32 index) const |
void | UpdateSpeed (UnitMoveType mtype, bool forced) |
float | GetSpeed (UnitMoveType mtype) const |
float | GetSpeedRate (UnitMoveType mtype) const |
void | SetSpeed (UnitMoveType mtype, float rate, bool forced=false) |
void | SetSpeedRate (UnitMoveType mtype, float rate) |
float | ApplyEffectModifiers (SpellInfo const *spellProto, uint8 effect_index, float value) const |
int32 | CalculateSpellDamage (Unit const *target, SpellInfo const *spellProto, uint8 effect_index, int32 const *basePoints=nullptr) const |
int32 | CalcSpellDuration (SpellInfo const *spellProto) |
int32 | ModSpellDuration (SpellInfo const *spellProto, Unit const *target, int32 duration, bool positive, uint32 effectMask) |
void | ModSpellCastTime (SpellInfo const *spellProto, int32 &castTime, Spell *spell=nullptr) |
float | CalculateLevelPenalty (SpellInfo const *spellProto) const |
void | addFollower (FollowerReference *pRef) |
void | removeFollower (FollowerReference *) |
MotionMaster * | GetMotionMaster () |
const MotionMaster * | GetMotionMaster () const |
virtual MovementGeneratorType | GetDefaultMovementType () const |
-------—End of Pet responses methods-------— | |
bool | IsStopped () const |
void | StopMoving () |
void | StopMovingOnCurrentPos () |
virtual void | PauseMovement (uint32 timer=0, uint8 slot=0) |
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 (uint16 f) |
void | RemoveExtraUnitMovementFlag (uint16 f) |
uint16 | HasExtraUnitMovementFlag (uint16 f) const |
uint16 | GetExtraUnitMovementFlags () const |
void | SetExtraUnitMovementFlags (uint16 f) |
void | SetControlled (bool apply, UnitState state, Unit *source=nullptr, bool isFear=false) |
void | DisableRotate (bool apply) |
void | DisableSpline () |
uint8 | GetComboPoints (Unit const *who=nullptr) const |
--------—Combo point system----------------— | |
uint8 | GetComboPoints (ObjectGuid const &guid) const |
Unit * | GetComboTarget () const |
ObjectGuid const | 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 (uint8 msg) |
-------—Pet responses methods--------------— | |
void | SendPetTalk (uint32 pettalk) |
void | SendPetAIReaction (ObjectGuid guid) |
void | propagateSpeedChange () |
-------—End of Pet responses methods-------— | |
void | ClearAllReactives () |
void | StartReactiveTimer (ReactiveType reactive) |
void | UpdateReactives (uint32 p_time) |
void | UpdateAuraForGroup (uint8 slot) |
bool | CanProc () |
void | SetCantProc (bool apply) |
void | AddPetAura (PetAura const *petSpell) |
void | RemovePetAura (PetAura const *petSpell) |
void | CastPetAura (PetAura const *aura) |
bool | IsPetAura (Aura const *aura) |
uint32 | GetModelForForm (ShapeshiftForm form, uint32 spellId) const |
uint32 | GetModelForTotem (PlayerTotemType totemType) |
void | SetRedirectThreat (ObjectGuid guid, uint32 pct) |
void | ResetRedirectThreat () |
void | ModifyRedirectThreat (int32 amount) |
uint32 | GetRedirectThreatPercent () |
Unit * | GetRedirectThreatTarget () const |
bool | CreateVehicleKit (uint32 id, uint32 creatureEntry) |
void | RemoveVehicleKit () |
Vehicle * | GetVehicleKit () const |
Vehicle * | GetVehicle () const |
bool | IsOnVehicle (Unit const *vehicle) const |
Unit * | GetVehicleBase () 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) | |
bool | HandleSpellClick (Unit *clicker, int8 seatId=-1) |
void | EnterVehicle (Unit *base, int8 seatId=-1) |
void | EnterVehicleUnattackable (Unit *base, int8 seatId=-1) |
void | ExitVehicle (Position const *exitPosition=nullptr) |
void | ChangeSeat (int8 seatId, bool next=true) |
void | _ExitVehicle (Position const *exitPosition=nullptr) |
void | _EnterVehicle (Vehicle *vehicle, int8 seatId, AuraApplication const *aurApp=nullptr) |
void | BuildMovementPacket (ByteBuffer *data) const |
virtual bool | CanSwim () const |
this method checks the current flag of a unit | |
bool | IsLevitating () const |
bool | IsWalking () const |
bool | isMoving () const |
bool | isTurning () const |
bool | IsHovering () const |
bool | isSwimming () const |
virtual bool | CanFly () const =0 |
bool | IsFlying () const |
bool | IsFalling () const |
float | GetHoverHeight () const |
virtual bool | CanEnterWater () const =0 |
void | RewardRage (uint32 damage, uint32 weaponSpeedHitFactor, bool attacker) |
virtual float | GetFollowAngle () const |
void | OutDebugInfo () const |
virtual bool | isBeingLoaded () const |
bool | IsDuringRemoveFromWorld () const |
Pet * | ToPet () |
Totem * | ToTotem () |
TempSummon * | ToTempSummon () |
const TempSummon * | ToTempSummon () const |
void | AddPointedBy (SafeUnitPointer *sup) |
void | RemovePointedBy (SafeUnitPointer *sup) |
void | ExecuteDelayedUnitRelocationEvent () |
void | ExecuteDelayedUnitAINotifyEvent () |
virtual bool | HasSpellCooldown (uint32) const |
virtual bool | HasSpellItemCooldown (uint32, uint32) const |
virtual void | AddSpellCooldown (uint32, uint32, uint32, bool needSendToClient=false, bool forceSendToSpectator=false) |
bool | CanApplyResilience () const |
void | PetSpellFail (SpellInfo const *spellInfo, Unit *target, uint32 result) |
int32 | CalculateAOEDamageReduction (int32 damage, uint32 schoolMask, Unit *caster) const |
ObjectGuid | GetTarget () const |
virtual void | SetTarget (ObjectGuid=ObjectGuid::Empty)=0 |
void | SetInstantCast (bool set) |
bool | CanInstantCast () const |
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 |
Return collision height sent to client. | |
float | GetCollisionWidth () const override |
this method gets the diameter of a Unit by DB if any value is defined, otherwise it gets the value by the DBC | |
float | GetCollisionRadius () const override |
this method gets the radius of a Unit by DB if any value is defined, otherwise it gets the value by the DBC | |
void | ProcessPositionDataChanged (PositionFullTerrainStatus const &data) override |
virtual void | ProcessTerrainStatusUpdate () |
bool | CanRestoreMana (SpellInfo const *spellInfo) const |
std::string | GetDebugInfo () const override |
uint32 | GetOldFactionId () const |
Public Member Functions inherited from WorldObject | |
~WorldObject () override | |
virtual void | Update (uint32) |
void | _Create (ObjectGuid::LowType guidlow, HighGuid guidhigh, uint32 phaseMask) |
void | AddToWorld () override |
void | RemoveFromWorld () override |
void | GetNearPoint2D (WorldObject const *searcher, float &x, float &y, float distance, float absAngle, Position const *startPos=nullptr) const |
void | GetNearPoint2D (float &x, float &y, float distance, float absAngle, Position const *startPos=nullptr) const |
void | GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float searcher_size, float distance2d, float absAngle, float controlZ=0, Position const *startPos=nullptr) const |
void | GetVoidClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float relAngle=0, float controlZ=0) const |
bool | GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float angle=0, WorldObject const *forWho=nullptr, bool force=false) 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 startX, float startY, float startZ, float destX, float destY) |
Position | GetFirstCollisionPosition (float destX, float destY, float destZ) |
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 | GetChargeContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const |
float | GetObjectSize () const |
virtual float | GetCombatReach () const |
void | UpdateGroundPositionZ (float x, float y, float &z) const |
void | UpdateAllowedPositionZ (float x, float y, float &z, float *groundZ=nullptr) const |
void | GetRandomPoint (const Position &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const |
Position | GetRandomPoint (const Position &srcPos, float distance) const |
uint32 | GetInstanceId () const |
virtual void | SetPhaseMask (uint32 newPhaseMask, bool update) |
uint32 | GetPhaseMask () const |
bool | InSamePhase (WorldObject const *obj) const |
bool | InSamePhase (uint32 phasemask) const |
uint32 | GetZoneId () const |
uint32 | GetAreaId () const |
void | GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const |
bool | IsOutdoors () const |
LiquidData const & | GetLiquidData () const |
InstanceScript * | GetInstanceScript () const |
std::string const & | GetName () const |
void | SetName (std::string const &newname) |
virtual std::string const & | GetNameForLocaleIdx (LocaleConstant) const |
float | GetDistance (WorldObject const *obj) const |
float | GetDistance (const Position &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 (const Position *pos, float dist) const |
bool | IsWithinDist2d (float x, float y, float dist) const |
bool | IsWithinDist2d (const Position *pos, float dist) const |
bool | IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true, bool useBoundingRadius=true) const |
bool | IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true, bool useBoundingRadius=true) const |
bool | IsWithinLOS (float x, float y, float z, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS) const |
bool | IsWithinLOSInMap (WorldObject const *obj, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, Optional< float > collisionHeight={ }, Optional< float > combatReach={ }) const |
Position | GetHitSpherePointFor (Position const &dest, Optional< float > collisionHeight={ }, Optional< float > combatReach={ }) const |
void | GetHitSpherePointFor (Position const &dest, float &x, float &y, float &z, Optional< float > collisionHeight={ }, Optional< float > combatReach={ }) 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=M_PI) const |
bool | isInBack (WorldObject const *target, float arc=M_PI) const |
bool | IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const |
virtual void | CleanupsBeforeDelete (bool finalCleanup=true) |
virtual void | SendMessageToSet (WorldPacket const *data, bool self) const |
virtual void | SendMessageToSetInRange (WorldPacket const *data, float dist, bool, bool includeMargin=false, Player const *skipped_rcvr=nullptr) const |
virtual void | SendMessageToSet (WorldPacket const *data, Player const *skipped_rcvr) const |
virtual uint8 | getLevelForTarget (WorldObject const *) const |
void | PlayDistanceSound (uint32 sound_id, Player *target=nullptr) |
void | PlayDirectSound (uint32 sound_id, Player *target=nullptr) |
void | PlayDirectMusic (uint32 music_id, Player *target=nullptr) |
void | SendObjectDeSpawnAnim (ObjectGuid guid) |
virtual void | SaveRespawnTime () |
void | AddObjectToRemoveList () |
float | GetGridActivationRange () const |
float | GetVisibilityRange () const |
virtual float | GetSightRange (WorldObject const *target=nullptr) const |
bool | CanSeeOrDetect (WorldObject const *obj, bool ignoreStealth=false, bool distanceCheck=false, bool checkAlert=false) const |
void | SendPlayMusic (uint32 Music, bool OnlySelf) |
virtual void | SetMap (Map *map) |
virtual void | ResetMap () |
Map * | GetMap () const |
Map * | FindMap () const |
void | SetZoneScript () |
void | ClearZoneScript () |
ZoneScript * | GetZoneScript () const |
TempSummon * | SummonCreature (uint32 id, const Position &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr, bool visibleBySummonerOnly=false) const |
TempSummon * | SummonCreature (uint32 id, float x, float y, float z, float ang=0, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, SummonPropertiesEntry const *properties=nullptr, bool visibleBySummonerOnly=false) |
GameObject * | SummonGameObject (uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime, bool checkTransport=true, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN) |
Creature * | SummonTrigger (float x, float y, float z, float ang, uint32 dur, bool setLevel=false, CreatureAI *(*GetAI)(Creature *)=nullptr) |
void | SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=nullptr) |
Creature * | FindNearestCreature (uint32 entry, float range, bool alive=true) const |
GameObject * | FindNearestGameObject (uint32 entry, float range, bool onlySpawned=false) const |
GameObject * | FindNearestGameObjectOfType (GameobjectTypes type, float range) const |
Player * | SelectNearestPlayer (float distance=0) const |
void | GetGameObjectListWithEntryInGrid (std::list< GameObject * > &lList, uint32 uiEntry, float fMaxSearchRange) const |
void | GetCreatureListWithEntryInGrid (std::list< Creature * > &lList, uint32 uiEntry, float fMaxSearchRange) const |
void | GetDeadCreatureListInGrid (std::list< Creature * > &lList, float maxSearchRange, bool alive=false) const |
void | DestroyForNearbyPlayers () |
virtual void | UpdateObjectVisibility (bool forced=true, bool fromUpdate=false) |
void | BuildUpdate (UpdateDataMapType &data_map, UpdatePlayerSet &player_set) override |
void | GetCreaturesWithEntryInRange (std::list< Creature * > &creatureList, float radius, uint32 entry) |
void | SetPositionDataUpdate () |
void | UpdatePositionData () |
void | AddToObjectUpdate () override |
void | RemoveFromObjectUpdate () override |
void | AddToNotify (uint16 f) |
void | RemoveFromNotify (uint16 f) |
bool | isNeedNotify (uint16 f) const |
uint16 | GetNotifyFlags () const |
bool | NotifyExecuted (uint16 f) const |
void | SetNotified (uint16 f) |
void | ResetAllNotifies () |
bool | isActiveObject () const |
void | setActive (bool isActiveObject) |
bool | IsFarVisible () const |
bool | IsVisibilityOverridden () const |
void | SetVisibilityDistanceOverride (VisibilityDistanceType type) |
void | SetWorldObject (bool apply) |
bool | IsPermanentWorldObject () const |
bool | IsWorldObject () const |
bool | IsInWintergrasp () const |
Transport * | GetTransport () const |
float | GetTransOffsetX () const |
float | GetTransOffsetY () const |
float | GetTransOffsetZ () const |
float | GetTransOffsetO () const |
uint32 | GetTransTime () const |
int8 | GetTransSeat () const |
virtual ObjectGuid | GetTransGUID () const |
void | SetTransport (Transport *t) |
virtual float | GetStationaryX () const |
virtual float | GetStationaryY () const |
virtual float | GetStationaryZ () const |
virtual float | GetStationaryO () 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 |
float | GetFloorZ () const |
float | GetMinHeightInWater () const |
Get the minimum height of a object that should be in water to start floating/swim. | |
virtual float | GetCollisionHeight () const |
virtual float | GetCollisionWidth () const |
virtual float | GetCollisionRadius () const |
void | AddAllowedLooter (ObjectGuid guid) |
void | ResetAllowedLooters () |
void | SetAllowedLooters (GuidUnorderedSet const looters) |
bool | HasAllowedLooter (ObjectGuid guid) const |
GuidUnorderedSet const & | GetAllowedLooters () const |
void | RemoveAllowedLooter (ObjectGuid guid) |
std::string | GetDebugInfo () const override |
Public Member Functions inherited from Object | |
virtual | ~Object () |
bool | IsInWorld () const |
virtual void | AddToWorld () |
virtual void | RemoveFromWorld () |
ObjectGuid | GetGUID () const |
PackedGuid const & | GetPackGUID () const |
uint32 | GetEntry () const |
void | SetEntry (uint32 entry) |
float | GetObjectScale () const |
virtual void | SetObjectScale (float scale) |
virtual uint32 | GetDynamicFlags () const |
bool | HasDynamicFlag (uint32 flag) const |
virtual void | SetDynamicFlag (uint32 flag) |
virtual void | RemoveDynamicFlag (uint32 flag) |
virtual void | ReplaceAllDynamicFlags (uint32 flag) |
TypeID | GetTypeId () const |
bool | isType (uint16 mask) const |
virtual void | BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const |
void | SendUpdateToPlayer (Player *player) |
void | BuildValuesUpdateBlockForPlayer (UpdateData *data, Player *target) const |
void | BuildOutOfRangeUpdateBlock (UpdateData *data) const |
void | BuildMovementUpdateBlock (UpdateData *data, uint32 flags=0) const |
virtual void | DestroyForPlayer (Player *target, bool onDeath=false) 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 | ApplyModUInt64Value (uint16 index, int32 val, bool apply) |
void | ApplyModPositiveFloatValue (uint16 index, float val, bool apply) |
void | ApplyModSignedFloatValue (uint16 index, float val, bool apply) |
void | ApplyPercentModFloatValue (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) |
bool | HasByteFlag (uint16 index, uint8 offset, uint8 flag) const |
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 |
virtual bool | hasQuest (uint32) const |
virtual bool | hasInvolvedQuest (uint32) const |
virtual void | BuildUpdate (UpdateDataMapType &, UpdatePlayerSet &) |
void | BuildFieldsUpdate (Player *, UpdateDataMapType &) const |
void | SetFieldNotifyFlag (uint16 flag) |
void | RemoveFieldNotifyFlag (uint16 flag) |
void | ForceValuesUpdateAtIndex (uint32) |
bool | IsPlayer () const |
Player * | ToPlayer () |
Player const * | ToPlayer () const |
Creature * | ToCreature () |
Creature const * | ToCreature () const |
Unit * | ToUnit () |
Unit const * | ToUnit () const |
GameObject * | ToGameObject () |
GameObject const * | ToGameObject () const |
Corpse * | ToCorpse () |
Corpse const * | ToCorpse () const |
DynamicObject * | ToDynObject () |
DynamicObject const * | ToDynObject () const |
virtual std::string | GetDebugInfo () const |
Public Member Functions inherited from WorldLocation | |
WorldLocation (uint32 _mapId=MAPID_INVALID, float x=0.f, float y=0.f, float z=0.f, float o=0.f) | |
WorldLocation (uint32 mapId, Position const &position) | |
void | WorldRelocate (const WorldLocation &loc) |
void | WorldRelocate (uint32 mapId=MAPID_INVALID, float x=0.f, float y=0.f, float z=0.f, float o=0.f) |
void | SetMapId (uint32 mapId) |
uint32 | GetMapId () const |
void | GetWorldLocation (uint32 &mapId, float &x, float &y) const |
void | GetWorldLocation (uint32 &mapId, float &x, float &y, float &z) const |
void | GetWorldLocation (uint32 &mapId, float &x, float &y, float &z, float &o) const |
void | GetWorldLocation (WorldLocation *location) const |
WorldLocation | GetWorldLocation () const |
std::string | GetDebugInfo () const |
Public Member Functions inherited from Position | |
Position (float x=0, float y=0, float z=0, float o=0) | |
Position (Position const &loc) | |
Position (Position &&)=default | |
Position & | operator= (const Position &)=default |
Position & | operator= (Position &&)=default |
bool | operator== (Position const &a) const |
bool | operator!= (Position const &a) |
operator G3D::Vector3 () const | |
void | Relocate (float x, float y) |
void | Relocate (float x, float y, float z) |
void | Relocate (float x, float y, float z, float orientation) |
void | Relocate (const Position &pos) |
void | Relocate (const Position *pos) |
void | RelocatePolarOffset (float angle, float dist, float z=0.0f) |
void | RelocateOffset (const Position &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 |
Position::PositionXYZStreamer | PositionXYZStream () |
Position::PositionXYZOStreamer | PositionXYZOStream () |
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 (const Position &endPos, Position &retOffset) const |
Position | GetPositionWithOffset (Position const &offset) const |
float | GetAngle (const Position *pos) const |
float | GetAngle (float x, float y) const |
float | GetAbsoluteAngle (float x, float y) const |
float | GetAbsoluteAngle (Position const &pos) const |
float | GetAbsoluteAngle (Position const *pos) const |
float | GetRelativeAngle (const Position *pos) const |
float | GetRelativeAngle (float x, float y) const |
float | ToAbsoluteAngle (float relAngle) const |
void | GetSinCos (float x, float y, float &vsin, float &vcos) const |
bool | IsInDist2d (float x, float y, float dist) const |
bool | IsInDist2d (const Position *pos, float dist) const |
bool | IsInDist (float x, float y, float z, float dist) const |
bool | IsInDist (const Position *pos, float dist) const |
bool | IsWithinBox (const Position ¢er, float xradius, float yradius, float zradius) const |
bool | HasInArc (float arcangle, const Position *pos, float targetRadius=0.0f) const |
bool | HasInLine (Position const *pos, float width) const |
std::string | ToString () const |
Public Member Functions inherited from GridObject< Creature > | |
bool | IsInGrid () const |
void | AddToGrid (GridRefMgr< Creature > &m) |
void | RemoveFromGrid () |
Static Public Member Functions | |
static float | _GetDamageMod (int32 Rank) |
Static Public Member Functions inherited from Unit | |
static float | GetEffectiveResistChance (Unit const *owner, SpellSchoolMask schoolMask, Unit const *victim) |
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, bool allowGM=false, Spell const *spell=nullptr) |
static void | Kill (Unit *killer, Unit *victim, bool durabilityLoss=true, WeaponAttackType attackType=BASE_ATTACK, SpellInfo const *spellProto=nullptr, Spell const *spell=nullptr) |
static int32 | DealHeal (Unit *healer, Unit *victim, uint32 addhealth) |
static void | ProcDamageAndSpell (Unit *actor, Unit *victim, uint32 procAttacker, uint32 procVictim, uint32 procEx, uint32 amount, WeaponAttackType attType=BASE_ATTACK, SpellInfo const *procSpellInfo=nullptr, SpellInfo const *procAura=nullptr, int8 procAuraEffectIndex=-1, Spell const *procSpell=nullptr, DamageInfo *damageInfo=nullptr, HealInfo *healInfo=nullptr, uint32 procPhase=2) |
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 const *victim) |
static uint32 | SpellCriticalHealingBonus (Unit const *caster, SpellInfo const *spellProto, uint32 damage, Unit const *victim) |
static bool | IsDamageReducedByArmor (SpellSchoolMask damageSchoolMask, SpellInfo const *spellInfo=nullptr, uint8 effIndex=MAX_SPELL_EFFECTS) |
static uint32 | CalcArmorReducedDamage (Unit const *attacker, Unit const *victim, const uint32 damage, SpellInfo const *spellInfo, uint8 attackerLevel=0, WeaponAttackType attackType=MAX_ATTACK) |
static void | CalcAbsorbResist (DamageInfo &dmgInfo, bool Splited=false) |
static void | CalcHealAbsorb (HealInfo &healInfo) |
static void | HandleSafeUnitPointersOnDelete (Unit *thisUnit) |
Static Public Member Functions inherited from Object | |
static ObjectGuid | GetGUID (Object const *o) |
Static Public Member Functions inherited from Position | |
static float | NormalizeOrientation (float o) |
Static Public Attributes | |
static constexpr uint32 | MOVE_CIRCLE_CHECK_INTERVAL = 3000 |
static constexpr uint32 | MOVE_BACKWARDS_CHECK_INTERVAL = 2000 |
Protected Member Functions | |
bool | CreateFromProto (ObjectGuid::LowType guidlow, uint32 Entry, uint32 vehId, const CreatureData *data=nullptr) |
bool | InitEntry (uint32 entry, const CreatureData *data=nullptr) |
void | RegenerateHealth () |
void | Regenerate (Powers power) |
bool | IsInvisibleDueToDespawn () const override |
bool | CanAlwaysSee (WorldObject const *obj) const override |
bool | IsAlwaysDetectableFor (WorldObject const *seer) const override |
Protected Member Functions inherited from Unit | |
Unit (bool isWorldObject) | |
void | BuildValuesUpdate (uint8 updatetype, ByteBuffer *data, Player *target) const override |
void | _UpdateSpells (uint32 time) |
void | _DeleteRemovedAuras () |
void | _UpdateAutoRepeatSpell () |
bool | IsAlwaysVisibleFor (WorldObject const *seer) const override |
bool | IsAlwaysDetectableFor (WorldObject const *seer) const override |
void | SetFeared (bool apply, Unit *fearedBy=nullptr, bool isFear=false) |
void | SetConfused (bool apply) |
void | SetStunned (bool apply) |
void | SetRooted (bool apply, bool isStun=false) |
Protected Member Functions inherited from WorldObject | |
WorldObject (bool isWorldObject) | |
virtual void | ProcessPositionDataChanged (PositionFullTerrainStatus const &data) |
void | SetLocationMapId (uint32 _mapId) |
void | SetLocationInstanceId (uint32 _instanceId) |
virtual bool | IsNeverVisible () const |
virtual bool | IsAlwaysVisibleFor (WorldObject const *) const |
virtual bool | IsInvisibleDueToDespawn () const |
virtual bool | IsAlwaysDetectableFor (WorldObject const *) const |
Protected Member Functions inherited from Object | |
Object () | |
void | _InitValues () |
void | _Create (ObjectGuid::LowType guidlow, uint32 entry, HighGuid guidhigh) |
std::string | _ConcatFields (uint16 startIndex, uint16 size) const |
bool | _LoadIntoDataField (std::string const &data, uint32 startOffset, uint32 count) |
uint32 | GetUpdateFieldData (Player const *target, uint32 *&flags) const |
void | BuildMovementUpdate (ByteBuffer *data, uint16 flags) const |
virtual void | BuildValuesUpdate (uint8 updatetype, ByteBuffer *data, Player *target) const |
virtual void | AddToObjectUpdate ()=0 |
virtual void | RemoveFromObjectUpdate ()=0 |
void | AddToObjectUpdateIfNeeded () |
Protected Member Functions inherited from MovableMapObject | |
MovableMapObject ()=default | |
Static Protected Member Functions | |
static float | _GetHealthMod (int32 Rank) |
Private Member Functions | |
void | ForcedDespawn (uint32 timeMSToDespawn=0, Seconds forcedRespawnTimer=0s) |
bool | CanPeriodicallyCallForAssistance () const |
Private Attributes | |
uint32 | m_waypointID |
uint32 | m_path_id |
CreatureGroup * | m_formation |
bool | TriggerJustRespawned |
std::shared_ptr< time_t > | _lastDamagedTime |
ObjectGuid | m_cannotReachTarget |
uint32 | m_cannotReachTimer |
Spell const * | _focusSpell |
bool | _isMissingSwimmingFlagOutOfCombat |
| |
uint32 | m_assistanceTimer |
uint32 | _playerDamageReq |
bool | _damagedByPlayer |
Additional Inherited Members | |
Public Types inherited from Unit | |
typedef std::unordered_set< Unit * > | AttackerSet |
typedef std::set< Unit * > | ControlSet |
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::list< DiminishingReturn > | Diminishing |
typedef GuidUnorderedSet | ComboPointHolderSet |
typedef std::map< uint8, AuraApplication * > | VisibleAuraMap |
typedef std::set< PetAura const * > | PetAuraSet |
Protected Types inherited from Unit | |
typedef std::list< DynamicObject * > | DynObjectList |
typedef GuidList | GameObjectList |
typedef std::map< ObjectGuid, float > | CharmThreatMap |
|
explicit |
References _focusSpell, CONFIG_SIGHT_MONSTER, CREATURE_REGEN_INTERVAL, DisableReputationGain, m_CombatDistance, m_CreatureSpellCooldowns, m_isTempWorldObject, m_ProhibitSchoolTime, Unit::m_regenTimer, m_respawnedTime, m_SightDistance, m_spells, Object::m_valuesCount, MAX_CREATURE_SPELLS, MAX_SPELL_SCHOOL, ResetLootMode(), SPELL_SCHOOL_NORMAL, sWorld, TriggerJustRespawned, and UNIT_END.
|
override |
References Unit::i_AI, and m_vendorItemCounts.
References CreatureSpellCooldown::category, CreatureSpellCooldown::end, GameTime::GetGameTimeMS(), and m_CreatureSpellCooldowns.
Referenced by Pet::_LoadSpellCooldowns(), AddSpellCooldown(), TriggerBurningPitch(), boss_ingvar_the_plunderer::boss_ingvar_the_plundererAI::UpdateAI(), and npc_gunship_rocketeer::npc_gunship_rocketeerAI::UpdateAI().
|
static |
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 |
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(), LoadCreatureFromDB(), and SelectLevel().
bool Creature::_IsTargetAcceptable | ( | Unit const * | target | ) | const |
References ASSERT, CanIgnoreFeignDeath(), Unit::getAttackerForHelper(), Vehicle::GetBase(), Unit::HasUnitFlag2(), Unit::HasUnitState(), Unit::IsEngagedBy(), Unit::IsFriendlyTo(), Unit::IsHostileTo(), Unit::IsNeutralToAll(), Unit::IsOnVehicle(), Unit::isTargetableForAttack(), Unit::m_vehicle, UNIT_FLAG2_FEIGN_DEATH, and UNIT_STATE_DIED.
Referenced by CanStartAttack(), and CreatureAI::TriggerAlert().
|
inline |
|
overridevirtual |
Reimplemented from Unit.
References _AddCreatureSpellCooldown(), Unit::BuildCooldownPacket(), SpellInfo::CategoryRecoveryTime, SpellInfo::GetCategory(), Unit::GetCharmer(), Unit::GetSpellModOwner(), SpellInfo::Id, Unit::IsCharmed(), Object::IsPlayer(), SpellInfo::RecoveryTime, Player::SendDirectMessage(), SPELL_COOLDOWN_FLAG_NONE, SPELLMOD_COOLDOWN, sSpellMgr, sSpellsByCategoryStore, and Object::ToPlayer().
Referenced by Aura::_ApplyForTarget(), Aura::_UnapplyForTarget(), WorldSession::HandlePetActionHelper(), boss_faction_championsAI::IsCCed(), Pet::Update(), and PetAI::UpdateAI().
|
overridevirtual |
Reimplemented from Object.
Reimplemented in Pet.
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(), loot, m_spawnId, Motion_Initialize(), ZoneScript::OnCreatureCreate(), SearchFormation(), Loot::sourceWorldObjectGUID, and sScriptMgr.
Referenced by AddObjectHelper().
|
inline |
References Unit::i_AI.
Referenced by Vehicle::AddPassenger(), Player::AddQuestAndCheckCompletion(), npc_mograine::npc_mograineAI::AshbringerEvent(), npc_anubisath_sentinel::aqsentinelAI::CallBuddiesToAttack(), boss_algalon_the_observer::boss_algalon_the_observerAI::CallConstellations(), instance_ruins_of_ahnqiraj::instance_ruins_of_ahnqiraj_InstanceMapScript::CallNextRajaxxLeader(), CanAlwaysSee(), CanCreatureAttack(), instance_obsidian_sanctum::instance_obsidian_sanctum_InstanceMapScript::CheckAchievementCriteriaMeet(), npc_still_at_it_trigger::npc_still_at_it_triggerAI::CheckAction(), spell_putricide_mutation_init::spell_putricide_mutation_init_SpellScript::CheckRequirementInternal(), spell_the_lich_king_ice_burst_target_search::spell_the_lich_king_ice_burst_target_search_SpellScript::CheckTargetCount(), npc_riggle_bassbait::npc_riggle_bassbaitAI::CheckTournamentState(), Unit::CombatStart(), CreatureUnitRelocationWorker(), Unit::DealDamage(), DespawnOnEvade(), hyjalAI::DeSpawnVeins(), SummonList::DoAction(), boss_illidari_council::boss_illidari_councilAI::DoAction(), Spell::DoAllEffectOnTarget(), HomeMovementGenerator< Creature >::DoFinalize(), hyjalAI::DoOverrun(), instance_stratholme::instance_stratholme_InstanceMapScript::DoSpawnPlaguedCritters(), SummonList::DoZoneInCombat(), boss_zuljin::boss_zuljinAI::EnterPhase(), AssistDelayEvent::Execute(), RestoreAttack::Execute(), DelayedTalk::Execute(), UtherBatteredHiltEvent::Execute(), StartMovementEvent::Execute(), ValithriaDespawner::Execute(), CaptainSurviveTalk::Execute(), ChargeRifts::Execute(), spell_kiljaeden_sinister_reflection_clone::spell_kiljaeden_sinister_reflection_clone_SpellScript::FilterTargets(), spell_sapphiron_frost_explosion::spell_sapphiron_frost_explosion_SpellScript::FilterTargets(), RotateMovementGenerator::Finalize(), EffectMovementGenerator::Finalize(), npc_anubisath_sentinel::aqsentinelAI::GetOtherSentinels(), SmartScript::GetTargets(), go_ossirian_crystal::go_ossirian_crystalAI::GossipHello(), spell_herald_volzaj_insanity::HandleAfterCast(), spell_illidari_council_empyreal_balance::spell_illidari_council_empyreal_balance_SpellScript::HandleAfterCast(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), spell_item_lil_xt::HandleDummy(), spell_shadowblink::HandleDummy(), spell_halion_twilight_division::spell_halion_twilight_division_SpellScript::HandleDummy(), spell_q12096_q12092_dummy::spell_q12096_q12092_dummy_SpellScript::HandleDummy(), spell_q12096_q12092_bark::spell_q12096_q12092_bark_SpellScript::HandleDummy(), spell_q12589_shoot_rjr::spell_q12589_shoot_rjr_SpellScript::HandleDummy(), spell_algalon_trigger_3_adds::spell_algalon_trigger_3_adds_SpellScript::HandleDummyEffect(), spell_herald_volzaj_insanity::HandleDummyEffect(), spell_mc_play_dead::spell_mc_play_dead_AuraScript::HandleEffectRemove(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleGossipSelectOptionOpcode(), npc_commandscript::HandleNpcSetDataCommand(), WorldSession::HandlePetActionHelper(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverHelloOpcode(), spell_kiljaeden_darkness::spell_kiljaeden_darkness_AuraScript::HandleRemove(), spell_taldaram_summon_flame_ball::spell_taldaram_summon_flame_ball_SpellScript::HandleScript(), spell_putricide_unstable_experiment::spell_putricide_unstable_experiment_SpellScript::HandleScript(), spell_the_lich_king_vile_spirit_move_target_search::spell_the_lich_king_vile_spirit_move_target_search_SpellScript::HandleScript(), spell_ayamiss_swarmer_swarm::HandleScript(), spell_festergut_pungent_blight::spell_festergut_pungent_blight_SpellScript::HandleScript(), spell_rotface_large_ooze_combine::spell_rotface_large_ooze_combine_SpellScript::HandleScript(), spell_rotface_large_ooze_buff_combine::spell_rotface_large_ooze_buff_combine_SpellScript::HandleScript(), spell_q13011_bear_flank_master::HandleScript(), spell_volazj_whisper::HandleScriptEffect(), Unit::HandleSpellClick(), spell_putricide_mutated_transformation::spell_putricide_mutated_transformation_SpellScript::HandleSummon(), boss_yoggsaron_sara::boss_yoggsaron_saraAI::InformCloud(), TempSummon::InitSummon(), IsAlwaysDetectableFor(), boss_hexlord_malacrass::boss_hex_lord_malacrassAI::JustEngagedWith(), npc_toc_warlock::npc_toc_warlockAI::JustSummoned(), npc_toc_hunter::npc_toc_hunterAI::JustSummoned(), npc_toc_boomkin::npc_toc_boomkinAI::JustSummoned(), boss_anubrekhan::boss_anubrekhanAI::JustSummoned(), boss_maexxna::boss_maexxnaAI::JustSummoned(), npc_frosthound::npc_frosthoundAI::JustSummoned(), npc_eris_hevenfire::npc_eris_hevenfireAI::JustSummoned(), npc_daphne_stilwell::npc_daphne_stilwellAI::JustSummoned(), npc_battle_at_valhalas::npc_battle_at_valhalasAI::JustSummoned(), boss_urom::boss_uromAI::JustSummoned(), npc_hor_lich_king::npc_hor_lich_kingAI::JustSummoned(), WorldBossAI::JustSummoned(), npc_grimstone::npc_grimstoneAI::JustSummoned(), boss_gyth::boss_gythAI::JustSummoned(), boss_rend_blackhand::boss_rend_blackhandAI::JustSummoned(), boss_curator::JustSummoned(), boss_attumen::JustSummoned(), boss_midnight::JustSummoned(), boss_nightbane::JustSummoned(), boss_sacrolash::boss_sacrolashAI::JustSummoned(), npc_demonic_vapor_trail::npc_demonic_vapor_trailAI::JustSummoned(), boss_muru::boss_muruAI::JustSummoned(), boss_halazzi::boss_halazziAI::JustSummoned(), boss_onyxia::JustSummoned(), boss_taldaram::JustSummoned(), boss_black_knight::boss_black_knightAI::JustSummoned(), boss_devourer_of_souls::boss_devourer_of_soulsAI::JustSummoned(), boss_drakkari_colossus::boss_drakkari_colossusAI::JustSummoned(), boss_prince_taldaram_icc::boss_prince_taldaramAI::JustSummoned(), boss_deathbringer_saurfang::boss_deathbringer_saurfangAI::JustSummoned(), boss_lady_deathwhisper::boss_lady_deathwhisperAI::JustSummoned(), npc_precious_icc::npc_precious_iccAI::JustSummoned(), npc_the_lich_king_controller::npc_the_lich_king_controllerAI::JustSummoned(), npc_gluttonous_abomination::npc_gluttonous_abominationAI::JustSummoned(), boss_gluth::boss_gluthAI::JustSummoned(), boss_gothik::boss_gothikAI::JustSummoned(), boss_volkhan::boss_volkhanAI::JustSummoned(), boss_nexusprince_shaffar::JustSummoned(), boss_grandmaster_vorpil::JustSummoned(), npc_akama_illidan::npc_akama_illidanAI::JustSummoned(), npc_creature_generator_akama::npc_creature_generator_akamaAI::JustSummoned(), boss_the_black_stalker::JustSummoned(), boss_nethermancer_sepethrea::JustSummoned(), emerald_dragonAI::JustSummoned(), npc_nelson::npc_nelsonAI::JustSummoned(), boss_balinda::boss_balindaAI::JustSummoned(), npc_koltira_deathweaver::npc_koltira_deathweaverAI::JustSummoned(), npc_professor_phizzlethorpe::npc_professor_phizzlethorpeAI::JustSummoned(), npc_thrall_bfu::npc_thrall_bfuAI::JustSummoned(), npc_tapoke_slim_jahn::npc_tapoke_slim_jahnAI::JustSummoned(), boss_archimonde::boss_archimondeAI::JustSummoned(), npc_muglash::npc_muglashAI::JustSummoned(), npc_kaya_flathoof::npc_kaya_flathoofAI::JustSummoned(), npc_wizzlecrank_shredder::npc_wizzlecrank_shredderAI::JustSummoned(), npc_ame::npc_ameAI::JustSummoned(), npc_emily::npc_emilyAI::JustSummoned(), npc_deaths_door_fell_cannon_target_bunny::npc_deaths_door_fell_cannon_target_bunnyAI::JustSummoned(), npc_wounded_blood_elf::npc_wounded_blood_elfAI::JustSummoned(), npc_maghar_captive::npc_maghar_captiveAI::JustSummoned(), npc_kurenai_captive::npc_kurenai_captiveAI::JustSummoned(), npc_bessy::npc_bessyAI::JustSummoned(), npc_buru_egg::JustSummoned(), Unit::Kill(), CreatureGroup::MemberEngagingTarget(), CreatureGroup::MemberEvaded(), npc_brew_bubble::MoveInLineOfSight(), npc_dkc1_gothik::npc_dkc1_gothikAI::MoveInLineOfSight(), npc_love_in_air_supply_sentry::MoveInLineOfSight(), npc_air_force_bots::npc_air_force_botsAI::MoveInLineOfSight(), WaypointMovementGenerator< Creature >::MovementInform(), npc_claw_tentacle::npc_claw_tentacle(), npc_eye_tentacle::npc_eye_tentacle(), npc_giant_claw_tentacle::npc_giant_claw_tentacle(), npc_giant_eye_tentacle::npc_giant_eye_tentacle(), spell_pilgrims_bounty_serve_generic::OnAuraRemove(), achievement_flu_shot_shortage::OnCheck(), achievement_smell_saronite::OnCheck(), achievement_shadowdodger::OnCheck(), achievement_cheese_the_freeze::OnCheck(), achievement_getting_cold_in_here::OnCheck(), achievement_i_could_say_that_this_cache_was_rare::OnCheck(), achievement_i_have_the_coolest_friends::OnCheck(), achievement_ignis_shattered::OnCheck(), achievement_mimiron_firefighter::OnCheck(), achievement_mimiron_set_up_us_the_bomb_11::OnCheck(), achievement_mimiron_set_up_us_the_bomb_12::OnCheck(), achievement_mimiron_set_up_us_the_bomb_13::OnCheck(), achievement_quick_shave::OnCheck(), instance_blackrock_spire::instance_blackrock_spireMapScript::OnCreatureCreate(), go_palehoof_sphere::OnGossipHello(), go_main_chambers_access_panel::OnGossipHello(), npc_pet_gen_argent_pony_bridle::OnGossipHello(), npc_barnes::OnGossipHello(), npc_death_knight_initiate::OnGossipHello(), npc_highlord_darion_mograine::OnGossipHello(), npc_jaina_proudmoore::OnGossipHello(), npc_thrall::OnGossipHello(), npc_tyrande_whisperwind::OnGossipHello(), npc_finklestein::OnGossipHello(), npc_captain_saeed::OnGossipHello(), npc_elder_clearwater::OnGossipHello(), npc_wormhole::OnGossipHello(), go_the_pearl_of_the_depths::OnGossipHello(), go_pressure_valve::OnGossipHello(), go_brazier::OnGossipHello(), go_finklestein_cauldron::OnGossipHello(), go_prince_taldaram_sphere::OnGossipHello(), npc_pet_gen_argent_pony_bridle::OnGossipSelect(), boss_doomrel::OnGossipSelect(), boss_majordomo::OnGossipSelect(), npc_barnes::OnGossipSelect(), npc_death_knight_initiate::OnGossipSelect(), npc_highlord_darion_mograine::OnGossipSelect(), npc_varian_wrynn::OnGossipSelect(), npc_thrall_bfu::OnGossipSelect(), npc_jaina_proudmoore::OnGossipSelect(), npc_thrall::OnGossipSelect(), npc_arthas::OnGossipSelect(), npc_high_overlord_saurfang_icc::OnGossipSelect(), npc_muradin_bronzebeard_icc::OnGossipSelect(), brann_bronzebeard::OnGossipSelect(), npc_ulduar_keeper::OnGossipSelect(), npc_shandy_dalaran::OnGossipSelect(), npc_vekjik::OnGossipSelect(), npc_adventurous_dwarf::OnGossipSelect(), npc_fos_leader::OnGossipSelect(), npc_hor_leader::OnGossipSelect(), npc_ulduar_expedition_commander::OnGossipSelect(), npc_mcmanus::OnGossipSelect(), npc_finklestein::OnGossipSelect(), npc_captain_saeed::OnGossipSelect(), boss_azuregos::OnGossipSelect(), npc_thrall_old_hillsbrad::OnGossipSelect(), npc_hor_leader_second::OnGossipSelect(), npc_tirions_gambit_tirion::OnGossipSelect(), npc_artorius::OnGossipSelect(), npc_simone::OnGossipSelect(), npc_nelson::OnGossipSelect(), npc_franklin::OnGossipSelect(), instance_ulduar::instance_ulduar_InstanceMapScript::OnPlayerEnter(), npc_chicken_cluck::OnQuestAccept(), npc_kernobee::OnQuestAccept(), npc_koltira_deathweaver::OnQuestAccept(), pyrewood_ambush::OnQuestAccept(), npc_daphne_stilwell::OnQuestAccept(), npc_mikhail::OnQuestAccept(), npc_kerlonian::OnQuestAccept(), npc_prospector_remtravel::OnQuestAccept(), npc_tooga::OnQuestAccept(), npc_gilthares::OnQuestAccept(), npc_lakota_windsong::OnQuestAccept(), npc_paoka_swiftmountain::OnQuestAccept(), npc_ringo::OnQuestAccept(), npc_engineer_helice::OnQuestAccept(), npc_maghar_captive::OnQuestAccept(), npc_kurenai_captive::OnQuestAccept(), npc_maxx_a_million_escort::OnQuestAccept(), npc_eris_hevenfire::OnQuestAccept(), npc_deathstalker_erland::OnQuestAccept(), npc_bartleby::OnQuestAccept(), npc_calvin_montague::OnQuestAccept(), npc_cork_gizelton::OnQuestAccept(), npc_shenthul::OnQuestAccept(), npc_kaya_flathoof::OnQuestAccept(), npc_wizzlecrank_shredder::OnQuestAccept(), npc_ame::OnQuestAccept(), npc_ranshalla::OnQuestAccept(), npc_lurgglbr::OnQuestAccept(), npc_mootoo_the_younger::OnQuestAccept(), npc_bonker_togglevolt::OnQuestAccept(), npc_emily::OnQuestAccept(), npc_apothecary_hanes::OnQuestAccept(), npc_battle_at_valhalas::OnQuestAccept(), npc_finklestein::OnQuestAccept(), npc_bessy::OnQuestAccept(), npc_isla_starmane::OnQuestAccept(), npc_doctor::OnQuestAccept(), go_crystal_prison::OnQuestAccept(), go_crystalline_tear::OnQuestAccept(), npc_chicken_cluck::OnQuestComplete(), boss_apothecary_hummel::OnQuestReward(), npc_rocknot::OnQuestReward(), npc_thrall_warchief::OnQuestReward(), npc_lady_sylvanas_windrunner::OnQuestReward(), npc_tharnarian::OnQuestReward(), npc_elder_clearwater::OnQuestReward(), npc_riggle_bassbait::OnQuestReward(), at_blackrock_stadium::OnTrigger(), at_commander_dawnforge::OnTrigger(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnUnitDeath(), OrderWhelpTargetSelector::operator()(), FrostwingGauntletRespawner::operator()(), ValithriaDespawner::operator()(), Acore::CallOfHelpCreatureInRangeDo::operator()(), SplineHandler::operator()(), Unit::PetSpellFail(), spell_hodir_flash_freeze::spell_hodir_flash_freeze_AuraScript::PrepareAuraScript(), PretendToDie(), npc_jungle_punch_target::npc_jungle_punch_targetAI::proceedCwEvent(), SmartScript::ProcessAction(), instance_stratholme::instance_stratholme_InstanceMapScript::ProcessSlaughterEvent(), RemoveCorpse(), Vehicle::RemovePassenger(), boss_illidari_council::boss_illidari_councilAI::Reset(), Respawn(), Resurrect(), hyjalAI::Retreat(), boss_yoggsaron_lich_king::boss_yoggsaron_lich_kingAI::Say(), boss_yoggsaron_llane::boss_yoggsaron_llaneAI::Say(), boss_yoggsaron_neltharion::boss_yoggsaron_neltharionAI::Say(), spell_the_lich_king_valkyr_target_search::spell_the_lich_king_valkyr_target_search_SpellScript::SelectTarget(), SelectVictim(), instance_naxxramas::instance_naxxramas_InstanceMapScript::SetBossState(), Unit::SetCharmedBy(), instance_ahnkahet::instance_ahnkahet_InstanceScript::SetData(), SetInCombatWithZone(), boss_hexlord_malacrass::boss_hex_lord_malacrassAI::SpawnAdds(), npc_pilgrims_bounty_chair::SpellHitTarget(), npc_still_at_it_trigger::npc_still_at_it_triggerAI::Start(), spell_putricide_ooze_channel::spell_putricide_ooze_channel_SpellScript::StartAttack(), WaypointMovementGenerator< Creature >::StartMove(), hyjalAI::SummonCreature(), brann_bronzebeard::brann_bronzebeardAI::SummonCreatures(), boss_zuramat::boss_zuramatAI::SummonedCreatureDespawn(), boss_sindragosa::boss_sindragosaAI::SummonedCreatureDespawn(), boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::SummonedCreatureDespawn(), boss_anubrekhan::boss_anubrekhanAI::SummonedCreatureDies(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::SummonNextWave(), npc_artruis_the_hearthless::npc_artruis_the_hearthlessAI::SummonsAction(), npc_love_in_air_snivel_real::Talk(), Unit::TauntApply(), Unit::TauntFadeOut(), spell_igb_check_for_players::spell_igb_check_for_players_SpellScript::TriggerWipe(), Pet::Update(), instance_stratholme::instance_stratholme_InstanceMapScript::Update(), instance_naxxramas::instance_naxxramas_InstanceMapScript::Update(), Update(), npc_vaelastrasz_the_red::npc_vaelastrasz_the_redAI::UpdateAI(), pyrewood_ambush::pyrewood_ambushAI::UpdateAI(), boss_akilzon::boss_akilzonAI::UpdateAI(), npc_winterfin_playmate::UpdateAI(), npc_snowfall_glade_playmate::UpdateAI(), npc_the_biggest_tree::UpdateAI(), npc_high_oracle_soo_roo::UpdateAI(), npc_elder_kekek::UpdateAI(), npc_the_etymidian::UpdateAI(), npc_alexstraza_the_lifebinder::UpdateAI(), npc_frost_wyrm::npc_frost_wyrmAI::UpdateAI(), npc_gargoyle::npc_gargoyleAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), boss_prince_valanar_icc::boss_prince_valanarAI::UpdateAI(), npc_freya_ward::npc_freya_wardAI::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), npc_ulduar_aerial_command_unit::npc_ulduar_aerial_command_unitAI::UpdateAI(), boss_razorscale::boss_razorscaleAI::UpdateAI(), npc_hourglass_of_eternity::npc_hourglass_of_eternityAI::UpdateAI(), npc_still_at_it_trigger::npc_still_at_it_triggerAI::UpdateAI(), npc_commander_dawnforge::npc_commander_dawnforgeAI::UpdateAI(), npc_tooga::npc_toogaAI::UpdateFollowerAI(), npc_ringo::npc_ringoAI::UpdateFollowerAI(), InstanceScript::UpdateMinionState(), npc_ranger_lilatha::WaypointReached(), npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI::WaypointReached(), npc_cork_gizelton::npc_cork_gizeltonAI::WaypointReached(), npc_ancestral_wolf::npc_ancestral_wolfAI::WaypointReached(), and npc_bessy::npc_bessyAI::WaypointReached().
bool Creature::AIM_Initialize | ( | CreatureAI * | ai = nullptr | ) |
References Unit::GetVehicleKit(), Unit::i_AI, UnitAI::InitializeAI(), Unit::IsAIEnabled, LOG_DEBUG, m_AI_locked, m_spawnId, Vehicle::Reset(), and FactorySelector::SelectAI().
Referenced by AddToWorld(), Pet::AddToWorld(), Respawn(), WorldObject::SummonTrigger(), and UpdateEntry().
void Creature::AllLootRemovedFromCorpse | ( | ) |
References GetCreatureTemplate(), GameTime::GetGameTime(), hasLootRecipient(), LootStore::HaveLootFor(), Unit::IsPet(), loot, LOOT_SKINNING, Loot::loot_type, LootTemplates_Skinning, m_corpseRemoveTime, m_respawnTime, RATE_CORPSE_DECAY_LOOTED, Unit::SetUnitFlag(), sWorld, and UNIT_FLAG_SKINNABLE.
Referenced by WorldSession::DoLootRelease(), and Unit::Kill().
|
overridevirtual |
Implements Unit.
References BASE_ATTACK, BASE_PCT, BASE_VALUE, CreatureTemplate::BaseVariance, Unit::CanUseAttackType(), CreatureTemplate::DamageModifier, Unit::GetAPMultiplier(), GetCreatureTemplate(), Unit::GetModifierValue(), Unit::GetTotalAttackPowerValue(), Unit::GetWeaponDamageRange(), Unit::haveOffhandWeapon(), MAXDAMAGE, MINDAMAGE, OFF_ATTACK, RANGED_ATTACK, CreatureTemplate::RangeVariance, TOTAL_PCT, TOTAL_VALUE, UNIT_MOD_DAMAGE_MAINHAND, UNIT_MOD_DAMAGE_OFFHAND, and UNIT_MOD_DAMAGE_RANGED.
void Creature::CallAssistance | ( | Unit * | target = nullptr | ) |
References AssistDelayEvent::AddAssistant(), EventProcessor::AddEvent(), EventProcessor::CalculateTime(), CONFIG_CREATURE_FAMILY_ASSISTANCE_DELAY, CONFIG_CREATURE_FAMILY_ASSISTANCE_RADIUS, Object::GetGUID(), Unit::GetVictim(), Unit::IsCharmed(), Unit::IsPet(), m_AlreadyCallAssistance, Unit::m_Events, SetNoCallAssistance(), sWorld, and Cell::VisitGridObjects().
Referenced by Unit::Attack(), AssistanceMovementGenerator::Finalize(), and Update().
void Creature::CallForHelp | ( | float | fRadius, |
Unit * | target = nullptr |
||
) |
References Unit::GetVictim(), Unit::IsCharmed(), Unit::IsPet(), and Cell::VisitGridObjects().
Referenced by boss_thorim_start_npcs::boss_thorim_start_npcsAI::DamageTaken(), boss_emperor_dagran_thaurissan::boss_draganthaurissanAI::JustEngagedWith(), boss_grand_champion::boss_grand_championAI::JustEngagedWith(), npc_frostwing_vrykul::npc_frostwing_vrykulAI::JustEngagedWith(), npc_icc_nerubar_broodkeeper::npc_icc_nerubar_broodkeeperAI::JustEngagedWith(), boss_thorim_start_npcs::boss_thorim_start_npcsAI::JustEngagedWith(), boss_thorim_gauntlet_npcs::boss_thorim_gauntlet_npcsAI::JustEngagedWith(), boss_xt002::boss_xt002AI::JustEngagedWith(), boss_blackheart_the_inciter::JustEngagedWith(), boss_sartharion::boss_sartharionAI::JustEngagedWith(), boss_moroes::JustEngagedWith(), npc_sindragosa_trash::npc_sindragosa_trashAI::JustEngagedWith(), boss_anubrekhan::boss_anubrekhanAI::JustEngagedWith(), boss_faerlina::boss_faerlinaAI::JustEngagedWith(), boss_fathomlord_karathress::boss_fathomlord_karathressAI::JustEngagedWith(), boss_high_astromancer_solarian::boss_high_astromancer_solarianAI::JustEngagedWith(), boss_void_reaver::boss_void_reaverAI::JustEngagedWith(), boss_gothik::boss_gothikAI::JustSummoned(), npc_sentinel_leader::UpdateAI(), and npc_cork_gizelton::npc_cork_gizeltonAI::WaypointReached().
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
References AI(), and Unit::IsAIEnabled.
References WorldObject::CanSeeOrDetect(), CREATURE_FLAG_EXTRA_IGNORE_ALL_ASSISTANCE_CALLS, Unit::GetCharmerOrOwnerGUID(), Unit::GetFaction(), Object::GetTypeId(), CreatureTemplate::HasFlagsExtra(), HasReactState(), Unit::HasUnitFlag(), Unit::IsAlive(), IsCivilian(), Unit::IsEngaged(), Unit::IsFriendlyTo(), Unit::IsHostileTo(), Unit::IsImmuneToNPC(), IsInEvadeMode(), m_creatureInfo, REACT_AGGRESSIVE, Object::ToCreature(), TYPEID_UNIT, UNIT_FLAG_NON_ATTACKABLE, and UNIT_FLAG_NOT_SELECTABLE.
Referenced by AssistDelayEvent::Execute(), Acore::CallOfHelpCreatureInRangeDo::operator()(), Acore::AnyAssistCreatureInRangeCheck::operator()(), and Acore::NearestAssistCreatureInCreatureRangeCheck::operator()().
bool Creature::CanCreatureAttack | ( | Unit const * | victim, |
bool | skipDistCheck = false |
||
) | const |
References AI(), CanIgnoreFeignDeath(), Unit::getAttackers(), Unit::GetCharmerOrOwner(), Unit::GetCharmerOrOwnerGUID(), GameTime::GetGameTime(), GetLastDamagedTime(), WorldObject::GetMap(), GetMovementTemplate(), WorldObject::GetObjectSize(), Object::GetTypeId(), WorldObject::GetVisibilityRange(), Unit::HasAuraType(), Unit::HasUnitFlag2(), Unit::IsAIEnabled, Unit::isInAccessiblePlaceFor(), Position::IsInDist(), Position::IsInDist2d(), IsInEvadeMode(), WorldObject::IsInMap(), Object::IsPlayer(), Unit::IsValidAttackTarget(), WorldObject::IsWithinDist(), isWorldBoss(), m_homePosition, m_respawnedTime, SPELL_AURA_MOD_TAUNT, Object::ToCreature(), TYPEID_UNIT, and UNIT_FLAG2_FEIGN_DEATH.
Referenced by PetAI::_needToStop(), boss_hadronox::boss_hadronoxAI::AnyPlayerValid(), CanStartAttack(), boss_lady_deathwhisper::boss_lady_deathwhisperAI::JustSummoned(), PetAI::SelectNextTarget(), ThreatContainer::SelectNextVictim(), SelectVictim(), npc_pet_shaman_earth_elemental::UpdateAI(), and npc_pet_shaman_fire_elemental::UpdateAI().
|
overridevirtual |
Implements Unit.
References CanSwim(), GetMovementTemplate(), and CreatureMovementData::IsSwimAllowed().
Referenced by ConfusedMovementGenerator< T >::_InitSpecific(), RandomMovementGenerator< T >::_setRandomLocation(), Map::CanReachPositionAndGetValidCoords(), PathGenerator::CreateFilter(), Unit::isInAccessiblePlaceFor(), and RefreshSwimmingFlag().
|
inlineoverridevirtual |
Implements Unit.
References GetMovementTemplate(), CreatureMovementData::IsFlightAllowed(), and Unit::IsFlying().
Referenced by RandomMovementGenerator< T >::_setRandomLocation(), PathGenerator::BuildPolyPath(), CanStartAttack(), CanSwim(), RandomMovementGenerator< T >::DoInitialize(), Unit::isInAccessiblePlaceFor(), and LoadCreatureFromDB().
bool Creature::CanGeneratePickPocketLoot | ( | ) | const |
References GameTime::GetGameTime(), and lootPickPocketRestoreTime.
Referenced by Player::SendLoot().
|
inline |
References GetMovementTemplate(), CreatureMovementData::Ground, and Unit::IsHovering().
Referenced by LoadCreaturesAddon(), and UpdateMovementFlags().
|
inline |
References CREATURE_FLAG_EXTRA_IGNORE_FEIGN_DEATH, and GetCreatureTemplate().
Referenced by _IsTargetAcceptable(), and CanCreatureAttack().
bool Creature::CanNotReachTarget | ( | ) | const |
References m_cannotReachTarget.
Referenced by IsEvadingAttacks(), IsNotReachableAndNeedRegen(), and Update().
|
private |
References Unit::CanHaveThreatList(), WorldObject::GetMap(), Unit::HasUnitState(), Unit::IsInCombat(), Unit::IsSummon(), UNIT_STATE_DIED, and UNIT_STATE_POSSESSED.
Referenced by Update().
bool Creature::CanStartAttack | ( | Unit const * | u | ) | const |
References _IsTargetAcceptable(), ATTACK_DISTANCE, CanCreatureAttack(), CanFly(), CONFIG_CREATURE_FAMILY_ASSISTANCE_RADIUS, CREATURE_TYPE_NON_COMBAT_PET, CREATURE_Z_ATTACK_RANGE, GetAggroRange(), Unit::getAttackerForHelper(), Unit::GetCreatureType(), WorldObject::GetDistanceZ(), Unit::GetOwner(), Object::GetTypeId(), Unit::HasUnitState(), IsCivilian(), Unit::IsEngaged(), Unit::IsImmuneToNPC(), Unit::IsImmuneToPC(), Unit::IsNeutralToAll(), WorldObject::IsWithinDist(), WorldObject::IsWithinDistInMap(), WorldObject::IsWithinLOSInMap(), m_CombatDistance, sWorld, TYPEID_PLAYER, TYPEID_UNIT, and UNIT_STATE_STUNNED.
Referenced by CreatureAI::MoveInLineOfSight(), FollowerAI::MoveInLineOfSight(), npc_escortAI::MoveInLineOfSight(), SmartAI::MoveInLineOfSight(), and Acore::NearestHostileUnitInAttackDistanceCheck::operator()().
|
overridevirtual |
This method check the current flag/status of a creature and its inhabit type.
Pets should swim by default to properly follow the player NOTE: You can set the UNIT_FLAG_CANNOT_SWIM temporary to deny a creature to swim
Reimplemented from Unit.
References CanFly(), Unit::CanSwim(), and Unit::IsPet().
Referenced by PathGenerator::BuildPolyPath(), CanEnterWater(), PathGenerator::IsSwimmableSegment(), WorldObject::UpdateAllowedPositionZ(), and UpdateMovementFlags().
|
inline |
bool Creature::Create | ( | ObjectGuid::LowType | guidlow, |
Map * | map, | ||
uint32 | phaseMask, | ||
uint32 | Entry, | ||
uint32 | vehId, | ||
float | x, | ||
float | y, | ||
float | z, | ||
float | ang, | ||
const CreatureData * | data = nullptr |
||
) |
Relocate before CreateFromProto, to initialize coords and allow returning correct zone id for selecting OutdoorPvP/Battlefield script
Need to be called after LoadCreaturesAddon - MOVEMENTFLAG_HOVER is set there
References Unit::AddUnitState(), 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_GHOST_VISIBILITY, CREATURE_FLAG_EXTRA_IGNORE_PATHFINDING, CREATURE_TYPE_FLAG_VISIBLE_TO_GHOSTS, DEFAULT_COLLISION_HEIGHT, Entry, GetCreatureTemplate(), Map::GetFullTerrainStatusForPosition(), Unit::GetHoverHeight(), WorldObject::GetInstanceId(), WorldObject::GetMap(), Unit::GetNativeDisplayId(), WorldObject::GetPhaseMask(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetScriptId(), GHOST_VISIBILITY_ALIVE, GHOST_VISIBILITY_GHOST, Position::IsPositionValid(), Unit::IsSpiritGuide(), Unit::IsSpiritHealer(), Unit::IsTotem(), WorldObject::LastUsedScriptID, LoadCreaturesAddon(), LOG_ERROR, m_corpseDelay, Position::m_positionZ, WorldObject::m_serverSideVisibility, WorldObject::m_serverSideVisibilityDetect, Unit::ProcessPositionDataChanged(), Position::Relocate(), SERVERSIDE_VISIBILITY_GHOST, SetDisplayId(), WorldObject::SetMap(), Unit::SetNativeDisplayId(), Unit::SetPhaseMask(), FlaggedValuesArray32< T_VALUES, T_FLAGS, FLAG_TYPE, ARRAY_SIZE >::SetValue(), Unit::SetVisible(), sObjectMgr, sWorld, CreatureTemplate::type_flags, UNIT_STATE_IGNORE_PATHFINDING, UpdateMovementFlags(), and VISUAL_WAYPOINT.
Referenced by Battleground::AddCreature(), debug_commandscript::HandleDebugSpawnVehicleCommand(), npc_commandscript::HandleNpcAddCommand(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), LoadCreatureFromDB(), Battlefield::SpawnCreature(), and Map::SummonCreature().
|
protected |
References Object::_Create(), Unit::CreateVehicleKit(), CreatureTemplate::DifficultyEntry, CreatureTemplate::Entry, Entry, ZoneScript::GetCreatureEntry(), WorldObject::GetMap(), WorldObject::GetZoneScript(), Unit::IsPet(), Map::IsRaid(), LOG_ERROR, RAID_DIFFICULTY_10MAN_HEROIC, SetOriginalEntry(), WorldObject::SetZoneScript(), sObjectMgr, UpdateEntry(), and CreatureTemplate::VehicleId.
Referenced by Create().
|
virtual |
Reimplemented in Pet.
References Object::GetGUID(), WorldObject::GetMap(), LOG_ERROR, m_spawnId, Map::RemoveCreatureRespawnTime(), PreparedStatementBase::SetData(), sObjectMgr, Position::ToString(), WORLD_DEL_CREATURE, WORLD_DEL_CREATURE_ADDON, WORLD_DEL_GAME_EVENT_CREATURE, WORLD_DEL_GAME_EVENT_MODEL_EQUIP, and WorldDatabase.
Referenced by npc_commandscript::HandleNpcDeleteCommand().
void Creature::DespawnOnEvade | ( | Seconds | respawnDelay = 20s | ) |
References AI(), DespawnOrUnsummon(), LOG_WARN, CreatureAI::SummonedCreatureDespawnAll(), and Unit::ToTempSummon().
Referenced by CreatureAI::EnterEvadeMode(), and boss_midnight::EnterEvadeMode().
void Creature::DespawnOrUnsummon | ( | Milliseconds | msTimeToDespawn, |
Seconds | forcedRespawnTimer | ||
) |
References ForcedDespawn(), and Unit::ToTempSummon().
Referenced by npc_mograine::npc_mograineAI::AshbringerEvent(), spell_the_lich_king_shadow_trap_periodic::spell_the_lich_king_shadow_trap_periodic_SpellScript::CheckTargetCount(), npc_simone::npc_simoneAI::CorpseRemoved(), Player::CreatePet(), boss_headless_horseman_head::DamageTaken(), npc_terenas_menethil::npc_terenas_menethilAI::DamageTaken(), npc_power_spark::npc_power_sparkAI::DamageTaken(), boss_freya::boss_freyaAI::DamageTaken(), boss_hodir::boss_hodirAI::DamageTaken(), npc_tiger_matriarch::npc_tiger_matriarchAI::DamageTaken(), MotionTransport::DelayedTeleportTransport(), SummonList::DespawnAll(), SummonList::DespawnEntry(), brann_bronzebeard::brann_bronzebeardAI::DespawnHeads(), DespawnOnEvade(), spell_rotface_unstable_ooze_explosion_suicide::spell_rotface_unstable_ooze_explosion_suicide_AuraScript::DespawnSelf(), Vehicle::Dismiss(), npc_icc_ice_sphere::npc_icc_ice_sphereAI::DoAction(), npc_ulduar_toasty_fire::npc_ulduar_toasty_fireAI::DoAction(), npc_ball_of_flame::npc_ball_of_flameAI::DoAction(), npc_saurfang_event::npc_saurfang_eventAI::DoAction(), npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::DoAction(), npc_muradin_bronzebeard_igb::npc_muradin_bronzebeard_igbAI::DoAction(), npc_bone_spike::npc_bone_spikeAI::DoAction(), npc_strangulate_vehicle::npc_strangulate_vehicleAI::DoAction(), npc_terenas_menethil::npc_terenas_menethilAI::DoAction(), boss_algalon_the_observer::boss_algalon_the_observerAI::DoAction(), boss_infinite_corruptor::boss_infinite_corruptorAI::DoAction(), npc_twilight_summon::npc_twilight_summonAI::DoAction(), npc_snobold_vassal::npc_snobold_vassalAI::DoAction(), npc_living_mojo::npc_living_mojoAI::DoAction(), boss_kelthuzad_minion::boss_kelthuzad_minionAI::DoAction(), npc_spark_of_ionar::npc_spark_of_ionarAI::DoAction(), npc_molten_golem::npc_molten_golemAI::DoAction(), npc_auriaya_feral_defender::npc_auriaya_feral_defenderAI::DoAction(), boss_thorim_sif::boss_thorim_sifAI::DoAction(), Spell::EffectScriptEffect(), Spell::EffectTameCreature(), boss_julianne::EnterEvadeMode(), boss_rend_blackhand::boss_rend_blackhandAI::EnterEvadeMode(), boss_attumen::EnterEvadeMode(), boss_entropius::boss_entropiusAI::EnterEvadeMode(), boss_black_knight::boss_black_knightAI::EnterEvadeMode(), npc_phantom_hallucination::npc_phantom_hallucinationAI::EnterEvadeMode(), boss_ahune::EnterEvadeMode(), boss_kirtonos_the_herald::boss_kirtonos_the_heraldAI::EnterEvadeMode(), npc_hallows_end_soh::EnterEvadeMode(), boss_ouro::EnterEvadeMode(), npc_dirt_mound::EnterEvadeMode(), npc_toc_pet_warlock::npc_toc_pet_warlockAI::EnterEvadeMode(), npc_toc_pet_hunter::npc_toc_pet_hunterAI::EnterEvadeMode(), npc_fel_infernal::npc_fel_infernalAI::EnterEvadeMode(), npc_mistress_of_pain::npc_mistress_of_painAI::EnterEvadeMode(), npc_inner_demon::npc_inner_demonAI::EnterEvadeMode(), boss_nazan::EnterEvadeMode(), boss_vazruden::EnterEvadeMode(), ForcedDespawnDelayEvent::Execute(), VehicleDespawnEvent::Execute(), DelayedCastEvent::Execute(), EoEDrakeEnterVehicleEvent::Execute(), SuckBackEvent::Execute(), npc_hallows_end_soh::FinishEvent(), spell_gen_despawn_self::HandleDummy(), spell_item_lil_xt::HandleDummy(), spell_q12096_q12092_dummy::spell_q12096_q12092_dummy_SpellScript::HandleDummy(), spell_q12096_q12092_bark::spell_q12096_q12092_bark_SpellScript::HandleDummy(), spell_item_complete_raptor_capture::HandleDummy(), spell_item_rocket_chicken::HandleDummyTick(), spell_mc_play_dead::spell_mc_play_dead_AuraScript::HandleEffectRemove(), spell_dtk_raise_dead::spell_dtk_raise_dead_AuraScript::HandleEffectRemove(), spell_q11919_q11940_drake_hunt::spell_q11919_q11940_drake_hunt_AuraScript::HandleEffectRemove(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), spell_putricide_eat_ooze::spell_putricide_eat_ooze_SpellScript::HandleScript(), spell_rotface_little_ooze_combine::spell_rotface_little_ooze_combine_SpellScript::HandleScript(), spell_rotface_large_ooze_combine::spell_rotface_large_ooze_combine_SpellScript::HandleScript(), spell_rotface_large_ooze_buff_combine::spell_rotface_large_ooze_buff_combine_SpellScript::HandleScript(), spell_shredder_delivery::spell_shredder_delivery_SpellScript::HandleScript(), spell_q12690_burst_at_the_seams::HandleScript(), spell_illidan_cage_trap::spell_illidan_cage_trap_SpellScript::HandleScriptEffect(), spell_winter_veil_racer_slam_hit::HandleScriptEffect(), spell_q11065_wrangle_some_aether_rays_aura::if(), boss_twilight_corrupter::InitializeAI(), npc_preparations_for_war_vehicle::InitializeAI(), npc_underbog_mushroom::InitializeAI(), Guardian::InitStatsForLevel(), npc_taldaram_flamesphere::IsSummonedBy(), npc_putricide_oozeAI::IsSummonedBy(), npc_ranshalla::npc_ranshallaAI::JustDidDialogueStep(), boss_majordomo::boss_majordomoAI::JustDied(), npc_kilrek::JustDied(), boss_dorothee::JustDied(), npc_tito::JustDied(), boss_roar::JustDied(), boss_strawman::JustDied(), boss_tinhead::JustDied(), npc_zulian_prowler::npc_zulian_prowlerAI::JustDied(), npc_chained_spirit::JustDied(), npc_belnistrasz::npc_belnistraszAI::JustDied(), npc_living_inferno::npc_living_infernoAI::JustDied(), npc_memory::npc_memoryAI::JustDied(), npc_argent_soldier::npc_argent_soldierAI::JustDied(), npc_toc5_grand_champion_minion::npc_toc5_grand_champion_minionAI::JustDied(), npc_fel_infernal::npc_fel_infernalAI::JustDied(), npc_mistress_of_pain::npc_mistress_of_painAI::JustDied(), npc_dark_nucleus::npc_dark_nucleusAI::JustDied(), npc_gunship::npc_gunshipAI::JustDied(), npc_little_ooze::npc_little_oozeAI::JustDied(), npc_big_ooze::npc_big_oozeAI::JustDied(), npc_ice_tomb::npc_ice_tombAI::JustDied(), npc_eoe_wyrmrest_skytalon::npc_eoe_wyrmrest_skytalonAI::JustDied(), npc_ulduar_saronite_animus::npc_ulduar_saronite_animusAI::JustDied(), npc_ichor_globule::npc_ichor_globuleAI::JustDied(), npc_vh_void_sentry::npc_vh_void_sentryAI::JustDied(), npc_thassarian2::npc_thassarian2AI::JustDied(), npc_wintergarde_gryphon::JustDied(), npc_q24545_vegard::npc_q24545_vegardAI::JustDied(), npc_blessed_banner::npc_blessed_bannerAI::JustDied(), boss_ahune::JustDied(), boss_hydromancer_thespia::JustDied(), npc_buru_egg::JustDied(), boss_bug_trio::JustDied(), npc_frost_tomb::npc_frost_tombAI::JustDied(), npc_dirt_mound::JustEngagedWith(), boss_dorothee::JustReachedHome(), boss_roar::JustReachedHome(), boss_strawman::JustReachedHome(), boss_tinhead::JustReachedHome(), boss_crone::JustReachedHome(), boss_bigbadwolf::JustReachedHome(), boss_julianne::JustReachedHome(), boss_romulo::JustReachedHome(), boss_arlokk::boss_arlokkAI::JustReachedHome(), boss_headless_horseman::JustReachedHome(), boss_kelthuzad_minion::boss_kelthuzad_minionAI::JustReachedHome(), npc_precious::npc_preciousAI::JustReachedHome(), npc_ouro_spawner::JustSummoned(), boss_rend_blackhand::boss_rend_blackhandAI::JustSummoned(), boss_kiljaeden::boss_kiljaedenAI::JustSummoned(), npc_medivh_bm::JustSummoned(), boss_gal_darah::boss_gal_darahAI::JustSummoned(), boss_lady_deathwhisper::boss_lady_deathwhisperAI::JustSummoned(), boss_professor_putricide::boss_professor_putricideAI::JustSummoned(), boss_rotface::boss_rotfaceAI::JustSummoned(), boss_the_lich_king::boss_the_lich_kingAI::JustSummoned(), npc_risen_archmage::npc_risen_archmageAI::JustSummoned(), npc_gluttonous_abomination::npc_gluttonous_abominationAI::JustSummoned(), boss_malygos::boss_malygosAI::JustSummoned(), npc_tiger_matriarch::npc_tiger_matriarchAI::KilledUnit(), npc_brew_bubble::MoveInLineOfSight(), npc_khunok_the_behemoth::npc_khunok_the_behemothAI::MoveInLineOfSight(), npc_captured_beryl_sorcerer::npc_captured_beryl_sorcererAI::MoveInLineOfSight(), FollowerAI::MovementInform(), npc_brann_bronzebeard_algalon::npc_brann_bronzebeard_algalonAI::MovementInform(), npc_spirit_shade::npc_spirit_shadeAI::MovementInform(), npc_forest_frog::npc_forest_frogAI::MovementInform(), npc_rizzle_sprysprocket::npc_rizzle_sprysprocketAI::MovementInform(), npc_troll_volunteer::npc_troll_volunteerAI::MovementInform(), boss_grand_champion::boss_grand_championAI::MovementInform(), npc_concentrated_ball::npc_concentrated_ballAI::MovementInform(), npc_darnavan::npc_darnavanAI::MovementInform(), npc_valkyr_shadowguard::npc_valkyr_shadowguardAI::MovementInform(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::MovementInform(), npc_scarlet_ghoul::npc_scarlet_ghoulAI::MovementInform(), npc_injured_7th_legion_soldier::npc_injured_7th_legion_soldierAI::MovementInform(), npc_chained_spirit::MovementInform(), npc_balance_of_light_and_shadow::npc_balance_of_light_and_shadowAI::MovementInform(), npc_ball_of_flame::npc_ball_of_flameAI::MovementInform(), npc_assembly_lightning::npc_assembly_lightningAI::MovementInform(), npc_xt002_scrapbot::npc_xt002_scrapbotAI::MovementInform(), npc_released_offspring_harkoa::npc_released_offspring_harkoaAI::MovementInform(), npc_attracted_reef_bull::npc_attracted_reef_bullAI::MovementInform(), npc_image_of_medivh::npc_image_of_medivhAI::NextStep(), npc_lk_spirit_bomb::npc_lk_spirit_bombAI::npc_lk_spirit_bombAI(), BattlefieldWG::OnCreatureCreate(), instance_gnomeregan::instance_gnomeregan_InstanceMapScript::OnCreatureCreate(), instance_dire_maul::instance_dire_maul_InstanceMapScript::OnCreatureCreate(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::OnCreatureCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), instance_sethekk_halls::instance_sethekk_halls_InstanceMapScript::OnCreatureCreate(), go_scourge_enclosure::OnGossipHello(), go_jotunheim_cage::OnGossipHello(), npc_pet_gen_argent_pony_bridle::OnGossipSelect(), npc_grandmother::OnGossipSelect(), npc_ulduar_keeper::OnGossipSelect(), npc_adventurous_dwarf::OnGossipSelect(), spell_kaelthas_flame_strike::spell_kaelthas_flame_strike_AuraScript::OnRemove(), npc_valithria_portal::npc_valithria_portalAI::OnSpellClick(), boss_yoggsaron_descend_portal::boss_yoggsaron_descend_portalAI::OnSpellClick(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnUnitDeath(), FrostwingGauntletRespawner::operator()(), ValithriaDespawner::operator()(), npc_ulduar_leviathan_mkii::npc_ulduar_leviathan_mkiiAI::PassengerBoarded(), npc_ulduar_vx001::npc_ulduar_vx001AI::PassengerBoarded(), npc_valkyr_shadowguard::npc_valkyr_shadowguardAI::PassengerBoarded(), npc_eoe_wyrmrest_skytalon::npc_eoe_wyrmrest_skytalonAI::PassengerBoarded(), npc_oculus_drake::npc_oculus_drakeAI::PassengerBoarded(), npc_ulduar_flames_initial::npc_ulduar_flames_initialAI::RemoveAll(), boss_gyth::boss_gythAI::Reset(), boss_nefarian::Reset(), npc_image_of_medivh::npc_image_of_medivhAI::Reset(), npc_singularity::npc_singularityAI::Reset(), boss_infinite_corruptor::boss_infinite_corruptorAI::Reset(), boss_mal_ganis::boss_mal_ganisAI::Reset(), npc_eye_tentacle::Reset(), npc_claw_tentacle::Reset(), npc_xerestrasza::npc_xerestraszaAI::Reset(), npc_raging_spirit::npc_raging_spiritAI::Reset(), npc_assembly_lightning::npc_assembly_lightningAI::Reset(), npc_xt002_pummeller::npc_xt002_pummellerAI::Reset(), npc_xt002_life_spark::npc_xt002_life_sparkAI::Reset(), npc_violet_hold_defense_system::Reset(), npc_oscillating_frequency_scanner_master_bunny::npc_oscillating_frequency_scanner_master_bunnyAI::Reset(), npc_simon_bunny::npc_simon_bunnyAI::ResetNode(), NPCStaveQuestAI::RevealForm(), spell_putricide_ooze_channel::spell_putricide_ooze_channel_SpellScript::SelectTarget(), npc_frost_sphere::npc_frost_sphereAI::SpellHit(), boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::SpellHit(), npc_ulduar_flames_spread::npc_ulduar_flames_spreadAI::SpellHit(), npc_vics_flying_machine::npc_vics_flying_machineAI::SpellHit(), npc_captured_rageclaw::npc_captured_rageclawAI::SpellHit(), boss_headless_horseman_pumpkin::SpellHit(), npc_rabid_thistle_bear::npc_rabid_thistle_bearAI::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_living_constellation::npc_living_constellationAI::SpellHit(), npc_drakuru_shackles::npc_drakuru_shacklesAI::SpellHit(), npc_midsummer_torch_target::SpellHit(), boss_magus_telestra::boss_magus_telestraAI::SpellHit(), npc_iron_watcher::npc_iron_watcherAI::SpellHit(), npc_vengeful_shade::npc_vengeful_shadeAI::SpellHitTarget(), boss_headless_horseman_head::SpellHitTarget(), npc_q24545_lich_king::npc_q24545_lich_kingAI::SpellHitTarget(), boss_ouro::Submerge(), npc_time_rift::SummonedCreatureDies(), boss_hazzarah::SummonedCreatureDies(), npc_artruis_the_hearthless::npc_artruis_the_hearthlessAI::SummonedCreatureDies(), npc_creature_generator_akama::npc_creature_generator_akamaAI::SummonedCreatureDies(), boss_vexallus::boss_vexallusAI::SummonedCreatureDies(), boss_razorgore::boss_razorgoreAI::SummonMovementInform(), npc_artruis_the_hearthless::npc_artruis_the_hearthlessAI::SummonsAction(), npc_drakuru_shackles::npc_drakuru_shacklesAI::UnlockRageclaw(), VehicleAI::UpdateAI(), npc_escortAI::UpdateAI(), npc_vaelastrasz_the_red::npc_vaelastrasz_the_redAI::UpdateAI(), boss_victor_nefarius::boss_victor_nefariusAI::UpdateAI(), npc_kernobee::npc_kernobeeAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_madrigosa::npc_madrigosaAI::UpdateAI(), boss_kalec::boss_kalecAI::UpdateAI(), npc_varian_wrynn::npc_varian_wrynnAI::UpdateAI(), npc_thrall_bfu::npc_thrall_bfuAI::UpdateAI(), npc_dark_iron_attack_mole_machine::UpdateAI(), npc_brew_bubble::UpdateAI(), npc_love_in_air_snivel_real::UpdateAI(), npc_belnistrasz::npc_belnistraszAI::UpdateAI(), npc_rizzle_sprysprocket::npc_rizzle_sprysprocketAI::UpdateAI(), npc_depth_charge::npc_depth_chargeAI::UpdateAI(), npc_draenei_survivor::npc_draenei_survivorAI::UpdateAI(), npc_stillpine_capitive::npc_stillpine_capitiveAI::UpdateAI(), npc_rabid_thistle_bear::npc_rabid_thistle_bearAI::UpdateAI(), npc_giant_spotlight::npc_giant_spotlightAI::UpdateAI(), npc_sergeant_bly::npc_sergeant_blyAI::UpdateAI(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::UpdateAI(), npc_fos_corrupted_soul_fragment::npc_fos_corrupted_soul_fragmentAI::UpdateAI(), boss_drakkari_elemental::boss_drakkari_elementalAI::UpdateAI(), npc_kinetic_bomb::npc_kinetic_bombAI::UpdateAI(), npc_vengeful_shade::npc_vengeful_shadeAI::UpdateAI(), npc_bone_spike::npc_bone_spikeAI::UpdateAI(), npc_ice_tomb::npc_ice_tombAI::UpdateAI(), npc_strangulate_vehicle::npc_strangulate_vehicleAI::UpdateAI(), npc_lk_spirit_bomb::npc_lk_spirit_bombAI::UpdateAI(), npc_valithria_cloud::npc_valithria_cloudAI::UpdateAI(), npc_blistering_zombie::npc_blistering_zombieAI::UpdateAI(), npc_impaling_spear::npc_impaling_spearAI::UpdateAI(), npc_vortex_ride::npc_vortex_rideAI::UpdateAI(), npc_power_spark::npc_power_sparkAI::UpdateAI(), npc_oculus_drake::npc_oculus_drakeAI::UpdateAI(), boss_algalon_the_observer::boss_algalon_the_observerAI::UpdateAI(), boss_freya_lifebinder::boss_freya_lifebinderAI::UpdateAI(), boss_freya_healthy_spore::boss_freya_healthy_sporeAI::UpdateAI(), boss_freya_summons::boss_freya_summonsAI::UpdateAI(), boss_freya_nature_bomb::boss_freya_nature_bombAI::UpdateAI(), npc_ulduar_flash_freeze::npc_ulduar_flash_freezeAI::UpdateAI(), boss_kologarn_eyebeam::boss_kologarn_eyebeamAI::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), npc_ulduar_magnetic_core::npc_ulduar_magnetic_coreAI::UpdateAI(), npc_ulduar_bot_summon_trigger::npc_ulduar_bot_summon_triggerAI::UpdateAI(), npc_ulduar_flames_initial::npc_ulduar_flames_initialAI::UpdateAI(), boss_thorim::boss_thorimAI::UpdateAI(), boss_thorim_sif::boss_thorim_sifAI::UpdateAI(), boss_skadi_grauf::boss_skadi_graufAI::UpdateAI(), npc_vh_teleportation_portal::npc_vh_teleportation_portalAI::UpdateAI(), npc_azure_saboteur::npc_azure_saboteurAI::UpdateAI(), npc_lurgglbr::npc_lurgglbrAI::UpdateAI(), npc_thassarian2::npc_thassarian2AI::UpdateAI(), npc_preparations_for_war_vehicle::UpdateAI(), npc_minigob_manabonk::npc_minigob_manabonkAI::UpdateAI(), npc_hourglass_of_eternity::npc_hourglass_of_eternityAI::UpdateAI(), npc_wintergarde_gryphon::UpdateAI(), npc_wounded_skirmisher::UpdateAI(), npc_lake_frog::npc_lake_frogAI::UpdateAI(), npc_lord_arete::npc_lord_areteAI::UpdateAI(), npc_infra_green_bomber_generic::npc_infra_green_bomber_genericAI::UpdateAI(), npc_blessed_banner::npc_blessed_bannerAI::UpdateAI(), npc_feedin_da_goolz::npc_feedin_da_goolzAI::UpdateAI(), npc_crusade_recruit::npc_crusade_recruitAI::UpdateAI(), npc_fel_guard_hound::npc_fel_guard_houndAI::UpdateAI(), npc_pet_dk_ebon_gargoyle::npc_pet_dk_ebon_gargoyleAI::UpdateAI(), npc_pet_gen_target_following_bomb::UpdateAI(), npc_pet_gen_imp_in_a_bottle::UpdateAI(), npc_pet_gen_fetch_ball::UpdateAI(), npc_artorius::npc_artoriusAI::UpdateAI(), npc_simone::npc_simoneAI::UpdateAI(), npc_nelson::npc_nelsonAI::UpdateAI(), npc_franklin::npc_franklinAI::UpdateAI(), npc_elder_clearwater::npc_elder_clearwaterAI::UpdateAI(), npc_koltira_deathweaver::npc_koltira_deathweaverAI::UpdateAI(), npc_ichor_globule::npc_ichor_globuleAI::UpdateAI(), FollowerAI::UpdateAI(), npc_brunnhildar_prisoner::npc_brunnhildar_prisonerAI::UpdateAI(), SmartAI::UpdateDespawn(), npc_rinji::npc_rinjiAI::UpdateEscortAI(), npc_tirions_gambit_tirion::npc_tirions_gambit_tirionAI::UpdateEscortAI(), SmartAI::UpdatePath(), npc_daphne_stilwell::npc_daphne_stilwellAI::WaypointReached(), npc_apothecary_hanes::npc_Apothecary_HanesAI::WaypointReached(), and npc_plaguehound_tracker::npc_plaguehound_trackerAI::WaypointReached().
|
inline |
void Creature::DisappearAndDie | ( | ) |
References WorldObject::DestroyForNearbyPlayers(), Unit::IsAlive(), JUST_DIED, RemoveCorpse(), and setDeathState().
Referenced by npc_lord_gregor_lescovar::npc_lord_gregor_lescovarAI::EnterEvadeMode(), npc_marzon_silent_blade::npc_marzon_silent_bladeAI::EnterEvadeMode(), npc_dark_iron_guzzler::FindNextKeg(), Battlefield::HideNpc(), npc_taldaram_flamesphere::MovementInform(), instance_blackrock_spire::instance_blackrock_spireMapScript::OnCreatureCreate(), go_ulduar_tower::OnDestroyed(), go_dragonflayer_cage::OnGossipHello(), boss_nightbane::Reset(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI(), npc_janalai_hatcher::npc_janalai_hatcherAI::UpdateAI(), npc_janalai_hatchling::npc_janalai_hatchlingAI::UpdateAI(), npc_amanitar_mushrooms::UpdateAI(), npc_taldaram_flamesphere::UpdateAI(), npc_swarm_scarab::npc_swarm_scarabAI::UpdateAI(), npc_beryl_sorcerer::npc_beryl_sorcererAI::UpdateAI(), npc_venture_co_straggler::npc_venture_co_stragglerAI::UpdateAI(), npc_tyrion_spybot::npc_tyrion_spybotAI::UpdateAI(), and npc_emily::npc_emilyAI::WaypointReached().
void Creature::DoFleeToGetAssistance | ( | ) |
References CONFIG_CREATURE_FAMILY_FLEE_ASSISTANCE_RADIUS, Unit::GetMotionMaster(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::GetVictim(), Unit::HasAuraType(), MOVE_RUN, MotionMaster::MoveSeekAssistance(), Unit::SetControlled(), SetNoSearchAssistance(), SPELL_AURA_PREVENTS_FLEEING, sWorld, UNIT_STATE_FLEEING, Unit::UpdateSpeed(), and Cell::VisitGridObjects().
Referenced by npc_blackhand_incarcerator::npc_blackhand_incarceratorAI::DamageTaken(), SmartScript::ProcessAction(), and npc_sentinel_infiltrator::UpdateAI().
|
inline |
References m_boundaryCheckTime.
Referenced by CreatureAI::SetBoundary().
void Creature::FocusTarget | ( | Spell const * | focusSpell, |
WorldObject const * | target | ||
) |
References _focusSpell, Unit::AddUnitState(), CHASE_MOTION_TYPE, ObjectGuid::Empty, Movement::MoveSpline::Finalized(), Object::GetGUID(), Unit::GetMotionMaster(), Position::GetOrientation(), Spell::GetSpellInfo(), SpellInfo::HasAttribute(), Unit::movespline, Unit::SetFacingTo(), Object::SetGuidValue(), Unit::SetInFront(), SPELL_ATTR5_AI_DOESNT_FACE_TARGET, UNIT_FIELD_TARGET, and UNIT_STATE_ROTATING.
Referenced by Spell::prepare().
|
private |
References EventProcessor::AddEvent(), EventProcessor::CalculateTime(), GameTime::GetGameTime(), Unit::IsAlive(), JUST_DIED, Unit::m_Events, m_respawnDelay, m_respawnTime, RemoveCorpse(), and setDeathState().
Referenced by DespawnOrUnsummon().
float Creature::GetAggroRange | ( | Unit const * | target | ) | const |
References GetDetectionRange(), Unit::getLevelForTarget(), getLevelForTarget(), Unit::GetTotalAuraModifier(), Unit::IsPet(), MAX_AGGRO_RADIUS, RATE_CREATURE_AGGRO, SPELL_AURA_MOD_DETECT_RANGE, SPELL_AURA_MOD_DETECTED_RANGE, and sWorld.
Referenced by CanStartAttack().
std::string const & Creature::GetAIName | ( | ) | const |
References Object::GetEntry(), and sObjectMgr.
Referenced by GetDebugInfo(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcSetDataCommand(), InitializeReactState(), SmartScript::IsSmart(), and UpdateMoveInLineOfSightState().
float Creature::GetAttackDistance | ( | Unit const * | player | ) | const |
References CONFIG_MAX_PLAYER_LEVEL, Unit::getLevelForTarget(), getLevelForTarget(), Unit::GetTotalAuraModifier(), RATE_CREATURE_AGGRO, SPELL_AURA_MOD_DETECT_RANGE, SPELL_AURA_MOD_DETECTED_RANGE, and sWorld.
Referenced by WorldObject::CanDetectStealthOf().
|
inline |
References m_combatPulseDelay.
|
inline |
References m_corpseDelay.
Referenced by ValithriaDespawner::operator()(), and SetPickPocketLootTime().
CreatureAddon const * Creature::GetCreatureAddon | ( | ) | const |
References Entry, GetCreatureTemplate(), m_spawnId, and sObjectMgr.
Referenced by boss_grand_champion::boss_grand_championAI::AddCreatureAddonAuras(), wp_commandscript::HandleWpUnLoadCommand(), LoadCreaturesAddon(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::OnCreatureCreate(), and UpdateEntry().
|
inline |
References m_creatureData.
Referenced by GetScriptId(), npc_commandscript::HandleNpcGuidCommand(), npc_commandscript::HandleNpcInfoCommand(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), FrostwingGauntletRespawner::operator()(), ValithriaDespawner::operator()(), npc_ahnqiraji_critter::Reset(), npc_argent_captainAI::Reset(), setDeathState(), npc_argent_captainAI::SpellHit(), and npc_grand_magister_rommath::npc_grand_magister_rommathAI::UpdateAI().
|
inline |
References m_creatureInfo.
Referenced by KillRewarder::_InitXP(), Unit::_IsValidAttackTarget(), AllLootRemovedFromCorpse(), Vehicle::ApplyAllImmunities(), Unit::ApplyDiminishingToDuration(), npc_escortAI::AssistPlayerInCombatAgainst(), FollowerAI::AssistPlayerInCombatAgainst(), SmartAI::AssistPlayerInCombatAgainst(), Unit::Attack(), Player::BuildPetTalentsInfoData(), Unit::BuildValuesUpdate(), CalculateMinMaxDamage(), CanIgnoreFeignDeath(), Spell::CheckCast(), SpellInfo::CheckTarget(), Create(), Pet::CreateBaseAtCreature(), boss_high_king_maulgar::DoAction(), Spell::DoSpellHitOnUnit(), Spell::EffectForceDeselect(), Spell::EffectSanctuary(), Spell::EffectSkinning(), Spell::EffectSummonType(), Acore::XP::Gain(), GetCreatureAddon(), Unit::GetCreatureType(), Player::GetDefaultGossipMenuForSource(), GetMovementTemplate(), GetNativeObjectScale(), Pet::GetNativeObjectScale(), Player::GetNPCIfCanInteractWith(), SmartScript::GetScript(), AuraEffect::HandleFeignDeath(), WorldSession::HandleGossipHelloOpcode(), learn_commandscript::HandleLearnAllMyPetTalentsCommand(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcSetFactionIdCommand(), npc_commandscript::HandleNpcTameCommand(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), WorldSession::HandleQuestgiverHelloOpcode(), ArenaSpectator::HandleResetCommand(), WorldSession::HandleSellItemOpcode(), HasMechanicTemplateImmunity(), Pet::HaveInDiet(), InitEntry(), Pet::InitLevelupSpellsForLevel(), Guardian::InitStatsForLevel(), IsAvoidingAOE(), isCanTrainingAndResetTalentsOf(), IsCivilian(), isElite(), IsGuard(), Player::isHonorOrXPTarget(), IsImmunedToSpellEffect(), Unit::IsInPartyWith(), Unit::IsInRaidWith(), Pet::IsPermanentPetFor(), IsRacialLeader(), Unit::isSpellBlocked(), IsTrigger(), isWorldBoss(), npc_escortAI::JustRespawned(), FollowerAI::JustRespawned(), SmartAI::JustRespawned(), Unit::Kill(), Pet::LearnPetPassives(), Player::LearnPetTalent(), LoadCreatureFromDB(), Pet::LoadPetFromDB(), LoadSpellTemplateImmunity(), Unit::MeleeSpellHitResult(), boss_onyxia::MovementInform(), boss_sindragosa::boss_sindragosaAI::MovementInform(), npc_hor_leader_second::npc_hor_leader_secondAI::MoveToNextStopPoint(), npc_eye_of_acherus::npc_eye_of_acherus(), npc_scarlet_miner_cart::npc_scarlet_miner_cartAI::npc_scarlet_miner_cartAI(), npc_thrall_old_hillsbrad::OnGossipHello(), npc_artorius::OnGossipHello(), npc_simone::OnGossipHello(), npc_nelson::OnGossipHello(), npc_franklin::OnGossipHello(), npc_taxi::OnGossipHello(), Player::PetSpellInitialize(), Unit::RemoveCharmedBy(), Player::RemovePet(), boss_onyxia::Reset(), boss_sindragosa::boss_sindragosaAI::Reset(), Pet::resetTalents(), Player::RewardReputation(), Unit::RollMeleeOutcomeAgainst(), SaveToDB(), SelectLevel(), Player::SendLoot(), WorldSession::SendPetNameQuery(), WorldSession::SendTrainerList(), Unit::SetCharmedBy(), setDeathState(), npc_tirion_fordring_tft::npc_tirion_fordringAI::sGossipSelect(), npc_harrison_jones::npc_harrison_jonesAI::sGossipSelect(), npc_captured_rageclaw::npc_captured_rageclawAI::SpellHit(), boss_priestess_delrissa::boss_priestess_delrissaAI::SummonedCreatureDies(), Player::SummonPet(), npc_hor_lich_king::npc_hor_lich_kingAI::UpdateAI(), npc_hor_leader_second::npc_hor_leader_secondAI::UpdateAI(), npc_sinkhole_kill_credit::npc_sinkhole_kill_creditAI::UpdateAI(), npc_pet_gen_valkyr_guardian::UpdateAI(), generic_creature::generic_creatureAI::UpdateAI(), UpdateEntry(), UpdateMovementFlags(), Unit::UpdateSpeed(), and Player::UpdateWeaponSkill().
|
inline |
|
inline |
References m_waypointID.
|
overridevirtual |
Reimplemented from Object.
Reimplemented in TempSummon, Minion, Guardian, and Pet.
References GetAIName(), Unit::GetDebugInfo(), GetScriptName(), GetSpawnId(), and GetWaypointPath().
Referenced by TempSummon::GetDebugInfo(), SetCannotReachTarget(), and Update().
|
inlineoverridevirtual |
-------—End of Pet responses methods-------—
Reimplemented from Unit.
References m_defaultMovementType.
Referenced by LoadHelper(), and SaveToDB().
|
inline |
|
inline |
References m_formation.
|
inline |
References m_formation.
Referenced by CreatureAI::_EnterEvadeMode(), RandomMovementGenerator< T >::_setRandomLocation(), npc_commandscript::HandleNpcAddFormationCommand(), instance_ruins_of_ahnqiraj::instance_ruins_of_ahnqiraj_InstanceMapScript::OnCreatureEvade(), SelectVictim(), npc_simone::npc_simoneAI::SetPreciousGUID(), WaypointMovementGenerator< Creature >::StartMove(), npc_cameron::UpdateAI(), and boss_garfrost::boss_garfrostAI::UpdateAI().
|
inline |
|
inline |
References Position::GetPosition(), and m_homePosition.
Referenced by HomeMovementGenerator< Creature >::_setTargetLocation(), npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::AttackStart(), npc_muradin_bronzebeard_igb::npc_muradin_bronzebeard_igbAI::AttackStart(), boss_ayamiss::boss_ayamiss(), npc_icc_spire_frostwyrm::CanAIAttack(), npc_q24545_wretched_ghoul::npc_q24545_wretched_ghoulAI::CanAIAttack(), boss_halion::boss_halionAI::CanAIAttack(), boss_attumen::CanMeleeHit(), boss_midnight::CanMeleeHit(), boss_trollgore::boss_trollgoreAI::CheckEvadeIfOutOfCombatArea(), boss_anomalus::boss_anomalusAI::CheckEvadeIfOutOfCombatArea(), boss_gurtogg_bloodboil::boss_gurtogg_bloodboilAI::CheckEvadeIfOutOfCombatArea(), boss_illidan_stormrage::boss_illidan_stormrageAI::CheckEvadeIfOutOfCombatArea(), boss_teron_gorefiend::boss_teron_gorefiendAI::CheckEvadeIfOutOfCombatArea(), boss_lady_vashj::boss_lady_vashjAI::CheckEvadeIfOutOfCombatArea(), boss_kaelthas::boss_kaelthasAI::CheckEvadeIfOutOfCombatArea(), boss_onyxia::CheckInRoom(), boss_isle_of_conquest::boss_isle_of_conquestAI::CheckRageBuff(), boss_essence_of_suffering::boss_essence_of_sufferingAI::DamageTaken(), boss_essence_of_desire::boss_essence_of_desireAI::DamageTaken(), boss_taldaram::DoAction(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfangAI::DoAction(), npc_muradin_bronzebeard_icc::npc_muradin_bronzebeard_iccAI::DoAction(), boss_kelthuzad_minion::boss_kelthuzad_minionAI::DoAction(), npc_hor_spiritual_reflection::npc_hor_spiritual_reflectionAI::EnterEvadeMode(), boss_professor_putricide::boss_professor_putricideAI::EnterEvadeMode(), boss_yoggsaron_sara::boss_yoggsaron_saraAI::EnterEvadeMode(), UtherBatteredHiltEvent::Execute(), DistractMovementGenerator::Finalize(), npc_arthas_teleport_visual::GetAI(), boss_prince_keleseth_icc::boss_prince_kelesethAI::InitializeAI(), boss_prince_taldaram_icc::boss_prince_taldaramAI::InitializeAI(), boss_prince_valanar_icc::boss_prince_valanarAI::InitializeAI(), npc_sindragosa_trash::npc_sindragosa_trashAI::InitializeAI(), boss_halion::boss_halionAI::IsAnyPlayerValid(), boss_loatheb::boss_loathebAI::IsInRoom(), boss_algalon_the_observer::boss_algalon_the_observerAI::IsInRoom(), boss_prince_keleseth_icc::boss_prince_kelesethAI::JustDied(), boss_prince_taldaram_icc::boss_prince_taldaramAI::JustDied(), boss_prince_valanar_icc::boss_prince_valanarAI::JustDied(), boss_the_black_stalker::JustEngagedWith(), boss_professor_putricide::boss_professor_putricideAI::JustEngagedWith(), boss_rotface::boss_rotfaceAI::JustEngagedWith(), npc_daphne_stilwell::npc_daphne_stilwellAI::JustSummoned(), npc_mageguard_dalaran::npc_mageguard_dalaranAI::MoveInLineOfSight(), boss_lady_vashj::boss_lady_vashjAI::MovementInform(), npc_dragonflayer_forge_master::npc_dragonflayer_forge_masterAI::npc_dragonflayer_forge_masterAI(), npc_icc_vengeful_fleshreaper::npc_icc_vengeful_fleshreaperAI::npc_icc_vengeful_fleshreaperAI(), instance_ulduar::instance_ulduar_InstanceMapScript::OnCreatureCreate(), instance_the_black_morass::instance_the_black_morass_InstanceMapScript::OnCreatureRemove(), spell_halion_twilight_phasing::spell_halion_twilight_phasing_SpellScript::Phase(), SmartScript::ProcessAction(), boss_nightbane::Reset(), boss_four_horsemen::boss_four_horsemenAI::Reset(), boss_thaddius::boss_thaddiusAI::Reset(), npc_q24545_lich_king::npc_q24545_lich_kingAI::Reset(), boss_nexusprince_shaffar::Reset(), SmartAI::ReturnToLastOOCPos(), npc_escortAI::ReturnToLastPoint(), instance_naxxramas::instance_naxxramas_InstanceMapScript::SetBossState(), Player::SetClientControl(), npc_alexstraza_the_lifebinder::SetData(), npc_pet_gen_fetch_ball::SpellHitTarget(), npc_av_marshal_or_warmaster::npc_av_marshal_or_warmasterAI::UpdateAI(), boss_balinda::boss_balindaAI::UpdateAI(), boss_drekthar::boss_drektharAI::UpdateAI(), boss_galvangar::boss_galvangarAI::UpdateAI(), boss_vanndar::boss_vanndarAI::UpdateAI(), npc_blackhand_incarcerator::npc_blackhand_incarceratorAI::UpdateAI(), boss_broodlord::boss_broodlordAI::UpdateAI(), boss_priestess_delrissa::boss_priestess_delrissaAI::UpdateAI(), npc_scarlet_cannon::npc_scarlet_cannonAI::UpdateAI(), boss_kalecgos::boss_kalecgosAI::UpdateAI(), npc_alexstraza_the_lifebinder::UpdateAI(), boss_elder_nadox::UpdateAI(), boss_frostsworn_general::boss_frostsworn_generalAI::UpdateAI(), npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::UpdateAI(), npc_muradin_bronzebeard_igb::npc_muradin_bronzebeard_igbAI::UpdateAI(), boss_sapphiron::boss_sapphironAI::UpdateAI(), boss_thaddius_summon::boss_thaddius_summonAI::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), npc_bloodmage_laurith::npc_bloodmage_laurithAI::UpdateAI(), boss_lady_vashj::boss_lady_vashjAI::UpdateAI(), and boss_kaelthas::boss_kaelthasAI::UpdateAI().
time_t Creature::GetLastDamagedTime | ( | ) | const |
References _lastDamagedTime.
Referenced by CanCreatureAttack().
std::shared_ptr< time_t > const & Creature::GetLastDamagedTimePtr | ( | ) | const |
References _lastDamagedTime.
Referenced by AssistDelayEvent::Execute().
|
overridevirtual |
Reimplemented from WorldObject.
References CONFIG_WORLD_BOSS_LEVEL_DIFF, Unit::GetLevel(), Unit::getLevelForTarget(), isWorldBoss(), sWorld, and Object::ToUnit().
Referenced by GetAggroRange(), and GetAttackDistance().
|
inline |
References m_LootMode.
Referenced by boss_high_king_maulgar::DoAction(), boss_vezax::boss_vezaxAI::GetData(), and Unit::Kill().
Player * Creature::GetLootRecipient | ( | ) | const |
References ObjectAccessor::FindConnectedPlayer(), and m_lootRecipient.
Referenced by boss_high_king_maulgar::DoAction(), SmartScript::GetTargets(), debug_commandscript::HandleDebugGetLootRecipientCommand(), Player::isAllowedToLoot(), Unit::Kill(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnUnitDeath(), SmartScript::ProcessAction(), Player::SendLoot(), boss_priestess_delrissa::boss_priestess_delrissaAI::SummonedCreatureDies(), and boss_algalon_the_observer::boss_algalon_the_observerAI::UpdateAI().
Group * Creature::GetLootRecipientGroup | ( | ) | const |
References m_lootRecipientGroup, and sGroupMgr.
Referenced by SmartScript::GetTargets(), Player::isAllowedToLoot(), isTappedBy(), Unit::Kill(), and Player::SendLoot().
|
inline |
|
inline |
References m_lootRecipient.
Referenced by Player::isAllowedToLoot(), Player::SendLoot(), and GameObject::SetLootRecipient().
|
inlineoverridevirtual |
Implements Unit.
References m_meleeDamageSchoolMask.
Referenced by ThreatContainer::SelectNextVictim().
CreatureMovementData const & Creature::GetMovementTemplate | ( | ) | const |
References GetCreatureTemplate(), m_spawnId, CreatureTemplate::Movement, and sObjectMgr.
Referenced by RandomMovementGenerator< T >::_setRandomLocation(), CanCreatureAttack(), CanEnterWater(), CanFly(), CanHover(), CanWalk(), ChaseMovementGenerator< T >::DoUpdate(), WorldSession::HandleBattlemasterHelloOpcode(), WorldSession::HandleGossipHelloOpcode(), WorldSession::HandleQuestgiverHelloOpcode(), WorldSession::SendListInventory(), SetDisableGravity(), SetHover(), UpdateEntry(), and UpdateMovementFlags().
|
overridevirtual |
Reimplemented from WorldObject.
References DEFAULT_LOCALE, Object::GetEntry(), WorldObject::GetName(), CreatureLocale::Name, and sObjectMgr.
Referenced by Pet::CreateBaseAtCreature(), and WorldSession::SendPetNameQuery().
|
overridevirtual |
Reimplemented from Unit.
Reimplemented in Pet.
References GetCreatureTemplate(), and CreatureTemplate::scale.
Referenced by Pet::GetNativeObjectScale(), InitEntry(), and Guardian::InitStatsForLevel().
|
inline |
|
inline |
Reimplemented in Pet.
References ACT_ENABLED, UnitActionBarEntry::GetAction(), CharmInfo::GetCharmSpell(), UnitActionBarEntry::GetType(), Unit::m_charmInfo, and MAX_SPELL_CHARM.
Referenced by PetAI::_canMeleeAttack(), and PetAI::UpdateAI().
|
inlinevirtual |
Reimplemented in Pet.
References MAX_SPELL_CHARM.
Referenced by PetAI::_canMeleeAttack(), and PetAI::UpdateAI().
uint32 Creature::GetPlayerDamageReq | ( | ) | const |
References _playerDamageReq.
Referenced by Acore::XP::Gain().
References urand().
Referenced by LoadCreatureFromDB(), and Respawn().
|
inline |
References m_reactState.
Referenced by boss_kiljaeden::boss_kiljaedenAI::AttackStart(), boss_icehowl::boss_icehowlAI::AttackStart(), boss_the_lurker_below::boss_the_lurker_belowAI::AttackStart(), npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::CanAIAttack(), npc_muradin_bronzebeard_igb::npc_muradin_bronzebeard_igbAI::CanAIAttack(), npc_lk_wicked_spirit::npc_lk_wicked_spiritAI::CanAIAttack(), SmartAI::CanAIAttack(), boss_renataki::boss_renatakiAI::CanAlwaysBeDetectable(), boss_renataki::boss_renatakiAI::CanBeSeen(), boss_renataki::boss_renatakiAI::CanSeeAlways(), CharmInfo::CharmInfo(), Player::CharmSpellInitialize(), npc_ulduar_leviathan_mkii::npc_ulduar_leviathan_mkiiAI::DamageTaken(), npc_ulduar_vx001::npc_ulduar_vx001AI::DamageTaken(), npc_ulduar_aerial_command_unit::npc_ulduar_aerial_command_unitAI::DamageTaken(), boss_brutallus::boss_brutallusAI::DamageTaken(), boss_kiljaeden::boss_kiljaedenAI::EnterEvadeMode(), Pet::FillPetInfo(), boss_ick::boss_ickAI::KilledUnit(), npc_chesspiece::OnCharmed(), npc_scarlet_ghoul::npc_scarlet_ghoulAI::OwnerAttackedBy(), Player::PetSpellInitialize(), npc_imprisoned_beryl_sorcerer::npc_imprisoned_beryl_sorcererAI::Reset(), Pet::SavePetToDB(), boss_kiljaeden::boss_kiljaedenAI::UpdateAI(), boss_renataki::boss_renatakiAI::UpdateAI(), boss_thekal::boss_thekalAI::UpdateAI(), npc_zealot_lorkhan::npc_zealot_lorkhanAI::UpdateAI(), npc_zealot_zath::npc_zealot_zathAI::UpdateAI(), boss_viscidus::UpdateAI(), boss_icehowl::boss_icehowlAI::UpdateAI(), npc_gunship_boarding_leader::npc_gunship_boarding_leaderAI::UpdateAI(), npc_gunship_boarding_add::npc_gunship_boarding_add_realAI::UpdateAI(), npc_gunship_mage::npc_gunship_mageAI::UpdateAI(), npc_gunship_gunner::npc_gunship_gunnerAI::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), boss_lady_vashj::boss_lady_vashjAI::UpdateAI(), boss_the_lurker_below::boss_the_lurker_belowAI::UpdateAI(), npc_gunship_rocketeer::npc_gunship_rocketeerAI::UpdateAI(), InstanceScript::UpdateMinionState(), and Player::VehicleSpellInitialize().
|
inline |
void Creature::GetRespawnPosition | ( | float & | x, |
float & | y, | ||
float & | z, | ||
float * | ori = nullptr , |
||
float * | dist = nullptr |
||
) | const |
References GetHomePosition(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), WorldObject::GetTransport(), homePos, m_spawnId, and sObjectMgr.
Referenced by RemoveCorpse(), and npc_escortAI::UpdateAI().
|
inline |
References m_respawnTime.
Referenced by npc_simone::npc_simoneAI::JustDied(), and SetPickPocketLootTime().
time_t Creature::GetRespawnTimeEx | ( | ) | const |
References GameTime::GetGameTime(), and m_respawnTime.
Referenced by npc_commandscript::HandleNpcInfoCommand().
uint32 Creature::GetScriptId | ( | ) | const |
References creatureData, GetCreatureData(), Object::GetEntry(), and sObjectMgr.
Referenced by Create(), ScriptMgr::GetCreatureAI(), ScriptMgr::GetDialogStatus(), GetScriptName(), WorldSession::HandleGossipSelectOptionOpcode(), InitializeReactState(), ScriptMgr::OnAddPassenger(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), ScriptMgr::OnCreatureUpdate(), ScriptMgr::OnGossipHello(), ScriptMgr::OnGossipSelect(), ScriptMgr::OnGossipSelectCode(), ScriptMgr::OnInstall(), ScriptMgr::OnInstallAccessory(), ScriptMgr::OnQuestAccept(), ScriptMgr::OnQuestComplete(), ScriptMgr::OnQuestReward(), ScriptMgr::OnQuestSelect(), ScriptMgr::OnRemovePassenger(), ScriptMgr::OnReset(), ScriptMgr::OnUninstall(), and UpdateMoveInLineOfSightState().
std::string Creature::GetScriptName | ( | ) | const |
References GetScriptId(), and sObjectMgr.
Referenced by GetDebugInfo(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcSetDataCommand(), and npc_escortAI::Start().
|
inlineoverridevirtual |
|
inline |
References m_spawnId.
Referenced by BattlegroundAV::AddAVCreature(), CreatureGroup::AddMember(), Vehicle::ApplyAllImmunities(), boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::boss_valithria_dreamwalkerAI(), boss_ghazan::DoAction(), RandomMovementGenerator< T >::DoInitialize(), GetDebugInfo(), CreatureGroup::GetNewTargetForMember(), GameEventMgr::GetNPCFlag(), SmartScript::GetScript(), WorldSession::HandleAuctionSellItem(), debug_commandscript::HandleDebugGetLootRecipientCommand(), OPvPCapturePointZM_GraveYard::HandleGossipOption(), npc_commandscript::HandleNpcAddCommand(), npc_commandscript::HandleNpcAddFormationCommand(), npc_commandscript::HandleNpcGuidCommand(), 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_eastvale_peasent::Initialize(), npc_spinestalker::npc_spinestalkerAI::InitializeAI(), npc_rimefang::npc_rimefangAI::InitializeAI(), npc_sindragosa_trash::npc_sindragosa_trashAI::InitializeAI(), npc_risen_archmage::npc_risen_archmageAI::JustEngagedWith(), npc_spinestalker::npc_spinestalkerAI::JustRespawned(), npc_rimefang::npc_rimefangAI::JustRespawned(), npc_sindragosa_trash::npc_sindragosa_trashAI::JustRespawned(), CreatureGroup::MemberEngagingTarget(), CreatureGroup::MemberEvaded(), instance_sunken_temple::instance_sunken_temple_InstanceMapScript::OnCreatureCreate(), instance_sunwell_plateau::instance_sunwell_plateau_InstanceMapScript::OnCreatureCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnUnitDeath(), RisenArchmageCheck::operator()(), ValithriaDespawner::operator()(), DoorsGuidCheck::operator()(), FormationMgr::RemoveCreatureFromGroup(), npc_ahnqiraji_critter::Reset(), Respawn(), SearchFormation(), boss_kaelthas::boss_kaelthasAI::SummonedCreatureDies(), and npc_risen_archmage::npc_risen_archmageAI::UpdateAI().
References GameTime::GetGameTimeMS(), and m_CreatureSpellCooldowns.
float Creature::GetSpellDamageMod | ( | int32 | Rank | ) |
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::SpellDamageBonusDone().
TrainerSpellData const * Creature::GetTrainerSpells | ( | ) | const |
References Object::GetEntry(), and sObjectMgr.
Referenced by WorldSession::HandleTrainerBuySpellOpcode(), and WorldSession::SendTrainerList().
|
inline |
References m_transportHomePosition.
|
inline |
References Position::GetPosition(), and m_transportHomePosition.
Referenced by SmartScript::ProcessAction(), Player::SetClientControl(), and MotionTransport::UpdatePassengerPositions().
uint32 Creature::GetVendorItemCurrentCount | ( | VendorItem const * | vItem | ) |
References ItemTemplate::BuyCount, 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 |
References Object::GetEntry(), and sObjectMgr.
Referenced by Player::BuyItemFromVendorSlot(), and WorldSession::SendListInventory().
|
inline |
|
inline |
References m_path_id.
Referenced by GetDebugInfo(), wp_commandscript::HandleWpAddCommand(), wp_commandscript::HandleWpShowCommand(), npc_sentinel_infiltrator::Initialize(), SmartAI::JustReachedHome(), WaypointMovementGenerator< Creature >::LoadPath(), boss_razorscale::boss_razorscaleAI::UpdateAI(), npc_wild_wyrm::npc_wild_wyrmAI::UpdateAI(), and boss_alar::boss_alarAI::UpdateAI().
|
overridevirtual |
Reimplemented from Object.
References Object::GetEntry(), and sObjectMgr.
|
inline |
References m_LootMode.
|
inline |
References m_lootRecipient, and m_lootRecipientGroup.
Referenced by AllLootRemovedFromCorpse(), Unit::BuildValuesUpdate(), Unit::DealDamage(), Player::GiveXP(), debug_commandscript::HandleDebugGetLootRecipientCommand(), boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::HealReceived(), boss_prince_keleseth_icc::boss_prince_kelesethAI::JustEngagedWith(), boss_prince_taldaram_icc::boss_prince_taldaramAI::JustEngagedWith(), and boss_prince_valanar_icc::boss_prince_valanarAI::JustEngagedWith().
bool Creature::HasMechanicTemplateImmunity | ( | uint32 | mask | ) | const |
References GetCreatureTemplate(), Unit::GetOwnerGUID(), ObjectGuid::IsPlayer(), and CreatureTemplate::MechanicImmuneMask.
Referenced by Unit::HandleProcTriggerSpell(), IsImmunedToSpell(), IsImmunedToSpellEffect(), and Unit::UpdateSpeed().
|
overridevirtual |
Reimplemented from Object.
References Object::GetEntry(), and sObjectMgr.
|
inline |
References m_reactState.
Referenced by npc_escortAI::AssistPlayerInCombatAgainst(), PetAI::AttackedBy(), CanAssistTo(), PetAI::CanAttack(), Unit::CombatStart(), PetAI::DoAttack(), LoadHelper(), CreatureAI::MoveInLineOfSight(), FollowerAI::MoveInLineOfSight(), npc_escortAI::MoveInLineOfSight(), SmartAI::MoveInLineOfSight(), PetAI::OwnerAttacked(), PetAI::OwnerAttackedBy(), npc_zealot_lorkhan::npc_zealot_lorkhanAI::Reset(), npc_zealot_zath::npc_zealot_zathAI::Reset(), boss_tyrannus::boss_tyrannusAI::Reset(), PetAI::SelectNextTarget(), SelectVictim(), Unit::SetInCombatState(), PetAI::SpellHit(), Unit::TauntApply(), Unit::TauntFadeOut(), CreatureAI::TriggerAlert(), boss_sartura::UpdateAI(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::UpdateAI(), boss_the_lich_king::boss_the_lich_kingAI::UpdateAI(), npc_raging_spirit::npc_raging_spiritAI::UpdateAI(), boss_noth::boss_nothAI::UpdateAI(), PetAI::UpdateAI(), CreatureAI::UpdateVictim(), and CreatureAI::UpdateVictimWithGaze().
|
inline |
|
overridevirtual |
Reimplemented from Unit.
Reimplemented in Pet.
References m_spells, and MAX_CREATURE_SPELLS.
Referenced by WorldSession::HandleCastSpellOpcode().
|
overridevirtual |
Reimplemented from Unit.
References GameTime::GetGameTimeMS(), and m_CreatureSpellCooldowns.
Referenced by WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCastSpellOpcode(), boss_faction_championsAI::IsCCed(), TriggerBurningPitch(), Pet::Update(), PetAI::UpdateAI(), and npc_gunship_rocketeer::npc_gunship_rocketeerAI::UpdateAI().
bool Creature::HasSpellFocus | ( | Spell const * | focusSpell = nullptr | ) | const |
References _spellFocusInfo, and Unit::isDead().
Referenced by IsMovementPreventedByCasting().
|
inline |
References _isMissingSwimmingFlagOutOfCombat.
Referenced by HomeMovementGenerator< Creature >::DoFinalize().
|
protected |
change the entry of creature until respawn
References ObjectMgr::ChooseDisplayId(), CreatureTemplate::DifficultyEntry, Entry, CreatureData::equipmentId, GetCreatureTemplate(), CreatureTemplate::GetFirstValidModelId(), WorldObject::GetMap(), GetNativeObjectScale(), CreatureTemplate::HoverHeight, IDLE_MOTION_TYPE, Unit::IsPet(), Map::IsRaid(), LoadEquipment(), LOG_ERROR, m_creatureInfo, m_defaultMovementType, m_originalEquipmentId, m_spells, m_wanderDistance, MAX_CREATURE_SPELLS, MOVE_FLIGHT, MOVE_RUN, MOVE_SWIM, MOVE_WALK, CreatureTemplate::MovementType, CreatureTemplate::Name, RAID_DIFFICULTY_10MAN_HEROIC, RANDOM_MOTION_TYPE, Object::SetByteValue(), SetDisplayId(), Object::SetEntry(), Object::SetFloatValue(), WorldObject::SetName(), Unit::SetNativeDisplayId(), SetObjectScale(), Unit::SetSpeed(), sObjectMgr, CreatureTemplate::speed_flight, CreatureTemplate::speed_run, CreatureTemplate::speed_swim, CreatureTemplate::speed_walk, CreatureTemplate::spells, CreatureTemplate::unit_class, UNIT_FIELD_BYTES_0, UNIT_FIELD_HOVERHEIGHT, and UNIT_MOD_CAST_SPEED.
Referenced by Pet::Create(), and UpdateEntry().
void Creature::InitializeReactState | ( | ) |
References GetAIName(), GetScriptId(), Unit::IsCritter(), Unit::IsSpiritService(), Unit::IsTotem(), IsTrigger(), REACT_AGGRESSIVE, REACT_PASSIVE, and SetReactState().
Referenced by spell_gen_feign_death_all_flags::HandleEffectRemove(), spell_gen_feign_death_no_dyn_flag::HandleEffectRemove(), spell_gen_feign_death_no_prevent_emotes::HandleEffectRemove(), Respawn(), and UpdateEntry().
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
References AI(), Unit::IsAIEnabled, and Unit::IsAlwaysDetectableFor().
|
inline |
bool Creature::isCanInteractWithBattleMaster | ( | Player * | player, |
bool | msg | ||
) | const |
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().
bool Creature::isCanTrainingAndResetTalentsOf | ( | Player * | player | ) | const |
References Unit::getClass(), GetCreatureTemplate(), Unit::GetLevel(), CreatureTemplate::trainer_class, CreatureTemplate::trainer_type, and TRAINER_TYPE_CLASS.
Referenced by WorldSession::HandleTalentWipeConfirmOpcode().
|
inline |
bool Creature::IsDamageEnoughForLootingAndReward | ( | ) | const |
References _damagedByPlayer, _playerDamageReq, CREATURE_FLAG_EXTRA_NO_PLAYER_DAMAGE_REQ, CreatureTemplate::flags_extra, and m_creatureInfo.
Referenced by Player::isAllowedToLoot(), boss_twilight_halion::boss_twilight_halionAI::JustDied(), and Unit::Kill().
bool Creature::IsDungeonBoss | ( | ) | const |
References CREATURE_FLAG_EXTRA_DUNGEON_BOSS, CreatureTemplate::flags_extra, Object::GetEntry(), Unit::GetOwnerGUID(), Object::IsPlayer(), and sObjectMgr.
Referenced by Spell::EffectForceDeselect(), Spell::EffectSanctuary(), Unit::GetRandomContactPoint(), spell_dk_death_grip::HandleBaseDummy(), AuraEffect::HandleFeignDeath(), WorldSession::HandlePetActionHelper(), SetLootRecipient(), and Unit::UpdateSpeed().
|
inline |
References CREATURE_ELITE_NORMAL, CREATURE_ELITE_RARE, GetCreatureTemplate(), Unit::IsPet(), and CreatureTemplate::rank.
Referenced by Spell::EffectSkinning(), and Acore::XP::Gain().
|
inline |
References CanNotReachTarget(), and IsInEvadeMode().
Referenced by Unit::Attack(), Unit::DealDamageMods(), Unit::DealMeleeDamage(), Unit::DealSpellDamage(), Unit::RollMeleeOutcomeAgainst(), and Unit::SpellHitResult().
bool Creature::IsFreeToMove | ( | ) |
References Unit::CanFreeMove(), CHASE_MOTION_TYPE, Unit::GetMotionMaster(), MovementInfo::GetMovementFlags(), IsMovementPreventedByCasting(), Unit::isMoving(), WorldObject::m_movementInfo, and MOVEMENTFLAG_SPLINE_ENABLED.
Referenced by CreatureAI::MoveBackwardsChecks(), and CreatureAI::MoveCircleChecks().
|
inline |
References CREATURE_FLAG_EXTRA_GUARD, CreatureTemplate::flags_extra, and GetCreatureTemplate().
Referenced by GuardAI::Permissible().
|
overridevirtual |
Reimplemented from Unit.
References SpellInfo::Effects, HasMechanicTemplateImmunity(), Unit::IsImmunedToSpell(), IsImmunedToSpellEffect(), MAX_SPELL_EFFECTS, SpellInfo::Mechanic, and MECHANIC_NONE.
|
overridevirtual |
Reimplemented from Unit.
Reimplemented in Totem.
References CREATURE_TYPE_MECHANICAL, SpellInfo::Effects, GetCreatureTemplate(), HasMechanicTemplateImmunity(), Unit::IsImmunedToSpellEffect(), MECHANIC_NONE, and SPELL_EFFECT_HEAL.
Referenced by IsImmunedToSpell(), and Totem::IsImmunedToSpellEffect().
bool Creature::IsImmuneToKnockback | ( | ) | const |
References CREATURE_FLAG_EXTRA_IMMUNITY_KNOCKBACK, CreatureTemplate::flags_extra, Object::GetEntry(), Unit::GetOwnerGUID(), Object::IsPlayer(), and sObjectMgr.
|
inline |
References Unit::HasUnitState(), and UNIT_STATE_EVADE.
Referenced by CreatureAI::_EnterEvadeMode(), npc_escortAI::AssistPlayerInCombatAgainst(), Unit::Attack(), CanAssistTo(), CanCreatureAttack(), boss_sindragosa::boss_sindragosaAI::DamageTaken(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfangAI::DoAction(), npc_muradin_bronzebeard_icc::npc_muradin_bronzebeard_iccAI::DoAction(), Spell::DoSpellHitOnUnit(), CreatureAI::DoZoneInCombat(), npc_pos_freed_slave::npc_pos_freed_slaveAI::EnterEvadeMode(), npc_pet_mage_mirror_image::EnterEvadeMode(), Vehicle::InstallAccessory(), IsEvadingAttacks(), boss_professor_putricide::boss_professor_putricideAI::JustSummoned(), boss_rotface::boss_rotfaceAI::JustSummoned(), boss_the_lich_king::boss_the_lich_kingAI::KilledUnit(), CreatureGroup::MemberEvaded(), SmartAI::OnCharmed(), Spell::prepare(), npc_tirion_fordring_tft::npc_tirion_fordringAI::sGossipSelect(), boss_prince_keleseth_icc::boss_prince_kelesethAI::SpellHit(), boss_prince_taldaram_icc::boss_prince_taldaramAI::SpellHit(), boss_prince_valanar_icc::boss_prince_valanarAI::SpellHit(), Update(), SimpleCharmedAI::UpdateAI(), npc_millhouse_manastorm::npc_millhouse_manastormAI::UpdateAI(), npc_simone::npc_simoneAI::UpdateAI(), and Player::UpdateCharmedAI().
|
overrideprotectedvirtual |
Reimplemented from WorldObject.
References GameTime::GetGameTime(), Unit::IsAlive(), WorldObject::IsInvisibleDueToDespawn(), and m_corpseRemoveTime.
|
inline |
References m_moveInLineOfSightDisabled.
Referenced by LoadHelper(), and CreatureAI::MoveInLineOfSight().
|
inline |
References m_moveInLineOfSightStrictlyDisabled.
Referenced by Acore::AIRelocationNotifier::Visit(), and Acore::CreatureRelocationNotifier::Visit().
|
overridevirtual |
Reimplemented from Unit.
References CURRENT_CHANNELED_SPELL, Spell::GetSpellInfo(), Spell::getState(), HasSpellFocus(), Unit::HasUnitState(), SpellInfo::IsActionAllowedChannel(), Spell::IsChannelActive(), Unit::m_currentSpells, SPELL_STATE_FINISHED, and UNIT_STATE_CASTING.
Referenced by WaypointMovementGenerator< Creature >::DoUpdate(), RandomMovementGenerator< T >::DoUpdate(), ChaseMovementGenerator< T >::DoUpdate(), FollowMovementGenerator< T >::DoUpdate(), IsFreeToMove(), and WaypointMovementGenerator< Creature >::StartMove().
bool Creature::IsNotReachableAndNeedRegen | ( | ) | const |
References CanNotReachTarget(), CONFIG_NPC_REGEN_TIME_IF_NOT_REACHABLE_IN_RAID, IN_MILLISECONDS, m_cannotReachTimer, and sWorld.
Referenced by Update().
|
inline |
References GetCreatureTemplate(), and CreatureTemplate::RacialLeader.
Referenced by Player::RewardHonor().
|
inline |
|
inline |
bool Creature::IsSpellProhibited | ( | SpellSchoolMask | idSchoolMask | ) | const |
References GameTime::GetGameTimeMS(), m_ProhibitSchoolTime, MAX_SPELL_SCHOOL, and SPELL_SCHOOL_NORMAL.
Referenced by Spell::CheckCast(), and SmartScript::ProcessAction().
bool Creature::isTappedBy | ( | Player const * | player | ) | const |
References Player::GetGroup(), Object::GetGUID(), GetLootRecipientGroup(), and m_lootRecipient.
Referenced by Unit::BuildValuesUpdate().
|
inline |
References CREATURE_FLAG_EXTRA_TRIGGER, CreatureTemplate::flags_extra, and GetCreatureTemplate().
Referenced by Unit::CombatStart(), Unit::CombatStartOnCast(), InitializeReactState(), TempSummon::InitStats(), boss_muru::boss_muruAI::JustSummoned(), boss_anub_arak::boss_anub_arakAI::JustSummoned(), boss_high_astromancer_solarian::boss_high_astromancer_solarianAI::JustSummoned(), Acore::AnyUnfriendlyNoTotemUnitInObjectRangeCheck::operator()(), NullCreatureAI::Permissible(), TriggerAI::Permissible(), Unit::SetInCombatWith(), Spell::SummonGuardian(), UpdateEntry(), UpdateMoveInLineOfSightState(), and Player::UpdateTriggerVisibility().
References Unit::getClass(), Unit::getRace(), Player::HasSpell(), Unit::IsTrainer(), m_creatureInfo, CreatureTemplate::trainer_class, CreatureTemplate::trainer_race, CreatureTemplate::trainer_spell, CreatureTemplate::trainer_type, TRAINER_TYPE_CLASS, TRAINER_TYPE_MOUNTS, TRAINER_TYPE_PETS, and TRAINER_TYPE_TRADESKILLS.
Referenced by Unit::BuildValuesUpdate().
bool Creature::isVendorWithIconSpeak | ( | ) | const |
References CreatureTemplate::IconName, m_creatureData, m_creatureInfo, CreatureData::npcflag, and UNIT_NPC_FLAG_VENDOR.
|
inline |
References CREATURE_TYPE_FLAG_BOSS_MOB, GetCreatureTemplate(), Unit::IsPet(), and CreatureTemplate::type_flags.
Referenced by Vehicle::ApplyAllImmunities(), CanCreatureAttack(), spell_item_lil_phylactery::CheckProc(), Unit::DealMeleeDamage(), Spell::DoSpellHitOnUnit(), Spell::EffectForceDeselect(), Spell::EffectSanctuary(), getLevelForTarget(), Unit::GetRandomContactPoint(), Unit::GetUnitDodgeChance(), spell_dk_death_grip::HandleBaseDummy(), AuraEffect::HandleFeignDeath(), WorldSession::HandlePetActionHelper(), hyjal_trashAI::JustDied(), setDeathState(), SetLootRecipient(), and hyjalAI::SummonCreature().
bool Creature::LoadCreatureFromDB | ( | ObjectGuid::LowType | guid, |
Map * | map, | ||
bool | addToMap = true , |
||
bool | gridLoad = false , |
||
bool | allowDuplicate = false |
||
) |
References _GetHealthMod(), ALIVE, CanFly(), Create(), CreatureData::curhealth, CreatureData::curmana, DEAD, Map::GenerateLowGuid(), Map::GetCreatureBySpawnIdStore(), Map::GetCreatureRespawnTime(), GetCreatureTemplate(), Map::GetHeight(), WorldObject::GetMap(), Unit::GetMaxHealth(), Unit::GetMaxPower(), WorldObject::GetPhaseMask(), GetRandomId(), CreatureData::id1, CreatureData::id2, CreatureData::id3, Acore::IsValidMapCoord(), LOG_DEBUG, LOG_ERROR, m_creatureData, Unit::m_deathState, m_defaultMovementType, m_regenHealth, m_respawnDelay, m_respawnTime, m_spawnId, m_wanderDistance, MAX_FALL_DISTANCE, CreatureData::movementType, CreatureData::orientation, CreatureData::overwrittenZ, CreatureData::phaseMask, CreatureData::posX, CreatureData::posY, CreatureData::posZ, POWER_MANA, Position::Relocate(), Unit::SetHealth(), SetHomePosition(), Unit::SetPower(), sObjectMgr, CreatureData::spawntimesecs, and CreatureData::wander_distance.
Referenced by ObjectMgr::AddCreData(), MotionTransport::CreateNPCPassenger(), GameEventMgr::GameEventSpawn(), npc_commandscript::HandleNpcAddCommand(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), LoadFromDB(), and PoolGroup< T >::Spawn1Object().
bool Creature::LoadCreaturesAddon | ( | bool | reload = false | ) |
Suspected correlation between UNIT_FIELD_BYTES_1, offset 3, value 0x2: If no inhabittype_fly (if no MovementFlag_DisableGravity or MovementFlag_CanFly flag found in sniffs) Check using InhabitType as movement flags are assigned dynamically basing on whether the creature is in air or not Set MovementFlag_Hover. Otherwise do nothing.
References Unit::AddAura(), Unit::AddUnitMovementFlag(), CreatureAddon::auras, CreatureAddon::bytes1, CreatureAddon::bytes2, CanHover(), CONFIG_SET_ALL_CREATURES_WITH_WAYPOINT_MOVEMENT_ACTIVE, CreatureAddon::emote, GetCreatureAddon(), Object::GetGUID(), Unit::HasAura(), LOG_DEBUG, LOG_ERROR, m_path_id, CreatureAddon::mount, Unit::Mount(), MOVEMENTFLAG_HOVER, CreatureAddon::path_id, WorldObject::setActive(), Object::SetByteValue(), Object::SetUInt32Value(), WorldObject::SetVisibilityDistanceOverride(), sSpellMgr, sWorld, Position::ToString(), UNIT_BYTES_1_OFFSET_ANIM_TIER, UNIT_BYTES_1_OFFSET_PET_TALENTS, UNIT_BYTES_1_OFFSET_STAND_STATE, UNIT_BYTES_1_OFFSET_VIS_FLAG, UNIT_FIELD_BYTES_1, UNIT_FIELD_BYTES_2, UNIT_NPC_EMOTESTATE, and CreatureAddon::visibilityDistanceType.
Referenced by CreatureAI::_EnterEvadeMode(), Create(), HomeMovementGenerator< Creature >::DoFinalize(), boss_doomrel::boss_doomrelAI::EnterEvadeMode(), npc_pos_freed_slave::npc_pos_freed_slaveAI::EnterEvadeMode(), npc_pet_hunter_snake_trap::EnterEvadeMode(), hyjalAI::EnterEvadeMode(), boss_urom::boss_uromAI::LeaveCombat(), boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::Reset(), npc_valithria_cloud::npc_valithria_cloudAI::Reset(), and setDeathState().
void Creature::LoadEquipment | ( | int8 | id = 1 , |
bool | force = false |
||
) |
References Object::GetEntry(), EquipmentInfo::ItemEntry, m_equipmentId, MAX_EQUIPMENT_ITEMS, Object::SetUInt32Value(), sObjectMgr, and UNIT_VIRTUAL_ITEM_SLOT_ID.
Referenced by boss_thekal::boss_thekalAI::CheckPhaseTransition(), boss_twinemperorsAI::DoAction(), spell_marli_transform::HandleApply(), spell_boss_magus_telestra_summon_telestra_clones::spell_boss_magus_telestra_summon_telestra_clones_AuraScript::HandleApply(), spell_marli_transform::HandleRemove(), spell_boss_magus_telestra_summon_telestra_clones::spell_boss_magus_telestra_summon_telestra_clones_AuraScript::HandleRemove(), spell_death_knight_initiate_visual::HandleScriptEffect(), InitEntry(), boss_swamplord_muselek::JustEngagedWith(), boss_pathaleon_the_calculator::JustEngagedWith(), npc_unworthy_initiate::npc_unworthy_initiateAI::MovementInform(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), spell_illidan_demon_transform1::spell_illidan_demon_transform1_AuraScript::OnPeriodic(), spell_illidan_demon_transform2::spell_illidan_demon_transform2_AuraScript::OnPeriodic(), boss_mr_smite::boss_mr_smiteAI::Reset(), npc_unworthy_initiate::npc_unworthy_initiateAI::Reset(), npc_koltira_deathweaver::npc_koltira_deathweaverAI::Reset(), boss_thekal::boss_thekalAI::Reset(), boss_ingvar_the_plunderer::boss_ingvar_the_plundererAI::Reset(), boss_illidan_stormrage::boss_illidan_stormrageAI::Reset(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::Reset(), boss_pathaleon_the_calculator::Reset(), Respawn(), ScriptedAI::SetEquipmentSlots(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::SummonedCreatureDies(), boss_mr_smite::boss_mr_smiteAI::UpdateAI(), npc_partygoer_pather::UpdateAI(), npc_partygoer::UpdateAI(), npc_forest_frog::npc_forest_frogAI::UpdateAI(), boss_svala::boss_svalaAI::UpdateAI(), boss_illidan_stormrage::boss_illidan_stormrageAI::UpdateAI(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::UpdateAI(), npc_tirions_gambit_tirion::npc_tirions_gambit_tirionAI::UpdateEscortAI(), and npc_koltira_deathweaver::npc_koltira_deathweaverAI::WaypointReached().
|
inline |
References LoadCreatureFromDB().
Referenced by LoadHelper().
|
inline |
References m_path_id.
Referenced by npc_commandscript::HandleNpcSetMoveTypeCommand(), wp_commandscript::HandleWpLoadCommand(), and wp_commandscript::HandleWpUnLoadCommand().
void Creature::LoadSpellTemplateImmunity | ( | ) |
References Unit::ApplySpellImmune(), GetCreatureTemplate(), Unit::GetOwnerGUID(), IMMUNITY_SCHOOL, Unit::IsHunterPet(), Object::IsPlayer(), SPELL_SCHOOL_ARCANE, and SPELL_SCHOOL_NORMAL.
Referenced by UpdateEntry().
void Creature::LowerPlayerDamageReq | ( | uint32 | unDamage, |
bool | damagedByPlayer = true |
||
) |
References _damagedByPlayer, and _playerDamageReq.
Referenced by boss_viscidus::boss_viscidus(), boss_viscidus::DamageTaken(), boss_buru::DamageTaken(), boss_twinemperorsAI::DamageTaken(), npc_artorius::npc_artoriusAI::DamageTaken(), npc_franklin::npc_franklinAI::DamageTaken(), npc_heated_battle::npc_heated_battleAI::DamageTaken(), boss_razuvious::boss_razuviousAI::DamageTaken(), boss_kologarn::boss_kologarnAI::DamageTaken(), Unit::DealDamage(), boss_xt002::boss_xt002AI::DoAction(), boss_yoggsaron::boss_yoggsaronAI::DoAction(), boss_ichoron::boss_ichoronAI::DoAction(), Spell::DoAllEffectOnTarget(), misc_commandscript::HandleDamageCommand(), misc_commandscript::HandleDieCommand(), boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::HealReceived(), boss_twin_valkyrAI::JustEngagedWith(), boss_sister_svalna::boss_sister_svalnaAI::JustEngagedWith(), boss_ingvar_the_plunderer::boss_ingvar_the_plundererAI::JustEngagedWith(), boss_prince_keleseth_icc::boss_prince_kelesethAI::JustEngagedWith(), boss_prince_taldaram_icc::boss_prince_taldaramAI::JustEngagedWith(), boss_prince_valanar_icc::boss_prince_valanarAI::JustEngagedWith(), npc_dirt_mound::JustSummoned(), boss_drakkari_colossus::boss_drakkari_colossusAI::JustSummoned(), boss_viscidus::SummonedCreatureDies(), npc_boneguard_footman::npc_boneguard_footmanAI::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), and npc_target_dummy::npc_target_dummyAI::UpdateAI().
void Creature::ModifyThreatPercentTemp | ( | Unit * | victim, |
int32 | percent, | ||
Milliseconds | duration | ||
) |
References EventProcessor::AddEvent(), EventProcessor::CalculateTime(), Object::GetGUID(), ThreatMgr::GetThreat(), Unit::GetThreatMgr(), Unit::m_Events, and ThreatMgr::ModifyThreatByPercent().
void Creature::Motion_Initialize | ( | ) |
References CreatureGroup::FormationReset(), CreatureGroup::GetLeader(), Unit::GetMotionMaster(), MotionMaster::Initialize(), CreatureGroup::IsFormed(), m_formation, and MotionMaster::MoveIdle().
Referenced by AddToWorld(), Pet::AddToWorld(), and setDeathState().
|
overridevirtual |
Reimplemented from Unit.
References GameTime::GetGameTimeMS(), m_ProhibitSchoolTime, MAX_SPELL_SCHOOL, and SPELL_SCHOOL_NORMAL.
References SpellInfo::Effects, WorldObject::GetDistance(), SpellInfo::GetMaxRange(), SpellInfo::GetMinRange(), Unit::GetPower(), Unit::HasUnitFlag(), LOG_ERROR, m_spells, SpellInfo::ManaCost, MAX_CREATURE_SPELLS, MAX_SPELL_EFFECTS, POWER_MANA, SpellInfo::PreventionType, SPELL_EFFECT_ENVIRONMENTAL_DAMAGE, SPELL_EFFECT_HEALTH_LEECH, SPELL_EFFECT_INSTAKILL, SPELL_EFFECT_SCHOOL_DAMAGE, SPELL_PREVENTION_TYPE_PACIFY, SPELL_PREVENTION_TYPE_SILENCE, sSpellMgr, UNIT_FLAG_PACIFIED, and UNIT_FLAG_SILENCED.
References SpellInfo::Effects, WorldObject::GetDistance(), SpellInfo::GetMaxRange(), SpellInfo::GetMinRange(), Unit::GetPower(), Unit::HasUnitFlag(), LOG_ERROR, m_spells, SpellInfo::ManaCost, MAX_CREATURE_SPELLS, MAX_SPELL_EFFECTS, POWER_MANA, SpellInfo::PreventionType, SPELL_EFFECT_HEAL, SPELL_PREVENTION_TYPE_PACIFY, SPELL_PREVENTION_TYPE_SILENCE, sSpellMgr, UNIT_FLAG_PACIFIED, and UNIT_FLAG_SILENCED.
void Creature::RefreshSwimmingFlag | ( | bool | recheck = false | ) |
References _isMissingSwimmingFlagOutOfCombat, CanEnterWater(), Unit::HasUnitFlag(), Unit::SetUnitFlag(), and UNIT_FLAG_SWIMMING.
|
protected |
References AddPct(), CREATURE_REGEN_INTERVAL, Unit::GetAuraEffectsByType(), Unit::GetCharmerOrOwnerGUID(), Object::GetEntry(), Unit::GetMaxPower(), Unit::GetOwnerGUID(), Unit::GetPower(), Unit::GetStat(), Unit::GetTotalAuraModifierByMiscValue(), Unit::HasUnitFlag2(), IN_MILLISECONDS, Unit::IsInCombat(), Object::IsPlayer(), Unit::IsUnderLastManaUseEffect(), m_regenPower, Unit::ModifyPower(), NPC_IMP, NPC_WATER_ELEMENTAL_PERM, NPC_WATER_ELEMENTAL_TEMP, 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 |
References AddPct(), CREATURE_REGEN_INTERVAL, Unit::GetAuraEffectsByType(), Unit::GetCharmerOrOwnerGUID(), Unit::GetHealth(), Unit::GetMaxHealth(), Unit::GetPower(), Unit::GetStat(), Unit::GetTotalAuraModifier(), IN_MILLISECONDS, Unit::IsPolymorphed(), isRegeneratingHealth(), 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::ReleaseFocus | ( | Spell const * | focusSpell | ) |
References _focusSpell, Unit::ClearUnitState(), ObjectGuid::Empty, Spell::GetSpellInfo(), Unit::GetVictim(), SpellInfo::HasAttribute(), Object::SetGuidValue(), SPELL_ATTR5_AI_DOESNT_FACE_TARGET, UNIT_FIELD_TARGET, and UNIT_STATE_ROTATING.
void Creature::RemoveCorpse | ( | bool | setSpawnTime = true , |
bool | skipVisibility = false |
||
) |
References AI(), Loot::clear(), CORPSE, CreatureAI::CorpseRemoved(), DEAD, WorldObject::DestroyForNearbyPlayers(), Unit::getDeathState(), GameTime::GetGameTime(), GetRespawnPosition(), Unit::IsAIEnabled, Unit::IsFalling(), loot, m_corpseRemoveTime, Unit::m_last_notify_position, m_respawnDelay, m_respawnTime, Position::Relocate(), Unit::RemoveAllAuras(), setDeathState(), SetHomePosition(), SetPosition(), and Unit::StopMoving().
Referenced by OPvPCapturePoint::DelCreature(), DisappearAndDie(), RespawnEvent::Execute(), ForcedDespawn(), AuraEffect::HandleAuraControlVehicle(), boss_skeram::JustDied(), npc_qiraj_war_spawn::npc_qiraj_war_spawnAI::JustDied(), boss_prince_keleseth_icc::boss_prince_kelesethAI::JustDied(), boss_prince_taldaram_icc::boss_prince_taldaramAI::JustDied(), boss_prince_valanar_icc::boss_prince_valanarAI::JustDied(), npc_illidari_spawn::npc_illidari_spawnAI::JustDied(), npc_nether_drake::npc_nether_drakeAI::MovementInform(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::MovementInform(), ValithriaDespawner::operator()(), Respawn(), npc_simone::npc_simoneAI::RespawnPet(), Update(), npc_towering_infernal::npc_towering_infernalAI::UpdateAI(), npc_lesser_doomguard::npc_lesser_doomguardAI::UpdateAI(), npc_abomination::npc_abominationAI::WaypointReached(), and npc_ghoul::npc_ghoulAI::WaypointReached().
|
overridevirtual |
Reimplemented from Object.
Reimplemented in TempSummon, Minion, Puppet, and Pet.
References Object::GetGUID(), WorldObject::GetMap(), Map::GetObjectsStore(), WorldObject::GetTransport(), WorldObject::GetZoneScript(), Object::IsInWorld(), m_formation, m_spawnId, Acore::Containers::MultimapErasePair(), ZoneScript::OnCreatureRemove(), TypeUnorderedMapContainer< OBJECT_TYPES, KEY_TYPE >::Remove(), Unit::RemoveFromWorld(), sFormationMgr, and sScriptMgr.
Referenced by TempSummon::RemoveFromWorld().
|
inline |
References m_LootMode.
Referenced by boss_yoggsaron::boss_yoggsaronAI::boss_yoggsaronAI().
|
inline |
References LOOT_MODE_DEFAULT, and m_LootMode.
Referenced by BossAI::_Reset(), Creature(), boss_sacrolash::boss_sacrolashAI::DoAction(), boss_alythess::boss_alythessAI::DoAction(), boss_majordomo::boss_majordomoAI::Reset(), boss_sartharion_dragonAI::Reset(), boss_xt002::boss_xt002AI::Reset(), boss_steelbreaker::boss_steelbreakerAI::UpdatePhase(), boss_runemaster_molgeim::boss_runemaster_molgeimAI::UpdatePhase(), and boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdatePhase().
|
inline |
References lootPickPocketRestoreTime.
Referenced by Respawn().
void Creature::ResetPlayerDamageReq | ( | ) |
References _damagedByPlayer, _playerDamageReq, and Unit::GetHealth().
Referenced by CreatureAI::_EnterEvadeMode(), npc_pos_freed_slave::npc_pos_freed_slaveAI::EnterEvadeMode(), npc_pet_hunter_snake_trap::EnterEvadeMode(), boss_vaelastrasz::boss_vaelAI::JustEngagedWith(), boss_urom::boss_uromAI::LeaveCombat(), boss_murmur::Reset(), SelectLevel(), and setDeathState().
void Creature::Respawn | ( | bool | force = false | ) |
References AI(), AIM_Initialize(), Loot::clear(), CORPSE, DEAD, CreatureData::equipmentId, Unit::GetAuraEffectsByType(), Unit::getDeathState(), Object::GetEntry(), GameTime::GetGameTime(), Object::GetGUID(), WorldObject::GetMap(), Unit::GetMotionMaster(), WorldObject::GetName(), Unit::GetNativeDisplayId(), GetRandomId(), GetSpawnId(), CreatureData::id1, CreatureData::id2, CreatureData::id3, MotionMaster::InitDefault(), InitializeReactState(), Unit::IsAIEnabled, Unit::IsAlive(), JUST_DIED, JUST_RESPAWNED, LoadEquipment(), LOG_DEBUG, loot, m_defaultMovementType, Unit::m_last_notify_position, m_originalEntry, m_respawnedTime, m_respawnTime, m_spawnId, CreatureData::movementType, Position::Relocate(), RemoveCorpse(), Map::RemoveCreatureRespawnTime(), UnitAI::Reset(), ResetPickPocketLootTime(), SelectLevel(), setDeathState(), SetDisplayId(), Unit::SetNativeDisplayId(), sObjectMgr, SPELL_AURA_TRANSFORM, sPoolMgr, Position::ToString(), TriggerJustRespawned, UpdateEntry(), and Unit::UpdateObjectVisibility().
Referenced by BattlegroundAV::AddAVCreature(), boss_thaddius_summon::boss_thaddius_summonAI::DoAction(), RespawnEvent::Execute(), npc_commandscript::HandleNpcMoveCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetWanderDistanceCommand(), misc_commandscript::HandleRespawnCommand(), hyjalAI::JustDied(), npc_isle_of_conquest_turret::npc_isle_of_conquest_turretAI::JustDied(), npc_simone::npc_simoneAI::JustRespawned(), CreatureGroup::MemberEvaded(), instance_karazhan::instance_karazhan_InstanceMapScript::OnCreatureCreate(), instance_uldaman::instance_uldaman_InstanceMapScript::OnCreatureCreate(), instance_temple_of_ahnqiraj::instance_temple_of_ahnqiraj_InstanceMapScript::OnCreatureCreate(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnCreatureCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), at_blackrock_stadium::OnTrigger(), Acore::RespawnDo::operator()(), instance_blood_furnace::instance_blood_furnace_InstanceMapScript::ResetPrisoner(), instance_molten_core::instance_molten_core_InstanceMapScript::SetBossState(), instance_naxxramas::instance_naxxramas_InstanceMapScript::SetBossState(), Battlefield::ShowNpc(), boss_warchief_kargath_bladefist::SummonedCreatureDies(), Update(), npc_escortAI::UpdateAI(), and InstanceScript::UpdateMinionState().
|
inline |
Helper to resume chasing current victim.
References Unit::GetMotionMaster(), Unit::GetVictim(), and MotionMaster::MoveChase().
Referenced by boss_grandmaster_vorpil::JustEngagedWith(), and boss_laj::JustEngagedWith().
|
overridevirtual |
Reimplemented from WorldObject.
References CreatureData::dbData, WorldObject::GetMap(), Unit::IsSummon(), m_creatureData, m_respawnTime, m_spawnId, and Map::SaveCreatureRespawnTime().
Referenced by boss_razorgore::boss_razorgoreAI::JustDied(), boss_azuregos::boss_azuregosAI::JustDied(), boss_prince_keleseth_icc::boss_prince_kelesethAI::JustDied(), boss_prince_taldaram_icc::boss_prince_taldaramAI::JustDied(), boss_prince_valanar_icc::boss_prince_valanarAI::JustDied(), npc_dragonflayer_forge_master::npc_dragonflayer_forge_masterAI::JustDied(), setDeathState(), and Update().
void Creature::SaveToDB | ( | ) |
References GameObject::GetGOInfo(), WorldLocation::GetMapId(), WorldObject::GetPhaseMask(), WorldObject::GetTransport(), LOG_ERROR, m_spawnId, GameObjectTemplate::mapID, GameObjectTemplate::moTransport, SaveToDB(), sObjectMgr, CreatureData::spawnMask, and GameObject::ToMotionTransport().
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.
References CreatureData::curhealth, CreatureData::curmana, CreatureData::currentwaypoint, CreatureData::displayid, CreatureTemplate::dynamicflags, CreatureData::dynamicflags, CreatureData::equipmentId, GetCreatureTemplate(), GetCurrentEquipmentId(), GetDefaultMovementType(), Unit::GetDynamicFlags(), Object::GetEntry(), Unit::GetHealth(), 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(), CreatureData::id1, IDLE_MOTION_TYPE, m_respawnDelay, m_spawnId, m_wanderDistance, CreatureData::mapid, CreatureTemplate::Modelid1, CreatureTemplate::Modelid2, CreatureTemplate::Modelid3, CreatureTemplate::Modelid4, CreatureData::movementType, CreatureTemplate::npcflag, CreatureData::npcflag, CreatureData::orientation, CreatureData::phaseMask, CreatureData::posX, CreatureData::posY, CreatureData::posZ, POWER_MANA, RANDOM_MOTION_TYPE, PreparedStatementBase::SetData(), sObjectMgr, CreatureData::spawnMask, CreatureData::spawntimesecs, sScriptMgr, CreatureTemplate::unit_flags, CreatureData::unit_flags, CreatureData::wander_distance, WORLD_DEL_CREATURE, WORLD_INS_CREATURE, and WorldDatabase.
void Creature::SearchFormation | ( | ) |
References GetSpawnId(), Unit::IsSummon(), and sFormationMgr.
Referenced by AddToWorld(), and npc_commandscript::HandleNpcAddFormationCommand().
void Creature::SelectLevel | ( | bool | changelevel = true | ) |
References _GetHealthMod(), CreatureBaseStats::AttackPower, BASE_ATTACK, BASE_VALUE, CreatureBaseStats::GenerateBaseDamage(), CreatureBaseStats::GenerateHealth(), CreatureBaseStats::GenerateMana(), GetCreatureTemplate(), Unit::IsPet(), MAXDAMAGE, CreatureTemplate::maxlevel, MINDAMAGE, CreatureTemplate::minlevel, OFF_ATTACK, POWER_MANA, RANGED_ATTACK, CreatureBaseStats::RangedAttackPower, CreatureTemplate::rank, ResetPlayerDamageReq(), Unit::SetBaseWeaponDamage(), Unit::SetCreateHealth(), Unit::SetCreateMana(), Unit::SetHealth(), Unit::SetLevel(), Unit::SetMaxHealth(), Unit::SetMaxPower(), Unit::SetModifierValue(), Unit::SetPower(), sObjectMgr, sScriptMgr, CreatureTemplate::unit_class, UNIT_MOD_ATTACK_POWER, UNIT_MOD_ATTACK_POWER_RANGED, UNIT_MOD_HEALTH, UNIT_MOD_MANA, and urand().
Referenced by Spell::EffectSummonType(), npc_target_dummy::npc_target_dummyAI::Reset(), Respawn(), and UpdateEntry().
Unit * Creature::SelectNearestTarget | ( | float | dist = 0 , |
bool | playerOnly = false |
||
) | const |
References MAX_VISIBILITY_DISTANCE, and Cell::VisitAllObjects().
Referenced by boss_twinemperorsAI::DoAction(), SmartScript::GetTargets(), npc_toc_warlock::npc_toc_warlockAI::JustSummoned(), npc_toc_hunter::npc_toc_hunterAI::JustSummoned(), npc_toc_boomkin::npc_toc_boomkinAI::JustSummoned(), boss_onyxia::JustSummoned(), boss_black_knight::boss_black_knightAI::JustSummoned(), boss_grand_champion::boss_grand_championAI::MovementInform(), npc_swarm_scarab::npc_swarm_scarabAI::Reset(), npc_nerubian_burrower::npc_nerubian_burrowerAI::Reset(), npc_fel_infernal::npc_fel_infernalAI::Reset(), npc_mistress_of_pain::npc_mistress_of_painAI::Reset(), boss_skarvald_the_constructor::boss_skarvald_the_constructorAI::Reset(), boss_dalronn_the_controller::boss_dalronn_the_controllerAI::Reset(), npc_heated_battle::npc_heated_battleAI::Reset(), npc_pet_hunter_snake_trap::Reset(), npc_pet_pri_shadowfiend::Reset(), npc_memory::npc_memoryAI::UpdateAI(), boss_malygos::boss_malygosAI::UpdateAI(), npc_freya_ward::npc_freya_wardAI::UpdateAI(), npc_q24545_vegard::npc_q24545_vegardAI::UpdateAI(), and npc_pet_gen_target_following_bomb::UpdateAI().
Unit * Creature::SelectNearestTargetInAttackDistance | ( | float | dist | ) | const |
References ATTACK_DISTANCE, MAX_SEARCHER_DISTANCE, and Cell::VisitAllObjects().
Referenced by PetAI::SelectNextTarget(), and SimpleCharmedAI::UpdateAI().
Unit * Creature::SelectVictim | ( | ) |
References AI(), CanCreatureAttack(), Unit::CanHaveThreatList(), CreatureAI::EnterEvadeMode(), CreatureAI::EVADE_REASON_NO_HOSTILES, Unit::getAttackerForHelper(), Unit::GetAuraEffectsByType(), GetFormation(), Object::GetGUID(), ThreatMgr::getHostileTarget(), Unit::GetOwner(), Unit::GetVehicle(), HasReactState(), Unit::IsSummon(), ThreatMgr::isThreatListEmpty(), Unit::m_attackers, Unit::m_ThreatMgr, REACT_PASSIVE, Unit::SetInFront(), SPELL_AURA_IGNORED, SPELL_AURA_MOD_INVISIBILITY, SPELL_AURA_MOD_TAUNT, Unit::ToTempSummon(), TYPEID_PLAYER, and UNIT_MASK_CONTROLABLE_GUARDIAN.
Referenced by StartMovementEvent::Execute(), boss_urom::boss_uromAI::JustSummoned(), boss_gyth::boss_gythAI::JustSummoned(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::MovementInform(), boss_sindragosa::boss_sindragosaAI::MovementInform(), npc_rimefang::npc_rimefangAI::MovementInform(), Unit::TauntFadeOut(), Update(), npc_raging_spirit::npc_raging_spiritAI::UpdateAI(), npc_pet_gen_gnomish_flame_turret::UpdateAI(), CreatureAI::UpdateVictim(), and CreatureAI::UpdateVictimWithGaze().
void Creature::SendAIReaction | ( | AiReaction | reactionType | ) |
References Object::GetGUID(), LOG_DEBUG, and SMSG_AI_REACTION.
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.
References WorldObject::GetAreaId(), Player::GetTeamId(), SMSG_ZONE_UNDER_ATTACK, sWorld, TEAM_ALLIANCE, and TEAM_HORDE.
Referenced by GuardAI::JustDied().
|
inline |
|
overridevirtual |
Reimplemented from Unit.
References OFF_ATTACK, Unit::SetCanDualWield(), and Unit::UpdateDamagePhysical().
Referenced by boss_malchezaar::clearweapons(), boss_twin_valkyrAI::DoAction(), boss_veras_darkshadow::boss_veras_darkshadowAI::JustEngagedWith(), npc_malchezaar_axe::npc_malchezaar_axe(), boss_mr_smite::boss_mr_smiteAI::Reset(), boss_malchezaar::Reset(), boss_mr_smite::boss_mr_smiteAI::UpdateAI(), and boss_twin_valkyrAI::UpdateAI().
|
overridevirtual |
movement counter
Reimplemented from Unit.
References Unit::BuildMovementPacket(), GameTime::GetGameTime(), Object::GetPackGUID(), Position::GetPositionZ(), WorldPacket::Initialize(), Unit::m_movedByPlayer, MSG_MOVE_UPDATE_CAN_FLY, Player::SendDirectMessage(), WorldObject::SendMessageToSet(), Player::SendMessageToSet(), Unit::SetCanFly(), Player::SetFallInformation(), SMSG_MOVE_SET_CAN_FLY, SMSG_MOVE_UNSET_CAN_FLY, SMSG_SPLINE_MOVE_SET_FLYING, SMSG_SPLINE_MOVE_UNSET_FLYING, sScriptMgr, and Object::ToPlayer().
Referenced by boss_twin_valkyrAI::boss_twin_valkyrAI(), boss_ayamiss::DamageTaken(), boss_kirtonos_the_herald::boss_kirtonos_the_heraldAI::DoAction(), npc_ball_of_flame::npc_ball_of_flameAI::DoAction(), npc_kalecgos_kj::npc_kalecgos_kjAI::DoAction(), boss_urom::boss_uromAI::EnterEvadeMode(), npc_pet_dk_ebon_gargoyle::npc_pet_dk_ebon_gargoyleAI::FlyAway(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::GoToMinchar(), boss_sartharion_tenebron::boss_sartharion_tenebronAI::HandleExtraEvent(), boss_sartharion_shadron::boss_sartharion_shadronAI::HandleExtraEvent(), boss_sartharion_vesperon::boss_sartharion_vesperonAI::HandleExtraEvent(), npc_pet_dk_ebon_gargoyle::npc_pet_dk_ebon_gargoyleAI::InitializeAI(), npc_infra_green_bomber_generic::npc_infra_green_bomber_genericAI::IsSummonedBy(), boss_urom::boss_uromAI::JustDied(), boss_sartharion_dragonAI::JustEngagedWith(), boss_ayamiss::JustEngagedWith(), npc_icc_spire_frostwyrm::JustReachedHome(), brann_bronzebeard::brann_bronzebeardAI::JustSummoned(), boss_ingvar_the_plunderer::boss_ingvar_the_plundererAI::JustSummoned(), boss_kiljaeden::boss_kiljaedenAI::JustSummoned(), boss_onyxia::MovementInform(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::MovementInform(), boss_sister_svalna::boss_sister_svalnaAI::MovementInform(), npc_icc_spire_frostwyrm::MovementInform(), npc_enslaved_proto_drake::npc_enslaved_proto_drakeAI::MovementInform(), boss_nazan::MovementInform(), npc_hallows_end_soh::MovementInform(), npc_pet_dk_ebon_gargoyle::npc_pet_dk_ebon_gargoyleAI::MovementInform(), npc_alexstrasza::npc_alexstraszaAI::npc_alexstraszaAI(), npc_concentrated_ball::npc_concentrated_ballAI::npc_concentrated_ballAI(), npc_pet_gen_moth::npc_pet_gen_moth(), npc_hover_disk::npc_hover_diskAI::PassengerBoarded(), boss_nefarian::PathEndReached(), boss_nefarian::Reset(), npc_image_of_medivh::npc_image_of_medivhAI::Reset(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::Reset(), npc_hallows_end_soh::Reset(), boss_onyxia::Reset(), boss_sartharion_dragonAI::Reset(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::Reset(), boss_sister_svalna::boss_sister_svalnaAI::Reset(), npc_icc_spire_frostwyrm::Reset(), npc_ulduar_mimiron_rocket::npc_ulduar_mimiron_rocketAI::Reset(), boss_nazan::Reset(), npc_enslaved_proto_drake::npc_enslaved_proto_drakeAI::SetData(), SmartAI::SetFly(), npc_simon_bunny::npc_simon_bunnyAI::SetGUID(), boss_urom::boss_uromAI::SpellHit(), boss_kirtonos_the_herald::boss_kirtonos_the_heraldAI::UpdateAI(), boss_onyxia::UpdateAI(), npc_frost_sphere::npc_frost_sphereAI::UpdateAI(), boss_krick::boss_krickAI::UpdateAI(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::UpdateAI(), npc_valkyr_shadowguard::npc_valkyr_shadowguardAI::UpdateAI(), boss_urom::boss_uromAI::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), npc_conversing_with_the_depths_trigger::npc_conversing_with_the_depths_triggerAI::UpdateAI(), npc_pet_gen_wind_rider_cub::UpdateAI(), and UpdateMovementFlags().
void Creature::SetCannotReachTarget | ( | ObjectGuid const & | target = ObjectGuid::Empty | ) |
References GetDebugInfo(), LOG_DEBUG, m_cannotReachTarget, and m_cannotReachTimer.
Referenced by CreatureAI::_EnterEvadeMode(), ChaseMovementGenerator< T >::DoUpdate(), setDeathState(), and Update().
|
inline |
References m_combatPulseDelay, and m_combatPulseTime.
Referenced by BossAI::_JustEngagedWith(), and BossAI::_Reset().
|
inline |
References m_corpseDelay.
Referenced by npc_raging_flames::InitializeAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::JustDied(), npc_hor_raging_ghoul::npc_hor_raging_ghoulAI::JustDied(), npc_hor_risen_witch_doctor::npc_hor_risen_witch_doctorAI::JustDied(), npc_hor_lumbering_abomination::npc_hor_lumbering_abominationAI::JustDied(), npc_mindless_ghoul::npc_mindless_ghoulAI::JustDied(), boss_hazzarah::JustSummoned(), npc_anubarak_spike::npc_anubarak_spikeAI::npc_anubarak_spikeAI(), npc_frost_sphere::npc_frost_sphereAI::npc_frost_sphereAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::npc_highlord_darion_mograineAI(), npc_mindless_ghoul::npc_mindless_ghoulAI::npc_mindless_ghoulAI(), instance_black_temple::instance_black_temple_InstanceMapScript::OnCreatureCreate(), ValithriaDespawner::operator()(), npc_varian_wrynn::npc_varian_wrynnAI::Reset(), npc_jaina_proudmoore_bfu::npc_jaina_proudmoore_bfuAI::Reset(), npc_thrall_bfu::npc_thrall_bfuAI::Reset(), npc_lady_sylvanas_windrunner_bfu::npc_lady_sylvanas_windrunner_bfuAI::Reset(), npc_swarm_scarab::npc_swarm_scarabAI::Reset(), npc_nerubian_burrower::npc_nerubian_burrowerAI::Reset(), npc_lk_wicked_spirit::npc_lk_wicked_spiritAI::Reset(), npc_valithria_cloud::npc_valithria_cloudAI::Reset(), npc_argent_captainAI::Reset(), npc_heated_battle::npc_heated_battleAI::Reset(), npc_q24545_wretched_ghoul::npc_q24545_wretched_ghoulAI::Reset(), and boss_svala::boss_svalaAI::UpdateAI().
void Creature::SetCorpseRemoveTime | ( | uint32 | delay | ) |
References GameTime::GetGameTime(), and m_corpseRemoveTime.
Referenced by boss_razorgore::boss_razorgoreAI::JustDied().
|
inline |
References m_equipmentId.
Referenced by npc_unworthy_initiate::npc_unworthy_initiateAI::npc_unworthy_initiateAI().
|
overridevirtual |
Reimplemented from Unit.
Reimplemented in Minion, and Pet.
References _lastDamagedTime, ALIVE, Unit::ClearUnitState(), CORPSE, CREATURE_ELITE_ELITE, Unit::Dismount(), CreatureTemplate::dmgschool, CreatureGroup::FormationReset(), GetCreatureData(), GetCreatureTemplate(), GameTime::GetGameTime(), CreatureGroup::GetLeader(), WorldObject::GetMap(), Unit::GetMotionMaster(), WorldObject::GetPhaseMask(), HasSearchedAssistance(), Unit::HasUnitMovementFlag(), Unit::IsFlying(), Unit::IsHovering(), Unit::IsUnderWater(), isWorldBoss(), JUST_DIED, JUST_RESPAWNED, LoadCreaturesAddon(), m_corpseDelay, m_corpseRemoveTime, m_formation, m_respawnDelay, m_respawnTime, Motion_Initialize(), MotionMaster::MoveFall(), MOVEMENTFLAG_FALLING, CreatureTemplate::npcflag, Unit::RemoveUnitMovementFlag(), Unit::ReplaceAllNpcFlags(), ResetPlayerDamageReq(), SaveRespawnTime(), WorldObject::setActive(), SetCannotReachTarget(), Unit::setDeathState(), SetDisableGravity(), Unit::SetFullHealth(), SetHover(), SetLootRecipient(), SetMeleeDamageSchool(), SetNoSearchAssistance(), Unit::SetPhaseMask(), SetTarget(), UNIT_NPC_FLAG_NONE, UNIT_STATE_ALL_STATE, UNIT_STATE_IGNORE_PATHFINDING, UNIT_STATE_NO_ENVIRONMENT_UPD, and UpdateMovementFlags().
Referenced by BattlegroundAV::AddAVCreature(), DisappearAndDie(), npc_auriaya_feral_defender::npc_auriaya_feral_defenderAI::DoAction(), boss_freya_summons::boss_freya_summonsAI::DoAction(), ForcedDespawn(), npc_commandscript::HandleNpcMoveCommand(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetWanderDistanceCommand(), npc_echo_of_medivh::HandlePieceJustDied(), npc_nether_drake::npc_nether_drakeAI::MovementInform(), instance_ulduar::instance_ulduar_InstanceMapScript::OnCreatureCreate(), RemoveCorpse(), Respawn(), npc_simone::npc_simoneAI::RespawnPet(), Minion::setDeathState(), Pet::setDeathState(), boss_hexlord_malacrass::boss_hex_lord_malacrassAI::SpawnAdds(), npc_argent_captainAI::SpellHit(), npc_drakuru_shackles::npc_drakuru_shacklesAI::SpellHit(), npc_escortAI::UpdateAI(), npc_a_special_surprise::npc_a_special_surpriseAI::UpdateAI(), npc_towering_infernal::npc_towering_infernalAI::UpdateAI(), npc_lesser_doomguard::npc_lesser_doomguardAI::UpdateAI(), npc_clintar_spirit::npc_clintar_spiritAI::UpdateAI(), npc_injured_patient::npc_injured_patientAI::UpdateAI(), npc_abomination::npc_abominationAI::WaypointReached(), and npc_ghoul::npc_ghoulAI::WaypointReached().
|
inline |
References m_defaultMovementType.
Referenced by npc_spinestalker::npc_spinestalkerAI::DoAction(), npc_rimefang::npc_rimefangAI::DoAction(), npc_commandscript::HandleNpcSetMoveTypeCommand(), npc_commandscript::HandleNpcSetWanderDistanceCommand(), wp_commandscript::HandleWpLoadCommand(), and wp_commandscript::HandleWpUnLoadCommand().
|
inline |
|
overridevirtual |
It's possible only a packet is sent but moveflags are not updated Need more research on this
movement counter
Reimplemented from Unit.
References Unit::BuildMovementPacket(), GetMovementTemplate(), Object::GetPackGUID(), Unit::HasUnitState(), WorldPacket::Initialize(), Unit::IsAlive(), Unit::IsHovering(), Unit::IsLevitating(), Unit::m_movedByPlayer, MSG_MOVE_GRAVITY_CHNG, Player::SendDirectMessage(), WorldObject::SendMessageToSet(), Player::SendMessageToSet(), Object::SetByteValue(), Unit::SetDisableGravity(), SMSG_MOVE_GRAVITY_DISABLE, SMSG_MOVE_GRAVITY_ENABLE, SMSG_SPLINE_MOVE_GRAVITY_DISABLE, SMSG_SPLINE_MOVE_GRAVITY_ENABLE, Object::ToPlayer(), UNIT_BYTE1_FLAG_FLY, UNIT_BYTE1_FLAG_GROUND, UNIT_BYTE1_FLAG_HOVER, UNIT_BYTES_1_OFFSET_ANIM_TIER, UNIT_FIELD_BYTES_1, and UNIT_STATE_ROOT.
Referenced by boss_twin_valkyrAI::boss_twin_valkyrAI(), boss_yoggsaron_brain::boss_yoggsaron_brainAI::boss_yoggsaron_brainAI(), boss_ayamiss::DamageTaken(), boss_the_lich_king::boss_the_lich_kingAI::DamageTaken(), boss_kirtonos_the_herald::boss_kirtonos_the_heraldAI::DoAction(), boss_taldaram::DoAction(), npc_ball_of_flame::npc_ball_of_flameAI::DoAction(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfangAI::DoAction(), npc_muradin_bronzebeard_icc::npc_muradin_bronzebeard_iccAI::DoAction(), boss_sindragosa::boss_sindragosaAI::DoAction(), boss_algalon_the_observer::boss_algalon_the_observerAI::DoAction(), npc_madrigosa::npc_madrigosaAI::DoAction(), npc_kalecgos_kj::npc_kalecgos_kjAI::DoAction(), boss_malygos::boss_malygosAI::EnterEvadeMode(), boss_urom::boss_uromAI::EnterEvadeMode(), boss_razorscale::boss_razorscaleAI::EnterEvadeMode(), npc_pet_dk_ebon_gargoyle::npc_pet_dk_ebon_gargoyleAI::FlyAway(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::GoToMinchar(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), boss_taldaram::InitializeAI(), npc_icc_nerubar_broodkeeper::npc_icc_nerubar_broodkeeperAI::InitializeAI(), boss_malygos::boss_malygosAI::InitializeAI(), boss_razorscale::boss_razorscaleAI::InitializeAI(), npc_pet_dk_ebon_gargoyle::npc_pet_dk_ebon_gargoyleAI::InitializeAI(), boss_urom::boss_uromAI::JustDied(), boss_jeklik::JustEngagedWith(), boss_ayamiss::JustEngagedWith(), boss_saviana_ragefire::boss_saviana_ragefireAI::JustReachedHome(), npc_spinestalker::npc_spinestalkerAI::JustReachedHome(), npc_rimefang::npc_rimefangAI::JustReachedHome(), npc_icc_spire_frostwyrm::JustReachedHome(), boss_ingvar_the_plunderer::boss_ingvar_the_plundererAI::JustSummoned(), boss_kiljaeden::boss_kiljaedenAI::JustSummoned(), npc_icc_gauntlet_controller::npc_icc_gauntlet_controllerAI::JustSummoned(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::JustSummoned(), boss_algalon_the_observer::boss_algalon_the_observerAI::MovementInform(), boss_onyxia::MovementInform(), boss_ayamiss::MovementInform(), boss_taldaram::MovementInform(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::MovementInform(), boss_sister_svalna::boss_sister_svalnaAI::MovementInform(), npc_icc_spire_frostwyrm::MovementInform(), npc_icc_nerubar_broodkeeper::npc_icc_nerubar_broodkeeperAI::MovementInform(), boss_malygos::boss_malygosAI::MovementInform(), npc_oculus_drake::npc_oculus_drakeAI::MovementInform(), boss_razorscale::boss_razorscaleAI::MovementInform(), npc_enslaved_proto_drake::npc_enslaved_proto_drakeAI::MovementInform(), boss_nazan::MovementInform(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::MovementInform(), boss_felmyst::boss_felmystAI::MovementInform(), npc_hallows_end_soh::MovementInform(), boss_saviana_ragefire::boss_saviana_ragefireAI::MovementInform(), boss_sindragosa::boss_sindragosaAI::MovementInform(), npc_spinestalker::npc_spinestalkerAI::MovementInform(), npc_rimefang::npc_rimefangAI::MovementInform(), boss_kaelthas::boss_kaelthasAI::MovementInform(), npc_pet_dk_ebon_gargoyle::npc_pet_dk_ebon_gargoyleAI::MovementInform(), boss_jedoga_shadowseeker::MovementInform(), npc_alexstrasza::npc_alexstraszaAI::npc_alexstraszaAI(), npc_attracted_reef_bull::npc_attracted_reef_bullAI::npc_attracted_reef_bullAI(), npc_concentrated_ball::npc_concentrated_ballAI::npc_concentrated_ballAI(), npc_icc_nerubar_broodkeeper::npc_icc_nerubar_broodkeeperAI::npc_icc_nerubar_broodkeeperAI(), npc_pet_gen_moth::npc_pet_gen_moth(), npc_pet_gen_valkyr_guardian::npc_pet_gen_valkyr_guardian(), npc_ulduar_aerial_command_unit::npc_ulduar_aerial_command_unitAI::npc_ulduar_aerial_command_unitAI(), instance_ulduar::instance_ulduar_InstanceMapScript::OnCreatureCreate(), npc_eoe_wyrmrest_skytalon::npc_eoe_wyrmrest_skytalonAI::PassengerBoarded(), npc_oculus_drake::npc_oculus_drakeAI::PassengerBoarded(), boss_nefarian::PathEndReached(), boss_jeklik::PathEndReached(), SmartScript::ProcessAction(), boss_nefarian::Reset(), boss_nightbane::Reset(), boss_felmyst::boss_felmystAI::Reset(), boss_kalecgos::boss_kalecgosAI::Reset(), boss_kalec::boss_kalecAI::Reset(), npc_akilzon_eagle::npc_akilzon_eagleAI::Reset(), npc_janalai_hatchling::npc_janalai_hatchlingAI::Reset(), boss_jeklik::Reset(), npc_batrider::Reset(), npc_soh_fire_trigger::Reset(), npc_hallows_end_soh::Reset(), boss_headless_horseman::Reset(), npc_frost_wyrm::npc_frost_wyrmAI::Reset(), npc_gargoyle::npc_gargoyleAI::Reset(), boss_onyxia::Reset(), boss_jedoga_shadowseeker::Reset(), npc_blood_queen_lana_thel::npc_blood_queen_lana_thelAI::Reset(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::Reset(), npc_spinestalker::npc_spinestalkerAI::Reset(), npc_rimefang::npc_rimefangAI::Reset(), boss_sister_svalna::boss_sister_svalnaAI::Reset(), npc_icc_spire_frostwyrm::Reset(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::Reset(), boss_kologarn::boss_kologarnAI::Reset(), boss_thorim_pillar::boss_thorim_pillarAI::Reset(), boss_yoggsaron_sara::boss_yoggsaron_saraAI::Reset(), boss_illidan_stormrage::boss_illidan_stormrageAI::Reset(), boss_nazan::Reset(), boss_kaelthas::boss_kaelthasAI::Reset(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::Reset(), npc_dancing_flames::npc_dancing_flamesAI::Reset(), npc_enslaved_proto_drake::npc_enslaved_proto_drakeAI::SetData(), setDeathState(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfangAI::SpellHit(), npc_muradin_bronzebeard_icc::npc_muradin_bronzebeard_iccAI::SpellHit(), npc_saurfang_event::npc_saurfang_eventAI::SpellHit(), boss_urom::boss_uromAI::SpellHit(), boss_nightbane::TakeOff(), boss_nightbane::UpdateAI(), boss_kirtonos_the_herald::boss_kirtonos_the_heraldAI::UpdateAI(), npc_madrigosa::npc_madrigosaAI::UpdateAI(), boss_felmyst::boss_felmystAI::UpdateAI(), boss_kalecgos::boss_kalecgosAI::UpdateAI(), npc_highborne_lamenter::npc_highborne_lamenterAI::UpdateAI(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), boss_onyxia::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_saviana_ragefire::boss_saviana_ragefireAI::UpdateAI(), boss_krick::boss_krickAI::UpdateAI(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::UpdateAI(), boss_sindragosa::boss_sindragosaAI::UpdateAI(), npc_rimefang::npc_rimefangAI::UpdateAI(), npc_valkyr_shadowguard::npc_valkyr_shadowguardAI::UpdateAI(), boss_sapphiron::boss_sapphironAI::UpdateAI(), boss_malygos::boss_malygosAI::UpdateAI(), boss_urom::boss_uromAI::UpdateAI(), npc_oculus_drake::npc_oculus_drakeAI::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), boss_razorscale::boss_razorscaleAI::UpdateAI(), npc_wintergarde_gryphon::UpdateAI(), boss_illidan_stormrage::boss_illidan_stormrageAI::UpdateAI(), boss_kaelthas::boss_kaelthasAI::UpdateAI(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::UpdateAI(), npc_pet_gen_wind_rider_cub::UpdateAI(), and UpdateMovementFlags().
|
inline |
References DisableReputationGain.
Referenced by hyjalAI::SummonCreature().
|
overridevirtual |
Reimplemented from Unit.
Reimplemented in Pet.
References DEFAULT_COMBAT_REACH, DEFAULT_WORLD_OBJECT_SIZE, Object::GetObjectScale(), Unit::IsPet(), Unit::SetDisplayId(), Object::SetFloatValue(), sObjectMgr, UNIT_FIELD_BOUNDINGRADIUS, and UNIT_FIELD_COMBATREACH.
Referenced by npc_q24545_wretched_ghoul::npc_q24545_wretched_ghoulAI::Activate(), Create(), npc_terenas_menethil::npc_terenas_menethilAI::DamageTaken(), npc_q24545_wretched_ghoul::npc_q24545_wretched_ghoulAI::Deactivate(), npc_icc_severed_essence::npc_icc_severed_essenceAI::DoAction(), boss_ichoron::boss_ichoronAI::DoExplodeCompleted(), SACDeactivateEvent::Execute(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), npc_commandscript::HandleNpcSetModelCommand(), wp_commandscript::HandleWpShowCommand(), InitEntry(), npc_troll_volunteer::npc_troll_volunteerAI::InitializeAI(), Totem::InitStats(), Guardian::InitStatsForLevel(), npc_eoe_wyrmrest_skytalon::npc_eoe_wyrmrest_skytalonAI::JustDied(), boss_ichoron::boss_ichoronAI::JustDied(), boss_tharon_ja::boss_tharon_jaAI::JustDied(), boss_laj::JustEngagedWith(), npc_scholomance_occultist::npc_scholomance_occultistAI::JustReachedHome(), npc_fairbanks::npc_fairbanksAI::MoveInLineOfSight(), npc_cw_area_trigger::npc_cw_area_triggerAI::npc_cw_area_triggerAI(), npc_eye_of_acherus::npc_eye_of_acherus(), npc_giant_infernal::npc_giant_infernalAI::npc_giant_infernalAI(), npc_grizzlemaw_cw_trigger::npc_grizzlemaw_cw_triggerAI::npc_grizzlemaw_cw_triggerAI(), npc_scarlet_miner_cart::npc_scarlet_miner_cartAI::npc_scarlet_miner_cartAI(), npc_the_biggest_tree::npc_the_biggest_tree(), npc_eoe_wyrmrest_skytalon::npc_eoe_wyrmrest_skytalonAI::PassengerBoarded(), npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI::ReorderInstance(), boss_kalec::boss_kalecAI::Reset(), boss_black_knight::boss_black_knightAI::Reset(), boss_tharon_ja::boss_tharon_jaAI::Reset(), boss_yoggsaron_sara::boss_yoggsaron_saraAI::Reset(), boss_ingvar_the_plunderer::boss_ingvar_the_plundererAI::Reset(), boss_ichoron::boss_ichoronAI::Reset(), boss_laj::Reset(), npc_infernal_attacker::npc_infernal_attackerAI::Reset(), Respawn(), Pet::SetDisplayId(), npc_netherspite_infernal::SpellHit(), npc_harrison_jones::npc_harrison_jonesAI::SpellHit(), boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::SpellHit(), npc_infernal_attacker::npc_infernal_attackerAI::SpellHit(), boss_black_knight::boss_black_knightAI::SpellHitTarget(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::SummonNextWave(), npc_vaelastrasz_the_red::npc_vaelastrasz_the_redAI::UpdateAI(), npc_harrison_jones::npc_harrison_jonesAI::UpdateAI(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI::UpdateAI(), npc_frost_sphere::npc_frost_sphereAI::UpdateAI(), boss_tharon_ja::boss_tharon_jaAI::UpdateAI(), npc_pos_collapsing_icicle::npc_pos_collapsing_icicleAI::UpdateAI(), npc_terenas_menethil::npc_terenas_menethilAI::UpdateAI(), npc_blistering_zombie::npc_blistering_zombieAI::UpdateAI(), npc_ulduar_icicle::npc_ulduar_icicleAI::UpdateAI(), boss_yoggsaron_sara::boss_yoggsaron_saraAI::UpdateAI(), npc_azure_saboteur::npc_azure_saboteurAI::UpdateAI(), and boss_ichoron::boss_ichoronAI::UpdateAI().
|
overridevirtual |
movement counter
Reimplemented from Unit.
References Unit::BuildMovementPacket(), Object::GetPackGUID(), WorldPacket::Initialize(), Unit::m_movedByPlayer, MSG_MOVE_FEATHER_FALL, Player::SendDirectMessage(), WorldObject::SendMessageToSet(), Player::SendMessageToSet(), Unit::SetFeatherFall(), SMSG_MOVE_FEATHER_FALL, SMSG_MOVE_NORMAL_FALL, SMSG_SPLINE_MOVE_FEATHER_FALL, SMSG_SPLINE_MOVE_NORMAL_FALL, and Object::ToPlayer().
|
inline |
References m_formation.
Referenced by CreatureGroup::AddMember(), and CreatureGroup::RemoveMember().
|
inline |
References m_homePosition, and Position::Relocate().
|
inline |
References m_homePosition, and Position::Relocate().
Referenced by Battleground::AddCreature(), boss_loatheb::boss_loathebAI::boss_loathebAI(), MotionTransport::CreateNPCPassenger(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::DestroyDoor(), boss_taldaram::DoAction(), npc_icc_spire_frostwyrm::DoAction(), brann_bronzebeard::brann_bronzebeardAI::DoAction(), boss_algalon_the_observer::boss_algalon_the_observerAI::DoAction(), boss_tyrannus::boss_tyrannusAI::DoAction(), hyjalAI::DoOverrun(), boss_jeklik::EnterEvadeMode(), boss_ayamiss::EnterEvadeMode(), violet_hold_trashAI::EnterEvadeMode(), npc_valkyr_shadowguard::npc_valkyr_shadowguardAI::GoSiphon(), WorldSession::HandleBattlemasterHelloOpcode(), WorldSession::HandleGossipHelloOpcode(), spell_item_toxic_wasteling::HandleJump(), WorldSession::HandleQuestgiverHelloOpcode(), boss_eck::boss_eckAI::InitializeAI(), boss_flame_leviathan::boss_flame_leviathanAI::InitializeAI(), boss_aeonus::IsSummonedBy(), npc_simone::npc_simoneAI::JustDied(), boss_mandokir::boss_mandokirAI::JustEngagedWith(), boss_urom::boss_uromAI::JustEngagedWith(), boss_flame_leviathan::boss_flame_leviathanAI::JustEngagedWith(), boss_kelthuzad::boss_kelthuzadAI::JustSummoned(), npc_daphne_stilwell::npc_daphne_stilwellAI::JustSummoned(), npc_hor_lich_king::npc_hor_lich_kingAI::JustSummoned(), boss_the_lich_king::boss_the_lich_kingAI::JustSummoned(), boss_algalon_the_observer::boss_algalon_the_observerAI::JustSummoned(), CreatureGroup::LeaderMoveTo(), LoadCreatureFromDB(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::MoveInLineOfSight(), npc_icc_nerubar_broodkeeper::npc_icc_nerubar_broodkeeperAI::MoveInLineOfSight(), boss_mandokir::boss_mandokirAI::MovementInform(), npc_enslaved_proto_drake::npc_enslaved_proto_drakeAI::MovementInform(), boss_sindragosa::boss_sindragosaAI::MovementInform(), npc_spinestalker::npc_spinestalkerAI::MovementInform(), npc_rimefang::npc_rimefangAI::MovementInform(), npc_omen::npc_omenAI::MovementInform(), npc_gunship_boarding_addAI::MovementInform(), boss_ghazan::MovementInform(), npc_zelfrax::npc_zelfraxAI::MovementInform(), npc_escortAI::MovementInform(), SmartAI::MovepointReached(), npc_akama_illidan::npc_akama_illidanAI::npc_akama_illidanAI(), RemoveCorpse(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::Reposition(), instance_old_hillsbrad::instance_old_hillsbrad_InstanceMapScript::Reposition(), boss_arlokk::boss_arlokkAI::Reset(), npc_simone::npc_simoneAI::RespawnPet(), WorldSession::SendListInventory(), gunship_npc_AI::SetData(), NPCStaveQuestAI::SetHomePosition(), Battlefield::SpawnCreature(), boss_urom::boss_uromAI::SpellHit(), boss_majordomo::boss_majordomoAI::SpellHit(), boss_ionar::boss_ionarAI::Split(), WaypointMovementGenerator< Creature >::StartMove(), Map::SummonCreature(), npc_drakonid_spawner::SummonedCreatureDies(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), hyjal_trashAI::UpdateAI(), npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI::UpdateAI(), npc_twilight_volunteer::UpdateAI(), npc_pos_martin_or_gorkun_second::npc_pos_martin_or_gorkun_secondAI::UpdateAI(), npc_icc_vengeful_fleshreaper::npc_icc_vengeful_fleshreaperAI::UpdateAI(), violet_hold_trashAI::UpdateAI(), npc_azure_saboteur::npc_azure_saboteurAI::UpdateAI(), npc_thassarian2::npc_thassarian2AI::UpdateAI(), npc_millhouse_manastorm::npc_millhouse_manastormAI::UpdateAI(), and MotionTransport::UpdatePassengerPositions().
|
overridevirtual |
Reimplemented from Unit.
References GetMovementTemplate(), Object::GetPackGUID(), Unit::HasUnitState(), Unit::IsAlive(), Unit::IsHovering(), Unit::IsLevitating(), WorldObject::SendMessageToSet(), Object::SetByteValue(), Unit::SetHover(), SMSG_SPLINE_MOVE_SET_HOVER, SMSG_SPLINE_MOVE_UNSET_HOVER, UNIT_BYTE1_FLAG_FLY, UNIT_BYTE1_FLAG_GROUND, UNIT_BYTE1_FLAG_HOVER, UNIT_BYTES_1_OFFSET_ANIM_TIER, UNIT_FIELD_BYTES_1, and UNIT_STATE_ROOT.
Referenced by boss_taldaram::DoAction(), npc_ball_of_flame::npc_ball_of_flameAI::DoAction(), boss_taldaram::InitializeAI(), boss_jeklik::JustEngagedWith(), npc_frostwing_vrykul::npc_frostwing_vrykulAI::JustEngagedWith(), boss_saviana_ragefire::boss_saviana_ragefireAI::JustReachedHome(), boss_taldaram::MovementInform(), boss_jedoga_shadowseeker::MovementInform(), boss_jeklik::PathEndReached(), boss_jeklik::Reset(), npc_batrider::Reset(), npc_depth_charge::npc_depth_chargeAI::Reset(), boss_jedoga_shadowseeker::Reset(), npc_dark_nucleus::npc_dark_nucleusAI::Reset(), npc_frostwing_vrykul::npc_frostwing_vrykulAI::Reset(), boss_svala::boss_svalaAI::Reset(), setDeathState(), npc_rizzle_sprysprocket::npc_rizzle_sprysprocketAI::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), boss_svala::boss_svalaAI::UpdateAI(), npc_wintergarde_gryphon::UpdateAI(), and UpdateMovementFlags().
void Creature::SetInCombatWithZone | ( | ) |
References AI(), CreatureAI::DoZoneInCombat(), and Unit::IsAIEnabled.
Referenced by npc_mograine::npc_mograineAI::DamageTaken(), npc_ghostly_priest::npc_ghostly_priestAI::DoAction(), npc_phantom_mage::npc_phantom_mageAI::DoAction(), npc_shadowy_mercenary::npc_shadowy_mercenaryAI::DoAction(), npc_spectral_footman::npc_spectral_footmanAI::DoAction(), npc_tortured_rifleman::npc_tortured_riflemanAI::DoAction(), npc_ball_of_flame::npc_ball_of_flameAI::DoAction(), npc_green_dragon_combat_trigger::npc_green_dragon_combat_triggerAI::DoAction(), npc_risen_archmage::npc_risen_archmageAI::DoAction(), npc_living_constellation::npc_living_constellationAI::DoAction(), boss_broggok::DoAction(), boss_grand_warlock_nethekurse::DoAction(), boss_drakkari_colossus::boss_drakkari_colossusAI::DoAction(), boss_thaddius_summon::boss_thaddius_summonAI::DoAction(), boss_yoggsaron::boss_yoggsaronAI::DoAction(), boss_palehoof::boss_palehoofAI::DoAction(), npc_massive_jormungar::npc_massive_jormungarAI::DoAction(), npc_ferocious_rhino::npc_ferocious_rhinoAI::DoAction(), npc_ravenous_furbolg::npc_ravenous_furbolgAI::DoAction(), npc_frenzied_worgen::npc_frenzied_worgenAI::DoAction(), boss_skadi::boss_skadiAI::DoAction(), boss_essence_of_suffering::boss_essence_of_sufferingAI::DoAction(), boss_essence_of_desire::boss_essence_of_desireAI::DoAction(), boss_essence_of_anger::boss_essence_of_angerAI::DoAction(), boss_the_lurker_below::boss_the_lurker_belowAI::DoAction(), boss_kelidan_the_breaker::DoAction(), boss_algalon_the_observer::boss_algalon_the_observerAI::EnterEvadeMode(), npc_little_ooze::npc_little_oozeAI::EnterEvadeMode(), npc_big_ooze::npc_big_oozeAI::EnterEvadeMode(), RestoreFight::Execute(), spell_teron_gorefiend_shadowy_construct::spell_teron_gorefiend_shadowy_construct_AuraScript::HandleEffectApply(), spell_mutate_explode_bug::HandleOnHit(), spell_the_lich_king_vile_spirit_move_target_search::spell_the_lich_king_vile_spirit_move_target_search_SpellScript::HandleScript(), spell_putricide_mutated_transformation::spell_putricide_mutated_transformation_SpellScript::HandleSummon(), boss_yoggsaron_sara::boss_yoggsaron_saraAI::InitFight(), boss_glob_of_viscidus::InitializeAI(), brann_bronzebeard::brann_bronzebeardAI::InitializeEvent(), npc_corrupted_totem::IsSummonedBy(), npc_living_inferno::npc_living_infernoAI::IsSummonedBy(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::JustEngagedWith(), boss_headless_horseman::JustEngagedWith(), boss_volazj::JustEngagedWith(), boss_twilight_halion::boss_twilight_halionAI::JustEngagedWith(), boss_faction_championsAI::JustEngagedWith(), npc_risen_archmage::npc_risen_archmageAI::JustEngagedWith(), npc_icc_valkyr_herald::npc_icc_valkyr_heraldAI::JustEngagedWith(), boss_kelthuzad_minion::boss_kelthuzad_minionAI::JustEngagedWith(), boss_drakos::boss_drakosAI::JustEngagedWith(), boss_eregos::boss_eregosAI::JustEngagedWith(), boss_urom::boss_uromAI::JustEngagedWith(), boss_varos::boss_varosAI::JustEngagedWith(), boss_bjarngrim::boss_bjarngrimAI::JustEngagedWith(), boss_ionar::boss_ionarAI::JustEngagedWith(), boss_loken::boss_lokenAI::JustEngagedWith(), boss_volkhan::boss_volkhanAI::JustEngagedWith(), boss_algalon_the_observer::boss_algalon_the_observerAI::JustEngagedWith(), boss_flame_leviathan::boss_flame_leviathanAI::JustEngagedWith(), boss_freya::boss_freyaAI::JustEngagedWith(), boss_vezax::boss_vezaxAI::JustEngagedWith(), boss_razorscale::boss_razorscaleAI::JustEngagedWith(), boss_xt002::boss_xt002AI::JustEngagedWith(), boss_skadi::boss_skadiAI::JustEngagedWith(), boss_skadi_grauf::boss_skadi_graufAI::JustEngagedWith(), boss_svala::boss_svalaAI::JustEngagedWith(), npc_frozen_orb::npc_frozen_orbAI::JustEngagedWith(), boss_olm_the_summoner::JustEngagedWith(), boss_kiggler_the_crazed::JustEngagedWith(), boss_blindeye_the_seer::JustEngagedWith(), boss_krosh_firehand::JustEngagedWith(), boss_harbinger_skyriss::JustEngagedWith(), boss_thaddius_summon::boss_thaddius_summonAI::JustEngagedWith(), boss_the_lich_king::boss_the_lich_kingAI::JustEngagedWith(), npc_green_dragon_combat_trigger::npc_green_dragon_combat_triggerAI::JustEngagedWith(), boss_trollgore::boss_trollgoreAI::JustEngagedWith(), boss_sindragosa::boss_sindragosaAI::JustEngagedWith(), boss_gluth::boss_gluthAI::JustEngagedWith(), boss_gothik::boss_gothikAI::JustEngagedWith(), boss_grobbulus::boss_grobbulusAI::JustEngagedWith(), boss_heigan::boss_heiganAI::JustEngagedWith(), boss_loatheb::boss_loathebAI::JustEngagedWith(), boss_maexxna::boss_maexxnaAI::JustEngagedWith(), boss_patchwerk::boss_patchwerkAI::JustEngagedWith(), boss_thaddius::boss_thaddiusAI::JustEngagedWith(), boss_steelbreaker::boss_steelbreakerAI::JustEngagedWith(), boss_runemaster_molgeim::boss_runemaster_molgeimAI::JustEngagedWith(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::JustEngagedWith(), boss_anubrekhan::boss_anubrekhanAI::JustSummoned(), boss_grobbulus::boss_grobbulusAI::JustSummoned(), boss_loatheb::boss_loathebAI::JustSummoned(), boss_maexxna::boss_maexxnaAI::JustSummoned(), boss_auriaya::boss_auriayaAI::JustSummoned(), npc_ouro_spawner::JustSummoned(), npc_dirt_mound::JustSummoned(), boss_dalronn_the_controller::boss_dalronn_the_controllerAI::JustSummoned(), boss_urom::boss_uromAI::JustSummoned(), npc_hor_lich_king::npc_hor_lich_kingAI::JustSummoned(), boss_curator::JustSummoned(), npc_demonic_vapor_trail::npc_demonic_vapor_trailAI::JustSummoned(), npc_kiljaeden_controller::npc_kiljaeden_controllerAI::JustSummoned(), boss_muru::boss_muruAI::JustSummoned(), boss_hazzarah::JustSummoned(), npc_hive_zara_larva::JustSummoned(), boss_anub_arak::boss_anub_arakAI::JustSummoned(), boss_novos::boss_novosAI::JustSummoned(), boss_slad_ran::boss_slad_ranAI::JustSummoned(), boss_professor_putricide::boss_professor_putricideAI::JustSummoned(), boss_noth::boss_nothAI::JustSummoned(), boss_magus_telestra::boss_magus_telestraAI::JustSummoned(), npc_creature_generator_akama::npc_creature_generator_akamaAI::JustSummoned(), boss_hydross_the_unstable::boss_hydross_the_unstableAI::JustSummoned(), boss_the_lurker_below::boss_the_lurker_belowAI::JustSummoned(), boss_morogrim_tidewalker::boss_morogrim_tidewalkerAI::JustSummoned(), boss_ahune::JustSummoned(), boss_omor_the_unscarred::JustSummoned(), boss_vazruden_the_herald::JustSummoned(), boss_high_astromancer_solarian::boss_high_astromancer_solarianAI::JustSummoned(), boss_nethermancer_sepethrea::JustSummoned(), boss_reliquary_of_souls::boss_reliquary_of_soulsAI::MoveInLineOfSight(), boss_kaelthas::boss_kaelthasAI::MoveInLineOfSight(), boss_nightbane::MovementInform(), boss_captain_skarloc::MovementInform(), boss_four_horsemen::boss_four_horsemenAI::MovementInform(), boss_headless_horseman::MovementInform(), boss_sindragosa::boss_sindragosaAI::MovementInform(), boss_sartharion_dragonAI::MovementInform(), boss_jedoga_shadowseeker::MovementInform(), npc_gunship_mage::npc_gunship_mageAI::MovementInform(), npc_ulduar_saronite_animus::npc_ulduar_saronite_animusAI::npc_ulduar_saronite_animusAI(), boss_julianne::Reset(), boss_headless_horseman_head::Reset(), npc_twilight_summon::npc_twilight_summonAI::Reset(), boss_twilight_halion::boss_twilight_halionAI::Reset(), boss_yoggsaron_guardian_of_ys::boss_yoggsaron_guardian_of_ysAI::Reset(), boss_yoggsaron_crusher_tentacle::boss_yoggsaron_crusher_tentacleAI::Reset(), boss_yoggsaron_immortal_guardian::boss_yoggsaron_immortal_guardianAI::Reset(), instance_naxxramas::instance_naxxramas_InstanceMapScript::SetBossState(), boss_darkmaster_gandling::boss_darkmaster_gandlingAI::SetData(), npc_argent_captainAI::SpellHit(), spell_putricide_ooze_channel::spell_putricide_ooze_channel_SpellScript::StartAttack(), brann_bronzebeard::brann_bronzebeardAI::SummonCreatures(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::SummonedCreatureDies(), Update(), boss_dorothee::UpdateAI(), boss_felmyst::boss_felmystAI::UpdateAI(), boss_kiljaeden::boss_kiljaedenAI::UpdateAI(), boss_entropius::boss_entropiusAI::UpdateAI(), boss_mandokir::boss_mandokirAI::UpdateAI(), boss_krik_thir::boss_krik_thirAI::UpdateAI(), boss_falric::boss_falricAI::UpdateAI(), boss_marwyn::boss_marwynAI::UpdateAI(), npc_phantom_hallucination::npc_phantom_hallucinationAI::UpdateAI(), npc_hor_lich_king::npc_hor_lich_kingAI::UpdateAI(), npc_vengeful_shade::npc_vengeful_shadeAI::UpdateAI(), npc_little_ooze::npc_little_oozeAI::UpdateAI(), npc_big_ooze::npc_big_oozeAI::UpdateAI(), npc_green_dragon_combat_trigger::npc_green_dragon_combat_triggerAI::UpdateAI(), boss_sapphiron::boss_sapphironAI::UpdateAI(), boss_algalon_the_observer::boss_algalon_the_observerAI::UpdateAI(), boss_flame_leviathan::boss_flame_leviathanAI::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), boss_razorscale::boss_razorscaleAI::UpdateAI(), boss_anzu::UpdateAI(), boss_ahune::UpdateAI(), and npc_onyx_flamecaller::npc_onyx_flamecallerAI::WaypointReached().
void Creature::SetLastDamagedTime | ( | time_t | val | ) |
References _lastDamagedTime.
Referenced by CreatureAI::_EnterEvadeMode(), Unit::DealDamage(), npc_pos_freed_slave::npc_pos_freed_slaveAI::EnterEvadeMode(), npc_pet_hunter_snake_trap::EnterEvadeMode(), and AssistDelayEvent::Execute().
void Creature::SetLastDamagedTimePtr | ( | std::shared_ptr< time_t > const & | val | ) |
References _lastDamagedTime.
Referenced by AssistDelayEvent::Execute().
|
inline |
References m_LootMode.
Referenced by boss_yoggsaron::boss_yoggsaronAI::boss_yoggsaronAI(), boss_vezax::boss_vezaxAI::DoAction(), boss_xt002::boss_xt002AI::DoAction(), boss_sartharion_dragonAI::JustEngagedWith(), boss_priestess_delrissa::boss_priestess_delrissaAI::Reset(), boss_sacrolash::boss_sacrolashAI::Reset(), boss_alythess::boss_alythessAI::Reset(), boss_steelbreaker::boss_steelbreakerAI::Reset(), boss_runemaster_molgeim::boss_runemaster_molgeimAI::Reset(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::Reset(), boss_vezax::boss_vezaxAI::Reset(), boss_skarvald_the_constructor::boss_skarvald_the_constructorAI::Reset(), boss_dalronn_the_controller::boss_dalronn_the_controllerAI::Reset(), boss_high_king_maulgar::Reset(), instance_violet_hold::instance_violet_hold_InstanceMapScript::StartBossEncounter(), and boss_priestess_delrissa::boss_priestess_delrissaAI::SummonedCreatureDies().
void Creature::SetLootRecipient | ( | Unit * | unit, |
bool | withGroup = true |
||
) |
References WorldObject::AddAllowedLooter(), MapRefMgr::begin(), ObjectGuid::Clear(), MapRefMgr::end(), Unit::GetCharmerOrOwnerPlayerOrPlayerItself(), Player::GetGroup(), Object::GetGUID(), WorldObject::GetMap(), Map::GetPlayers(), Map::IsDungeon(), IsDungeonBoss(), isWorldBoss(), m_lootRecipient, m_lootRecipientGroup, Object::RemoveDynamicFlag(), WorldObject::ResetAllowedLooters(), Object::SetDynamicFlag(), UNIT_DYNFLAG_LOOTABLE, and UNIT_DYNFLAG_TAPPED.
Referenced by CreatureAI::_EnterEvadeMode(), npc_heated_battle::npc_heated_battleAI::DamageTaken(), Unit::DealDamage(), boss_doomrel::boss_doomrelAI::EnterEvadeMode(), npc_koltira_deathweaver::npc_koltira_deathweaverAI::EnterEvadeMode(), npc_varian_wrynn::npc_varian_wrynnAI::EnterEvadeMode(), npc_thrall_bfu::npc_thrall_bfuAI::EnterEvadeMode(), npc_pos_freed_slave::npc_pos_freed_slaveAI::EnterEvadeMode(), npc_pet_hunter_snake_trap::EnterEvadeMode(), npc_escortAI::EnterEvadeMode(), FollowerAI::EnterEvadeMode(), hyjalAI::EnterEvadeMode(), boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::HealReceived(), boss_razorgore::boss_razorgoreAI::JustDied(), boss_prince_keleseth_icc::boss_prince_kelesethAI::JustEngagedWith(), boss_prince_taldaram_icc::boss_prince_taldaramAI::JustEngagedWith(), boss_prince_valanar_icc::boss_prince_valanarAI::JustEngagedWith(), Unit::Kill(), boss_urom::boss_uromAI::LeaveCombat(), npc_target_dummy::npc_target_dummyAI::Reset(), Player::SendLoot(), setDeathState(), boss_algalon_the_observer::boss_algalon_the_observerAI::UpdateAI(), and npc_target_dummy::npc_target_dummyAI::UpdateAI().
|
inline |
|
inline |
References m_AlreadyCallAssistance.
Referenced by CallAssistance(), npc_anubisath_sentinel::aqsentinelAI::CallBuddiesToAttack(), AssistDelayEvent::Execute(), AssistanceMovementGenerator::Finalize(), boss_krik_thir::boss_krik_thirAI::JustSummoned(), npc_boss_gothik_minion::npc_boss_gothik_minionAI::Reset(), boss_kelthuzad_minion::boss_kelthuzad_minionAI::Reset(), and Update().
|
inline |
References m_AlreadySearchedAssistance.
Referenced by DoFleeToGetAssistance(), and setDeathState().
|
overridevirtual |
Reimplemented from Object.
References DEFAULT_COMBAT_REACH, DEFAULT_WORLD_OBJECT_SIZE, Unit::GetDisplayId(), Unit::IsPet(), Object::SetFloatValue(), Object::SetObjectScale(), sObjectMgr, UNIT_FIELD_BOUNDINGRADIUS, and UNIT_FIELD_COMBATREACH.
Referenced by wp_commandscript::HandleWpShowCommand(), InitEntry(), Guardian::InitStatsForLevel(), npc_memory::npc_memoryAI::npc_memoryAI(), boss_freya_nature_bomb::boss_freya_nature_bombAI::Reset(), boss_sartharion::boss_sartharionAI::SendLavaWaves(), npc_soh_fire_trigger::SpellHit(), npc_simon_bunny::npc_simon_bunnyAI::StartGame(), npc_memory::npc_memoryAI::UpdateAI(), and npc_frost_sphere::npc_frost_sphereAI::UpdateAI().
|
inline |
void Creature::SetPickPocketLootTime | ( | ) |
References GetCorpseDelay(), GameTime::GetGameTime(), GetRespawnTime(), lootPickPocketRestoreTime, and MINUTE.
Referenced by Player::SendLoot().
|
inline |
References Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), and SetPosition().
Referenced by SetPosition().
void Creature::SetPosition | ( | float | x, |
float | y, | ||
float | z, | ||
float | o | ||
) |
References Map::CreatureRelocation(), WorldObject::GetMap(), and Acore::IsValidMapCoord().
Referenced by npc_power_spark::npc_power_sparkAI::DamageTaken(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfangAI::DoAction(), npc_muradin_bronzebeard_icc::npc_muradin_bronzebeard_iccAI::DoAction(), boss_kelthuzad_minion::boss_kelthuzad_minionAI::DoAction(), CastArmageddon::Execute(), npc_commandscript::HandleNpcMoveCommand(), npc_frost_wyrm::npc_frost_wyrmAI::JustDied(), npc_gargoyle::npc_gargoyleAI::JustDied(), boss_ingvar_the_plunderer::boss_ingvar_the_plundererAI::JustSummoned(), boss_kiljaeden::boss_kiljaedenAI::JustSummoned(), npc_escortAI::MovementInform(), SmartAI::MovepointReached(), npc_vortex_ride::npc_vortex_rideAI::npc_vortex_rideAI(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::OnCreatureCreate(), instance_ulduar::instance_ulduar_InstanceMapScript::OnCreatureCreate(), FrostwingGauntletRespawner::operator()(), ValithriaDespawner::operator()(), RemoveCorpse(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::Reset(), boss_four_horsemen::boss_four_horsemenAI::Reset(), boss_thaddius::boss_thaddiusAI::Reset(), npc_simone::npc_simoneAI::RespawnPet(), instance_naxxramas::instance_naxxramas_InstanceMapScript::SetBossState(), boss_hexlord_malacrass::boss_hex_lord_malacrassAI::SpawnAdds(), npc_highborne_lamenter::npc_highborne_lamenterAI::UpdateAI(), npc_oculus_drakegiver::npc_oculus_drakegiverAI::UpdateAI(), boss_yoggsaron_sara::boss_yoggsaron_saraAI::UpdateAI(), npc_battle_at_valhalas::npc_battle_at_valhalasAI::UpdateAI(), boss_alar::boss_alarAI::UpdateAI(), boss_high_astromancer_solarian::boss_high_astromancer_solarianAI::UpdateAI(), and Unit::UpdateSplinePosition().
|
inline |
References m_reactState.
Referenced by boss_halion::boss_halionAI::AttackStart(), boss_faction_championsAI::boss_faction_championsAI(), boss_felmyst::boss_felmystAI::boss_felmystAI(), boss_glob_of_viscidus::boss_glob_of_viscidus(), boss_gormok::boss_gormokAI::boss_gormokAI(), boss_grand_champion::boss_grand_championAI::boss_grand_championAI(), boss_icehowl::boss_icehowlAI::boss_icehowlAI(), boss_jaraxxus::boss_jaraxxusAI::boss_jaraxxusAI(), boss_jarien::boss_jarien(), boss_jormungarAI::boss_jormungarAI(), boss_kiljaeden::boss_kiljaedenAI::boss_kiljaedenAI(), boss_sothos::boss_sothos(), boss_the_lich_king::boss_the_lich_kingAI::boss_the_lich_kingAI(), boss_twin_valkyrAI::boss_twin_valkyrAI(), boss_tyrannus::boss_tyrannusAI::boss_tyrannusAI(), boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::boss_valithria_dreamwalkerAI(), CharmInfo::CharmInfo(), boss_thekal::boss_thekalAI::CheckPhaseTransition(), boss_garfrost::boss_garfrostAI::DamageTaken(), boss_professor_putricide::boss_professor_putricideAI::DamageTaken(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::DamageTaken(), boss_kiljaeden::boss_kiljaedenAI::DamageTaken(), boss_thekal::boss_thekalAI::DamageTaken(), boss_ayamiss::DamageTaken(), boss_jedoga_shadowseeker::DamageTaken(), boss_grand_champion::boss_grand_championAI::DamageTaken(), npc_terenas_menethil::npc_terenas_menethilAI::DamageTaken(), npc_crystalline_frayer::npc_crystalline_frayerAI::DamageTaken(), boss_algalon_the_observer::boss_algalon_the_observerAI::DamageTaken(), boss_freya::boss_freyaAI::DamageTaken(), boss_hodir::boss_hodirAI::DamageTaken(), npc_ulduar_leviathan_mkii::npc_ulduar_leviathan_mkiiAI::DamageTaken(), npc_ulduar_vx001::npc_ulduar_vx001AI::DamageTaken(), npc_ulduar_aerial_command_unit::npc_ulduar_aerial_command_unitAI::DamageTaken(), npc_ulduar_arachnopod_destroyer::npc_ulduar_arachnopod_destroyerAI::DamageTaken(), boss_essence_of_suffering::boss_essence_of_sufferingAI::DamageTaken(), boss_essence_of_desire::boss_essence_of_desireAI::DamageTaken(), boss_alar::boss_alarAI::DamageTaken(), boss_taerar::boss_taerarAI::DamageTaken(), boss_viscidus::DamageTaken(), boss_the_lich_king::boss_the_lich_kingAI::DamageTaken(), boss_mal_ganis::boss_mal_ganisAI::DamageTaken(), boss_bug_trio::DamageTaken(), npc_q24545_wretched_ghoul::npc_q24545_wretched_ghoulAI::Deactivate(), boss_kirtonos_the_herald::boss_kirtonos_the_heraldAI::DoAction(), boss_thekal::boss_thekalAI::DoAction(), boss_bug_trio::DoAction(), boss_twinemperorsAI::DoAction(), boss_prince_keleseth_icc::boss_prince_kelesethAI::DoAction(), boss_prince_taldaram_icc::boss_prince_taldaramAI::DoAction(), boss_prince_valanar_icc::boss_prince_valanarAI::DoAction(), boss_algalon_the_observer::boss_algalon_the_observerAI::DoAction(), npc_living_constellation::npc_living_constellationAI::DoAction(), boss_broggok::DoAction(), npc_living_mojo::npc_living_mojoAI::DoAction(), boss_essence_of_suffering::boss_essence_of_sufferingAI::DoAction(), boss_essence_of_desire::boss_essence_of_desireAI::DoAction(), boss_essence_of_anger::boss_essence_of_angerAI::DoAction(), boss_the_lurker_below::boss_the_lurker_belowAI::DoAction(), boss_kelidan_the_breaker::DoAction(), boss_nazan::DoAction(), boss_skeram::DoTeleport(), Spell::EffectSummonPet(), Spell::EffectSummonType(), boss_ouro::Emerge(), boss_the_lich_king::boss_the_lich_kingAI::EnterEvadeMode(), RestoreAttack::Execute(), OrcMoveEvent::Execute(), RestoreFight::Execute(), UtherBatteredHiltEvent::Execute(), StartMovementEvent::Execute(), VileSpiritActivateEvent::Execute(), SACActivateEvent::Execute(), SACDeactivateEvent::Execute(), AssistanceDistractMovementGenerator::Finalize(), npc_pet_dk_ebon_gargoyle::npc_pet_dk_ebon_gargoyleAI::FlyAway(), boss_volkhan::boss_volkhanAI::GoToAnvil(), spell_mc_play_dead::spell_mc_play_dead_AuraScript::HandleEffectApply(), spell_uldaman_stoned::spell_uldaman_stoned_AuraScript::HandleEffectApply(), spell_gen_feign_death_all_flags::HandleEffectApply(), spell_gen_feign_death_no_dyn_flag::HandleEffectApply(), spell_gen_feign_death_no_prevent_emotes::HandleEffectApply(), spell_mc_play_dead::spell_mc_play_dead_AuraScript::HandleEffectRemove(), spell_uldaman_stoned::spell_uldaman_stoned_AuraScript::HandleEffectRemove(), boss_ragnaros::boss_ragnarosAI::HandleEmerge(), spell_mutate_explode_bug::HandleOnHit(), WorldSession::HandlePetActionHelper(), spell_item_draenic_pale_ale::HandleSummon(), Battlefield::HideNpc(), npc_wounded_skirmisher::Initialize(), npc_scarlet_ghoul::npc_scarlet_ghoulAI::InitializeAI(), npc_general_andorov::InitializeAI(), boss_eck::boss_eckAI::InitializeAI(), boss_prince_keleseth_icc::boss_prince_kelesethAI::InitializeAI(), boss_prince_taldaram_icc::boss_prince_taldaramAI::InitializeAI(), boss_prince_valanar_icc::boss_prince_valanarAI::InitializeAI(), boss_sapphiron::boss_sapphironAI::InitializeAI(), npc_lord_arete::npc_lord_areteAI::InitializeAI(), npc_millhouse_manastorm::npc_millhouse_manastormAI::InitializeAI(), npc_pet_mage_mirror_image::InitializeAI(), InitializeReactState(), Minion::InitStats(), Guardian::InitStats(), Puppet::InitStats(), Guardian::InitStatsForLevel(), Totem::InitSummon(), boss_jarien::IsSummonedBy(), boss_sothos::IsSummonedBy(), boss_aeonus::IsSummonedBy(), npc_lk_wicked_spirit::npc_lk_wicked_spiritAI::JustDied(), boss_venoxis::boss_venoxisAI::JustEngagedWith(), boss_laj::JustEngagedWith(), boss_prince_keleseth_icc::boss_prince_kelesethAI::JustEngagedWith(), boss_prince_taldaram_icc::boss_prince_taldaramAI::JustEngagedWith(), boss_prince_valanar_icc::boss_prince_valanarAI::JustEngagedWith(), boss_four_horsemen::boss_four_horsemenAI::JustEngagedWith(), boss_kelthuzad::boss_kelthuzadAI::JustEngagedWith(), boss_warchief_kargath_bladefist::JustEngagedWith(), npc_lk_wicked_spirit::npc_lk_wicked_spiritAI::JustRespawned(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::JustSummoned(), boss_skeram::JustSummoned(), boss_majordomo::boss_majordomoAI::JustSummoned(), boss_selin_fireheart::boss_selin_fireheartAI::JustSummoned(), boss_hazzarah::JustSummoned(), boss_jindo::JustSummoned(), boss_baltharus_the_warborn::boss_baltharus_the_warbornAI::JustSummoned(), boss_novos::boss_novosAI::JustSummoned(), boss_bronjahm::boss_bronjahmAI::JustSummoned(), boss_drakkari_colossus::boss_drakkari_colossusAI::JustSummoned(), boss_prince_valanar_icc::boss_prince_valanarAI::JustSummoned(), boss_professor_putricide::boss_professor_putricideAI::JustSummoned(), boss_the_lich_king::boss_the_lich_kingAI::JustSummoned(), boss_illidan_stormrage::boss_illidan_stormrageAI::JustSummoned(), boss_reliquary_of_souls::boss_reliquary_of_soulsAI::JustSummoned(), npc_creature_generator_akama::npc_creature_generator_akamaAI::JustSummoned(), boss_ick::boss_ickAI::KilledUnit(), Pet::LoadPetFromDB(), npc_shattered_hand_scout::MoveInLineOfSight(), boss_ayamiss::MovementInform(), boss_bug_trio::MovementInform(), boss_grand_champion::boss_grand_championAI::MovementInform(), boss_eck::boss_eckAI::MovementInform(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::MovementInform(), boss_sister_svalna::boss_sister_svalnaAI::MovementInform(), boss_four_horsemen::boss_four_horsemenAI::MovementInform(), boss_volkhan::boss_volkhanAI::MovementInform(), boss_nazan::MovementInform(), boss_sindragosa::boss_sindragosaAI::MovementInform(), npc_rimefang::npc_rimefangAI::MovementInform(), boss_kaelthas::boss_kaelthasAI::MovementInform(), boss_jedoga_shadowseeker::MovementInform(), gunship_npc_AI::MovementInform(), npc_gunship_boarding_addAI::MovementInform(), npc_ball_of_flame::npc_ball_of_flameAI::MovementInform(), boss_warchief_kargath_bladefist::MovementInform(), boss_icehowl::boss_icehowlAI::MovementInform(), MotionMaster::MoveSeekAssistance(), npc_anubarak_spike::npc_anubarak_spikeAI::npc_anubarak_spikeAI(), npc_arcanite_dragonling::npc_arcanite_dragonling(), npc_argent_soldier::npc_argent_soldierAI::npc_argent_soldierAI(), npc_buru_egg::npc_buru_egg(), npc_chess_move_trigger::npc_chess_move_trigger(), npc_concentrated_ball::npc_concentrated_ballAI::npc_concentrated_ballAI(), npc_dark_iron_guzzler::npc_dark_iron_guzzler(), npc_eye_of_acherus::npc_eye_of_acherus(), npc_frost_freeze_trap::npc_frost_freeze_trapAI::npc_frost_freeze_trapAI(), npc_grand_magister_rommath::npc_grand_magister_rommathAI::npc_grand_magister_rommathAI(), npc_icc_ice_sphere::npc_icc_ice_sphereAI::npc_icc_ice_sphereAI(), npc_ice_tomb::npc_ice_tombAI::npc_ice_tombAI(), npc_koltira_deathweaver::npc_koltira_deathweaverAI::npc_koltira_deathweaverAI(), npc_living_constellation::npc_living_constellationAI::npc_living_constellationAI(), npc_lk_spirit_bomb::npc_lk_spirit_bombAI::npc_lk_spirit_bombAI(), npc_memory::npc_memoryAI::npc_memoryAI(), npc_nexus_lord::npc_nexus_lordAI::npc_nexus_lordAI(), npc_pet_gen_valkyr_guardian::npc_pet_gen_valkyr_guardian(), npc_pilgrims_bounty_chair::npc_pilgrims_bounty_chair(), npc_putricide_oozeAI::npc_putricide_oozeAI(), npc_q24545_vegard::npc_q24545_vegardAI::npc_q24545_vegardAI(), npc_saurfang_event::npc_saurfang_eventAI::npc_saurfang_eventAI(), npc_scarlet_miner::npc_scarlet_minerAI::npc_scarlet_minerAI(), npc_scion_of_eternity::npc_scion_of_eternityAI::npc_scion_of_eternityAI(), npc_snobold_vassal::npc_snobold_vassalAI::npc_snobold_vassalAI(), npc_suppresser::npc_suppresserAI::npc_suppresserAI(), npc_taldaram_flamesphere::npc_taldaram_flamesphere(), npc_the_lich_king_controller::npc_the_lich_king_controllerAI::npc_the_lich_king_controllerAI(), npc_toxic_slime::npc_toxic_slime(), npc_ulduar_expedition_commander::npc_ulduar_expedition_commanderAI::npc_ulduar_expedition_commanderAI(), npc_ulduar_hodir_druid::npc_ulduar_hodir_druidAI::npc_ulduar_hodir_druidAI(), npc_ulduar_hodir_mage::npc_ulduar_hodir_mageAI::npc_ulduar_hodir_mageAI(), npc_ulduar_hodir_priest::npc_ulduar_hodir_priestAI::npc_ulduar_hodir_priestAI(), npc_ulduar_hodir_shaman::npc_ulduar_hodir_shamanAI::npc_ulduar_hodir_shamanAI(), npc_unworthy_initiate::npc_unworthy_initiateAI::npc_unworthy_initiateAI(), npc_valkyr_shadowguard::npc_valkyr_shadowguardAI::npc_valkyr_shadowguardAI(), npc_zafod_boombox::npc_zafod_boomboxAI::npc_zafod_boomboxAI(), NullCreatureAI::NullCreatureAI(), spell_halion_twilight_phasing::spell_halion_twilight_phasing_AuraScript::OnApply(), instance_blackrock_depths::instance_blackrock_depths_InstanceMapScript::OnCreatureCreate(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::OnCreatureCreate(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::OnCreatureCreate(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnCreatureCreate(), spell_halion_twilight_phasing::spell_halion_twilight_phasing_AuraScript::OnRemove(), npc_ulduar_arachnopod_destroyer::npc_ulduar_arachnopod_destroyerAI::PassengerBoarded(), PassiveAI::PassiveAI(), boss_nefarian::PathEndReached(), boss_jeklik::PathEndReached(), PossessedAI::PossessedAI(), npc_dark_iron_attack_generator::PrepareEvent(), PretendToDie(), SmartScript::ProcessAction(), boss_lord_valthalak::boss_lord_valthalakAI::Reset(), boss_nefarian::Reset(), boss_vaelastrasz::boss_vaelAI::Reset(), boss_ragnaros::boss_ragnarosAI::Reset(), boss_mr_smite::boss_mr_smiteAI::Reset(), npc_chesspiece::Reset(), boss_midnight::Reset(), npc_crusade_persuaded::npc_crusade_persuadedAI::Reset(), boss_felmyst::boss_felmystAI::Reset(), boss_kalecgos::boss_kalecgosAI::Reset(), boss_muru::boss_muruAI::Reset(), boss_entropius::boss_entropiusAI::Reset(), boss_jeklik::Reset(), boss_renataki::boss_renatakiAI::Reset(), boss_thekal::boss_thekalAI::Reset(), boss_venoxis::boss_venoxisAI::Reset(), npc_brew_bubble::Reset(), npc_hallows_end_soh::Reset(), npc_love_in_air_snivel::Reset(), boss_archimonde::boss_archimondeAI::Reset(), boss_onyxia::Reset(), npc_belnistrasz::npc_belnistraszAI::Reset(), boss_ayamiss::Reset(), boss_eye_of_cthun::Reset(), boss_sartura::Reset(), npc_sartura_royal_guard::Reset(), boss_skeram::Reset(), npc_death_ravager::npc_death_ravagerAI::Reset(), npc_murkdeep::npc_murkdeepAI::Reset(), npc_troll_volunteer::npc_troll_volunteerAI::Reset(), npc_enraged_panther::npc_enraged_pantherAI::Reset(), npc_amanitar_mushrooms::Reset(), boss_jedoga_shadowseeker::Reset(), boss_halion::boss_halionAI::Reset(), boss_twilight_halion::boss_twilight_halionAI::Reset(), boss_saviana_ragefire::boss_saviana_ragefireAI::Reset(), boss_eadric::boss_eadricAI::Reset(), boss_paletress::boss_paletressAI::Reset(), boss_black_knight::boss_black_knightAI::Reset(), npc_toc5_player_vehicle::npc_toc5_player_vehicleAI::Reset(), boss_grand_champion::boss_grand_championAI::Reset(), boss_devourer_of_souls::boss_devourer_of_soulsAI::Reset(), boss_garfrost::boss_garfrostAI::Reset(), boss_ick::boss_ickAI::Reset(), boss_prince_keleseth_icc::boss_prince_kelesethAI::Reset(), boss_prince_taldaram_icc::boss_prince_taldaramAI::Reset(), boss_prince_valanar_icc::boss_prince_valanarAI::Reset(), npc_dark_nucleus::npc_dark_nucleusAI::Reset(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::Reset(), boss_deathbringer_saurfang::boss_deathbringer_saurfangAI::Reset(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfangAI::Reset(), npc_muradin_bronzebeard_icc::npc_muradin_bronzebeard_iccAI::Reset(), boss_lord_marrowgar::Reset(), boss_professor_putricide::boss_professor_putricideAI::Reset(), boss_sindragosa::boss_sindragosaAI::Reset(), npc_spinestalker::npc_spinestalkerAI::Reset(), npc_rimefang::npc_rimefangAI::Reset(), boss_the_lich_king::boss_the_lich_kingAI::Reset(), npc_tirion_fordring_tft::npc_tirion_fordringAI::Reset(), npc_lk_wicked_spirit::npc_lk_wicked_spiritAI::Reset(), npc_green_dragon_combat_trigger::npc_green_dragon_combat_triggerAI::Reset(), npc_crok_scourgebane::npc_crok_scourgebaneAI::Reset(), boss_sister_svalna::boss_sister_svalnaAI::Reset(), npc_impaling_spear::npc_impaling_spearAI::Reset(), boss_four_horsemen::boss_four_horsemenAI::Reset(), boss_gluth::boss_gluthAI::Reset(), boss_gothik::boss_gothikAI::Reset(), npc_boss_gothik_minion::npc_boss_gothik_minionAI::Reset(), boss_kelthuzad::boss_kelthuzadAI::Reset(), boss_noth::boss_nothAI::Reset(), boss_sapphiron::boss_sapphironAI::Reset(), npc_oculus_unstable_sphere::npc_oculus_unstable_sphereAI::Reset(), boss_volkhan::boss_volkhanAI::Reset(), brann_bronzebeard::brann_bronzebeardAI::Reset(), boss_algalon_the_observer::boss_algalon_the_observerAI::Reset(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::Reset(), npc_ulduar_iron_construct::npc_ulduar_iron_constructAI::Reset(), npc_ulduar_leviathan_mkii::npc_ulduar_leviathan_mkiiAI::Reset(), boss_thorim_sif::boss_thorim_sifAI::Reset(), npc_beryl_sorcerer::npc_beryl_sorcererAI::Reset(), npc_imprisoned_beryl_sorcerer::npc_imprisoned_beryl_sorcererAI::Reset(), npc_venture_co_straggler::npc_venture_co_stragglerAI::Reset(), npc_voidtraveler::Reset(), npc_akama_illidan::npc_akama_illidanAI::Reset(), boss_shade_of_akama::boss_shade_of_akamaAI::Reset(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::Reset(), boss_the_lurker_below::boss_the_lurker_belowAI::Reset(), boss_warlord_kalithresh::Reset(), boss_broggok::Reset(), boss_kelidan_the_breaker::Reset(), boss_vazruden_the_herald::Reset(), boss_magtheridon::Reset(), boss_alar::boss_alarAI::Reset(), npc_ancestral_wolf::npc_ancestral_wolfAI::Reset(), npc_wounded_blood_elf::npc_wounded_blood_elfAI::Reset(), npc_bessy::npc_bessyAI::Reset(), npc_pet_dk_ebon_gargoyle::npc_pet_dk_ebon_gargoyleAI::Reset(), emerald_dragonAI::Reset(), Resurrect(), boss_magtheridon::ScheduleCombatEvents(), Unit::SetCharmedBy(), npc_ulduar_leviathan_mkii::npc_ulduar_leviathan_mkiiAI::SetData(), npc_ulduar_aerial_command_unit::npc_ulduar_aerial_command_unitAI::SetData(), gunship_npc_AI::SetData(), npc_gunship_boarding_addAI::SetData(), CreatureAI::SetGazeOn(), BfGraveyard::SetSpirit(), npc_akama_illidan::npc_akama_illidanAI::sGossipSelect(), Battlefield::ShowNpc(), boss_viscidus::SoftReset(), npc_cult_fanatic::npc_cult_fanaticAI::SpellHit(), npc_cult_adherent::npc_cult_adherentAI::SpellHit(), npc_ulduar_iron_construct::npc_ulduar_iron_constructAI::SpellHit(), npc_ulduar_leviathan_mkii::npc_ulduar_leviathan_mkiiAI::SpellHit(), npc_ulduar_vx001::npc_ulduar_vx001AI::SpellHit(), npc_ulduar_aerial_command_unit::npc_ulduar_aerial_command_unitAI::SpellHit(), npc_crusade_persuaded::npc_crusade_persuadedAI::SpellHit(), npc_venture_co_straggler::npc_venture_co_stragglerAI::SpellHit(), boss_garfrost::boss_garfrostAI::SpellHitTarget(), boss_devourer_of_souls::boss_devourer_of_soulsAI::SpellHitTarget(), boss_ick::boss_ickAI::SpellHitTarget(), npc_wounded_blood_elf::npc_wounded_blood_elfAI::sQuestAccept(), boss_noth::boss_nothAI::StartBalconyPhase(), instance_violet_hold::instance_violet_hold_InstanceMapScript::StartBossEncounter(), boss_lord_valthalak::boss_lord_valthalakAI::StartFighting(), boss_heigan::boss_heiganAI::StartFightPhase(), boss_noth::boss_nothAI::StartGroundPhase(), boss_lord_valthalak::boss_lord_valthalakAI::StartTalking(), boss_ouro::Submerge(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::SummonedCreatureDies(), boss_jedoga_shadowseeker::SummonedCreatureDies(), boss_vaelastrasz::boss_vaelAI::UpdateAI(), boss_ragnaros::boss_ragnarosAI::UpdateAI(), boss_mr_smite::boss_mr_smiteAI::UpdateAI(), npc_scarlet_ghoul::npc_scarlet_ghoulAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), boss_kirtonos_the_herald::boss_kirtonos_the_heraldAI::UpdateAI(), boss_felmyst::boss_felmystAI::UpdateAI(), boss_kalecgos::boss_kalecgosAI::UpdateAI(), boss_kiljaeden::boss_kiljaedenAI::UpdateAI(), boss_entropius::boss_entropiusAI::UpdateAI(), boss_arlokk::boss_arlokkAI::UpdateAI(), boss_grilek::boss_grilekAI::UpdateAI(), boss_renataki::boss_renatakiAI::UpdateAI(), npc_hallows_end_soh::UpdateAI(), boss_archimonde::boss_archimondeAI::UpdateAI(), npc_arthas::npc_arthasAI::UpdateAI(), npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI::UpdateAI(), boss_onyxia::UpdateAI(), npc_belnistrasz::npc_belnistraszAI::UpdateAI(), boss_sartura::UpdateAI(), npc_sartura_royal_guard::UpdateAI(), boss_skeram::UpdateAI(), npc_murkdeep::npc_murkdeepAI::UpdateAI(), boss_halion::boss_halionAI::UpdateAI(), boss_saviana_ragefire::boss_saviana_ragefireAI::UpdateAI(), npc_memory::npc_memoryAI::UpdateAI(), boss_icehowl::boss_icehowlAI::UpdateAI(), boss_ick::boss_ickAI::UpdateAI(), boss_krick::boss_krickAI::UpdateAI(), npc_pos_tyrannus_events::npc_pos_tyrannus_eventsAI::UpdateAI(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::UpdateAI(), npc_cult_fanatic::npc_cult_fanaticAI::UpdateAI(), npc_cult_adherent::npc_cult_adherentAI::UpdateAI(), boss_lord_marrowgar::UpdateAI(), boss_professor_putricide::boss_professor_putricideAI::UpdateAI(), boss_sindragosa::boss_sindragosaAI::UpdateAI(), npc_rimefang::npc_rimefangAI::UpdateAI(), boss_the_lich_king::boss_the_lich_kingAI::UpdateAI(), npc_terenas_menethil::npc_terenas_menethilAI::UpdateAI(), boss_gothik::boss_gothikAI::UpdateAI(), boss_kelthuzad::boss_kelthuzadAI::UpdateAI(), boss_sapphiron::boss_sapphironAI::UpdateAI(), boss_thaddius::boss_thaddiusAI::UpdateAI(), npc_crystalline_frayer::npc_crystalline_frayerAI::UpdateAI(), boss_algalon_the_observer::boss_algalon_the_observerAI::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), npc_lurgglbr::npc_lurgglbrAI::UpdateAI(), npc_q24545_vegard::npc_q24545_vegardAI::UpdateAI(), boss_shade_of_akama::boss_shade_of_akamaAI::UpdateAI(), boss_lady_vashj::boss_lady_vashjAI::UpdateAI(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::UpdateAI(), boss_the_lurker_below::boss_the_lurker_belowAI::UpdateAI(), npc_millhouse_manastorm::npc_millhouse_manastormAI::UpdateAI(), boss_alar::boss_alarAI::UpdateAI(), boss_kaelthas::boss_kaelthasAI::UpdateAI(), boss_taerar::boss_taerarAI::UpdateAI(), CreatureAI::UpdateVictimWithGaze(), npc_akama_illidan::npc_akama_illidanAI::WaypointReached(), npc_arthas::npc_arthasAI::WaypointReached(), npc_general_andorov::WaypointReached(), and npc_apothecary_hanes::npc_Apothecary_HanesAI::WaypointReached().
|
inline |
References m_regenHealth.
Referenced by boss_yoggsaron_brain::boss_yoggsaron_brainAI::boss_yoggsaron_brainAI(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::DamageTaken(), boss_kiljaeden::boss_kiljaedenAI::DamageTaken(), boss_eadric::boss_eadricAI::DamageTaken(), boss_paletress::boss_paletressAI::DamageTaken(), boss_grand_champion::boss_grand_championAI::DamageTaken(), npc_crystalline_frayer::npc_crystalline_frayerAI::DamageTaken(), npc_ulduar_arachnopod_destroyer::npc_ulduar_arachnopod_destroyerAI::DamageTaken(), boss_mal_ganis::boss_mal_ganisAI::DamageTaken(), boss_yoggsaron_brain::boss_yoggsaron_brainAI::DamageTaken(), npc_twilight_volunteer::DoAction(), boss_grand_champion::boss_grand_championAI::DoAction(), gunship_npc_AI::gunship_npc_AI(), boss_drakkari_colossus::boss_drakkari_colossusAI::JustSummoned(), boss_grand_champion::boss_grand_championAI::MovementInform(), npc_wild_wyrm::npc_wild_wyrmAI::MovementInform(), npc_amanitar_mushrooms::npc_amanitar_mushrooms(), npc_gunship_boarding_addAI::npc_gunship_boarding_addAI(), npc_gunship::npc_gunshipAI::npc_gunshipAI(), npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::npc_high_overlord_saurfang_igbAI(), npc_muradin_bronzebeard_igb::npc_muradin_bronzebeard_igbAI::npc_muradin_bronzebeard_igbAI(), npc_bh_thalorien_dawnseeker::npc_bh_thalorien_dawnseekerAI::Reset(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::Reset(), npc_ulduar_vx001::npc_ulduar_vx001AI::Reset(), npc_blessed_banner::npc_blessed_bannerAI::Reset(), npc_wild_wyrm::npc_wild_wyrmAI::Reset(), npc_bh_thalorien_dawnseeker::npc_bh_thalorien_dawnseekerAI::SetData(), boss_kalecgos::boss_kalecgosAI::UpdateAI(), npc_crystalline_frayer::npc_crystalline_frayerAI::UpdateAI(), and boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI().
|
inline |
|
inline |
References m_respawnDelay.
Referenced by BattlegroundAV::AddAVCreature(), Battleground::AddCreature(), npc_the_scourge_cauldron::npc_the_scourge_cauldronAI::DoDie(), npc_commandscript::HandleNpcSetSpawnTimeCommand(), and ValithriaDespawner::operator()().
void Creature::SetRespawnTime | ( | uint32 | respawn | ) |
References GameTime::GetGameTime(), and m_respawnTime.
Referenced by OPvPCapturePoint::DelCreature(), boss_razorgore::boss_razorgoreAI::JustDied(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::JustDied(), boss_azuregos::boss_azuregosAI::JustDied(), npc_medivh_bm::JustDied(), boss_prince_keleseth_icc::boss_prince_kelesethAI::JustDied(), boss_prince_taldaram_icc::boss_prince_taldaramAI::JustDied(), boss_prince_valanar_icc::boss_prince_valanarAI::JustDied(), npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI::JustDied(), npc_simone::npc_simoneAI::JustDied(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::npc_highlord_darion_mograineAI(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::OnCreatureCreate(), FrostwingGauntletRespawner::operator()(), ValithriaDespawner::operator()(), npc_varian_wrynn::npc_varian_wrynnAI::Reset(), npc_jaina_proudmoore_bfu::npc_jaina_proudmoore_bfuAI::Reset(), npc_thrall_bfu::npc_thrall_bfuAI::Reset(), npc_lady_sylvanas_windrunner_bfu::npc_lady_sylvanas_windrunner_bfuAI::Reset(), and Update().
|
overridevirtual |
Reimplemented from Unit.
References Object::GetPackGUID(), WorldObject::SendMessageToSet(), Unit::SetSwim(), SMSG_SPLINE_MOVE_START_SWIM, and SMSG_SPLINE_MOVE_STOP_SWIM.
Referenced by npc_depth_charge::npc_depth_chargeAI::Reset(), SmartAI::SetSwim(), npc_rizzle_sprysprocket::npc_rizzle_sprysprocketAI::UpdateAI(), and UpdateMovementFlags().
|
overridevirtual |
Implements Unit.
References _focusSpell, Object::SetGuidValue(), and UNIT_FIELD_TARGET.
Referenced by boss_malygos::boss_malygosAI::AttackStart(), boss_garfrost::boss_garfrostAI::DamageTaken(), boss_kiljaeden::boss_kiljaedenAI::DamageTaken(), ConfusedMovementGenerator< T >::DoFinalize(), boss_ouro::Emerge(), RestoreAttack::Execute(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::HandleAnimation(), boss_kelthuzad::boss_kelthuzadAI::JustEngagedWith(), boss_illidan_stormrage::boss_illidan_stormrageAI::JustSummoned(), boss_bug_trio::MovementInform(), boss_essence_of_suffering::boss_essence_of_sufferingAI::MovementInform(), boss_essence_of_desire::boss_essence_of_desireAI::MovementInform(), boss_mr_smite::boss_mr_smiteAI::MovementInform(), boss_felmyst::boss_felmystAI::MovementInform(), boss_kaelthas::boss_kaelthasAI::MovementInform(), npc_arthas::OnGossipSelect(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::Reset(), setDeathState(), npc_harrison_jones::npc_harrison_jonesAI::SpellHit(), boss_razorscale::boss_razorscaleAI::SpellHit(), boss_garfrost::boss_garfrostAI::SpellHitTarget(), boss_mr_smite::boss_mr_smiteAI::UpdateAI(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI(), npc_madrigosa::npc_madrigosaAI::UpdateAI(), boss_felmyst::boss_felmystAI::UpdateAI(), boss_kiljaeden::boss_kiljaedenAI::UpdateAI(), npc_varian_wrynn::npc_varian_wrynnAI::UpdateAI(), npc_arthas::npc_arthasAI::UpdateAI(), boss_cthun::UpdateAI(), boss_malygos::boss_malygosAI::UpdateAI(), boss_illidan_stormrage::boss_illidan_stormrageAI::UpdateAI(), boss_the_lurker_below::boss_the_lurker_belowAI::UpdateAI(), and boss_kaelthas::boss_kaelthasAI::UpdateAI().
|
inline |
References m_transportHomePosition, and Position::Relocate().
|
inline |
|
overridevirtual |
Reimplemented from Unit.
References Object::GetPackGUID(), WorldObject::SendMessageToSet(), Unit::SetWalk(), SMSG_SPLINE_MOVE_SET_RUN_MODE, and SMSG_SPLINE_MOVE_SET_WALK_MODE.
Referenced by boss_the_lich_king::boss_the_lich_kingAI::DamageTaken(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::DestroyDoor(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfangAI::DoAction(), npc_muradin_bronzebeard_icc::npc_muradin_bronzebeard_iccAI::DoAction(), npc_saurfang_event::npc_saurfang_eventAI::DoAction(), npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::DoAction(), npc_muradin_bronzebeard_igb::npc_muradin_bronzebeard_igbAI::DoAction(), npc_brann_bronzebeard_algalon::npc_brann_bronzebeard_algalonAI::DoAction(), npc_scarlet_miner_cart::npc_scarlet_miner_cartAI::DoAction(), WaypointMovementGenerator< Creature >::DoFinalize(), RandomMovementGenerator< T >::DoFinalize(), ChaseMovementGenerator< T >::DoInitialize(), UtherBatteredHiltEvent::Execute(), npc_lord_arete::npc_lord_areteAI::InitializeAI(), npc_lk_spirit_bomb::npc_lk_spirit_bombAI::IsSummonedBy(), npc_strangulate_vehicle::npc_strangulate_vehicleAI::IsSummonedBy(), npc_icc_vengeful_fleshreaper::npc_icc_vengeful_fleshreaperAI::JustReachedHome(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::JustRespawned(), npc_eris_hevenfire::npc_eris_hevenfireAI::JustSummoned(), npc_kalecgos_kj::npc_kalecgos_kjAI::JustSummoned(), npc_icc_gauntlet_controller::npc_icc_gauntlet_controllerAI::JustSummoned(), npc_tirions_gambit_tirion::npc_tirions_gambit_tirionAI::JustSummoned(), npc_akama_shade::npc_akamaAI::JustSummoned(), boss_fathomlord_karathress::boss_fathomlord_karathressAI::JustSummoned(), boss_lady_vashj::boss_lady_vashjAI::JustSummoned(), npc_rinji::npc_rinjiAI::JustSummoned(), npc_maghar_captive::npc_maghar_captiveAI::JustSummoned(), npc_brann_bronzebeard_algalon::npc_brann_bronzebeard_algalonAI::MovementInform(), boss_mandokir::boss_mandokirAI::MovementInform(), boss_captain_skarloc::MovementInform(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfangAI::MovementInform(), npc_muradin_bronzebeard_icc::npc_muradin_bronzebeard_iccAI::MovementInform(), npc_thassarian2::npc_thassarian2AI::MovementInform(), boss_kaelthas::boss_kaelthasAI::MovementInform(), npc_escortAI::MovementInform(), npc_cameron::MoveTheChildren(), npc_hor_leader_second::npc_hor_leader_secondAI::MoveToNextStopPoint(), npc_marzon_silent_blade::npc_marzon_silent_bladeAI::npc_marzon_silent_bladeAI(), npc_valkyr_shadowguard::npc_valkyr_shadowguardAI::npc_valkyr_shadowguardAI(), SmartAI::OnCharmed(), npc_chesspiece::OnCharmed(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnCreatureCreate(), npc_chesspiece::Reset(), boss_nightbane::Reset(), npc_janalai_hatcher::npc_janalai_hatcherAI::Reset(), boss_nalorakk::boss_nalorakkAI::Reset(), boss_arlokk::boss_arlokkAI::Reset(), npc_dark_iron_guzzler::Reset(), npc_kinetic_bomb::npc_kinetic_bombAI::Reset(), npc_icc_vengeful_fleshreaper::npc_icc_vengeful_fleshreaperAI::Reset(), npc_xt002_scrapbot::npc_xt002_scrapbotAI::Reset(), npc_injured_7th_legion_soldier::npc_injured_7th_legion_soldierAI::Reset(), npc_q24545_lich_king::npc_q24545_lich_kingAI::Reset(), npc_plaguehound_tracker::npc_plaguehound_trackerAI::Reset(), boss_shade_of_akama::boss_shade_of_akamaAI::Reset(), boss_kaelthas::boss_kaelthasAI::Reset(), SmartAI::ReturnToLastOOCPos(), npc_escortAI::ReturnToLastPoint(), npc_dream_fog::npc_dream_fogAI::ScheduleEvents(), npc_escortAI::SetRun(), SmartAI::SetRun(), npc_tirion_fordring_tft::npc_tirion_fordringAI::sGossipSelect(), npc_injured_patient::npc_injured_patientAI::SpellHit(), npc_escortAI::Start(), hyjalAI::SummonCreature(), boss_majordomo::boss_majordomoAI::UpdateAI(), npc_scarlet_courier::npc_scarlet_courierAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::UpdateAI(), boss_kirtonos_the_herald::boss_kirtonos_the_heraldAI::UpdateAI(), npc_bh_thalorien_dawnseeker::npc_bh_thalorien_dawnseekerAI::UpdateAI(), npc_grand_magister_rommath::npc_grand_magister_rommathAI::UpdateAI(), boss_arlokk::boss_arlokkAI::UpdateAI(), npc_twilight_volunteer::UpdateAI(), npc_xerestrasza::npc_xerestraszaAI::UpdateAI(), npc_hor_leader_second::npc_hor_leader_secondAI::UpdateAI(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfangAI::UpdateAI(), npc_muradin_bronzebeard_icc::npc_muradin_bronzebeard_iccAI::UpdateAI(), npc_tirion_fordring_tft::npc_tirion_fordringAI::UpdateAI(), npc_oculus_drakegiver::npc_oculus_drakegiverAI::UpdateAI(), boss_svala::boss_svalaAI::UpdateAI(), npc_thassarian2::npc_thassarian2AI::UpdateAI(), npc_shandy_dalaran::npc_shandy_dalaranAI::UpdateAI(), npc_commander_eligor_dawnbringer::npc_commander_eligor_dawnbringerAI::UpdateAI(), npc_crusade_recruit::npc_crusade_recruitAI::UpdateAI(), boss_shade_of_akama::boss_shade_of_akamaAI::UpdateAI(), npc_akama_shade::npc_akamaAI::UpdateAI(), boss_kaelthas::boss_kaelthasAI::UpdateAI(), npc_dragonmaw_peon::npc_dragonmaw_peonAI::UpdateAI(), npc_ranger_lilatha::WaypointReached(), npc_corporal_keeshan::npc_corporal_keeshanAI::WaypointReached(), npc_emily::npc_emilyAI::WaypointReached(), and npc_isla_starmane::npc_isla_starmaneAI::WaypointReached().
|
inline |
References m_wanderDistance.
Referenced by npc_commandscript::HandleNpcSetWanderDistanceCommand().
|
overridevirtual |
movement counter
Reimplemented from Unit.
References Unit::BuildMovementPacket(), Object::GetPackGUID(), WorldPacket::Initialize(), Unit::m_movedByPlayer, MSG_MOVE_WATER_WALK, Player::SendDirectMessage(), WorldObject::SendMessageToSet(), Player::SendMessageToSet(), Unit::SetWaterWalking(), SMSG_MOVE_LAND_WALK, SMSG_MOVE_WATER_WALK, SMSG_SPLINE_MOVE_LAND_WALK, SMSG_SPLINE_MOVE_WATER_WALK, and Object::ToPlayer().
|
overridevirtual |
Reimplemented from WorldObject.
Reimplemented in Pet, TempSummon, Puppet, and Totem.
References Transport::AddPassenger(), AI(), ALIVE, CallAssistance(), CanNotReachTarget(), CanPeriodicallyCallForAssistance(), CreatureAI::CanRespawn(), CreatureAI::CheckInRoom(), CONDITION_SOURCE_TYPE_CREATURE_RESPAWN, CONFIG_CREATURE_FAMILY_ASSISTANCE_PERIOD, CONFIG_NPC_EVADE_IF_NOT_REACHABLE, CONFIG_REGEN_HP_CANNOT_REACH_TARGET_IN_RAID, CORPSE, CREATURE_FLAG_EXTRA_HARD_RESET, CREATURE_REGEN_INTERVAL, DAY, DEAD, CreatureAI::DoZoneInCombat(), Group::EndRoll(), CreatureAI::EVADE_REASON_NO_PATH, Unit::GetCharmerOrOwner(), Unit::GetCollisionRadius(), GetDebugInfo(), Object::GetEntry(), GameTime::GetGameTime(), Object::GetGUID(), Map::GetLinkedRespawnTime(), WorldObject::GetMap(), Unit::GetOwnerGUID(), WorldObject::GetPhaseMask(), ObjectAccessor::GetPlayer(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::getPowerType(), ThreatMgr::GetThreatListSize(), Unit::GetThreatMgr(), WorldObject::GetTransport(), Map::GetTransportForPos(), Object::GetUInt32Value(), Unit::GetVictim(), WorldObject::GetVisibilityRange(), CreatureTemplate::HasFlagsExtra(), Unit::i_AI, CreatureData::id1, IN_MILLISECONDS, Unit::IsAIEnabled, Unit::IsAlive(), Unit::IsCharmed(), Unit::IsDuringRemoveFromWorld(), Unit::IsEngaged(), Unit::IsEngagedBy(), Unit::IsInCombat(), Position::IsInDist(), IsInEvadeMode(), Object::IsInWorld(), IsNotReachableAndNeedRegen(), Object::IsPlayer(), Unit::IsPolymorphed(), WorldObject::IsWithinDistInMap(), JUST_DIED, JUST_RESPAWNED, CreatureAI::JustRespawned(), LOG_DEBUG, LOG_ERROR, loot, lootingGroupLowGUID, m_AI_locked, m_assistanceTimer, m_boundaryCheckTime, m_cannotReachTarget, m_cannotReachTimer, m_combatPulseDelay, m_combatPulseTime, m_corpseRemoveTime, m_creatureData, Unit::m_deathState, m_groupLootTimer, m_moveBackwardsMovementTime, m_moveCircleMovementTime, Unit::m_regenTimer, m_respawnDelay, m_respawnTime, m_spawnId, m_transportCheckTimer, Unit::m_vehicleKit, MINUTE, MOVE_BACKWARDS_CHECK_INTERVAL, MOVE_CIRCLE_CHECK_INTERVAL, CreatureAI::MoveBackwardsChecks(), CreatureAI::MoveCircleChecks(), Unit::NeedChangeAI, OBJECT_FIELD_ENTRY, POWER_ENERGY, POWER_MANA, Regenerate(), RegenerateHealth(), Unit::RemoveCharmAuras(), RemoveCorpse(), Transport::RemovePassenger(), Vehicle::Reset(), Respawn(), SaveRespawnTime(), sConditionMgr, SelectVictim(), SetCannotReachTarget(), SetInCombatWithZone(), SetNoCallAssistance(), SetRespawnTime(), sGroupMgr, sObjectMgr, sScriptMgr, Unit::StopMovingOnCurrentPos(), sWorld, Position::ToString(), TriggerJustRespawned, Unit::Update(), UnitAI::UpdateAI(), Unit::UpdateCharmAI(), and urand().
Referenced by Pet::Update(), TempSummon::Update(), Puppet::Update(), and Totem::Update().
|
overridevirtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
References MAX_POWERS, POWER_MANA, Unit::UpdateAllResistances(), UpdateAttackPowerAndDamage(), UpdateMaxHealth(), and UpdateMaxPower().
Referenced by UpdateEntry().
|
overridevirtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
References Unit::GetTotalAuraModValue(), Unit::SetArmor(), and UNIT_MOD_ARMOR.
Referenced by UpdateResistances().
|
overridevirtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
References BASE_ATTACK, BASE_PCT, BASE_VALUE, Unit::GetModifierValue(), OFF_ATTACK, RANGED_ATTACK, Object::SetFloatValue(), Object::SetInt32Value(), TOTAL_PCT, TOTAL_VALUE, UNIT_FIELD_ATTACK_POWER, UNIT_FIELD_ATTACK_POWER_MODS, UNIT_FIELD_ATTACK_POWER_MULTIPLIER, UNIT_FIELD_RANGED_ATTACK_POWER, UNIT_FIELD_RANGED_ATTACK_POWER_MODS, UNIT_FIELD_RANGED_ATTACK_POWER_MULTIPLIER, UNIT_MOD_ATTACK_POWER, UNIT_MOD_ATTACK_POWER_RANGED, and Unit::UpdateDamagePhysical().
Referenced by UpdateAllStats().
|
inline |
bool Creature::UpdateEntry | ( | uint32 | entry, |
const CreatureData * | data = nullptr , |
||
bool | changelevel = true , |
||
bool | updateAI = false |
||
) |
References _playerDamageReq, AIM_Initialize(), Unit::ApplySpellImmune(), BASE_ATTACK, BASE_VALUE, CreatureTemplate::BaseAttackTime, ObjectMgr::ChooseCreatureFlags(), CREATURE_FLAG_EXTRA_NO_TAUNT, CREATURE_FLAG_EXTRA_WORLDEVENT, CreatureTemplate::detection_range, CreatureTemplate::dmgschool, Entry, CreatureTemplate::faction, FACTION_TEMPLATE_FLAG_ASSIST_PLAYERS, CreatureTemplate::flags_extra, CreatureBaseStats::GenerateArmor(), Unit::GetCharmerOrOwnerPlayerOrPlayerItself(), GetCreatureAddon(), GetCreatureTemplate(), Unit::GetHealth(), Unit::GetLevel(), Unit::GetMaxHealth(), GetMovementTemplate(), IMMUNITY_EFFECT, IMMUNITY_STATE, InitEntry(), InitializeReactState(), Unit::IsInCombat(), Unit::IsPet(), IsTrigger(), Unit::IsVehicle(), LoadSpellTemplateImmunity(), m_regenHealth, OFF_ATTACK, CreatureTemplate::RangeAttackTime, RANGED_ATTACK, CreatureTemplate::RegenHealth, Unit::ReplaceAllDynamicFlags(), Unit::ReplaceAllNpcFlags(), Unit::ReplaceAllUnitFlags(), Unit::ReplaceAllUnitFlags2(), CreatureTemplate::resistance, SelectLevel(), Unit::SetAttackTime(), Unit::SetCanModifyStats(), Unit::SetControlled(), SetDetectionDistance(), Unit::SetFaction(), Unit::SetHealth(), SetMeleeDamageSchool(), Unit::SetModifierValue(), Unit::SetPvP(), Unit::SetSheath(), Unit::SetUnitFlag(), sFactionTemplateStore, sGameEventMgr, SHEATH_STATE_MELEE, sObjectMgr, 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::unit_class, UNIT_FLAG_IN_COMBAT, UNIT_FLAG_NOT_SELECTABLE, CreatureTemplate::unit_flags2, UNIT_MOD_ARMOR, UNIT_MOD_RESISTANCE_ARCANE, UNIT_MOD_RESISTANCE_FIRE, UNIT_MOD_RESISTANCE_FROST, UNIT_MOD_RESISTANCE_HOLY, UNIT_MOD_RESISTANCE_NATURE, UNIT_MOD_RESISTANCE_SHADOW, UNIT_STATE_ROOT, and UpdateAllStats().
Referenced by CreateFromProto(), boss_yoggsaron_influence_tentacle::boss_yoggsaron_influence_tentacleAI::DamageTaken(), npc_molten_golem::npc_molten_golemAI::DamageTaken(), npc_forest_frog::npc_forest_frogAI::DoSpawnRandom(), npc_commandscript::HandleNpcSetEntryCommand(), npc_isle_of_conquest_turret::npc_isle_of_conquest_turretAI::JustDied(), npc_scholomance_occultist::npc_scholomance_occultistAI::JustReachedHome(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::JustRespawned(), boss_yoggsaron_brain::boss_yoggsaron_brainAI::JustSummoned(), instance_trial_of_the_champion::instance_trial_of_the_champion_InstanceMapScript::OnCreatureCreate(), instance_forge_of_souls::instance_forge_of_souls_InstanceScript::OnCreatureCreate(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::OnCreatureCreate(), instance_pit_of_saron::instance_pit_of_saron_InstanceScript::OnCreatureCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), instance_nexus::instance_nexus_InstanceMapScript::OnCreatureCreate(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::OnCreatureCreate(), npc_announcer_toc5::npc_announcer_toc5AI::Reset(), npc_phase_hunter::npc_phase_hunterAI::Reset(), Respawn(), NPCStaveQuestAI::RevealForm(), npc_time_lost_proto_drake::npc_time_lost_proto_drakeAI::RollPath(), npc_cult_fanatic::npc_cult_fanaticAI::SpellHit(), npc_cult_adherent::npc_cult_adherentAI::SpellHit(), npc_argent_captainAI::SpellHit(), npc_isle_of_conquest_turret::npc_isle_of_conquest_turretAI::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_nether_drake::npc_nether_drakeAI::SpellHit(), npc_scholomance_occultist::npc_scholomance_occultistAI::UpdateAI(), npc_cult_fanatic::npc_cult_fanaticAI::UpdateAI(), npc_cult_adherent::npc_cult_adherentAI::UpdateAI(), boss_svala::boss_svalaAI::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), and npc_tyrion_spybot::npc_tyrion_spybotAI::UpdateAI().
|
overridevirtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
References Unit::GetTotalAuraModValue(), Unit::SetMaxHealth(), and UNIT_MOD_HEALTH.
Referenced by UpdateAllStats().
|
overridevirtual |
Implements Unit.
Reimplemented in Guardian, and Totem.
References Unit::GetTotalAuraModValue(), Unit::SetMaxPower(), and UNIT_MOD_POWER_START.
Referenced by UpdateAllStats().
void Creature::UpdateMoveInLineOfSightState | ( | ) |
References CREATURE_TYPE_NON_COMBAT_PET, GetAIName(), Unit::GetCreatureType(), Unit::GetFaction(), GetScriptId(), Unit::HasUnitTypeMask(), IsCivilian(), Unit::IsCritter(), Unit::IsPet(), IsTrigger(), m_moveInLineOfSightDisabled, m_moveInLineOfSightStrictlyDisabled, sFactionTemplateStore, UNIT_MASK_CONTROLABLE_GUARDIAN, UNIT_MASK_GUARDIAN, UNIT_MASK_MINION, and UNIT_MASK_SUMMON.
Referenced by Unit::SetFaction().
void Creature::UpdateMovementFlags | ( | ) |
References CanHover(), CanSwim(), CREATURE_FLAG_EXTRA_NO_MOVE_FLAGS_UPDATE, LiquidData::DepthLevel, CreatureTemplate::flags_extra, CreatureMovementData::Flight, Unit::GetCollisionHeight(), GetCreatureTemplate(), Object::GetFloatValue(), WorldObject::GetFloorZ(), WorldObject::GetLiquidData(), GetMovementTemplate(), Position::GetPositionZ(), GROUND_HEIGHT_TOLERANCE, Unit::HasAuraType(), Unit::IsAlive(), Unit::IsFalling(), CreatureMovementData::IsFlightAllowed(), LIQUID_MAP_IN_WATER, LIQUID_MAP_UNDER_WATER, LIQUID_MAP_WATER_WALK, Unit::m_movedByPlayer, MOVEMENTFLAG_FALLING, Unit::RemoveUnitMovementFlag(), SetCanFly(), SetDisableGravity(), SetHover(), SetSwim(), SPELL_AURA_HOVER, LiquidData::Status, and UNIT_FIELD_HOVERHEIGHT.
Referenced by Create(), Unit::ProcessTerrainStatusUpdate(), and setDeathState().
|
overridevirtual |
Implements Unit.
Reimplemented in Totem.
References Unit::GetTotalAuraModValue(), Unit::SetResistance(), SPELL_SCHOOL_NORMAL, UNIT_MOD_RESISTANCE_START, and UpdateArmor().
|
overridevirtual |
uint32 Creature::UpdateVendorItemCurrentCount | ( | VendorItem const * | vItem, |
uint32 | used_count | ||
) |
References ItemTemplate::BuyCount, VendorItemCount::count, GameTime::GetGameTime(), VendorItem::incrtime, VendorItem::item, VendorItemCount::lastIncrementTime, m_vendorItemCounts, VendorItem::maxcount, and sObjectMgr.
Referenced by Player::_StoreOrEquipNewItem().
|
inline |
References m_waypointID.
Referenced by wp_commandscript::HandleWpUnLoadCommand(), and WaypointMovementGenerator< Creature >::OnArrived().
|
private |
Referenced by IsDamageEnoughForLootingAndReward(), LowerPlayerDamageReq(), and ResetPlayerDamageReq().
|
private |
Referenced by Creature(), FocusTarget(), ReleaseFocus(), and SetTarget().
|
private |
Locks the target during spell cast for proper facing
Referenced by HasSwimmingFlagOutOfCombat(), and RefreshSwimmingFlag().
|
mutableprivate |
Referenced by GetLastDamagedTime(), GetLastDamagedTimePtr(), setDeathState(), SetLastDamagedTime(), and SetLastDamagedTimePtr().
|
private |
struct { ... } Creature::_spellFocusInfo |
Referenced by HasSpellFocus().
uint32 Creature::Delay = 0 |
|
protected |
Referenced by Creature(), IsReputationGainDisabled(), and SetDisableReputationGain().
Loot Creature::loot |
Referenced by AddToWorld(), AllLootRemovedFromCorpse(), Spell::CheckCast(), NPCStaveQuestAI::ClearLootIfUnfair(), boss_high_king_maulgar::DoAction(), WorldSession::DoLootRelease(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), Player::isAllowedToLoot(), Unit::Kill(), RemoveCorpse(), Respawn(), Player::SendLoot(), Group::SendLooter(), boss_priestess_delrissa::boss_priestess_delrissaAI::SummonedCreatureDies(), and Update().
|
protected |
Referenced by CanGeneratePickPocketLoot(), ResetPickPocketLootTime(), and SetPickPocketLootTime().
|
protected |
Referenced by AIM_Initialize(), and Update().
|
protected |
Referenced by CallAssistance(), and SetNoCallAssistance().
|
protected |
Referenced by HasSearchedAssistance(), and SetNoSearchAssistance().
|
private |
Referenced by SetAssistanceTimer(), and Update().
|
protected |
Referenced by DoImmediateBoundaryCheck(), and Update().
|
private |
Referenced by CanNotReachTarget(), SetCannotReachTarget(), and Update().
|
private |
Referenced by IsNotReachableAndNeedRegen(), SetCannotReachTarget(), and Update().
float Creature::m_CombatDistance |
Referenced by ArcherAI::ArcherAI(), ArcherAI::AttackStart(), boss_fankriss::boss_fankriss(), boss_huhuran::boss_huhuran(), boss_viscidus::boss_viscidus(), TurretAI::CanAIAttack(), WorldObject::CanDetectStealthOf(), CanStartAttack(), Creature(), boss_kurinnaxx::InitializeAI(), boss_moam::InitializeAI(), boss_sartura::InitializeAI(), npc_gunship_boarding_addAI::npc_gunship_boarding_addAI(), npc_gunship_gunner::npc_gunship_gunnerAI::npc_gunship_gunnerAI(), npc_gunship_mage::npc_gunship_mageAI::npc_gunship_mageAI(), npc_gunship_rocketeer::npc_gunship_rocketeerAI::npc_gunship_rocketeerAI(), npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::npc_high_overlord_saurfang_igbAI(), npc_muradin_bronzebeard_igb::npc_muradin_bronzebeard_igbAI::npc_muradin_bronzebeard_igbAI(), TurretAI::TurretAI(), and HostileReference::updateOnlineStatus().
|
protected |
Referenced by GetCombatPulseDelay(), SetCombatPulseDelay(), and Update().
|
protected |
Referenced by SetCombatPulseDelay(), and Update().
|
protected |
Referenced by Create(), GetCorpseDelay(), SetCorpseDelay(), and setDeathState().
|
protected |
Timers.
Referenced by AllLootRemovedFromCorpse(), IsInvisibleDueToDespawn(), RemoveCorpse(), SetCorpseRemoveTime(), setDeathState(), Pet::Update(), and Update().
|
protected |
Referenced by GetCreatureData(), isVendorWithIconSpeak(), LoadCreatureFromDB(), SaveRespawnTime(), and Update().
|
protected |
CreatureSpellCooldowns Creature::m_CreatureSpellCooldowns |
|
protected |
Referenced by GetDefaultMovementType(), InitEntry(), LoadCreatureFromDB(), Respawn(), and SetDefaultMovementType().
|
protected |
Referenced by GetDetectionRange(), and SetDetectionDistance().
|
protected |
Referenced by GetCurrentEquipmentId(), LoadEquipment(), and SetCurrentEquipmentId().
|
private |
Referenced by GetFormation(), Motion_Initialize(), RemoveFromWorld(), setDeathState(), and SetFormation().
|
protected |
Referenced by CanCreatureAttack(), GetHomePosition(), and SetHomePosition().
bool Creature::m_isTempWorldObject |
Referenced by Creature(), and Map::SwitchGridContainers().
|
protected |
Referenced by AddLootMode(), GetLootMode(), HasLootMode(), RemoveLootMode(), ResetLootMode(), and SetLootMode().
|
protected |
Referenced by GetLootRecipient(), GetLootRecipientGUID(), hasLootRecipient(), isTappedBy(), and SetLootRecipient().
|
protected |
Referenced by GetLootRecipientGroup(), GetLootRecipientGroupGUID(), hasLootRecipient(), and SetLootRecipient().
|
protected |
Referenced by GetMeleeDamageSchoolMask(), and SetMeleeDamageSchool().
uint32 Creature::m_moveBackwardsMovementTime = MOVE_BACKWARDS_CHECK_INTERVAL |
Referenced by Update().
uint32 Creature::m_moveCircleMovementTime = MOVE_CIRCLE_CHECK_INTERVAL |
Referenced by Update().
|
protected |
Referenced by IsMoveInLineOfSightDisabled(), and UpdateMoveInLineOfSightState().
|
protected |
Referenced by IsMoveInLineOfSightStrictlyDisabled(), and UpdateMoveInLineOfSightState().
|
protected |
Referenced by Pet::Create(), GetOriginalEntry(), Respawn(), and SetOriginalEntry().
|
protected |
Referenced by GetOriginalEquipmentId(), and InitEntry().
|
private |
Referenced by GetWaypointPath(), LoadCreaturesAddon(), and LoadPath().
uint32 Creature::m_ProhibitSchoolTime[7] |
Referenced by Creature(), IsSpellProhibited(), and ProhibitSpellSchool().
|
protected |
Referenced by GetReactState(), HasReactState(), and SetReactState().
|
protected |
Referenced by isRegeneratingHealth(), LoadCreatureFromDB(), SetRegeneratingHealth(), and UpdateEntry().
|
protected |
Referenced by Regenerate(), and SetRegeneratingPower().
|
protected |
Referenced by ForcedDespawn(), GetRespawnDelay(), LoadCreatureFromDB(), RemoveCorpse(), SaveToDB(), setDeathState(), SetRespawnDelay(), and Update().
|
protected |
Referenced by CanCreatureAttack(), Creature(), and Respawn().
|
protected |
float Creature::m_SightDistance |
Referenced by ArcherAI::ArcherAI(), boss_anub_arak::boss_anub_arakAI::boss_anub_arakAI(), boss_anubarak_trial::boss_anubarak_trialAI::boss_anubarak_trialAI(), boss_eye_of_cthun::boss_eye_of_cthun(), boss_thorngrin_the_tender::boss_thorngrin_the_tender(), Creature(), WorldObject::GetGridActivationRange(), WorldObject::GetSightRange(), boss_sartura::InitializeAI(), npc_blood_queen_lana_thel::npc_blood_queen_lana_thelAI::npc_blood_queen_lana_thelAI(), npc_icc_nerubar_broodkeeper::npc_icc_nerubar_broodkeeperAI::npc_icc_nerubar_broodkeeperAI(), and TurretAI::TurretAI().
|
protected |
For new or temporary creatures is 0 for saved it is lowguid.
Referenced by AddToWorld(), AIM_Initialize(), Pet::Create(), DeleteFromDB(), GetCreatureAddon(), GetMovementTemplate(), GetRespawnPosition(), GetSpawnId(), LoadCreatureFromDB(), RemoveFromWorld(), Respawn(), SaveRespawnTime(), SaveToDB(), and Update().
uint32 Creature::m_spells[MAX_CREATURE_SPELLS] |
Referenced by ArcherAI::ArcherAI(), Creature(), Totem::GetSpell(), spell_q13007_iron_colossus::spell_q13007_iron_colossus_SpellScript::HandleDummy(), HasSpell(), CharmInfo::InitCharmCreateSpells(), InitEntry(), CombatAI::InitializeAI(), CharmInfo::InitPossessCreateSpells(), TempSummon::InitStats(), TriggerAI::IsSummonedBy(), boss_maexxna_webwrap::boss_maexxna_webwrapAI::JustDied(), trigger_death::trigger_deathAI::JustDied(), boss_jindo::JustSummoned(), npc_chesspiece::OnCharmed(), TriggerAI::Permissible(), reachWithSpellAttack(), reachWithSpellCure(), ScriptedAI::SelectSpell(), boss_maexxna_webwrap::boss_maexxna_webwrapAI::SetGUID(), npc_oculus_drake::npc_oculus_drakeAI::SpellHitTarget(), trigger_periodic::trigger_periodicAI::trigger_periodicAI(), TurretAI::TurretAI(), ArcherAI::UpdateAI(), TurretAI::UpdateAI(), npc_oculus_drake::npc_oculus_drakeAI::UpdateAI(), npc_pet_gen_gnomish_flame_turret::UpdateAI(), and Player::VehicleSpellInitialize().
|
protected |
Referenced by GetTransportHomePosition(), and SetTransportHomePosition().
|
protected |
Referenced by GetVendorItemCurrentCount(), UpdateVendorItemCurrentCount(), and ~Creature().
|
protected |
Referenced by GetWanderDistance(), InitEntry(), LoadCreatureFromDB(), SaveToDB(), and SetWanderDistance().
|
private |
Referenced by GetCurrentWaypointID(), and UpdateWaypointID().
|
staticconstexpr |
Referenced by Update().
|
staticconstexpr |
Referenced by Update().
float Creature::Orientation = 0.0f |
::Spell const* Creature::Spell = nullptr |
ObjectGuid Creature::Target |
|
private |
Referenced by Creature(), Respawn(), and Update().