Advertisement
makispaiktis

Westworld - Host.h

Aug 4th, 2019 (edited)
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 4.11 KB | None | 0 0
  1. #ifndef HOST_H_INCLUDED
  2. #define HOST_H_INCLUDED
  3. #include <vector>
  4. #include <algorithm>
  5. #include <string>
  6.  
  7. using namespace std;
  8.  
  9. class Host{
  10.  
  11. public:
  12.  
  13.     // Variables
  14.     string name;
  15.     string profession;
  16.     int age;
  17.     string specialAttribute;
  18.     // Personality attributes
  19.     int good;                                   // From 0 to 20
  20.     int bad;                                    // From 0 to 20
  21.     int rational;                               // From 0 to 20
  22.     int emotional;                              // From 0 to 20
  23.     int nervous;                                // From 0 to 20
  24.     int anxiety;                                // From 0 to 20
  25.     int iq;                                     // From 50 to 150
  26.     string keystone;                            // Θεμέλιος Λίθος
  27.     vector <string> abilities;
  28.     vector <string> usualDialogs;
  29.  
  30.     // **********************************************************************************************
  31.     // **********************************************************************************************
  32.     // Functions
  33.     // Constructors
  34.     // 1st Constructor
  35.     Host(){
  36.         name = "";
  37.         profession = "";
  38.         age = 0;
  39.         specialAttribute = "";
  40.         keystone = "";
  41.         good = 0;
  42.         bad = 0;
  43.         rational = 0;
  44.         emotional = 0;
  45.         nervous = 0;
  46.         anxiety = 0;
  47.         iq = 50;
  48.         keystone = "";
  49.         abilities = vector <string> ();
  50.         usualDialogs = vector <string> ();
  51.     }
  52.  
  53.     // 2nd Constructor
  54.     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){
  55.         this->name = name;
  56.         this->profession = prof;
  57.         this->age = age;
  58.         this->specialAttribute = spAt;
  59.         this->keystone = keystone;
  60.         this->good = good;
  61.         this->bad = bad;
  62.         this->rational = rat;
  63.         this->emotional = emot;
  64.         this->nervous = nerv;
  65.         this->anxiety = anx;
  66.         this->iq = iq;
  67.         this->abilities = abil;
  68.         this->usualDialogs = usDial;
  69.  
  70.     }
  71.     // End of the 2 constructors functions
  72.     // *************************************************************************************************************
  73.     // *************************************************************************************************************
  74.     // Destructor
  75.     ~Host(){
  76.         cout << "Bye " << name << ". You served as well! Thank you!" << endl;
  77.     }
  78.  
  79.     // *************************************************************************************************************
  80.     // *************************************************************************************************************
  81.     // Methods
  82.     void seeHostInfo(){
  83.         cout << "           " << name << "'s info\n\n";
  84.         cout << "Profession: " << profession << endl;
  85.         cout << "Age: " << age << endl;
  86.         cout << "Special Attribute: " << specialAttribute << endl;
  87.         cout << "Keystone: " << keystone << endl;
  88.         cout << endl;
  89.         cout << "       Good: " << good << " / 20" << endl;
  90.         cout << "       Bad: " << bad << " / 20" << endl;
  91.         cout << "       Rational: " << rational << " / 20" << endl;
  92.         cout << "       Emotional: " << emotional << " / 20" << endl;
  93.         cout << "       Nervous: " << nervous << " / 20" <<  endl;
  94.         cout << "       Anxiety: " << anxiety << " / 20" <<  endl;
  95.         cout << "       IQ: " << iq << " / 150" << endl;
  96.         cout << endl;
  97.         cout << "Special abilities: " << endl;
  98.         for(unsigned int i=0; i<abilities.size(); i++){
  99.             cout << i+1 << ") ";
  100.             cout << abilities[i] << endl;
  101.         }
  102.         cout << endl << endl;
  103.         cout << "Usual Dialogs: " << endl;
  104.         for(unsigned int i=0; i<usualDialogs.size(); i++){
  105.             cout << i+1 << ") ";
  106.             cout << usualDialogs[i] << endl;
  107.         }
  108.         cout << endl << endl;
  109.  
  110.     } // END OF FUNCTIONS SEEHOSTINFO
  111.  
  112.  
  113.  
  114. };
  115.  
  116.  
  117.  
  118.  
  119. #endif // HOST_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement