org.dartra.framework
Interface Throw

All Superinterfaces:
Persistent
All Known Implementing Classes:
StandardThrow

public interface Throw
extends Persistent

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.

Author:
Erwin Vervaet

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

getTurn

public Turn getTurn()

Returns the turn this throw belows to.


getTargetZone

public Zone getTargetZone()

Returns the zone this throw was targetted at.


getHit

public Hit getHit()

Returns the hit information for the zone: where did the dart that was thrown hit the darts board?


setValid

public void setValid(boolean b)

Set whether or not this is a valid throw. This is decided by the game.


isValid

public boolean isValid()

Return whether or not this is a valid throw.