E
- The entity type used.public abstract class HandlerEntityPlatform<E extends EntityPlatform> extends HandlerEntityGame<E>
Constructor and Description |
---|
HandlerEntityPlatform(CameraPlatform camera)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
canUpdateEntity(E entity)
Check if entity can be updated.
|
protected void |
render(com.b3dgs.lionengine.Graphic g,
E entity) |
protected abstract void |
renderingEntity(E entity,
com.b3dgs.lionengine.Graphic g,
CameraPlatform camera)
Render this entity (
EntityPlatform.render(Graphic, CameraPlatform) is already called before). |
protected void |
update(double extrp,
E entity) |
protected abstract void |
updatingEntity(E entity,
double extrp)
Update this entity (
EntityPlatform.update(double) is already called before). |
add, canBeAdded, get, list, remove, removeAll, render, size, update
public HandlerEntityPlatform(CameraPlatform camera)
camera
- The camera reference.protected abstract boolean canUpdateEntity(E entity)
entity
- The entity to check.true
if can be updated, false
else.protected abstract void updatingEntity(E entity, double extrp)
EntityPlatform.update(double)
is already called before).entity
- The current updating entity.extrp
- The extrapolation value.protected abstract void renderingEntity(E entity, com.b3dgs.lionengine.Graphic g, CameraPlatform camera)
EntityPlatform.render(Graphic, CameraPlatform)
is already called before).entity
- The current rendering entity.g
- The graphic output.camera
- The camera reference.protected void update(double extrp, E entity)
update
in class HandlerEntityGame<E extends EntityPlatform>
protected void render(com.b3dgs.lionengine.Graphic g, E entity)
render
in class HandlerObjectGame<E extends EntityPlatform>
Copyright © 2014 Byron 3D Games Studio. All rights reserved.