Exemple #1
0
    def __init__(self, countlimit):

        # for control battle count
        self.countLimit = countlimit
        # current battle count
        self._currentCount = 0

        # engine initial
        self.registerengine = registerengine.RegisterEngine()
        self.imageengine = imageengine.ImageEngine(self.registerengine)
        self.mouseengine = mouseengine.MouseEngine(self.registerengine)

        return
Exemple #2
0
    def __init__(self, countlimit):
        # engine initial
        self.registerengine = registerengine.RegisterEngine()
        self.imageengine = imageengine.ImageEngine(self.registerengine)
        self.mouseengine = mouseengine.MouseEngine(self.registerengine)

        # master or slave or self mode
        # 1-master
        # 2-slave
        # 3-self
        self.masterMode = self.registerengine.mastermode
        # for control battle count
        self.countLimit = countlimit
        # current battle count
        self._currentCount = 0
        return