diff options
| author | mo khan <mo@mokhan.ca> | 2019-08-11 18:34:29 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2019-08-11 18:34:29 -0600 |
| commit | ae42b62aa6e75c172e450ab397ab902c40697b9b (patch) | |
| tree | b519030b8be96c207433856eb7724af030779e92 /src/Q9 | |
| parent | d4932bfe4b6468fb4622bc9d6765d30c44d7edeb (diff) | |
fix javadoc
Diffstat (limited to 'src/Q9')
| -rw-r--r-- | src/Q9/MovingRobot.java | 8 | ||||
| -rw-r--r-- | src/Q9/Robot.java | 6 |
2 files changed, 11 insertions, 3 deletions
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; } |
