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

Public Member Functions

void AttackStart (Unit *target) OVERRIDE
 boss_malygosAI (Creature *creature)
void DoAction (int32 action) OVERRIDE
void EnterCombat (Unit *) OVERRIDE
void EnterEvadeMode () OVERRIDE
uint32 GetData (uint32 data) const OVERRIDE
uint64 GetGUID (int32 type) const OVERRIDE
void JustDied (Unit *) OVERRIDE
void KilledUnit (Unit *victim) OVERRIDE
void MoveInLineOfSight (Unit *who) OVERRIDE
void MovementInform (uint32 type, uint32 id) OVERRIDE
void Reset () OVERRIDE
void SetData (uint32 data, uint32 value) OVERRIDE
void SetGUID (uint64 guid, int32 type) OVERRIDE
void SetPhase (uint8 phase, bool setEvents=false)
void SetPhaseEvents ()
void SpellHit (Unit *caster, SpellInfo const *spell) OVERRIDE
void UpdateAI (uint32 diff) OVERRIDE
 == Triggered Actions Requested ==================
Public Member Functions inherited from BossAI
 BossAI (Creature *creature, uint32 bossId)
void EnterCombat (Unit *) OVERRIDE
void ExecuteEvent (uint32) OVERRIDE
BossBoundaryMap const * GetBoundary () const
void JustDied (Unit *) OVERRIDE
void JustReachedHome () OVERRIDE
void JustSummoned (Creature *summon) OVERRIDE
void Reset () OVERRIDE
void SummonedCreatureDespawn (Creature *summon) OVERRIDE
void UpdateAI (uint32 diff) OVERRIDE
 == Triggered Actions Requested ==================
