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

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

#include <chr_shared.h>

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

Constructor & Destructor Documentation

character_s::character_s ( )

ctor

Definition at line 29 of file chr_shared.cpp.

References init().

Member Function Documentation

Field Documentation

int character_s::minHP

Minimum hp during combat

Definition at line 379 of file chr_shared.h.

Referenced by G_CheckDeathOrKnockout(), G_ClientReadCharacter(), and init().

chrScoreMission_t* character_s::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 388 of file chr_shared.h.

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

int character_s::state

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

Definition at line 385 of file chr_shared.h.

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


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