-
Notifications
You must be signed in to change notification settings - Fork 0
/
Treasure.hpp
98 lines (86 loc) · 2.68 KB
/
Treasure.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
//----------------------------------------------------------------------------------------------------------------------
// Treasure.hpp
//
// Class Treasure contains methods and objects for storing
// the Treasure objects that will be later used when creating
// the board using the provided random Class
//
// Author: 11804229
// 11814996
// 00713374
//----------------------------------------------------------------------------------------------------------------------
//
#ifndef TREASURE_HPP
#define TREASURE_HPP
#include <string>
class Treasure
{
private:
std::string name_;
size_t treasure_id_;
bool found_;
public:
//------------------------------------------------------------------------------------------------------------------
///
/// Default Treasure constructor.
///
///
///
//
Treasure(){}
//------------------------------------------------------------------------------------------------------------------
///
/// Treasure constructor.
///
///
///
//
Treasure(std::string name, size_t treasure_id) : name_{name}, treasure_id_{treasure_id}{}
//------------------------------------------------------------------------------------------------------------------
///
/// Treasure copy-constructor.
///
///
///
//
Treasure(Treasure const&) = default;
//------------------------------------------------------------------------------------------------------------------
///
/// Treasure destructor.
///
///
///
//
~Treasure(){}
//------------------------------------------------------------------------------------------------------------------
///
/// Returns the name_ of the treasures.
///
/// @return string name_ of treasures
//
std::string getName(){ return name_; }
//------------------------------------------------------------------------------------------------------------------
///
/// Gets treasure id
///
/// @return size_ treasure id
//
size_t getTreasureId(){ return treasure_id_; }
//------------------------------------------------------------------------------------------------------------------
///
/// Returns if a treasure is found.
///
/// @return true if found, otherwise false
//
bool getFound(){ return found_; }
//------------------------------------------------------------------------------------------------------------------
///
/// Sets found.
///
/// @param found_command found as true
///
/// @return void
//
void setFound(bool found_command){ found_ = found_command; }
};
#endif // TREASURE_HPP