|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <SmartAI.h>
Public Member Functions | |
| void | AddEscortState (uint32 uiEscortState) |
| void | AttackStart (Unit *who) OVERRIDE |
| bool | CanAIAttack (const Unit *who) const OVERRIDE |
| bool | CanCombatMove () const |
| void | CorpseRemoved (uint32 &respawnDelay) OVERRIDE |
| == State checks ================================= | |
| void | DamageDealt (Unit *doneTo, uint32 &damage, DamageEffectType) OVERRIDE |
| void | DamageTaken (Unit *doneBy, uint32 &damage) OVERRIDE |
| void | DoAction (int32 param=0) OVERRIDE |
| void | EndPath (bool fail=false) |
| void | EnterCombat (Unit *enemy) OVERRIDE |
| void | EnterEvadeMode () OVERRIDE |
| uint32 | GetData (uint32 id=0) const OVERRIDE |
| uint64 | GetGUID (int32 id=0) const OVERRIDE |
| WayPoint * | GetNextWayPoint () |
| SmartScript * | GetScript () |
| bool | HasEscortState (uint32 uiEscortState) const |
| void | HealReceived (Unit *doneBy, uint32 &addhealth) OVERRIDE |
| void | InitializeAI () OVERRIDE |
| bool | IsEscortInvokerInRange () |
| void | IsSummonedBy (Unit *summoner) OVERRIDE |
| void | JustDied (Unit *killer) OVERRIDE |
| void | JustReachedHome () OVERRIDE |
| void | JustRespawned () OVERRIDE |
| void | JustSummoned (Creature *creature) OVERRIDE |
| void | KilledUnit (Unit *victim) OVERRIDE |
| bool | LoadPath (uint32 entry) |
| void | MoveInLineOfSight (Unit *who) OVERRIDE |
| void | MovementInform (uint32 MovementType, uint32 DataData) OVERRIDE |
| void | MovepointReached (uint32 id) |
| void | OnCharmed (bool apply) OVERRIDE |
| bool | OnGossipHello (Player *player) OVERRIDE |
| void | OnSpellClick (Unit *clicker, bool &result) OVERRIDE |
| void | PassengerBoarded (Unit *who, int8 seatId, bool apply) OVERRIDE |
| == Fields ======================================= | |
| void | PausePath (uint32 delay, bool forced=false) |
| void | ReceiveEmote (Player *player, uint32 textEmote) OVERRIDE |
| void | RemoveAuras () |
| void | RemoveEscortState (uint32 uiEscortState) |
| void | Reset () OVERRIDE |
| void | ResumePath () |
| void | SetAutoAttack (bool on) |
| void | SetCombatMove (bool on) |
| void | SetData (uint32 id, uint32 value) OVERRIDE |
| void | SetDespawnTime (uint32 t) |
| void | SetFly (bool fly=true) |
| void | SetFollow (Unit *target, float dist=0.0f, float angle=0.0f, uint32 credit=0, uint32 end=0, uint32 creditType=0) |
| void | SetGossipReturn (bool value) |
| void | SetGUID (uint64 guid, int32 id=0) OVERRIDE |
| void | SetInvincibilityHpLevel (uint32 level) |
| void | SetRun (bool run=true) |
| void | SetScript9 (SmartScriptHolder &e, uint32 entry, Unit *invoker) |
| void | SetSwim (bool swim=true) |
| void | sGossipHello (Player *player) OVERRIDE |
| void | sGossipSelect (Player *player, uint32 sender, uint32 action) OVERRIDE |
| void | sGossipSelectCode (Player *player, uint32 sender, uint32 action, const char *code) OVERRIDE |
| SmartAI (Creature *c) | |
| bool | sOnDummyEffect (Unit *caster, uint32 spellId, SpellEffIndex effIndex) OVERRIDE |
| void | sOnGameEvent (bool start, uint16 eventId) OVERRIDE |
| void | SpellHit (Unit *unit, const SpellInfo *spellInfo) OVERRIDE |
| void | SpellHitTarget (Unit *target, const SpellInfo *spellInfo) OVERRIDE |
| void | sQuestAccept (Player *player, Quest const *quest) OVERRIDE |
| void | sQuestReward (Player *player, Quest const *quest, uint32 opt) OVERRIDE |
| void | StartDespawn () |
| void | StartPath (bool run=false, uint32 path=0, bool repeat=false, Unit *invoker=NULL) |
| void | StopPath (uint32 DespawnTime=0, uint32 quest=0, bool fail=false) |
| void | SummonedCreatureDespawn (Creature *unit) OVERRIDE |
| void | UpdateAI (uint32 diff) OVERRIDE |
| == Triggered Actions Requested ================== | |
| void | UpdateAIWhileCharmed (const uint32 diff) |
| ~SmartAI () | |
| Public Member Functions inherited from CreatureAI | |
| virtual void | AttackedBy (Unit *) |
| virtual bool | CanRespawn () |
| virtual bool | CanSeeAlways (WorldObject const *) |
| bool | CanSeeEvenInPassiveMode () const |
| CreatureAI (Creature *creature) | |
| void | DoZoneInCombat (Creature *creature=NULL, float maxRangeToNearestTarget=50.0f) |
| virtual void | ExecuteEvent (uint32) |
| virtual bool | IsEscorted () |
| void | MoveInLineOfSight_Safe (Unit *who) |
| == Reactions At ================================= | |
| virtual void | OwnerAttacked (Unit *) |
| virtual void | OwnerAttackedBy (Unit *) |
| void | SetCanSeeEvenInPassiveMode (bool canSeeEvenInPassiveMode) |
| virtual void | SummonedCreatureDies (Creature *, Unit *) |
| void | Talk (uint8 id, WorldObject const *whisperTarget=NULL) |
| virtual | ~CreatureAI () |
| Public Member Functions inherited from UnitAI | |
| void | AttackStartCaster (Unit *victim, float dist) |
| void | DoAddAuraToAllHostilePlayers (uint32 spellid) |
| void | DoCast (uint32 spellId) |
| void | DoCast (Unit *victim, uint32 spellId, bool triggered=false) |
| void | DoCastAOE (uint32 spellId, bool triggered=false) |
| void | DoCastToAllHostilePlayers (uint32 spellid, bool triggered=false) |
| void | DoCastVictim (uint32 spellId, bool triggered=false) |
| float | DoGetSpellMaxRange (uint32 spellId, bool positive=false) |
| void | DoMeleeAttackIfReady () |
| bool | DoSpellAttackIfReady (uint32 spell) |
| virtual void | HealDone (Unit *, uint32 &) |
| template<class PREDICATE> | |
| Unit * | SelectTarget (SelectAggroTarget targetType, uint32 position, PREDICATE const &predicate) |
| Unit * | SelectTarget (SelectAggroTarget targetType, uint32 position=0, 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) |
| void | SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectAggroTarget targetType, float dist=0.0f, bool playerOnly=false, int32 aura=0) |
| virtual void | SpellInterrupted (uint32, uint32) |
| virtual void | sQuestComplete (Player *, Quest const *) |
| virtual void | sQuestSelect (Player *, Quest const *) |
| UnitAI (Unit *unit) | |
| virtual | ~UnitAI () |
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 | |
| bool | AssistPlayerInCombat (Unit *who) |
| uint32 | GetWPCount () |
| void | ReturnToLastOOCPos () |
| void | UpdateDespawn (const uint32 diff) |
| void | UpdatePath (const uint32 diff) |
Additional Inherited Members | |
| Static Public Attributes inherited from UnitAI | |
| static AISpellInfoType * | AISpellInfo |
| Protected Member Functions inherited from CreatureAI | |
| bool | _EnterEvadeMode () |
| Creature * | DoSummon (uint32 entry, Position const &pos, uint32 despawnTime=30000, TempSummonType summonType=TempSummonType::TEMPSUMMON_CORPSE_TIMED_DESPAWN) |
| Creature * | DoSummon (uint32 entry, WorldObject *obj, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TempSummonType::TEMPSUMMON_CORPSE_TIMED_DESPAWN) |
| Creature * | DoSummonFlyer (uint32 entry, WorldObject *obj, float flightZ, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TempSummonType::TEMPSUMMON_CORPSE_TIMED_DESPAWN) |
| void | SetGazeOn (Unit *target) |
| bool | UpdateVictim () |
| bool | UpdateVictimWithGaze () |
| Protected Attributes inherited from CreatureAI | |
| Creature *const | me |
| Protected Attributes inherited from UnitAI | |
| Unit *const | me |
|
explicit |
Definition at line 21 of file SmartAI.cpp.
References _gossipReturn, CreatureAI::CreatureAI(), mCanAutoAttack, mCanCombatMove, mCanRepeatPath, mCurrentWPID, mDespawnState, mDespawnTime, CreatureAI::me, mEscortInvokerCheckTimer, mEscortQuestID, mEscortState, mFollowAngle, mFollowArrivedEntry, mFollowArrivedTimer, mFollowCredit, mFollowCreditType, mFollowDist, mFollowGuid, mForcedPaused, mInvincibilityHpLevel, mLastOOCPos, mLastWP, mLastWPIDReached, mRun, mWayPoints, mWPPauseTimer, mWPReached, and SMART_ESCORT_NONE.
Referenced by npc_frostwing_vrykul::npc_frostwing_vrykulAI::npc_frostwing_vrykulAI().
|
inline |
Definition at line 47 of file SmartAI.h.
References mEscortState.
Referenced by EnterEvadeMode(), PausePath(), and StartPath().
|
private |
Definition at line 489 of file SmartAI.cpp.
References AttackStart(), CREATURE_TYPEFLAGS_AID_PLAYERS, Unit::GetCharmerOrOwnerPlayerOrPlayerItself(), Unit::GetVictim(), CreatureAI::me, Unit::SetInCombatWith(), and SMART_MAX_AID_DIST.
Referenced by MoveInLineOfSight().
|
virtual |
Reimplemented from UnitAI.
Definition at line 581 of file SmartAI.cpp.
References mCanCombatMove, CreatureAI::me, mLastOOCPos, MOTION_SLOT_ACTIVE, MOTION_SLOT_IDLE, mRun, POINT_MOTION_TYPE, RANDOM_MOTION_TYPE, SetRun(), UNIT_STATE_ROAMING, and UNIT_STATE_ROAMING_MOVE.
Referenced by AssistPlayerInCombat(), MoveInLineOfSight(), and OnCharmed().
|
virtual |
Reimplemented from UnitAI.
Definition at line 482 of file SmartAI.cpp.
References CreatureAI::me, and REACT_PASSIVE.
Referenced by npc_frostwing_vrykul::npc_frostwing_vrykulAI::CanAIAttack(), and MoveInLineOfSight().
|
inline |
Definition at line 51 of file SmartAI.h.
References mCanCombatMove.
|
virtual |
== State checks =================================
Reimplemented from CreatureAI.
Definition at line 648 of file SmartAI.cpp.
References GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_CORPSE_REMOVED.
|
virtual |
Reimplemented from UnitAI.
Definition at line 636 of file SmartAI.cpp.
References GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_DAMAGED_TARGET.
Reimplemented from UnitAI.
Definition at line 611 of file SmartAI.cpp.
References GetScript(), CreatureAI::me, mInvincibilityHpLevel, SmartScript::ProcessEventsFor(), and SMART_EVENT_DAMAGED.
|
virtual |
Reimplemented from UnitAI.
Definition at line 675 of file SmartAI.cpp.
References GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_ACTION_DONE.
| void SmartAI::EndPath | ( | bool | fail = false | ) |
Definition at line 157 of file SmartAI.cpp.
References Player::AreaExploredOrEventHappens(), Player::FailQuest(), Player::GetCorpse(), Player::GetGroup(), Player::GetQuestStatus(), GetScript(), SmartScript::GetTargetList(), Player::GroupEventHappens(), Player::IsAtGroupRewardDistance(), mCanRepeatPath, mCurrentWPID, mDespawnState, CreatureAI::me, mEscortQuestID, mLastWP, mRun, mWayPoints, mWPPauseTimer, GroupReference::next(), SmartScript::ProcessEventsFor(), QUEST_STATUS_INCOMPLETE, RemoveEscortState(), SmartScript::SetPathId(), SMART_ESCORT_ESCORTING, SMART_ESCORT_PAUSED, SMART_ESCORT_RETURNING, SMART_ESCORT_TARGETS, SMART_EVENT_WAYPOINT_ENDED, StartDespawn(), StartPath(), and Object::ToPlayer().
Referenced by JustDied(), StopPath(), and UpdatePath().
|
virtual |
Reimplemented from CreatureAI.
Definition at line 557 of file SmartAI.cpp.
References GetScript(), CreatureAI::me, mLastOOCPos, SmartScript::ProcessEventsFor(), and SMART_EVENT_AGGRO.
|
virtual |
Reimplemented from CreatureAI.
Definition at line 414 of file SmartAI.cpp.
References AddEscortState(), GetScript(), HasEscortState(), CreatureAI::me, mFollowAngle, mFollowDist, mFollowGuid, mRun, SmartScript::ProcessEventsFor(), RemoveAuras(), Reset(), ReturnToLastOOCPos(), SetRun(), SMART_ESCORT_ESCORTING, SMART_ESCORT_RETURNING, SMART_EVENT_EVADE, and UNIT_STATE_EVADE.
Reimplemented from UnitAI.
Definition at line 680 of file SmartAI.cpp.
Reimplemented from UnitAI.
Definition at line 692 of file SmartAI.cpp.
| WayPoint * SmartAI::GetNextWayPoint | ( | ) |
Definition at line 57 of file SmartAI.cpp.
References mCurrentWPID, mLastWP, mWayPoints, and SF_LOG_ERROR.
Referenced by StartPath(), and UpdatePath().
|
inline |
Definition at line 55 of file SmartAI.h.
References mScript.
Referenced by CorpseRemoved(), DamageDealt(), DamageTaken(), DoAction(), EndPath(), EnterCombat(), EnterEvadeMode(), HealReceived(), InitializeAI(), IsEscortInvokerInRange(), IsSummonedBy(), JustDied(), JustReachedHome(), JustRespawned(), JustSummoned(), KilledUnit(), LoadPath(), MoveInLineOfSight(), MovementInform(), MovepointReached(), OnCharmed(), OnSpellClick(), PassengerBoarded(), PausePath(), ReceiveEmote(), Reset(), SetData(), SetScript9(), sGossipHello(), sGossipSelect(), sOnDummyEffect(), sOnGameEvent(), SpellHit(), SpellHitTarget(), sQuestAccept(), sQuestReward(), StartPath(), StopPath(), SummonedCreatureDespawn(), UpdateAI(), and UpdatePath().
|
inlineprivate |
|
inline |
Definition at line 46 of file SmartAI.h.
References mEscortState.
Referenced by EnterEvadeMode(), JustDied(), LoadPath(), MovementInform(), PausePath(), Reset(), SetCombatMove(), StartPath(), StopPath(), and UpdatePath().
Reimplemented from UnitAI.
Definition at line 621 of file SmartAI.cpp.
References GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_RECEIVE_HEAL.
|
virtual |
Reimplemented from UnitAI.
Definition at line 658 of file SmartAI.cpp.
References GetScript(), CreatureAI::me, SmartScript::OnInitialize(), SmartScript::ProcessEventsFor(), Reset(), and SMART_EVENT_RESPAWN.
| bool SmartAI::IsEscortInvokerInRange | ( | ) |
Definition at line 343 of file SmartAI.cpp.
References Player::GetGroup(), GetScript(), SmartScript::GetTargetList(), CreatureAI::me, GroupReference::next(), SMART_ESCORT_MAX_PLAYER_DIST, SMART_ESCORT_TARGETS, and Object::ToPlayer().
Referenced by UpdatePath().
|
virtual |
Reimplemented from CreatureAI.
Definition at line 631 of file SmartAI.cpp.
References GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_JUST_SUMMONED.
|
virtual |
Reimplemented from CreatureAI.
Definition at line 564 of file SmartAI.cpp.
References EndPath(), GetScript(), HasEscortState(), SmartScript::ProcessEventsFor(), SMART_ESCORT_ESCORTING, and SMART_EVENT_DEATH.
|
virtual |
Reimplemented from CreatureAI.
Definition at line 552 of file SmartAI.cpp.
References GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_REACHED_HOME.
|
virtual |
Reimplemented from CreatureAI.
Definition at line 526 of file SmartAI.cpp.
References GetScript(), mDespawnState, mDespawnTime, CreatureAI::me, mEscortState, mFollowAngle, mFollowArrivedEntry, mFollowArrivedTimer, mFollowCredit, mFollowCreditType, mFollowDist, mFollowGuid, SmartScript::ProcessEventsFor(), Reset(), SMART_ESCORT_NONE, and SMART_EVENT_RESPAWN.
|
virtual |
Reimplemented from CreatureAI.
Definition at line 576 of file SmartAI.cpp.
References GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_SUMMONED_UNIT.
|
virtual |
Reimplemented from CreatureAI.
Definition at line 571 of file SmartAI.cpp.
References GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_KILL.
| bool SmartAI::LoadPath | ( | uint32 | entry | ) |
Definition at line 104 of file SmartAI.cpp.
References GetScript(), HasEscortState(), mWayPoints, SmartScript::SetPathId(), SMART_ESCORT_ESCORTING, and sSmartWaypointMgr.
Referenced by StartPath().
|
virtual |
Reimplemented from CreatureAI.
Definition at line 447 of file SmartAI.cpp.
References AssistPlayerInCombat(), AttackStart(), CanAIAttack(), GetScript(), CreatureAI::me, SmartScript::OnMoveInLineOfSight(), REACT_PASSIVE, Unit::RemoveAurasByType(), Unit::SetInCombatWith(), and SPELL_AURA_MOD_STEALTH.
Reimplemented from CreatureAI.
Definition at line 389 of file SmartAI.cpp.
References FOLLOW_MOTION_TYPE, GetScript(), HasEscortState(), CreatureAI::me, MovepointReached(), POINT_MOTION_TYPE, SmartScript::ProcessEventsFor(), SMART_ESCORT_ESCORTING, SMART_ESCORT_LAST_OOC_POINT, SMART_EVENT_MOVEMENTINFORM, and UNIT_STATE_EVADE.
| void SmartAI::MovepointReached | ( | uint32 | id | ) |
Definition at line 380 of file SmartAI.cpp.
References GetScript(), mLastWPIDReached, mWPReached, SmartScript::ProcessEventsFor(), SMART_ESCORT_LAST_OOC_POINT, and SMART_EVENT_WAYPOINT_REACHED.
Referenced by MovementInform().
|
virtual |
Reimplemented from CreatureAI.
Definition at line 666 of file SmartAI.cpp.
References AttackStart(), GetScript(), ObjectAccessor::GetUnit(), CreatureAI::me, SmartScript::ProcessEventsFor(), SMART_EVENT_CHARMED, and UNIT_FIELD_CHARMED_BY.
|
virtual |
Reimplemented from UnitAI.
Definition at line 718 of file SmartAI.cpp.
References _gossipReturn, and sGossipHello().
|
virtual |
Reimplemented from CreatureAI.
Definition at line 799 of file SmartAI.cpp.
References GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_ON_SPELLCLICK.
== Fields =======================================
Reimplemented from CreatureAI.
Definition at line 653 of file SmartAI.cpp.
References GetScript(), SmartScript::ProcessEventsFor(), SMART_EVENT_PASSENGER_BOARDED, and SMART_EVENT_PASSENGER_REMOVED.
| void SmartAI::PausePath | ( | uint32 | delay, |
| bool | forced = false ) |
Definition at line 118 of file SmartAI.cpp.
References AddEscortState(), GetScript(), HasEscortState(), CreatureAI::me, mForcedPaused, mLastOOCPos, mLastWP, mRun, mWPPauseTimer, SmartScript::ProcessEventsFor(), SetRun(), SF_LOG_ERROR, SMART_ESCORT_ESCORTING, SMART_ESCORT_PAUSED, and SMART_EVENT_WAYPOINT_PAUSED.
|
static |
Definition at line 545 of file SmartAI.cpp.
References Creature::GetAIName(), PERMIT_BASE_NO, and PERMIT_BASE_SPECIAL.
Reimplemented from CreatureAI.
Definition at line 626 of file SmartAI.cpp.
References GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_RECEIVE_EMOTE.
| void SmartAI::RemoveAuras | ( | ) |
@fixme: duplicated logic in CreatureAI::_EnterEvadeMode (could use RemoveAllAurasExceptType)
Definition at line 400 of file SmartAI.cpp.
References Aura::GetCasterGUID(), Aura::HasEffectType(), Aura::IsPassive(), CreatureAI::me, SPELL_AURA_CLONE_CASTER, and SPELL_AURA_CONTROL_VEHICLE.
Referenced by EnterEvadeMode().
|
inline |
Definition at line 48 of file SmartAI.h.
References mEscortState.
Referenced by EndPath(), and UpdatePath().
|
virtual |
Reimplemented from UnitAI.
Definition at line 50 of file SmartAI.cpp.
References GetScript(), HasEscortState(), mRun, SmartScript::OnReset(), SetRun(), and SMART_ESCORT_ESCORTING.
Referenced by EnterEvadeMode(), InitializeAI(), and JustRespawned().
| void SmartAI::ResumePath | ( | ) |
Definition at line 216 of file SmartAI.cpp.
References CreatureAI::me, mLastWP, mRun, and SetRun().
Referenced by UpdatePath().
|
private |
Definition at line 224 of file SmartAI.cpp.
References CreatureAI::me, mLastOOCPos, mRun, SetRun(), and SMART_ESCORT_LAST_OOC_POINT.
Referenced by EnterEvadeMode().
|
inline |
Definition at line 49 of file SmartAI.h.
References mCanAutoAttack.
| void SmartAI::SetCombatMove | ( | bool | on | ) |
Definition at line 748 of file SmartAI.cpp.
References HasEscortState(), IDLE_MOTION_TYPE, mCanCombatMove, CreatureAI::me, mRun, SetRun(), and SMART_ESCORT_ESCORTING.
Reimplemented from UnitAI.
Definition at line 685 of file SmartAI.cpp.
References GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_DATA_SET.
|
inline |
Definition at line 179 of file SmartAI.h.
References mDespawnState, and mDespawnTime.
Referenced by StopPath(), and UpdateAI().
| void SmartAI::SetFly | ( | bool | fly = true | ) |
Definition at line 703 of file SmartAI.cpp.
References CreatureAI::me.
| void SmartAI::SetFollow | ( | Unit * | target, |
| float | dist = 0.0f, | ||
| float | angle = 0.0f, | ||
| uint32 | credit = 0, | ||
| uint32 | end = 0, | ||
| uint32 | creditType = 0 ) |
Definition at line 772 of file SmartAI.cpp.
References Object::GetGUID(), CreatureAI::me, mFollowAngle, mFollowArrivedEntry, mFollowArrivedTimer, mFollowCredit, mFollowCreditType, mFollowDist, mFollowGuid, mRun, PET_FOLLOW_DIST, and SetRun().
|
inline |
Definition at line 190 of file SmartAI.h.
References _gossipReturn.
Reimplemented from UnitAI.
Definition at line 690 of file SmartAI.cpp.
|
inline |
Definition at line 164 of file SmartAI.h.
References mInvincibilityHpLevel, and SetInvincibilityHpLevel().
Referenced by SmartScript::ProcessAction(), and SetInvincibilityHpLevel().
| void SmartAI::SetRun | ( | bool | run = true | ) |
Definition at line 697 of file SmartAI.cpp.
References CreatureAI::me, and mRun.
Referenced by AttackStart(), EnterEvadeMode(), PausePath(), Reset(), ResumePath(), ReturnToLastOOCPos(), SetCombatMove(), SetFollow(), StartPath(), and UpdatePath().
| void SmartAI::SetScript9 | ( | SmartScriptHolder & | e, |
| uint32 | entry, | ||
| Unit * | invoker ) |
Definition at line 787 of file SmartAI.cpp.
References Object::GetGUID(), GetScript(), SmartScript::mLastInvoker, and SmartScript::SetScript9().
| void SmartAI::SetSwim | ( | bool | swim = true | ) |
Definition at line 708 of file SmartAI.cpp.
References CreatureAI::me.
|
virtual |
Reimplemented from UnitAI.
Definition at line 713 of file SmartAI.cpp.
References GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_GOSSIP_HELLO.
Referenced by OnGossipHello().
Reimplemented from UnitAI.
Definition at line 725 of file SmartAI.cpp.
References GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_GOSSIP_SELECT.
|
virtual |
Reimplemented from UnitAI.
Definition at line 730 of file SmartAI.cpp.
|
virtual |
Reimplemented from UnitAI.
Definition at line 742 of file SmartAI.cpp.
References GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_DUMMY_EFFECT.
|
virtual |
Reimplemented from UnitAI.
Definition at line 794 of file SmartAI.cpp.
References GetScript(), SmartScript::ProcessEventsFor(), SMART_EVENT_GAME_EVENT_END, and SMART_EVENT_GAME_EVENT_START.
Reimplemented from CreatureAI.
Definition at line 601 of file SmartAI.cpp.
References GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_SPELLHIT.
Reimplemented from CreatureAI.
Definition at line 606 of file SmartAI.cpp.
References GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_SPELLHIT_TARGET.
Reimplemented from UnitAI.
Definition at line 732 of file SmartAI.cpp.
References Quest::GetQuestId(), GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_ACCEPTED_QUEST.
Reimplemented from UnitAI.
Definition at line 737 of file SmartAI.cpp.
References Quest::GetQuestId(), GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_REWARD_QUEST.
|
inline |
Definition at line 184 of file SmartAI.h.
References mDespawnState.
Referenced by EndPath(), and UpdateAI().
| void SmartAI::StartPath | ( | bool | run = false, |
| uint32 | path = 0, | ||
| bool | repeat = false, | ||
| Unit * | invoker = NULL ) |
Definition at line 76 of file SmartAI.cpp.
References AddEscortState(), GetNextWayPoint(), GetScript(), HasEscortState(), LoadPath(), mCanRepeatPath, CreatureAI::me, mLastOOCPos, mWayPoints, SmartScript::ProcessEventsFor(), SetRun(), SF_LOG_ERROR, SMART_ESCORT_ESCORTING, SMART_EVENT_WAYPOINT_START, and StopPath().
Referenced by EndPath().
Definition at line 140 of file SmartAI.cpp.
References EndPath(), GetScript(), HasEscortState(), CreatureAI::me, mEscortQuestID, mLastOOCPos, mLastWP, SmartScript::ProcessEventsFor(), SetDespawnTime(), SMART_ESCORT_ESCORTING, and SMART_EVENT_WAYPOINT_STOPPED.
Referenced by StartPath(), and UpdatePath().
|
virtual |
Reimplemented from CreatureAI.
Definition at line 641 of file SmartAI.cpp.
References GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_SUMMON_DESPAWNED.
|
virtual |
== Triggered Actions Requested ==================
Reimplemented from CreatureAI.
Definition at line 296 of file SmartAI.cpp.
References UnitAI::DoMeleeAttackIfReady(), ObjectAccessor::GetPlayer(), GetScript(), INTERACTION_DISTANCE, mCanAutoAttack, CreatureAI::me, mFollowAngle, mFollowArrivedEntry, mFollowArrivedTimer, mFollowCredit, mFollowCreditType, mFollowDist, mFollowGuid, SmartScript::OnUpdate(), SmartScript::ProcessEventsFor(), SetDespawnTime(), SMART_EVENT_FOLLOW_COMPLETED, StartDespawn(), UpdateDespawn(), UpdatePath(), and CreatureAI::UpdateVictim().
| void SmartAI::UpdateAIWhileCharmed | ( | const uint32 | diff | ) |
Definition at line 646 of file SmartAI.cpp.
|
private |
Definition at line 31 of file SmartAI.cpp.
References mDespawnState, mDespawnTime, and CreatureAI::me.
Referenced by UpdateAI().
|
private |
Definition at line 230 of file SmartAI.cpp.
References EndPath(), GetNextWayPoint(), GetScript(), GetWPCount(), HasEscortState(), IsEscortInvokerInRange(), mCurrentWPID, mDespawnTime, CreatureAI::me, mEscortInvokerCheckTimer, mEscortQuestID, mForcedPaused, mLastWP, mLastWPIDReached, mRun, mWPPauseTimer, mWPReached, SmartScript::ProcessEventsFor(), REACT_PASSIVE, RemoveEscortState(), ResumePath(), SetRun(), SMART_ESCORT_ESCORTING, SMART_ESCORT_LAST_OOC_POINT, SMART_ESCORT_PAUSED, SMART_ESCORT_RETURNING, SMART_EVENT_WAYPOINT_RESUMED, and StopPath().
Referenced by UpdateAI().
|
private |
Definition at line 225 of file SmartAI.h.
Referenced by OnGossipHello(), SetGossipReturn(), and SmartAI().
|
private |
Definition at line 215 of file SmartAI.h.
Referenced by SetAutoAttack(), SmartAI(), and UpdateAI().
|
private |
Definition at line 216 of file SmartAI.h.
Referenced by AttackStart(), CanCombatMove(), SetCombatMove(), and SmartAI().
|
private |
Definition at line 213 of file SmartAI.h.
Referenced by EndPath(), SmartAI(), and StartPath().
|
private |
Definition at line 206 of file SmartAI.h.
Referenced by EndPath(), GetNextWayPoint(), SmartAI(), and UpdatePath().
|
private |
Definition at line 222 of file SmartAI.h.
Referenced by EndPath(), JustRespawned(), SetDespawnTime(), SmartAI(), StartDespawn(), and UpdateDespawn().
|
private |
Definition at line 221 of file SmartAI.h.
Referenced by JustRespawned(), SetDespawnTime(), SmartAI(), UpdateDespawn(), and UpdatePath().
|
private |
Definition at line 224 of file SmartAI.h.
Referenced by SmartAI(), and UpdatePath().
| uint32 SmartAI::mEscortQuestID |
Definition at line 177 of file SmartAI.h.
Referenced by EndPath(), SmartAI(), StopPath(), and UpdatePath().
|
private |
Definition at line 205 of file SmartAI.h.
Referenced by AddEscortState(), HasEscortState(), JustRespawned(), RemoveEscortState(), and SmartAI().
|
private |
Definition at line 199 of file SmartAI.h.
Referenced by EnterEvadeMode(), JustRespawned(), SetFollow(), SmartAI(), and UpdateAI().
|
private |
Definition at line 196 of file SmartAI.h.
Referenced by JustRespawned(), SetFollow(), SmartAI(), and UpdateAI().
|
private |
Definition at line 194 of file SmartAI.h.
Referenced by JustRespawned(), SetFollow(), SmartAI(), and UpdateAI().
|
private |
Definition at line 195 of file SmartAI.h.
Referenced by JustRespawned(), SetFollow(), SmartAI(), and UpdateAI().
|
private |
Definition at line 193 of file SmartAI.h.
Referenced by JustRespawned(), SetFollow(), SmartAI(), and UpdateAI().
|
private |
Definition at line 198 of file SmartAI.h.
Referenced by EnterEvadeMode(), JustRespawned(), SetFollow(), SmartAI(), and UpdateAI().
|
private |
Definition at line 197 of file SmartAI.h.
Referenced by EnterEvadeMode(), JustRespawned(), SetFollow(), SmartAI(), and UpdateAI().
|
private |
Definition at line 217 of file SmartAI.h.
Referenced by PausePath(), SmartAI(), and UpdatePath().
|
private |
Definition at line 218 of file SmartAI.h.
Referenced by DamageTaken(), SetInvincibilityHpLevel(), and SmartAI().
|
private |
Definition at line 211 of file SmartAI.h.
Referenced by AttackStart(), EnterCombat(), PausePath(), ReturnToLastOOCPos(), SmartAI(), StartPath(), and StopPath().
|
private |
Definition at line 210 of file SmartAI.h.
Referenced by EndPath(), GetNextWayPoint(), PausePath(), ResumePath(), SmartAI(), StopPath(), and UpdatePath().
|
private |
Definition at line 207 of file SmartAI.h.
Referenced by MovepointReached(), SmartAI(), and UpdatePath().
|
private |
Definition at line 214 of file SmartAI.h.
Referenced by AttackStart(), EndPath(), EnterEvadeMode(), PausePath(), Reset(), ResumePath(), ReturnToLastOOCPos(), SetCombatMove(), SetFollow(), SetRun(), SmartAI(), and UpdatePath().
|
private |
Definition at line 203 of file SmartAI.h.
Referenced by GetScript().
|
private |
Definition at line 204 of file SmartAI.h.
Referenced by EndPath(), GetNextWayPoint(), GetWPCount(), LoadPath(), SmartAI(), and StartPath().
|
private |
Definition at line 209 of file SmartAI.h.
Referenced by EndPath(), PausePath(), SmartAI(), and UpdatePath().
|
private |
Definition at line 208 of file SmartAI.h.
Referenced by MovepointReached(), SmartAI(), and UpdatePath().