|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectfang.Transformer
fang.Spinner
public class Spinner
This class animates a Sprite spinning in place.
| Constructor Summary | |
|---|---|
Spinner(double radiansPerSecond)
Sets up an instance of this class by properly initializing its state |
|
| Method Summary | |
|---|---|
void |
advance(double intervalPassed)
|
double |
getRotation()
get the tracker's current rotation rate. |
double |
getRotationAdditionRadians()
Returns the amount to rotate this time interval |
void |
setRotation(double newRate)
change the tracker's current rotation rate. |
void |
setRotationDegrees(double newRate)
change the tracker's current rotation rate. |
void |
setRotationRevolutions(double newRate)
change the tracker's current rotation rate. |
| Methods inherited from class fang.Transformer |
|---|
advance, advanceTime, getGame, getRotationAddition, getRotationAdditionDegrees, getRotationAdditionRevolutions, getScaleFactor, getTranslation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Spinner(double radiansPerSecond)
degreesPerSecond - number of radians to spin per second| Method Detail |
|---|
public void setRotation(double newRate)
public void setRotationDegrees(double newRate)
public void setRotationRevolutions(double newRate)
public double getRotation()
public double getRotationAdditionRadians()
getRotationAdditionRadians in class Transformerfang.core.Tracker#getRotationAddition()public void advance(double intervalPassed)
advance in class Transformer
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||