X-Git-Url: https://plomlompom.com/repos//%22https:/validator.w3.org/check?a=blobdiff_plain;f=src%2Froguelike.h;h=209f717e76911efaac15afb9611bea18f0eeed9a;hb=730fe60725a42dc89918e7b9c233dd24193de8ac;hp=4298551d2a409668ea2cd28a35832a5bf859f81e;hpb=0434fa6bdfd2a7195bf64d5fe50f5b8cfd0c38fc;p=plomrogue diff --git a/src/roguelike.h b/src/roguelike.h index 4298551..209f717 100644 --- a/src/roguelike.h +++ b/src/roguelike.h @@ -2,12 +2,12 @@ #define ROGUELIKE_H #include -#include "yx_uint16.h" struct WinMeta; struct Win; struct KeyBinding; struct KeysWinData; +struct Map; struct World { char interactive; @@ -21,18 +21,10 @@ struct World { struct Monster * monster; struct Player * player; }; -struct Map { - struct yx_uint16 size; - struct yx_uint16 offset; - char * cells; }; - extern uint16_t rrand(char, uint32_t); extern void update_log (struct World *, char *); -extern struct Map init_map (); -extern void map_scroll (struct Map *, char, struct yx_uint16); uint16_t center_offset (uint16_t, uint16_t, uint16_t); -extern void map_center_player (struct Map *, struct Player *, struct yx_uint16); extern void turn_over (struct World *, char); extern void save_game(struct World *);