2012-12-31 22:58:44 +00:00
|
|
|
#include "main.h"
|
2012-10-24 11:46:45 +00:00
|
|
|
|
2013-01-09 05:36:22 +00:00
|
|
|
using namespace std;
|
2012-10-24 11:46:45 +00:00
|
|
|
|
2013-01-09 05:36:22 +00:00
|
|
|
int main(int argc, char* args[])
|
|
|
|
{
|
2012-12-31 22:58:44 +00:00
|
|
|
SDL_Surface *screen;
|
2013-01-09 05:36:22 +00:00
|
|
|
|
2013-01-11 19:32:15 +00:00
|
|
|
// Display main menu
|
2012-12-31 22:58:44 +00:00
|
|
|
screen = scrns::MainMenu();
|
2013-01-09 05:36:22 +00:00
|
|
|
|
2013-01-11 19:32:15 +00:00
|
|
|
// Main menu option return
|
|
|
|
int menu_option;
|
|
|
|
|
|
|
|
menu_option = scrns::MainMenu_survey();
|
|
|
|
|
|
|
|
switch(menu_option)
|
|
|
|
{
|
|
|
|
case 1:
|
|
|
|
// User wants to start a new game
|
2013-01-09 05:36:22 +00:00
|
|
|
cout << "Starting new game..." << endl;
|
2013-01-11 19:32:15 +00:00
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
// User wants to exit the game
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
cout << "Fatal Error: Main Menu option given was unknown." << endl;
|
|
|
|
|
2012-10-24 11:46:45 +00:00
|
|
|
}
|
2013-01-09 05:36:22 +00:00
|
|
|
|
|
|
|
SDL_FreeSurface(screen);
|
2012-12-31 22:58:44 +00:00
|
|
|
return 0;
|
2012-10-24 11:46:45 +00:00
|
|
|
}
|