save_missions.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_MISSIONS_H
00026 #define SAVE_MISSIONS_H
00027 
00028 #define SAVE_MISSIONS "missions"
00029 #define SAVE_MISSIONS_MISSION "mission"
00030 #define SAVE_MISSIONS_MISSION_IDX "IDX"
00031 #define SAVE_MISSIONS_ID "id"
00032 #define SAVE_MISSIONS_MAPDEF_ID "mapDefId"
00033 #define SAVE_MISSIONS_MAPDEFTIMES "mapDefTimes"
00034 #define SAVE_MISSIONS_ACTIVE "active"
00035 #define SAVE_MISSIONS_POSASSIGNED "posAssigned"
00036 #define SAVE_MISSIONS_CRASHED "crashed"
00037 #define SAVE_MISSIONS_ONWIN "onWin"
00038 #define SAVE_MISSIONS_ONLOSE "onLose"
00039 #define SAVE_MISSIONS_CATEGORY "category"
00040 #define SAVE_MISSIONS_STAGE "stage"
00041 #define SAVE_MISSIONS_BASEINDEX "baseIDX"
00042 #define SAVE_MISSIONS_INSTALLATIONINDEX "installationIDX"
00043 #define SAVE_MISSIONS_ALIENBASEINDEX "alienbaseIDX"
00044 #define SAVE_MISSIONS_LOCATION "location"
00045 #define SAVE_MISSIONS_INITIALOVERALLINTEREST "initialOverallInterest"
00046 #define SAVE_MISSIONS_INITIALINDIVIDUALINTEREST "initialIndividualInterest"
00047 #define SAVE_MISSIONS_STARTDATE "startDate"
00048 #define SAVE_MISSIONS_FINALDATE "finalDate"
00049 #define SAVE_MISSIONS_POS "pos"
00050 #define SAVE_MISSIONS_UFO "UFO"
00051 #define SAVE_MISSIONS_CRASHED_AIRCRAFT "crashedAircraft"
00052 #define SAVE_MISSIONS_ONGEOSCAPE "onGeoscape"
00053 
00054 #define SAVE_MISSIONSTAGE_NAMESPACE "saveMissionStage"
00055 static const constListEntry_t saveMissionConstants[] = {
00056     {SAVE_MISSIONSTAGE_NAMESPACE"::notActive", STAGE_NOT_ACTIVE},
00057     {SAVE_MISSIONSTAGE_NAMESPACE"::comeFromOrbit", STAGE_COME_FROM_ORBIT},
00058     {SAVE_MISSIONSTAGE_NAMESPACE"::reconAir", STAGE_RECON_AIR},
00059     {SAVE_MISSIONSTAGE_NAMESPACE"::missionGoTo", STAGE_MISSION_GOTO},
00060     {SAVE_MISSIONSTAGE_NAMESPACE"::reconGround", STAGE_RECON_GROUND},
00061     {SAVE_MISSIONSTAGE_NAMESPACE"::terrorMission", STAGE_TERROR_MISSION},
00062     {SAVE_MISSIONSTAGE_NAMESPACE"::buildBase", STAGE_BUILD_BASE},
00063     {SAVE_MISSIONSTAGE_NAMESPACE"::baseAttack", STAGE_BASE_ATTACK},
00064     {SAVE_MISSIONSTAGE_NAMESPACE"::subvertGov", STAGE_SUBVERT_GOV},
00065     {SAVE_MISSIONSTAGE_NAMESPACE"::supply", STAGE_SUPPLY},
00066     {SAVE_MISSIONSTAGE_NAMESPACE"::spreadXVI", STAGE_SPREAD_XVI},
00067     {SAVE_MISSIONSTAGE_NAMESPACE"::intercept", STAGE_INTERCEPT},
00068     {SAVE_MISSIONSTAGE_NAMESPACE"::baseDiscovered", STAGE_BASE_DISCOVERED},
00069     {SAVE_MISSIONSTAGE_NAMESPACE"::harvest", STAGE_HARVEST},
00070     {SAVE_MISSIONSTAGE_NAMESPACE"::returnToOrbit", STAGE_RETURN_TO_ORBIT},
00071     {SAVE_MISSIONSTAGE_NAMESPACE"::missionOver", STAGE_OVER},
00072     {NULL, -1}
00073 };
00074 
00075 #endif
00076 
00077 /*
00078 DTD:
00079 
00080 <!ELEMENT missions EMPTY>
00081 <!ELEMENT mission pos startDate finalDate>
00082 <!ATTLIST mission
00083     IDX                         CDATA   #REQUIRED
00084     id                          CDATA   #REQUIRED
00085     active                      CDATA   'false'
00086     mapDefId                    CDATA   #IMPLIED
00087     mapDefTimes                 CDATA   '0'
00088     posAssigned                 CDATA   #IMPLIED
00089     crashed                     CDATA   'false'
00090     onWin                       CDATA   #IMPLIED
00091     onLose                      CDATA   #IMPLIED
00092     category    (none, recon, terror,
00093                 baseAttack, building,
00094                 supply, XVI, intercept,
00095                 harvest, alienBase)     #REQUIRED
00096     stage       (notActive, comeFromOrbit, 
00097                 reconAir, missionGoTo,
00098                 reconGround, terrorMission,
00099                 buildBase, baseAttack,
00100                 subvertGov, supply,
00101                 spreadXVI, intercept,
00102                 baseDiscovered, harvest,
00103                 returnToOrbit,
00104                 missionOver)            #REQUIRED
00105     
00106                             CDATA   '0'
00107     baseIDX                     CDATA   #IMPLIED
00108     installationIDX             CDATA   #IMPLIED
00109     alienBaseIDX                CDATA   #IMPLIED
00110     location                    CDATA   #IMPLIED
00111     initialOverallInterest      CDATA   '0'
00112     initialIndividualInterest   CDATA   '0'
00113     UFO                         CDATA   #IMPLIED
00114     onGeoscape                  CDATA   'false'
00115 >
00116 
00117 <!ELEMENT startDate EMPTY>
00118 <!ATTLIST
00119     day                         CDATA   '0'
00120     sec                         CDATA   '0'
00121 >
00122 
00123 <!ELEMENT finalDate EMPTY>
00124 <!ATTLIST
00125     day                         CDATA   '0'
00126     sec                         CDATA   '0'
00127 >
00128 
00129 */
00130 

Generated by  doxygen 1.6.2