WorldState class final

Annotations

Constructors

WorldState({String? name, GameState gameState = GameState.play, GameTable table = const GameTable(), String tableName = '', GameInfo info = const GameInfo(), FileMetadata metadata = const FileMetadata(), Map<String, Set<Channel>> teamMembers = const {}, Map<String, Set<Channel>> gameRoleMembers = const {}, List<ChatMessage> messages = const [], Channel id = kAuthorityChannel, List<GameDialog> dialogs = const [], Map<String, Uint8List> images = const {}, ServerState serverState = const ServerState(), AuthenticatedRequested? authRequest, GameToolbar toolbar = const GameToolbar(), required SetonixData data})
const

Properties

authRequest → AuthenticatedRequested?
final
copyWith → WorldStateCopyWith<WorldState, WorldState, WorldState>
no setterinherited
data → SetonixData
final
dialogs → List<GameDialog>
final
gameRoleMembers → Map<String, Set<Channel>>
final
gameState → GameState
final
hashCode → int
The hash code for this object.
no setterinherited
id → int
final
images → Map<String, Uint8List>
final
info → GameInfo
final
messages → List<ChatMessage>
final
metadata → FileMetadata
final
name → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serverState → ServerState
final
table → GameTable
final
tableName → String
final
teamMembers → Map<String, Set<Channel>>
final
toolbar → GameToolbar
final

Methods

calculateLocalSpan(VectorDefinition start, CellMergeDirection direction) → int
calculateSpan(GlobalVectorDefinition start, CellMergeDirection direction) → int
getGameRoles([Channel? id]) → Set<String>
getLocalParentCell(VectorDefinition start) → VectorDefinition
getParentCell(GlobalVectorDefinition position) → VectorDefinition
getTable(String name) → GameTable?
getTableOrDefault(String name) → GameTable
getTeams([Channel? id]) → Set<String>
isCellVisible(GlobalVectorDefinition cell, [Channel? id]) → bool
mapTable(String name, GameTable mapper(GameTable?)) → WorldState
mapTableOrDefault(String name, GameTable mapper(GameTable)) → WorldState
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
protectCell(VectorDefinition cell, [Channel? id]) → TableCell
protectTable([Channel? id]) → GameTable
save() → SetonixData
toGlobal(VectorDefinition position) → GlobalVectorDefinition
toJson() → String
inherited
toMap() → Map<String, dynamic>
inherited
toString() → String
A string representation of this object.
inherited
updateTable(String name, GameTable table) → WorldState

Operators

operator ==(Object other) → bool
The equality operator.
inherited