From 9865592546a0dc191f6669a50c63fc36ac6d6127 Mon Sep 17 00:00:00 2001 From: Jérémy Zurcher Date: Sun, 8 Feb 2015 23:12:22 +0100 Subject: Config,OptionsMenu: replace regularPawn with graphics --- core/src/ch/asynk/tankontank/game/Config.java | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'core/src/ch/asynk/tankontank/game') diff --git a/core/src/ch/asynk/tankontank/game/Config.java b/core/src/ch/asynk/tankontank/game/Config.java index 811255ff..c949b547 100644 --- a/core/src/ch/asynk/tankontank/game/Config.java +++ b/core/src/ch/asynk/tankontank/game/Config.java @@ -2,16 +2,39 @@ package ch.asynk.tankontank.game; public class Config { + public enum Graphics { + ORIGINAL("original"), + MINE("mine"); + public String s; + Graphics(String s) + { + this.s = s; + } + public Graphics next() + { + Graphics next = null; + switch(this) { + case ORIGINAL: + next = MINE; + break; + case MINE: + next = ORIGINAL; + break; + } + return next; + } + }; + public boolean showMoves; public boolean showTargets; public boolean showMoveAssists; public boolean canCancel; public boolean mustValidate; public boolean showEnemyPossibilities; - public boolean regularPawns; public boolean debug; public Battle battle; public float fxVolume; + public Graphics graphics; public Config() { @@ -22,7 +45,7 @@ public class Config this.canCancel = false; this.mustValidate = false; this.showEnemyPossibilities = false; - this.regularPawns = true; + this.graphics = Graphics.MINE; this.battle = null; this.fxVolume = 1f; } -- cgit v1.2.3