summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/physical/zoo
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2015-11-23 10:34:41 +0100
committerPacien TRAN-GIRARD2015-11-23 10:34:41 +0100
commitd9f6761221c25c19e96b2f173d4db0a27b6c8e9d (patch)
tree35c91646e4a4b345bd9a708d9887ecf0b555688a /src/ch/epfl/maze/physical/zoo
parent6dd386878179854edc089ba8d12d56c5b88081c3 (diff)
downloadmaze-solver-d9f6761221c25c19e96b2f173d4db0a27b6c8e9d.tar.gz
Properly define class constants and protect object attributes
Diffstat (limited to 'src/ch/epfl/maze/physical/zoo')
-rw-r--r--src/ch/epfl/maze/physical/zoo/Panda.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ch/epfl/maze/physical/zoo/Panda.java b/src/ch/epfl/maze/physical/zoo/Panda.java
index fecec84..dc1198e 100644
--- a/src/ch/epfl/maze/physical/zoo/Panda.java
+++ b/src/ch/epfl/maze/physical/zoo/Panda.java
@@ -87,7 +87,7 @@ public class Panda extends ProbabilisticAnimal {
87 private Direction[] selectBestDirections(Direction[] choices) { 87 private Direction[] selectBestDirections(Direction[] choices) {
88 // special case 88 // special case
89 if (this.isIntersection(choices) && this.allChoicesLeadingTo(choices, Trail.Marking.AVOID_MARKING)) 89 if (this.isIntersection(choices) && this.allChoicesLeadingTo(choices, Trail.Marking.AVOID_MARKING))
90 return new Direction[]{this.currentDirection.reverse()}; 90 return new Direction[]{this.getCurrentDirection().reverse()};
91 91
92 // general case 92 // general case
93 for (Trail.Marking mark : Trail.Marking.ALL) { 93 for (Trail.Marking mark : Trail.Marking.ALL) {