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

Public Member Functions

 boss_saviana_ragefireAI (Creature *creature)
 
void Reset () override
 
void EnterCombat (Unit *) override
 
void JustDied (Unit *) override
 
void MovementInform (uint32 type, uint32 point) override
 
void JustReachedHome () override
 
void KilledUnit (Unit *victim) override
 
void UpdateAI (uint32 diff) override
 
- Public Member Functions inherited from BossAI
 BossAI (Creature *creature, uint32 bossId)
 
virtual ~BossAI ()
 
void JustSummoned (Creature *summon) override
 
void SummonedCreatureDespawn (Creature *summon) override
 
virtual void ExecuteEvent (uint32)
 
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 EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
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 void DoAction (int32)
 
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)
 

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 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_saviana_ragefire::boss_saviana_ragefireAI::boss_saviana_ragefireAI ( Creature creature)
inline
77  : BossAI(creature, DATA_SAVIANA_RAGEFIRE)
78  {
79  }
BossAI(Creature *creature, uint32 bossId)
Definition: ScriptedCreature.cpp:444
Definition: ruby_sanctum.h:33

Member Function Documentation

void boss_saviana_ragefire::boss_saviana_ragefireAI::EnterCombat ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

88  {
89  _EnterCombat();
90  Talk(SAY_AGGRO);
91  events.Reset();
95  }
void _EnterCombat()
Definition: ScriptedCreature.cpp:480
void Reset()
Definition: EventMap.cpp:20
Definition: boss_saviana_ragefire.cpp:50
Definition: boss_saviana_ragefire.cpp:43
Definition: boss_saviana_ragefire.cpp:42
Definition: boss_saviana_ragefire.cpp:25
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
EventMap events
Definition: ScriptedCreature.h:371
Definition: boss_saviana_ragefire.cpp:44

+ Here is the call graph for this function:

void boss_saviana_ragefire::boss_saviana_ragefireAI::JustDied ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

98  {
99  _JustDied();
101  }
void PlayDirectSound(uint32 sound_id, Player *target=NULL)
Definition: Object.cpp:2966
Definition: boss_saviana_ragefire.cpp:63
void _JustDied()
Definition: ScriptedCreature.cpp:471
Creature *const me
Definition: CreatureAI.h:71

+ Here is the call graph for this function:

void boss_saviana_ragefire::boss_saviana_ragefireAI::JustReachedHome ( )
inlineoverridevirtual

Reimplemented from BossAI.

133  {
135  me->SetCanFly(false);
136  me->SetDisableGravity(false);
137  }
bool SetDisableGravity(bool disable, bool packetOnly=false)
Definition: Unit.cpp:15818
Creature *const me
Definition: CreatureAI.h:71
void _JustReachedHome()
Definition: ScriptedCreature.h:366
bool SetCanFly(bool enable)
Definition: Unit.cpp:15899

+ Here is the call graph for this function:

void boss_saviana_ragefire::boss_saviana_ragefireAI::KilledUnit ( Unit victim)
inlineoverridevirtual

Reimplemented from ScriptedAI.

140  {
141  if (victim->GetTypeId() == TYPEID_PLAYER)
142  Talk(SAY_KILL);
143  }
Definition: boss_saviana_ragefire.cpp:28
TypeID GetTypeId() const
Definition: Object.h:113
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
Definition: ObjectGuid.h:33

+ Here is the call graph for this function:

void boss_saviana_ragefire::boss_saviana_ragefireAI::MovementInform ( uint32  type,
uint32  point 
)
inlineoverridevirtual

Reimplemented from CreatureAI.

104  {
105  if (type != POINT_MOTION_TYPE && type != EFFECT_MOTION_TYPE)
106  return;
107 
108  switch (point)
109  {
110  case POINT_FLIGHT:
113  break;
114  case POINT_LAND:
116  break;
117  case POINT_LAND_GROUND:
118  me->SetCanFly(false);
119  me->SetDisableGravity(false);
123  break;
124  case POINT_TAKEOFF:
126  break;
127  default:
128  break;
129  }
130  }
Definition: boss_saviana_ragefire.cpp:58
Definition: Unit.h:1131
Definition: boss_saviana_ragefire.cpp:45
Definition: Unit.h:254
Definition: Unit.h:253
bool SetDisableGravity(bool disable, bool packetOnly=false)
Definition: Unit.cpp:15818
Definition: boss_saviana_ragefire.cpp:57
Definition: boss_saviana_ragefire.cpp:56
Creature *const me
Definition: CreatureAI.h:71
Unit * GetVictim() const
Definition: Unit.h:1379
Definition: boss_saviana_ragefire.cpp:55
bool SetCanFly(bool enable)
Definition: Unit.cpp:15899
void RemoveByteFlag(uint16 index, uint8 offset, uint8 newFlag)
Definition: Object.cpp:1271
Definition: MotionMaster.h:54
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
Definition: boss_saviana_ragefire.cpp:46
Definition: UpdateFields.h:124
EventMap events
Definition: ScriptedCreature.h:371
void DoStartMovement(Unit *target, float distance=0.0f, float angle=0.0f)
Definition: ScriptedCreature.cpp:134
Definition: boss_saviana_ragefire.cpp:47
Definition: boss_saviana_ragefire.cpp:26
void SetReactState(ReactStates st)
Definition: Creature.h:502
Definition: MotionMaster.h:46

