diff options
Diffstat (limited to 'map.c')
-rw-r--r-- | map.c | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -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]; +}; |