Update of /cvsroot/gcblue/gcb_wx/include/database
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29425/include/database
Modified Files:
tcDatabaseObject.h
Added Files:
tcBallisticDBObject.h
Log Message:
--- NEW FILE: tcBallisticDBObject.h ---
/*
** @file tcBallisticDBObject.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 _BALLISTICDBOBJECT_H_
#define _BALLISTICDBOBJECT_H_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "tcWeaponDBObject.h"
class TiXmlElement;
namespace Database
{
class tcBallisticDBObject : public tcWeaponDBObject
{
public:
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
tcBallisticDBObject(tcBallisticDBObject& obj); ///< copy constructor
tcBallisticDBObject();
virtual ~tcBallisticDBObject();
};
} // namespace Database
#endif
Index: tcDatabaseObject.h
===================================================================
RCS file: /cvsroot/gcblue/gcb_wx/include/database/tcDatabaseObject.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** tcDatabaseObject.h 27 Jul 2004 23:26:06 -0000 1.13
--- tcDatabaseObject.h 29 Jul 2004 00:14:16 -0000 1.14
***************
*** 68,71 ****
--- 68,72 ----
#define PTYPE_TORPEDO 0x0082
#define PTYPE_FIXED 0x0100
+ #define PTYPE_BALLISTIC 0x0200
UINT16 IdxToClassification(int anIdx);
***************
*** 102,105 ****
--- 103,107 ----
#define DTYPE_FLIGHTPORT 9
#define DTYPE_WEAPON 10
+ #define DTYPE_BALLISTIC 11
#define DTYPE_NULL 0xFFFFFFFF
|