home · contact · privacy
Moved lots of stuff into new library actors.
[plomrogue] / src / roguelike.h
index 6ddc8260bce8bc7a97304f1727d5ae3d8665bb07..7c54dc43dc7f38f2189a85688cd0a02d303e7c79 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef ROGUELIKE_H
 #define ROGUELIKE_H
 
+#include "yx_uint16.h"
+#include "windows.h"
+
 struct World {
   char interactive;
   struct KeyBinding * keybindings;
@@ -17,14 +20,6 @@ struct Map {
   struct yx_uint16 offset;
   char * cells; };
 
-struct Player {
-  struct yx_uint16 pos; };
-
-struct Monster {
-  struct Monster * next;
-  char name;
-  struct yx_uint16 pos; };
-
 uint16_t rrand(char, uint32_t);
 void update_log (struct World *, char *);
 
@@ -34,11 +29,6 @@ void map_scroll (struct Map *, char);
 void turn_over (struct World *, char);
 void save_game(struct World *);
 
-char is_passable (struct Map *, uint16_t, uint16_t);
-void move_monster (struct World *, struct Monster *);
-void move_player (struct World *, char);
-void player_wait(struct World *);
-
 void toggle_window (struct WinMeta *, struct Win *);
 void scroll_pad (struct WinMeta *, char);
 void growshrink_active_window (struct WinMeta *, char);