/********************************************************************* C201 Computer Programming II Fall 2006 Dana Vrajitoru & Definition of the class Lifeform. **********************************************************************/ #ifndef LIFEFORM_H #define LIFEFORM_H #include using namespace std; class Lifeform { private: // inside this class bool life_flag; protected: // inside this and derived classes int age; string name; bool is_mobile; // Changes the life_floag to false. void Die(); // life_flag = false; public: // inside and outside this // and derived classes // Constructors Lifeform(); Lifeform(string n); // Destructor just to show what happens. ~Lifeform(); // Tells us if the lifeform is alive bool Is_alive(); // return life_flag; // Tells us if the lifeform is mortal bool Is_mortal(); // return true; // Sets the value of the name void Set_name(string n); // name = n; // Sets the mobility to true. void Set_mobile(); // Sets the mobility to false. void Set_imobile(); // Outputs the name of the lifeform. void Output_name(); }; #endif