diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-03-31 20:04:42 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-03-31 20:04:42 +0200 |
commit | 9973b36d07fc778dcd78eaa151c8383f14aef536 (patch) | |
tree | ca20461ee2aade63e3ade4c351985bddbab40183 | |
parent | 23e28a037ea03cd0c62f937a062c2f0dfd4dfcf1 (diff) | |
download | RustAndDust-9973b36d07fc778dcd78eaa151c8383f14aef536.zip RustAndDust-9973b36d07fc778dcd78eaa151c8383f14aef536.tar.gz |
Ctrl: Event is a private class, EventType is an inner public enum
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Ctrl.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Ctrl.java b/core/src/ch/asynk/rustanddust/game/Ctrl.java index 5fdd873..d9fb0eb 100644 --- a/core/src/ch/asynk/rustanddust/game/Ctrl.java +++ b/core/src/ch/asynk/rustanddust/game/Ctrl.java @@ -28,22 +28,22 @@ import ch.asynk.rustanddust.game.states.StateDeployment; import ch.asynk.rustanddust.game.states.StateWithdraw; import ch.asynk.rustanddust.game.states.StateReplay; -class Event +public abstract class Ctrl implements Disposable { - public enum Type + public enum EventType { STATE_CHANGE, HUD_ANSWER, ANIMATIONS_DONE; } - public Type type; - public Object data; - public boolean status; -} + class Event + { + public EventType type; + public Object data; + public boolean status; + } -public abstract class Ctrl implements Disposable -{ public final RustAndDust game; public final Battle battle; @@ -179,7 +179,7 @@ public abstract class Ctrl implements Disposable public void post(StateType stateType) { Event evt = getEvent(); - evt.type = Event.Type.STATE_CHANGE; + evt.type = EventType.STATE_CHANGE; evt.data = stateType; events.enqueue(evt); } @@ -187,7 +187,7 @@ public abstract class Ctrl implements Disposable public void postAnswer(Hud.OkCancelAction what, boolean status) { Event evt = getEvent(); - evt.type = Event.Type.HUD_ANSWER; + evt.type = EventType.HUD_ANSWER; evt.data = what; evt.status = status; events.enqueue(evt); @@ -196,7 +196,7 @@ public abstract class Ctrl implements Disposable public void postAnimationsDone() { Event evt = getEvent(); - evt.type = Event.Type.ANIMATIONS_DONE; + evt.type = EventType.ANIMATIONS_DONE; events.enqueue(evt); } |