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

Public Member Functions

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

Public Attributes

vector m_color = '0.24 0.78 1'
 
bool m_hidden = false
 Whether the effect is displayed in the HUD. More...
 
string m_icon = "buff_jump"
 
int m_id = 0
 
float m_lifetime = 60
 
string m_name = _("Jump")
 
int m_skin = 10
 
string m_sprite = ""
 
string netname = "jump"
 

Detailed Description

Definition at line 110 of file all.inc.

Member Function Documentation

◆ ATTRIB() [1/2]

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

◆ ATTRIB() [2/2]

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

◆ Buff ::display()

virtual void Buff::Buff ::display ( )
inlinevirtualinherited

Definition at line 31 of file buffs.qh.

References cvar(), cvar_string(), ENDCLASS, m_name, METHOD, netname, and strcat().

31  {
32  returns(this.m_name, sprintf("/gfx/hud/%s/%s", cvar_string("menu_skin"), this.m_icon));
33  }
string m_name
Definition: buffs.qh:27
string m_icon
Definition: buffs.qh:25
+ Here is the call graph for this function:

◆ 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 JumpBuff::m_color = '0.24 0.78 1'

Definition at line 115 of file all.inc.

◆ 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 JumpBuff::m_icon = "buff_jump"

Definition at line 113 of file all.inc.

◆ m_id

int StatusEffects::m_id = 0
inherited

Definition at line 31 of file all.qh.

◆ m_lifetime

float Buff::m_lifetime = 60
inherited

Definition at line 29 of file buffs.qh.

◆ m_name

string JumpBuff::m_name = _("Jump")

Definition at line 111 of file all.inc.

◆ m_skin

int JumpBuff::m_skin = 10

Definition at line 114 of file all.inc.

◆ m_sprite

string Buff::m_sprite = ""
inherited

Definition at line 30 of file buffs.qh.

◆ netname

string JumpBuff::netname = "jump"

Definition at line 112 of file all.inc.


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