net.sf.colossus.variant
Class Variant.AcquirableData

java.lang.Object
  extended by net.sf.colossus.variant.Variant.AcquirableData
Enclosing class:
Variant

public static class Variant.AcquirableData
extends java.lang.Object

Used internally to record the Acquirable name, points needed for recruiting, and the list of terrains in which the Acquirable dwells.

Author:
Romain Dolbeau

Field Summary
private  java.lang.String name
           
private  int value
           
private  java.util.List<MasterBoardTerrain> where
           
 
Constructor Summary
Variant.AcquirableData(java.lang.String n, int v, java.util.List<MasterBoardTerrain> terrains)
           
 
Method Summary
(package private)  java.lang.String getName()
           
(package private)  int getValue()
           
(package private)  boolean isAvailable(MasterBoardTerrain t)
          Tell if the Acquirable can be Acquired in the terrain.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private final java.lang.String name

value

private final int value

where

private final java.util.List<MasterBoardTerrain> where
Constructor Detail

Variant.AcquirableData

public Variant.AcquirableData(java.lang.String n,
                              int v,
                              java.util.List<MasterBoardTerrain> terrains)
Method Detail

getName

java.lang.String getName()

getValue

int getValue()

isAvailable

boolean isAvailable(MasterBoardTerrain t)
Tell if the Acquirable can be Acquired in the terrain.

Parameters:
t - The terrain in which the Acquirements occurs.
Returns:
True if the Acquirable can be acquired here, false otherwise.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object