X-Git-Url: https://plomlompom.com/repos/index.html?a=blobdiff_plain;ds=sidebyside;f=roguelike.h;h=7bbe5c3b64f76169490bfaef0614271e2996ca3b;hb=71b47e848b6d47901693af4312f00b020641923c;hp=da80489859921bee7795925f798573a15e7ced02;hpb=122747fbbdc061942de2fc2bca901a44a6b4ab61;p=plomrogue
diff --git a/roguelike.h b/roguelike.h
index da80489..7bbe5c3 100644
--- a/roguelike.h
+++ b/roguelike.h
@@ -1,33 +1,36 @@
struct World {
struct KeyBinding * keybindings;
struct KeysWinData * keyswindata;
- int turn;
+ uint16_t turn;
char * log;
struct Map * map;
struct Monster * monster;
struct Player * player; };
struct Map {
- int width;
- int height;
- int offset_x;
- int offset_y;
+ uint16_t width;
+ uint16_t height;
+ uint16_t offset_x;
+ uint16_t offset_y;
char * cells; };
struct Player {
- int y;
- int x; };
+ uint16_t y;
+ uint16_t x; };
struct Monster {
- int y;
- int x; };
+ uint16_t y;
+ uint16_t x; };
+uint16_t rrand(char, uint32_t);
+uint32_t load_seed();
+void save_seed(uint32_t);
void toggle_window (struct WinMeta *, struct Win *);
void growshrink_active_window (struct WinMeta *, char);
-struct Map init_map ();
+struct Map init_map (uint32_t);
void map_scroll (struct Map *, char);
void next_turn (struct World *);
void update_log (struct World *, char *);
-char is_passable (struct World *, int, int);
+char is_passable (struct World *, uint16_t, uint16_t);
void move_player (struct World *, char);
void player_wait(struct World *);