#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;



    
}