![]() |
TrinityCore
|
Inheritance diagram for npc_redridge_huge_boulder:Public Member Functions | |
| npc_redridge_huge_boulder (Creature *creature) | |
| void | Reset () override |
| void | SpellHit (WorldObject *, SpellInfo const *spell) override |
| void | UpdateAI (uint32 diff) override |
| void | DoAction (int32 const param) 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 | MovementInform (uint32, uint32) |
| 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 | 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 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 | 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 | _oslowGUID |
| ObjectGuid | _alexGUID |
| ObjectGuid | _trentGUID |
| ObjectGuid | _dmitriGUID |
| ObjectGuid | _jessGUID |
| ObjectGuid | _danielGUID |
| ObjectGuid | _matthewGUID |
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 219 of file zone_redridge_mountains.cpp.
|
inline |
Definition at line 221 of file zone_redridge_mountains.cpp.
|
inlineoverridevirtual |
Reimplemented from UnitAI.
Definition at line 466 of file zone_redridge_mountains.cpp.
References _events, ACTION_COWER, ACTION_DONE, ACTION_OSLOW_GET_UP, EVENT_BRIDGE_WORKERS_COWER, EVENT_DONE, EVENT_OSLOW_GET_UP, and EventMap::ScheduleEvent().
|
inlineoverridevirtual |
Reimplemented from UnitAI.
Definition at line 223 of file zone_redridge_mountains.cpp.
References _alexGUID, _danielGUID, _dmitriGUID, _events, _jessGUID, _matthewGUID, _oslowGUID, _trentGUID, ObjectGuid::Clear(), EVENT_STORE_GUIDS, EventMap::Reset(), and EventMap::ScheduleEvent().
|
inlineoverridevirtual |
Reimplemented from CreatureAI.
Definition at line 236 of file zone_redridge_mountains.cpp.
References _events, EVENT_REPOSITION, SpellInfo::Id, EventMap::Reset(), EventMap::ScheduleEvent(), and SPELL_LIFT_BOULDER_RIDE.
|
inlineoverridevirtual |
Implements UnitAI.
Definition at line 245 of file zone_redridge_mountains.cpp.
References _alexGUID, _danielGUID, _dmitriGUID, _events, _jessGUID, _matthewGUID, _oslowGUID, _trentGUID, Creature::AI(), AlexRepositionPos, DanielRepositionPos, Creature::DespawnOrUnsummon(), DmitriRepositionPos, EMOTE_STATE_COWER, EMOTE_STATE_STUN, EVENT_ALEX_IDLE_TALK, EVENT_ALEX_SAY_PUSH, EVENT_BRIDGE_WORKERS_COWER, EVENT_DONE, EVENT_MATTHEW_PUSH_RESPONSE, EVENT_OSLOW_GET_UP, EVENT_OSLOW_IDLE_TALK, EVENT_OSLOW_STUN, EVENT_REPOSITION, EVENT_STORE_GUIDS, EVENT_WORKERS_RESPONSE, EventMap::ExecuteEvent(), WorldObject::FindNearestCreature(), ObjectAccessor::GetCreature(), Object::GetEntry(), Position::GetOrientation(), JessRepositionPos, MatthewRepositionPos, CreatureAI::me, NPC_BRIDGE_WORKER_ALEX, NPC_BRIDGE_WORKER_DANIEL, NPC_BRIDGE_WORKER_DMITRI, NPC_BRIDGE_WORKER_JESS, NPC_BRIDGE_WORKER_MATTHEW, NPC_BRIDGE_WORKER_TRENT, NPC_FOREMAN_OSLOW, Trinity::Containers::RandomResize(), EventMap::Repeat(), EventMap::Reset(), EventMap::ScheduleEvent(), CreatureAI::Talk(), TALK_ALEX_DAMN, TALK_ALEX_HEAVE, TALK_ALEX_PUSH, TALK_ALEX_SCARED, TALK_DANIEL_SCARED, TALK_DMITRI_SCARED, TALK_JESS_SCARED, TALK_MATTHEW_IM_PUSHING, TALK_MATTHEW_SCARED, TALK_OSLOW_IDLE, TALK_TRENT_SCARED, TALK_WORKERS_HO, TrentRepositionPos, UNIT_STAND_STATE_STAND, EventMap::Update(), and urand().
|
private |
Definition at line 490 of file zone_redridge_mountains.cpp.
Referenced by Reset(), and UpdateAI().
|
private |
Definition at line 494 of file zone_redridge_mountains.cpp.
Referenced by Reset(), and UpdateAI().
|
private |
Definition at line 492 of file zone_redridge_mountains.cpp.
Referenced by Reset(), and UpdateAI().
|
private |
Definition at line 488 of file zone_redridge_mountains.cpp.
Referenced by DoAction(), Reset(), SpellHit(), and UpdateAI().
|
private |
Definition at line 493 of file zone_redridge_mountains.cpp.
Referenced by Reset(), and UpdateAI().
|
private |
Definition at line 495 of file zone_redridge_mountains.cpp.
Referenced by Reset(), and UpdateAI().
|
private |
Definition at line 489 of file zone_redridge_mountains.cpp.
Referenced by Reset(), and UpdateAI().
|
private |
Definition at line 491 of file zone_redridge_mountains.cpp.
Referenced by Reset(), and UpdateAI().