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

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

#include <chr_shared.h>

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.

Constructor & Destructor Documentation

chrScoreGlobal_s::chrScoreGlobal_s ( )
inline

Definition at line 133 of file chr_shared.h.

References OBJZERO.

Field Documentation

int chrScoreGlobal_s::assignedMissions
int chrScoreGlobal_s::experience[SKILL_NUM_TYPES+1]
int chrScoreGlobal_s::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().

int chrScoreGlobal_s::rank
int chrScoreGlobal_s::stuns[KILLED_NUM_TYPES]

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