Guest User

Balloon class for TD

a guest
May 9th, 2012
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment