public abstract class EntityPlatformRastered extends EntityPlatform implements Rasterable
sprite
MAX_RASTERS, MAX_RASTERS_M, MAX_RASTERS_R
Constructor and Description |
---|
EntityPlatformRastered(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) |
addCollisionTile, applyHorizontalCollision, applyVerticalCollision, getAnimState, getCollisionTile, getCollisionTileOffset, getDiffHorizontal, getDiffVertical, getFrame, getFrameAnim, getLocationIntX, getLocationIntY, getLocationOldX, getLocationOldY, getLocationX, getLocationY, handleActions, handleAnimations, handleCollisions, handleMovements, isGoingDown, isGoingUp, play, renderAnim, renderAnim, setAnimSpeed, setFrame, setFrameOffsets, stopAnimation, teleport, teleportX, teleportY, update, updateMirror
collide, collide, getCollisionBounds, getCollisionData, getCollisionRay, getDistance, getHeight, getMass, getMirror, getMirrorCancel, getWeight, getWidth, invertAxisY, mirror, moveLocation, moveLocation, renderCollision, resetGravity, setCollision, setGravityMax, setLocation, setLocationX, setLocationY, setMass, setMirrorCancel, setSize, updateCollision, updateGravity
destroy, getDataAnimation, getDataBoolean, getDataCollision, getDataDouble, getDataInteger, getDataRoot, getDataString, getId, isDestroyed, loadData
public EntityPlatformRastered(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 Rasterable
public com.b3dgs.lionengine.drawable.SpriteAnimated getRasterAnim(int rasterIndex)
getRasterAnim
in interface Rasterable
public boolean isRastered()
isRastered
in interface Rasterable
Copyright © 2014 Byron 3D Games Studio. All rights reserved.