X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/static/gitweb.js?a=blobdiff_plain;f=src%2Fmisc.h;h=c823af6223c590fddf9a41efbdbbfdba2dc0659f;hb=657d5dbc6d362d7b20693c63b38d8d99f3d2dbbd;hp=782a6fab0512a23a775515a6b4080f55d3b24669;hpb=550d22ec0c3f530f5d317746f3f7e75251a1de4b;p=plomrogue diff --git a/src/misc.h b/src/misc.h index 782a6fa..c823af6 100644 --- a/src/misc.h +++ b/src/misc.h @@ -37,6 +37,13 @@ extern void check_files_xor(char * p1, char * p2, struct World * w); +/* Save / load / unload (free) interface configuration data. */ +extern void save_interface_conf(struct World * world); +extern void load_interface_conf(struct World * world); +extern void unload_interface_conf(struct World * world); + + + /* Update game log by appending "text", or by appending a "." if "text" is the * same as the last one passed. */ @@ -59,8 +66,9 @@ extern void turn_over(struct World * world, char action); -/* Save current game data to file "savefile". */ +/* Save or load current game data to / from file "savefile". */ extern void save_game(struct World * world); +extern void load_game(struct World * world); @@ -71,4 +79,11 @@ extern struct yx_uint16 find_passable_pos(struct Map * map); +/* Navigate (as far as possible) up (dir=='u') or (else) down in player's + * inventory selection. + */ +extern void nav_inventory(struct World * world, char dir); + + + #endif