C
- collision type used.public abstract class TilePath<C extends java.lang.Enum<C>>
extends com.b3dgs.lionengine.game.map.TileGame<C>
Constructor and Description |
---|
TilePath(int width,
int height,
java.lang.Integer pattern,
int number,
C collision)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
checkBlocking(C collision)
Check if this collision is blocking.
|
boolean |
isBlocking()
Check if current tile is blocking or not.
|
void |
setBlocking(boolean blocking)
Set blocking state.
|
public TilePath(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 boolean checkBlocking(C collision)
collision
- The tile collision.true
if blocking, false
else.public boolean isBlocking()
true
if blocking, false
else.public void setBlocking(boolean blocking)
blocking
- The blocking state.