@Test public void testInitRound() { DiamondFist gun = newGun(true, true); Diamond newRobot = Mockito.mock(Diamond.class); gun.getRenderables().add( RoboGraphic.drawPoint(new Point2D.Double(1, 1), Color.red)); gun.initRound(newRobot); verify(gunDataManager).initRound(); verify(virtualGunsManager).initRound(); assertEquals(newRobot, gun.getRobot()); assertTrue(gun.getRenderables().isEmpty()); }
public void initRound(Diamond robot) { _robot = robot; _gunDataManager.initRound(); _virtualGuns.initRound(); _startedDuel = false; _drawVictory = false; _renderables.clear(); }
DiamondFist implements RoboPainter { public void initRound(Diamond robot) { _robot = robot; _gunDataManager.initRound(); _virtualGuns.initRound(); _startedDuel = false; _drawVictory = false; _renderables.clear(); } }
DiamondFist implements RoboPainter { public void initRound(Diamond robot) { _robot = robot; _gunDataManager.initRound(); _virtualGuns.initRound(); _startedDuel = false; _drawVictory = false; _renderables.clear(); } DiamondFist(Diamond robot, boolean isTcMode);   DiamondFist(Diamond robot, boolean isTcMode, BattleField battleField,
      Collection<RoboGraphic> renderables, OutputStream out);   DiamondFist(Diamond robot, boolean isTcMode, BattleField battleField,
      MovementPredictor predictor, Collection<RoboGraphic> renderables,
      OutputStream out);   DiamondFist(Diamond robot, boolean isTcMode, GunDataManager gunDataManager,
      VirtualGunsManager<TimestampedFiringAngle> virtualGunsManager,
      BattleField battleField, Collection<RoboGraphic> renderables,
      OutputStream out); }
DiamondFist implements RoboPainter { public void initRound(Diamond robot) { _robot = robot; _gunDataManager.initRound(); _virtualGuns.initRound(); _startedDuel = false; _drawVictory = false; _renderables.clear(); } DiamondFist(Diamond robot, boolean isTcMode);   DiamondFist(Diamond robot, boolean isTcMode, BattleField battleField,
      Collection<RoboGraphic> renderables, OutputStream out);   DiamondFist(Diamond robot, boolean isTcMode, BattleField battleField,
      MovementPredictor predictor, Collection<RoboGraphic> renderables,
      OutputStream out);   DiamondFist(Diamond robot, boolean isTcMode, GunDataManager gunDataManager,
      VirtualGunsManager<TimestampedFiringAngle> virtualGunsManager,
      BattleField battleField, Collection<RoboGraphic> renderables,
      OutputStream out); void initRound(Diamond robot); void execute(); void onScannedRobot(ScannedRobotEvent e); void onRobotDeath(RobotDeathEvent e); void onWin(WinEvent e); void onDeath(DeathEvent e); void onBulletHit(BulletHitEvent e); void onBulletHitBullet(BulletHitBulletEvent e); void onPaint(Graphics2D g); int getEnemiesAlive(); void addFireListener(FireListener listener); void paintOn(); void paintOff(); void robocodePaintOn(); void robocodePaintOff(); String paintLabel(); boolean paintStatus(); }
DiamondFist implements RoboPainter { public void initRound(Diamond robot) { _robot = robot; _gunDataManager.initRound(); _virtualGuns.initRound(); _startedDuel = false; _drawVictory = false; _renderables.clear(); } DiamondFist(Diamond robot, boolean isTcMode);   DiamondFist(Diamond robot, boolean isTcMode, BattleField battleField,
      Collection<RoboGraphic> renderables, OutputStream out);   DiamondFist(Diamond robot, boolean isTcMode, BattleField battleField,
      MovementPredictor predictor, Collection<RoboGraphic> renderables,
      OutputStream out);   DiamondFist(Diamond robot, boolean isTcMode, GunDataManager gunDataManager,
      VirtualGunsManager<TimestampedFiringAngle> virtualGunsManager,
      BattleField battleField, Collection<RoboGraphic> renderables,
      OutputStream out); void initRound(Diamond robot); void execute(); void onScannedRobot(ScannedRobotEvent e); void onRobotDeath(RobotDeathEvent e); void onWin(WinEvent e); void onDeath(DeathEvent e); void onBulletHit(BulletHitEvent e); void onBulletHitBullet(BulletHitBulletEvent e); void onPaint(Graphics2D g); int getEnemiesAlive(); void addFireListener(FireListener listener); void paintOn(); void paintOff(); void robocodePaintOn(); void robocodePaintOff(); String paintLabel(); boolean paintStatus();  }