RoomDataGameState<T extends GameState> class

Contains relevant room data and the game state.

Inheritance

Constructors

RoomDataGameState({required Game game, required List<Player> players, required Player host, required List<Event> events, required T gameState})
const

Properties

events List<Event>
Event trace.
finalinherited
game Game
Game being played.
finalinherited
gameStarted bool
Get if the game session has started.
no setterinherited
gameState → T
Current state of the game.
final
hashCode int
The hash code for this object.
no setterinherited
hasRequiredPlayers bool
Get if the room has the required player count.
no setterinherited
host Player
Player that owns the room.
finalinherited
isOvercapacity bool
Get if the room is over the game player capacity.
no setterinherited
players List<Player>
All players in the room.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cast<U extends GameState>() RoomDataGameState<U>
Change game state type.
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