home · contact · privacy
Monsters now clash with and hit each other; more elaborate algorithms moved into...
[plomrogue] / src / roguelike.h
index 9ecd71a890f9f90a3153a0a45862dee88002eddd..f6b266d3e72ca5a1bb7953d51d515fd57bd70822 100644 (file)
@@ -13,10 +13,8 @@ struct World {
   struct Player * player; };
 
 struct Map {
-  uint16_t width;
-  uint16_t height;
-  uint16_t offset_x;
-  uint16_t offset_y;
+  struct yx_uint16 size;
+  struct yx_uint16 offset;
   char * cells; };
 
 struct Player {
@@ -34,6 +32,7 @@ void record_action (char);
 struct yx_uint16 mv_yx_in_dir (char, struct yx_uint16);
 void next_turn (struct World *);
 void update_log (struct World *, char *);
+void move_monster (struct World *, struct Monster *);
 void move_player (struct World *, char);
 char is_passable (struct Map *, uint16_t, uint16_t);
 void player_wait(struct World *);