public static class MountainCarVisualizer.AgentPainter extends java.lang.Object implements StatePainter
Constructor and Description |
---|
AgentPainter(MountainCar.MCPhysicsParams physParams)
Initializes with the mountain car physics used
|
Modifier and Type | Method and Description |
---|---|
void |
paint(java.awt.Graphics2D g2,
State s,
float cWidth,
float cHeight)
Paints general state information not to graphics context g2
|
public AgentPainter(MountainCar.MCPhysicsParams physParams)
physParams
- the mountain car physics usedpublic void paint(java.awt.Graphics2D g2, State s, float cWidth, float cHeight)
StatePainter
paint
in interface StatePainter
g2
- graphics context to which the static data should be painteds
- the state to be paintedcWidth
- the width of the canvascHeight
- the height of the canvas