3233343536373839404142
addObject(atmosphere); addObject(ground); addObject(fence); Sheep sheep = createSheep(this); addObject(sheep); Shepherd shepherd = createShepherd(this); addObject(shepherd); }
4243444546474849505152
} @Override public void ticktack() { if (appendSheep) { Sheep sheep = createSheep(this); addObject(sheep); } super.ticktack();
17181920212223242526272829
@Override public void ticktack() { for (Object object : getWorld().getObjects()) { if (Sheep.class.isInstance(object)) { Sheep sheep = (Sheep) object; if (sheep.getJumpFrame() == Sheep.JUMP_FRAME) { count++; } } }