![]() |
PRooFPS-dd Dev Doc 1.0
PRooFPS-dd Developer Documentation
|
Definition at line 37 of file PlayerHandling.h.
#include <PlayerHandling.h>
Public Member Functions | |
CConsole & | getConsole () const |
PlayerHandling (PGE &pge, proofps_dd::Durations &durations, proofps_dd::GUI &gui, std::map< pge_network::PgeNetworkConnectionHandle, proofps_dd::Player > &mapPlayers, proofps_dd::Maps &maps, proofps_dd::Sounds &sounds) | |
PlayerHandling (const PlayerHandling &)=delete | |
PlayerHandling & | operator= (const PlayerHandling &)=delete |
PlayerHandling (PlayerHandling &&)=delete | |
PlayerHandling && | operator= (PlayerHandling &&)=delete |
Static Public Member Functions | |
static const char * | getLoggerModuleName () |
Protected Member Functions | |
void | handlePlayerDied (Player &player, XHair &xhair, const pge_network::PgeNetworkConnectionHandle &nKillerConnHandleServerSide, proofps_dd::GameMode &gameMode) |
void | handlePlayerRespawned (Player &player, XHair &xhair) |
void | serverRespawnPlayer (Player &player, bool restartGame, const proofps_dd::Config &config) |
void | serverUpdateRespawnTimers (const proofps_dd::Config &config, proofps_dd::GameMode &gameMode, proofps_dd::Durations &durations) |
void | updatePlayersOldValues () |
void | writePlayerList () |
bool | handleUserConnected (pge_network::PgeNetworkConnectionHandle connHandleServerSide, const pge_network::MsgUserConnectedServerSelf &msg, PGEcfgProfiles &cfgProfiles, proofps_dd::Config &config, proofps_dd::GameMode &gameMode, std::function< void(int)> &cbDisplayMapLoadingProgressUpdate) |
bool | handleUserDisconnected (pge_network::PgeNetworkConnectionHandle connHandleServerSide, const pge_network::MsgUserDisconnectedFromServer &msg, proofps_dd::GameMode &gameMode) |
bool | handleUserNameChange (pge_network::PgeNetworkConnectionHandle connHandleServerSide, const proofps_dd::MsgUserNameChangeAndBootupDone &msg, proofps_dd::Config &config, proofps_dd::GameMode &gameMode, PGEcfgProfiles &cfgProfiles) |
void | resetSendClientUpdatesCounter (proofps_dd::Config &config) |
void | serverSendUserUpdates (PGEcfgProfiles &cfgProfiles, proofps_dd::Config &config, proofps_dd::Durations &durations, proofps_dd::GameMode &gameMode) |
bool | handleUserUpdateFromServer (pge_network::PgeNetworkConnectionHandle connHandleServerSide, const proofps_dd::MsgUserUpdateFromServer &msg, XHair &xhair, const proofps_dd::Config &config, proofps_dd::GameMode &gameMode) |
bool | handleDeathNotificationFromServer (pge_network::PgeNetworkConnectionHandle nDeadConnHandleServerSide, const proofps_dd::MsgDeathNotificationFromServer &msg) |
bool | handlePlayerEventFromServer (pge_network::PgeNetworkConnectionHandle connHandleServerSide, const proofps_dd::MsgPlayerEventFromServer &msg) |
void | updatePlayersVisuals (const proofps_dd::Config &config, proofps_dd::GameMode &gameMode) |
![]() | |
void | allowListAppMessages () |
Networking (PGE &pge, proofps_dd::Durations &durations) | |
Networking (const Networking &)=delete | |
Networking & | operator= (const Networking &)=delete |
Networking (Networking &&)=delete | |
Networking && | operator= (Networking &&)=delete |
CConsole & | getConsole () const |
bool | isMyConnection (const pge_network::PgeNetworkConnectionHandle &connHandleServerSide) const |
const pge_network::PgeNetworkConnectionHandle & | getMyServerSideConnectionHandle () const |
bool | reinitializeNetworking () |
bool | isServer () const |
Private Attributes | |
PGE & | m_pge |
proofps_dd::GUI & | m_gui |
std::map< pge_network::PgeNetworkConnectionHandle, proofps_dd::Player > & | m_mapPlayers |
proofps_dd::Maps & | m_maps |
proofps_dd::Sounds & | m_sounds |
unsigned int | m_nSendClientUpdatesInEveryNthTick = 1 |
unsigned int | m_nSendClientUpdatesCntr = m_nSendClientUpdatesInEveryNthTick |
Additional Inherited Members | |
![]() | |
static const char * | getLoggerModuleName () |
![]() | |
pge_network::PgeNetworkConnectionHandle | m_nServerSideConnectionHandle |
Server-side connection handle received from server in PgePktUserConnected (server instance also receives this from itself). | |
![]() | |
static constexpr char * | szCVarClServerIp = "cl_server_ip" |
proofps_dd::PlayerHandling::PlayerHandling | ( | PGE & | pge, |
proofps_dd::Durations & | durations, | ||
proofps_dd::GUI & | gui, | ||
std::map< pge_network::PgeNetworkConnectionHandle, proofps_dd::Player > & | mapPlayers, | ||
proofps_dd::Maps & | maps, | ||
proofps_dd::Sounds & | sounds ) |
Definition at line 25 of file PlayerHandling.cpp.
|
delete |
|
delete |
CConsole & proofps_dd::PlayerHandling::getConsole | ( | ) | const |
Definition at line 49 of file PlayerHandling.cpp.
|
static |
Definition at line 20 of file PlayerHandling.cpp.
|
protected |
Definition at line 965 of file PlayerHandling.cpp.
|
protected |
Definition at line 58 of file PlayerHandling.cpp.
|
protected |
Definition at line 1018 of file PlayerHandling.cpp.
Definition at line 116 of file PlayerHandling.cpp.
|
protected |
Definition at line 216 of file PlayerHandling.cpp.
|
protected |
Definition at line 367 of file PlayerHandling.cpp.
|
protected |
Definition at line 437 of file PlayerHandling.cpp.
|
protected |
Definition at line 770 of file PlayerHandling.cpp.
|
delete |
|
delete |
|
protected |
Definition at line 643 of file PlayerHandling.cpp.
|
protected |
Definition at line 145 of file PlayerHandling.cpp.
|
protected |
Definition at line 650 of file PlayerHandling.cpp.
|
protected |
Definition at line 159 of file PlayerHandling.cpp.
|
protected |
Definition at line 192 of file PlayerHandling.cpp.
|
protected |
Definition at line 1074 of file PlayerHandling.cpp.
|
protected |
Definition at line 205 of file PlayerHandling.cpp.
|
private |
Definition at line 121 of file PlayerHandling.h.
|
private |
Definition at line 122 of file PlayerHandling.h.
|
private |
Definition at line 123 of file PlayerHandling.h.
|
private |
Definition at line 127 of file PlayerHandling.h.
|
private |
Definition at line 126 of file PlayerHandling.h.
|
private |
Definition at line 120 of file PlayerHandling.h.
|
private |
Definition at line 124 of file PlayerHandling.h.