[Gcblue-commits] gcb_wx/include/database tcFlightportDBObject.h,NONE,1.1 tcDatabaseObject.h,1.4,1.5
Status: Alpha
Brought to you by:
ddcforge
From: <ddc...@us...> - 2004-01-04 22:24:55
|
Update of /cvsroot/gcblue/gcb_wx/include/database In directory sc8-pr-cvs1:/tmp/cvs-serv2798/include/database Modified Files: tcDatabaseObject.h tcGenericDBObject.h Added Files: tcFlightportDBObject.h Log Message: Added database class for flightports --- NEW FILE: tcFlightportDBObject.h --- /** @file tcFlightportDBObject.h */ /* ** Copyright (C) 2003 Dewitt "Cole" 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 _FLIGHTPORTDBOBJECT_H_ #define _FLIGHTPORTDBOBJECT_H_ #pragma once #include "tcDatabaseObject.h" #include <vector> namespace Database { /** * Data for flightport model. */ class tcFlightportDBObject : public tcDatabaseObject { public: struct spotDBInfo { int isLaunch; ///< 1 - if launch/land spot, 0 - if ready spot float x; ///< location of spot relative to parent float y; float z; float orientation_deg; ///< orientation for runway, 0 is along -z axis (heading axis for ships) float length; }; enum { MAX_DB_SPOTS = 16 ///< max spots in database--can be increased if needed }; int heloOnly; ///< set non-zero for helo-only flight port unsigned int hangarCapacity; std::vector<spotDBInfo> spotInfo; void RandInit(); int Serialize(tcFile& file, bool mbLoad, UINT32 anVersion); int SerializeCSV(CsvTranslator* csv, bool mbLoad); ///< CSV serialization static int WriteCSVHeader(CsvTranslator* csv); ///< writes column headings tcFlightportDBObject(); tcFlightportDBObject(tcFlightportDBObject& obj); ///< copy constructor virtual ~tcFlightportDBObject(); }; } #endif Index: tcDatabaseObject.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/database/tcDatabaseObject.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** tcDatabaseObject.h 8 Dec 2003 03:06:36 -0000 1.4 --- tcDatabaseObject.h 4 Jan 2004 22:24:52 -0000 1.5 *************** *** 94,97 **** --- 94,98 ---- #define DTYPE_FIXED 7 #define DTYPE_AIR 8 + #define DTYPE_FLIGHTPORT 9 #define DTYPE_NULL 0xFFFFFFFF Index: tcGenericDBObject.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/database/tcGenericDBObject.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** tcGenericDBObject.h 7 Dec 2003 14:29:32 -0000 1.3 --- tcGenericDBObject.h 4 Jan 2004 22:24:52 -0000 1.4 *************** *** 62,65 **** --- 62,68 ---- tcDBString maLauncherClass[MAXLAUNCHERS]; tcDBString maSensorClass[MAXSENSORS]; + float launcherAz[MAXLAUNCHERS]; ///< pointing angles of launchers in degrees + float sensorAz[MAXSENSORS]; ///< pointing angles of sensors in degrees + tcDBString flightportClass; ///< database class name of flightport (or empty if none) void RandInit(); |