C# Class tetris.Field

Datei anzeigen Open project: ttocs7/tetris Class Usage Examples

Public Methods

Method Description
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

Method Details

Field() public method

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

checkLines() public method

public checkLines ( ) : int
return int

checkPiece() public method

public checkPiece ( int shape, Globals location ) : bool
shape int
location Globals
return bool

getHardDrop() public method

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

placePiece() public method

public placePiece ( int shape, Globals location ) : bool
shape int
location Globals
return bool