182 |
|
|
183 |
|
|
184 |
PARAGUI_CALLBACK(UIScreen_Main::handle_next_turn) { |
PARAGUI_CALLBACK(UIScreen_Main::handle_next_turn) { |
|
|
|
|
|
|
|
char b[4]; |
|
185 |
char str[10] = "Turn "; |
char str[10] = "Turn "; |
186 |
|
|
187 |
status_label->SetText("Processing Turn..."); |
status_label->SetText("Processing Turn..."); |
188 |
turnmgr->NextTurn(); |
turnmgr->NextTurn(); |
189 |
status_label->SetText("Turn Finished..."); |
status_label->SetText("Turn Finished..."); |
190 |
|
|
191 |
strcat(str, gcvt(turnmgr->GetTurn(), 3, b)); |
strcat( str, rm->IntToChar( turnmgr->GetTurn() ).c_str() ); |
192 |
|
|
193 |
num_turns->SetText(str); |
num_turns->SetText(str); |
194 |
return true; |
return true; |
245 |
|
|
246 |
map_window->DrawMap(); |
map_window->DrawMap(); |
247 |
|
|
|
// run the main loop |
|
|
//for(int i=0; i<10; i++) { |
|
|
// a_pod->Move(); |
|
|
// another_pod->Misn(0)->Exe(); |
|
|
// another_pod2->Misn(0)->Exe(); |
|
|
// another_pod3->Misn(0)->Exe(); |
|
|
// } |
|
|
|
|
|
|
|
|
//status_label->SetText("Football Finished."); |
|
|
|
|
|
//delete a_pod; |
|
|
//delete another_pod; |
|
|
//delete another_pod2; |
|
|
//delete another_pod3; |
|
|
|
|
|
//map_window->DrawMap(); |
|
|
|
|
248 |
return true; |
return true; |
249 |
|
|
250 |
} |
} |