From 3383e8be9001826bf0d09f1fb73ad5013cc8627e Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Wed, 24 Nov 2010 19:57:03 +0000 Subject: Initial commit --- Creature.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Creature.h (limited to 'Creature.h') 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 -- cgit v1.2.3