Exemplo n.º 1
0
 /**
  * <summary>
  * Constructor for LayeredExpansion which allows customization of the
  * upper and lower bounds for hex proportioning.
  * </summary>
  * <param name="hexExpander">HexExpander that will carry out expansion.</param>
  * <param name="validCoords">Coords that may be expanded in.</param>
  * <param name="lowerProportionBound">Lower bound of hex proportioning.</param>
  * <param name="upperProportionBound">Upper bound of hex proportioning.</param>
  */
 public LayeredExpansion(IRandomGen rand, LayeredExpander layeredExpander,
                         List <Coords> validCoords, double lowerProportionBound, double upperProportionBound)
     : this(rand, layeredExpander, validCoords)
 {
     LowerProportionBound = lowerProportionBound;
     UpperProportionBound = upperProportionBound;
 }
Exemplo n.º 2
0
 /**
  * <summary>
  * Constructor for LayeredExpansion takes a HexExpander to carry out the
  * expansion and a list of coords that are valid. Proportion bounds are
  * set to 0.0 for the lower and 1.0 for the upper.
  * </summary>
  * <param name="hexExpander">HexExpander that will carry out expansion.</param>
  * <param name="validCoords">Coords that may be expanded in.</param>
  */
 public LayeredExpansion(IRandomGen rand, LayeredExpander layeredExpander, List <Coords> validCoords)
 {
     _rand       = rand;
     Expander    = layeredExpander;
     ValidCoords = validCoords;
 }