namespace
MultiplayerMultiplayer-related classes, compiled only if WITH_MULTIPLAYER
Classes
- struct ConnectionResult
- Describes a connection result of INetworkHandler::
OnPeerConnected() - class INetworkHandler
- Interface to handle network requests on a server.
- class IServerObserver
- Interface to observe publicly-listed running servers.
- class MultiLevelHandler
- Level handler of an online multiplayer game session.
- class NetworkManager
- Allows to create network clients and servers.
- struct Peer
- Remote peer.
- struct ServerDesc
- Server description.
- class ServerDiscovery
- Allows to monitor publicly-listed running servers for server listing.
Enums
- enum class MultiplayerGameMode { Unknown = 0, Battle, TeamBattle, CaptureTheFlag, Race, TeamRace, TreasureHunt, Cooperation }
- Multiplayer game mode.
-
enum class NetworkChannel : std::
uint8_t { Main, UnreliableUpdates, Count } - Network packet channel.
- enum class NetworkState { None, Listening, Connecting, Connected }
- State of network connection.
- enum class BroadcastPacketType { Null, DiscoveryRequest, DiscoveryResponse }
- Packet type broadcasted on the local network.
- enum class ClientPacketType { Null, Ping, Reserved, Auth, LevelReady, ChatMessage, PlayerUpdate, PlayerKeyPress }
- Packet type going from client to server.
- enum class ServerPacketType { Null, Pong, Reserved, LoadLevel, ChangeGameMode, PlaySfx, PlayCommonSfx, ShowAlert, OverrideLevelText, ChatMessage, SyncTileMap, SetTrigger, AdvanceTileAnimation, RevertTileAnimation, CreateControllablePlayer, CreateRemoteActor, CreateMirroredActor, DestroyRemoteActor, UpdateAllActors, PlayerRespawn, PlayerMoveInstantly, PlayerAckWarped, PlayerActivateForce, PlayerAddHealth, PlayerEmitWeaponFlare, PlayerChangeWeapon, PlayerRefreshAmmo, PlayerRefreshWeaponUpgrades, PlayerRefreshCoins, PlayerRefreshGems, PlayerSetControllable, PlayerSetDizzyTime, PlayerSetInvulnerability, PlayerSetLaps, PlayerSetModifier, PlayerSetStats, PlayerTakeDamage, PlayerActivateSpring, PlayerWarpIn }
- Packet type going from server to client.
-
enum class Reason : std::
uint32_t { Unknown, Disconnected, IncompatibleVersion, ServerIsFull, ServerNotReady, ServerStopped, ServerStoppedForMaintenance, ServerStoppedForReconfiguration, ServerStoppedForUpdate, ConnectionLost, ConnectionTimedOut, Kicked, Banned } - Client disconnect reason.
Enum documentation
enum class Jazz2:: Multiplayer:: MultiplayerGameMode
Multiplayer game mode.
Enumerators | |
---|---|
Unknown |
Unspecified |
Battle |
Battle |
TeamBattle |
Team battle |
CaptureTheFlag |
Capture the flag |
Race |
Race |
TeamRace |
Team race |
TreasureHunt |
Treasure hunt |
Cooperation |
Cooperation |
enum class Jazz2:: Multiplayer:: NetworkChannel : std:: uint8_t
#include <Jazz2/Multiplayer/NetworkManager.h>
Network packet channel.
Enumerators | |
---|---|
Main |
Main |
UnreliableUpdates |
Unreliable updates |
Count |
Count of supported channels |
enum class Jazz2:: Multiplayer:: NetworkState
#include <Jazz2/Multiplayer/NetworkManager.h>
State of network connection.
Enumerators | |
---|---|
None |
Disconnected |
Listening |
Listening |
Connecting |
Connecting to server |
Connected |
Connected to server |
enum class Jazz2:: Multiplayer:: BroadcastPacketType
#include <Jazz2/Multiplayer/PacketTypes.h>
Packet type broadcasted on the local network.
enum class Jazz2:: Multiplayer:: ClientPacketType
#include <Jazz2/Multiplayer/PacketTypes.h>
Packet type going from client to server.
enum class Jazz2:: Multiplayer:: ServerPacketType
#include <Jazz2/Multiplayer/PacketTypes.h>
Packet type going from server to client.
enum class Jazz2:: Multiplayer:: Reason : std:: uint32_t
#include <Jazz2/Multiplayer/Reason.h>
Client disconnect reason.