Class Queen

java.lang.Object
  |
  +--ColorBlock
        |
        +--Queen
All Implemented Interfaces:
Locatable

public class Queen
extends ColorBlock

Environment-Based Applications:
A Queen object represents a queen in the N Queens Problem.


Constructor Summary
Queen(Environment board, Location loc)
          Constructs a queen at the specified location on an N x N "chessboard."
 
Method Summary
static void setQueenColor(java.awt.Color col)
          Defines the color to make all queens.
 
Methods inherited from class ColorBlock
color, location
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Queen

public Queen(Environment board,
             Location loc)
Constructs a queen at the specified location on an N x N "chessboard."
Parameters:
board - the board on which to place this queen
loc - the location of this queen
Method Detail

setQueenColor

public static void setQueenColor(java.awt.Color col)
Defines the color to make all queens.