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

Public Member Functions

 Observer ::~ Observer ()
 
 Client ::Client ()
 
 Client ::Client (string name)
 
virtual void Client ::m_unwind ()
 
 Observer ::Observer ()
 
 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.wasplayer
 
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
 
int cmd_floodcount = this.cmd_floodcount
 
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 More...
 
string crypto_idfp = this.crypto_idfp
 fingerprint of ID used by the player entity, or string_null if not identified More...
 
bool crypto_idfp_signed = this.crypto_idfp_signed
 set if the player's ID has been signed More...
 
string crypto_keyfp = this.crypto_keyfp
 fingerprint of CA key the player used to authenticate More...
 
string crypto_mykeyfp = this.crypto_mykeyfp
 fingerprint of CA key the server used to authenticate to the player More...
 
string crypto_signmethod = this.crypto_signmethod
 the string "HMAC-SHA256" if signing, and string_null if plaintext More...
 
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
 
float hasweapon_complain_spam = this.hasweapon_complain_spam
 
int hitplotfh = this.hitplotfh
 
float idlekick_lasttimeleft = this.idlekick_lasttimeleft
 
int impulse = this.impulse
 
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
 
float motd_actived_time = this.motd_actived_time
 
vector movement = this.movement
 
vector movement_old = this.movement_old
 
bool muted = this.muted
 
string netaddress = this.netaddress
 Client IP. More...
 
string netname = this.netname
 Client name. More...
 
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
 
bool wasplayer = this.wasplayer
 
string weaponorder_byimpulse = this.weaponorder_byimpulse
 
bool zoomstate = this.zoomstate
 

Detailed Description

Definition at line 258 of file client.qh.

Constructor & Destructor Documentation

◆ Observer ::~ Observer()

Observer::Observer ::~ Observer ( )
inline

Definition at line 262 of file client.qh.

References ENDCLASS.

262 { }

Member Function Documentation

◆ Client ::Client() [1/2]

Client::Client ::Client ( )
inlineinherited

Definition at line 239 of file client.qh.

References classname, ClientState_attach(), and make_impure.

239  {
240  if (this.m_unwind(this)) return this;
241  make_impure(this);
242  this.classname = "player_joining";
243  static int playerid_last;
244  this.playerid = ++playerid_last;
245  ClientState_attach(this);
246  }
string classname
Definition: csprogsdefs.qc:107
#define make_impure(e)
Definition: oo.qh:15
int playerid
Definition: client.qh:149
void ClientState_attach(entity this)
Definition: state.qc:46
+ Here is the call graph for this function:

◆ Client ::Client() [2/2]

Client::Client ::Client ( string  name)
inlineinherited

Definition at line 250 of file client.qh.

References CONSTRUCT, cvar_defstring(), ENDCLASS, and name.

250  {
251  CONSTRUCT(Client);
252  this.netname = name;
253  this.netaddress = "local";
254  this.playermodel = cvar_defstring("sv_defaultplayermodel");
255  }
#define CONSTRUCT(cname,...)
Definition: oo.qh:111
string playermodel
Definition: client.qh:96
Definition: client.qh:88
string netaddress
Client IP.
Definition: client.qh:95
string netname
Client name.
Definition: client.qh:90
+ Here is the call graph for this function:

◆ Client ::m_unwind()

virtual void Client::Client ::m_unwind ( )
virtualinherited

◆ Observer ::Observer()

Observer::Observer ::Observer ( )
inline

Definition at line 259 of file client.qh.

References classname, and STR_OBSERVER.

259  {
260  this.classname = STR_OBSERVER;
261  }
string classname
Definition: csprogsdefs.qc:107
const string STR_OBSERVER
Definition: utils.qh:7

◆ STATIC_METHOD() [1/2]

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

◆ STATIC_METHOD() [2/2]

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

Member Data Documentation

◆ accuracy

entity Client::accuracy = this.accuracy
inherited

Definition at line 183 of file client.qh.

◆ active_minigame

entity Client::active_minigame = this.active_minigame
inherited

Definition at line 169 of file client.qh.

◆ allowed_timeouts

int Client::allowed_timeouts = this.allowed_timeouts
inherited

Definition at line 168 of file client.qh.

◆ autojoin_checked

int Client::autojoin_checked = this.wasplayer
inherited

Definition at line 193 of file client.qh.

