]> git.saurik.com Git - wxWidgets.git/blob - demos/forty/scorefil.h
No changes, just use "@since 3.0" consistently in the documentation.
[wxWidgets.git] / demos / forty / scorefil.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: scorefil.h
3 // Purpose: Forty Thieves patience game
4 // Author: Chris Breeze
5 // Modified by:
6 // Created: 21/07/97
7 // Copyright: (c) 1993-1998 Chris Breeze
8 // Licence: wxWindows licence
9 //---------------------------------------------------------------------------
10 // Last modified: 22nd July 1998 - ported to wxWidgets 2.0
11 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _SCOREFILE_H_
13 #define _SCOREFILE_H_
14
15 #include <wx/config.h>
16
17 class ScoreFile {
18 public:
19 ScoreFile(const wxString& appName);
20 virtual ~ScoreFile();
21
22 void GetPlayerList( wxArrayString &list );
23 wxString GetPreviousPlayer() const;
24
25 void ReadPlayersScore(const wxString& player, int& wins, int& games, int &score);
26 void WritePlayersScore(const wxString& player, int wins, int games, int score);
27
28 private:
29 long CalcCheck(const wxString& name, int p1, int p2, int p3);
30 wxString m_configFilename;
31 wxConfig* m_config;
32 };
33
34 #endif