Logo Search packages:      
Sourcecode: schafkopf version File versions  Download package

void CardList::init (  ) 

initialize this card list with a default card deck of 32 cards. The CardList does now own all elements, i.e. they are deleted on destruction.

Definition at line 45 of file cardlist.cpp.

Referenced by GameInfo::laufende(), and randomize().

{
    setAutoDelete( true );
    clear();

    for( int i = 0; i < CARD_CNT ; i += 4  )
        for( int z = Card::EICHEL; z <= Card::SCHELLEN; z++ )
            append( new Card( (Card::EType)(i+1), (Card::EColor)z ) );
}


Generated by  Doxygen 1.6.0   Back to index