Kyle's Doxygen Test
This is just a test of Doxygen
Loading...
Searching...
No Matches
dog.hpp
Go to the documentation of this file.
1#ifndef DOG_HPP
2#define DOG_HPP
3
4#define MAX_ENERGY 10
5
13class Dog {
14 public:
22 Dog(const char* _name);
23
32 void bark(void);
33
45 void run(int minutes);
46
56 void sleep(int minutes);
57
58 protected:
70 bool checkEnergy(int energyToExpend);
71
72 private:
79 const char* name;
80
89 int energy;
90};
91
92#endif // DOG_HPP
Represents a dog.
Definition dog.hpp:13
bool checkEnergy(int energyToExpend)
Checks the dog's energy.
Definition dog.cpp:50
void bark(void)
Causes the dog to bark.
Definition dog.cpp:10
void run(int minutes)
Causes the dog to run.
Definition dog.cpp:20
int energy
The dog's available energy.
Definition dog.hpp:89
void sleep(int minutes)
Causes the dog to sleep.
Definition dog.cpp:37
const char * name
The dog's name.
Definition dog.hpp:79