◆ button0

int Client::button0 = this.button0
inherited

Definition at line 115 of file client.qh.

◆ button10

int Client::button10 = this.button10
inherited

Definition at line 124 of file client.qh.

◆ button11

int Client::button11 = this.button11
inherited

Definition at line 125 of file client.qh.

◆ button12

int Client::button12 = this.button12
inherited

Definition at line 126 of file client.qh.

◆ button13

int Client::button13 = this.button13
inherited

Definition at line 127 of file client.qh.

◆ button14

int Client::button14 = this.button14
inherited

Definition at line 128 of file client.qh.

◆ button15

int Client::button15 = this.button15
inherited

Definition at line 129 of file client.qh.

◆ button16

int Client::button16 = this.button16
inherited

Definition at line 130 of file client.qh.

◆ button2

int Client::button2 = this.button2
inherited

Definition at line 116 of file client.qh.

◆ button3

int Client::button3 = this.button3
inherited

Definition at line 117 of file client.qh.

◆ button4

int Client::button4 = this.button4
inherited

Definition at line 118 of file client.qh.

◆ button5

int Client::button5 = this.button5
inherited

Definition at line 119 of file client.qh.

◆ button6

int Client::button6 = this.button6
inherited

Definition at line 120 of file client.qh.

◆ button7

int Client::button7 = this.button7
inherited

Definition at line 121 of file client.qh.

◆ button8

int Client::button8 = this.button8
inherited

Definition at line 122 of file client.qh.

◆ button9

int Client::button9 = this.button9
inherited

Definition at line 123 of file client.qh.

◆ buttonchat

int Client::buttonchat = this.buttonchat
inherited

Definition at line 132 of file client.qh.

◆ buttons_old

int Client::buttons_old = this.buttons_old
inherited

Definition at line 157 of file client.qh.

◆ buttonuse

int Client::buttonuse = this.buttonuse
inherited

Definition at line 131 of file client.qh.

◆ clientcolors

int Client::clientcolors = this.clientcolors
inherited

Definition at line 93 of file client.qh.

◆ clientdata

entity Client::clientdata = this.clientdata
inherited

Definition at line 188 of file client.qh.

◆ cmd_floodcount

int Client::cmd_floodcount = this.cmd_floodcount
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 91 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 108 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 104 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 106 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 100 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 102 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 110 of file client.qh.

◆ cursor_active

int Client::cursor_active = this.cursor_active
inherited

Definition at line 134 of file client.qh.

◆ cursor_screen

vector Client::cursor_screen = this.cursor_screen
inherited

Definition at line 135 of file client.qh.

◆ cursor_trace_endpos

vector Client::cursor_trace_endpos = this.cursor_trace_endpos
inherited

Definition at line 137 of file client.qh.

◆ cursor_trace_ent

entity Client::cursor_trace_ent = this.cursor_trace_ent
inherited

Definition at line 138 of file client.qh.

◆ cursor_trace_start

vector Client::cursor_trace_start = this.cursor_trace_start
inherited

Definition at line 136 of file client.qh.

◆ hasweapon_complain_spam

float Client::hasweapon_complain_spam = this.hasweapon_complain_spam
inherited

Definition at line 184 of file client.qh.

◆ hitplotfh

int Client::hitplotfh = this.hitplotfh
inherited

Definition at line 187 of file client.qh.

◆ idlekick_lasttimeleft

float Client::idlekick_lasttimeleft = this.idlekick_lasttimeleft
inherited

Definition at line 153 of file client.qh.

◆ impulse

int Client::impulse = this.impulse
inherited

Definition at line 113 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 176 of file client.qh.

◆ killcount

int Client::killcount = this.killcount
inherited

Definition at line 171 of file client.qh.

◆ latency_cnt

int Client::latency_cnt = this.latency_cnt
inherited

Definition at line 179 of file client.qh.

◆ latency_sum

float Client::latency_sum = this.latency_sum
inherited

Definition at line 178 of file client.qh.

◆ latency_time

float Client::latency_time = this.latency_time
inherited

Definition at line 180 of file client.qh.

◆ model_randomizer

float Client::model_randomizer = this.model_randomizer
inherited

Definition at line 182 of file client.qh.

◆ motd_actived_time

float Client::motd_actived_time = this.motd_actived_time
inherited

Definition at line 162 of file client.qh.

◆ movement

