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