virtual ~BossAI ()
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 ()
UnitDoSelectLowestHpFriendly (float range, uint32 minHPDiff=1)
CreatureDoSpawnCreature (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
PlayerGetPlayerAtMinimumRange (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 bool IsEscorted ()
virtual void IsSummonedBy (Unit *)
virtual void JustRespawned ()
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)
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 void HealDone (Unit *, uint32 &)
virtual void HealReceived (Unit *, uint32 &)
virtual void InitializeAI ()
virtual bool OnGossipHello (Player *player)
template<class PREDICATE>
UnitSelectTarget (SelectAggroTarget targetType, uint32 position, PREDICATE const &predicate)
UnitSelectTarget (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 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 ()

Private Member Functions

void FillCirclePath (Position const &centerPos, float radius, float z, Movement::PointsArray &path, bool clockwise)
void SendLightOverride (uint32 overrideId, uint32 fadeInTime) const
void SendPacketToPlayers (WorldPacket const *data) const

Private Attributes

uint64 _arcaneOverloadGUID
bool _arcaneReinforcements
bool _canAttack
bool _despawned
bool _executingVortex
bool _firstCyclicMovementStarted
bool _flyingOutOfPlatform
float _flySpeed
bool _killSpamFilter
uint64 _lastHitByArcaneBarrageGUID
bool _performingDestroyPlatform
bool _performingSurgeOfPower
uint8 _phase
uint8 _preparingPulsesChecker
uint8 _summonDeaths
uint64 _surgeTargetGUID [3]

Additional Inherited Members

Static Public Member Functions inherited from UnitAI
static void FillAISpellInfo ()
Public Attributes inherited from BossAI
InstanceScript *const instance
Public Attributes inherited from ScriptedAI
bool IsFleeing
Creatureme
Static Public Attributes inherited from UnitAI
static AISpellInfoTypeAISpellInfo
Protected Member Functions inherited from BossAI
void _DespawnAtEvade ()
void _EnterCombat ()
void _JustDied ()
void _JustReachedHome ()
void _Reset ()
bool CheckBoundary (Unit *who)
bool CheckInRoom ()
void TeleportCheaters ()
Protected Member Functions inherited from CreatureAI
bool _EnterEvadeMode ()
CreatureDoSummon (uint32 entry, Position const &pos, uint32 despawnTime=30000, TempSummonType summonType=TempSummonType::TEMPSUMMON_CORPSE_TIMED_DESPAWN)
CreatureDoSummon (uint32 entry, WorldObject *obj, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TempSummonType::TEMPSUMMON_CORPSE_TIMED_DESPAWN)
CreatureDoSummonFlyer (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 BossAI
EventMap events
SummonList summons
Protected Attributes inherited from CreatureAI
Creature *const me
Protected Attributes inherited from UnitAI
Unit *const me

Detailed Description

Definition at line 329 of file boss_malygos.cpp.

Constructor & Destructor Documentation

◆ boss_malygosAI()

boss_malygos::boss_malygosAI::boss_malygosAI ( Creature * creature)
inline

Member Function Documentation

◆ AttackStart()

void boss_malygos::boss_malygosAI::AttackStart ( Unit * target)
inlinevirtual

Reimplemented from UnitAI.

Definition at line 548 of file boss_malygos.cpp.

References _canAttack, UnitAI::AttackStart(), and OVERRIDE.

◆ DoAction()

◆ EnterCombat()

void boss_malygos::boss_malygosAI::EnterCombat ( Unit * )
inlinevirtual

◆ EnterEvadeMode()

◆ FillCirclePath()

void boss_malygos::boss_malygosAI::FillCirclePath ( Position const & centerPos,
float radius,
float z,
Movement::PointsArray & path,
bool clockwise )
inlineprivate

Definition at line 1007 of file boss_malygos.cpp.

References centerPos, M_PI, and ScriptedAI::me.

Referenced by DoAction().

◆ GetData()

uint32 boss_malygos::boss_malygosAI::GetData ( uint32 data) const
inlinevirtual

Reimplemented from UnitAI.

Definition at line 371 of file boss_malygos.cpp.

References _phase, _summonDeaths, DATA_PHASE, DATA_SUMMON_DEATHS, and OVERRIDE.

◆ GetGUID()

uint64 boss_malygos::boss_malygosAI::GetGUID ( int32 type) const
inlinevirtual

◆ JustDied()

◆ KilledUnit()

void boss_malygos::boss_malygosAI::KilledUnit ( Unit * victim)
inlinevirtual

◆ MoveInLineOfSight()

void boss_malygos::boss_malygosAI::MoveInLineOfSight ( Unit * who)
inlinevirtual

Reimplemented from CreatureAI.

Definition at line 664 of file boss_malygos.cpp.

References _phase, ScriptedAI::me, NPC_POWER_SPARK, OVERRIDE, PHASE_ONE, and SPELL_POWER_SPARK_MALYGOS.

◆ MovementInform()

◆ Reset()

◆ SendLightOverride()

void boss_malygos::boss_malygosAI::SendLightOverride ( uint32 overrideId,
uint32 fadeInTime ) const
inlineprivate

Definition at line 1023 of file boss_malygos.cpp.

References SendPacketToPlayers(), and SMSG_OVERRIDE_LIGHT.

Referenced by EnterEvadeMode(), MovementInform(), and UpdateAI().

◆ SendPacketToPlayers()

void boss_malygos::boss_malygosAI::SendPacketToPlayers ( WorldPacket const * data) const
inlineprivate

◆ SetData()

◆ SetGUID()

void boss_malygos::boss_malygosAI::SetGUID ( uint64 guid,
int32 type )
inlinevirtual

◆ SetPhase()

void boss_malygos::boss_malygosAI::SetPhase ( uint8 phase,
bool setEvents = false )
inline

Definition at line 511 of file boss_malygos.cpp.

References _phase, BossAI::events, and SetPhaseEvents().

Referenced by Reset(), and UpdateAI().

◆ SetPhaseEvents()

◆ SpellHit()

void boss_malygos::boss_malygosAI::SpellHit ( Unit * caster,
SpellInfo const * spell )
inlinevirtual

◆ UpdateAI()

void boss_malygos::boss_malygosAI::UpdateAI ( uint32 diff)
inlinevirtual

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

Reimplemented from CreatureAI.

Definition at line 744 of file boss_malygos.cpp.

References _arcaneOverloadGUID, _arcaneReinforcements, _canAttack, _executingVortex, _flyingOutOfPlatform, _killSpamFilter, _performingDestroyPlatform, _performingSurgeOfPower, _phase, _preparingPulsesChecker, _surgeTargetGUID, ACTION_CYCLIC_MOVEMENT, ACTION_LIFT_IN_AIR, Creature::AI(), DATA_ALEXSTRASZA_BUNNY_GUID, DATA_FOCUSING_IRIS_GUID, DATA_POWER_SPARKS_HANDLING, DIFFICULTY_10MAN_NORMAL, DIFFICULTY_25MAN_NORMAL, DoAction(), UnitAI::DoAction(), UnitAI::DoCast(), UnitAI::DoCastAOE(), UnitAI::DoMeleeAttackIfReady(), EMOTE_SURGE_OF_POWER_WARNING_P3, EVENT_ARCANE_BREATH, EVENT_ARCANE_PULSE, EVENT_ARCANE_STORM, EVENT_DELAY_MOVE_TO_DESTROY_P, EVENT_DELAYED_REINFORCEMENTS, EVENT_FLY_OUT_OF_PLATFORM, EVENT_LAND_START_ENCOUNTER, EVENT_LIGHT_DIMENSION_CHANGE, EVENT_MOVE_TO_P_THREE_POINT, EVENT_MOVE_TO_POINT_SURGE_P_TWO, EVENT_MOVE_TO_VORTEX_POINT, EVENT_PATHING_AROUND_PLATFORM, EVENT_POWER_SPARKS, EVENT_PREVENT_SAY_SPAM_ON_KILL, EVENT_RANDOM_PORTAL, EVENT_SAY_INTRO, EVENT_START_FIRST_RANDOM_PORTAL, EVENT_START_P_THREE, EVENT_STATIC_FIELD, EVENT_STOP_PORTAL_BEAM, EVENT_SUMMON_ARCANE_BOMB, EVENT_SURGE_OF_POWER_P_THREE, EVENT_VORTEX, BossAI::events, ScriptedAI::GetDifficulty(), Unit::GetMotionMaster(), IN_MILLISECONDS, BossAI::instance, Unit::IsAIEnabled, LIGHT_CHANGE_DIMENSIONS, LIGHT_OBSCURE_ARCANE_RUNES, Position::m_positionX, Position::m_positionY, Position::m_positionZ, MalygosPositions, MAX_MELEE_HOVER_DISK_SPAWNPOINTS, ScriptedAI::me, MeleeHoverDisksSpawnPositions, MeleeHoverDisksWaypoints, MotionMaster::MovePoint(), NPC_HOVER_DISK_CASTER, NPC_HOVER_DISK_MELEE, OVERRIDE, PHASE_NOT_STARTED, PHASE_ONE, PHASE_THREE, PHASE_TWO, POINT_DESTROY_PLATFORM_P_TWO, POINT_FLY_OUT_OF_PLATFORM_P_TWO, POINT_IDLE_P_THREE, POINT_SURGE_OF_POWER_P_TWO, POINT_VORTEX_P_ONE, RangeHoverDisksSpawnPositions, SAY_DEEP_BREATH, SAY_END_P_ONE, SAY_INTRO_EVENT, SAY_START_P_THREE, SELECT_TARGET_RANDOM, UnitAI::SelectTarget(), SendLightOverride(), SetPhase(), SPELL_ARCANE_BOMB_TRIGGER, SPELL_ARCANE_BREATH, SPELL_ARCANE_PULSE, SPELL_ARCANE_STORM_P_I, SPELL_ARCANE_STORM_P_III, SPELL_CLEAR_ALL_DEBUFFS, SPELL_IMMUNE_CURSES, SPELL_RANDOM_PORTAL, SPELL_RIDE_RED_DRAGON_BUDDY, SPELL_STATIC_FIELD_MISSLE, SPELL_SUMMON_ARCANE_BOMB, SPELL_SURGE_OF_POWER_PHASE_3_10, SPELL_SURGE_OF_POWER_WARNING_SELECTOR_25, SPELLVALUE_MAX_TARGETS, CreatureAI::Talk(), TYPEID_PLAYER, UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE, UNIT_STATE_CASTING, and CreatureAI::UpdateVictim().

Member Data Documentation

◆ _arcaneOverloadGUID

uint64 boss_malygos::boss_malygosAI::_arcaneOverloadGUID
private

Definition at line 1046 of file boss_malygos.cpp.

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

◆ _arcaneReinforcements

bool boss_malygos::boss_malygosAI::_arcaneReinforcements
private

Definition at line 1054 of file boss_malygos.cpp.

Referenced by Reset(), and UpdateAI().

◆ _canAttack

bool boss_malygos::boss_malygosAI::_canAttack
private

Definition at line 1051 of file boss_malygos.cpp.

Referenced by AttackStart(), MovementInform(), Reset(), and UpdateAI().

◆ _despawned

bool boss_malygos::boss_malygosAI::_despawned
private

Definition at line 1052 of file boss_malygos.cpp.

Referenced by boss_malygosAI(), DoAction(), EnterEvadeMode(), Reset(), and SetData().

◆ _executingVortex

bool boss_malygos::boss_malygosAI::_executingVortex
private

Definition at line 1053 of file boss_malygos.cpp.

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

◆ _firstCyclicMovementStarted

bool boss_malygos::boss_malygosAI::_firstCyclicMovementStarted
private

Definition at line 1056 of file boss_malygos.cpp.

Referenced by MovementInform(), and Reset().

◆ _flyingOutOfPlatform

bool boss_malygos::boss_malygosAI::_flyingOutOfPlatform
private

Definition at line 1055 of file boss_malygos.cpp.

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

◆ _flySpeed

float boss_malygos::boss_malygosAI::_flySpeed
private

Definition at line 1060 of file boss_malygos.cpp.

Referenced by boss_malygosAI(), EnterEvadeMode(), and Reset().

◆ _killSpamFilter

bool boss_malygos::boss_malygosAI::_killSpamFilter
private

Definition at line 1050 of file boss_malygos.cpp.

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

◆ _lastHitByArcaneBarrageGUID

uint64 boss_malygos::boss_malygosAI::_lastHitByArcaneBarrageGUID
private

Definition at line 1047 of file boss_malygos.cpp.

Referenced by GetGUID(), Reset(), and SetGUID().

◆ _performingDestroyPlatform

bool boss_malygos::boss_malygosAI::_performingDestroyPlatform
private

Definition at line 1058 of file boss_malygos.cpp.

Referenced by MovementInform(), Reset(), SetData(), and UpdateAI().

◆ _performingSurgeOfPower

bool boss_malygos::boss_malygosAI::_performingSurgeOfPower
private

Definition at line 1057 of file boss_malygos.cpp.

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

◆ _phase

uint8 boss_malygos::boss_malygosAI::_phase
private

◆ _preparingPulsesChecker

uint8 boss_malygos::boss_malygosAI::_preparingPulsesChecker
private

Definition at line 1045 of file boss_malygos.cpp.

Referenced by Reset(), and UpdateAI().

◆ _summonDeaths

uint8 boss_malygos::boss_malygosAI::_summonDeaths
private

Definition at line 1044 of file boss_malygos.cpp.

Referenced by GetData(), Reset(), and SetData().

◆ _surgeTargetGUID

uint64 boss_malygos::boss_malygosAI::_surgeTargetGUID[3]
private

Definition at line 1048 of file boss_malygos.cpp.

Referenced by GetGUID(), Reset(), SetGUID(), and UpdateAI().


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