Advertisement
Guest User

weapon.cpp

a guest
Oct 17th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. // Submit this file.
  2. // You must use this exact file name.
  3.  
  4. #include "Weapon.h"
  5.  
  6. Weapon::Weapon(){
  7. name="NONE";
  8. power=1;
  9. fighterName="NONE";
  10. type="unarmed";
  11. }
  12. Weapon::Weapon(string name, string type, int power, string fighterName){
  13. this->name="name";
  14. this->type="type";
  15. this->power=power;
  16. this->fighterName="fighterName";
  17. }
  18. Weapon::Weapon(string name){
  19. this->name="name";
  20. power=1;
  21. fighterName="None";
  22. type="unarmed";
  23. }
  24.  
  25. string Weapon::getName()const{
  26. return name;
  27. }
  28.  
  29. string Weapon::getType() const{
  30.  
  31. return type;
  32. }
  33.  
  34. int Weapon::getPower()const{
  35. return power;
  36. }
  37.  
  38. string Weapon::getFighterName()const{
  39. return fighterName;
  40. }
  41.  
  42. void Weapon::setFighterName(string mfighterName){
  43. fighterName="mfighterName";
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement