123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287 |
- /*
- * Seven Kingdoms: Ancient Adversaries
- *
- * Copyright 1997,1998 Enlight Software Ltd.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
- // Filename : OGAMCRED.CPP
- // Description : viewing credits
- #include <OSYS.h>
- #include <OVGA.h>
- #include <OVGALOCK.h>
- #include <OFONT.h>
- #include <OMOUSE.h>
- #include <OMUSIC.h>
- #include <OIMGRES.h>
- #include <OGAME.h>
- //------ Declare static functions --------//
- /*
- static void disp_credits_2();
- static void disp_credits_3();
- static void disp_credits_4();
- static void disp_credits_5();
- static void disp_credits(int y, char** creditNameArray);
- */
- //------ Begin of function Game::view_credits ------//
- void Game::view_credits()
- {
- //----- display the first page ------//
- vga.disp_image_file("CREDITS1");
- if( mouse.wait_press(60)==2 ) // return 2 if pressed ESC or right mouse click
- {
- vga.finish_disp_image_file();
- return; // 60 seconds to time out
- }
- //------ display the 2nd page -----//
- vga.disp_image_file("CREDITS2");
- if( mouse.wait_press(60)==2 ) // return 2 if pressed ESC or right mouse click
- {
- vga.finish_disp_image_file();
- return;
- }
- //------ display the 3rd page -----//
- vga.disp_image_file("CREDITS3");
- if( mouse.wait_press(60)==2 ) // return 2 if pressed ESC or right mouse click
- {
- vga.finish_disp_image_file();
- return;
- }
- //------ display the 4th page -----//
- vga.disp_image_file("CREDITS4");
- if( mouse.wait_press(60)==2 ) // return 2 if pressed ESC or right mouse click
- {
- vga.finish_disp_image_file();
- return; // 60 seconds to time out
- }
- #if(defined(FRENCH))
- //------ display the 5th page -----//
- vga.disp_image_file("CREDITS5");
- if( mouse.wait_press(60)==2 ) // return 2 if pressed ESC or right mouse click
- {
- vga.finish_disp_image_file();
- return; // 60 seconds to time out
- }
- #endif
- vga.finish_disp_image_file();
- }
- //------ End of function Game::view_credits ------//
- /*
- //------ Begin of static function disp_credits_2 ------//
- static void disp_credits_2()
- {
- static char* credit_des_array[] =
- {
- "Executive Producers",
- "Project Manager",
- "Quality Manager",
- "Play Test Coordinator",
- "Manual Editing",
- "Manual Editing and Layout",
- "Product Marketing Manager",
- NULL
- };
- static char* credit_name_array[] =
- {
- "Ray Rutledge and Joe Rutledge",
- "Steve Wartofsky",
- "David Green",
- "Brain K. Davis VII",
- "Arnold Hendrick",
- "Sarah O'Keefe and Alan Pringle von 'Scriptorium Publishing Services, Inc.",
- "Angela Lipscomb",
- };
- //----------------------------------//
- int y=100;
- font_bible.center_put( 0, y, VGA_WIDTH-1, y+font_bible.height()-1, "Interactive Magic" );
- y+=font_bible.height()+20;
- for( int i=0 ; credit_des_array[i] ; i++ )
- {
- font_bible.center_put( 0, y, VGA_WIDTH-1, y+font_bible.height()-1, credit_des_array[i] );
- y+=font_bible.height()+3;
- font_bible.center_put( 0, y, VGA_WIDTH-1, y+font_bible.height()-1, credit_name_array[i] );
- y+=font_bible.height()+16;
- }
- }
- //------ End of static function disp_credits_2 ------//
- //------ Begin of static function disp_credits_3 ------//
- static void disp_credits_3()
- {
- static char* credit_name_array[] =
- {
- "Joe Allen",
- "Ismini Boinodiris",
- "James Cowgill",
- "Chris Gardner",
- "Carlin Gartrell",
- "Anthony Lazaro",
- "Mike Metrosky",
- "Mike Pearson",
- "Marc Racine",
- "Jason Sircy",
- "Adam Turner",
- "Ted Wagoner",
- "Greg Young",
- NULL
- };
- //----------------------------------//
- int y=100;
- font_bible.center_put( 0, y, VGA_WIDTH-1, y+font_bible.height()-1,
- "Internal Beta-Testers" );
- disp_credits(y, credit_name_array);
- }
- //------ End of static function disp_credits_3 ------//
- //------ Begin of static function disp_credits_4 ------//
- static void disp_credits_4()
- {
- static char* credit_name_array[] =
- {
- "Richard Arnesen"
- "JP Bernard",
- "Bryan Caldwell",
- "Kent Coleman",
- "Sorin Cristescu",
- "Al Demauro",
- "Troy Denkinger",
- "Chris Edwards",
- "Drew Fudenberg",
- "Michael Garrett",
- "Raymond Graham",
- "Tom Harlin",
- "Leonard Hemsen",
- "Chris Hepner",
- "Tom Hepner",
- "Ben Herd",
- "Benjamin Van Hoeson",
- "Allen Holland",
- "Brian Lander",
- "Steve Lieb",
- "mark Logsdon",
- "Crist-Jan Mannien",
- "David Newman",
- "Tomi J Nissinen",
- "Sven Johansson",
- "Tim Jordan",
- "Greg Ottoman",
- "Ralf Papen",
- "Jim Pedicord",
- "Gaspar Peixoto",
- "David Poythress",
- "Louis Rhodes",
- "Dean Robb",
- "Anthony Sage",
- "Todd Strobl",
- "Bjorn Tidal",
- "Ron Williams",
- "Christopher Yoder",
- NULL
- };
- //----------------------------------//
- int y=260;
- font_bible.center_put( 0, y, VGA_WIDTH-1, y+font_bible.height()-1,
- "External Beta-Testers" );
- disp_credits(y, credit_name_array);
- }
- //------ End of static function disp_credits_4 ------//
- //------ Begin of static function disp_credits ------//
- static void disp_credits(int y, char** creditNameArray)
- {
- y+=font_bible.height()+13;
- String str;
- for( int i=0 ; creditNameArray[i] ; )
- {
- str = creditNameArray[i];
- i++;
- if( creditNameArray[i] )
- {
- str += ", ";
- str += creditNameArray[i];
- i++;
- if( creditNameArray[i] )
- {
- str += ", ";
- str += creditNameArray[i];
- i++;
- if( creditNameArray[i] )
- {
- str += ", ";
- str += creditNameArray[i];
- i++;
- if( creditNameArray[i] )
- str += ",";
- }
- }
- }
- font_bible.center_put( 0, y, VGA_WIDTH-1, y+font_bible.height()-1, str );
- y+=font_bible.height()+3;
- }
- }
- //------ End of static function disp_credits ------//
- */
|