summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-03-31 20:04:42 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-03-31 20:04:42 +0200
commit9973b36d07fc778dcd78eaa151c8383f14aef536 (patch)
treeca20461ee2aade63e3ade4c351985bddbab40183 /core/src/ch/asynk/rustanddust
parent23e28a037ea03cd0c62f937a062c2f0dfd4dfcf1 (diff)
downloadRustAndDust-9973b36d07fc778dcd78eaa151c8383f14aef536.zip
RustAndDust-9973b36d07fc778dcd78eaa151c8383f14aef536.tar.gz
Ctrl: Event is a private class, EventType is an inner public enum
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Ctrl.java22
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);
}