X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;f=src%2Froguelike.h;h=45e63b9ae0d97573a43592fa38d6e9499eb338fe;hb=d7c46fb1de25edd8782fbc7642be71e5e54deab2;hp=5dd17f797572af839d76dd3c7bfafab991b856af;hpb=c7ff0e4b00f98a0cf65465c552af5ebfcfeaab57;p=plomrogue diff --git a/src/roguelike.h b/src/roguelike.h index 5dd17f7..45e63b9 100644 --- a/src/roguelike.h +++ b/src/roguelike.h @@ -1,6 +1,14 @@ #ifndef ROGUELIKE_H #define ROGUELIKE_H +#include +#include "yx_uint16.h" + +struct WinMeta; +struct Win; +struct KeyBinding; +struct KeysWinData; + struct World { char interactive; struct KeyBinding * keybindings; @@ -17,28 +25,19 @@ struct Map { struct yx_uint16 offset; char * cells; }; -struct Player { - struct yx_uint16 pos; }; - -struct Monster { - struct Monster * next; - char name; - struct yx_uint16 pos; }; - uint16_t rrand(char, uint32_t); +void update_log (struct World *, char *); + struct Map init_map (); +void map_scroll (struct Map *, char); + +void turn_over (struct World *, char); void save_game(struct World *); -void record_action (char); -struct yx_uint16 mv_yx_in_dir (char, struct yx_uint16); -void next_turn (struct World *); -void update_log (struct World *, char *); -void move_player (struct World *, char); -char is_passable (struct Map *, uint16_t, uint16_t); -void player_wait(struct World *); + void toggle_window (struct WinMeta *, struct Win *); void scroll_pad (struct WinMeta *, char); void growshrink_active_window (struct WinMeta *, char); -void map_scroll (struct Map *, char); + unsigned char meta_keys(int, struct World *, struct WinMeta *, struct Win *, struct Win *, struct Win *, struct Win *); #endif