diff options
Diffstat (limited to 'src/com/fourisland/fourpuzzle/gamestate/mapview/event/specialmove')
-rw-r--r-- | src/com/fourisland/fourpuzzle/gamestate/mapview/event/specialmove/StepMoveEvent.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/com/fourisland/fourpuzzle/gamestate/mapview/event/specialmove/StepMoveEvent.java b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/specialmove/StepMoveEvent.java index 74affc4..2f55816 100644 --- a/src/com/fourisland/fourpuzzle/gamestate/mapview/event/specialmove/StepMoveEvent.java +++ b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/specialmove/StepMoveEvent.java | |||
@@ -24,14 +24,15 @@ public class StepMoveEvent implements MoveEvent { | |||
24 | 24 | ||
25 | public void doAction(Event ev) | 25 | public void doAction(Event ev) |
26 | { | 26 | { |
27 | ev.startMoving(direction); | 27 | if (ev.startMoving(direction)) |
28 | |||
29 | while (ev.isMoving()) | ||
30 | { | 28 | { |
31 | try { | 29 | while (ev.isMoving()) |
32 | Thread.sleep(2); | 30 | { |
33 | } catch (InterruptedException ex) { | 31 | try { |
34 | Logger.getLogger(StepMoveEvent.class.getName()).log(Level.SEVERE, null, ex); | 32 | Thread.sleep(2); |
33 | } catch (InterruptedException ex) { | ||
34 | Logger.getLogger(StepMoveEvent.class.getName()).log(Level.SEVERE, null, ex); | ||
35 | } | ||
35 | } | 36 | } |
36 | } | 37 | } |
37 | } | 38 | } |