|
Jacson | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.spieleck.app.turn.scoring.BaseScoring de.spieleck.app.turn.scoring.Zoff
public class Zoff
A ScoringMode for a match of Zoff.
During a match of this card games a player obtains both
a score and a rank. The rank is the major scoring component,
since it depends on the score, but has an additional rule to
avoid ties. The table score is however retained for tie breaking
of the tournament ranking.
$URL: https://svn.sourceforge.net/svnroot/jtourney/src/de/spieleck/app/turn/scoring/Zoff.java $
Nested Class Summary | |
---|---|
static class |
Zoff.ZoffScore
|
Constructor Summary | |
---|---|
Zoff()
|
Method Summary | |
---|---|
PlayerScore |
addPlayers(PlayerScore ps,
PlayerScore pgs)
Accumulate player total scores to another total for tiebreaking reasons. |
PlayerGameScore[] |
adjustScore(PlayerGameScore[] pgs)
Perform adjustments on the playerscores of a game. |
java.lang.String |
checkScore(PlayerGameScore[] pgs)
Return error when scores are not fitting together. |
PlayerGameScore |
parseRawScore(java.lang.String line)
Parse a single players score from a String. |
java.lang.String |
toString()
|
PlayerGameScore |
zeroScore()
Generate a zero score for a game with yet no outcome. |
Methods inherited from class de.spieleck.app.turn.scoring.BaseScoring |
---|
add, init, initialValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Zoff()
Method Detail |
---|
public PlayerGameScore parseRawScore(java.lang.String line)
ScoringMode
public java.lang.String checkScore(PlayerGameScore[] pgs)
ScoringMode
checkScore
in interface ScoringMode
checkScore
in class BaseScoring
public PlayerGameScore[] adjustScore(PlayerGameScore[] pgs)
ScoringMode
public PlayerGameScore zeroScore()
ScoringMode
public PlayerScore addPlayers(PlayerScore ps, PlayerScore pgs)
ScoringMode
public java.lang.String toString()
toString
in class java.lang.Object
|
spieleck.de | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |