annotate lamertetris/sources/hiscore_linux.h @ 22:b0c59d056e73

colorsmemory - typo
author Przemyslaw <prymula76@outlook.com>
date Sun, 31 Mar 2024 22:53:32 +0200
parents 2787f5e749ae
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
prymula <prymula76@outlook.com>
parents:
diff changeset
1 /*
prymula <prymula76@outlook.com>
parents:
diff changeset
2 * Lamer Tetris - moja implementacja kultowej gry
prymula <prymula76@outlook.com>
parents:
diff changeset
3 * new version: 06-VIII-2021
prymula <prymula76@outlook.com>
parents:
diff changeset
4 * Przemysław R. Pietraszczyk
prymula <prymula76@outlook.com>
parents:
diff changeset
5 * Licencja: Public Domain
prymula <prymula76@outlook.com>
parents:
diff changeset
6 * Powered by: Geany
prymula <prymula76@outlook.com>
parents:
diff changeset
7 */
prymula <prymula76@outlook.com>
parents:
diff changeset
8
prymula <prymula76@outlook.com>
parents:
diff changeset
9 #ifndef HISCORE_H
prymula <prymula76@outlook.com>
parents:
diff changeset
10 #define HISCORE_H
prymula <prymula76@outlook.com>
parents:
diff changeset
11
prymula <prymula76@outlook.com>
parents:
diff changeset
12 #include <SDL2/SDL.h>
prymula <prymula76@outlook.com>
parents:
diff changeset
13 #include <SDL_ttf.h>
prymula <prymula76@outlook.com>
parents:
diff changeset
14 #include <cstdio>
prymula <prymula76@outlook.com>
parents:
diff changeset
15 #include <iostream>
prymula <prymula76@outlook.com>
parents:
diff changeset
16 #include <unistd.h> // sleep access
prymula <prymula76@outlook.com>
parents:
diff changeset
17
prymula <prymula76@outlook.com>
parents:
diff changeset
18
prymula <prymula76@outlook.com>
parents:
diff changeset
19
prymula <prymula76@outlook.com>
parents:
diff changeset
20 class HiScore {
prymula <prymula76@outlook.com>
parents:
diff changeset
21 public:
prymula <prymula76@outlook.com>
parents:
diff changeset
22 HiScore();
prymula <prymula76@outlook.com>
parents:
diff changeset
23 ~HiScore();
prymula <prymula76@outlook.com>
parents:
diff changeset
24 SDL_bool file_exist();
prymula <prymula76@outlook.com>
parents:
diff changeset
25 void save_hiscore(int hi_score);
prymula <prymula76@outlook.com>
parents:
diff changeset
26 int load_hiscore();
prymula <prymula76@outlook.com>
parents:
diff changeset
27 private:
prymula <prymula76@outlook.com>
parents:
diff changeset
28 std::string FILE_NAME = "/.lamertetris.txt";
prymula <prymula76@outlook.com>
parents:
diff changeset
29 std::string HOME = "HOME";
prymula <prymula76@outlook.com>
parents:
diff changeset
30
prymula <prymula76@outlook.com>
parents:
diff changeset
31 };
prymula <prymula76@outlook.com>
parents:
diff changeset
32 #endif //HISCORE_H