|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <PetAI.h>
Public Member Functions | |
| void | AttackedBy (Unit *attacker) OVERRIDE |
| void | AttackStart (Unit *target) OVERRIDE |
| void | EnterEvadeMode () OVERRIDE |
| void | KilledUnit (Unit *) OVERRIDE |
| void | MoveInLineOfSight (Unit *) OVERRIDE |
| void | MoveInLineOfSight_Safe (Unit *) |
| void | MovementInform (uint32 moveType, uint32 data) OVERRIDE |
| void | OwnerAttacked (Unit *target) OVERRIDE |
| void | OwnerAttackedBy (Unit *attacker) OVERRIDE |
| PetAI (Creature *c) | |
| void | ReceiveEmote (Player *player, uint32 textEmote) OVERRIDE |
| void | UpdateAI (uint32) OVERRIDE |
| == Triggered Actions Requested ================== | |
| Public Member Functions inherited from CreatureAI | |
| virtual bool | CanRespawn () |
| virtual bool | CanSeeAlways (WorldObject const *) |
| bool | CanSeeEvenInPassiveMode () const |
| virtual void | CorpseRemoved (uint32 &) |
| == State checks ================================= | |
| CreatureAI (Creature *creature) | |
| void | DoZoneInCombat (Creature *creature=NULL, float maxRangeToNearestTarget=50.0f) |
| virtual void | EnterCombat (Unit *) |
| virtual void | ExecuteEvent (uint32) |
| virtual bool | IsEscorted () |
| virtual void | IsSummonedBy (Unit *) |
| virtual void | JustDied (Unit *) |
| virtual void | JustReachedHome () |
| virtual void | JustRespawned () |
| virtual void | JustSummoned (Creature *) |
| void | MoveInLineOfSight_Safe (Unit *who) |
| == Reactions At ================================= | |
| void | OnCharmed (bool apply) |
| virtual void | OnSpellClick (Unit *, bool &) |
| virtual void | PassengerBoarded (Unit *, int8, bool) |
| == Fields ======================================= | |
| void | SetCanSeeEvenInPassiveMode (bool canSeeEvenInPassiveMode) |
| virtual void | SpellHit (Unit *, SpellInfo const *) |
| virtual void | SpellHitTarget (Unit *, SpellInfo const *) |
| virtual void | SummonedCreatureDespawn (Creature *) |
| 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) |
| virtual bool | CanAIAttack (Unit const *) const |
| virtual void | DamageDealt (Unit *, uint32 &, DamageEffectType) |
| virtual void | DamageTaken (Unit *, uint32 &) |
| virtual void | DoAction (int32) |
| 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 uint32 | GetData (uint32) const |
| virtual uint64 | GetGUID (int32=0) const |
| virtual void | HealDone (Unit *, uint32 &) |
| virtual void | HealReceived (Unit *, uint32 &) |
| virtual void | InitializeAI () |
| virtual bool | OnGossipHello (Player *player) |
| virtual void | Reset () |
| 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 | SetData (uint32, uint32) |
| virtual void | SetGUID (uint64, int32=0) |
| virtual void | sGossipHello (Player *) |
| virtual void | sGossipSelect (Player *, uint32, uint32) |
| virtual void | sGossipSelectCode (Player *, uint32, uint32, char const *) |
| virtual bool | sOnDummyEffect (Unit *, uint32, SpellEffIndex) |
| virtual void | sOnGameEvent (bool, uint16) |
| virtual void | SpellInterrupted (uint32, uint32) |
| virtual void | sQuestAccept (Player *, Quest const *) |
| virtual void | sQuestComplete (Player *, Quest const *) |
| virtual void | sQuestReward (Player *, Quest const *, uint32) |
| 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 () |
Private Member Functions | |
| bool | _needToStop (void) |
| void | _stopAttack (void) |
| bool | CanAttack (Unit *target) |
| void | ClearCharmInfoFlags () |
| void | DoAttack (Unit *target, bool chase) |
| void | HandleReturnMovement () |
| Unit * | SelectNextTarget (bool allowAutoSelect) const |
| void | UpdateAllies () |
Private Attributes | |
| TimeTracker | i_tracker |
| bool | inCombat |
| std::set< uint64 > | m_AllySet |
| uint32 | m_updateAlliesTimer |
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 28 of file PetAI.cpp.
References CreatureAI::CreatureAI(), i_tracker, inCombat, TIME_INTERVAL_LOOK, and UpdateAllies().
Referenced by npc_snufflenose_gopher::npc_snufflenose_gopherAI::npc_snufflenose_gopherAI().
|
private |
|
private |
Definition at line 42 of file PetAI.cpp.
References ClearCharmInfoFlags(), HandleReturnMovement(), CreatureAI::me, and SF_LOG_DEBUG.
Referenced by UpdateAI().
|
virtual |
Reimplemented from CreatureAI.
Definition at line 603 of file PetAI.cpp.
References AttackStart(), CreatureAI::me, and REACT_PASSIVE.
|
virtual |
Reimplemented from UnitAI.
Definition at line 309 of file PetAI.cpp.
References CanAttack(), COMMAND_STAY, DoAttack(), and CreatureAI::me.
Referenced by AttackedBy(), KilledUnit(), OwnerAttacked(), OwnerAttackedBy(), and UpdateAI().
|
private |
Definition at line 507 of file PetAI.cpp.
References COMMAND_FOLLOW, COMMAND_STAY, Object::GetGUID(), Unit::HasBreakableByDamageCrowdControlAura(), Unit::IsAlive(), CreatureAI::me, and REACT_PASSIVE.
Referenced by AttackStart(), and UpdateAI().
|
private |
Definition at line 587 of file PetAI.cpp.
References CreatureAI::me, CharmInfo::SetIsAtStay(), CharmInfo::SetIsCommandAttack(), CharmInfo::SetIsCommandFollow(), CharmInfo::SetIsFollowing(), and CharmInfo::SetIsReturning().
Referenced by _stopAttack(), DoAttack(), HandleReturnMovement(), and MovementInform().
|
private |
Definition at line 441 of file PetAI.cpp.
References ClearCharmInfoFlags(), CreatureAI::me, and REACT_AGGRESSIVE.
Referenced by AttackStart().
|
inlinevirtual |
|
private |
Definition at line 406 of file PetAI.cpp.
References ClearCharmInfoFlags(), COMMAND_STAY, CreatureAI::me, and PET_FOLLOW_DIST.
Referenced by _stopAttack(), KilledUnit(), and UpdateAI().
|
virtual |
Reimplemented from CreatureAI.
Definition at line 287 of file PetAI.cpp.
References AttackStart(), HandleReturnMovement(), CreatureAI::me, and SelectNextTarget().
|
inlinevirtual |
Reimplemented from CreatureAI.
Definition at line 473 of file PetAI.cpp.
References ClearCharmInfoFlags(), FOLLOW_MOTION_TYPE, CreatureAI::me, and POINT_MOTION_TYPE.
Referenced by npc_snufflenose_gopher::npc_snufflenose_gopherAI::MovementInform().
|
virtual |
Reimplemented from CreatureAI.
Definition at line 341 of file PetAI.cpp.
References AttackStart(), CreatureAI::me, and REACT_PASSIVE.
|
virtual |
Reimplemented from CreatureAI.
Definition at line 321 of file PetAI.cpp.
References AttackStart(), CreatureAI::me, and REACT_PASSIVE.
|
static |
Definition at line 20 of file PetAI.cpp.
References Unit::IsPet(), PERMIT_BASE_NO, and PERMIT_BASE_SPECIAL.
Reimplemented from CreatureAI.
Definition at line 563 of file PetAI.cpp.
References EMOTE_ONESHOT_OMNICAST_GHOUL, EMOTE_STATE_STUN, Object::GetGUID(), CreatureAI::me, TEXT_EMOTE_ANGRY, TEXT_EMOTE_COWER, TEXT_EMOTE_GLARE, and TEXT_EMOTE_SOOTHE.
|
private |
Definition at line 362 of file PetAI.cpp.
References CreatureAI::me, REACT_AGGRESSIVE, and REACT_PASSIVE.
Referenced by KilledUnit(), and UpdateAI().
|
virtual |
== Triggered Actions Requested ==================
Reimplemented from CreatureAI.
Definition at line 63 of file PetAI.cpp.
References _needToStop(), _stopAttack(), AttackStart(), CanAttack(), Spell::CanAutoCast(), SpellInfo::CanBeUsedInCombat(), COMMAND_STAY, UnitAI::DoMeleeAttackIfReady(), Unit::getAttackerForHelper(), Object::GetTypeId(), ObjectAccessor::GetUnit(), HandleReturnMovement(), SpellInfo::HasEffect(), SpellInfo::Id, SpellInfo::IsPositive(), m_AllySet, M_PI, Spell::m_spellInfo, m_updateAlliesTimer, CreatureAI::me, MOVE_FLIGHT, MOVE_RUN, MOVE_WALK, Spell::prepare(), REACT_AGGRESSIVE, SelectNextTarget(), SpellCastTargets::SetUnitTarget(), SF_LOG_DEBUG, SPELL_EFFECT_JUMP_DEST, sSpellMgr, Object::ToPlayer(), TRIGGERED_NONE, TYPEID_PLAYER, UNIT_STATE_CASTING, and UpdateAllies().
Referenced by npc_snufflenose_gopher::npc_snufflenose_gopherAI::UpdateAI().
|
private |
Definition at line 247 of file PetAI.cpp.
References Group::GetFirstMember(), Object::GetGUID(), Group::GetMembersCount(), IN_MILLISECONDS, Group::isRaidGroup(), m_AllySet, m_updateAlliesTimer, CreatureAI::me, GroupReference::next(), Group::SameSubGroup(), and Object::ToPlayer().
Referenced by PetAI(), and UpdateAI().
|
private |
|
private |
Definition at line 47 of file PetAI.h.
Referenced by UpdateAI(), and UpdateAllies().
|
private |
Definition at line 48 of file PetAI.h.
Referenced by UpdateAI(), and UpdateAllies().