Advertisement
Guest User

WARIOR

a guest
Mar 28th, 2020
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp5
  8. {
  9. class Warrior : Character
  10. {
  11. int punktySzalu;
  12. string rodzajBroni;
  13.  
  14. public Warrior(int punktySzalu, string rodzajBroni, string Imie, double pktZycia, int pktObrony, int pktAtaku) : base(Imie, pktZycia, pktObrony, pktAtaku)
  15. {
  16. this.punktySzalu = punktySzalu;
  17. this.rodzajBroni = rodzajBroni;
  18. }
  19.  
  20. public double MocAtaku()
  21. {
  22. return punktySzalu * punktyAtaku * 0.004 * punktyZycia;
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement