Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
hyjalAI Struct Reference

#include <hyjalAI.h>

Inheritance diagram for hyjalAI:
Collaboration diagram for hyjalAI:

Classes

struct  Spell

Public Member Functions

void DeSpawnVeins ()
void DoOverrun (uint32 faction, const uint32 diff)
void EnterCombat (Unit *)
void EnterEvadeMode ()
uint32 GetInstanceData (uint32 Event)
void HideNearPos (float x, float y)
 hyjalAI (Creature *creature)
void JustDied (Unit *)
void JustSummoned (Creature *summoned)
void MoveInLineOfSight (Unit *who)
void Reset ()
void RespawnNearPos (float x, float y)
void Retreat ()
void SetFaction (uint32 _faction)
void SpawnVeins ()
void StartEvent (Player *player)
void SummonCreature (uint32 entry, float Base[4][3])
void SummonedCreatureDespawn (Creature *summoned)
void SummonNextWave (const Wave wave[18], uint32 Count, float Base[4][3])
void UpdateAI (uint32 diff)
 == Triggered Actions Requested ==================
void WaypointReached (uint32 waypointId)
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

uint64 BossGUID [2]
bool bRetreat
uint32 CheckTimer
bool Debug
bool DoHide
bool DoMassTeleport
bool DoRespawn
uint64 DummyGuid
uint32 EnemyCount
bool EventBegun
uint32 Faction
bool FirstBossDead
uint8 InfernalCount
uint32 InfernalPoint
InstanceScript * instance
bool IsDummy
uint32 MassTeleportTimer
uint32 NextWaveTimer
bool Overrun
uint32 OverrunCounter
uint32 OverrunCounter2
uint64 PlayerGUID
uint32 RespawnTimer
uint32 RetreatTimer
bool SecondBossDead
struct hyjalAI::Spell Spells [HYJAL_AI_MAX_SPELLS]
bool Summon
SummonList Summons
bool Teleported
uint32 TeleportTimer
uint64 VeinGUID [14]
bool VeinsSpawned [2]
bool WaitForTeleport
uint32 WaveCount
Public Attributes inherited from ScriptedAI
bool IsFleeing
Creature * me

Private Attributes

uint32 SpellTimer [3]

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 105 of file hyjalAI.h.

Constructor & Destructor Documentation

◆ hyjalAI()

Member Function Documentation

◆ DeSpawnVeins()

void hyjalAI::DeSpawnVeins ( )

◆ DoOverrun()

◆ EnterCombat()

void hyjalAI::EnterCombat ( Unit * )
virtual

Reimplemented from CreatureAI.

Definition at line 417 of file hyjalAI.cpp.

References ATTACKED, HYJAL_AI_MAX_SPELLS, IsDummy, Spells, SpellTimer, and CreatureAI::Talk().

◆ EnterEvadeMode()

void hyjalAI::EnterEvadeMode ( )
virtual

Reimplemented from CreatureAI.

Definition at line 403 of file hyjalAI.cpp.

References JAINA, and ScriptedAI::me.

Referenced by npc_jaina_proudmoore::GetAI(), npc_thrall::GetAI(), and npc_tyrande_whisperwind::GetAI().

◆ GetInstanceData()

uint32 hyjalAI::GetInstanceData ( uint32 Event)

◆ HideNearPos()

void hyjalAI::HideNearPos ( float x,
float y )

Definition at line 900 of file hyjalAI.cpp.

References Skyfire::ComputeCellCoord(), ScriptedAI::me, Cell::SetNoCreate(), and Cell::Visit().

Referenced by UpdateAI().

◆ JustDied()

◆ JustSummoned()

void hyjalAI::JustSummoned ( Creature * summoned)
virtual

Reimplemented from CreatureAI.

Definition at line 327 of file hyjalAI.cpp.

References Summons.

◆ MoveInLineOfSight()

void hyjalAI::MoveInLineOfSight ( Unit * who)
virtual

Reimplemented from CreatureAI.

Definition at line 427 of file hyjalAI.cpp.

References IsDummy, and npc_escortAI::MoveInLineOfSight().

◆ Reset()

◆ RespawnNearPos()

void hyjalAI::RespawnNearPos ( float x,
float y )

Definition at line 924 of file hyjalAI.cpp.

References Skyfire::ComputeCellCoord(), ScriptedAI::me, Cell::SetNoCreate(), and Cell::Visit().

Referenced by UpdateAI().

◆ Retreat()

◆ SetFaction()

void hyjalAI::SetFaction ( uint32 _faction)
inline

Definition at line 119 of file hyjalAI.h.

References Faction.

◆ SpawnVeins()

void hyjalAI::SpawnVeins ( )

Definition at line 642 of file hyjalAI.cpp.

References Faction, Object::GetGUID(), GO_ANCIENT_VEIN, ScriptedAI::me, VeinGUID, VeinPos, and VeinsSpawned.

Referenced by Retreat().

◆ StartEvent()

◆ SummonCreature()

◆ SummonedCreatureDespawn()

void hyjalAI::SummonedCreatureDespawn ( Creature * summoned)
virtual

Reimplemented from CreatureAI.

Definition at line 332 of file hyjalAI.cpp.

References Summons.

◆ SummonNextWave()

◆ UpdateAI()

◆ WaypointReached()

Member Data Documentation

◆ BossGUID

uint64 hyjalAI::BossGUID[2]

Definition at line 149 of file hyjalAI.h.

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

◆ bRetreat

