summaryrefslogtreecommitdiff
path: root/noncore/games/sfcave-sdl/game.h
Side-by-side diff
Diffstat (limited to 'noncore/games/sfcave-sdl/game.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/sfcave-sdl/game.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/noncore/games/sfcave-sdl/game.h b/noncore/games/sfcave-sdl/game.h
index 56fa6a1..087f848 100644
--- a/noncore/games/sfcave-sdl/game.h
+++ b/noncore/games/sfcave-sdl/game.h
@@ -22,35 +22,36 @@ public:
virtual void stateChanged( int from, int to );
void setReplay( bool val ) { replay = val; }
void handleKeys( SDL_KeyboardEvent &key );
- QString getGameName() { return gameName; }
+ string getGameName() { return gameName; }
int getDifficulty() { return difficulty; }
- QString getGameDifficultyText();
- void setDifficulty( int diff ) { difficulty = diff; }
+ string getGameDifficultyText();
+ void setDifficulty( int diff );
void setDifficulty( string diff );
long getScore() { return score; }
long getHighScore() { return highScore; }
void increaseScore( long val ) { score += val; }
void clearScore() { score = 0; }
bool gotHighScore() { return (score >= highScore); }
bool isReplayAvailable() { return replayList.size() > 0; }
Terrain *getTerrain() { return terrain; }
+ Player *getPlayer() { return player; }
void setSeed( int seed );
- void loadReplay( QString file );
- void saveReplay( QString file );
+ void loadReplay( string file );
+ void saveReplay( string file );
static Game *createGame( SFCave *p, int w, int h, string game, string difficulty );
protected:
- QString gameName;
+ string gameName;
int thrustChannel;
int difficulty;
SFCave *parent;
@@ -66,17 +67,15 @@ protected:
long score;
long highScore;
// Stuff for the replays
int currentSeed;
-// QListIterator<int> *replayIt;
list<int> replayList;
list<int>::iterator replayIt;
-// QList<int> replayList;
bool replay;
- QString replayFile;
+ string replayFile;
private:
};
#endif