-
Notifications
You must be signed in to change notification settings - Fork 24
What is an Entity?
An Entity represents an agent within the system. Entities are AttributeContainers and EntityContainers - this means they can have both attributes and child entities (tree structure).
What is an Entity type?
An entity type is a subclass of Entity that conforms to the what is defined in Creating an Entity type. The type system allows for the dynamic entities to be used as specific types with defined methods. Entities can also be marked as multiple types that can be added/removed at run-time - which can be used for filtering.
What is an EntityContainer?
An EntityContainer is an Entity store that can also create and transfer entities. There is a default implementation available: DefaultEntityContainer.
What is an EntityListener?
When entities are created, transfered or killed an EntityEvent is created and handed out to all EntityListeners for that container. There is an EntityAdapter listener provided with only empty methods for creating listeners with only certain methods (see Creating an EntityListener for more information).
What is an EntityFactory?
Each EntityContainer is backed by an EntityFactory which provides controls the addition or removal of entities from the entity tree. There may only be one factory instance per tree - by default JALSE uses DefaultEntityFactory and it creates DefaultEntity instances (see What is an EntityFactory for more information).
For some handy Entity related methods see Entities (API docs for Entities):
- 'cast' Entity as type
- Get Type ancestry
- Empty EntityContainer
- Unmodifiable EntityContainer
- Walk the Entity tree
- Recursive operations on tree
For recursive EntityListeners see Listeners (API docs for Listeners).
Check out the Example projects and Code snippets!
Getting Started
- Getting the latest release
- Building from source
- Example projects
- Code snippets
- How to contribute
- Have bugs or questions?
How To Use
- JALSE
- Entities
- Attributes
- Actions
- Tags
Misc