diff options
author | Pacien TRAN-GIRARD | 2015-11-24 12:56:50 +0100 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2015-11-24 12:56:50 +0100 |
commit | 5f9be99e7ebd4a90e666e6efbe9e9d4b3b8008e7 (patch) | |
tree | f551b9193ef29660bacf1c0f25707bbd407f9200 /src/ch/epfl/maze/physical/GhostPredator.java | |
parent | fb492341a1d05590c5230e8e0bd5e48f530944fe (diff) | |
download | maze-solver-5f9be99e7ebd4a90e666e6efbe9e9d4b3b8008e7.tar.gz |
Move directional attribute to Animal
Diffstat (limited to 'src/ch/epfl/maze/physical/GhostPredator.java')
-rw-r--r-- | src/ch/epfl/maze/physical/GhostPredator.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ch/epfl/maze/physical/GhostPredator.java b/src/ch/epfl/maze/physical/GhostPredator.java index 5408bf6..e4a64b3 100644 --- a/src/ch/epfl/maze/physical/GhostPredator.java +++ b/src/ch/epfl/maze/physical/GhostPredator.java | |||
@@ -116,7 +116,7 @@ abstract public class GhostPredator extends Predator { | |||
116 | Prey prey = GhostPredator.getPrey(daedalus); | 116 | Prey prey = GhostPredator.getPrey(daedalus); |
117 | 117 | ||
118 | if (prey == null) return Direction.NONE; | 118 | if (prey == null) return Direction.NONE; |
119 | return prey.getCurrentDirection(); | 119 | return prey.getDirection(); |
120 | } | 120 | } |
121 | 121 | ||
122 | /** | 122 | /** |