public class Menu
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BUTTON_H
The height of the buttons on the screen
|
static int |
BUTTON_W
The width of the buttons on the screen
|
static int |
BUTTON_X
The x positions of the buttons
|
static int |
CONTROLS_OFFSET_X
The x offset of the text inside of the controls button
|
static int |
CONTROLS_Y
The y position of the controls button
|
static int |
QUIT_OFFSET_X
The x offset of the text inside of the quit button
|
static int |
QUIT_Y
The y position of the quit button
|
static int |
RESUME_OFFSET_X
The x offset of the text inside of the resume button
|
static int |
RESUME_Y
The y position of the resume button
|
static int |
TEXT_OFFSET_Y
The y offset of the text inside of the buttons
|
| Constructor and Description |
|---|
Menu()
The default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
paint(java.awt.Graphics g)
Draws the UI of the Menu
|
public static final int BUTTON_W
public static final int BUTTON_H
public static final int BUTTON_X
public static final int RESUME_Y
public static final int CONTROLS_Y
public static final int QUIT_Y
public static final int TEXT_OFFSET_Y
public static final int RESUME_OFFSET_X
public static final int CONTROLS_OFFSET_X
public static final int QUIT_OFFSET_X