Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        public int[,] getRotation(rotType dir)
        {
            int target = rotation;
            if (dir == rotType.CW)
                target++;
            if (dir == rotType.CCW)
                target--;

            return shapeArray[(target + 4) % 4];
        }