mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2025-03-18 02:41:41 +01:00
33 lines
1.1 KiB
C++
33 lines
1.1 KiB
C++
#pragma once
|
|
#include "pinball.h"
|
|
|
|
struct high_score_struct
|
|
{
|
|
wchar_t Name[32];
|
|
int Score;
|
|
};
|
|
|
|
|
|
class high_score
|
|
{
|
|
public:
|
|
static int read(high_score_struct* table, int* ptrToSmth);
|
|
static int write(high_score_struct* table, int* ptrToSmth);
|
|
static void clear_table(high_score_struct* table);
|
|
static int get_score_position(high_score_struct* table, int score);
|
|
static int place_new_score_into(high_score_struct* table, int score, LPWSTR name, int position);
|
|
static void scramble_number_string(int Value, char* Buffer);
|
|
|
|
static void show_high_score_dialog(high_score_struct* table);
|
|
static void show_and_set_high_score_dialog(high_score_struct* table, int score, int pos, LPCWSTR defaultName);
|
|
static INT_PTR __stdcall HighScore(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
|
|
static void show_high_scores(HWND hDlg, high_score_struct* table);
|
|
static void hsdlg_show_score(HWND hDlg, LPCWSTR name, int score, int position);
|
|
private :
|
|
static int dlg_enter_name;
|
|
static int dlg_score;
|
|
static int dlg_position;
|
|
static LPCWSTR default_name;
|
|
static high_score_struct* dlg_hst;
|
|
static winhelp_entry help[21];
|
|
};
|