OGAMCRED.cpp 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. /*
  2. * Seven Kingdoms: Ancient Adversaries
  3. *
  4. * Copyright 1997,1998 Enlight Software Ltd.
  5. *
  6. * This program is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. *
  19. */
  20. // Filename : OGAMCRED.CPP
  21. // Description : viewing credits
  22. #include <OSYS.h>
  23. #include <OVGA.h>
  24. #include <OVGALOCK.h>
  25. #include <OFONT.h>
  26. #include <OMOUSE.h>
  27. #include <OMUSIC.h>
  28. #include <OIMGRES.h>
  29. #include <OGAME.h>
  30. //------ Declare static functions --------//
  31. /*
  32. static void disp_credits_2();
  33. static void disp_credits_3();
  34. static void disp_credits_4();
  35. static void disp_credits_5();
  36. static void disp_credits(int y, char** creditNameArray);
  37. */
  38. //------ Begin of function Game::view_credits ------//
  39. void Game::view_credits()
  40. {
  41. //----- display the first page ------//
  42. vga.disp_image_file("CREDITS1");
  43. if( mouse.wait_press(60)==2 ) // return 2 if pressed ESC or right mouse click
  44. {
  45. vga.finish_disp_image_file();
  46. return; // 60 seconds to time out
  47. }
  48. //------ display the 2nd page -----//
  49. vga.disp_image_file("CREDITS2");
  50. if( mouse.wait_press(60)==2 ) // return 2 if pressed ESC or right mouse click
  51. {
  52. vga.finish_disp_image_file();
  53. return;
  54. }
  55. //------ display the 3rd page -----//
  56. vga.disp_image_file("CREDITS3");
  57. if( mouse.wait_press(60)==2 ) // return 2 if pressed ESC or right mouse click
  58. {
  59. vga.finish_disp_image_file();
  60. return;
  61. }
  62. //------ display the 4th page -----//
  63. vga.disp_image_file("CREDITS4");
  64. if( mouse.wait_press(60)==2 ) // return 2 if pressed ESC or right mouse click
  65. {
  66. vga.finish_disp_image_file();
  67. return; // 60 seconds to time out
  68. }
  69. #if(defined(FRENCH))
  70. //------ display the 5th page -----//
  71. vga.disp_image_file("CREDITS5");
  72. if( mouse.wait_press(60)==2 ) // return 2 if pressed ESC or right mouse click
  73. {
  74. vga.finish_disp_image_file();
  75. return; // 60 seconds to time out
  76. }
  77. #endif
  78. vga.finish_disp_image_file();
  79. }
  80. //------ End of function Game::view_credits ------//
  81. /*
  82. //------ Begin of static function disp_credits_2 ------//
  83. static void disp_credits_2()
  84. {
  85. static char* credit_des_array[] =
  86. {
  87. "Executive Producers",
  88. "Project Manager",
  89. "Quality Manager",
  90. "Play Test Coordinator",
  91. "Manual Editing",
  92. "Manual Editing and Layout",
  93. "Product Marketing Manager",
  94. NULL
  95. };
  96. static char* credit_name_array[] =
  97. {
  98. "Ray Rutledge and Joe Rutledge",
  99. "Steve Wartofsky",
  100. "David Green",
  101. "Brain K. Davis VII",
  102. "Arnold Hendrick",
  103. "Sarah O'Keefe and Alan Pringle von 'Scriptorium Publishing Services, Inc.",
  104. "Angela Lipscomb",
  105. };
  106. //----------------------------------//
  107. int y=100;
  108. font_bible.center_put( 0, y, VGA_WIDTH-1, y+font_bible.height()-1, "Interactive Magic" );
  109. y+=font_bible.height()+20;
  110. for( int i=0 ; credit_des_array[i] ; i++ )
  111. {
  112. font_bible.center_put( 0, y, VGA_WIDTH-1, y+font_bible.height()-1, credit_des_array[i] );
  113. y+=font_bible.height()+3;
  114. font_bible.center_put( 0, y, VGA_WIDTH-1, y+font_bible.height()-1, credit_name_array[i] );
  115. y+=font_bible.height()+16;
  116. }
  117. }
  118. //------ End of static function disp_credits_2 ------//
  119. //------ Begin of static function disp_credits_3 ------//
  120. static void disp_credits_3()
  121. {
  122. static char* credit_name_array[] =
  123. {
  124. "Joe Allen",
  125. "Ismini Boinodiris",
  126. "James Cowgill",
  127. "Chris Gardner",
  128. "Carlin Gartrell",
  129. "Anthony Lazaro",
  130. "Mike Metrosky",
  131. "Mike Pearson",
  132. "Marc Racine",
  133. "Jason Sircy",
  134. "Adam Turner",
  135. "Ted Wagoner",
  136. "Greg Young",
  137. NULL
  138. };
  139. //----------------------------------//
  140. int y=100;
  141. font_bible.center_put( 0, y, VGA_WIDTH-1, y+font_bible.height()-1,
  142. "Internal Beta-Testers" );
  143. disp_credits(y, credit_name_array);
  144. }
  145. //------ End of static function disp_credits_3 ------//
  146. //------ Begin of static function disp_credits_4 ------//
  147. static void disp_credits_4()
  148. {
  149. static char* credit_name_array[] =
  150. {
  151. "Richard Arnesen"
  152. "JP Bernard",
  153. "Bryan Caldwell",
  154. "Kent Coleman",
  155. "Sorin Cristescu",
  156. "Al Demauro",
  157. "Troy Denkinger",
  158. "Chris Edwards",
  159. "Drew Fudenberg",
  160. "Michael Garrett",
  161. "Raymond Graham",
  162. "Tom Harlin",
  163. "Leonard Hemsen",
  164. "Chris Hepner",
  165. "Tom Hepner",
  166. "Ben Herd",
  167. "Benjamin Van Hoeson",
  168. "Allen Holland",
  169. "Brian Lander",
  170. "Steve Lieb",
  171. "mark Logsdon",
  172. "Crist-Jan Mannien",
  173. "David Newman",
  174. "Tomi J Nissinen",
  175. "Sven Johansson",
  176. "Tim Jordan",
  177. "Greg Ottoman",
  178. "Ralf Papen",
  179. "Jim Pedicord",
  180. "Gaspar Peixoto",
  181. "David Poythress",
  182. "Louis Rhodes",
  183. "Dean Robb",
  184. "Anthony Sage",
  185. "Todd Strobl",
  186. "Bjorn Tidal",
  187. "Ron Williams",
  188. "Christopher Yoder",
  189. NULL
  190. };
  191. //----------------------------------//
  192. int y=260;
  193. font_bible.center_put( 0, y, VGA_WIDTH-1, y+font_bible.height()-1,
  194. "External Beta-Testers" );
  195. disp_credits(y, credit_name_array);
  196. }
  197. //------ End of static function disp_credits_4 ------//
  198. //------ Begin of static function disp_credits ------//
  199. static void disp_credits(int y, char** creditNameArray)
  200. {
  201. y+=font_bible.height()+13;
  202. String str;
  203. for( int i=0 ; creditNameArray[i] ; )
  204. {
  205. str = creditNameArray[i];
  206. i++;
  207. if( creditNameArray[i] )
  208. {
  209. str += ", ";
  210. str += creditNameArray[i];
  211. i++;
  212. if( creditNameArray[i] )
  213. {
  214. str += ", ";
  215. str += creditNameArray[i];
  216. i++;
  217. if( creditNameArray[i] )
  218. {
  219. str += ", ";
  220. str += creditNameArray[i];
  221. i++;
  222. if( creditNameArray[i] )
  223. str += ",";
  224. }
  225. }
  226. }
  227. font_bible.center_put( 0, y, VGA_WIDTH-1, y+font_bible.height()-1, str );
  228. y+=font_bible.height()+3;
  229. }
  230. }
  231. //------ End of static function disp_credits ------//
  232. */