@Test public void testBattleField() { BattleField battleField = newBattleField(800, 600); assertEquals(800, battleField.width, 0.0001); assertEquals(600, battleField.height, 0.0001); }
public BattleField(double width, double height) { rectangle = new Rectangle2D.Double(18, 18, width - 36, height - 36); this.width = width; this.height = height; }
BattleField { public BattleField(double width, double height) { rectangle = new Rectangle2D.Double(18, 18, width - 36, height - 36); this.width = width; this.height = height; } }
BattleField { public BattleField(double width, double height) { rectangle = new Rectangle2D.Double(18, 18, width - 36, height - 36); this.width = width; this.height = height; } BattleField(double width, double height); }
BattleField { public BattleField(double width, double height) { rectangle = new Rectangle2D.Double(18, 18, width - 36, height - 36); this.width = width; this.height = height; } BattleField(double width, double height); Point2D.Double translateToField(Point2D.Double p); double orbitalWallDistance(Point2D.Double sourceLocation,
      Point2D.Double targetLocation, double bulletPower, int direction); double directToWallDistance(Point2D.Double targetLocation,
      double distance, double heading, double bulletPower); double wallSmoothing(Point2D.Double startLocation, double startAngle,
      int orientation, double wallStick); }
BattleField { public BattleField(double width, double height) { rectangle = new Rectangle2D.Double(18, 18, width - 36, height - 36); this.width = width; this.height = height; } BattleField(double width, double height); Point2D.Double translateToField(Point2D.Double p); double orbitalWallDistance(Point2D.Double sourceLocation,
      Point2D.Double targetLocation, double bulletPower, int direction); double directToWallDistance(Point2D.Double targetLocation,
      double distance, double heading, double bulletPower); double wallSmoothing(Point2D.Double startLocation, double startAngle,
      int orientation, double wallStick); final Rectangle2D.Double rectangle; final double width; final double height; }