|
||||||||||
| 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()
ZoneReturn the board that this zone is a part of.
getBoard in interface Zonepublic java.lang.String getName()
ZoneReturn the name of this zone.
getName in interface Zonepublic java.lang.String getCode()
ZoneReturn the unique code of the zone.
getCode in interface Zonepublic int getNumber()
ZoneReturn the number associated with the zone on the darts board.
getNumber in interface Zonepublic int getMultiplier()
ZoneReturn the multiplier associated with the zone on the darts board.
getMultiplier in interface Zonepublic Location getCenter()
ZoneGet the center location of the zone.
getCenter in interface Zonepublic 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)
ZoneReturns the distance between this zone and the hit location of given hit.
distanceTo in interface Zonepublic double distanceTo(Location location)
ZoneReturns the distance between this zone and given location.
distanceTo in interface Zonepublic double distanceTo(Zone zone)
ZoneReturns the distance between this zone and given zone.
distanceTo in interface Zonepublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||