home · contact · privacy
Have a number (currently: 3) of monsters, instead of only one. Lots of stuff hard...
[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   uint16_t y;
21   uint16_t x; };
22
23 struct Monster {
24   struct Monster * next;
25   char name;
26   uint16_t y;
27   uint16_t x; };
28
29 uint16_t rrand(char, uint32_t);
30 struct Map init_map ();
31 void save_game(struct World *);
32 void record_action (char);
33 void next_turn (struct World *);
34 void update_log (struct World *, char *);
35 void move_player (struct World *, char);
36 char is_passable (struct Map *, uint16_t, uint16_t);
37 void player_wait(struct World *);
38 void toggle_window (struct WinMeta *, struct Win *);
39 void scroll_pad (struct WinMeta *, char);
40 void growshrink_active_window (struct WinMeta *, char);
41 void map_scroll (struct Map *, char);
42 unsigned char meta_keys(int, struct World *, struct WinMeta *, struct Win *, struct Win *, struct Win *, struct Win *);