Class hullEF

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

public class hullEF extends baseEF
A hull consists of components:

A hull represents the physical presence of a ship. Once the health of a hull is zero it is destroyed along with the entire ship, although it can be effectively scrap before then. The hull also provides the 'slots' where other equipment eg a shield can be installed.

The hull provides the capacity to move, but requires energy to be delivered to it to make that happen. Hulls have an accumulator to accept energy, but they use it immediately draining whatever is in the accumulator at each movement. If the provided energy is greater or equal to the hull specification's energy threshold then FTL is possible, if not the hull provides movement at sub-light but in proportion to the delivered energy. So a hull with a threshold of 20J receiving 10J could move at sublight 50% (however we scale that 50% in-game). Deliver 20J and we can move FTL (however we scale that in-game)

Author:
Kevin Moore <dev@kevin.moore.name>
  • Constructor Details

    • hullEF

      public hullEF()
  • 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.
      Overrides:
      toComponents in class baseEF
      Returns:
    • toComponents

      public <T extends XMLbase> List<com.simsilica.es.EntityComponent> toComponents(com.simsilica.es.EntityId seid)
      Provide the components of an entity based on a specification. Component values will be defaulted. Public because the construct verb uses it.
      Overrides:
      toComponents in class baseEF
      Parameters:
      seid - entityid of the specification to base the components on.
      Returns:
      See Also:
      construct.build(com.simsilica.es.EntityId)