GamePanel

public class GamePanel extends JPanel

Fields

SCALING_FACTOR

public static final int SCALING_FACTOR

WIDTH

public static final int WIDTH

playerColors

public static final Color[] playerColors

Constructors

GamePanel

public GamePanel(VisualAgent agent)

Methods

paintComponent

public void paintComponent(Graphics g)

reset

public void reset()

scaleX

public int scaleX(int x)

scaleY

public int scaleY(int y)

unscaleX

public int unscaleX(int x)

unscaleY

public int unscaleY(int y)

updateState

public void updateState(StateView state, HistoryView history)