Public Member Functions | |
Block (int row, int col, Color color) | |
create a Block with the given coordinates and color. | |
boolean | isEmpty () |
void | move (int down, int right) |
Move the Block. | |
Color | getColor () |
Simply get the color. | |
boolean | coordWithin (int rows, int cols) |
test if the position is valid | |
Private Attributes | |
Color | color |
game.Block.Block | ( | int | row, | |
int | col, | |||
Color | color | |||
) |
boolean game.Block.isEmpty | ( | ) |
void game.Block.move | ( | int | down, | |
int | right | |||
) |
Color game.Block.getColor | ( | ) |
boolean game.Block.coordWithin | ( | int | rows, | |
int | cols | |||
) |
test if the position is valid
rows | the lowest border | |
cols | the rightmost border |
References game.ABlock.col, and game.ABlock.row.
Color game.Block.color [private] |