Xonotic
item.qh File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GameItem
 

Macros

#define ITEM_HANDLE(signal, ...)   __Item_Send_##signal(__VA_ARGS__)
 
#define SPAWNFUNC_ITEM(name, item)
 

Enumerations

enum  { ITEM_FLAG_NORMAL = BIT(0), ITEM_FLAG_MUTATORBLOCKED = BIT(1), ITEM_FLAG_RESOURCE = BIT(2) }
 

Macro Definition Documentation

◆ ITEM_HANDLE

#define ITEM_HANDLE (   signal,
  ... 
)    __Item_Send_##signal(__VA_ARGS__)

Definition at line 103 of file item.qh.

Referenced by ctf_FlagTouch(), Dump_Items(), and Item_Touch().

◆ SPAWNFUNC_ITEM

#define SPAWNFUNC_ITEM (   name,
  item 
)

Definition at line 92 of file item.qh.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ITEM_FLAG_NORMAL 

Item is usable during normal gameplay.

ITEM_FLAG_MUTATORBLOCKED 
ITEM_FLAG_RESOURCE 

Item is is a resource, not a held item.

Definition at line 96 of file item.qh.

97 {
98  ITEM_FLAG_NORMAL = BIT(0),
100  ITEM_FLAG_RESOURCE = BIT(2)
101 };
Item is usable during normal gameplay.
Definition: item.qh:98
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
Definition: bits.qh:8
Item is is a resource, not a held item.
Definition: item.qh:100