diff options
Diffstat (limited to 'Creature.cpp')
-rw-r--r-- | Creature.cpp | 38 |
1 files changed, 38 insertions, 0 deletions
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 <iostream> +#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; +} |