bool hyjalAI::bRetreat

Definition at line 163 of file hyjalAI.h.

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

◆ CheckTimer

uint32 hyjalAI::CheckTimer

Definition at line 154 of file hyjalAI.h.

Referenced by Reset(), StartEvent(), SummonCreature(), SummonNextWave(), and UpdateAI().

◆ Debug

bool hyjalAI::Debug

◆ DoHide

bool hyjalAI::DoHide

Definition at line 177 of file hyjalAI.h.

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

◆ DoMassTeleport

bool hyjalAI::DoMassTeleport

Definition at line 180 of file hyjalAI.h.

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

◆ DoRespawn

bool hyjalAI::DoRespawn

Definition at line 176 of file hyjalAI.h.

Referenced by hyjalAI(), JustDied(), and UpdateAI().

◆ DummyGuid

uint64 hyjalAI::DummyGuid

Definition at line 181 of file hyjalAI.h.

Referenced by Retreat(), and WaypointReached().

◆ EnemyCount

uint32 hyjalAI::EnemyCount

Definition at line 156 of file hyjalAI.h.

Referenced by Reset(), SummonCreature(), SummonNextWave(), and UpdateAI().

◆ EventBegun

bool hyjalAI::EventBegun

◆ Faction

uint32 hyjalAI::Faction

Definition at line 155 of file hyjalAI.h.

Referenced by DeSpawnVeins(), DoOverrun(), Reset(), Retreat(), SetFaction(), SpawnVeins(), and UpdateAI().

◆ FirstBossDead

bool hyjalAI::FirstBossDead

◆ InfernalCount

uint8 hyjalAI::InfernalCount

Definition at line 166 of file hyjalAI.h.

Referenced by hyjalAI(), SummonCreature(), and SummonNextWave().

◆ InfernalPoint

uint32 hyjalAI::InfernalPoint

Definition at line 174 of file hyjalAI.h.

Referenced by hyjalAI().

◆ instance

◆ IsDummy

bool hyjalAI::IsDummy

Definition at line 178 of file hyjalAI.h.

Referenced by EnterCombat(), JustDied(), MoveInLineOfSight(), Reset(), StartEvent(), and UpdateAI().

◆ MassTeleportTimer

uint32 hyjalAI::MassTeleportTimer

Definition at line 179 of file hyjalAI.h.

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

◆ NextWaveTimer

uint32 hyjalAI::NextWaveTimer

Definition at line 152 of file hyjalAI.h.

Referenced by Reset(), StartEvent(), SummonNextWave(), and UpdateAI().

◆ Overrun

bool hyjalAI::Overrun

Definition at line 168 of file hyjalAI.h.

Referenced by DoOverrun(), hyjalAI(), Retreat(), and UpdateAI().

◆ OverrunCounter

uint32 hyjalAI::OverrunCounter

Definition at line 172 of file hyjalAI.h.

Referenced by hyjalAI().

◆ OverrunCounter2

uint32 hyjalAI::OverrunCounter2

Definition at line 173 of file hyjalAI.h.

Referenced by hyjalAI().

◆ PlayerGUID

uint64 hyjalAI::PlayerGUID

Definition at line 148 of file hyjalAI.h.

Referenced by Reset(), and StartEvent().

◆ RespawnTimer

uint32 hyjalAI::RespawnTimer

Definition at line 175 of file hyjalAI.h.

Referenced by hyjalAI(), JustDied(), and UpdateAI().

◆ RetreatTimer

uint32 hyjalAI::RetreatTimer

Definition at line 157 of file hyjalAI.h.

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

◆ SecondBossDead

bool hyjalAI::SecondBossDead

Definition at line 161 of file hyjalAI.h.

Referenced by Reset(), and UpdateAI().

◆ Spells

◆ SpellTimer

uint32 hyjalAI::SpellTimer[3]
private

Definition at line 191 of file hyjalAI.h.

Referenced by EnterCombat(), and UpdateAI().

◆ Summon

bool hyjalAI::Summon

Definition at line 162 of file hyjalAI.h.

Referenced by Reset(), StartEvent(), SummonNextWave(), and UpdateAI().

◆ Summons

SummonList hyjalAI::Summons

Definition at line 167 of file hyjalAI.h.

Referenced by hyjalAI(), JustDied(), JustSummoned(), and SummonedCreatureDespawn().

◆ Teleported

bool hyjalAI::Teleported

Definition at line 169 of file hyjalAI.h.

Referenced by DoOverrun(), and hyjalAI().

◆ TeleportTimer

uint32 hyjalAI::TeleportTimer

Definition at line 171 of file hyjalAI.h.

Referenced by DoOverrun(), hyjalAI(), and WaypointReached().

◆ VeinGUID

uint64 hyjalAI::VeinGUID[14]

Definition at line 150 of file hyjalAI.h.

Referenced by DeSpawnVeins(), hyjalAI(), and SpawnVeins().

◆ VeinsSpawned

bool hyjalAI::VeinsSpawned[2]

Definition at line 165 of file hyjalAI.h.

Referenced by hyjalAI(), and SpawnVeins().

◆ WaitForTeleport

bool hyjalAI::WaitForTeleport

Definition at line 170 of file hyjalAI.h.

Referenced by DoOverrun(), hyjalAI(), and WaypointReached().

◆ WaveCount

uint32 hyjalAI::WaveCount

The documentation for this struct was generated from the following files:
  • src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/hyjalAI.h
  • src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/hyjalAI.cpp