Interface StepChecker
All Known Implementing Classes:
-
public interface StepChecker
used to spot reachable cells in grid. FloodFill class organizes floodfill
process delegating actual reachability checking to this interface.
See Also:
-
Method Detail
canStepTo
-
checks if unit can move in given direction.
Parameters:
-
from - the place on ground at current position
-
direction - the direction to move, y value is irrelevant
Returns:
-
step to reach that cell, or null cell is not reachable.
canJumpTo
-
checks if unit can jump in given direction.
Parameters:
-
from - the place on ground at current position
-
direction - the direction to move, y value is irrelevant
Returns:
-
step to reach that cell, or null cell is not reachable.
DocFlex/Doclet is both a multi-format Javadoc doclet and a free edition of DocFlex/Javadoc. If you need to customize your Javadoc without writing a full-blown doclet from scratch, DocFlex/Javadoc may be the only tool able to help you! Find out more at www.docflex.com