+ Here is the call graph for this function:

void boss_saviana_ragefire::boss_saviana_ragefireAI::Reset ( )
inlineoverridevirtual

Reimplemented from BossAI.

82  {
83  _Reset();
85  }
Definition: Unit.h:1131
Creature *const me
Definition: CreatureAI.h:71
void _Reset()
Definition: ScriptedCreature.cpp:457
void SetReactState(ReactStates st)
Definition: Creature.h:502

+ Here is the call graph for this function:

void boss_saviana_ragefire::boss_saviana_ragefireAI::UpdateAI ( uint32  diff)
inlineoverridevirtual

Reimplemented from BossAI.

146  {
147  if (!UpdateVictim())
148  return;
149 
150  events.Update(diff);
151 
153  return;
154 
155  while (uint32 eventId = events.ExecuteEvent())
156  {
157  switch (eventId)
158  {
159  case EVENT_FLIGHT:
160  {
161  me->SetCanFly(true);
162  me->SetDisableGravity(true);
165  me->AttackStop();
166  Position pos;
167  pos.Relocate(me);
168  pos.m_positionZ += 10.0f;
172  break;
173  }
174  case EVENT_CONFLAGRATION:
175  DoCast(me, SPELL_CONFLAGRATION, true);
176  break;
177  case EVENT_ENRAGE:
181  break;
182  case EVENT_FLAME_BREATH:
185  break;
186  case EVENT_AIR_MOVEMENT:
188  break;
189  case EVENT_LAND_GROUND:
191  break;
192  default:
193  break;
194  }
195  }
196 
198  }
bool AttackStop()
Definition: Unit.cpp:7337
Definition: boss_saviana_ragefire.cpp:58
Position const SavianaRagefireLandPos
Definition: boss_saviana_ragefire.cpp:68
bool UpdateVictim()
Definition: CreatureAI.cpp:233
Definition: Unit.h:565
Definition: boss_saviana_ragefire.cpp:45
Definition: boss_saviana_ragefire.cpp:50
Definition: Unit.h:1129
MotionMaster * GetMotionMaster()
Definition: Unit.h:2101
Definition: Unit.h:254
Definition: boss_saviana_ragefire.cpp:43
Definition: Unit.h:253
bool SetDisableGravity(bool disable, bool packetOnly=false)
Definition: Unit.cpp:15818
Definition: boss_saviana_ragefire.cpp:57
void SetByteFlag(uint16 index, uint8 offset, uint8 newFlag)
Definition: Object.cpp:1252
Creature *const me
Definition: CreatureAI.h:71
void MovePoint(uint32 id, Position const &pos, bool generatePath=true)
Definition: MotionMaster.h:172
Definition: boss_saviana_ragefire.cpp:37
void Relocate(float x, float y)
Definition: Position.h:67
Definition: boss_saviana_ragefire.cpp:27
Definition: boss_saviana_ragefire.cpp:42
Definition: boss_saviana_ragefire.cpp:55
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:45
bool SetCanFly(bool enable)
Definition: Unit.cpp:15899
uint32_t uint32
Definition: Define.h:150
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
Definition: boss_saviana_ragefire.cpp:36
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
float m_positionZ
Definition: Position.h:54
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
Definition: boss_saviana_ragefire.cpp:46
void Update(uint32 time)
Definition: EventMap.h:54
void MoveLand(uint32 id, Position const &pos)
Definition: MotionMaster.cpp:299
uint32 ExecuteEvent()
Definition: EventMap.cpp:46
Definition: UpdateFields.h:124
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:49
bool HasUnitState(const uint32 f) const
Definition: Unit.h:1395
Definition: Position.h:27
EventMap events
Definition: ScriptedCreature.h:371
Definition: boss_saviana_ragefire.cpp:47
void DoCastVictim(uint32 spellId, bool triggered=false)
Definition: UnitAI.cpp:159
void MoveTakeoff(uint32 id, Position const &pos)
Definition: MotionMaster.cpp:313
Position const SavianaRagefireFlyOutPos
Definition: boss_saviana_ragefire.cpp:66
void SetReactState(ReactStates st)
Definition: Creature.h:502
void DelayEvents(Milliseconds const &delay)
Definition: EventMap.h:219
Definition: boss_saviana_ragefire.cpp:33
Definition: boss_saviana_ragefire.cpp:44

+ Here is the call graph for this function:


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