// Stephen Jackson // Section Wilkerson // 4 / 4 / 07 // Something about cows #ifndef DISEASE_H #define DISEASE_H #include using namespace std; const int DISEASE_PERCENT_PRECISION = 10000; class disease { //<< operator Overload for diseases //Pre: A disease //Stream output friend ostream& operator<<(ostream &aStream, const disease &aDisease); public: //Makes A disease //Pre: None //Post: A disease disease(string diseaseName, float infectosity, float mortality); //Makes A Null Disease //Pre: None //Post: A Placeholder diease disease(); //returns infectiveness //Pre: None //Post: How Infective it is float getInfectosity() const; //returns the Mortality Rate for a disease //Pre: None //Post: Float of the mortality rate float getMortality() const; //causes various bad things if the cow is infected //Pre: None //Post: May cause the bovine to die bool fatalDisease(); private: string dName; float dInfectosity; float dMortality; bool dRealDisease; }; //<< operator Overload for diseases //Pre: A disease //Stream output ostream& operator<<(ostream &aStream, const disease &aDisease); #endif