ServerClient class abstract
A Client that can contact the server to manage games
The client can
- Start
- Delete
- Get Game Info
- Get List of Games that
playerID
is a part of
- 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
-
connect(
) → Future< void> - Connects to the backend
-
createGame(
PlayerID playerID, GameConfig config) → Future< GameCode> - Creates a game on the server
-
deleteGame(
PlayerID playerID, GameCode gameCode) → Future< bool> - Deletes the game on the server
-
disconnect(
) → Future< void> - Disconnect from the backend
-
dispose(
) → void - Disposes of the ServerClient (i.e. disconnects from the server)
-
getGames(
PlayerID playerID) → Future< IList< GameInfo> > - Gets a list of games on the server
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited