GameService class abstract
A Client that can contact the server to manage games
The client can
- Start
- Delete
- Get Game Info
- Get List of Games
- 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
-
sc
↔ StreamController<
bool> -
getter/setter pair
Methods
-
connect(
) → Stream< bool> - Connects to the backend
-
createGame(
PlayerID playerID, GameConfig config) → Future< GameCode> - Creates a game on the server
-
deleteGame(
PlayerID playerID, GameCode code) → Future< bool> - Deletes the game on the server
-
disconnect(
) → Future< void> - Disconnect from the backend
-
dispose(
) → void - Disposes of the GameService (i.e. disconnects from the server)
-
getGames(
PlayerID playerID) → Future< IList< GameInfo> > - Gets a list of games on the server
-
joinGame(
PlayerID playerID, GameCode code, PlayerName name) → Future< PlayerName?> - Registers the client with the game 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