Index: common/Player.cpp
===================================================================
--- common/Player.cpp	(revision 07c73fa98d66680c60a2750c11641de859414f8b)
+++ common/Player.cpp	(revision 46fa35a62917af23ef297a400a269cae1ec85a80)
@@ -72,4 +72,38 @@
 }
 
+void Player::setId(int id)
+{
+   this->id = id;
+}
+
+void Player::setAddr(sockaddr_in addr)
+{
+   this->addr = addr;
+}
+
+void Player::setClass(PlayerClass c)
+{
+   switch (c) {
+      case CLASS_WARRIOR:
+         this->playerClass = CLASS_WARRIOR;
+         this->maxHealth = this->health = 100;
+         this->attackType = ATTACK_MELEE;
+         this->damage = 10;
+         break;
+      case CLASS_RANGER:
+         this->playerClass = CLASS_RANGER;
+         this->maxHealth = this->health = 60;
+         this->attackType = ATTACK_RANGED;
+         this->damage = 6;
+         break;
+      case CLASS_NONE:
+         cout << "No clas" << endl;
+         break;
+      dafault:
+         cout << "nvalid class" << endl;
+         break;
+   }
+}
+
 void Player::serialize(char* buffer)
 {
@@ -112,38 +146,4 @@
 }
 
-void Player::setId(int id)
-{
-   this->id = id;
-}
-
-void Player::setAddr(sockaddr_in addr)
-{
-   this->addr = addr;
-}
-
-void Player::setClass(PlayerClass c)
-{
-   switch (c) {
-      case CLASS_WARRIOR:
-         this->playerClass = CLASS_WARRIOR;
-         this->maxHealth = this->health = 100;
-         this->attackType = ATTACK_MELEE;
-         this->damage = 10;
-         break;
-      case CLASS_RANGER:
-         this->playerClass = CLASS_RANGER;
-         this->maxHealth = this->health = 60;
-         this->attackType = ATTACK_RANGED;
-         this->damage = 6;
-         break;
-      case CLASS_NONE:
-         cout << "No clas" << endl;
-         break;
-      dafault:
-         cout << "nvalid class" << endl;
-         break;
-   }
-}
-
 bool Player::move(WorldMap *map) {
    int speed = 100; // pixels per second. should probably be in the constructor
Index: common/Player.h
===================================================================
--- common/Player.h	(revision 07c73fa98d66680c60a2750c11641de859414f8b)
+++ common/Player.h	(revision 46fa35a62917af23ef297a400a269cae1ec85a80)
@@ -39,10 +39,10 @@
    ~Player();
 
+   void setId(int id);
+   void setAddr(sockaddr_in addr);
+   void setClass(PlayerClass c);
+
    void serialize(char* buffer);
    void deserialize(char* buffer);
-   void setClass(PlayerClass c);
-
-   void setId(int id);
-   void setAddr(sockaddr_in addr);
 
    bool move(WorldMap *map);
