summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-14 11:12:14 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-14 11:12:14 +0100
commitab6b425a665386335a6c2c54616498eb08e0b5e6 (patch)
tree7058209a5bd0ad167aae64ec798c42974e0c3923 /core/src/ch/asynk/rustanddust
parenta4c8b74a2bbcd5cd90d7a104b5876606837b91b9 (diff)
downloadRustAndDust-ab6b425a665386335a6c2c54616498eb08e0b5e6.zip
RustAndDust-ab6b425a665386335a6c2c54616498eb08e0b5e6.tar.gz
Pawn: support EXIT moves
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r--core/src/ch/asynk/rustanddust/engine/Pawn.java4
1 files changed, 4 insertions, 0 deletions
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: