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

void Game::startGame (  )  [private]

give cards to the player and begin a new gameinfo

Definition at line 81 of file game.cpp.

References postEvent(), and CardList::randomize().

    unsigned int i = 0;
    CardList *playercards[PLAYERS];

    for( i=0; i<PLAYERS; i++)
      playercards[i]=new CardList();
    for( i=0; i<CARD_CNT; i++)

    for( i=0;i<PLAYERS;i++)
        m_players[i]->setCards( playercards[i] );

    postEvent( GameStarted );
    //emit gameStarted();

Generated by  Doxygen 1.6.0   Back to index