[Gcblue-commits] gcb_wx/include/scriptinterface tcPlatformInterface.h, 1.54, 1.55
Status: Alpha
Brought to you by:
ddcforge
From: Dewitt C. <ddc...@us...> - 2006-09-16 14:01:26
|
Update of /cvsroot/gcblue/gcb_wx/include/scriptinterface In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv23922/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.54 retrieving revision 1.55 diff -C2 -d -r1.54 -r1.55 *** tcPlatformInterface.h 5 Sep 2006 01:04:24 -0000 1.54 --- tcPlatformInterface.h 16 Sep 2006 14:01:24 -0000 1.55 *************** *** 164,186 **** /// get database class name of platform std::string GetPlatformClass(); /// returns true if platform is a surface platform ! bool IsSurface() {return (mpPlatformObj->mnModelType == MTYPE_SURFACE);} /// returns true if platform is an air platform ! bool IsAir() ! { ! UINT32 nModelType = mpPlatformObj->mnModelType; ! return (nModelType == MTYPE_FIXEDWING)||(nModelType == MTYPE_FIXEDWINGX) ! ||(nModelType == MTYPE_AIR)||(nModelType == MTYPE_HELO); ! } /// returns true if platform is a helo ! bool IsHelo() ! { ! return (mpPlatformObj->mnModelType == MTYPE_HELO); ! } /// returns true if platform is a submarine ! bool IsSub() ! { ! return (mpPlatformObj->mnModelType == MTYPE_SUBMARINE); ! } /// returns a sub interface object, @see scriptinterface::tcSubInterface tcSubInterface GetSubInterface(); --- 164,180 ---- /// get database class name of platform std::string GetPlatformClass(); + /// returns true if platform is a surface platform ! bool IsSurface() const; /// returns true if platform is an air platform ! bool IsAir() const; /// returns true if platform is a helo ! bool IsHelo() const; ! ! bool IsFixed() const; ! /// returns true if platform is a submarine ! bool IsSub() const; ! /// returns a sub interface object, @see scriptinterface::tcSubInterface tcSubInterface GetSubInterface(); |