public class SavedMatch
extends java.lang.Object
| Constructor and Description |
|---|
SavedMatch()
Create an empty/default SavedMatch
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMatchLength()
Return the number of games in this match
|
java.lang.String |
getOpponentName()
Get the name of the opponent
|
int |
getOpponentScore()
Get the opponent's score in this match
|
int |
getYourScore()
Get Your score in this match
|
void |
setMatchLength(int matchLength)
Set the number of games in this match.
|
void |
setOpponentName(java.lang.String name)
Set the name of the opponent
|
void |
setOpponentScore(int opponentScore)
Set the opponent's score in this match
|
void |
setYourScore(int yourScore)
Set Your score in this match
|
public java.lang.String getOpponentName()
public void setOpponentName(java.lang.String name)
name - the name to setpublic int getMatchLength()
public void setMatchLength(int matchLength)
matchLength - the matchLength to setpublic int getYourScore()
public void setYourScore(int yourScore)
yourScore - the yourScore to setpublic int getOpponentScore()
public void setOpponentScore(int opponentScore)
opponentScore - the opponentScore to set