Exemple #1
0
        public void SetRiverTargetDirection(HexNeighbours toDir)
        {
            int dir = (int)toDir;

            //only accept if target direction is only one value
            if (dir != 0 && (dir & (dir - 1)) == 0)
            {
                RiverTargetDirection = toDir;
            }
        }
Exemple #2
0
 public void SetRiverSourceDirections(HexNeighbours fromDirs)
 {
     RiverSourceDirections |= fromDirs;
 }