home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Window configuration can now be saved; and edited in a special window config view...
[plomrogue]
/
src
/
map_objects.h
diff --git
a/src/map_objects.h
b/src/map_objects.h
index 015864812c03bc6241499e3c8bf14720b1dd340c..bddd5ffc5f96e655180bcb4ad1b0f9e0d8c42a29 100644
(file)
--- a/
src/map_objects.h
+++ b/
src/map_objects.h
@@
-68,6
+68,7
@@
struct ItemDef
struct MonsterDef
{
struct MapObjDef map_obj_def;
struct MonsterDef
{
struct MapObjDef map_obj_def;
+ uint8_t corpse_id; /* ID of object type killed monster changes to. */
uint8_t hitpoints_start; /* Hitpoints each monster starts with. */
};
uint8_t hitpoints_start; /* Hitpoints each monster starts with. */
};
@@
-78,6
+79,14
@@
extern void init_map_object_defs(struct World * world, char * filename);
+/* Free item / monster definitions in map object chain starting at "md_start" /
+ * "id_start".
+ */
+extern void free_item_defs(struct ItemDef * id_start);
+extern void free_monster_defs(struct MonsterDef * md_start);
+
+
+
/* Build into memory starting at "start" chain of "n" map objects of type
* "def_id".
*/
/* Build into memory starting at "start" chain of "n" map objects of type
* "def_id".
*/
@@
-91,9
+100,13
@@
extern void * build_map_objects(struct World * world, void * start, char def_id,
*/
extern uint8_t write_map_objects(struct World * world, void * start,
FILE * file);
*/
extern uint8_t write_map_objects(struct World * world, void * start,
FILE * file);
-extern uint8_t read_map_objects(struct World * world, void * start, FILE * file);
+extern uint8_t read_map_objects(struct World * world, void * start,
+ FILE * file);
+/* Free items / monsters in map object chain starting at "item" / "monster". */
+extern void free_items(struct Item * item);
+extern void free_monsters(struct Monster * monster);
/* Get pointer to the map object definition of identifier "def_id". */
extern struct MapObjDef * get_map_obj_def(struct World * world, char def_id);
/* Get pointer to the map object definition of identifier "def_id". */
extern struct MapObjDef * get_map_obj_def(struct World * world, char def_id);