TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boss_fjola::boss_fjolaAI Struct Reference

Public Member Functions

 boss_fjolaAI (Creature *creature)
 
void Reset () override
 
void ExecuteEvent (uint32 eventId) override
 
void EnterCombat (Unit *who) override
 
void EnterEvadeMode (EvadeReason why) override
 
void JustReachedHome () override
 
void GenerateStageSequence ()
 
- Public Member Functions inherited from boss_twin_baseAI
 boss_twin_baseAI (Creature *creature)
 
void MovementInform (uint32 uiType, uint32 uiId) override
 
void KilledUnit (Unit *who) override
 
void SummonedCreatureDespawn (Creature *summoned) override
 
void JustDied (Unit *) override
 
CreatureGetSister ()
 
void DoAction (int32 action) override
 
void EnableDualWield (bool mode=true)
 
- Public Member Functions inherited from BossAI
 BossAI (Creature *creature, uint32 bossId)
 
virtual ~BossAI ()
 
void JustSummoned (Creature *summon) override
 
virtual void UpdateAI (uint32 diff) override
 
virtual void ScheduleTasks ()
 
bool CanAIAttack (Unit const *target) const override
 
- Public Member Functions inherited from ScriptedAI
 ScriptedAI (Creature *creature)
 
virtual ~ScriptedAI ()
 
void AttackStartNoMove (Unit *target)
 
void DamageTaken (Unit *, uint32 &) override
 
void SpellHit (Unit *, SpellInfo const *) override
 
void SpellHitTarget (Unit *, SpellInfo const *) override
 
void OnPossess (bool)
 
void AttackStart (Unit *) override
 
void DoStartMovement (Unit *target, float distance=0.0f, float angle=0.0f)
 
void DoStartNoMovement (Unit *target)
 
void DoStopAttack ()
 
void DoCastSpell (Unit *target, SpellInfo const *spellInfo, bool triggered=false)
 
void DoPlaySoundToSet (WorldObject *source, uint32 soundId)
 
void DoResetThreat ()
 
float DoGetThreat (Unit *unit)
 
void DoModifyThreatPercent (Unit *unit, int32 pct)
 
void DoTeleportTo (float x, float y, float z, uint32 time=0)
 
void DoTeleportTo (float const pos[4])
 
void DoTeleportPlayer (Unit *unit, float x, float y, float z, float o)
 
void DoTeleportAll (float x, float y, float z, float o)
 
UnitDoSelectLowestHpFriendly (float range, uint32 minHPDiff=1)
 
std::list< Creature * > DoFindFriendlyCC (float range)
 
std::list< Creature * > DoFindFriendlyMissingBuff (float range, uint32 spellId)
 
PlayerGetPlayerAtMinimumRange (float minRange)
 
CreatureDoSpawnCreature (uint32 entry, float offsetX, float offsetY, float offsetZ, float angle, uint32 type, uint32 despawntime)
 
bool HealthBelowPct (uint32 pct) const
 
bool HealthAbovePct (uint32 pct) const
 
SpellInfo constSelectSpell (Unit *target, uint32 school, uint32 mechanic, SelectTargetType targets, float rangeMin, float rangeMax, SelectEffect effect)
 
void SetEquipmentSlots (bool loadDefault, int32 mainHand=EQUIP_NO_CHANGE, int32 offHand=EQUIP_NO_CHANGE, int32 ranged=EQUIP_NO_CHANGE)
 
void SetCombatMovement (bool allowMovement)
 
bool IsCombatMovementAllowed () const
 
bool IsHeroic () const
 
Difficulty GetDifficulty () const
 
bool Is25ManRaid () const
 
template<class T >
const T & DUNGEON_MODE (const T &normal5, const T &heroic10) const
 
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 &heroic10, const T &heroic25) const
 
- Public Member Functions inherited from CreatureAI
void Talk (uint8 id, WorldObject const *whisperTarget=nullptr)
 
 CreatureAI (Creature *creature)
 
virtual ~CreatureAI ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At ================================= More...
 
void TriggerAlert (Unit const *who) const
 
virtual bool CanRespawn ()
 
