コード例 #1
0
ファイル: BagItem.py プロジェクト: sadnecc/pb
 def __init__(self, scanItems=False):
     Base.__init__(self)
     self.scanItems = scanItems
     if scanItems:
         t = ItemThread()
         t.setDaemon(True)
         t.start()
コード例 #2
0
ファイル: mysql.py プロジェクト: sadnecc/pb
 def __init__(self):
     Base.__init__(self)
     self.client = pymysql.connect(host=self.host,
                                   user=self.user,
                                   password=self.passwod,
                                   database=self.dbanme,
                                   port=self.port,
                                   charset="utf8mb4")
コード例 #3
0
ファイル: NpcNameFinder.py プロジェクト: sadnecc/pb
 def __init__(self, needCpture=True):
     Base.__init__(self)
     print(clr.AddReference("lib\\NameFinder\\NpcNameFinder"))
     import NpcNameFinder
     self.dll = NpcNameFinder.Main()
     self.captur = False
     if needCpture:
         self.dll.StartScreenShotThread()
         self.captur = True
コード例 #4
0
ファイル: ChoicePathFinding.py プロジェクト: sadnecc/pb
 def __init__(self,
              control: Control,
              player: Player,
              move_type=0,
              checkMount=True,
              type='p'):
     Base.__init__(self)
     self.player = player
     self.control = control
     self.move_type = move_type
     self.playerName = self.player.getName()
     self.checkMount = checkMount
     self.type = type
     self.hander_reapir = open(
         "tmp/logs/" + self.getFormatTime(False) +
         "_choice_pathfinding.log", 'a+')
コード例 #5
0
 def __init__(self, control: Control):
     Base.__init__(self)
     self.control = control
     from lib.spell.CastingHander import CastingHander
     self.castingHander = CastingHander()
コード例 #6
0
 def __init__(self, control: Control):
     Base.__init__(self)
     self.control = control
コード例 #7
0
ファイル: PathRecorder.py プロジェクト: sadnecc/pb
 def __init__(self, player: Player, control: Control, filename=None, delay=4):
     Base.__init__(self)
     self.player = player
     self.control = control
     self.filename = SysConfig.record_path + filename if filename is not None else SysConfig.record_path + "DynamicConfig.py"
     self.delay = delay
コード例 #8
0
 def __init__(self, bagId):
     Base.__init__(self)
     self.id = bagId
コード例 #9
0
ファイル: Control.py プロジェクト: sadnecc/pb
 def __init__(self, driver):
     Base.__init__(self)
     self.driver = driver
コード例 #10
0
 def __init__(self):
     Base.__init__(self)
     self.handler = open(
         "tmp/logs/" + self.getFormatTime(False) + "_ChatWatcher.log", 'a+')
コード例 #11
0
ファイル: Unit.py プロジェクト: sadnecc/pb
 def __init__(self):
     Base.__init__(self)
コード例 #12
0
ファイル: Point.py プロジェクト: sadnecc/pb
 def __init__(self, x, y):
     Base.__init__(self)
     self.x = x
     self.y = y
コード例 #13
0
ファイル: NvBase.py プロジェクト: sadnecc/pb
 def __init__(self):
     Base.__init__(self)
     self.hander = open("tmp/logs/" + self.getFormatTime(False) + "_navbase.log", 'a+')
コード例 #14
0
ファイル: CastingHander.py プロジェクト: sadnecc/pb
 def __init__(self):
     Base.__init__(self)
     self.player = Player()
コード例 #15
0
ファイル: BaseBot.py プロジェクト: sadnecc/pb
 def __init__(self, control: Control):
     Base.__init__(self)
     self.control = control
     self.handler = open(
         "tmp/logs/" + self.getFormatTime(False) + "_basebot.log", 'a+')
コード例 #16
0
ファイル: EnemyFinder.py プロジェクト: sadnecc/pb
 def __init__(self, player: Player, control: Control):
     Base.__init__(self)
     self.player = player
     self.control = control
     self.spell = Spell(control)
     self.move_count = 0