Exemplo n.º 1
0
        internal RubixCubeTopFace MoveToTop()
        {
            RubixCubeTopFace newFace = new RubixCubeTopFace();

            RotateAnticlockwiseThroughFront(newFace);
            return(newFace);
        }
Exemplo n.º 2
0
        internal RubixCubeTopFace Clone()
        {
            RubixCubeTopFace newFace = new RubixCubeTopFace();

            Clone(newFace);
            return(newFace);
        }
Exemplo n.º 3
0
        internal RubixCubeTopFace RotateAnticlockwise()
        {
            RubixCubeTopFace newFace = new RubixCubeTopFace();

            RotateAntiClockwiseThroughCenterCube(newFace);
            return(newFace);
        }
Exemplo n.º 4
0
        internal RubixCubeTopFace MoveToTop()
        {
            RubixCubeTopFace newFace = new RubixCubeTopFace();

            RotateClockwiseThroughLeft(newFace);
            return(newFace);
        }
 public RubixCubeLeftFaceRotation(RubixCube cube, RubixCubeLeftFace newLeftFace)
 {
     this.newLeftFace = newLeftFace;
     oldFrontFace     = cube.FrontFace;
     newFrontFace     = oldFrontFace.Clone();
     oldTopFace       = cube.TopFace;
     newTopFace       = oldTopFace.Clone();
     oldBottomFace    = cube.BottomFace;
     newBottomFace    = oldBottomFace.Clone();
     oldBackFace      = cube.BackFace;
     newBackFace      = oldBackFace.Clone();
     UpdateFaces();
     RemoveOldCubes();
     AddNewCubes();
 }