public interface Producer extends Actioner, Updatable
Modifier and Type | Method and Description |
---|---|
void |
addListener(ProducerListener listener)
Add a producer listener.
|
void |
addToProductionQueue(Featurable featurable)
Add an element to the production queue.
|
Media |
getProducingElement()
Get media of current producing element.
|
double |
getProgress()
Get production progress.
|
int |
getProgressPercent()
Get production progress percent.
|
int |
getQueueLength()
Get size of production queue.
|
boolean |
isProducing()
Return true if currently producing.
|
Iterator<Featurable> |
iterator()
Get production iterator.
|
void |
setChecker(ProducerChecker checker)
Set the production checker.
|
void |
setStepsPerSecond(double stepsPerSecond)
Set the production steps number per second.
|
void |
skipProduction()
Skip current production.
|
void |
stopProduction()
Stop any production.
|
getActions
checkListener, prepare
getFeature, getFeatures, getFeaturesType, hasFeature
void addListener(ProducerListener listener)
listener
- The producer listener to add.void setChecker(ProducerChecker checker)
checker
- The production checker reference.void addToProductionQueue(Featurable featurable)
featurable
- The element to produce.void skipProduction()
void stopProduction()
void setStepsPerSecond(double stepsPerSecond)
stepsPerSecond
- The production steps number per second.double getProgress()
int getProgressPercent()
Media getProducingElement()
Iterator<Featurable> iterator()
int getQueueLength()
boolean isProducing()
true
if producing, false
else.Copyright © 2017 Byron 3D Games Studio. All rights reserved.