UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cl_game_team.h
Go to the documentation of this file.
1 
6 /*
7 Copyright (C) 2002-2020 UFO: Alien Invasion.
8 
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License
11 as published by the Free Software Foundation; either version 2
12 of the License, or (at your option) any later version.
13 
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17 
18 See the GNU General Public License for more details.m
19 
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 
24 */
25 
26 #pragma once
27 
28 #include "../../common/xml.h"
29 
30 #define NO_TEAM_SLOT_LOADED -1
31 bool GAME_TeamGetFreeFilename(char* filename, size_t size);
32 bool GAME_GetTeamFileName(unsigned int index, char* filename, size_t filenameLength);
33 void GAME_SaveTeam_f(void);
34 void GAME_LoadTeam_f(void);
35 void GAME_TeamSlotComments_f(void);
36 void GAME_TeamDelete_f(void);
37 void GAME_SaveTeamState_f(void);
38 void GAME_ToggleActorForTeam_f(void);
39 void GAME_AutoTeam_f(void);
40 void GAME_AutoTeam(const char* equipmentDefinitionID, int teamMembers);
42 void GAME_ActorSelect_f(void);
43 bool GAME_LoadDefaultTeam(bool force);
44 bool GAME_SaveCharacter(xmlNode_t* p, const character_t* chr);
void GAME_ToggleActorForTeam_f(void)
This will activate/deactivate the actor for the team.
bool GAME_SaveCharacter(xmlNode_t *p, const character_t *chr)
saves a character to a given xml node
const char * filename
Definition: ioapi.h:41
void GAME_TeamDelete_f(void)
Removes a user created team.
bool GAME_LoadDefaultTeam(bool force)
bool GAME_TeamGetFreeFilename(char *filename, size_t size)
Searches a free team filename.
void GAME_AutoTeam_f(void)
bool GAME_LoadCharacter(xmlNode_t *p, character_t *chr)
Loads a character from a given xml node.
#define xmlNode_t
Definition: xml.h:24
GLsizei size
Definition: r_gl.h:152
void GAME_LoadTeam_f(void)
Loads the selected teamslot.
void GAME_TeamSlotComments_f(void)
Reads the comments from team files.
bool GAME_GetTeamFileName(unsigned int index, char *filename, size_t filenameLength)
Get the filename for the xth team in the file system.
void GAME_AutoTeam(const char *equipmentDefinitionID, int teamMembers)
QGL_EXTERN GLuint index
Definition: r_gl.h:110
void GAME_SaveTeam_f(void)
Stores a team in a specified teamslot.
void GAME_UpdateTeamMenuParameters_f(void)
Displays actor info and equipment and unused items in proper (filter) category.
void GAME_SaveTeamState_f(void)
Will remove those actors that should not be used in the team.
void GAME_ActorSelect_f(void)
Describes a character with all its attributes.
Definition: chr_shared.h:369