|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StickerSwappingTwistyPuzzle
Extends the TwistyPuzzle
interface to include new methods for twisty
puzzles for which a twist simply swaps stickers around. For instance, a
Rubik's Cube is such a puzzle, but a Square One is not.
Method Summary | |
---|---|
int |
getLocation(int index)
Gets the index of the sticker which originated in the current location of the specified sticker. |
int |
getSticker(int loc)
Gets the index of the sticker currently in the specified location. |
Methods inherited from interface smithers.twisty.TwistyPuzzle |
---|
getColor, getPolygon, getScale, getTwist, isSolved, scramble, stickerCount, twist |
Method Detail |
---|
int getLocation(int index)
index
- the sticker
getSticker(int)
int getSticker(int loc)
loc
- the location
getLocation(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |