Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Bow extends NewBE {
- private int BuffS;
- public Bow(String name, int hp, int buff) {
- super(name, hp);
- this.BuffS = 25;
- }
- @Override
- public String Weapon() {
- String weapon = "Bow";
- return weapon;
- }
- @Override
- public int Attack() {
- int attack = 50;
- return attack - 25;
- }
- @Override
- public int Speed() {
- int speed = 75;
- return speed + BuffS;
- }
- public int getBuff() {
- return BuffS;
- }
- public void setBuff(int Buff) {
- this.BuffS = Buff + 25;
- }
- @Override
- public String toString() {
- return super.toString() + "Bow{" + super.toString() + " Attack=" + Attack() + " Speed = " + Speed() + '}';
- }
- }
Add Comment
Please, Sign In to add comment