diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-17 09:22:33 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-17 09:22:33 +0200 |
commit | f8d7d57a1fdd661b4e771e80d045c12ea57f9725 (patch) | |
tree | 8072ba35cbc1691002e6968639f57df0d0ca9435 /core/src | |
parent | 21b260d4fc0bef844db02ca08e70b8802f088049 (diff) | |
download | RustAndDust-f8d7d57a1fdd661b4e771e80d045c12ea57f9725.zip RustAndDust-f8d7d57a1fdd661b4e771e80d045c12ea57f9725.tar.gz |
Army: add String and toString()
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Army.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Army.java b/core/src/ch/asynk/tankontank/game/Army.java index 66c6b4f..852dbe9 100644 --- a/core/src/ch/asynk/tankontank/game/Army.java +++ b/core/src/ch/asynk/tankontank/game/Army.java @@ -2,10 +2,17 @@ package ch.asynk.tankontank.game; public enum Army { - GE, US; + GE("German"), US("US"); + private String s; + Army(String s) { this.s = s; } public boolean isEnemy(Army other) { return (this != other); } + + public String toString() + { + return s; + } } |