Class LifeMeter

java.lang.Object
  extended by 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)
           
 
Method Summary
 void checkMeter()
           
 void draw(java.awt.Graphics g, java.awt.Dimension d)
           
 void setHP(int hp)
           
 void setLives(int lives)
           
 void setMaxHP(int maxHP)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

LifeMeter

public LifeMeter(int hp,
                 int lives,
                 int maxHP)
Method Detail

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)