|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ColorBlock | +--Queen
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 |
public Queen(Environment board, Location loc)
board
- the board on which to place this queenloc
- the location of this queenMethod Detail |
public static void setQueenColor(java.awt.Color col)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |