|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dartra.standard.visitor.ScoreBoardVisitor
Visitor to gather score board data from a game-match tree.
Constructor Summary | |
ScoreBoardVisitor()
|
Method Summary | |
int |
getMaxLevel()
Returns the level number for the game-match tree. |
Score |
getScoreAtLevel(Player player,
int level)
Return the score for given player at specified level of the game-match tree. |
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 ScoreBoardVisitor()
Method Detail |
public void visitGame(Game game)
GameVisitor
Process game data.
visitGame
in interface GameVisitor
public void visitMatch(Match match)
GameVisitor
Process match data.
visitMatch
in interface GameVisitor
public Score getScoreAtLevel(Player player, int level)
Return the score for given player at specified level of the game-match tree.
public int getMaxLevel()
Returns the level number for the game-match tree. For instance, for a game/set/match system, this would be 2.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |