From ae42b62aa6e75c172e450ab397ab902c40697b9b Mon Sep 17 00:00:00 2001 From: mo khan Date: Sun, 11 Aug 2019 18:34:29 -0600 Subject: fix javadoc --- src/Q9/MovingRobot.java | 8 ++++++-- src/Q9/Robot.java | 6 +++++- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'src/Q9') diff --git a/src/Q9/MovingRobot.java b/src/Q9/MovingRobot.java index 8c20ec8..ba587ab 100644 --- a/src/Q9/MovingRobot.java +++ b/src/Q9/MovingRobot.java @@ -28,7 +28,7 @@ public class MovingRobot extends Robot { /** * Checks to see if a robot can advance in the direction provided. * - * @param the direction that a robot wants to advance to. + * @param direction the direction that a robot wants to advance to. * @return returns true if the robot can advance to the given direction. */ public boolean validateNextMove(int direction) { @@ -59,7 +59,11 @@ public class MovingRobot extends Robot { return this.rng.nextInt(7) + 1; } - /** @return true if the two robots are in the same coordinate. */ + /** + * @param r1 robot 1 + * @param r2 robot 2 + * @return true if the two robots are in the same coordinate. + */ public static boolean sameSlot(Robot r1, Robot r2) { return r1.getX() == r2.getX() && r1.getY() == r2.getY(); } diff --git a/src/Q9/Robot.java b/src/Q9/Robot.java index ee495e6..6f9d2c0 100644 --- a/src/Q9/Robot.java +++ b/src/Q9/Robot.java @@ -66,7 +66,11 @@ public class Robot { this.y = y; } - /** @return true if the robot is at the given coordinate */ + /** + * @param x the x coordinate + * @param y the y coordinate + * @return true if the robot is at the given coordinate + * */ public boolean atPosition(int x, int y) { return getX() == x && getY() == y; } -- cgit v1.2.3