1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
/***************************************************************************
menu.h - description
-------------------
begin : Mon Jul 29 2002
copyright : (C) 2002 by Giuseppe D'Aqui'
email : kumber@tiscalinet.it
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "dephine.h"
#ifndef MENU_H
#define MENU_H
class Game;
class Menu
{
private:
Game* m_game;
CL_Font* m_menu_font;
unsigned int m_current_level;
unsigned int m_unsolved_level;
unsigned int m_total_levels;
CL_Surface* m_selector;
CL_Surface* m_background;
public:
Menu(Game* game, unsigned int total_levels, unsigned int unsolved_level);
~Menu();
void set_unsolved_level(unsigned int unsolved_level);
unsigned int get_unsolved_level();
unsigned int get_current_level();
void set_current_level(unsigned int current_level);
int go();
bool increase_unsolved_level();
};
#endif //MENU_H
|