diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-03-30 16:56:21 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-03-30 16:56:21 +0200 |
commit | e7b3aee1e0451639349fe672db95bd946a760f6b (patch) | |
tree | 41bc0ab24afafc98de94b74a02c96cd0f0cf0f5d /core/src/ch/asynk | |
parent | 8419c7716ae50f422f186e3bf43fe548e6b4e768 (diff) | |
download | RustAndDust-e7b3aee1e0451639349fe672db95bd946a760f6b.zip RustAndDust-e7b3aee1e0451639349fe672db95bd946a760f6b.tar.gz |
Ctrl: add postDone() and postAbort()
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Ctrl.java | 3 |
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(); |