Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
npc_arthas::npc_arthasAI Struct Reference
Inheritance diagram for npc_arthas::npc_arthasAI:
Collaboration diagram for npc_arthas::npc_arthasAI:

Public Member Functions

void EnterCombat (Unit *) OVERRIDE
void JumpToNextStep (uint32 uiTimer)
void JustDied (Unit *) OVERRIDE
 npc_arthasAI (Creature *creature)
void Reset () OVERRIDE
void SetHoldState (bool bOnHold)
void SpawnTimeRift (uint32 timeRiftID, uint64 *guidVector)
void SpawnWaveGroup (uint32 waveID, uint64 *guidVector)
void UpdateAI (uint32 diff) OVERRIDE
 == Triggered Actions Requested ==================
void WaypointReached (uint32 waypointId) OVERRIDE
Public Member Functions inherited from npc_escortAI
void AddWaypoint (uint32 id, float x, float y, float z, uint32 waitTime=0)
void AttackStart (Unit *who) OVERRIDE
void EnterEvadeMode () OVERRIDE
bool GetAttack () const
uint64 GetEventStarterGUID () const
float GetMaxPlayerDistance () const
bool GetWaypointPosition (uint32 pointId, float &x, float &y, float &z)
bool HasEscortState (uint32 escortState) const
virtual bool IsEscorted () OVERRIDE
void JustDied (Unit *) OVERRIDE
void JustRespawned () OVERRIDE
void MoveInLineOfSight (Unit *who) OVERRIDE
void MovementInform (uint32, uint32) OVERRIDE
 npc_escortAI (Creature *creature)
void ReturnToLastPoint ()
void SetCanAttack (bool attack)
void SetDespawnAtEnd (bool despawn)
void SetDespawnAtFar (bool despawn)
void SetEscortPaused (bool on)
void SetMaxPlayerDistance (float newMax)
bool SetNextWaypoint (uint32 pointId, bool setPosition=true, bool resetWaypointsOnFail=true)
bool SetNextWaypoint (uint32 pointId, float x, float y, float z, float orientation)
void SetRun (bool on=true)
void Start (bool isActiveAttacker=true, bool run=false, uint64 playerGUID=0, Quest const *quest=NULL, bool instantRespawn=false, bool canLoopPath=false, bool resetWaypoints=true)
void UpdateAI (uint32 diff) OVERRIDE
 == Triggered Actions Requested ==================
virtual void UpdateEscortAI (uint32 const diff)
virtual void WaypointStart (uint32)
 ~npc_escortAI ()
Public Member Functions inherited from ScriptedAI
void AttackStart (Unit *) OVERRIDE
void AttackStartNoMove (Unit *target)
void DamageTaken (Unit *, uint32 &) OVERRIDE
void DoCastSpell (Unit *target, SpellInfo const *spellInfo, bool triggered=false)
std::list< Creature * > DoFindFriendlyCC (float range)
std::list< Creature * > DoFindFriendlyMissingBuff (float range, uint32 spellId)
float DoGetThreat (Unit *unit)
void DoModifyThreatPercent (Unit *unit, int32 pct)
void DoPlaySoundToSet (WorldObject *source, uint32 soundId)
void DoResetThreat ()
Unit * DoSelectLowestHpFriendly (float range, uint32 minHPDiff=1)
Creature * DoSpawnCreature (uint32 entry, float offsetX, float offsetY, float offsetZ, float angle, TempSummonType type, uint32 despawntime)
void DoStartMovement (Unit *target, float distance=0.0f, float angle=0.0f)
void DoStartNoMovement (Unit *target)
void DoStopAttack ()
void DoTeleportAll (float x, float y, float z, float o)
void DoTeleportPlayer (Unit *unit, float x, float y, float z, float o)
void DoTeleportTo (float const pos[4])
void DoTeleportTo (float x, float y, float z, uint32 time=0)
template<class T>
const T & DUNGEON_MODE (const T &normal5, const T &heroic5) const
void EnterCombat (Unit *) OVERRIDE
bool EnterEvadeIfOutOfCombatArea (uint32 const diff)
void ExecuteEvent (uint32) OVERRIDE
DifficultyID GetDifficulty () const
Player * GetPlayerAtMinimumRange (float minRange)
bool HealthAbovePct (uint32 pct) const
bool HealthBelowPct (uint32 pct) const
bool Is25ManRaid () const
bool IsCombatMovementAllowed () const
bool IsHeroic () const
void JustDied (Unit *) OVERRIDE
void JustSummoned (Creature *) OVERRIDE
void KilledUnit (Unit *) OVERRIDE
void MovementInform (uint32, uint32) OVERRIDE
void OnPossess (bool)
template<class T>
const T & RAID_MODE (const T &normal10, const T &normal25) const
template<class T>
const T & RAID_MODE (const T &normal10, const T &normal25, const T &flex, const T &lfr) const
template<class T>
const T & RAID_MODE (const T &normal10, const T &normal25, const T &heroic10, const T &heroic25, const T &flex, const T &lfr) const
void Reset () OVERRIDE
 ScriptedAI (Creature *creature)
