void create_new_player(){ //New Game Option From Menu //Player chooses to save the current if(current.ret_id() == -1){ cout << "Any Unsaved Changes to the Current Player will be Discarded " << endl; cout << "Save Current Player (y/n): "; char opt; cin >> opt; if(opt == 'n' || opt == 'N'){ current.create_new_player(); }else if (opt == 'y' || opt == 'Y'){ current.save_to_local(); cout << "Player Has Been Saved " << endl; current.create_new_player(); }else{ cout << "Incorrect Input, Returning to Player Menu" << endl << endl; } }else{
//Returns player data to the menu and ends all the game data void ret_to_men(player_data &loaded){ loaded.save_to_local(); loaded.save_all_loaded_files(); exit(1); }