UFO: Alien Invasion
chrScoreGlobal_t Struct Reference

Structure of all stats collected for an actor over time. More...

#include <chr_shared.h>

Collaboration diagram for chrScoreGlobal_t:
Collaboration graph

Public Member Functions

 chrScoreGlobal_s ()
 

Data Fields

int experience [SKILL_NUM_TYPES+1]
 
int skills [SKILL_NUM_TYPES]
 
int initialSkills [SKILL_NUM_TYPES+1]
 
int kills [KILLED_NUM_TYPES]
 
int stuns [KILLED_NUM_TYPES]
 
int assignedMissions
 
int rank
 

Detailed Description

Structure of all stats collected for an actor over time.

Note
More general Info: http://ufoai.org/wiki/index.php/Proposals/Attribute_Increase
This information is stored in savegames (in contract to chrScoreMission_t).
WARNING: if you change something here you'll have to make sure all the network and savegame stuff is updated as well! Additionally you have to check the size of the network-transfer in G_SendCharacterData and GAME_CP_Results

Definition at line 119 of file chr_shared.h.

Member Function Documentation

◆ chrScoreGlobal_s()

chrScoreGlobal_t::chrScoreGlobal_s ( )
inline

Definition at line 133 of file chr_shared.h.

References OBJZERO.

Field Documentation

◆ assignedMissions

int chrScoreGlobal_t::assignedMissions

◆ experience

int chrScoreGlobal_t::experience[SKILL_NUM_TYPES+1]

◆ initialSkills

int chrScoreGlobal_t::initialSkills[SKILL_NUM_TYPES+1]

Array of initial skills and abilities. This is the value generated at character generation time.

Definition at line 123 of file chr_shared.h.

Referenced by CHAR_UpdateSkills(), CHRSH_CharGenAbilitySkills(), CL_CharacterSkillAndScoreCvars(), CL_SwapSkill(), GAME_LoadCharacter(), and GAME_SaveCharacter().

◆ kills

◆ rank

int chrScoreGlobal_t::rank

◆ skills

◆ stuns

int chrScoreGlobal_t::stuns[KILLED_NUM_TYPES]

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