C# 클래스 tetris.Field

파일 보기 프로젝트 열기: ttocs7/tetris 1 사용 예제들

공개 메소드들

메소드 설명
Field ( int w = Globals.FIELD_WIDTH, int h = Globals.FIELD_HEIGHT ) : System
checkLines ( ) : int
checkPiece ( int shape, Globals location ) : bool
getHardDrop ( int shape, Globals location ) : Globals.coords
placePiece ( int shape, Globals location ) : bool

메소드 상세

Field() 공개 메소드

public Field ( int w = Globals.FIELD_WIDTH, int h = Globals.FIELD_HEIGHT ) : System
w int
h int
리턴 System

checkLines() 공개 메소드

public checkLines ( ) : int
리턴 int

checkPiece() 공개 메소드

public checkPiece ( int shape, Globals location ) : bool
shape int
location Globals
리턴 bool

getHardDrop() 공개 메소드

public getHardDrop ( int shape, Globals location ) : Globals.coords
shape int
location Globals
리턴 Globals.coords

placePiece() 공개 메소드

public placePiece ( int shape, Globals location ) : bool
shape int
location Globals
리턴 bool