C# 클래스 Tetris.Board

The game board
파일 보기 프로젝트 열기: vs-team/casanova-mk2 1 사용 예제들

공개 메소드들

메소드 설명
Board ( Tetris.Game game, Texture2D &textures, Rectangle rectangles ) : System
CreateNewFigure ( ) : bool

Create new shape in the game, if need it

DestroyLines ( ) : int

Find, destroy and save lines's count

Draw ( GameTime gameTime ) : void
FindDynamicFigure ( ) : void
Initialize ( ) : void
MoveFigureDown ( ) : void
MoveFigureLeft ( ) : void
MoveFigureRight ( ) : void
RotateFigure ( ) : void
SortingVector2 ( System.Vector2 &vector, bool sortByX, int a, int b ) : void

비공개 메소드들

메소드 설명
ClearBoardField ( int i, int j ) : void
DrawFigureOnBoard ( System.Vector2 vector, int color ) : bool
TryPlaceFigureOnBoard ( System.Vector2 vector ) : bool

메소드 상세

Board() 공개 메소드

public Board ( Tetris.Game game, Texture2D &textures, Rectangle rectangles ) : System
game Tetris.Game
textures Texture2D
rectangles System.Drawing.Rectangle
리턴 System

CreateNewFigure() 공개 메소드

Create new shape in the game, if need it
public CreateNewFigure ( ) : bool
리턴 bool

DestroyLines() 공개 메소드

Find, destroy and save lines's count
public DestroyLines ( ) : int
리턴 int

Draw() 공개 메소드

public Draw ( GameTime gameTime ) : void
gameTime GameTime
리턴 void

FindDynamicFigure() 공개 메소드

public FindDynamicFigure ( ) : void
리턴 void

Initialize() 공개 메소드

public Initialize ( ) : void
리턴 void

MoveFigureDown() 공개 메소드

public MoveFigureDown ( ) : void
리턴 void

MoveFigureLeft() 공개 메소드

public MoveFigureLeft ( ) : void
리턴 void

MoveFigureRight() 공개 메소드

public MoveFigureRight ( ) : void
리턴 void

RotateFigure() 공개 메소드

public RotateFigure ( ) : void
리턴 void

SortingVector2() 공개 메소드

public SortingVector2 ( System.Vector2 &vector, bool sortByX, int a, int b ) : void
vector System.Vector2
sortByX bool
a int
b int
리턴 void