Ignore:
Timestamp:
05/01/2009 07:12:38 PM (3 years ago)
Author:
guyru
Message:

Basic statisitics class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MainFrame.cpp

    r191 r193  
    9595        config_file_str = config_file.utf8_str(); 
    9696        m_config = new configuration::Configuration(config_file_str); 
     97        m_stats = new statistics::Statistics(m_config); 
    9798 
    9899        m_evt_handler = new MainFrameEvtHandler(this); 
     
    570571        m_skiproll = true; 
    571572 
     573        if (m_numofplaysleft == 13) 
     574                m_stats->game_started(); 
     575 
    572576        //fill the dice array with the old values 
    573577        dice[0]=m_score_dice.GetDice(1); 
     
    980984        wxMessageBox(tempstr, wxT("Game Ended"), wxOK | wxICON_INFORMATION, this); 
    981985 
     986        m_stats->game_finished(lowerscore+upperscore); 
     987 
    982988        //submit to high score 
    983989        HighScoreHandler(lowerscore+upperscore); 
     
    13321338MainFrame::~MainFrame() { 
    13331339        // free pointers 
     1340        delete m_stats; 
    13341341        delete m_config; 
    13351342        delete m_evt_handler; 
Note: See TracChangeset for help on using the changeset viewer.