All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class taxman.GatherTable

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

public class GatherTable
extends GameTable
This is the table for gathering numbers for either side. It can be for the human or for the CPU by changing the constructor argument from Game.CPU_CHOSE to Game.HUMAN_CHOSE


Variable Index

 o DEF_BACK_CHOSE
 o DEF_BACK_TAX

Constructor Index

 o GatherTable(Color, Image, Image, boolean)
The constructor takes many parameters and builds up a table which can respond to updates

Method Index

 o gameUpdate(Board, Minimax, int)
The standard update method from GameUpdate This one handles NEW_GAME, CPU_CHOSE, HUMAN_CHOSE.

Variables

 o DEF_BACK_CHOSE
 public static final Color DEF_BACK_CHOSE
 o DEF_BACK_TAX
 public static final Color DEF_BACK_TAX

Constructors

 o GatherTable
 public GatherTable(Color num_color,
                    Image bgChose,
                    Image bgTax,
                    boolean track_cpu)
The constructor takes many parameters and builds up a table which can respond to updates

Parameters:
num_color - The color of the numbers that are displayed
bgChose - The background image for numbers you chose (can be null)
bgTax - The background image for numbers you collect as taxes (can be null)
track_cpu - True if this grid should track the cpu, otherwise it tracks the human

Methods

 o gameUpdate
 public void gameUpdate(Board b,
                        Minimax m,
                        int flags)
The standard update method from GameUpdate This one handles NEW_GAME, CPU_CHOSE, HUMAN_CHOSE.

Parameters:
b - The current game board
m - The current minimax object
flags - Indicator of current state
Overrides:
gameUpdate in class GameTable

All Packages  Class Hierarchy  This Package  Previous  Next  Index