Skip to content
Permalink
Browse files
Create Items.h
  • Loading branch information
bempaha committed Mar 20, 2020
1 parent a9c7446 commit 869f6c24d41708d49f15c207e50748106dcc654b
Showing 1 changed file with 51 additions and 0 deletions.
51 Items.h
@@ -0,0 +1,51 @@
#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

0 comments on commit 869f6c2

Please sign in to comment.