home · contact · privacy
Moved keybindings manipulation stuff into its own library.
[plomrogue] / roguelike.h
1 struct World {
2   struct KeyBinding * keybindings;
3   struct KeysWinData * keyswindata;
4   int turn;
5   char * log;
6   struct Map * map;
7   struct Monster * monster;
8   struct Player * player; };
9
10 struct Map {
11   int width;
12   int height;
13   int offset_x;
14   int offset_y;
15   char * cells; };
16
17 struct Player {
18   int y;
19   int x; };
20
21 struct Monster {
22   int y;
23   int x; };
24
25 void toggle_window (struct WinMeta *, struct Win *);
26 void growshrink_active_window (struct WinMeta *, char);
27 struct Map init_map ();
28 void map_scroll (struct Map *, char);
29 void next_turn (struct World *);
30 void update_log (struct World *, char *);
31 char is_passable (struct World *, int, int);
32 void move_player (struct World *, char);
33 void player_wait(struct World *);