[Gcblue-commits] gcb_wx/include/sim tcBallisticWeapon.h,NONE,1.1 tcLauncher.h,1.2,1.3
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2004-07-27 23:26:16
|
Update of /cvsroot/gcblue/gcb_wx/include/sim In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16280/include/sim Modified Files: tcLauncher.h Added Files: tcBallisticWeapon.h Log Message: Index: tcLauncher.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/sim/tcLauncher.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** tcLauncher.h 29 May 2004 00:11:53 -0000 1.2 --- tcLauncher.h 27 Jul 2004 23:26:06 -0000 1.3 *************** *** 72,75 **** --- 72,76 ---- int mnTargetFlags; ///< 0x01 - surface, 0x02 - air, 0x03 - land float pointingAngle; ///< boresight azimuth angle in radians relative nose/bow + float pointingElevation; ///< elevation angle in radians relative (to horizon?) tcRadar *fireControlSensor; ///< sensor for fire control guidance --- NEW FILE: tcBallisticWeapon.h --- /** @file tcBallisticWeapon.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 */ #pragma once #ifndef _TCBALLISTICWEAPON_H_ #define _TCBALLISTICWEAPON_H_ #include "tcWeaponObject.h" namespace Database { class tcWeaponDBObject; } class tcUpdateStream; /** * Class for unguided ballistic weapons e.g. gun rounds, dumb bombs. * Detonation is on impact with terrain or ocean surface. * Currently this does not model drag to make targeting easy. * * @see tcWeaponObject */ class tcBallisticWeapon : public tcWeaponObject { public: void Clear(); void LaunchFrom(tcGameObject* obj, unsigned nLauncher); virtual void Update(double afStatusTime); void PrintToFile(tcFile&); void SaveToFile(tcFile& file); void LoadFromFile(tcFile& file); virtual void Serialize(tcFile& file, bool mbLoad); virtual tcUpdateStream& operator<<(tcUpdateStream& stream); virtual tcUpdateStream& operator>>(tcUpdateStream& stream); tcBallisticWeapon(); tcBallisticWeapon(tcBallisticWeapon&); tcBallisticWeapon(tcWeaponDBObject* obj); ~tcBallisticWeapon(); protected: float vz_mps; ///< vertical velocity [m/s] float vxy_mps; ///< lateral velocity [m/s] }; #endif |