vector Client::movement = this.movement
inherited

Definition at line 145 of file client.qh.

◆ movement_old

vector Client::movement_old = this.movement_old
inherited

Definition at line 156 of file client.qh.

◆ muted

bool Client::muted = this.muted
inherited

Definition at line 152 of file client.qh.

◆ netaddress

string Client::netaddress = this.netaddress
inherited

Client IP.

Definition at line 95 of file client.qh.

◆ netname

string Client::netname = this.netname
inherited

Client name.

Definition at line 90 of file client.qh.

Referenced by W_WeaponFrame().

◆ netname_previous

string Client::netname_previous = this.netname_previous
inherited

Definition at line 167 of file client.qh.

◆ parm_idlesince

int Client::parm_idlesince = this.parm_idlesince
inherited

Definition at line 151 of file client.qh.

◆ ping

float Client::ping = this.ping
inherited

Definition at line 140 of file client.qh.

◆ ping_movementloss

float Client::ping_movementloss = this.ping_movementloss
inherited

Definition at line 142 of file client.qh.

◆ ping_packetloss

float Client::ping_packetloss = this.ping_packetloss
inherited

Definition at line 141 of file client.qh.

◆ playerid

int Client::playerid = this.playerid
inherited

Definition at line 149 of file client.qh.

◆ playermodel

string Client::playermodel = this.playermodel
inherited

Definition at line 96 of file client.qh.

◆ playerskin

string Client::playerskin = this.playerskin
inherited

Definition at line 97 of file client.qh.

◆ pm_frametime

float Client::pm_frametime = this.pm_frametime
inherited

Definition at line 154 of file client.qh.

◆ pressedkeys

int Client::pressedkeys = this.pressedkeys
inherited

Definition at line 155 of file client.qh.

◆ race_completed

bool Client::race_completed = this.race_completed
inherited

Definition at line 177 of file client.qh.

◆ scorekeeper

entity Client::scorekeeper = this.scorekeeper
inherited

Definition at line 185 of file client.qh.

◆ specialcommand_pos

int Client::specialcommand_pos = this.specialcommand_pos
inherited

Definition at line 186 of file client.qh.

◆ spectatee_status

int Client::spectatee_status = this.spectatee_status
inherited

Definition at line 174 of file client.qh.

◆ spectatortime

float Client::spectatortime = this.spectatortime
inherited

Definition at line 164 of file client.qh.

◆ startplaytime

float Client::startplaytime = this.startplaytime
inherited

Definition at line 165 of file client.qh.

◆ taunt_soundtime

float Client::taunt_soundtime = this.taunt_soundtime
inherited

Definition at line 170 of file client.qh.

◆ team

int Client::team = this.team
inherited

Definition at line 92 of file client.qh.

◆ teamkill_complain

float Client::teamkill_complain = this.teamkill_complain
inherited

Definition at line 158 of file client.qh.

◆ teamkill_soundsource

entity Client::teamkill_soundsource = this.teamkill_soundsource
inherited

Definition at line 160 of file client.qh.

◆ teamkill_soundtime

float Client::teamkill_soundtime = this.teamkill_soundtime
inherited

Definition at line 159 of file client.qh.

◆ usekeypressed

bool Client::usekeypressed = this.usekeypressed
inherited

Definition at line 161 of file client.qh.

◆ v_angle

vector Client::v_angle = this.v_angle
inherited

Definition at line 144 of file client.qh.

Referenced by W_WeaponFrame().

◆ v_angle_old

vector Client::v_angle_old = this.v_angle_old
inherited

Definition at line 181 of file client.qh.

◆ version

int Client::version = this.version
inherited

Definition at line 173 of file client.qh.

◆ version_mismatch

bool Client::version_mismatch = this.version_mismatch
inherited

Definition at line 172 of file client.qh.

◆ version_nagtime

float Client::version_nagtime = this.version_nagtime
inherited

Definition at line 166 of file client.qh.

◆ wasplayer

bool Client::wasplayer = this.wasplayer
inherited

Definition at line 191 of file client.qh.

◆ weaponorder_byimpulse

string Client::weaponorder_byimpulse = this.weaponorder_byimpulse
inherited

Definition at line 192 of file client.qh.

◆ zoomstate

bool Client::zoomstate = this.zoomstate
inherited

Definition at line 175 of file client.qh.


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