Add some useful forcing options
[naja.git] / naja / widgets / board.py
index 32fb5af8c52a3849e110c55a9eb90a5ee9caa24c..b2a93fa8e0baa6a5fffa5cc3ba9b1b62e9ccac7e 100644 (file)
@@ -62,6 +62,10 @@ class BoardWidget(Widget):
             idx = 0
         self.update_card_pos(moves[idx])
 
+    def force_skip_animation(self):
+        for tile in self._tiles:
+            tile.animation = 0
+
     def handle_event(self, ev):
         if self.state.gameboard.player_mode == ACT:
             return super(BoardWidget, self).handle_event(ev)