public class TilePropertyCollisionMerger extends java.lang.Object implements TiledCollisionMerger
TiledCollisionMerger
that merges tiles if they
have the same value for a certain property (or both have no value for the
property)Constructor and Description |
---|
TilePropertyCollisionMerger(java.lang.String propertyName) |
Modifier and Type | Method and Description |
---|---|
boolean |
isMergable(TiledMap tiledMap,
TileLayer layer,
Tile tile1,
int tile1X,
int tile1Y,
int tile2X,
int tile2Y) |
public TilePropertyCollisionMerger(java.lang.String propertyName)
public boolean isMergable(TiledMap tiledMap, TileLayer layer, Tile tile1, int tile1X, int tile1Y, int tile2X, int tile2Y)
isMergable
in interface TiledCollisionMerger