Index: common/Player.cpp
===================================================================
--- common/Player.cpp	(revision 9bfc1cb345b8dbf607aa15080337ef640459d995)
+++ common/Player.cpp	(revision 6054f1ecc6fc81bf5a465d773718988bd49629e6)
@@ -206,4 +206,15 @@
 }
 
+void Player::takeDamage(int damage) {
+   this->health -= damage;
+   if (this->health < 0)
+      this->health = 0;
+   if (this->health == 0) {
+      cout << "Player died" << endl;
+      this->isDead = true;
+      this->timeDied = getCurrentMillis();
+   }
+}
+
 bool Player::updateTarget(map<unsigned int, Player*>& mapPlayers) {
    if (this->isChasing) {
Index: common/Player.h
===================================================================
--- common/Player.h	(revision 9bfc1cb345b8dbf607aa15080337ef640459d995)
+++ common/Player.h	(revision 6054f1ecc6fc81bf5a465d773718988bd49629e6)
@@ -50,4 +50,5 @@
    bool updateTarget(map<unsigned int, Player*>& mapPlayers);
    bool move(WorldMap *map);
+   void takeDamage(int damage);
 
    void takeFlag(int flag, WorldMap* map);
