All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class taxman.EndCanvas
java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----taxman.EndCanvas
  -  public class EndCanvas
  
-  extends Canvas
  
-  implements GameUpdate
   
This little canvas show the winning or losing screen for
  the game.
  
  -  
	EndCanvas(Image, Image, Image)
   -   Creates a canvas on which to display the winning
 or loosing message.
 
  
  -  
	gameUpdate(Board, Minimax, int)
   -   This is the common update method for all GameUpdate objects.
  
 -  
	paint(Graphics)
   -   Paints the final string and image on the canvas (centered)
 
 
  
EndCanvas
 public EndCanvas(Image win,
                  Image loose,
                  Image tie)
  -  Creates a canvas on which to display the winning
 or loosing message.
  
    -  Parameters:
    
 -  win - The image to display if the human wins
    
-  loose - The image to display if the human looses
    
-  tie - The image to display if there is a tie
  
   
 
 
  
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
  
   
 
 
paint
 public void paint(Graphics g)
  -  Paints the final string and image on the canvas (centered)
  
    -  Parameters:
    
 -  g - the graphics context on which to draw
    
 -  Overrides:
    
 -  paint in class Canvas
  
 
 
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index