22 lines
323 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:
2014-11-08 20:49:40 -02:00
return "found gold";
2014-08-21 20:06:49 +03:00
case HUNT:
2014-11-08 20:49:40 -02:00
return "hunted a rabbit";
2014-08-21 20:06:49 +03:00
case TALE:
2014-11-08 20:49:40 -02:00
return "tells a tale";
2014-08-21 20:06:49 +03:00
}
return "";
}
2014-08-21 20:06:49 +03:00
}