Atrinik Client  4.0
Data Fields
obj Struct Reference

#include <item.h>

Data Fields

struct objnext
struct objprev
struct objenv
struct objinv
char s_name [NAME_LEN]
uint32_t tag
uint32_t nrof
double weight
int16_t face
uint16_t animation_id
uint16_t anim_speed
uint16_t anim_state
uint16_t last_anim
uint32_t flags
uint8_t itype
uint8_t stype
uint8_t item_qua
uint8_t item_con
uint32_t item_skill_tag
uint8_t item_level
uint8_t direction
char glow [7]
uint8_t glow_speed
uint8_t glow_state
uint8_t apply_action

Detailed Description

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

Definition at line 43 of file item.h.

Field Documentation

uint16_t obj::anim_speed

How often to animate.

Definition at line 78 of file item.h.

uint16_t obj::anim_state

Last face in sequence drawn.

Definition at line 81 of file item.h.

uint16_t obj::animation_id

Index into animation array.

Definition at line 75 of file item.h.

uint8_t obj::apply_action

Action to execute on applying.

Definition at line 118 of file item.h.

uint8_t obj::direction

The item's direction.

Definition at line 106 of file item.h.

struct obj* obj::env

Which item's inventory is this item.

Definition at line 54 of file item.h.

int16_t obj::face

Index for face array.

Definition at line 72 of file item.h.

uint32_t obj::flags

Unmodified flags value as sent from the server.

Definition at line 87 of file item.h.

char obj::glow[7]

Glow color.

Definition at line 109 of file item.h.

uint8_t obj::glow_speed

Glow speed.

Definition at line 112 of file item.h.

uint8_t obj::glow_state

The glow state.

Definition at line 115 of file item.h.

struct obj* obj::inv

Item's inventory.

Definition at line 57 of file item.h.

uint8_t obj::item_con

Item's condition.

Definition at line 97 of file item.h.

uint8_t obj::item_level

Requires level.

Definition at line 103 of file item.h.

uint8_t obj::item_qua

Item's quality.

Definition at line 94 of file item.h.

uint32_t obj::item_skill_tag

UID of the required skill.

Definition at line 100 of file item.h.

uint8_t obj::itype

Item type.

Definition at line 90 of file item.h.

uint16_t obj::last_anim

How many ticks have passed since we last animated.

Definition at line 84 of file item.h.

struct obj* obj::next

Next item in inventory.

Definition at line 45 of file item.h.

uint32_t obj::nrof

Number of items.

Definition at line 66 of file item.h.

struct obj* obj::prev

Previous item in inventory.

Definition at line 51 of file item.h.

char obj::s_name[NAME_LEN]

Item's singular name as sent to us.

Definition at line 60 of file item.h.

uint32_t obj::tag

Item identifier (0 = free).

Definition at line 63 of file item.h.

double obj::weight

How much item weights.

Definition at line 69 of file item.h.

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