diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-10 15:55:34 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-10 15:55:34 +0100 |
commit | 491c2bbe4119e91bad4b91112063dd146d3b9fd8 (patch) | |
tree | 5f3807a2327f2779e5ef3fe1e98f8a83344c9097 /core | |
parent | d675067bf8aa441f26e666c3db5e407bf06b75ce (diff) | |
download | RustAndDust-491c2bbe4119e91bad4b91112063dd146d3b9fd8.zip RustAndDust-491c2bbe4119e91bad4b91112063dd146d3b9fd8.tar.gz |
Config.Graphics: add get(int)
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Config.java | 8 |
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 |