Update of /cvsroot/gcblue/gcb_wx/src/scriptinterface
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv32056/src/scriptinterface
Modified Files:
tcFlightPortInterface.cpp
Log Message:
Index: tcFlightPortInterface.cpp
===================================================================
RCS file: /cvsroot/gcblue/gcb_wx/src/scriptinterface/tcFlightPortInterface.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** tcFlightPortInterface.cpp 13 Dec 2006 02:10:59 -0000 1.14
--- tcFlightPortInterface.cpp 15 Dec 2006 03:38:49 -0000 1.15
***************
*** 38,41 ****
--- 38,42 ----
#include "tcSoundConsole.h"
#include "ai/tcMissionManager.h"
+ #include "ai/tcAttackMission.h"
#include "ai/tcCAPMission.h"
***************
*** 74,77 ****
--- 75,79 ----
.def("LaunchID", &tcFlightPortInterface::LaunchID)
.def("SetDestination", &tcFlightPortInterface::SetDestination)
+ .def("AddAttackMission", &tcFlightPortInterface::AddAttackMission)
.def("AddCAPMission", &tcFlightPortInterface::AddCAPMission)
.def("GetLocalObj",&tcFlightPortInterface::GetLocalObj)
***************
*** 86,89 ****
--- 88,109 ----
+ void tcFlightPortInterface::AddAttackMission(long targetId)
+ {
+ if (flightport == 0) return;
+
+ tcMissionManager* missionManager = flightport->GetOrCreateMissionManager();
+
+ tcAttackMission* attack = new tcAttackMission();
+ attack->SetTarget(targetId);
+
+ missionManager->AddMission(attack);
+
+ //tcMapMissionObject* missionObj = new tcMapMissionObject(flightport->parent->mnID, cap->GetId());
+ //missionObj->SetInteractive(true);
+
+ //overlay->AddMapObject(missionObj);
+ }
+
+
void tcFlightPortInterface::AddCAPMission(float lon_rad, float lat_rad)
{
|