public class RasterableModel extends Object implements Rasterable
MAX_RASTERS, MAX_RASTERS_M, MAX_RASTERS_R
Constructor and Description |
---|
RasterableModel(SetupSurfaceRasteredGame setup,
int tileHeight)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public RasterableModel(SetupSurfaceRasteredGame setup, int tileHeight)
setup
- The setup reference.tileHeight
- The tile height value.public int getRasterIndex(double y)
Rasterable
getRasterIndex
in interface Rasterable
y
- The current y location.public SpriteAnimated getRasterAnim(int rasterIndex)
Rasterable
getRasterAnim
in interface Rasterable
rasterIndex
- The raster index (>= 0).public boolean isRastered()
Rasterable
isRastered
in interface Rasterable
true
if rastered, false
else.Copyright © 2014 Byron 3D Games Studio. All rights reserved.