69 "The chest was empty.");
81 "You find %s in the %s.",
82 name, container_name);
void spring_trap(object *trap, object *victim)
This function generalizes attacks by runes/traps.
#define INS_BELOW_ORIGINATOR
Insert new object immediately below originator.
#define MSG_TYPE_APPLY_FAILURE
Apply OK, but no/bad result.
void draw_ext_info_format(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *format,...) PRINTF_ARGS(6
void object_remove(object *op)
This function removes the object op from the linked list of objects which it is currently tied to...
int16_t y
Position in the map for this object.
#define object_was_destroyed(op, old_tag)
Checks if an object still exists.
Global type definitions and header inclusions.
void draw_ext_info(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *message)
Sends message to player(s).
#define MSG_TYPE_APPLY
Applying objects.
char method_ret
Define some standard return values for callbacks which don't need to return any other results...
int16_t level
Level of creature or object.
#define FLAG_ALIVE
Object can fight (or be fought)
#define QUERY_FLAG(xyz, p)
void query_name(const object *op, char *buf, size_t size)
Describes an item.
uint32_t tag_t
Object tag, unique during the whole game.
void init_type_treasure(void)
Initializer for the TREASURE object type.
#define MAX_BUF
Used for all kinds of things.
int16_t invisible
How much longer the object will be invis.
struct mapstruct * map
Pointer to the map in which this object is present.
#define object_decrease_nrof_by_one(xyz)
uint8_t type
PLAYER, BULLET, etc.
#define MSG_TYPE_APPLY_SUCCESS
Was able to apply object.
object * inv
Pointer to the first object in the inventory.
static method_ret treasure_type_apply(object *op, object *applier, int aflags)
Attempts to apply treasure.
#define NDI_UNIQUE
Print immediately, don't buffer.
object * object_insert_in_map_at(object *op, mapstruct *m, object *originator, int flag, int x, int y)
Same as object_insert_in_map() except it handle separate coordinates and do a clean job preparing mul...
tag_t count
Unique object number for this object.
Object type functions and variables.
void register_apply(int ob_type, apply_func method)
Registers the apply method for the given type.