Xonotic
Shield Class Reference
+ Inheritance diagram for Shield:
+ Collaboration diagram for Shield:

Public Member Functions

 ATTRIB (StatusEffects, m_name, string)
 
 ATTRIB (StatusEffects, m_icon, string)
 
virtual void StatusEffects ::display ()
 

Public Attributes

vector m_color = '1 1 1'
 
bool m_hidden = false
 Whether the effect is displayed in the HUD. More...
 
string m_icon = "shield"
 
int m_id = 0
 
float m_lifetime = 30
 Lifetime scale for HUD progress bars. More...
 
string m_name = _("Shield")
 
string netname = "invincible"
 

Detailed Description

Definition at line 55 of file shield.qh.

Member Function Documentation

◆ ATTRIB() [1/2]

StatusEffects::ATTRIB ( StatusEffects  ,
m_name  ,
string   
)
inherited

◆ ATTRIB() [2/2]

StatusEffects::ATTRIB ( StatusEffects  ,
m_icon  ,
string   
)
inherited

◆ StatusEffects ::display()

virtual void StatusEffects::StatusEffects ::display ( )
inlinevirtualinherited

Definition at line 54 of file all.qh.

References cvar_string(), ENDCLASS, string_null, and TC.

55  {
56  TC(StatusEffects, this);
57  returns(this.m_name, this.m_icon ? sprintf("/gfx/hud/%s/%s", cvar_string("menu_skin"), this.m_icon) : string_null);
58  }
string string_null
Definition: nil.qh:9
#define TC(T, sym)
Definition: _all.inc:82
string m_name
Definition: scores.qh:135
+ Here is the call graph for this function:

Member Data Documentation

◆ m_color

vector StatusEffects::m_color = '1 1 1'
inherited

Definition at line 34 of file all.qh.

◆ m_hidden

bool StatusEffects::m_hidden = false
inherited

Whether the effect is displayed in the HUD.

Definition at line 36 of file all.qh.

◆ m_icon

string Shield::m_icon = "shield"

Definition at line 58 of file shield.qh.

◆ m_id

int StatusEffects::m_id = 0
inherited

Definition at line 31 of file all.qh.

◆ m_lifetime

float StatusEffects::m_lifetime = 30
inherited

Lifetime scale for HUD progress bars.

Definition at line 38 of file all.qh.

◆ m_name

string Shield::m_name = _("Shield")

Definition at line 57 of file shield.qh.

◆ netname

string Shield::netname = "invincible"

Definition at line 56 of file shield.qh.


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