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