Beispiel #1
0
        /// <summary>
        /// Calculates the next position after a layer rotation
        /// </summary>
        /// <param name="layer">Rotation layer</param>
        /// <param name="direction">Rotation direction</param>
        public void NextFlag(CubeFlag layer, bool direction)
        {
            CubeFlag newFlags = CubeFlagService.NextFlags(Flags, layer, direction);

            this.X = CubeFlagService.FirstXFlag(newFlags);
            this.Y = CubeFlagService.FirstYFlag(newFlags);
            this.Z = CubeFlagService.FirstZFlag(newFlags);
        }