我们从Python开源项目中,提取了以下18个代码示例,用于说明如何使用game.GameStateData()。
def __init__( self, prevState = None ): """ Generates a new state by copying information from its predecessor. """ if prevState != None: # Initial state self.data = GameStateData(prevState.data) else: self.data = GameStateData()
def __init__( self, prevState = None ): """ Generates a new state by copying information from its predecessor. """ if prevState != None: # Initial state self.data = GameStateData(prevState.data) self.blueTeam = prevState.blueTeam self.redTeam = prevState.redTeam self.data.timeleft = prevState.data.timeleft self.teams = prevState.teams self.agentDistances = prevState.agentDistances else: self.data = GameStateData() self.agentDistances = []
def __init__(self, prevState = None): """ Generates a new state by copying information from its predecessor """ if prevState != None: self.data = GameStateData(prevState.data) else: self.data = GameStateData()