예제 #1
0
 enum LocationType {
   // can only contain 4 types
   TARGET,
   ENEMY,
   MAP_LOW,
   MAP_HIGH,
   ;
   static final LocationType[] values = LocationType.values();
 }
예제 #2
0
 @Override
 public String toString() {
   return type.toString() + " " + x + " " + y;
 }