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.


Constructor Index

 o CPUUpdatePanel()
Initializes UI components and sets the layout.

Method Index

 o gameUpdate(Board, Minimax, int)
The standard update method from GameUpdate This one handles CPU_MOVE, NEW_GAME.
 o setBackground(Color)
Over-rides setBackground to set the internal components backgrounds to match
 o setForeground(Color)
Over-rides setForeground to set the internal components foregrounds to match
 o update(Graphics)
Over-rides the standard update function This paints the screen and updates the diplay numbers

Constructors

 o CPUUpdatePanel
 public CPUUpdatePanel()
Initializes UI components and sets the layout.

Methods

 o 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
 o 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
 o 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
 o 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