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

Public Member Functions

 ATTRIB (Pickup, netname, string)
 
 ATTRIB (Pickup, m_name, string)
 
 ATTRIB (GameItem, m_canonical_spawnfunc, string)
 the canonical spawnfunc name More...
 
 ATTRIB (GameItem, m_name, string)
 
 ATTRIB (GameItem, m_icon, string)
 
 ATTRIB (GameItem, m_waypoint, string)
 
virtual void GameItem ::display ()
 
virtual void GameItem ::m_spawnfunc_hookreplace ()
 
virtual void GameItem ::show ()
 
void ITEM_HANDLE (Show, GameItem this)
 
virtual void Pickup ::show ()
 

Public Attributes

vector m_color = '1 1 1'
 
int m_id = 0
 
int m_itemid = 0
 
int m_waypointblink = 1
 

Detailed Description

Definition at line 19 of file ammo.qh.

Member Function Documentation

◆ ATTRIB() [1/6]

Pickup::ATTRIB ( Pickup  ,
netname  ,
string   
)
inherited

◆ ATTRIB() [2/6]

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

◆ ATTRIB() [3/6]

GameItem::ATTRIB ( GameItem  ,
m_canonical_spawnfunc  ,
string   
)
inherited

the canonical spawnfunc name

◆ ATTRIB() [4/6]

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

◆ ATTRIB() [5/6]

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

◆ ATTRIB() [6/6]

GameItem::ATTRIB ( GameItem  ,
m_waypoint  ,
string   
)
inherited

◆ GameItem ::display()

virtual void GameItem::GameItem ::display ( )
inlinevirtualinherited

Definition at line 118 of file item.qh.

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

119  {
120  TC(GameItem, this);
121  returns(this.m_name, this.m_icon ? sprintf("/gfx/hud/%s/%s", cvar_string("menu_skin"), this.m_icon) : string_null);
122  }
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:

◆ GameItem ::m_spawnfunc_hookreplace()

virtual void GameItem::GameItem ::m_spawnfunc_hookreplace ( )
inlinevirtualinherited

Definition at line 108 of file item.qh.

References ATTRIB, and m_name.

108 { return this; }

◆ GameItem ::show()

virtual void GameItem::GameItem ::show ( )
inlinevirtualinherited

Definition at line 123 of file item.qh.

References LOG_INFO, and TC.

124  {
125  TC(GameItem, this);
126  LOG_INFO("A game item");
127  }
#define LOG_INFO(...)
Definition: log.qh:70
#define TC(T, sym)
Definition: _all.inc:82

◆ ITEM_HANDLE()

void GameItem::ITEM_HANDLE ( Show  ,
GameItem  this 
)
inlineinherited

Definition at line 128 of file item.qh.

References ENDCLASS.

128 { this.show(this); }

◆ Pickup ::show()

virtual void Pickup::Pickup ::show ( )
inlinevirtualinherited

Definition at line 31 of file pickup.qh.

References etos(), LOG_INFOF, m_name, and TC.

32  {
33  TC(Pickup, this);
34  LOG_INFOF("%s: %s", etos(this), this.m_name);
35  }
Definition: pickup.qh:22
#define LOG_INFOF(...)
Definition: log.qh:71
#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 GameItem::m_color = '1 1 1'
inherited

Definition at line 111 of file item.qh.

◆ m_id

int GameItem::m_id = 0
inherited

Definition at line 105 of file item.qh.

Referenced by GiveItems(), Item_GiveTo(), and Item_ItemsTime_Allow().

◆ m_itemid

int Pickup::m_itemid = 0
inherited

Definition at line 36 of file pickup.qh.

◆ m_waypointblink

int GameItem::m_waypointblink = 1
inherited

Definition at line 113 of file item.qh.


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