summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-11-10 15:55:34 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-11-10 15:55:34 +0100
commit491c2bbe4119e91bad4b91112063dd146d3b9fd8 (patch)
tree5f3807a2327f2779e5ef3fe1e98f8a83344c9097
parentd675067bf8aa441f26e666c3db5e407bf06b75ce (diff)
downloadRustAndDust-491c2bbe4119e91bad4b91112063dd146d3b9fd8.zip
RustAndDust-491c2bbe4119e91bad4b91112063dd146d3b9fd8.tar.gz
Config.Graphics: add get(int)
-rw-r--r--core/src/ch/asynk/rustanddust/game/Config.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Config.java b/core/src/ch/asynk/rustanddust/game/Config.java
index 2c27c35..cd5c0f4 100644
--- a/core/src/ch/asynk/rustanddust/game/Config.java
+++ b/core/src/ch/asynk/rustanddust/game/Config.java
@@ -18,6 +18,14 @@ public class Config
return MINE;
return ORIGINAL;
}
+ public Graphics get(int i)
+ {
+ if (i == MINE.i)
+ return MINE;
+ else if (i == ORIGINAL.i)
+ return ORIGINAL;
+ return null;
+ }
};
public enum GameMode