Update of /cvsroot/gcblue/gcb_wx/include/scriptinterface
In directory sc8-pr-cvs1:/tmp/cvs-serv11677/include/scriptinterface
Modified Files:
tcPlatformInterface.h
Log Message:
Index: tcPlatformInterface.h
===================================================================
RCS file: /cvsroot/gcblue/gcb_wx/include/scriptinterface/tcPlatformInterface.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** tcPlatformInterface.h 5 Jan 2004 02:48:02 -0000 1.10
--- tcPlatformInterface.h 8 Jan 2004 23:54:27 -0000 1.11
***************
*** 61,64 ****
--- 61,75 ----
};
+ class tcTrackList
+ {
+ public:
+ std::vector<tcTrack> track;
+
+ tcTrack GetTrack(int n) {return track[n];}
+ int Size() {return (int)track.size();}
+
+ tcTrackList() {track.clear();}
+ };
+
/**
* Interface class for Python-unit interface.
***************
*** 82,85 ****
--- 93,97 ----
float GetMaxSpeed() {return mpPlatformObj->mpDBObject->mfMaxSpeed_kts;}
float GetHeading() {return C_180OVERPI*mpPlatformObj->mcKin.mfHeading_rad;}
+ float GetHeadingRad() {return mpPlatformObj->mcKin.mfHeading_rad;}
float GetTerrainElevation();
bool HasThrottle();
***************
*** 154,158 ****
tcTrack GetClosestSurfaceTrack(float afMaxRange_km, UINT8 anAffiliation);
tcTrack GetClosestMissileTrack(float afMaxRange_km, UINT8 anAffiliation);
! float GetInterceptHeadingToTrack(tcTrack track);
float SetHeadingToInterceptTrack(tcTrack track);
tcTrack GetTrackById(long id);
--- 166,172 ----
tcTrack GetClosestSurfaceTrack(float afMaxRange_km, UINT8 anAffiliation);
tcTrack GetClosestMissileTrack(float afMaxRange_km, UINT8 anAffiliation);
! tcTrackList GetTrackList(int anClassMask, float afMaxRange_km, UINT8 anAffiliation);
! float GetInterceptHeadingToTrack(const tcTrack& track);
! float GetRangeToTrack(const tcTrack& track);
float SetHeadingToInterceptTrack(tcTrack track);
tcTrack GetTrackById(long id);
|