|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Transformer
An interface for objects which provide behaviors. Intended to transform sprites. During a given instance of the game loop, FANG calls nonMaskableAdvance with frame update time (intended for filtering transformers). Then advance, and finally, later, every sprite calls updateSprite on itself.
| Method Summary | |
|---|---|
void |
advance(double dT)
Advance this transformer one frame. |
void |
nonMaskableAdvance(double dT)
Things which must happen whether this transformer is active (or even enabled) or not. |
void |
updateSprite(Sprite sprite)
Apply current frame settings to the given sprite. |
| Method Detail |
|---|
void advance(double dT)
dT - time (in seconds) since last call to advancevoid nonMaskableAdvance(double dT)
dT - time (in seconds) since last call to advancevoid updateSprite(Sprite sprite)
Sprite.applyTransformerNG()
sprite - the sprite to transform
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||