Logo Search packages:      
Sourcecode: vdr-plugin-spider version File versions

bool Pile::selectionMatchesTo ( const Pile other,
bool  matchSuit = false 
) const

Matches the selection to an other pile?

Definition at line 256 of file heap.c.

References Heap::empty(), Card::rank, Card::suit, and Heap::top().

Referenced by Tableau::autoMove(), Tableau::autoMoveLeft(), and Tableau::autoMoveRight().

{
  return (!other->empty() &&
          (other->top().rank == top().rank + currentSelected) &&
          (other->top().suit == top().suit || !matchSuit));
}


Generated by  Doxygen 1.6.0   Back to index