@Override
  public void onRoundStarted(final RoundStartedEvent event) {
    super.onRoundStarted(event);
    IRobotSnapshot rate = event.getStartSnapshot().getRobots()[0];

    originalHeading = rate.getBodyHeading();
    originalX = rate.getX();
  }
Exemple #2
0
  @Override
  public void onRoundStarted(final RoundStartedEvent event) {
    super.onRoundStarted(event);
    if (event.getRound() == 0) {
      IRobotSnapshot crazy = event.getStartSnapshot().getRobots()[0];
      IRobotSnapshot target = event.getStartSnapshot().getRobots()[1];

      Assert.assertNear(566.2968069, crazy.getX());
      Assert.assertNear(165.0789361, crazy.getY());
      Assert.assertNear(436.3146436, target.getX());
      Assert.assertNear(350.7235444, target.getY());
    }
  }