home · contact · privacy
Client: reload_interface_conf() calls map_center() to re-focus map on player.
[plomrogue] / src / client / misc.h
1 /* src/client/misc.h
2  *
3  * Miscellaneous routines that have not yet found a proper parent module. Having
4  * LOTS of stuff in here is a sure sign that better modularization is in order.
5  */
6
7 #ifndef MISC_H
8 #define MISC_H
9
10 #include <stdint.h> /* for uint16_t */
11
12
13
14 /* Save / load (init) / unload (free/dissolve) / reload interface configuration
15  * data, world.wmeta.pad (initialized before opening any windows to the height
16  * of the terminal screen and a width of 1) and window chains.
17  *
18  * Note that reload_interface_conf() also calls map_center().
19  */
20 extern void save_interface_conf();
21 extern void load_interface_conf();
22 extern void unload_interface_conf();
23 extern void reload_interface_conf();
24
25 /* Return offset into center map of "mapsize" on "position" in "framesize". */
26 extern uint16_t center_offset(uint16_t position,
27                               uint16_t mapsize, uint16_t framesize);
28
29 /* Move world.inventory_sel up ("dir"="u") or down (else) as far as possible. */
30 extern void nav_inventory(char dir);
31
32
33
34 #endif