summaryrefslogtreecommitdiff
path: root/map.c
blob: 652a9342933142db73efb8ea7a8c6636c47448f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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];
};