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.cpp | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Creature.cpp (limited to 'Creature.cpp') diff --git a/Creature.cpp b/Creature.cpp new file mode 100644 index 0000000..0463e5a --- /dev/null +++ b/Creature.cpp @@ -0,0 +1,38 @@ +#include +#include "Creature.h" + +Creature::Creature() { + std::cout << "Creature::Creature(): Creature created.\n"; +} + +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; +} -- cgit v1.2.3