Guest User

Untitled

a guest
Feb 25th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. public class Bow extends NewBE {
  2.  
  3. private int BuffS;
  4.  
  5. public Bow(String name, int hp, int buff) {
  6. super(name, hp);
  7. this.BuffS = 25;
  8. }
  9.  
  10. @Override
  11. public String Weapon() {
  12.  
  13. String weapon = "Bow";
  14.  
  15. return weapon;
  16.  
  17. }
  18.  
  19. @Override
  20. public int Attack() {
  21.  
  22. int attack = 50;
  23.  
  24. return attack - 25;
  25. }
  26.  
  27. @Override
  28. public int Speed() {
  29.  
  30. int speed = 75;
  31.  
  32. return speed + BuffS;
  33. }
  34.  
  35. public int getBuff() {
  36. return BuffS;
  37. }
  38.  
  39. public void setBuff(int Buff) {
  40. this.BuffS = Buff + 25;
  41. }
  42.  
  43. @Override
  44. public String toString() {
  45. return super.toString() + "Bow{" + super.toString() + " Attack=" + Attack() + " Speed = " + Speed() + '}';
  46. }
  47.  
  48. }
Add Comment
Please, Sign In to add comment