Class RenderingSystem
java.lang.Object
com.badlogic.ashley.core.EntitySystem
com.badlogic.ashley.systems.IteratingSystem
com.devcharles.piazzapanic.componentsystems.RenderingSystem
public class RenderingSystem
extends com.badlogic.ashley.systems.IteratingSystem
-
Field Summary
Modifier and TypeFieldDescriptionprivate com.badlogic.gdx.graphics.OrthographicCamera
(package private) List<com.badlogic.ashley.core.Entity>
private WorldTilemapRenderer
private float
private com.badlogic.gdx.graphics.g2d.SpriteBatch
private YComparator
private ZComparator
Fields inherited from class com.badlogic.ashley.core.EntitySystem
priority
-
Constructor Summary
ConstructorDescriptionRenderingSystem
(com.badlogic.gdx.maps.tiled.TiledMap map, com.badlogic.gdx.graphics.g2d.SpriteBatch batch, com.badlogic.gdx.graphics.OrthographicCamera camera) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addedToEngine
(com.badlogic.ashley.core.Engine engine) Called when this EntitySystem is added to anEngine
.protected void
processEntity
(com.badlogic.ashley.core.Entity entity, float deltaTime) This method is called on every entity on every update call of the EntitySystem.private void
setFoodTransform
(com.badlogic.ashley.core.Entity station) void
update
(float deltaTime) The update method called every tick.Methods inherited from class com.badlogic.ashley.systems.IteratingSystem
getEntities, getFamily, removedFromEngine
Methods inherited from class com.badlogic.ashley.core.EntitySystem
checkProcessing, getEngine, setProcessing
-
Field Details
-
sb
private com.badlogic.gdx.graphics.g2d.SpriteBatch sb -
camera
private com.badlogic.gdx.graphics.OrthographicCamera camera -
renderingAccumulator
private float renderingAccumulator -
mapRenderer
-
Zcomparator
-
Ycomparator
-
entities
List<com.badlogic.ashley.core.Entity> entities
-
-
Constructor Details
-
RenderingSystem
public RenderingSystem(com.badlogic.gdx.maps.tiled.TiledMap map, com.badlogic.gdx.graphics.g2d.SpriteBatch batch, 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.
-
setFoodTransform
private void setFoodTransform(com.badlogic.ashley.core.Entity station) -
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
-
addedToEngine
public void addedToEngine(com.badlogic.ashley.core.Engine engine) Description copied from class:com.badlogic.ashley.core.EntitySystem
Called when this EntitySystem is added to anEngine
.- Overrides:
addedToEngine
in classcom.badlogic.ashley.systems.IteratingSystem
- Parameters:
engine
- TheEngine
this system was added to.
-