comparison lamertetris/sources/hiscore_linux.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 <cstdio>
15 #include <iostream>
16 #include <unistd.h> // sleep access
17
18
19
20 class HiScore {
21 public:
22 HiScore();
23 ~HiScore();
24 SDL_bool file_exist();
25 void save_hiscore(int hi_score);
26 int load_hiscore();
27 private:
28 std::string FILE_NAME = "/.lamertetris.txt";
29 std::string HOME = "HOME";
30
31 };
32 #endif //HISCORE_H