X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fserver%2Fthings.h;h=940d108ab2f2b44d613737d08ce39fd3586e65a2;hb=632b6d3e471fcdebbbf0d753a9ae3080b432e626;hp=365e308b4c4cb8da0ab67bca087c92ef92694171;hpb=3dedf6344c941891491773d1cc5d647aa664b218;p=plomrogue diff --git a/src/server/things.h b/src/server/things.h index 365e308..940d108 100644 --- a/src/server/things.h +++ b/src/server/things.h @@ -1,4 +1,8 @@ /* src/server/things.h + * + * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3 + * or any later version. For details on its copyright, license, and warranties, + * see the file NOTICE in the root directory of the PlomRogue source package. * * Structs for things and their type and action definitions, and routines to * initialize these. @@ -8,7 +12,7 @@ #define THINGS_H #include /* uint8_t, int16_t */ -#include "../common/yx_uint8.h" /* yx_uint8 structs */ +#include "../common/yx_uint8.h" /* yx_uint8 */ @@ -79,10 +83,13 @@ extern struct Thing * add_thing(int16_t id, uint8_t type, uint8_t y, uint8_t x); extern void add_thing_to_memory_map(struct Thing * t, uint8_t type, uint8_t y, uint8_t x); -/* Free ThingAction/ThingType/Thing chain starting at "ta"/"tt"/"t". */ +/* Free ThingAction / ThingType / Thing / ThingInMemory chain starting at "ta" / + * "tt" / "t" / "tm". + */ extern void free_thing_actions(struct ThingAction * ta); extern void free_thing_types(struct ThingType * tt); extern void free_things(struct Thing * t); +extern void free_things_in_memory(struct ThingInMemory * tm); /* Return pointer to ThingAction/ThingType of "id", or NULL if none found. */ extern struct ThingAction * get_thing_action(uint8_t id);