From e7b3aee1e0451639349fe672db95bd946a760f6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 30 Mar 2016 16:56:21 +0200 Subject: Ctrl: add postDone() and postAbort() --- core/src/ch/asynk/rustanddust/game/Ctrl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/ch/asynk/rustanddust/game/Ctrl.java b/core/src/ch/asynk/rustanddust/game/Ctrl.java index 4a36b0e..7a5b140 100644 --- a/core/src/ch/asynk/rustanddust/game/Ctrl.java +++ b/core/src/ch/asynk/rustanddust/game/Ctrl.java @@ -164,6 +164,9 @@ public abstract class Ctrl implements Disposable // EVENTS + public void postDone() { post(StateType.DONE); } + public void postAbort() { post(StateType.ABORT); } + public void post(StateType stateType) { Event evt = freeEvents.pop(); -- cgit v1.1-2-g2b99