NetHack Proxy Reference Manual |
---|
CallbacksCallbacks — Calling procedures in the game server |
#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);
int nhproxy_cb_dlbh_fopen (const char *name, const char *mode);
name : | |
mode : | |
Returns : |
char* nhproxy_cb_dlbh_fgets (char *buf, int len, int fh);
buf : | |
len : | |
fh : | |
Returns : |
int nhproxy_cb_dlbh_fread (char *buf, int size, int no, int fh);
buf : | |
size : | |
no : | |
fh : | |
Returns : |
int nhproxy_cb_dlbh_fwrite (char *buf, int size, int no, int fh);
buf : | |
size : | |
no : | |
fh : | |
Returns : |
struct nhproxy_cb_get_player_choices_res* nhproxy_cb_get_player_choices (void);
Returns : |
void nhproxy_cb_free_player_choices (struct nhproxy_cb_get_player_choices_res *choices);
choices : |
struct nhproxy_cb_get_valid_selections_res* nhproxy_cb_get_valid_selections (void);
Returns : |
void nhproxy_cb_free_valid_selections (struct nhproxy_cb_get_valid_selections_res *vs);
vs : |
int nhproxy_cb_valid_selection_check (int role, int race, int gend, int align);
role : | |
race : | |
gend : | |
align : | |
Returns : |
struct nhproxy_cb_get_extended_commands_res* nhproxy_cb_get_extended_commands (void);
Returns : |
void nhproxy_cb_free_extended_commands (struct nhproxy_cb_get_extended_commands_res *commands);
commands : |
int nhproxy_cb_get_standard_winid (char *window);
window : | |
Returns : |
struct nhproxy_cb_get_tilesets_res* nhproxy_cb_get_tilesets (void);
Returns : |
void nhproxy_cb_free_tilesets (struct nhproxy_cb_get_tilesets_res *tilesets);
tilesets : |
struct nhproxy_cb_get_glyph_mapping_res* nhproxy_cb_get_glyph_mapping (void);
Returns : |
void nhproxy_cb_free_glyph_mapping (struct nhproxy_cb_get_glyph_mapping_res *mapping);
mapping : |
struct nhproxy_cb_get_extensions_res* nhproxy_cb_get_extensions (void);
Returns : |
void nhproxy_cb_free_extensions (struct nhproxy_cb_get_extensions_res *extensions);
extensions : |
<< External Interface Support | Client services >> |