org.jscience.computing.game.wolfsheep
Class JWS

java.lang.Object
  extended by org.jscience.computing.game.JDefaultGame
      extended by org.jscience.computing.game.wolfsheep.JWS
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, JGamePlay

public class JWS
extends JDefaultGame
implements java.awt.event.ActionListener

implements the GUI wrapper around WolfsheepGame to use with JGameFrame


Field Summary
 
Fields inherited from class org.jscience.computing.game.JDefaultGame
filter, frame, play
 
Fields inherited from interface org.jscience.computing.game.JGamePlay
gameFrameX, gameFrameY, historyFrameX, historyFrameY, legalMovesFrameX, legalMovesFrameY, prototypeCellValue, redoFrameX, redoFrameY, windowHeight, windowLocationX, windowLocationY, windowWidth
 
Constructor Summary
JWS()
          Creates a new JWS object.
JWS(WolfsheepGame game, Player player1, Player player2, int level)
          Creates a new JWS object.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          DOCUMENT ME!
 java.awt.Container getContainer(GameGUI frame)
          DOCUMENT ME!
 javax.swing.JMenu getMenu()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.computing.game.JDefaultGame
getAutoPlay, getDefaultFileExtension, getFileFilter, getHelp, getNewGame, getStatusMessage, getTitle, setFileFilter, setGame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JWS

public JWS()
Creates a new JWS object.


JWS

public JWS(WolfsheepGame game,
           Player player1,
           Player player2,
           int level)
Creates a new JWS object.

Parameters:
game - DOCUMENT ME!
player1 - DOCUMENT ME!
player2 - DOCUMENT ME!
level - DOCUMENT ME!
Method Detail

getContainer

public java.awt.Container getContainer(GameGUI frame)
DOCUMENT ME!

Specified by:
getContainer in interface JGamePlay
Overrides:
getContainer in class JDefaultGame
Parameters:
frame - DOCUMENT ME!
Returns:
DOCUMENT ME!

getMenu

public javax.swing.JMenu getMenu()
DOCUMENT ME!

Specified by:
getMenu in interface JGamePlay
Overrides:
getMenu in class JDefaultGame
Returns:
DOCUMENT ME!

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
DOCUMENT ME!

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - DOCUMENT ME!