summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/engine/Move.java
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-05-03 15:31:32 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-05-03 15:31:32 +0200
commit79793cf2dd5cad2af5fa513a7213292d2ee53f86 (patch)
tree306e849be86d992a543e42c8e8ddec80d24795a6 /core/src/ch/asynk/rustanddust/engine/Move.java
parentcff800a98e8aec4e454c5dc84fd4249b7127a1fd (diff)
downloadRustAndDust-79793cf2dd5cad2af5fa513a7213292d2ee53f86.zip
RustAndDust-79793cf2dd5cad2af5fa513a7213292d2ee53f86.tar.gz
OMG: add event queue, messages, replay, bounce animation, complete states rewrite ...
Diffstat (limited to 'core/src/ch/asynk/rustanddust/engine/Move.java')
-rw-r--r--core/src/ch/asynk/rustanddust/engine/Move.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/core/src/ch/asynk/rustanddust/engine/Move.java b/core/src/ch/asynk/rustanddust/engine/Move.java
index 09e7330..ff927c0 100644
--- a/core/src/ch/asynk/rustanddust/engine/Move.java
+++ b/core/src/ch/asynk/rustanddust/engine/Move.java
@@ -49,11 +49,10 @@ public class Move extends Path implements Iterable<Vector3>, Iterator
movePool.clear();
}
- public static Move getEnter(Pawn pawn, Tile to, Orientation orientation)
+ public static Move getEnter(Pawn pawn, Tile from, Tile to, Orientation orientation, Path path)
{
- Move m = get(pawn, null, to, orientation, null);
+ Move m = get(pawn, from, to, orientation, path);
m.type = MoveType.ENTER;
- m.cost = to.costFrom(pawn, orientation);
return m;
}
@@ -122,11 +121,6 @@ public class Move extends Path implements Iterable<Vector3>, Iterator
return (type == MoveType.REGULAR);
}
- public boolean isFinal()
- {
- return (type != MoveType.ENTER);
- }
-
public int steps()
{
int steps = 0;