NoServerGameClient class

An implementation of a GameClient for a local game on device with no server connection

Warning implementation not complete or tested yet

Inheritance

Constructors

NoServerGameClient()

Properties

hashCode int
The hash code for this object.
no setterinherited
logger → Logger
finalinherited
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<String?>
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