-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPotion.hpp
39 lines (33 loc) · 972 Bytes
/
Potion.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef __POTION_HPP__
#define __POTION_HPP__
#include <iostream>
#include "Item.hpp"
using namespace std;
class Potion : public Item
{
protected:
int alter;
string type;
public:
Potion(){}
int get_sell_price(){return sell_price;}
string get_potion_name(){return name;}
string get_potion_description(){return description;}
int get_alter(){return alter;}
string get_type(){return type;}
virtual void check_stats() { cout << "Potion: " << name << " Type: " << type << " Amount: " << alter << " Sell price: " << sell_price << endl << description << endl; return; };
};
class HealthPotion : public Potion
{
public:
HealthPotion()
{
sell_price = 5;
name = "HealthPotion";
description = "A nice drink filled to the brim with dihydrogen monoxide or as you people call it, water. It'll replenish you well.";
type = "Health";
alter = 15;
itemType = "Potion";
}
};
#endif