- Timestamp:
- 05/01/2009 07:12:38 PM (3 years ago)
- Location:
- trunk/src
- Files:
-
- 2 added
- 3 edited
-
MainFrame.cpp (modified) (4 diffs)
-
MainFrame.h (modified) (3 diffs)
-
Makefile.am (modified) (2 diffs)
-
statistics.cpp (added)
-
statistics.h (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/MainFrame.cpp
r191 r193 95 95 config_file_str = config_file.utf8_str(); 96 96 m_config = new configuration::Configuration(config_file_str); 97 m_stats = new statistics::Statistics(m_config); 97 98 98 99 m_evt_handler = new MainFrameEvtHandler(this); … … 570 571 m_skiproll = true; 571 572 573 if (m_numofplaysleft == 13) 574 m_stats->game_started(); 575 572 576 //fill the dice array with the old values 573 577 dice[0]=m_score_dice.GetDice(1); … … 980 984 wxMessageBox(tempstr, wxT("Game Ended"), wxOK | wxICON_INFORMATION, this); 981 985 986 m_stats->game_finished(lowerscore+upperscore); 987 982 988 //submit to high score 983 989 HighScoreHandler(lowerscore+upperscore); … … 1332 1338 MainFrame::~MainFrame() { 1333 1339 // free pointers 1340 delete m_stats; 1334 1341 delete m_config; 1335 1342 delete m_evt_handler; -
trunk/src/MainFrame.h
r180 r193 1 // $Header$2 1 /*************************************************************************** 3 * Copyright (C) 2006-200 8by Guy Rutenberg *2 * Copyright (C) 2006-2009 by Guy Rutenberg * 4 3 * guyrutenberg@gmail.com * 5 4 * * … … 30 29 #include "ScoreDice.h" 31 30 #include "configuration.h" 31 #include "statistics.h" 32 32 33 33 namespace main_frame { … … 77 77 78 78 configuration::Configuration *m_config; 79 statistics::Statistics *m_stats; 79 80 80 81 private: -
trunk/src/Makefile.am
r191 r193 15 15 settings_dialog.h \ 16 16 ScoreDice.cpp \ 17 statistics.cpp \ 17 18 wxDynamicBitmap.cpp \ 18 19 one.xpm \ … … 32 33 MainFrame.h \ 33 34 ScoreDice.h \ 35 statistics.h \ 34 36 wxDynamicBitmap.h \ 35 37 ../openyahtzee.vcproj \
Note: See TracChangeset
for help on using the changeset viewer.
