All Packages Class Hierarchy This Package Previous Next Index
Class kpalin.alabra.PawnPromote
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----kpalin.alabra.PawnPromote
- public class PawnPromote
- extends Frame
- implements MouseListener
The pawn promotion dialog.
- Author:
- Kimmo Palin
- See Also:
- ChessPlay
-
piece
- Here we store the selected piece.
-
promObserv
- This is kind of bufferclass.
-
TITLE
- The title of the dialog.
-
PawnPromote(int, BoardTile, BoardTile)
- Creates new PawnPromotion dialog.
-
getObservable()
-
-
mouseClicked(MouseEvent)
- This one handles the promotion selection.
-
mouseEntered(MouseEvent)
-
-
mouseExited(MouseEvent)
-
-
mousePressed(MouseEvent)
-
-
mouseReleased(MouseEvent)
-
TITLE
static final String TITLE
- The title of the dialog.
piece
Piece piece
- Here we store the selected piece.
promObserv
PromotionListen promObserv
- This is kind of bufferclass. Used for comunication between
PawnPromote and ChessPlay. The Object passed from update()
must be cast to Piece.
PawnPromote
PawnPromote(int side,
BoardTile from,
BoardTile to)
- Creates new PawnPromotion dialog.
- Parameters:
- side - The side who is promoting (black or white).
- from - Starting tile of the move. Just for datatransfer.
- to - Target tile of the move. Just for datatransfer.
getObservable
public PromotionListen getObservable()
mouseEntered
public void mouseEntered(MouseEvent e)
mouseExited
public void mouseExited(MouseEvent e)
mousePressed
public void mousePressed(MouseEvent e)
mouseReleased
public void mouseReleased(MouseEvent e)
mouseClicked
public void mouseClicked(MouseEvent e)
- This one handles the promotion selection.
All Packages Class Hierarchy This Package Previous Next Index