summaryrefslogtreecommitdiff
path: root/noncore/games/sfcave-sdl/sfcave.h
Unidiff
Diffstat (limited to 'noncore/games/sfcave-sdl/sfcave.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/sfcave-sdl/sfcave.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/noncore/games/sfcave-sdl/sfcave.h b/noncore/games/sfcave-sdl/sfcave.h
new file mode 100644
index 0000000..96c2334
--- a/dev/null
+++ b/noncore/games/sfcave-sdl/sfcave.h
@@ -0,0 +1,50 @@
1#ifndef __SFCAVE_H
2#define __SFCAVE_H
3
4#include "SDL.h"
5
6#include "terrain.h"
7
8class Game;
9class Menu;
10class Help;
11
12class SFCave
13{
14public:
15 SFCave( int argc, char *argv[] );
16 ~SFCave();
17
18 void drawGameScreen();
19 void initSDL( int argc, char *argv[] );
20 void mainEventLoop();
21
22 void setCrashed( bool val );
23 void changeState( int s );
24 int getState() { return state; }
25 Game *getCurrentGame() { return currentGame; }
26 int getFPS() { return actualFPS; }
27 bool showFPS() { return showFps; }
28
29 void setMenuStatusText( string statusText );
30
31 void saveSetting( string key, string val );
32 void saveSetting( string key, int val );
33 string loadSetting( string key, string defaultVal = "" );
34private:
35 SDL_Surface *screen;
36
37 Game *currentGame;
38 Menu *menu;
39 Help *help;
40 int state;
41 int maxFPS;
42 int actualFPS;
43 bool showFps;
44 string musicPath;
45 string musicType;
46
47 void handleMenuSelect( int menuId );
48};
49
50#endif