X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/copy_free?a=blobdiff_plain;f=src%2Fmap_objects.h;h=ced2ab3f161b4cc237d642bc0fabd28effe1ce14;hb=9d35a239f47714198b942deca3171334409a27bb;hp=29bae854045e4ad04d5a51ec2cae53dbff3bba98;hpb=fb8ddca6abc66eb7e52a007850689309b4cda938;p=plomrogue diff --git a/src/map_objects.h b/src/map_objects.h index 29bae85..ced2ab3 100644 --- a/src/map_objects.h +++ b/src/map_objects.h @@ -57,10 +57,11 @@ extern void init_map_object_defs(struct World * world, char * filename); extern void free_map_object_defs(struct MapObjDef * mod_start); -/* Build chain of "n" map objects of "tpye" to start at "mo_ptr_ptr". */ -extern struct MapObj ** build_map_objects(struct World * w, - struct MapObj ** mo_ptr_ptr, - uint8_t type, uint8_t n); + +/* Add new object(s) ("n": how many?) of "type" to map on random position(s). */ +extern void add_map_object(struct World * world, uint8_t type); +extern void add_map_objects(struct World * world, uint8_t type, uint8_t n); + /* Write map objects chain to "file". */