save_aircraft.h

Go to the documentation of this file.
00001 
00006 /*
00007 Copyright (C) 2002-2010 UFO: Alien Invasion.
00008 
00009 This program is free software; you can redistribute it and/or
00010 modify it under the terms of the GNU General Public License
00011 as published by the Free Software Foundation; either version 2
00012 of the License, or (at your option) any later version.
00013 
00014 This program is distributed in the hope that it will be useful,
00015 but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00017 
00018 See the GNU General Public License for more details.
00019 
00020 You should have received a copy of the GNU General Public License
00021 along with this program; if not, write to the Free Software
00022 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00023 */
00024 
00025 #ifndef SAVE_AIRCRAFT_H
00026 #define SAVE_AIRCRAFT_H
00027 
00028 #define SAVE_AIRCRAFT_UFOS "UFOs"
00029 #define SAVE_AIRCRAFT_PHALANX "aircraft"
00030 #define SAVE_AIRCRAFT_NUMAIRCRAFT "numAircraft"
00031 
00032 #define SAVE_AIRCRAFT_AIRCRAFT "craft"
00033 #define SAVE_AIRCRAFT_ID "id"
00034 #define SAVE_AIRCRAFT_NAME "name"
00035 #define SAVE_AIRCRAFT_IDX "idx"
00036 
00037 #define SAVE_AIRCRAFT_STATUS "status"
00038 #define SAVE_AIRCRAFT_HOMEBASE "homebase"
00039 
00040 #define SAVE_AIRCRAFT_FUEL "fuel"
00041 #define SAVE_AIRCRAFT_DAMAGE "damage"
00042 #define SAVE_AIRCRAFT_POS "pos"
00043 #define SAVE_AIRCRAFT_DIRECTION "direction"
00044 #define SAVE_AIRCRAFT_POINT "point"
00045 #define SAVE_AIRCRAFT_TIME "time"
00046 
00047 #define SAVE_AIRCRAFT_MISSIONID "missionid"
00048 #define SAVE_AIRCRAFT_DETECTIONIDX "detectionIDX"
00049 #define SAVE_AIRCRAFT_LASTSPOTTED_DATE "lastSpottedDate"
00050 
00051 #define SAVE_AIRCRAFT_AIRCRAFTTARGET "aircraftTarget"
00052 
00053 #define SAVE_AIRCRAFT_AIRSTATS "airstats"
00054 #define SAVE_AIRCRAFT_AIRSTAT "stat"
00055 #define SAVE_AIRCRAFT_AIRSTATID "id"
00056 #define SAVE_AIRCRAFT_VAL "val"
00057 
00058 #define SAVE_AIRCRAFT_DETECTED "detected"
00059 #define SAVE_AIRCRAFT_LANDED "landed"
00060 #define SAVE_AIRCRAFT_HANGAR "hangar"
00061 
00062 #define SAVE_AIRCRAFT_AIRCRAFTTEAM "aircraftTeam"
00063 #define SAVE_AIRCRAFT_MEMBER "member"
00064 #define SAVE_AIRCRAFT_TEAM_UCN "ucn"
00065 
00066 #define SAVE_AIRCRAFT_PILOTUCN "pilotUCN"
00067 
00068 #define SAVE_AIRCRAFT_RADAR_RANGE "radarRange"
00069 #define SAVE_AIRCRAFT_RADAR_TRACKINGRANGE "radarTrackingrange"
00070 
00071 #define SAVE_AIRCRAFT_CARGO "cargo"
00072 
00073 #define SAVE_AIRCRAFT_ITEM "item"
00074 #define SAVE_AIRCRAFT_ITEMID "itemid"
00075 #define SAVE_AIRCRAFT_AMOUNT "amount"
00076 
00077 #define SAVE_AIRCRAFT_ALIENCARGO "alienCargo"
00078 
00079 #define SAVE_AIRCRAFT_TEAMDEFID "teamdefid"
00080 #define SAVE_AIRCRAFT_ALIVE "alive"
00081 #define SAVE_AIRCRAFT_DEAD "dead"
00082 
00083 #define SAVE_AIRCRAFT_ROUTE "route"
00084 #define SAVE_AIRCRAFT_ROUTE_DISTANCE "distance"
00085 #define SAVE_AIRCRAFT_ROUTE_POINT "point"
00086 
00087 #define SAVE_AIRCRAFT_WEAPONS "weapons"
00088 #define SAVE_AIRCRAFT_SHIELDS "shields"
00089 #define SAVE_AIRCRAFT_ELECTRONICS "electronics"
00090 #define SAVE_AIRCRAFT_SLOT "slot"
00091 
00092 #define SAVE_AIRCRAFT_PROJECTILES "projectiles"
00093 
00094 #define SAVE_AIRCRAFTSTATUS_NAMESPACE "saveAircraftStatus"
00095 #define SAVE_AIRCRAFTSTAT_NAMESPACE "saveAircraftStat"
00096 static const constListEntry_t saveAircraftConstants[] = {
00097     {SAVE_AIRCRAFTSTATUS_NAMESPACE"::none", AIR_NONE},
00098     {SAVE_AIRCRAFTSTATUS_NAMESPACE"::refuel", AIR_REFUEL},
00099     {SAVE_AIRCRAFTSTATUS_NAMESPACE"::home", AIR_HOME},
00100     {SAVE_AIRCRAFTSTATUS_NAMESPACE"::idle", AIR_IDLE},
00101     {SAVE_AIRCRAFTSTATUS_NAMESPACE"::transit", AIR_TRANSIT},
00102     {SAVE_AIRCRAFTSTATUS_NAMESPACE"::mission", AIR_MISSION},
00103     {SAVE_AIRCRAFTSTATUS_NAMESPACE"::ufo", AIR_UFO},
00104     {SAVE_AIRCRAFTSTATUS_NAMESPACE"::drop", AIR_DROP},
00105     {SAVE_AIRCRAFTSTATUS_NAMESPACE"::intercept", AIR_INTERCEPT},
00106     {SAVE_AIRCRAFTSTATUS_NAMESPACE"::transfer", AIR_TRANSFER},
00107     {SAVE_AIRCRAFTSTATUS_NAMESPACE"::returning", AIR_RETURNING},
00108     {SAVE_AIRCRAFTSTATUS_NAMESPACE"::crashed", AIR_CRASHED},
00109 
00110     {SAVE_AIRCRAFTSTAT_NAMESPACE"::speed", AIR_STATS_SPEED},
00111     {SAVE_AIRCRAFTSTAT_NAMESPACE"::maxspeed", AIR_STATS_MAXSPEED},
00112     {SAVE_AIRCRAFTSTAT_NAMESPACE"::shield", AIR_STATS_SHIELD},
00113     {SAVE_AIRCRAFTSTAT_NAMESPACE"::ecm", AIR_STATS_ECM},
00114     {SAVE_AIRCRAFTSTAT_NAMESPACE"::damage", AIR_STATS_DAMAGE},
00115     {SAVE_AIRCRAFTSTAT_NAMESPACE"::accuracy", AIR_STATS_ACCURACY},
00116     {SAVE_AIRCRAFTSTAT_NAMESPACE"::fuelsize", AIR_STATS_FUELSIZE},
00117     {SAVE_AIRCRAFTSTAT_NAMESPACE"::weaponrange", AIR_STATS_WRANGE},
00118     {SAVE_AIRCRAFTSTAT_NAMESPACE"::antimatter", AIR_STATS_ANTIMATTER},
00119 
00120     {NULL, -1}
00121 };
00122 
00123 #endif
00124 
00125 /*
00126 DTD:
00127 
00128 <!ELEMENT aircraft craft*>
00129 <!ELEMENT UFOs craft*>
00130 <!ELEMENT craft >
00131 <!ATTLIST craft (pos direction weapons shields electronics route lastSpottedDate? airstats aircraftTeam cargo alienCargo)
00132     id                  CDATA   #REQUIRED
00133     name                CDATA   #IMPLIED
00134     status      (none,refuel,home,idle,
00135                 transit,mission,ufo,
00136                 drop,intercept,transfer,
00137                 returning)      #REQUIRED
00138     homebase            CDATA   #IMPLIED
00139     fuel                CDATA   '0'
00140     damage              CDATA   '0'
00141     point               CDATA   '0'
00142     time                CDATA   '0'
00143     missionid           CDATA   #IMPLIED
00144     detectionIDX        CDATA   #IMPLIED
00145     detected            CDATA   'false'
00146     landed              CDATA   'false'
00147     aircraftTarget      CDATA   #IMPLIED
00148     
00149     idx                 CDATA   #REQUIRED
00150     hangar              CDATA   '0'
00151     pilotUCN            CDATA   #IMPLIED
00152 
00153     radarRange          CDATA   '0'
00154     radarTrackingRange  CDATA   '0'
00155 >
00156 ** Note: idx is required for Phalanx crafts only
00157 
00158 <!ELEMENT pos EMPTY>
00159 <!ATTLIST pos
00160     x                   CDATA   '0.0'
00161     y                   CDATA   '0.0'
00162     z                   CDATA   '0.0'
00163 >
00164 
00165 <!ELEMENT direction EMPTY>
00166 <!ATTLIST direction
00167     x                   CDATA   '0.0'
00168     y                   CDATA   '0.0'
00169     z                   CDATA   '0.0'
00170 >
00171 
00172 <!ELEMENT route point*>
00173 <!ATTLIST route
00174     distance            CDATA   '0.0'
00175 >
00176 
00177 <!ELEMENT point EMPTY>
00178 <!ATTLIST point
00179     x                   CDATA   '0.0'
00180     y                   CDATA   '0.0'
00181 >
00182 
00183 <!ELEMENT lastSpottedDate EMPTY>
00184 <!ATTLIST lastSpottedDate
00185     day                 CDATA   '0'
00186     sec                 CDATA   '0'
00187 >
00188 
00189 <!ELEMENT weapons slot*>
00190 <!ELEMENT shields slot>
00191 <!ELEMENT electronics slot*>
00192 <!ELEMENT slot EMPTY>
00193 **Note: ATTLIST of slot is defined in save_fightequip.h
00194 
00195 <!ELEMENT airstats airstat*>
00196 <!ELEMENT airstat EMPTY>
00197 <!ATTLIST airstat
00198     id      (speed,maxspeed,shield,
00199             ecm,damage,accuracy,
00200             fuelsize,weaponrange,
00201             antimatter)         #REQUIRED
00202     val                 CDATA   '0'
00203 >
00204 
00205 <!ELEMENT aircraftTeam member*>
00206 <!ELEMENT member EMPTY>
00207 <!ATTLIST member
00208     ucn                 CDATA   #IMPLIED
00209 >
00210 
00211 <!ELEMENT cargo item*>
00212 <!ELEMENT item EMPTY>
00213 <!ATTLIST item
00214     itemid              CDATA   #REQUIRED
00215     amount              CDATA   '0'
00216 >
00217 
00218 <!ELEMENT alienCargo cargo*>
00219 <!ELEMENT cargo EMPTY>
00220 <!ATTLIST cargo
00221     teamdefid           CDATA   #REQUIRED
00222     alive               CDATA   '0'
00223     dead                CDATA   '0'
00224 >
00225 
00226 <!ELEMENT projectiles projectile*>
00227 **Note: projectile is defined in save_airfight.h
00228 
00229 */
00230 

Generated by  doxygen 1.6.2