-
Notifications
You must be signed in to change notification settings - Fork 0
/
Trait.cpp
52 lines (48 loc) · 975 Bytes
/
Trait.cpp
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
#include "Enums.h"
#include "Trait.h"
#include <vector>
#include <string>
#include <iostream>
Trait::Trait() {
};
Trait::Trait(std::string name, std::string desc, TraitGoalType type, PersonalityDim dim, int num) {
trai_name = name;
trai_desc = desc;
trai_type = type;
trai_dim = dim;
trai_num = num;
};
std::string Trait::printFull() {
std::string x, y;
switch (trai_type)
{
case Individual:
x = "Individual";
break;
case Shared:
x = "Shared";
break;
}
switch (trai_dim)
{
case Discipline:
y = "Discipline";
break;
case Curiosity:
y = "Curiosity";
break;
case Extroversion:
y = "Extroversion";
break;
case Sensitivity:
y = "Sensitivity";
break;
case Gentleness:
y = "Gentleness";
break;
case Sincerity:
y = "Sincerity";
break;
}
return trai_name + "\n" + trai_desc + "\nTrait goal: " + x + " " + y + " balance is " + std::to_string(trai_num) + " or more.\n";
};