Boolean Trick::hasTen() { for ( CArray<PlayersCard*>::iterator i = book->BeginIterator() ; i != book->EndIterator(); i++) { Card *tmp = (*i)->c; if ( tmp->Face() == Card::ten ) { return true; } } return false; }
Boolean Trick::hasJack() { for ( CArray<PlayersCard*>::iterator i = book->BeginIterator() ; i != book->EndIterator(); i++) { Card *tmp = (*i)->c; if ( tmp->Suit() == gManager->tbl->trump && tmp->Face() == Card::jack ) { return true; } } return false; }