org.dartra.games.golf
Class GolfScoreHelper
java.lang.Object
org.dartra.games.golf.GolfScoreHelper
- public class GolfScoreHelper
- extends java.lang.Object
Helper class for score calculation methods for golf darts games.
- Author:
- Bieke Meeussen
- See Also:
GolfGame
,
GolfStatisticsVisitor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HOLE_IN_ONE
public static final int HOLE_IN_ONE
- See Also:
- Constant Field Values
BIRDIE
public static final int BIRDIE
- See Also:
- Constant Field Values
PAR_THREE
public static final int PAR_THREE
- See Also:
- Constant Field Values
BOGEY
public static final int BOGEY
- See Also:
- Constant Field Values
DOUBLE_BOGEY
public static final int DOUBLE_BOGEY
- See Also:
- Constant Field Values
GolfScoreHelper
public GolfScoreHelper()
emptyTurn
public boolean emptyTurn(Turn turn)
getScoreForTurn
public int getScoreForTurn(Turn turn,
int hole)