X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;f=src%2Froguelike.h;h=7c54dc43dc7f38f2189a85688cd0a02d303e7c79;hb=4f8360fb6aad70ba208ca60f0d9c94590b222530;hp=357a4c8e85da54a281c4109cc572c7a425610014;hpb=185061fb1588422463ea6a03c3ed3c175ab24151;p=plomrogue diff --git a/src/roguelike.h b/src/roguelike.h index 357a4c8..7c54dc4 100644 --- a/src/roguelike.h +++ b/src/roguelike.h @@ -1,6 +1,9 @@ #ifndef ROGUELIKE_H #define ROGUELIKE_H +#include "yx_uint16.h" +#include "windows.h" + struct World { char interactive; struct KeyBinding * keybindings; @@ -17,14 +20,6 @@ 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 *); @@ -34,12 +29,6 @@ void map_scroll (struct Map *, char); void turn_over (struct World *, char); void save_game(struct World *); -char is_passable (struct Map *, uint16_t, uint16_t); -struct yx_uint16 mv_yx_in_dir (char, struct yx_uint16); -void move_monster (struct World *, struct Monster *); -void move_player (struct World *, char); -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);