summaryrefslogtreecommitdiff
path: root/noncore/games/sfcave-sdl/sfcave.h
Side-by-side diff
Diffstat (limited to 'noncore/games/sfcave-sdl/sfcave.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/sfcave-sdl/sfcave.h28
1 files changed, 25 insertions, 3 deletions
diff --git a/noncore/games/sfcave-sdl/sfcave.h b/noncore/games/sfcave-sdl/sfcave.h
index 96c2334..c707919 100644
--- a/noncore/games/sfcave-sdl/sfcave.h
+++ b/noncore/games/sfcave-sdl/sfcave.h
@@ -12,13 +12,12 @@ 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; }
@@ -27,24 +26,47 @@ public:
bool showFPS() { return showFps; }
void setMenuStatusText( string statusText );
void saveSetting( string key, string val );
void saveSetting( string key, int val );
+ void saveSetting( string key, long val );
+ void saveSetting( string key, double val );
string loadSetting( string key, string defaultVal = "" );
+ bool loadBoolSetting( string key, bool defaultVal);
+ int loadIntSetting( string key, int defaultVal );
+ double loadDoubleSetting( string key, double defaultVal );
+
private:
SDL_Surface *screen;
+ bool setupOK;
Game *currentGame;
Menu *menu;
Help *help;
int state;
- int maxFPS;
- int actualFPS;
bool showFps;
string musicPath;
string musicType;
+ bool finish;
+
+ bool limitFPS;
+ int maxFPS;
+ int actualFPS;
+ int FPS;
+ long time1;
+ long start;
+ long end;
+
+ // This is used when the user is setting the custom
+ // values in the menu
+ int customPlayerMenuVal;
+ double origValue;
void handleMenuSelect( int menuId );
+ void handleGameState();
+ void handleEvents();
+ void calcFPS();
+ void FPSDelay();
};
#endif