annotate lamertetris/sources/hiscore_win.h @ 6:542e305f23f4

arkanoid-trix-debian-dir
author prymula <prymula76@outlook.com>
date Wed, 31 Jan 2024 20:40:57 +0100
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 <string>
prymula <prymula76@outlook.com>
parents:
diff changeset
15 #include <cstdio>
prymula <prymula76@outlook.com>
parents:
diff changeset
16 #include <iostream>
prymula <prymula76@outlook.com>
parents:
diff changeset
17 #include <unistd.h> // sleep access
prymula <prymula76@outlook.com>
parents:
diff changeset
18 #include <windows.h>
prymula <prymula76@outlook.com>
parents:
diff changeset
19
prymula <prymula76@outlook.com>
parents:
diff changeset
20
prymula <prymula76@outlook.com>
parents:
diff changeset
21
prymula <prymula76@outlook.com>
parents:
diff changeset
22 class HiScore {
prymula <prymula76@outlook.com>
parents:
diff changeset
23 public:
prymula <prymula76@outlook.com>
parents:
diff changeset
24 HiScore();
prymula <prymula76@outlook.com>
parents:
diff changeset
25 ~HiScore();
prymula <prymula76@outlook.com>
parents:
diff changeset
26 SDL_bool file_exist();
prymula <prymula76@outlook.com>
parents:
diff changeset
27 void save_hiscore(int hi_score);
prymula <prymula76@outlook.com>
parents:
diff changeset
28 int load_hiscore();
prymula <prymula76@outlook.com>
parents:
diff changeset
29 private:
prymula <prymula76@outlook.com>
parents:
diff changeset
30 std::string FILE_NAME = "\\lamertetris.txt";
prymula <prymula76@outlook.com>
parents:
diff changeset
31 std::string HOME = "HOMEPATH";
prymula <prymula76@outlook.com>
parents:
diff changeset
32
prymula <prymula76@outlook.com>
parents:
diff changeset
33 };
prymula <prymula76@outlook.com>
parents:
diff changeset
34 #endif //HISCORE_H