C
- The collision type used.public abstract class TilePlatform<C extends java.lang.Enum<C>>
extends com.b3dgs.lionengine.game.map.TileGame<C>
Constructor and Description |
---|
TilePlatform(int width,
int height,
java.lang.Integer pattern,
int number,
C collision)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Double |
getCollisionX(com.b3dgs.lionengine.game.purview.Localizable localizable)
Get the horizontal collision location between the tile and the localizable.
|
abstract java.lang.Double |
getCollisionY(com.b3dgs.lionengine.game.purview.Localizable localizable)
Get the vertical collision location between the tile and the localizable.
|
boolean |
hasCollision(com.b3dgs.lionengine.game.purview.Localizable localizable)
Check if there is a collision between the localizable and the tile.
|
public TilePlatform(int width, int height, java.lang.Integer pattern, int number, C collision)
width
- The tile width.height
- The tile height.pattern
- The tile pattern.number
- The tile number.collision
- The tile collision.public abstract java.lang.Double getCollisionX(com.b3dgs.lionengine.game.purview.Localizable localizable)
localizable
- The localizable object searching the collision.null
if none).public abstract java.lang.Double getCollisionY(com.b3dgs.lionengine.game.purview.Localizable localizable)
localizable
- The localizable object searching the collision.null
if none).public boolean hasCollision(com.b3dgs.lionengine.game.purview.Localizable localizable)
localizable
- The localizable.true
if collide, false
else.