![]() |
TrinityCore
|
#include <SmartAI.h>
Public Member Functions | |
| ~SmartAI () | |
| SmartAI (Creature *c) | |
| void | StartPath (bool run=false, uint32 path=0, bool repeat=false, Unit *invoker=NULL) |
| bool | LoadPath (uint32 entry) |
| void | PausePath (uint32 delay, bool forced=false) |
| void | StopPath (uint32 DespawnTime=0, uint32 quest=0, bool fail=false) |
| void | EndPath (bool fail=false) |
| void | ResumePath () |
| WayPoint * | GetNextWayPoint () |
| bool | HasEscortState (uint32 uiEscortState) const |
| void | AddEscortState (uint32 uiEscortState) |
| void | RemoveEscortState (uint32 uiEscortState) |
| void | SetAutoAttack (bool on) |
| void | SetCombatMove (bool on) |
| bool | CanCombatMove () |
| void | SetFollow (Unit *target, float dist=0.0f, float angle=0.0f, uint32 credit=0, uint32 end=0, uint32 creditType=0) |
| void | StopFollow () |
| void | SetScript9 (SmartScriptHolder &e, uint32 entry, Unit *invoker) |
| SmartScript * | GetScript () |
| bool | IsEscortInvokerInRange () |
| void | JustRespawned () override |
| void | JustReachedHome () override |
| void | EnterCombat (Unit *enemy) override |
| void | EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER) override |
| void | JustDied (Unit *killer) override |
| void | KilledUnit (Unit *victim) override |
| void | JustSummoned (Creature *creature) override |
| void | AttackStart (Unit *who) override |
| void | MoveInLineOfSight (Unit *who) override |
| void | SpellHit (Unit *unit, const SpellInfo *spellInfo) override |
| void | SpellHitTarget (Unit *target, const SpellInfo *spellInfo) override |
| void | DamageTaken (Unit *doneBy, uint32 &damage) override |
| void | HealReceived (Unit *doneBy, uint32 &addhealth) override |
| void | UpdateAI (uint32 diff) override |
| void | ReceiveEmote (Player *player, uint32 textEmote) override |
| void | MovementInform (uint32 MovementType, uint32 Data) override |
| void | IsSummonedBy (Unit *summoner) override |
| void | DamageDealt (Unit *doneTo, uint32 &damage, DamageEffectType) override |
| void | SummonedCreatureDespawn (Creature *unit) override |
| void | CorpseRemoved (uint32 &respawnDelay) override |
| == Triggered Actions Requested ================== More... | |
| void | UpdateAIWhileCharmed (const uint32 diff) |
| void | PassengerBoarded (Unit *who, int8 seatId, bool apply) override |
| == Fields ======================================= More... | |
| void | InitializeAI () override |
| void | OnCharmed (bool apply) override |
| bool | CanAIAttack (const Unit *who) const override |
| void | DoAction (int32 param=0) override |
| uint32 | GetData (uint32 id=0) const override |
| void | SetData (uint32 id, uint32 value) override |
| void | SetGUID (ObjectGuid guid, int32 id=0) override |
| ObjectGuid | GetGUID (int32 id=0) const override |
| void | MovepointReached (uint32 id) |
| void | SetRun (bool run=true) |
| void | SetFly (bool fly=true) |
| void | SetSwim (bool swim=true) |
| void | SetInvincibilityHpLevel (uint32 level) |
| void | sGossipHello (Player *player) override |
| void | sGossipSelect (Player *player, uint32 menuId, uint32 gossipListId) override |
| void | sGossipSelectCode (Player *player, uint32 menuId, uint32 gossipListId, const char *code) override |
| void | sQuestAccept (Player *player, Quest const *quest) override |
| void | sQuestReward (Player *player, Quest const *quest, uint32 opt) override |
| bool | sOnDummyEffect (Unit *caster, uint32 spellId, SpellEffIndex effIndex) override |
| void | sOnGameEvent (bool start, uint16 eventId) override |
| void | SetDespawnTime (uint32 t) |
| void | StartDespawn () |
| void | OnSpellClick (Unit *clicker, bool &result) override |
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 | SummonedCreatureDies (Creature *, Unit *) |
| virtual void | AttackedBy (Unit *) |
| virtual bool | IsEscorted () const |
| void | DoZoneInCombat (Creature *creature=NULL, float maxRangeToNearestTarget=50.0f) |
| virtual void | OwnerAttackedBy (Unit *) |
| virtual void | OwnerAttacked (Unit *) |
| 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 void | Reset () |
| 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 | 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 | sQuestSelect (Player *, Quest const *) |
Static Public Member Functions | |
| static int | Permissible (const Creature *) |
Static Public Member Functions inherited from UnitAI | |
| static void | FillAISpellInfo () |
Public Attributes | |
| uint32 | mEscortQuestID |
Private Member Functions | |
| void | ReturnToLastOOCPos () |
| void | UpdatePath (const uint32 diff) |
| uint32 | GetWPCount () const |
| bool | AssistPlayerInCombat (Unit *who) |
| void | UpdateDespawn (const uint32 diff) |
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 Attributes inherited from UnitAI | |
| static AISpellInfoType * | AISpellInfo |
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) |
Protected Attributes inherited from CreatureAI | |
| Creature *const | me |
| CreatureBoundary const * | _boundary |
Protected Attributes inherited from UnitAI | |
| Unit *const | me |
|
explicit |
Here is the call graph for this function:
|
inline |
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from UnitAI.
Here is the call graph for this function:
Here is the caller graph for this function:Reimplemented from UnitAI.
Reimplemented in npc_frostwing_vrykul::npc_frostwing_vrykulAI.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
overridevirtual |
== Triggered Actions Requested ==================
== State checks =================================
Reimplemented from CreatureAI.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from UnitAI.
Here is the call graph for this function:Reimplemented from UnitAI.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from UnitAI.
Here is the call graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Here is the call graph for this function:Reimplemented from UnitAI.
|
overridevirtual |
Reimplemented from UnitAI.
| WayPoint * SmartAI::GetNextWayPoint | ( | ) |
Here is the caller graph for this function:
|
inline |
Here is the caller graph for this function:
|
inlineprivate |
Here is the caller graph for this function:
Here is the caller graph for this function:Reimplemented from UnitAI.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from UnitAI.
Here is the call graph for this function:| bool SmartAI::IsEscortInvokerInRange | ( | ) |
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Here is the call graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Here is the call graph for this function:| void SmartAI::MovepointReached | ( | uint32 | id | ) |
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Here is the call graph for this function:Reimplemented from CreatureAI.
Here is the call graph for this function:== Fields =======================================
Reimplemented from CreatureAI.
Here is the call graph for this function:
Here is the call graph for this function:
Here is the call graph for this function:Reimplemented from CreatureAI.
Here is the call graph for this function:
|
inline |
Here is the caller graph for this function:| void SmartAI::ResumePath | ( | ) |
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| void SmartAI::SetCombatMove | ( | bool | on | ) |
Here is the call graph for this function:Reimplemented from UnitAI.
Here is the call graph for this function:
|
inline |
Here is the caller graph for this function:
Here is the call graph for this function:| void SmartAI::SetFollow | ( | Unit * | target, |
| float | dist = 0.0f, |
||
| float | angle = 0.0f, |
||
| uint32 | credit = 0, |
||
| uint32 | end = 0, |
||
| uint32 | creditType = 0 |
||
| ) |
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from UnitAI.
|
inline |
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:| void SmartAI::SetScript9 | ( | SmartScriptHolder & | e, |
| uint32 | entry, | ||
| Unit * | invoker | ||
| ) |
Here is the call graph for this function:
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from UnitAI.
Here is the call graph for this function:Reimplemented from UnitAI.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from UnitAI.
|
overridevirtual |
Reimplemented from UnitAI.
Here is the call graph for this function:Reimplemented from UnitAI.
Here is the call graph for this function:Reimplemented from CreatureAI.
Here is the call graph for this function:Reimplemented from CreatureAI.
Here is the call graph for this function:Reimplemented from UnitAI.
Here is the call graph for this function:Reimplemented from UnitAI.
Here is the call graph for this function:
|
inline |
Here is the caller graph for this function:| void SmartAI::StartPath | ( | bool | run = false, |
| uint32 | path = 0, |
||
| bool | repeat = false, |
||
| Unit * | invoker = NULL |
||
| ) |
Here is the call graph for this function:
Here is the caller graph for this function:| void SmartAI::StopFollow | ( | ) |
Here is the call graph for this function:
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Here is the call graph for this function:
|
overridevirtual |
Here is the call graph for this function:
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| uint32 SmartAI::mEscortQuestID |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.8