Index
A B C D F G H I K M N P S X Y
All Classes|All Packages
All Classes|All Packages
All Classes|All Packages
A
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
-
Human's change in position in the x direction
- dy - Variable in class Human
-
Human's change in position in the y direction
F
G
- Game - Class in <Unnamed>
-
A GUI game that involves a professor chasing treasure and goblins chasing the professor.
- Game() - Constructor for class Game
- GamePiece - Class in <Unnamed>
-
The base class for GamePieces that are displayed on the game panel.
- GamePiece(int, int, Graphics) - Constructor for class GamePiece
-
Create a GamePiece with the given characteristics.
- getChangeInX() - Method in class Human
-
Returns the Human's change in x, in pixels
- getChangeInY() - Method in class Human
-
Returns the Human's change in y, in pixels
- getCharacterWidth() - Method in class GamePiece
-
Returns the width of the GamePiece's character
- 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 GamePiece's image
- getXPos() - Method in class GamePiece
-
Returns the x coordinate of the GamePiece
- getYPos() - Method in class GamePiece
-
Returns the y coordinate of the GamePiece
H
- Human - Class in <Unnamed>
-
Represents a Human in the Game
- Human(int, int, Graphics) - Constructor for class Human
-
Create a Human with the given characteristics.
I
- img - Variable in class GamePiece
-
image displayed to represent the game piece
- 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
-
controls direction of professor
- keyReleased(KeyEvent) - Method in class Game
- keyTyped(KeyEvent) - Method in class Game
M
- main(String[]) - Static method in class Game
- move(Game) - Method in class GamePiece
-
Moves the object to the next spot (nothing for this class)
- move(Game) - Method in class Human
-
Moves the Human based on the direction specified
N
- nextFrame(int) - Method in class Game
P
- paint(Graphics) - Method in class 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
-
Movement default step, in pixels
X
- XBOUND - Static variable in class Game
- xcoord - Variable in class GamePiece
-
coordinates of the top-left corner of the image
Y
- YBOUND - Static variable in class Game
- ycoord - Variable in class GamePiece
-
coordinates of the top-left corner of the image
- YMIN_DISPLAY - Static variable in class Game
All Classes|All Packages