/** A class that will help with the static roles. */ public class Roles { public static final int FREE = 0; // Doesn't have a job. public static final int OBSERVER = -1; // Tracks a scout public static final int SCOUT = 1; // The only mapper /** returns a string representation of each role */ public static String getString (int role) { if (role == OBSERVER) return "OBSERVER"; if (role == SCOUT) return "SCOUT"; return ""; } }