![]() |
TrinityCore
|
Inheritance diagram for npc_headless_horseman_head:Public Member Functions | |
| npc_headless_horseman_head (Creature *creature) | |
| void | JustAppeared () override |
| void | HandleInitialSetup () |
| void | JustReachedHome () override |
| void | DoAction (int32 id) override |
| void | SetGUID (ObjectGuid const &guid, int32 id) override |
| void | HandleStartPhase () |
| void | JustDied (Unit *) override |
| void | UpdateAI (uint32 diff) override |
Public Member Functions inherited from PassiveAI | |
| PassiveAI (Creature *creature, uint32 scriptId={}) noexcept | |
| void | MoveInLineOfSight (Unit *) override |
| void | AttackStart (Unit *) override |
| == Triggered Actions Requested ================== | |
| void | UpdateAI (uint32) 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 | 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 | SpellHit (WorldObject *, SpellInfo const *) |
| 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 | MovementInform (uint32, uint32) |
| void | OnCharmed (bool isNew) override |
| 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 | PassengerBoarded (Unit *, int8, bool) |
| == Fields ======================================= | |
| 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 void | Reset () |
| virtual uint32 | GetData (uint32 id) const |
| virtual void | SetData (uint32 id, uint32 value) |
| 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 | DamageTaken (Unit *, uint32 &, DamageEffectType, SpellInfo const *) |
| 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 | |
| InstanceScript * | _instance |
| EventMap | _events |
| uint8 | _phase |
Additional Inherited Members | |
Static Public Member Functions inherited from PassiveAI | |
| static int32 | Permissible (Creature const *) |
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 191 of file boss_headless_horseman.cpp.
|
inline |
Definition at line 193 of file boss_headless_horseman.cpp.
References Creature::SetDisplayFromModel().
|
inlineoverridevirtual |
Reimplemented from UnitAI.
Definition at line 219 of file boss_headless_horseman.cpp.
References _events, _phase, ACTION_HEAD_HP_34, ACTION_HEAD_HP_67, ACTION_HEAD_START_HEAD_PHASE, UnitAI::DoCastSelf(), EVENT_START_HEAD_DELAYED, EVENT_STOP_HEAD_PHASE, CreatureAI::me, PHASE_1, PHASE_2, Unit::RemoveAurasDueToSpell(), EventMap::ScheduleEvent(), SPELL_HEADLESS_HORSEMAN_C_HEAD_PAUSE, SPELL_HEADLESS_HORSEMAN_C_HEAD_PERIODIC, and SPELL_HEADLESS_HORSEMAN_C_HEAL_BODY.
|
inline |
Definition at line 203 of file boss_headless_horseman.cpp.
References _events, _phase, UnitAI::DoCastSelf(), CreatureAI::me, PHASE_1, EventMap::SetPhase(), Unit::SetUninteractible(), and SPELL_HEADLESS_HORSEMAN_C_HEAD_STUN.
Referenced by JustAppeared(), and JustReachedHome().
|
inline |
Definition at line 259 of file boss_headless_horseman.cpp.
References _phase, UnitAI::DoCastSelf(), Unit::GetMotionMaster(), CreatureAI::me, MotionMaster::MoveRandom(), PHASE_1, PHASE_2, PHASE_3, Unit::RemoveAurasDueToSpell(), SAY_REQUEST_BODY, Unit::SetUninteractible(), SPELL_HEADLESS_HORSEMAN_C_COMMAND_REQUEST_BODY, SPELL_HEADLESS_HORSEMAN_C_HEAD_PERIODIC, SPELL_HEADLESS_HORSEMAN_C_HEAD_STUN, SPELL_HEADLESS_HORSEMAN_C_HEAD_VISUAL, and SPELL_HEADLESS_HORSEMAN_SPEAKS.
Referenced by UpdateAI().
|
inlineoverridevirtual |
Reimplemented from CreatureAI.
Definition at line 198 of file boss_headless_horseman.cpp.
References HandleInitialSetup().
|
inlineoverridevirtual |
Reimplemented from CreatureAI.
Definition at line 287 of file boss_headless_horseman.cpp.
References _events, UnitAI::DoCastSelf(), EVENT_RAIN_OF_TREATS, PHASE_DEAD, EventMap::ScheduleEvent(), EventMap::SetPhase(), and SPELL_HEADLESS_HORSEMAN_C_HEAD_IS_DEAD.
|
inlineoverridevirtual |
Reimplemented from CreatureAI.
Definition at line 211 of file boss_headless_horseman.cpp.
References _events, MotionMaster::Clear(), Unit::GetMotionMaster(), HandleInitialSetup(), CreatureAI::JustReachedHome(), CreatureAI::me, and EventMap::Reset().
|
inlineoverridevirtual |
Reimplemented from UnitAI.
Definition at line 250 of file boss_headless_horseman.cpp.
References ACTION_HEAD_PLAYER_TEXT, UnitAI::DoCast(), ObjectAccessor::GetUnit(), CreatureAI::me, and SPELL_HEADLESS_HORSEMAN_C_SUMMONING_RHYME_AURA.
|
inlineoverridevirtual |
Implements UnitAI.
Definition at line 294 of file boss_headless_horseman.cpp.
References _events, _instance, MotionMaster::Clear(), DATA_HEADLESS_HORSEMAN, DATA_PREPARE_RESET, UnitAI::DoCast(), UnitAI::DoCastSelf(), EVENT_RAIN_OF_TREATS, EVENT_START_HEAD_DELAYED, EVENT_STOP_HEAD_PHASE, EventMap::ExecuteEvent(), InstanceScript::GetCreature(), Unit::GetMotionMaster(), GO_LOOSELY_TURNED_SOIL, GO_PUMPKIN_SHRINE, GOPumpkinSpawnPosition, GOPumpkinSpawnQuat, GOSoilSpawnPosition, GOSoilSpawnQuat, HandleStartPhase(), Unit::HasUnitState(), EventMap::IsInPhase(), CreatureAI::me, PHASE_DEAD, Unit::RemoveAllAttackers(), Unit::RemoveAurasDueToSpell(), Unit::RemoveGameObject(), ZoneScript::SetData(), Unit::SetUninteractible(), SPELL_HEADLESS_HORSEMAN_C_HEAD_STUN, SPELL_HEADLESS_HORSEMAN_C_HEAD_VISUAL, SPELL_HEADLESS_HORSEMAN_C_RETURN_HEAD, SPELL_RAIN_OF_TREATS, WorldObject::SummonGameObject(), UNIT_STATE_CASTING, EventMap::Update(), and CreatureAI::UpdateVictim().
|
private |
Definition at line 340 of file boss_headless_horseman.cpp.
Referenced by DoAction(), HandleInitialSetup(), JustDied(), JustReachedHome(), and UpdateAI().
|
private |
Definition at line 339 of file boss_headless_horseman.cpp.
Referenced by UpdateAI().
|
private |
Definition at line 341 of file boss_headless_horseman.cpp.
Referenced by DoAction(), HandleInitialSetup(), and HandleStartPhase().