1 /***************************************************************************
2                           game.h  -  description
3                              -------------------
4     begin                : Tue Feb 29 2000
5     copyright            : (C) 2000 by Michael Speck
6     email                :
7  ***************************************************************************/
8 
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License as published by  *
13  *   the Free Software Foundation; either version 2 of the License, or     *
14  *   (at your option) any later version.                                   *
15  *                                                                         *
16  ***************************************************************************/
17 
18 #ifndef GAME_H
19 #define GAME_H
20 
21 /**
22   *@author Michael Speck
23   */
24 
25 #include "sdl.h"
26 #include "sndsrv.h"
27 
28 //action types
29 #define AT_NONE		1000
30 #define AT_QUIT		1001
31 #define AT_HISCORE	1002
32 #define AT_NEWGAME	1003
33 
34 class MenuManager;
35 class BreakOut;
36 class Menu;
37 class MenuItem;
38 
39 class Game{
40 public:
41     Game();
42     ~Game();
43     void Run();
44 private:
45     SDL_Surface *title;
46     SDL_Surface *logo;
47     int         logo_x;
48     int         logo_y;
49     SFnt        *f_menu_w;
50     SFnt        *f_menu_b;
51     SFnt        *f_hiscore;
52     SFnt        *f_enlgt_hiscore;
53     SFnt        *f_copy;
54     MenuManager *mm;
55     char        val_ctrl_keys[SDLK_LAST];
56     BreakOut    *breakout;
57     MenuItem    *level_sw;
58     MenuItem    *level_menu;
59 #ifdef SOUND
60     Wave        *snd_menu;
61 #endif
62 protected:
63     void ShowHiScore(int r = -1);
64     void CheckLevelFile();
65 };
66 
67 #endif
68