public class GameInformationModel
extends java.util.Observable
Constructor and Description |
---|
GameInformationModel(int remainingsDiamonds) |
Modifier and Type | Method and Description |
---|---|
void |
decrementRemainingsDiamonds()
Decrement of one the number total of remaining diamonds.
|
int |
getRemainingsDiamonds()
Returns the actual number of remaining diamonds
|
int |
getScore()
Returns the actual score
|
int |
getTimer()
Gets the timer
|
void |
incrementScore()
Increments the score & notify observers
|
void |
resetInformations()
Reset details about object
|
void |
setRemainingsDiamonds(int remainingDiamonds)
Sets the number of remainingDiamonds
|
void |
setScore(int score)
Sets the score
|
void |
setTimer(int timer)
Sets the timer
|
public int getScore()
public void setScore(int score)
score
- Scorepublic int getRemainingsDiamonds()
public void setRemainingsDiamonds(int remainingDiamonds)
remainingDiamonds
- Remaining diamondspublic int getTimer()
public void setTimer(int timer)
timer
- Timerpublic void incrementScore()
public void decrementRemainingsDiamonds()
public void resetInformations()