[Orxonox-commit 7497] r12103 - code/branches/wagnis_HS18/src/modules/wagnis

samuelbl at orxonox.net samuelbl at orxonox.net
Wed Nov 14 10:38:10 CET 2018


Author: samuelbl
Date: 2018-11-14 10:38:10 +0100 (Wed, 14 Nov 2018)
New Revision: 12103

Modified:
   code/branches/wagnis_HS18/src/modules/wagnis/WagnisPlayer.cc
Log:
Player updated

Modified: code/branches/wagnis_HS18/src/modules/wagnis/WagnisPlayer.cc
===================================================================
--- code/branches/wagnis_HS18/src/modules/wagnis/WagnisPlayer.cc	2018-11-14 09:30:44 UTC (rev 12102)
+++ code/branches/wagnis_HS18/src/modules/wagnis/WagnisPlayer.cc	2018-11-14 09:38:10 UTC (rev 12103)
@@ -97,4 +97,24 @@
         str.append(std::to_string(Player_ID);
         return str;
     }
+
+    //private function for CheckMove
+    //checks if provinces are neighbours for move
+    bool isNeighbour(WagnisProvince*,WagnisProvince*)
+    {
+        for (int i = 0; i < this->origin->getNeighbours().size(); ++i)
+        {
+            if (this->target == this->origin->getNeighbours()(i))
+                return true;
+        }
+
+        return false;
+    }
+
+    //private function for CheckMove
+    //checks if path is complete with provinces owned by player
+    bool existPath(WagnisProvince*,WagnisProvince*)
+    {
+        WagnisProvince
+    }
 }



More information about the Orxonox-commit mailing list