|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A zone of a darts board. Zone objects are created and owned by the board to which they belong.
Zone objects have reference semantics.
Method Summary | |
double |
distanceTo(Hit hit)
Returns the distance between this zone and the hit location of given hit. |
double |
distanceTo(Location location)
Returns the distance between this zone and given location. |
double |
distanceTo(Zone zone)
Returns the distance between this zone and given zone. |
Board |
getBoard()
Return the board that this zone is a part of. |
Location |
getCenter()
Get the center location of the zone. |
java.lang.String |
getCode()
Return the unique code of the zone. |
int |
getMultiplier()
Return the multiplier associated with the zone on the darts board. |
java.lang.String |
getName()
Return the name of this zone. |
int |
getNumber()
Return the number associated with the zone on the darts board. |
Methods inherited from interface org.dartra.framework.Persistent |
getId, setId |
Method Detail |
public Board getBoard()
Return the board that this zone is a part of.
public java.lang.String getName()
Return the name of this zone.
public java.lang.String getCode()
Return the unique code of the zone.
public int getNumber()
Return the number associated with the zone on the darts board.
public int getMultiplier()
Return the multiplier associated with the zone on the darts board.
public Location getCenter()
Get the center location of the zone.
public double distanceTo(Zone zone)
Returns the distance between this zone and given zone.
public double distanceTo(Hit hit)
Returns the distance between this zone and the hit location of given hit.
public double distanceTo(Location location)
Returns the distance between this zone and given location.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |