Package name.moore.kevin.ze.entities
Class engineEF
java.lang.Object
name.moore.kevin.ze.entities.baseEF
name.moore.kevin.ze.entities.engineEF
Engines provide power according to their specification and health.
An engine consists of components:
Name- unique keydescriptionspecification=engineSpechealth
- Author:
- Kevin Moore
<dev@kevin.moore.name>
-
Field Summary
FieldsFields 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.static org.jscience.physics.amount.Amount<javax.measure.quantity.Energy>inefficiency(org.jscience.physics.amount.Amount<javax.measure.quantity.Energy> max, javax.measure.Measure<Double,javax.measure.quantity.Dimensionless> percenth)Algorithm to modify the engine's output by the health of the engine.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
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
engineEF
public engineEF()
-
-
Method Details
-
inefficiency
public static org.jscience.physics.amount.Amount<javax.measure.quantity.Energy> inefficiency(org.jscience.physics.amount.Amount<javax.measure.quantity.Energy> max, javax.measure.Measure<Double,javax.measure.quantity.Dimensionless> percenth)Algorithm to modify the engine's output by the health of the engine. Used as part of a distribution process.- See Also:
distribute
-
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)
-