T
- The entity enum type used.C
- The cost type used.P
- The producible type used.public interface ProducerServices<T extends Enum<T>,C extends ProductionCostStrategy,P extends Producible<T,C>>
Modifier and Type | Method and Description |
---|---|
void |
addToProductionQueue(P producible)
Add an element to the production queue.
|
T |
getProducingElement()
Get name of current producing element.
|
Iterator<P> |
getProductionIterator()
Get production iterator.
|
double |
getProductionProgress()
Get production progress.
|
int |
getProductionProgressPercent()
Get production progress percent.
|
int |
getQueueLength()
Get size of production queue.
|
boolean |
isProducing()
Return true if currently producing.
|
void |
skipProduction()
Skip current production.
|
void |
stopProduction()
Stop any production.
|
void |
updateProduction(double extrp)
Update production routine.
|
void addToProductionQueue(P producible)
producible
- The element to produce.void updateProduction(double extrp)
extrp
- The extrapolation value.void skipProduction()
void stopProduction()
double getProductionProgress()
int getProductionProgressPercent()
T getProducingElement()
Iterator<P> getProductionIterator()
int getQueueLength()
boolean isProducing()
true
if producing, false
else.Copyright © 2014 Byron 3D Games Studio. All rights reserved.