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

Public Member Functions

 Player ()
 ~Player ()
virtual void m_unwind ()
 STATIC_METHOD (Client, Add, void(Client this, int _team))
 STATIC_METHOD (Client, Remove, void(Client this))

Public Attributes

entity accuracy = this.accuracy
entity active_minigame = this.active_minigame
int allowed_timeouts = this.allowed_timeouts
int autojoin_checked = this.autojoin_checked
float ballistics_density = this.ballistics_density
int button0 = this.button0
int button10 = this.button10
int button11 = this.button11
int button12 = this.button12
int button13 = this.button13
int button14 = this.button14
int button15 = this.button15
int button16 = this.button16
int button2 = this.button2
int button3 = this.button3
int button4 = this.button4
int button5 = this.button5
int button6 = this.button6
int button7 = this.button7
int button8 = this.button8
int button9 = this.button9
int buttonchat = this.buttonchat
int buttons_old = this.buttons_old
int buttonuse = this.buttonuse
int clientcolors = this.clientcolors
entity clientdata = this.clientdata
float cmd_floodtime = this.cmd_floodtime
int colormap = this.colormap
string crypto_encryptmethod = this.crypto_encryptmethod
 the string "AES128" if encrypting, and string_null if plaintext
string crypto_idfp = this.crypto_idfp
 fingerprint of ID used by the player entity, or string_null if not identified
bool crypto_idfp_signed = this.crypto_idfp_signed
 set if the player's ID has been signed
string crypto_keyfp = this.crypto_keyfp
 fingerprint of CA key the player used to authenticate
string crypto_mykeyfp = this.crypto_mykeyfp
 fingerprint of CA key the server used to authenticate to the player
string crypto_signmethod = this.crypto_signmethod
 the string "HMAC-SHA256" if signing, and string_null if plaintext
int cursor_active = this.cursor_active
vector cursor_screen = this.cursor_screen
vector cursor_trace_endpos = this.cursor_trace_endpos
entity cursor_trace_ent = this.cursor_trace_ent
vector cursor_trace_start = this.cursor_trace_start
vector dual_weapons = this.dual_weapons
float hasweapon_complain_spam = this.hasweapon_complain_spam
int hitplotfh = this.hitplotfh
float idlekick_lasttimeleft = this.idlekick_lasttimeleft
int impulse = this.impulse
int itemkeys = this.itemkeys
float jointime = this.jointime
bool just_joined = this.just_joined
int killcount = this.killcount
int latency_cnt = this.latency_cnt
float latency_sum = this.latency_sum
float latency_time = this.latency_time
float model_randomizer = this.model_randomizer
vector movement = this.movement
vector movement_old = this.movement_old
bool muted = this.muted
string netaddress = this.netaddress
 Client IP.
string netname = this.netname
 Client name.
string netname_previous = this.netname_previous
int parm_idlesince = this.parm_idlesince
float ping = this.ping
float ping_movementloss = this.ping_movementloss
float ping_packetloss = this.ping_packetloss
int playerid = this.playerid
string playermodel = this.playermodel
string playerskin = this.playerskin
float pm_frametime = this.pm_frametime
int pressedkeys = this.pressedkeys
bool race_completed = this.race_completed
entity scorekeeper = this.scorekeeper
int specialcommand_pos = this.specialcommand_pos
int spectatee_status = this.spectatee_status
float spectatortime = this.spectatortime
float startplaytime = this.startplaytime
float taunt_soundtime = this.taunt_soundtime
int team = this.team
float teamkill_complain = this.teamkill_complain
entity teamkill_soundsource = this.teamkill_soundsource
float teamkill_soundtime = this.teamkill_soundtime
bool usekeypressed = this.usekeypressed
vector v_angle = this.v_angle
vector v_angle_old = this.v_angle_old
int version = this.version
bool version_mismatch = this.version_mismatch
float version_nagtime = this.version_nagtime
int wants_join = this.wants_join
string weaponorder_byimpulse = this.weaponorder_byimpulse
bool zoomstate = this.zoomstate

Detailed Description

Definition at line 272 of file client.qh.

Constructor & Destructor Documentation

◆ Player()

Player::Player ( )
inline

