home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The player is now a map object like any other. All actor contacts now lead to violenc...
[plomrogue]
/
src
/
map.h
diff --git
a/src/map.h
b/src/map.h
index ac303a40036fe3660938c015cf9a33fb6fcda5b9..73825c0446845b051fc2eacd3380a8ba07f391f8 100644
(file)
--- a/
src/map.h
+++ b/
src/map.h
@@
-9,8
+9,7
@@
#include "yx_uint16.h" /* for yx_uint16 and dir enums */
#include "yx_uint16.h" /* for yx_uint16 and dir enums */
-struct Player;
-
+struct MapObj;
struct Map
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);
*/
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".
*/
* (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);
struct yx_uint16 win_size);