Exemple #1
0
    /// <summary>
    /// At end of game, remove the last remaining player's penguins, and tally final score
    /// </summary>
    ///
    public void RemoveFinal()
    {
        Debug.Assert(m_numActivePlayers == 1);  // This method should only execute when there's one player left.
        Debug.Assert(CurrentPlayer.IsActive);   // And the CurrentPlayer pointer should be on that last player

        CurrentPlayer.AddFinal(m_refTileMgr);

        UpdateScore();                                     // Final update of scores for final screen

        m_refTileMgr.ExpungeTiles(m_refTileMgr.workTiles); // Destroy all the remaining tiles we just counted
    }