]>
Commit | Line | Data |
---|---|---|
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 | |
010216e3 | 9 | // Licence: wxWindows licence |
63cafd27 | 10 | //--------------------------------------------------------------------------- |
be5a51fb | 11 | // Last modified: 22nd July 1998 - ported to wxWidgets 2.0 |
63cafd27 JS |
12 | ///////////////////////////////////////////////////////////////////////////// |
13 | #ifndef _SCOREFILE_H_ | |
14 | #define _SCOREFILE_H_ | |
15 | ||
18244936 JS |
16 | #include <wx/config.h> |
17 | ||
63cafd27 JS |
18 | class ScoreFile { |
19 | public: | |
010216e3 WS |
20 | ScoreFile(const wxString& appName); |
21 | virtual ~ScoreFile(); | |
63cafd27 | 22 | |
010216e3 WS |
23 | void GetPlayerList( wxArrayString &list ); |
24 | wxString GetPreviousPlayer() const; | |
63cafd27 | 25 | |
010216e3 WS |
26 | void ReadPlayersScore(const wxString& player, int& wins, int& games, int &score); |
27 | void WritePlayersScore(const wxString& player, int wins, int games, int score); | |
63cafd27 JS |
28 | |
29 | private: | |
010216e3 WS |
30 | long CalcCheck(const wxString& name, int p1, int p2, int p3); |
31 | wxString m_configFilename; | |
32 | wxConfig* m_config; | |
63cafd27 JS |
33 | }; |
34 | ||
35 | #endif |