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?
PineapplePen/playermenu.cpp
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
94 lines (62 sloc)
1.51 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 "playermenu.h" | |
void PlayerMenu :: ppmenu() | |
{ | |
//classes | |
Gym gym; | |
Sql sql; | |
LibraryMenu lb; | |
INV inventory; | |
//MainMenu mainmenu; | |
JobMenu jm; | |
int selection; | |
cout << "\n===================" << endl; | |
sql.selectTable(); | |
cout << "\n==================="; | |
cout << "\n Game Menu"; | |
cout << "\n==================="; | |
//cout << "\n 1 - Go to the gym"; // another gym menu in gym.h | |
cout << "\n 1 - Drink Some water"; // int in player.h | |
cout << "\n 2 - Open Inventory"; // daniel is doing this | |
//cout << "\n 4 - Start Work"; // redirect to mainmenu.h | |
//cout << "\n 5 - Go to Library"; | |
/*cout << "\n 6 - Go to Main menu";*/ // redirect to mainmenu.h | |
cout << "\n 3 - Go Back"; | |
cout << "\n Enter selection: "; | |
cin >> selection; | |
/*if (selection == 1) | |
{ | |
gym.gymmenu(); | |
}*/ | |
if (selection == 1) | |
{ | |
sql.updateWaterTable(); | |
ppmenu(); | |
} | |
else if (selection == 2) | |
{ | |
inventory.inv(); | |
} | |
/*else if (selection == 4) | |
{ | |
jm.jobmenu(); | |
} | |
else if (selection == 5) | |
{ | |
lb.librarymenu(); | |
}*/ | |
//else if (selection == 6) | |
//{ | |
// mainmenu.mmenu(); | |
//} | |
else if (selection == 3) | |
{ | |
cout << "0 - Chatroom." << endl; | |
cout << "1 - Game Menu." << endl; | |
cout << "2 - Job Menu." << endl; | |
cout << "3 - Library Menu" << endl; | |
cout << "Enter Selection:" << endl; | |
/*int menuInput; | |
cin >> menuInput; | |
PlayerMenu::update(menuInput);*/ | |
} | |
} |