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

Public Member Functions

 npc_blazing_monstrosityAI (Creature *creature)
 
void EnterEvadeMode (EvadeReason why) override
 
void JustDied (Unit *) override
 
void JustReachedHome () override
 
void EnterCombat (Unit *) override
 
void PassengerBoarded (Unit *passenger, int8, bool apply) override
 == Fields ======================================= More...
 
void JustSummoned (Creature *summon) override
 
void SummonedCreatureDespawn (Creature *summon) override
 
void UpdateAI (uint32 diff) override
 
- Public Member Functions inherited from PassiveAI
 PassiveAI (Creature *c)
 
void MoveInLineOfSight (Unit *) override
 
void AttackStart (Unit *) override
 
- 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 KilledUnit (Unit *)
 
virtual void IsSummonedBy (Unit *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void SpellHit (Unit *, SpellInfo const *)
 
virtual void SpellHitTarget (Unit *, SpellInfo const *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted () const
 
virtual void JustRespawned ()
 
virtual void MovementInform (uint32, uint32)
 
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 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 bool CanAIAttack (Unit const *) const
 
virtual void InitializeAI ()
 
virtual void Reset ()
 
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 DamageTaken (Unit *, uint32 &)
 
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

SummonList _summons
 
EventMap _events
 

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 PassiveAI
static int Permissible (const Creature *)
 
- Static Public Member Functions inherited from UnitAI
static void FillAISpellInfo ()
 
- Static Public Attributes inherited from UnitAI
static AISpellInfoTypeAISpellInfo
 
- 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)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
CreatureBoundary const_boundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Constructor & Destructor Documentation

npc_blazing_monstrosity::npc_blazing_monstrosityAI::npc_blazing_monstrosityAI ( Creature creature)
inline
258  : PassiveAI(creature), _summons(creature)
259  {
260  }
PassiveAI(Creature *c)
Definition: PassiveAI.cpp:22
SummonList _summons
Definition: boss_alysrazor.cpp:343

Member Function Documentation

void npc_blazing_monstrosity::npc_blazing_monstrosityAI::EnterCombat ( Unit )
inlineoverridevirtual

Reimplemented from CreatureAI.

281  {
282  DoZoneInCombat();
285  _events.Reset();
288  }
Definition: boss_alysrazor.cpp:48
void Reset()
Definition: EventMap.cpp:20
void DoZoneInCombat(Creature *creature=NULL, float maxRangeToNearestTarget=50.0f)
Definition: CreatureAI.cpp:47
void PlayOneShotAnimKitId(uint16 animKitId)
Definition: Unit.cpp:13451
Definition: boss_alysrazor.cpp:84
Creature *const me
Definition: CreatureAI.h:71
Definition: boss_alysrazor.cpp:98
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
Definition: boss_alysrazor.cpp:85
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:3586
EventMap _events
Definition: boss_alysrazor.cpp:344

+ Here is the call graph for this function:

void npc_blazing_monstrosity::npc_blazing_monstrosityAI::EnterEvadeMode ( EvadeReason  why)
inlineoverridevirtual

Reimplemented from CreatureAI.

263  {
265  _events.Reset();
267  }
void DespawnAll()
Definition: ScriptedCreature.cpp:66
void Reset()
Definition: EventMap.cpp:20
virtual void EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER)
Definition: CreatureAI.cpp:168
SummonList _summons
Definition: boss_alysrazor.cpp:343
EventMap _events
Definition: boss_alysrazor.cpp:344

+ Here is the call graph for this function:

void npc_blazing_monstrosity::npc_blazing_monstrosityAI::JustDied ( Unit )
inlineoverridevirtual

Reimplemented from CreatureAI.

270  {
272  _events.Reset();
273  }
void DespawnAll()
Definition: ScriptedCreature.cpp:66
void Reset()
Definition: EventMap.cpp:20
SummonList _summons
Definition: boss_alysrazor.cpp:343
EventMap _events
Definition: boss_alysrazor.cpp:344

+ Here is the call graph for this function:

void npc_blazing_monstrosity::npc_blazing_monstrosityAI::JustReachedHome ( )
inlineoverridevirtual

Reimplemented from CreatureAI.

