Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
all.qh File Reference
Include dependency graph for all.qh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  StatusEffect

Macros

#define REGISTER_STATUSEFFECT(id, inst)

Enumerations

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

Functions

 STATIC_INIT (StatusEffects)

Macro Definition Documentation

◆ REGISTER_STATUSEFFECT

#define REGISTER_STATUSEFFECT ( id,
inst )
Value:
REGISTER(StatusEffects, STATUSEFFECT, id, m_id, inst)
int m_id
Definition effect.qh:19
#define REGISTER(...)
Register a new entity with a registry.
Definition registry.qh:87

Definition at line 12 of file all.qh.

Referenced by REGISTER_STATUSEFFECT(), REGISTER_STATUSEFFECT(), REGISTER_STATUSEFFECT(), REGISTER_STATUSEFFECT(), REGISTER_STATUSEFFECT(), REGISTER_STATUSEFFECT(), REGISTER_STATUSEFFECT(), REGISTER_STATUSEFFECT(), REGISTER_STATUSEFFECT(), and REGISTER_STATUSEFFECT().

Enumeration Type Documentation

◆ 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 26 of file all.qh.

27{
31};
@ STATUSEFFECT_REMOVE_CLEAR
Effect is being forcibly removed without calling any additional mechanics.
Definition all.qh:30
@ STATUSEFFECT_REMOVE_NORMAL
Effect is being removed by a function, calls regular removal mechanics.
Definition all.qh:28
@ STATUSEFFECT_REMOVE_TIMEOUT
Definition all.qh:29

◆ anonymous enum

anonymous enum
Enumerator
STATUSEFFECT_FLAG_ACTIVE 
STATUSEFFECT_FLAG_PERSISTENT 

Effect is currently being granted passively.

Definition at line 20 of file all.qh.

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

Function Documentation

◆ STATIC_INIT()

STATIC_INIT ( StatusEffects )

Definition at line 18 of file all.qh.

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

References FOREACH, and STATIC_INIT.