home · contact · privacy
Make is_passable() use yx_uint16 for coordinates instead of two ints.
[plomrogue] / src / actors.h
index e82d1da1b29d16cc59072a128ea77c8005998636..51d6612ae1c49b65cbd0a35d94fc9f2432eff1b8 100644 (file)
@@ -1,6 +1,12 @@
 #ifndef ACTORS_H
 #define ACTORS_H
 
+#include <stdint.h>
+#include "yx_uint16.h"
+
+struct World;
+struct Map;
+
 struct Player {
   struct yx_uint16 pos; };
 
@@ -9,7 +15,7 @@ struct Monster {
   char name;
   struct yx_uint16 pos; };
 
-extern char is_passable (struct Map *, uint16_t, uint16_t);
+extern char is_passable (struct Map *, struct yx_uint16);
 extern void move_monster (struct World *, struct Monster *);
 extern void move_player (struct World *, char);
 extern void player_wait(struct World *);