home · contact · privacy
Refactored finding of random passable position into its own function.
[plomrogue] / src / actors.h
index e82d1da1b29d16cc59072a128ea77c8005998636..d88c66fa59000645b24ad2bf3b836874cf6749d0 100644 (file)
@@ -1,6 +1,11 @@
 #ifndef ACTORS_H
 #define ACTORS_H
 
+#include "yx_uint16.h"
+
+struct World;
+struct Map;
+
 struct Player {
   struct yx_uint16 pos; };
 
@@ -9,7 +14,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 *);