A quite common operation is the creation of a card deck. The deck will
initially be represented by an open stack (see TMCG_OpenStack) called
deck. Every player creates his own deck which consists of 52 different
open cards in our example.
TMCG_OpenStack<VTMF_Card> deck;
for (size_t type = 0; type < 52; type++)
{
VTMF_Card c;
tmcg->TMCG_CreateOpenCard(c, vtmf, type);
deck.push(type, c);
}
|