C
- The collision type used.public class TilePlatform<C extends Enum<C> & CollisionTile> extends TileGame<C>
Constructor and Description |
---|
TilePlatform(int width,
int height,
Integer pattern,
int number,
C collision)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Double |
getCollisionX(Localizable localizable)
Get the horizontal collision location between the tile and the localizable.
|
Double |
getCollisionY(Localizable localizable)
Get the vertical collision location between the tile and the localizable.
|
boolean |
hasCollision(Localizable localizable)
Check if there is a collision between the localizable and the tile.
|
getBottom, getCollision, getHeight, getLeft, getNumber, getPattern, getRight, getTop, getWidth, getX, getY, setCollision, setNumber, setPattern, setX, setY
public Double getCollisionX(Localizable localizable)
localizable
- The localizable object searching the collision.null
if none).public Double getCollisionY(Localizable localizable)
localizable
- The localizable object searching the collision.null
if none).public boolean hasCollision(Localizable localizable)
localizable
- The localizable.true
if collide, false
else.Copyright © 2014 Byron 3D Games Studio. All rights reserved.