Jazz2::Multiplayer namespace

Multiplayer-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

Network packet channel.

Enumerators
Main

Main

UnreliableUpdates

Unreliable updates

Count

Count of supported channels

enum class Jazz2::Multiplayer::NetworkState

State of network connection.

Enumerators
None

Disconnected

Listening

Listening

Connecting

Connecting to server

Connected

Connected to server

enum class Jazz2::Multiplayer::BroadcastPacketType

Packet type broadcasted on the local network.

enum class Jazz2::Multiplayer::ClientPacketType

Packet type going from client to server.

enum class Jazz2::Multiplayer::ServerPacketType

Packet type going from server to client.

enum class Jazz2::Multiplayer::Reason : std::uint32_t

Client disconnect reason.