From 4718c83d9204a0a9e2e0add143e829bbb9c0bff0 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Fri, 26 Nov 2010 12:49:49 +0000 Subject: Implement Sprite::get/setClip for sprite sheet clipping & Creature::Orient for setting a Creature's clip/orientation --- Creature.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Creature.h') 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; -- cgit v1.2.3