R
- The resource enum type used.public interface ExtractorServices<R extends java.lang.Enum<R>>
Modifier and Type | Method and Description |
---|---|
com.b3dgs.lionengine.game.Tiled |
getResourceLocation()
Get the resource location in tile.
|
R |
getResourceType()
Get resource type.
|
boolean |
isExtracting()
Check if extractor is currently working on extraction.
|
void |
setResource(Extractible<R> extractible)
Set the resources location in tile.
|
void |
setResource(R type,
int tx,
int ty,
int tw,
int th)
Set the resources location in tile.
|
void |
startExtraction()
Start extraction.
|
void |
stopExtraction()
Stop any action related to extraction.
|
void |
updateExtraction(double extrp)
Update extraction (extract and go back).
|
void updateExtraction(double extrp)
extrp
- The extrapolation value.void setResource(Extractible<R> extractible)
extractible
- The extractible entity.void setResource(R type, int tx, int ty, int tw, int th)
type
- The resource type to extract.tx
- The horizontal tile.ty
- The vertical tile.tw
- The width in tile.th
- The height in tile.void startExtraction()
void stopExtraction()
com.b3dgs.lionengine.game.Tiled getResourceLocation()
R getResourceType()
boolean isExtracting()
true
if extracting, false
else.