-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDrGoodMan.cpp
63 lines (57 loc) · 1.69 KB
/
DrGoodMan.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
53
54
55
56
57
58
59
60
61
62
63
//
// Created by Fernanda Girelli on 10/3/23.
//
#include "DrGoodMan.h"
#include <ostream>
DrGoodMan:: DrGoodMan() : GameCharacter (){}
void DrGoodMan::getAttributes(ostream &outs)
{
outs<<"Dr.GoodMan"<<endl;
outs<<"Strength:"<<endl;
outs<<"Polyglot"<<endl;
outs<<"Knows how to ride a bike"<<endl;
outs<<"Master table tennis player"<<endl;
outs<<endl;
outs<<"Weakness:"<<endl;
outs<<"Deathly afraid of snakes"<<endl;
outs<<"Doesn't know how to swim"<<endl;
outs<<"Is allergic to peanuts "<<endl;
}
int DrGoodMan::purpose(int num,ostream &outs)
{
if(num==1)
{
outs<<"\nDr.GoodMan"<<endl;
outs<<"Why, I love riddles!"<<endl;
return 1;
}
else if(num==2)
{
outs<<"\nDr.GoodMan"<<endl;
outs<<"OH NO SNAKES"<<endl;
outs<<"Dr.GoodMan was so scared he has a heart attack before getting to the task -2 HEART "<<endl;
setNumOfLives(2);
return -1;
}
else if(num==3)
{
outs<<"\nDr.GoodMan"<<endl;
outs<<"OOO this may be a challenge"<<endl;
return 1;
}
else if(num==4)
{
outs<<"\nDr.GoodMan"<<endl;
outs<<"I have to be lasered focused"<<endl;
return 1;
}
else if(num==5)
{
outs<<"\nDr.GoodMan"<<endl;
outs<<"This is wonderful, languages are my strengths"<<endl;
outs<<"HINT:La ragazza ha bisogno di acqua:The girl is in need of water\n"<<endl;
return 1;
}
return 1;
}
#include "DrGoodMan.h"