SpellInfo const * SelectSpell (Unit *target, uint32 school, uint32 mechanic, SelectTargetType targets, uint32 powerCostMin, uint32 powerCostMax, float rangeMin, float rangeMax, SelectEffect effect)
void SetCombatMovement (bool allowMovement)
void SetEquipmentSlots (bool loadDefault, int32 mainHand=EQUIP_NO_CHANGE, int32 offHand=EQUIP_NO_CHANGE, int32 ranged=EQUIP_NO_CHANGE)
void SpellHit (Unit *, SpellInfo const *) OVERRIDE
void SpellHitTarget (Unit *, SpellInfo const *) OVERRIDE
void SummonedCreatureDespawn (Creature *) OVERRIDE
void UpdateAI (uint32 diff) OVERRIDE
 == Triggered Actions Requested ==================
virtual ~ScriptedAI ()
Public Member Functions inherited from CreatureAI
virtual void AttackedBy (Unit *)
virtual bool CanRespawn ()
virtual bool CanSeeAlways (WorldObject const *)
bool CanSeeEvenInPassiveMode () const
virtual void CorpseRemoved (uint32 &)
 == State checks =================================
 CreatureAI (Creature *creature)
void DoZoneInCombat (Creature *creature=NULL, float maxRangeToNearestTarget=50.0f)
virtual void IsSummonedBy (Unit *)
virtual void JustReachedHome ()
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At =================================
void OnCharmed (bool apply)
virtual void OnSpellClick (Unit *, bool &)
virtual void OwnerAttacked (Unit *)
virtual void OwnerAttackedBy (Unit *)
virtual void PassengerBoarded (Unit *, int8, bool)
 == Fields =======================================
virtual void ReceiveEmote (Player *, uint32)
void SetCanSeeEvenInPassiveMode (bool canSeeEvenInPassiveMode)
virtual void SummonedCreatureDies (Creature *, Unit *)
void Talk (uint8 id, WorldObject const *whisperTarget=NULL)
virtual ~CreatureAI ()
Public Member Functions inherited from UnitAI
void AttackStartCaster (Unit *victim, float dist)
virtual bool CanAIAttack (Unit const *) const
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType)
virtual void DoAction (int32)
void DoAddAuraToAllHostilePlayers (uint32 spellid)
void DoCast (uint32 spellId)
void DoCast (Unit *victim, uint32 spellId, bool triggered=false)
void DoCastAOE (uint32 spellId, bool triggered=false)
void DoCastToAllHostilePlayers (uint32 spellid, bool triggered=false)
void DoCastVictim (uint32 spellId, bool triggered=false)
float DoGetSpellMaxRange (uint32 spellId, bool positive=false)
void DoMeleeAttackIfReady ()
bool DoSpellAttackIfReady (uint32 spell)
virtual uint32 GetData (uint32) const
virtual uint64 GetGUID (int32=0) const
virtual void HealDone (Unit *, uint32 &)
virtual void HealReceived (Unit *, uint32 &)
virtual void InitializeAI ()
virtual bool OnGossipHello (Player *player)
template<class PREDICATE>
Unit * SelectTarget (SelectAggroTarget targetType, uint32 position, PREDICATE const &predicate)
Unit * SelectTarget (SelectAggroTarget targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, int32 aura=0)
template<class PREDICATE>
void SelectTargetList (std::list< Unit * > &targetList, PREDICATE const &predicate, uint32 maxTargets, SelectAggroTarget targetType)
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectAggroTarget targetType, float dist=0.0f, bool playerOnly=false, int32 aura=0)
virtual void SetData (uint32, uint32)
virtual void SetGUID (uint64, int32=0)
virtual void sGossipHello (Player *)
virtual void sGossipSelect (Player *, uint32, uint32)
virtual void sGossipSelectCode (Player *, uint32, uint32, char const *)
virtual bool sOnDummyEffect (Unit *, uint32, SpellEffIndex)
virtual void sOnGameEvent (bool, uint16)
virtual void SpellInterrupted (uint32, uint32)
virtual void sQuestAccept (Player *, Quest const *)
virtual void sQuestComplete (Player *, Quest const *)
virtual void sQuestReward (Player *, Quest const *, uint32)
virtual void sQuestSelect (Player *, Quest const *)
 UnitAI (Unit *unit)
