public void destroyEnemies()
{
Bird bird = getOneIntersectingObject(Bird.class);
if(enemy != null)
{
World myWorld = getWorld();
getWorld().removeObject(bird);
}
Preditor preditor = getOneInetersectingObject(Preditor.class);
if(enemy !=null)
{
World myWorld = getWorld();
getWorld().removeObject(enemy);
}
}
public void kill()
{
Bird bird = getOneIntersectingObject(Bird.class);
if(blueenemy != null)
{
getWorld().removeObject(bird);
}
Preditor preditor = getOneintersctingObect(Preditor.class);
if(blueenemy !=null)
{
getWorld().removeObject(preditor);
}
}


