35 lines
459 B
C++
35 lines
459 B
C++
#ifndef MENU_HPP_INCLUDED
|
|
#define MENU_HPP_INCLUDED
|
|
|
|
|
|
#include <iostream>
|
|
#include <vector>
|
|
|
|
#include "game.hpp"
|
|
#include "menuitem.hpp"
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
class Menu
|
|
{
|
|
public:
|
|
Menu();
|
|
~Menu();
|
|
|
|
void addItem ( const char * nazov, void ( * action ) ( game * ) );
|
|
void Execute ( game * Game );
|
|
void Draw ( game * Game );
|
|
|
|
void Down ( game * Game );
|
|
void Up ( game * Game );
|
|
|
|
private:
|
|
vector <MenuItem> polozky;
|
|
int select;
|
|
};
|
|
|
|
|
|
#endif
|