-
Notifications
You must be signed in to change notification settings - Fork 1
/
character.h
125 lines (103 loc) · 3.05 KB
/
character.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
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#pragma once
#include "events.h"
#include "magic.h"
class character{
friend class paladin;
public:
/**
* @brief initiates event object
* @details sets event to member event
*
* @param event object reference from main
*/
character(events &event, magic &_m);
/**
* @brief default constructor
* @details default constructor
*/
// character();
/**
* @brief default deconstructor
* @details default deconstructor
*/
~character();
/**
* @brief automatic food eater
* @details eats food specified by the user
*/
void eatFood();
/**
* @brief data for eatFood function
* @details prompting the user for information
*/
void getFoodData();
/**
* @brief getter to verify if eatFood is active
* @details boolean to determine whether eatFood is active or not
* @return true for active or false for inactive
*/
bool getEatingFood();
/**
* @brief automatic fisher
* @details fish at specified area by the user
*/
void fisher();
/**
* @brief setter for var eatingFood to param
* @details sets bool var eatingFood to param
* @param eatingFood True or False
*/
void setEatingFood(bool eatingFood);
/**
* @brief get user fishing information
* @details prompt user for information about fishingrod, fishing area etc
*/
void getFishingData();
/**
* @brief getter to verify if fishing is active
* @details boolean to determine whether fishing is active or not
* @return true for active or false for inactive
*/
bool getFishing();
/**
* @brief setter for var fishing to param
* @details sets bool var fishing to param
* @param fishing True or False
*/
void setFishing(bool fishing);
/**
* @brief getter for bool variable
* @details to provide user information about active functions eg eatingFood
* @return returns a string "enable/disable"
*/
std::string foodState();
/**
* @brief getter for bool variables
* @details to provide user information about active functions eg fishing
* @return returns a string "enable/disable"
*/
std::string fishingState();
/**
* @brief getter for bool variables
* @details to provide user information about active functions eg trainingMana
* @return returns a string "enable/disable"
*/
std::string manaState();
/**
* @brief getter for bool variables
* @details to provide user information about active functions eg monkTrainer
* @return returns a string "enable/disable"
*/
std::string trainingState();
private:
magic &_magic; ///< object for the magic class
bool eatingFood, ///< boolean used in main loop to verify active/inactive functions
fishing, ///< boolean used in main loop to verify active/inactive functions
monkTrainer; ///< boolean used in main loop to verify active/inactive functions
POINT fishingRodPos, ///< coordinates of fishing rod
topLeft, ///< top left coordinates of the fishing area, used to compute rectangle
botRight, ///< bottom right coordinates of the fishing area, used to compute rectangle
foodPos; ///< food coordinates
protected:
events *event; ///< pointer object for the event class
};