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/librarymenu.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
60 lines (50 sloc)
959 Bytes
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
#pragma once | |
#ifndef LIBRARYMENU_H | |
#define LIBRARYMENU_H | |
#include <iostream> | |
#include "player.h" | |
#define KEY_X 120 | |
#define KEY_SPACE 32 | |
#include <conio.h> | |
#include "playermenu.h" | |
#include "room.h" | |
#include "menuoptions.h" | |
#include "menuclass.h" | |
using namespace std; | |
class LibraryMenu : public Menu | |
{ | |
public: | |
LibraryMenu(MenuSwitch* myGame) | |
{ | |
game = myGame; | |
} | |
LibraryMenu() | |
{ | |
} | |
void librarymenu(); | |
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 == 4) | |
{ | |
game->currentMenu = game->menuOption[input]; | |
cout << "Menu changed to gym menu" << endl; | |
} | |
else if (input == 3) | |
{ | |
cout << "Menu unchanged - still library menu" << endl; | |
system("cls"); | |
librarymenu(); | |
} | |
} | |
}; | |
#endif |