Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 12103


Ignore:
Timestamp:
Nov 14, 2018, 10:38:10 AM (5 years ago)
Author:
samuelbl
Message:

Player updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/wagnis_HS18/src/modules/wagnis/WagnisPlayer.cc

    r12100 r12103  
    9898        return str;
    9999    }
     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    }
    100120}
Note: See TracChangeset for help on using the changeset viewer.