Method
IpuzGridcheck_stride
Declaration [src]
gboolean
ipuz_grid_check_stride (
IpuzGrid* self,
IpuzClueDirection direction,
guint index,
IpuzGuesses* guesses,
IpuzGridCheckType check_type
)
Description [src]
Invokes the operation determined by check_type
on the stride guess
determined by direction
and index
.
This function allows subclasses to specify puzzle-specific
behavior. Unlike ipuz_grid_check_cell()
, this function is
optional for puzzles as most puzzles don’t use stride guesses. A
default handler is provided that just returns FALSE
.
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
direction
-
Type:
IpuzClueDirection
No description available.
index
-
Type:
guint
No description available.
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
.