276  {
278  }
static void AlysrazorTrashEvaded(Creature *creature)
Definition: boss_alysrazor.cpp:162
Creature *const me
Definition: CreatureAI.h:71

+ Here is the call graph for this function:

void npc_blazing_monstrosity::npc_blazing_monstrosityAI::JustSummoned ( Creature summon)
inlineoverridevirtual

Reimplemented from CreatureAI.

309  {
310  _summons.Summon(summon);
311  }
void Summon(Creature const *summon)
Definition: ScriptedCreature.h:92
SummonList _summons
Definition: boss_alysrazor.cpp:343

+ Here is the call graph for this function:

void npc_blazing_monstrosity::npc_blazing_monstrosityAI::PassengerBoarded ( Unit ,
int8  ,
bool   
)
inlineoverridevirtual

== Fields =======================================

Reimplemented from CreatureAI.

291  {
292  if (!apply)
293  return;
294 
295  // Our passenger is another vehicle (boardable by players)
296  DoCast(passenger, SPELL_SHARE_HEALTH, true);
297  passenger->setFaction(35);
298  passenger->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
299 
300  // Hack to relocate vehicle on vehicle so exiting players are not moved under map
301  Movement::MoveSplineInit init(passenger);
302  init.DisableTransportPathTransformations();
303  init.MoveTo(0.6654003f, 0.0f, 1.9815f);
304  init.SetFacing(0.0f);
305  init.Launch();
306  }
void apply(T *val)
Definition: ByteConverter.h:41
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
Definition: UpdateFields.h:109
Definition: MoveSplineInit.h:52
Definition: Unit.h:698
#define SPELL_SHARE_HEALTH
Definition: boss_alysrazor.cpp:77

+ Here is the call graph for this function:

void npc_blazing_monstrosity::npc_blazing_monstrosityAI::SummonedCreatureDespawn ( Creature summon)
inlineoverridevirtual

Reimplemented from CreatureAI.

314  {
315  _summons.Despawn(summon);
316  }
void Despawn(Creature const *summon)
Definition: ScriptedCreature.h:93
SummonList _summons
Definition: boss_alysrazor.cpp:343

+ Here is the call graph for this function:

void npc_blazing_monstrosity::npc_blazing_monstrosityAI::UpdateAI ( uint32  diff)
inlineoverridevirtual

Reimplemented from PassiveAI.

319  {
320  if (!UpdateVictim())
321  return;
322 
323  _events.Update(diff);
324 
325  while (uint32 eventId = _events.ExecuteEvent())
326  {
327  switch (eventId)
328  {
330  if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 0.0f, false, -SPELL_RIDE_MONSTROSITY))
331  DoCast(target, SPELL_MOLTEN_BARRAGE);
332  break;
335  if (Creature* egg = me->FindNearestCreature(NPC_EGG_PILE, 100.0f))
336  egg->AI()->DoAction(me->GetEntry());
337  break;
338  }
339  }
340  }
#define SPELL_MOLTEN_BARRAGE
Definition: boss_alysrazor.cpp:78
void DoCastAOE(uint32 spellId, bool triggered=false)
Definition: UnitAI.cpp:167
bool UpdateVictim()
Definition: CreatureAI.cpp:233
#define SPELL_MOLTEN_BARRAGE_EFFECT
Definition: boss_alysrazor.cpp:79
Definition: Creature.h:467
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2443
Definition: boss_alysrazor.cpp:84
Creature *const me
Definition: CreatureAI.h:71
Definition: UnitAI.h:35
Unit * SelectTarget(SelectAggroTarget targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, int32 aura=0)
Definition: UnitAI.cpp:91
uint32_t uint32
Definition: Define.h:150
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
Definition: firelands.h:44
void Update(uint32 time)
Definition: EventMap.h:54
Definition: boss_alysrazor.cpp:85
Definition: boss_alysrazor.cpp:45
uint32 ExecuteEvent()
Definition: EventMap.cpp:46
EventMap _events
Definition: boss_alysrazor.cpp:344
uint32 GetEntry() const
Definition: Object.h:107
Definition: Unit.h:1305

+ Here is the call graph for this function:

Member Data Documentation

EventMap npc_blazing_monstrosity::npc_blazing_monstrosityAI::_events
private
SummonList npc_blazing_monstrosity::npc_blazing_monstrosityAI::_summons
private

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