Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. #ifndef BABYFOOD_H_INCLUDED
  2. #define BABYFOOD_H_INCLUDED
  3. #include <iostream>
  4. #include <vector>
  5. #include "colormod.h" // namespace Color
  6. #include <stdlib.h>
  7. #include <stdio.h>
  8. #include <unistd.h> // sleep(1000) 1 second
  9.  
  10.  
  11.  
  12. class Food {
  13. bool Milk;
  14. bool Apples;
  15. bool Pears;
  16. bool peaches;
  17.  
  18. public:
  19. void drinkMilk();
  20. void eatApples();
  21. void eatPears();
  22. void eatPeaches();
  23.  
  24.  
  25. };
  26. void drinkMilk(){
  27. Hunger += 2.00;
  28. usleep(200000);
  29. std::cout << blue << "Drining Milk." << def << std::endl;
  30. std::cout << "TEST: Hunger: " << Hunger << std::endl;
  31. Hunger += 2.00;
  32. usleep(200000);
  33. std::cout << blue << "Drining Milk.." << def << std::endl;
  34. std::cout << "TEST: Hunger: " << Hunger << std::endl;
  35. Hunger += 2.00;
  36. usleep(200000);
  37. std::cout << blue << "Drining Milk..." << def << std::endl;
  38. std::cout << "TEST: Hunger: " << Hunger << std::endl;
  39. }
  40.  
  41. void eatApples(){
  42.  
  43. }
  44. void eatPears(){
  45.  
  46. }
  47. void eatPeaches(){
  48.  
  49. }
  50. #endif // BABYFOOD_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement