net.sf.kagiru.navigation
Class SimpleNavigationWrapper
java.lang.Object
net.sf.kagiru.navigation.NavigationWrapper
net.sf.kagiru.navigation.SimpleNavigationWrapper
- All Implemented Interfaces:
- java.io.Serializable
public class SimpleNavigationWrapper
- extends NavigationWrapper
Will simply stay in the puzzle:
- if you're at the last row and go down, you go to the first (and visa versa)
- same hold for columns and right/left.
Stays at all times in the column or row.
- See Also:
- Serialized Form
Method Summary |
protected int |
wrapColumn(int rawColumn,
int rawRow,
Puzzle puzzle)
|
protected int |
wrapRow(int rawColumn,
int rawRow,
Puzzle puzzle)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleNavigationWrapper
public SimpleNavigationWrapper()
wrapColumn
protected int wrapColumn(int rawColumn,
int rawRow,
Puzzle puzzle)
- Specified by:
wrapColumn
in class NavigationWrapper
wrapRow
protected int wrapRow(int rawColumn,
int rawRow,
Puzzle puzzle)
- Specified by:
wrapRow
in class NavigationWrapper
This code documentation is disclosed as part of . It is licensed under the and comes with NO WARRANTY. See file for more info.