#include #include "Creature.h" Creature::Creature() { xVel = 0; yVel = GRAVITY; } int Creature::getXVel() { return xVel; } int Creature::getYVel() { return yVel; } void Creature::setXVel(int xVel) { this->xVel = xVel; } void Creature::setYVel(int yVel) { this->yVel = yVel; } void Creature::incXVel(int xVel) { this->xVel += xVel; } void Creature::incYVel(int yVel) { this->yVel += yVel; } int Creature::getHealth() { return health; } void Creature::setHealth(int h) { health = h; } void Creature::orient() { if (xVel < 0) clipNo = ORIENT_LEFT; else if (xVel > 0) clipNo = ORIENT_RIGHT; else if (yVel < 0) clipNo = ORIENT_BACK; else clipNo = ORIENT_FRONT; }