Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef HOST_H_INCLUDED
- #define HOST_H_INCLUDED
- #include <vector>
- #include <algorithm>
- #include <string>
- using namespace std;
- class Host{
- public:
- // Variables
- string name;
- string profession;
- int age;
- string specialAttribute;
- // Personality attributes
- int good; // From 0 to 20
- int bad; // From 0 to 20
- int rational; // From 0 to 20
- int emotional; // From 0 to 20
- int nervous; // From 0 to 20
- int anxiety; // From 0 to 20
- int iq; // From 50 to 150
- string keystone; // Θεμέλιος Λίθος
- vector <string> abilities;
- vector <string> usualDialogs;
- // **********************************************************************************************
- // **********************************************************************************************
- // Functions
- // Constructors
- // 1st Constructor
- Host(){
- name = "";
- profession = "";
- age = 0;
- specialAttribute = "";
- keystone = "";
- good = 0;
- bad = 0;
- rational = 0;
- emotional = 0;
- nervous = 0;
- anxiety = 0;
- iq = 50;
- keystone = "";
- abilities = vector <string> ();
- usualDialogs = vector <string> ();
- }
- // 2nd Constructor
- Host(string name, string prof, int age, string spAt, string keystone, int good, int bad, int rat, int emot, int nerv, int anx, int iq, vector <string> abil, vector <string> usDial){
- this->name = name;
- this->profession = prof;
- this->age = age;
- this->specialAttribute = spAt;
- this->keystone = keystone;
- this->good = good;
- this->bad = bad;
- this->rational = rat;
- this->emotional = emot;
- this->nervous = nerv;
- this->anxiety = anx;
- this->iq = iq;
- this->abilities = abil;
- this->usualDialogs = usDial;
- }
- // End of the 2 constructors functions
- // *************************************************************************************************************
- // *************************************************************************************************************
- // Destructor
- ~Host(){
- cout << "Bye " << name << ". You served as well! Thank you!" << endl;
- }
- // *************************************************************************************************************
- // *************************************************************************************************************
- // Methods
- void seeHostInfo(){
- cout << " " << name << "'s info\n\n";
- cout << "Profession: " << profession << endl;
- cout << "Age: " << age << endl;
- cout << "Special Attribute: " << specialAttribute << endl;
- cout << "Keystone: " << keystone << endl;
- cout << endl;
- cout << " Good: " << good << " / 20" << endl;
- cout << " Bad: " << bad << " / 20" << endl;
- cout << " Rational: " << rational << " / 20" << endl;
- cout << " Emotional: " << emotional << " / 20" << endl;
- cout << " Nervous: " << nervous << " / 20" << endl;
- cout << " Anxiety: " << anxiety << " / 20" << endl;
- cout << " IQ: " << iq << " / 150" << endl;
- cout << endl;
- cout << "Special abilities: " << endl;
- for(unsigned int i=0; i<abilities.size(); i++){
- cout << i+1 << ") ";
- cout << abilities[i] << endl;
- }
- cout << endl << endl;
- cout << "Usual Dialogs: " << endl;
- for(unsigned int i=0; i<usualDialogs.size(); i++){
- cout << i+1 << ") ";
- cout << usualDialogs[i] << endl;
- }
- cout << endl << endl;
- } // END OF FUNCTIONS SEEHOSTINFO
- };
- #endif // HOST_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement