UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
teamDef_s Struct Reference

#include <chr_shared.h>

Data Structures

struct  model_t
 

Public Member Functions

const char * getActorSound (int gender, actorSound_t soundType) const
 Returns the actor sounds for a given category. More...
 

Data Fields

int idx
 
char id [MAX_VAR]
 
char name [MAX_VAR]
 
char tech [MAX_VAR]
 
char footstepSound [MAX_VAR]
 
linkedList_t *const * names
 
const intnumNames
 
linkedList_tmodels [NAME_LAST]
 
int numModels [NAME_LAST]
 
linkedList_tsounds [SND_MAX][NAME_LAST]
 
int numSounds [SND_MAX][NAME_LAST]
 
int team
 
bool robot
 
bool armour
 
bool weapons
 
const objDef_tonlyWeapon
 
actorSizeEnum_t size
 
char hitParticle [MAX_VAR]
 
char deathTextureName [MAX_VAR]
 
short resistance [MAX_DAMAGETYPES]
 
const chrTemplate_tcharacterTemplates [MAX_TEMPLATES_PER_TEAM]
 
int numTemplates
 
const BodyDatabodyTemplate
 

Detailed Description

Definition at line 296 of file chr_shared.h.

Member Function Documentation

const char * teamDef_s::getActorSound ( int  gender,
actorSound_t  soundType 
) const

Returns the actor sounds for a given category.

Parameters
[in]genderThe gender of the actor
[in]soundTypeWhich sound category (actorSound_t)

Definition at line 54 of file chr_shared.cpp.

References Com_DPrintf(), linkedList_t::data, DEBUG_CLIENT, DEBUG_SOUND, NAME_LAST, linkedList_t::next, numSounds, and sounds.

Referenced by CL_ActorPlaySound(), G_SplashDamage(), and Touch_HurtTrigger().

Field Documentation

bool teamDef_s::armour

Does this team use armour.

Definition at line 323 of file chr_shared.h.

Referenced by CHRSH_IsArmourUseableForTeam(), Com_ParseTeam(), InventoryInterface::EquipActorNormal(), and TEST_F().

const chrTemplate_t* teamDef_s::characterTemplates[MAX_TEMPLATES_PER_TEAM]

Definition at line 336 of file chr_shared.h.

Referenced by CHRSH_CharGenAbilitySkills(), CHRSH_GetTemplateByID(), and Com_ParseTeam().

char teamDef_s::deathTextureName[MAX_VAR]

texture name for death of any member of this team

Definition at line 332 of file chr_shared.h.

Referenced by CL_AddActor(), and Com_ParseTeam().

char teamDef_s::footstepSound[MAX_VAR]

Definition at line 301 of file chr_shared.h.

Referenced by G_SendFootstepSound(), and LE_PlayFootStepSound().

char teamDef_s::hitParticle[MAX_VAR]

Particle id of what particle effect should be spawned if a unit of this type is hit.

Definition at line 331 of file chr_shared.h.

Referenced by LE_ActorBodyHit().

int teamDef_s::idx
linkedList_t* teamDef_s::models[NAME_LAST]

Models list per gender.

Definition at line 314 of file chr_shared.h.

Referenced by CL_PrecacheCharacterModels(), Com_GiveModel(), Com_ParseActorModels(), and TEST_F().

char teamDef_s::name[MAX_VAR]
linkedList_t* const* teamDef_s::names

Names list per gender.

Definition at line 303 of file chr_shared.h.

Referenced by Com_GiveName(), and Com_ParseTeam().

int teamDef_s::numModels[NAME_LAST]

Amount of models in this list for all different genders.

Definition at line 315 of file chr_shared.h.

Referenced by CL_PrecacheCharacterModels(), Com_GetGender(), Com_GiveModel(), Com_ParseActorModels(), and TEST_F().

const int* teamDef_s::numNames

Amount of names in this list for all different genders.

Definition at line 304 of file chr_shared.h.

Referenced by Com_GetGender(), Com_GiveName(), and Com_ParseTeam().

int teamDef_s::numSounds[SND_MAX][NAME_LAST]

Amount of sounds in this list for all different genders and soundtypes.

Definition at line 318 of file chr_shared.h.

Referenced by Com_ParseActorSounds(), and getActorSound().

int teamDef_s::numTemplates
const objDef_t* teamDef_s::onlyWeapon

ods[] index - If this team is not able to use 'normal' weapons, we have to assign a weapon to it The default value is NONE for every 'normal' actor - but e.g. bloodspiders only have the ability to melee attack their victims. They get a weapon assigned with several bloodspider melee attack firedefinitions

Definition at line 325 of file chr_shared.h.

Referenced by AI_SetEquipment(), AIL_isfighter(), AM_CreateUnitChr(), Com_ParseTeam(), InventoryInterface::EquipActorMelee(), G_ReactionFireCanBeEnabled(), and GAME_AppendTeamMember().

short teamDef_s::resistance[MAX_DAMAGETYPES]

Resistance to damage

Definition at line 334 of file chr_shared.h.

Referenced by Com_ParseTeam(), and G_ApplyProtection().

actorSizeEnum_t teamDef_s::size

What size is this unit on the field (1=1x1 or 2=2x2)?

Definition at line 330 of file chr_shared.h.

Referenced by Com_GetCharacterValues().

linkedList_t* teamDef_s::sounds[SND_MAX][NAME_LAST]

Sounds list per gender and per sound type.

Definition at line 317 of file chr_shared.h.

Referenced by Com_ParseActorSounds(), getActorSound(), and TEST_F().

int teamDef_s::team

What is the race of this team?

Definition at line 320 of file chr_shared.h.

Referenced by CHRSH_CharGenAbilitySkills(), CHRSH_IsArmourUseableForTeam(), CHRSH_IsTeamDefAlien(), and CL_TeamDefInitMenu().

char teamDef_s::tech[MAX_VAR]

technology_t id from research.ufo

Definition at line 300 of file chr_shared.h.

Referenced by CP_ParseCampaignData().


The documentation for this struct was generated from the following files: