Exemple #1
0
 public BattleControl(Writer console, AutoIt autoIt, OpenCV openCV, Images images, OverlayDX overlay)
 {
     this.console  = console;
     this.autoIt   = autoIt;
     this.openCV   = openCV;
     this.images   = images;
     this.overlay  = overlay;
     key           = new Key(console);
     HeroAboveLine = HeroBelowLine = false;
 }
Exemple #2
0
        public GameControl(Writer console)
        {
            autoIt = new AutoIt(console, "LDPlayer-1");

            images  = new Images(console, autoIt, openCV);
            overlay = new OverlayDX(autoIt);
            openCV  = new OpenCV(console, autoIt, overlay);

            menuControl   = new MenuControl(console, autoIt, openCV, images);
            battleControl = new BattleControl(console, autoIt, openCV, images, overlay);
        }
Exemple #3
0
 public OpenCV(Writer console, AutoIt autoIt, OverlayDX overlay)
 {
     this.console = console;
     this.autoIt  = autoIt;
     this.overlay = overlay;
     window       = autoIt.window;
     if (window == null)
     {
         return;
     }
     gameScreen_bitmap   = new Bitmap(window.Width, window.Height, System.Drawing.Imaging.PixelFormat.Format24bppRgb);
     gameScreen_graphics = Graphics.FromImage(gameScreen_bitmap);
     size_region         = new System.Drawing.Size(window.Width, window.Height);
     console.WriteLine("OpenCV loaded.");
 }