home · contact · privacy
Corrected vertical scroll hint counting.
[plomrogue] / roguelike.h
index 7bbe5c3b64f76169490bfaef0614271e2996ca3b..fcca90dbe404de59c7496dd1ca6c5ee36d95f4f2 100644 (file)
@@ -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;
@@ -23,14 +25,19 @@ struct Monster {
   uint16_t x; };
 
 uint16_t rrand(char, uint32_t);
-uint32_t load_seed();
-void save_seed(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 growshrink_active_window (struct WinMeta *, char);
-struct Map init_map (uint32_t);
+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 *);