added Player.takeDamage(), but does nothing
authornireco
Mon, 08 Dec 2008 16:14:23 +0000
changeset 289 2130e9f4aab4
parent 288 47a5d7896aec
child 290 f8e69f493460
added Player.takeDamage(), but does nothing
src/Player.cc
src/Player.hh
--- a/src/Player.cc	Mon Dec 08 16:01:49 2008 +0000
+++ b/src/Player.cc	Mon Dec 08 16:14:23 2008 +0000
@@ -209,6 +209,10 @@
         return NULL;
 }
 
+void Player::takeDamage(int damage) {
+
+}
+
 void Player::draw (Graphics *g, PixelCoordinate camera) {
     CL_GraphicContext *gc = g->get_gc();
     
--- a/src/Player.hh	Mon Dec 08 16:01:49 2008 +0000
+++ b/src/Player.hh	Mon Dec 08 16:14:23 2008 +0000
@@ -101,6 +101,7 @@
     static bool skin_loaded;
     static CL_Surface skin_surface;
     virtual void draw (Graphics *g, PixelCoordinate camera);
+    void takeDamage(int damage);
 };
 
 /**