Class manufacture

java.lang.Object
name.moore.kevin.ze.components.manufacture
All Implemented Interfaces:
com.simsilica.es.EntityComponent

public class manufacture extends Object implements 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>
  • Field Details

    • daystobuild

      private Integer daystobuild
    • money

      private org.jscience.physics.amount.Amount<org.jscience.economics.money.Money> money
    • builder

      private manufacture.BUILDER builder
      What type of queue is used for building?
    • delivery

      private manufacture.DELIVER 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 entity
      m -
      b - where this manufacturing takes place
  • Method Details

    • getMoney

      public org.jscience.physics.amount.Amount<org.jscience.economics.money.Money> getMoney()
      Returns:
    • getDaystobuild

      public Integer getDaystobuild()
      Returns:
    • getBuilder

      public manufacture.BUILDER getBuilder()
    • getDelivery

      public manufacture.DELIVER getDelivery()
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns: