[Gcblue-commits] gcb_wx/include/sim tcFlightOpsObject.h,NONE,1.1 tcCarrierObject.h,1.6,1.7
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2004-07-13 23:28:12
|
Update of /cvsroot/gcblue/gcb_wx/include/sim In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15364/include/sim Modified Files: tcCarrierObject.h Added Files: tcFlightOpsObject.h Log Message: Index: tcCarrierObject.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/sim/tcCarrierObject.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** tcCarrierObject.h 13 Feb 2004 01:31:32 -0000 1.6 --- tcCarrierObject.h 13 Jul 2004 23:28:02 -0000 1.7 *************** *** 49,52 **** tcCarrierObject(tcCarrierObject&); tcCarrierObject(tcGenericDBObject *obj); ! ~tcCarrierObject(); }; \ No newline at end of file --- 49,52 ---- tcCarrierObject(tcCarrierObject&); tcCarrierObject(tcGenericDBObject *obj); ! virtual ~tcCarrierObject(); }; \ No newline at end of file --- NEW FILE: tcFlightOpsObject.h --- /** @file tcFlightOpsObject.h ** ** Header for tcFlightOpsObject class. */ /* 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 */ #pragma once #include "tcFile.h" #include "tcFlightPort.h" class tcGameObject; /** * Models a sim object with a flightport for air ops. * tcFlightOpsObjects can launch, land, and reposition aircraft. * * @see tcFlightPort */ class tcFlightOpsObject { public: tcFlightPort flight_deck; bool AddChildToFlightDeck(std::string className, std::string unitName, teLocation loc); int CheckLanding(tcGameObject* obj); virtual void Clear(); virtual void RandInitNear(float afLon_deg, float afLat_deg); void PrintToFile(tcFile& file); void SaveToFile(tcFile& file); void LoadFromFile(tcFile& file); virtual void Serialize(tcFile& file, bool mbLoad); void SetFlightportDefaults(); virtual void Update(double afStatusTime); virtual void UpdateLaunch(); tcFlightOpsObject(); tcFlightOpsObject(tcGenericDBObject *obj); virtual ~tcFlightOpsObject(); private: tcGameObject* gameObj; ///< to avoid (some) virtual inheritance inefficiency }; |