public class Sprite2DSceneObject extends SpriteSceneObject
ORIGIN_TOP_LEFT
Constructor and Description |
---|
Sprite2DSceneObject(Sprite sprite,
long defaultTime) |
Sprite2DSceneObject(Sprite sprite,
long defaultTime,
long[][] time) |
Modifier and Type | Method and Description |
---|---|
protected void |
recalculateFrame(long elapsedTime)
Recalculates the current visible frame depending on the elapsed time.
|
void |
resetAnimation()
Resets actual animation.
|
getAnimationFrame, getAnimationRow, getAnimationRowCount, getFrameCount, getOrigin, getSprite, getTileHeight, getTileSize, getTileWidth, getTime, paint, setAnimationFrame, setAnimationRow, setAnimationRow
collides, collidesBoundingBox, collidesExactly, consumes, consumesBoundingBox, consumesExactly, getHeight, getPosition, getPreciseHeight, getPreciseWidth, getPreciseX, getPreciseY, getRectangle, getRenderingOptions, getSize, getTopLeftPosition, getWidth, getX, getY, isDrawBoundingBox, paintAbsoluteOnScene, paintOnScene, paintOnScene, paintOnScene, paintOnScene, setDrawBoundingBox, setPosition, setPosition, setRenderingOptions, setSize, setSize, setTopLeftPosition
public Sprite2DSceneObject(Sprite sprite, long defaultTime, long[][] time)
public Sprite2DSceneObject(Sprite sprite, long defaultTime)
protected void recalculateFrame(long elapsedTime)
recalculateFrame
in class SpriteSceneObject
public void resetAnimation()
resetAnimation
in class SpriteSceneObject
Copyright © 2017. All rights reserved.