//Dictates Where the game is at and which function is relevant for option choices //such as changing locations void gameloop(player_data &loaded){ if(loaded.TH.week == 0){ init_new_game(loaded); } bool endgame = false; while(endgame != true){ //Prints the Current Game Character Data print_game_screen(loaded); cout << "OPTIONS" << endl; if(loaded.location == 0){ gl_ingame_menu(loaded); }else if(loaded.location == 1){ gl_map(loaded); }else if(loaded.location == 2){ gl_outside(loaded); }else if(loaded.location == 3){ gl_inside(loaded); }else if(loaded.location == 4){ gl_dorm(loaded); }else if(loaded.location == 5){ gl_pda(loaded); }else{ cout << "BAD INPUT " << endl; } } }
void scenario_run_menu(){ int input; do{ cout << "===== This is The Scenario Menu ===== " << endl; cout << "1.) Run Tutorial" << endl; cout << "2.) Print Game Screen " << endl; cout << "3.) Return To Main Menu " << endl; cout << endl; cout << "Menu Input: "; cin >> input; cout << endl; if(input == 1){ run_tutorial(); } else if(input == 2){ print_game_screen(current); } else if(input == 3){ } else if(input == 4){ }else{ cout << " An Incorrect input has occurred (Press 5 to return to main menu or try again)" << endl; } }while(input != 3); cout << "Returning to Main Menu " << endl << endl; };