summaryrefslogtreecommitdiff
path: root/Creature.h
diff options
context:
space:
mode:
authorLuke Bratch <l_bratch@yahoo.co.uk>2010-11-26 12:49:49 +0000
committerLuke Bratch <l_bratch@yahoo.co.uk>2010-11-26 12:49:49 +0000
commit4718c83d9204a0a9e2e0add143e829bbb9c0bff0 (patch)
tree51b5192285126af720c8d7df3b45ad6261e8b218 /Creature.h
parent5dd6f1089a86e69889056f3853b373025f68026f (diff)
Implement Sprite::get/setClip for sprite sheet clipping & Creature::Orient for setting a
Creature's clip/orientation
Diffstat (limited to 'Creature.h')
-rw-r--r--Creature.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Creature.h b/Creature.h
index 4c9197c..eb0f192 100644
--- a/Creature.h
+++ b/Creature.h
@@ -22,6 +22,9 @@ class Creature : public Sprite {
int getHealth();
void setHealth(int h);
+ // Set correct sprite clip for current situation
+ void orient();
+
protected:
// Velocities
int xVel, yVel;