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

Structure of all stats collected in a mission. More...

#include <chr_shared.h>

Public Member Functions

 chrScoreMission_s ()
 
void init ()
 

Data Fields

int movedNormal
 
int movedCrouched
 
int kills [KILLED_NUM_TYPES]
 
int stuns [KILLED_NUM_TYPES]
 
int fired [SKILL_NUM_TYPES]
 
int firedTUs [SKILL_NUM_TYPES]
 
bool firedHit [KILLED_NUM_TYPES]
 
int hits [SKILL_NUM_TYPES][KILLED_NUM_TYPES]
 
int firedSplash [SKILL_NUM_TYPES]
 
int firedSplashTUs [SKILL_NUM_TYPES]
 
bool firedSplashHit [KILLED_NUM_TYPES]
 
int hitsSplash [SKILL_NUM_TYPES][KILLED_NUM_TYPES]
 
int hitsSplashDamage [SKILL_NUM_TYPES][KILLED_NUM_TYPES]
 
int skillKills [SKILL_NUM_TYPES]
 
int heal
 
int carriedWeight
 

Detailed Description

Structure of all stats collected in a mission.

Note
More general Info: http://ufoai.org/wiki/index.php/Proposals/Attribute_Increase
Mostly collected in g_client.c and not used anywhere else (at least that's the plan ;)). The result is parsed into chrScoreGlobal_t which is stored in savegames.
BTAxis about "hit" count: "But yeah, what we want is a counter per skill. This counter should start at 0 every battle, and then be increased by 1 everytime:
  • a direct fire weapon hits (or deals damage, same thing) the actor the weapon was fired at. If it wasn't fired at an actor, nothing should happen.
  • a splash weapon deals damage to any enemy actor. If multiple actors are hit, increase the counter multiple times."

Definition at line 75 of file chr_shared.h.

Constructor & Destructor Documentation

chrScoreMission_s::chrScoreMission_s ( )
inline

Definition at line 104 of file chr_shared.h.

References init().

Member Function Documentation

void chrScoreMission_s::init ( )
inline

Definition at line 107 of file chr_shared.h.

References OBJZERO.

Referenced by chrScoreMission_s(), and G_ClientAssignDefaultActorValues().

Field Documentation

int chrScoreMission_s::carriedWeight

The weight this soldier carried during combat

Definition at line 102 of file chr_shared.h.

Referenced by G_ClientAssignDefaultActorValues(), G_GetEarnedExperience(), and G_UpdateCarriedWeight().

int chrScoreMission_s::fired[SKILL_NUM_TYPES]

Count of fired "firemodes" (i.e. the count of how many times the soldier started shooting)

Definition at line 86 of file chr_shared.h.

Referenced by G_ClientShoot().

bool chrScoreMission_s::firedHit[KILLED_NUM_TYPES]

Definition at line 88 of file chr_shared.h.

Referenced by G_ClientShoot(), and G_UpdateHitScore().

int chrScoreMission_s::firedSplash[SKILL_NUM_TYPES]

Count of fired splash "firemodes".

Definition at line 92 of file chr_shared.h.

Referenced by G_ClientShoot().

bool chrScoreMission_s::firedSplashHit[KILLED_NUM_TYPES]

Definition at line 94 of file chr_shared.h.

Referenced by G_ClientShoot(), and G_UpdateHitScore().

int chrScoreMission_s::firedSplashTUs[SKILL_NUM_TYPES]

Count of TUs used for the fired "firemodes" (splash damage only).

Definition at line 93 of file chr_shared.h.

Referenced by G_ClientShoot().

int chrScoreMission_s::firedTUs[SKILL_NUM_TYPES]

Count of TUs used for the fired "firemodes". (direct hits only)

Definition at line 87 of file chr_shared.h.

Referenced by G_ClientShoot().

int chrScoreMission_s::heal

How many hitpoints has this soldier received trough healing in battlescape.

Definition at line 101 of file chr_shared.h.

Referenced by G_TreatActor().

int chrScoreMission_s::hits[SKILL_NUM_TYPES][KILLED_NUM_TYPES]

Temporarily used for shot-stats calculations and status-tracking. Not used in stats. Count of hits (aliens, civilians or, teammates) per skill. It is a sub-count of "fired". It's planned to be increased by 1 for each series of shots that dealt some damage.

Definition at line 89 of file chr_shared.h.

Referenced by G_GetEarnedExperience(), and G_UpdateHitScore().

int chrScoreMission_s::hitsSplash[SKILL_NUM_TYPES][KILLED_NUM_TYPES]

Same as firedHit but for Splash damage. Count of splash hits.

Definition at line 95 of file chr_shared.h.

Referenced by G_GetEarnedExperience(), and G_UpdateHitScore().

int chrScoreMission_s::hitsSplashDamage[SKILL_NUM_TYPES][KILLED_NUM_TYPES]

Count of dealt splash damage (aliens, civilians or, teammates). This is counted in overall damage (healthpoint).

Definition at line 96 of file chr_shared.h.

Referenced by G_UpdateHitScore().

int chrScoreMission_s::kills[KILLED_NUM_TYPES]
Todo:
use existing code

Count of kills (aliens, civilians, teammates)

Definition at line 82 of file chr_shared.h.

Referenced by G_GetEarnedExperience(), and G_UpdateCharacterBodycount().

int chrScoreMission_s::movedCrouched

Definition at line 78 of file chr_shared.h.

Referenced by G_ClientMove().

int chrScoreMission_s::movedNormal

Definition at line 77 of file chr_shared.h.

Referenced by G_ClientMove().

int chrScoreMission_s::skillKills[SKILL_NUM_TYPES]
Todo:
Check HEALING of others.

Number of kills related to each skill.

Definition at line 99 of file chr_shared.h.

Referenced by G_UpdateCharacterBodycount().

int chrScoreMission_s::stuns[KILLED_NUM_TYPES]

Count of stuns (aliens, civilians, teammates)

Definition at line 83 of file chr_shared.h.

Referenced by G_UpdateCharacterBodycount().


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