Exemple #1
0
 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);
 }
Exemple #2
0
 public void addPosition(PositionMark pos) {
   positions.add(pos);
 }