Example #1
0
        private string getFlipDirectionsString(FlipDirections direction)
        {
            switch (direction)
            {
            case FlipDirections.Back:
            {
                return("b");
            }

            case FlipDirections.BackLeft:
            {
                return("bl");
            }

            case FlipDirections.BackRight:
            {
                return("br");
            }

            case FlipDirections.Forward:
            {
                return("f");
            }

            case FlipDirections.FrontLeft:
            {
                return("fl");
            }

            case FlipDirections.FrontRight:
            {
                return("fr");
            }

            case FlipDirections.Left:
            {
                return("l");
            }

            case FlipDirections.Right:
            {
                return("r");
            }
            }
            return(string.Empty);
        }
Example #2
0
 public FlipCommand(FlipDirections direction)
 {
     Direction = direction;
 }
Example #3
0
 private Action Flip(FlipDirections direction)
 {
     return(CreateAction(direction));
 }
Example #4
0
 private Action CreateAction(FlipDirections direction)
 {
     return(new Action(direction.ToString(), $"flip {getFlipDirectionsString(direction)}", Action.ActionTypes.Control, Client));
 }
Example #5
0
 public Flip(FlipDirections direction)
 {
     Direction = direction;
 }