public abstract class EntityPlatformRastered extends EntityPlatform implements com.b3dgs.lionengine.game.purview.Rasterable
Constructor and Description |
---|
EntityPlatformRastered(com.b3dgs.lionengine.game.SetupSurfaceRasteredGame setup,
int tileHeight)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
com.b3dgs.lionengine.drawable.SpriteAnimated |
getRasterAnim(int rasterIndex) |
int |
getRasterIndex(double y) |
boolean |
isRastered() |
void |
render(com.b3dgs.lionengine.Graphic g,
CameraPlatform camera)
Render on screen.
|
void |
updateAnimation(double extrp) |
applyHorizontalCollision, applyVerticalCollision, getAnimState, getCollisionTile, getDiffHorizontal, getDiffVertical, getFrame, getFrameAnim, getLocationIntX, getLocationIntY, getLocationOldX, getLocationOldY, getLocationX, getLocationY, isGoingDown, isGoingUp, play, renderAnim, renderAnim, setAnimSpeed, setFrame, setFrameOffsets, stopAnimation, teleport, teleportX, teleportY, update, updateMirror
collide, collide, getCollisionBounds, getCollisionData, getCollisionRay, getDistance, getHeight, getLocationOffsetX, getLocationOffsetY, getMass, getMirror, getMirrorCancel, getWeight, getWidth, invertAxisY, mirror, moveLocation, moveLocation, renderCollision, resetGravity, setCollision, setGravityMax, setLocation, setLocationOffset, setLocationX, setLocationY, setMass, setMirrorCancel, setSize, updateCollision, updateGravity
public EntityPlatformRastered(com.b3dgs.lionengine.game.SetupSurfaceRasteredGame setup, int tileHeight)
setup
- The setup reference.tileHeight
- The tile height value.public void updateAnimation(double extrp)
updateAnimation
in interface com.b3dgs.lionengine.anim.Animator
updateAnimation
in class EntityPlatform
public void render(com.b3dgs.lionengine.Graphic g, CameraPlatform camera)
EntityPlatform
render
in class EntityPlatform
g
- The graphic output.camera
- The camera viewpoint.public int getRasterIndex(double y)
getRasterIndex
in interface com.b3dgs.lionengine.game.purview.Rasterable
public com.b3dgs.lionengine.drawable.SpriteAnimated getRasterAnim(int rasterIndex)
getRasterAnim
in interface com.b3dgs.lionengine.game.purview.Rasterable
public boolean isRastered()
isRastered
in interface com.b3dgs.lionengine.game.purview.Rasterable