home *** CD-ROM | disk | FTP | other *** search
-
- //===========================
- // HiScores.h
- // by SA VanNess
- // 05 Jun 97
- // for the Win32 platform
- //===========================
- // High score table
- // Class declaration
- //===========================
- // Copyright (C) 1997 SA VanNess
- // <savanness@pipeline.com>
- //
- // For copyright information, see the file gnu_license.txt included
- // with this source code distribution.
- //
- // This program is free software; you can redistribute it and/or modify
- // it under the terms of the GNU General Public License as published by
- // the Free Software Foundation; either version 2 of the License, or
- // (at your option) any later version.
- //
- // This program is distributed in the hope that it will be useful,
- // but WITHOUT ANY WARRANTY; without even the implied warranty of
- // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- // GNU General Public License for more details.
- //
- // You should have received a copy of the GNU General Public License
- // along with this program; if not, write to the Free Software
- // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- //===========================
-
- #ifndef __HISCORES_H__
- #define __HISCORES_H__
-
- //-----------------
- class CScoreList //high-score table data
- {
- private:
- UINT m_iScoreArray[10];
- char m_szNameArray[10][16];
-
- public:
- //CScoreList();
- //~CScoreList();
-
- UINT GetScore(UINT i)
- { return m_iScoreArray[i]; }
- char* GetName(UINT i)
- { return m_szNameArray[i]; }
- void SetName(UINT iSlot, char* pszName)
- { strcpy(m_szNameArray[iSlot],pszName); }
-
- void Insert(UINT iSlot, char* pszName, UINT iScore);
- BOOL Save();
- BOOL Load();
- };
-
-
- #endif //include-guard
-