virtual ~UnitAI ()

Public Attributes

uint32 bossEvent
uint64 bossGUID
bool bStepping
uint64 citymenGUID [2]
uint64 epochGUID
uint32 exorcismTimer
uint32 gossipStep
uint64 infiniteDraconianGUID [ENCOUNTER_DRACONIAN_NUMBER]
uint64 infiniteGUID
InstanceScript * instance
uint64 jainaGUID
uint64 malganisGUID
uint32 phaseTimer
uint32 playerFaction
uint64 stalkerGUID
uint32 step
uint64 utherGUID
uint32 wave
uint64 waveGUID [ENCOUNTER_WAVES_MAX_SPAWNS]
Public Attributes inherited from ScriptedAI
bool IsFleeing
Creature * me

Additional Inherited Members

Static Public Member Functions inherited from UnitAI
static void FillAISpellInfo ()
Static Public Attributes inherited from UnitAI
static AISpellInfoType * AISpellInfo
Protected Member Functions inherited from npc_escortAI
Player * GetPlayerForEscort ()
Protected Member Functions inherited from CreatureAI
bool _EnterEvadeMode ()
Creature * DoSummon (uint32 entry, Position const &pos, uint32 despawnTime=30000, TempSummonType summonType=TempSummonType::TEMPSUMMON_CORPSE_TIMED_DESPAWN)
Creature * DoSummon (uint32 entry, WorldObject *obj, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TempSummonType::TEMPSUMMON_CORPSE_TIMED_DESPAWN)
Creature * DoSummonFlyer (uint32 entry, WorldObject *obj, float flightZ, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TempSummonType::TEMPSUMMON_CORPSE_TIMED_DESPAWN)
void SetGazeOn (Unit *target)
bool UpdateVictim ()
bool UpdateVictimWithGaze ()
Protected Attributes inherited from CreatureAI
Creature *const me
Protected Attributes inherited from UnitAI
Unit *const me

Detailed Description

Definition at line 338 of file culling_of_stratholme.cpp.

Constructor & Destructor Documentation

◆ npc_arthasAI()

npc_arthas::npc_arthasAI::npc_arthasAI ( Creature * creature)
inline

Member Function Documentation

◆ EnterCombat()

void npc_arthas::npc_arthasAI::EnterCombat ( Unit * )
inlinevirtual

Reimplemented from CreatureAI.

Definition at line 408 of file culling_of_stratholme.cpp.

References UnitAI::DoCast(), ScriptedAI::me, OVERRIDE, and SPELL_ARTHAS_AURA.

◆ JumpToNextStep()

void npc_arthas::npc_arthasAI::JumpToNextStep ( uint32 uiTimer)
inline

Definition at line 455 of file culling_of_stratholme.cpp.

References phaseTimer, and step.

Referenced by UpdateAI().

◆ JustDied()

void npc_arthas::npc_arthasAI::JustDied ( Unit * )
inlinevirtual

