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
#ifndef ITEMS_H
#define ITEMS_H
#include <iostream>
#include <fstream>
using namespace std;
class items {
public:
string item_name;
string item_description;
string item_location;
string examine;
string open;
bool isUsable;
bool canTake;
bool isImportant;
void printItem();
items();
items(string item_name, string item_description, string item_location, bool isUsable, bool canTake, bool isImportant);
};
items::items() {
printItem();
}
items::items(string item_name, string item_description, string item_location, bool isUsable, bool canTake, bool isImportant) {
this->item_name = item_name;
this->item_description = item_description;
this->item_location = item_location;
this->isUsable = isUsable;
this->canTake = canTake;
this->isImportant = isImportant;
}
void items::printItem() {
cout << "Item name: " << item_name << endl;
cout << "Item description: " << item_description << endl;
//cout << "Item isUsable: " << isUable << endl;
}
#endif