예제 #1
0
 def moveMove(self, ncards, to_stack, frames=-1, shadow=-1):
     OpenStack.moveMove(self, ncards, to_stack, frames, shadow)
     if self.game.base_rank is None and to_stack in self.game.s.foundations:
         old_state = self.game.enterState(self.game.S_FILL)
         self.game.saveStateMove(2 | 16)            # for undo
         self.game.base_rank = to_stack.cards[-1].rank
         self.game.saveStateMove(1 | 16)            # for redo
         self.game.leaveState(old_state)
예제 #2
0
파일: glenwood.py 프로젝트: tuchang/PySolFC
 def moveMove(self, ncards, to_stack, frames=-1, shadow=-1):
     OpenStack.moveMove(self, ncards, to_stack, frames, shadow)
     if self.game.base_rank is None and to_stack in self.game.s.foundations:
         old_state = self.game.enterState(self.game.S_FILL)
         self.game.saveStateMove(2 | 16)  # for undo
         self.game.base_rank = to_stack.cards[-1].rank
         self.game.saveStateMove(1 | 16)  # for redo
         self.game.leaveState(old_state)
예제 #3
0
 def moveMove(self, ncards, to_stack, frames=-1, shadow=-1):
     if to_stack in self.game.s.rows and not to_stack.cards:
         return OpenStack.moveMove(self, ncards, to_stack, frames, shadow)
     return Giza_Reserve.moveMove(self, ncards, to_stack, frames, shadow)
예제 #4
0
파일: pyramid.py 프로젝트: voyageur/PySolFC
 def moveMove(self, ncards, to_stack, frames=-1, shadow=-1):
     if to_stack in self.game.s.rows and not to_stack.cards:
         return OpenStack.moveMove(self, ncards, to_stack, frames, shadow)
     return Giza_Reserve.moveMove(self, ncards, to_stack, frames, shadow)