character_s Struct Reference

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

#include <chr_shared.h>

Collaboration diagram for character_s:
Collaboration graph
[legend]

Data Fields

int ucn
char name [MAX_VAR]
char path [MAX_VAR]
char body [MAX_VAR]
char head [MAX_VAR]
int skin
int HP
int minHP
int maxHP
int STUN
int morale
int state
chrScoreGlobal_t score
chrScoreMission_tscoreMission
actorSizeEnum_t fieldSize
inventory_t i
teamDef_tteamDef
int gender
chrReservations_t reservedTus
chrFiremodeSettings_t RFmode

Detailed Description

Describes a character with all its attributes.

Definition at line 253 of file chr_shared.h.


Field Documentation

char character_s::body[MAX_VAR]
char character_s::head[MAX_VAR]

Minimum hp during combat

Definition at line 262 of file chr_shared.h.

Referenced by G_ClientReadCharacter(), and G_Damage().

char character_s::name[MAX_VAR]
char character_s::path[MAX_VAR]

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

Definition at line 270 of file chr_shared.h.

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

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

Definition at line 267 of file chr_shared.h.

Referenced by CL_ActorStateChange(), CL_LoadCharacterXML(), CL_SaveCharacterXML(), and GAME_CP_InitializeBattlescape().


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

Generated by  doxygen 1.6.2