Package com.tenio.engine.fsm
Class EntityManager
java.lang.Object
com.tenio.common.logger.AbstractLogger
com.tenio.common.logger.SystemLogger
com.tenio.engine.fsm.EntityManager
public final class EntityManager
extends com.tenio.common.logger.SystemLogger
This class for managing entities.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.tenio.common.logger.SystemLogger
debug, trace, trace
Methods inherited from class com.tenio.common.logger.AbstractLogger
buildgen, error, error, info, info, info, info, info, info, info, info
-
Constructor Details
-
EntityManager
public EntityManager()
-
-
Method Details
-
register
Register an entity to this management.- Parameters:
entity
- the desired entity, seeAbstractEntity
-
contain
-
count
public long count() -
get
-
update
public void update(float deltaTime) Need to call update every frame.- Parameters:
deltaTime
- the time between two consecutive frames
-
gets
Retrieves the list of entities.- Returns:
- the list of entities in this manager
-
remove
-
clear
public void clear()
-