2018-03-13 10:50:50 +01:00

17 lines
350 B
Java

package inf101.v18.rogue101.states;
import java.util.Random;
/**
* An enum to distinguish different enemies of the same type.
*/
public enum Age {
TODDLER, CHILD, TEEN, ADULT, ELDER;
private static final Random random = new Random();
public static Age getRandom() {
return values()[random.nextInt(values().length)];
}
}