Exemplo n.º 1
0
        public static int AllyCreepHealth()
        {
            //Get matching x pixels of the health bar
            int value = ImageRecognition.MatchingXPixels("Game/allycreephealth.png", 3);

            //Get total pixels of health bar
            int total = PixelCache.GetWidth("Game/allycreephealth.png");

            //Get percentage of 100
            return((int)Math.Round(100d * value / total));
        }
Exemplo n.º 2
0
        //Return health value percentage
        public static int Mana()
        {
            //Get matching x pixels of the health bar
            int value = ImageRecognition.MatchingXPixels("Game/mana.png", 40);

            //Get total pixels of health bar
            int total = PixelCache.GetWidth("Game/mana.png");

            //Get percentage of 100
            return((int)Math.Round((double)(100 * value) / total));
        }
Exemplo n.º 3
0
        internal static Point EnemyTowerHp2()
        {
            Point position = ImageRecognition.FindImagePositionNearest("Game/enemytowerhp2.png", 4);

            return(position);
        }
Exemplo n.º 4
0
        internal static Point botChampion()
        {
            Point position = ImageRecognition.FindImagePositionNearest("Game/botcharacter.png", 4);

            return(position);
        }
Exemplo n.º 5
0
        internal static Point EnemyChampion()
        {
            Point position = ImageRecognition.FindImagePosition("Game/enemycharacter.png", 4);

            return(position);
        }