R
- The resource enum type used.public interface Extractible<R extends java.lang.Enum<R>>
extends com.b3dgs.lionengine.game.Tiled
Modifier and Type | Method and Description |
---|---|
int |
extractResource(int quantity)
Extract the specified quantity if possible.
|
int |
getResourceQuantity()
Get the current resource quantity.
|
R |
getResourceType()
Get the resource type that can be extracted.
|
int extractResource(int quantity)
quantity
- The quantity to extract.int getResourceQuantity()
R getResourceType()