GekkoNet 1.0
C/C++ Peer to Peer Game Networking SDK
Loading...
Searching...
No Matches
Gekko::Player Class Reference

#include <backend.h>

Collaboration diagram for Gekko::Player:

Public Member Functions

 Player (Handle phandle, GekkoPlayerType type, NetAddress *addr, u32 magic=0)
GekkoPlayerType GetType ()
PlayerStatus GetStatus ()
void SetStatus (PlayerStatus type)
void SetChecksum (Frame frame, u32 checksum)

Public Attributes

Handle handle
u8 sync_num
u16 session_magic
NetStats stats
NetAddress address
std::map< Frame, u32 > session_health
InputCache input_cache
u64 last_input_send_time = 0
u8 disconnect_msgs_left = 0
u64 last_disconnect_msg_time = 0
bool requires_spectator_state = false
bool spectator_state_configured = false
bool spectator_state_acked = true
Frame spectator_state_frame = GameInput::NULL_FRAME
std::vector< u8 > spectator_state
u64 last_spectator_state_send_time = 0
std::map< Handle, Frame > peer_claims
std::map< Handle, Frame > peer_claims_sent
Frame disconnect_frame = INT32_MAX
Frame applied_disconnect_frame = INT32_MAX
u64 last_claim_sent_time = 0
u64 last_claim_raise_time = 0
AdvantageHistory adv_history

Private Attributes

GekkoPlayerType _type
PlayerStatus _status

Detailed Description

Definition at line 58 of file backend.h.

Constructor & Destructor Documentation

◆ Player()

Gekko::Player::Player ( Handle phandle,
GekkoPlayerType type,
NetAddress * addr,
u32 magic = 0 )

Definition at line 3 of file player.cpp.

Member Function Documentation

◆ GetStatus()

Gekko::PlayerStatus Gekko::Player::GetStatus ( )

Definition at line 25 of file player.cpp.

Here is the caller graph for this function:

◆ GetType()

GekkoPlayerType Gekko::Player::GetType ( )

Definition at line 20 of file player.cpp.

◆ SetChecksum()

void Gekko::Player::SetChecksum ( Frame frame,
u32 checksum )

Definition at line 35 of file player.cpp.

◆ SetStatus()

void Gekko::Player::SetStatus ( PlayerStatus type)

Definition at line 30 of file player.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ _status

PlayerStatus Gekko::Player::_status
private

Definition at line 127 of file backend.h.

◆ _type

GekkoPlayerType Gekko::Player::_type
private

Definition at line 125 of file backend.h.

◆ address

NetAddress Gekko::Player::address

Definition at line 80 of file backend.h.

◆ adv_history

AdvantageHistory Gekko::Player::adv_history

Definition at line 122 of file backend.h.

◆ applied_disconnect_frame

Frame Gekko::Player::applied_disconnect_frame = INT32_MAX

Definition at line 115 of file backend.h.

◆ disconnect_frame

Frame Gekko::Player::disconnect_frame = INT32_MAX

Definition at line 112 of file backend.h.

◆ disconnect_msgs_left

u8 Gekko::Player::disconnect_msgs_left = 0

Definition at line 88 of file backend.h.

◆ handle

Handle Gekko::Player::handle

Definition at line 72 of file backend.h.

◆ input_cache

InputCache Gekko::Player::input_cache

Definition at line 84 of file backend.h.

◆ last_claim_raise_time

u64 Gekko::Player::last_claim_raise_time = 0

Definition at line 120 of file backend.h.

◆ last_claim_sent_time

u64 Gekko::Player::last_claim_sent_time = 0

Definition at line 118 of file backend.h.

◆ last_disconnect_msg_time

u64 Gekko::Player::last_disconnect_msg_time = 0

Definition at line 90 of file backend.h.

◆ last_input_send_time

u64 Gekko::Player::last_input_send_time = 0

Definition at line 86 of file backend.h.

◆ last_spectator_state_send_time

u64 Gekko::Player::last_spectator_state_send_time = 0

Definition at line 103 of file backend.h.

◆ peer_claims

std::map<Handle, Frame> Gekko::Player::peer_claims

Definition at line 106 of file backend.h.

◆ peer_claims_sent

std::map<Handle, Frame> Gekko::Player::peer_claims_sent

Definition at line 109 of file backend.h.

◆ requires_spectator_state

bool Gekko::Player::requires_spectator_state = false

Definition at line 93 of file backend.h.

◆ session_health

std::map<Frame, u32> Gekko::Player::session_health

Definition at line 82 of file backend.h.

◆ session_magic

u16 Gekko::Player::session_magic

Definition at line 76 of file backend.h.

◆ spectator_state

std::vector<u8> Gekko::Player::spectator_state

Definition at line 101 of file backend.h.

◆ spectator_state_acked

bool Gekko::Player::spectator_state_acked = true

Definition at line 97 of file backend.h.

◆ spectator_state_configured

bool Gekko::Player::spectator_state_configured = false

Definition at line 95 of file backend.h.

◆ spectator_state_frame

Frame Gekko::Player::spectator_state_frame = GameInput::NULL_FRAME

Definition at line 99 of file backend.h.

◆ stats

NetStats Gekko::Player::stats

Definition at line 78 of file backend.h.

◆ sync_num

u8 Gekko::Player::sync_num

Definition at line 74 of file backend.h.


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