All Packages Class Hierarchy This Package Previous Next Index
Class taxman.SwapPanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----taxman.SwapPanel
- public class SwapPanel
- extends Panel
- implements GameUpdate
This panel can swap the normal game view with the options view.
-
SwapPanel(Panel, Panel, Panel)
- Initializes UI components and sets the layout.
-
gameUpdate(Board, Minimax, int)
- The standard update method from GameUpdate
This one handles NEW_GAME, OPTIONS_OPEN and OPTIONS_CLOSE.
SwapPanel
public SwapPanel(Panel Game,
Panel Options,
Panel GameOver)
- Initializes UI components and sets the layout.
- Parameters:
- Game - The game view panel
- Options - The options view panel
gameUpdate
public void gameUpdate(Board b,
Minimax m,
int flags)
- The standard update method from GameUpdate
This one handles NEW_GAME, OPTIONS_OPEN and OPTIONS_CLOSE.
- Parameters:
- b - The current game board
- m - The current minimax object
- flags - Indicator of current state
All Packages Class Hierarchy This Package Previous Next Index