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

Public Member Functions

 npc_wyrmrest_skytalonAI (Creature *creature)
 
void IsSummonedBy (Unit *summoner) override
 
void UpdateAI (uint32 diff) override
 
void PassengerBoarded (Unit *, int8, bool apply) override
 == Fields ======================================= More...
 
- Public Member Functions inherited from VehicleAI
 VehicleAI (Creature *creature)
 
void MoveInLineOfSight (Unit *) override
 
void AttackStart (Unit *) override
 
void OnCharmed (bool apply) 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 EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
virtual void EnterCombat (Unit *)
 
virtual void JustDied (Unit *)
 
virtual void KilledUnit (Unit *)
 
virtual void JustSummoned (Creature *)
 
virtual void SummonedCreatureDespawn (Creature *)
 
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
 
virtual void JustReachedHome ()
 
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

ObjectGuid _summoner
 
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 VehicleAI
static int Permissible (Creature const *)
 
- 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_wyrmrest_skytalon::npc_wyrmrest_skytalonAI::npc_wyrmrest_skytalonAI ( Creature creature)
inline
1532  : VehicleAI(creature)
1533  {
1534  }
VehicleAI(Creature *creature)
Definition: CombatAI.cpp:262

Member Function Documentation

void npc_wyrmrest_skytalon::npc_wyrmrest_skytalonAI::IsSummonedBy ( Unit summoner)
inlineoverridevirtual

Reimplemented from CreatureAI.

1537  {
1538  _summoner.Clear();
1539  if (Player* player = summoner->ToPlayer())
1540  {
1541  _summoner = player->GetGUID();
1543  }
1544  }
EventMap _events
Definition: boss_malygos.cpp:1580
Definition: boss_malygos.cpp:81
Player * ToPlayer()
Definition: Object.h:191
ObjectGuid _summoner
Definition: boss_malygos.cpp:1579
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
void Clear()
Definition: ObjectGuid.h:215
Definition: Common.h:103

+ Here is the call graph for this function:

void npc_wyrmrest_skytalon::npc_wyrmrest_skytalonAI::PassengerBoarded ( Unit ,
int8  ,
bool   
)
inlineoverridevirtual

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

Reimplemented from CreatureAI.

1564  {
1565  if (!apply)
1566  {
1567  me->DespawnOrUnsummon(2050);
1568  me->SetOrientation(2.5f);
1569  me->SetSpeed(MOVE_FLIGHT, 1.0f, true);
1570  Position pos = me->GetPosition();
1571  pos.m_positionX += 10.0f;
1572  pos.m_positionY += 10.0f;
1573  pos.m_positionZ += 12.0f;
1574  me->GetMotionMaster()->MovePoint(1, pos);
1575  }
1576  }
void DespawnOrUnsummon(uint32 msTimeToDespawn=0)
Definition: Creature.cpp:1774
Definition: Unit.h:605
float m_positionY
Definition: Position.h:53
void SetOrientation(float orientation)
Definition: Position.h:99
MotionMaster * GetMotionMaster()
Definition: Unit.h:2101
float m_positionX
Definition: Position.h:52
void apply(T *val)
Definition: ByteConverter.h:41
Creature *const me
Definition: CreatureAI.h:71
void MovePoint(uint32 id, Position const &pos, bool generatePath=true)
Definition: MotionMaster.h:172
void GetPosition(float &x, float &y) const
Definition: Position.h:109
float m_positionZ
Definition: Position.h:54
Definition: Position.h:27
void SetSpeed(UnitMoveType mtype, float rate, bool forced=false)
Definition: Unit.cpp:10531

+ Here is the call graph for this function:

void npc_wyrmrest_skytalon::npc_wyrmrest_skytalonAI::UpdateAI ( uint32  diff)
inlineoverridevirtual

Reimplemented from VehicleAI.

1547  {
1548  VehicleAI::UpdateAI(diff);
1549  _events.Update(diff);
1550 
1551  while (uint32 eventId = _events.ExecuteEvent())
1552  {
1553  switch (eventId)
1554  {
1555  case EVENT_CAST_RIDE_SPELL:
1556  if (Player* player = ObjectAccessor::GetPlayer(*me, _summoner))
1558  break;
1559  }
1560  }
1561  }
EventMap _events
Definition: boss_malygos.cpp:1580
Definition: boss_malygos.cpp:81
ObjectGuid _summoner
Definition: boss_malygos.cpp:1579
Creature *const me
Definition: CreatureAI.h:71
void UpdateAI(uint32 diff) override
Definition: CombatAI.cpp:270
TC_GAME_API Player * GetPlayer(Map const *, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:184
uint32_t uint32
Definition: Define.h:150
void Update(uint32 time)
Definition: EventMap.h:54
Definition: eye_of_eternity.h:82
uint32 ExecuteEvent()
Definition: EventMap.cpp:46
void CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:869

+ Here is the call graph for this function:

Member Data Documentation

EventMap npc_wyrmrest_skytalon::npc_wyrmrest_skytalonAI::_events
private
ObjectGuid npc_wyrmrest_skytalon::npc_wyrmrest_skytalonAI::_summoner
private

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