public class Riddle extends GameMatrix implements Cloneable
BLOCK_SIZE, SIZE, UNSET| Constructor and Description |
|---|
Riddle()
Creates an empty full-writable riddle.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
int |
getFreeMask(int row,
int column)
Gets the free mask for the given cell.
|
boolean |
getWritable(int row,
int column)
Get whether a certain field is writable.
|
void |
set(int row,
int column,
byte value)
Set the value of a field.
|
void |
setWritable(int row,
int column,
boolean set)
Set a certain field writable.
|
public final boolean getWritable(int row,
int column)
row - the row of the cell to get the writability for.column - the column of the cell to get the writability for.true if the cell is writable.public final void setWritable(int row,
int column,
boolean set)
row - the row of the cell to set the writability for.column - the column of the cell to set the writability for.set - the value to set for the cell, true means writable.public Object clone()
public int getFreeMask(int row,
int column)
GameMatrixrow - the row of the cell to get the free mask for.column - the column of the to get the free mask for.public void set(int row,
int column,
byte value)
GameMatrixset in class GameMatrixrow - the row of the field.column - the column of the field.value - the value of the field.Copyright © 2017. All rights reserved.