Class DebugRendererSystem
java.lang.Object
com.badlogic.ashley.core.EntitySystem
com.badlogic.ashley.systems.IteratingSystem
com.devcharles.piazzapanic.componentsystems.DebugRendererSystem
public class DebugRendererSystem
extends com.badlogic.ashley.systems.IteratingSystem
-
Field Summary
Modifier and TypeFieldDescriptionprivate com.badlogic.gdx.graphics.OrthographicCamera
private com.badlogic.gdx.physics.box2d.Box2DDebugRenderer
private com.badlogic.gdx.physics.box2d.World
Fields inherited from class com.badlogic.ashley.core.EntitySystem
priority
-
Constructor Summary
ConstructorDescriptionDebugRendererSystem
(com.badlogic.gdx.physics.box2d.World world, com.badlogic.gdx.graphics.OrthographicCamera camera) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
processEntity
(com.badlogic.ashley.core.Entity entity, float deltaTime) This method is called on every entity on every update call of the EntitySystem.void
update
(float deltaTime) The update method called every tick.Methods inherited from class com.badlogic.ashley.systems.IteratingSystem
addedToEngine, getEntities, getFamily, removedFromEngine
Methods inherited from class com.badlogic.ashley.core.EntitySystem
checkProcessing, getEngine, setProcessing
-
Field Details
-
debugRenderer
private com.badlogic.gdx.physics.box2d.Box2DDebugRenderer debugRenderer -
world
private com.badlogic.gdx.physics.box2d.World world -
camera
private com.badlogic.gdx.graphics.OrthographicCamera camera
-
-
Constructor Details
-
DebugRendererSystem
public DebugRendererSystem(com.badlogic.gdx.physics.box2d.World world, com.badlogic.gdx.graphics.OrthographicCamera camera)
-
-
Method Details
-
update
public void update(float deltaTime) Description copied from class:com.badlogic.ashley.core.EntitySystem
The update method called every tick.- Overrides:
update
in classcom.badlogic.ashley.systems.IteratingSystem
- Parameters:
deltaTime
- The time passed since last frame in seconds.
-
processEntity
protected void processEntity(com.badlogic.ashley.core.Entity entity, float deltaTime) Description copied from class:com.badlogic.ashley.systems.IteratingSystem
This method is called on every entity on every update call of the EntitySystem. Override this to implement your system's specific processing.- Specified by:
processEntity
in classcom.badlogic.ashley.systems.IteratingSystem
- Parameters:
entity
- The current Entity being processeddeltaTime
- The delta time between the last and current frame
-