![]() |
TrinityCore
|
Inheritance diagram for npc_redridge_subdued_canyon_ettin:Public Member Functions | |
| npc_redridge_subdued_canyon_ettin (Creature *creature) | |
| void | Reset () override |
| void | OnDespawn () override |
| void | SpellHit (WorldObject *caster, SpellInfo const *spell) override |
| void | UpdateAI (uint32 diff) override |
| void | MovementInform (uint32 movementType, uint32 pointId) override |
| void | WaypointPathEnded (uint32, uint32 pathId) 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 () |
| void | OnCharmed (bool isNew) override |
| virtual void | JustReachedHome () |
| void | DoZoneInCombat () |
| virtual void | ReceiveEmote (Player *, uint32) |
| virtual void | OwnerAttackedBy (Unit *attacker) |
| virtual void | OwnerAttacked (Unit *target) |
| void | AttackStart (Unit *victim) override |
| == Triggered Actions Requested ================== | |
| 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 | 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 | DoAction (int32 param) |
| 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 | 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 | |
| EventMap | _events |
| ObjectGuid | _boulderGUID |
Additional Inherited Members | |
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 () |
| virtual void | MoveInLineOfSight (Unit *) |
| 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 501 of file zone_redridge_mountains.cpp.
|
inline |
Definition at line 503 of file zone_redridge_mountains.cpp.
|
inlineoverridevirtual |
Reimplemented from CreatureAI.
Definition at line 581 of file zone_redridge_mountains.cpp.
References _boulderGUID, _events, ACTION_OSLOW_GET_UP, WorldObject::CastSpell(), EVENT_ETTIN_LINE_1, WorldObject::FindNearestCreature(), CreatureAI::me, NPC_BRIDGE_WORKER_DANIEL, NPC_HUGE_BOULDER, POINT_MOTION_TYPE, POINT_NEAR_BOULDER, EventMap::ScheduleEvent(), Unit::SetFacingToObject(), and SPELL_LIFT_HUGE_BOULDER.
|
inlineoverridevirtual |
Reimplemented from UnitAI.
Definition at line 511 of file zone_redridge_mountains.cpp.
References WorldObject::GetOwner(), CreatureAI::me, Unit::RemoveAurasDueToSpell(), and SPELL_CANYON_ETTIN_SPAWN_SPELL.
|
inlineoverridevirtual |
Reimplemented from UnitAI.
Definition at line 505 of file zone_redridge_mountains.cpp.
References _events, CreatureAI::me, REACT_PASSIVE, EventMap::Reset(), and Creature::SetReactState().
|
inlineoverridevirtual |
Reimplemented from CreatureAI.
Definition at line 520 of file zone_redridge_mountains.cpp.
References EttinNearBoulderPosition, ForceWalk, BaseEntity::GetGUID(), Unit::GetMotionMaster(), ObjectAccessor::GetPlayer(), SpellInfo::Id, BaseEntity::IsPlayer(), CreatureAI::me, MotionMaster::MovePoint(), NPC_FOREMAN_OSLOW, POINT_NEAR_BOULDER, SPELL_BOULDER_AURA, and SPELL_DESPAWN_KILL_CREDIT.
|
inlineoverridevirtual |
Implements UnitAI.
Definition at line 539 of file zone_redridge_mountains.cpp.
References _boulderGUID, _events, ACTION_COWER, ACTION_DONE, WorldObject::CastSpell(), EVENT_ETTIN_LINE_1, EVENT_ETTIN_LINE_2, EVENT_MOVE_TO_WATER, EVENT_PATH_AWAY, EVENT_THROW_BOULDER, EventMap::ExecuteEvent(), ObjectAccessor::GetCreature(), Unit::GetMotionMaster(), CreatureAI::me, MotionMaster::MovePath(), PATH_ETTIN_TO_WATER, PATH_ETTIN_UP_HILL, EventMap::ScheduleEvent(), SPELL_EJECT_PASSENGER_1, TALK_BYE, TALK_NOT_SO_HEAVY, TALK_THROW_IN_WATER, TALK_WHERE_THROW, and EventMap::Update().
|
inlineoverridevirtual |
Reimplemented from CreatureAI.
Definition at line 602 of file zone_redridge_mountains.cpp.
References _events, WorldObject::CastSpell(), EVENT_THROW_BOULDER, CreatureAI::me, PATH_ETTIN_TO_WATER, PATH_ETTIN_UP_HILL, EventMap::ScheduleEvent(), SPELL_CANYON_ETTIN_DESPAWN, and SPELL_DESPAWN_ETTIN.
|
private |
Definition at line 617 of file zone_redridge_mountains.cpp.
Referenced by MovementInform(), and UpdateAI().
|
private |
Definition at line 616 of file zone_redridge_mountains.cpp.
Referenced by MovementInform(), Reset(), UpdateAI(), and WaypointPathEnded().