Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
GameItem Class Reference
Inheritance diagram for GameItem:
Collaboration diagram for GameItem:

Public Member Functions

 ATTRIB (GameItem, m_canonical_spawnfunc, string)
 the canonical spawnfunc name
 ATTRIB (GameItem, m_icon, string)
 ATTRIB (GameItem, m_name, string)
 ATTRIB (GameItem, m_waypoint, string)
virtual void describe ()
void ITEM_HANDLE (Show, GameItem this)
virtual void m_spawnfunc_hookreplace ()
virtual void show ()

Public Attributes

vector m_color = '1 1 1'
bool m_glow = false
int m_id = 0
Sound m_respawnsound = SND_ITEMRESPAWN
int m_waypointblink = 1

Detailed Description

Definition at line 126 of file item.qh.

Member Function Documentation

◆ ATTRIB() [1/4]

GameItem::ATTRIB ( GameItem ,
m_canonical_spawnfunc ,
string  )

the canonical spawnfunc name

References ATTRIB().

Referenced by ATTRIB().

◆ ATTRIB() [2/4]

GameItem::ATTRIB ( GameItem ,
m_icon ,
string  )

◆ ATTRIB() [3/4]

GameItem::ATTRIB ( GameItem ,
m_name ,
string  )

References m_name.

◆ ATTRIB() [4/4]

GameItem::ATTRIB ( GameItem ,
m_waypoint ,
string  )

◆ describe()

virtual void GameItem::describe ( )
inlinevirtual

Reimplemented in Powerup.

Definition at line 141 of file item.qh.

142 {
143 TC(GameItem, this);
144 return SUPER(GameItem).describe(this);
145 }
#define TC(T, sym)
Definition _all.inc:82
#define SUPER(cname)
Definition oo.qh:231

References describe(), SUPER, and TC.

Referenced by describe().

◆ ITEM_HANDLE()

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

Definition at line 159 of file item.qh.

159{ this.show(this); }
virtual void show()
Definition item.qh:154

References show().

◆ m_spawnfunc_hookreplace()

virtual void GameItem::m_spawnfunc_hookreplace ( )
inlinevirtual

Definition at line 130 of file item.qh.

130{ return this; }

References entity(), m_spawnfunc_hookreplace(), METHOD, and this.

Referenced by m_spawnfunc_hookreplace().

◆ show()

virtual void GameItem::show ( )
inlinevirtual

Reimplemented in Pickup.

Definition at line 154 of file item.qh.

155 {
156 TC(GameItem, this);
157 LOG_INFO("A game item");
158 }
#define LOG_INFO(...)
Definition log.qh:65

References LOG_INFO, show(), and TC.

Referenced by ITEM_HANDLE(), and show().

Member Data Documentation

◆ m_color

vector GameItem::m_color = '1 1 1'

Definition at line 133 of file item.qh.

◆ m_glow

bool GameItem::m_glow = false

Definition at line 137 of file item.qh.

◆ m_id

int GameItem::m_id = 0

Definition at line 127 of file item.qh.

Referenced by GetAmmoResource(), Item_ItemsTime_SetTime(), and NET_HANDLE().

◆ m_respawnsound

Sound GameItem::m_respawnsound = SND_ITEMRESPAWN

Definition at line 138 of file item.qh.

◆ m_waypointblink

int GameItem::m_waypointblink = 1

Definition at line 135 of file item.qh.


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