public class View
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
javafx.scene.canvas.Canvas |
gameCanvas
The canvas to draw on.
|
static int |
VIEW_HEIGHT
The height of one view element in pixels.
|
static int |
VIEW_WIDTH
The width of one view element in pixels.
|
Constructor and Description |
---|
View() |
Modifier and Type | Method and Description |
---|---|
void |
canvasClick(javafx.scene.input.MouseEvent mouseEvent)
Handles click event on the canvas.
|
void |
handleContinueEvent()
Handles Continue menu item.
|
void |
handleExitEvent()
Handles Exit menu item.
|
void |
handleNewEvent()
Handles New menu item.
|
public static final int VIEW_WIDTH
public static final int VIEW_HEIGHT
public javafx.scene.canvas.Canvas gameCanvas
public void handleContinueEvent()
public void handleExitEvent()
public void handleNewEvent()
public void canvasClick(javafx.scene.input.MouseEvent mouseEvent)
mouseEvent
- the event