-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtown.hpp
34 lines (30 loc) · 862 Bytes
/
town.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
#ifndef __TOWN__HPP__
#define __TOWN_HPP__
#include <iostream>
#include "Armor.hpp"
#include "Potion.hpp"
#include "Weapon.hpp"
#include "player.hpp"
using namespace std;
/*
* Town class: This like the dungeon class
* are two destinations the player class can travel to
* and includes connections to the player class as it will modify the vector of vector items
* that the player has to add or take away items from the player,
* as well as modify the integer money the player has
* through increasing money if selling an item or subtracting money if
* buying an item.
* */
class Town
{
private:
void buyConfirmation(Item* item, int price);
void sellConfirmation(Item *item, int price);
Player* player;
public:
void buy();
void sell();
Town(Player *player);
virtual ~Town();
};
#endif