예제 #1
0
 def moveMove(self, ncards, to_stack, frames=-1, shadow=-1):
     if to_stack is not self.game.s.foundations[0]:
         self._dropPairMove(ncards, to_stack, frames=-1, shadow=shadow)
     else:
         ReserveStack.moveMove(self,
                               ncards,
                               to_stack,
                               frames=frames,
                               shadow=shadow)
예제 #2
0
파일: pegged.py 프로젝트: joeraz/PySolFC
    def moveMove(self, ncards, to_stack, frames=-1, shadow=-1):
        if type(to_stack) is Pegged_Foundation:
            return ReserveStack.moveMove(self, ncards, to_stack, frames=frames,
                                         shadow=shadow)

        other_stack = to_stack._getMiddleStack(self)
        old_state = self.game.enterState(self.game.S_FILL)
        f = self.game.s.foundations[0]
        self.game.moveMove(ncards, self, to_stack, frames=0)
        self.game.playSample("drop", priority=200)
        self.game.moveMove(ncards, other_stack, f, frames=-1, shadow=shadow)
        self.game.leaveState(old_state)
        self.fillStack()
        other_stack.fillStack()
예제 #3
0
파일: camelot.py 프로젝트: jimsize/PySolFC
 def moveMove(self, ncards, to_stack, frames=-1, shadow=-1):
     if to_stack is not self.game.s.foundations[0]:
         self._dropPairMove(ncards, to_stack, frames=-1, shadow=shadow)
     else:
         ReserveStack.moveMove(
             self, ncards, to_stack, frames=frames, shadow=shadow)