public interface Extractable extends Trait, Tiled
Modifier and Type | Method and Description |
---|---|
int |
extractResource(int quantity)
Extract the specified quantity if possible.
|
int |
getResourceQuantity()
Get the current resource quantity.
|
Enum<?> |
getResourceType()
Get the resource type that can be extracted.
|
void |
setResourcesQuantity(int quantity)
Set the resources quantity.
|
void |
setResourcesType(Enum<?> type)
Set the resources type.
|
getInTileHeight, getInTileWidth, getInTileX, getInTileY
int extractResource(int quantity)
quantity
- The quantity to extract.void setResourcesQuantity(int quantity)
quantity
- The resources quantity.void setResourcesType(Enum<?> type)
type
- The resources type.int getResourceQuantity()
Enum<?> getResourceType()
Copyright © 2016 Byron 3D Games Studio. All rights reserved.