Callbacks

Callbacks — Calling procedures in the game server

Synopsis


#include <nhproxy/nhproxy.h>


void        nhproxy_cb_display_inventory    (void);
int         nhproxy_cb_dlbh_fopen           (const char *name,
                                             const char *mode);
char*       nhproxy_cb_dlbh_fgets           (char *buf,
                                             int len,
                                             int fh);
int         nhproxy_cb_dlbh_fread           (char *buf,
                                             int size,
                                             int no,
                                             int fh);
int         nhproxy_cb_dlbh_fwrite          (char *buf,
                                             int size,
                                             int no,
                                             int fh);
int         nhproxy_cb_dlbh_fclose          (int fh);
char*       nhproxy_cb_dlbh_fmd5sum         (const char *name);
void        nhproxy_cb_flush_screen         (void);
void        nhproxy_cb_doredraw             (void);
void        nhproxy_cb_interface_mode       (unsigned long mode);
int         nhproxy_cb_parse_options        (char *opts);
char*       nhproxy_cb_get_option           (char*);
struct nhproxy_cb_get_player_choices_res* nhproxy_cb_get_player_choices
                                            (void);
void        nhproxy_cb_free_player_choices  (struct nhproxy_cb_get_player_choices_res *choices);
struct nhproxy_cb_get_valid_selections_res* nhproxy_cb_get_valid_selections
                                            (void);
void        nhproxy_cb_free_valid_selections
                                            (struct nhproxy_cb_get_valid_selections_res *vs);
void        nhproxy_cb_valid_selection_open (void);
int         nhproxy_cb_valid_selection_check
                                            (int role,
                                             int race,
                                             int gend,
                                             int align);
void        nhproxy_cb_valid_selection_close
                                            (void);
void        nhproxy_cb_quit_game            (void);
void        nhproxy_cb_display_score        (void);
void        nhproxy_cb_doset                (void);
struct nhproxy_cb_get_extended_commands_res* nhproxy_cb_get_extended_commands
                                            (void);
void        nhproxy_cb_free_extended_commands
                                            (struct nhproxy_cb_get_extended_commands_res *commands);
int         nhproxy_cb_map_menu_cmd         (int ch);
int         nhproxy_cb_get_standard_winid   (char *window);
struct nhproxy_cb_get_tilesets_res* nhproxy_cb_get_tilesets
                                            (void);
void        nhproxy_cb_free_tilesets        (struct nhproxy_cb_get_tilesets_res *tilesets);
struct nhproxy_cb_get_glyph_mapping_res* nhproxy_cb_get_glyph_mapping
                                            (void);
void        nhproxy_cb_free_glyph_mapping   (struct nhproxy_cb_get_glyph_mapping_res *mapping);
struct nhproxy_cb_get_extensions_res* nhproxy_cb_get_extensions
                                            (void);
void        nhproxy_cb_free_extensions      (struct nhproxy_cb_get_extensions_res *extensions);

Description

Details

nhproxy_cb_display_inventory ()

void        nhproxy_cb_display_inventory    (void);


nhproxy_cb_dlbh_fopen ()

int         nhproxy_cb_dlbh_fopen           (const char *name,
                                             const char *mode);

name :
mode :
Returns :

nhproxy_cb_dlbh_fgets ()

char*       nhproxy_cb_dlbh_fgets           (char *buf,
                                             int len,
                                             int fh);

buf :
len :
fh :
Returns :

nhproxy_cb_dlbh_fread ()

int         nhproxy_cb_dlbh_fread           (char *buf,
                                             int size,
                                             int no,
                                             int fh);

buf :
size :
no :
fh :
Returns :

nhproxy_cb_dlbh_fwrite ()

int         nhproxy_cb_dlbh_fwrite          (char *buf,
                                             int size,
                                             int no,
                                             int fh);

buf :
size :
no :
fh :
Returns :

nhproxy_cb_dlbh_fclose ()

int         nhproxy_cb_dlbh_fclose          (int fh);

fh :
Returns :

nhproxy_cb_dlbh_fmd5sum ()

char*       nhproxy_cb_dlbh_fmd5sum         (const char *name);

name :
Returns :

nhproxy_cb_flush_screen ()

void        nhproxy_cb_flush_screen         (void);


nhproxy_cb_doredraw ()

void        nhproxy_cb_doredraw             (void);


nhproxy_cb_interface_mode ()

void        nhproxy_cb_interface_mode       (unsigned long mode);

Param1 :

nhproxy_cb_parse_options ()

int         nhproxy_cb_parse_options        (char *opts);

opts :
Returns :

nhproxy_cb_get_option ()

char*       nhproxy_cb_get_option           (char*);

Param1 :
Returns :

nhproxy_cb_get_player_choices ()

struct nhproxy_cb_get_player_choices_res* nhproxy_cb_get_player_choices
                                            (void);

Returns :

nhproxy_cb_free_player_choices ()

void        nhproxy_cb_free_player_choices  (struct nhproxy_cb_get_player_choices_res *choices);

choices :

nhproxy_cb_get_valid_selections ()

struct nhproxy_cb_get_valid_selections_res* nhproxy_cb_get_valid_selections
                                            (void);

Returns :

nhproxy_cb_free_valid_selections ()

void        nhproxy_cb_free_valid_selections
                                            (struct nhproxy_cb_get_valid_selections_res *vs);

vs :

nhproxy_cb_valid_selection_open ()

void        nhproxy_cb_valid_selection_open (void);


nhproxy_cb_valid_selection_check ()

int         nhproxy_cb_valid_selection_check
                                            (int role,
                                             int race,
                                             int gend,
                                             int align);

role :
race :
gend :
align :
Returns :

nhproxy_cb_valid_selection_close ()

void        nhproxy_cb_valid_selection_close
                                            (void);


nhproxy_cb_quit_game ()

void        nhproxy_cb_quit_game            (void);


nhproxy_cb_display_score ()

void        nhproxy_cb_display_score        (void);


nhproxy_cb_doset ()

void        nhproxy_cb_doset                (void);


nhproxy_cb_get_extended_commands ()

struct nhproxy_cb_get_extended_commands_res* nhproxy_cb_get_extended_commands
                                            (void);

Returns :

nhproxy_cb_free_extended_commands ()

void        nhproxy_cb_free_extended_commands
                                            (struct nhproxy_cb_get_extended_commands_res *commands);

commands :

nhproxy_cb_map_menu_cmd ()

int         nhproxy_cb_map_menu_cmd         (int ch);

ch :
Returns :

nhproxy_cb_get_standard_winid ()

int         nhproxy_cb_get_standard_winid   (char *window);

window :
Returns :

nhproxy_cb_get_tilesets ()

struct nhproxy_cb_get_tilesets_res* nhproxy_cb_get_tilesets
                                            (void);

Returns :

nhproxy_cb_free_tilesets ()

void        nhproxy_cb_free_tilesets        (struct nhproxy_cb_get_tilesets_res *tilesets);

tilesets :

nhproxy_cb_get_glyph_mapping ()

struct nhproxy_cb_get_glyph_mapping_res* nhproxy_cb_get_glyph_mapping
                                            (void);

Returns :

nhproxy_cb_free_glyph_mapping ()

void        nhproxy_cb_free_glyph_mapping   (struct nhproxy_cb_get_glyph_mapping_res *mapping);

mapping :

nhproxy_cb_get_extensions ()

struct nhproxy_cb_get_extensions_res* nhproxy_cb_get_extensions
                                            (void);

Returns :

nhproxy_cb_free_extensions ()

void        nhproxy_cb_free_extensions      (struct nhproxy_cb_get_extensions_res *extensions);

extensions :