blob: 96c2334bc2f2c2406a5cf9c17e8d8db6829e91c6 (
plain)
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
|
#ifndef __SFCAVE_H
#define __SFCAVE_H
#include "SDL.h"
#include "terrain.h"
class Game;
class Menu;
class Help;
class SFCave
{
public:
SFCave( int argc, char *argv[] );
~SFCave();
void drawGameScreen();
void initSDL( int argc, char *argv[] );
void mainEventLoop();
void setCrashed( bool val );
void changeState( int s );
int getState() { return state; }
Game *getCurrentGame() { return currentGame; }
int getFPS() { return actualFPS; }
bool showFPS() { return showFps; }
void setMenuStatusText( string statusText );
void saveSetting( string key, string val );
void saveSetting( string key, int val );
string loadSetting( string key, string defaultVal = "" );
private:
SDL_Surface *screen;
Game *currentGame;
Menu *menu;
Help *help;
int state;
int maxFPS;
int actualFPS;
bool showFps;
string musicPath;
string musicType;
void handleMenuSelect( int menuId );
};
#endif
|