home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
License everything (GPL).
[plomrogue]
/
src
/
client
/
map.h
diff --git
a/src/client/map.h
b/src/client/map.h
index d104c28a897bbebaa7ece711af1688f64c10ec7a..0031da2278f81f2996a79ca0e7c8f31ab36478a7 100644
(file)
--- a/
src/client/map.h
+++ b/
src/client/map.h
@@
-1,28
+1,26
@@
/* src/client/map.h
/* src/client/map.h
+ *
+ * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
+ * or any later version. For details on its copyright, license, and warranties,
+ * see the file NOTICE in the root directory of the PlomRogue source package.
*
* Routines for the game map window.
*/
*
* Routines for the game map window.
*/
-#ifndef MAP_H
-#define MAP_H
-
-#include "../common/yx_uint16.h" /* yx_uint16 struct */
-
+#ifndef MAP_H_CLIENT
+#define MAP_H_CLIENT
-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();
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
#endif