UFO: Alien Invasion
cl_team.h
Go to the documentation of this file.
1 
5 /*
6 Copyright (C) 2002-2022 UFO: Alien Invasion.
7 
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
12 
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 
17 See the GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 
23 */
24 
25 #pragma once
26 
27 #define MAX_WHOLETEAM 32
28 #define MAX_TEAMDATASIZE 32768
29 
30 typedef struct actorSkin_s {
32  int idx;
33 
35  char* id;
36 
38  char name[MAX_VAR];
39 
44 } actorSkin_t;
45 
46 void CL_GenerateCharacter(character_t* chr, const char* teamDefName);
47 void CL_UpdateCharacterValues(const character_t* chr);
48 const char* CL_ActorGetSkillString(const int skill);
49 
50 void TEAM_InitStartup(void);
51 
53 unsigned int CL_GetActorSkinCount(void);
54 
bool singleplayer
Definition: cl_team.h:41
Describes a character with all its attributes.
Definition: chr_shared.h:388
linkedList_t * chrDisplayList
List of currently displayed or equipable characters.
Definition: cl_team.cpp:38
char * id
Definition: cl_team.h:35
unsigned int CL_GetActorSkinCount(void)
Get number of registered actorskins.
Definition: cl_team.cpp:63
void CL_GenerateCharacter(character_t *chr, const char *teamDefName)
Generates the skills and inventory for a character and for a 2x2 unit.
Definition: cl_team.cpp:235
#define MAX_VAR
Definition: shared.h:36
void TEAM_InitStartup(void)
Definition: cl_team.cpp:339
void CL_UpdateCharacterValues(const character_t *chr)
Definition: cl_team.cpp:218
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
Definition: r_gl.h:110
int idx
Definition: cl_team.h:32
const char * CL_ActorGetSkillString(const int skill)
Return the skill string for the given skill level.
Definition: cl_team.cpp:165
actorSkin_t * CL_AllocateActorSkin(const char *name)
Allocate a skin from the cls structure.
Definition: cl_team.cpp:44
bool multiplayer
Definition: cl_team.h:43