save_installation.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_INSTALLATION_H
00026 #define SAVE_INSTALLATION_H
00027 
00028 #define SAVE_INSTALLATION_INSTALLATIONS "installations"
00029 #define SAVE_INSTALLATION_INSTALLATION "installation"
00030 #define SAVE_INSTALLATION_TEMPLATEID "templateid"
00031 #define SAVE_INSTALLATION_NAME "name"
00032 #define SAVE_INSTALLATION_POS "pos"
00033 #define SAVE_INSTALLATION_STATUS "status"
00034 #define SAVE_INSTALLATION_DAMAGE "damage"
00035 #define SAVE_INSTALLATION_ALIENINTEREST "alienInterest"
00036 #define SAVE_INSTALLATION_BUILDSTART "buildStart"
00037 
00038 #define SAVE_INSTALLATION_BATTERIES "batteries"
00039 #define SAVE_INSTALLATION_NUM "num"
00040 
00041 #define SAVE_INSTALLATIONSTATUS_NAMESPACE "saveInstallationStatus"
00042 static const constListEntry_t saveInstallationConstants[] = {
00043     {SAVE_INSTALLATIONSTATUS_NAMESPACE"::construction", INSTALLATION_UNDER_CONSTRUCTION},
00044     {SAVE_INSTALLATIONSTATUS_NAMESPACE"::working", INSTALLATION_WORKING},
00045     {NULL, -1}
00046 };
00047 
00048 #endif
00049 
00050 /*
00051 DTD:
00052 
00053 <!ELEMENT installations installation*>
00054 <!ELEMENT installation pos batteries?>
00055 <!ATTLIST installation
00056     templateid      CDATA       #REQUIRED
00057     name            CDATA       #IMPLIED
00058     status          (construction,
00059                     working)    #REQUIRED
00060     damage          CDATA       '0'
00061     alienInterest   CDATA       '0.0'
00062     buildStart      CDATA       '0'
00063 >
00064 <!ELEMENT pos EMPTY>
00065 <!ATTLIST pos
00066     x               CDATA       '0'
00067     y               CDATA       '0'
00068     z               CDATA       '0'
00069 >
00070 <!ELEMENT batteries weapon*>
00071 <!ATTLIST batteries
00072     num             CDATA       '0'
00073 >
00074 
00075 **Note: weapon defined in save_bases.h
00076 
00077 */
00078 

Generated by  doxygen 1.6.2