![]() |
TrinityCore
|
Inheritance diagram for npc_wild_wyrm:Public Member Functions | |
| npc_wild_wyrm (Creature *creature) | |
| void | Initialize () |
| void | InitSpellsForPhase () |
| void | Reset () override |
| void | DoAction (int32 action) override |
| void | SpellHit (WorldObject *caster, SpellInfo const *spellInfo) override |
| void | MovementInform (uint32 type, uint32 id) override |
| void | DamageTaken (Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override |
| void | PassengerBoarded (Unit *passenger, int8 seatId, bool apply) override |
| == Fields ======================================= | |
| bool | EvadeCheck () const |
| void | UpdateAI (uint32 diff) override |
Public Member Functions inherited from VehicleAI | |
| VehicleAI (Creature *creature, uint32 scriptId={}) noexcept | |
| void | UpdateAI (uint32 diff) override |
| void | MoveInLineOfSight (Unit *) override |
| void | AttackStart (Unit *) override |
| == Triggered Actions Requested ================== | |
| void | OnCharmed (bool isNew) override |
Public Member Functions inherited from CreatureAI | |
| CreatureAI (Creature *creature, uint32 scriptId={}) noexcept | |
| virtual | ~CreatureAI () |
| uint32 | GetId () const |
| bool | IsEngaged () const |
| void | Talk (uint8 id, WorldObject const *whisperTarget=nullptr) |
| void | MoveInLineOfSight_Safe (Unit *who) |
| == Reactions At ================================= | |
| void | TriggerAlert (Unit const *who) const |
| virtual void | EnterEvadeMode (EvadeReason why=EvadeReason::Other) |
| void | JustEnteredCombat (Unit *) override |
| virtual void | JustStartedThreateningMe (Unit *who) |
| virtual void | JustEngagedWith (Unit *) |
| virtual void | OnHealthDepleted (Unit *, bool) |
| virtual void | JustDied (Unit *) |
| virtual void | KilledUnit (Unit *) |
| virtual void | JustSummoned (Creature *) |
| virtual void | IsSummonedBy (WorldObject *) |
| virtual void | SummonedCreatureDespawn (Creature *) |
| virtual void | SummonedCreatureDies (Creature *, Unit *) |
| virtual void | JustSummonedGameobject (GameObject *) |
| virtual void | SummonedGameobjectDespawn (GameObject *) |
| virtual void | JustRegisteredDynObject (DynamicObject *) |
| virtual void | JustUnregisteredDynObject (DynamicObject *) |
| virtual void | JustRegisteredAreaTrigger (AreaTrigger *) |
| virtual void | JustUnregisteredAreaTrigger (AreaTrigger *) |
| virtual void | SpellHitTarget (WorldObject *, SpellInfo const *) |
| virtual void | OnSpellCast (SpellInfo const *) |
| virtual void | OnSpellFailed (SpellInfo const *) |
| virtual void | OnSpellStart (SpellInfo const *) |
| virtual void | OnChannelFinished (SpellInfo const *) |
| virtual void | OnAuraApplied (AuraApplication const *) |
| virtual void | OnAuraRemoved (AuraApplication const *) |
| virtual bool | IsEscorted () const |
| virtual void | JustAppeared () |
| virtual void | JustReachedHome () |
| void | DoZoneInCombat () |
| virtual void | ReceiveEmote (Player *, uint32) |
| virtual void | OwnerAttackedBy (Unit *attacker) |
| virtual void | OwnerAttacked (Unit *target) |
| virtual void | CorpseRemoved (uint32 &) |
| == State checks ================================= | |
| virtual Optional< QuestGiverStatus > | GetDialogStatus (Player const *player) |
| == Gossip system ================================ | |
| virtual bool | OnGossipHello (Player *) |
| virtual bool | OnGossipSelect (Player *, uint32, uint32) |
| virtual bool | OnGossipSelectCode (Player *, uint32, uint32, char const *) |
| virtual void | OnQuestAccept (Player *, Quest const *) |
| virtual void | OnQuestReward (Player *, Quest const *, LootItemType, uint32) |
| virtual void | WaypointStarted (uint32, uint32) |
| == Waypoints system ============================= | |
| virtual void | WaypointReached (uint32, uint32) |
| virtual void | WaypointPathEnded (uint32, uint32) |
| virtual void | OnSpellClick (Unit *, bool) |
| virtual bool | CanSeeAlways (WorldObject const *) |
| virtual PlayerAI * | GetAIForCharmedPlayer (Player *) |
| int32 | VisualizeBoundary (Seconds duration, Unit *owner=nullptr, bool fill=false) const |
| virtual bool | CheckInRoom () |
| CreatureBoundary const * | GetBoundary () const |
| void | SetBoundary (CreatureBoundary const *boundary, bool negativeBoundaries=false) |
| bool | IsInBoundary (Position const *who=nullptr) const |
Public Member Functions inherited from UnitAI | |
| UnitAI (Unit *unit) | |
| virtual | ~UnitAI () |
| virtual bool | CanAIAttack (Unit const *) const |
| virtual void | InitializeAI () |
| virtual uint32 | GetData (uint32 id) const |
| virtual void | SetData (uint32 id, uint32 value) |
| virtual void | SetGUID (ObjectGuid const &guid, int32 id) |
| virtual ObjectGuid | GetGUID (int32 id) const |
| Unit * | SelectTarget (SelectTargetMethod targetType, uint32 offset=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0) |
| template<class PREDICATE > | |
| Unit * | SelectTarget (SelectTargetMethod targetType, uint32 offset, PREDICATE const &predicate) |
| void | SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 offset=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0) |
| template<class PREDICATE > | |
| void | SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 offset, PREDICATE const &predicate) |
| virtual void | JustExitedCombat () |
| virtual void | OnDespawn () |
| 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) |
| SpellCastResult | DoCast (uint32 spellId) |
| SpellCastResult | DoCast (Unit *victim, uint32 spellId, CastSpellExtraArgs const &args={}) |
| SpellCastResult | DoCastSelf (uint32 spellId, CastSpellExtraArgs const &args={}) |
| SpellCastResult | DoCastVictim (uint32 spellId, CastSpellExtraArgs const &args={}) |
| SpellCastResult | DoCastAOE (uint32 spellId, CastSpellExtraArgs const &args={}) |
| bool | DoSpellAttackIfReady (uint32 spellId) |
| virtual void | OnGameEvent (bool, uint16) |
| virtual std::string | GetDebugInfo () const |
Private Attributes | |
| uint8 | _phase |
| uint32 | _playerCheckTimer |
| ObjectGuid | _playerGuid |
| TaskScheduler | _scheduler |
Additional Inherited Members | |
Static Public Member Functions inherited from VehicleAI | |
| static int32 | Permissible (Creature const *creature) |
Static Public Member Functions inherited from CreatureAI | |
| static void | DoZoneInCombat (Creature *creature) |
| static bool | IsInBounds (CreatureBoundary const &boundary, Position const *who) |
Static Public Member Functions inherited from UnitAI | |
| static void | FillAISpellInfo () |
Static Public Attributes inherited from UnitAI | |
| static std::unordered_map< std::pair< uint32, Difficulty >, AISpellInfoType > | AISpellInfo |
Protected Member Functions inherited from CreatureAI | |
| bool | UpdateVictim () |
| Creature * | DoSummon (uint32 entry, Position const &pos, Milliseconds despawnTime=30s, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN) |
| Creature * | DoSummon (uint32 entry, WorldObject *obj, float radius=5.0f, Milliseconds despawnTime=30s, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN) |
| Creature * | DoSummonFlyer (uint32 entry, WorldObject *obj, float flightZ, float radius=5.0f, Milliseconds despawnTime=30s, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN) |
| void | EngagementStart (Unit *who) |
| void | EngagementOver () |
| bool | _EnterEvadeMode (EvadeReason why=EvadeReason::Other) |
Protected Attributes inherited from CreatureAI | |
| Creature *const | me |
| CreatureBoundary const * | _boundary |
| bool | _negateBoundary |
Protected Attributes inherited from UnitAI | |
| Unit *const | me |
Definition at line 518 of file zone_storm_peaks.cpp.
|
inline |
Definition at line 520 of file zone_storm_peaks.cpp.
References Initialize().
|
inlineoverridevirtual |
Reimplemented from UnitAI.
Definition at line 619 of file zone_storm_peaks.cpp.
References _phase, _playerGuid, _scheduler, TaskScheduler::Async(), TaskScheduler::CancelAll(), UnitAI::DoCastAOE(), Unit::GetHealth(), Unit::GetMotionMaster(), ObjectAccessor::GetPlayer(), InitSpellsForPhase(), CreatureAI::me, MotionMaster::MoveFall(), PHASE_DEAD, POINT_FALL, Unit::RemoveAurasDueToSpell(), Unit::ReplaceAllNpcFlags(), SPELL_FALLING_DRAGON_FEIGN_DEATH, SPELL_JAWS_OF_DEATH_PERIODIC, SPELL_PRY_JAWS_OPEN, SPELL_WYRM_KILL_CREDIT, and UNIT_NPC_FLAG_NONE.
|
inlineoverridevirtual |
Reimplemented from UnitAI.
Definition at line 551 of file zone_storm_peaks.cpp.
References _playerGuid, ACTION_CLAW_SWIPE_DODGE, ACTION_CLAW_SWIPE_WARN, ACTION_FATAL_STRIKE_MISS, ACTION_GRIP_FAILING, ACTION_GRIP_LOST, UnitAI::DoCastAOE(), CreatureAI::EnterEvadeMode(), ObjectAccessor::GetPlayer(), CreatureAI::me, SAY_DODGED, SAY_GRIP_WARN, SAY_STRIKE_MISS, SAY_SWIPE, and SPELL_EJECT_PASSENGER_1.
|
inline |
Definition at line 694 of file zone_storm_peaks.cpp.
References ABORT, ObjectAccessor::GetPlayer(), Unit::IsAlive(), PHASE_DEAD, PHASE_INITIAL, and PHASE_MOUTH.
|
inline |
Definition at line 525 of file zone_storm_peaks.cpp.
References _phase, _playerCheckTimer, IN_MILLISECONDS, and PHASE_INITIAL.
Referenced by npc_wild_wyrm(), and Reset().
|
inline |
Definition at line 531 of file zone_storm_peaks.cpp.
References _phase, ASSERT, ControllableSpellsCount, Creature::m_spells, CreatureAI::me, PHASE_MAX, and WyrmControlSpells.
Referenced by DamageTaken(), and Reset().
Reimplemented from CreatureAI.
Definition at line 593 of file zone_storm_peaks.cpp.
References _playerGuid, MotionMaster::Clear(), UnitAI::DoCast(), UnitAI::DoCastAOE(), EFFECT_MOTION_TYPE, Unit::GetMotionMaster(), ObjectAccessor::GetPlayer(), Unit::KillSelf(), CreatureAI::me, POINT_FALL, POINT_MOTION_TYPE, POINT_START_FIGHT, SPELL_EJECT_ALL_PASSENGERS, and SPELL_PLAYER_MOUNT_WYRM.
== Fields =======================================
Reimplemented from CreatureAI.
Definition at line 650 of file zone_storm_peaks.cpp.
References _phase, _playerGuid, _scheduler, TaskScheduler::Async(), WorldObject::CastSpell(), UnitAI::DoCastAOE(), BaseEntity::GetGUID(), Unit::GetMotionMaster(), Unit::HealthBelowPct(), CreatureAI::me, PATH_WILD_WYRM, PHASE_MOUTH, TaskContext::Repeat(), SEAT_INITIAL, SPELL_CLAW_SWIPE_PERIODIC, SPELL_GRIP, and SPELLVALUE_AURA_STACK.
|
inlineoverridevirtual |
Reimplemented from UnitAI.
Definition at line 538 of file zone_storm_peaks.cpp.
References _playerGuid, _scheduler, TaskScheduler::CancelAll(), ObjectGuid::Clear(), Initialize(), InitSpellsForPhase(), CreatureAI::me, Creature::SetCanMelee(), and Creature::SetImmuneToPC().
|
inlineoverridevirtual |
Reimplemented from CreatureAI.
Definition at line 580 of file zone_storm_peaks.cpp.
References _playerGuid, UnitAI::DoCastAOE(), BaseEntity::GetGUID(), Unit::GetMotionMaster(), SpellInfo::Id, ObjectGuid::IsEmpty(), CreatureAI::me, MotionMaster::MovePoint(), POINT_START_FIGHT, Creature::SetCanMelee(), Creature::SetImmuneToPC(), SPELL_FULL_HEAL_MANA, and SPELL_SPEAR_OF_HODIR.
|
inlineoverridevirtual |
Implements UnitAI.
Definition at line 717 of file zone_storm_peaks.cpp.
References IN_MILLISECONDS, and NoHostiles.
|
private |
Definition at line 739 of file zone_storm_peaks.cpp.
Referenced by DamageTaken(), Initialize(), InitSpellsForPhase(), and PassengerBoarded().
|
private |
Definition at line 740 of file zone_storm_peaks.cpp.
Referenced by Initialize().
|
private |
Definition at line 741 of file zone_storm_peaks.cpp.
Referenced by DamageTaken(), DoAction(), MovementInform(), PassengerBoarded(), Reset(), and SpellHit().
|
private |
Definition at line 742 of file zone_storm_peaks.cpp.
Referenced by DamageTaken(), PassengerBoarded(), and Reset().