Index: code/branches/wagnis_HS18/src/modules/wagnis/WagnisPlayer.cc
===================================================================
--- code/branches/wagnis_HS18/src/modules/wagnis/WagnisPlayer.cc	(revision 12133)
+++ code/branches/wagnis_HS18/src/modules/wagnis/WagnisPlayer.cc	(revision 12134)
@@ -1,5 +1,2 @@
-
-
-
 
 
@@ -64,6 +61,6 @@
                         if (checkMove(SET_TROOPS_INITIAL)){
                             this->target_province->owner_ID = this->Player_ID;
-                            this->target_province->troops += 1;
-                            orxout()<<"Province "<<this->target_province->ID<<" owned by Player "<<this->target_province->owner_ID<<" troops: "<<this->target_province->troops<<endl;
+                            this->target_province->setTroops(this->target_province->getTroops()+1);
+                            orxout()<<"Province "<<this->target_province->ID<<" owned by Player "<<this->target_province->owner_ID<<" troops: "<<this->target_province->getTroops()<<endl;
                             master->playerFinishedStageCallback(this);
                         }else{
@@ -77,6 +74,6 @@
                     {
                         if (checkMove(SET_TROOPS)){
-                            this->target_province->troops += 1;
-                            orxout()<<"Province "<<this->target_province->ID<<" owned by Player "<<this->target_province->owner_ID<<" troops: "<<this->target_province->troops<<endl;
+                            this->target_province->setTroops(this->target_province->getTroops()+1);
+                            orxout()<<"Province "<<this->target_province->ID<<" owned by Player "<<this->target_province->owner_ID<<" troops: "<<this->target_province->getTroops()<<endl;
                         }
                             
@@ -87,17 +84,17 @@
                         if (checkMove(ATTACK))
                         {
-                            while ((this->origin_province->troops > 1) && (this->target_province->troops > 0)) //still troops available
+                            while ((this->origin_province->getTroops() > 1) && (this->target_province->getTroops() > 0)) //still troops available
                             {
-                                while ((this->origin_province->troops >= 4) && (this->target_province->troops >= 2))
+                                while ((this->origin_province->getTroops() >= 4) && (this->target_province->getTroops() >= 2))
                                 {
                                     //normal fight, 3 attackers, 2 defenders
                                 }
 
-                                if ((this->origin_province->troops == 3) && (this->target_province->troops >= 2))
+                                if ((this->origin_province->getTroops() == 3) && (this->target_province->getTroops() >= 2))
                                 {
                                     //2 attackers, 2 defenders
                                 }
 
-                                if((this->origin_province->troops == 2) && (this->target_province->troops >= 2))
+                                if((this->origin_province->getTroops() == 2) && (this->target_province->getTroops() >= 2))
                                 {
                                     //1 attacker, 2 defenders
@@ -107,9 +104,9 @@
                             }
 
-                            if (this->target_province->troops == 0) //attacker won
+                            if (this->target_province->getTroops() == 0) //attacker won
                             {
                                 this->target_province->owner_ID = this->Player_ID;
-                                this->target_province->troops = (this->origin_province->troops - 1);
-                                this->origin_province->troops = 1;
+                                this->target_province->setTroops(this->origin_province->getTroops() - 1);
+                                this->origin_province->setTroops(1);
                             }
                         }
@@ -121,6 +118,6 @@
                         if (checkMove(MOVE))
                         {
-                            this->target_province->troops += ((this->origin_province->troops) - 1);
-                            this->origin_province->troops = 1;
+                            this->target_province->setTroops(this->origin_province->getTroops()-1);
+                            this->origin_province->setTroops(1);
                         }
                         break;
