X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fmap.h;h=73825c0446845b051fc2eacd3380a8ba07f391f8;hb=5d8fc2d8efb2cf22d27051df09b63c852541db83;hp=ac303a40036fe3660938c015cf9a33fb6fcda5b9;hpb=577b68fc2d491c025bf124c3257f1878b52b1b69;p=plomrogue diff --git a/src/map.h b/src/map.h index ac303a4..73825c0 100644 --- a/src/map.h +++ b/src/map.h @@ -9,8 +9,7 @@ #include "yx_uint16.h" /* for yx_uint16 and dir enums */ -struct Player; - +struct MapObj; struct Map @@ -38,10 +37,10 @@ extern struct Map init_map(); */ extern void map_scroll(struct Map * map, enum dir d, struct yx_uint16 win_size); -/* Scroll map to center on the player by changing the scroll offset following +/* Scroll map to center on the "object" 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, +extern void map_center_object(struct Map * map, struct MapObj * object, struct yx_uint16 win_size);