|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgroup1.model.ScoreModelMediator
public class ScoreModelMediator
A special mediator class that should be referenced by anything in the model that needs to add points to the game's score.
| Method Summary | |
|---|---|
boolean |
addPoints(int points)
Add points to the total score. |
static ScoreModelMediator |
getInstance()
Get an instance of this class. |
void |
setGame(Game g)
Set the game referenced by this class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ScoreModelMediator getInstance()
public void setGame(Game g)
g - The game.public boolean addPoints(int points)
points - The number of points to add.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||