UFO: Alien Invasion
Loading...
Searching...
No Matches
teamDef_t Struct Reference

#include <chr_shared.h>

Collaboration diagram for teamDef_t:
Collaboration graph

Data Structures

struct  model_t

Public Member Functions

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

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 307 of file chr_shared.h.

Member Function Documentation

◆ getActorSound()

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

Field Documentation

◆ armour

bool teamDef_t::armour

Does this team use armour.

Definition at line 334 of file chr_shared.h.

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

◆ bodyTemplate

◆ characterTemplates

const chrTemplate_t* teamDef_t::characterTemplates[MAX_TEMPLATES_PER_TEAM]

Definition at line 347 of file chr_shared.h.

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

◆ deathTextureName

char teamDef_t::deathTextureName[MAX_VAR]

texture name for death of any member of this team

Definition at line 343 of file chr_shared.h.

Referenced by CL_AddActor(), and Com_ParseTeam().

◆ footstepSound

char teamDef_t::footstepSound[MAX_VAR]

Definition at line 312 of file chr_shared.h.

Referenced by G_SendFootstepSound(), and LE_PlayFootStepSound().

◆ hitParticle

char teamDef_t::hitParticle[MAX_VAR]

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

Definition at line 342 of file chr_shared.h.

Referenced by LE_ActorBodyHit().

◆ id

◆ idx

int teamDef_t::idx

◆ models

linkedList_t* teamDef_t::models[NAME_LAST]

Models list per gender.

Definition at line 325 of file chr_shared.h.

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

◆ name

char teamDef_t::name[MAX_VAR]

Translatable name.

Definition at line 310 of file chr_shared.h.

Referenced by CL_ActorAppear(), CL_TeamDefInitMenu(), Com_GetGender(), and InventoryInterface::EquipActorNormal().

◆ names

linkedList_t* const* teamDef_t::names

Names list per gender.

Definition at line 314 of file chr_shared.h.

Referenced by Com_GiveName(), and Com_ParseTeam().

◆ numModels

int teamDef_t::numModels[NAME_LAST]

Amount of models in this list for all different genders.

Definition at line 326 of file chr_shared.h.

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

◆ numNames

const int* teamDef_t::numNames

Amount of names in this list for all different genders.

Definition at line 315 of file chr_shared.h.

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

◆ numSounds

int teamDef_t::numSounds[SND_MAX][NAME_LAST]

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

Definition at line 329 of file chr_shared.h.

Referenced by Com_ParseActorSounds().

◆ numTemplates

int teamDef_t::numTemplates

◆ onlyWeapon

const objDef_t* teamDef_t::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 336 of file chr_shared.h.

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

◆ resistance

short teamDef_t::resistance[MAX_DAMAGETYPES]

Resistance to damage

Definition at line 345 of file chr_shared.h.

Referenced by Com_ParseTeam(), and G_ApplyProtection().

◆ robot

◆ size

actorSizeEnum_t teamDef_t::size

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

Definition at line 341 of file chr_shared.h.

Referenced by Com_GetCharacterValues().

◆ sounds

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

Sounds list per gender and per sound type.

Definition at line 328 of file chr_shared.h.

Referenced by Com_ParseActorSounds(), and TEST_F().

◆ team

int teamDef_t::team

What is the race of this team?

Definition at line 331 of file chr_shared.h.

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

◆ tech

char teamDef_t::tech[MAX_VAR]

technology_t id from research.ufo

Definition at line 311 of file chr_shared.h.

Referenced by CP_ParseCampaignData().

◆ weapons


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