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.

entities.png

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