Exemplo n.º 1
0
 private string GetSelectedAsteroidName()
 {
     try
     {
         return(_asteroids.First(
                    z => ImageWorker.AreBitmapsEquals(new Point(1033, 49), new Point(1055, 76), z.Value)).Key);
     }
     catch
     {
         return("empty");
     }
 }
Exemplo n.º 2
0
        public bool IsLaserActive(int number)
        {
            var lsr = _laserImages.First().Value;

            switch (number)
            {
            case 1:
            {
                return(ImageWorker.AreBitmapsEquals(new Point(790, 576), new Point(792, 578), lsr, 0.7));
            }

            case 0:
            {
                return(ImageWorker.AreBitmapsEquals(new Point(739, 576), new Point(741, 578), lsr, 0.7));
            }

            default:
            {
                return(false);
            }
            }
        }
Exemplo n.º 3
0
 public bool IsCargoFull()
 {
     return(ImageWorker.AreBitmapsEquals(new Point(225, 513), new Point(230, 518), _images["FullCargo"]));
 }
Exemplo n.º 4
0
 public bool HaveEnoughEnergy()
 {
     return(ImageWorker.AreBitmapsEquals(new Point(639, 582), new Point(641, 584), _images["Capacitor"], 0.8));
 }
Exemplo n.º 5
0
 public bool IsTargetLocked()
 {
     return(ImageWorker.AreBitmapsEquals(new Point(1175, 97), new Point(1178, 100), _images["LockButton"], 0.8));
 }