예제 #1
0
        protected bool CanTarget(Tile tile)
        {
            int distance = BoardUtils.DistanceBetween(launcher.on, constraint, tile);

            return(distance <= maxRange && distance >= minRange);
        }
예제 #2
0
 public bool CanSelect(Tile tile)
 {
     return(BoardUtils.DistanceBetween(launcher.on, constraint, tile) <= maxRange);
 }