org.dartra.games.golf
Class GolfScoreHelper

java.lang.Object
  extended byorg.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

Field Summary
static int BIRDIE
           
static int BOGEY
           
static int DOUBLE_BOGEY
           
static int HOLE_IN_ONE
           
static int PAR_THREE
           
 
Constructor Summary
GolfScoreHelper()
           
 
Method Summary
 boolean emptyTurn(Turn turn)
           
 int getScoreForTurn(Turn turn, int hole)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

GolfScoreHelper

public GolfScoreHelper()
Method Detail

emptyTurn

public boolean emptyTurn(Turn turn)

getScoreForTurn

public int getScoreForTurn(Turn turn,
                           int hole)