← back to roto on ba3a.dev

CoverageMatrix

class CoverageMatrix(val actions: List<String>, val facings: List<String>, cells: Map<Pair<String, String>, CoverageCell>)

Every action (row) and facing (column) of a profile, in roto.json order, with a cell for each pair.

Constructors

Link copied to clipboard
constructor(actions: List<String>, facings: List<String>, cells: Map<Pair<String, String>, CoverageCell>)

Types

Link copied to clipboard
object Companion

Builds the matrix for config's actions and facings.

Properties

Link copied to clipboard

the rows, in roto.json order

Link copied to clipboard

the columns, in roto.json order

Link copied to clipboard

What to do next, or null when nothing is left.

Functions

Link copied to clipboard
fun cell(action: String, facing: String): CoverageCell

The cell of action and facing, which both must be in the matrix.