1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
|
/*
* PROPRIETARY INFORMATION. This software is proprietary to POWDER
* Development, and is not to be reproduced, transmitted, or disclosed
* in any way without written permission.
*
* Produced by: Jeff Lait
*
* POWDER Development
*
* NAME: hiscore.h ( POWDER Library, C++ )
*
* COMMENTS:
* Provides routines to manage our high score list.
*/
#ifndef __hiscore__
#define __hiscore__
class MOB;
class SRAMSTREAM;
struct HISCORE_ENTRY;
extern bool glbRNGValid;
extern int glbRNGSeed;
// Inspects the SRAM to determine save version, erases save file
// if necessary.
void
hiscore_init();
// Returns version of POWDER.
int
hiscore_getversion();
// Returns the current hiscore save count.
// 0 means no save game.
// 1 means a valid save game.
// 2 or higher means a save scummed game!
int
hiscore_savecount();
// Sets the save count.
void
hiscore_setsavecount(int newval);
// Bumps the save count up one.
void
hiscore_bumpsavecount();
// Flags as a new game.
void
hiscore_flagnewgame(bool isnewgame);
// Returns if this is a new game.
bool
hiscore_isnewgame();
// Returns if we've got 15 games in high score, this is
// used to activate advanced mode.
bool
hiscore_advancedmode();
// Displays hiscore list.
void
hiscore_display(HISCORE_ENTRY *bonus, bool ischeater);
// Returns true if we add the player to our list.
// Displays the high score, along with the player's place in it.
// If ischeater is set, we will not add to the high score list.
bool
hiscore_addAndDisplayEntry(MOB *player, bool haswon, bool ischeater);
// This must be loaded first!
void
hiscore_load(SRAMSTREAM &os);
// This must be saved first!
void
hiscore_save(SRAMSTREAM &is);
#endif
|