3 * Contains the World struct holding all quasi-global game data together.
9 #include <stdint.h> /* uint8_t, uint16_t */
10 #include <sys/types.h> /* time_t */
11 #include "../common/map.h" /* struct Map */
12 #include "../common/yx_uint16.h" /* struct yx_uint16 */
13 #include "keybindings.h" /* stuct KeyBindingDB */
14 #include "command_db.h" /* struct CommandDB */
15 #include "windows.h" /* WinDB */
22 struct CommandDB cmd_db; /* Command database. */
23 struct KeyBindingDB kb_global; /* Global keybindings. */
24 struct KeyBindingDB kb_wingeom; /* Window geometry config keybindings. */
25 struct KeyBindingDB kb_winkeys; /* Window keybinding config keybindings.*/
26 struct Map map; /* Pointer to the game map cells. */
28 struct yx_uint16 player_pos;
30 char * path_server_in;
31 char * path_interface_conf;
32 char * player_inventory;
36 uint8_t player_inventory_select;
37 uint8_t player_lifepoints;
38 uint8_t winch; /* if set, SIGWINCH was registered; trigger reset_windows()*/
43 extern struct World world;