C# Class KineticMath.Views.MainView

Interaction logic for MainScreen.xaml
Inheritance: BaseView, IView
Afficher le fichier Open project: kingston/kineticmath

Méthodes publiques

Свойство Type Description
DESELECTED_COLOR Color
SELECTED_COLOR Color
labelDisplayTime int

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

ComputeAcceleratePoints() public static méthode

public static ComputeAcceleratePoints ( double initialSpeed, double distance, int totalTime ) : double[]
initialSpeed double
distance double
totalTime int
Résultat double[]

ComputeCurve() public static méthode

public static ComputeCurve ( Point startPoint, Point endPoint, System.Windows.Vector velocity ) : System.Windows.Media.PolyBezierSegment
startPoint Point
endPoint Point
velocity System.Windows.Vector
Résultat System.Windows.Media.PolyBezierSegment

MainView() public méthode

public MainView ( ) : System
Résultat System

OnViewActivated() public méthode

public OnViewActivated ( ) : void
Résultat void

OnViewDeactivated() public méthode

public OnViewDeactivated ( ) : void
Résultat void

Property Details

DESELECTED_COLOR public_oe static_oe property

public static Color DESELECTED_COLOR
Résultat Color

SELECTED_COLOR public_oe static_oe property

public static Color SELECTED_COLOR
Résultat Color

labelDisplayTime public_oe static_oe property

public static int labelDisplayTime
Résultat int