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 JOBMENU_H
#define JOBMENU_H
#include <iostream>
#include "alphabet.h"
#include "jumble.h"
#include "memorygame.h"
#include "menuoptions.h"
#include "menuclass.h"
using namespace std;
class JobMenu : public Menu
{
public:
JobMenu(MenuSwitch* myGame)
{
game = myGame;
}
JobMenu()
{
}
void jobmenu();
void update(int input)
{
if (input == 1)
{
game->currentMenu = game->menuOption[input];
cout << "Menu changed to player menu" << endl;
}
else if (input == 3)
{
game->currentMenu = game->menuOption[input];
cout << "Menu changed to library menu" << endl;
}
else if (input == 4)
{
game->currentMenu = game->menuOption[input];
cout << "Menu changed to gym menu" << endl;
}
else if (input == 2)
{
cout << "Menu unchanged - still job menu" << endl;
system("cls");
jobmenu();
}
}
};
#endif