Mercurial > hg > pub > prymula > com
diff lamertetris/sources/hiscore_win.h @ 0:2787f5e749ae
INIT
author | prymula <prymula76@outlook.com> |
---|---|
date | Thu, 21 Sep 2023 22:33:57 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lamertetris/sources/hiscore_win.h Thu Sep 21 22:33:57 2023 +0200 @@ -0,0 +1,34 @@ +/* + * Lamer Tetris - moja implementacja kultowej gry + * new version: 06-VIII-2021 + * Przemysław R. Pietraszczyk + * Licencja: Public Domain + * Powered by: Geany +*/ + +#ifndef HISCORE_H +#define HISCORE_H + +#include <SDL2/SDL.h> +#include <SDL_ttf.h> +#include <string> +#include <cstdio> +#include <iostream> +#include <unistd.h> // sleep access +#include <windows.h> + + + +class HiScore { +public: + HiScore(); + ~HiScore(); + SDL_bool file_exist(); + void save_hiscore(int hi_score); + int load_hiscore(); +private: + std::string FILE_NAME = "\\lamertetris.txt"; + std::string HOME = "HOMEPATH"; + +}; +#endif //HISCORE_H