From ab6b425a665386335a6c2c54616498eb08e0b5e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 14 Dec 2015 11:12:14 +0100 Subject: Pawn: support EXIT moves --- core/src/ch/asynk/rustanddust/engine/Pawn.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/ch/asynk/rustanddust/engine/Pawn.java b/core/src/ch/asynk/rustanddust/engine/Pawn.java index 704b782..fc20611 100644 --- a/core/src/ch/asynk/rustanddust/engine/Pawn.java +++ b/core/src/ch/asynk/rustanddust/engine/Pawn.java @@ -122,6 +122,10 @@ public abstract class Pawn implements Moveable, Disposable if (this.move != null) throw new RuntimeException("try to override an existing move instance"); break; + case EXIT: + if (this.move != null) + throw new RuntimeException("try to override an existing move instance"); + break; case SET: break; default: -- cgit v1.1-2-g2b99