C# Class ChessBoardVisualLib.View.ChessBoardControl

Interaction logic for ChessBoardControl.xaml
Inheritance: System.Windows.Controls.UserControl
Show file Open project: Ribtoks/Queem

Public Methods

Method Description
AnimateCancelMove ( DeltaChange dc, Move move ) : void
AnimateLast ( ) : void
AnimateMove ( DeltaChange dc, Move move ) : void
ChangeCurrentPlayer ( ) : void
ChessBoardControl ( ) : System
PromotePawn ( Queem color, Square square, Queem figure ) : void
RedrawAll ( ) : void
SetupGameProvider ( GameProvider provider ) : void
UserPromotePawn ( ) : void

Private Methods

Method Description
Grid_MouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
InnerAnimateMove ( Move move, Queem figureDied ) : void
OnMoveAnimationFinished ( ) : void
OnMoveAnimationPreview ( ) : void
OnMoveFinished ( ) : void
OnPawnPromoted ( ) : void
PromotePawn_Executed ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
SetupAnimationCount ( Move move ) : void
squareGrid_MouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Method Details

AnimateCancelMove() public method

public AnimateCancelMove ( DeltaChange dc, Move move ) : void
dc Queem.Core.History.DeltaChange
move Queem.Core.Move
return void

AnimateLast() public method

public AnimateLast ( ) : void
return void

AnimateMove() public method

public AnimateMove ( DeltaChange dc, Move move ) : void
dc Queem.Core.History.DeltaChange
move Queem.Core.Move
return void

ChangeCurrentPlayer() public method

public ChangeCurrentPlayer ( ) : void
return void

ChessBoardControl() public method

public ChessBoardControl ( ) : System
return System

PromotePawn() public method

public PromotePawn ( Queem color, Square square, Queem figure ) : void
color Queem
square Square
figure Queem
return void

RedrawAll() public method

public RedrawAll ( ) : void
return void

SetupGameProvider() public method

public SetupGameProvider ( GameProvider provider ) : void
provider Queem.Core.ChessBoard.GameProvider
return void

UserPromotePawn() public method

public UserPromotePawn ( ) : void
return void