|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The throw of a dart by a player in a particular turn. The throw is targetted at a certain zone of the board and has hit a particuler board location, possibly in a different zone.
Throw objects have reference semantics. Each Throw object represents a specific throw.
Method Summary | |
Hit |
getHit()
Returns the hit information for the zone: where did the dart that was thrown hit the darts board? |
Zone |
getTargetZone()
Returns the zone this throw was targetted at. |
Turn |
getTurn()
Returns the turn this throw belows to. |
boolean |
isValid()
Return whether or not this is a valid throw. |
void |
setValid(boolean b)
Set whether or not this is a valid throw. |
Methods inherited from interface org.dartra.framework.Persistent |
getId, setId |
Method Detail |
public Turn getTurn()
Returns the turn this throw belows to.
public Zone getTargetZone()
Returns the zone this throw was targetted at.
public Hit getHit()
Returns the hit information for the zone: where did the dart that was thrown hit the darts board?
public void setValid(boolean b)
Set whether or not this is a valid throw. This is decided by the game.
public boolean isValid()
Return whether or not this is a valid throw.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |