Exemple #1
0
    def __init__(self, args, id, last_known_state, websocket_handler,  mapping_manager: MappingManager,
                 routemanager_name: str, db_wrapper: DbWrapperBase, pogo_window_manager: PogoWindows, walker,
                 mitm_mapper: MitmMapper):
        MITMBase.__init__(self, args, id, last_known_state, websocket_handler,
                          mapping_manager=mapping_manager, routemanager_name=routemanager_name,
                          db_wrapper=db_wrapper, NoOcr=False,
                          mitm_mapper=mitm_mapper, pogoWindowManager=pogo_window_manager, walker=walker)

        self.clear_thread = None
        # 0 => None
        # 1 => clear box
        # 2 => clear quest
        self.clear_thread_task = 0
        self._start_inventory_clear = Event()
        self._delay_add = int(self.get_devicesettings_value("vps_delay", 0))
        self._stop_process_time = 0
        self._clear_quest_counter = 0
        self._rocket: bool = False
        self._level_mode = self._mapping_manager.routemanager_get_level(self._routemanager_name)
        self._ignore_spinned_stops = self._mapping_manager.routemanager_get_settings(self._routemanager_name)\
            .get("ignore_spinned_stops", True)
        self._always_cleanup = self._mapping_manager.routemanager_get_settings(self._routemanager_name)\
            .get("cleanup_every_spin", False)

        self._rotation_waittime = self.get_devicesettings_value('rotation_waittime', 300)
Exemple #2
0
    def __init__(self, args, id, last_known_state, websocket_handler,
                 mapping_manager: MappingManager, routemanager_name: str,
                 db_wrapper: DbWrapperBase, pogo_window_manager: PogoWindows,
                 walker, mitm_mapper: MitmMapper):
        MITMBase.__init__(self,
                          args,
                          id,
                          last_known_state,
                          websocket_handler,
                          mapping_manager=mapping_manager,
                          routemanager_name=routemanager_name,
                          db_wrapper=db_wrapper,
                          NoOcr=False,
                          mitm_mapper=mitm_mapper,
                          pogoWindowManager=pogo_window_manager,
                          walker=walker)

        self.clear_thread = None
        # 0 => None
        # 1 => clear box
        # 2 => clear quest
        self.clear_thread_task = 0
        self._start_inventory_clear = Event()
        self._delay_add = int(self.get_devicesettings_value("vps_delay", 0))
        self._stop_process_time = 0
        self._clear_quest_counter = 0

        self._level_mode = self._mapping_manager.routemanager_get_level(
            self._routemanager_name)
        if self._level_mode:
            logger.info("Starting Level Mode")
        else:
            # initial cleanup old quests
            if not self._init: self.clear_thread_task = 2
Exemple #3
0
 def __init__(self, args, id, last_known_state, websocket_handler,
              route_manager_daytime, route_manager_nighttime, mitm_mapper,
              devicesettings, db_wrapper, timer, pogoWindowManager):
     MITMBase.__init__(self,
                       args,
                       id,
                       last_known_state,
                       websocket_handler,
                       route_manager_daytime,
                       route_manager_nighttime,
                       devicesettings,
                       db_wrapper=db_wrapper,
                       NoOcr=False,
                       timer=timer,
                       mitm_mapper=mitm_mapper,
                       pogoWindowManager=pogoWindowManager)
     self.first_round = True
     self.clear_thread = None
     # 0 => None
     # 1 => clear box
     # 2 => clear quest
     self.clear_thread_task = 0
     self._start_inventory_clear = Event()
     self._delay_add = int(self._devicesettings.get("vps_delay", 0))
     self._stop_process_time = 0
Exemple #4
0
    def __init__(self, args, id, last_known_state, websocket_handler, walker_routemanager,
                 mitm_mapper, devicesettings, db_wrapper, pogoWindowManager, walker):
        MITMBase.__init__(self, args, id, last_known_state, websocket_handler,
                          walker_routemanager, devicesettings, db_wrapper=db_wrapper, NoOcr=True,
                          mitm_mapper=mitm_mapper, pogoWindowManager=pogoWindowManager, walker=walker)

        # TODO: own InjectionSettings class
        self._injection_settings = {}
        self.__update_injection_settings()
Exemple #5
0
    def __init__(self, args, id, last_known_state, websocket_handler, mapping_manager: MappingManager,
                 routemanager_name: str, mitm_mapper: MitmMapper, db_wrapper: DbWrapperBase,
                 pogo_window_manager: PogoWindows, walker):
        MITMBase.__init__(self, args, id, last_known_state, websocket_handler,
                          mapping_manager=mapping_manager, routemanager_name=routemanager_name,
                          db_wrapper=db_wrapper, NoOcr=True,
                          mitm_mapper=mitm_mapper, pogoWindowManager=pogo_window_manager, walker=walker)

        # TODO: own InjectionSettings class
        self._injection_settings = {}
        self.__update_injection_settings()
Exemple #6
0
    def __init__(self, args, id, last_known_state, websocket_handler,
                 route_manager_daytime, route_manager_nighttime, mitm_mapper,
                 devicesettings, db_wrapper, timer):
        MITMBase.__init__(self,
                          args,
                          id,
                          last_known_state,
                          websocket_handler,
                          route_manager_daytime,
                          route_manager_nighttime,
                          devicesettings,
                          db_wrapper=db_wrapper,
                          NoOcr=True,
                          timer=timer,
                          mitm_mapper=mitm_mapper)

        # TODO: own InjectionSettings class
        self._injection_settings = {}
        self.__update_injection_settings()