#define MAP_OBJECTS_H
#include <stdint.h> /* uint8_t */
-//#include <stdio.h> /* FILE */
#include "../common/yx_uint8.h" /* yx_uint8 structs */
-//struct EntrySkeleton;
uint8_t corpse_id; /* type to change map object into upon destruction */
uint8_t lifepoints; /* default start value for map object's .lifepoints */
uint8_t consumable; /* can be eaten if !0, for so much hitpoint win */
+ uint8_t start_n; /* how many of these does the map start with? */
};
-/* Read-in to "entry" multi-line entry from MapObjDef config "file", using
- * pre-allocated "line", "linemax" and "context" as input for err_try_fgets().
- */
-//extern void read_map_object_def(char * line, uint32_t linemax, char * context,
-// struct EntrySkeleton * entry, FILE * file);
-
/* Free map object definitions chain starting at "mod_start". */
extern void free_map_object_defs(struct MapObjDef * mod_start);