[Gcblue-commits] gcb_wx/include/database tcWeaponDBObject.h,NONE,1.1 tcDatabaseObject.h,1.11,1.12 tc
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2004-07-27 00:16:34
|
Update of /cvsroot/gcblue/gcb_wx/include/database In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10427/include/database Modified Files: tcDatabaseObject.h tcMissileDBObject.h tcSensorDBObject.h Added Files: tcWeaponDBObject.h Log Message: Index: tcDatabaseObject.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/database/tcDatabaseObject.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** tcDatabaseObject.h 18 Jul 2004 03:17:59 -0000 1.11 --- tcDatabaseObject.h 27 Jul 2004 00:16:23 -0000 1.12 *************** *** 100,103 **** --- 100,104 ---- #define DTYPE_AIR 8 #define DTYPE_FLIGHTPORT 9 + #define DTYPE_WEAPON 10 #define DTYPE_NULL 0xFFFFFFFF --- NEW FILE: tcWeaponDBObject.h --- /** ** @file tcWeaponDBObject.h */ /* Copyright (C) 2003-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 _WEAPONDBOBJECT_H_ #define _WEAPONDBOBJECT_H_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "tcDatabaseObject.h" class TiXmlElement; namespace Database { class tcWeaponDBObject : public tcDatabaseObject { public: float mfDamage; ///< damage value virtual const char* GetClassName() {return "Sensor";} ///< returns class name of database object virtual void PrintToFile(tcFile& file); int Serialize(tcFile& file, bool mbLoad, UINT32 anVersion); int SerializeCSV(CsvTranslator* csv, bool mbLoad); ///< CSV serialization virtual void SerializeXml(TiXmlElement* node, bool load); ///< XML serialization static int WriteCSVHeader(CsvTranslator* csv); ///< writes column headings protected: tcWeaponDBObject(); tcWeaponDBObject(tcWeaponDBObject& obj); ///< copy constructor virtual ~tcWeaponDBObject(); }; } // namespace Database #endif Index: tcSensorDBObject.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/database/tcSensorDBObject.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** tcSensorDBObject.h 28 Mar 2004 23:12:27 -0000 1.4 --- tcSensorDBObject.h 27 Jul 2004 00:16:23 -0000 1.5 *************** *** 48,51 **** --- 48,52 ---- static int WriteCSVHeader(CsvTranslator* csv); ///< writes column headings + protected: tcSensorDBObject(); tcSensorDBObject(tcSensorDBObject& obj); ///< copy constructor Index: tcMissileDBObject.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/database/tcMissileDBObject.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** tcMissileDBObject.h 19 Jul 2004 00:52:26 -0000 1.9 --- tcMissileDBObject.h 27 Jul 2004 00:16:23 -0000 1.10 *************** *** 1,6 **** ! /* ! ** tcMissileDBObject.h ! ** ! ** Copyright (C) 2003 Dewitt "Cole" Colclough (de...@tw...) ** All rights reserved. --- 1,6 ---- ! /** ! ** @file tcMissileDBObject.h ! */ ! /* Copyright (C) 2003-2004 Dewitt Colclough (de...@tw...) ** All rights reserved. *************** *** 27,31 **** #endif // _MSC_VER > 1000 ! #include "tcDatabaseObject.h" class TiXmlElement; --- 27,31 ---- #endif // _MSC_VER > 1000 ! #include "tcWeaponDBObject.h" class TiXmlElement; *************** *** 99,103 **** #define MISSILE_TARGET 0x0008 ! class tcMissileDBObject : public tcDatabaseObject { public: --- 99,103 ---- #define MISSILE_TARGET 0x0008 ! class tcMissileDBObject : public tcWeaponDBObject { public: *************** *** 120,125 **** // other parameters ! float mfDamage; ///< damage value ! teDamageType meDamageType; ///< damage type enumeration int mnTargetFlags; ///< 0x01 - surface, 0x02 - air, 0x04 - land float mfRcs_dbsm; ///< radar cross section, [dBsm] --- 120,125 ---- // other parameters ! //float mfDamage; ///< damage value ! //teDamageType meDamageType; ///< damage type enumeration int mnTargetFlags; ///< 0x01 - surface, 0x02 - air, 0x04 - land float mfRcs_dbsm; ///< radar cross section, [dBsm] |