Index

B C D F G H I K M N P S T X Y 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

B

BACKGROUND_COLOR - Static variable in class Game
 
brush - Variable in class Game
 
brush - Variable in class GamePiece
 

C

canvas - Variable in class Game
off-screen graphics buffer
char_width - Variable in class GamePiece
size of the character inside the image
clearBuffer() - Method in class Game
 
clone() - Method in class GamePiece
Returns a clone of this GamePiece
clone() - Method in class Human
Returns a clone of this Human

D

display - Variable in class Game
 
draw() - Method in class GamePiece
Draws the GamePiece on the canvas
dx - Variable in class Human
the distance, in pixels, to move in the x direction on each step
dy - Variable in class Human
the distance, in pixels, to move in the y direction on each step

F

FDELAY - Static variable in class Game
 

G

Game - Class in Unnamed Package
A GUI game that involves a professor chasing treasure and goblins chasing the professor.
Game() - Constructor for class Game
Creates the GUI, sets up the state for the game
GamePiece - Class in Unnamed Package
The base class for GamePieces that are displayed on the game panel.
GamePiece(int, int, Graphics) - Constructor for class GamePiece
Creates a GamePiece at the given x and y coordinates.
getChangeInX() - Method in class Human
Returns this Human's change in the x direction, in pixels
getChangeInY() - Method in class Human
Returns this Human's change in the y direction, in pixels
getCharacterWidth() - Method in class GamePiece
Returns the width of the game piece's character (not necessarily the same as the image's width).
getHuman() - Method in class Game
Returns a copy of the human (the professor) in the Game
getImageWidth() - Method in class GamePiece
Returns the width of this game piece's image
getXPos() - Method in class GamePiece
Returns the game piece's x coordinate
getYPos() - Method in class GamePiece
Returns the game piece's y coordinate

H

Human - Class in Unnamed Package
Represents a Human in the Game
Human(int, int, Graphics) - Constructor for class Human
Creates the Human at the given x and y coordinates.

I

img - Variable in class GamePiece
animated gif of the game piece, to be displayed on the Game board
img_width - Variable in class GamePiece
size of the image
imgDir - Static variable in class GamePiece
Location of the image files.

K

keyPressed(KeyEvent) - Method in class Game
Pressing certain keys controls direction of professor
keyReleased(KeyEvent) - Method in class Game
ignore released keys
keyTyped(KeyEvent) - Method in class Game
ignore typed keys

M

main(String[]) - Static method in class Game
 

N

nextFrame(int) - Method in class Game
 

P

paint(Graphics) - Method in class Game
 
play() - Method in class Game
plays the game
professor - Variable in class Game
the professor, who is our hero

S

setDirection(int, int) - Method in class Human
Sets which direction Human should go
STEP - Static variable in class Human
the default amount to move each step, in pixels

T

takeTurn(Game) - Method in class GamePiece
The GamePiece takes its turn (nothing for this class)
takeTurn(Game) - Method in class Human
Human takes turn, moving based on its current direction

X

XBOUND - Static variable in class Game
width of window
xcoord - Variable in class GamePiece
coordinate of top-left corner of the GamePiece

Y

YBOUND - Static variable in class Game
height of window
ycoord - Variable in class GamePiece
coordinate of top-left corner of the GamePiece
YMIN_DISPLAY - Static variable in class Game
the top 20 pixels (or so) are cut off by the menu bar
B C D F G H I K M N P S T X Y 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form