Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Submit this file.
- // You must use this exact file name.
- #include "Weapon.h"
- Weapon::Weapon(){
- name="NONE";
- power=1;
- fighterName="NONE";
- type="unarmed";
- }
- Weapon::Weapon(string name, string type, int power, string fighterName){
- this->name="name";
- this->type="type";
- this->power=power;
- this->fighterName="fighterName";
- }
- Weapon::Weapon(string name){
- this->name="name";
- power=1;
- fighterName="None";
- type="unarmed";
- }
- string Weapon::getName()const{
- return name;
- }
- string Weapon::getType() const{
- return type;
- }
- int Weapon::getPower()const{
- return power;
- }
- string Weapon::getFighterName()const{
- return fighterName;
- }
- void Weapon::setFighterName(string mfighterName){
- fighterName="mfighterName";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement