16 |
/* along with this program; if not, write to the Free Software */ |
/* along with this program; if not, write to the Free Software */ |
17 |
/* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ |
/* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ |
18 |
|
|
|
/* $Id$ */ |
|
|
|
|
19 |
#include <stdlib.h> |
#include <stdlib.h> |
20 |
#include <stdio.h> |
#include <stdio.h> |
21 |
#include <iostream> |
#include <iostream> |
218 |
else |
else |
219 |
{ |
{ |
220 |
wxCommandEvent event; |
wxCommandEvent event; |
221 |
OnMenuConfGameDic(event); |
OnMenuConfGameDic(event); |
222 |
m_game = NULL; |
m_game = NULL; |
223 |
} |
} |
224 |
m_game = GameFactory::Instance()->createTraining(m_dic); |
m_game = GameFactory::Instance()->createTraining(m_dic); |
241 |
GameFactory::Instance()->releaseGame(*m_game); |
GameFactory::Instance()->releaseGame(*m_game); |
242 |
m_game = NULL; |
m_game = NULL; |
243 |
} |
} |
244 |
|
|
245 |
if (m_dic) |
if (m_dic) |
246 |
{ |
{ |
247 |
Dic_destroy(m_dic); |
Dic_destroy(m_dic); |
959 |
auxframes_ptr[ ID_Frame_Benj ] = new BenjFrame (this, *m_game, results); |
auxframes_ptr[ ID_Frame_Benj ] = new BenjFrame (this, *m_game, results); |
960 |
auxframes_ptr[ ID_Frame_Bag ] = new BagFrame (this, *m_game); |
auxframes_ptr[ ID_Frame_Bag ] = new BagFrame (this, *m_game); |
961 |
auxframes_ptr[ ID_Frame_Board ] = new BoardFrame (this, *m_game); |
auxframes_ptr[ ID_Frame_Board ] = new BoardFrame (this, *m_game); |
962 |
|
|
963 |
for (int i = MIN_FRAME_ID; i < MAX_FRAME_ID; i++) |
for (int i = MIN_FRAME_ID; i < MAX_FRAME_ID; i++) |
964 |
{ |
{ |
965 |
auxframes_ptr[i]->Reload(); |
auxframes_ptr[i]->Reload(); |
996 |
for (int id = 0; id < MAX_FRAME_ID; id++) |
for (int id = 0; id < MAX_FRAME_ID; id++) |
997 |
{ |
{ |
998 |
if (auxframes_ptr[id]) |
if (auxframes_ptr[id]) |
999 |
{ |
{ |
1000 |
// debug("UpdateFrames %d\n",id); |
// debug("UpdateFrames %d\n",id); |
1001 |
auxframes_ptr[id]->Refresh(force); |
auxframes_ptr[id]->Refresh(force); |
1002 |
} |
} |