Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef BABYFOOD_H_INCLUDED
- #define BABYFOOD_H_INCLUDED
- #include <iostream>
- #include <vector>
- #include "colormod.h" // namespace Color
- #include <stdlib.h>
- #include <stdio.h>
- #include <unistd.h> // sleep(1000) 1 second
- class Food {
- bool Milk;
- bool Apples;
- bool Pears;
- bool peaches;
- public:
- void drinkMilk();
- void eatApples();
- void eatPears();
- void eatPeaches();
- };
- void drinkMilk(){
- Hunger += 2.00;
- usleep(200000);
- std::cout << blue << "Drining Milk." << def << std::endl;
- std::cout << "TEST: Hunger: " << Hunger << std::endl;
- Hunger += 2.00;
- usleep(200000);
- std::cout << blue << "Drining Milk.." << def << std::endl;
- std::cout << "TEST: Hunger: " << Hunger << std::endl;
- Hunger += 2.00;
- usleep(200000);
- std::cout << blue << "Drining Milk..." << def << std::endl;
- std::cout << "TEST: Hunger: " << Hunger << std::endl;
- }
- void eatApples(){
- }
- void eatPears(){
- }
- void eatPeaches(){
- }
- #endif // BABYFOOD_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement