1     namespace NKlein_54321 {
2             class MainMenuView {
3                     public:
4                             enum {
5                                 FLIPFLOP = 0,
6                                 BOMBSQUAD,
7                                 MAZERUNNER,
8                                 PEGJUMPER,
9                                 TILESLIDER,
10                                 MAX_GAME
11                             };
12                     public:
13                             MainMenuView( SDL_Surface* _screen );
14                             ~MainMenuView( void );
15                             void redraw( void ) const;
16                             void redrawQuit( bool refresh = true ) const;
17                     public:
18                             bool pointInBox(
19                                     unsigned int xx, unsigned int yy,
20                                     unsigned int game
21                                 ) const;
22                             virtual bool handleMouseClick(
23                                     Controller* controller,
24                                     bool isMouseUp,
25                                     unsigned int xx,
26                                     unsigned int yy,
27                                     unsigned int buttonNumber
28                                 );
29                     private:
30                             SDL_Surface* sidebar;
31                             SDL_Surface* backdrop;
32                             SDL_Surface* overlay;
33                             SDL_Surface* logos[ MAX_GAME ];
34                             SDL_Surface* quitButton[2];
35                             SDL_Surface* screen;
36                             bool quitPressed;
37                             static SDL_Rect quitBox;
38                             static SDL_Rect boxes[ MAX_GAME ];
39             };
40     };
41