public class GameScore extends Object
Modifier and Type | Method and Description |
---|---|
void |
decrease(int dec)
Decrease the score by a specified amount.
|
static GameScore |
getInstance()
Get the single instance of the game score manager.
|
int |
getScore()
Get the score.
|
void |
increase(int inc)
Increase the score by a specified amount.
|
static void |
main(String[] args) |
public static GameScore getInstance()
public int getScore()
public void increase(int inc)
inc
- The amount to increase the score by.inc >= 0
public void decrease(int dec)
dec
- The amount to decrease the score by.dec >= 0
public static void main(String[] args)