Package name.moore.kevin.ze.components
Class manufacture
java.lang.Object
name.moore.kevin.ze.components.manufacture
- All Implemented Interfaces:
com.simsilica.es.EntityComponent
Component that has data required for manufacturing an entity.
Attached to specification entities to indicate the 'sticker price' of building one of these things - assuming the entity can be manufactured. Describes the type of installation where the item will be build and where it will be delivered. It has fixed values, its the running buildQueue that works out actual manufacturing timescales and costs based on these values.
- Author:
- Kevin Moore
<dev@kevin.moore.name>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSet by processor and used by manufacturingState to allocate builds to the appropriate buildQueue.static classSet by entityConverter, used by manufacturingState to determine how completed builds are delivered. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate manufacture.BUILDERWhat type of queue is used for building?private Integerprivate manufacture.DELIVERWhere built entities should be delivered to.private org.jscience.physics.amount.Amount<org.jscience.economics.money.Money> -
Constructor Summary
ConstructorsConstructorDescriptionmanufacture(Integer d, org.jscience.physics.amount.Amount<org.jscience.economics.money.Money> m, manufacture.BUILDER b, manufacture.DELIVER v) -
Method Summary
-
Field Details
-
daystobuild
-
money
private org.jscience.physics.amount.Amount<org.jscience.economics.money.Money> money -
builder
What type of queue is used for building? -
delivery
Where built entities should be delivered to.
-
-
Constructor Details
-
manufacture
public manufacture(Integer d, org.jscience.physics.amount.Amount<org.jscience.economics.money.Money> m, manufacture.BUILDER b, manufacture.DELIVER v)- Parameters:
d- base number of days to build this entitym-b- where this manufacturing takes place
-
-
Method Details