Files
GTSchoolShit/CS1322/p6/P6Constants.java
2025-06-07 01:59:34 -04:00

87 lines
2.8 KiB
Java

/**
* <PRE>
* P6Constants.java
*
* Revisions: 1.0 Aug. 25, 2002
* Created the P6Constants class
*
* </PRE>
*
* @author <A HREF="mailto:bsbeck@cc.gatech.edu">Brandon Beck</A>
* @version Version 1.0, Aug. 25, 2002
*/
public interface P6Constants {
//The color of Walls
public static final java.awt.Color WALL_COLOR = java.awt.Color.blue;
//The color of Floors
public static final java.awt.Color FLOOR_COLOR = java.awt.Color.black;
//The color of a regular nibble
public static final java.awt.Color NIBBLE_COLOR = java.awt.Color.yellow;
//The color of a special nibble
public static final java.awt.Color SPECIAL_COLOR = java.awt.Color.orange;
//The name of the file to parse to obtain the board
public static final String BOARD_FILE = "board_1.txt";
//The image file containing Pacman
public static final String PACMAN = "pacman.gif";
//The four image files containing each of the ghosts while chasing pacman
public static final String GHOST_1 = "gh1.gif";
public static final String GHOST_2 = "gh2.gif";
public static final String GHOST_3 = "gh3.gif";
public static final String GHOST_4 = "gh4.gif";
//The image file applied to all ghosts while running from pacman
public static final String GH_RUN_AWAY = "ghRA.gif";
//The constant representing a WallPiece in a board file
public static final String WALL = "w";
//The constant representing a FloorPiece no nibbles in a board file
public static final String FLOOR = "f";
//The constant indicating a FloorPiece with a special nibble in
//a board file
public static final String SPECIAL = "s";
//The constant indicating a FloorPiece with a regular nibble in
//a board file
public static final String NIBBLE = "n";
//The number of columns (or pieces in one row) on the board
public static final int BOARD_SIZE_X = 15;
//The number of rows (or pieces in one column) on the board
public static final int BOARD_SIZE_Y = 15;
//The constant representing "up"
public static final int NORTH = 0;
//The constant representing "right"
public static final int EAST = 1;
//The constant representing "down"
public static final int SOUTH = 2;
//The constant representing "left"
public static final int WEST = 3;
//The number of moves a Ghost makes while running from Pacman before it
//returns to the state of chasing Pacman
public static final int RUN_AWAY_DURATION = 20;
//The interval between firings of the PacmanTimer controlling Pacman movements
public static final int PACMAN_INTERVAL = 350;
//The interval between firings of the GhostTimer controlling all Ghost movements
public static final int GHOST_INTERVAL = 500;
}// end of interface P6Constants