Esempio n. 1
0
 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)
Esempio n. 2
0
 def performAction(self, action):
     GameEnvironment.performAction(self, action)
     if action is not None:
         self._drawState()
         pygame.time.wait(self.actionDelay)
Esempio n. 3
0
 def performAction(self, action):
     GameEnvironment.performAction(self, action)
     if action is not None:
         self._drawState()
         pygame.time.wait(self.actionDelay)