Advertisement
bobo_bobkata

Untitled

Aug 1st, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. package hell.entities.items;
  2.  
  3. import hell.interfaces.Item;
  4.  
  5. public abstract class Items implements Item {
  6.  
  7. private String name;
  8. private int strengthBonus;
  9. private int agilityBonus;
  10. private int intelligenceBonus;
  11. private int hitPointsBonus;
  12. private int damageBonus;
  13.  
  14.  
  15. protected Items(String name, int strengthBonus, int agilityBonus, int intelligenceBonus, int hitPointsBonus, int damageBonus) {
  16. this.name = name;
  17. this.strengthBonus = strengthBonus;
  18. this.agilityBonus = agilityBonus;
  19. this.intelligenceBonus = intelligenceBonus;
  20. this.hitPointsBonus = hitPointsBonus;
  21. this.damageBonus = damageBonus;
  22. }
  23.  
  24. @Override
  25. public String getName() {
  26. return this.name;
  27. }
  28.  
  29. @Override
  30. public int getStrengthBonus() {
  31. return this.strengthBonus;
  32. }
  33.  
  34. @Override
  35. public int getAgilityBonus() {
  36. return this.agilityBonus;
  37. }
  38.  
  39. @Override
  40. public int getIntelligenceBonus() {
  41. return this.intelligenceBonus;
  42. }
  43.  
  44. @Override
  45. public int getHitPointsBonus() {
  46. return this.hitPointsBonus;
  47. }
  48.  
  49. @Override
  50. public int getDamageBonus() {
  51. return this.damageBonus;
  52. }
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement