|
![]() |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.droplets.apix.GameBoard.Piece
A Piece
on a GameBoard
.
Constructor Summary | |
GameBoard.Piece(java.lang.String imageName)
set the image used for the piece, the width and height are both set to 1 |
|
GameBoard.Piece(java.lang.String imageName,
int width,
int height)
Constructs a new Piece object, setting the
image name, and the width and height of the piece in cells. |
Method Summary | |
int |
getHeight()
the number of cells down the piece spans |
java.lang.String |
getImageName()
the image used to represent the piece |
int |
getWidth()
the number of cells across the piece spans |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GameBoard.Piece(java.lang.String imageName)
public GameBoard.Piece(java.lang.String imageName, int width, int height)
Piece
object, setting the
image name, and the width and height of the piece in cells.imageName
- The name of the image used for this
piecewidth
- The width of the piece, in cells.height
- The height of the piece, in cells.Method Detail |
public java.lang.String getImageName()
public int getWidth()
public int getHeight()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |