IOGameClient class

The socket IO implementation of GameClient

Inheritance

Constructors

IOGameClient({required GameAddress address, required GameCode code, required ProviderRef<GameClient> ref})

Properties

address GameAddress
final
gameStatus GameStatus
no getter
hashCode int
The hash code for this object.
no setterinherited
logger → Logger
finalinherited
ref ProviderRef<GameClient>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Disposes of the game client
override
exitGame(PlayerID playerID, GameCode code) Future<bool>
Causes the client to exit the game
override
gameLobby(PlayerID playerID, GameCode code) Stream<GameInfo>
override
gameStream(PlayerID playerID, GameCode code) Stream<GameOrError<Game<Event>>>
override
joinGame(PlayerID playerID, GameCode code, PlayerName name) Future<PlayerName>
Registers the client with the game server
override
newRound(PlayerID playerID, GameCode code) Future<bool>
Sends a new round event to the game server
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendEvent(PlayerID playerID, GameCode code, Event event) Future<bool>
Sends event to the game server
override
sendMessage(PlayerID playerID, GameCode code, String message) Future<bool>
Sends a message event to the game server
inherited
startGame(PlayerID playerID, GameCode code) Future<bool>
Sends a start event to the game server
override
toString() String
A string representation of this object.
inherited
undo(PlayerID playerID, GameCode code) Future<bool>
Sends an undo event to the game server
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited