def performAction(self, ACTION=None, action=None): if ACTION is None: self.setState(self.state) GameEnvironment.performAction(self, action) if action is not None: self._drawState() pygame.time.wait(self.actionDelay) self.eventHistory.append(action) self.state = self.getState() else: GameEnvironment.performAction(self, ACTION)
def performAction(self, action): GameEnvironment.performAction(self, action) if action is not None: self._drawState() pygame.time.wait(self.actionDelay)
def performAction(self, action): GameEnvironment.performAction(self, action) if action is not None: self._drawState() pygame.time.wait(self.actionDelay)