Permalink
Cannot retrieve contributors at this time
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?
Text-based-game/mainmenu.cpp
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
61 lines (42 sloc)
1.23 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); | |
}*/ | |
}; | |