Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#include "mainmenu.h"
void MainMenu :: mmenu()
{
PlayerMenu playermenu;
int selection;
cout << "\n Menu";
cout << "\n===================";
cout << "\n 0 - Exit Game";
cout << "\n 1 - Play Game";
cout << "\n 2 - Save and Load game";
cout << "\n 3 - Settings";
cout << "\n 4 - Go back";
cout << "\n Enter selection: ";
cin >> selection;
if (selection == 1)
{
cout << "\n you have been imprisoned and you believe you did not do the crimes committed; You need to escape the prison to clear your name! Tread Carefully. There are traps and riddles which need to be avoided and answered to gain an insight on how to escape.";
}
else if (selection == 2)
{
cout << "\n this is choice 2 ";
}
else if (selection == 3)
{
cout << "\n this is choice 3 ";
}
else if (selection == 0)
{
exit(0);
}
/*else if (selection == 4)
{
cout << "Input 0 to exit the game." << endl;
cout << "Input 1 for Main Menu." << endl;
cout << "Input 2 for Player Menu." << endl;
cout << "Input 3 for Job Menu." << endl;
cout << "Input 4 for Library Menu" << endl;
int menuInput;
cin >> menuInput;
MainMenu::update(menuInput);
}*/
};