TrinityCore
|
#include <ScriptedEscortAI.h>
Public Member Functions | |
npc_escortAI (Creature *creature) | |
~npc_escortAI () | |
void | AttackStart (Unit *who) override |
void | MoveInLineOfSight (Unit *who) override |
void | JustDied (Unit *) override |
void | JustRespawned () override |
void | ReturnToLastPoint () |
void | EnterEvadeMode (EvadeReason=EVADE_REASON_OTHER) override |
void | UpdateAI (uint32 diff) override |
virtual void | UpdateEscortAI (uint32 diff) |
void | MovementInform (uint32, uint32) override |
void | AddWaypoint (uint32 id, float x, float y, float z, uint32 waitTime=0) |
bool | SetNextWaypoint (uint32 pointId, float x, float y, float z, float orientation) |
bool | SetNextWaypoint (uint32 pointId, bool setPosition=true, bool resetWaypointsOnFail=true) |
bool | GetWaypointPosition (uint32 pointId, float &x, float &y, float &z) |
virtual void | WaypointReached (uint32 pointId)=0 |
virtual void | WaypointStart (uint32) |
void | Start (bool isActiveAttacker=true, bool run=false, ObjectGuid playerGUID=ObjectGuid::Empty, Quest const *quest=NULL, bool instantRespawn=false, bool canLoopPath=false, bool resetWaypoints=true) |
void | SetRun (bool on=true) |
void | SetEscortPaused (bool on) |
bool | HasEscortState (uint32 escortState) |
virtual bool | IsEscorted () const override |
void | SetMaxPlayerDistance (float newMax) |
float | GetMaxPlayerDistance () const |
void | SetDespawnAtEnd (bool despawn) |
void | SetDespawnAtFar (bool despawn) |
bool | GetAttack () const |
void | SetCanAttack (bool attack) |
ObjectGuid | GetEventStarterGUID () const |
Public Member Functions inherited from ScriptedAI | |
ScriptedAI (Creature *creature) | |
virtual | ~ScriptedAI () |
void | AttackStartNoMove (Unit *target) |
void | DamageTaken (Unit *, uint32 &) override |
void | KilledUnit (Unit *) override |
void | JustSummoned (Creature *) override |
void | SummonedCreatureDespawn (Creature *) override |
void | SpellHit (Unit *, SpellInfo const *) override |
void | SpellHitTarget (Unit *, SpellInfo const *) override |
void | OnPossess (bool) |
void | Reset () override |
void | EnterCombat (Unit *) override |
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 | DoResetThreat () |
float | DoGetThreat (Unit *unit) |
void | DoModifyThreatPercent (Unit *unit, int32 pct) |
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) |
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, uint32 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 | IsHeroic () const |
Difficulty | GetDifficulty () const |
bool | Is25ManRaid () const |
template<class T > | |
const T & | DUNGEON_MODE (const T &normal5, const T &heroic10) const |
template<class T > | |
const T & | RAID_MODE (const T &normal10, const T &normal25) const |
template<class T > | |
const T & | RAID_MODE (const T &normal10, const T &normal25, const T &heroic10, const T &heroic25) const |
Public Member Functions inherited from CreatureAI | |
void | Talk (uint8 id, WorldObject const *whisperTarget=nullptr) |
CreatureAI (Creature *creature) | |
virtual | ~CreatureAI () |
void | MoveInLineOfSight_Safe (Unit *who) |
== Reactions At ================================= More... | |
void | TriggerAlert (Unit const *who) const |
virtual bool | CanRespawn () |
virtual void | IsSummonedBy (Unit *) |
virtual void | SummonedCreatureDies (Creature *, Unit *) |
virtual void | AttackedBy (Unit *) |
void | OnCharmed (bool apply) override |
virtual void | JustReachedHome () |
void | DoZoneInCombat (Creature *creature=NULL, float maxRangeToNearestTarget=50.0f) |
virtual void | ReceiveEmote (Player *, uint32) |
virtual void | OwnerAttackedBy (Unit *) |
virtual void | OwnerAttacked (Unit *) |
virtual void | CorpseRemoved (uint32 &) |
== Triggered Actions Requested ================== More... | |
virtual void | PassengerBoarded (Unit *, int8, bool) |
== Fields ======================================= More... | |
virtual void | OnSpellClick (Unit *, bool &) |
virtual bool | CanSeeAlways (WorldObject const *) |
int32 | VisualizeBoundary (uint32 duration, Unit *owner=nullptr, bool fill=false) const |
virtual bool | CheckInRoom () |
CreatureBoundary const * | GetBoundary () 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) |
virtual uint32 | GetData (uint32) const |
virtual void | SetData (uint32, uint32) |
virtual void | SetGUID (ObjectGuid, int32=0) |
virtual ObjectGuid | GetGUID (int32=0) const |
Unit * | SelectTarget (SelectAggroTarget targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, int32 aura=0) |
template<class PREDICATE > | |
Unit * | SelectTarget (SelectAggroTarget targetType, uint32 position, PREDICATE const &predicate) |
void | SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectAggroTarget targetType, float dist=0.0f, bool playerOnly=false, int32 aura=0) |
template<class PREDICATE > | |
void | SelectTargetList (std::list< Unit * > &targetList, PREDICATE const &predicate, uint32 maxTargets, SelectAggroTarget targetType) |
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) |
void | DoCast (uint32 spellId) |
void | DoCast (Unit *victim, uint32 spellId, bool triggered=false) |
void | DoCastVictim (uint32 spellId, bool triggered=false) |
void | DoCastAOE (uint32 spellId, bool triggered=false) |
void | DoMeleeAttackIfReady () |
bool | DoSpellAttackIfReady (uint32 spellId) |
virtual void | sGossipHello (Player *) |
virtual void | sGossipSelect (Player *, uint32, uint32) |
virtual void | sGossipSelectCode (Player *, uint32, uint32, char const *) |
virtual void | sQuestAccept (Player *, Quest const *) |
virtual void | sQuestSelect (Player *, Quest const *) |
virtual void | sQuestReward (Player *, Quest const *, uint32) |
virtual bool | sOnDummyEffect (Unit *, uint32, SpellEffIndex) |
virtual void | sOnGameEvent (bool, uint16) |
Protected Member Functions | |
Player * | GetPlayerForEscort () |
Protected Member Functions inherited from CreatureAI | |
bool | UpdateVictim () |
bool | UpdateVictimWithGaze () |
void | SetGazeOn (Unit *target) |
Creature * | DoSummon (uint32 entry, Position const &pos, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN) |
Creature * | DoSummon (uint32 entry, WorldObject *obj, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN) |
Creature * | DoSummonFlyer (uint32 entry, WorldObject *obj, float flightZ, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN) |
bool | CheckBoundary (Position const *who=nullptr) const |
void | SetBoundary (CreatureBoundary const *boundary) |
bool | _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER) |
Private Member Functions | |
bool | AssistPlayerInCombat (Unit *who) |
bool | IsPlayerOrGroupInRange () |
void | FillPointMovementListForCreature () |
void | AddEscortState (uint32 escortState) |
void | RemoveEscortState (uint32 escortState) |
Private Attributes | |
ObjectGuid | m_uiPlayerGUID |
uint32 | m_uiWPWaitTimer |
uint32 | m_uiPlayerCheckTimer |
uint32 | m_uiEscortState |
float | MaxPlayerDistance |
Quest const * | m_pQuestForEscort |
std::list< Escort_Waypoint > | WaypointList |
std::list< Escort_Waypoint > ::iterator | CurrentWP |
bool | m_bIsActiveAttacker |
bool | m_bIsRunning |
bool | m_bCanInstantRespawn |
bool | m_bCanReturnToStart |
bool | DespawnAtEnd |
bool | DespawnAtFar |
bool | ScriptWP |
bool | HasImmuneToNPCFlags |
Additional Inherited Members | |
Public Types inherited from CreatureAI | |
enum | EvadeReason { EVADE_REASON_NO_HOSTILES, EVADE_REASON_BOUNDARY, EVADE_REASON_SEQUENCE_BREAK, EVADE_REASON_OTHER } |
Static Public Member Functions inherited from UnitAI | |
static void | FillAISpellInfo () |
Public Attributes inherited from ScriptedAI | |
bool | IsFleeing |
Static Public Attributes inherited from UnitAI | |
static AISpellInfoType * | AISpellInfo |
Protected Attributes inherited from CreatureAI | |
Creature *const | me |
CreatureBoundary const * | _boundary |
Protected Attributes inherited from UnitAI | |
Unit *const | me |
|
explicit |
|
inlineprivate |
|
overridevirtual |
Reimplemented from ScriptedAI.
Reimplemented in npc_highlord_darion_mograine::npc_highlord_darion_mograineAI, npc_arthas::npc_arthasAI, and npc_icefang::npc_icefangAI.
|
overridevirtual |
Reimplemented from CreatureAI.
Reimplemented in npc_highlord_darion_mograine::npc_highlord_darion_mograineAI, npc_icefang::npc_icefangAI, npc_onyx_flamecaller::npc_onyx_flamecallerAI, npc_ancestral_wolf::npc_ancestral_wolfAI, and hyjalAI.
|
private |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inlineoverridevirtual |
Reimplemented from CreatureAI.
|
private |
|
overridevirtual |
Reimplemented from ScriptedAI.
Reimplemented in npc_bonker_togglevolt::npc_bonker_togglevoltAI, npc_mootoo_the_younger::npc_mootoo_the_youngerAI, npc_gargoyle::npc_gargoyleAI, npc_frost_wyrm::npc_frost_wyrmAI, npc_thassarian::npc_thassarianAI, npc_maxx_a_million_escort::npc_maxx_a_million_escortAI, npc_argent_soldier::npc_argent_soldierAI, npc_bessy::npc_bessyAI, npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI, npc_kurenai_captive::npc_kurenai_captiveAI, npc_isla_starmane::npc_isla_starmaneAI, npc_arthas::npc_arthasAI, npc_icefang::npc_icefangAI, npc_engineer_helice::npc_engineer_heliceAI, npc_lesser_doomguard::npc_lesser_doomguardAI, npc_muglash::npc_muglashAI, npc_disciple_of_naralex::npc_disciple_of_naralexAI, boss_ambassador_hellmaw::boss_ambassador_hellmawAI, hyjalAI, npc_willix::npc_willixAI, npc_maghar_captive::npc_maghar_captiveAI, boss_azgalor::boss_azgalorAI, boss_anetheron::boss_anetheronAI, boss_kazrogal::boss_kazrogalAI, boss_rage_winterchill::boss_rage_winterchillAI, npc_apothecary_hanes::npc_Apothecary_HanesAI, npc_injured_goblin::npc_injured_goblinAI, and hyjal_trashAI.
|
overridevirtual |
Reimplemented from CreatureAI.
|
overridevirtual |
Reimplemented from CreatureAI.
Reimplemented in npc_highlord_darion_mograine::npc_highlord_darion_mograineAI, npc_kservant::npc_kservantAI, npc_custodian_of_time::npc_custodian_of_timeAI, npc_skywing::npc_skywingAI, npc_lesser_doomguard::npc_lesser_doomguardAI, hyjalAI, and boss_ambassador_hellmaw::boss_ambassador_hellmawAI.
Reimplemented from CreatureAI.
|
inlineprivate |
void npc_escortAI::ReturnToLastPoint | ( | ) |
|
inline |
|
inline |
|
inline |
void npc_escortAI::SetEscortPaused | ( | bool | on | ) |
|
inline |
bool npc_escortAI::SetNextWaypoint | ( | uint32 | pointId, |
bool | setPosition = true , |
||
bool | resetWaypointsOnFail = true |
||
) |
void npc_escortAI::Start | ( | bool | isActiveAttacker = true , |
bool | run = false , |
||
ObjectGuid | playerGUID = ObjectGuid::Empty , |
||
Quest const * | quest = NULL , |
||
bool | instantRespawn = false , |
||
bool | canLoopPath = false , |
||
bool | resetWaypoints = true |
||
) |
|
overridevirtual |
Reimplemented from ScriptedAI.
Reimplemented in npc_gargoyle::npc_gargoyleAI, npc_scarlet_miner::npc_scarlet_minerAI, npc_frost_wyrm::npc_frost_wyrmAI, npc_garments_of_quests::npc_garments_of_questsAI, npc_fel_stalker::npc_fel_stalkerAI, npc_mimirons_inferno::npc_mimirons_infernoAI, npc_crypt_fiend::npc_crypt_fiendAI, npc_thassarian::npc_thassarianAI, npc_banshee::npc_bansheeAI, npc_earthmender_wilda::npc_earthmender_wildaAI, npc_necromancer::npc_necromancerAI, npc_rocknot::npc_rocknotAI, npc_ghoul::npc_ghoulAI, npc_maxx_a_million_escort::npc_maxx_a_million_escortAI, npc_taretha::npc_tarethaAI, npc_highlord_darion_mograine::npc_highlord_darion_mograineAI, npc_arthas::npc_arthasAI, npc_argent_soldier::npc_argent_soldierAI, npc_lurgglbr::npc_lurgglbrAI, npc_abomination::npc_abominationAI, npc_kurenai_captive::npc_kurenai_captiveAI, npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI, npc_giant_infernal::npc_giant_infernalAI, npc_demolitionist_legoso::npc_demolitionist_legosoAI, npc_black_knight_skeletal_gryphon::npc_black_knight_skeletal_gryphonAI, npc_icefang::npc_icefangAI, npc_engineer_helice::npc_engineer_heliceAI, npc_koltira_deathweaver::npc_koltira_deathweaverAI, npc_muglash::npc_muglashAI, npc_custodian_of_time::npc_custodian_of_timeAI, npc_barnes::npc_barnesAI, npc_skywing::npc_skywingAI, npc_lesser_doomguard::npc_lesser_doomguardAI, generic_vehicleAI_toc5::generic_vehicleAI_toc5AI, npc_grimstone::npc_grimstoneAI, npc_disciple_of_naralex::npc_disciple_of_naralexAI, npc_maghar_captive::npc_maghar_captiveAI, npc_scarlet_trainee::npc_scarlet_traineeAI, hyjalAI, boss_azgalor::boss_azgalorAI, npc_professor_phizzlethorpe::npc_professor_phizzlethorpeAI, npc_ruul_snowhoof::npc_ruul_snowhoofAI, boss_anetheron::boss_anetheronAI, boss_kazrogal::boss_kazrogalAI, boss_rage_winterchill::boss_rage_winterchillAI, npc_injured_goblin::npc_injured_goblinAI, and hyjal_trashAI.
|
virtual |
Reimplemented in npc_bonker_togglevolt::npc_bonker_togglevoltAI, npc_crok_scourgebane::npc_crok_scourgebaneAI, violet_hold_trashAI, npc_wizzlecrank_shredder::npc_wizzlecrank_shredderAI, npc_ranshalla::npc_ranshallaAI, npc_brann_hos::npc_brann_hosAI, npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI, npc_onyx_flamecaller::npc_onyx_flamecallerAI, boss_ambassador_hellmaw::boss_ambassador_hellmawAI, and npc_apothecary_hanes::npc_Apothecary_HanesAI.
|
pure virtual |
Implemented in npc_bonker_togglevolt::npc_bonker_togglevoltAI, npc_mootoo_the_younger::npc_mootoo_the_youngerAI, npc_gargoyle::npc_gargoyleAI, npc_scarlet_miner::npc_scarlet_minerAI, npc_frost_wyrm::npc_frost_wyrmAI, npc_garments_of_quests::npc_garments_of_questsAI, npc_fel_stalker::npc_fel_stalkerAI, npc_crok_scourgebane::npc_crok_scourgebaneAI, npc_mimirons_inferno::npc_mimirons_infernoAI, npc_crypt_fiend::npc_crypt_fiendAI, violet_hold_trashAI, npc_thassarian::npc_thassarianAI, npc_banshee::npc_bansheeAI, npc_necromancer::npc_necromancerAI, npc_earthmender_wilda::npc_earthmender_wildaAI, npc_rocknot::npc_rocknotAI, npc_demolitionist_legoso::npc_demolitionist_legosoAI, npc_ghoul::npc_ghoulAI, npc_maxx_a_million_escort::npc_maxx_a_million_escortAI, npc_akuno::npc_akunoAI, npc_taretha::npc_tarethaAI, npc_lurgglbr::npc_lurgglbrAI, npc_bessy::npc_bessyAI, npc_wizzlecrank_shredder::npc_wizzlecrank_shredderAI, npc_abomination::npc_abominationAI, npc_argent_soldier::npc_argent_soldierAI, npc_kurenai_captive::npc_kurenai_captiveAI, npc_highlord_darion_mograine::npc_highlord_darion_mograineAI, npc_arthas::npc_arthasAI, npc_giant_infernal::npc_giant_infernalAI, npc_isla_starmane::npc_isla_starmaneAI, npc_ranshalla::npc_ranshallaAI, npc_OOX17::npc_OOX17AI, npc_black_knight_skeletal_gryphon::npc_black_knight_skeletal_gryphonAI, npc_magwin::npc_magwinAI, npc_icefang::npc_icefangAI, npc_kayra_longmane::npc_kayra_longmaneAI, npc_brann_hos::npc_brann_hosAI, npc_kservant::npc_kservantAI, npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI, npc_wounded_blood_elf::npc_wounded_blood_elfAI, npc_engineer_helice::npc_engineer_heliceAI, npc_koltira_deathweaver::npc_koltira_deathweaverAI, npc_onyx_flamecaller::npc_onyx_flamecallerAI, npc_muglash::npc_muglashAI, npc_lesser_doomguard::npc_lesser_doomguardAI, npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI, npc_skywing::npc_skywingAI, npc_morridune::npc_morriduneAI, generic_vehicleAI_toc5::generic_vehicleAI_toc5AI, npc_plaguehound_tracker::npc_plaguehound_trackerAI, npc_custodian_of_time::npc_custodian_of_timeAI, npc_grimstone::npc_grimstoneAI, npc_barnes::npc_barnesAI, npc_ancestral_wolf::npc_ancestral_wolfAI, npc_scarlet_trainee::npc_scarlet_traineeAI, npc_disciple_of_naralex::npc_disciple_of_naralexAI, hyjalAI, npc_maghar_captive::npc_maghar_captiveAI, npc_gilthares::npc_giltharesAI, npc_apothecary_hanes::npc_Apothecary_HanesAI, npc_shadowfang_prisoner::npc_shadowfang_prisonerAI, boss_azgalor::boss_azgalorAI, boss_anetheron::boss_anetheronAI, boss_kazrogal::boss_kazrogalAI, boss_rage_winterchill::boss_rage_winterchillAI, boss_ambassador_hellmaw::boss_ambassador_hellmawAI, npc_ruul_snowhoof::npc_ruul_snowhoofAI, npc_oox09hl::npc_oox09hlAI, npc_tapoke_slim_jahn::npc_tapoke_slim_jahnAI, npc_emily::npc_emilyAI, npc_professor_phizzlethorpe::npc_professor_phizzlethorpeAI, npc_deathstalker_erland::npc_deathstalker_erlandAI, npc_ranger_lilatha::npc_ranger_lilathaAI, npc_willix::npc_willixAI, and npc_injured_goblin::npc_injured_goblinAI.
|
inlinevirtual |
Reimplemented in npc_crok_scourgebane::npc_crok_scourgebaneAI, npc_wizzlecrank_shredder::npc_wizzlecrank_shredderAI, and npc_oox09hl::npc_oox09hlAI.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |