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.
-
ScoreArea()
- This is the constructor and it creates layouts and lays
the panels/labels where they belong.
-
gameUpdate(Board, Minimax, int)
- This is the common update method for all GameUpdate objects.
-
setBackground(Color)
- Over-rides the base function to allow reverse
video for the scores and dynamic pieces of the
score panel
-
setForeground(Color)
- Over-rides the base function to allow reverse
video for the scores and dynamic pieces of the
score panel
ScoreArea
public ScoreArea()
- This is the constructor and it creates layouts and lays
the panels/labels where they belong.
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
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
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