Go to the documentation of this file.
49 return val ? val :
"0";
68 object *
env =
op->env;
93 char anim_name_buf[128];
94 int anim_name_len = strlen(
op->face->name);
95 strncpy(anim_name_buf,
op->face->name, 128);
97 anim_name_buf[anim_name_len-4] =
'\0';
98 strncat(anim_name_buf,
"_mimic", 128-anim_name_len+4);
106 op->level =
op->map ?
op->map->difficulty : 0;
void init_type_mimic(void)
static const char * object_try_get_value(object *op, const char *key)
void register_apply(int ob_type, apply_func method)
void draw_ext_info_format(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *format,...) PRINTF_ARGS(6
static method_ret mimic_type_apply(object *op, object *applier, int aflags)
const char * object_get_value(const object *op, const char *const key)
object * object_insert_in_ob(object *op, object *where)
short freearr_y[SIZEOFFREE]
#define MSG_TYPE_APPLY_SUCCESS
void query_name(const object *op, char *buf, size_t size)
#define FREE_AND_COPY(sv, nv)
object * object_insert_in_map_at(object *op, mapstruct *m, object *originator, int flag, int x, int y)
static std::shared_ptr< inja::Environment > env
int object_find_free_spot(const object *ob, mapstruct *m, int x, int y, int start, int stop)
Animations * find_animation(const char *name)
#define MSG_TYPE_APPLY_FAILURE
void draw_ext_info(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *message)
void object_remove(object *op)
short freearr_x[SIZEOFFREE]