diff options
Diffstat (limited to 'Creature.h')
-rw-r--r-- | Creature.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Creature.h b/Creature.h new file mode 100644 index 0000000..4c9197c --- /dev/null +++ b/Creature.h @@ -0,0 +1,33 @@ +#ifndef CREATURE_H +#define CREATURE_H + +#include "Sprite.h" + +class Creature : public Sprite { + public: + Creature(); + + // Get velocities + int getXVel(); + int getYVel(); + + // Set velocities + void setXVel(int xVel); + void setYVel(int yVel); + + // Increment velocities + void incXVel(int xVel); + void incYVel(int yVel); + + int getHealth(); + void setHealth(int h); + + protected: + // Velocities + int xVel, yVel; + + // Health + int health; +}; + +#endif |