| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AnimatedTwistyPuzzle
Extends the TwistyPuzzle interface to include new methods for
 animatible twisty puzzles. The units used for timing are entirely up to the
 whim of the calling class, since the calling class also chooses how much to
 update the animation by.
| Method Summary | |
|---|---|
|  void | advanceAnimation(double time)Advances the animation by a certain amount of time. | 
|  boolean | isAnimating()Returns true iff the puzzle is partway through a twist. | 
|  void | twist(Twist twist,
      double time)Twists the puzzle over a specified amount of time. | 
| Methods inherited from interface smithers.twisty.TwistyPuzzle | 
|---|
| getColor, getPolygon, getScale, getTwist, isSolved, scramble, stickerCount, twist | 
| Method Detail | 
|---|
void twist(Twist twist,
           double time)
twist - the twist to maketime - the time to take
java.lang.IllegalArgumentException - if time is infinite or NaNboolean isAnimating()
TwistyPuzzle may fail with an
 AnimatingException.
true iff the puzzle is animating a twistvoid advanceAnimation(double time)
time - the amount of time to advance| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||