]> git.saurik.com Git - wxWidgets.git/blame - demos/forty/scorefil.h
small m_blinkedOut consistency corrections
[wxWidgets.git] / demos / forty / scorefil.h
CommitLineData
63cafd27
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: scorefil.h
3// Purpose: Forty Thieves patience game
4// Author: Chris Breeze
5// Modified by:
6// Created: 21/07/97
7// RCS-ID: $Id$
8// Copyright: (c) 1993-1998 Chris Breeze
9// Licence: wxWindows licence
10//---------------------------------------------------------------------------
11// Last modified: 22nd July 1998 - ported to wxWindows 2.0
12/////////////////////////////////////////////////////////////////////////////
13#ifndef _SCOREFILE_H_
14#define _SCOREFILE_H_
15
18244936
JS
16#include <wx/config.h>
17
2fa7c206
JS
18#ifdef __WIN16__
19#include <wx/fileconf.h>
20
21#undef wxConfig
22#define wxConfig wxFileConfig
23#endif
63cafd27
JS
24
25class ScoreFile {
26public:
27 ScoreFile(const char* appName);
28 virtual ~ScoreFile();
29
54ff4a70 30 void GetPlayerList( wxArrayString &list );
63cafd27
JS
31 wxString GetPreviousPlayer() const;
32
33 void ReadPlayersScore(const char* player, int& wins, int& games, int &score);
34 void WritePlayersScore(const char* player, int wins, int games, int score);
35
36private:
37 long CalcCheck(const char* name, int p1, int p2, int p3);
18244936
JS
38 wxString m_configFilename;
39 wxConfig* m_config;
63cafd27
JS
40};
41
42#endif