Package dev.prozilla.pine.core.entity
Class EntityManager
java.lang.Object
dev.prozilla.pine.core.ECSManager
dev.prozilla.pine.core.entity.EntityManager
- All Implemented Interfaces:
Lifecycle
-
Field Summary
Fields inherited from class dev.prozilla.pine.core.ECSManager
world
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
void
destroy()
Destroys the object at the end of the game loop.static int
Generates a new unique entity ID.boolean
void
removeEntity
(Entity entity) Methods inherited from class dev.prozilla.pine.core.ECSManager
getTracker
-
Constructor Details
-
EntityManager
-
-
Method Details
-
destroy
public void destroy()Description copied from interface:Lifecycle
Destroys the object at the end of the game loop. -
addEntity
-
removeEntity
-
contains
-
getEntities
-
hasEntities
public boolean hasEntities() -
generateEntityId
public static int generateEntityId()Generates a new unique entity ID.- Returns:
- Entity ID
-