C# Class GameUILibrary.TetrisController

Implements Tetris based on code from https://code.google.com/p/wpf-tetris/
Inheritance: BindableBase
Afficher le fichier Open project: EmptyKeys/UI_Examples

Private Properties

Свойство Type Description
ClearBlocks void
CreateBlock EmptyKeys.UserInterface.Generated.TetrisBlock
CreateNextTetris void
DetectGameOver bool
DrawNextTetris void
HideCurrentTetris void
HitTest bool
Initialize void
OnGameOver void
OnStart void
ReDrawTetris void
RenderCurrentTetris void
RenderCurrentTetris void
TetrisController System
TryClearLines void

Méthodes publiques

Méthode Description
MoveDown ( ) : void

Moves down.

MoveLeft ( ) : void

Moves left.

MoveRight ( ) : void

Moves right.

Reset ( ) : void

Resets this instance.

Rotate ( ) : void

Rotates

Start ( ) : void

Starts this instance.

Stop ( ) : void

Stops this instance.

TetrisController ( Panel tetrisPanel, Panel nextTetrisPanel ) : System

Initializes a new instance of the TetrisController class.

Update ( double elapsedTime ) : void

Update logic

Private Methods

Méthode Description
ClearBlocks ( TetrisBlock blocks, int m, int n ) : void
CreateBlock ( ) : TetrisBlock
CreateNextTetris ( ) : void
DetectGameOver ( ) : bool
DrawNextTetris ( ) : void
HideCurrentTetris ( ) : void
HitTest ( ushort matrix, int offsetX, int offsetY ) : bool
Initialize ( Panel tetrisPanel, Panel nextTetrisPanel ) : void
OnGameOver ( ) : void
OnStart ( object obj ) : void
ReDrawTetris ( TetrisBlock blocks, ushort matrix, int m, int n, int offsetX, int offsetY, Brush fill ) : void
RenderCurrentTetris ( int offsetX, int offsetY ) : void
RenderCurrentTetris ( int offsetX, int offsetY, Brush fill ) : void
TetrisController ( ) : System
TryClearLines ( ) : void

Method Details

MoveDown() public méthode

Moves down.
public MoveDown ( ) : void
Résultat void

MoveLeft() public méthode

Moves left.
public MoveLeft ( ) : void
Résultat void

MoveRight() public méthode

Moves right.
public MoveRight ( ) : void
Résultat void

Reset() public méthode

Resets this instance.
public Reset ( ) : void
Résultat void

Rotate() public méthode

Rotates
public Rotate ( ) : void
Résultat void

Start() public méthode

Starts this instance.
public Start ( ) : void
Résultat void

Stop() public méthode

Stops this instance.
public Stop ( ) : void
Résultat void

TetrisController() public méthode

Initializes a new instance of the TetrisController class.
public TetrisController ( Panel tetrisPanel, Panel nextTetrisPanel ) : System
tetrisPanel Panel The tetris panel.
nextTetrisPanel Panel The next tetris panel.
Résultat System

Update() public méthode

Update logic
public Update ( double elapsedTime ) : void
elapsedTime double The elapsed time.
Résultat void