org.dartra.standard
Class StandardObjective

java.lang.Object
  extended byorg.dartra.standard.StandardObjective
All Implemented Interfaces:
Objective

public class StandardObjective
extends java.lang.Object
implements Objective

Standard implementation of the Objective interface.

Author:
Erwin Vervaet

Constructor Summary
StandardObjective(Player player)
           
StandardObjective(Player player, Zone zone)
           
 
Method Summary
 Player getPlayer()
          Returns the player that should try to obtain the objective.
 Zone getZone()
          Return the zone that should be targetted.
 boolean isEndTurn()
          Returns true if the player should end his turn.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StandardObjective

public StandardObjective(Player player,
                         Zone zone)

StandardObjective

public StandardObjective(Player player)
Method Detail

getPlayer

public Player getPlayer()
Description copied from interface: Objective

Returns the player that should try to obtain the objective.

Specified by:
getPlayer in interface Objective

getZone

public Zone getZone()
Description copied from interface: Objective

Return the zone that should be targetted.

Specified by:
getZone in interface Objective

isEndTurn

public boolean isEndTurn()
Description copied from interface: Objective

Returns true if the player should end his turn.

Specified by:
isEndTurn in interface Objective

toString

public java.lang.String toString()