virtual void IsSummonedBy (Unit *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted () const
 
virtual void JustRespawned ()
 
void OnCharmed (bool apply) override
 
void DoZoneInCombat (Creature *creature=NULL, float maxRangeToNearestTarget=50.0f)
 
virtual void ReceiveEmote (Player *, uint32)
 
virtual void OwnerAttackedBy (Unit *)
 
virtual void OwnerAttacked (Unit *)
 
virtual void CorpseRemoved (uint32 &)
 == Triggered Actions Requested ================== More...
 
virtual void PassengerBoarded (Unit *, int8, bool)
 == Fields ======================================= More...
 
virtual void OnSpellClick (Unit *, bool &)
 
virtual bool CanSeeAlways (WorldObject const *)
 
int32 VisualizeBoundary (uint32 duration, Unit *owner=nullptr, bool fill=false) const
 
virtual bool CheckInRoom ()
 
CreatureBoundary constGetBoundary () const
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual void InitializeAI ()
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void SetGUID (ObjectGuid, int32=0)
 
virtual ObjectGuid GetGUID (int32=0) const
 
UnitSelectTarget (SelectAggroTarget targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, int32 aura=0)
 
template<class PREDICATE >
UnitSelectTarget (SelectAggroTarget targetType, uint32 position, PREDICATE const &predicate)
 
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectAggroTarget targetType, 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)
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType)
 
virtual void HealReceived (Unit *, uint32 &)
 
virtual void HealDone (Unit *, uint32 &)
 
virtual void SpellInterrupted (uint32, uint32)
 
void AttackStartCaster (Unit *victim, float dist)
 
void DoCast (uint32 spellId)
 
void DoCast (Unit *victim, uint32 spellId, bool triggered=false)
 
void DoCastVictim (uint32 spellId, bool triggered=false)
 
void DoCastAOE (uint32 spellId, bool triggered=false)
 
void DoMeleeAttackIfReady ()
 
bool DoSpellAttackIfReady (uint32 spellId)
 
virtual void sGossipHello (Player *)
 
virtual void sGossipSelect (Player *, uint32, uint32)
 
virtual void sGossipSelectCode (Player *, uint32, uint32, char const *)
 
virtual void sQuestAccept (Player *, Quest const *)
 
virtual void sQuestSelect (Player *, Quest const *)
 
virtual void sQuestReward (Player *, Quest const *, uint32)
 
virtual bool sOnDummyEffect (Unit *, uint32, SpellEffIndex)
 
virtual void sOnGameEvent (bool, uint16)
 

Private Attributes

uint8 Stage [4]
 
uint8 CurrentStage
 

Additional Inherited Members

- Public Types inherited from CreatureAI
enum  EvadeReason { EVADE_REASON_NO_HOSTILES, EVADE_REASON_BOUNDARY, EVADE_REASON_SEQUENCE_BREAK, EVADE_REASON_OTHER }
 
- 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
 
- Static Public Attributes inherited from UnitAI
static AISpellInfoTypeAISpellInfo
 
- Protected Member Functions inherited from BossAI
void _Reset ()
 
void _EnterCombat ()
 
void _JustDied ()
 
void _JustReachedHome ()
 
void _DespawnAtEvade ()
 
void TeleportCheaters ()
 
- Protected Member Functions inherited from CreatureAI
bool UpdateVictim ()
 
bool UpdateVictimWithGaze ()
 
void SetGazeOn (Unit *target)
 
