public interface TiledCollisionFactory<T extends Positionable>
Modifier and Type | Method and Description |
---|---|
T |
createCollision(TiledMap map,
TiledObject tiledObject)
Create a new collision from a
TiledObject |
T |
createCollision(TiledMap map,
Tile tile,
float x,
float y,
float width,
float height)
Create a new collision from a
Tile |
T createCollision(TiledMap map, Tile tile, float x, float y, float width, float height)
Tile
map
- The source TiledMap
tile
- The source Tile
x
- The x coordinate of the Tile
y
- The y coordinate of the Tile
width
- The width of the Tile
(Note: if wider than
Tile
this means there are multiple of the same
Tile
- this will only happen when using TiledCollisionMerger
)height
- The height of the Tile
(Note: if higher than
Tile
this means there are multiple of the same
Tile
- this will only happen when using TiledCollisionMerger
)T createCollision(TiledMap map, TiledObject tiledObject)
TiledObject
map
- The source TiledMap
tiledObject
- The TiledObject