-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPeople.cpp
More file actions
90 lines (70 loc) · 1.27 KB
/
People.cpp
File metadata and controls
90 lines (70 loc) · 1.27 KB
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
/****************************
**Program: Final Project
**Name: Kirsten Carter
**Date: 6/3/2019
**Description: People Class - Holds the main menu functions that relate to the characters in the game. Adapted from Project3-Fantasy Combat. Added a boolean function to determine if the user had
**collected Buckbeak
*****************************/
#include "People.hpp"
People::People()
{
}
int People::getArmor()
{
return armor;
}
int People::getStrength()
{
return strength;
}
int People::getAttackRoll()
{
return attackRoll;
}
int People::getDefendRoll()
{
return defendRoll;
}
std::string People::getCharacterType()
{
return characterType;
}
bool People::getBuckbeak()
{
return buckbeak;
}
// Space* People::getLocation()
// {
// return location;
// }
void People::setAttackRoll(int aR)
{
attackRoll = aR;
}
void People::setDefendRoll(int dR)
{
defendRoll = dR;
}
void People::setArmor(int a)
{
armor = a;
}
void People::setStrength(int s)
{
strength = s;
}
void People::setCharacterType(std::string cT)
{
characterType = cT;
}
void People::setBuckbeak(int b)
{
buckbeak = b;
}
// void People::setLocation(Space* currSpace)
// {
// location = currSpace;
// }
People::~People()
{
}