Package | Description |
---|---|
cse1030.drawing | |
cse1030.games.tetris |
Modifier and Type | Method and Description |
---|---|
double |
IPoint2D.distanceTo(IPoint2D other)
Returns the distance between
this point and another
point. |
Modifier and Type | Field and Description |
---|---|
protected IPoint2D |
Block.position
The position on the playing field of the top left corner of the grid.
|
Modifier and Type | Method and Description |
---|---|
IPoint2D |
Block.getPosition()
Get the position on the playing field of the top-left corner of the block's
grid.
|
IPoint2D |
Drawable.getPosition()
Get the position of the top-left corner of the object on the Tetris playing
field.
|
Constructor and Description |
---|
Block(int gridSize,
IPoint2D pos,
Color col)
Construct a block given its grid size, position, and color.
|
IBlock(IPoint2D pos,
Color col) |
JBlock(IPoint2D pos,
Color col) |
SBlock(IPoint2D pos,
Color col) |