public class UI
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
private char[][] |
board
The two dimension character array version of the board.
|
private Keyboard |
keyboard
The keyboard that allows keyboard input.
|
private int |
maxX
The maximum x position.
|
private int |
maxY
The maximum y position.
|
private TextBoard |
textBoard
The text board used to display the ball.
|
private World |
world
The physics world.
|
Constructor and Description |
---|
UI(World world,
int rows,
int columns,
int fontSize)
Constructs the user interface.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Updates the user interface.
|
private World world
private TextBoard textBoard
private char[][] board
private Keyboard keyboard
private int maxY
private int maxX
public UI(World world, int rows, int columns, int fontSize)
world
- The physics world.rows
- The number of rows in the user interface.columns
- The number of columns in the user interface.fontSize
- The font size used in the user interface.