Пример #1
0
    def __init__(self, main):
        super(tool, self).__init__(main)

        self.main = main
        self.mydb = main.mydb
        self.guitools = guitools.guitools(self)
        self.createActions()
        self.rares = elite.rares(self.mydb)
Пример #2
0
    def __init__(self, main):
        super(tool, self).__init__(main)

        self.main = main
        self.mydb = main.mydb
        self.guitools = guitools.guitools(self)
        self.createActions()
        self.rares = elite.rares(self.mydb)
Пример #3
0
                if muted == False: 
                    if myTitle:
                        print("\t__Sell__")
                        myTitle = False
                    for item in oldsystem._raresInSystem:
                        print("\t\tItem: %s" % (item["Name"]))









myrares = elite.rares(mydb)
myroute = elite.route(mydb)

systemList = myrares.getRaresListFitered(maxSunDistance)
print("calc with %d rare systems" % len(systemList))
myRaresRoute = []

startSystem = elite.route(mydb, None, maxDeep, maxJumpDistance, maxHops)
startSystem._availableSystemList = systemList
startSystem.systemID = mydb.getSystemIDbyName(myStartSystem)  # Startsystem
startSystem.initSystem = startSystem
startSystem.calcAllRoutesFromSystem(useSlowModOnStart)


def getBestRouteFromResult(startSystem , useSlowMod=True, maxDeep=None):
    if not maxDeep :maxDeep = startSystem.calcRoutingDeep()
Пример #4
0
    for oldsystem in route:
        if oldsystem._sellDone:
            continue
        dist = mydb.getDistanceFromTo(system.systemID, oldsystem.systemID)
        if dist >= sellDist:
            if oldsystem._raresInSystem:
                oldsystem._sellDone = True
                if muted == False:
                    if myTitle:
                        print("\t__Sell__")
                        myTitle = False
                    for item in oldsystem._raresInSystem:
                        print("\t\tItem: %s" % (item["Name"]))


myrares = elite.rares(mydb)
myroute = elite.route(mydb)

systemList = myrares.getRaresListFitered(maxSunDistance)
print("calc with %d rare systems" % len(systemList))
myRaresRoute = []

startSystem = elite.route(mydb, None, maxDeep, maxJumpDistance, maxHops)
startSystem._availableSystemList = systemList
startSystem.systemID = mydb.getSystemIDbyName(myStartSystem)  # Startsystem
startSystem.initSystem = startSystem
startSystem.calcAllRoutesFromSystem(useSlowModOnStart)


def getBestRouteFromResult(startSystem, useSlowMod=True, maxDeep=None):
    if not maxDeep: maxDeep = startSystem.calcRoutingDeep()