2014-08-21 20:06:49 +03:00
|
|
|
package com.iluwatar;
|
|
|
|
|
|
|
|
public enum Action {
|
|
|
|
|
|
|
|
HUNT, TALE, GOLD, ENEMY;
|
|
|
|
|
|
|
|
public String toString() {
|
2014-10-08 13:42:12 +01:00
|
|
|
|
2014-08-21 20:06:49 +03:00
|
|
|
switch (this) {
|
|
|
|
case ENEMY:
|
2014-11-08 20:38:20 -02:00
|
|
|
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
|
|
|
}
|
2014-11-08 20:38:20 -02:00
|
|
|
return "";
|
|
|
|
}
|
2014-08-21 20:06:49 +03:00
|
|
|
}
|