UFO: Alien Invasion
Loading...
Searching...
No Matches
chrScoreMission_t Struct Reference

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

#include <chr_shared.h>

Collaboration diagram for chrScoreMission_t:
Collaboration graph

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.

Member Function Documentation

◆ chrScoreMission_s()

chrScoreMission_t::chrScoreMission_s ( )
inline

Definition at line 104 of file chr_shared.h.

References init().

◆ init()

void chrScoreMission_t::init ( )
inline

Definition at line 107 of file chr_shared.h.

References OBJZERO.

Referenced by chrScoreMission_s().

Field Documentation

◆ carriedWeight

int chrScoreMission_t::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().

◆ fired

int chrScoreMission_t::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().

◆ firedHit

bool chrScoreMission_t::firedHit[KILLED_NUM_TYPES]

Definition at line 88 of file chr_shared.h.

Referenced by G_ClientShoot(), and G_UpdateHitScore().

◆ firedSplash

int chrScoreMission_t::firedSplash[SKILL_NUM_TYPES]

Count of fired splash "firemodes".

Definition at line 92 of file chr_shared.h.

Referenced by G_ClientShoot().

◆ firedSplashHit

bool chrScoreMission_t::firedSplashHit[KILLED_NUM_TYPES]

Definition at line 94 of file chr_shared.h.

Referenced by G_ClientShoot(), and G_UpdateHitScore().

◆ firedSplashTUs

int chrScoreMission_t::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().

◆ firedTUs

int chrScoreMission_t::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().

◆ heal

int chrScoreMission_t::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().

◆ hits

int chrScoreMission_t::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().

◆ hitsSplash

int chrScoreMission_t::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().

◆ hitsSplashDamage

int chrScoreMission_t::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().

◆ kills

int chrScoreMission_t::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().

◆ movedCrouched

int chrScoreMission_t::movedCrouched

Definition at line 78 of file chr_shared.h.

Referenced by G_ClientMove().

◆ movedNormal

int chrScoreMission_t::movedNormal

Definition at line 77 of file chr_shared.h.

Referenced by G_ClientMove().

◆ skillKills

int chrScoreMission_t::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.

◆ stuns

int chrScoreMission_t::stuns[KILLED_NUM_TYPES]

Count of stuns (aliens, civilians, teammates)

Definition at line 83 of file chr_shared.h.


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