Example #1
0
 HexLinePositionInfo(HexLinePositionInfoType type, int position, int cellPosition)
 {
     Type         = type;
     Position     = position;
     CellPosition = cellPosition;
     Cell         = null;
 }
Example #2
0
		HexLinePositionInfo(HexLinePositionInfoType type, int position, HexCell cell) {
			Type = type;
			Position = position;
			CellPosition = position - cell.CellSpan.Start;
			if (CellPosition < 0)
				throw new ArgumentOutOfRangeException(nameof(position));
			Cell = cell;
		}
Example #3
0
 HexLinePositionInfo(HexLinePositionInfoType type, int position, HexCell cell)
 {
     Type         = type;
     Position     = position;
     CellPosition = position - cell.CellSpan.Start;
     if (CellPosition < 0)
     {
         throw new ArgumentOutOfRangeException(nameof(position));
     }
     Cell = cell;
 }
Example #4
0
		HexLinePositionInfo(HexLinePositionInfoType type, int position, int cellPosition) {
			Type = type;
			Position = position;
			CellPosition = cellPosition;
			Cell = null;
		}