19 #ifndef TRINITY_COMBATAI_H
20 #define TRINITY_COMBATAI_H
45 void Reset()
override;
97 #define VEHICLE_CONDITION_CHECK_TIME 1000
98 #define VEHICLE_DISMISS_TIME 5000
113 void LoadConditions();
114 void CheckConditions(
uint32 diff);
Definition: CombatAI.h:70
bool m_DoDismiss
Definition: CombatAI.h:117
Definition: CombatAI.h:83
SpellVct spells
Definition: CombatAI.h:55
EventMap events
Definition: CombatAI.h:54
std::vector< uint32 > SpellVct
Definition: CombatAI.h:37
static int Permissible(Creature const *)
Definition: CombatAI.h:91
static int Permissible(Creature const *)
Definition: CombatAI.h:110
Definition: CreatureAI.h:207
void OnCharmed(bool apply) override
Definition: CreatureAI.cpp:32
void InitializeAI() override
Definition: CombatAI.cpp:51
static int Permissible(Creature const *)
Definition: CombatAI.h:51
virtual void UpdateAI(uint32 diff)=0
Definition: Creature.h:467
uint32 m_DismissTimer
Definition: CombatAI.h:118
void apply(T *val)
Definition: ByteConverter.h:41
virtual bool CanAIAttack(Unit const *) const
Definition: UnitAI.h:126
CasterAI(Creature *c)
Definition: CombatAI.h:61
virtual void InitializeAI()
Definition: UnitAI.h:130
virtual void EnterCombat(Unit *)
Definition: CreatureAI.h:114
bool m_HasConditions
Definition: CombatAI.h:115
CombatAI(Creature *c)
Definition: CombatAI.h:42
Definition: CombatAI.h:58
Definition: CombatAI.h:39
Definition: EventMap.h:25
Definition: CreatureAI.h:68
virtual void JustDied(Unit *)
Definition: CreatureAI.h:117
uint32_t uint32
Definition: Define.h:150
void EnterCombat(Unit *who) override
Definition: CombatAI.cpp:72
float m_minRange
Definition: CombatAI.h:94
AggressorAI(Creature *c)
Definition: CombatAI.h:31
void MoveInLineOfSight(Unit *) override
Definition: CombatAI.h:106
#define TC_GAME_API
Definition: Define.h:134
Definition: CombatAI.h:100
void AttackStart(Unit *victim) override
Definition: CombatAI.h:63
#define MELEE_RANGE
Definition: Object.h:48
Definition: FactoryHolder.h:52
virtual void Reset()
Definition: UnitAI.h:132
void UpdateAI(uint32 diff) override
Definition: CombatAI.cpp:83
void AttackStart(Unit *) override
Definition: CombatAI.h:107
virtual void AttackStart(Unit *)
Definition: UnitAI.cpp:29
uint32 m_ConditionsTimer
Definition: CombatAI.h:116
virtual void SpellInterrupted(uint32, uint32)
Definition: UnitAI.h:238
Definition: CombatAI.h:28
float m_minRange
Definition: CombatAI.h:80
static int Permissible(Creature const *)
Definition: CombatAI.h:77
void AttackStartCaster(Unit *victim, float dist)
Definition: UnitAI.cpp:43
float m_attackDist
Definition: CombatAI.h:67