From 491c2bbe4119e91bad4b91112063dd146d3b9fd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 10 Nov 2015 15:55:34 +0100 Subject: Config.Graphics: add get(int) --- core/src/ch/asynk/rustanddust/game/Config.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.1-2-g2b99