All Packages Class Hierarchy This Package Previous Next Index
Class taxman.CPUUpdatePanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----taxman.CPUUpdatePanel
- public class CPUUpdatePanel
- extends Panel
- implements GameUpdate
This is the lower left button panel for the applet.
It controls the new game and options buttons and
supplies a checkbox for the user to choose to go first.
-
CPUUpdatePanel()
- Initializes UI components and sets the layout.
-
gameUpdate(Board, Minimax, int)
- The standard update method from GameUpdate
This one handles CPU_MOVE, NEW_GAME.
-
setBackground(Color)
- Over-rides setBackground to set the internal components
backgrounds to match
-
setForeground(Color)
- Over-rides setForeground to set the internal components
foregrounds to match
-
update(Graphics)
- Over-rides the standard update function
This paints the screen and updates the diplay numbers
CPUUpdatePanel
public CPUUpdatePanel()
- Initializes UI components and sets the layout.
setBackground
public void setBackground(Color clr)
- Over-rides setBackground to set the internal components
backgrounds to match
- Parameters:
- clr - The color to set the background to
- Overrides:
- setBackground in class Component
setForeground
public void setForeground(Color clr)
- Over-rides setForeground to set the internal components
foregrounds to match
- Parameters:
- clr - The color to set the foreground to
- Overrides:
- setForeground in class Component
gameUpdate
public void gameUpdate(Board b,
Minimax m,
int flags)
- The standard update method from GameUpdate
This one handles CPU_MOVE, NEW_GAME.
- Parameters:
- b - The current game board
- m - The current minimax object
- flags - Indicator of current state
update
public void update(Graphics g)
- Over-rides the standard update function
This paints the screen and updates the diplay numbers
- Parameters:
- g - The graphics context on which to write
- Overrides:
- update in class Container
All Packages Class Hierarchy This Package Previous Next Index