com.antelmann.game.muehle
Class JMuehle
java.lang.Object
com.antelmann.game.JDefaultGame
com.antelmann.game.muehle.JMuehle
- All Implemented Interfaces:
- JGamePlay
public class JMuehle
- extends JDefaultGame
enables MuehleGame to be played with JGameFrame
- Author:
- Holger Antelmann
- See Also:
JGameFrame
| Fields inherited from interface com.antelmann.game.JGamePlay |
gameFrameX, gameFrameY, historyFrameX, historyFrameY, legalMovesFrameX, legalMovesFrameY, prototypeCellValue, redoFrameX, redoFrameY, windowHeight, windowLocationX, windowLocationY, windowWidth |
|
Method Summary |
Container |
getContainer(GameGUI frame)
takes the toString() function of the GamePlay and
turns it into formatted html, which is returned
as a JLabel |
Container |
getHelp()
returns null if not overridden |
String |
getStatusMessage()
indicates the number of moves performed, number of legal
moves available, and indicates if someone won the game. |
String |
getTitle()
returns getGameName() from the GamePlay object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMuehle
public JMuehle()
JMuehle
public JMuehle(MuehleGame game,
Player player1,
Player player2,
int level)
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
getContainer
public Container getContainer(GameGUI frame)
- Description copied from class:
JDefaultGame
- takes the toString() function of the GamePlay and
turns it into formatted html, which is returned
as a JLabel
- Specified by:
getContainer in interface JGamePlay- Overrides:
getContainer in class JDefaultGame
- Parameters:
frame - the object to be used to alter the game status
by using the interface
getHelp
public Container getHelp()
- Description copied from class:
JDefaultGame
- returns null if not overridden
- Specified by:
getHelp in interface JGamePlay- Overrides:
getHelp in class JDefaultGame
getTitle
public String getTitle()
- Description copied from class:
JDefaultGame
- returns getGameName() from the GamePlay object
- Specified by:
getTitle in interface JGamePlay- Overrides:
getTitle in class JDefaultGame
- See Also:
GamePlay.getGameName()
(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads