diff options
| author | megamage <none@none> | 2009-05-20 20:39:55 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-05-20 20:39:55 -0500 |
| commit | 33c24110ddf234750252cc4369b253de849191e9 (patch) | |
| tree | a93c5869e6dc37ed8f5d846cc02f45da724c1bf9 /src/game/UnitAI.h | |
| parent | 1cc1adbc8be36fec954f8891c61e99e9f2c7e9f9 (diff) | |
*Fix a bug that player takes fall damage when finishing taxi path.
--HG--
branch : trunk
Diffstat (limited to 'src/game/UnitAI.h')
| -rw-r--r-- | src/game/UnitAI.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/game/UnitAI.h b/src/game/UnitAI.h index b6f5f4fc561..d7b5da086be 100644 --- a/src/game/UnitAI.h +++ b/src/game/UnitAI.h @@ -22,12 +22,20 @@ #define TRINITY_UNITAI_H #include "Platform/Define.h" -#include "CreatureAIImpl.h" class Unit; class Player; struct AISpellInfoType; -enum SelectAggroTarget; + +//Selection method used by SelectTarget +enum SelectAggroTarget +{ + SELECT_TARGET_RANDOM = 0, //Just selects a random target + SELECT_TARGET_TOPAGGRO, //Selects targes from top aggro to bottom + SELECT_TARGET_BOTTOMAGGRO, //Selects targets from bottom aggro to top + SELECT_TARGET_NEAREST, + SELECT_TARGET_FARTHEST, +}; class TRINITY_DLL_SPEC UnitAI { |
