Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
///weapon.h
#pragma once
#include "item.h"
#include <iostream>
#include <string>
class Weapon:public Item
{
public:
std::string item_type = "weapon";
///for some reason when I put this in armor.cpp file it produces an undefined reference error
Weapon(int _ID,std::string _name,int _stat):Item( _ID,_name,_stat,"weapon")
{
name = _name;
ID = _ID;
stat = _stat;
}
int get_ID();
void display_item() const;
~Weapon(){};
};