Esempio n. 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);
        }
Esempio n. 2
0
 public FlipCommand(FlipDirections direction)
 {
     Direction = direction;
 }
Esempio n. 3
0
 private Action Flip(FlipDirections direction)
 {
     return(CreateAction(direction));
 }
Esempio n. 4
0
 private Action CreateAction(FlipDirections direction)
 {
     return(new Action(direction.ToString(), $"flip {getFlipDirectionsString(direction)}", Action.ActionTypes.Control, Client));
 }
Esempio n. 5
0
 public Flip(FlipDirections direction)
 {
     Direction = direction;
 }