Method
IpuzGridcheck_cell
Declaration [src]
gboolean
ipuz_grid_check_cell (
IpuzGrid* self,
IpuzCell* cell,
const IpuzCellCoord* coord,
IpuzGuesses* guesses,
IpuzGridCheckType check_type
)
Description [src]
Invokes the operation determined by check_type
on cell
and
guesses
at coord
.
This function allows subclasses to specify puzzle-specific
behavior. For example, if check_type
is IPUZ_GRID_GUESSABLE
, then
it will return TRUE
if the cell can accept a users’s guess (eg. is
not a block or null with crosswords, etc).
This function is used by IpuzGrid
to maintain consistency
of the puzzle in its operations. Subclasses should implement this
method in order to define their behavior. It is not expected that
most users will ever need to call this function.
See IpuzGridCheckType
for more information on the specific operations.
Note
Some of the operation types can modify either guesses or cell.
Parameters
cell
-
Type:
IpuzCell
A cell to check.
The data is owned by the caller of the method. coord
-
Type:
IpuzCellCoord
The coordinate of
cell
.The data is owned by the caller of the method. guesses
-
Type:
IpuzGuesses
The guesses to check.
The data is owned by the caller of the method. check_type
-
Type:
IpuzGridCheckType
The operation to perform at
coord
.