home · contact · privacy
Client: Scrolling toggles player auto-focus off.
[plomrogue] / src / client / map.h
index d104c28a897bbebaa7ece711af1688f64c10ec7a..75978c6432d3c05f678bc0f048b3c8973ea1b51a 100644 (file)
@@ -3,26 +3,20 @@
  * Routines for the game map window.
  */
 
-#ifndef MAP_H
-#define MAP_H
+#ifndef MAP_H_CLIENT
+#define MAP_H_CLIENT
 
-#include "../common/yx_uint16.h" /* yx_uint16 struct */
 
 
-struct Map
-{
-    struct yx_uint16 size;   /* map's height/width in number of cells */
-    char * cells;            /* sequence of bytes encoding map cells */
-};
-
-
-
-/* Try changing map window's focus into direction "d" (north = "N" etc.). */
+/* Try changing map window's focus into direction "d" (north = "N" etc.). Unset
+ * world.focus_each_turn.
+ */
 extern void map_scroll(char d);
 
 /* Center map window on player (even if it is non-visible). */
 extern void map_center();
 
-
+/* Toggle world.focus_each_turn (auto-centering of map on player each turn). */
+extern void toggle_autofocus();
 
 #endif