summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-03-30 16:56:21 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-03-30 16:56:21 +0200
commite7b3aee1e0451639349fe672db95bd946a760f6b (patch)
tree41bc0ab24afafc98de94b74a02c96cd0f0cf0f5d
parent8419c7716ae50f422f186e3bf43fe548e6b4e768 (diff)
downloadRustAndDust-e7b3aee1e0451639349fe672db95bd946a760f6b.zip
RustAndDust-e7b3aee1e0451639349fe672db95bd946a760f6b.tar.gz
Ctrl: add postDone() and postAbort()
-rw-r--r--core/src/ch/asynk/rustanddust/game/Ctrl.java3
1 files changed, 3 insertions, 0 deletions
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();