|
UFO: Alien Invasion
|
Header file for character (soldier, alien) related campaign functions. More...
#include "../../../game/chr_shared.h"

Go to the source code of this file.
Functions | |
| int | CHAR_GetMaxExperiencePerMission (const abilityskills_t skill) |
| Determines the maximum amount of XP per skill that can be gained from any one mission. | |
| void | CHAR_UpdateSkills (struct character_s *chr) |
| void | CHAR_UpdateData (linkedList_t *updateCharacters) |
| Transforms the battlescape values to the character. | |
| void | CHAR_UpdateStats (const struct base_s *base, const struct aircraft_s *aircraft) |
| void | CHAR_ParseData (dbuffer *msg, linkedList_t **updateCharacters) |
| Parses the character data which was send by G_MatchSendResults using G_SendCharacterData. | |
| void | CHAR_InitStartup (void) |
| Campaign initialization actions for the character module. | |
| void | CHAR_Shutdown (void) |
| Campaign closing actions for the character module. | |
Header file for character (soldier, alien) related campaign functions.
Definition in file cp_character.h.
| int CHAR_GetMaxExperiencePerMission | ( | const abilityskills_t | skill | ) |
Determines the maximum amount of XP per skill that can be gained from any one mission.
| [in] | skill | The skill for which to fetch the maximum amount of XP. |
Definition at line 55 of file cp_character.cpp.
References ABILITY_ACCURACY, ABILITY_MIND, ABILITY_POWER, ABILITY_SPEED, cgi, ERR_DROP, SKILL_ASSAULT, SKILL_CLOSE, SKILL_EVADING, SKILL_EXPLOSIVE, SKILL_HEAVY, SKILL_NUM_TYPES, SKILL_PILOTING, SKILL_SNIPER, and SKILL_TARGETING.
Referenced by AM_UpdateSurivorsAfterBattle(), and CHAR_UpdateData().
Campaign initialization actions for the character module.
Definition at line 288 of file cp_character.cpp.
References cgi.
Referenced by CP_InitStartup().
| void CHAR_ParseData | ( | dbuffer * | msg, |
| linkedList_t ** | updateCharacters ) |
Parses the character data which was send by G_MatchSendResults using G_SendCharacterData.
| [in] | msg | The network buffer message. If this is nullptr the character is updated, if this is not nullptr the data is stored in a temp buffer because the player can choose to retry the mission and we have to catch this situation to not update the character data in this case. |
| updateCharacters | A LinkedList where to store the character data. One listitem per character. |
Definition at line 151 of file cp_character.cpp.
References chrScoreGlobal_t::assignedMissions, BODYPART_MAXTYPE, cgi, updateCharacter_t::chrscore, ERR_DROP, chrScoreGlobal_t::experience, updateCharacter_t::HP, i, KILLED_NUM_TYPES, chrScoreGlobal_t::kills, LIST_Add(), updateCharacter_t::morale, SKILL_NUM_TYPES, updateCharacter_t::STUN, chrScoreGlobal_t::stuns, woundInfo_t::treatmentLevel, updateCharacter_t::ucn, and updateCharacter_t::wounds.
Referenced by GAME_CP_Results().
Campaign closing actions for the character module.
Definition at line 298 of file cp_character.cpp.
References cgi.
Referenced by CP_Shutdown().
| void CHAR_UpdateData | ( | linkedList_t * | updateCharacters | ) |
Transforms the battlescape values to the character.
Definition at line 106 of file cp_character.cpp.
References ABILITY_POWER, chrScoreGlobal_t::assignedMissions, cgi, CHAR_GetMaxExperiencePerMission(), CHAR_UpdateSkills(), Employee::chr, DEBUG_CLIENT, E_GetEmployeeFromChrUCN(), chrScoreGlobal_t::experience, character_t::HP, i, chrScoreGlobal_t::kills, LIST_Foreach, character_t::maxHP, character_t::morale, character_t::name, character_t::score, SKILL_NUM_TYPES, character_t::STUN, chrScoreGlobal_t::stuns, woundInfo_t::treatmentLevel, and character_t::wounds.
Referenced by CP_MissionEnd().
| void CHAR_UpdateSkills | ( | struct character_s * | chr | ) |
| void CHAR_UpdateStats | ( | const struct base_s * | base, |
| const struct aircraft_s * | aircraft ) |