19 #ifndef TRINITY_CREATUREAI_H
20 #define TRINITY_CREATUREAI_H
33 #define TIME_INTERVAL_LOOK 5000
34 #define VISIBILITY_RANGE 10000
74 bool UpdateVictimWithGaze();
76 void SetGazeOn(
Unit* target);
82 bool CheckBoundary(
Position const* who =
nullptr)
const;
102 void MoveInLineOfSight_Safe(
Unit* who);
105 void TriggerAlert(
Unit const* who)
const;
111 virtual void EnterEvadeMode(EvadeReason why = EVADE_REASON_OTHER);
150 void DoZoneInCombat(
Creature* creature =
NULL,
float maxRangeToNearestTarget = 50.0f);
190 int32 VisualizeBoundary(
uint32 duration,
Unit* owner=
nullptr,
bool fill=
false)
const;
191 virtual bool CheckInRoom();
195 virtual void MoveInLineOfSight(
Unit* );
197 bool _EnterEvadeMode(EvadeReason why = EVADE_REASON_OTHER);
virtual void PassengerBoarded(Unit *, int8, bool)
== Fields =======================================
Definition: CreatureAI.h:183
int8_t int8
Definition: Define.h:148
virtual void SpellHitTarget(Unit *, SpellInfo const *)
Definition: CreatureAI.h:133
Definition: SpellInfo.h:326
virtual void ReceiveEmote(Player *, uint32)
Definition: CreatureAI.h:153
virtual void IsSummonedBy(Unit *)
Definition: CreatureAI.h:124
Definition: CreatureAI.h:207
Definition: CreatureAI.h:48
Talk
Definition: boss_noth.cpp:41
virtual void AttackedBy(Unit *)
Definition: CreatureAI.h:136
Definition: CreatureAI.h:209
Definition: CreatureAI.h:210
arena_t NULL
Definition: jemalloc_internal.h:624
virtual void JustRespawned()
Definition: CreatureAI.h:140
EvadeReason
Definition: CreatureAI.h:85
#define false
Definition: CascPort.h:18
Definition: CreatureAI.h:55
Definition: CreatureAI.h:56
Definition: Creature.h:467
Definition: CreatureAI.h:47
TempSummonType
Definition: Object.h:52
void apply(T *val)
Definition: ByteConverter.h:41
virtual bool IsEscorted() const
Definition: CreatureAI.h:137
Definition: CreatureAI.h:212
Definition: CreatureAI.h:45
virtual void OwnerAttacked(Unit *)
Definition: CreatureAI.h:159
bool m_MoveInLineOfSight_locked
Definition: CreatureAI.h:202
virtual bool CanSeeAlways(WorldObject const *)
Definition: CreatureAI.h:187
Definition: CreatureAI.h:63
virtual void EnterCombat(Unit *)
Definition: CreatureAI.h:114
Creature *const me
Definition: CreatureAI.h:71
Definition: CreatureAI.h:89
Definition: CreatureAI.h:208
Definition: CreatureAI.h:88
virtual void SpellHit(Unit *, SpellInfo const *)
Definition: CreatureAI.h:130
Definition: CreatureAI.h:44
Definition: CreatureAI.h:39
std::set< AreaBoundary const * > CreatureBoundary
Definition: CreatureAI.h:67
Definition: CreatureAI.h:57
Definition: CreatureAI.h:49
virtual void KilledUnit(Unit *)
Definition: CreatureAI.h:120
int32_t int32
Definition: Define.h:146
Definition: CreatureAI.h:68
virtual void JustDied(Unit *)
Definition: CreatureAI.h:117
SCEquip
Definition: CreatureAI.h:61
uint32_t uint32
Definition: Define.h:150
Definition: CreatureAI.h:87
virtual void SummonedCreatureDies(Creature *, Unit *)
Definition: CreatureAI.h:127
Definition: CreatureAI.h:43
void SetBoundary(CreatureBoundary const *boundary)
Definition: CreatureAI.h:83
CreatureBoundary const * GetBoundary() const
Definition: CreatureAI.h:192
Definition: CreatureAI.h:41
void DoImmediateBoundaryCheck()
Definition: Creature.h:643
virtual bool CanRespawn()
Definition: CreatureAI.h:108
virtual void OnSpellClick(Unit *, bool &)
Definition: CreatureAI.h:185
CreatureBoundary const * _boundary
Definition: CreatureAI.h:199
#define TC_GAME_API
Definition: Define.h:134
CreatureAI(Creature *creature)
Definition: CreatureAI.h:95
SelectEffect
Definition: CreatureAI.h:53
virtual ~CreatureAI()
Definition: CreatureAI.h:97
virtual void JustReachedHome()
Definition: CreatureAI.h:148
Definition: CreatureAI.h:58
uint8_t uint8
Definition: Define.h:152
Definition: Position.h:27
Definition: CreatureAI.h:211
virtual void CorpseRemoved(uint32 &)
== Triggered Actions Requested ==================
Definition: CreatureAI.h:176
virtual void OnCharmed(bool apply)=0
virtual void SummonedCreatureDespawn(Creature *)
Definition: CreatureAI.h:126
virtual void MovementInform(uint32, uint32)
Definition: CreatureAI.h:143
virtual void OwnerAttackedBy(Unit *)
Definition: CreatureAI.h:156
virtual void JustSummoned(Creature *)
Definition: CreatureAI.h:123
SelectTargetType
Definition: CreatureAI.h:37
Definition: CreatureAI.h:64
Permitions
Definition: CreatureAI.h:205