X-Git-Url: https://plomlompom.com/repos/test.html?a=blobdiff_plain;f=roguelike.h;h=3fdbbaf4c43ea31966dd2a22c349659e00fc212c;hb=acac955931dc1e68d590dbd0fe51a237da785cac;hp=650ddc106094df8e31936bb4e91ca7c1aeac7f87;hpb=67396848cb5e3e55385a466d7a24a4f68d0a6c9c;p=plomrogue
diff --git a/roguelike.h b/roguelike.h
index 650ddc1..3fdbbaf 100644
--- a/roguelike.h
+++ b/roguelike.h
@@ -1,7 +1,9 @@
struct World {
+ char interactive;
struct KeyBinding * keybindings;
struct KeysWinData * keyswindata;
- uint16_t turn;
+ uint32_t seed;
+ uint32_t turn;
char * log;
struct Map * map;
struct Monster * monster;
@@ -22,13 +24,21 @@ struct Monster {
uint16_t y;
uint16_t x; };
-uint16_t rrand();
+uint16_t rrand(char, uint32_t);
+uint16_t read_uint16_bigendian(FILE * file);
+void write_uint16_bigendian(uint16_t x, FILE * file);
+uint32_t read_uint32_bigendian(FILE * file);
+void write_uint32_bigendian(uint32_t x, FILE * file);
+void save_game(struct World *);
void toggle_window (struct WinMeta *, struct Win *);
+void scroll_pad (struct WinMeta *, char);
void growshrink_active_window (struct WinMeta *, char);
struct Map init_map ();
void map_scroll (struct Map *, char);
void next_turn (struct World *);
void update_log (struct World *, char *);
-char is_passable (struct World *, uint16_t, uint16_t);
+char is_passable (struct Map *, uint16_t, uint16_t);
+void record_action (char);
void move_player (struct World *, char);
void player_wait(struct World *);
+unsigned char meta_keys(int, struct World *, struct WinMeta *, struct Win *, struct Win *, struct Win *, struct Win *);