|
Jacson | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScoringMode
Represents a way how games and players are scored.
ScoringMode is actually factories (GoF pattern) for
implementations of PlayerGameScore
and PlayerScore
.
$URL: https://svn.sourceforge.net/svnroot/jtourney/src/de/spieleck/app/turn/ScoringMode.java $
Method Summary | |
---|---|
PlayerScore |
add(PlayerScore p,
PlayerGameScore pgs)
Accumulate the total score of a player with the outcome of one game. |
PlayerScore |
addPlayers(PlayerScore p1,
PlayerScore p2)
Accumulate player total scores to another total for tiebreaking reasons. |
PlayerGameScore[] |
adjustScore(PlayerGameScore[] raw)
Perform adjustments on the playerscores of a game. |
java.lang.String |
checkScore(PlayerGameScore[] raw)
Return error when scores are not fitting together. |
PlayerScore |
initialValue()
Generate an initial score for a players tournament start. |
PlayerGameScore |
parseRawScore(java.lang.String line)
Parse a single players score from a String. |
PlayerGameScore |
zeroScore()
Generate a zero score for a game with yet no outcome. |
Methods inherited from interface de.spieleck.app.turn.LineSourceInited |
---|
init |
Method Detail |
---|
PlayerGameScore parseRawScore(java.lang.String line) throws java.lang.Exception
java.lang.Exception
java.lang.String checkScore(PlayerGameScore[] raw)
PlayerGameScore[] adjustScore(PlayerGameScore[] raw)
PlayerScore add(PlayerScore p, PlayerGameScore pgs)
PlayerScore addPlayers(PlayerScore p1, PlayerScore p2)
PlayerScore initialValue()
PlayerGameScore zeroScore()
|
spieleck.de | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |