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

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

C

canvas - Variable in class Game
 
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
 
dy - Variable in class Human
 

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
 
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 the 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
 
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
 

S

setDirection(int, int) - Method in class Human
Sets which direction Human should go
STEP - Static variable in class Human
 

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
 
xcoord - Variable in class GamePiece
 

Y

YBOUND - Static variable in class Game
 
ycoord - Variable in class GamePiece
 
YMIN_DISPLAY - Static variable in class Game
 
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