|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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()
Throw
Returns the turn this throw belows to.
getTurn
in interface Throw
public Zone getTargetZone()
Throw
Returns the zone this throw was targetted at.
getTargetZone
in interface Throw
public Hit getHit()
Throw
Returns the hit information for the zone: where did the dart that was thrown hit the darts board?
getHit
in interface Throw
public void setValid(boolean b)
Throw
Set whether or not this is a valid throw. This is decided by the game.
setValid
in interface Throw
public boolean isValid()
Throw
Return whether or not this is a valid throw.
isValid
in interface Throw
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |