aboutsummaryrefslogtreecommitdiff
path: root/src/game/UnitAI.h
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-26 16:54:59 -0500
committermegamage <none@none>2009-08-26 16:54:59 -0500
commita35991c8365575226394f90071dc97894e94f21c (patch)
tree450f5f2eec929dacc5c09f1e13c9eaa7a75a81ba /src/game/UnitAI.h
parentdad2c55287d4a9c35cbfa1ad4e8d3e8e8255f588 (diff)
*Add function CanAIAttack
--HG-- branch : trunk
Diffstat (limited to 'src/game/UnitAI.h')
-rw-r--r--src/game/UnitAI.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/UnitAI.h b/src/game/UnitAI.h
index 3458eda9b36..ba6704d897f 100644
--- a/src/game/UnitAI.h
+++ b/src/game/UnitAI.h
@@ -45,6 +45,7 @@ class TRINITY_DLL_SPEC UnitAI
Unit * const me;
public:
explicit UnitAI(Unit *u) : me(u) {}
+ virtual bool CanAIAttack(const Unit *who) const { return true; }
virtual void AttackStart(Unit *);
virtual void UpdateAI(const uint32 diff) = 0;