-/* Scroll map to center on the player by changing the scroll offset following
- * (and constrained by) the window size as described by "win_size".
- */
-extern void map_center_player(struct Map * map, struct Player * player,
- struct yx_uint16 win_size);
+
+/* Try to change the view center of map "win" of "map_size" into dir "d". */
+void map_scroll(struct Win * win, struct yx_uint16 map_size, enum dir d);