home · contact · privacy
Sorted out library dependencies / includes. Include every header file needed by each...
[plomrogue] / src / roguelike.h
1 #ifndef ROGUELIKE_H
2 #define ROGUELIKE_H
3
4 #include <stdint.h>
5 #include "yx_uint16.h"
6
7 struct WinMeta;
8 struct Win;
9 struct KeyBinding;
10 struct KeysWinData;
11
12 struct World {
13   char interactive;
14   struct KeyBinding * keybindings;
15   struct KeysWinData * keyswindata;
16   uint32_t seed;
17   uint32_t turn;
18   char * log;
19   struct Map * map;
20   struct Monster * monster;
21   struct Player * player; };
22
23 struct Map {
24   struct yx_uint16 size;
25   struct yx_uint16 offset;
26   char * cells; };
27
28 uint16_t rrand(char, uint32_t);
29 void update_log (struct World *, char *);
30
31 struct Map init_map ();
32 void map_scroll (struct Map *, char);
33
34 void turn_over (struct World *, char);
35 void save_game(struct World *);
36
37 void toggle_window (struct WinMeta *, struct Win *);
38 void scroll_pad (struct WinMeta *, char);
39 void growshrink_active_window (struct WinMeta *, char);
40
41 unsigned char meta_keys(int, struct World *, struct WinMeta *, struct Win *, struct Win *, struct Win *, struct Win *);
42
43 #endif