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