Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#include "desert_story_alicja.h"
using namespace std;
void DesertStory::draw(string type) {
if(type == "desert") {
cout <<"\n "
" _.,-*~'^'~*-,._ ( _.,-*~'^'~*-,._\n"
"| '*-,._ _.,-*' '-,._\n"
"| '*-,.__.,-*' '*-,.__.,-*,\n"
"| |\n"
"`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'`'\n" << endl;
}
}
void DesertStory::desert() {
cout <<"==============================================================\n"
"You woke up having no idea what happend.\n"
"You feel exhausted,\n"
"it is so hot that it fells like you are being burned alive.\n"
"When you open your eyes, you see sand all around you.\n"
"There's nothing else on the horizon, despite few cactuses.\n"
"You realise you're in the middle of the desert.\n"
"==============================================================\n" << endl;
sleep(6);
}
void DesertStory::desert_way1() {
cout << "You started following these footsteps\n"
"After several minutes they become bleary,\n"
"and few minute later you can't see them at all.\n"
"Suddenly the strong wind picked up.\n"
"You tried to walk faster for a while,\n"
"but you realised it is a sandstorm and you have no chance.\n"
"Sand is getting to your eyes and mouth, you barely breath.\n"
"You fell on the ground, not able to move.\n"
<< endl; //dead
DataBase::killPlayer(DataBase::playerID);
}
void DesertStory::desert_way2() {
cout << "You have been walking for few hours.\n"
"You noticed a jeep on your way\n"
"You decided to approach it to see if it works\n"
"You look through the window and you notice some movement.\n"
"Suddenly huge man jump out of it with sword in his hand\n" <<endl;
sleep(6);
}
void DesertStory::desert_way3() {
cout << "You lie down, and you feel something under you back.\n"
"You start to dig in sand and you find a backpack.\n"
"You found gloves and knife.\n"
"This will increase your defence and attack.\n"
"Suddenly you hear heard noise behind you.\n"
"Some man with a sword is coming after you.\n"
"You know you have to fight him.\n" << endl;
sleep(6);
DataBase::modifyPlayerAttack(DataBase::playerID, 15);
DataBase::modifyPlayerDefense(DataBase::playerID, 15);
cout << string(50, '\n');
//battle
}
void DesertStory::when_you_win() {
cout << "You decided to look through his pockets, he may have something useful." << endl;
cout << "You see piece of paper." << endl;
cout << "It's a map, with black cross on it." << endl;
cout << "You turn it on the other side." << endl;
cout << "There's a portrait of women." << endl;
cout << "You'll recognize that face everywhere it's the princess." << endl;
cout << "Now you know you have to go to that cross."<< endl;
cout << "\n" << endl;
sleep(6);
}