|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPlayerSprite
vooga.games.mariogame.CharacterSprite
vooga.games.mariogame.Enemy
public class Enemy
Field Summary |
---|
Fields inherited from class vooga.games.mariogame.CharacterSprite |
---|
myMaxHealth |
Constructor Summary | |
---|---|
Enemy(java.lang.String name,
java.lang.String stateName,
java.awt.image.BufferedImage[] left,
java.awt.image.BufferedImage[] right)
Constructs an enemy sprite out of the parameters listed below: |
Method Summary | |
---|---|
void |
bounce()
Sends the sprite in the opposite direction with opposite velocity. |
Methods inherited from class vooga.games.mariogame.CharacterSprite |
---|
getGravityCoef, getHealth, getMaxHealth, setGravityCoef, setHealth, setMaxHealth, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Enemy(java.lang.String name, java.lang.String stateName, java.awt.image.BufferedImage[] left, java.awt.image.BufferedImage[] right)
name
- stateName
- - ex. alive, dead, etc...left
- - represents the image used when the sprite turns/moves leftright
- - represents the image used when the sprite turns/moves rightMethod Detail |
---|
public void bounce()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |