/** This class contains configuration information for the sites
*/

public class SiteConfig {
    public final static int MAX_SITES = 5; // maximum number of sites
    public final static int NUMBER_OF_SITES = 5; // number of sites in the
                                          // current run
    public final static int INIT_CASH = 50; // how much cash in hand when you
                                            //   start
    public final static int NUM_PLAYER_HOPS = 15; // initial number of hops
                                                  // for the player
    public final static int NUM_TREASURE_HOPS = 4; // initial number of hops
                                                  // for the Treasure
    public final static int TIMEOUT = 3; // seconds for the Treasure object
    public final static String RMI_SERVER="gremlin";
                                    // server on which RMI registry is running
    public final static int RMI_PORT = 2005; // port for RMI registry

    public final static SiteConfig SITE[] =  // config info for each site
      {
         new SiteConfig(10, 0.8, 0.2, 0.0, 0.0, "Site0"),
         new SiteConfig(10, 0.0, 0.0, 0.8, 0.2, "Site1"),
         new SiteConfig(10, 0.4, 0.2, 0.2, 0.2, "Site2"),
         new SiteConfig(10, 0.0, 0.2, 0.8, 0.0, "Site3"),
         new SiteConfig(10, 0.0, 0.0, 0.2, 0.8, "Site4"),
      };

    public final int numObj; // number of objects (including Treasure)
    public final double probUni, probSnake, probFrog, probFlower;
                             // probabilities for each object
    public final String str; // site name


    SiteConfig(int n, double p1, double p2, double p3, double p4, String s)
                {   // constructor
        numObj = n;
        probUni = p1;
        probSnake = p2;
        probFrog = p3;
        probFlower = p4;
        str = s;
    }
                                // test code for this class
    public static void main(String args[]) {
          System.out.println(SITE[0].numObj);
          System.out.println(SITE[1].probUni);
          System.out.println(SITE[2].probSnake);
          System.out.println(SITE[3].probFrog);
          System.out.println(SITE[4].probFlower);
          System.out.println(SITE[4].str);
    }
}
