Ejemplo n.º 1
0
	def onGameLoad( self, argsList ) :
		# Init things which require a game object or other game data to exist

		if( not SdToolKitCustom.sdObjectExists( "AIAutoPlay", game ) ) :
			SdToolKitCustom.sdObjectInit( "AIAutoPlay", game, {} )
			SdToolKitCustom.sdObjectSetVal( "AIAutoPlay", game, "bCanCancelAuto", True )
		elif( SdToolKitCustom.sdObjectGetVal( "AIAutoPlay", game, "bCanCancelAuto" ) == None ) :
			SdToolKitCustom.sdObjectSetVal( "AIAutoPlay", game, "bCanCancelAuto", True )
Ejemplo n.º 2
0
	def onGameLoad( self, argsList ) :
		# Init things which require a game object or other game data to exist

		if( not SdToolKitCustom.sdObjectExists( "AIAutoPlay", game ) ) :
			SdToolKitCustom.sdObjectInit( "AIAutoPlay", game, {} )
			SdToolKitCustom.sdObjectSetVal( "AIAutoPlay", game, "bCanCancelAuto", True )
		elif( SdToolKitCustom.sdObjectGetVal( "AIAutoPlay", game, "bCanCancelAuto" ) == None ) :
			SdToolKitCustom.sdObjectSetVal( "AIAutoPlay", game, "bCanCancelAuto", True )
		for idx in range(0,gc.getMAX_CIV_PLAYERS()) :
			playerI = gc.getPlayer(idx)
			if(playerI.isHumanDisabled()):
				if(not game.isForcedAIAutoPlay(idx)):
					game.setAIAutoPlay(idx, 1)
Ejemplo n.º 3
0
    def onGameLoad(self, argsList):
        # Init things which require a game object or other game data to exist

        if (not SdToolKitCustom.sdObjectExists("AIAutoPlay", game)):
            SdToolKitCustom.sdObjectInit("AIAutoPlay", game, {})
            SdToolKitCustom.sdObjectSetVal("AIAutoPlay", game,
                                           "bCanCancelAuto", True)
        elif (SdToolKitCustom.sdObjectGetVal("AIAutoPlay", game,
                                             "bCanCancelAuto") == None):
            SdToolKitCustom.sdObjectSetVal("AIAutoPlay", game,
                                           "bCanCancelAuto", True)
        for idx in range(0, gc.getMAX_CIV_PLAYERS()):
            playerI = gc.getPlayer(idx)
            if (playerI.isHumanDisabled()):
                if (not game.isForcedAIAutoPlay(idx)):
                    game.setAIAutoPlay(idx, 1)
Ejemplo n.º 4
0
def revObjectInit(object, VarDictionary={}):
    return SdToolKitCustom.sdObjectInit('Revolution', object, VarDictionary)
Ejemplo n.º 5
0
def revObjectInit (object, VarDictionary = {}):
	return SdToolKitCustom.sdObjectInit( 'Revolution', object, VarDictionary )