Don't like ads? PRO users don't see any ads ;-)
Guest

Balloon class for TD

By: a guest on May 9th, 2012  |  syntax: None  |  size: 0.90 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  
  2. public interface Balloon {
  3.        
  4.         /**
  5.          * Method Balloon
  6.          *
  7.          *
  8.          */
  9.         double health;
  10.         Location location;
  11.         double moveSpeed;
  12.         double damage;
  13.         double moneyReturned;
  14.          /*
  15.           *@param h The amount of health a balloon has
  16.           *@param loc The location of the balloon
  17.           *@param m The velocity of the balloon
  18.           *@param d The amount of damage a balloon does to the castle
  19.           *@param mR The amount of money returned from destroying a balloon
  20.           */
  21.         public Balloon(double h, Location loc, double m, double d, double mR) {
  22.                 h = health;
  23.                 loc = location;
  24.                 m = moveSpeed;
  25.                 d = damage;
  26.                 mR = moneyReturned;
  27.         }
  28.        
  29.         public double getHealth(){
  30.                 return health;
  31.         }
  32.        
  33.         public Location getLocation(){
  34.                 return location;
  35.         }
  36.        
  37.         public double getMoveSpeed(){
  38.                 return moveSpeed;
  39.         }
  40.        
  41.         public double getDamage(){
  42.                 return damage;
  43.         }
  44.        
  45.         public double getMoney(){
  46.                 return moneyReturned;
  47.         }
  48.        
  49. }