GameClient class abstract
A client for a particular game
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → Logger
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Disposes of the game client
-
exitGame(
PlayerID playerID, GameCode code) → Future< bool> - Causes the client to exit the game
-
gameLobby(
PlayerID playerID, GameCode code) → Stream< GameInfo> -
gameStream(
PlayerID playerID, GameCode code) → Stream< GameOrError< Game< >Event> > -
joinGame(
PlayerID playerID, GameCode code, PlayerName name) → Future< PlayerName?> - Registers the client with the game server
-
newRound(
PlayerID playerID, GameCode code) → Future< bool> - Sends a new round event to the game server
-
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 -
sendMessage(
PlayerID playerID, GameCode code, String message) → Future< bool> - Sends a message event to the game server
-
startGame(
PlayerID playerID, GameCode code) → Future< bool> - Sends a start event to the game server
-
toString(
) → String -
A string representation of this object.
inherited
-
undo(
PlayerID playerID, GameCode code) → Future< bool> - Sends an undo event to the game server
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited