gameboy_worlds.emulation.hamtaro.trackers

 1from gameboy_worlds.emulation.hamtaro.base_metrics import HamtaroCoreMetrics
 2from gameboy_worlds.emulation.tracker import StateTracker
 3
 4
 5class HamtaroTracker(StateTracker):
 6    """Minimal tracker scaffold for Hamtaro variants."""
 7
 8    def start(self):
 9        super().start()
10        self.metric_classes.extend([HamtaroCoreMetrics])
class HamtaroTracker(gameboy_worlds.emulation.tracker.StateTracker):
 6class HamtaroTracker(StateTracker):
 7    """Minimal tracker scaffold for Hamtaro variants."""
 8
 9    def start(self):
10        super().start()
11        self.metric_classes.extend([HamtaroCoreMetrics])

Minimal tracker scaffold for Hamtaro variants.

def start(self):
 9    def start(self):
10        super().start()
11        self.metric_classes.extend([HamtaroCoreMetrics])

Sets up the metrics for the tracker by creating the list self.metric_classes

Child classes must FIRST call super().start() and THEN set up their own metric classes.