Reimplemented from CreatureAI.

Definition at line 413 of file culling_of_stratholme.cpp.

References DATA_ARTHAS_EVENT, FAIL, instance, and OVERRIDE.

◆ Reset()

◆ SetHoldState()

void npc_arthas::npc_arthasAI::SetHoldState ( bool bOnHold)
inline

◆ SpawnTimeRift()

◆ SpawnWaveGroup()

void npc_arthas::npc_arthasAI::SpawnWaveGroup ( uint32 waveID,
uint64 * guidVector )
inline

◆ UpdateAI()

void npc_arthas::npc_arthasAI::UpdateAI ( uint32 diff)
inlinevirtual

== Triggered Actions Requested ==================

Reimplemented from CreatureAI.

Definition at line 580 of file culling_of_stratholme.cpp.

References bossEvent, bossGUID, bStepping, citymenGUID, DATA_ARTHAS_EVENT, DATA_EPOCH_EVENT, DATA_MAL_GANIS_EVENT, DATA_MAL_GANIS_GATE_1, DATA_MAL_GANIS_GATE_2, DATA_MEATHOOK_EVENT, DATA_SALRAMM_EVENT, UnitAI::DoCast(), UnitAI::DoMeleeAttackIfReady(), DONE, ENCOUNTER_DRACONIAN_NUMBER, ENCOUNTER_WAVES_MAX_SPAWNS, npc_escortAI::EnterEvadeMode(), epochGUID, exorcismTimer, FAIL, GetClosestCreatureWithEntry(), Unit::GetCreature(), Object::GetGUID(), GO_STATE_ACTIVE, gossipStep, ScriptedAI::HealthBelowPct(), IN_PROGRESS, infiniteDraconianGUID, instance, Unit::isDead(), jainaGUID, JumpToNextStep(), malganisGUID, ScriptedAI::me, NPC_CITY_MAN, NPC_CITY_MAN2, NPC_INFINITE_ADVERSARY, NPC_INFINITE_AGENT, NPC_INFINITE_HUNTER, NPC_INVIS_TARGET, NPC_JAINA, NPC_MAL_GANIS, NPC_MEATHOOK, NPC_SALRAMM, NPC_UTHER, NPC_ZOMBIE, OVERRIDE, phaseTimer, REACT_AGGRESSIVE, REACT_DEFENSIVE, REACT_PASSIVE, SAY_PHASE101, SAY_PHASE102, SAY_PHASE103, SAY_PHASE104, SAY_PHASE105, SAY_PHASE106, SAY_PHASE107, SAY_PHASE108, SAY_PHASE109, SAY_PHASE110, SAY_PHASE111, SAY_PHASE112, SAY_PHASE113, SAY_PHASE114, SAY_PHASE115, SAY_PHASE116, SAY_PHASE117, SAY_PHASE118, SAY_PHASE201, SAY_PHASE202, SAY_PHASE203, SAY_PHASE204, SAY_PHASE205, SAY_PHASE206, SAY_PHASE207, SAY_PHASE208, SAY_PHASE209, SAY_PHASE302, SAY_PHASE303, SAY_PHASE304, SAY_PHASE305, SAY_PHASE308, SAY_PHASE310, SAY_PHASE312, SAY_PHASE313, SAY_PHASE314, SAY_PHASE315, SAY_PHASE404, SAY_PHASE501, SAY_PHASE502, SAY_PHASE503, SAY_PHASE504, SELECT_TARGET_RANDOM, UnitAI::SelectTarget(), npc_escortAI::SetDespawnAtFar(), npc_escortAI::SetEscortPaused(), SetHoldState(), npc_escortAI::SetRun(), SpawnTimeRift(), SpawnWaveGroup(), SPELL_EXORCISM_N, SPELL_HOLY_LIGHT, stalkerGUID, step, CreatureAI::Talk(), TEMPSUMMON_DEAD_DESPAWN, TEMPSUMMON_TIMED_DESPAWN, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, UNIT_FIELD_FLAGS, UNIT_FIELD_NPC_FLAGS, UNIT_FLAG_IMMUNE_TO_NPC, UNIT_FLAG_IMMUNE_TO_PC, UNIT_FLAG_NON_ATTACKABLE, UNIT_FLAG_UNK_15, UNIT_FLAG_UNK_6, UNIT_NPC_FLAG_GOSSIP, npc_escortAI::UpdateAI(), Creature::UpdateEntry(), utherGUID, wave, and waveGUID.

