com.droplets.apix
Class GameBoard.Piece

java.lang.Object
  |
  +--com.droplets.apix.GameBoard.Piece
Enclosing class:
GameBoard

public static class GameBoard.Piece
extends java.lang.Object

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

GameBoard.Piece

public GameBoard.Piece(java.lang.String imageName)
set the image used for the piece, the width and height are both set to 1

GameBoard.Piece

public 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.
Parameters:
imageName - The name of the image used for this piece
width - The width of the piece, in cells.
height - The height of the piece, in cells.
Method Detail

getImageName

public java.lang.String getImageName()
the image used to represent the piece

getWidth

public int getWidth()
the number of cells across the piece spans

getHeight

public int getHeight()
the number of cells down the piece spans


Copyright © Droplets, 2001. All Rights Reserved.