Property | Type | Description | |
---|---|---|---|
ClearBlocks | void | ||
CreateBlock | |||
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 |
Method | 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
|
Method | Description | |
---|---|---|
ClearBlocks ( |
||
CreateBlock ( ) : |
||
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 ( |
||
RenderCurrentTetris ( int offsetX, int offsetY ) : void | ||
RenderCurrentTetris ( int offsetX, int offsetY, Brush fill ) : void | ||
TetrisController ( ) : System | ||
TryClearLines ( ) : void |
public TetrisController ( Panel tetrisPanel, Panel nextTetrisPanel ) : System | ||
tetrisPanel | Panel | The tetris panel. |
nextTetrisPanel | Panel | The next tetris panel. |
return | System |
public Update ( double elapsedTime ) : void | ||
elapsedTime | double | The elapsed time. |
return | void |