◆ WaypointReached()

Member Data Documentation

◆ bossEvent

uint32 npc_arthas::npc_arthasAI::bossEvent

Definition at line 353 of file culling_of_stratholme.cpp.

Referenced by Reset(), and UpdateAI().

◆ bossGUID

uint64 npc_arthas::npc_arthasAI::bossGUID

Definition at line 363 of file culling_of_stratholme.cpp.

Referenced by Reset(), and UpdateAI().

◆ bStepping

bool npc_arthas::npc_arthasAI::bStepping

◆ citymenGUID

uint64 npc_arthas::npc_arthasAI::citymenGUID[2]

Definition at line 358 of file culling_of_stratholme.cpp.

Referenced by Reset(), UpdateAI(), and WaypointReached().

◆ epochGUID

uint64 npc_arthas::npc_arthasAI::epochGUID

Definition at line 364 of file culling_of_stratholme.cpp.

Referenced by Reset(), SpawnTimeRift(), and UpdateAI().

◆ exorcismTimer

uint32 npc_arthas::npc_arthasAI::exorcismTimer

Definition at line 368 of file culling_of_stratholme.cpp.

Referenced by Reset(), and UpdateAI().

◆ gossipStep

uint32 npc_arthas::npc_arthasAI::gossipStep

◆ infiniteDraconianGUID

uint64 npc_arthas::npc_arthasAI::infiniteDraconianGUID[ENCOUNTER_DRACONIAN_NUMBER]

Definition at line 360 of file culling_of_stratholme.cpp.

Referenced by Reset(), UpdateAI(), and WaypointReached().

◆ infiniteGUID

uint64 npc_arthas::npc_arthasAI::infiniteGUID

Definition at line 366 of file culling_of_stratholme.cpp.

Referenced by Reset().

◆ instance

InstanceScript* npc_arthas::npc_arthasAI::instance

Definition at line 346 of file culling_of_stratholme.cpp.

Referenced by JustDied(), npc_arthasAI(), Reset(), UpdateAI(), and WaypointReached().

◆ jainaGUID

uint64 npc_arthas::npc_arthasAI::jainaGUID

Definition at line 357 of file culling_of_stratholme.cpp.

Referenced by Reset(), and UpdateAI().

◆ malganisGUID

uint64 npc_arthas::npc_arthasAI::malganisGUID

Definition at line 365 of file culling_of_stratholme.cpp.

Referenced by Reset(), and UpdateAI().

◆ phaseTimer

uint32 npc_arthas::npc_arthasAI::phaseTimer

Definition at line 350 of file culling_of_stratholme.cpp.

Referenced by JumpToNextStep(), Reset(), and UpdateAI().

◆ playerFaction

uint32 npc_arthas::npc_arthasAI::playerFaction

Definition at line 352 of file culling_of_stratholme.cpp.

◆ stalkerGUID

uint64 npc_arthas::npc_arthasAI::stalkerGUID

Definition at line 361 of file culling_of_stratholme.cpp.

Referenced by Reset(), and UpdateAI().

◆ step

uint32 npc_arthas::npc_arthasAI::step

◆ utherGUID

uint64 npc_arthas::npc_arthasAI::utherGUID

Definition at line 356 of file culling_of_stratholme.cpp.

Referenced by Reset(), and UpdateAI().

◆ wave

uint32 npc_arthas::npc_arthasAI::wave

Definition at line 354 of file culling_of_stratholme.cpp.

Referenced by Reset(), and UpdateAI().

◆ waveGUID

uint64 npc_arthas::npc_arthasAI::waveGUID[ENCOUNTER_WAVES_MAX_SPAWNS]

Definition at line 359 of file culling_of_stratholme.cpp.

Referenced by Reset(), and UpdateAI().


The documentation for this struct was generated from the following file: