C
- Collision type used.T
- Tile type used.public abstract class MapTilePlatform<C extends java.lang.Enum<C>,T extends TilePlatform<C>>
extends com.b3dgs.lionengine.game.map.MapTileGame<C,T>
Constructor and Description |
---|
MapTilePlatform(int tileWidth,
int tileHeight)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
T |
getFirstTileHit(com.b3dgs.lionengine.game.purview.Localizable localizable,
java.util.EnumSet<C> collisions)
Get the first tile hit by the localizable that contains collision, applying a ray tracing from its old location
to its current.
|
int |
getInTileX(com.b3dgs.lionengine.game.purview.Localizable localizable)
Get location x relative to map referential as tile.
|
int |
getInTileY(com.b3dgs.lionengine.game.purview.Localizable localizable)
Get location y relative to map referential as tile.
|
T |
getTile(EntityPlatform entity,
int offsetX,
int offsetY)
Get the tile at the entity location.
|
append, clear, create, createMiniMap, createTile, getCollisionFrom, getHeightInTile, getMiniMap, getNumberPatterns, getNumberTiles, getPattern, getPatterns, getPatternsDirectory, getTile, getTileHeight, getTileWidth, getWidthInTile, load, loadCollisions, loadPatterns, loadTile, render, renderMiniMap, save, setTile
public MapTilePlatform(int tileWidth, int tileHeight)
tileWidth
- The tile width.tileHeight
- The tile height.public T getTile(EntityPlatform entity, int offsetX, int offsetY)
entity
- The entity.offsetX
- The horizontal offset search.offsetY
- The vertical offset search.public T getFirstTileHit(com.b3dgs.lionengine.game.purview.Localizable localizable, java.util.EnumSet<C> collisions)
localizable
- The localizable reference.collisions
- Collisions list to search for.null
if none found.public int getInTileX(com.b3dgs.lionengine.game.purview.Localizable localizable)
localizable
- The localizable reference.public int getInTileY(com.b3dgs.lionengine.game.purview.Localizable localizable)
localizable
- The localizable reference.