constants
Class OthelloCons

java.lang.Object
  extended by constants.OthelloCons

public class OthelloCons
extends java.lang.Object

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.

Version:
t.6
Author:
Eric Angeli

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

noFillColor

public static final java.awt.Color noFillColor
Color when no piece has been placed.


blackPlayer

public static final java.awt.Color blackPlayer
Color of the black player.


whitePlayer

public static final java.awt.Color whitePlayer
Color of the white player.


blackPlayerString

public static final java.lang.String blackPlayerString
Color of the black player.

See Also:
Constant Field Values

whitePlayerString

public static final java.lang.String whitePlayerString
Color of the white player.

See Also:
Constant Field Values

noPlayerString

public static final java.lang.String noPlayerString
Not filled string.

See Also:
Constant Field Values

bgColor

public static final java.awt.Color bgColor
The color of the background.


cWidth

public static final int cWidth
The width of the cell on the game board.

See Also:
Constant Field Values

cHeight

public static final int cHeight
The height of the cell on the game board.

See Also:
Constant Field Values

mouseOverColor

public static final java.awt.Color mouseOverColor
The color of the square when the mouse is over the panel.


playerWidth

public static final int playerWidth
The width of the current player panel.

See Also:
Constant Field Values

playerHeight

public static final int playerHeight
The height of the current player panel.

See Also:
Constant Field Values

playerColor

public static final java.awt.Color playerColor
Back ground color for the current player panel.


cpWidth

public static final int cpWidth
The width of the current player panel.

See Also:
Constant Field Values

cpHeight

public static final int cpHeight
The height of the current player panel.

See Also:
Constant Field Values

boardWidth

public static final int boardWidth
The width of the game board.

See Also:
Constant Field Values

boardHeight

public static final int boardHeight
The height of the game board.

See Also:
Constant Field Values

pieceName

public static final java.lang.String pieceName
The base name for the images used for the game pieces.

See Also:
Constant Field Values

pieceExt

public static final java.lang.String pieceExt
The extension for the images used for the game pieces.

See Also:
Constant Field Values

pieceStart

public static final int pieceStart
The starting number of images.

See Also:
Constant Field Values

pieceCount

public static final int pieceCount
The total number of images for the pieces.

See Also:
Constant Field Values

sleepOff

public static final int sleepOff
The sleep offset used when flipping pieces.

See Also:
Constant Field Values

validPlace

public static final java.lang.String validPlace
The path to the valid placement sound.

See Also:
Constant Field Values

invalidPlace

public static final java.lang.String invalidPlace
The path to the invalid placement sound.

See Also:
Constant Field Values

flipSound

public static final java.lang.String flipSound
The path to the flip sound.

See Also:
Constant Field Values

endSound

public static final java.lang.String endSound
The path to the end sound.

See Also:
Constant Field Values
Constructor Detail

OthelloCons

public OthelloCons()
Creates a new instance of OthelloCons