Tetris/menu.hpp

35 lines
459 B
C++
Raw Normal View History

2014-11-07 20:47:50 +01:00
#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