]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/forty/scorefil.h
Added testing code for PCX Handler (which is still not working
[wxWidgets.git] / samples / forty / scorefil.h
... / ...
CommitLineData
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
16#include <wx/config.h>
17
18class wxConfig;
19
20class ScoreFile {
21public:
22 ScoreFile(const char* appName);
23 virtual ~ScoreFile();
24
25 void GetPlayerList( wxArrayString &list );
26 wxString GetPreviousPlayer() const;
27
28 void ReadPlayersScore(const char* player, int& wins, int& games, int &score);
29 void WritePlayersScore(const char* player, int wins, int games, int score);
30
31private:
32 long CalcCheck(const char* name, int p1, int p2, int p3);
33 wxString m_configFilename;
34 wxConfig* m_config;
35};
36
37#endif