Holger's
Java API

com.antelmann.game.card
Class JBlackJack

java.lang.Object
  extended by com.antelmann.game.JDefaultGame
      extended by com.antelmann.game.card.JBlackJack
All Implemented Interfaces:
JGamePlay, ActionListener, EventListener

public class JBlackJack
extends JDefaultGame
implements ActionListener

implements the GUI wrapper for BlackJack

Author:
Holger Antelmann

Field Summary
 
Fields inherited from class com.antelmann.game.JDefaultGame
filter, frame, play
 
Fields inherited from interface com.antelmann.game.JGamePlay
gameFrameX, gameFrameY, historyFrameX, historyFrameY, legalMovesFrameX, legalMovesFrameY, prototypeCellValue, redoFrameX, redoFrameY, windowHeight, windowLocationX, windowLocationY, windowWidth
 
Constructor Summary
JBlackJack()
           
JBlackJack(BlackJack game, Player[] player, int level)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 JMenu getMenu()
          returns null if not overridden
 JGamePlay getNewGame()
          depends on a default constructor being accessible for the GamePlay object in question
 String getStatusMessage()
          indicates the number of moves performed, number of legal moves available, and indicates if someone won the game.
 
Methods inherited from class com.antelmann.game.JDefaultGame
getAutoPlay, getContainer, getDefaultFileExtension, getFileFilter, getHelp, getTitle, setFileFilter, setGame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBlackJack

public JBlackJack()

JBlackJack

public JBlackJack(BlackJack game,
                  Player[] player,
                  int level)
Method Detail

getStatusMessage

public String getStatusMessage()
Description copied from class: JDefaultGame
indicates the number of moves performed, number of legal moves available, and indicates if someone won the game.

Specified by:
getStatusMessage in interface JGamePlay
Overrides:
getStatusMessage in class JDefaultGame

getMenu

public JMenu getMenu()
Description copied from class: JDefaultGame
returns null if not overridden

Specified by:
getMenu in interface JGamePlay
Overrides:
getMenu in class JDefaultGame

getNewGame

public JGamePlay getNewGame()
Description copied from class: JDefaultGame
depends on a default constructor being accessible for the GamePlay object in question

Specified by:
getNewGame in interface JGamePlay
Overrides:
getNewGame in class JDefaultGame

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener


(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads