[Gcblue-commits] gcb_wx/src/scriptinterface tcScenarioInterface.cpp,1.10,1.11
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2004-06-24 21:35:49
|
Update of /cvsroot/gcblue/gcb_wx/src/scriptinterface In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23738/src/scriptinterface Modified Files: tcScenarioInterface.cpp Log Message: Index: tcScenarioInterface.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/scriptinterface/tcScenarioInterface.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** tcScenarioInterface.cpp 27 Apr 2004 22:18:52 -0000 1.10 --- tcScenarioInterface.cpp 24 Jun 2004 21:35:40 -0000 1.11 *************** *** 156,159 **** --- 156,160 ---- // text console and map events .def("ChangeMapView",&tcScenarioInterface::ChangeMapView) + .def("ChangeMapTheater",&tcScenarioInterface::ChangeMapTheater) .def("ConsoleText",&tcScenarioInterface::ConsoleText) .def("MapText",&tcScenarioInterface::MapText) *************** *** 464,467 **** --- 465,483 ---- // text console and map events + /** + * Changes tactical map theater. The theater is the high resolution view + * area that is accessible from the tactical map. + * + * @param lon_deg longitude in deg for center of new theater + * @param lat_deg latitude in deg for center of new theater + */ + void tcScenarioInterface::ChangeMapTheater(double lon_deg, double lat_deg) + { + wxASSERT(director); + + // tcMapViewEvent with lonSpan_deg = 0 is used for theater change + director->AddEvent(new tcMapViewEvent(eventTime, + lon_deg, lat_deg, 0)); + } /** *************** *** 474,480 **** { wxASSERT(director); ! tcMapView *mapView = director->GetMapView(); ! wxASSERT(mapView); ! director->AddEvent(new tcMapViewEvent(mapView, eventTime, lon_deg, lat_deg, lonSpan_deg)); } --- 490,495 ---- { wxASSERT(director); ! ! director->AddEvent(new tcMapViewEvent(eventTime, lon_deg, lat_deg, lonSpan_deg)); } *************** *** 483,487 **** { wxASSERT(director); ! director->AddEvent(new tcConsoleTextEvent(text,eventTime)); } --- 498,502 ---- { wxASSERT(director); ! director->AddEvent(new tcConsoleTextEvent(text, eventTime)); } *************** *** 490,497 **** { wxASSERT(director); - tcMapView *mapView = director->GetMapView(); - wxASSERT(mapView); ! director->AddEvent(new tcMapTextEvent(mapView,text,eventTime,eventTime+duration, lon_deg, lat_deg, effect)); } --- 505,510 ---- { wxASSERT(director); ! director->AddEvent(new tcMapTextEvent(text, eventTime, eventTime+duration, lon_deg, lat_deg, effect)); } |