Package-level declarations
Types
Link copied to clipboard
Possible options for the orientation of the cell hexagons.
Link copied to clipboard
The mutable version of the library's Grid structure.
Link copied to clipboard
Scope for assembling State maps. For use with buildStateMap.
Functions
Link copied to clipboard
Provides a scope in which to build a Map
Link copied to clipboard
fun MutableGrid.change(address: Grid.Address, isVisible: Boolean = this[address].isVisible, isSelected: Boolean = this[address].isSelected)
Updates the Grid.State at the given Grid.Address.
Link copied to clipboard
inline fun <T : Grid> T.changed(address: Grid.Address, isVisible: Boolean = this[address].isVisible, isSelected: Boolean = this[address].isSelected): T
Returns a modified copy of the Grid with the specified Grid.State update at the given Grid.Address.
Link copied to clipboard
Toggles the Grid.State.isSelected value at the given Grid.Address.
Link copied to clipboard
Returns a modified copy of the Grid with the Grid.State.isSelected value toggled at the given Grid.Address.