Skip to content

Creating, getting and killing entities

Elliot Ford edited this page Apr 9, 2015 · 8 revisions

What is an EntityContainer?

An EntityContainer (API docs) is a store for entities. An Entity is also an Entity container (tree structure). JALSE offers a default implementation of EntityContainer, DefaultEntityContainer, which can also be used to create your own Entity implementation.

EntityContainer container = new DefaultEntityContainer();

When entities are created, transfered or killed they trigger listener events (see Creating an EntityListener).

Clone this wiki locally