Fix ScriptedAI::SelectUnit to support SELECT_TARGET_NEAREST and SELECT_TARGET_FARTHEST.

Remove duplicate select target function CreatureEventAI::SelectUnit.

--HG--
branch : trunk
This commit is contained in:
Trazom62
2010-03-13 12:15:32 +01:00
parent 4c9a9a02b0
commit 75a63297ca
4 changed files with 7 additions and 49 deletions
-13
View File
@@ -296,19 +296,6 @@ enum ChatType
CHAT_TYPE_ZONE_YELL = 6
};
//Selection method used by SelectTarget (CreatureEventAI)
enum AttackingTarget
{
ATTACKING_TARGET_RANDOM = 0, //Just selects a random target
ATTACKING_TARGET_TOPAGGRO, //Selects targes from top aggro to bottom
ATTACKING_TARGET_BOTTOMAGGRO, //Selects targets from bottom aggro to top
/* not implemented
ATTACKING_TARGET_RANDOM_PLAYER, //Just selects a random target (player only)
ATTACKING_TARGET_TOPAGGRO_PLAYER, //Selects targes from top aggro to bottom (player only)
ATTACKING_TARGET_BOTTOMAGGRO_PLAYER, //Selects targets from bottom aggro to top (player only)
*/
};
// GCC have alternative #pragma pack() syntax and old gcc version not support pack(pop), also any gcc version not support it at some platform
#if defined( __GNUC__ )
#pragma pack()