Permalink
Cannot retrieve contributors at this time
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?
ALL-Project-2-Text-Based-Game-Blackmail-/item.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
19 lines (18 sloc)
421 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///item.h | |
#pragma once | |
#include <string> | |
/// a parent class for armor and weapon | |
class Item | |
{ | |
public: | |
std::string name; | |
int ID; | |
int stat; | |
std::string item_type; | |
/// Item; will be for creating an item on enemy death, later it will be utilizing databases | |
Item( int _ID,std::string _name,int stat,std::string _item_type); | |
virtual ~Item(){}; | |
int get_ID(); | |
std::string get_item_type(); | |
virtual void display_item() const{}; | |
}; |