cp_parse.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 
00026 #ifndef CP_PARSE_H
00027 #define CP_PARSE_H
00028 
00029 #define MAX_COMP    32
00030 
00031 #define COMP_ITEMCOUNT_SCALED -32768
00032 
00037 typedef struct components_s {
00038     char assemblyId[MAX_VAR];   
00039     objDef_t *assemblyItem; 
00041     int time;   
00043     int numItemtypes;               
00044     objDef_t *items[MAX_COMP];      
00045     int itemAmount[MAX_COMP];       
00046     int itemAmount2[MAX_COMP];      
00047 } components_t;
00048 
00049 void CL_ParseCampaign(const char *name, const char **text);
00050 void CL_ScriptSanityCheck(void);
00051 components_t *CL_GetComponentsByItem(const objDef_t *item);
00052 components_t *CL_GetComponentsByID(const char *id);
00053 
00054 #endif

Generated by  doxygen 1.6.2