home · contact · privacy
Added command to focus map on player.
[plomrogue] / src / roguelike.h
index 45e63b9ae0d97573a43592fa38d6e9499eb338fe..8bf538017bb39f27155c955a99baff8f438785a8 100644 (file)
@@ -17,6 +17,7 @@ struct World {
   uint32_t turn;
   char * log;
   struct Map * map;
+  struct Item * item;
   struct Monster * monster;
   struct Player * player; };
 
@@ -25,19 +26,20 @@ struct Map {
   struct yx_uint16 offset;
   char * cells; };
 
-uint16_t rrand(char, uint32_t);
-void update_log (struct World *, char *);
+extern uint16_t rrand(char, uint32_t);
+extern void update_log (struct World *, char *);
 
-struct Map init_map ();
-void map_scroll (struct Map *, char);
+extern struct Map init_map ();
+extern void map_scroll (struct Map *, char, struct yx_uint16);
+extern void map_center_player (struct Map *, struct Player *, struct yx_uint16);
 
-void turn_over (struct World *, char);
-void save_game(struct World *);
+extern void turn_over (struct World *, char);
+extern 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);
+extern void toggle_window (struct WinMeta *, struct Win *);
+extern void scroll_pad (struct WinMeta *, char);
+extern void growshrink_active_window (struct WinMeta *, char);
 
-unsigned char meta_keys(int, struct World *, struct WinMeta *, struct Win *, struct Win *, struct Win *, struct Win *);
+extern unsigned char meta_keys(int, struct World *, struct WinMeta *, struct Win *, struct Win *, struct Win *, struct Win *);
 
 #endif