Package dev.prozilla.pine.core.system
Class SystemManager
java.lang.Object
dev.prozilla.pine.core.ECSManager
dev.prozilla.pine.core.system.SystemManager
- All Implemented Interfaces:
Destructible,Initializable,InputHandler,Renderable,Updatable
public class SystemManager
extends ECSManager
implements Initializable, InputHandler, Updatable, Renderable
-
Field Summary
Fields inherited from class dev.prozilla.pine.core.ECSManager
world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivateEntity(Entity entity) booleanaddSystem(SystemBase system) voiddestroy()Destroys all systems.voidinit()Runs all systems that handle initialization.voidinitSystems(Collection<SystemBase> initialSystems) voidinput(float deltaTime) Runs all systems that handle input.booleanvoidRegisters an entity in all systems.voidRuns all systems that render components.voidunregister(Entity entity) Unregisters an entity from all systems.voidupdate(float deltaTime) Runs all systems that update component data.voidUpdates all systems that depend on entity depth.Methods inherited from class dev.prozilla.pine.core.ECSManager
getTracker
-
Constructor Details
-
SystemManager
-
-
Method Details
-
initSystems
-
init
public void init()Runs all systems that handle initialization.- Specified by:
initin interfaceInitializable
-
input
public void input(float deltaTime) Runs all systems that handle input.- Specified by:
inputin interfaceInputHandler- Parameters:
deltaTime- Delta time in seconds
-
update
public void update(float deltaTime) Runs all systems that update component data. -
render
Runs all systems that render components.- Specified by:
renderin interfaceRenderable
-
destroy
public void destroy()Destroys all systems.- Specified by:
destroyin interfaceDestructible
-
register
Registers an entity in all systems. -
unregister
Unregisters an entity from all systems. -
activateEntity
-
addSystem
-
updateEntityDepth
public void updateEntityDepth()Updates all systems that depend on entity depth. -
isInitialized
public boolean isInitialized()
-