RoundService 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
-
sc
↔ StreamController<
bool> -
getter/setter pair
Methods
-
connect(
) → Stream< bool> - Connects to the backend
-
disconnect(
) → Future< void> - Disconnect from the backend
-
dispose(
) → void - Disposes of the RoundService (i.e. disconnects from the server)
-
errorStream(
PlayerID playerID, GameCode code) → Stream< GameError> -
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< GameState< Event, Game> > -
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<
E extends Event> (PlayerID playerID, GameCode code, E event) → Future< bool> -
Sends
event
to the game server -
startGame(
PlayerID playerID, GameCode code) → Future< bool> - Sends a start request to the game server
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited