Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/w/o/worldofciv-HEAD/Assets/Python/Revolution/Gameready/Revolution.py   World of Civilization ( WoC )(Download)
                    if( self.LOG_DEBUG ) : CvUtil.pyPrint("  Revolt - Checking around %s for other rebellion"%(pCity.getName()))
 
                    for [radius,plotI] in RevUtils.plotGenerator( pCity.plot(), 6 ) :
                        for rebelID in rebelIDList :
                            if( plotI.getNumDefenders(rebelID) > 0 ) :
                        maxCult = 0
                        maxCultRad = 5
                        for [radius,plotI] in RevUtils.plotGenerator( pCity.plot(), 4 ) :
 
                            if( not pRevPlayer == None and radius > maxCultRad ) :

src/w/o/worldofciv-HEAD/Assets/Python/Revolution/Gameready/BarbarianCiv.py   World of Civilization ( WoC )(Download)
 
            # Change nearby barb units
            for [radius,pPlot] in RevUtils.plotGenerator( pCity.plot(), 3 ) :
                unitTypes = list()
                barbUnits = RevUtils.getPlayerUnits( pPlot.getX(), pPlot.getY(), gc.getBARBARIAN_PLAYER(), domain = DomainTypes.DOMAIN_LAND )