Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

src/score.c File Reference


Detailed Description

High scores.

Definition in file score.c.

#include "crogue.h"
#include "export.h"

Go to the source code of this file.

Defines

#define SCORESCREEN_LEFT   11
#define SCORESCREEN_HEADER_LEFT   30
#define SCORESCREEN_ARROW_SPACE   5
#define SCORESCREEN_SCORE_SPACE   13

Functions

ulong checksum_scores (high_scores *scores)
void load_options (void)
void display_scores (ulong score)
void award_high_score (ulong score, const char *cause_of_death)

Variables

const uchar scoreScreenNumTabStops = 3


Define Documentation

#define SCORESCREEN_ARROW_SPACE   5
 

Definition at line 37 of file score.c.

Referenced by display_scores().

#define SCORESCREEN_HEADER_LEFT   30
 

Definition at line 36 of file score.c.

Referenced by display_scores().

#define SCORESCREEN_LEFT   11
 

Definition at line 35 of file score.c.

Referenced by display_scores().

#define SCORESCREEN_SCORE_SPACE   13
 

Definition at line 38 of file score.c.

Referenced by display_scores().


Function Documentation

void award_high_score ulong  score,
const char *  cause_of_death
 

Definition at line 116 of file score.c.

References checksum_scores(), file_prefix, message(), NUM_OPTIONS, NUM_SCORES, OPTION_ARCHIVE_YES, OPTION_ARCHIVESCORES, world::options, read_char(), SCOREFILENAME, and w.

Referenced by end_game().

ulong checksum_scores high_scores scores  )  [static]
 

Definition at line 202 of file score.c.

References checksum_bytes(), and ulong.

Referenced by award_high_score().

void display_scores ulong  score  ) 
 

Definition at line 63 of file score.c.

References catprintf(), high_score::cause_of_death, draw_string(), file_prefix, Graph_ClrScr(), min(), high_scores::num_games, NUM_SCORES, OPTION_FONT_SMALL, high_score::points, read_char(), SCOREFILENAME, high_scores::scores, SCORESCREEN_ARROW_SPACE, SCORESCREEN_HEADER_LEFT, SCORESCREEN_LEFT, SCORESCREEN_SCORE_SPACE, SCREEN_HEIGHT, SCREEN_WIDTH, and setTabStops().

Referenced by end_game(), and main_menu().

void load_options void   ) 
 

Definition at line 42 of file score.c.

References file_prefix, NUM_OPTIONS, world::options, SCOREFILENAME, and w.

Referenced by initialize().


Variable Documentation

const uchar scoreScreenNumTabStops = 3 [static]
 

Definition at line 28 of file score.c.


Generated on Thu May 20 13:12:13 2004 for CalcRogue by doxygen 1.3.6