simplified toString method

This commit is contained in:
yato
2014-11-10 14:04:43 +01:00
parent 86abc4177e
commit 07b6b2e8a6
5 changed files with 5 additions and 89 deletions
@@ -6,22 +6,7 @@ public enum Profession {
@Override
public String toString() {
String s = "";
switch (this) {
case WARRIOR:
s = "Warrior";
break;
case THIEF:
s = "Thief";
break;
case MAGE:
s = "Mage";
break;
case PRIEST:
s = "Priest";
break;
}
return s;
return name().toLowerCase();
}
}