CreatureDoSummon (uint32 entry, Position const &pos, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummon (uint32 entry, WorldObject *obj, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummonFlyer (uint32 entry, WorldObject *obj, float flightZ, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
bool CheckBoundary (Position const *who=nullptr) const
 
void SetBoundary (CreatureBoundary const *boundary)
 
virtual void MoveInLineOfSight (Unit *)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from boss_twin_baseAI
AuraStateType AuraState
 
uint32 Weapon
 
uint32 SisterNpcId
 
uint32 MyEmphatySpellId
 
uint32 OtherEssenceSpellId
 
uint32 SurgeSpellId
 
uint32 VortexSpellId
 
uint32 ShieldSpellId
 
uint32 TwinPactSpellId
 
uint32 SpikeSpellId
 
uint32 TouchSpellId
 
- Protected Attributes inherited from BossAI
EventMap events
 
SummonList summons
 
TaskScheduler scheduler
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
CreatureBoundary const_boundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Constructor & Destructor Documentation

boss_fjola::boss_fjolaAI::boss_fjolaAI ( Creature creature)
inline
354  : boss_twin_baseAI(creature)
355  {
357  }
void GenerateStageSequence()
Definition: boss_twin_valkyr.cpp:432
boss_twin_baseAI(Creature *creature)
Definition: boss_twin_valkyr.cpp:161

+ Here is the call graph for this function:

Member Function Documentation

void boss_fjola::boss_fjolaAI::EnterCombat ( Unit who)
inlineoverridevirtual

Reimplemented from boss_twin_baseAI.

412  {
415  me->SummonCreature(NPC_BULLET_CONTROLLER, ToCCommonLoc[1].GetPositionX(), ToCCommonLoc[1].GetPositionY(), ToCCommonLoc[1].GetPositionZ(), 0.0f, TEMPSUMMON_MANUAL_DESPAWN);
417  }
Definition: Object.h:61
void EnterCombat(Unit *) override
Definition: boss_twin_valkyr.cpp:265
Definition: DBCEnums.h:183
Definition: boss_twin_valkyr.cpp:55
Creature *const me
Definition: CreatureAI.h:71
void DoStartTimedAchievement(AchievementCriteriaTimedTypes type, uint32 entry)
Definition: InstanceScript.cpp:518
const Position ToCCommonLoc[]
Definition: trial_of_the_crusader.h:54
Definition: trial_of_the_crusader.h:298
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
Definition: Common.h:103
Definition: boss_twin_valkyr.cpp:98
EventMap events
Definition: ScriptedCreature.h:371
TempSummon * SummonCreature(uint32 id, Position const &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const
Definition: Object.cpp:2346
InstanceScript *const instance
Definition: ScriptedCreature.h:340

+ Here is the call graph for this function:

void boss_fjola::boss_fjolaAI::EnterEvadeMode ( EvadeReason  why)
inlineoverridevirtual

Reimplemented from CreatureAI.

420  {
423  }
virtual void EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER)
Definition: CreatureAI.cpp:168
Definition: trial_of_the_crusader.h:261
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
void DoUseDoorOrButton(ObjectGuid guid, uint32 withRestoreTime=0, bool useAlternativeState=false)
Definition: InstanceScript.cpp:407
InstanceScript *const instance
Definition: ScriptedCreature.h:340

+ Here is the call graph for this function:

void boss_fjola::boss_fjolaAI::ExecuteEvent ( uint32  eventId)
inlineoverridevirtual

Reimplemented from boss_twin_baseAI.

379  {
380  if (eventId == EVENT_SPECIAL_ABILITY)
381  {
382  if (CurrentStage == MAX_STAGES)
384 
385  switch (Stage[CurrentStage])
386  {
387  case STAGE_DARK_VORTEX:
388  if (Creature* sister = GetSister())
389  sister->AI()->DoAction(ACTION_VORTEX);
390  break;
391  case STAGE_DARK_PACT:
392  if (Creature* sister = GetSister())
393  sister->AI()->DoAction(ACTION_PACT);
394  break;
395  case STAGE_LIGHT_VORTEX:
397  break;
398  case STAGE_LIGHT_PACT:
400  break;
401  default:
402  break;
403  }
404  ++CurrentStage;
406  }
407  else
409  }
Definition: boss_twin_valkyr.cpp:107
void ExecuteEvent(uint32 eventId) override
Definition: boss_twin_valkyr.cpp:311
Definition: Creature.h:467
Definition: boss_twin_valkyr.cpp:108
void GenerateStageSequence()
Definition: boss_twin_valkyr.cpp:432
Definition: boss_twin_valkyr.cpp:104
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
Definition: boss_twin_valkyr.cpp:106
Creature * GetSister()
Definition: boss_twin_valkyr.cpp:260
Definition: Common.h:103
Definition: boss_twin_valkyr.cpp:98
EventMap events
Definition: ScriptedCreature.h:371
Definition: boss_twin_valkyr.cpp:121
Definition: boss_twin_valkyr.cpp:105
void DoAction(int32 action) override
Definition: boss_twin_valkyr.cpp:284
Definition: boss_twin_valkyr.cpp:122
uint8 CurrentStage
Definition: boss_twin_valkyr.cpp:451
uint8 Stage[4]
Definition: boss_twin_valkyr.cpp:450

+ Here is the call graph for this function:

void boss_fjola::boss_fjolaAI::GenerateStageSequence ( )
inline
433  {
434  CurrentStage = 0;
435 
436  // Initialize and clean up.
437  for (int i = 0; i < MAX_STAGES; ++i)
438  Stage[i] = i;
439 
440  // Allocate an unique random stage to each position in the array.
441  for (int i = 0; i < MAX_STAGES - 1; ++i)
442  {
443  int random = i + (rand32() % (MAX_STAGES - i));
444  int temp = Stage[i];
445  Stage[i] = Stage[random];
446  Stage[random] = temp;
447  }
448  }
Definition: boss_twin_valkyr.cpp:108
uint32 rand32()
Definition: Random.cpp:64
uint8 CurrentStage
Definition: boss_twin_valkyr.cpp:451
uint8 Stage[4]
Definition: boss_twin_valkyr.cpp:450

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void boss_fjola::boss_fjolaAI::JustReachedHome ( )
inlineoverridevirtual

Reimplemented from boss_twin_baseAI.

426  {
428 
430  }
Definition: trial_of_the_crusader.h:261
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
void DoUseDoorOrButton(ObjectGuid guid, uint32 withRestoreTime=0, bool useAlternativeState=false)
Definition: InstanceScript.cpp:407
void JustReachedHome() override
Definition: boss_twin_valkyr.cpp:188
InstanceScript *const instance
Definition: ScriptedCreature.h:340

+ Here is the call graph for this function:

void boss_fjola::boss_fjolaAI::Reset ( )
inlineoverridevirtual

Reimplemented from boss_twin_baseAI.

360  {
373 
376  }
uint32 VortexSpellId
Definition: boss_twin_valkyr.cpp:340
void SetEquipmentSlots(bool loadDefault, int32 mainHand=EQUIP_NO_CHANGE, int32 offHand=EQUIP_NO_CHANGE, int32 ranged=EQUIP_NO_CHANGE)
Definition: ScriptedCreature.cpp:364
Definition: boss_twin_valkyr.cpp:65
Definition: trial_of_the_crusader.h:233
uint32 TouchSpellId
Definition: boss_twin_valkyr.cpp:344
void DoStopTimedAchievement(AchievementCriteriaTimedTypes type, uint32 entry)
Definition: InstanceScript.cpp:529
Definition: DBCEnums.h:183
uint32 OtherEssenceSpellId
Definition: boss_twin_valkyr.cpp:338
Definition: boss_twin_valkyr.cpp:66
AuraStateType AuraState
Definition: boss_twin_valkyr.cpp:334
uint32 SisterNpcId
Definition: boss_twin_valkyr.cpp:336
uint32 SpikeSpellId
Definition: boss_twin_valkyr.cpp:343
Definition: CreatureAI.h:63
Definition: boss_twin_valkyr.cpp:84
Definition: boss_twin_valkyr.cpp:63
Definition: boss_twin_valkyr.cpp:49
Definition: boss_twin_valkyr.cpp:64
Definition: trial_of_the_crusader.h:298
#define SPELL_DARK_ESSENCE_HELPER
Definition: boss_twin_valkyr.cpp:111
uint32 ShieldSpellId
Definition: boss_twin_valkyr.cpp:341
void Reset() override
Definition: boss_twin_valkyr.cpp:176
uint32 MyEmphatySpellId
Definition: boss_twin_valkyr.cpp:337
Definition: boss_twin_valkyr.cpp:67
uint32 Weapon
Definition: boss_twin_valkyr.cpp:335
uint32 SurgeSpellId
Definition: boss_twin_valkyr.cpp:339
Definition: SharedDefines.h:1780
Definition: boss_twin_valkyr.cpp:69
uint32 TwinPactSpellId
Definition: boss_twin_valkyr.cpp:342
InstanceScript *const instance
Definition: ScriptedCreature.h:340
Definition: CreatureAI.h:64

+ Here is the call graph for this function:

Member Data Documentation

uint8 boss_fjola::boss_fjolaAI::CurrentStage
private
uint8 boss_fjola::boss_fjolaAI::Stage[4]
private

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