Check if this move can be merged with another move.
(self, other: CommandBase)
| 653 | return False |
| 654 | |
| 655 | def can_merge_with(self, other: CommandBase) -> bool: |
| 656 | """Check if this move can be merged with another move.""" |
| 657 | return (isinstance(other, MoveNodeCommand) and |
| 658 | other.node == self.node and |
| 659 | abs(other.timestamp - self.timestamp) < 1.0) # Within 1 second |
| 660 | |
| 661 | def merge_with(self, other: CommandBase) -> Optional[CommandBase]: |
| 662 | """Merge with another move command.""" |
no outgoing calls