All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class taxman.ScoreArea

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----taxman.ScoreArea

public class ScoreArea
extends Panel
implements GameUpdate
This class updates the user with the current score and game status.


Constructor Index

 o ScoreArea()
This is the constructor and it creates layouts and lays the panels/labels where they belong.

Method Index

 o gameUpdate(Board, Minimax, int)
This is the common update method for all GameUpdate objects.
 o setBackground(Color)
Over-rides the base function to allow reverse video for the scores and dynamic pieces of the score panel
 o setForeground(Color)
Over-rides the base function to allow reverse video for the scores and dynamic pieces of the score panel

Constructors

 o ScoreArea
 public ScoreArea()
This is the constructor and it creates layouts and lays the panels/labels where they belong.

Methods

 o setForeground
 public void setForeground(Color clr)
Over-rides the base function to allow reverse video for the scores and dynamic pieces of the score panel

Parameters:
clr - The new foreground color
Overrides:
setForeground in class Component
 o setBackground
 public void setBackground(Color clr)
Over-rides the base function to allow reverse video for the scores and dynamic pieces of the score panel

Parameters:
clr - The new background color
Overrides:
setBackground in class Component
 o gameUpdate
 public void gameUpdate(Board b,
                        Minimax m,
                        int flags)
This is the common update method for all GameUpdate objects. It's job is to keep the panel synchronized with game state.

Parameters:
b - The current game board
m - The current minimax object
flag - a flag indicating the game state

All Packages  Class Hierarchy  This Package  Previous  Next  Index