Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <client.h>
Public Types | |
enum | Loginstate { CONNECTED, WAITLISTED, LOGGEDIN, SAVEDGAME, INGAME } |
Public Member Functions | |
Client () | |
Client (SOCKETALT &s) | |
~Client () | |
void | setLatestTimestamp (unsigned int ts) |
void | setUDP (SOCKETALT *udpSock, AddressIP &cltudpadr) |
void | setTCP () |
void | clearLatestTimestamp () |
unsigned int | getLatestTimestamp () const |
double | getDeltatime () const |
double | getNextDeltatime () const |
void | versionBuf (NetBuffer &buf) const |
Public Attributes | |
UnitContainer | game_unit |
AddressIP | cltadr |
AddressIP | cltudpadr |
SOCKETALT * | lossy_socket |
SOCKETALT | tcp_sock |
double | old_timeout |
double | latest_timeout |
double | elapsed_since_packet |
string | callsign |
string | name |
string | passwd |
string | server_ip |
unsigned short | server_port |
bool | ingame |
int | loginstate |
char | webcam |
char | portaudio |
char | secured |
char | jumpok |
string | jumpfile |
ObjSerial | netversion |
vector< string > | savegame |
float | comm_freq |
ClientState | last_packet |
string | _disconnectReason |
Prediction * | prediction |
Friends | |
std::ostream & | operator<< (std::ostream &ostr, const Client &c) |
enum Client::Loginstate |
Client::Client | ( | ) |
Definition at line 33 of file client.cpp.
References lossy_socket.
Client::Client | ( | SOCKETALT & | s) |
Definition at line 40 of file client.cpp.
References cltadr, SOCKETALT::getRemoteAddress(), lossy_socket, and tcp_sock.
Client::~Client | ( | ) |
Definition at line 48 of file client.cpp.
References prediction.
void Client::clearLatestTimestamp | ( | ) |
Definition at line 88 of file client.cpp.
double Client::getDeltatime | ( | ) | const |
Definition at line 101 of file client.cpp.
unsigned int Client::getLatestTimestamp | ( | ) | const |
Definition at line 96 of file client.cpp.
double Client::getNextDeltatime | ( | ) | const |
Definition at line 106 of file client.cpp.
void Client::setLatestTimestamp | ( | unsigned int | ts) |
Definition at line 73 of file client.cpp.
void Client::setTCP | ( | ) |
Definition at line 62 of file client.cpp.
References cltadr, cltudpadr, lossy_socket, and tcp_sock.
Definition at line 56 of file client.cpp.
References cltudpadr, and lossy_socket.
void Client::versionBuf | ( | NetBuffer & | buf) | const |
Definition at line 68 of file client.cpp.
References netversion, and NetBuffer::setVersion().
|
friend |
Definition at line 166 of file vsnet_clientstate.cpp.
string Client::callsign |
Definition at line 77 of file client.h.
Referenced by ZoneInfo::display().
AddressIP Client::cltadr |
Definition at line 67 of file client.h.
Referenced by Client(), operator<<(), and setTCP().
AddressIP Client::cltudpadr |
UnitContainer Client::game_unit |
Definition at line 64 of file client.h.
Referenced by ZoneInfo::display().
ClientState Client::last_packet |
SOCKETALT* Client::lossy_socket |
ObjSerial Client::netversion |
Definition at line 95 of file client.h.
Referenced by versionBuf().
Prediction* Client::prediction |
SOCKETALT Client::tcp_sock |
Definition at line 70 of file client.h.
Referenced by Client(), operator<<(), NetServer::sendCommunication(), and setTCP().