![]() |
TrinityCore
|
#include <SmartAI.h>
Inheritance diagram for SmartAI:Public Member Functions | |
| ~SmartAI () | |
| SmartAI (Creature *creature) | |
| bool | IsAIControlled () const |
| void | StartPath (uint32 pathId=0, bool repeat=false, Unit *invoker=nullptr, uint32 nodeId=1) |
| WaypointPath const * | LoadPath (uint32 entry) |
| void | PausePath (uint32 delay, bool forced=false) |
| bool | CanResumePath () |
| void | StopPath (uint32 DespawnTime=0, uint32 quest=0, bool fail=false) |
| void | EndPath (bool fail=false) |
| void | ResumePath () |
| bool | HasEscortState (uint32 escortState) const |
| void | AddEscortState (uint32 escortState) |
| void | RemoveEscortState (uint32 escortState) |
| void | SetAutoAttack (bool on) |
| void | SetCombatMove (bool on, bool stopMoving=false) |
| 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 (bool complete) |
| bool | IsEscortInvokerInRange () |
| void | WaypointReached (uint32 nodeId, uint32 pathId) override |
| void | WaypointPathEnded (uint32 nodeId, uint32 pathId) override |
| void | SetTimedActionList (SmartScriptHolder &e, uint32 entry, Unit *invoker) |
| SmartScript * | GetScript () |
| void | JustReachedHome () override |
| void | JustEngagedWith (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 | SummonedCreatureDies (Creature *summon, Unit *killer) override |
| void | AttackStart (Unit *who) override |
| void | MoveInLineOfSight (Unit *who) override |
| void | SpellHit (WorldObject *caster, SpellInfo const *spellInfo) override |
| void | SpellHitTarget (WorldObject *target, SpellInfo const *spellInfo) override |
| void | OnSpellCast (SpellInfo const *spellInfo) override |
| void | OnSpellFailed (SpellInfo const *spellInfo) override |
| void | OnSpellStart (SpellInfo const *spellInfo) override |
| void | OnAuraApplied (AuraApplication const *aurApp) override |
| void | OnAuraRemoved (AuraApplication const *aurApp) override |
| void | DamageTaken (Unit *doneBy, uint32 &damage, DamageEffectType, SpellInfo const *) 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 (WorldObject *summoner) override |
| void | DamageDealt (Unit *doneTo, uint32 &damage, DamageEffectType) override |
| void | SummonedCreatureDespawn (Creature *unit) override |
| void | CorpseRemoved (uint32 &respawnDelay) override |
| == Triggered Actions Requested ================== | |
| void | OnDespawn () override |
| void | PassengerBoarded (Unit *who, int8 seatId, bool apply) override |
| == Fields ======================================= | |
| void | InitializeAI () override |
| void | JustAppeared () override |
| void | OnCharmed (bool isNew) override |
| void | DoAction (int32 param=0) override |
| uint32 | GetData (uint32 id=0) const override |
| void | SetData (uint32 id, uint32 value) override |
| void | SetData (uint32 id, uint32 value, Unit *invoker) |
| void | SetGUID (ObjectGuid const &guid, int32 id=0) override |
| ObjectGuid | GetGUID (int32 id=0) const override |
| void | SetRun (bool run=true) |
| void | SetDisableGravity (bool disable=true) |
| void | SetEvadeDisabled (bool disable=true) |
| void | SetInvincibilityHpLevel (uint32 level) |
| bool | OnGossipHello (Player *player) override |
| bool | OnGossipSelect (Player *player, uint32 menuId, uint32 gossipListId) override |
| bool | OnGossipSelectCode (Player *player, uint32 menuId, uint32 gossipListId, char const *code) override |
| void | OnQuestAccept (Player *player, Quest const *quest) override |
| void | OnQuestReward (Player *player, Quest const *quest, uint32 opt) override |
| void | OnGameEvent (bool start, uint16 eventId) override |
| void | SetDespawnTime (uint32 t) |
| void | StartDespawn () |
| void | OnSpellClick (Unit *clicker, bool spellClickHandled) override |
| void | SetWPPauseTimer (uint32 time) |
| void | SetGossipReturn (bool val) |
| void | SetEscortQuest (uint32 questID) |
Public Member Functions inherited from CreatureAI | |
| CreatureAI (Creature *creature) | |
| virtual | ~CreatureAI () |
| bool | IsEngaged () const |
| void | Talk (uint8 id, WorldObject const *whisperTarget=nullptr) |
| void | MoveInLineOfSight_Safe (Unit *who) |
| == Reactions At ================================= | |
| void | TriggerAlert (Unit const *who) const |
| void | JustEnteredCombat (Unit *) override |
| virtual void | JustStartedThreateningMe (Unit *who) |
| virtual void | OnChannelFinished (SpellInfo const *) |
| virtual bool | IsEscorted () const |
| void | DoZoneInCombat (Creature *creature=nullptr) |
| virtual void | OwnerAttackedBy (Unit *attacker) |
| virtual void | OwnerAttacked (Unit *target) |
| virtual Optional< QuestGiverStatus > | GetDialogStatus (Player *) |
| == Gossip system ================================ | |
| virtual void | WaypointStarted (uint32, uint32) |
| == Waypoints system ============================= | |
| 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 | Reset () |
| 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 | 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={}) |
| float | DoGetSpellMaxRange (uint32 spellId, bool positive=false) |
| virtual bool | ShouldSparWith (Unit const *) const |
| void | DoMeleeAttackIfReady () |
| bool | DoSpellAttackIfReady (uint32 spell) |
| virtual std::string | GetDebugInfo () const |
Static Public Member Functions | |
| static int32 | Permissible (Creature const *) |
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 () |
Private Member Functions | |
| bool | AssistPlayerInCombatAgainst (Unit *who) |
| void | ReturnToLastOOCPos () |
| void | CheckConditions (uint32 diff) |
| void | UpdatePath (uint32 diff) |
| void | UpdateFollow (uint32 diff) |
| void | UpdateDespawn (uint32 diff) |
|
explicit |
|
inline |
|
private |
Definition at line 458 of file SmartAI.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from UnitAI.
Definition at line 579 of file SmartAI.cpp.
Here is the call graph for this function:| bool SmartAI::CanResumePath | ( | ) |
|
private |
Definition at line 895 of file SmartAI.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
== Triggered Actions Requested ==================
== State checks =================================
Reimplemented from CreatureAI.
Definition at line 673 of file SmartAI.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from UnitAI.
Definition at line 663 of file SmartAI.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from UnitAI.
Definition at line 637 of file SmartAI.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from UnitAI.
Definition at line 727 of file SmartAI.cpp.
Here is the call graph for this function:| void SmartAI::EndPath | ( | bool | fail = false | ) |
Definition at line 177 of file SmartAI.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Definition at line 396 of file SmartAI.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Reimplemented from UnitAI.
Definition at line 732 of file SmartAI.cpp.
|
overridevirtual |
Reimplemented from UnitAI.
Definition at line 744 of file SmartAI.cpp.
|
inline |
|
inline |
Reimplemented from UnitAI.
Definition at line 648 of file SmartAI.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from UnitAI.
Definition at line 501 of file SmartAI.cpp.
Here is the call graph for this function:| bool SmartAI::IsAIControlled | ( | ) | const |
| bool SmartAI::IsEscortInvokerInRange | ( | ) |
Definition at line 303 of file SmartAI.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Definition at line 658 of file SmartAI.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Definition at line 517 of file SmartAI.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Definition at line 556 of file SmartAI.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Definition at line 548 of file SmartAI.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Definition at line 528 of file SmartAI.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Definition at line 569 of file SmartAI.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Definition at line 564 of file SmartAI.cpp.
Here is the call graph for this function:| WaypointPath const * SmartAI::LoadPath | ( | uint32 | entry | ) |
Definition at line 76 of file SmartAI.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Definition at line 442 of file SmartAI.cpp.
Here is the call graph for this function:Reimplemented from CreatureAI.
Definition at line 382 of file SmartAI.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Definition at line 627 of file SmartAI.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Definition at line 632 of file SmartAI.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Definition at line 688 of file SmartAI.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from UnitAI.
Definition at line 678 of file SmartAI.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from UnitAI.
Definition at line 882 of file SmartAI.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Definition at line 765 of file SmartAI.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Definition at line 772 of file SmartAI.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Definition at line 779 of file SmartAI.cpp.
Reimplemented from CreatureAI.
Definition at line 784 of file SmartAI.cpp.
Here is the call graph for this function:Reimplemented from CreatureAI.
Definition at line 789 of file SmartAI.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Definition at line 612 of file SmartAI.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Definition at line 887 of file SmartAI.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Definition at line 617 of file SmartAI.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Definition at line 622 of file SmartAI.cpp.
Here is the call graph for this function:== Fields =======================================
Reimplemented from CreatureAI.
Definition at line 683 of file SmartAI.cpp.
Here is the call graph for this function:| void SmartAI::PausePath | ( | uint32 | delay, |
| bool | forced = false |
||
| ) |
Reimplemented from CreatureAI.
Definition at line 653 of file SmartAI.cpp.
Here is the call graph for this function:
|
inline |
| void SmartAI::ResumePath | ( | ) |
Definition at line 251 of file SmartAI.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 265 of file SmartAI.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void SmartAI::SetCombatMove | ( | bool | on, |
| bool | stopMoving = false |
||
| ) |
|
inline |
| void SmartAI::SetDisableGravity | ( | bool | disable = true | ) |
| void SmartAI::SetEvadeDisabled | ( | bool | disable = true | ) |
Definition at line 760 of file SmartAI.cpp.
|
overridevirtual |
Reimplemented from UnitAI.
Definition at line 742 of file SmartAI.cpp.
|
inline |
| void SmartAI::SetRun | ( | bool | run = true | ) |
Definition at line 749 of file SmartAI.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void SmartAI::SetTimedActionList | ( | SmartScriptHolder & | e, |
| uint32 | entry, | ||
| Unit * | invoker | ||
| ) |
|
overridevirtual |
Reimplemented from CreatureAI.
Definition at line 602 of file SmartAI.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Definition at line 607 of file SmartAI.cpp.
Here is the call graph for this function:
|
inline |
| void SmartAI::StartPath | ( | uint32 | pathId = 0, |
| bool | repeat = false, |
||
| Unit * | invoker = nullptr, |
||
| uint32 | nodeId = 1 |
||
| ) |
Definition at line 47 of file SmartAI.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void SmartAI::StopFollow | ( | bool | complete | ) |
Definition at line 848 of file SmartAI.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 138 of file SmartAI.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from CreatureAI.
Definition at line 668 of file SmartAI.cpp.
Here is the call graph for this function:Reimplemented from CreatureAI.
Definition at line 574 of file SmartAI.cpp.
Here is the call graph for this function:
|
overridevirtual |
Implements UnitAI.
Definition at line 274 of file SmartAI.cpp.
Here is the call graph for this function:
|
private |
Definition at line 996 of file SmartAI.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 977 of file SmartAI.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 924 of file SmartAI.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Reimplemented from CreatureAI.
Definition at line 373 of file SmartAI.cpp.
Here is the call graph for this function:Reimplemented from CreatureAI.
Definition at line 344 of file SmartAI.cpp.
Here is the call graph for this function:
|
private |
|
private |