22 lines
350 B
Java
Raw Normal View History

2014-08-21 20:06:49 +03:00
package com.iluwatar;
public enum Action {
HUNT, TALE, GOLD, ENEMY;
public String toString() {
2014-08-21 20:06:49 +03:00
switch (this) {
case ENEMY:
return "spotted enemies";
2014-08-21 20:06:49 +03:00
case GOLD:
return "found gold";
2014-08-21 20:06:49 +03:00
case HUNT:
return "hunted a rabbit";
2014-08-21 20:06:49 +03:00
case TALE:
return "tells a tale";
2014-08-21 20:06:49 +03:00
}
return "";
}
2014-08-21 20:06:49 +03:00
}