Beispiel #1
0
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;

}
Beispiel #2
0
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;

}