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

Go to the source code of this file.

Classes

class  StatusEffects
 

Macros

#define REGISTER_STATUSEFFECT(id, inst)   REGISTER(StatusEffect, STATUSEFFECT, id, m_id, inst)
 

Enumerations

enum  { STATUSEFFECT_FLAG_ACTIVE = BIT(0), STATUSEFFECT_FLAG_PERSISTENT = BIT(1) }
 
enum  { STATUSEFFECT_REMOVE_NORMAL, STATUSEFFECT_REMOVE_TIMEOUT, STATUSEFFECT_REMOVE_CLEAR }
 

Functions

 STATIC_INIT (StatusEffect)
 

Macro Definition Documentation

◆ REGISTER_STATUSEFFECT

#define REGISTER_STATUSEFFECT (   id,
  inst 
)    REGISTER(StatusEffect, STATUSEFFECT, id, m_id, inst)

Definition at line 9 of file all.qh.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
STATUSEFFECT_FLAG_ACTIVE 
STATUSEFFECT_FLAG_PERSISTENT 

Effect is currently being granted passively.

Definition at line 17 of file all.qh.

18 {
21 };
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
Definition: bits.qh:8
Effect is currently being granted passively.
Definition: all.qh:20

◆ anonymous enum

anonymous enum
Enumerator
STATUSEFFECT_REMOVE_NORMAL 

Effect is being removed by a function, calls regular removal mechanics.

STATUSEFFECT_REMOVE_TIMEOUT 
STATUSEFFECT_REMOVE_CLEAR 

Effect is being forcibly removed without calling any additional mechanics.

Definition at line 23 of file all.qh.

24 {
28 };
Effect is being removed by a function, calls regular removal mechanics.
Definition: all.qh:25
Effect is being forcibly removed without calling any additional mechanics.
Definition: all.qh:27

Function Documentation

◆ STATIC_INIT()

STATIC_INIT ( StatusEffect  )

Definition at line 15 of file all.qh.

References FOREACH.

15 { FOREACH(StatusEffect, true, it.m_id = i); }
#define FOREACH(list, cond, body)
Definition: iter.qh:19