X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Froguelike.h;h=bb6088c2767907a7b8a10fcc8270f797ef918dca;hb=a1384bd171b558158855ec7c6683eba8fd8e609f;hp=99e115de8668b043fe640b4a76044788ce830f2a;hpb=b1f018b25a1cd4a48b197208ae48675f0065eb64;p=plomrogue
diff --git a/src/roguelike.h b/src/roguelike.h
index 99e115d..bb6088c 100644
--- a/src/roguelike.h
+++ b/src/roguelike.h
@@ -17,17 +17,19 @@ struct Map {
char * cells; };
struct Player {
- uint16_t y;
- uint16_t x; };
+ struct yx_uint16 pos; };
struct Monster {
- uint16_t y;
- uint16_t x; };
+ struct Monster * next;
+ char name;
+ struct yx_uint16 pos; };
uint16_t rrand(char, uint32_t);
struct Map init_map ();
void save_game(struct World *);
void record_action (char);
+struct yx_uint16 mv_yx_in_dir (char, struct yx_uint16);
+char yx_uint16_cmp (struct yx_uint16, struct yx_uint16);
void next_turn (struct World *);
void update_log (struct World *, char *);
void move_player (struct World *, char);