ui-score.c File Reference

Highscore display for Angband. More...

#include "angband.h"
#include "buildid.h"
#include "game-world.h"
#include "score.h"
#include "ui-input.h"
#include "ui-output.h"
#include "ui-score.h"
#include "ui-term.h"


static void display_score_page (const struct high_score scores[], int start, int count, int highlight)
 Display a page of scores. More...
static void display_scores_aux (const struct high_score scores[], int from, int to, int highlight, bool allow_scrolling)
 Display the scores in a given range. More...
void predict_score (bool allow_scrolling)
 Predict the players location, and display it. More...
void show_scores (void)
 Show scores. More...

Detailed Description

Highscore display for Angband.

Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke

This work is free software; you can redistribute it and/or modify it under the terms of either:

a) the GNU General Public License as published by the Free Software Foundation, version 2, or

b) the "Angband licence": This software may be copied and distributed for educational, research, and not for profit purposes provided that this copyright and statement are included in all such copies. Other copyrights may also apply.

Function Documentation

◆ display_score_page()

static void display_score_page ( const struct high_score  scores[],
int  start,
int  count,
int  highlight 

◆ display_scores_aux()

static void display_scores_aux ( const struct high_score  scores[],
int  from,
int  to,
int  highlight,
bool  allow_scrolling 

Display the scores in a given range.

References ARROW_UP, keypress::code, display_score_page(), ESCAPE, format(), inkey(), MAX_HISCORES, prt(), put_str(), Term_clear(), and VERSION_NAME.

Referenced by predict_score(), and show_scores().

◆ predict_score()

void predict_score ( bool  allow_scrolling)

Predict the players location, and display it.

References build_score(), display_scores_aux(), highscore_add(), highscore_read(), highscore_where(), player::is_dead, and N_ELEMENTS.

Referenced by close_game(), and show_scores().

◆ show_scores()

void show_scores ( void  )