public class ExtractionRts
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
com.b3dgs.lionengine.game.Alterable |
quantity
Current extracted quantity data.
|
Constructor and Description |
---|
ExtractionRts()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getDropOffPerSecond()
Get the number of resource unit dropped off per second.
|
int |
getExtractionPerSecond()
Get the amount of extracted resource unit per second.
|
void |
initExtraction(int quantityMax,
int extractionPerSecond,
int dropOffPerSecond)
Setup extraction.
|
public final com.b3dgs.lionengine.game.Alterable quantity
public void initExtraction(int quantityMax, int extractionPerSecond, int dropOffPerSecond)
quantityMax
- The maximum extraction quantity.extractionPerSecond
- The time needed to extract one unit of quantity.dropOffPerSecond
- The time needed to extract one unit.public int getExtractionPerSecond()
public int getDropOffPerSecond()