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
#ifndef GYMMENU_H
#define GYMMENU_H
#include <iostream>
#include <conio.h>
#include "playermenu.h"
#include "player.h"
#include "menuoptions.h"
#include "menuclass.h"
#define KEY_SPACE 32
using namespace std;
class Gym : public Menu
{
public:
Gym(MenuSwitch* myGame)
{
game = myGame;
}
Gym()
{
}
void gymmenu();
void update(int input)
{
if (input == 1)
{
game->currentMenu = game->menuOption[input];
cout << "Menu changed to player menu" << endl;
}
else if (input == 2)
{
game->currentMenu = game->menuOption[input];
cout << "Menu changed to job menu" << endl;
}
else if (input == 3)
{
game->currentMenu = game->menuOption[input];
cout << "Menu changed to library menu" << endl;
}
else if (input == 4)
{
cout << "Menu unchanged - still gym menu" << endl;
gymmenu();
}
}
};
#endif