diff options
author | Luke Bratch <l_bratch@yahoo.co.uk> | 2010-11-24 19:57:03 +0000 |
---|---|---|
committer | Luke Bratch <l_bratch@yahoo.co.uk> | 2010-11-24 19:57:03 +0000 |
commit | 3383e8be9001826bf0d09f1fb73ad5013cc8627e (patch) | |
tree | 27be0f78ab8672a7187d517c73b4ee22817369cc /Creature.h |
Initial commit
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 |