Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
D
E
G
H
I
L
M
P
S
W
D
die()
- Method in class
Hero
Sets boolean flag condition to false.
DodgeDefender
- Class in
<Unnamed>
Applet for DodgeDefender, sets everything up and uses the panel.
DodgeDefender()
- Constructor for class
DodgeDefender
drawEnemies()
- Method in class
MainGame
Redraws all enemies based on their x,y coordinates.
drawHero()
- Method in class
MainGame
Redraws hero based on his/her x,y cooridinate.
E
Enemy
- Class in
<Unnamed>
Serves as the enemy in Dodge Defender.
Enemy(int, int, int)
- Constructor for class
Enemy
First constructor allowing most parameters to be set.
Enemy(int)
- Constructor for class
Enemy
Second constructor allowing only radius to be set.
Enemy()
- Constructor for class
Enemy
Third constructor setting everything to default.
G
gameOver()
- Method in class
MainGame
Removes hero from screen and plays explosion sound.
getAlive()
- Method in class
Hero
Returns condition of boolean flag alive.
getRadius()
- Method in class
Enemy
Returns radius.
getSpeedX()
- Method in class
Enemy
Returns horizontal speed.
getSpeedX()
- Method in class
Hero
Returns horizontal speed.
getSpeedY()
- Method in class
Enemy
Returns vertical speed.
getSpeedY()
- Method in class
Hero
Returns vertical speed.
getX()
- Method in class
Enemy
Returns x cooridinate.
getX()
- Method in class
Hero
Returns x cooridinate
getY()
- Method in class
Enemy
Returns y cooridinate.
getY()
- Method in class
Hero
Returns y cooridinate
H
Hero
- Class in
<Unnamed>
Protagonist or hero in the Dodge Defender Game.
Hero()
- Constructor for class
Hero
Constructor for Hero object, sets instance variables
I
init()
- Method in class
DodgeDefender
Sets initial contentPane (intro screen) and sets ideal height and width of game.
introScreen()
- Method in class
DodgeDefender
Switches content pane to the intro screen, if a user is restarting.
IntroScreen
- Class in
<Unnamed>
Intro screen for Dodge Defender.
IntroScreen()
- Constructor for class
IntroScreen
Constructor for IntroScreen.
L
levelUp()
- Method in class
MainGame
Draws 10 more enemies.
loadImage()
- Method in class
IntroScreen
Loads the intro image.
M
mainGame()
- Method in class
DodgeDefender
Switches content pane to the main game, which starts the actual game.
MainGame
- Class in
<Unnamed>
Drawing panel for DodgeDefender applet.
MainGame()
- Constructor for class
MainGame
Constructor for the MainGame class.
move()
- Method in class
Enemy
Changes x and y based on their vertical and horizontal speed, effectively moving them.
move()
- Method in class
Hero
Adds speeds to x and y cooridinate, advancing their pixel position
P
paintComponent(Graphics)
- Method in class
IntroScreen
This is what is called when repaint() is called on the panel.
paintComponent(Graphics)
- Method in class
MainGame
This is called when repaint() is called on the panel.
playMusic()
- Method in class
IntroScreen
Plays initial music.
S
setRadius(int)
- Method in class
Enemy
Sets radius.
setSpeedX(int)
- Method in class
Enemy
Sets horizontal speed.
setSpeedX(int)
- Method in class
Hero
Sets horizontal speed.
setSpeedY(int)
- Method in class
Enemy
Sets vertical speed.
setSpeedY(int)
- Method in class
Hero
Sets vertical speed.
setX(int)
- Method in class
Enemy
Sets x cooridinate.
setX(int)
- Method in class
Hero
Sets x cooridinate
setY(int)
- Method in class
Enemy
Sets y cooridinate.
setY(int)
- Method in class
Hero
Sets y cooridinate
speedX
- Variable in class
Hero
speedY
- Variable in class
Hero
W
wrap()
- Method in class
Enemy
Keeps all enemys on the screen so they wrap around the plain.
wrap()
- Method in class
Hero
Makes hero wrap around screen.
D
E
G
H
I
L
M
P
S
W
Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes