refactoring to game base class

This commit is contained in:
2022-10-17 17:11:56 +02:00
parent 433170b4c8
commit 14a5983d17
22 changed files with 47 additions and 422 deletions

View File

@@ -4,6 +4,7 @@ import pydirectinput
from config_file import UserConfigs
from window_capture import WindowCapture
from vision import Vision
from game_base_class import GameBase
MODE25X1 = "m25x1"
MODE10X2 = "m10x2"
@@ -14,11 +15,10 @@ MODE1X5_X = "m1x5_X"
MODE_HOUSE = "house"
class Craft:
class Craft(GameBase):
def __init__(self, overlay):
self.overlay = overlay
self.config = UserConfigs()
super().__init__(overlay)
self.mode = str(overlay.emitter_use.get())
self.run_target = int(overlay.energy_use.get())