![]() |
TrinityCore
|
Inheritance diagram for npc_announcer_toc5::npc_announcer_toc5AI:Public Member Functions | |
| npc_announcer_toc5AI (Creature *creature) | |
| void | NextStep (uint32 uiTimerStep, bool bNextStep=true, uint8 uiPhaseStep=0) |
| void | SetData (uint32 uiType, uint32) override |
| void | StartGrandChampionsAttack () |
| void | MovementInform (uint32 uiType, uint32 uiPointId) override |
| void | DoSummonGrandChampion (uint32 uiBoss) |
| void | DoStartArgentChampionEncounter () |
| void | SetGrandChampionsForEncounter () |
| void | SetArgentChampion () |
| void | StartEncounter () |
| void | AggroAllPlayers (Creature *temp) |
| void | UpdateAI (uint32 uiDiff) override |
| void | JustSummoned (Creature *summon) override |
| void | SummonedCreatureDespawn (Creature *summon) override |
| bool | OnGossipHello (Player *player) override |
| bool | OnGossipSelect (Player *player, uint32, uint32 gossipListId) override |
Public Member Functions inherited from ScriptedAI | |
| ScriptedAI (Creature *creature, uint32 scriptId=0) noexcept | |
| virtual | ~ScriptedAI () |
| void | AttackStartNoMove (Unit *target) |
| void | AttackStart (Unit *) override |
| == Triggered Actions Requested ================== | |
| void | DoStartMovement (Unit *target, float distance=0.0f, float angle=0.0f) |
| void | DoStartNoMovement (Unit *target) |
| void | DoStopAttack () |
| void | DoCastSpell (Unit *target, SpellInfo const *spellInfo, bool triggered=false) |
| void | DoPlaySoundToSet (WorldObject *source, uint32 soundId) |
| void | AddThreat (Unit *victim, float amount, Unit *who=nullptr) |
| void | ModifyThreatByPercent (Unit *victim, int32 pct, Unit *who=nullptr) |
| void | ResetThreat (Unit *victim, Unit *who=nullptr) |
| void | ResetThreatList (Unit *who=nullptr) |
| float | GetThreat (Unit const *victim, Unit const *who=nullptr) |
| void | ForceCombatStop (Creature *who, bool reset=true) |
| void | ForceCombatStopForCreatureEntry (uint32 entry, float maxSearchRange=250.0f, bool samePhase=true, bool reset=true) |
| void | ForceCombatStopForCreatureEntry (std::vector< uint32 > creatureEntries, float maxSearchRange=250.0f, bool samePhase=true, bool reset=true) |
| void | DoTeleportTo (float x, float y, float z, uint32 time=0) |
| void | DoTeleportTo (float const pos[4]) |
| void | DoTeleportPlayer (Unit *unit, float x, float y, float z, float o) |
| void | DoTeleportAll (float x, float y, float z, float o) |
| Unit * | DoSelectLowestHpFriendly (float range, uint32 minHPDiff=1) |
| Unit * | DoSelectBelowHpPctFriendlyWithEntry (uint32 entry, float range, uint8 hpPct=1, bool excludeSelf=true) |
| std::list< Creature * > | DoFindFriendlyCC (float range) |
| std::list< Creature * > | DoFindFriendlyMissingBuff (float range, uint32 spellId) |
| Player * | GetPlayerAtMinimumRange (float minRange) |
| Creature * | DoSpawnCreature (uint32 entry, float offsetX, float offsetY, float offsetZ, float angle, uint32 type, Milliseconds despawntime) |
| bool | HealthBelowPct (uint32 pct) const |
| bool | HealthAbovePct (uint32 pct) const |
| SpellInfo const * | SelectSpell (Unit *target, uint32 school, uint32 mechanic, SelectTargetType targets, float rangeMin, float rangeMax, SelectEffect effect) |
| void | SetEquipmentSlots (bool loadDefault, int32 mainHand=EQUIP_NO_CHANGE, int32 offHand=EQUIP_NO_CHANGE, int32 ranged=EQUIP_NO_CHANGE) |
| void | SetCombatMovement (bool allowMovement) |
| bool | IsCombatMovementAllowed () const |
| bool | IsLFR () const |
| bool | IsNormal () const |
| bool | IsHeroic () const |
| bool | IsMythic () const |
| bool | IsMythicPlus () const |
| bool | IsHeroicOrHigher () const |
| bool | IsTimewalking () const |
| Difficulty | GetDifficulty () const |
| bool | Is25ManRaid () const |
| void | SetAggressiveStateAfter (Milliseconds timer, Creature *who=nullptr, bool startCombat=true, Creature *summoner=nullptr, StartCombatArgs const &combatArgs={ }) |
| void | DoAddEvent (Milliseconds timer, BasicEvent *event, WorldObject *who=nullptr) |
| template<class T > | |
| T const & | DUNGEON_MODE (T const &normal5, T const &heroic10) const |
| template<class T > | |
| T const & | RAID_MODE (T const &normal10, T const &normal25) const |
| template<class T > | |
| T const & | RAID_MODE (T const &normal10, T const &normal25, T const &heroic10, T const &heroic25) const |
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 | IsSummonedBy (WorldObject *) |
| 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 | 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) |
| virtual void | CorpseRemoved (uint32 &) |
| == State checks ================================= | |
| virtual Optional< QuestGiverStatus > | GetDialogStatus (Player const *player) |
| == Gossip system ================================ | |
| 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 void | DoAction (int32 param) |
| virtual uint32 | GetData (uint32 id) const |
| 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 |
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 75 of file trial_of_the_champion.cpp.
|
inline |
Definition at line 77 of file trial_of_the_champion.cpp.
References WorldObject::GetInstanceScript(), instance, CreatureAI::me, REACT_PASSIVE, SetArgentChampion(), SetGrandChampionsForEncounter(), Unit::SetNpcFlag(), Creature::SetReactState(), Unit::SetUnitFlag(), uiArgentChampion, uiFirstBoss, uiLesserChampions, uiPhase, uiPosition, uiSecondBoss, uiSummonTimes, uiThirdBoss, uiTimer, UNIT_FLAG_NON_ATTACKABLE, and UNIT_NPC_FLAG_GOSSIP.
|
inline |
Definition at line 374 of file trial_of_the_champion.cpp.
References ScriptedAI::AddThreat(), RefManager< ReferenceType >::begin(), LinkedListHead::empty(), RefManager< ReferenceType >::end(), WorldObject::GetMap(), Position::GetOrientation(), Map::GetPlayers(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), CreatureAI::me, REACT_AGGRESSIVE, Unit::RemoveUnitFlag(), Creature::SetHomePosition(), Creature::SetReactState(), and UNIT_FLAG_NON_ATTACKABLE.
Referenced by SetData(), StartGrandChampionsAttack(), and UpdateAI().
|
inline |
Definition at line 308 of file trial_of_the_champion.cpp.
References Unit::GetMotionMaster(), CreatureAI::me, MotionMaster::MovePoint(), NPC_ARGENT_LIGHWIELDER, NPC_ARGENT_MONK, NPC_PRIESTESS, SpawnPosition, WorldObject::SummonCreature(), and uiArgentChampion.
Referenced by StartEncounter().
|
inline |
Definition at line 198 of file trial_of_the_champion.cpp.
References Champion1List, Champion2List, Champion3List, DATA_GRAND_CHAMPION_1, DATA_GRAND_CHAMPION_2, DATA_GRAND_CHAMPION_3, DATA_GRAND_CHAMPION_VEHICLE_1, DATA_GRAND_CHAMPION_VEHICLE_2, DATA_GRAND_CHAMPION_VEHICLE_3, instance, M_PI, CreatureAI::me, ZoneScript::SetGuidData(), SpawnPosition, WorldObject::SummonCreature(), TEMPSUMMON_CORPSE_DESPAWN, uiSummonTimes, uiVehicle1GUID, uiVehicle2GUID, uiVehicle3GUID, VEHICLE_DARKSPEAR_RAPTOR, VEHICLE_DEATHSTALKER_VESCERI_MOUNT, VEHICLE_ERESSEA_DAWNSINGER_MOUNT, VEHICLE_FORSAKE_WARHORSE, VEHICLE_MOKRA_SKILLCRUSHER_MOUNT, VEHICLE_ORGRIMMAR_WOLF, VEHICLE_RUNOK_WILDMANE_MOUNT, VEHICLE_SILVERMOON_HAWKSTRIDER, VEHICLE_THUNDER_BLUFF_KODO, and VEHICLE_ZUL_TORE_MOUNT.
Referenced by SetData(), and UpdateAI().
|
inlineoverridevirtual |
Reimplemented from CreatureAI.
Definition at line 430 of file trial_of_the_champion.cpp.
References BOSS_GRAND_CHAMPIONS, InstanceScript::GetBossState(), instance, NOT_STARTED, REACT_PASSIVE, Creature::SetReactState(), Unit::SetUnitFlag(), and UNIT_FLAG_NON_ATTACKABLE.
|
inlineoverridevirtual |
Reimplemented from CreatureAI.
Definition at line 189 of file trial_of_the_champion.cpp.
References CreatureAI::me, ORIENTATION, POINT_MOTION_TYPE, and Unit::SetFacingTo().
|
inline |
Definition at line 125 of file trial_of_the_champion.cpp.
References uiPhase, and uiTimer.
Referenced by SetData(), and UpdateAI().
|
inlineoverridevirtual |
Reimplemented from CreatureAI.
Definition at line 458 of file trial_of_the_champion.cpp.
References AddGossipItemFor(), BOSS_ARGENT_CHALLENGE_E, BOSS_ARGENT_CHALLENGE_P, BOSS_BLACK_KNIGHT, BOSS_GRAND_CHAMPIONS, DONE, InstanceScript::GetBossState(), Player::GetGossipTextId(), BaseEntity::GetGUID(), GOSSIP_ACTION_INFO_DEF, GOSSIP_SENDER_MAIN, GOSSIP_START_EVENT1_MID, GOSSIP_START_EVENT1_OID, GOSSIP_START_EVENT2_MID, GOSSIP_START_EVENT2_OID, InitGossipMenuFor(), instance, CreatureAI::me, NOT_STARTED, and SendGossipMenuFor().
|
inlineoverridevirtual |
Reimplemented from CreatureAI.
Definition at line 485 of file trial_of_the_champion.cpp.
References ClearGossipMenuFor(), CloseGossipMenuFor(), GOSSIP_ACTION_INFO_DEF, Player::PlayerTalkClass, and StartEncounter().
|
inline |
Definition at line 337 of file trial_of_the_champion.cpp.
References NPC_EADRIC, NPC_PALETRESS, uiArgentChampion, and urand().
Referenced by npc_announcer_toc5AI().
|
inlineoverridevirtual |
Reimplemented from UnitAI.
Definition at line 134 of file trial_of_the_champion.cpp.
References AggroAllPlayers(), Champion2List, Champion3List, DATA_IN_POSITION, DATA_LESSER_CHAMPIONS_DEFEATED, DATA_MAIN_GATE, DATA_START, DoSummonGrandChampion(), ObjectAccessor::GetCreature(), ObjectAccessor::GetGameObject(), InstanceScript::GetGuidData(), Unit::GetMotionMaster(), InstanceScript::HandleGameObject(), instance, CreatureAI::me, MotionMaster::MovePoint(), NextStep(), StartGrandChampionsAttack(), uiFirstBoss, and uiLesserChampions.
Referenced by StartEncounter(), and SummonedCreatureDespawn().
|
inline |
Definition at line 326 of file trial_of_the_champion.cpp.
References uiFirstBoss, uiSecondBoss, uiThirdBoss, and urand().
Referenced by npc_announcer_toc5AI().
|
inline |
Definition at line 352 of file trial_of_the_champion.cpp.
References BOSS_ARGENT_CHALLENGE_E, BOSS_ARGENT_CHALLENGE_P, BOSS_BLACK_KNIGHT, BOSS_GRAND_CHAMPIONS, DATA_START, DONE, DoStartArgentChampionEncounter(), InstanceScript::GetBossState(), instance, CreatureAI::me, NOT_STARTED, Unit::RemoveNpcFlag(), SetData(), WorldObject::SummonCreature(), UNIT_NPC_FLAG_GOSSIP, and VEHICLE_BLACK_KNIGHT.
Referenced by OnGossipSelect().
|
inline |
Definition at line 175 of file trial_of_the_champion.cpp.
References AggroAllPlayers(), ObjectAccessor::GetCreature(), CreatureAI::me, uiVehicle1GUID, uiVehicle2GUID, and uiVehicle3GUID.
Referenced by SetData().
|
inlineoverridevirtual |
Reimplemented from CreatureAI.
Definition at line 439 of file trial_of_the_champion.cpp.
References DATA_LESSER_CHAMPIONS_DEFEATED, Object::GetEntry(), SetData(), VEHICLE_DARKSPEAR_RAPTOR, VEHICLE_DARNASSIA_NIGHTSABER, VEHICLE_EXODAR_ELEKK, VEHICLE_FORSAKE_WARHORSE, VEHICLE_GNOMEREGAN_MECHANOSTRIDER, VEHICLE_IRONFORGE_RAM, VEHICLE_ORGRIMMAR_WOLF, VEHICLE_SILVERMOON_HAWKSTRIDER, VEHICLE_STORMWIND_STEED, and VEHICLE_THUNDER_BLUFF_KODO.
|
inlineoverridevirtual |
Reimplemented from ScriptedAI.
Definition at line 398 of file trial_of_the_champion.cpp.
References AggroAllPlayers(), Champion1List, DoSummonGrandChampion(), ObjectAccessor::GetCreature(), CreatureAI::me, NextStep(), uiPhase, uiSecondBoss, uiThirdBoss, uiTimer, ScriptedAI::UpdateAI(), and CreatureAI::UpdateVictim().
| GuidList npc_announcer_toc5::npc_announcer_toc5AI::Champion1List |
Definition at line 121 of file trial_of_the_champion.cpp.
Referenced by DoSummonGrandChampion(), and UpdateAI().
| GuidList npc_announcer_toc5::npc_announcer_toc5AI::Champion2List |
Definition at line 122 of file trial_of_the_champion.cpp.
Referenced by DoSummonGrandChampion(), and SetData().
| GuidList npc_announcer_toc5::npc_announcer_toc5AI::Champion3List |
Definition at line 123 of file trial_of_the_champion.cpp.
Referenced by DoSummonGrandChampion(), and SetData().
| InstanceScript* npc_announcer_toc5::npc_announcer_toc5AI::instance |
Definition at line 102 of file trial_of_the_champion.cpp.
Referenced by DoSummonGrandChampion(), JustSummoned(), npc_announcer_toc5AI(), OnGossipHello(), SetData(), and StartEncounter().
| uint32 npc_announcer_toc5::npc_announcer_toc5AI::uiArgentChampion |
Definition at line 108 of file trial_of_the_champion.cpp.
Referenced by DoStartArgentChampionEncounter(), npc_announcer_toc5AI(), and SetArgentChampion().
| uint32 npc_announcer_toc5::npc_announcer_toc5AI::uiFirstBoss |
Definition at line 110 of file trial_of_the_champion.cpp.
Referenced by npc_announcer_toc5AI(), SetData(), and SetGrandChampionsForEncounter().
| uint8 npc_announcer_toc5::npc_announcer_toc5AI::uiLesserChampions |
Definition at line 106 of file trial_of_the_champion.cpp.
Referenced by npc_announcer_toc5AI(), and SetData().
| uint32 npc_announcer_toc5::npc_announcer_toc5AI::uiPhase |
Definition at line 114 of file trial_of_the_champion.cpp.
Referenced by NextStep(), npc_announcer_toc5AI(), and UpdateAI().
| uint8 npc_announcer_toc5::npc_announcer_toc5AI::uiPosition |
Definition at line 105 of file trial_of_the_champion.cpp.
Referenced by npc_announcer_toc5AI().
| uint32 npc_announcer_toc5::npc_announcer_toc5AI::uiSecondBoss |
Definition at line 111 of file trial_of_the_champion.cpp.
Referenced by npc_announcer_toc5AI(), SetGrandChampionsForEncounter(), and UpdateAI().
| uint8 npc_announcer_toc5::npc_announcer_toc5AI::uiSummonTimes |
Definition at line 104 of file trial_of_the_champion.cpp.
Referenced by DoSummonGrandChampion(), and npc_announcer_toc5AI().
| uint32 npc_announcer_toc5::npc_announcer_toc5AI::uiThirdBoss |
Definition at line 112 of file trial_of_the_champion.cpp.
Referenced by npc_announcer_toc5AI(), SetGrandChampionsForEncounter(), and UpdateAI().
| uint32 npc_announcer_toc5::npc_announcer_toc5AI::uiTimer |
Definition at line 115 of file trial_of_the_champion.cpp.
Referenced by NextStep(), npc_announcer_toc5AI(), and UpdateAI().
| ObjectGuid npc_announcer_toc5::npc_announcer_toc5AI::uiVehicle1GUID |
Definition at line 117 of file trial_of_the_champion.cpp.
Referenced by DoSummonGrandChampion(), and StartGrandChampionsAttack().
| ObjectGuid npc_announcer_toc5::npc_announcer_toc5AI::uiVehicle2GUID |
Definition at line 118 of file trial_of_the_champion.cpp.
Referenced by DoSummonGrandChampion(), and StartGrandChampionsAttack().
| ObjectGuid npc_announcer_toc5::npc_announcer_toc5AI::uiVehicle3GUID |
Definition at line 119 of file trial_of_the_champion.cpp.
Referenced by DoSummonGrandChampion(), and StartGrandChampionsAttack().