1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
package ch.asynk.rustanddust.game;
public class Config
{
public enum Graphics {
CHITS("chits", 0),
TANKS("tanks", 1);
public String s;
public int i;
Graphics(String s, int i)
{
this.s = s;
this.i = i;
}
public Graphics next()
{
if (this == TANKS)
return CHITS;
return TANKS;
}
public Graphics get(int i)
{
if (i == CHITS.i)
return CHITS;
else if (i == TANKS.i)
return TANKS;
return null;
}
};
public enum GameMode
{
SOLO("Solo", 0),
PVE("Player vs AI", 1),
PVP("Player vs Player", 2);
public String s;
public int i;
GameMode(String s, int i)
{
this.s = s;
this.i = i;
}
public GameMode next()
{
if (this == SOLO)
return PVE;
if (this == PVE)
return PVP;
return SOLO;
}
};
public GameMode gameMode;
public boolean showMoves;
public boolean showTargets;
public boolean showMoveAssists;
public boolean showEnemyPossibilities;
public boolean autoPath;
public boolean debug;
public Battle battle;
public float fxVolume;
public Graphics graphics;
public static String [] fxStrings = { "OFF", "10%", "20%", "30%", "40%", "50%", "60%", "70%", "80%", "90%", "ON" };
public Config()
{
this.gameMode = GameMode.SOLO;
this.debug = false;
this.autoPath = true;
this.showMoves = true;
this.showTargets = true;
this.showMoveAssists = true;
this.showEnemyPossibilities = false;
this.graphics = Graphics.CHITS;
this.battle = null;
this.fxVolume = 1f;
}
public boolean gameModeImplemented()
{
return (gameMode != GameMode.PVE);
}
}
|