/// <summary> /// Constructor /// </summary> /// <param name="type">The type of gesture</param> /// <param name="direction">The direction of the gesture</param> /// <param name="position">The point the gesture was indicating</param> /// <param name="skel">The skeleton id of the player making the gesture</param> /// <param name="executionSpeed">Ratio of how fast the gesture was performed</param> public InputGesture(InputGestureType type, Direction direction, Vector2 position, int skel, double executionSpeed) { this.Type = type; this.Direction = direction; this.Position = position; this.SkeletonIndex = skel; this.ExecutionSpeed = executionSpeed; }
private void EnqueueGesture(InputGestureType type, Direction direction, double speed) { this.pendingGestures.Enqueue(new InputGesture(type, direction, speed)); }
private void EnqueueGesture(InputGestureType type, Direction direction) { EnqueueGesture(type, direction, 1.0); }
/// <summary> /// Constructor /// </summary> /// <param name="type">The type of gesture</param> /// <param name="direction">The direction of the gesture</param> /// <param name="position">The point the gesture was indicating</param> public InputGesture(InputGestureType type, Direction direction, Vector2 position) : this(type, direction, position, -1) { }
/// <summary> /// Constructor /// </summary> /// <param name="type">The type of gesture</param> /// <param name="direction">The direction of the gesture</param> /// <param name="position">The point the gesture was indicating</param> /// <param name="skel">The skeleton id of the player making the gesture</param> public InputGesture(InputGestureType type, Direction direction, Vector2 position, int skel) : this(type, direction, position, skel, 1.0) { }
/// <summary> /// Constructor /// </summary> /// <param name="type">The type of gesture</param> public InputGesture(InputGestureType type) : this(type, Direction.NONE) { }
/// <summary> /// Constructor /// </summary> /// <param name="type">The type of gesture</param> /// <param name="direction">The direction of the gesture</param> public InputGesture(InputGestureType type, Direction direction) : this(type, direction, Vector2.Zero) { }
/// <summary> /// Constructor /// </summary> /// <param name="type">The type of gesture</param> /// <param name="direction">The direction of the gesture</param> /// <param name="executionSpeed">Ratio of how fast the gesture was performed</param> public InputGesture(InputGestureType type, Direction direction, double executionSpeed) : this(type, direction, Vector2.Zero, -1, executionSpeed) { }