Class shipSpecEF

java.lang.Object
name.moore.kevin.ze.entities.baseEF
name.moore.kevin.ze.entities.shipSpecEF

public class shipSpecEF extends baseEF
A shipSpec consists of components:
Author:
Kevin Moore <dev@kevin.moore.name>
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
  • Constructor Details

    • shipSpecEF

      public shipSpecEF()
  • Method Details

    • diagnostic

      public List<Class> diagnostic()
      Description copied from class: baseEF
      Provide a list of components created by this processor when creating an entity.
      Overrides:
      diagnostic in class baseEF
      Returns:
    • toComponents

      public <T extends XMLbase> List<com.simsilica.es.EntityComponent> toComponents(T cast)
      Use the parsed XML object to create the components of an entity. A shipSpec has a container listing the specs of the various installed equipment. By convention, the first entry [0] is the hullSpec. The XML specifies the equipment as Strings, these need converting into real spec entities
      Overrides:
      toComponents in class baseEF
      Returns: