public enum TileMergeMode extends java.lang.Enum<TileMergeMode>
Enum Constant and Description |
---|
SQUARE
Finds max mergable tiles by expanding a square area
|
X_THEN_Y
Finds max number of mergable tiles on X axis then expands across Y axis
|
X_THEN_Y_ALTERNATING
Expands on X axis by 1 tile, then Y axis by 1 tile and repeats until the maximum area is found
|
Y_THEN_X
Finds max number of mergable tiles on Y axis then expands across X axis
|
Y_THEN_X_ALTERNATING
Expands on Y axis by 1 tile, then X axis by 1 tile and repeats until the maximum area is found
|
Modifier and Type | Method and Description |
---|---|
abstract <T extends Positionable> |
merge(TiledCollisionFactory<T> collisionFactory,
TiledCollisionMerger collisionMerger,
int startX,
int startY,
int maxColumns,
int maxRows,
byte[][] collisions,
TileLayer layer,
TiledMap tiledMap) |
static TileMergeMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TileMergeMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TileMergeMode Y_THEN_X
public static final TileMergeMode X_THEN_Y
public static final TileMergeMode X_THEN_Y_ALTERNATING
public static final TileMergeMode Y_THEN_X_ALTERNATING
public static final TileMergeMode SQUARE
public static TileMergeMode[] values()
for (TileMergeMode c : TileMergeMode.values()) System.out.println(c);
public static TileMergeMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract <T extends Positionable> T merge(TiledCollisionFactory<T> collisionFactory, TiledCollisionMerger collisionMerger, int startX, int startY, int maxColumns, int maxRows, byte[][] collisions, TileLayer layer, TiledMap tiledMap)