X-Git-Url: https://plomlompom.com/repos/test.html?a=blobdiff_plain;f=src%2Froguelike.h;h=7c54dc43dc7f38f2189a85688cd0a02d303e7c79;hb=4f8360fb6aad70ba208ca60f0d9c94590b222530;hp=2ae0c88cec69cd65776a91e2d8a6defdc3eeab05;hpb=6d5705b43adbc2a4b522f971206007c9073c7144;p=plomrogue
diff --git a/src/roguelike.h b/src/roguelike.h
index 2ae0c88..7c54dc4 100644
--- a/src/roguelike.h
+++ b/src/roguelike.h
@@ -1,3 +1,9 @@
+#ifndef ROGUELIKE_H
+#define ROGUELIKE_H
+
+#include "yx_uint16.h"
+#include "windows.h"
+
struct World {
char interactive;
struct KeyBinding * keybindings;
@@ -10,33 +16,23 @@ 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 {
- uint16_t y;
- uint16_t x; };
-
-struct Monster {
- struct Monster * next;
- char name;
- uint16_t y;
- uint16_t x; };
-
uint16_t rrand(char, uint32_t);
+void update_log (struct World *, char *);
+
struct Map init_map ();
+void map_scroll (struct Map *, char);
+
+void turn_over (struct World *, char);
void save_game(struct World *);
-void record_action (char);
-void next_turn (struct World *);
-void update_log (struct World *, char *);
-void move_player (struct World *, char);
-char is_passable (struct Map *, uint16_t, uint16_t);
-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);
-void map_scroll (struct Map *, char);
+
unsigned char meta_keys(int, struct World *, struct WinMeta *, struct Win *, struct Win *, struct Win *, struct Win *);
+
+#endif