Package name.moore.kevin.ze.entities
Class shipSpecEF
java.lang.Object
name.moore.kevin.ze.entities.baseEF
name.moore.kevin.ze.entities.shipSpecEF
A shipSpec consists of components:
Name- unique keydescriptionappliesto=shipmanufactureparts- List of EntityId of the specs required to complete this shipSpec
- Author:
- Kevin Moore
<dev@kevin.moore.name>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classCompare any priorities given to a spec so that, for ships, hulls take the priority and are in bay[0] -
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.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, toComponents
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
shipSpecEF
public shipSpecEF()
-
-
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. 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:
toComponentsin classbaseEF- Returns:
-