home · contact · privacy
MAJOR re-write. Split plomrogue into a server and a client. Re-wrote large parts
[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 / unload (free) / reload interface configuration data. */
15 extern void save_interface_conf();
16 extern void load_interface_conf();
17 extern void unload_interface_conf();
18 extern void reload_interface_conf();
19
20 /* Return offset into center map of "mapsize" on "position" in "framesize". */
21 extern uint16_t center_offset(uint16_t position,
22                               uint16_t mapsize, uint16_t framesize);
23
24 /* Move world.inventory_sel up ("dir"="u") or down (else) as far as possible. */
25 extern void nav_inventory(char dir);
26
27
28
29 #endif