Definition at line 280 of file client.qh.

280 {
281 this.classname = STR_PLAYER;
282 }
string classname
const string STR_PLAYER
Definition utils.qh:5

References Player(), classname, INIT, and STR_PLAYER.

Referenced by Player(), and ~Player().

◆ ~Player()

Player::~Player ( )
inline

Definition at line 283 of file client.qh.

283 {
284 }

References Player().

Member Function Documentation

◆ m_unwind()

void Client::m_unwind ( )
virtualinherited

Definition at line 287 of file client.qh.

288{
289 TC(Client, this);
290 #define UNWIND(class) MACRO_BEGIN if (this.instanceOf##class) { METHOD_REFERENCE(class, dtorimpl)(this); } MACRO_END
291 switch (this.classname) {
292 case "Observer":
293 UNWIND(Spectator);
294 UNWIND(Player);
295 return true;
296 case "Spectator":
297 UNWIND(Observer);
298 UNWIND(Player);
299 return true;
300 case "Player":
301 UNWIND(Observer);
302 UNWIND(Spectator);
303 return true;
304 }
305 #undef UNWIND
306 return false;
307}
Client()
Definition client.qh:239
#define TC(T, sym)
Definition _all.inc:82
#define UNWIND(class)

References Client(), classname, m_unwind(), METHOD, TC, this, and UNWIND.

Referenced by Client(), and m_unwind().

◆ STATIC_METHOD() [1/2]

Client::STATIC_METHOD ( Client ,
Add ,
void(Client this, int _team)  )
inherited

References Client().

◆ STATIC_METHOD() [2/2]

Client::STATIC_METHOD ( Client ,
Remove ,
void(Client this)  )
inherited

References Client().

Member Data Documentation

◆ accuracy

entity Client::accuracy = this.accuracy
inherited

Definition at line 184 of file client.qh.

◆ active_minigame

entity Client::active_minigame = this.active_minigame
inherited

Definition at line 170 of file client.qh.

◆ allowed_timeouts

int Client::allowed_timeouts = this.allowed_timeouts
inherited

Definition at line 169 of file client.qh.

◆ autojoin_checked

int Client::autojoin_checked = this.autojoin_checked
inherited

Definition at line 192 of file client.qh.

◆ ballistics_density

float Player::ballistics_density = this.ballistics_density

Definition at line 278 of file client.qh.

◆ button0

int Client::button0 = this.button0
inherited

Definition at line 116 of file client.qh.

◆ button10

int Client::button10 = this.button10
inherited

Definition at line 125 of file client.qh.

◆ button11

int Client::button11 = this.button11
inherited

Definition at line 126 of file client.qh.

◆ button12

int Client::button12 = this.button12
inherited

Definition at line 127 of file client.qh.

◆ button13

int Client::button13 = this.button13
inherited

Definition at line 128 of file client.qh.

◆ button14

int Client::button14 = this.button14
inherited

Definition at line 129 of file client.qh.

◆ button15

int Client::button15 = this.button15
inherited

Definition at line 130 of file client.qh.

◆ button16

int Client::button16 = this.button16
inherited

Definition at line 131 of file client.qh.

◆ button2

int Client::button2 = this.button2
inherited

Definition at line 117 of file client.qh.

◆ button3

int Client::button3 = this.button3
inherited

Definition at line 118 of file client.qh.

◆ button4

int Client::button4 = this.button4
inherited

Definition at line 119 of file client.qh.

◆ button5

int Client::button5 = this.button5
inherited

Definition at line 120 of file client.qh.

◆ button6

int Client::button6 = this.button6
inherited

Definition at line 121 of file client.qh.

◆ button7

int Client::button7 = this.button7
inherited

Definition at line 122 of file client.qh.

◆ button8

int Client::button8 = this.button8
inherited

Definition at line 123 of file client.qh.

◆ button9

int Client::button9 = this.button9
inherited

Definition at line 124 of file client.qh.

◆ buttonchat

int Client::buttonchat = this.buttonchat
inherited

Definition at line 133 of file client.qh.

◆ buttons_old

int Client::buttons_old = this.buttons_old
inherited

Definition at line 158 of file client.qh.

◆ buttonuse

