C# 클래스 WaveEngine.Components.Gestures.TouchGestures

상속: Behavior, ITouchable
파일 보기 프로젝트 열기: WaveEngine/Components 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ComputeCentroid System.Vector2
DrawOrderPropertyChanged void
FindTwoFarthestTouches void
FreeState void
InvokeEvent void
IsGestureSupported bool
IsMoving bool
IsMovingOverThreshold bool
NoneState void
PressedState void
StoppedAndDragState void
TapState void
UpdatePreviousValues void

공개 메소드들

메소드 설명
AddTouch ( TouchLocation touch, bool isNew ) : void

Adds a TouchLocation to the current active touches.

Contains ( System.Vector2 point ) : bool

Determines whether the required Collider2D contains the passed point.

ReadGesture ( ) : GestureSample

Gets the current GestureSample.

TouchGestures ( ) : System

Initializes a new instance of the TouchGestures class.

TouchGestures ( bool projectCamera = true ) : System

Initializes a new instance of the TouchGestures class. By default, scale is within [0.1, 5], the delta scale is set to 1 and there is no supported gesture.

UpdateTouchOrder ( ) : void

If and only if ManualTouchOrder is set to false (by default it is) the touch order is calculated based on both and the Layer used.

보호된 메소드들

메소드 설명
DefaultValues ( ) : void

This methods is used to set default values by the default constructor of our classes. This is called too when an entity is deserializing.

DeleteDependencies ( ) : void

Delete dependencies method

ResolveDependencies ( ) : void

Resolves the dependencies needed for this instance to work.

Update ( System.TimeSpan gameTime ) : void

Updates this behavior.

비공개 메소드들

메소드 설명
ComputeCentroid ( List touches ) : System.Vector2

Computes the centroid of a group of touches.

DrawOrderPropertyChanged ( object sender, DependencyPropertyChangedEventArgs &e ) : void

Draws the order property changed.

FindTwoFarthestTouches ( List touches, System.Vector2 &point1, System.Vector2 &point2 ) : void

Finds the two farthest touches in a group of touches.

FreeState ( ) : void

Handle the FreeState

InvokeEvent ( EventHandler touchEvent, GestureSample sample ) : void

Invokes the event.

IsGestureSupported ( SupportedGesture type ) : bool

Determines whether a type of gesture is supported.

IsMoving ( ) : bool

Determines whether this instance is moving.

IsMovingOverThreshold ( ) : bool

Determines whether [is moving over threshold].

NoneState ( ) : void

Handle the NoneState

PressedState ( ) : void

Handle the PressedState

StoppedAndDragState ( ) : void

Handle the StoppedAndDragState

TapState ( ) : void

Handle the TapState

UpdatePreviousValues ( ) : void

Updates the previous values.

메소드 상세

AddTouch() 공개 메소드

Adds a TouchLocation to the current active touches.
public AddTouch ( TouchLocation touch, bool isNew ) : void
touch TouchLocation The touch location.
isNew bool Whether such touch must be considered as new.
리턴 void

Contains() 공개 메소드

Determines whether the required Collider2D contains the passed point.
public Contains ( System.Vector2 point ) : bool
point System.Vector2 The point.
리턴 bool

DefaultValues() 보호된 메소드

This methods is used to set default values by the default constructor of our classes. This is called too when an entity is deserializing.
protected DefaultValues ( ) : void
리턴 void

DeleteDependencies() 보호된 메소드

Delete dependencies method
protected DeleteDependencies ( ) : void
리턴 void

ReadGesture() 공개 메소드

Gets the current GestureSample.
public ReadGesture ( ) : GestureSample
리턴 GestureSample

ResolveDependencies() 보호된 메소드

Resolves the dependencies needed for this instance to work.
protected ResolveDependencies ( ) : void
리턴 void

TouchGestures() 공개 메소드

Initializes a new instance of the TouchGestures class.
public TouchGestures ( ) : System
리턴 System

TouchGestures() 공개 메소드

Initializes a new instance of the TouchGestures class. By default, scale is within [0.1, 5], the delta scale is set to 1 and there is no supported gesture.
public TouchGestures ( bool projectCamera = true ) : System
projectCamera bool Indicates if the touches will be processed using Cameras
리턴 System

Update() 보호된 메소드

Updates this behavior.
protected Update ( System.TimeSpan gameTime ) : void
gameTime System.TimeSpan The elapsed game time.
리턴 void

UpdateTouchOrder() 공개 메소드

If and only if ManualTouchOrder is set to false (by default it is) the touch order is calculated based on both and the Layer used.
public UpdateTouchOrder ( ) : void
리턴 void