|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dartra.standard.PersistentObject
org.dartra.standard.StandardZone
Zone of a standard darts board.
Constructor Summary | |
protected |
StandardZone(Board board,
java.lang.String name,
java.lang.String code,
int number,
int multiplier,
Location center)
Create a new standard zone. |
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. |
boolean |
isInner()
Returns whether or not this zone is part of the inner area of a standard darts board (inside the trebles ring). |
boolean |
isOuter()
Returns whether or not this zone is part of the outer area of a standard darts board (outside the trebles ring). |
java.lang.String |
toString()
|
Methods inherited from class org.dartra.standard.PersistentObject |
getId, setId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.dartra.framework.Persistent |
getId, setId |
Constructor Detail |
protected StandardZone(Board board, java.lang.String name, java.lang.String code, int number, int multiplier, Location center)
Create a new standard zone.
Method Detail |
public Board getBoard()
Zone
Return the board that this zone is a part of.
getBoard
in interface Zone
public java.lang.String getName()
Zone
Return the name of this zone.
getName
in interface Zone
public java.lang.String getCode()
Zone
Return the unique code of the zone.
getCode
in interface Zone
public int getNumber()
Zone
Return the number associated with the zone on the darts board.
getNumber
in interface Zone
public int getMultiplier()
Zone
Return the multiplier associated with the zone on the darts board.
getMultiplier
in interface Zone
public Location getCenter()
Zone
Get the center location of the zone.
getCenter
in interface Zone
public boolean isInner()
Returns whether or not this zone is part of the inner area of a standard darts board (inside the trebles ring).
public boolean isOuter()
Returns whether or not this zone is part of the outer area of a standard darts board (outside the trebles ring).
public double distanceTo(Hit hit)
Zone
Returns the distance between this zone and the hit location of given hit.
distanceTo
in interface Zone
public double distanceTo(Location location)
Zone
Returns the distance between this zone and given location.
distanceTo
in interface Zone
public double distanceTo(Zone zone)
Zone
Returns the distance between this zone and given zone.
distanceTo
in interface Zone
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |