|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A darts board. A darts game is played on a darts board. A darts board consists of several zones. In a way, a Board object is a factory of Zone objects.
Darts boards are really strategy objects so they have reference semantics. A darts board is an algorithm to calculate a zone based on hit information.
Method Summary | |
java.lang.String |
getName()
Return the name of the board. |
double |
getSize()
Returns the size of the board (diameter). |
Zone |
getZone(Location loc)
Get the zone containing given location on the board, or null if there is no such zone. |
Zone |
getZone(java.lang.String code)
Get the zone with given code, or null if there is no such zone. |
java.util.Vector |
getZones()
Get the collection of zones for this board. |
Methods inherited from interface org.dartra.framework.Persistent |
getId, setId |
Method Detail |
public java.lang.String getName()
Return the name of the board.
public java.util.Vector getZones()
Get the collection of zones for this board. The returned collection contains Zone objects.
public Zone getZone(java.lang.String code)
Get the zone with given code, or null if there is no such zone.
public Zone getZone(Location loc)
Get the zone containing given location on the board, or null if there is no such zone.
public double getSize()
Returns the size of the board (diameter).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |