C# Class tetris.Field

Afficher le fichier Open project: ttocs7/tetris Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public Field ( int w = Globals.FIELD_WIDTH, int h = Globals.FIELD_HEIGHT ) : System
w int
h int
Résultat System

checkLines() public méthode

public checkLines ( ) : int
Résultat int

checkPiece() public méthode

public checkPiece ( int shape, Globals location ) : bool
shape int
location Globals
Résultat bool

getHardDrop() public méthode

public getHardDrop ( int shape, Globals location ) : Globals.coords
shape int
location Globals
Résultat Globals.coords

placePiece() public méthode

public placePiece ( int shape, Globals location ) : bool
shape int
location Globals
Résultat bool