summaryrefslogtreecommitdiff
path: root/Creature.cpp
diff options
context:
space:
mode:
authorLuke Bratch <l_bratch@yahoo.co.uk>2010-11-24 19:57:03 +0000
committerLuke Bratch <l_bratch@yahoo.co.uk>2010-11-24 19:57:03 +0000
commit3383e8be9001826bf0d09f1fb73ad5013cc8627e (patch)
tree27be0f78ab8672a7187d517c73b4ee22817369cc /Creature.cpp
Initial commit
Diffstat (limited to 'Creature.cpp')
-rw-r--r--Creature.cpp38
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;
+}