private void giveAttackCommand(String targetType)
{
foreach (Entity ene in UpdateKeeper.getInstance().getEntities())
{
if (ene is Enemy && ((Enemy)ene).CurrentState == Enemy.State.Following)
{
((Enemy)ene).AddCommand(new AttackAI(ene, targetType));
}
}
}