internal int RotateWallSegs(WallSegments ws,int rotate) { int wallSides = (int)ws; int rotPart = ((wallSides << (4 - rotate)) & 15) | ((wallSides & 15) >> rotate); return(rotPart); }
public SpreadItem(Point pt, WallSegments dir) { Pt = pt; Dir = dir; }
private int RotateWallSegs(WallSegments ws, int rotate) { int wallSides = (int)ws; int rotPart = ((wallSides << (4 - rotate)) & 15) | ((wallSides & 15) >> rotate); return rotPart; }