Class LifeMeter
java.lang.Object
LifeMeter
public class LifeMeter
- extends java.lang.Object
|
Field Summary |
private java.awt.image.BufferedImage |
cookie
|
private java.awt.image.BufferedImage |
cupcake
|
private int |
hp
|
private int |
lives
|
private int |
maxHP
|
|
Constructor Summary |
LifeMeter(int hp,
int lives,
int maxHP)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hp
private int hp
lives
private int lives
maxHP
private int maxHP
cupcake
private java.awt.image.BufferedImage cupcake
cookie
private java.awt.image.BufferedImage cookie
LifeMeter
public LifeMeter(int hp,
int lives,
int maxHP)
checkMeter
public void checkMeter()
setHP
public void setHP(int hp)
setLives
public void setLives(int lives)
setMaxHP
public void setMaxHP(int maxHP)
draw
public void draw(java.awt.Graphics g,
java.awt.Dimension d)