SuperTuxKart
Loading...
Searching...
No Matches
Classes | Enumerations
stk_peer.hpp File Reference

Defines functions to easily manipulate 8-bit network destinated strings. More...

#include "utils/no_copy.hpp"
#include "utils/time.hpp"
#include "utils/types.hpp"
#include <enet/enet.h>
#include <array>
#include <atomic>
#include <deque>
#include <memory>
#include <numeric>
#include <set>
#include <string>
#include <vector>
Include dependency graph for stk_peer.hpp:

Go to the source code of this file.

Classes

class  STKPeer
 Represents a peer. This class is used to interface the ENetPeer structure. More...
 

Enumerations

enum  PeerDisconnectInfo : unsigned int { PDI_TIMEOUT = 0 , PDI_NORMAL = 1 , PDI_KICK = 2 , PDI_KICK_HIGH_PING = 3 }
 
enum  AddonScore : int {
  AS_KART = 0 , AS_TRACK = 1 , AS_ARENA = 2 , AS_SOCCER = 3 ,
  AS_TOTAL = 4
}
 
enum  AlwaysSpectateMode : uint8_t { ASM_NONE = 0 , ASM_COMMAND = 1 , ASM_FULL = 2 }
 

Detailed Description

Defines functions to easily manipulate 8-bit network destinated strings.

Enumeration Type Documentation

◆ AlwaysSpectateMode

enum AlwaysSpectateMode : uint8_t
Enumerator
ASM_NONE 

Default, not spectating at all.

ASM_COMMAND 

Set by player through command.

ASM_FULL 

Set by server because too many players joined.

◆ PeerDisconnectInfo

enum PeerDisconnectInfo : unsigned int
Enumerator
PDI_TIMEOUT 

Timeout disconnected (default in enet).

PDI_NORMAL 

Normal disconnction with acknowledgement.

PDI_KICK 

Kick disconnection.

PDI_KICK_HIGH_PING 

Too high ping, kicked by server.