#include <iostream>
#include "cs.hpp"
#include "ss.hpp"
#include "map.hpp"
#include <string>
using namespace std;
cs :: cs(){
}
void cs::csf(){
//some introduction text here
cin>>c; //c is the classification selected(Wizard, Warrior etc)
if((c =="Wizard") || (c =="Warrior") || (c =="Rogue") || (c == "Cleric")){
}
else{//start of else
while((c !="Wizard") || (c !="Warrior") || (c !="Rogue") || (c != "Cleric")){//start of while
cout<<"Available classes:Wizard,Warrior,Rogue,Cleric"<<endl;
cout<<"Please enter class again"<<endl;
cin>>c;
if((c == "Wizard") || (c == "Warrior") || (c == "Rogue") || (c == "Cleric")){//start of if
cout<<"your class is: "<<c<<endl;
break;
}//end of if
}//end of while
}//end of else
//replacing the classification by numbers
if (c=="Wizard"){
nc = 1;
}
else if(c=="Warrior"){
nc = 2;
}
else if(c=="Rogue"){
nc = 3;
}
else if(c=="Cleric")
nc = 4;
//end of setting numberclassification
cout<<"Good..."<<endl;
sleep(1);
cout<<"Now you are a "<<c<<endl;
sleep(1);
cout<<c<<"'s stats are the following:" <<endl;
ss sso;
//printing the stats
cout<<"health = "<<sso.health<<endl;
cout<<"dexterity = "<<sso.dexterity<<endl;
cout<<"heal = "<<sso.heal<<endl;
cout<<"damage = "<<sso.damage<<endl;
cout<<"mana = "<<sso.mana<<endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSAiY3MuaHBwIgojaW5jbHVkZSAic3MuaHBwIgojaW5jbHVkZSAibWFwLmhwcCIKI2luY2x1ZGUgPHN0cmluZz4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmNzIDo6IGNzKCl7CiAgICAKfQoKdm9pZCBjczo6Y3NmKCl7CiAgICAKICAgIC8vc29tZSBpbnRyb2R1Y3Rpb24gdGV4dCBoZXJlCiAgICAKICAgIGNpbj4+YzsgLy9jIGlzIHRoZSBjbGFzc2lmaWNhdGlvbiBzZWxlY3RlZChXaXphcmQsIFdhcnJpb3IgZXRjKQogICAgCiAgICAKICAgIAogICAgCiAgICAKICAgIGlmKChjID09IldpemFyZCIpIHx8IChjID09IldhcnJpb3IiKSB8fCAoYyA9PSJSb2d1ZSIpIHx8IChjID09ICJDbGVyaWMiKSl7CiAgICAgICAKICAgIH0KICAgIAogICAgZWxzZXsvL3N0YXJ0IG9mIGVsc2UKICAgICAgICAKICAgICAgICB3aGlsZSgoYyAhPSJXaXphcmQiKSB8fCAoYyAhPSJXYXJyaW9yIikgfHwgKGMgIT0iUm9ndWUiKSB8fCAoYyAhPSAiQ2xlcmljIikpey8vc3RhcnQgb2Ygd2hpbGUKICAgICAgICAgICAgCiAgICAgICAgICAgIGNvdXQ8PCJBdmFpbGFibGUgY2xhc3NlczpXaXphcmQsV2FycmlvcixSb2d1ZSxDbGVyaWMiPDxlbmRsOwogICAgICAgICAgICBjb3V0PDwiUGxlYXNlIGVudGVyIGNsYXNzIGFnYWluIjw8ZW5kbDsKICAgICAgICAgICAgY2luPj5jOwogICAgICAgICAgICAKICAgICAgICAgICAgaWYoKGMgPT0gIldpemFyZCIpIHx8IChjID09ICJXYXJyaW9yIikgfHwgKGMgPT0gIlJvZ3VlIikgfHwgKGMgPT0gIkNsZXJpYyIpKXsvL3N0YXJ0IG9mIGlmCiAgICAgICAgICAgICAgICBjb3V0PDwieW91ciBjbGFzcyBpczogIjw8Yzw8ZW5kbDsKICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgIH0vL2VuZCBvZiBpZgogICAgICAgICAgICAKICAgICAgICAgICAgCiAgICAgICAgfS8vZW5kIG9mIHdoaWxlCiAgICB9Ly9lbmQgb2YgZWxzZQogICAgCiAgICAKICAgIC8vcmVwbGFjaW5nIHRoZSBjbGFzc2lmaWNhdGlvbiBieSBudW1iZXJzCiAgICAKICAgIGlmIChjPT0iV2l6YXJkIil7CiAgICAgICAgCiAgICAgICAgbmMgPSAxOwogICAgfQogICAgCiAgICBlbHNlIGlmKGM9PSJXYXJyaW9yIil7CiAgICAgICAgCiAgICAgICAgbmMgPSAyOwogICAgfQogICAgCiAgICBlbHNlIGlmKGM9PSJSb2d1ZSIpewogICAgICAgIAogICAgICAgIG5jID0gMzsKICAgIH0KICAgIAogICAgZWxzZSBpZihjPT0iQ2xlcmljIikKICAgICAgICAKICAgICAgICBuYyA9IDQ7CiAgICAKICAgIC8vZW5kIG9mIHNldHRpbmcgbnVtYmVyY2xhc3NpZmljYXRpb24KICAgIAogICAgY291dDw8Ikdvb2QuLi4iPDxlbmRsOwogICAgc2xlZXAoMSk7CiAgICAKICAgIGNvdXQ8PCJOb3cgeW91IGFyZSBhICI8PGM8PGVuZGw7CiAgICBzbGVlcCgxKTsKICAgIAogICAgY291dDw8Yzw8IidzIHN0YXRzIGFyZSB0aGUgZm9sbG93aW5nOiIgPDxlbmRsOwogICAgCiAgICBzcyBzc287CiAgICAKICAgIC8vcHJpbnRpbmcgdGhlIHN0YXRzCiAgICAKICAgIGNvdXQ8PCJoZWFsdGggPSAiPDxzc28uaGVhbHRoPDxlbmRsOwogICAgY291dDw8ImRleHRlcml0eSA9ICI8PHNzby5kZXh0ZXJpdHk8PGVuZGw7CiAgICBjb3V0PDwiaGVhbCA9ICI8PHNzby5oZWFsPDxlbmRsOwogICAgY291dDw8ImRhbWFnZSA9ICI8PHNzby5kYW1hZ2U8PGVuZGw7CiAgICBjb3V0PDwibWFuYSA9ICI8PHNzby5tYW5hPDxlbmRsOwoKCgogICAgCn0=