CornOnTheKob

Constants.java

Feb 14th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1.  
  2. public class Constants {
  3.  
  4. public static final int COUNTRY_DIAMETER = 50;
  5. // private static final int FRAME_WIDTH = 1000;
  6. // private static final int FRAME_HEIGHT = 600;
  7. public static final int NUM_PLAYERS = 2;
  8. public static final int NUM_NEUTRALS = 4;
  9. public static final int NUM_PLAYERS_PLUS_NEUTRALS = NUM_PLAYERS + NUM_NEUTRALS;
  10. public static final int INIT_COUNTRIES_PLAYER = 9;
  11. public static final int INIT_COUNTRIES_NEUTRAL = 6;
  12. public static final int INIT_UNITS_PLAYER = 36;
  13. public static final int INIT_UNITS_NEUTRAL = 24;
  14.  
  15. public static final int NUM_CONTINENTS = 6;
  16.  
  17. public static final int[] CONTINENT_VALUES = {5,5,7,2,2,3};
  18.  
  19. public static final String[] CONTINENT_NAMES = {
  20. "N America",
  21. "Europe",
  22. "Asia",
  23. "Australia",
  24. "S America",
  25. "Africa" };
  26.  
  27. public static final int[] CONTINENT_IDS = {
  28. 0,0,0,0,0,0,0,0,0,
  29. 1,1,1,1,1,1,1,
  30. 2,2,2,2,2,2,2,2,2,2,2,2,
  31. 3,3,3,3,
  32. 4,4,4,4,
  33. 5,5,5,5,5,5 };
  34.  
  35. public static final int NUM_COUNTRIES = 42;
  36.  
  37. public static final String[] COUNTRY_NAMES = {
  38. "Ontario","Quebec","NW Territory","Alberta","Greenland","E United States","W United States","Central America","Alaska",
  39. "Great Britain","W Europe","S Europe","Ukraine","N Europe","Iceland","Scandinavia",
  40. "Afghanistan","India","Middle East","Japan","Ural","Yakutsk","Kamchatka","Siam","Irkutsk","Siberia","Mongolia","China",
  41. "E Australia","New Guinea","W Australia","Indonesia",
  42. "Venezuela","Peru","Brazil","Argentina",
  43. "Congo","N Africa","S Africa","Egypt","E Africa","Madagascar" };
  44.  
  45. public static final double[][] COUNTRY_COORD = {
  46. {191,150}, // 0
  47. {255,161},
  48. {146,86},
  49. {123,144},
  50. {314,61},
  51. {205,235},
  52. {135,219},
  53. {140,299},
  54. {45,89},
  55. {370,199},
  56. {398,280}, // 10
  57. {465,270},
  58. {547,180},
  59. {460,200},
  60. {393,127},
  61. {463,122},
  62. {628,227},
  63. {679,332},
  64. {572,338},
  65. {861,213},
  66. {645,152}, // 20
  67. {763,70},
  68. {827,94},
  69. {751,360},
  70. {750,140},
  71. {695,108},
  72. {760,216},
  73. {735,277},
  74. {889,537},
  75. {850,429},
  76. {813,526}, // 30
  77. {771,454},
  78. {213,352},
  79. {221,426},
  80. {289,415},
  81. {233,523},
  82. {496,462},
  83. {440,393},
  84. {510,532},
  85. {499,354},
  86. {547,432}, // 40
  87. {586,545}
  88. };
  89.  
  90. public static final int[][] ADJACENT = {
  91. {4,1,5,6,3,2}, // 0
  92. {4,5,0},
  93. {4,0,3,8},
  94. {2,0,6,8},
  95. {14,1,0,2},
  96. {0,1,7,6},
  97. {3,0,5,7},
  98. {6,5,32},
  99. {2,3,22},
  100. {14,15,13,10},
  101. {9,13,11,37}, // 10
  102. {13,12,18,39,10},
  103. {20,16,18,11,13,15},
  104. {15,12,11,10,9},
  105. {15,9,4},
  106. {12,13,14},
  107. {20,27,17,18,12},
  108. {16,27,23,18},
  109. {12,16,17,40,39,11},
  110. {26,22},
  111. {25,27,16,12}, // 20
  112. {22,24,25},
  113. {8,19,26,24,21},
  114. {27,31,17},
  115. {21,22,26,25},
  116. {21,24,26,27,20},
  117. {24,22,19,27,25},
  118. {26,23,17,16,20,25},
  119. {29,30},
  120. {28,30,31},
  121. {29,28,31}, // 30
  122. {23,29,30},
  123. {7,34,33},
  124. {32,34,35},
  125. {32,37,35,33},
  126. {33,34},
  127. {37,40,38},
  128. {10,11,39,40,36,34},
  129. {36,40,41},
  130. {11,18,40,37},
  131. {39,18,41,38,36,37}, //40
  132. {38,40}
  133. };
  134. }
Add Comment
Please, Sign In to add comment