|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dartra.games.cricket.visitor.CricketScoreVisitor
Visitor to retrieve the score from a cricket game.
| Constructor Summary | |
CricketScoreVisitor(boolean composed)
|
|
| Method Summary | |
protected int |
findPlace(java.lang.String goal)
|
java.lang.String[] |
getGoals()
|
int[] |
hits(Player player)
|
int |
hitsForGoal(Player player,
java.lang.String goal)
|
int[] |
points(Player player)
|
int |
pointsForGoal(Player player,
java.lang.String goal)
|
java.lang.Integer |
totalScore(Player player)
|
void |
visitGame(Game game)
Process game data. |
void |
visitMatch(Match match)
Process match data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CricketScoreVisitor(boolean composed)
| Method Detail |
public void visitGame(Game game)
GameVisitorProcess game data.
visitGame in interface GameVisitorGameVisitor.visitGame(org.dartra.framework.Game)public void visitMatch(Match match)
GameVisitorProcess match data.
visitMatch in interface GameVisitorGameVisitor.visitMatch(org.dartra.framework.Match)public java.lang.String[] getGoals()
public int[] points(Player player)
public int pointsForGoal(Player player,
java.lang.String goal)
public int[] hits(Player player)
public int hitsForGoal(Player player,
java.lang.String goal)
public java.lang.Integer totalScore(Player player)
protected int findPlace(java.lang.String goal)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||