Skip to content
Permalink
76f84e8963
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
23 lines (21 sloc) 359 Bytes
#ifndef MENU_H
#define MENU_H
#include <iostream>
#include "menuoptions.h"
class MainMenu : public Menu
{
public:
MainMenu(MenuSwitch* myGame)
{
game = myGame;
}
void update(int input)
{
if (input == 1)
{
game->currentMenu = game->menuOptions[input]; //assigns menu
std::cout << "Menu changed to Player Menu" << std::endl;
}
}
};
#endif