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 object_remove(object *op)
static method_ret mimic_type_apply(object *op, object *applier, int aflags)
short freearr_x[SIZEOFFREE]
short freearr_y[SIZEOFFREE]
const char * object_get_value(const object *op, const char *const key)
#define MSG_TYPE_APPLY_SUCCESS
void query_name(const object *op, char *buf, size_t size)
#define FREE_AND_COPY(sv, nv)
static std::shared_ptr< inja::Environment > env
void register_apply(int ob_type, apply_func method)
void init_type_mimic(void)
int object_find_free_spot(const object *ob, mapstruct *m, int x, int y, int start, int stop)
object * object_insert_in_ob(object *op, object *where)
Animations * find_animation(const char *name)
#define MSG_TYPE_APPLY_FAILURE
object * object_insert_in_map_at(object *op, mapstruct *m, object *originator, int flag, int x, int y)
void draw_ext_info(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *message)
static const char * object_try_get_value(object *op, const char *key)
void draw_ext_info_format(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *format,...)