X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/static/git-logo.png?a=blobdiff_plain;f=src%2Fobjects_on_map.h;h=e9c7c65c6a11a7327b76d349a81ec1d021637d72;hb=8adb91a7c7de0716ce55784322e239415bf06e06;hp=4966161d90ec6b7cc239ff93973af56d2e6ac8e9;hpb=5fc067b01c4651afec131a6c9f79c4cdd336e5c8;p=plomrogue diff --git a/src/objects_on_map.h b/src/objects_on_map.h index 4966161..e9c7c65 100644 --- a/src/objects_on_map.h +++ b/src/objects_on_map.h @@ -9,15 +9,17 @@ struct Map; struct Player { struct yx_uint16 pos; }; -struct Item { - struct Item * next; +struct ChainMapObject { + void * next; unsigned char name; struct yx_uint16 pos; }; +struct Item { + struct ChainMapObject cmo; }; + struct Monster { - struct Monster * next; - unsigned char name; - struct yx_uint16 pos; }; + struct ChainMapObject cmo; + unsigned char hitpoints; }; extern char is_passable (struct Map *, struct yx_uint16); extern struct yx_uint16 find_passable_pos (struct Map *);