This is the doxygen documentation for gtkboard.

.
Main Page   Data Structures   File List   Data Fields   Globals  

prefs.h File Reference

#include <glib.h>
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#include "game.h"

Go to the source code of this file.

Data Structures

struct  Score

Defines

#define MAX_HIGHSCORES   10

Functions

gboolean prefs_load_scores (gchar *)
gboolean prefs_save_scores (gchar *)
void prefs_show_scores ()
void prefs_zap_highscores ()
void prefs_add_highscore (gchar *, int)
int prefs_scorecmp_dscore (gchar *, int, gchar *, int)
int prefs_scorecmp_iscore (gchar *, int, gchar *, int)
int prefs_scorecmp_time (gchar *, int, gchar *, int)

Variables

SCORE_FIELD prefs_score_fields_def []
gchar* prefs_score_field_names_def []
int (* game_scorecmp )(gchar *, int, gchar *, int)


Define Documentation

#define MAX_HIGHSCORES   10
 

Definition at line 27 of file prefs.h.


Function Documentation

void prefs_add_highscore ( gchar * score,
int temps )
 

Definition at line 376 of file prefs.c.

Referenced by ui_check_who_won().

gboolean prefs_load_scores ( gchar * name )
 

Definition at line 85 of file prefs.c.

Referenced by ui_start_game().

gboolean prefs_save_scores ( gchar * name )
 

Definition at line 249 of file prefs.c.

Referenced by ui_terminate_game().

int prefs_scorecmp_dscore ( gchar * score1,
int temps1,
gchar * score2,
int temps2 )
 

Definition at line 285 of file prefs.c.

int prefs_scorecmp_iscore ( gchar * score1,
int temps1,
gchar * score2,
int temps2 )
 

Definition at line 296 of file prefs.c.

int prefs_scorecmp_time ( gchar * score1,
int temps1,
gchar * score2,
int temps2 )
 

Definition at line 307 of file prefs.c.

void prefs_show_scores ( )
 

Definition at line 242 of file prefs.c.

void prefs_zap_highscores ( )
 

Definition at line 397 of file prefs.c.


Variable Documentation

int (* game_scorecmp)(gchar *, int, gchar*, int)
 

Definition at line 49 of file prefs.h.

gchar* prefs_score_field_names_def[]
 

Definition at line 39 of file prefs.h.

SCORE_FIELD prefs_score_fields_def[]
 

Definition at line 38 of file prefs.h.