UFO: Alien Invasion
character_t Struct Reference

Describes a character with all its attributes. More...

#include <chr_shared.h>

Collaboration diagram for character_t:
Collaboration graph

Public Member Functions

 character_s ()
 
void init ()
 

Data Fields

int ucn
 
char name [MAX_VAR]
 
char path [MAX_VAR]
 
char body [MAX_VAR]
 
char head [MAX_VAR]
 
int bodySkin
 
int headSkin
 
int HP
 
int minHP
 
int maxHP
 
int STUN
 
int morale
 
woundInfo_t wounds
 
int state
 
chrScoreGlobal_t score
 
chrScoreMission_tscoreMission
 
actorSizeEnum_t fieldSize
 
Inventory inv
 
const teamDef_tteamDef
 
int gender
 
chrReservations_t reservedTus
 
FiremodeSettings RFmode
 
implant_t implants [MAX_CHARACTER_IMPLANTS]
 

Detailed Description

Describes a character with all its attributes.

Definition at line 388 of file chr_shared.h.

Member Function Documentation

◆ character_s()

character_t::character_s ( )

ctor

◆ init()

void character_t::init ( )

Field Documentation

◆ body

◆ bodySkin

◆ fieldSize

◆ gender

◆ head

◆ headSkin

◆ HP

◆ implants

◆ inv

◆ maxHP

◆ minHP

int character_t::minHP

Minimum hp during combat

Definition at line 398 of file chr_shared.h.

Referenced by G_CheckDeathOrKnockout(), and G_ClientReadCharacter().

◆ morale

◆ name

◆ path

◆ reservedTus

◆ RFmode

◆ score

◆ scoreMission

chrScoreMission_t* character_t::scoreMission

Array of scores/stats the soldier/unit collected in a mission - only used in battlescape (server side). Otherwise it's nullptr.

Definition at line 407 of file chr_shared.h.

Referenced by G_ClientAssignDefaultActorValues(), G_ClientMove(), G_ClientShoot(), G_GetEarnedExperience(), G_TreatActor(), G_UpdateCarriedWeight(), G_UpdateCharacterBodycount(), and G_UpdateHitScore().

◆ state

int character_t::state

a character can request some initial states when the team is spawned (like reaction fire)

Definition at line 404 of file chr_shared.h.

Referenced by CL_ActorStateChange(), CL_GenerateCharacter(), GAME_LoadCharacter(), and GAME_SaveCharacter().

◆ STUN

◆ teamDef

◆ ucn

◆ wounds


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