public int[,] setRotation(rotType dir) { int target = rotation; if (dir == rotType.CW) target++; if (dir == rotType.CCW) target--; rotation = (target + 4) % 4; _shape = shapeArray[rotation]; GetDimensions(); return _shape; }
public int[,] getRotation(rotType dir) { int target = rotation; if (dir == rotType.CW) target++; if (dir == rotType.CCW) target--; return shapeArray[(target + 4) % 4]; }