-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSword.cpp
38 lines (34 loc) · 1.28 KB
/
Sword.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
//
// Created by Fernanda Girelli on 10/4/23.
//
#include "Sword.h"
Sword::Sword(): CharacterTasks(){}
void Sword::getLeadUp()
{
cout<<"\nNarrator:"<<endl;
cout<<"The Knights of Vernon have gone rouge since the ruby went missing. Watch out for them, they are the best sword fighters of the land."<<endl;
}
int Sword::taskMechanics() {
cout << "\nNarrator:" << endl;
cout << "It seems that we were fated to encounter the knight of vernon. But do not fear while a great sword fight"
"might have be able to beat them they do have a weakness. Their weakness is that they are self-absorbed and love the image of themselves" << endl;
cout<<"\nNarrator"<<endl;
cout<<"a. lipstick"<<endl;
cout<<"b. Mirror"<<endl;
cout<<"c. rope"<<endl;
string answer;
getline(cin,answer);
if(answer!="a"&& answer!="b" &&answer!="c")
{
cout<<"Not a valid response, try again: "<<endl;
getline(cin,answer);
}
if(answer!="b")
{
cout<<"Wrong! -1 HEART "<<endl;
return 1;
}
cout<<"\nNarrator"<<endl;
cout<<"Good job, they are so focued on looking at themselves that we can escape"<<endl;
return 0;
}