AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "PassiveAI.h"
Public Member Functions | |
NullCreatureAI (Creature *c) | |
void | MoveInLineOfSight (Unit *) override |
void | AttackStart (Unit *) override |
void | UpdateAI (uint32) override |
Use to start attacking a target. Called just before JustEngagedWith() More... | |
void | EnterEvadeMode (EvadeReason) override |
void | OnCharmed (bool) override |
Called when unit is charmed. More... | |
Public Member Functions inherited from CreatureAI | |
void | Talk (uint8 id, WorldObject const *whisperTarget=nullptr, Milliseconds delay=0s) |
Causes the creature to talk/say the text assigned to their entry in the creature_text database table. More... | |
void | Talk (uint8 id, Milliseconds delay) |
CreatureAI (Creature *creature) | |
~CreatureAI () override | |
void | MoveCircleChecks () |
void | MoveBackwardsChecks () |
void | MoveInLineOfSight_Safe (Unit *who) |
== Reactions At ================================= More... | |
void | TriggerAlert (Unit const *who) const |
virtual bool | CanRespawn () |
virtual void | EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER) |
virtual void | JustEngagedWith (Unit *) |
Called for reaction when initially engaged. More... | |
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 | SummonedCreatureDespawnAll () |
virtual void | SummonedCreatureEvade (Creature *) |
virtual void | SpellHit (Unit *, SpellInfo const *) |
virtual void | SpellHitTarget (Unit *, SpellInfo const *) |
virtual void | AttackedBy (Unit *) |
virtual bool | IsEscorted () |
virtual void | JustRespawned () |
virtual void | MovementInform (uint32, uint32) |
virtual void | PathEndReached (uint32) |
void | OnCharmed (bool apply) override |
Called when unit is charmed. More... | |
virtual void | JustReachedHome () |
void | DoZoneInCombat (Creature *creature=nullptr, float maxRangeToNearestTarget=250.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 bool | BeforeSpellClick (Unit *) |
virtual void | OnSpellClick (Unit *, bool &) |
virtual bool | CanSeeAlways (WorldObject const *) |
virtual bool | CanBeSeen (Player const *) |
virtual bool | CanAlwaysBeDetectable (WorldObject const *) |
virtual void | PetStopAttack () |
virtual bool | CheckInRoom () |
CreatureBoundary const * | GetBoundary () const |
void | SetBoundary (CreatureBoundary const *boundary, bool negativeBoundaries=false) |
bool | IsInBoundary (Position const *who=nullptr) const |
virtual void | CalculateThreat (Unit *, float &, SpellInfo const *) |
virtual bool | OnTeleportUnreacheablePlayer (Player *) |
virtual void | OnAuraRemove (AuraApplication *, AuraRemoveMode) |
Public Member Functions inherited from UnitAI | |
UnitAI (Unit *unit) | |
virtual | ~UnitAI () |
virtual bool | CanAIAttack (Unit const *) const |
virtual void | AttackStart (Unit *) |
virtual void | UpdateAI (uint32)=0 |
Use to start attacking a target. Called just before JustEngagedWith() More... | |
virtual void | InitializeAI () |
virtual void | Reset () |
virtual void | OnCharmed (bool apply)=0 |
Called when unit is charmed. More... | |
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 (SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0) |
template<class PREDICATE > | |
Unit * | SelectTarget (SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate) |
void | SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0) |
Select the best (up to) <num> targets (in <targetType> order) from the threat list that fulfill the following: More... | |
template<class PREDICATE > | |
void | SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate) |
virtual void | JustEnteredCombat (Unit *) |
Called when the unit enters combat. More... | |
virtual void | JustExitedCombat () |
Called when the unit leaves combat. More... | |
virtual void | DamageDealt (Unit *, uint32 &, DamageEffectType) |
Called at any Damage to any victim (before damage apply) More... | |
virtual void | DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask) |
Called at any Damage from any attacker (before damage apply) More... | |
virtual void | HealReceived (Unit *, uint32 &) |
Called when the creature receives heal. More... | |
virtual void | OnPowerUpdate (Powers, int32, int32, uint32) |
Called when the creature power updates. More... | |
virtual void | HealDone (Unit *, uint32 &) |
Called when the unit heals. More... | |
virtual void | OnCalculateMeleeDamageReceived (uint32 &, Unit *) |
Called during damage calculations. More... | |
virtual void | OnCalculateSpellDamageReceived (int32 &, Unit *) |
virtual void | OnCalculatePeriodicTickReceived (uint32 &, Unit *) |
Called during calculation when receiving periodic healing or damage (DoT or HoT) More... | |
void | AttackStartCaster (Unit *victim, float dist) |
SpellCastResult | DoAddAuraToAllHostilePlayers (uint32 spellid) |
SpellCastResult | DoCast (uint32 spellId) |
SpellCastResult | DoCast (Unit *victim, uint32 spellId, bool triggered=false) |
SpellCastResult | DoCastSelf (uint32 spellId, bool triggered=false) |
SpellCastResult | DoCastToAllHostilePlayers (uint32 spellid, bool triggered=false) |
To specify the caster as target if the spell is self-cast. More... | |
SpellCastResult | DoCastVictim (uint32 spellId, bool triggered=false) |
SpellCastResult | DoCastAOE (uint32 spellId, bool triggered=false) |
SpellCastResult | DoCastRandomTarget (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false, bool withTank=true) |
Cast the spell on a random unit from the threat list. More... | |
SpellCastResult | DoCastMaxThreat (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false) |
Cast spell on the top threat target, which may not be the current victim. More... | |
float | DoGetSpellMaxRange (uint32 spellId, bool positive=false) |
void | DoMeleeAttackIfReady () |
bool | DoSpellAttackIfReady (uint32 spell) |
void | DoSpellAttackToRandomTargetIfReady (uint32 spell, uint32 threatTablePosition=0, float dist=0.f, bool playerOnly=true) |
virtual void | SummonMovementInform (Creature *, uint32, uint32) |
Called when a summon reaches a waypoint or point movement finished. More... | |
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 | sQuestComplete (Player *, Quest const *) |
virtual void | sQuestReward (Player *, Quest const *, uint32) |
virtual void | sOnGameEvent (bool, uint16) |
virtual std::string | GetDebugInfo () const |
Static Public Member Functions | |
static int32 | Permissible (Creature const *creature) |
Static Public Member Functions inherited from CreatureAI | |
static bool | IsInBounds (CreatureBoundary const &boundary, Position const *who) |
Static Public Member Functions inherited from UnitAI | |
static void | FillAISpellInfo () |
|
explicit |
References CreatureAI::me, REACT_PASSIVE, and Creature::SetReactState().
|
inlineoverridevirtual |
Reimplemented from UnitAI.
Reimplemented in npc_toc5_player_vehicle::npc_toc5_player_vehicleAI, npc_pos_leader::npc_pos_leaderAI, and npc_ritual_channeler::npc_ritual_channelerAI.
|
inlineoverridevirtual |
Reimplemented from CreatureAI.
|
inlineoverridevirtual |
Reimplemented from CreatureAI.
Reimplemented in npc_toc5_player_vehicle::npc_toc5_player_vehicleAI, npc_pos_leader::npc_pos_leaderAI, npc_brew_bubble, npc_grand_magister_rommath::npc_grand_magister_rommathAI, npc_love_in_air_snivel, npc_brann_radio::npc_brann_radioAI, and npc_ulduar_expedition_commander::npc_ulduar_expedition_commanderAI.
|
inlineoverridevirtual |
Called when unit is charmed.
Implements UnitAI.
Reimplemented in npc_vengeful_spirit, npc_toc5_player_vehicle::npc_toc5_player_vehicleAI, npc_valkyr_shadowguard::npc_valkyr_shadowguardAI, and npc_strangulate_vehicle::npc_strangulate_vehicleAI.
References Unit::HasNpcFlag(), Creature::IsTrigger(), PERMIT_BASE_IDLE, PERMIT_BASE_PROACTIVE, and UNIT_NPC_FLAG_SPELLCLICK.
|
inlineoverridevirtual |
Use to start attacking a target. Called just before JustEngagedWith()
Implements UnitAI.
Reimplemented in npc_madrigosa::npc_madrigosaAI, npc_demonic_vapor_trail::npc_demonic_vapor_trailAI, npc_kiljaeden_controller::npc_kiljaeden_controllerAI, npc_kalecgos_kj::npc_kalecgos_kjAI, npc_singularity::npc_singularityAI, npc_balance_of_light_and_shadow::npc_balance_of_light_and_shadowAI, npc_grand_magister_rommath::npc_grand_magister_rommathAI, npc_ravenclaw_apparition::npc_ravenclaw_apparitionAI, npc_brew_bubble, npc_hallows_end_train_fire, npc_love_in_air_snivel, npc_time_rift, npc_taldaram_flamesphere, npc_halion_controller::npc_halion_controllerAI, npc_toc5_player_vehicle::npc_toc5_player_vehicleAI, npc_frost_sphere::npc_frost_sphereAI, npc_fos_corrupted_soul_fragment::npc_fos_corrupted_soul_fragmentAI, npc_hor_leader::npc_hor_leaderAI, npc_hor_lich_king::npc_hor_lich_kingAI, npc_hor_leader_second::npc_hor_leader_secondAI, boss_krick::boss_krickAI, npc_pos_leader::npc_pos_leaderAI, npc_pos_after_first_boss::npc_pos_after_first_bossAI, npc_pos_tyrannus_events::npc_pos_tyrannus_eventsAI, npc_pos_icicle_trigger::npc_pos_icicle_triggerAI, npc_pos_collapsing_icicle::npc_pos_collapsing_icicleAI, npc_pos_martin_or_gorkun_second::npc_pos_martin_or_gorkun_secondAI, npc_pos_leader_second::npc_pos_leader_secondAI, npc_kinetic_bomb::npc_kinetic_bombAI, npc_coldflame::npc_coldflameAI, npc_bone_spike::npc_bone_spikeAI, npc_ice_tomb::npc_ice_tombAI, npc_valkyr_shadowguard::npc_valkyr_shadowguardAI, npc_strangulate_vehicle::npc_strangulate_vehicleAI, npc_lk_spirit_bomb::npc_lk_spirit_bombAI, npc_frost_freeze_trap::npc_frost_freeze_trapAI, npc_impaling_spear::npc_impaling_spearAI, npc_arthas_teleport_visual::npc_arthas_teleport_visualAI, npc_icc_gauntlet_controller::npc_icc_gauntlet_controllerAI, npc_icc_putricades_trap::npc_icc_putricades_trapAI, boss_grobbulus_poison_cloud::boss_grobbulus_poison_cloudAI, boss_naxxramas_misc::boss_naxxramas_miscAI, npc_power_spark::npc_power_sparkAI, npc_crystal_spike::npc_crystal_spikeAI, npc_algalon_worm_hole::npc_algalon_worm_holeAI, npc_freya_ward::npc_freya_wardAI, npc_hodirs_fury::npc_hodirs_furyAI, npc_thorims_hammer::npc_thorims_hammerAI, npc_storm_beacon_spawn::npc_storm_beacon_spawnAI, boss_flame_leviathan_safety_container::boss_flame_leviathan_safety_containerAI, npc_mechanolift::npc_mechanoliftAI, boss_freya_lifebinder::boss_freya_lifebinderAI, boss_freya_healthy_spore::boss_freya_healthy_sporeAI, boss_freya_nature_bomb::boss_freya_nature_bombAI, npc_ulduar_icicle::npc_ulduar_icicleAI, npc_ulduar_flash_freeze::npc_ulduar_flash_freezeAI, boss_kologarn_pit_kill_bunny, npc_ulduar_magnetic_core::npc_ulduar_magnetic_coreAI, npc_ulduar_bot_summon_trigger::npc_ulduar_bot_summon_triggerAI, npc_ulduar_flames_initial::npc_ulduar_flames_initialAI, npc_ulduar_expedition_engineer::npc_ulduar_expedition_engineerAI, boss_thorim_trap::boss_thorim_trapAI, boss_thorim_pillar::boss_thorim_pillarAI, boss_yoggsaron_brain::boss_yoggsaron_brainAI, boss_yoggsaron_death_orb::boss_yoggsaron_death_orbAI, boss_yoggsaron_keeper, boss_yoggsaron_lich_king::boss_yoggsaron_lich_kingAI, boss_yoggsaron_llane::boss_yoggsaron_llaneAI, boss_yoggsaron_voice::boss_yoggsaron_voiceAI, npc_ulduar_keeper::npc_ulduar_keeperAI, npc_vh_void_sentry::npc_vh_void_sentryAI, npc_vh_teleportation_portal::npc_vh_teleportation_portalAI, npc_sinkhole_kill_credit::npc_sinkhole_kill_creditAI, npc_preparations_for_war_vehicle, npc_q24545_lich_king::npc_q24545_lich_kingAI, npc_infra_green_bomber_generic::npc_infra_green_bomber_genericAI, npc_still_at_it_trigger::npc_still_at_it_triggerAI, npc_feedin_da_goolz::npc_feedin_da_goolzAI, npc_drakuru_shackles::npc_drakuru_shacklesAI, npc_ashtongue_channeler, npc_pet_gen_target_following_bomb, npc_pet_gen_imp_in_a_bottle, npc_pet_gen_wind_rider_cub, npc_pet_gen_fetch_ball, npc_pet_darting_hatchling, trigger_periodic::trigger_periodicAI, npc_demonic_vapor::npc_demonic_vaporAI, npc_orb_carrier::npc_orb_carrierAI, npc_concentrated_ball::npc_concentrated_ballAI, npc_gunship::npc_gunshipAI, boss_maexxna_webwrap::boss_maexxna_webwrapAI, npc_ulduar_mimiron_rocket::npc_ulduar_mimiron_rocketAI, npc_frost_tomb::npc_frost_tombAI, and npc_q24545_vegard_dummy::npc_q24545_vegard_dummyAI.