author | andyq <andyq> | 2003-01-20 23:11:56 (UTC) |
---|---|---|
committer | andyq <andyq> | 2003-01-20 23:11:56 (UTC) |
commit | 92419b025aa5d82bb7592281af5505ff931c2e58 (patch) (unidiff) | |
tree | 374ee9ca86ef716ce388c8a28e38261f6a04ce7a /noncore/games/sfcave-sdl/sfcave.h | |
parent | 02090d2e63ad8398c0a8a9f1fb895a9c6e42514b (diff) | |
download | opie-92419b025aa5d82bb7592281af5505ff931c2e58.zip opie-92419b025aa5d82bb7592281af5505ff931c2e58.tar.gz opie-92419b025aa5d82bb7592281af5505ff931c2e58.tar.bz2 |
Initial Revision
Diffstat (limited to 'noncore/games/sfcave-sdl/sfcave.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/sfcave-sdl/sfcave.h | 50 |
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 | |||
8 | class Game; | ||
9 | class Menu; | ||
10 | class Help; | ||
11 | |||
12 | class SFCave | ||
13 | { | ||
14 | public: | ||
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 = "" ); | ||
34 | private: | ||
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 | ||