home · contact · privacy
Moved basic yx_uint16 handling into its own library.
[plomrogue] / src / roguelike.h
1 struct World {
2   char interactive;
3   struct KeyBinding * keybindings;
4   struct KeysWinData * keyswindata;
5   uint32_t seed;
6   uint32_t turn;
7   char * log;
8   struct Map * map;
9   struct Monster * monster;
10   struct Player * player; };
11
12 struct Map {
13   uint16_t width;
14   uint16_t height;
15   uint16_t offset_x;
16   uint16_t offset_y;
17   char * cells; };
18
19 struct Player {
20   struct yx_uint16 pos; };
21
22 struct Monster {
23   struct Monster * next;
24   char name;
25   struct yx_uint16 pos; };
26
27 uint16_t rrand(char, uint32_t);
28 struct Map init_map ();
29 void save_game(struct World *);
30 void record_action (char);
31 struct yx_uint16 mv_yx_in_dir (char, struct yx_uint16);
32 void next_turn (struct World *);
33 void update_log (struct World *, char *);
34 void move_player (struct World *, char);
35 char is_passable (struct Map *, uint16_t, uint16_t);
36 void player_wait(struct World *);
37 void toggle_window (struct WinMeta *, struct Win *);
38 void scroll_pad (struct WinMeta *, char);
39 void growshrink_active_window (struct WinMeta *, char);
40 void map_scroll (struct Map *, char);
41 unsigned char meta_keys(int, struct World *, struct WinMeta *, struct Win *, struct Win *, struct Win *, struct Win *);