void Zone::getCardsByAbility( Zone &zone, CardInfo::Ability cardAbility ) { for ( std::vector< Card* >::iterator it = cards.begin(); it != cards.end(); ++it ) { if ( ( (*it)->getCardAbility() & cardAbility ) ) { zone.addCard( (*it ) ); } } }
void Zone::getCardsBySuperType( Zone &zone, CardInfo::SuperType superType ) { for ( std::vector< Card* >::iterator it = cards.begin(); it != cards.end(); ++it ) { if ( ( (*it)->getCardSuperType() & superType ) ) { zone.addCard( (*it ) ); } } }