public void assignRobotRepresent(VivaeRobotRepresent repr) { int activePositionsCnt = positions.size(); PositionMark pattern = positions.get(actives.size() % activePositionsCnt); repr.getBody().setPosition((float) pattern.getX(), (float) pattern.getY()); repr.setArena(this); repr.setWorld(getWorld()); addActive((Active) repr); }
public void addPosition(PositionMark pos) { positions.add(pos); }