[Gcblue-commits] gcb_wx/include/sim tcSonobuoy.h,NONE,1.1 tcSensorMap.h,1.11,1.12
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-03-05 22:38:31
|
Update of /cvsroot/gcblue/gcb_wx/include/sim In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21843/include/sim Modified Files: tcSensorMap.h Added Files: tcSonobuoy.h Log Message: Added sonobuoy model. 2525 view now uses small symbol for ballistic and sonobuoy instead of unknown symbol Index: tcSensorMap.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/sim/tcSensorMap.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** tcSensorMap.h 2 Mar 2005 22:28:39 -0000 1.11 --- tcSensorMap.h 5 Mar 2005 22:37:51 -0000 1.12 *************** *** 143,146 **** --- 143,149 ---- unsigned GetInterceptCount() const; + unsigned GetContributorCount() const; + const char* GetContributorName(unsigned idx) const; + const tcTrack* GetTrack() {return this;} bool IsNew() {return mfTimestamp == 0;} --- NEW FILE: tcSonobuoy.h --- /** ** @file tcSonobuoy.h */ /* Copyright (C) 2005 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 _TCSONOBUOY_H_ #define _TCSONOBUOY_H_ #if _MSC_VER > 1000 #pragma once #endif #include "tcGameObject.h" #include "tcSensorPlatform.h" namespace Database { class tcSonobuoyDBObject; } using Database::tcSonobuoyDBObject; class tcGameObject; /** * Sonobuoy model */ class tcSonobuoy : public tcGameObject, public tcSensorPlatform { public: virtual void Clear(); void PrintToFile(tcFile& file); void SaveToFile(tcFile& file); void LoadFromFile(tcFile& file); virtual void Serialize(tcFile& file, bool mbLoad); void LaunchFrom(tcGameObject* obj, unsigned nLauncher); virtual void Update(double afStatusTime); tcSonobuoy(); tcSonobuoy(tcSonobuoy&); tcSonobuoy(tcSonobuoyDBObject* obj); virtual ~tcSonobuoy(); private: tcSonobuoyDBObject* mpDBObject; float batteryTimeRemaining_s; long parentId; void UpdateDrop(float dt_s); }; #endif |