Class hullEF
Name- unique keydescriptionspecification=hullSpechealthaccumulator
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>
-
Field Summary
Fields inherited from class name.moore.kevin.ze.entities.baseEF
ABSORB_SCALER, DAMAGE_SCALER, FRAGILE_SCALER, hasher -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProvide a list of components created by this processor when creating an entity.toComponents(com.simsilica.es.EntityId seid)Provide the components of an entity based on a specification.toComponents(T cast)Use the parsed XML object to create the components of an entity.Methods inherited from class name.moore.kevin.ze.entities.baseEF
findbyName, findbyName, findEntities, from, fromXML, getComponent, getTarget, makeSerial, setTarget, toComponents
-
Constructor Details
-
hullEF
public hullEF()
-
-
Method Details
-
diagnostic
Description copied from class:baseEFProvide a list of components created by this processor when creating an entity.- Overrides:
diagnosticin classbaseEF- Returns:
-
toComponents
Use the parsed XML object to create the components of an entity.- Overrides:
toComponentsin classbaseEF- 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:
toComponentsin classbaseEF- Parameters:
seid- entityid of the specification to base the components on.- Returns:
- See Also:
construct.build(com.simsilica.es.EntityId)
-