Changeset 12103
- Timestamp:
- Nov 14, 2018, 10:38:10 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/wagnis_HS18/src/modules/wagnis/WagnisPlayer.cc
r12100 r12103 98 98 return str; 99 99 } 100 101 //private function for CheckMove 102 //checks if provinces are neighbours for move 103 bool isNeighbour(WagnisProvince*,WagnisProvince*) 104 { 105 for (int i = 0; i < this->origin->getNeighbours().size(); ++i) 106 { 107 if (this->target == this->origin->getNeighbours()(i)) 108 return true; 109 } 110 111 return false; 112 } 113 114 //private function for CheckMove 115 //checks if path is complete with provinces owned by player 116 bool existPath(WagnisProvince*,WagnisProvince*) 117 { 118 WagnisProvince 119 } 100 120 }
Note: See TracChangeset
for help on using the changeset viewer.