コード例 #1
0
ファイル: main.py プロジェクト: gjacobrobertson/opennero-394n
def Match(team0, team1):
    '''Run a single battle between two population files.'''
    mod = module.getMod()
    mod.load_team(team0, constants.OBJECT_TYPE_TEAM_0)
    mod.load_team(team1, constants.OBJECT_TYPE_TEAM_1)
    mod.set_speedup(100)
    OpenNero.enable_ai()
コード例 #2
0
ファイル: main.py プロジェクト: gjacobrobertson/opennero-394n
def ModMain(mode = ""):
    module.getMod()  # initialize the NERO_Battle module.
    client.ClientMain()