
Balloon class for TD
By: a guest on
May 9th, 2012 | syntax:
None | size: 0.90 KB | hits: 18 | expires: Never
public interface Balloon {
/**
* Method Balloon
*
*
*/
double health;
Location location;
double moveSpeed;
double damage;
double moneyReturned;
/*
*@param h The amount of health a balloon has
*@param loc The location of the balloon
*@param m The velocity of the balloon
*@param d The amount of damage a balloon does to the castle
*@param mR The amount of money returned from destroying a balloon
*/
public Balloon(double h, Location loc, double m, double d, double mR) {
h = health;
loc = location;
m = moveSpeed;
d = damage;
mR = moneyReturned;
}
public double getHealth(){
return health;
}
public Location getLocation(){
return location;
}
public double getMoveSpeed(){
return moveSpeed;
}
public double getDamage(){
return damage;
}
public double getMoney(){
return moneyReturned;
}
}