com.antelmann.game.wolfsheep
Class JWS
java.lang.Object
com.antelmann.game.JDefaultGame
com.antelmann.game.wolfsheep.JWS
- All Implemented Interfaces:
- JGamePlay, ActionListener, EventListener
public class JWS
- extends JDefaultGame
- implements ActionListener
implements the GUI wrapper around WolfsheepGame to use with JGameFrame
- Author:
- Holger Antelmann
| Fields inherited from interface com.antelmann.game.JGamePlay |
gameFrameX, gameFrameY, historyFrameX, historyFrameY, legalMovesFrameX, legalMovesFrameY, prototypeCellValue, redoFrameX, redoFrameY, windowHeight, windowLocationX, windowLocationY, windowWidth |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JWS
public JWS()
JWS
public JWS(WolfsheepGame game,
Player player1,
Player player2,
int level)
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
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
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