public class Hud
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
Sonic |
curSonic
An instance of the Sonic object
|
java.awt.image.BufferedImage |
image
Stores the image of the Sonic icon
|
static java.lang.String |
IMAGE_FILENAME
The filename of the Sonic icon
|
| Constructor and Description |
|---|
Hud()
The default constructor
|
Hud(GameObject sonic)
The general constructor used to create the HUD
|
| Modifier and Type | Method and Description |
|---|---|
void |
paint(java.awt.Graphics g)
Draws the UI for the HUD
|
public static final java.lang.String IMAGE_FILENAME
public java.awt.image.BufferedImage image
public Sonic curSonic
public Hud()
public Hud(GameObject sonic)
sonic - Displays the scores of this game object