Пример #1
0
 /**
  * <summary>
  * Sets the general HexType for a Hex at given x and y values on the HexMap.
  * See <see cref="Hex.HexType"/>.
  * </summary>
  * <remarks>This overload uses Coords rather than specific x and y values.</remarks>
  * <param name="coords">The Coords for the Hex to be changed.</param>
  * <param name="type">New HexType for the given Hex.</param>
  */
 public void SetTypeAt(Coords coords, Hex.HexType type)
 {
     if (!coords.invalid)
     {
         _map[coords.x, coords.y].Type = type;
     }
 }
Пример #2
0
 /**
  * <summary>
  * Sets the general HexType for a Hex at given x and y values on the HexMap.
  * See <see cref="Hex.HexType"/>.
  * </summary>
  *
  * <param name="x">x value of the Hex to be changed.</param>
  * <param name="y">y value of the Hex to be changed.</param>
  * <param name="type">New HexType for the given Hex.</param>
  */
 public void SetTypeAt(int x, int y, Hex.HexType type)
 {
     _map[x, y].Type = type;
 }