Skip navigation links
C D F G H I L M P S U W 

C

createRandomLevel() - Method in class Level
This method creates a random level consisting of a single Hero centered in the middle of the screen, along with 6 randomly positioned Fires, and 20 randomly positioned Pants.

D

destroy() - Method in class Fireball
This helper method allows other classes (like Pant) to destroy a Fireball upon collision.
draw() - Method in class Graphic
This method draws a Graphic to the screen at its current location, and facing in its current direction (orientation).

F

Fire - Class in <Unnamed>
This class represents a fire that is burning, which ejects a Fireball in a random direction every 3-6 seconds.
Fire(float, float, Random) - Constructor for class Fire
This constructor initializes a new instance of Fire at the appropriate location and with the appropriate amount of heat.
Fireball - Class in <Unnamed>
This class represents a Fireball that is ejected from a burning fire.
Fireball(float, float, float) - Constructor for class Fireball
This constructor initializes a new instance of Fireball at the specified location and facing a specific movement direction.

G

GameEngine - Class in <Unnamed>
This class manages an entire game: loading and playing a sequence of Levels, providing access to user input, and setting up the infrastructure for creating, drawing, and colliding many Graphic objects.
getDirection() - Method in class Graphic
This method retrieves the orientation of the current Graphic as an angle measured in radians, where 0: facing right, and PI/2: facing down, PI: facing left, and 3PI/2 (or the equivalent -PI/2): facing up.
getDirectionX() - Method in class Graphic
This method retrieves part of the orientation of the current graphic as a point that is one unit away, and in the direction this Graphic is facing.
getDirectionY() - Method in class Graphic
This method retrieves part of the orientation of the current graphic as a point that is one unit away, and in the direction this Graphic is facing.
getGraphic() - Method in class Fire
This is a simple accessor for this object's Graphic, which may be used by other objects to check for collisions.
getGraphic() - Method in class Fireball
This is a simple accessor for this object's Graphic, which may be used by other objects to check for collisions.
getGraphic() - Method in class Hero
This is a simple accessor for this object's Graphic, which may be used by other objects to check for collisions.
getGraphic() - Method in class Pant
This is a simple accessor for this object's Graphic, which may be used by other objects to check for collisions.
getGraphic() - Method in class Water
This is a simple accessor for this object's Graphic, which may be used by other objects to check for collisions.
getHeight() - Static method in class GameEngine
This method retrieves the height in pixels of the game's window display.
getHUDMessage() - Method in class Level
This method returns a string of text that will be displayed in the upper left hand corner of the game window.
getMouseX() - Static method in class GameEngine
This method retrieves the x-position of the mouse in pixels within the game window.
getMouseY() - Static method in class GameEngine
This method retrieves the y-position of the mouse in pixels within the game window.
getType() - Method in class Graphic
This method retrieves the type of the current Graphic.
getWidth() - Static method in class GameEngine
This method retrieves the width in pixels of the game's window display.
getX() - Method in class Graphic
This method retrieves the x-position in pixels of the current Graphic.
getY() - Method in class Graphic
This method retrieves the y position in pixels of the current Graphic.
Graphic - Class in <Unnamed>
Instances of the Graphic class are used to represent each graphic in a game.
Graphic(String) - Constructor for class Graphic
This constructor creates a Graphic object at position 0,0 with a direction of 0 (facing the right), and the specified appearance.

H

handleFireballCollisions(ArrayList) - Method in class Hero
This method detects an handles collisions between any active Fireball objects, and the current Hero.
handleFireballCollisions(ArrayList) - Method in class Pant
This method detects an handles collisions between any active Fireball, and the current Pant.
handleWaterCollisions(Water[]) - Method in class Fire
This method detects and handles collisions between any active (!= null) Water objects, and the current Fire.
handleWaterCollisions(Water[]) - Method in class Fireball
This method detects and handles collisions between any active (!= null) Water objects, and the current Fireball.
Hero - Class in <Unnamed>
This class represents the player's character which is a fire fighter who is able to spray water that extinguishes Fires and Fireballs.
Hero(float, float, int) - Constructor for class Hero
This constructor initializes a new instance of Hero at the appropriate location and using the appropriate controlType.

I

isCollidingWith(Graphic) - Method in class Graphic
Determines whether this Graphic is overlapping or colliding with another Graphic on the screen.
isKeyHeld(String) - Static method in class GameEngine
This method retrieves whether a key is currently being held by the user.
isKeyPressed(String) - Static method in class GameEngine
This method retrieves whether a key has been just pressed by the user.

L

Level - Class in <Unnamed>
The Level class is responsible for managing all of the objects in your game.
Level(Random, String) - Constructor for class Level
This constructor initializes a new Level object, so that the GameEngine can begin calling its update() method to advance the game's play.
loadLevel(String) - Method in class Level
This method initializes the current game according to the Object location descriptions within the level parameter.

M

main(String[]) - Static method in class Level
This method creates and runs a new GameEngine with its first Level.

P

Pant - Class in <Unnamed>
This class represents a pair of Pants that the Hero must protect from burning.
Pant(float, float, Random) - Constructor for class Pant
This constructor initializes a new instance of Pant at the appropriate location.

S

setDirection(float) - Method in class Graphic
This method allows you to update the direction that a Graphic is facing, by specifying an angle (in radians) of rotation, where 0: facing right, and pi/2: facing down, pi: facing left, and 3pi/2: facing up.
setDirection(float, float) - Method in class Graphic
This method allows you to update the direction that a Graphic is facing, by specifying any position on the screen that you would like it to face toward.
setPosition(float, float) - Method in class Graphic
This method allows you to update the position of a Graphic.
setType(String) - Method in class Graphic
Sets the type of graphic used to represent this object.
setX(float) - Method in class Graphic
This method allows you to update the horizontal position of a Graphic.
setY(float) - Method in class Graphic
This method allows you to update the vertical position of a Graphic.
shouldRemove() - Method in class Fire
This method should return false until this Fire's heat drops down to 0 or less.
shouldRemove() - Method in class Fireball
This method communicates to the Level whether this Fireball is still in use versus ready to be removed from the Levels's ArrayList of Fireballs.
shouldRemove() - Method in class Pant
This method communicates to the Game whether this Pant is still in use versus ready to be removed from the Game's ArrayList of Pants.
start(Integer, String[]) - Static method in class GameEngine
This method creates a single Engine, and begins playing through the specified sequence of levels.

U

update(int) - Method in class Fire
This method is called repeatedly by the Level to draw and occasionally launch a new Fireball in a random direction.
update(int) - Method in class Fireball
This method is called repeatedly by the Level to draw and move the current Fireball.
update(int, Water[]) - Method in class Hero
This method is called repeated by the Level to draw and move (based on the current controlType) the Hero, as well as to spray new Water in the direction that this Hero is currently facing.
update(int) - Method in class Level
The GameEngine calls this method repeatedly to update all of the objects within your game, and to enforce all of the rules of your game.
update(int) - Method in class Pant
This method is simply responsible for draing the current Pant to the screen.
update(int) - Method in class Water
This method is called repeatedly by the Game to draw and move the current Water.

W

Water - Class in <Unnamed>
This Water class represents a splash of Water that is sprayed by the Hero to extinguish Fireballs and Fires, as they attempt to save the Pants.
Water(float, float, float) - Constructor for class Water
This constructor initializes a new instance of Water at the specified location and facing a specific movement direction.
C D F G H I L M P S U W 
Skip navigation links