Pac-Man Evolution
Loading...
Searching...
No Matches
HoF.h
1/*----------------------------------------------------------------------
2Pac-Man Evolution - Roberto Prieto
3Copyright (C) 2018-2024 MegaStorm Systems
4contact@megastormsystems.com - http://www.megastormsystems.com
5
6This software is provided 'as-is', without any express or implied
7warranty. In no event will the authors be held liable for any damages
8arising from the use of this software.
9
10Permission is granted to anyone to use this software for any purpose,
11including commercial applications, and to alter it and redistribute it
12freely, subject to the following restrictions:
13
141. The origin of this software must not be misrepresented; you must not
15claim that you wrote the original software. If you use this software
16in a product, an acknowledgment in the product documentation would be
17appreciated but is not required.
182. Altered source versions must be plainly marked as such, and must not be
19misrepresented as being the original software.
203. This notice may not be removed or altered from any source distribution.
21
22------------------------------------------------------------------------
23
24Hall of Fame class
25
26------------------------------------------------------------------------ */
27
28#ifndef HOFPME_H
29#define HOFPME_H
30
31// Includes and forward definitions
32#include "MemoryManager.h"
33#define PME_CONFIG "setup.cdc"
34#define PME_HOF_SCORES 10
35
36class HoF : public CMemPME
37{
38public:
39 explicit HoF();
40 ~HoF();
41 Sint32 store(Sint32 iGameType, Sint32 iPoints, char* szName);
42 Sint32 render(Sint32 iMode);
43 Sint32 getHighest(Sint32 iGameType);
44 Sint32 getLowest(Sint32 iGameType);
45
46private:
47 Sint32 insert(Sint32 iGameType, Sint32 iPos, Sint32 iPoints, char* szName);
48
49 struct sScores
50 {
51 char sName[8];
52 Sint32 iPoints;
53 } scores[2][PME_HOF_SCORES]; // Game top 10 scores on the two modes: standard and evolution
54};
55
56
57#endif