UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cl_team.h File Reference

Go to the source code of this file.

Data Structures

struct  actorSkin_s
 

Macros

#define MAX_WHOLETEAM   32
 
#define MAX_TEAMDATASIZE   32768
 

Typedefs

typedef struct actorSkin_s actorSkin_t
 

Functions

void CL_GenerateCharacter (character_t *chr, const char *teamDefName)
 Generates the skills and inventory for a character and for a 2x2 unit. More...
 
void CL_UpdateCharacterValues (const character_t *chr)
 
const char * CL_ActorGetSkillString (const int skill)
 Return the skill string for the given skill level. More...
 
void TEAM_InitStartup (void)
 
actorSkin_tCL_AllocateActorSkin (const char *name)
 Allocate a skin from the cls structure. More...
 
unsigned int CL_GetActorSkinCount (void)
 Get number of registered actorskins. More...
 

Variables

linkedList_tchrDisplayList
 List of currently displayed or equipable characters. More...
 

Macro Definition Documentation

#define MAX_TEAMDATASIZE   32768

Definition at line 28 of file cl_team.h.

#define MAX_WHOLETEAM   32

Definition at line 27 of file cl_team.h.

Typedef Documentation

typedef struct actorSkin_s actorSkin_t

Function Documentation

const char* CL_ActorGetSkillString ( const int  skill)

Return the skill string for the given skill level.

Returns
skill string
Parameters
[in]skilla skill value between 0 and MAX_SKILL

Definition at line 165 of file cl_team.cpp.

References _, Com_Printf(), and MAX_SKILL.

Referenced by CL_CharacterSkillAndScoreCvars(), CL_UGVCvars(), and GAME_GetImportData().

actorSkin_t* CL_AllocateActorSkin ( const char *  name)

Allocate a skin from the cls structure.

Returns
A actorskin structure

Definition at line 44 of file cl_team.cpp.

References client_static_s::actorSkins, cls, com_genericPool, actorSkin_s::id, actorSkin_s::idx, index, lengthof, Mem_PoolStrDup, client_static_s::numActorSkins, OBJZERO, R_ModAllocateActorSkin(), and Sys_Error().

Referenced by CL_ParseActorSkin().

void CL_GenerateCharacter ( character_t chr,
const char *  teamDefName 
)
unsigned int CL_GetActorSkinCount ( void  )

Get number of registered actorskins.

Returns
Number of registered actorskins

Definition at line 63 of file cl_team.cpp.

References cls, and client_static_s::numActorSkins.

Referenced by CL_ParseActorSkin(), and GAME_LoadCharacter().

void TEAM_InitStartup ( void  )

Definition at line 339 of file cl_team.cpp.

References CL_ChangeSkin_f(), CL_ChangeSkinForWholeTeam_f(), CL_InitSkin_f(), and Cmd_AddCommand().

Referenced by CL_InitLocal().

Variable Documentation