cl_team.h

Go to the documentation of this file.
00001 
00005 /*
00006 Copyright (C) 2002-2010 UFO: Alien Invasion.
00007 
00008 This program is free software; you can redistribute it and/or
00009 modify it under the terms of the GNU General Public License
00010 as published by the Free Software Foundation; either version 2
00011 of the License, or (at your option) any later version.
00012 
00013 This program is distributed in the hope that it will be useful,
00014 but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00016 
00017 See the GNU General Public License for more details.
00018 
00019 You should have received a copy of the GNU General Public License
00020 along with this program; if not, write to the Free Software
00021 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00022 
00023 */
00024 
00025 #ifndef CLIENT_CL_TEAM_H
00026 #define CLIENT_CL_TEAM_H
00027 
00028 #include "mxml/mxml_ufoai.h"
00029 
00030 #define MAX_WHOLETEAM       32
00031 #define MAX_TEAMDATASIZE    32768
00032 #define MAX_CUSTOMSKIN      32
00033 
00034 typedef struct customSkin_s {
00036     int idx;
00037 
00039     char *id;
00040 
00042     char name[MAX_VAR];
00043 
00045     qboolean singleplayer;
00047     qboolean multiplayer;
00048 } customSkin_t;
00049 
00050 void CL_GenerateCharacter(character_t *chr, const char *teamDefName);
00051 void CL_UpdateCharacterValues(const character_t *chr, const char *cvarPrefix);
00052 
00053 qboolean CL_SaveCharacterXML(mxml_node_t *p, const character_t *chr);
00054 qboolean CL_LoadCharacterXML(mxml_node_t *p, character_t *chr);
00055 
00056 void CL_SaveInventoryXML(mxml_node_t *p, const inventory_t * i);
00057 void CL_LoadInventoryXML(mxml_node_t *p, inventory_t * i);
00058 void TEAM_InitStartup(void);
00059 
00060 customSkin_t* Com_AllocateCustomSkin (void);
00061 
00062 extern chrList_t chrDisplayList;
00063 
00064 #endif

Generated by  doxygen 1.6.2