summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/util/Action.java
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2015-11-24 11:11:17 +0100
committerPacien TRAN-GIRARD2015-11-24 11:11:17 +0100
commitbc477506342411e9156b3230d847cb92bcb8e5f9 (patch)
treed952a5d14dccef38bfba3f8e27bfe10ea65d446a /src/ch/epfl/maze/util/Action.java
parent903553fe9e03e4af75eb7f8547e08b480bc58ec4 (diff)
downloadmaze-solver-bc477506342411e9156b3230d847cb92bcb8e5f9.tar.gz
Reformat code
Diffstat (limited to 'src/ch/epfl/maze/util/Action.java')
-rw-r--r--src/ch/epfl/maze/util/Action.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/ch/epfl/maze/util/Action.java b/src/ch/epfl/maze/util/Action.java
index 25509a4..069f135 100644
--- a/src/ch/epfl/maze/util/Action.java
+++ b/src/ch/epfl/maze/util/Action.java
@@ -5,7 +5,6 @@ package ch.epfl.maze.util;
5 * about it, such as if it was successful or not, and if the animal will die 5 * about it, such as if it was successful or not, and if the animal will die
6 * <i>while</i> performing it. 6 * <i>while</i> performing it.
7 */ 7 */
8
9public final class Action { 8public final class Action {
10 9
11 /* variables defining the action */ 10 /* variables defining the action */
@@ -19,7 +18,6 @@ public final class Action {
19 * 18 *
20 * @param dir Direction towards which the action needs to be performed 19 * @param dir Direction towards which the action needs to be performed
21 */ 20 */
22
23 public Action(Direction dir) { 21 public Action(Direction dir) {
24 if (dir != null) { 22 if (dir != null) {
25 mDirection = dir; 23 mDirection = dir;
@@ -37,7 +35,6 @@ public final class Action {
37 * @param dir Direction towards which the action needs to be performed 35 * @param dir Direction towards which the action needs to be performed
38 * @param successful Determines whether this action was successful 36 * @param successful Determines whether this action was successful
39 */ 37 */
40
41 public Action(Direction dir, boolean successful) { 38 public Action(Direction dir, boolean successful) {
42 mDirection = dir; 39 mDirection = dir;
43 mSuccess = successful; 40 mSuccess = successful;
@@ -53,7 +50,6 @@ public final class Action {
53 * @param successful Determines whether this action was successful 50 * @param successful Determines whether this action was successful
54 * @param dies Determines whether the action will die between two squares 51 * @param dies Determines whether the action will die between two squares
55 */ 52 */
56
57 public Action(Direction dir, boolean successful, boolean dies) { 53 public Action(Direction dir, boolean successful, boolean dies) {
58 mDirection = dir; 54 mDirection = dir;
59 mSuccess = successful; 55 mSuccess = successful;
@@ -65,7 +61,6 @@ public final class Action {
65 * 61 *
66 * @return Direction of the action 62 * @return Direction of the action
67 */ 63 */
68
69 public Direction getDirection() { 64 public Direction getDirection() {
70 return mDirection; 65 return mDirection;
71 } 66 }
@@ -75,7 +70,6 @@ public final class Action {
75 * 70 *
76 * @return <b>true</b> if the action was successful, <b>false</b> otherwise 71 * @return <b>true</b> if the action was successful, <b>false</b> otherwise
77 */ 72 */
78
79 public boolean isSuccessful() { 73 public boolean isSuccessful() {
80 return mSuccess; 74 return mSuccess;
81 } 75 }
@@ -87,8 +81,8 @@ public final class Action {
87 * @return <b>true</b> if the action dies between two squares, <b>false</b> 81 * @return <b>true</b> if the action dies between two squares, <b>false</b>
88 * otherwise 82 * otherwise
89 */ 83 */
90
91 public boolean diesBetweenSquares() { 84 public boolean diesBetweenSquares() {
92 return mDies; 85 return mDies;
93 } 86 }
87
94} 88}