and this all things I have to put into the editor of the enemy, should I?


private boolean canSee(Class cls) { return getOneIntersectingObject(cls) != null; } private void eat(Class cls) { getWorld().removeObject(getOneIntersectingObject(cls)); }
if (canSee(Sheep.class)) eat(Sheep.class);