home · contact · privacy
Client: interface config reload also re-sets virtual screen offset to 0.
[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 <stddef.h> /* size_t */
11 #include <stdint.h> /* uint32_t */
12
13
14
15 /* Parses command line argument -i into client configuration. */
16 extern void obey_argv(int argc, char * argv[]);
17
18 /* Save / load (init) / unload (free/dissolve) / reload interface configuration
19  * data, world.wins.pad (initialized before opening any windows to the height of
20  * the terminal screen and a width of 1) and window chains.
21  *
22  * Note that reload_interface_conf() also calls map_center() and re-sets
23  * world.winDB.v_screen_offset to zero.
24  */
25 extern void save_interface_conf();
26 extern void load_interface_conf();
27 extern void unload_interface_conf();
28 extern void reload_interface_conf();
29
30 /* Move world.inventory_sel up ("dir"="u") or down (else) as far as possible. */
31 extern void nav_inventory(char dir);
32
33 /* Append to array pointed to by "ptr_old_array" of "old_n" elements of
34  * "region_size" "new region".
35  */
36 extern void array_append(uint32_t old_n, size_t region_size, void * new_region,
37                          void ** ptr_old_array);
38
39
40
41 #endif