inventoryIndex

fun inventoryIndex(row: Int, column: Int): Int

Gives the index for a given row and column. Does not throw an exception if row/column are out of range.

Return

the index for the given.

Parameters

row

the row position for the inventory item (0-7)

column

the column position for the inventory item. (0-3)