#ifndef ROGUELIKE_H
#define ROGUELIKE_H
+#include <stdint.h>
+#include "yx_uint16.h"
+
+struct WinMeta;
+struct Win;
+struct KeyBinding;
+struct KeysWinData;
+
struct World {
char interactive;
struct KeyBinding * keybindings;
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 *);
-
-struct Map init_map ();
-void map_scroll (struct Map *, char);
+extern uint16_t rrand(char, uint32_t);
+extern void update_log (struct World *, char *);
-void turn_over (struct World *, char);
-void save_game(struct World *);
+extern struct Map init_map ();
+extern void map_scroll (struct Map *, char);
-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 *);
+extern void turn_over (struct World *, char);
+extern void save_game(struct World *);
-void toggle_window (struct WinMeta *, struct Win *);
-void scroll_pad (struct WinMeta *, char);
-void growshrink_active_window (struct WinMeta *, char);
+extern void toggle_window (struct WinMeta *, struct Win *);
+extern void scroll_pad (struct WinMeta *, char);
+extern void growshrink_active_window (struct WinMeta *, char);
-unsigned char meta_keys(int, struct World *, struct WinMeta *, struct Win *, struct Win *, struct Win *, struct Win *);
+extern unsigned char meta_keys(int, struct World *, struct WinMeta *, struct Win *, struct Win *, struct Win *, struct Win *);
#endif