SHARE
TWEET

Untitled

a guest Apr 21st, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifndef RUNNER_H
  2. #define RUNNER_H
  3. // Runner.h
  4.  
  5. class Runner{
  6.  
  7. public:
  8.   Runner();
  9.   int getPosition();
  10.   virtual int updatePosition() = 0;
  11.   void collide();
  12.   char getAvatar();
  13.   int getEnergyLevel();
  14.   bool isDown();
  15.   void eatSnack();
  16.   const static int MAX_ENERGY = 25;
  17.  
  18. private:
  19.   int currentPosition;
  20.   char avatar;
  21.   int energyLevel;
  22.   bool down;
  23.   void setEnergyLevel(int);
  24.   bool setPosition(int);
  25.  
  26. };
  27. #endif
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top