GameTable class

Annotations

Constructors

GameTable({IgnoreEqualityBox<Map<VectorDefinition, TableCell>> cellsBox = const IgnoreEqualityBox({}), ItemLocation? background, VectorDefinition? minCell, VectorDefinition? maxCell})
const

Properties

background → ItemLocation?
final
cells → Map<VectorDefinition, TableCell>
no setter
cellsBox → IgnoreEqualityBox<Map<VectorDefinition, TableCell>>
final
copyWith → GameTableCopyWith<GameTable, GameTable, GameTable>
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isRestricted → bool
Whether this table is limited to the inclusive rectangle between its configured minimum and maximum cells.
no setter
maxCell → VectorDefinition?
final
minCell → VectorDefinition?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

calculateSpan(VectorDefinition start, CellMergeDirection direction) → int
canMerge(VectorDefinition start, CellMergeDirection direction, int span) → bool
containsCell(VectorDefinition position) → bool
getCell(VectorDefinition position) → TableCell
getParentCell(VectorDefinition position) → VectorDefinition
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → String
inherited
toMap() → Map<String, dynamic>
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

maxMergeSpan → const int