SwampRoom class final

Represents a room/lobby in the Swamp server.

Constructors

SwampRoom.mock(Uint8List roomId)
Creates a mock SwampRoom for testing or placeholder purposes.

Properties

application → Uint8List?
The application identifier associated with the room.
final
channels → Set<Channel>
The set of channel IDs currently in the room.
no setter
hashCode → int
The hash code for this object.
no setteroverride
isEmpty → bool
Checks if the room has no players.
no setter
maxPlayers → int
The maximum number of players allowed in the room.
final
owner → int
The player ID of the room's owner (host).
no setter
players → Set<Channel>
The set of player IDs currently in the room.
no setter
roomFlags → RoomFlags
Flags configuring the room's behavior.
final
roomId → Uint8List
The unique identifier for the room.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getChannel(Channel player) → Channel?
Gets the channel ID for a player ID if present in the room.
getPlayer(Channel channel) → Channel?
Gets the player ID associated with a channel ID.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override