C
- The collision enum type used.R
- The resource enum type used.public abstract class TileRts<C extends java.lang.Enum<C>,R extends java.lang.Enum<R>>
extends com.b3dgs.lionengine.game.pathfinding.map.TilePath<C>
Constructor and Description |
---|
TileRts(int width,
int height,
java.lang.Integer pattern,
int number,
C collision)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract R |
checkResourceType(C collision)
Check resource type from collision.
|
R |
getResourceType()
Get the resource type.
|
abstract boolean |
hasResources()
Check if tile has resources.
|
void |
setResourceType(R type)
Set the resource type.
|
checkBlocking, isBlocking, setBlocking
public TileRts(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 R checkResourceType(C collision)
collision
- The tile collision.public abstract boolean hasResources()
true
if has resources, false
else.public void setResourceType(R type)
type
- The resource type.public R getResourceType()
null
if none).