Atrinik Server 2.5
Defines | Enumerations
Client/server item flags

Defines

#define F_APPLIED   0x000F
#define F_ETHEREAL   0x0080
#define F_INVISIBLE   0x0100
#define F_UNPAID   0x0200
#define F_MAGIC   0x0400
#define F_CURSED   0x0800
#define F_DAMNED   0x1000
#define F_OPEN   0x2000
#define F_NOPICK   0x4000
#define F_LOCKED   0x8000
#define F_TRAPPED   0x10000

Enumerations

enum  {
  a_none, a_readied, a_wielded, a_worn,
  a_active, a_applied
}

Detailed Description

Flags for the item command. Used in query_flags().


Define Documentation

#define F_APPLIED   0x000F

Object is ready for use by living objects.

Definition at line 264 of file newclient.h.

#define F_CURSED   0x0800

The object is cursed.

Definition at line 274 of file newclient.h.

#define F_DAMNED   0x1000

The object is _very_ cursed.

Definition at line 276 of file newclient.h.

#define F_ETHEREAL   0x0080

Object is ethereal.

Definition at line 266 of file newclient.h.

#define F_INVISIBLE   0x0100

Can only be see by objects with FLAG_SEE_INVISIBLE.

Definition at line 268 of file newclient.h.

#define F_LOCKED   0x8000

Item will not be dropped from inventory.

Definition at line 282 of file newclient.h.

#define F_MAGIC   0x0400

Item is magical.

Definition at line 272 of file newclient.h.

#define F_NOPICK   0x4000

Object can't be picked up.

Definition at line 280 of file newclient.h.

#define F_OPEN   0x2000

A container.

See Container

Definition at line 278 of file newclient.h.

#define F_TRAPPED   0x10000

Object is trapped, ie, there is a known trap inside the object's inventory. Used for map and below inventory, to mark containers like corpses where player found traps.

Definition at line 284 of file newclient.h.

#define F_UNPAID   0x0200

Object hasn't been paid for yet.

Definition at line 270 of file newclient.h.


Enumeration Type Documentation

anonymous enum

These flags are used if the item is applied.

Enumerator:
a_none 

No flag.

a_readied 

The item is readied.

a_wielded 

The item is wielded.

a_worn 

The item is worn.

a_active 

The item is active.

a_applied 

The item is applied.

Definition at line 247 of file newclient.h.