Esempio n. 1
0
        public void MatchMonster(Bitmap bt)
        {
            if (cfg.monSelect && cfg.monAlive)
            {
                Bitmap bbt = bt.Clone(Consts.MONSTER_RECT, bt.PixelFormat);

                if (!ImgTool.MaxSame(bbt, monsterBt))
                {
                    cfg.monAlive = false;
                    //mainForm.uPL("不是目标怪物");
                }
                bbt.Dispose();
            }
        }
Esempio n. 2
0
        public void MatchHealth(Bitmap bt)
        {
            Bitmap bbt = bt.Clone(Consts.OBJECT_RECT, bt.PixelFormat);

            if (ImgTool.WhereDiff(monAttackBt, bbt) || ImgTool.WhereDiff(monPeaceBt, bbt))
            {
                cfg.monAlive = true;
                //mainForm.uPL("是怪物");
            }
            else
            {
                cfg.monAlive = false;
                //mainForm.uPL("不是怪物");
            }
            bbt.Dispose();
        }