예제 #1
0
파일: Values.cs 프로젝트: AneAniks/RAI
        public static int Mana()
        {
            int value = Recognition.MatchingXPixels("Game/mana.png", 40);

            int total = Pixels.GetWidth("Game/mana.png");

            return((int)Math.Round((double)(100 * value) / total));
        }
예제 #2
0
파일: Values.cs 프로젝트: AneAniks/RAI
        public static int Health()
        {
            int value = Recognition.MatchingXPixels("Game/health.png", 40);

            int total = Pixels.GetWidth("Game/health.png");

            return((int)Math.Round(100d * value / total));
        }