aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/CreatureAI.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game/AI/CreatureAI.h')
-rw-r--r--src/server/game/AI/CreatureAI.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/server/game/AI/CreatureAI.h b/src/server/game/AI/CreatureAI.h
index fe557f76529..1c6943a245c 100644
--- a/src/server/game/AI/CreatureAI.h
+++ b/src/server/game/AI/CreatureAI.h
@@ -67,10 +67,13 @@ class TC_GAME_API CreatureAI : public UnitAI
EVADE_REASON_OTHER
};
- explicit CreatureAI(Creature* creature);
+ explicit CreatureAI(Creature* creature, uint32 scriptId = {});
virtual ~CreatureAI();
+ // Gets the id of the AI (script id)
+ uint32 GetId() const { return _scriptId; }
+
void Talk(uint8 id, WorldObject const* whisperTarget = nullptr);
/// == Reactions At =================================
@@ -230,6 +233,8 @@ class TC_GAME_API CreatureAI : public UnitAI
bool _negateBoundary;
private:
+ uint32 const _scriptId;
+
bool m_MoveInLineOfSight_locked;
void _OnOwnerCombatInteraction(Unit* target);
};