comparison lamertetris/sources/hiscore_win.h @ 0:2787f5e749ae

INIT
author prymula <prymula76@outlook.com>
date Thu, 21 Sep 2023 22:33:57 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:2787f5e749ae
1 /*
2 * Lamer Tetris - moja implementacja kultowej gry
3 * new version: 06-VIII-2021
4 * Przemysław R. Pietraszczyk
5 * Licencja: Public Domain
6 * Powered by: Geany
7 */
8
9 #ifndef HISCORE_H
10 #define HISCORE_H
11
12 #include <SDL2/SDL.h>
13 #include <SDL_ttf.h>
14 #include <string>
15 #include <cstdio>
16 #include <iostream>
17 #include <unistd.h> // sleep access
18 #include <windows.h>
19
20
21
22 class HiScore {
23 public:
24 HiScore();
25 ~HiScore();
26 SDL_bool file_exist();
27 void save_hiscore(int hi_score);
28 int load_hiscore();
29 private:
30 std::string FILE_NAME = "\\lamertetris.txt";
31 std::string HOME = "HOMEPATH";
32
33 };
34 #endif //HISCORE_H