|
||||||||||
| 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.StandardThrow
A standard throw implementation.
| Constructor Summary | |
StandardThrow(Turn turn,
Zone targetZone,
Hit hit)
|
|
| 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. |
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 |
public StandardThrow(Turn turn,
Zone targetZone,
Hit hit)
| Method Detail |
public Turn getTurn()
ThrowReturns the turn this throw belows to.
getTurn in interface Throwpublic Zone getTargetZone()
ThrowReturns the zone this throw was targetted at.
getTargetZone in interface Throwpublic Hit getHit()
ThrowReturns the hit information for the zone: where did the dart that was thrown hit the darts board?
getHit in interface Throwpublic void setValid(boolean b)
ThrowSet whether or not this is a valid throw. This is decided by the game.
setValid in interface Throwpublic boolean isValid()
ThrowReturn whether or not this is a valid throw.
isValid in interface Throwpublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||