/// <summary> /// Constructor for hex coords (numbers) /// </summary> public HexagonCell(HexagonalGrid argOwner, int argM = 0, int argR = 0, int argL = 0) { Owner = argOwner; HexCoorinates = new HexagonCoord(argM, argR, argL); //Default initialisation for none-parametrised properties PresentedTile = MapTiles.Grass; InnerAgent = null; }
/// <summary> /// Constructor for XY coords (class) /// </summary> public HexagonCell(HexagonalGrid argOwner, Point argXYcoords) : this(argOwner, HexagonCoord.GetHexCoords(argXYcoords.X, argXYcoords.Y, argOwner.EdgeLenght, new Point())) { }
/// <summary> /// Constructor for XY coords (numbers) /// </summary> public HexagonCell(HexagonalGrid argOwner, int argX = 0, int argY = 0) : this(argOwner, HexagonCoord.GetHexCoords(argX, argY, argOwner.EdgeLenght, new Point())) { }
/// <summary> /// Constructor for hex coords (class) /// </summary> public HexagonCell(HexagonalGrid argOwner, HexagonCoord argHexCoords) : this(argOwner, argHexCoords.M, argHexCoords.R, argHexCoords.L) { }