Пример #1
0
        private EquipmentAttrType GetEquipmentType(int x1, int y1, int x2, int y2)
        {
            int intX, intY;
            int result = Dm.FindPic(x1, y1, x2, y2, @"\bmp\攻击.bmp|\bmp\防御.bmp|\bmp\掌控.bmp|\bmp\血量.bmp|\bmp\强防.bmp|\bmp\强壮.bmp|\bmp\强攻.bmp|", "404040", 0.6, 0, out intX, out intY);

            return((EquipmentAttrType)result);
        }
Пример #2
0
        private ResourceType GetResourceType(int x1, int y1, int x2, int y2)
        {
            int intX, intY;
            int type = Dm.FindPic(x1, y1, x2, y2, @"\bmp\招商令.bmp|\bmp\镔铁.bmp|\bmp\粮食.bmp|\bmp\木材.bmp|\bmp\募兵令.bmp", "303030", 0.8, 0, out intX, out intY);

            // Dm.DebugPrint("资源类型:" + type.ToString());
            return((ResourceType)type);
        }