int Client::buttonuse = this.buttonuse
inherited

Definition at line 132 of file client.qh.

◆ clientcolors

int Client::clientcolors = this.clientcolors
inherited

Definition at line 94 of file client.qh.

◆ clientdata

entity Client::clientdata = this.clientdata
inherited

Definition at line 189 of file client.qh.

◆ cmd_floodtime

float Client::cmd_floodtime = this.cmd_floodtime
inherited

Definition at line 190 of file client.qh.

◆ colormap

int Client::colormap = this.colormap
inherited

Definition at line 92 of file client.qh.

◆ crypto_encryptmethod

string Client::crypto_encryptmethod = this.crypto_encryptmethod
inherited

the string "AES128" if encrypting, and string_null if plaintext

Definition at line 109 of file client.qh.

◆ crypto_idfp

string Client::crypto_idfp = this.crypto_idfp
inherited

fingerprint of ID used by the player entity, or string_null if not identified

Definition at line 105 of file client.qh.

◆ crypto_idfp_signed

bool Client::crypto_idfp_signed = this.crypto_idfp_signed
inherited

set if the player's ID has been signed

Definition at line 107 of file client.qh.

◆ crypto_keyfp

string Client::crypto_keyfp = this.crypto_keyfp
inherited

fingerprint of CA key the player used to authenticate

Definition at line 101 of file client.qh.

◆ crypto_mykeyfp

string Client::crypto_mykeyfp = this.crypto_mykeyfp
inherited

fingerprint of CA key the server used to authenticate to the player

Definition at line 103 of file client.qh.

◆ crypto_signmethod

string Client::crypto_signmethod = this.crypto_signmethod
inherited

the string "HMAC-SHA256" if signing, and string_null if plaintext

Definition at line 111 of file client.qh.

◆ cursor_active

int Client::cursor_active = this.cursor_active
inherited

Definition at line 135 of file client.qh.

◆ cursor_screen

vector Client::cursor_screen = this.cursor_screen
inherited

Definition at line 136 of file client.qh.

◆ cursor_trace_endpos

vector Client::cursor_trace_endpos = this.cursor_trace_endpos
inherited

Definition at line 138 of file client.qh.

◆ cursor_trace_ent

entity Client::cursor_trace_ent = this.cursor_trace_ent
inherited

Definition at line 139 of file client.qh.

◆ cursor_trace_start

vector Client::cursor_trace_start = this.cursor_trace_start
inherited

Definition at line 137 of file client.qh.

◆ dual_weapons

vector Player::dual_weapons = this.dual_weapons

Definition at line 276 of file client.qh.

◆ hasweapon_complain_spam

float Client::hasweapon_complain_spam = this.hasweapon_complain_spam
inherited

Definition at line 185 of file client.qh.

◆ hitplotfh

int Client::hitplotfh = this.hitplotfh
inherited

Definition at line 188 of file client.qh.

◆ idlekick_lasttimeleft

float Client::idlekick_lasttimeleft = this.idlekick_lasttimeleft
inherited

Definition at line 154 of file client.qh.

◆ impulse

int Client::impulse = this.impulse
inherited

Definition at line 114 of file client.qh.

◆ itemkeys

int Player::itemkeys = this.itemkeys

Definition at line 277 of file client.qh.

◆ jointime

float Client::jointime = this.jointime
inherited

Definition at line 163 of file client.qh.

◆ just_joined

bool Client::just_joined = this.just_joined
inherited

Definition at line 177 of file client.qh.

◆ killcount

int Client::killcount = this.killcount
inherited

Definition at line 172 of file client.qh.

◆ latency_cnt

int Client::latency_cnt = this.latency_cnt
inherited

Definition at line 180 of file client.qh.

◆ latency_sum

float Client::latency_sum = this.latency_sum
inherited

Definition at line 179 of file client.qh.

◆ latency_time

float Client::latency_time = this.latency_time
inherited

Definition at line 181 of file client.qh.

◆ model_randomizer

float Client::model_randomizer = this.model_randomizer
inherited

Definition at line 183 of file client.qh.

◆ movement

vector Client::movement = this.movement
inherited

Definition at line 146 of file client.qh.

◆ movement_old

vector Client::movement_old = this.movement_old
inherited

