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 "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);*/
}
}