Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #ifndef HARE_H
  2. #define HARE_H
  3. // Hare.h
  4. class Hare{
  5.  
  6. public:
  7. Hare();
  8. int getPosition();
  9. int updatePosition();
  10. void collide();
  11. char getAvatar();
  12. int getEnergyLevel();
  13. bool isDown();
  14. void eatSnack();
  15. const static int MAX_ENERGY = 25;
  16.  
  17. private:
  18. int currentPosition;
  19. char avatar;
  20. int energyLevel;
  21. bool down;
  22. void setEnergyLevel(int);
  23. bool setPosition(int);
  24.  
  25. };
  26. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement