|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectconstants.OthelloCons
public class OthelloCons
Created on October 24, 2006, 7:02 PM
added the width and height of the game board.
t.5 adds constants for storing the string representation of the player colors, as well as constants used for loading the images used.
t.6 adds constants for the path/filename for use with the sounds.
| Field Summary | |
|---|---|
static java.awt.Color |
bgColor
The color of the background. |
static java.awt.Color |
blackPlayer
Color of the black player. |
static java.lang.String |
blackPlayerString
Color of the black player. |
static int |
boardHeight
The height of the game board. |
static int |
boardWidth
The width of the game board. |
static int |
cHeight
The height of the cell on the game board. |
static int |
cpHeight
The height of the current player panel. |
static int |
cpWidth
The width of the current player panel. |
static int |
cWidth
The width of the cell on the game board. |
static java.lang.String |
endSound
The path to the end sound. |
static java.lang.String |
flipSound
The path to the flip sound. |
static java.lang.String |
invalidPlace
The path to the invalid placement sound. |
static java.awt.Color |
mouseOverColor
The color of the square when the mouse is over the panel. |
static java.awt.Color |
noFillColor
Color when no piece has been placed. |
static java.lang.String |
noPlayerString
Not filled string. |
static int |
pieceCount
The total number of images for the pieces. |
static java.lang.String |
pieceExt
The extension for the images used for the game pieces. |
static java.lang.String |
pieceName
The base name for the images used for the game pieces. |
static int |
pieceStart
The starting number of images. |
static java.awt.Color |
playerColor
Back ground color for the current player panel. |
static int |
playerHeight
The height of the current player panel. |
static int |
playerWidth
The width of the current player panel. |
static int |
sleepOff
The sleep offset used when flipping pieces. |
static java.lang.String |
validPlace
The path to the valid placement sound. |
static java.awt.Color |
whitePlayer
Color of the white player. |
static java.lang.String |
whitePlayerString
Color of the white player. |
| Constructor Summary | |
|---|---|
OthelloCons()
Creates a new instance of OthelloCons |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.awt.Color noFillColor
public static final java.awt.Color blackPlayer
public static final java.awt.Color whitePlayer
public static final java.lang.String blackPlayerString
public static final java.lang.String whitePlayerString
public static final java.lang.String noPlayerString
public static final java.awt.Color bgColor
public static final int cWidth
public static final int cHeight
public static final java.awt.Color mouseOverColor
public static final int playerWidth
public static final int playerHeight
public static final java.awt.Color playerColor
public static final int cpWidth
public static final int cpHeight
public static final int boardWidth
public static final int boardHeight
public static final java.lang.String pieceName
public static final java.lang.String pieceExt
public static final int pieceStart
public static final int pieceCount
public static final int sleepOff
public static final java.lang.String validPlace
public static final java.lang.String invalidPlace
public static final java.lang.String flipSound
public static final java.lang.String endSound
| Constructor Detail |
|---|
public OthelloCons()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||