-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPropertySet.h
39 lines (32 loc) · 895 Bytes
/
PropertySet.h
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
//
// Created by mfbut on 1/27/2018.
//
#ifndef HOARDINGCPPVERSION_PROPERTYSET_H
#define HOARDINGCPPVERSION_PROPERTYSET_H
#include <vector>
#include <map>
#include "Property.h"
namespace Monopoly {
class Player;
class PropertySet {
public:
explicit PropertySet(int setId = -99);
//explicit PropertySet(const Property& property);
PropertySet(const PropertySet& orig) = default;
void incNumPropertiesInSet();
void addProperty(Property& property);
void removeProperty(const Property& property);
void clear();
bool ownsAll() const;
std::vector<Property*>& getProperties();
void updateOwner(Player& newOwner);
int getValue() const;
virtual ~PropertySet();
int getNumPropertiesInSet() const;
private:
int setId;
int numPropertiesInSet;
std::vector<Property*> properties;
};
}
#endif //HOARDINGCPPVERSION_PROPERTYSET_H