C# 클래스 KineticMath.Views.MainView

Interaction logic for MainScreen.xaml
상속: BaseView, IView
파일 보기 프로젝트 열기: kingston/kineticmath

공개 프로퍼티들

프로퍼티 타입 설명
DESELECTED_COLOR Color
SELECTED_COLOR Color
labelDisplayTime int

공개 메소드들

메소드 설명
ComputeAcceleratePoints ( double initialSpeed, double distance, int totalTime ) : double[]
ComputeCurve ( Point startPoint, Point endPoint, System.Windows.Vector velocity ) : System.Windows.Media.PolyBezierSegment
MainView ( ) : System
OnViewActivated ( ) : void
OnViewDeactivated ( ) : void

비공개 메소드들

메소드 설명
Canvas_MouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
HandleKeyDownEvent ( object sender, System.Windows.Input.KeyEventArgs e ) : void
HandlePushEvent ( Microsoft.Kinect.SkeletonPoint pt, bool isPlayerOne ) : void
HeldBalls_CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
HitBall ( int index, System.Windows.Vector velocity, bool isPlayerOne ) : void
InitializeGameController ( ) : void
MainView_Loaded ( object sender, RoutedEventArgs e ) : void
RegisterGestures ( ) : void
SetCanvasLocationCentered ( FrameworkElement element, Microsoft.Kinect.SkeletonPoint pt ) : void
SetTwoPlayerMode ( bool twoPlayer ) : void
SetupBallHolders ( int numHolders, bool isPlayerOne ) : void
game_GameOver ( object sender, EventArgs e ) : void
game_LevelCompleted ( object sender, EventArgs e ) : void
game_LevelLost ( object sender, EventArgs e ) : void
game_LevelReset ( object sender, EventArgs e ) : void
game_NewGameStarted ( object sender, EventArgs e ) : void
hitGesture_RectHit ( object sender, RectHitEventArgs e ) : void
playLabelAnimation ( FrameworkElement label, EventHandler onComplete ) : void
showStatusLabel ( String labelString, System.Windows.Media.Brush foreground, EventHandler onComplete ) : void
startNewMode ( BalanceGame mode ) : void
timerCallback ( object sender, EventArgs e ) : void

메소드 상세

ComputeAcceleratePoints() 공개 정적인 메소드

public static ComputeAcceleratePoints ( double initialSpeed, double distance, int totalTime ) : double[]
initialSpeed double
distance double
totalTime int
리턴 double[]

ComputeCurve() 공개 정적인 메소드

public static ComputeCurve ( Point startPoint, Point endPoint, System.Windows.Vector velocity ) : System.Windows.Media.PolyBezierSegment
startPoint Point
endPoint Point
velocity System.Windows.Vector
리턴 System.Windows.Media.PolyBezierSegment

MainView() 공개 메소드

public MainView ( ) : System
리턴 System

OnViewActivated() 공개 메소드

public OnViewActivated ( ) : void
리턴 void

OnViewDeactivated() 공개 메소드

public OnViewDeactivated ( ) : void
리턴 void

프로퍼티 상세

DESELECTED_COLOR 공개적으로 정적으로 프로퍼티

public static Color DESELECTED_COLOR
리턴 Color

SELECTED_COLOR 공개적으로 정적으로 프로퍼티

public static Color SELECTED_COLOR
리턴 Color

labelDisplayTime 공개적으로 정적으로 프로퍼티

public static int labelDisplayTime
리턴 int