net.sf.colossus.variant
Class Variant.AcquirableData
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
private final java.lang.String name
value
private final int value
where
private final java.util.List<MasterBoardTerrain> where
Variant.AcquirableData
public Variant.AcquirableData(java.lang.String n,
int v,
java.util.List<MasterBoardTerrain> terrains)
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