Definition at line 157 of file client.qh.

◆ muted

bool Client::muted = this.muted
inherited

Definition at line 153 of file client.qh.

◆ netaddress

string Client::netaddress = this.netaddress
inherited

Client IP.

Definition at line 96 of file client.qh.

◆ netname

string Client::netname = this.netname
inherited

Client name.

Definition at line 91 of file client.qh.

Referenced by W_WeaponFrame().

◆ netname_previous

string Client::netname_previous = this.netname_previous
inherited

Definition at line 168 of file client.qh.

◆ parm_idlesince

int Client::parm_idlesince = this.parm_idlesince
inherited

Definition at line 152 of file client.qh.

◆ ping

float Client::ping = this.ping
inherited

Definition at line 141 of file client.qh.

◆ ping_movementloss

float Client::ping_movementloss = this.ping_movementloss
inherited

Definition at line 143 of file client.qh.

◆ ping_packetloss

float Client::ping_packetloss = this.ping_packetloss
inherited

Definition at line 142 of file client.qh.

◆ playerid

int Client::playerid = this.playerid
inherited

Definition at line 150 of file client.qh.

◆ playermodel

string Client::playermodel = this.playermodel
inherited

Definition at line 97 of file client.qh.

◆ playerskin

string Client::playerskin = this.playerskin
inherited

Definition at line 98 of file client.qh.

◆ pm_frametime

float Client::pm_frametime = this.pm_frametime
inherited

Definition at line 155 of file client.qh.

◆ pressedkeys

int Client::pressedkeys = this.pressedkeys
inherited

Definition at line 156 of file client.qh.

◆ race_completed

bool Client::race_completed = this.race_completed
inherited

Definition at line 178 of file client.qh.

◆ scorekeeper

entity Client::scorekeeper = this.scorekeeper
inherited

Definition at line 186 of file client.qh.

◆ specialcommand_pos

int Client::specialcommand_pos = this.specialcommand_pos
inherited

Definition at line 187 of file client.qh.

◆ spectatee_status

int Client::spectatee_status = this.spectatee_status
inherited

Definition at line 175 of file client.qh.

◆ spectatortime

float Client::spectatortime = this.spectatortime
inherited

Definition at line 165 of file client.qh.

◆ startplaytime

float Client::startplaytime = this.startplaytime
inherited

Definition at line 166 of file client.qh.

◆ taunt_soundtime

float Client::taunt_soundtime = this.taunt_soundtime
inherited

Definition at line 171 of file client.qh.

◆ team

int Client::team = this.team
inherited

Definition at line 93 of file client.qh.

◆ teamkill_complain

float Client::teamkill_complain = this.teamkill_complain
inherited

Definition at line 159 of file client.qh.

◆ teamkill_soundsource

entity Client::teamkill_soundsource = this.teamkill_soundsource
inherited

Definition at line 161 of file client.qh.

◆ teamkill_soundtime

float Client::teamkill_soundtime = this.teamkill_soundtime
inherited

Definition at line 160 of file client.qh.

◆ usekeypressed

bool Client::usekeypressed = this.usekeypressed
inherited

Definition at line 162 of file client.qh.

◆ v_angle

vector Client::v_angle = this.v_angle
inherited

Definition at line 145 of file client.qh.

Referenced by W_WeaponFrame().

◆ v_angle_old

vector Client::v_angle_old = this.v_angle_old
inherited

Definition at line 182 of file client.qh.

◆ version

int Client::version = this.version
inherited

Definition at line 174 of file client.qh.

◆ version_mismatch

bool Client::version_mismatch = this.version_mismatch
inherited

Definition at line 173 of file client.qh.

◆ version_nagtime

float Client::version_nagtime = this.version_nagtime
inherited

Definition at line 167 of file client.qh.

◆ wants_join

int Client::wants_join = this.wants_join
inherited

Definition at line 164 of file client.qh.

◆ weaponorder_byimpulse

string Client::weaponorder_byimpulse = this.weaponorder_byimpulse
inherited

Definition at line 191 of file client.qh.

◆ zoomstate

bool Client::zoomstate = this.zoomstate
inherited

Definition at line 176 of file client.qh.


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