public class AnimatedHumanLayer extends HumanLayer
entities
VISIBILITY_SUFFIX, world
component
Constructor and Description |
---|
AnimatedHumanLayer()
Construct an animated human view layer.
|
Modifier and Type | Method and Description |
---|---|
protected Pair<java.lang.Integer,java.lang.Integer> |
getLocation(Human h)
Get the location of a human.
|
java.lang.String |
getName()
Get the name of this layer.
|
void |
initialise(Config config)
Initialise this view layer.
|
boolean |
nextFrame()
Increase the frame number.
|
protected void |
preView()
Perform any pre-processing required before
StandardEntityViewLayer.view(java.lang.Object...) has been called. |
protected void |
viewObject(java.lang.Object o)
Callback function for processing a concrete viewable object.
|
getPopupMenuItems, postView, render
render, view
isVisible, processView, setLayerViewComponent, setVisible
public AnimatedHumanLayer()
public void initialise(Config config)
ViewLayer
initialise
in interface ViewLayer
initialise
in class HumanLayer
config
- The system configuration.public java.lang.String getName()
ViewLayer
getName
in interface ViewLayer
getName
in class HumanLayer
public boolean nextFrame()
protected Pair<java.lang.Integer,java.lang.Integer> getLocation(Human h)
HumanLayer
getLocation
in class HumanLayer
h
- The human to look up.protected void preView()
StandardEntityViewLayer
StandardEntityViewLayer.view(java.lang.Object...)
has been called.preView
in class StandardEntityViewLayer<Human>
protected void viewObject(java.lang.Object o)
AbstractViewLayer
viewObject
in class StandardEntityViewLayer<Human>
o
- The object to process.