Class 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

      Fields 
      Modifier and Type Field Description
      private java.lang.String name  
      private int value  
      private java.util.List<MasterBoardTerrain> where  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (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
    • Constructor Detail

      • AcquirableData

        public 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