C# Class KineticMath.Views.MainView

Interaction logic for MainScreen.xaml
Inheritance: BaseView, IView
Show file Open project: kingston/kineticmath

Public Properties

Property Type Description
DESELECTED_COLOR Color
SELECTED_COLOR Color
labelDisplayTime int

Public Methods

Method 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

Method 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 method

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

ComputeCurve() public static method

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

MainView() public method

public MainView ( ) : System
return System

OnViewActivated() public method

public OnViewActivated ( ) : void
return void

OnViewDeactivated() public method

public OnViewDeactivated ( ) : void
return void

Property Details

DESELECTED_COLOR public static property

public static Color DESELECTED_COLOR
return Color

SELECTED_COLOR public static property

public static Color SELECTED_COLOR
return Color

labelDisplayTime public static property

public static int labelDisplayTime
return int