public interface Rasterable
Modifier and Type | Field and Description |
---|---|
static int |
MAX_RASTERS
Maximum rasters.
|
static int |
MAX_RASTERS_M
Maximum rasters M.
|
static int |
MAX_RASTERS_R
Maximum rasters R.
|
Modifier and Type | Method and Description |
---|---|
com.b3dgs.lionengine.drawable.SpriteAnimated |
getRasterAnim(int rasterIndex)
Get raster animation from raster index.
|
int |
getRasterIndex(double y)
Get raster index from location.
|
boolean |
isRastered()
Check if raster if activated.
|
static final int MAX_RASTERS
static final int MAX_RASTERS_R
static final int MAX_RASTERS_M
int getRasterIndex(double y)
y
- The current y location.com.b3dgs.lionengine.drawable.SpriteAnimated getRasterAnim(int rasterIndex)
rasterIndex
- The raster index (>= 0).boolean isRastered()
true
if rastered, false
else.