refactoring to game base class

This commit is contained in:
2022-10-17 17:25:20 +02:00
parent d9b8434484
commit c8e7c4d60c
3 changed files with 10 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ import cv2 as cv
from hsvfilter import HsvFilter
import pydirectinput
from game_base_class import GameBase
from window_capture import WindowCapture
class Magic(GameBase):
@@ -12,6 +13,8 @@ class Magic(GameBase):
self.SPAWN_COUNT = int(overlay.spawn_use.get())
self.capture_window = WindowCapture(None, "magic", self.config)
hsv_filter_orange = HsvFilter(10, 156, 0, 17, 255, 255, 0, 0, 0, 0)
hsv_filter_p = HsvFilter(130, 156, 0, 179, 255, 255, 0, 0, 0, 0)
hsv_filter_b = HsvFilter(88, 156, 0, 128, 255, 255, 0, 0, 0, 0)