[Gcblue-commits] gcb_wx/include/scriptinterface tcPlatformInterface.h,1.31,1.32
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-02-18 17:41:45
|
Update of /cvsroot/gcblue/gcb_wx/include/scriptinterface In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1773/include/scriptinterface Modified Files: tcPlatformInterface.h Log Message: Parallel ai update Index: tcPlatformInterface.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/scriptinterface/tcPlatformInterface.h,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** tcPlatformInterface.h 31 Jan 2005 01:32:36 -0000 1.31 --- tcPlatformInterface.h 18 Feb 2005 17:41:36 -0000 1.32 *************** *** 56,59 **** --- 56,64 ---- float maxDepth_m; ///< max depth for subsurface launch int mnLaunchMode; ///< 0 - datum, 1 - handoff + + double sectorCenter; ///< az of center of launch engagement sector in deg + double sectorWidth; ///< width of engagement sector in deg + + bool IsValid() const {return mnLauncher != -1;} }; *************** *** 61,66 **** { public: ! int isActive; // 0 if OFF, 1 if ON ! int type; // 0 radar, 1 ESM, 255 Error, more in the future }; --- 66,73 ---- { public: ! int isActive; ///< 0 if OFF, 1 if ON ! int type; ///< FLAGS: 1 radar, 2 ESM, 4 passive sonar, 8 active sonar, 16 optical, 0 error ! ! bool IsPassive() {return ((type & 0x16) != 0);} }; *************** *** 212,215 **** --- 219,224 ---- bool IsDatumLaunch(int anLauncher) {return mpPlatformObj->mcLauncherState.IsDatumLaunch(anLauncher);} bool GetLauncherInfo(tcLauncherInfo& info, int anLauncher); + /// version for python + tcLauncherInfo GetLauncherInfoByValue(int launcher); /// count of types of weapons accepted by this launcher |