home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / java / enxle1f6 / src / games / battle / shared / sys / rules.java < prev    next >
Encoding:
Java Source  |  1996-08-14  |  1.2 KB  |  61 lines

  1. /*
  2.  * @(#)Rules.java
  3.  */
  4. package games.Battle.shared.sys;
  5.  
  6. /**
  7.  * A collection of constants used to control the various parameters of the
  8.  * game. In the future some of these parameters may be settable on a per
  9.  * game basis.
  10.  *
  11.  * @version 1.00
  12.  * @author Jay Steele
  13.  * @author Alex Nicolaou
  14.  */
  15.  
  16. public class Rules {
  17.     /**
  18.      * the number of rows in the game world grid.
  19.      */
  20.     public static int rows = 16;
  21.     /**
  22.      * the number of columns in the game world grid.
  23.      */
  24.     public static int cols = 16;
  25.     /**
  26.      * the range of visibility 
  27.      */
  28.     public static final int horizon = 2;
  29.     /**
  30.      * the range of guns 
  31.      */
  32.     public static final int gunRange = 2;
  33.     /**
  34.      * the range of paratroops 
  35.      */
  36.     public static final int parRange = 2;
  37.  
  38.     /**
  39.      * the minimum city size (not yet used)
  40.      */
  41.     public static final int minCitySize = 0;
  42.     /**
  43.      * the maximum city size (always used)
  44.      */
  45.     public static final int maxCitySize = 31;
  46.  
  47.     /**
  48.      * the lowest terrain level (water)
  49.      */
  50.     public static final int minTerrainLevel = 0;
  51.     /**
  52.      * the highest terrain level (mountain peak)
  53.      */
  54.     public static final int maxTerrainLevel = 7;
  55.  
  56.     /**
  57.      * the maximum number of players allowed in one game
  58.      */
  59.     public static final int numPlayers = 5;
  60. }
  61.