Package name.moore.kevin.ze.entities
package name.moore.kevin.ze.entities
Provide processing and constants for creating specific types of entities.
The actual entities are stored in the entity repository. The classes in this package provide a factory pattern to create those data entities with their correct components.
All these processors end in "EF.java" (Entity Factory), and extend the
abstract baseEF. The interface to the package is through the
entityFactory class which will make an
appropriate entityFactory which is then used to build the required entity.
Examples
- Create a new 'ship' entity in the repository with specification EntityId s
engineEF proc = entityFactory.make(ship.class);
List<EntityComponent> toComponents = proc.toComponents(s);
EntityId built = eq.newEntity(toComponents);
- Author:
- Kevin Moore
<dev@kevin.moore.name> - See Also:
name.moore.kevin.ze.components, Entity System Introduction
-
Class SummaryClassDescriptionFactories produce entities in the entity repository.Engines provide power according to their specification and health.A engineSpec consists of components:
Name- unique keydescriptionappliesto=enginephysicalmanufactureCreates entity factories which can then in turn create appropriate repository entities.Create unique String hashcodes we can use in things like equipment serial numbers.A hull consists of components:Name- unique keydescriptionspecification=hullSpechealthaccumulatorA hullSpec consists of components:Name- unique keydescriptionappliesto=hullphysicalmanufactureA industry consists of components:Name- unique keydescriptionspecification=industrySpeclocationA industrySpec consists of components:Name- unique keydescriptionappliesto=industrymanufacturebuilderA planetSpec consists of components:Name- unique keydescriptionappliesto=planetphysicaldisplayA shield consists of components:Name- unique keydescriptionspecification=shieldSpechealthaccumulatorA shieldSpec consists of components:Name- unique keydescriptionappliesto=shieldphysicalmanufactureA ship consists of components:Name- unique keydescriptionspecification=shipSpecinorbitorcoordinatesparts- List of EntityId of installed equipmentdistributionA shipSpec consists of components:Name- unique keydescriptionappliesto=shipmanufactureparts- List of EntityId of the specs required to complete this shipSpecA shipyardSpec consists of components:Name- unique keydescriptionappliesto=shipyardmanufacturebuilderA star consists of components:Name- unique keydescriptionspecificationcoordinatesowner- optionalAn weapon consists of components:Name- unique keydescriptionspecification=weaponSpechealthaccumulatorA weaponSpec consists of components:Name- unique keydescriptionappliesto=weaponphysicalmanufacture -
Enum Summary