Data Fields

item_struct Struct Reference

#include <item.h>

Data Fields

struct item_structnext
struct item_structprev
struct item_structenv
struct item_structinv
char d_name [NAME_LEN]
char s_name [NAME_LEN]
char flags [NAME_LEN]
sint32 tag
sint32 nrof
float weight
sint16 face
uint16 animation_id
uint16 anim_speed
uint16 anim_state
uint16 last_anim
uint16 magical
uint16 cursed
uint16 damned
uint16 unpaid
uint16 locked
uint16 trapped
uint16 applied
uint16 open
uint8 apply_type
uint32 flagsval
uint8 type
uint8 itype
uint8 stype
uint8 item_qua
uint8 item_con
uint8 item_skill
uint8 item_level
uint8 direction

Detailed Description

Item structure keeps all information what player (= client) knows about items in its inventory.

Definition at line 41 of file item.h.


Field Documentation

How often to animate.

Definition at line 80 of file item.h.

Last face in sequence drawn.

Definition at line 83 of file item.h.

Index into animation array.

Definition at line 77 of file item.h.

Item is applied.

Definition at line 107 of file item.h.

How item is applied (worn/wield/etc)

Definition at line 113 of file item.h.

Item is cursed.

Definition at line 92 of file item.h.

char item_struct::d_name[NAME_LEN]

Item's full name without status information

Definition at line 56 of file item.h.

Item is damned.

Definition at line 95 of file item.h.

The item's direction.

Definition at line 136 of file item.h.

Which item's inventory is this item.

Definition at line 50 of file item.h.

Index for face array.

Definition at line 74 of file item.h.

char item_struct::flags[NAME_LEN]

Item's status information.

Definition at line 62 of file item.h.

Unmodified flags value as sent from the server.

Definition at line 116 of file item.h.

Item's inventory.

Definition at line 53 of file item.h.

Item's condition.

Definition at line 127 of file item.h.

Requires level.

Definition at line 133 of file item.h.

Item's quality.

Definition at line 124 of file item.h.

Required skill.

Definition at line 130 of file item.h.

How many ticks have passed since we last animated.

Definition at line 86 of file item.h.

Item is locked.

Definition at line 101 of file item.h.

Item is magical.

Definition at line 89 of file item.h.

Next item in inventory.

Definition at line 44 of file item.h.

Number of items.

Definition at line 68 of file item.h.

Container is open.

Definition at line 110 of file item.h.

Previous item in inventory.

Definition at line 47 of file item.h.

char item_struct::s_name[NAME_LEN]

Item's singular name as sent to us.

Definition at line 59 of file item.h.

Item identifier (0 = free).

Definition at line 65 of file item.h.

Item is trapped.

Definition at line 104 of file item.h.

Item type for ordering

Definition at line 119 of file item.h.

Item is unpaid.

Definition at line 98 of file item.h.

How much item weights.

Definition at line 71 of file item.h.


The documentation for this struct was generated from the following file: