public Entrance(int id, int cl1Id, int cl2Id, int center1Row, int center1Col, int coord1Id, int coord2Id, Orientation orientation)
{
Id = id;
Cluster1Id = cl1Id;
Cluster2Id = cl2Id;
int center1y, center1x;
if (orientation == Orientation.HDIAG2)
center1x = center1Col + 1;
else
center1x = center1Col;
if (orientation == Orientation.VDIAG2)
center1y = center1Row + 1;
else
center1y = center1Row;
this.Coord1 = new Position(center1x, center1y);
this.Coord1Id = coord1Id;
this.Coord2Id = coord2Id;
Orientation = orientation;
}
}