X-Git-Url: https://plomlompom.com/repos/test.html?a=blobdiff_plain;f=roguelike.h;h=26ca0a443d4b3da16943fe5283d91f051f6d347c;hb=18a698f3107109f8cd6ba0d89e41386ac394cf02;hp=668d52ca8f1cecf6f1eea2c337a17cde0d63d253;hpb=cff3e45e2913b44b88bb75ed10a4931a224a943e;p=plomrogue
diff --git a/roguelike.h b/roguelike.h
index 668d52c..26ca0a4 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,6 +24,13 @@ struct Monster {
uint16_t y;
uint16_t x; };
+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 load_game(struct World *);
+void save_game(struct World *);
void toggle_window (struct WinMeta *, struct Win *);
void growshrink_active_window (struct WinMeta *, char);
struct Map init_map ();
@@ -29,5 +38,8 @@ 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);
+void record_action (char);
void move_player (struct World *, char);
void player_wait(struct World *);
+void startpos(struct World *);
+unsigned char meta_keys(int, struct World *, struct WinMeta *, struct Win *, struct Win *, struct Win *, struct Win *);