summaryrefslogtreecommitdiff
path: root/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'map.c')
-rw-r--r--map.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/map.c b/map.c
new file mode 100644
index 0000000..652a934
--- /dev/null
+++ b/map.c
@@ -0,0 +1,30 @@
+#include <u.h>
+#include <libc.h>
+#include "dat.h"
+#include "fns.h"
+
+typedef struct Entity Entity;
+typedef struct Object Object;
+typedef struct Room Room;
+
+struct Entity
+{
+ int id;
+ char *desc;
+};
+
+struct Object
+{
+ Entity;
+ int type;
+ double weight;
+ //Property props;
+};
+
+struct Room
+{
+ Entity;
+ Object *objects;
+ int nobject;
+ Room *neighbors[8];
+};