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

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

src/w/o/worldofciv-HEAD/Assets/Python/Revolution/Gameready/Revolution.py   World of Civilization ( WoC )(Download)
                            RevUtils.clearOutCity( pCity, pPlayer, pRevPlayer )
 
                        [iWorker,iBestDefender,iCounter,iAttack] = RevUtils.getHandoverUnitTypes( pCity, pRevPlayer, pPlayer )
 
                        RevData.updateCityVal(pCity, 'RevolutionCiv', -1 )
                            if( self.LOG_DEBUG ) : CvUtil.pyPrint("  Revolt - Acquiring %s, pop %d"%(pCity.getName(),pCity.getPopulation()))
 
                            [iWorker,iBestDefender,iCounter,iAttack] = RevUtils.getHandoverUnitTypes( pCity, joinPlayer, joinPlayer )
 
                            RevData.updateCityVal(pCity, 'RevolutionCiv', -1 )
                if( self.LOG_DEBUG ) : CvUtil.pyPrint("  Revolt - Acquiring %s"%(pCity.getName()))
 
                [iWorker,iBestDefender,iCounter,iAttack] = RevUtils.getHandoverUnitTypes( pCity, joinPlayer, joinPlayer )
 
                RevData.updateCityVal(pCity, 'RevolutionCiv', -1 )
 
            spawnableUnits = RevUtils.getUprisingUnitTypes( pCity, pRevPlayer, bIsJoinWar )
            [iWorker,iBestDefender,iCounter,iAttack] = RevUtils.getHandoverUnitTypes( pCity, pRevPlayer, pPlayer )
 
            if( len(spawnableUnits) < 1 ) :

src/w/o/worldofciv-HEAD/Assets/Python/Revolution/RevEvents.py   World of Civilization ( WoC )(Download)
                iy = pCity.getY()
 
                [iWorker,iBestDefender,iCounter,iAttack] = RevUtils.getHandoverUnitTypes( pCity, newOwner, newOwner )
 
                newUnitList = list()