public class StateRenderLayer extends java.lang.Object implements RenderLayer
Modifier and Type | Field and Description |
---|---|
protected State |
curState
the current state to be painted next
|
protected java.util.List<StatePainter> |
statePainters
list of static painters that pain static non-object defined properties of the domain
|
Constructor and Description |
---|
StateRenderLayer() |
Modifier and Type | Method and Description |
---|---|
void |
addStatePainter(StatePainter sp)
Adds a static painter for the domain.
|
State |
getCurState() |
java.util.List<StatePainter> |
getStatePainters() |
void |
render(java.awt.Graphics2D g2,
float width,
float height) |
void |
updateState(State s)
Updates the state that needs to be painted
|
protected State curState
protected java.util.List<StatePainter> statePainters
public void addStatePainter(StatePainter sp)
sp
- the static painter to add.public void updateState(State s)
s
- the state to paintpublic State getCurState()
public java.util.List<StatePainter> getStatePainters()
public void render(java.awt.Graphics2D g2, float width, float height)
render
in interface RenderLayer