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

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)
 
 ATTRIB (WeaponPickup, m_weapon, Weapon)
 
 ATTRIB (WeaponPickup, m_name, 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 ()
 
 WeaponPickup ::WeaponPickup (Weapon w)
 

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 148 of file weapon.qh.

Member Function Documentation

◆ ATTRIB() [1/8]

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

◆ ATTRIB() [2/8]

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

◆ ATTRIB() [3/8]

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

the canonical spawnfunc name

◆ ATTRIB() [4/8]

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

◆ ATTRIB() [5/8]

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

◆ ATTRIB() [6/8]

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

◆ ATTRIB() [7/8]

WeaponPickup::ATTRIB ( WeaponPickup  ,
m_weapon  ,
Weapon   
)

◆ ATTRIB() [8/8]

WeaponPickup::ATTRIB ( WeaponPickup  ,
m_name  ,
string   
)

◆ 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:

◆ WeaponPickup ::WeaponPickup()

WeaponPickup::WeaponPickup ::WeaponPickup ( Weapon  w)
inline

Definition at line 159 of file weapon.qh.

References Weapon::bot_pickupbasevalue, CONSTRUCT, ENDCLASS, entity(), Item_GiveTo(), Weapon::m_name, m_name, and METHOD.

159  {
161  this.m_weapon = w;
162  this.m_name = w.m_name;
163 #ifdef GAMEQC
164  this.m_model = w.m_model;
165 #endif
166 #ifdef SVQC
167  this.m_botvalue = w.bot_pickupbasevalue;
168 #endif
169  }
string m_name
M: wepname : human readable name.
Definition: weapon.qh:78
#define CONSTRUCT(cname,...)
Definition: oo.qh:111
float bot_pickupbasevalue
M: rating : bot weapon priority.
Definition: weapon.qh:54
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: