[Gcblue-commits] gcb_wx/include/scriptinterface tcSubInterface.h,NONE,1.1 tcPlatformInterface.h,1.25
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2004-11-23 23:32:32
|
Update of /cvsroot/gcblue/gcb_wx/include/scriptinterface In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29552/include/scriptinterface Modified Files: tcPlatformInterface.h tcSimPythonInterface.h Added Files: tcSubInterface.h Log Message: Text message "message center" GUI screen Index: tcPlatformInterface.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/scriptinterface/tcPlatformInterface.h,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** tcPlatformInterface.h 3 Nov 2004 16:36:42 -0000 1.25 --- tcPlatformInterface.h 23 Nov 2004 23:30:46 -0000 1.26 *************** *** 28,31 **** --- 28,32 ---- #include "tcPlatformObject.h" #include "tcSensorMap.h" + #include "tcSubInterface.h" #include <boost/python.hpp> *************** *** 160,163 **** --- 161,169 ---- return (mpPlatformObj->mnModelType == MTYPE_HELO); } + bool IsSub() + { + return (mpPlatformObj->mnModelType == MTYPE_SUBMARINE); + } + tcSubInterface GetSubInterface(); // script variables --- NEW FILE: tcSubInterface.h --- /* @file tcSubInterface.h ** ** Copyright (C) 2004 Dewitt Colclough (de...@tw...) ** All rights reserved. ** This file is part of the Global Conflict Blue (GCB) program. ** GCB is free software; you can redistribute it and/or modify ** it under the terms of version 2 of the GNU General Public License as ** published by the Free Software Foundation. ** GCB is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ** GNU General Public License for more details. ** You should have received a copy of the GNU General Public License ** along with GCB; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef __tcSubInterface_h__ #define __tcSubInterface_h__ #if _MSC_VER > 1000 #pragma once #endif class tcMessageInterface; class tcPlatformObject; class tcSubObject; class tcSimState; class tcSound; class tcSoundConsole; class tcCommandQueue; namespace ScriptInterface { /** * Interface class for submarine vehicle interface. */ class tcSubInterface { public: float GetMaxDepth() const; void GoToPeriscopeDepth(); bool IsAtPeriscopeDepth(); bool IsPeriscopeRaised() const; bool IsRadarMastRaised() const; bool IsValid() const; void LowerPeriscope(); void LowerRadarMast(); void RaisePeriscope(); void RaiseRadarMast(); tcSubInterface(); tcSubInterface(tcPlatformObject* obj); ~tcSubInterface(); private: static tcSound* sound; static tcSimState* simState; static tcMessageInterface* messageInterface; tcSubObject* subObj; }; } #endif Index: tcSimPythonInterface.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/scriptinterface/tcSimPythonInterface.h,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** tcSimPythonInterface.h 1 Sep 2004 02:55:36 -0000 1.15 --- tcSimPythonInterface.h 23 Nov 2004 23:30:47 -0000 1.16 *************** *** 32,35 **** --- 32,36 ---- #include "tcPythonInterface.h" #include "tcPlatformObject.h" + #include "tcSubInterface.h" #include "tcTrackInterface.h" #include "tcPlatformInterface.h" *************** *** 129,132 **** --- 130,134 ---- object PanelInterfaceType; object PanelInterface; + object SubInterfaceType; object TrackInterfaceType; object TrackInterface; |